OSDN Git Service

861c522d89b821a2a638dc72ac2cc2ba23238792
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava 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='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="java/lang/System.java"
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_subdirs_all="$ac_subdirs_all classpath libltdl"
462 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 multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
927
928 #
929 # Report the --help message.
930 #
931 if test "$ac_init_help" = "long"; then
932   # Omit some internal or obsolete options to make the list less imposing.
933   # This message is too long to be a string in the A/UX 3.1 sh.
934   cat <<_ACEOF
935 \`configure' configures libjava version-unused to adapt to many kinds of systems.
936
937 Usage: $0 [OPTION]... [VAR=VALUE]...
938
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE.  See below for descriptions of some of the useful variables.
941
942 Defaults for the options are specified in brackets.
943
944 Configuration:
945   -h, --help              display this help and exit
946       --help=short        display options specific to this package
947       --help=recursive    display the short help of all the included packages
948   -V, --version           display version information and exit
949   -q, --quiet, --silent   do not print \`checking...' messages
950       --cache-file=FILE   cache test results in FILE [disabled]
951   -C, --config-cache      alias for \`--cache-file=config.cache'
952   -n, --no-create         do not create output files
953       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
954
955 _ACEOF
956
957   cat <<_ACEOF
958 Installation directories:
959   --prefix=PREFIX         install architecture-independent files in PREFIX
960                           [$ac_default_prefix]
961   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
962                           [PREFIX]
963
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
968
969 For better control, use the options below.
970
971 Fine tuning of the installation directories:
972   --bindir=DIR           user executables [EPREFIX/bin]
973   --sbindir=DIR          system admin executables [EPREFIX/sbin]
974   --libexecdir=DIR       program executables [EPREFIX/libexec]
975   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
976   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
977   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
978   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
979   --libdir=DIR           object code libraries [EPREFIX/lib]
980   --includedir=DIR       C header files [PREFIX/include]
981   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
982   --infodir=DIR          info documentation [PREFIX/info]
983   --mandir=DIR           man documentation [PREFIX/man]
984 _ACEOF
985
986   cat <<\_ACEOF
987
988 Program names:
989   --program-prefix=PREFIX            prepend PREFIX to installed program names
990   --program-suffix=SUFFIX            append SUFFIX to installed program names
991   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
992
993 X features:
994   --x-includes=DIR    X include files are in DIR
995   --x-libraries=DIR   X library files are in DIR
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000   --target=TARGET   configure for building compilers for TARGET [HOST]
1001 _ACEOF
1002 fi
1003
1004 if test -n "$ac_init_help"; then
1005   case $ac_init_help in
1006      short | recursive ) echo "Configuration of libjava version-unused:";;
1007    esac
1008   cat <<\_ACEOF
1009
1010 Optional Features:
1011   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1012   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1013   --enable-multilib       build many library versions (default)
1014   --enable-version-specific-runtime-libs
1015                           specify that runtime libraries should be installed
1016                           in a compiler-specific directory
1017   --enable-plugin         build gcjwebplugin web browser plugin
1018   --enable-gconf-peer     compile GConf native peers for util.preferences
1019   --enable-java-maintainer-mode
1020                           allow rebuilding of .class and .h files
1021   --disable-dependency-tracking  speeds up one-time build
1022   --enable-dependency-tracking   do not reject slow dependency extractors
1023   --enable-maintainer-mode  enable make rules and dependencies not useful
1024                           (and sometimes confusing) to the casual installer
1025   --enable-libgcj-debug   enable runtime debugging code
1026   --enable-java-awt       list of AWT peer implementations to be built
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --disable-getenv-properties
1035                           don't set system properties from GCJ_PROPERTIES
1036   --enable-hash-synchronization
1037                           use global hash table for monitor locks
1038   --enable-gc-debug       include full support for pointer backtracing etc.
1039   --enable-interpreter    enable interpreter
1040   --enable-sjlj-exceptions
1041                           force use of builtin_setjmp for exceptions
1042   --disable-java-net      disable java.net
1043   --disable-jvmpi         disable JVMPI support
1044   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1045   --disable-rpath         do not hardcode runtime library paths
1046   --enable-tls            Use thread-local storage [default=yes]
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1052   --with-target-subdir=SUBDIR
1053                           configure in a subdirectory
1054   --with-cross-host=HOST  configure with a cross compiler from HOST
1055   --with-newlib           configure with newlib
1056   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060   --with-ecj-jar=FILE     use preinstalled ecj jar
1061   --with-java-home=DIRECTORY
1062                           value of java.home system property
1063   --with-win32-nlsapi=ansi or unicows or unicode
1064                           native MinGW libgcj Win32 OS API (default is ansi)
1065   --without-libffi        don't use libffi
1066   --with-ecos             enable runtime eCos target support
1067   --with-system-zlib      use installed libz
1068   --with-x                use the X Window System
1069   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1070   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1071   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1072
1073 Some influential environment variables:
1074   CC          C compiler command
1075   CFLAGS      C compiler flags
1076   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1077               nonstandard directory <lib dir>
1078   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079               headers in a nonstandard directory <include dir>
1080   CXX         C++ compiler command
1081   CXXFLAGS    C++ compiler flags
1082   CPP         C preprocessor
1083   CXXCPP      C++ preprocessor
1084
1085 Use these variables to override the choices made by `configure' or to help
1086 it to find libraries and programs with nonstandard names/locations.
1087
1088 _ACEOF
1089 fi
1090
1091 if test "$ac_init_help" = "recursive"; then
1092   # If there are subdirs, report their specific --help.
1093   ac_popdir=`pwd`
1094   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1095     test -d $ac_dir || continue
1096     ac_builddir=.
1097
1098 if test "$ac_dir" != .; then
1099   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1100   # A "../" for each directory in $ac_dir_suffix.
1101   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102 else
1103   ac_dir_suffix= ac_top_builddir=
1104 fi
1105
1106 case $srcdir in
1107   .)  # No --srcdir option.  We are building in place.
1108     ac_srcdir=.
1109     if test -z "$ac_top_builddir"; then
1110        ac_top_srcdir=.
1111     else
1112        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113     fi ;;
1114   [\\/]* | ?:[\\/]* )  # Absolute path.
1115     ac_srcdir=$srcdir$ac_dir_suffix;
1116     ac_top_srcdir=$srcdir ;;
1117   *) # Relative path.
1118     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1119     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 esac
1121
1122 # Do not use `cd foo && pwd` to compute absolute paths, because
1123 # the directories may not exist.
1124 case `pwd` in
1125 .) ac_abs_builddir="$ac_dir";;
1126 *)
1127   case "$ac_dir" in
1128   .) ac_abs_builddir=`pwd`;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1130   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *)
1136   case ${ac_top_builddir}. in
1137   .) ac_abs_top_builddir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1139   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_srcdir=$ac_srcdir;;
1144 *)
1145   case $ac_srcdir in
1146   .) ac_abs_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1148   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149   esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *)
1154   case $ac_top_srcdir in
1155   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1157   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158   esac;;
1159 esac
1160
1161     cd $ac_dir
1162     # Check for guested configure; otherwise get Cygnus style configure.
1163     if test -f $ac_srcdir/configure.gnu; then
1164       echo
1165       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1166     elif test -f $ac_srcdir/configure; then
1167       echo
1168       $SHELL $ac_srcdir/configure  --help=recursive
1169     elif test -f $ac_srcdir/configure.ac ||
1170            test -f $ac_srcdir/configure.in; then
1171       echo
1172       $ac_configure --help
1173     else
1174       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175     fi
1176     cd $ac_popdir
1177   done
1178 fi
1179
1180 test -n "$ac_init_help" && exit 0
1181 if $ac_init_version; then
1182   cat <<\_ACEOF
1183 libjava configure version-unused
1184 generated by GNU Autoconf 2.59
1185
1186 Copyright (C) 2003 Free Software Foundation, Inc.
1187 This configure script is free software; the Free Software Foundation
1188 gives unlimited permission to copy, distribute and modify it.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by libjava $as_me version-unused, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574   ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578    { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1587 build=$ac_cv_build
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593  case ${build_alias} in
1594   "") build_noncanonical=${build} ;;
1595   *) build_noncanonical=${build_alias} ;;
1596 esac
1597
1598  case ${host_alias} in
1599   "") host_noncanonical=${build_noncanonical} ;;
1600   *) host_noncanonical=${host_alias} ;;
1601 esac
1602
1603  case ${target_alias} in
1604   "") target_noncanonical=${host_noncanonical} ;;
1605   *) target_noncanonical=${target_alias} ;;
1606 esac
1607
1608
1609 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1610 # have matching libraries, they should use host libraries: Makefile.tpl
1611 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1612 # However, they still use the build modules, because the corresponding
1613 # host modules (e.g. bison) are only built for the host when bootstrap
1614 # finishes. So:
1615 # - build_subdir is where we find build modules, and never changes.
1616 # - build_libsubdir is where we find build libraries, and can be overridden.
1617
1618 # Prefix 'build-' so this never conflicts with target_subdir.
1619 build_subdir="build-${build_noncanonical}"
1620
1621 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1622 if test "${with_build_libsubdir+set}" = set; then
1623   withval="$with_build_libsubdir"
1624   build_libsubdir="$withval"
1625 else
1626   build_libsubdir="$build_subdir"
1627 fi;
1628 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1629 if ( test $srcdir = . && test -d gcc ) \
1630    || test -d $srcdir/../host-${host_noncanonical}; then
1631   host_subdir="host-${host_noncanonical}"
1632 else
1633   host_subdir=.
1634 fi
1635 # No prefix.
1636 target_subdir=${target_noncanonical}
1637
1638
1639 # We use these options to decide which functions to include.
1640
1641 # Check whether --with-target-subdir or --without-target-subdir was given.
1642 if test "${with_target_subdir+set}" = set; then
1643   withval="$with_target_subdir"
1644
1645 fi;
1646
1647 # We may get other options which we don't document:
1648 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1649
1650 # Find the rest of the source tree framework.
1651 # Default to --enable-multilib
1652 # Check whether --enable-multilib or --disable-multilib was given.
1653 if test "${enable_multilib+set}" = set; then
1654   enableval="$enable_multilib"
1655   case "$enableval" in
1656   yes) multilib=yes ;;
1657   no)  multilib=no ;;
1658   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1659 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1660    { (exit 1); exit 1; }; } ;;
1661  esac
1662 else
1663   multilib=yes
1664 fi;
1665
1666 # We may get other options which we leave undocumented:
1667 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1668 # See config-ml.in if you want the gory details.
1669
1670 if test "$srcdir" = "."; then
1671   if test "$with_target_subdir" != "."; then
1672     multi_basedir="$srcdir/$with_multisrctop../.."
1673   else
1674     multi_basedir="$srcdir/$with_multisrctop.."
1675   fi
1676 else
1677   multi_basedir="$srcdir/.."
1678 fi
1679
1680
1681 # Even if the default multilib is not a cross compilation,
1682 # it may be that some of the other multilibs are.
1683 if test $cross_compiling = no && test $multilib = yes \
1684    && test "x${with_multisubdir}" != x ; then
1685    cross_compiling=maybe
1686 fi
1687
1688           ac_config_commands="$ac_config_commands default-1"
1689
1690
1691 echo "$as_me:$LINENO: checking host system type" >&5
1692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1693 if test "${ac_cv_host+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   ac_cv_host_alias=$host_alias
1697 test -z "$ac_cv_host_alias" &&
1698   ac_cv_host_alias=$ac_cv_build_alias
1699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1700   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1702    { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1706 echo "${ECHO_T}$ac_cv_host" >&6
1707 host=$ac_cv_host
1708 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713 echo "$as_me:$LINENO: checking target system type" >&5
1714 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1715 if test "${ac_cv_target+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   ac_cv_target_alias=$target_alias
1719 test "x$ac_cv_target_alias" = "x" &&
1720   ac_cv_target_alias=$ac_cv_host_alias
1721 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1722   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1723 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1724    { (exit 1); exit 1; }; }
1725
1726 fi
1727 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1728 echo "${ECHO_T}$ac_cv_target" >&6
1729 target=$ac_cv_target
1730 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733
1734
1735 # The aliases save the names the user supplied, while $host etc.
1736 # will get canonicalized.
1737 test -n "$target_alias" &&
1738   test "$program_prefix$program_suffix$program_transform_name" = \
1739     NONENONEs,x,x, &&
1740   program_prefix=${target_alias}-
1741  case ${build_alias} in
1742   "") build_noncanonical=${build} ;;
1743   *) build_noncanonical=${build_alias} ;;
1744 esac
1745
1746  case ${target_alias} in
1747   "") target_noncanonical=${host_noncanonical} ;;
1748   *) target_noncanonical=${target_alias} ;;
1749 esac
1750
1751
1752
1753
1754 # This works around the fact that libtool configuration may change LD
1755 # for this particular configuration, but some shells, instead of
1756 # keeping the changes in LD private, export them just because LD is
1757 # exported.
1758 ORIGINAL_LD_FOR_MULTILIBS=$LD
1759
1760 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1762 LN_S=$as_ln_s
1763 if test "$LN_S" = "ln -s"; then
1764   echo "$as_me:$LINENO: result: yes" >&5
1765 echo "${ECHO_T}yes" >&6
1766 else
1767   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1768 echo "${ECHO_T}no, using $LN_S" >&6
1769 fi
1770
1771
1772 # This works around an automake problem.
1773 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1774
1775
1776
1777 # Check whether --with-cross-host or --without-cross-host was given.
1778 if test "${with_cross_host+set}" = set; then
1779   withval="$with_cross_host"
1780
1781 fi;
1782
1783
1784 # Check whether --with-newlib or --without-newlib was given.
1785 if test "${with_newlib+set}" = set; then
1786   withval="$with_newlib"
1787
1788 fi;
1789
1790 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1791 if test "${enable_version_specific_runtime_libs+set}" = set; then
1792   enableval="$enable_version_specific_runtime_libs"
1793   case "$enableval" in
1794       yes) version_specific_libs=yes ;;
1795       no)  version_specific_libs=no ;;
1796       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1797 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1798    { (exit 1); exit 1; }; };;
1799      esac
1800 else
1801   version_specific_libs=no
1802
1803 fi;
1804
1805 # Check whether --enable-plugin or --disable-plugin was given.
1806 if test "${enable_plugin+set}" = set; then
1807   enableval="$enable_plugin"
1808   case "$enableval" in
1809       yes) plugin_enabled=yes ;;
1810       no)  plugin_enabled=no ;;
1811       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1812 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1813    { (exit 1); exit 1; }; };;
1814      esac
1815 else
1816   plugin_enabled=no
1817
1818 fi;
1819
1820 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1821 if test "${enable_gconf_peer+set}" = set; then
1822   enableval="$enable_gconf_peer"
1823   case "$enableval" in
1824       yes) gconf_enabled=yes ;;
1825       no)  gconf_enabled=no ;;
1826       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1827 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1828    { (exit 1); exit 1; }; };;
1829      esac
1830 else
1831   gconf_enabled=no
1832
1833 fi;
1834
1835 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1836 if test "${enable_java_maintainer_mode+set}" = set; then
1837   enableval="$enable_java_maintainer_mode"
1838
1839 fi;
1840
1841
1842 if test "$enable_java_maintainer_mode" = yes; then
1843   JAVA_MAINTAINER_MODE_TRUE=
1844   JAVA_MAINTAINER_MODE_FALSE='#'
1845 else
1846   JAVA_MAINTAINER_MODE_TRUE='#'
1847   JAVA_MAINTAINER_MODE_FALSE=
1848 fi
1849
1850
1851 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1852
1853
1854 # (1) We use an abnormal CXX (without library references), so we
1855 # must cache it under a different name.
1856 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1857 # the non-multilib-adjusted value will be used in multilibs.
1858 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1859 # (4) As another side effect, automake doesn't automatically include them
1860 # in Makefile.in.
1861 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1862 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1863 # used in later tests.  This may not be necessary in libjava; I don't know.
1864
1865
1866 save_CXXFLAGS="$CXXFLAGS"
1867 CXXFLAGS="$CXXFLAGS -fno-builtin"
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$CC"; then
1882   ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 CC=$ac_cv_prog_CC
1901 if test -n "$CC"; then
1902   echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 fi
1910 if test -z "$ac_cv_prog_CC"; then
1911   ac_ct_CC=$CC
1912   # Extract the first word of "gcc", so it can be a program name with args.
1913 set dummy gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$ac_ct_CC"; then
1920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_ac_ct_CC="gcc"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   CC=$ac_ct_CC
1948 else
1949   CC="$ac_cv_prog_CC"
1950 fi
1951
1952 if test -z "$CC"; then
1953   if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_CC="${ac_tool_prefix}cc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982   echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 fi
1990 if test -z "$ac_cv_prog_CC"; then
1991   ac_ct_CC=$CC
1992   # Extract the first word of "cc", so it can be a program name with args.
1993 set dummy cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_CC"; then
2000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_ac_ct_CC="cc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027   CC=$ac_ct_CC
2028 else
2029   CC="$ac_cv_prog_CC"
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044   ac_prog_rejected=no
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2053        ac_prog_rejected=yes
2054        continue
2055      fi
2056     ac_cv_prog_CC="cc"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063 if test $ac_prog_rejected = yes; then
2064   # We found a bogon in the path, so make sure we never use it.
2065   set dummy $ac_cv_prog_CC
2066   shift
2067   if test $# != 0; then
2068     # We chose a different compiler from the bogus one.
2069     # However, it has the same basename, so the bogon will be chosen
2070     # first if we set CC to just the basename; use the full file name.
2071     shift
2072     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2073   fi
2074 fi
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 fi
2087 if test -z "$CC"; then
2088   if test -n "$ac_tool_prefix"; then
2089   for ac_prog in cl
2090   do
2091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114
2115 fi
2116 fi
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119   echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2121 else
2122   echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126     test -n "$CC" && break
2127   done
2128 fi
2129 if test -z "$CC"; then
2130   ac_ct_CC=$CC
2131   for ac_prog in cl
2132 do
2133   # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$ac_ct_CC"; then
2141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     ac_cv_prog_ac_ct_CC="$ac_prog"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156
2157 fi
2158 fi
2159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160 if test -n "$ac_ct_CC"; then
2161   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162 echo "${ECHO_T}$ac_ct_CC" >&6
2163 else
2164   echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2166 fi
2167
2168   test -n "$ac_ct_CC" && break
2169 done
2170
2171   CC=$ac_ct_CC
2172 fi
2173
2174 fi
2175
2176
2177 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: no acceptable C compiler found in \$PATH
2180 See \`config.log' for more details." >&2;}
2181    { (exit 1); exit 1; }; }
2182
2183 # Provide some information about the compiler.
2184 echo "$as_me:$LINENO:" \
2185      "checking for C compiler version" >&5
2186 ac_compiler=`set X $ac_compile; echo $2`
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2188   (eval $ac_compiler --version </dev/null >&5) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2193   (eval $ac_compiler -v </dev/null >&5) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2198   (eval $ac_compiler -V </dev/null >&5) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }
2202
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209
2210 int
2211 main ()
2212 {
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 # FIXME: Cleanup?
2219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2220   (eval $ac_link) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; then
2224   gcc_no_link=no
2225 else
2226   gcc_no_link=yes
2227 fi
2228
2229 if test x$gcc_no_link = xyes; then
2230   # Setting cross_compile will disable run tests; it will
2231   # also disable AC_CHECK_FILE but that's generally
2232   # correct if we can't link.
2233   cross_compiling=yes
2234   EXEEXT=
2235 else
2236   cat >conftest.$ac_ext <<_ACEOF
2237 /* confdefs.h.  */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h.  */
2242
2243 int
2244 main ()
2245 {
2246
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 ac_clean_files_save=$ac_clean_files
2252 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2253 # Try to create an executable without -o first, disregard a.out.
2254 # It will help us diagnose broken compilers, and finding out an intuition
2255 # of exeext.
2256 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2257 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2258 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2260   (eval $ac_link_default) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # Find the output, starting from the most likely.  This scheme is
2265 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266 # resort.
2267
2268 # Be careful to initialize this variable, since it used to be cached.
2269 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2270 ac_cv_exeext=
2271 # b.out is created by i960 compilers.
2272 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273 do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277         ;;
2278     conftest.$ac_ext )
2279         # This is the source file.
2280         ;;
2281     [ab].out )
2282         # We found the default executable, but exeext='' is most
2283         # certainly right.
2284         break;;
2285     *.* )
2286         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287         # FIXME: I believe we export ac_cv_exeext for Libtool,
2288         # but it would be cool to find out if it's true.  Does anybody
2289         # maintain Libtool? --akim.
2290         export ac_cv_exeext
2291         break;;
2292     * )
2293         break;;
2294   esac
2295 done
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: C compiler cannot create executables
2303 See \`config.log' for more details." >&2;}
2304    { (exit 77); exit 77; }; }
2305 fi
2306
2307 ac_exeext=$ac_cv_exeext
2308 echo "$as_me:$LINENO: result: $ac_file" >&5
2309 echo "${ECHO_T}$ac_file" >&6
2310
2311 # Check the compiler produces executables we can run.  If not, either
2312 # the compiler is broken, or we cross compile.
2313 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2314 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2315 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2316 # If not cross compiling, check that we can run a simple program.
2317 if test "$cross_compiling" != yes; then
2318   if { ac_try='./$ac_file'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324     cross_compiling=no
2325   else
2326     if test "$cross_compiling" = maybe; then
2327         cross_compiling=yes
2328     else
2329         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2330 If you meant to cross compile, use \`--host'.
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot run C compiled programs.
2333 If you meant to cross compile, use \`--host'.
2334 See \`config.log' for more details." >&2;}
2335    { (exit 1); exit 1; }; }
2336     fi
2337   fi
2338 fi
2339 echo "$as_me:$LINENO: result: yes" >&5
2340 echo "${ECHO_T}yes" >&6
2341
2342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2343 ac_clean_files=$ac_clean_files_save
2344 # Check the compiler produces executables we can run.  If not, either
2345 # the compiler is broken, or we cross compile.
2346 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2348 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2349 echo "${ECHO_T}$cross_compiling" >&6
2350
2351 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354   (eval $ac_link) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2359 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2360 # work properly (i.e., refer to `conftest.exe'), while it won't with
2361 # `rm'.
2362 for ac_file in conftest.exe conftest conftest.*; do
2363   test -f "$ac_file" || continue
2364   case $ac_file in
2365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2366     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367           export ac_cv_exeext
2368           break;;
2369     * ) break;;
2370   esac
2371 done
2372 else
2373   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379
2380 rm -f conftest$ac_cv_exeext
2381 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382 echo "${ECHO_T}$ac_cv_exeext" >&6
2383
2384 rm -f conftest.$ac_ext
2385 EXEEXT=$ac_cv_exeext
2386 ac_exeext=$EXEEXT
2387 fi
2388 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2389 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2390 if test "${ac_cv_objext+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.o conftest.obj
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410   (eval $ac_compile) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; then
2414   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2415   case $ac_file in
2416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2417     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418        break;;
2419   esac
2420 done
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2428 See \`config.log' for more details." >&2;}
2429    { (exit 1); exit 1; }; }
2430 fi
2431
2432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2435 echo "${ECHO_T}$ac_cv_objext" >&6
2436 OBJEXT=$ac_cv_objext
2437 ac_objext=$OBJEXT
2438 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2439 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2440 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449
2450 int
2451 main ()
2452 {
2453 #ifndef __GNUC__
2454        choke me
2455 #endif
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463   (eval $ac_compile) 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag"
2471                          || test ! -s conftest.err'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; } &&
2477          { ac_try='test -s conftest.$ac_objext'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; }; then
2483   ac_compiler_gnu=yes
2484 else
2485   echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 ac_compiler_gnu=no
2489 fi
2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492
2493 fi
2494 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2496 GCC=`test $ac_compiler_gnu = yes && echo yes`
2497 ac_test_CFLAGS=${CFLAGS+set}
2498 ac_save_CFLAGS=$CFLAGS
2499 CFLAGS="-g"
2500 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2501 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_g+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511
2512 int
2513 main ()
2514 {
2515
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"
2530                          || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   ac_cv_prog_cc_g=yes
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_cv_prog_cc_g=no
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2552 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2553 if test "$ac_test_CFLAGS" = set; then
2554   CFLAGS=$ac_save_CFLAGS
2555 elif test $ac_cv_prog_cc_g = yes; then
2556   if test "$GCC" = yes; then
2557     CFLAGS="-g -O2"
2558   else
2559     CFLAGS="-g"
2560   fi
2561 else
2562   if test "$GCC" = yes; then
2563     CFLAGS="-O2"
2564   else
2565     CFLAGS=
2566   fi
2567 fi
2568 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2569 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   ac_cv_prog_cc_stdc=no
2574 ac_save_CC=$CC
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdarg.h>
2582 #include <stdio.h>
2583 #include <sys/types.h>
2584 #include <sys/stat.h>
2585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586 struct buf { int x; };
2587 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588 static char *e (p, i)
2589      char **p;
2590      int i;
2591 {
2592   return p[i];
2593 }
2594 static char *f (char * (*g) (char **, int), char **p, ...)
2595 {
2596   char *s;
2597   va_list v;
2598   va_start (v,p);
2599   s = g (p, va_arg (v,int));
2600   va_end (v);
2601   return s;
2602 }
2603
2604 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2605    function prototypes and stuff, but not '\xHH' hex character constants.
2606    These don't provoke an error unfortunately, instead are silently treated
2607    as 'x'.  The following induces an error, until -std1 is added to get
2608    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2609    array size at least.  It's necessary to write '\x00'==0 to get something
2610    that's true only with -std1.  */
2611 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2612
2613 int test (int i, double x);
2614 struct s1 {int (*f) (int a);};
2615 struct s2 {int (*f) (double a);};
2616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617 int argc;
2618 char **argv;
2619 int
2620 main ()
2621 {
2622 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 # Don't try gcc -ansi; that turns off useful extensions and
2628 # breaks some systems' header files.
2629 # AIX                   -qlanglvl=ansi
2630 # Ultrix and OSF/1      -std1
2631 # HP-UX 10.20 and later -Ae
2632 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2633 # SVR4                  -Xc -D__EXTENSIONS__
2634 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2635 do
2636   CC="$ac_save_CC $ac_arg"
2637   rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>conftest.er1
2640   ac_status=$?
2641   grep -v '^ *+' conftest.er1 >conftest.err
2642   rm -f conftest.er1
2643   cat conftest.err >&5
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); } &&
2646          { ac_try='test -z "$ac_c_werror_flag"
2647                          || test ! -s conftest.err'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv_prog_cc_stdc=$ac_arg
2660 break
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 fi
2666 rm -f conftest.err conftest.$ac_objext
2667 done
2668 rm -f conftest.$ac_ext conftest.$ac_objext
2669 CC=$ac_save_CC
2670
2671 fi
2672
2673 case "x$ac_cv_prog_cc_stdc" in
2674   x|xno)
2675     echo "$as_me:$LINENO: result: none needed" >&5
2676 echo "${ECHO_T}none needed" >&6 ;;
2677   *)
2678     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2679 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2680     CC="$CC $ac_cv_prog_cc_stdc" ;;
2681 esac
2682
2683 # Some people use a C++ compiler to compile C.  Since we use `exit',
2684 # in C++ we need to declare it.  In case someone uses the same compiler
2685 # for both compiling C and C++ we need to have the C++ compiler decide
2686 # the declaration of exit, since it's the most demanding environment.
2687 cat >conftest.$ac_ext <<_ACEOF
2688 #ifndef __cplusplus
2689   choke me
2690 #endif
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"
2702                          || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   for ac_declaration in \
2715    '' \
2716    'extern "C" void std::exit (int) throw (); using std::exit;' \
2717    'extern "C" void std::exit (int); using std::exit;' \
2718    'extern "C" void exit (int) throw ();' \
2719    'extern "C" void exit (int);' \
2720    'void exit (int);'
2721 do
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728 $ac_declaration
2729 #include <stdlib.h>
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 continue
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 $ac_declaration
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   break
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 rm -f conftest*
2814 if test -n "$ac_declaration"; then
2815   echo '#ifdef __cplusplus' >>confdefs.h
2816   echo $ac_declaration      >>confdefs.h
2817   echo '#endif'             >>confdefs.h
2818 fi
2819
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 fi
2825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832 ac_ext=cc
2833 ac_cpp='$CXXCPP $CPPFLAGS'
2834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2839   do
2840     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2842 echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844 if test "${ac_cv_prog_CXX+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   if test -n "$CXX"; then
2848   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855   for ac_exec_ext in '' $ac_executable_extensions; do
2856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863
2864 fi
2865 fi
2866 CXX=$ac_cv_prog_CXX
2867 if test -n "$CXX"; then
2868   echo "$as_me:$LINENO: result: $CXX" >&5
2869 echo "${ECHO_T}$CXX" >&6
2870 else
2871   echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 fi
2874
2875     test -n "$CXX" && break
2876   done
2877 fi
2878 if test -z "$CXX"; then
2879   ac_ct_CXX=$CXX
2880   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2881 do
2882   # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   if test -n "$ac_ct_CXX"; then
2890   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897   for ac_exec_ext in '' $ac_executable_extensions; do
2898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     ac_cv_prog_ac_ct_CXX="$ac_prog"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905
2906 fi
2907 fi
2908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2909 if test -n "$ac_ct_CXX"; then
2910   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2911 echo "${ECHO_T}$ac_ct_CXX" >&6
2912 else
2913   echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2915 fi
2916
2917   test -n "$ac_ct_CXX" && break
2918 done
2919 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2920
2921   CXX=$ac_ct_CXX
2922 fi
2923
2924
2925 # Provide some information about the compiler.
2926 echo "$as_me:$LINENO:" \
2927      "checking for C++ compiler version" >&5
2928 ac_compiler=`set X $ac_compile; echo $2`
2929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2930   (eval $ac_compiler --version </dev/null >&5) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }
2934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2935   (eval $ac_compiler -v </dev/null >&5) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2940   (eval $ac_compiler -V </dev/null >&5) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }
2944
2945 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2946 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2947 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960 #ifndef __GNUC__
2961        choke me
2962 #endif
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970   (eval $ac_compile) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -z "$ac_cxx_werror_flag"
2978                          || test ! -s conftest.err'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_compiler_gnu=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ac_compiler_gnu=no
2996 fi
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000 fi
3001 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3003 GXX=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CXXFLAGS=${CXXFLAGS+set}
3005 ac_save_CXXFLAGS=$CXXFLAGS
3006 CXXFLAGS="-g"
3007 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3008 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3009 if test "${ac_cv_prog_cxx_g+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_cxx_werror_flag"
3037                          || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   ac_cv_prog_cxx_g=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 ac_cv_prog_cxx_g=no
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 fi
3058 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3059 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3060 if test "$ac_test_CXXFLAGS" = set; then
3061   CXXFLAGS=$ac_save_CXXFLAGS
3062 elif test $ac_cv_prog_cxx_g = yes; then
3063   if test "$GXX" = yes; then
3064     CXXFLAGS="-g -O2"
3065   else
3066     CXXFLAGS="-g"
3067   fi
3068 else
3069   if test "$GXX" = yes; then
3070     CXXFLAGS="-O2"
3071   else
3072     CXXFLAGS=
3073   fi
3074 fi
3075 for ac_declaration in \
3076    '' \
3077    'extern "C" void std::exit (int) throw (); using std::exit;' \
3078    'extern "C" void std::exit (int); using std::exit;' \
3079    'extern "C" void exit (int) throw ();' \
3080    'extern "C" void exit (int);' \
3081    'void exit (int);'
3082 do
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089 $ac_declaration
3090 #include <stdlib.h>
3091 int
3092 main ()
3093 {
3094 exit (42);
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_cxx_werror_flag"
3109                          || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   :
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 continue
3127 fi
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 $ac_declaration
3136 int
3137 main ()
3138 {
3139 exit (42);
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3146   (eval $ac_compile) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -z "$ac_cxx_werror_flag"
3154                          || test ! -s conftest.err'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   break
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 fi
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 done
3174 rm -f conftest*
3175 if test -n "$ac_declaration"; then
3176   echo '#ifdef __cplusplus' >>confdefs.h
3177   echo $ac_declaration      >>confdefs.h
3178   echo '#endif'             >>confdefs.h
3179 fi
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187 CXXFLAGS="$save_CXXFLAGS"
3188
3189
3190
3191
3192
3193 am__api_version="1.9"
3194 # Find a good install program.  We prefer a C program (faster),
3195 # so one script is as good as another.  But avoid the broken or
3196 # incompatible versions:
3197 # SysV /etc/install, /usr/sbin/install
3198 # SunOS /usr/etc/install
3199 # IRIX /sbin/install
3200 # AIX /bin/install
3201 # AmigaOS /C/install, which installs bootblocks on floppy discs
3202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3205 # OS/2's system install, which has a completely different semantic
3206 # ./install, which can be erroneously created by make from ./install.sh.
3207 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3208 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   # Account for people who put trailing slashes in PATH elements.
3219 case $as_dir/ in
3220   ./ | .// | /cC/* | \
3221   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3223   /usr/ucb/* ) ;;
3224   *)
3225     # OSF1 and SCO ODT 3.0 have their own names for install.
3226     # Don't use installbsd from OSF since it installs stuff as root
3227     # by default.
3228     for ac_prog in ginstall scoinst install; do
3229       for ac_exec_ext in '' $ac_executable_extensions; do
3230         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3231           if test $ac_prog = install &&
3232             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233             # AIX install.  It has an incompatible calling convention.
3234             :
3235           elif test $ac_prog = install &&
3236             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237             # program-specific install script used by HP pwplus--don't use.
3238             :
3239           else
3240             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3241             break 3
3242           fi
3243         fi
3244       done
3245     done
3246     ;;
3247 esac
3248 done
3249
3250
3251 fi
3252   if test "${ac_cv_path_install+set}" = set; then
3253     INSTALL=$ac_cv_path_install
3254   else
3255     # As a last resort, use the slow shell script.  We don't cache a
3256     # path for INSTALL within a source directory, because that will
3257     # break other packages using the cache if that directory is
3258     # removed, or if the path is relative.
3259     INSTALL=$ac_install_sh
3260   fi
3261 fi
3262 echo "$as_me:$LINENO: result: $INSTALL" >&5
3263 echo "${ECHO_T}$INSTALL" >&6
3264
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3272
3273 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3274 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3275 # Just in case
3276 sleep 1
3277 echo timestamp > conftest.file
3278 # Do `set' in a subshell so we don't clobber the current shell's
3279 # arguments.  Must try -L first in case configure is actually a
3280 # symlink; some systems play weird games with the mod time of symlinks
3281 # (eg FreeBSD returns the mod time of the symlink's containing
3282 # directory).
3283 if (
3284    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3285    if test "$*" = "X"; then
3286       # -L didn't work.
3287       set X `ls -t $srcdir/configure conftest.file`
3288    fi
3289    rm -f conftest.file
3290    if test "$*" != "X $srcdir/configure conftest.file" \
3291       && test "$*" != "X conftest.file $srcdir/configure"; then
3292
3293       # If neither matched, then we have a broken ls.  This can happen
3294       # if, for instance, CONFIG_SHELL is bash and it inherits a
3295       # broken ls alias from the environment.  This has actually
3296       # happened.  Such a system could not be considered "sane".
3297       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3298 alias in your environment" >&5
3299 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3300 alias in your environment" >&2;}
3301    { (exit 1); exit 1; }; }
3302    fi
3303
3304    test "$2" = conftest.file
3305    )
3306 then
3307    # Ok.
3308    :
3309 else
3310    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3311 Check your system clock" >&5
3312 echo "$as_me: error: newly created file is older than distributed files!
3313 Check your system clock" >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316 echo "$as_me:$LINENO: result: yes" >&5
3317 echo "${ECHO_T}yes" >&6
3318 test "$program_prefix" != NONE &&
3319   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3320 # Use a double $ so make ignores it.
3321 test "$program_suffix" != NONE &&
3322   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3323 # Double any \ or $.  echo might interpret backslashes.
3324 # By default was `s,x,x', remove it if useless.
3325 cat <<\_ACEOF >conftest.sed
3326 s/[\\$]/&&/g;s/;s,x,x,$//
3327 _ACEOF
3328 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3329 rm conftest.sed
3330
3331 # expand $ac_aux_dir to an absolute path
3332 am_aux_dir=`cd $ac_aux_dir && pwd`
3333
3334 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3335 # Use eval to expand $SHELL
3336 if eval "$MISSING --run true"; then
3337   am_missing_run="$MISSING --run "
3338 else
3339   am_missing_run=
3340   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3341 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3342 fi
3343
3344 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3345   # We used to keeping the `.' as first argument, in order to
3346   # allow $(mkdir_p) to be used without argument.  As in
3347   #   $(mkdir_p) $(somedir)
3348   # where $(somedir) is conditionally defined.  However this is wrong
3349   # for two reasons:
3350   #  1. if the package is installed by a user who cannot write `.'
3351   #     make install will fail,
3352   #  2. the above comment should most certainly read
3353   #     $(mkdir_p) $(DESTDIR)$(somedir)
3354   #     so it does not work when $(somedir) is undefined and
3355   #     $(DESTDIR) is not.
3356   #  To support the latter case, we have to write
3357   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3358   #  so the `.' trick is pointless.
3359   mkdir_p='mkdir -p --'
3360 else
3361   # On NextStep and OpenStep, the `mkdir' command does not
3362   # recognize any option.  It will interpret all options as
3363   # directories to create, and then abort because `.' already
3364   # exists.
3365   for d in ./-p ./--version;
3366   do
3367     test -d $d && rmdir $d
3368   done
3369   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3370   if test -f "$ac_aux_dir/mkinstalldirs"; then
3371     mkdir_p='$(mkinstalldirs)'
3372   else
3373     mkdir_p='$(install_sh) -d'
3374   fi
3375 fi
3376
3377 for ac_prog in gawk mawk nawk awk
3378 do
3379   # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_AWK+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$AWK"; then
3387   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_AWK="$ac_prog"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403 fi
3404 fi
3405 AWK=$ac_cv_prog_AWK
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   test -n "$AWK" && break
3415 done
3416
3417 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3418 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3419 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3420 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.make <<\_ACEOF
3424 all:
3425         @echo 'ac_maketemp="$(MAKE)"'
3426 _ACEOF
3427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3428 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3429 if test -n "$ac_maketemp"; then
3430   eval ac_cv_prog_make_${ac_make}_set=yes
3431 else
3432   eval ac_cv_prog_make_${ac_make}_set=no
3433 fi
3434 rm -f conftest.make
3435 fi
3436 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3437   echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3439   SET_MAKE=
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443   SET_MAKE="MAKE=${MAKE-make}"
3444 fi
3445
3446 rm -rf .tst 2>/dev/null
3447 mkdir .tst 2>/dev/null
3448 if test -d .tst; then
3449   am__leading_dot=.
3450 else
3451   am__leading_dot=_
3452 fi
3453 rmdir .tst 2>/dev/null
3454
3455 DEPDIR="${am__leading_dot}deps"
3456
3457           ac_config_commands="$ac_config_commands depfiles"
3458
3459
3460 am_make=${MAKE-make}
3461 cat > confinc << 'END'
3462 am__doit:
3463         @echo done
3464 .PHONY: am__doit
3465 END
3466 # If we don't find an include directive, just comment out the code.
3467 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3468 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3469 am__include="#"
3470 am__quote=
3471 _am_result=none
3472 # First try GNU make style include.
3473 echo "include confinc" > confmf
3474 # We grep out `Entering directory' and `Leaving directory'
3475 # messages which can occur if `w' ends up in MAKEFLAGS.
3476 # In particular we don't look at `^make:' because GNU make might
3477 # be invoked under some other name (usually "gmake"), in which
3478 # case it prints its new name instead of `make'.
3479 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3480    am__include=include
3481    am__quote=
3482    _am_result=GNU
3483 fi
3484 # Now try BSD make style include.
3485 if test "$am__include" = "#"; then
3486    echo '.include "confinc"' > confmf
3487    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3488       am__include=.include
3489       am__quote="\""
3490       _am_result=BSD
3491    fi
3492 fi
3493
3494
3495 echo "$as_me:$LINENO: result: $_am_result" >&5
3496 echo "${ECHO_T}$_am_result" >&6
3497 rm -f confinc confmf
3498
3499 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3500 if test "${enable_dependency_tracking+set}" = set; then
3501   enableval="$enable_dependency_tracking"
3502
3503 fi;
3504 if test "x$enable_dependency_tracking" != xno; then
3505   am_depcomp="$ac_aux_dir/depcomp"
3506   AMDEPBACKSLASH='\'
3507 fi
3508
3509
3510 if test "x$enable_dependency_tracking" != xno; then
3511   AMDEP_TRUE=
3512   AMDEP_FALSE='#'
3513 else
3514   AMDEP_TRUE='#'
3515   AMDEP_FALSE=
3516 fi
3517
3518
3519
3520 # test to see if srcdir already configured
3521 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3522    test -f $srcdir/config.status; then
3523   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3524 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528 # test whether we have cygpath
3529 if test -z "$CYGPATH_W"; then
3530   if (cygpath --version) >/dev/null 2>/dev/null; then
3531     CYGPATH_W='cygpath -w'
3532   else
3533     CYGPATH_W=echo
3534   fi
3535 fi
3536
3537
3538 # Define the identity of the package.
3539  PACKAGE='libjava'
3540  VERSION='version-unused'
3541
3542
3543 cat >>confdefs.h <<_ACEOF
3544 #define PACKAGE "$PACKAGE"
3545 _ACEOF
3546
3547
3548 cat >>confdefs.h <<_ACEOF
3549 #define VERSION "$VERSION"
3550 _ACEOF
3551
3552 # Some tools Automake needs.
3553
3554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3555
3556
3557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3558
3559
3560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3561
3562
3563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3564
3565
3566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3567
3568 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3569
3570 # Installed binaries are usually stripped using `strip' when the user
3571 # run `make install-strip'.  However `strip' might not be the right
3572 # tool to use in cross-compilation environments, therefore Automake
3573 # will honor the `STRIP' environment variable to overrule this program.
3574 if test "$cross_compiling" != no; then
3575   if test -n "$ac_tool_prefix"; then
3576   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}strip; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_STRIP+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$STRIP"; then
3584   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600 fi
3601 fi
3602 STRIP=$ac_cv_prog_STRIP
3603 if test -n "$STRIP"; then
3604   echo "$as_me:$LINENO: result: $STRIP" >&5
3605 echo "${ECHO_T}$STRIP" >&6
3606 else
3607   echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 fi
3610
3611 fi
3612 if test -z "$ac_cv_prog_STRIP"; then
3613   ac_ct_STRIP=$STRIP
3614   # Extract the first word of "strip", so it can be a program name with args.
3615 set dummy strip; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test -n "$ac_ct_STRIP"; then
3622   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629   for ac_exec_ext in '' $ac_executable_extensions; do
3630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631     ac_cv_prog_ac_ct_STRIP="strip"
3632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636 done
3637
3638   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3639 fi
3640 fi
3641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3642 if test -n "$ac_ct_STRIP"; then
3643   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3644 echo "${ECHO_T}$ac_ct_STRIP" >&6
3645 else
3646   echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650   STRIP=$ac_ct_STRIP
3651 else
3652   STRIP="$ac_cv_prog_STRIP"
3653 fi
3654
3655 fi
3656 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3657
3658 # We need awk for the "check" target.  The system "awk" is bad on
3659 # some platforms.
3660 # Always define AMTAR for backward compatibility.
3661
3662 AMTAR=${AMTAR-"${am_missing_run}tar"}
3663
3664 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3665
3666
3667
3668
3669 depcc="$CC"   am_compiler_list=
3670
3671 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3672 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3673 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677   # We make a subdir and do the tests there.  Otherwise we can end up
3678   # making bogus files that we don't know about and never remove.  For
3679   # instance it was reported that on HP-UX the gcc test will end up
3680   # making a dummy file named `D' -- because `-MD' means `put the output
3681   # in D'.
3682   mkdir conftest.dir
3683   # Copy depcomp to subdir because otherwise we won't find it if we're
3684   # using a relative directory.
3685   cp "$am_depcomp" conftest.dir
3686   cd conftest.dir
3687   # We will build objects and dependencies in a subdirectory because
3688   # it helps to detect inapplicable dependency modes.  For instance
3689   # both Tru64's cc and ICC support -MD to output dependencies as a
3690   # side effect of compilation, but ICC will put the dependencies in
3691   # the current directory while Tru64 will put them in the object
3692   # directory.
3693   mkdir sub
3694
3695   am_cv_CC_dependencies_compiler_type=none
3696   if test "$am_compiler_list" = ""; then
3697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698   fi
3699   for depmode in $am_compiler_list; do
3700     # Setup a source with many dependencies, because some compilers
3701     # like to wrap large dependency lists on column 80 (with \), and
3702     # we should not choose a depcomp mode which is confused by this.
3703     #
3704     # We need to recreate these files for each test, as the compiler may
3705     # overwrite some of them when testing with obscure command lines.
3706     # This happens at least with the AIX C compiler.
3707     : > sub/conftest.c
3708     for i in 1 2 3 4 5 6; do
3709       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3710       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3711       # Solaris 8's {/usr,}/bin/sh.
3712       touch sub/conftst$i.h
3713     done
3714     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3715
3716     case $depmode in
3717     nosideeffect)
3718       # after this tag, mechanisms are not by side-effect, so they'll
3719       # only be used when explicitly requested
3720       if test "x$enable_dependency_tracking" = xyes; then
3721         continue
3722       else
3723         break
3724       fi
3725       ;;
3726     none) break ;;
3727     esac
3728     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3729     # mode.  It turns out that the SunPro C++ compiler does not properly
3730     # handle `-M -o', and we need to detect this.
3731     if depmode=$depmode \
3732        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3733        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3734        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3735          >/dev/null 2>conftest.err &&
3736        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3738        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739       # icc doesn't choke on unknown options, it will just issue warnings
3740       # or remarks (even with -Werror).  So we grep stderr for any message
3741       # that says an option was ignored or not supported.
3742       # When given -MP, icc 7.0 and 7.1 complain thusly:
3743       #   icc: Command line warning: ignoring option '-M'; no argument required
3744       # The diagnosis changed in icc 8.0:
3745       #   icc: Command line remark: option '-MP' not supported
3746       if (grep 'ignoring option' conftest.err ||
3747           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748         am_cv_CC_dependencies_compiler_type=$depmode
3749         break
3750       fi
3751     fi
3752   done
3753
3754   cd ..
3755   rm -rf conftest.dir
3756 else
3757   am_cv_CC_dependencies_compiler_type=none
3758 fi
3759
3760 fi
3761 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3762 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764
3765
3766
3767 if
3768   test "x$enable_dependency_tracking" != xno \
3769   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3770   am__fastdepCC_TRUE=
3771   am__fastdepCC_FALSE='#'
3772 else
3773   am__fastdepCC_TRUE='#'
3774   am__fastdepCC_FALSE=
3775 fi
3776
3777
3778 depcc="$CXX"  am_compiler_list=
3779
3780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3782 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786   # We make a subdir and do the tests there.  Otherwise we can end up
3787   # making bogus files that we don't know about and never remove.  For
3788   # instance it was reported that on HP-UX the gcc test will end up
3789   # making a dummy file named `D' -- because `-MD' means `put the output
3790   # in D'.
3791   mkdir conftest.dir
3792   # Copy depcomp to subdir because otherwise we won't find it if we're
3793   # using a relative directory.
3794   cp "$am_depcomp" conftest.dir
3795   cd conftest.dir
3796   # We will build objects and dependencies in a subdirectory because
3797   # it helps to detect inapplicable dependency modes.  For instance
3798   # both Tru64's cc and ICC support -MD to output dependencies as a
3799   # side effect of compilation, but ICC will put the dependencies in
3800   # the current directory while Tru64 will put them in the object
3801   # directory.
3802   mkdir sub
3803
3804   am_cv_CXX_dependencies_compiler_type=none
3805   if test "$am_compiler_list" = ""; then
3806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807   fi
3808   for depmode in $am_compiler_list; do
3809     # Setup a source with many dependencies, because some compilers
3810     # like to wrap large dependency lists on column 80 (with \), and
3811     # we should not choose a depcomp mode which is confused by this.
3812     #
3813     # We need to recreate these files for each test, as the compiler may
3814     # overwrite some of them when testing with obscure command lines.
3815     # This happens at least with the AIX C compiler.
3816     : > sub/conftest.c
3817     for i in 1 2 3 4 5 6; do
3818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820       # Solaris 8's {/usr,}/bin/sh.
3821       touch sub/conftst$i.h
3822     done
3823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825     case $depmode in
3826     nosideeffect)
3827       # after this tag, mechanisms are not by side-effect, so they'll
3828       # only be used when explicitly requested
3829       if test "x$enable_dependency_tracking" = xyes; then
3830         continue
3831       else
3832         break
3833       fi
3834       ;;
3835     none) break ;;
3836     esac
3837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838     # mode.  It turns out that the SunPro C++ compiler does not properly
3839     # handle `-M -o', and we need to detect this.
3840     if depmode=$depmode \
3841        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3842        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3844          >/dev/null 2>conftest.err &&
3845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848       # icc doesn't choke on unknown options, it will just issue warnings
3849       # or remarks (even with -Werror).  So we grep stderr for any message
3850       # that says an option was ignored or not supported.
3851       # When given -MP, icc 7.0 and 7.1 complain thusly:
3852       #   icc: Command line warning: ignoring option '-M'; no argument required
3853       # The diagnosis changed in icc 8.0:
3854       #   icc: Command line remark: option '-MP' not supported
3855       if (grep 'ignoring option' conftest.err ||
3856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857         am_cv_CXX_dependencies_compiler_type=$depmode
3858         break
3859       fi
3860     fi
3861   done
3862
3863   cd ..
3864   rm -rf conftest.dir
3865 else
3866   am_cv_CXX_dependencies_compiler_type=none
3867 fi
3868
3869 fi
3870 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3871 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3872 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3873
3874
3875
3876 if
3877   test "x$enable_dependency_tracking" != xno \
3878   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3879   am__fastdepCXX_TRUE=
3880   am__fastdepCXX_FALSE='#'
3881 else
3882   am__fastdepCXX_TRUE='#'
3883   am__fastdepCXX_FALSE=
3884 fi
3885
3886
3887
3888
3889 if test -n "$ac_tool_prefix"; then
3890   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}as; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_AS+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   if test -n "$AS"; then
3898   ac_cv_prog_AS="$AS" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905   for ac_exec_ext in '' $ac_executable_extensions; do
3906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907     ac_cv_prog_AS="${ac_tool_prefix}as"
3908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909     break 2
3910   fi
3911 done
3912 done
3913
3914 fi
3915 fi
3916 AS=$ac_cv_prog_AS
3917 if test -n "$AS"; then
3918   echo "$as_me:$LINENO: result: $AS" >&5
3919 echo "${ECHO_T}$AS" >&6
3920 else
3921   echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923 fi
3924
3925 fi
3926 if test -z "$ac_cv_prog_AS"; then
3927   ac_ct_AS=$AS
3928   # Extract the first word of "as", so it can be a program name with args.
3929 set dummy as; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   if test -n "$ac_ct_AS"; then
3936   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_exec_ext in '' $ac_executable_extensions; do
3944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_ac_ct_AS="as"
3946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950 done
3951
3952 fi
3953 fi
3954 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3955 if test -n "$ac_ct_AS"; then
3956   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3957 echo "${ECHO_T}$ac_ct_AS" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963   AS=$ac_ct_AS
3964 else
3965   AS="$ac_cv_prog_AS"
3966 fi
3967
3968 if test -n "$ac_tool_prefix"; then
3969   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ld; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_LD+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$LD"; then
3977   ac_cv_prog_LD="$LD" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_LD="${ac_tool_prefix}ld"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 LD=$ac_cv_prog_LD
3996 if test -n "$LD"; then
3997   echo "$as_me:$LINENO: result: $LD" >&5
3998 echo "${ECHO_T}$LD" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004 fi
4005 if test -z "$ac_cv_prog_LD"; then
4006   ac_ct_LD=$LD
4007   # Extract the first word of "ld", so it can be a program name with args.
4008 set dummy ld; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$ac_ct_LD"; then
4015   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_ac_ct_LD="ld"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4034 if test -n "$ac_ct_LD"; then
4035   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4036 echo "${ECHO_T}$ac_ct_LD" >&6
4037 else
4038   echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042   LD=$ac_ct_LD
4043 else
4044   LD="$ac_cv_prog_LD"
4045 fi
4046
4047 if test -n "$ac_tool_prefix"; then
4048   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}ar; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_AR+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   if test -n "$AR"; then
4056   ac_cv_prog_AR="$AR" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063   for ac_exec_ext in '' $ac_executable_extensions; do
4064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065     ac_cv_prog_AR="${ac_tool_prefix}ar"
4066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070 done
4071
4072 fi
4073 fi
4074 AR=$ac_cv_prog_AR
4075 if test -n "$AR"; then
4076   echo "$as_me:$LINENO: result: $AR" >&5
4077 echo "${ECHO_T}$AR" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 fi
4084 if test -z "$ac_cv_prog_AR"; then
4085   ac_ct_AR=$AR
4086   # Extract the first word of "ar", so it can be a program name with args.
4087 set dummy ar; ac_word=$2
4088 echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   if test -n "$ac_ct_AR"; then
4094   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101   for ac_exec_ext in '' $ac_executable_extensions; do
4102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_ac_ct_AR="ar"
4104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108 done
4109
4110 fi
4111 fi
4112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4113 if test -n "$ac_ct_AR"; then
4114   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4115 echo "${ECHO_T}$ac_ct_AR" >&6
4116 else
4117   echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4119 fi
4120
4121   AR=$ac_ct_AR
4122 else
4123   AR="$ac_cv_prog_AR"
4124 fi
4125
4126 if test -n "$ac_tool_prefix"; then
4127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_prog_RANLIB+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   if test -n "$RANLIB"; then
4135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142   for ac_exec_ext in '' $ac_executable_extensions; do
4143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149 done
4150
4151 fi
4152 fi
4153 RANLIB=$ac_cv_prog_RANLIB
4154 if test -n "$RANLIB"; then
4155   echo "$as_me:$LINENO: result: $RANLIB" >&5
4156 echo "${ECHO_T}$RANLIB" >&6
4157 else
4158   echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162 fi
4163 if test -z "$ac_cv_prog_RANLIB"; then
4164   ac_ct_RANLIB=$RANLIB
4165   # Extract the first word of "ranlib", so it can be a program name with args.
4166 set dummy ranlib; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -n "$ac_ct_RANLIB"; then
4173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_ac_ct_RANLIB="ranlib"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188
4189   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4190 fi
4191 fi
4192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4193 if test -n "$ac_ct_RANLIB"; then
4194   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201   RANLIB=$ac_ct_RANLIB
4202 else
4203   RANLIB="$ac_cv_prog_RANLIB"
4204 fi
4205
4206 for ac_prog in gawk mawk nawk awk
4207 do
4208   # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212 if test "${ac_cv_prog_AWK+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   if test -n "$AWK"; then
4216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   for ac_exec_ext in '' $ac_executable_extensions; do
4224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225     ac_cv_prog_AWK="$ac_prog"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231
4232 fi
4233 fi
4234 AWK=$ac_cv_prog_AWK
4235 if test -n "$AWK"; then
4236   echo "$as_me:$LINENO: result: $AWK" >&5
4237 echo "${ECHO_T}$AWK" >&6
4238 else
4239   echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241 fi
4242
4243   test -n "$AWK" && break
4244 done
4245
4246 for ac_prog in jar fastjar gjar
4247 do
4248   # Extract the first word of "$ac_prog", so it can be a program name with args.
4249 set dummy $ac_prog; ac_word=$2
4250 echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252 if test "${ac_cv_prog_JAR+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$JAR"; then
4256   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265     ac_cv_prog_JAR="$ac_prog"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271
4272 fi
4273 fi
4274 JAR=$ac_cv_prog_JAR
4275 if test -n "$JAR"; then
4276   echo "$as_me:$LINENO: result: $JAR" >&5
4277 echo "${ECHO_T}$JAR" >&6
4278 else
4279   echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4281 fi
4282
4283   test -n "$JAR" && break
4284 done
4285 test -n "$JAR" || JAR="no"
4286
4287 # Extract the first word of "zip", so it can be a program name with args.
4288 set dummy zip; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_path_ZIP+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   case $ZIP in
4295   [\\/]* | ?:[\\/]*)
4296   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4297   ;;
4298   *)
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4314   ;;
4315 esac
4316 fi
4317 ZIP=$ac_cv_path_ZIP
4318
4319 if test -n "$ZIP"; then
4320   echo "$as_me:$LINENO: result: $ZIP" >&5
4321 echo "${ECHO_T}$ZIP" >&6
4322 else
4323   echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325 fi
4326
4327 # Extract the first word of "unzip", so it can be a program name with args.
4328 set dummy unzip; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_path_UNZIP+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $UNZIP in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352
4353   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4354   ;;
4355 esac
4356 fi
4357 UNZIP=$ac_cv_path_UNZIP
4358
4359 if test -n "$UNZIP"; then
4360   echo "$as_me:$LINENO: result: $UNZIP" >&5
4361 echo "${ECHO_T}$UNZIP" >&6
4362 else
4363   echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 # We need a jar that supports -@.  This is a GNU extension.
4369 if test "$JAR" != no; then
4370    rm -f config-test.jar
4371    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4372    if test -f config-test.jar; then
4373      rm -f config-test.jar
4374    else
4375      JAR=no
4376    fi
4377 fi
4378
4379 # Prefer the jar we found, but fall back to our jar script.
4380 if test "$JAR" = no; then
4381   if test "$ZIP" = no; then
4382     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4383 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4384    { (exit 1); exit 1; }; }
4385   else
4386     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4387     JAR=`pwd`/scripts/jar
4388   fi
4389 fi
4390
4391 # Find a good install program.  We prefer a C program (faster),
4392 # so one script is as good as another.  But avoid the broken or
4393 # incompatible versions:
4394 # SysV /etc/install, /usr/sbin/install
4395 # SunOS /usr/etc/install
4396 # IRIX /sbin/install
4397 # AIX /bin/install
4398 # AmigaOS /C/install, which installs bootblocks on floppy discs
4399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4402 # OS/2's system install, which has a completely different semantic
4403 # ./install, which can be erroneously created by make from ./install.sh.
4404 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4405 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4406 if test -z "$INSTALL"; then
4407 if test "${ac_cv_path_install+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413   IFS=$as_save_IFS
4414   test -z "$as_dir" && as_dir=.
4415   # Account for people who put trailing slashes in PATH elements.
4416 case $as_dir/ in
4417   ./ | .// | /cC/* | \
4418   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4419   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4420   /usr/ucb/* ) ;;
4421   *)
4422     # OSF1 and SCO ODT 3.0 have their own names for install.
4423     # Don't use installbsd from OSF since it installs stuff as root
4424     # by default.
4425     for ac_prog in ginstall scoinst install; do
4426       for ac_exec_ext in '' $ac_executable_extensions; do
4427         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4428           if test $ac_prog = install &&
4429             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430             # AIX install.  It has an incompatible calling convention.
4431             :
4432           elif test $ac_prog = install &&
4433             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4434             # program-specific install script used by HP pwplus--don't use.
4435             :
4436           else
4437             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438             break 3
4439           fi
4440         fi
4441       done
4442     done
4443     ;;
4444 esac
4445 done
4446
4447
4448 fi
4449   if test "${ac_cv_path_install+set}" = set; then
4450     INSTALL=$ac_cv_path_install
4451   else
4452     # As a last resort, use the slow shell script.  We don't cache a
4453     # path for INSTALL within a source directory, because that will
4454     # break other packages using the cache if that directory is
4455     # removed, or if the path is relative.
4456     INSTALL=$ac_install_sh
4457   fi
4458 fi
4459 echo "$as_me:$LINENO: result: $INSTALL" >&5
4460 echo "${ECHO_T}$INSTALL" >&6
4461
4462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4463 # It thinks the first close brace ends the variable substitution.
4464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4465
4466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4467
4468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4469
4470
4471 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4472 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4473     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4474 if test "${enable_maintainer_mode+set}" = set; then
4475   enableval="$enable_maintainer_mode"
4476   USE_MAINTAINER_MODE=$enableval
4477 else
4478   USE_MAINTAINER_MODE=no
4479 fi;
4480   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4481 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4482
4483
4484 if test $USE_MAINTAINER_MODE = yes; then
4485   MAINTAINER_MODE_TRUE=
4486   MAINTAINER_MODE_FALSE='#'
4487 else
4488   MAINTAINER_MODE_TRUE='#'
4489   MAINTAINER_MODE_FALSE=
4490 fi
4491
4492   MAINT=$MAINTAINER_MODE_TRUE
4493
4494
4495
4496
4497
4498 # configure.host sets the following important variables
4499 #       libgcj_cflags    - host specific C compiler flags
4500 #       libgcj_cxxflags  - host specific C++ compiler flags
4501 #       libgcj_javaflags - host specific Java compiler flags
4502
4503 libgcj_cflags=
4504 libgcj_cxxflags=
4505 libgcj_javaflags=
4506
4507 . ${srcdir}/configure.host
4508
4509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4516   acl_cv_prog_gnu_ld=yes
4517 else
4518   acl_cv_prog_gnu_ld=no
4519 fi
4520 fi
4521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4523 with_gnu_ld=$acl_cv_prog_gnu_ld
4524
4525 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4526 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4527 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530
4531 acl_cv_prog_gnu_ld_symbolic=no
4532
4533 if test x"$with_gnu_ld" = x"yes"; then
4534   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4535     acl_cv_prog_gnu_ld_symbolic=yes
4536   fi
4537 fi
4538 fi
4539 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4540 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4541 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4542   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4543 else
4544   SYMBOLIC_LDFLAGS=''
4545 fi
4546
4547 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4548 if test -z "$libgcj_ld_symbolic"; then
4549   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4550 fi
4551
4552 LIBGCJ_CFLAGS="${libgcj_cflags}"
4553 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4554 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4555 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4556 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4557
4558
4559
4560
4561
4562
4563 # Only use libltdl for non-newlib builds.
4564 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4565    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4567 library_names_spec=
4568 libname_spec='lib$name'
4569 soname_spec=
4570 shrext=".so"
4571 postinstall_cmds=
4572 postuninstall_cmds=
4573 finish_cmds=
4574 finish_eval=
4575 shlibpath_var=
4576 shlibpath_overrides_runpath=unknown
4577 version_type=none
4578 dynamic_linker="$host_os ld.so"
4579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4580 if test "$GCC" = yes; then
4581   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4582   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4583     # if the path contains ";" then we assume it to be the separator
4584     # otherwise default to the standard path separator (i.e. ":") - it is
4585     # assumed that no part of a normal pathname contains ";" but that should
4586     # okay in the real world where ";" in dirpaths is itself problematic.
4587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4588   else
4589     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4590   fi
4591 else
4592   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4593 fi
4594 need_lib_prefix=unknown
4595 hardcode_into_libs=no
4596
4597 # when you set need_version to no, make sure it does not cause -set_version
4598 # flags to be left without arguments
4599 need_version=unknown
4600
4601 case $host_os in
4602 aix3*)
4603   version_type=linux
4604   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4605   shlibpath_var=LIBPATH
4606
4607   # AIX 3 has no versioning support, so we append a major version to the name.
4608   soname_spec='${libname}${release}${shared_ext}$major'
4609   ;;
4610
4611 aix4* | aix5*)
4612   version_type=linux
4613   need_lib_prefix=no
4614   need_version=no
4615   hardcode_into_libs=yes
4616   if test "$host_cpu" = ia64; then
4617     # AIX 5 supports IA64
4618     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4619     shlibpath_var=LD_LIBRARY_PATH
4620   else
4621     # With GCC up to 2.95.x, collect2 would create an import file
4622     # for dependence libraries.  The import file would start with
4623     # the line `#! .'.  This would cause the generated library to
4624     # depend on `.', always an invalid library.  This was fixed in
4625     # development snapshots of GCC prior to 3.0.
4626     case $host_os in
4627       aix4 | aix4.[01] | aix4.[01].*)
4628       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4629            echo ' yes '
4630            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4631         :
4632       else
4633         can_build_shared=no
4634       fi
4635       ;;
4636     esac
4637     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4638     # soname into executable. Probably we can add versioning support to
4639     # collect2, so additional links can be useful in future.
4640     if test "$aix_use_runtimelinking" = yes; then
4641       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4642       # instead of lib<name>.a to let people know that these are not
4643       # typical AIX shared libraries.
4644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4645     else
4646       # We preserve .a as extension for shared libraries through AIX4.2
4647       # and later when we are not doing run time linking.
4648       library_names_spec='${libname}${release}.a $libname.a'
4649       soname_spec='${libname}${release}${shared_ext}$major'
4650     fi
4651     shlibpath_var=LIBPATH
4652   fi
4653   ;;
4654
4655 amigaos*)
4656   library_names_spec='$libname.ixlibrary $libname.a'
4657   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4658   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'
4659   ;;
4660
4661 beos*)
4662   library_names_spec='${libname}${shared_ext}'
4663   dynamic_linker="$host_os ld.so"
4664   shlibpath_var=LIBRARY_PATH
4665   ;;
4666
4667 bsdi4*)
4668   version_type=linux
4669   need_version=no
4670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4671   soname_spec='${libname}${release}${shared_ext}$major'
4672   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4673   shlibpath_var=LD_LIBRARY_PATH
4674   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4675   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4676   # the default ld.so.conf also contains /usr/contrib/lib and
4677   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4678   # libtool to hard-code these into programs
4679   ;;
4680
4681 cygwin* | mingw* | pw32*)
4682   version_type=windows
4683   shrext=".dll"
4684   need_version=no
4685   need_lib_prefix=no
4686
4687   case $GCC,$host_os in
4688   yes,cygwin* | yes,mingw* | yes,pw32*)
4689     library_names_spec='$libname.dll.a'
4690     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4691     postinstall_cmds='base_file=`basename \${file}`~
4692       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4693       dldir=$destdir/`dirname \$dlpath`~
4694       test -d \$dldir || mkdir -p \$dldir~
4695       $install_prog $dir/$dlname \$dldir/$dlname'
4696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4697       dlpath=$dir/\$dldll~
4698        $rm \$dlpath'
4699     shlibpath_overrides_runpath=yes
4700
4701     case $host_os in
4702     cygwin*)
4703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4705       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4706       ;;
4707     mingw*)
4708       # MinGW DLLs use traditional 'lib' prefix
4709       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4710       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4711       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4712         # It is most probably a Windows format PATH printed by
4713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4714         # path with ; separators, and with drive letters. We can handle the
4715         # drive letters (cygwin fileutils understands them), so leave them,
4716         # especially as we might pass files found there to a mingw objdump,
4717         # which wouldn't understand a cygwinified path. Ahh.
4718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4719       else
4720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4721       fi
4722       ;;
4723     pw32*)
4724       # pw32 DLLs use 'pw' prefix rather than 'lib'
4725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4726       ;;
4727     esac
4728     ;;
4729
4730   *)
4731     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4732     ;;
4733   esac
4734   dynamic_linker='Win32 ld.exe'
4735   # FIXME: first we should search . and the directory the executable is in
4736   shlibpath_var=PATH
4737   ;;
4738
4739 darwin* | rhapsody*)
4740   dynamic_linker="$host_os dyld"
4741   version_type=darwin
4742   need_lib_prefix=no
4743   need_version=no
4744   # FIXME: Relying on posixy $() will cause problems for
4745   #        cross-compilation, but unfortunately the echo tests do not
4746   #        yet detect zsh echo's removal of \ escapes.
4747   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4748   soname_spec='${libname}${release}${major}$shared_ext'
4749   shlibpath_overrides_runpath=yes
4750   shlibpath_var=DYLD_LIBRARY_PATH
4751   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4752   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4753   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4754   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4755   fi
4756   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4757   ;;
4758
4759 dgux*)
4760   version_type=linux
4761   need_lib_prefix=no
4762   need_version=no
4763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4764   soname_spec='${libname}${release}${shared_ext}$major'
4765   shlibpath_var=LD_LIBRARY_PATH
4766   ;;
4767
4768 freebsd1*)
4769   dynamic_linker=no
4770   ;;
4771
4772 freebsd*)
4773   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4774   version_type=freebsd-$objformat
4775   case $version_type in
4776     freebsd-elf*)
4777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4778       need_version=no
4779       need_lib_prefix=no
4780       ;;
4781     freebsd-*)
4782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4783       need_version=yes
4784       ;;
4785   esac
4786   shlibpath_var=LD_LIBRARY_PATH
4787   case $host_os in
4788   freebsd2*)
4789     shlibpath_overrides_runpath=yes
4790     ;;
4791   freebsd3.01* | freebsdelf3.01*)
4792     shlibpath_overrides_runpath=yes
4793     hardcode_into_libs=yes
4794     ;;
4795   *) # from 3.2 on
4796     shlibpath_overrides_runpath=no
4797     hardcode_into_libs=yes
4798     ;;
4799   esac
4800   ;;
4801
4802 gnu*)
4803   version_type=linux
4804   need_lib_prefix=no
4805   need_version=no
4806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4807   soname_spec='${libname}${release}${shared_ext}$major'
4808   shlibpath_var=LD_LIBRARY_PATH
4809   hardcode_into_libs=yes
4810   ;;
4811
4812 hpux9* | hpux10* | hpux11*)
4813   # Give a soname corresponding to the major version so that dld.sl refuses to
4814   # link against other versions.
4815   version_type=sunos
4816   need_lib_prefix=no
4817   need_version=no
4818   case "$host_cpu" in
4819   ia64*)
4820     shrext='.so'
4821     hardcode_into_libs=yes
4822     dynamic_linker="$host_os dld.so"
4823     shlibpath_var=LD_LIBRARY_PATH
4824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826     soname_spec='${libname}${release}${shared_ext}$major'
4827     if test "X$HPUX_IA64_MODE" = X32; then
4828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4829     else
4830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4831     fi
4832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4833     ;;
4834    hppa*64*)
4835      shrext='.sl'
4836      hardcode_into_libs=yes
4837      dynamic_linker="$host_os dld.sl"
4838      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4839      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4841      soname_spec='${libname}${release}${shared_ext}$major'
4842      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4843      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4844      ;;
4845    *)
4846     shrext='.sl'
4847     dynamic_linker="$host_os dld.sl"
4848     shlibpath_var=SHLIB_PATH
4849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4851     soname_spec='${libname}${release}${shared_ext}$major'
4852     ;;
4853   esac
4854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4855   postinstall_cmds='chmod 555 $lib'
4856   ;;
4857
4858 irix5* | irix6* | nonstopux*)
4859   case $host_os in
4860     nonstopux*) version_type=nonstopux ;;
4861     *)
4862         if test "$lt_cv_prog_gnu_ld" = yes; then
4863                 version_type=linux
4864         else
4865                 version_type=irix
4866         fi ;;
4867   esac
4868   need_lib_prefix=no
4869   need_version=no
4870   soname_spec='${libname}${release}${shared_ext}$major'
4871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4872   case $host_os in
4873   irix5* | nonstopux*)
4874     libsuff= shlibsuff=
4875     ;;
4876   *)
4877     case $LD in # libtool.m4 will add one of these switches to LD
4878     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4879       libsuff= shlibsuff= libmagic=32-bit;;
4880     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4881       libsuff=32 shlibsuff=N32 libmagic=N32;;
4882     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4883       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4884     *) libsuff= shlibsuff= libmagic=never-match;;
4885     esac
4886     ;;
4887   esac
4888   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4889   shlibpath_overrides_runpath=no
4890   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4891   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4892   hardcode_into_libs=yes
4893   ;;
4894
4895 # No shared lib support for Linux oldld, aout, or coff.
4896 linux*oldld* | linux*aout* | linux*coff*)
4897   dynamic_linker=no
4898   ;;
4899
4900 # This must be Linux ELF.
4901 linux*|k*bsd*-gnu)
4902   version_type=linux
4903   need_lib_prefix=no
4904   need_version=no
4905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4906   soname_spec='${libname}${release}${shared_ext}$major'
4907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4908   shlibpath_var=LD_LIBRARY_PATH
4909   shlibpath_overrides_runpath=no
4910   # This implies no fast_install, which is unacceptable.
4911   # Some rework will be needed to allow for fast_install
4912   # before this can be enabled.
4913   hardcode_into_libs=yes
4914
4915   # We used to test for /lib/ld.so.1 and disable shared libraries on
4916   # powerpc, because MkLinux only supported shared libraries with the
4917   # GNU dynamic linker.  Since this was broken with cross compilers,
4918   # most powerpc-linux boxes support dynamic linking these days and
4919   # people can always --disable-shared, the test was removed, and we
4920   # assume the GNU/Linux dynamic linker is in use.
4921   dynamic_linker='GNU/Linux ld.so'
4922   ;;
4923
4924 netbsd*)
4925   version_type=sunos
4926   need_lib_prefix=no
4927   need_version=no
4928   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4931     dynamic_linker='NetBSD (a.out) ld.so'
4932   else
4933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4934     soname_spec='${libname}${release}${shared_ext}$major'
4935     dynamic_linker='NetBSD ld.elf_so'
4936   fi
4937   shlibpath_var=LD_LIBRARY_PATH
4938   shlibpath_overrides_runpath=yes
4939   hardcode_into_libs=yes
4940   ;;
4941
4942 newsos6)
4943   version_type=linux
4944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4945   shlibpath_var=LD_LIBRARY_PATH
4946   shlibpath_overrides_runpath=yes
4947   ;;
4948
4949 nto-qnx)
4950   version_type=linux
4951   need_lib_prefix=no
4952   need_version=no
4953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4954   soname_spec='${libname}${release}${shared_ext}$major'
4955   shlibpath_var=LD_LIBRARY_PATH
4956   shlibpath_overrides_runpath=yes
4957   ;;
4958
4959 openbsd*)
4960   version_type=sunos
4961   need_lib_prefix=no
4962   need_version=no
4963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4964   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4965   shlibpath_var=LD_LIBRARY_PATH
4966   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4967     case $host_os in
4968       openbsd2.[89] | openbsd2.[89].*)
4969         shlibpath_overrides_runpath=no
4970         ;;
4971       *)
4972         shlibpath_overrides_runpath=yes
4973         ;;
4974       esac
4975   else
4976     shlibpath_overrides_runpath=yes
4977   fi
4978   ;;
4979
4980 os2*)
4981   libname_spec='$name'
4982   shrext=".dll"
4983   need_lib_prefix=no
4984   library_names_spec='$libname${shared_ext} $libname.a'
4985   dynamic_linker='OS/2 ld.exe'
4986   shlibpath_var=LIBPATH
4987   ;;
4988
4989 osf3* | osf4* | osf5*)
4990   version_type=osf
4991   need_lib_prefix=no
4992   need_version=no
4993   soname_spec='${libname}${release}${shared_ext}$major'
4994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4995   shlibpath_var=LD_LIBRARY_PATH
4996   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4997   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4998   ;;
4999
5000 sco3.2v5*)
5001   version_type=osf
5002   soname_spec='${libname}${release}${shared_ext}$major'
5003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5004   shlibpath_var=LD_LIBRARY_PATH
5005   ;;
5006
5007 solaris*)
5008   version_type=linux
5009   need_lib_prefix=no
5010   need_version=no
5011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5012   soname_spec='${libname}${release}${shared_ext}$major'
5013   shlibpath_var=LD_LIBRARY_PATH
5014   shlibpath_overrides_runpath=yes
5015   hardcode_into_libs=yes
5016   # ldd complains unless libraries are executable
5017   postinstall_cmds='chmod +x $lib'
5018   ;;
5019
5020 sunos4*)
5021   version_type=sunos
5022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5023   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5024   shlibpath_var=LD_LIBRARY_PATH
5025   shlibpath_overrides_runpath=yes
5026   if test "$with_gnu_ld" = yes; then
5027     need_lib_prefix=no
5028   fi
5029   need_version=yes
5030   ;;
5031
5032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5033   version_type=linux
5034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5035   soname_spec='${libname}${release}${shared_ext}$major'
5036   shlibpath_var=LD_LIBRARY_PATH
5037   case $host_vendor in
5038     sni)
5039       shlibpath_overrides_runpath=no
5040       need_lib_prefix=no
5041       export_dynamic_flag_spec='${wl}-Blargedynsym'
5042       runpath_var=LD_RUN_PATH
5043       ;;
5044     siemens)
5045       need_lib_prefix=no
5046       ;;
5047     motorola)
5048       need_lib_prefix=no
5049       need_version=no
5050       shlibpath_overrides_runpath=no
5051       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5052       ;;
5053   esac
5054   ;;
5055
5056 sysv4*MP*)
5057   if test -d /usr/nec ;then
5058     version_type=linux
5059     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5060     soname_spec='$libname${shared_ext}.$major'
5061     shlibpath_var=LD_LIBRARY_PATH
5062   fi
5063   ;;
5064
5065 uts4*)
5066   version_type=linux
5067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5068   soname_spec='${libname}${release}${shared_ext}$major'
5069   shlibpath_var=LD_LIBRARY_PATH
5070   ;;
5071
5072 *)
5073   dynamic_linker=no
5074   ;;
5075 esac
5076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5077 echo "${ECHO_T}$dynamic_linker" >&6
5078 test "$dynamic_linker" = no && can_build_shared=no
5079
5080
5081 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5082 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5083 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   libltdl_cv_shlibpath_var="$shlibpath_var"
5087 fi
5088 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5089 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5090 if test -n "$libltdl_cv_shlibpath_var"; then
5091
5092 cat >>confdefs.h <<_ACEOF
5093 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5094 _ACEOF
5095
5096 fi
5097
5098 fi
5099
5100                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5101
5102
5103 # See if the user has requested runtime debugging.
5104 LIBGCJDEBUG="disable"
5105
5106 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5107 if test "${enable_libgcj_debug+set}" = set; then
5108   enableval="$enable_libgcj_debug"
5109   if test "$enable_libgcj_debug" = yes; then
5110
5111 cat >>confdefs.h <<\_ACEOF
5112 #define DEBUG 1
5113 _ACEOF
5114
5115     LIBGCJDEBUG="enable"
5116   fi
5117 fi;
5118
5119
5120 # Check whether --with-escher or --without-escher was given.
5121 if test "${with_escher+set}" = set; then
5122   withval="$with_escher"
5123
5124 fi;
5125 case "$with_escher" in
5126 "")
5127         use_escher=false
5128         ;;
5129 "no")
5130         use_escher=false
5131         ;;
5132 "yes")
5133         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5134 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5135    { (exit 1); exit 1; }; }
5136         ;;
5137 *)
5138         use_escher=true
5139         ;;
5140 esac
5141
5142 # Determine which AWT peer libraries to build
5143 # Check whether --enable-java-awt or --disable-java-awt was given.
5144 if test "${enable_java_awt+set}" = set; then
5145   enableval="$enable_java_awt"
5146
5147 fi;
5148
5149 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5150 use_xlib_awt=""
5151 use_gtk_awt=""
5152 use_qt_awt=""
5153 use_x_awt=""
5154 # The default toolkit to use is the first one specified.
5155 TOOLKIT=
5156
5157
5158 for peer in $peerlibs ; do
5159   case $peer in
5160     xlib)
5161       if test "$no_x" = yes; then
5162         echo "*** xlib peers requested but no X library available" 1>&2
5163         exit 1
5164       else
5165         use_xlib_awt="yes"
5166         if test -z "$TOOLKIT"; then
5167            TOOLKIT=gnu.awt.xlib.XToolkit
5168         fi
5169       fi
5170       ;;
5171     gtk)
5172       if test "$no_x" = yes; then
5173          echo "*** gtk peers requested but no X library available" 1>&2
5174          exit 1
5175       else
5176          use_gtk_awt=yes
5177          if test -z "$TOOLKIT"; then
5178             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5179          fi
5180       fi
5181       ;;
5182     qt)
5183       if test "$no_x" = yes; then
5184          # Perhaps we should admit the possibility of embedded Qt.
5185          echo "*** Qt peers requested but no X library available" 1>&2
5186          exit 1
5187       else
5188          use_qt_awt=yes
5189          if test -z "$TOOLKIT"; then
5190             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5191          fi
5192       fi
5193       ;;
5194     x)
5195       use_x_awt=yes
5196       if test -z "$TOOLKIT"; then
5197          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5198       fi
5199       ;;
5200     no)
5201       use_xlib_awt=
5202       use_gtk_awt=
5203       use_qt_awt=
5204       use_x_awt=
5205       break
5206       ;;
5207     *)
5208       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5209       exit 1
5210   esac
5211 done
5212
5213
5214
5215 if test "$use_xlib_awt" = yes; then
5216   XLIB_AWT_TRUE=
5217   XLIB_AWT_FALSE='#'
5218 else
5219   XLIB_AWT_TRUE='#'
5220   XLIB_AWT_FALSE=
5221 fi
5222
5223
5224
5225 if test "$use_x_awt" = yes; then
5226   X_AWT_TRUE=
5227   X_AWT_FALSE='#'
5228 else
5229   X_AWT_TRUE='#'
5230   X_AWT_FALSE=
5231 fi
5232
5233
5234
5235 cat >>confdefs.h <<_ACEOF
5236 #define AWT_TOOLKIT "$TOOLKIT"
5237 _ACEOF
5238
5239
5240
5241 cat >>confdefs.h <<_ACEOF
5242 #define LIBGCJ_PREFIX "$prefix"
5243 _ACEOF
5244
5245
5246 # Create standard.omit based on decisions we just made.
5247 cp $srcdir/standard.omit.in standard.omit
5248 if test "$use_xlib_awt" != yes; then
5249    echo gnu/awt/xlib >> standard.omit
5250    echo gnu/gcj/xlib >> standard.omit
5251 fi
5252 if test "$use_x_awt" != yes; then
5253    echo gnu/java/awt/peer/x >> standard.omit
5254 fi
5255
5256 # Tools that need to be compiled against classpath's tools classes
5257 : > vm-tools-packages
5258 for package in gnu/gcj/tools/gc_analyze ; do
5259     echo $package >> standard.omit
5260     echo $package >> vm-tools-packages
5261 done
5262
5263 if test -z "${with_multisubdir}"; then
5264    builddotdot=.
5265 else
5266    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5267 fi
5268
5269 NATIVE=yes
5270
5271 # Which gcj and host gcj (for ecjx) do we use?
5272 which_gcj=default
5273 host_exeext=${ac_exeext}
5274 GCJ_FOR_ECJX=
5275 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5276 if test -n "${with_cross_host}"; then
5277   # We are being configured with a cross compiler. We can't
5278   # use ac_exeext, because that is for the target platform.
5279   NATIVE=no
5280   cross_host_exeext=
5281   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5282   case "${with_cross_host}" in
5283      *mingw* | *cygwin*)
5284          cross_host_exeext=.exe
5285      ;;
5286   esac
5287   host_exeext=${cross_host_exeext}
5288   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5289      if test x"$build_noncanonical" = x"$with_cross_host"; then
5290         # Ordinary cross (host!=target and host=build)
5291         which_gcj=built
5292      else
5293         # Canadian cross (host!=target and host!=build)
5294         which_gcj=cross
5295      fi
5296   else
5297      which_gcj=cross
5298   fi
5299 else
5300   # We are being configured with a native or crossed-native compiler
5301   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5302      if test x"$build" = x"$host"; then
5303         # True native build (host=target and host=build)
5304         which_gcj=built
5305      else
5306         # Crossed-native build (host=target and host!=build)
5307         which_gcj=cross
5308      fi
5309   else
5310      which_gcj=path
5311   fi
5312 fi
5313 case "${which_gcj}" in
5314    built)
5315       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5316       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5317    ;;
5318    cross)
5319       if test "x${with_newlib}" = "xyes"; then
5320          # FIXME (comment): Why is this needed?
5321          GCC_UNWIND_INCLUDE=
5322          GCJ="${target_noncanonical}-gcj"
5323       else
5324          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5325       fi
5326       GCJH='$(target_noncanonical)-gcjh'
5327    ;;
5328    path)
5329       GCJ="gcj -B`${PWDCMD-pwd}`/"
5330       GCJH=gcjh
5331    ;;
5332 esac
5333
5334
5335
5336
5337
5338 # Create it, so that compile/link tests don't fail
5339 test -f libgcj.spec || touch libgcj.spec
5340
5341
5342
5343 # Set up to configure Classpath.
5344 # FIXME: no supported way to pass args in autoconf.
5345 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5346 # Disable tool wrappers to avoid ltdl.h configure check.
5347 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5348 ac_configure_args="$ac_configure_args --disable-load-library"
5349 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5350 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5351 dir1=`cd $srcdir && pwd`
5352 dir2=`pwd`
5353 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5354 ac_configure_args="$ac_configure_args --disable-core-jni"
5355 ac_configure_args="$ac_configure_args --disable-examples"
5356 ac_configure_args="$ac_configure_args --with-glibj=build"
5357 if test "$plugin_enabled" != yes; then
5358   ac_configure_args="$ac_configure_args --disable-plugin"
5359 fi
5360 if test "$gconf_enabled" != yes; then
5361   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5362   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5363 fi
5364 if test "$use_gtk_awt" != yes; then
5365   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5366 fi
5367 if test "$use_qt_awt" != yes; then
5368   ac_configure_args="$ac_configure_args --disable-qt-peer"
5369 else
5370   # We need this as qt is disabled by default in classpath.
5371   ac_configure_args="$ac_configure_args --enable-qt-peer"
5372 fi
5373 if test "$use_x_awt" != yes; then
5374   ac_configure_args="$ac_configure_args --without-escher"
5375 else
5376   # We need this as escher is disabled by default in classpath.
5377   if test "$use_escher" != true; then
5378     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5379 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5380    { (exit 1); exit 1; }; }
5381   else
5382     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5383   fi
5384 fi
5385 # -Werror causes unavoidable problems in code using alsa.
5386 ac_configure_args="$ac_configure_args --disable-Werror"
5387
5388 # Only use libltdl for non-newlib builds.
5389 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5390      case $enable_ltdl_convenience in
5391   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5392 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5393    { (exit 1); exit 1; }; } ;;
5394   "") enable_ltdl_convenience=yes
5395       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5396   esac
5397   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5398   LTDLINCL='-I${top_srcdir}/''libltdl'
5399   # For backwards non-gettext consistent compatibility...
5400   INCLTDL="$LTDLINCL"
5401
5402    enable_dlopen=yes
5403
5404
5405
5406    DIRLTDL=libltdl
5407
5408 cat >>confdefs.h <<\_ACEOF
5409 #define USE_LTDL 1
5410 _ACEOF
5411
5412    # Sigh.  Libtool's macro doesn't do the right thing.
5413    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5414    # FIXME: this is a hack.
5415    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5416    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5417 fi
5418
5419
5420
5421
5422
5423 macro_version='2.1a'
5424 macro_revision='1.2435'
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 ltmain="$ac_aux_dir/ltmain.sh"
5438
5439 # Set options
5440
5441
5442 enable_win32_dll=no
5443
5444
5445 # Check whether --enable-shared or --disable-shared was given.
5446 if test "${enable_shared+set}" = set; then
5447   enableval="$enable_shared"
5448   p=${PACKAGE-default}
5449     case $enableval in
5450     yes) enable_shared=yes ;;
5451     no) enable_shared=no ;;
5452     *)
5453       enable_shared=no
5454       # Look at the argument we got.  We use all the common list separators.
5455       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5456       for pkg in $enableval; do
5457         IFS="$lt_save_ifs"
5458         if test "X$pkg" = "X$p"; then
5459           enable_shared=yes
5460         fi
5461       done
5462       IFS="$lt_save_ifs"
5463       ;;
5464     esac
5465 else
5466   enable_shared=yes
5467 fi;
5468
5469
5470
5471
5472
5473
5474
5475
5476 # Check whether --enable-static or --disable-static was given.
5477 if test "${enable_static+set}" = set; then
5478   enableval="$enable_static"
5479   p=${PACKAGE-default}
5480     case $enableval in
5481     yes) enable_static=yes ;;
5482     no) enable_static=no ;;
5483     *)
5484      enable_static=no
5485       # Look at the argument we got.  We use all the common list separators.
5486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5487       for pkg in $enableval; do
5488         IFS="$lt_save_ifs"
5489         if test "X$pkg" = "X$p"; then
5490           enable_static=yes
5491         fi
5492       done
5493       IFS="$lt_save_ifs"
5494       ;;
5495     esac
5496 else
5497   enable_static=yes
5498 fi;
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 # Check whether --with-pic or --without-pic was given.
5509 if test "${with_pic+set}" = set; then
5510   withval="$with_pic"
5511   pic_mode="$withval"
5512 else
5513   pic_mode=default
5514 fi;
5515
5516 test -z "$pic_mode" && pic_mode=default
5517
5518
5519
5520
5521
5522
5523
5524 # Check whether --enable-fast-install or --disable-fast-install was given.
5525 if test "${enable_fast_install+set}" = set; then
5526   enableval="$enable_fast_install"
5527   p=${PACKAGE-default}
5528     case $enableval in
5529     yes) enable_fast_install=yes ;;
5530     no) enable_fast_install=no ;;
5531     *)
5532       enable_fast_install=no
5533       # Look at the argument we got.  We use all the common list separators.
5534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5535       for pkg in $enableval; do
5536         IFS="$lt_save_ifs"
5537         if test "X$pkg" = "X$p"; then
5538           enable_fast_install=yes
5539         fi
5540       done
5541       IFS="$lt_save_ifs"
5542       ;;
5543     esac
5544 else
5545   enable_fast_install=yes
5546 fi;
5547
5548
5549
5550
5551
5552
5553
5554
5555 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5556 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5557 if test "${lt_cv_path_SED+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   # Loop through the user's path and test for sed and gsed.
5561 # Then use that list of sed's as ones to test for truncation.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for lt_ac_prog in sed gsed; do
5568     for ac_exec_ext in '' $ac_executable_extensions; do
5569       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5570         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5571       fi
5572     done
5573   done
5574 done
5575 IFS=$as_save_IFS
5576 lt_ac_max=0
5577 lt_ac_count=0
5578 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5579 # along with /bin/sed that truncates output.
5580 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5581   test ! -f $lt_ac_sed && continue
5582   cat /dev/null > conftest.in
5583   lt_ac_count=0
5584   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5585   # Check for GNU sed and select it if it is found.
5586   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5587     lt_cv_path_SED=$lt_ac_sed
5588     break
5589   fi
5590   while true; do
5591     cat conftest.in conftest.in >conftest.tmp
5592     mv conftest.tmp conftest.in
5593     cp conftest.in conftest.nl
5594     echo >>conftest.nl
5595     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5596     cmp -s conftest.out conftest.nl || break
5597     # 10000 chars as input seems more than enough
5598     test $lt_ac_count -gt 10 && break
5599     lt_ac_count=`expr $lt_ac_count + 1`
5600     if test $lt_ac_count -gt $lt_ac_max; then
5601       lt_ac_max=$lt_ac_count
5602       lt_cv_path_SED=$lt_ac_sed
5603     fi
5604   done
5605 done
5606
5607 fi
5608
5609 SED=$lt_cv_path_SED
5610
5611 echo "$as_me:$LINENO: result: $SED" >&5
5612 echo "${ECHO_T}$SED" >&6
5613
5614 test -z "$SED" && SED=sed
5615 Xsed="$SED -e 1s/^X//"
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 echo "$as_me:$LINENO: checking for egrep" >&5
5628 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5629 if test "${ac_cv_prog_egrep+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5633     then ac_cv_prog_egrep='grep -E'
5634     else ac_cv_prog_egrep='egrep'
5635     fi
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5638 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5639  EGREP=$ac_cv_prog_egrep
5640
5641
5642 echo "$as_me:$LINENO: checking for fgrep" >&5
5643 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5644 if test "${ac_cv_prog_fgrep+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5648     then ac_cv_prog_fgrep='grep -F'
5649     else ac_cv_prog_fgrep='fgrep'
5650     fi
5651 fi
5652 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5653 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5654  FGREP=$ac_cv_prog_fgrep
5655
5656
5657 test -z "$GREP" && GREP=grep
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5678 if test "${with_gnu_ld+set}" = set; then
5679   withval="$with_gnu_ld"
5680   test "$withval" = no || with_gnu_ld=yes
5681 else
5682   with_gnu_ld=no
5683 fi;
5684 ac_prog=ld
5685 if test "$GCC" = yes; then
5686   # Check if gcc -print-prog-name=ld gives a path.
5687   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5688 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5689   case $host in
5690   *-*-mingw*)
5691     # gcc leaves a trailing carriage return which upsets mingw
5692     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5693   *)
5694     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5695   esac
5696   case $ac_prog in
5697     # Accept absolute paths.
5698     [\\/]* | ?:[\\/]*)
5699       re_direlt='/[^/][^/]*/\.\./'
5700       # Canonicalize the pathname of ld
5701       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5702       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5703         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5704       done
5705       test -z "$LD" && LD="$ac_prog"
5706       ;;
5707   "")
5708     # If it fails, then pretend we aren't using GCC.
5709     ac_prog=ld
5710     ;;
5711   *)
5712     # If it is relative, then search for the first ld in PATH.
5713     with_gnu_ld=unknown
5714     ;;
5715   esac
5716 elif test "$with_gnu_ld" = yes; then
5717   echo "$as_me:$LINENO: checking for GNU ld" >&5
5718 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5719 else
5720   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5721 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5722 fi
5723 if test "${lt_cv_path_LD+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   if test -z "$LD"; then
5727   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5728   for ac_dir in $PATH; do
5729     IFS="$lt_save_ifs"
5730     test -z "$ac_dir" && ac_dir=.
5731     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5732       lt_cv_path_LD="$ac_dir/$ac_prog"
5733       # Check to see if the program is GNU ld.  I'd rather use --version,
5734       # but apparently some variants of GNU ld only accept -v.
5735       # Break only if it was the GNU/non-GNU ld that we prefer.
5736       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5737       *GNU* | *'with BFD'*)
5738         test "$with_gnu_ld" != no && break
5739         ;;
5740       *)
5741         test "$with_gnu_ld" != yes && break
5742         ;;
5743       esac
5744     fi
5745   done
5746   IFS="$lt_save_ifs"
5747 else
5748   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5749 fi
5750 fi
5751
5752 LD="$lt_cv_path_LD"
5753 if test -n "$LD"; then
5754   echo "$as_me:$LINENO: result: $LD" >&5
5755 echo "${ECHO_T}$LD" >&6
5756 else
5757   echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5759 fi
5760 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5761 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5762    { (exit 1); exit 1; }; }
5763 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5764 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5765 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5769 case `$LD -v 2>&1 </dev/null` in
5770 *GNU* | *'with BFD'*)
5771   lt_cv_prog_gnu_ld=yes
5772   ;;
5773 *)
5774   lt_cv_prog_gnu_ld=no
5775   ;;
5776 esac
5777 fi
5778 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5779 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5780 with_gnu_ld=$lt_cv_prog_gnu_ld
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5792 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5793 if test "${lt_cv_path_NM+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$NM"; then
5797   # Let the user override the test.
5798   lt_cv_path_NM="$NM"
5799 else
5800   lt_nm_to_check="${ac_tool_prefix}nm"
5801   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5802     lt_nm_to_check="$lt_nm_to_check nm"
5803   fi
5804   for lt_tmp_nm in $lt_nm_to_check; do
5805     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5807       IFS="$lt_save_ifs"
5808       test -z "$ac_dir" && ac_dir=.
5809       tmp_nm="$ac_dir/$lt_tmp_nm"
5810       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5811         # Check to see if the nm accepts a BSD-compat flag.
5812         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5813         #   nm: unknown option "B" ignored
5814         # Tru64's nm complains that /dev/null is an invalid object file
5815         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5816         */dev/null* | *'Invalid file or object type'*)
5817           lt_cv_path_NM="$tmp_nm -B"
5818           break
5819           ;;
5820         *)
5821           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5822           */dev/null*)
5823             lt_cv_path_NM="$tmp_nm -p"
5824             break
5825             ;;
5826           *)
5827             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5828             continue # so that we can try to find one that supports BSD flags
5829             ;;
5830           esac
5831           ;;
5832         esac
5833       fi
5834     done
5835     IFS="$lt_save_ifs"
5836   done
5837   : ${lt_cv_path_NM=no}
5838 fi
5839 fi
5840 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5841 echo "${ECHO_T}$lt_cv_path_NM" >&6
5842 if test "$lt_cv_path_NM" != "no"; then
5843   NM="$lt_cv_path_NM"
5844 else
5845   # Didn't find any BSD compatible name lister, look for dumpbin.
5846   if test -n "$ac_tool_prefix"; then
5847   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5848   do
5849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$DUMPBIN"; then
5857   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872
5873 fi
5874 fi
5875 DUMPBIN=$ac_cv_prog_DUMPBIN
5876 if test -n "$DUMPBIN"; then
5877   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5878 echo "${ECHO_T}$DUMPBIN" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884     test -n "$DUMPBIN" && break
5885   done
5886 fi
5887 if test -z "$DUMPBIN"; then
5888   ac_ct_DUMPBIN=$DUMPBIN
5889   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5890 do
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_DUMPBIN"; then
5899   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914
5915 fi
5916 fi
5917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5918 if test -n "$ac_ct_DUMPBIN"; then
5919   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5920 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   test -n "$ac_ct_DUMPBIN" && break
5927 done
5928 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5929
5930   DUMPBIN=$ac_ct_DUMPBIN
5931 fi
5932
5933
5934   if test "$DUMPBIN" != ":"; then
5935     NM="$DUMPBIN"
5936   fi
5937 fi
5938 test -z "$NM" && NM=nm
5939
5940
5941
5942
5943
5944
5945 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5946 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5947 if test "${lt_cv_nm_interface+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   lt_cv_nm_interface="BSD nm"
5951   echo "int some_variable = 0;" > conftest.$ac_ext
5952   (eval echo "\"\$as_me:5952: $ac_compile\"" >&5)
5953   (eval "$ac_compile" 2>conftest.err)
5954   cat conftest.err >&5
5955   (eval echo "\"\$as_me:5955: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5956   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5957   cat conftest.err >&5
5958   (eval echo "\"\$as_me:5958: output\"" >&5)
5959   cat conftest.out >&5
5960   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5961     lt_cv_nm_interface="MS dumpbin"
5962   fi
5963   rm -f conftest*
5964 fi
5965 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5966 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5967
5968 # find the maximum length of command line arguments
5969 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5970 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5971 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974     i=0
5975   teststring="ABCD"
5976
5977   case $build_os in
5978   msdosdjgpp*)
5979     # On DJGPP, this test can blow up pretty badly due to problems in libc
5980     # (any single argument exceeding 2000 bytes causes a buffer overrun
5981     # during glob expansion).  Even if it were fixed, the result of this
5982     # check would be larger than it should be.
5983     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5984     ;;
5985
5986   gnu*)
5987     # Under GNU Hurd, this test is not required because there is
5988     # no limit to the length of command line arguments.
5989     # Libtool will interpret -1 as no limit whatsoever
5990     lt_cv_sys_max_cmd_len=-1;
5991     ;;
5992
5993   cygwin* | mingw*)
5994     # On Win9x/ME, this test blows up -- it succeeds, but takes
5995     # about 5 minutes as the teststring grows exponentially.
5996     # Worse, since 9x/ME are not pre-emptively multitasking,
5997     # you end up with a "frozen" computer, even though with patience
5998     # the test eventually succeeds (with a max line length of 256k).
5999     # Instead, let's just punt: use the minimum linelength reported by
6000     # all of the supported platforms: 8192 (on NT/2K/XP).
6001     lt_cv_sys_max_cmd_len=8192;
6002     ;;
6003
6004   amigaos*)
6005     # On AmigaOS with pdksh, this test takes hours, literally.
6006     # So we just punt and use a minimum line length of 8192.
6007     lt_cv_sys_max_cmd_len=8192;
6008     ;;
6009
6010   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6011     # This has been around since 386BSD, at least.  Likely further.
6012     if test -x /sbin/sysctl; then
6013       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6014     elif test -x /usr/sbin/sysctl; then
6015       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6016     else
6017       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6018     fi
6019     # And add a safety zone
6020     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6021     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6022     ;;
6023
6024   interix*)
6025     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6026     lt_cv_sys_max_cmd_len=196608
6027     ;;
6028
6029   osf*)
6030     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6031     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6032     # nice to cause kernel panics so lets avoid the loop below.
6033     # First set a reasonable default.
6034     lt_cv_sys_max_cmd_len=16384
6035     #
6036     if test -x /sbin/sysconfig; then
6037       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6038         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6039       esac
6040     fi
6041     ;;
6042   sco3.2v5*)
6043     lt_cv_sys_max_cmd_len=102400
6044     ;;
6045   sysv5* | sco5v6* | sysv4.2uw2*)
6046     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6047     if test -n "$kargmax"; then
6048       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6049     else
6050       lt_cv_sys_max_cmd_len=32768
6051     fi
6052     ;;
6053   *)
6054     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6055     if test -n $lt_cv_sys_max_cmd_len; then
6056       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6057       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6058     else
6059       # Make teststring a little bigger before we do anything with it.
6060       # a 1K string should be a reasonable start.
6061       for i in 1 2 3 4 5 6 7 8 ; do
6062         teststring=$teststring$teststring
6063       done
6064       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6065       # If test is not a shell built-in, we'll probably end up computing a
6066       # maximum length that is only half of the actual maximum length, but
6067       # we can't tell.
6068       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6069                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6070               test $i != 17 # 1/2 MB should be enough
6071       do
6072         i=`expr $i + 1`
6073         teststring=$teststring$teststring
6074       done
6075       # Only check the string length outside the loop.
6076       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6077       teststring=
6078       # Add a significant safety factor because C++ compilers can tack on
6079       # massive amounts of additional arguments before passing them to the
6080       # linker.  It appears as though 1/2 is a usable value.
6081       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6082     fi
6083     ;;
6084   esac
6085
6086 fi
6087
6088 if test -n $lt_cv_sys_max_cmd_len ; then
6089   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6090 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6091 else
6092   echo "$as_me:$LINENO: result: none" >&5
6093 echo "${ECHO_T}none" >&6
6094 fi
6095 max_cmd_len=$lt_cv_sys_max_cmd_len
6096
6097
6098
6099
6100
6101
6102 : ${CP="cp -f"}
6103 : ${MV="mv -f"}
6104 : ${RM="rm -f"}
6105
6106 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6107 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6108 # Try some XSI features
6109 xsi_shell=no
6110 ( _lt_dummy="a/b/c"
6111   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6112       = c,a/b,, ) >/dev/null 2>&1 \
6113   && xsi_shell=yes
6114 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6115 echo "${ECHO_T}$xsi_shell" >&6
6116
6117
6118 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6119 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6120 lt_shell_append=no
6121 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6122     >/dev/null 2>&1 \
6123   && lt_shell_append=yes
6124 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6125 echo "${ECHO_T}$lt_shell_append" >&6
6126
6127
6128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6129   lt_unset=unset
6130 else
6131   lt_unset=false
6132 fi
6133
6134
6135
6136
6137
6138 # test EBCDIC or ASCII
6139 case `echo X|tr X '\101'` in
6140  A) # ASCII based system
6141     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6142   lt_SP2NL='tr \040 \012'
6143   lt_NL2SP='tr \015\012 \040\040'
6144   ;;
6145  *) # EBCDIC based system
6146   lt_SP2NL='tr \100 \n'
6147   lt_NL2SP='tr \r\n \100\100'
6148   ;;
6149 esac
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6160 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6161 if test "${lt_cv_ld_reload_flag+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   lt_cv_ld_reload_flag='-r'
6165 fi
6166 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6167 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6170 "" | " "*) ;;
6171 *) reload_flag=" $reload_flag" ;;
6172 esac
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 case $host_os in
6175   darwin*)
6176     if test "$GCC" = yes; then
6177       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6178     else
6179       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180     fi
6181     ;;
6182 esac
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6194 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6195 if test "${lt_cv_deplibs_check_method+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   lt_cv_file_magic_cmd='$MAGIC_CMD'
6199 lt_cv_file_magic_test_file=
6200 lt_cv_deplibs_check_method='unknown'
6201 # Need to set the preceding variable on all platforms that support
6202 # interlibrary dependencies.
6203 # 'none' -- dependencies not supported.
6204 # `unknown' -- same as none, but documents that we really don't know.
6205 # 'pass_all' -- all dependencies passed with no checks.
6206 # 'test_compile' -- check by making test program.
6207 # 'file_magic [[regex]]' -- check by looking for files in library path
6208 # which responds to the $file_magic_cmd with a given extended regex.
6209 # If you have `file' or equivalent on your system and you're not sure
6210 # whether `pass_all' will *always* work, you probably want this one.
6211
6212 case $host_os in
6213 aix4* | aix5*)
6214   lt_cv_deplibs_check_method=pass_all
6215   ;;
6216
6217 beos*)
6218   lt_cv_deplibs_check_method=pass_all
6219   ;;
6220
6221 bsdi[45]*)
6222   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6223   lt_cv_file_magic_cmd='/usr/bin/file -L'
6224   lt_cv_file_magic_test_file=/shlib/libc.so
6225   ;;
6226
6227 cygwin*)
6228   # func_win32_libid is a shell function defined in ltmain.sh
6229   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6230   lt_cv_file_magic_cmd='func_win32_libid'
6231   ;;
6232
6233 mingw* | pw32*)
6234   # Base MSYS/MinGW do not provide the 'file' command needed by
6235   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6236   # unless we find 'file', for example because we are cross-compiling.
6237   if ( file / ) >/dev/null 2>&1; then
6238     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6239     lt_cv_file_magic_cmd='func_win32_libid'
6240   else
6241     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6242     lt_cv_file_magic_cmd='$OBJDUMP -f'
6243   fi
6244   ;;
6245
6246 darwin* | rhapsody*)
6247   lt_cv_deplibs_check_method=pass_all
6248   ;;
6249
6250 freebsd* | dragonfly*)
6251   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6252     case $host_cpu in
6253     i*86 )
6254       # Not sure whether the presence of OpenBSD here was a mistake.
6255       # Let's accept both of them until this is cleared up.
6256       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6257       lt_cv_file_magic_cmd=/usr/bin/file
6258       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6259       ;;
6260     esac
6261   else
6262     lt_cv_deplibs_check_method=pass_all
6263   fi
6264   ;;
6265
6266 gnu*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 hpux10.20* | hpux11*)
6271   lt_cv_file_magic_cmd=/usr/bin/file
6272   case $host_cpu in
6273   ia64*)
6274     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6275     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6276     ;;
6277   hppa*64*)
6278     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]'
6279     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6280     ;;
6281   *)
6282     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6283     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6284     ;;
6285   esac
6286   ;;
6287
6288 interix[3-9]*)
6289   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6290   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6291   ;;
6292
6293 irix5* | irix6* | nonstopux*)
6294   case $LD in
6295   *-32|*"-32 ") libmagic=32-bit;;
6296   *-n32|*"-n32 ") libmagic=N32;;
6297   *-64|*"-64 ") libmagic=64-bit;;
6298   *) libmagic=never-match;;
6299   esac
6300   lt_cv_deplibs_check_method=pass_all
6301   ;;
6302
6303 # This must be Linux ELF.
6304 linux* | k*bsd*-gnu)
6305   lt_cv_deplibs_check_method=pass_all
6306   ;;
6307
6308 netbsd*)
6309   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6310     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6311   else
6312     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6313   fi
6314   ;;
6315
6316 newos6*)
6317   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6318   lt_cv_file_magic_cmd=/usr/bin/file
6319   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6320   ;;
6321
6322 *nto* | *qnx*)
6323   lt_cv_deplibs_check_method=pass_all
6324   ;;
6325
6326 openbsd*)
6327   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6328     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6329   else
6330     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6331   fi
6332   ;;
6333
6334 osf3* | osf4* | osf5*)
6335   lt_cv_deplibs_check_method=pass_all
6336   ;;
6337
6338 rdos*)
6339   lt_cv_deplibs_check_method=pass_all
6340   ;;
6341
6342 solaris*)
6343   lt_cv_deplibs_check_method=pass_all
6344   ;;
6345
6346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 sysv4 | sysv4.3*)
6351   case $host_vendor in
6352   motorola)
6353     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]'
6354     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6355     ;;
6356   ncr)
6357     lt_cv_deplibs_check_method=pass_all
6358     ;;
6359   sequent)
6360     lt_cv_file_magic_cmd='/bin/file'
6361     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6362     ;;
6363   sni)
6364     lt_cv_file_magic_cmd='/bin/file'
6365     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6366     lt_cv_file_magic_test_file=/lib/libc.so
6367     ;;
6368   siemens)
6369     lt_cv_deplibs_check_method=pass_all
6370     ;;
6371   pc)
6372     lt_cv_deplibs_check_method=pass_all
6373     ;;
6374   esac
6375   ;;
6376
6377 tpf*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380 esac
6381
6382 fi
6383 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6384 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6385 file_magic_cmd=$lt_cv_file_magic_cmd
6386 deplibs_check_method=$lt_cv_deplibs_check_method
6387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 if test -n "$ac_tool_prefix"; then
6401   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}ar; ac_word=$2
6403 echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405 if test "${ac_cv_prog_AR+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   if test -n "$AR"; then
6409   ac_cv_prog_AR="$AR" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418     ac_cv_prog_AR="${ac_tool_prefix}ar"
6419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424
6425 fi
6426 fi
6427 AR=$ac_cv_prog_AR
6428 if test -n "$AR"; then
6429   echo "$as_me:$LINENO: result: $AR" >&5
6430 echo "${ECHO_T}$AR" >&6
6431 else
6432   echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6
6434 fi
6435
6436 fi
6437 if test -z "$ac_cv_prog_AR"; then
6438   ac_ct_AR=$AR
6439   # Extract the first word of "ar", so it can be a program name with args.
6440 set dummy ar; ac_word=$2
6441 echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   if test -n "$ac_ct_AR"; then
6447   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454   for ac_exec_ext in '' $ac_executable_extensions; do
6455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_prog_ac_ct_AR="ar"
6457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461 done
6462
6463   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6464 fi
6465 fi
6466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6467 if test -n "$ac_ct_AR"; then
6468   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6469 echo "${ECHO_T}$ac_ct_AR" >&6
6470 else
6471   echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6473 fi
6474
6475   AR=$ac_ct_AR
6476 else
6477   AR="$ac_cv_prog_AR"
6478 fi
6479
6480 test -z "$AR" && AR=ar
6481 test -z "$AR_FLAGS" && AR_FLAGS=cru
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}strip; ac_word=$2
6496 echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6498 if test "${ac_cv_prog_STRIP+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   if test -n "$STRIP"; then
6502   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517
6518 fi
6519 fi
6520 STRIP=$ac_cv_prog_STRIP
6521 if test -n "$STRIP"; then
6522   echo "$as_me:$LINENO: result: $STRIP" >&5
6523 echo "${ECHO_T}$STRIP" >&6
6524 else
6525   echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6
6527 fi
6528
6529 fi
6530 if test -z "$ac_cv_prog_STRIP"; then
6531   ac_ct_STRIP=$STRIP
6532   # Extract the first word of "strip", so it can be a program name with args.
6533 set dummy strip; ac_word=$2
6534 echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6536 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   if test -n "$ac_ct_STRIP"; then
6540   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549     ac_cv_prog_ac_ct_STRIP="strip"
6550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555
6556   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6557 fi
6558 fi
6559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6560 if test -n "$ac_ct_STRIP"; then
6561   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6562 echo "${ECHO_T}$ac_ct_STRIP" >&6
6563 else
6564   echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6566 fi
6567
6568   STRIP=$ac_ct_STRIP
6569 else
6570   STRIP="$ac_cv_prog_STRIP"
6571 fi
6572
6573 test -z "$STRIP" && STRIP=:
6574
6575
6576
6577
6578
6579
6580 if test -n "$ac_tool_prefix"; then
6581   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6583 echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6585 if test "${ac_cv_prog_RANLIB+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   if test -n "$RANLIB"; then
6589   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604
6605 fi
6606 fi
6607 RANLIB=$ac_cv_prog_RANLIB
6608 if test -n "$RANLIB"; then
6609   echo "$as_me:$LINENO: result: $RANLIB" >&5
6610 echo "${ECHO_T}$RANLIB" >&6
6611 else
6612   echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6
6614 fi
6615
6616 fi
6617 if test -z "$ac_cv_prog_RANLIB"; then
6618   ac_ct_RANLIB=$RANLIB
6619   # Extract the first word of "ranlib", so it can be a program name with args.
6620 set dummy ranlib; ac_word=$2
6621 echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   if test -n "$ac_ct_RANLIB"; then
6627   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636     ac_cv_prog_ac_ct_RANLIB="ranlib"
6637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642
6643   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6644 fi
6645 fi
6646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6647 if test -n "$ac_ct_RANLIB"; then
6648   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6649 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6650 else
6651   echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6653 fi
6654
6655   RANLIB=$ac_ct_RANLIB
6656 else
6657   RANLIB="$ac_cv_prog_RANLIB"
6658 fi
6659
6660 test -z "$RANLIB" && RANLIB=:
6661
6662
6663
6664
6665
6666
6667 # Determine commands to create old-style static archives.
6668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6669 old_postinstall_cmds='chmod 644 $oldlib'
6670 old_postuninstall_cmds=
6671
6672 if test -n "$RANLIB"; then
6673   case $host_os in
6674   openbsd*)
6675     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6676     ;;
6677   *)
6678     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6679     ;;
6680   esac
6681   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6682 fi
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717 # If no C compiler was specified, use CC.
6718 LTCC=${LTCC-"$CC"}
6719
6720 # If no C compiler flags were specified, use CFLAGS.
6721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6722
6723 # Allow CC to be a program name with arguments.
6724 compiler=$CC
6725
6726
6727 # Check for command to grab the raw symbol name followed by C symbol from nm.
6728 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6729 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6730 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733
6734 # These are sane defaults that work on at least a few old systems.
6735 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6736
6737 # Character class describing NM global symbol codes.
6738 symcode='[BCDEGRST]'
6739
6740 # Regexp to match symbols that can be accessed directly from C.
6741 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6742
6743 # Define system-specific variables.
6744 case $host_os in
6745 aix*)
6746   symcode='[BCDT]'
6747   ;;
6748 cygwin* | mingw* | pw32*)
6749   symcode='[ABCDGISTW]'
6750   ;;
6751 hpux*)
6752   if test "$host_cpu" = ia64; then
6753     symcode='[ABCDEGRST]'
6754   fi
6755   ;;
6756 irix* | nonstopux*)
6757   symcode='[BCDEGRST]'
6758   ;;
6759 osf*)
6760   symcode='[BCDEGQRST]'
6761   ;;
6762 solaris*)
6763   symcode='[BDRT]'
6764   ;;
6765 sco3.2v5*)
6766   symcode='[DT]'
6767   ;;
6768 sysv4.2uw2*)
6769   symcode='[DT]'
6770   ;;
6771 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6772   symcode='[ABDT]'
6773   ;;
6774 sysv4)
6775   symcode='[DFNSTU]'
6776   ;;
6777 esac
6778
6779 # If we're using GNU nm, then use its standard symbol codes.
6780 case `$NM -V 2>&1` in
6781 *GNU* | *'with BFD'*)
6782   symcode='[ABCDGIRSTW]' ;;
6783 esac
6784
6785 # Transform an extracted symbol line into a proper C declaration.
6786 # Some systems (esp. on ia64) link data and code symbols differently,
6787 # so use this general approach.
6788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6789
6790 # Transform an extracted symbol line into symbol name and symbol address
6791 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6792
6793 # Handle CRLF in mingw tool chain
6794 opt_cr=
6795 case $build_os in
6796 mingw*)
6797   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6798   ;;
6799 esac
6800
6801 # Try without a prefix underscore, then with it.
6802 for ac_symprfx in "" "_"; do
6803
6804   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6805   symxfrm="\\1 $ac_symprfx\\2 \\2"
6806
6807   # Write the raw and C identifiers.
6808   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6809     # Fake it for dumpbin and say T for any non-static function
6810     # and D for any global variable.
6811     # Also find C++ and __fastcall symbols from MSVC++,
6812     # which start with @ or ?.
6813     lt_cv_sys_global_symbol_pipe="$AWK '"\
6814 "     {last_section=section; section=\$ 3};"\
6815 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6816 "     \$ 0!~/External *\|/{next};"\
6817 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6818 "     {if(hide[section]) next};"\
6819 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6820 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6821 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6822 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6823 "     ' prfx=^$ac_symprfx"
6824   else
6825     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6826   fi
6827
6828   # Check to see that the pipe works correctly.
6829   pipe_works=no
6830
6831   rm -f conftest*
6832   cat > conftest.$ac_ext <<_LT_EOF
6833 #ifdef __cplusplus
6834 extern "C" {
6835 #endif
6836 char nm_test_var;
6837 void nm_test_func(void);
6838 void nm_test_func(void){}
6839 #ifdef __cplusplus
6840 }
6841 #endif
6842 int main(){nm_test_var='a';nm_test_func();return(0);}
6843 _LT_EOF
6844
6845   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846   (eval $ac_compile) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; then
6850     # Now try to grab the symbols.
6851     nlist=conftest.nm
6852     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6853   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } && test -s "$nlist"; then
6857       # Try sorting and uniquifying the output.
6858       if sort "$nlist" | uniq > "$nlist"T; then
6859         mv -f "$nlist"T "$nlist"
6860       else
6861         rm -f "$nlist"T
6862       fi
6863
6864       # Make sure that we snagged all the symbols we need.
6865       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6866         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6867           cat <<_LT_EOF > conftest.$ac_ext
6868 #ifdef __cplusplus
6869 extern "C" {
6870 #endif
6871
6872 _LT_EOF
6873           # Now generate the symbol file.
6874           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6875
6876           cat <<_LT_EOF >> conftest.$ac_ext
6877
6878 /* The mapping between symbol names and symbols.  */
6879 const struct {
6880   const char *name;
6881   void       *address;
6882 }
6883 lt__PROGRAM__LTX_preloaded_symbols[] =
6884 {
6885   { "@PROGRAM@", (void *) 0 },
6886 _LT_EOF
6887           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6888           cat <<\_LT_EOF >> conftest.$ac_ext
6889   {0, (void *) 0}
6890 };
6891
6892 /* This works around a problem in FreeBSD linker */
6893 #ifdef FREEBSD_WORKAROUND
6894 static const void *lt_preloaded_setup() {
6895   return lt__PROGRAM__LTX_preloaded_symbols;
6896 }
6897 #endif
6898
6899 #ifdef __cplusplus
6900 }
6901 #endif
6902 _LT_EOF
6903           # Now try linking the two files.
6904           mv conftest.$ac_objext conftstm.$ac_objext
6905           lt_save_LIBS="$LIBS"
6906           lt_save_CFLAGS="$CFLAGS"
6907           LIBS="conftstm.$ac_objext"
6908           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6909           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910   (eval $ac_link) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6914             pipe_works=yes
6915           fi
6916           LIBS="$lt_save_LIBS"
6917           CFLAGS="$lt_save_CFLAGS"
6918         else
6919           echo "cannot find nm_test_func in $nlist" >&5
6920         fi
6921       else
6922         echo "cannot find nm_test_var in $nlist" >&5
6923       fi
6924     else
6925       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6926     fi
6927   else
6928     echo "$progname: failed program was:" >&5
6929     cat conftest.$ac_ext >&5
6930   fi
6931   rm -f conftest* conftst*
6932
6933   # Do not use the global_symbol_pipe unless it works.
6934   if test "$pipe_works" = yes; then
6935     break
6936   else
6937     lt_cv_sys_global_symbol_pipe=
6938   fi
6939 done
6940
6941 fi
6942
6943 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6944   lt_cv_sys_global_symbol_to_cdecl=
6945 fi
6946 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6947   echo "$as_me:$LINENO: result: failed" >&5
6948 echo "${ECHO_T}failed" >&6
6949 else
6950   echo "$as_me:$LINENO: result: ok" >&5
6951 echo "${ECHO_T}ok" >&6
6952 fi
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6972 if test "${enable_libtool_lock+set}" = set; then
6973   enableval="$enable_libtool_lock"
6974
6975 fi;
6976 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6977
6978 # Some flags need to be propagated to the compiler or linker for good
6979 # libtool support.
6980 case $host in
6981 ia64-*-hpux*)
6982   # Find out which ABI we are using.
6983   echo 'int i;' > conftest.$ac_ext
6984   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985   (eval $ac_compile) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; then
6989     case `/usr/bin/file conftest.$ac_objext` in
6990       *ELF-32*)
6991         HPUX_IA64_MODE="32"
6992         ;;
6993       *ELF-64*)
6994         HPUX_IA64_MODE="64"
6995         ;;
6996     esac
6997   fi
6998   rm -rf conftest*
6999   ;;
7000 *-*-irix6*)
7001   # Find out which ABI we are using.
7002   echo '#line 7002 "configure"' > conftest.$ac_ext
7003   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004   (eval $ac_compile) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); }; then
7008     if test "$lt_cv_prog_gnu_ld" = yes; then
7009       case `/usr/bin/file conftest.$ac_objext` in
7010         *32-bit*)
7011           LD="${LD-ld} -melf32bsmip"
7012           ;;
7013         *N32*)
7014           LD="${LD-ld} -melf32bmipn32"
7015           ;;
7016         *64-bit*)
7017           LD="${LD-ld} -melf64bmip"
7018         ;;
7019       esac
7020     else
7021       case `/usr/bin/file conftest.$ac_objext` in
7022         *32-bit*)
7023           LD="${LD-ld} -32"
7024           ;;
7025         *N32*)
7026           LD="${LD-ld} -n32"
7027           ;;
7028         *64-bit*)
7029           LD="${LD-ld} -64"
7030           ;;
7031       esac
7032     fi
7033   fi
7034   rm -rf conftest*
7035   ;;
7036
7037 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7038 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7039   # Find out which ABI we are using.
7040   echo 'int i;' > conftest.$ac_ext
7041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042   (eval $ac_compile) 2>&5
7043   ac_status=$?
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); }; then
7046     case `/usr/bin/file conftest.o` in
7047       *32-bit*)
7048         case $host in
7049           x86_64-*kfreebsd*-gnu)
7050             LD="${LD-ld} -m elf_i386_fbsd"
7051             ;;
7052           x86_64-*linux*)
7053             LD="${LD-ld} -m elf_i386"
7054             ;;
7055           ppc64-*linux*|powerpc64-*linux*)
7056             LD="${LD-ld} -m elf32ppclinux"
7057             ;;
7058           s390x-*linux*)
7059             LD="${LD-ld} -m elf_s390"
7060             ;;
7061           sparc64-*linux*)
7062             LD="${LD-ld} -m elf32_sparc"
7063             ;;
7064         esac
7065         ;;
7066       *64-bit*)
7067         case $host in
7068           x86_64-*kfreebsd*-gnu)
7069             LD="${LD-ld} -m elf_x86_64_fbsd"
7070             ;;
7071           x86_64-*linux*)
7072             LD="${LD-ld} -m elf_x86_64"
7073             ;;
7074           ppc*-*linux*|powerpc*-*linux*)
7075             LD="${LD-ld} -m elf64ppc"
7076             ;;
7077           s390*-*linux*|s390*-*tpf*)
7078             LD="${LD-ld} -m elf64_s390"
7079             ;;
7080           sparc*-*linux*)
7081             LD="${LD-ld} -m elf64_sparc"
7082             ;;
7083         esac
7084         ;;
7085     esac
7086   fi
7087   rm -rf conftest*
7088   ;;
7089
7090 *-*-sco3.2v5*)
7091   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7092   SAVE_CFLAGS="$CFLAGS"
7093   CFLAGS="$CFLAGS -belf"
7094   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7095 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7096 if test "${lt_cv_cc_needs_belf+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   ac_ext=c
7100 ac_cpp='$CPP $CPPFLAGS'
7101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105      if test x$gcc_no_link = xyes; then
7106   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7108    { (exit 1); exit 1; }; }
7109 fi
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h.  */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h.  */
7116
7117 int
7118 main ()
7119 {
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127   (eval $ac_link) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -z "$ac_c_werror_flag"
7135                          || test ! -s conftest.err'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; } &&
7141          { ac_try='test -s conftest$ac_exeext'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; }; then
7147   lt_cv_cc_needs_belf=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 lt_cv_cc_needs_belf=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext \
7155       conftest$ac_exeext conftest.$ac_ext
7156      ac_ext=c
7157 ac_cpp='$CPP $CPPFLAGS'
7158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7161
7162 fi
7163 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7164 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7165   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7166     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7167     CFLAGS="$SAVE_CFLAGS"
7168   fi
7169   ;;
7170 sparc*-*solaris*)
7171   # Find out which ABI we are using.
7172   echo 'int i;' > conftest.$ac_ext
7173   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174   (eval $ac_compile) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; then
7178     case `/usr/bin/file conftest.o` in
7179     *64-bit*)
7180       case $lt_cv_prog_gnu_ld in
7181       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7182       *)    LD="${LD-ld} -64" ;;
7183       esac
7184       ;;
7185     esac
7186   fi
7187   rm -rf conftest*
7188   ;;
7189 esac
7190
7191 need_locks="$enable_libtool_lock"
7192
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7200 # On Suns, sometimes $CPP names a directory.
7201 if test -n "$CPP" && test -d "$CPP"; then
7202   CPP=
7203 fi
7204 if test -z "$CPP"; then
7205   if test "${ac_cv_prog_CPP+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208       # Double quotes because CPP needs to be expanded
7209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7210     do
7211       ac_preproc_ok=false
7212 for ac_c_preproc_warn_flag in '' yes
7213 do
7214   # Use a header file that comes with gcc, so configuring glibc
7215   # with a fresh cross-compiler works.
7216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7217   # <limits.h> exists even on freestanding compilers.
7218   # On the NeXT, cc -E runs the code through the compiler's parser,
7219   # not just through cpp. "Syntax error" is here to catch this case.
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231                      Syntax error
7232 _ACEOF
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } >/dev/null; then
7241   if test -s conftest.err; then
7242     ac_cpp_err=$ac_c_preproc_warn_flag
7243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7244   else
7245     ac_cpp_err=
7246   fi
7247 else
7248   ac_cpp_err=yes
7249 fi
7250 if test -z "$ac_cpp_err"; then
7251   :
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256   # Broken: fails on valid input.
7257 continue
7258 fi
7259 rm -f conftest.err conftest.$ac_ext
7260
7261   # OK, works on sane cases.  Now check whether non-existent headers
7262   # can be detected and how.
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269 #include <ac_nonexistent.h>
7270 _ACEOF
7271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } >/dev/null; then
7279   if test -s conftest.err; then
7280     ac_cpp_err=$ac_c_preproc_warn_flag
7281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7282   else
7283     ac_cpp_err=
7284   fi
7285 else
7286   ac_cpp_err=yes
7287 fi
7288 if test -z "$ac_cpp_err"; then
7289   # Broken: success on invalid input.
7290 continue
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295   # Passes both tests.
7296 ac_preproc_ok=:
7297 break
7298 fi
7299 rm -f conftest.err conftest.$ac_ext
7300
7301 done
7302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7303 rm -f conftest.err conftest.$ac_ext
7304 if $ac_preproc_ok; then
7305   break
7306 fi
7307
7308     done
7309     ac_cv_prog_CPP=$CPP
7310
7311 fi
7312   CPP=$ac_cv_prog_CPP
7313 else
7314   ac_cv_prog_CPP=$CPP
7315 fi
7316 echo "$as_me:$LINENO: result: $CPP" >&5
7317 echo "${ECHO_T}$CPP" >&6
7318 ac_preproc_ok=false
7319 for ac_c_preproc_warn_flag in '' yes
7320 do
7321   # Use a header file that comes with gcc, so configuring glibc
7322   # with a fresh cross-compiler works.
7323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7324   # <limits.h> exists even on freestanding compilers.
7325   # On the NeXT, cc -E runs the code through the compiler's parser,
7326   # not just through cpp. "Syntax error" is here to catch this case.
7327   cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h.  */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h.  */
7333 #ifdef __STDC__
7334 # include <limits.h>
7335 #else
7336 # include <assert.h>
7337 #endif
7338                      Syntax error
7339 _ACEOF
7340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342   ac_status=$?
7343   grep -v '^ *+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } >/dev/null; then
7348   if test -s conftest.err; then
7349     ac_cpp_err=$ac_c_preproc_warn_flag
7350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7351   else
7352     ac_cpp_err=
7353   fi
7354 else
7355   ac_cpp_err=yes
7356 fi
7357 if test -z "$ac_cpp_err"; then
7358   :
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363   # Broken: fails on valid input.
7364 continue
7365 fi
7366 rm -f conftest.err conftest.$ac_ext
7367
7368   # OK, works on sane cases.  Now check whether non-existent headers
7369   # can be detected and how.
7370   cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 #include <ac_nonexistent.h>
7377 _ACEOF
7378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } >/dev/null; then
7386   if test -s conftest.err; then
7387     ac_cpp_err=$ac_c_preproc_warn_flag
7388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7389   else
7390     ac_cpp_err=
7391   fi
7392 else
7393   ac_cpp_err=yes
7394 fi
7395 if test -z "$ac_cpp_err"; then
7396   # Broken: success on invalid input.
7397 continue
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402   # Passes both tests.
7403 ac_preproc_ok=:
7404 break
7405 fi
7406 rm -f conftest.err conftest.$ac_ext
7407
7408 done
7409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410 rm -f conftest.err conftest.$ac_ext
7411 if $ac_preproc_ok; then
7412   :
7413 else
7414   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7415 See \`config.log' for more details." >&5
7416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7417 See \`config.log' for more details." >&2;}
7418    { (exit 1); exit 1; }; }
7419 fi
7420
7421 ac_ext=c
7422 ac_cpp='$CPP $CPPFLAGS'
7423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7426
7427
7428 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7429 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7430 if test "${ac_cv_header_stdc+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 #include <stdlib.h>
7440 #include <stdarg.h>
7441 #include <string.h>
7442 #include <float.h>
7443
7444 int
7445 main ()
7446 {
7447
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454   (eval $ac_compile) 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } &&
7461          { ac_try='test -z "$ac_c_werror_flag"
7462                          || test ! -s conftest.err'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_cv_header_stdc=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_cv_header_stdc=no
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 if test $ac_cv_header_stdc = yes; then
7484   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7485   cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491 #include <string.h>
7492
7493 _ACEOF
7494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7495   $EGREP "memchr" >/dev/null 2>&1; then
7496   :
7497 else
7498   ac_cv_header_stdc=no
7499 fi
7500 rm -f conftest*
7501
7502 fi
7503
7504 if test $ac_cv_header_stdc = yes; then
7505   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7506   cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 #include <stdlib.h>
7513
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516   $EGREP "free" >/dev/null 2>&1; then
7517   :
7518 else
7519   ac_cv_header_stdc=no
7520 fi
7521 rm -f conftest*
7522
7523 fi
7524
7525 if test $ac_cv_header_stdc = yes; then
7526   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7527   if test "$cross_compiling" = yes; then
7528   :
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 #include <ctype.h>
7537 #if ((' ' & 0x0FF) == 0x020)
7538 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7539 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7540 #else
7541 # define ISLOWER(c) \
7542                    (('a' <= (c) && (c) <= 'i') \
7543                      || ('j' <= (c) && (c) <= 'r') \
7544                      || ('s' <= (c) && (c) <= 'z'))
7545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7546 #endif
7547
7548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7549 int
7550 main ()
7551 {
7552   int i;
7553   for (i = 0; i < 256; i++)
7554     if (XOR (islower (i), ISLOWER (i))
7555         || toupper (i) != TOUPPER (i))
7556       exit(2);
7557   exit (0);
7558 }
7559 _ACEOF
7560 rm -f conftest$ac_exeext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7562   (eval $ac_link) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; }; then
7571   :
7572 else
7573   echo "$as_me: program exited with status $ac_status" >&5
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 ( exit $ac_status )
7578 ac_cv_header_stdc=no
7579 fi
7580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 fi
7583 fi
7584 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7585 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7586 if test $ac_cv_header_stdc = yes; then
7587
7588 cat >>confdefs.h <<\_ACEOF
7589 #define STDC_HEADERS 1
7590 _ACEOF
7591
7592 fi
7593
7594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7605                   inttypes.h stdint.h unistd.h
7606 do
7607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 echo "$as_me:$LINENO: checking for $ac_header" >&5
7609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 $ac_includes_default
7620
7621 #include <$ac_header>
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625   (eval $ac_compile) 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -z "$ac_c_werror_flag"
7633                          || test ! -s conftest.err'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; } &&
7639          { ac_try='test -s conftest.$ac_objext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   eval "$as_ac_Header=yes"
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 eval "$as_ac_Header=no"
7651 fi
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7657   cat >>confdefs.h <<_ACEOF
7658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7659 _ACEOF
7660
7661 fi
7662
7663 done
7664
7665
7666
7667 for ac_header in dlfcn.h
7668 do
7669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 echo "$as_me:$LINENO: checking for $ac_header" >&5
7671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h.  */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h.  */
7681 $ac_includes_default
7682
7683 #include <$ac_header>
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687   (eval $ac_compile) 2>conftest.er1
7688   ac_status=$?
7689   grep -v '^ *+' conftest.er1 >conftest.err
7690   rm -f conftest.er1
7691   cat conftest.err >&5
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } &&
7694          { ac_try='test -z "$ac_c_werror_flag"
7695                          || test ! -s conftest.err'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; } &&
7701          { ac_try='test -s conftest.$ac_objext'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; }; then
7707   eval "$as_ac_Header=yes"
7708 else
7709   echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 eval "$as_ac_Header=no"
7713 fi
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 fi
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719   cat >>confdefs.h <<_ACEOF
7720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721 _ACEOF
7722
7723 fi
7724
7725 done
7726
7727
7728
7729 ac_ext=cc
7730 ac_cpp='$CXXCPP $CPPFLAGS'
7731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7734 if test -n "$ac_tool_prefix"; then
7735   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7736   do
7737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7739 echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741 if test "${ac_cv_prog_CXX+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   if test -n "$CXX"; then
7745   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760
7761 fi
7762 fi
7763 CXX=$ac_cv_prog_CXX
7764 if test -n "$CXX"; then
7765   echo "$as_me:$LINENO: result: $CXX" >&5
7766 echo "${ECHO_T}$CXX" >&6
7767 else
7768   echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6
7770 fi
7771
7772     test -n "$CXX" && break
7773   done
7774 fi
7775 if test -z "$CXX"; then
7776   ac_ct_CXX=$CXX
7777   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7778 do
7779   # Extract the first word of "$ac_prog", so it can be a program name with args.
7780 set dummy $ac_prog; ac_word=$2
7781 echo "$as_me:$LINENO: checking for $ac_word" >&5
7782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   if test -n "$ac_ct_CXX"; then
7787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794   for ac_exec_ext in '' $ac_executable_extensions; do
7795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796     ac_cv_prog_ac_ct_CXX="$ac_prog"
7797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801 done
7802
7803 fi
7804 fi
7805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7806 if test -n "$ac_ct_CXX"; then
7807   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7808 echo "${ECHO_T}$ac_ct_CXX" >&6
7809 else
7810   echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7812 fi
7813
7814   test -n "$ac_ct_CXX" && break
7815 done
7816 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7817
7818   CXX=$ac_ct_CXX
7819 fi
7820
7821
7822 # Provide some information about the compiler.
7823 echo "$as_me:$LINENO:" \
7824      "checking for C++ compiler version" >&5
7825 ac_compiler=`set X $ac_compile; echo $2`
7826 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7827   (eval $ac_compiler --version </dev/null >&5) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }
7831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7832   (eval $ac_compiler -v </dev/null >&5) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }
7836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7837   (eval $ac_compiler -V </dev/null >&5) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }
7841
7842 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7843 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7844 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853
7854 int
7855 main ()
7856 {
7857 #ifndef __GNUC__
7858        choke me
7859 #endif
7860
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7867   (eval $ac_compile) 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } &&
7874          { ac_try='test -z "$ac_cxx_werror_flag"
7875                          || test ! -s conftest.err'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; } &&
7881          { ac_try='test -s conftest.$ac_objext'
7882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883   (eval $ac_try) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_compiler_gnu=yes
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ac_compiler_gnu=no
7893 fi
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7896
7897 fi
7898 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7899 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7900 GXX=`test $ac_compiler_gnu = yes && echo yes`
7901 ac_test_CXXFLAGS=${CXXFLAGS+set}
7902 ac_save_CXXFLAGS=$CXXFLAGS
7903 CXXFLAGS="-g"
7904 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7905 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7906 if test "${ac_cv_prog_cxx_g+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915
7916 int
7917 main ()
7918 {
7919
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926   (eval $ac_compile) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_cxx_werror_flag"
7934                          || test ! -s conftest.err'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_cv_prog_cxx_g=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_cv_prog_cxx_g=no
7952 fi
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7956 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7957 if test "$ac_test_CXXFLAGS" = set; then
7958   CXXFLAGS=$ac_save_CXXFLAGS
7959 elif test $ac_cv_prog_cxx_g = yes; then
7960   if test "$GXX" = yes; then
7961     CXXFLAGS="-g -O2"
7962   else
7963     CXXFLAGS="-g"
7964   fi
7965 else
7966   if test "$GXX" = yes; then
7967     CXXFLAGS="-O2"
7968   else
7969     CXXFLAGS=
7970   fi
7971 fi
7972 for ac_declaration in \
7973    '' \
7974    'extern "C" void std::exit (int) throw (); using std::exit;' \
7975    'extern "C" void std::exit (int); using std::exit;' \
7976    'extern "C" void exit (int) throw ();' \
7977    'extern "C" void exit (int);' \
7978    'void exit (int);'
7979 do
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_declaration
7987 #include <stdlib.h>
7988 int
7989 main ()
7990 {
7991 exit (42);
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998   (eval $ac_compile) 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } &&
8005          { ac_try='test -z "$ac_cxx_werror_flag"
8006                          || test ! -s conftest.err'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; } &&
8012          { ac_try='test -s conftest.$ac_objext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   :
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 continue
8024 fi
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 $ac_declaration
8033 int
8034 main ()
8035 {
8036 exit (42);
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043   (eval $ac_compile) 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -z "$ac_cxx_werror_flag"
8051                          || test ! -s conftest.err'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; } &&
8057          { ac_try='test -s conftest.$ac_objext'
8058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059   (eval $ac_try) 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   break
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 fi
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 done
8071 rm -f conftest*
8072 if test -n "$ac_declaration"; then
8073   echo '#ifdef __cplusplus' >>confdefs.h
8074   echo $ac_declaration      >>confdefs.h
8075   echo '#endif'             >>confdefs.h
8076 fi
8077
8078 ac_ext=c
8079 ac_cpp='$CPP $CPPFLAGS'
8080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083
8084 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8085     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8086     (test "X$CXX" != "Xg++"))) ; then
8087   ac_ext=cc
8088 ac_cpp='$CXXCPP $CPPFLAGS'
8089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8092 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8093 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8094 if test -z "$CXXCPP"; then
8095   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098       # Double quotes because CXXCPP needs to be expanded
8099     for CXXCPP in "$CXX -E" "/lib/cpp"
8100     do
8101       ac_preproc_ok=false
8102 for ac_cxx_preproc_warn_flag in '' yes
8103 do
8104   # Use a header file that comes with gcc, so configuring glibc
8105   # with a fresh cross-compiler works.
8106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8107   # <limits.h> exists even on freestanding compilers.
8108   # On the NeXT, cc -E runs the code through the compiler's parser,
8109   # not just through cpp. "Syntax error" is here to catch this case.
8110   cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116 #ifdef __STDC__
8117 # include <limits.h>
8118 #else
8119 # include <assert.h>
8120 #endif
8121                      Syntax error
8122 _ACEOF
8123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } >/dev/null; then
8131   if test -s conftest.err; then
8132     ac_cpp_err=$ac_cxx_preproc_warn_flag
8133     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8134   else
8135     ac_cpp_err=
8136   fi
8137 else
8138   ac_cpp_err=yes
8139 fi
8140 if test -z "$ac_cpp_err"; then
8141   :
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146   # Broken: fails on valid input.
8147 continue
8148 fi
8149 rm -f conftest.err conftest.$ac_ext
8150
8151   # OK, works on sane cases.  Now check whether non-existent headers
8152   # can be detected and how.
8153   cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159 #include <ac_nonexistent.h>
8160 _ACEOF
8161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } >/dev/null; then
8169   if test -s conftest.err; then
8170     ac_cpp_err=$ac_cxx_preproc_warn_flag
8171     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8172   else
8173     ac_cpp_err=
8174   fi
8175 else
8176   ac_cpp_err=yes
8177 fi
8178 if test -z "$ac_cpp_err"; then
8179   # Broken: success on invalid input.
8180 continue
8181 else
8182   echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185   # Passes both tests.
8186 ac_preproc_ok=:
8187 break
8188 fi
8189 rm -f conftest.err conftest.$ac_ext
8190
8191 done
8192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8193 rm -f conftest.err conftest.$ac_ext
8194 if $ac_preproc_ok; then
8195   break
8196 fi
8197
8198     done
8199     ac_cv_prog_CXXCPP=$CXXCPP
8200
8201 fi
8202   CXXCPP=$ac_cv_prog_CXXCPP
8203 else
8204   ac_cv_prog_CXXCPP=$CXXCPP
8205 fi
8206 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8207 echo "${ECHO_T}$CXXCPP" >&6
8208 ac_preproc_ok=false
8209 for ac_cxx_preproc_warn_flag in '' yes
8210 do
8211   # Use a header file that comes with gcc, so configuring glibc
8212   # with a fresh cross-compiler works.
8213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8214   # <limits.h> exists even on freestanding compilers.
8215   # On the NeXT, cc -E runs the code through the compiler's parser,
8216   # not just through cpp. "Syntax error" is here to catch this case.
8217   cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 #ifdef __STDC__
8224 # include <limits.h>
8225 #else
8226 # include <assert.h>
8227 #endif
8228                      Syntax error
8229 _ACEOF
8230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8232   ac_status=$?
8233   grep -v '^ *+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } >/dev/null; then
8238   if test -s conftest.err; then
8239     ac_cpp_err=$ac_cxx_preproc_warn_flag
8240     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8241   else
8242     ac_cpp_err=
8243   fi
8244 else
8245   ac_cpp_err=yes
8246 fi
8247 if test -z "$ac_cpp_err"; then
8248   :
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253   # Broken: fails on valid input.
8254 continue
8255 fi
8256 rm -f conftest.err conftest.$ac_ext
8257
8258   # OK, works on sane cases.  Now check whether non-existent headers
8259   # can be detected and how.
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 #include <ac_nonexistent.h>
8267 _ACEOF
8268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } >/dev/null; then
8276   if test -s conftest.err; then
8277     ac_cpp_err=$ac_cxx_preproc_warn_flag
8278     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8279   else
8280     ac_cpp_err=
8281   fi
8282 else
8283   ac_cpp_err=yes
8284 fi
8285 if test -z "$ac_cpp_err"; then
8286   # Broken: success on invalid input.
8287 continue
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292   # Passes both tests.
8293 ac_preproc_ok=:
8294 break
8295 fi
8296 rm -f conftest.err conftest.$ac_ext
8297
8298 done
8299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8300 rm -f conftest.err conftest.$ac_ext
8301 if $ac_preproc_ok; then
8302   :
8303 else
8304   _lt_caught_CXX_error=yes
8305 fi
8306
8307 ac_ext=c
8308 ac_cpp='$CPP $CPPFLAGS'
8309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313 else
8314   _lt_caught_CXX_error=yes
8315 fi
8316
8317
8318
8319
8320
8321 # This can be used to rebuild libtool when needed
8322 LIBTOOL_DEPS="$ltmain"
8323
8324 # Always use our own libtool.
8325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351 test -z "$LN_S" && LN_S="ln -s"
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 if test -n "${ZSH_VERSION+set}" ; then
8367    setopt NO_GLOB_SUBST
8368 fi
8369
8370 echo "$as_me:$LINENO: checking for objdir" >&5
8371 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8372 if test "${lt_cv_objdir+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   rm -f .libs 2>/dev/null
8376 mkdir .libs 2>/dev/null
8377 if test -d .libs; then
8378   lt_cv_objdir=.libs
8379 else
8380   # MS-DOS does not allow filenames that begin with a dot.
8381   lt_cv_objdir=_libs
8382 fi
8383 rmdir .libs 2>/dev/null
8384 fi
8385 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8386 echo "${ECHO_T}$lt_cv_objdir" >&6
8387 objdir=$lt_cv_objdir
8388
8389
8390
8391
8392
8393 cat >>confdefs.h <<_ACEOF
8394 #define LT_OBJDIR "$lt_cv_objdir/"
8395 _ACEOF
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413 case $host_os in
8414 aix3*)
8415   # AIX sometimes has problems with the GCC collect2 program.  For some
8416   # reason, if we set the COLLECT_NAMES environment variable, the problems
8417   # vanish in a puff of smoke.
8418   if test "X${COLLECT_NAMES+set}" != Xset; then
8419     COLLECT_NAMES=
8420     export COLLECT_NAMES
8421   fi
8422   ;;
8423 esac
8424
8425 # Sed substitution that helps us do robust quoting.  It backslashifies
8426 # metacharacters that are still active within double-quoted strings.
8427 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8428
8429 # Same as above, but do not quote variable references.
8430 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8431
8432 # Sed substitution to delay expansion of an escaped shell variable in a
8433 # double_quote_subst'ed string.
8434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8435
8436 # Sed substitution to delay expansion of an escaped single quote.
8437 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8438
8439 # Sed substitution to avoid accidental globbing in evaled expressions
8440 no_glob_subst='s/\*/\\\*/g'
8441
8442 # Global variables:
8443 ofile=libtool
8444 can_build_shared=yes
8445
8446 # All known linkers require a `.a' archive for static linking (except MSVC,
8447 # which needs '.lib').
8448 libext=a
8449
8450 with_gnu_ld="$lt_cv_prog_gnu_ld"
8451
8452 old_CC="$CC"
8453 old_CFLAGS="$CFLAGS"
8454
8455 # Set sane defaults for various variables
8456 test -z "$CC" && CC=cc
8457 test -z "$LTCC" && LTCC=$CC
8458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8459 test -z "$LD" && LD=ld
8460 test -z "$ac_objext" && ac_objext=o
8461
8462 for cc_temp in $compiler""; do
8463   case $cc_temp in
8464     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8465     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8466     \-*) ;;
8467     *) break;;
8468   esac
8469 done
8470 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8471
8472
8473 # Only perform the check for file, if the check method requires it
8474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8475 case $deplibs_check_method in
8476 file_magic*)
8477   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8478     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8479 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8480 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   case $MAGIC_CMD in
8484 [\\/*] |  ?:[\\/]*)
8485   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8486   ;;
8487 *)
8488   lt_save_MAGIC_CMD="$MAGIC_CMD"
8489   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8490   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8491   for ac_dir in $ac_dummy; do
8492     IFS="$lt_save_ifs"
8493     test -z "$ac_dir" && ac_dir=.
8494     if test -f $ac_dir/${ac_tool_prefix}file; then
8495       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8496       if test -n "$file_magic_test_file"; then
8497         case $deplibs_check_method in
8498         "file_magic "*)
8499           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8500           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8501           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8502             $EGREP "$file_magic_regex" > /dev/null; then
8503             :
8504           else
8505             cat <<_LT_EOF 1>&2
8506
8507 *** Warning: the command libtool uses to detect shared libraries,
8508 *** $file_magic_cmd, produces output that libtool cannot recognize.
8509 *** The result is that libtool may fail to recognize shared libraries
8510 *** as such.  This will affect the creation of libtool libraries that
8511 *** depend on shared libraries, but programs linked with such libtool
8512 *** libraries will work regardless of this problem.  Nevertheless, you
8513 *** may want to report the problem to your system manager and/or to
8514 *** bug-libtool@gnu.org
8515
8516 _LT_EOF
8517           fi ;;
8518         esac
8519       fi
8520       break
8521     fi
8522   done
8523   IFS="$lt_save_ifs"
8524   MAGIC_CMD="$lt_save_MAGIC_CMD"
8525   ;;
8526 esac
8527 fi
8528
8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530 if test -n "$MAGIC_CMD"; then
8531   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8532 echo "${ECHO_T}$MAGIC_CMD" >&6
8533 else
8534   echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6
8536 fi
8537
8538
8539
8540
8541
8542 if test -z "$lt_cv_path_MAGIC_CMD"; then
8543   if test -n "$ac_tool_prefix"; then
8544     echo "$as_me:$LINENO: checking for file" >&5
8545 echo $ECHO_N "checking for file... $ECHO_C" >&6
8546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   case $MAGIC_CMD in
8550 [\\/*] |  ?:[\\/]*)
8551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8552   ;;
8553 *)
8554   lt_save_MAGIC_CMD="$MAGIC_CMD"
8555   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8556   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8557   for ac_dir in $ac_dummy; do
8558     IFS="$lt_save_ifs"
8559     test -z "$ac_dir" && ac_dir=.
8560     if test -f $ac_dir/file; then
8561       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8562       if test -n "$file_magic_test_file"; then
8563         case $deplibs_check_method in
8564         "file_magic "*)
8565           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8566           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8567           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8568             $EGREP "$file_magic_regex" > /dev/null; then
8569             :
8570           else
8571             cat <<_LT_EOF 1>&2
8572
8573 *** Warning: the command libtool uses to detect shared libraries,
8574 *** $file_magic_cmd, produces output that libtool cannot recognize.
8575 *** The result is that libtool may fail to recognize shared libraries
8576 *** as such.  This will affect the creation of libtool libraries that
8577 *** depend on shared libraries, but programs linked with such libtool
8578 *** libraries will work regardless of this problem.  Nevertheless, you
8579 *** may want to report the problem to your system manager and/or to
8580 *** bug-libtool@gnu.org
8581
8582 _LT_EOF
8583           fi ;;
8584         esac
8585       fi
8586       break
8587     fi
8588   done
8589   IFS="$lt_save_ifs"
8590   MAGIC_CMD="$lt_save_MAGIC_CMD"
8591   ;;
8592 esac
8593 fi
8594
8595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596 if test -n "$MAGIC_CMD"; then
8597   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8598 echo "${ECHO_T}$MAGIC_CMD" >&6
8599 else
8600   echo "$as_me:$LINENO: result: no" >&5
8601 echo "${ECHO_T}no" >&6
8602 fi
8603
8604
8605   else
8606     MAGIC_CMD=:
8607   fi
8608 fi
8609
8610   fi
8611   ;;
8612 esac
8613
8614 # Use C for the default configuration in the libtool script
8615
8616 lt_save_CC="$CC"
8617 ac_ext=c
8618 ac_cpp='$CPP $CPPFLAGS'
8619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8622
8623
8624 # Source file extension for C test sources.
8625 ac_ext=c
8626
8627 # Object file extension for compiled C test sources.
8628 objext=o
8629 objext=$objext
8630
8631 # Code to be used in simple compile tests
8632 lt_simple_compile_test_code="int some_variable = 0;"
8633
8634 # Code to be used in simple link tests
8635 lt_simple_link_test_code='int main(){return(0);}'
8636
8637
8638
8639
8640
8641
8642
8643 # If no C compiler was specified, use CC.
8644 LTCC=${LTCC-"$CC"}
8645
8646 # If no C compiler flags were specified, use CFLAGS.
8647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8648
8649 # Allow CC to be a program name with arguments.
8650 compiler=$CC
8651
8652 # Save the default compiler, since it gets overwritten when the other
8653 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8654 compiler_DEFAULT=$CC
8655
8656 # save warnings/boilerplate of simple test code
8657 ac_outfile=conftest.$ac_objext
8658 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8660 _lt_compiler_boilerplate=`cat conftest.err`
8661 $RM conftest*
8662
8663 ac_outfile=conftest.$ac_objext
8664 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8666 _lt_linker_boilerplate=`cat conftest.err`
8667 $RM conftest*
8668
8669
8670 ## CAVEAT EMPTOR:
8671 ## There is no encapsulation within the following macros, do not change
8672 ## the running order or otherwise move them around unless you know exactly
8673 ## what you are doing...
8674 if test -n "$compiler"; then
8675
8676 lt_prog_compiler_no_builtin_flag=
8677
8678 if test "$GCC" = yes; then
8679   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8680
8681   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8682 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8683 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   lt_cv_prog_compiler_rtti_exceptions=no
8687    ac_outfile=conftest.$ac_objext
8688    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689    lt_compiler_flag="-fno-rtti -fno-exceptions"
8690    # Insert the option either (1) after the last *FLAGS variable, or
8691    # (2) before a word containing "conftest.", or (3) at the end.
8692    # Note that $ac_compile itself does not contain backslashes and begins
8693    # with a dollar sign (not a hyphen), so the echo should work correctly.
8694    # The option is referenced via a variable to avoid confusing sed.
8695    lt_compile=`echo "$ac_compile" | $SED \
8696    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698    -e 's:$: $lt_compiler_flag:'`
8699    (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700    (eval "$lt_compile" 2>conftest.err)
8701    ac_status=$?
8702    cat conftest.err >&5
8703    echo "$as_me:8703: \$? = $ac_status" >&5
8704    if (exit $ac_status) && test -s "$ac_outfile"; then
8705      # The compiler can only warn and ignore the option if not recognized
8706      # So say no if there are warnings other than the usual output.
8707      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710        lt_cv_prog_compiler_rtti_exceptions=yes
8711      fi
8712    fi
8713    $RM conftest*
8714
8715 fi
8716 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8717 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8718
8719 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8720     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8721 else
8722     :
8723 fi
8724
8725 fi
8726
8727
8728
8729
8730
8731
8732   lt_prog_compiler_wl=
8733 lt_prog_compiler_pic=
8734 lt_prog_compiler_static=
8735
8736 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8737 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8738
8739   if test "$GCC" = yes; then
8740     lt_prog_compiler_wl='-Wl,'
8741     lt_prog_compiler_static='-static'
8742
8743     case $host_os in
8744       aix*)
8745       # All AIX code is PIC.
8746       if test "$host_cpu" = ia64; then
8747         # AIX 5 now supports IA64 processor
8748         lt_prog_compiler_static='-Bstatic'
8749       fi
8750       ;;
8751
8752     amigaos*)
8753       if test "$host_cpu" = m68k; then
8754         # FIXME: we need at least 68020 code to build shared libraries, but
8755         # adding the `-m68020' flag to GCC prevents building anything better,
8756         # like `-m68040'.
8757         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8758       fi
8759       ;;
8760
8761     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8762       # PIC is the default for these OSes.
8763       ;;
8764
8765     mingw* | cygwin* | pw32* | os2*)
8766       # This hack is so that the source file can tell whether it is being
8767       # built for inclusion in a dll (and should export symbols for example).
8768       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8769       # (--disable-auto-import) libraries
8770       lt_prog_compiler_pic='-DDLL_EXPORT'
8771       ;;
8772
8773     darwin* | rhapsody*)
8774       # PIC is the default on this platform
8775       # Common symbols not allowed in MH_DYLIB files
8776       lt_prog_compiler_pic='-fno-common'
8777       ;;
8778
8779     hpux*)
8780       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8781       # not for PA HP-UX.
8782       case $host_cpu in
8783       hppa*64*|ia64*)
8784         # +Z the default
8785         ;;
8786       *)
8787         lt_prog_compiler_pic='-fPIC'
8788         ;;
8789       esac
8790       ;;
8791
8792     interix[3-9]*)
8793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794       # Instead, we relocate shared libraries at runtime.
8795       ;;
8796
8797     msdosdjgpp*)
8798       # Just because we use GCC doesn't mean we suddenly get shared libraries
8799       # on systems that don't support them.
8800       lt_prog_compiler_can_build_shared=no
8801       enable_shared=no
8802       ;;
8803
8804     *nto* | *qnx*)
8805       # QNX uses GNU C++, but need to define -shared option too, otherwise
8806       # it will coredump.
8807       lt_prog_compiler_pic='-fPIC -shared'
8808       ;;
8809
8810     sysv4*MP*)
8811       if test -d /usr/nec; then
8812         lt_prog_compiler_pic=-Kconform_pic
8813       fi
8814       ;;
8815
8816     *)
8817       lt_prog_compiler_pic='-fPIC'
8818       ;;
8819     esac
8820   else
8821     # PORTME Check for flag to pass linker flags through the system compiler.
8822     case $host_os in
8823     aix*)
8824       lt_prog_compiler_wl='-Wl,'
8825       if test "$host_cpu" = ia64; then
8826         # AIX 5 now supports IA64 processor
8827         lt_prog_compiler_static='-Bstatic'
8828       else
8829         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8830       fi
8831       ;;
8832     darwin*)
8833       # PIC is the default on this platform
8834       # Common symbols not allowed in MH_DYLIB files
8835       case $cc_basename in
8836       xlc*)
8837         lt_prog_compiler_pic='-qnocommon'
8838         lt_prog_compiler_wl='-Wl,'
8839         ;;
8840       esac
8841       ;;
8842
8843     mingw* | cygwin* | pw32* | os2*)
8844       # This hack is so that the source file can tell whether it is being
8845       # built for inclusion in a dll (and should export symbols for example).
8846       lt_prog_compiler_pic='-DDLL_EXPORT'
8847       ;;
8848
8849     hpux9* | hpux10* | hpux11*)
8850       lt_prog_compiler_wl='-Wl,'
8851       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8852       # not for PA HP-UX.
8853       case $host_cpu in
8854       hppa*64*|ia64*)
8855         # +Z the default
8856         ;;
8857       *)
8858         lt_prog_compiler_pic='+Z'
8859         ;;
8860       esac
8861       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8862       lt_prog_compiler_static='${wl}-a ${wl}archive'
8863       ;;
8864
8865     irix5* | irix6* | nonstopux*)
8866       lt_prog_compiler_wl='-Wl,'
8867       # PIC (with -KPIC) is the default.
8868       lt_prog_compiler_static='-non_shared'
8869       ;;
8870
8871     linux* | k*bsd*-gnu)
8872       case $cc_basename in
8873       icc* | ecc*)
8874         lt_prog_compiler_wl='-Wl,'
8875         lt_prog_compiler_pic='-KPIC'
8876         lt_prog_compiler_static='-static'
8877         ;;
8878       pgcc* | pgf77* | pgf90* | pgf95*)
8879         # Portland Group compilers (*not* the Pentium gcc compiler,
8880         # which looks to be a dead project)
8881         lt_prog_compiler_wl='-Wl,'
8882         lt_prog_compiler_pic='-fpic'
8883         lt_prog_compiler_static='-Bstatic'
8884         ;;
8885       ccc*)
8886         lt_prog_compiler_wl='-Wl,'
8887         # All Alpha code is PIC.
8888         lt_prog_compiler_static='-non_shared'
8889         ;;
8890       *)
8891         case `$CC -V 2>&1 | sed 5q` in
8892         *Sun\ C*)
8893           # Sun C 5.9
8894           lt_prog_compiler_pic='-KPIC'
8895           lt_prog_compiler_static='-Bstatic'
8896           lt_prog_compiler_wl='-Wl,'
8897           ;;
8898         *Sun\ F*)
8899           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8900           lt_prog_compiler_pic='-KPIC'
8901           lt_prog_compiler_static='-Bstatic'
8902           lt_prog_compiler_wl=''
8903           ;;
8904         esac
8905         ;;
8906       esac
8907       ;;
8908
8909     newsos6)
8910       lt_prog_compiler_pic='-KPIC'
8911       lt_prog_compiler_static='-Bstatic'
8912       ;;
8913
8914     *nto* | *qnx*)
8915       # QNX uses GNU C++, but need to define -shared option too, otherwise
8916       # it will coredump.
8917       lt_prog_compiler_pic='-fPIC -shared'
8918       ;;
8919
8920     osf3* | osf4* | osf5*)
8921       lt_prog_compiler_wl='-Wl,'
8922       # All OSF/1 code is PIC.
8923       lt_prog_compiler_static='-non_shared'
8924       ;;
8925
8926     rdos*)
8927       lt_prog_compiler_static='-non_shared'
8928       ;;
8929
8930     solaris*)
8931       lt_prog_compiler_pic='-KPIC'
8932       lt_prog_compiler_static='-Bstatic'
8933       case $cc_basename in
8934       f77* | f90* | f95*)
8935         lt_prog_compiler_wl='-Qoption ld ';;
8936       *)
8937         lt_prog_compiler_wl='-Wl,';;
8938       esac
8939       ;;
8940
8941     sunos4*)
8942       lt_prog_compiler_wl='-Qoption ld '
8943       lt_prog_compiler_pic='-PIC'
8944       lt_prog_compiler_static='-Bstatic'
8945       ;;
8946
8947     sysv4 | sysv4.2uw2* | sysv4.3*)
8948       lt_prog_compiler_wl='-Wl,'
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     sysv4*MP*)
8954       if test -d /usr/nec ;then
8955         lt_prog_compiler_pic='-Kconform_pic'
8956         lt_prog_compiler_static='-Bstatic'
8957       fi
8958       ;;
8959
8960     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8961       lt_prog_compiler_wl='-Wl,'
8962       lt_prog_compiler_pic='-KPIC'
8963       lt_prog_compiler_static='-Bstatic'
8964       ;;
8965
8966     unicos*)
8967       lt_prog_compiler_wl='-Wl,'
8968       lt_prog_compiler_can_build_shared=no
8969       ;;
8970
8971     uts4*)
8972       lt_prog_compiler_pic='-pic'
8973       lt_prog_compiler_static='-Bstatic'
8974       ;;
8975
8976     *)
8977       lt_prog_compiler_can_build_shared=no
8978       ;;
8979     esac
8980   fi
8981
8982 case $host_os in
8983   # For platforms which do not support PIC, -DPIC is meaningless:
8984   *djgpp*)
8985     lt_prog_compiler_pic=
8986     ;;
8987   *)
8988     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8989     ;;
8990 esac
8991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8992 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8993
8994
8995
8996
8997
8998
8999 #
9000 # Check to make sure the PIC flag actually works.
9001 #
9002 if test -n "$lt_prog_compiler_pic"; then
9003   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9005 if test "${lt_prog_compiler_pic_works+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   lt_prog_compiler_pic_works=no
9009    ac_outfile=conftest.$ac_objext
9010    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9011    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9012    # Insert the option either (1) after the last *FLAGS variable, or
9013    # (2) before a word containing "conftest.", or (3) at the end.
9014    # Note that $ac_compile itself does not contain backslashes and begins
9015    # with a dollar sign (not a hyphen), so the echo should work correctly.
9016    # The option is referenced via a variable to avoid confusing sed.
9017    lt_compile=`echo "$ac_compile" | $SED \
9018    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020    -e 's:$: $lt_compiler_flag:'`
9021    (eval echo "\"\$as_me:9021: $lt_compile\"" >&5)
9022    (eval "$lt_compile" 2>conftest.err)
9023    ac_status=$?
9024    cat conftest.err >&5
9025    echo "$as_me:9025: \$? = $ac_status" >&5
9026    if (exit $ac_status) && test -s "$ac_outfile"; then
9027      # The compiler can only warn and ignore the option if not recognized
9028      # So say no if there are warnings other than the usual output.
9029      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9030      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9031      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9032        lt_prog_compiler_pic_works=yes
9033      fi
9034    fi
9035    $RM conftest*
9036
9037 fi
9038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9039 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9040
9041 if test x"$lt_prog_compiler_pic_works" = xyes; then
9042     case $lt_prog_compiler_pic in
9043      "" | " "*) ;;
9044      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9045      esac
9046 else
9047     lt_prog_compiler_pic=
9048      lt_prog_compiler_can_build_shared=no
9049 fi
9050
9051 fi
9052
9053
9054
9055
9056
9057
9058 #
9059 # Check to make sure the static flag actually works.
9060 #
9061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9062 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9063 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9064 if test "${lt_prog_compiler_static_works+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   lt_prog_compiler_static_works=no
9068    save_LDFLAGS="$LDFLAGS"
9069    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9070    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9071    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9072      # The linker can only warn and ignore the option if not recognized
9073      # So say no if there are warnings
9074      if test -s conftest.err; then
9075        # Append any errors to the config.log.
9076        cat conftest.err 1>&5
9077        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9078        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9079        if diff conftest.exp conftest.er2 >/dev/null; then
9080          lt_prog_compiler_static_works=yes
9081        fi
9082      else
9083        lt_prog_compiler_static_works=yes
9084      fi
9085    fi
9086    $RM conftest*
9087    LDFLAGS="$save_LDFLAGS"
9088
9089 fi
9090 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9091 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9092
9093 if test x"$lt_prog_compiler_static_works" = xyes; then
9094     :
9095 else
9096     lt_prog_compiler_static=
9097 fi
9098
9099
9100
9101
9102
9103
9104
9105   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   lt_cv_prog_compiler_c_o=no
9111    $RM -r conftest 2>/dev/null
9112    mkdir conftest
9113    cd conftest
9114    mkdir out
9115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116
9117    lt_compiler_flag="-o out/conftest2.$ac_objext"
9118    # Insert the option either (1) after the last *FLAGS variable, or
9119    # (2) before a word containing "conftest.", or (3) at the end.
9120    # Note that $ac_compile itself does not contain backslashes and begins
9121    # with a dollar sign (not a hyphen), so the echo should work correctly.
9122    lt_compile=`echo "$ac_compile" | $SED \
9123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125    -e 's:$: $lt_compiler_flag:'`
9126    (eval echo "\"\$as_me:9126: $lt_compile\"" >&5)
9127    (eval "$lt_compile" 2>out/conftest.err)
9128    ac_status=$?
9129    cat out/conftest.err >&5
9130    echo "$as_me:9130: \$? = $ac_status" >&5
9131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9132    then
9133      # The compiler can only warn and ignore the option if not recognized
9134      # So say no if there are warnings
9135      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9138        lt_cv_prog_compiler_c_o=yes
9139      fi
9140    fi
9141    chmod u+w . 2>&5
9142    $RM conftest*
9143    # SGI C++ compiler will create directory out/ii_files/ for
9144    # template instantiation
9145    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9146    $RM out/* && rmdir out
9147    cd ..
9148    $RM -r conftest
9149    $RM conftest*
9150
9151 fi
9152 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9153 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9154
9155
9156
9157
9158
9159
9160   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   lt_cv_prog_compiler_c_o=no
9166    $RM -r conftest 2>/dev/null
9167    mkdir conftest
9168    cd conftest
9169    mkdir out
9170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9171
9172    lt_compiler_flag="-o out/conftest2.$ac_objext"
9173    # Insert the option either (1) after the last *FLAGS variable, or
9174    # (2) before a word containing "conftest.", or (3) at the end.
9175    # Note that $ac_compile itself does not contain backslashes and begins
9176    # with a dollar sign (not a hyphen), so the echo should work correctly.
9177    lt_compile=`echo "$ac_compile" | $SED \
9178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9180    -e 's:$: $lt_compiler_flag:'`
9181    (eval echo "\"\$as_me:9181: $lt_compile\"" >&5)
9182    (eval "$lt_compile" 2>out/conftest.err)
9183    ac_status=$?
9184    cat out/conftest.err >&5
9185    echo "$as_me:9185: \$? = $ac_status" >&5
9186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9187    then
9188      # The compiler can only warn and ignore the option if not recognized
9189      # So say no if there are warnings
9190      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9193        lt_cv_prog_compiler_c_o=yes
9194      fi
9195    fi
9196    chmod u+w . 2>&5
9197    $RM conftest*
9198    # SGI C++ compiler will create directory out/ii_files/ for
9199    # template instantiation
9200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9201    $RM out/* && rmdir out
9202    cd ..
9203    $RM -r conftest
9204    $RM conftest*
9205
9206 fi
9207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9209
9210
9211
9212
9213 hard_links="nottested"
9214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9215   # do not overwrite the value of need_locks provided by the user
9216   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9218   hard_links=yes
9219   $RM conftest*
9220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9221   touch conftest.a
9222   ln conftest.a conftest.b 2>&5 || hard_links=no
9223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9224   echo "$as_me:$LINENO: result: $hard_links" >&5
9225 echo "${ECHO_T}$hard_links" >&6
9226   if test "$hard_links" = no; then
9227     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9229     need_locks=warn
9230   fi
9231 else
9232   need_locks=no
9233 fi
9234
9235
9236
9237
9238
9239
9240   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9242
9243   runpath_var=
9244   allow_undefined_flag=
9245   always_export_symbols=no
9246   archive_cmds=
9247   archive_expsym_cmds=
9248   compiler_needs_object=no
9249   enable_shared_with_static_runtimes=no
9250   export_dynamic_flag_spec=
9251   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9252   hardcode_automatic=no
9253   hardcode_direct=no
9254   hardcode_direct_absolute=no
9255   hardcode_libdir_flag_spec=
9256   hardcode_libdir_flag_spec_ld=
9257   hardcode_libdir_separator=
9258   hardcode_minus_L=no
9259   hardcode_shlibpath_var=unsupported
9260   inherit_rpath=no
9261   link_all_deplibs=unknown
9262   module_cmds=
9263   module_expsym_cmds=
9264   old_archive_from_new_cmds=
9265   old_archive_from_expsyms_cmds=
9266   thread_safe_flag_spec=
9267   whole_archive_flag_spec=
9268   # include_expsyms should be a list of space-separated symbols to be *always*
9269   # included in the symbol list
9270   include_expsyms=
9271   # exclude_expsyms can be an extended regexp of symbols to exclude
9272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9274   # as well as any symbol that contains `d'.
9275   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9277   # platforms (ab)use it in PIC code, but their linkers get confused if
9278   # the symbol is explicitly referenced.  Since portable code cannot
9279   # rely on this symbol name, it's probably fine to never include it in
9280   # preloaded symbol tables.
9281   extract_expsyms_cmds=
9282
9283   case $host_os in
9284   cygwin* | mingw* | pw32*)
9285     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9286     # When not using gcc, we currently assume that we are using
9287     # Microsoft Visual C++.
9288     if test "$GCC" != yes; then
9289       with_gnu_ld=no
9290     fi
9291     ;;
9292   interix*)
9293     # we just hope/assume this is gcc and not c89 (= MSVC++)
9294     with_gnu_ld=yes
9295     ;;
9296   openbsd*)
9297     with_gnu_ld=no
9298     ;;
9299   esac
9300
9301   ld_shlibs=yes
9302   if test "$with_gnu_ld" = yes; then
9303     # If archive_cmds runs LD, not CC, wlarc should be empty
9304     wlarc='${wl}'
9305
9306     # Set some defaults for GNU ld with shared library support. These
9307     # are reset later if shared libraries are not supported. Putting them
9308     # here allows them to be overridden if necessary.
9309     runpath_var=LD_RUN_PATH
9310     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311     export_dynamic_flag_spec='${wl}--export-dynamic'
9312     # ancient GNU ld didn't support --whole-archive et. al.
9313     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9314       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9315     else
9316       whole_archive_flag_spec=
9317     fi
9318     supports_anon_versioning=no
9319     case `$LD -v 2>&1` in
9320       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323       *\ 2.11.*) ;; # other 2.11 versions
9324       *) supports_anon_versioning=yes ;;
9325     esac
9326
9327     # See if GNU ld supports shared libraries.
9328     case $host_os in
9329     aix3* | aix4* | aix5*)
9330       # On AIX/PPC, the GNU linker is very broken
9331       if test "$host_cpu" != ia64; then
9332         ld_shlibs=no
9333         cat <<_LT_EOF 1>&2
9334
9335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9336 *** to be unable to reliably create shared libraries on AIX.
9337 *** Therefore, libtool is disabling shared libraries support.  If you
9338 *** really care for shared libraries, you may want to modify your PATH
9339 *** so that a non-GNU linker is found, and then restart.
9340
9341 _LT_EOF
9342       fi
9343       ;;
9344
9345     amigaos*)
9346       if test "$host_cpu" = m68k; then
9347         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)'
9348         hardcode_libdir_flag_spec='-L$libdir'
9349         hardcode_minus_L=yes
9350       fi
9351
9352       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9353       # that the semantics of dynamic libraries on AmigaOS, at least up
9354       # to version 4, is to share data among multiple programs linked
9355       # with the same dynamic library.  Since this doesn't match the
9356       # behavior of shared libraries on other platforms, we can't use
9357       # them.
9358       ld_shlibs=no
9359       ;;
9360
9361     beos*)
9362       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363         allow_undefined_flag=unsupported
9364         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365         # support --undefined.  This deserves some investigation.  FIXME
9366         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367       else
9368         ld_shlibs=no
9369       fi
9370       ;;
9371
9372     cygwin* | mingw* | pw32*)
9373       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374       # as there is no search path for DLLs.
9375       hardcode_libdir_flag_spec='-L$libdir'
9376       allow_undefined_flag=unsupported
9377       always_export_symbols=no
9378       enable_shared_with_static_runtimes=yes
9379       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9380
9381       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9383         # If the export-symbols file already is a .def file (1st line
9384         # is EXPORTS), use it as is; otherwise, prepend...
9385         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9386           cp $export_symbols $output_objdir/$soname.def;
9387         else
9388           echo EXPORTS > $output_objdir/$soname.def;
9389           cat $export_symbols >> $output_objdir/$soname.def;
9390         fi~
9391         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9392       else
9393         ld_shlibs=no
9394       fi
9395       ;;
9396
9397     interix[3-9]*)
9398       hardcode_direct=no
9399       hardcode_shlibpath_var=no
9400       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401       export_dynamic_flag_spec='${wl}-E'
9402       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9403       # Instead, shared libraries are loaded at an image base (0x10000000 by
9404       # default) and relocated if they conflict, which is a slow very memory
9405       # consuming and fragmenting process.  To avoid this, we pick a random,
9406       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9407       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9408       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9409       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'
9410       ;;
9411
9412     gnu* | linux* | tpf* | k*bsd*-gnu)
9413       tmp_diet=no
9414       if test "$host_os" = linux-dietlibc; then
9415         case $cc_basename in
9416           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9417         esac
9418       fi
9419       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9420          && test "$tmp_diet" = no
9421       then
9422         tmp_addflag=
9423         case $cc_basename,$host_cpu in
9424         pgcc*)                          # Portland Group C compiler
9425           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'
9426           tmp_addflag=' $pic_flag'
9427           ;;
9428         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9429           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'
9430           tmp_addflag=' $pic_flag -Mnomain' ;;
9431         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9432           tmp_addflag=' -i_dynamic' ;;
9433         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9434           tmp_addflag=' -i_dynamic -nofor_main' ;;
9435         ifc* | ifort*)                  # Intel Fortran compiler
9436           tmp_addflag=' -nofor_main' ;;
9437         esac
9438         case `$CC -V 2>&1 | sed 5q` in
9439         *Sun\ C*)                       # Sun C 5.9
9440           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'
9441           compiler_needs_object=yes
9442           tmp_sharedflag='-G' ;;
9443         *Sun\ F*)                       # Sun Fortran 8.3
9444           tmp_sharedflag='-G' ;;
9445         *)
9446           tmp_sharedflag='-shared' ;;
9447         esac
9448         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449
9450         if test "x$supports_anon_versioning" = xyes; then
9451           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453             echo "local: *; };" >> $output_objdir/$libname.ver~
9454             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9455         fi
9456       else
9457         ld_shlibs=no
9458       fi
9459       ;;
9460
9461     netbsd*)
9462       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9463         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9464         wlarc=
9465       else
9466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468       fi
9469       ;;
9470
9471     solaris*)
9472       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9473         ld_shlibs=no
9474         cat <<_LT_EOF 1>&2
9475
9476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9477 *** create shared libraries on Solaris systems.  Therefore, libtool
9478 *** is disabling shared libraries support.  We urge you to upgrade GNU
9479 *** binutils to release 2.9.1 or newer.  Another option is to modify
9480 *** your PATH or compiler configuration so that the native linker is
9481 *** used, and then restart.
9482
9483 _LT_EOF
9484       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487       else
9488         ld_shlibs=no
9489       fi
9490       ;;
9491
9492     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9493       case `$LD -v 2>&1` in
9494         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9495         ld_shlibs=no
9496         cat <<_LT_EOF 1>&2
9497
9498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9499 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9500 *** is disabling shared libraries support.  We urge you to upgrade GNU
9501 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9502 *** your PATH or compiler configuration so that the native linker is
9503 *** used, and then restart.
9504
9505 _LT_EOF
9506         ;;
9507         *)
9508           # For security reasons, it is highly recommended that you always
9509           # use absolute paths for naming shared libraries, and exclude the
9510           # DT_RUNPATH tag from executables and libraries.  But doing so
9511           # requires that you compile everything twice, which is a pain.
9512           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9513             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516           else
9517             ld_shlibs=no
9518           fi
9519         ;;
9520       esac
9521       ;;
9522
9523     sunos4*)
9524       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525       wlarc=
9526       hardcode_direct=yes
9527       hardcode_shlibpath_var=no
9528       ;;
9529
9530     *)
9531       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9532         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9534       else
9535         ld_shlibs=no
9536       fi
9537       ;;
9538     esac
9539
9540     if test "$ld_shlibs" = no; then
9541       runpath_var=
9542       hardcode_libdir_flag_spec=
9543       export_dynamic_flag_spec=
9544       whole_archive_flag_spec=
9545     fi
9546   else
9547     # PORTME fill in a description of your system's linker (not GNU ld)
9548     case $host_os in
9549     aix3*)
9550       allow_undefined_flag=unsupported
9551       always_export_symbols=yes
9552       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'
9553       # Note: this linker hardcodes the directories in LIBPATH if there
9554       # are no directories specified by -L.
9555       hardcode_minus_L=yes
9556       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9557         # Neither direct hardcoding nor static linking is supported with a
9558         # broken collect2.
9559         hardcode_direct=unsupported
9560       fi
9561       ;;
9562
9563     aix4* | aix5*)
9564       if test "$host_cpu" = ia64; then
9565         # On IA64, the linker does run time linking by default, so we don't
9566         # have to do anything special.
9567         aix_use_runtimelinking=no
9568         exp_sym_flag='-Bexport'
9569         no_entry_flag=""
9570       else
9571         # If we're using GNU nm, then we don't want the "-C" option.
9572         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9573         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9574           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'
9575         else
9576           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'
9577         fi
9578         aix_use_runtimelinking=no
9579
9580         # Test if we are trying to use run time linking or normal
9581         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9582         # need to do runtime linking.
9583         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9584           for ld_flag in $LDFLAGS; do
9585           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9586             aix_use_runtimelinking=yes
9587             break
9588           fi
9589           done
9590           ;;
9591         esac
9592
9593         exp_sym_flag='-bexport'
9594         no_entry_flag='-bnoentry'
9595       fi
9596
9597       # When large executables or shared objects are built, AIX ld can
9598       # have problems creating the table of contents.  If linking a library
9599       # or program results in "error TOC overflow" add -mminimal-toc to
9600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9602
9603       archive_cmds=''
9604       hardcode_direct=yes
9605       hardcode_direct_absolute=yes
9606       hardcode_libdir_separator=':'
9607       link_all_deplibs=yes
9608       file_list_spec='${wl}-f,'
9609
9610       if test "$GCC" = yes; then
9611         case $host_os in aix4.[012]|aix4.[012].*)
9612         # We only want to do this on AIX 4.2 and lower, the check
9613         # below for broken collect2 doesn't work under 4.3+
9614           collect2name=`${CC} -print-prog-name=collect2`
9615           if test -f "$collect2name" &&
9616            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9617           then
9618           # We have reworked collect2
9619           :
9620           else
9621           # We have old collect2
9622           hardcode_direct=unsupported
9623           # It fails to find uninstalled libraries when the uninstalled
9624           # path is not listed in the libpath.  Setting hardcode_minus_L
9625           # to unsupported forces relinking
9626           hardcode_minus_L=yes
9627           hardcode_libdir_flag_spec='-L$libdir'
9628           hardcode_libdir_separator=
9629           fi
9630           ;;
9631         esac
9632         shared_flag='-shared'
9633         if test "$aix_use_runtimelinking" = yes; then
9634           shared_flag="$shared_flag "'${wl}-G'
9635         fi
9636       else
9637         # not using gcc
9638         if test "$host_cpu" = ia64; then
9639         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9640         # chokes on -Wl,-G. The following line is correct:
9641           shared_flag='-G'
9642         else
9643           if test "$aix_use_runtimelinking" = yes; then
9644             shared_flag='${wl}-G'
9645           else
9646             shared_flag='${wl}-bM:SRE'
9647           fi
9648         fi
9649       fi
9650
9651       # It seems that -bexpall does not export symbols beginning with
9652       # underscore (_), so it is better to generate a list of symbols to export.
9653       always_export_symbols=yes
9654       if test "$aix_use_runtimelinking" = yes; then
9655         # Warning - without using the other runtime loading flags (-brtl),
9656         # -berok will link without error, but may produce a broken library.
9657         allow_undefined_flag='-berok'
9658         # Determine the default libpath from the value encoded in an
9659         # empty executable.
9660         if test x$gcc_no_link = xyes; then
9661   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9663    { (exit 1); exit 1; }; }
9664 fi
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671
9672 int
9673 main ()
9674 {
9675
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682   (eval $ac_link) 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag"
9690                          || test ! -s conftest.err'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702
9703 lt_aix_libpath_sed='
9704     /Import File Strings/,/^$/ {
9705         /^0/ {
9706             s/^0  *\(.*\)$/\1/
9707             p
9708         }
9709     }'
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714 fi
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721       conftest$ac_exeext conftest.$ac_ext
9722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9723
9724         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9725         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"
9726       else
9727         if test "$host_cpu" = ia64; then
9728           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9729           allow_undefined_flag="-z nodefs"
9730           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"
9731         else
9732          # Determine the default libpath from the value encoded in an
9733          # empty executable.
9734          if test x$gcc_no_link = xyes; then
9735   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9737    { (exit 1); exit 1; }; }
9738 fi
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745
9746 int
9747 main ()
9748 {
9749
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776
9777 lt_aix_libpath_sed='
9778     /Import File Strings/,/^$/ {
9779         /^0/ {
9780             s/^0  *\(.*\)$/\1/
9781             p
9782         }
9783     }'
9784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 # Check for a 64-bit object if we didn't find anything.
9786 if test -z "$aix_libpath"; then
9787   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788 fi
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 fi
9794 rm -f conftest.err conftest.$ac_objext \
9795       conftest$ac_exeext conftest.$ac_ext
9796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9797
9798          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9799           # Warning - without using the other run time loading flags,
9800           # -berok will link without error, but may produce a broken library.
9801           no_undefined_flag=' ${wl}-bernotok'
9802           allow_undefined_flag=' ${wl}-berok'
9803           # Exported symbols can be pulled into shared objects from archives
9804           whole_archive_flag_spec='$convenience'
9805           archive_cmds_need_lc=yes
9806           # This is similar to how AIX traditionally builds its shared libraries.
9807           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'
9808         fi
9809       fi
9810       ;;
9811
9812     amigaos*)
9813       if test "$host_cpu" = m68k; then
9814         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)'
9815         hardcode_libdir_flag_spec='-L$libdir'
9816         hardcode_minus_L=yes
9817       fi
9818       # see comment about different semantics on the GNU ld section
9819       ld_shlibs=no
9820       ;;
9821
9822     bsdi[45]*)
9823       export_dynamic_flag_spec=-rdynamic
9824       ;;
9825
9826     cygwin* | mingw* | pw32*)
9827       # When not using gcc, we currently assume that we are using
9828       # Microsoft Visual C++.
9829       # hardcode_libdir_flag_spec is actually meaningless, as there is
9830       # no search path for DLLs.
9831       hardcode_libdir_flag_spec=' '
9832       allow_undefined_flag=unsupported
9833       # Tell ltmain to make .lib files, not .a files.
9834       libext=lib
9835       # Tell ltmain to make .dll files, not .so files.
9836       shrext_cmds=".dll"
9837       # FIXME: Setting linknames here is a bad hack.
9838       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9839       # The linker will automatically build a .lib file if we build a DLL.
9840       old_archive_from_new_cmds='true'
9841       # FIXME: Should let the user specify the lib program.
9842       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9843       fix_srcfile_path='`cygpath -w "$srcfile"`'
9844       enable_shared_with_static_runtimes=yes
9845       ;;
9846
9847     darwin* | rhapsody*)
9848       case $host_os in
9849       rhapsody* | darwin1.[012])
9850         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9851         ;;
9852       *) # Darwin 1.3 on
9853         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9854         10.[012])
9855           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9856           ;;
9857         10.*)
9858           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9859           ;;
9860         esac
9861         ;;
9862       esac
9863       archive_cmds_need_lc=no
9864       hardcode_direct=no
9865       hardcode_automatic=yes
9866       hardcode_shlibpath_var=unsupported
9867       whole_archive_flag_spec=''
9868       link_all_deplibs=yes
9869       if test "$GCC" = yes ; then
9870         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   lt_cv_apple_cc_single_mod=no
9874         if test -z "${LT_MULTI_MODULE}"; then
9875           # By default we will add the -single_module flag. You can override
9876           # by either setting the environment variable LT_MULTI_MODULE
9877           # non-empty at configure time, or by adding -multi-module to the
9878           # link flags.
9879           echo "int foo(void){return 1;}" > conftest.c
9880           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9881               -dynamiclib ${wl}-single_module conftest.c
9882           if test -f libconftest.dylib; then
9883               lt_cv_apple_cc_single_mod=yes
9884               rm libconftest.dylib
9885           fi
9886           rm conftest.$ac_ext
9887         fi
9888 fi
9889
9890         output_verbose_link_cmd=echo
9891         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9892           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9893           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}'
9894         else
9895           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9896           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}'
9897         fi
9898         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9899         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}'
9900       else
9901         case $cc_basename in
9902         xlc*)
9903           output_verbose_link_cmd=echo
9904           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9905           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9906           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9907           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}'
9908           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}'
9909           ;;
9910         *)
9911           ld_shlibs=no
9912           ;;
9913         esac
9914       fi
9915       ;;
9916
9917     dgux*)
9918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919       hardcode_libdir_flag_spec='-L$libdir'
9920       hardcode_shlibpath_var=no
9921       ;;
9922
9923     freebsd1*)
9924       ld_shlibs=no
9925       ;;
9926
9927     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9928     # support.  Future versions do this automatically, but an explicit c++rt0.o
9929     # does not break anything, and helps significantly (at the cost of a little
9930     # extra space).
9931     freebsd2.2*)
9932       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9933       hardcode_libdir_flag_spec='-R$libdir'
9934       hardcode_direct=yes
9935       hardcode_shlibpath_var=no
9936       ;;
9937
9938     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9939     freebsd2*)
9940       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941       hardcode_direct=yes
9942       hardcode_minus_L=yes
9943       hardcode_shlibpath_var=no
9944       ;;
9945
9946     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9947     freebsd* | dragonfly*)
9948       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9949       hardcode_libdir_flag_spec='-R$libdir'
9950       hardcode_direct=yes
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     hpux9*)
9955       if test "$GCC" = yes; then
9956         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'
9957       else
9958         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'
9959       fi
9960       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9961       hardcode_libdir_separator=:
9962       hardcode_direct=yes
9963
9964       # hardcode_minus_L: Not really in the search PATH,
9965       # but as the default location of the library.
9966       hardcode_minus_L=yes
9967       export_dynamic_flag_spec='${wl}-E'
9968       ;;
9969
9970     hpux10*)
9971       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9972         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9973       else
9974         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9975       fi
9976       if test "$with_gnu_ld" = no; then
9977         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978         hardcode_libdir_flag_spec_ld='+b $libdir'
9979         hardcode_libdir_separator=:
9980         hardcode_direct=yes
9981         hardcode_direct_absolute=yes
9982         export_dynamic_flag_spec='${wl}-E'
9983         # hardcode_minus_L: Not really in the search PATH,
9984         # but as the default location of the library.
9985         hardcode_minus_L=yes
9986       fi
9987       ;;
9988
9989     hpux11*)
9990       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9991         case $host_cpu in
9992         hppa*64*)
9993           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9994           ;;
9995         ia64*)
9996           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9997           ;;
9998         *)
9999           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10000           ;;
10001         esac
10002       else
10003         case $host_cpu in
10004         hppa*64*)
10005           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10006           ;;
10007         ia64*)
10008           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10009           ;;
10010         *)
10011           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012           ;;
10013         esac
10014       fi
10015       if test "$with_gnu_ld" = no; then
10016         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10017         hardcode_libdir_separator=:
10018
10019         case $host_cpu in
10020         hppa*64*|ia64*)
10021           hardcode_direct=no
10022           hardcode_shlibpath_var=no
10023           ;;
10024         *)
10025           hardcode_direct=yes
10026           hardcode_direct_absolute=yes
10027           export_dynamic_flag_spec='${wl}-E'
10028
10029           # hardcode_minus_L: Not really in the search PATH,
10030           # but as the default location of the library.
10031           hardcode_minus_L=yes
10032           ;;
10033         esac
10034       fi
10035       ;;
10036
10037     irix5* | irix6* | nonstopux*)
10038       if test "$GCC" = yes; then
10039         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'
10040         # Try to use the -exported_symbol ld option, if it does not
10041         # work, assume that -exports_file does not work either and
10042         # implicitly export all symbols.
10043         save_LDFLAGS="$LDFLAGS"
10044         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10045         if test x$gcc_no_link = xyes; then
10046   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10048    { (exit 1); exit 1; }; }
10049 fi
10050 cat >conftest.$ac_ext <<_ACEOF
10051 int foo(void) {}
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -z "$ac_c_werror_flag"
10063                          || test ! -s conftest.err'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; } &&
10069          { ac_try='test -s conftest$ac_exeext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   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'
10076
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 fi
10082 rm -f conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084         LDFLAGS="$save_LDFLAGS"
10085       else
10086         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'
10087         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'
10088       fi
10089       archive_cmds_need_lc='no'
10090       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091       hardcode_libdir_separator=:
10092       inherit_rpath=yes
10093       link_all_deplibs=yes
10094       ;;
10095
10096     netbsd*)
10097       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10098         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10099       else
10100         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10101       fi
10102       hardcode_libdir_flag_spec='-R$libdir'
10103       hardcode_direct=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     newsos6)
10108       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109       hardcode_direct=yes
10110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111       hardcode_libdir_separator=:
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     *nto* | *qnx*)
10116       ;;
10117
10118     openbsd*)
10119       hardcode_direct=yes
10120       hardcode_shlibpath_var=no
10121       hardcode_direct_absolute=yes
10122       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10123         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10124         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10125         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126         export_dynamic_flag_spec='${wl}-E'
10127       else
10128         case $host_os in
10129         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10130           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131           hardcode_libdir_flag_spec='-R$libdir'
10132           ;;
10133         *)
10134           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10136           ;;
10137         esac
10138       fi
10139       ;;
10140
10141     os2*)
10142       hardcode_libdir_flag_spec='-L$libdir'
10143       hardcode_minus_L=yes
10144       allow_undefined_flag=unsupported
10145       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'
10146       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10147       ;;
10148
10149     osf3*)
10150       if test "$GCC" = yes; then
10151         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152         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'
10153       else
10154         allow_undefined_flag=' -expect_unresolved \*'
10155         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'
10156       fi
10157       archive_cmds_need_lc='no'
10158       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10159       hardcode_libdir_separator=:
10160       ;;
10161
10162     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10163       if test "$GCC" = yes; then
10164         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10165         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'
10166         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167       else
10168         allow_undefined_flag=' -expect_unresolved \*'
10169         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'
10170         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~
10171         $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'
10172
10173         # Both c and cxx compiler support -rpath directly
10174         hardcode_libdir_flag_spec='-rpath $libdir'
10175       fi
10176       archive_cmds_need_lc='no'
10177       hardcode_libdir_separator=:
10178       ;;
10179
10180     solaris*)
10181       no_undefined_flag=' -z defs'
10182       if test "$GCC" = yes; then
10183         wlarc='${wl}'
10184         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10185         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187       else
10188         case `$CC -V 2>&1` in
10189         *"Compilers 5.0"*)
10190           wlarc=''
10191           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10193           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10194           ;;
10195         *)
10196           wlarc='${wl}'
10197           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10198           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10199           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10200           ;;
10201         esac
10202       fi
10203       hardcode_libdir_flag_spec='-R$libdir'
10204       hardcode_shlibpath_var=no
10205       case $host_os in
10206       solaris2.[0-5] | solaris2.[0-5].*) ;;
10207       *)
10208         # The compiler driver will combine and reorder linker options,
10209         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10210         # but is careful enough not to reorder.
10211         # Supported since Solaris 2.6 (maybe 2.5.1?)
10212         if test "$GCC" = yes; then
10213           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10214         else
10215           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10216         fi
10217         ;;
10218       esac
10219       link_all_deplibs=yes
10220       ;;
10221
10222     sunos4*)
10223       if test "x$host_vendor" = xsequent; then
10224         # Use $CC to link under sequent, because it throws in some extra .o
10225         # files that make .init and .fini sections work.
10226         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10227       else
10228         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10229       fi
10230       hardcode_libdir_flag_spec='-L$libdir'
10231       hardcode_direct=yes
10232       hardcode_minus_L=yes
10233       hardcode_shlibpath_var=no
10234       ;;
10235
10236     sysv4)
10237       case $host_vendor in
10238         sni)
10239           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240           hardcode_direct=yes # is this really true???
10241         ;;
10242         siemens)
10243           ## LD is ld it makes a PLAMLIB
10244           ## CC just makes a GrossModule.
10245           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10246           reload_cmds='$CC -r -o $output$reload_objs'
10247           hardcode_direct=no
10248         ;;
10249         motorola)
10250           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10252         ;;
10253       esac
10254       runpath_var='LD_RUN_PATH'
10255       hardcode_shlibpath_var=no
10256       ;;
10257
10258     sysv4.3*)
10259       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260       hardcode_shlibpath_var=no
10261       export_dynamic_flag_spec='-Bexport'
10262       ;;
10263
10264     sysv4*MP*)
10265       if test -d /usr/nec; then
10266         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267         hardcode_shlibpath_var=no
10268         runpath_var=LD_RUN_PATH
10269         hardcode_runpath_var=yes
10270         ld_shlibs=yes
10271       fi
10272       ;;
10273
10274     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10275       no_undefined_flag='${wl}-z,text'
10276       archive_cmds_need_lc=no
10277       hardcode_shlibpath_var=no
10278       runpath_var='LD_RUN_PATH'
10279
10280       if test "$GCC" = yes; then
10281         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283       else
10284         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286       fi
10287       ;;
10288
10289     sysv5* | sco3.2v5* | sco5v6*)
10290       # Note: We can NOT use -z defs as we might desire, because we do not
10291       # link with -lc, and that would cause any symbols used from libc to
10292       # always be unresolved, which means just about no library would
10293       # ever link correctly.  If we're not using GNU ld we use -z text
10294       # though, which does catch some bad symbols but isn't as heavy-handed
10295       # as -z defs.
10296       no_undefined_flag='${wl}-z,text'
10297       allow_undefined_flag='${wl}-z,nodefs'
10298       archive_cmds_need_lc=no
10299       hardcode_shlibpath_var=no
10300       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10301       hardcode_libdir_separator=':'
10302       link_all_deplibs=yes
10303       export_dynamic_flag_spec='${wl}-Bexport'
10304       runpath_var='LD_RUN_PATH'
10305
10306       if test "$GCC" = yes; then
10307         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309       else
10310         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312       fi
10313       ;;
10314
10315     uts4*)
10316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10317       hardcode_libdir_flag_spec='-L$libdir'
10318       hardcode_shlibpath_var=no
10319       ;;
10320
10321     *)
10322       ld_shlibs=no
10323       ;;
10324     esac
10325
10326     if test x$host_vendor = xsni; then
10327       case $host in
10328       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10329         export_dynamic_flag_spec='${wl}-Blargedynsym'
10330         ;;
10331       esac
10332     fi
10333   fi
10334
10335 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10336 echo "${ECHO_T}$ld_shlibs" >&6
10337 test "$ld_shlibs" = no && can_build_shared=no
10338
10339 with_gnu_ld=$with_gnu_ld
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355 #
10356 # Do we need to explicitly link libc?
10357 #
10358 case "x$archive_cmds_need_lc" in
10359 x|xyes)
10360   # Assume -lc should be added
10361   archive_cmds_need_lc=yes
10362
10363   if test "$enable_shared" = yes && test "$GCC" = yes; then
10364     case $archive_cmds in
10365     *'~'*)
10366       # FIXME: we may have to deal with multi-command sequences.
10367       ;;
10368     '$CC '*)
10369       # Test whether the compiler implicitly links with -lc since on some
10370       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10371       # to ld, don't add -lc before -lgcc.
10372       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10373 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10374       $RM conftest*
10375       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10376
10377       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10378   (eval $ac_compile) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } 2>conftest.err; then
10382         soname=conftest
10383         lib=conftest
10384         libobjs=conftest.$ac_objext
10385         deplibs=
10386         wl=$lt_prog_compiler_wl
10387         pic_flag=$lt_prog_compiler_pic
10388         compiler_flags=-v
10389         linker_flags=-v
10390         verstring=
10391         output_objdir=.
10392         libname=conftest
10393         lt_save_allow_undefined_flag=$allow_undefined_flag
10394         allow_undefined_flag=
10395         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10396   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }
10400         then
10401           archive_cmds_need_lc=no
10402         else
10403           archive_cmds_need_lc=yes
10404         fi
10405         allow_undefined_flag=$lt_save_allow_undefined_flag
10406       else
10407         cat conftest.err 1>&5
10408       fi
10409       $RM conftest*
10410       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10411 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10412       ;;
10413     esac
10414   fi
10415   ;;
10416 esac
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10576 withGCC=$GCC
10577 if test "$withGCC" = yes; then
10578   case $host_os in
10579     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10580     *) lt_awk_arg="/^libraries:/" ;;
10581   esac
10582   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10583   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10584     # if the path contains ";" then we assume it to be the separator
10585     # otherwise default to the standard path separator (i.e. ":") - it is
10586     # assumed that no part of a normal pathname contains ";" but that should
10587     # okay in the real world where ";" in dirpaths is itself problematic.
10588     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10589   else
10590     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10591   fi
10592   # Ok, now we have the path, separated by spaces, we can step through it
10593   # and add multilib dir if necessary.
10594   lt_tmp_lt_search_path_spec=
10595   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10596   for lt_sys_path in $lt_search_path_spec; do
10597     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10598       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10599     else
10600       test -d "$lt_sys_path" && \
10601         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10602     fi
10603   done
10604   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10605 BEGIN {RS=" "; FS="/|\n";} {
10606   lt_foo="";
10607   lt_count=0;
10608   for (lt_i = NF; lt_i > 0; lt_i--) {
10609     if ($lt_i != "" && $lt_i != ".") {
10610       if ($lt_i == "..") {
10611         lt_count++;
10612       } else {
10613         if (lt_count == 0) {
10614           lt_foo="/" $lt_i lt_foo;
10615         } else {
10616           lt_count--;
10617         }
10618       }
10619     }
10620   }
10621   if (lt_foo != "") { lt_freq[lt_foo]++; }
10622   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10623 }'`
10624   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10625 else
10626   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10627 fi
10628 library_names_spec=
10629 libname_spec='lib$name'
10630 soname_spec=
10631 shrext_cmds=".so"
10632 postinstall_cmds=
10633 postuninstall_cmds=
10634 finish_cmds=
10635 finish_eval=
10636 shlibpath_var=
10637 shlibpath_overrides_runpath=unknown
10638 version_type=none
10639 dynamic_linker="$host_os ld.so"
10640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10641 need_lib_prefix=unknown
10642 hardcode_into_libs=no
10643
10644 # when you set need_version to no, make sure it does not cause -set_version
10645 # flags to be left without arguments
10646 need_version=unknown
10647
10648 case $host_os in
10649 aix3*)
10650   version_type=linux
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10652   shlibpath_var=LIBPATH
10653
10654   # AIX 3 has no versioning support, so we append a major version to the name.
10655   soname_spec='${libname}${release}${shared_ext}$major'
10656   ;;
10657
10658 aix4* | aix5*)
10659   version_type=linux
10660   need_lib_prefix=no
10661   need_version=no
10662   hardcode_into_libs=yes
10663   if test "$host_cpu" = ia64; then
10664     # AIX 5 supports IA64
10665     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10666     shlibpath_var=LD_LIBRARY_PATH
10667   else
10668     # With GCC up to 2.95.x, collect2 would create an import file
10669     # for dependence libraries.  The import file would start with
10670     # the line `#! .'.  This would cause the generated library to
10671     # depend on `.', always an invalid library.  This was fixed in
10672     # development snapshots of GCC prior to 3.0.
10673     case $host_os in
10674       aix4 | aix4.[01] | aix4.[01].*)
10675       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10676            echo ' yes '
10677            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10678         :
10679       else
10680         can_build_shared=no
10681       fi
10682       ;;
10683     esac
10684     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10685     # soname into executable. Probably we can add versioning support to
10686     # collect2, so additional links can be useful in future.
10687     if test "$aix_use_runtimelinking" = yes; then
10688       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10689       # instead of lib<name>.a to let people know that these are not
10690       # typical AIX shared libraries.
10691       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692     else
10693       # We preserve .a as extension for shared libraries through AIX4.2
10694       # and later when we are not doing run time linking.
10695       library_names_spec='${libname}${release}.a $libname.a'
10696       soname_spec='${libname}${release}${shared_ext}$major'
10697     fi
10698     shlibpath_var=LIBPATH
10699   fi
10700   ;;
10701
10702 amigaos*)
10703   if test "$host_cpu" = m68k; then
10704     library_names_spec='$libname.ixlibrary $libname.a'
10705     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10706     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'
10707   else
10708     dynamic_linker=no
10709   fi
10710   ;;
10711
10712 beos*)
10713   library_names_spec='${libname}${shared_ext}'
10714   dynamic_linker="$host_os ld.so"
10715   shlibpath_var=LIBRARY_PATH
10716   ;;
10717
10718 bsdi[45]*)
10719   version_type=linux
10720   need_version=no
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10724   shlibpath_var=LD_LIBRARY_PATH
10725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10727   # the default ld.so.conf also contains /usr/contrib/lib and
10728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10729   # libtool to hard-code these into programs
10730   ;;
10731
10732 cygwin* | mingw* | pw32*)
10733   version_type=windows
10734   shrext_cmds=".dll"
10735   need_version=no
10736   need_lib_prefix=no
10737
10738   case $withGCC,$host_os in
10739   yes,cygwin* | yes,mingw* | yes,pw32*)
10740     library_names_spec='$libname.dll.a'
10741     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10742     postinstall_cmds='base_file=`basename \${file}`~
10743       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10744       dldir=$destdir/`dirname \$dlpath`~
10745       test -d \$dldir || mkdir -p \$dldir~
10746       $install_prog $dir/$dlname \$dldir/$dlname~
10747       chmod a+x \$dldir/$dlname~
10748       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10749         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10750       fi'
10751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10752       dlpath=$dir/\$dldll~
10753        $RM \$dlpath'
10754     shlibpath_overrides_runpath=yes
10755
10756     case $host_os in
10757     cygwin*)
10758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10760       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10761       ;;
10762     mingw*)
10763       # MinGW DLLs use traditional 'lib' prefix
10764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10766       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10767         # It is most probably a Windows format PATH printed by
10768         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10769         # path with ; separators, and with drive letters. We can handle the
10770         # drive letters (cygwin fileutils understands them), so leave them,
10771         # especially as we might pass files found there to a mingw objdump,
10772         # which wouldn't understand a cygwinified path. Ahh.
10773         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10774       else
10775         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10776       fi
10777       ;;
10778     pw32*)
10779       # pw32 DLLs use 'pw' prefix rather than 'lib'
10780       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10781       ;;
10782     esac
10783     ;;
10784
10785   *)
10786     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10787     ;;
10788   esac
10789   dynamic_linker='Win32 ld.exe'
10790   # FIXME: first we should search . and the directory the executable is in
10791   shlibpath_var=PATH
10792   ;;
10793
10794 darwin* | rhapsody*)
10795   dynamic_linker="$host_os dyld"
10796   version_type=darwin
10797   need_lib_prefix=no
10798   need_version=no
10799   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10800   soname_spec='${libname}${release}${major}$shared_ext'
10801   shlibpath_overrides_runpath=yes
10802   shlibpath_var=DYLD_LIBRARY_PATH
10803   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10804
10805   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10806   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10807   ;;
10808
10809 dgux*)
10810   version_type=linux
10811   need_lib_prefix=no
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   ;;
10817
10818 freebsd1*)
10819   dynamic_linker=no
10820   ;;
10821
10822 freebsd* | dragonfly*)
10823   # DragonFly does not have aout.  When/if they implement a new
10824   # versioning mechanism, adjust this.
10825   if test -x /usr/bin/objformat; then
10826     objformat=`/usr/bin/objformat`
10827   else
10828     case $host_os in
10829     freebsd[123]*) objformat=aout ;;
10830     *) objformat=elf ;;
10831     esac
10832   fi
10833   version_type=freebsd-$objformat
10834   case $version_type in
10835     freebsd-elf*)
10836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10837       need_version=no
10838       need_lib_prefix=no
10839       ;;
10840     freebsd-*)
10841       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10842       need_version=yes
10843       ;;
10844   esac
10845   shlibpath_var=LD_LIBRARY_PATH
10846   case $host_os in
10847   freebsd2*)
10848     shlibpath_overrides_runpath=yes
10849     ;;
10850   freebsd3.[01]* | freebsdelf3.[01]*)
10851     shlibpath_overrides_runpath=yes
10852     hardcode_into_libs=yes
10853     ;;
10854   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10855   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10856     shlibpath_overrides_runpath=no
10857     hardcode_into_libs=yes
10858     ;;
10859   *) # from 4.6 on, and DragonFly
10860     shlibpath_overrides_runpath=yes
10861     hardcode_into_libs=yes
10862     ;;
10863   esac
10864   ;;
10865
10866 gnu*)
10867   version_type=linux
10868   need_lib_prefix=no
10869   need_version=no
10870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10871   soname_spec='${libname}${release}${shared_ext}$major'
10872   shlibpath_var=LD_LIBRARY_PATH
10873   hardcode_into_libs=yes
10874   ;;
10875
10876 hpux9* | hpux10* | hpux11*)
10877   # Give a soname corresponding to the major version so that dld.sl refuses to
10878   # link against other versions.
10879   version_type=sunos
10880   need_lib_prefix=no
10881   need_version=no
10882   case $host_cpu in
10883   ia64*)
10884     shrext_cmds='.so'
10885     hardcode_into_libs=yes
10886     dynamic_linker="$host_os dld.so"
10887     shlibpath_var=LD_LIBRARY_PATH
10888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890     soname_spec='${libname}${release}${shared_ext}$major'
10891     if test "X$HPUX_IA64_MODE" = X32; then
10892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10893     else
10894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895     fi
10896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897     ;;
10898   hppa*64*)
10899     shrext_cmds='.sl'
10900     hardcode_into_libs=yes
10901     dynamic_linker="$host_os dld.sl"
10902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     soname_spec='${libname}${release}${shared_ext}$major'
10906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10908     ;;
10909   *)
10910     shrext_cmds='.sl'
10911     dynamic_linker="$host_os dld.sl"
10912     shlibpath_var=SHLIB_PATH
10913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915     soname_spec='${libname}${release}${shared_ext}$major'
10916     ;;
10917   esac
10918   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10919   postinstall_cmds='chmod 555 $lib'
10920   ;;
10921
10922 interix[3-9]*)
10923   version_type=linux
10924   need_lib_prefix=no
10925   need_version=no
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10927   soname_spec='${libname}${release}${shared_ext}$major'
10928   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   shlibpath_overrides_runpath=no
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 irix5* | irix6* | nonstopux*)
10935   case $host_os in
10936     nonstopux*) version_type=nonstopux ;;
10937     *)
10938         if test "$lt_cv_prog_gnu_ld" = yes; then
10939                 version_type=linux
10940         else
10941                 version_type=irix
10942         fi ;;
10943   esac
10944   need_lib_prefix=no
10945   need_version=no
10946   soname_spec='${libname}${release}${shared_ext}$major'
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10948   case $host_os in
10949   irix5* | nonstopux*)
10950     libsuff= shlibsuff=
10951     ;;
10952   *)
10953     case $LD in # libtool.m4 will add one of these switches to LD
10954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10955       libsuff= shlibsuff= libmagic=32-bit;;
10956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10957       libsuff=32 shlibsuff=N32 libmagic=N32;;
10958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10960     *) libsuff= shlibsuff= libmagic=never-match;;
10961     esac
10962     ;;
10963   esac
10964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10965   shlibpath_overrides_runpath=no
10966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10968   hardcode_into_libs=yes
10969   ;;
10970
10971 # No shared lib support for Linux oldld, aout, or coff.
10972 linux*oldld* | linux*aout* | linux*coff*)
10973   dynamic_linker=no
10974   ;;
10975
10976 # This must be Linux ELF.
10977 linux* | k*bsd*-gnu)
10978   version_type=linux
10979   need_lib_prefix=no
10980   need_version=no
10981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=no
10986   # Some binutils ld are patched to set DT_RUNPATH
10987   save_LDFLAGS=$LDFLAGS
10988   save_libdir=$libdir
10989   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10990        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10991   if test x$gcc_no_link = xyes; then
10992   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10994    { (exit 1); exit 1; }; }
10995 fi
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002
11003 int
11004 main ()
11005 {
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013   (eval $ac_link) 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -z "$ac_c_werror_flag"
11021                          || test ! -s conftest.err'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; } &&
11027          { ac_try='test -s conftest$ac_exeext'
11028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029   (eval $ac_try) 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11034   shlibpath_overrides_runpath=yes
11035 fi
11036
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 fi
11042 rm -f conftest.err conftest.$ac_objext \
11043       conftest$ac_exeext conftest.$ac_ext
11044   LDFLAGS=$save_LDFLAGS
11045   libdir=$save_libdir
11046
11047   # This implies no fast_install, which is unacceptable.
11048   # Some rework will be needed to allow for fast_install
11049   # before this can be enabled.
11050   hardcode_into_libs=yes
11051
11052   # Append ld.so.conf contents to the search path
11053   if test -f /etc/ld.so.conf; then
11054     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' ' '`
11055     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11056   fi
11057
11058   # We used to test for /lib/ld.so.1 and disable shared libraries on
11059   # powerpc, because MkLinux only supported shared libraries with the
11060   # GNU dynamic linker.  Since this was broken with cross compilers,
11061   # most powerpc-linux boxes support dynamic linking these days and
11062   # people can always --disable-shared, the test was removed, and we
11063   # assume the GNU/Linux dynamic linker is in use.
11064   dynamic_linker='GNU/Linux ld.so'
11065   ;;
11066
11067 netbsd*)
11068   version_type=sunos
11069   need_lib_prefix=no
11070   need_version=no
11071   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074     dynamic_linker='NetBSD (a.out) ld.so'
11075   else
11076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11077     soname_spec='${libname}${release}${shared_ext}$major'
11078     dynamic_linker='NetBSD ld.elf_so'
11079   fi
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=yes
11082   hardcode_into_libs=yes
11083   ;;
11084
11085 newsos6)
11086   version_type=linux
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=yes
11090   ;;
11091
11092 *nto* | *qnx*)
11093   version_type=qnx
11094   need_lib_prefix=no
11095   need_version=no
11096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097   soname_spec='${libname}${release}${shared_ext}$major'
11098   shlibpath_var=LD_LIBRARY_PATH
11099   shlibpath_overrides_runpath=no
11100   hardcode_into_libs=yes
11101   dynamic_linker='ldqnx.so'
11102   ;;
11103
11104 openbsd*)
11105   version_type=sunos
11106   sys_lib_dlsearch_path_spec="/usr/lib"
11107   need_lib_prefix=no
11108   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11109   case $host_os in
11110     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11111     *)                          need_version=no  ;;
11112   esac
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11117     case $host_os in
11118       openbsd2.[89] | openbsd2.[89].*)
11119         shlibpath_overrides_runpath=no
11120         ;;
11121       *)
11122         shlibpath_overrides_runpath=yes
11123         ;;
11124       esac
11125   else
11126     shlibpath_overrides_runpath=yes
11127   fi
11128   ;;
11129
11130 os2*)
11131   libname_spec='$name'
11132   shrext_cmds=".dll"
11133   need_lib_prefix=no
11134   library_names_spec='$libname${shared_ext} $libname.a'
11135   dynamic_linker='OS/2 ld.exe'
11136   shlibpath_var=LIBPATH
11137   ;;
11138
11139 osf3* | osf4* | osf5*)
11140   version_type=osf
11141   need_lib_prefix=no
11142   need_version=no
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11147   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11148   ;;
11149
11150 rdos*)
11151   dynamic_linker=no
11152   ;;
11153
11154 solaris*)
11155   version_type=linux
11156   need_lib_prefix=no
11157   need_version=no
11158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159   soname_spec='${libname}${release}${shared_ext}$major'
11160   shlibpath_var=LD_LIBRARY_PATH
11161   shlibpath_overrides_runpath=yes
11162   hardcode_into_libs=yes
11163   # ldd complains unless libraries are executable
11164   postinstall_cmds='chmod +x $lib'
11165   ;;
11166
11167 sunos4*)
11168   version_type=sunos
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11170   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   shlibpath_overrides_runpath=yes
11173   if test "$with_gnu_ld" = yes; then
11174     need_lib_prefix=no
11175   fi
11176   need_version=yes
11177   ;;
11178
11179 sysv4 | sysv4.3*)
11180   version_type=linux
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   case $host_vendor in
11185     sni)
11186       shlibpath_overrides_runpath=no
11187       need_lib_prefix=no
11188       runpath_var=LD_RUN_PATH
11189       ;;
11190     siemens)
11191       need_lib_prefix=no
11192       ;;
11193     motorola)
11194       need_lib_prefix=no
11195       need_version=no
11196       shlibpath_overrides_runpath=no
11197       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11198       ;;
11199   esac
11200   ;;
11201
11202 sysv4*MP*)
11203   if test -d /usr/nec ;then
11204     version_type=linux
11205     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11206     soname_spec='$libname${shared_ext}.$major'
11207     shlibpath_var=LD_LIBRARY_PATH
11208   fi
11209   ;;
11210
11211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11212   version_type=freebsd-elf
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11216   soname_spec='${libname}${release}${shared_ext}$major'
11217   shlibpath_var=LD_LIBRARY_PATH
11218   shlibpath_overrides_runpath=yes
11219   hardcode_into_libs=yes
11220   if test "$with_gnu_ld" = yes; then
11221     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11222   else
11223     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11224     case $host_os in
11225       sco3.2v5*)
11226         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11227         ;;
11228     esac
11229   fi
11230   sys_lib_dlsearch_path_spec='/usr/lib'
11231   ;;
11232
11233 tpf*)
11234   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11235   version_type=linux
11236   need_lib_prefix=no
11237   need_version=no
11238   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   shlibpath_overrides_runpath=no
11241   hardcode_into_libs=yes
11242   ;;
11243
11244 uts4*)
11245   version_type=linux
11246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247   soname_spec='${libname}${release}${shared_ext}$major'
11248   shlibpath_var=LD_LIBRARY_PATH
11249   ;;
11250
11251 *)
11252   dynamic_linker=no
11253   ;;
11254 esac
11255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11256 echo "${ECHO_T}$dynamic_linker" >&6
11257 test "$dynamic_linker" = no && can_build_shared=no
11258
11259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260 if test "$GCC" = yes; then
11261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11262 fi
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11351 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11352 hardcode_action=
11353 if test -n "$hardcode_libdir_flag_spec" ||
11354    test -n "$runpath_var" ||
11355    test "X$hardcode_automatic" = "Xyes" ; then
11356
11357   # We can hardcode non-existent directories.
11358   if test "$hardcode_direct" != no &&
11359      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11360      # have to relink, otherwise we might link with an installed library
11361      # when we should be linking with a yet-to-be-installed one
11362      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11363      test "$hardcode_minus_L" != no; then
11364     # Linking always hardcodes the temporary library directory.
11365     hardcode_action=relink
11366   else
11367     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11368     hardcode_action=immediate
11369   fi
11370 else
11371   # We cannot hardcode anything, or else we can only hardcode existing
11372   # directories.
11373   hardcode_action=unsupported
11374 fi
11375 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11376 echo "${ECHO_T}$hardcode_action" >&6
11377
11378 if test "$hardcode_action" = relink ||
11379    test "$inherit_rpath" = yes; then
11380   # Fast installation is not supported
11381   enable_fast_install=no
11382 elif test "$shlibpath_overrides_runpath" = yes ||
11383      test "$enable_shared" = no; then
11384   # Fast installation is not necessary
11385   enable_fast_install=needless
11386 fi
11387
11388
11389
11390
11391
11392
11393   if test "x$enable_dlopen" != xyes; then
11394   enable_dlopen=unknown
11395   enable_dlopen_self=unknown
11396   enable_dlopen_self_static=unknown
11397 else
11398   lt_cv_dlopen=no
11399   lt_cv_dlopen_libs=
11400
11401   case $host_os in
11402   beos*)
11403     lt_cv_dlopen="load_add_on"
11404     lt_cv_dlopen_libs=
11405     lt_cv_dlopen_self=yes
11406     ;;
11407
11408   mingw* | pw32*)
11409     lt_cv_dlopen="LoadLibrary"
11410     lt_cv_dlopen_libs=
11411     ;;
11412
11413   cygwin*)
11414     lt_cv_dlopen="dlopen"
11415     lt_cv_dlopen_libs=
11416     ;;
11417
11418   darwin*)
11419   # if libdl is installed we need to link against it
11420     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11421 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldl  $LIBS"
11427 if test x$gcc_no_link = xyes; then
11428   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11430    { (exit 1); exit 1; }; }
11431 fi
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438
11439 /* Override any gcc2 internal prototype to avoid an error.  */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 /* We use char because int might match the return type of a gcc2
11444    builtin and then its argument prototype would still apply.  */
11445 char dlopen ();
11446 int
11447 main ()
11448 {
11449 dlopen ();
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456   (eval $ac_link) 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } &&
11463          { ac_try='test -z "$ac_c_werror_flag"
11464                          || test ! -s conftest.err'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest$ac_exeext'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   ac_cv_lib_dl_dlopen=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 ac_cv_lib_dl_dlopen=no
11482 fi
11483 rm -f conftest.err conftest.$ac_objext \
11484       conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11486 fi
11487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11489 if test $ac_cv_lib_dl_dlopen = yes; then
11490   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11491 else
11492
11493     lt_cv_dlopen="dyld"
11494     lt_cv_dlopen_libs=
11495     lt_cv_dlopen_self=yes
11496
11497 fi
11498
11499     ;;
11500
11501   *)
11502     echo "$as_me:$LINENO: checking for shl_load" >&5
11503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11504 if test "${ac_cv_func_shl_load+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   if test x$gcc_no_link = xyes; then
11508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11510    { (exit 1); exit 1; }; }
11511 fi
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11520 #define shl_load innocuous_shl_load
11521
11522 /* System header to define __stub macros and hopefully few prototypes,
11523     which can conflict with char shl_load (); below.
11524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11525     <limits.h> exists even on freestanding compilers.  */
11526
11527 #ifdef __STDC__
11528 # include <limits.h>
11529 #else
11530 # include <assert.h>
11531 #endif
11532
11533 #undef shl_load
11534
11535 /* Override any gcc2 internal prototype to avoid an error.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 {
11539 #endif
11540 /* We use char because int might match the return type of a gcc2
11541    builtin and then its argument prototype would still apply.  */
11542 char shl_load ();
11543 /* The GNU C library defines this for functions which it implements
11544     to always fail with ENOSYS.  Some functions are actually named
11545     something starting with __ and the normal name is an alias.  */
11546 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11547 choke me
11548 #else
11549 char (*f) () = shl_load;
11550 #endif
11551 #ifdef __cplusplus
11552 }
11553 #endif
11554
11555 int
11556 main ()
11557 {
11558 return f != shl_load;
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565   (eval $ac_link) 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } &&
11572          { ac_try='test -z "$ac_c_werror_flag"
11573                          || test ! -s conftest.err'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; } &&
11579          { ac_try='test -s conftest$ac_exeext'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; }; then
11585   ac_cv_func_shl_load=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_cv_func_shl_load=no
11591 fi
11592 rm -f conftest.err conftest.$ac_objext \
11593       conftest$ac_exeext conftest.$ac_ext
11594 fi
11595 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11597 if test $ac_cv_func_shl_load = yes; then
11598   lt_cv_dlopen="shl_load"
11599 else
11600   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11601 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11602 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-ldld  $LIBS"
11607 if test x$gcc_no_link = xyes; then
11608   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11610    { (exit 1); exit 1; }; }
11611 fi
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618
11619 /* Override any gcc2 internal prototype to avoid an error.  */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 /* We use char because int might match the return type of a gcc2
11624    builtin and then its argument prototype would still apply.  */
11625 char shl_load ();
11626 int
11627 main ()
11628 {
11629 shl_load ();
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636   (eval $ac_link) 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -z "$ac_c_werror_flag"
11644                          || test ! -s conftest.err'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; } &&
11650          { ac_try='test -s conftest$ac_exeext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   ac_cv_lib_dld_shl_load=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_cv_lib_dld_shl_load=no
11662 fi
11663 rm -f conftest.err conftest.$ac_objext \
11664       conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11668 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11669 if test $ac_cv_lib_dld_shl_load = yes; then
11670   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11671 else
11672   echo "$as_me:$LINENO: checking for dlopen" >&5
11673 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11674 if test "${ac_cv_func_dlopen+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   if test x$gcc_no_link = xyes; then
11678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11680    { (exit 1); exit 1; }; }
11681 fi
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11690 #define dlopen innocuous_dlopen
11691
11692 /* System header to define __stub macros and hopefully few prototypes,
11693     which can conflict with char dlopen (); below.
11694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695     <limits.h> exists even on freestanding compilers.  */
11696
11697 #ifdef __STDC__
11698 # include <limits.h>
11699 #else
11700 # include <assert.h>
11701 #endif
11702
11703 #undef dlopen
11704
11705 /* Override any gcc2 internal prototype to avoid an error.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 {
11709 #endif
11710 /* We use char because int might match the return type of a gcc2
11711    builtin and then its argument prototype would still apply.  */
11712 char dlopen ();
11713 /* The GNU C library defines this for functions which it implements
11714     to always fail with ENOSYS.  Some functions are actually named
11715     something starting with __ and the normal name is an alias.  */
11716 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11717 choke me
11718 #else
11719 char (*f) () = dlopen;
11720 #endif
11721 #ifdef __cplusplus
11722 }
11723 #endif
11724
11725 int
11726 main ()
11727 {
11728 return f != dlopen;
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735   (eval $ac_link) 2>conftest.er1
11736   ac_status=$?
11737   grep -v '^ *+' conftest.er1 >conftest.err
11738   rm -f conftest.er1
11739   cat conftest.err >&5
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } &&
11742          { ac_try='test -z "$ac_c_werror_flag"
11743                          || test ! -s conftest.err'
11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745   (eval $ac_try) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; } &&
11749          { ac_try='test -s conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   ac_cv_func_dlopen=yes
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 ac_cv_func_dlopen=no
11761 fi
11762 rm -f conftest.err conftest.$ac_objext \
11763       conftest$ac_exeext conftest.$ac_ext
11764 fi
11765 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11766 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11767 if test $ac_cv_func_dlopen = yes; then
11768   lt_cv_dlopen="dlopen"
11769 else
11770   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11771 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11772 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   ac_check_lib_save_LIBS=$LIBS
11776 LIBS="-ldl  $LIBS"
11777 if test x$gcc_no_link = xyes; then
11778   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11779 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11780    { (exit 1); exit 1; }; }
11781 fi
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h.  */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h.  */
11788
11789 /* Override any gcc2 internal prototype to avoid an error.  */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 /* We use char because int might match the return type of a gcc2
11794    builtin and then its argument prototype would still apply.  */
11795 char dlopen ();
11796 int
11797 main ()
11798 {
11799 dlopen ();
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806   (eval $ac_link) 2>conftest.er1
11807   ac_status=$?
11808   grep -v '^ *+' conftest.er1 >conftest.err
11809   rm -f conftest.er1
11810   cat conftest.err >&5
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } &&
11813          { ac_try='test -z "$ac_c_werror_flag"
11814                          || test ! -s conftest.err'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; } &&
11820          { ac_try='test -s conftest$ac_exeext'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; }; then
11826   ac_cv_lib_dl_dlopen=yes
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 ac_cv_lib_dl_dlopen=no
11832 fi
11833 rm -f conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_check_lib_save_LIBS
11836 fi
11837 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11838 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11839 if test $ac_cv_lib_dl_dlopen = yes; then
11840   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11841 else
11842   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11843 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11844 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   ac_check_lib_save_LIBS=$LIBS
11848 LIBS="-lsvld  $LIBS"
11849 if test x$gcc_no_link = xyes; then
11850   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11852    { (exit 1); exit 1; }; }
11853 fi
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 /* We use char because int might match the return type of a gcc2
11866    builtin and then its argument prototype would still apply.  */
11867 char dlopen ();
11868 int
11869 main ()
11870 {
11871 dlopen ();
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878   (eval $ac_link) 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -z "$ac_c_werror_flag"
11886                          || test ! -s conftest.err'
11887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888   (eval $ac_try) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; } &&
11892          { ac_try='test -s conftest$ac_exeext'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; }; then
11898   ac_cv_lib_svld_dlopen=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_cv_lib_svld_dlopen=no
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906       conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11908 fi
11909 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11911 if test $ac_cv_lib_svld_dlopen = yes; then
11912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11913 else
11914   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-ldld  $LIBS"
11921 if test x$gcc_no_link = xyes; then
11922   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11924    { (exit 1); exit 1; }; }
11925 fi
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932
11933 /* Override any gcc2 internal prototype to avoid an error.  */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 /* We use char because int might match the return type of a gcc2
11938    builtin and then its argument prototype would still apply.  */
11939 char dld_link ();
11940 int
11941 main ()
11942 {
11943 dld_link ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950   (eval $ac_link) 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag"
11958                          || test ! -s conftest.err'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; } &&
11964          { ac_try='test -s conftest$ac_exeext'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; }; then
11970   ac_cv_lib_dld_dld_link=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 ac_cv_lib_dld_dld_link=no
11976 fi
11977 rm -f conftest.err conftest.$ac_objext \
11978       conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11980 fi
11981 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11982 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11983 if test $ac_cv_lib_dld_dld_link = yes; then
11984   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11985 fi
11986
11987
11988 fi
11989
11990
11991 fi
11992
11993
11994 fi
11995
11996
11997 fi
11998
11999
12000 fi
12001
12002     ;;
12003   esac
12004
12005   if test "x$lt_cv_dlopen" != xno; then
12006     enable_dlopen=yes
12007   else
12008     enable_dlopen=no
12009   fi
12010
12011   case $lt_cv_dlopen in
12012   dlopen)
12013     save_CPPFLAGS="$CPPFLAGS"
12014     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12015
12016     save_LDFLAGS="$LDFLAGS"
12017     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12018
12019     save_LIBS="$LIBS"
12020     LIBS="$lt_cv_dlopen_libs $LIBS"
12021
12022     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12023 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12024 if test "${lt_cv_dlopen_self+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027           if test "$cross_compiling" = yes; then :
12028   lt_cv_dlopen_self=cross
12029 else
12030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12031   lt_status=$lt_dlunknown
12032   cat > conftest.$ac_ext <<_LT_EOF
12033 #line 12033 "configure"
12034 #include "confdefs.h"
12035
12036 #if HAVE_DLFCN_H
12037 #include <dlfcn.h>
12038 #endif
12039
12040 #include <stdio.h>
12041
12042 #ifdef RTLD_GLOBAL
12043 #  define LT_DLGLOBAL           RTLD_GLOBAL
12044 #else
12045 #  ifdef DL_GLOBAL
12046 #    define LT_DLGLOBAL         DL_GLOBAL
12047 #  else
12048 #    define LT_DLGLOBAL         0
12049 #  endif
12050 #endif
12051
12052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12053    find out it does not work in some platform. */
12054 #ifndef LT_DLLAZY_OR_NOW
12055 #  ifdef RTLD_LAZY
12056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12057 #  else
12058 #    ifdef DL_LAZY
12059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12060 #    else
12061 #      ifdef RTLD_NOW
12062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12063 #      else
12064 #        ifdef DL_NOW
12065 #          define LT_DLLAZY_OR_NOW      DL_NOW
12066 #        else
12067 #          define LT_DLLAZY_OR_NOW      0
12068 #        endif
12069 #      endif
12070 #    endif
12071 #  endif
12072 #endif
12073
12074 #ifdef __cplusplus
12075 extern "C" void exit (int);
12076 #endif
12077
12078 void fnord() { int i=42;}
12079 int main ()
12080 {
12081   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082   int status = $lt_dlunknown;
12083
12084   if (self)
12085     {
12086       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12087       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12088       /* dlclose (self); */
12089     }
12090   else
12091     puts (dlerror ());
12092
12093     exit (status);
12094 }
12095 _LT_EOF
12096   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12101     (./conftest; exit; ) >&5 2>/dev/null
12102     lt_status=$?
12103     case x$lt_status in
12104       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12105       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12106       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12107     esac
12108   else :
12109     # compilation failed
12110     lt_cv_dlopen_self=no
12111   fi
12112 fi
12113 rm -fr conftest*
12114
12115
12116 fi
12117 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12118 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12119
12120     if test "x$lt_cv_dlopen_self" = xyes; then
12121       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12122       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12123 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12124 if test "${lt_cv_dlopen_self_static+set}" = set; then
12125   echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127           if test "$cross_compiling" = yes; then :
12128   lt_cv_dlopen_self_static=cross
12129 else
12130   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12131   lt_status=$lt_dlunknown
12132   cat > conftest.$ac_ext <<_LT_EOF
12133 #line 12133 "configure"
12134 #include "confdefs.h"
12135
12136 #if HAVE_DLFCN_H
12137 #include <dlfcn.h>
12138 #endif
12139
12140 #include <stdio.h>
12141
12142 #ifdef RTLD_GLOBAL
12143 #  define LT_DLGLOBAL           RTLD_GLOBAL
12144 #else
12145 #  ifdef DL_GLOBAL
12146 #    define LT_DLGLOBAL         DL_GLOBAL
12147 #  else
12148 #    define LT_DLGLOBAL         0
12149 #  endif
12150 #endif
12151
12152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12153    find out it does not work in some platform. */
12154 #ifndef LT_DLLAZY_OR_NOW
12155 #  ifdef RTLD_LAZY
12156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12157 #  else
12158 #    ifdef DL_LAZY
12159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12160 #    else
12161 #      ifdef RTLD_NOW
12162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12163 #      else
12164 #        ifdef DL_NOW
12165 #          define LT_DLLAZY_OR_NOW      DL_NOW
12166 #        else
12167 #          define LT_DLLAZY_OR_NOW      0
12168 #        endif
12169 #      endif
12170 #    endif
12171 #  endif
12172 #endif
12173
12174 #ifdef __cplusplus
12175 extern "C" void exit (int);
12176 #endif
12177
12178 void fnord() { int i=42;}
12179 int main ()
12180 {
12181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12182   int status = $lt_dlunknown;
12183
12184   if (self)
12185     {
12186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12187       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12188       /* dlclose (self); */
12189     }
12190   else
12191     puts (dlerror ());
12192
12193     exit (status);
12194 }
12195 _LT_EOF
12196   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197   (eval $ac_link) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12201     (./conftest; exit; ) >&5 2>/dev/null
12202     lt_status=$?
12203     case x$lt_status in
12204       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12205       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12206       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12207     esac
12208   else :
12209     # compilation failed
12210     lt_cv_dlopen_self_static=no
12211   fi
12212 fi
12213 rm -fr conftest*
12214
12215
12216 fi
12217 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12218 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12219     fi
12220
12221     CPPFLAGS="$save_CPPFLAGS"
12222     LDFLAGS="$save_LDFLAGS"
12223     LIBS="$save_LIBS"
12224     ;;
12225   esac
12226
12227   case $lt_cv_dlopen_self in
12228   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12229   *) enable_dlopen_self=unknown ;;
12230   esac
12231
12232   case $lt_cv_dlopen_self_static in
12233   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12234   *) enable_dlopen_self_static=unknown ;;
12235   esac
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254 striplib=
12255 old_striplib=
12256 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12257 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12258 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12259   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12260   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12261   echo "$as_me:$LINENO: result: yes" >&5
12262 echo "${ECHO_T}yes" >&6
12263 else
12264 # FIXME - insert some real tests, host_os isn't really good enough
12265   case $host_os in
12266   darwin*)
12267     if test -n "$STRIP" ; then
12268       striplib="$STRIP -x"
12269       old_striplib="$STRIP -S"
12270       echo "$as_me:$LINENO: result: yes" >&5
12271 echo "${ECHO_T}yes" >&6
12272     else
12273       echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12275     fi
12276     ;;
12277   *)
12278     echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6
12280     ;;
12281   esac
12282 fi
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295   # Report which library types will actually be built
12296   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12297 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12298   echo "$as_me:$LINENO: result: $can_build_shared" >&5
12299 echo "${ECHO_T}$can_build_shared" >&6
12300
12301   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12302 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12303   test "$can_build_shared" = "no" && enable_shared=no
12304
12305   # On AIX, shared libraries and static libraries use the same namespace, and
12306   # are all built from PIC.
12307   case $host_os in
12308   aix3*)
12309     test "$enable_shared" = yes && enable_static=no
12310     if test -n "$RANLIB"; then
12311       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12312       postinstall_cmds='$RANLIB $lib'
12313     fi
12314     ;;
12315
12316   aix4* | aix5*)
12317     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12318       test "$enable_shared" = yes && enable_static=no
12319     fi
12320     ;;
12321   esac
12322   echo "$as_me:$LINENO: result: $enable_shared" >&5
12323 echo "${ECHO_T}$enable_shared" >&6
12324
12325   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12326 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12327   # Make sure either enable_shared or enable_static is yes.
12328   test "$enable_shared" = yes || enable_static=yes
12329   echo "$as_me:$LINENO: result: $enable_static" >&5
12330 echo "${ECHO_T}$enable_static" >&6
12331
12332
12333
12334
12335 fi
12336 ac_ext=c
12337 ac_cpp='$CPP $CPPFLAGS'
12338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12341
12342 CC="$lt_save_CC"
12343
12344
12345 ac_ext=cc
12346 ac_cpp='$CXXCPP $CPPFLAGS'
12347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12350
12351 archive_cmds_need_lc_CXX=no
12352 allow_undefined_flag_CXX=
12353 always_export_symbols_CXX=no
12354 archive_expsym_cmds_CXX=
12355 compiler_needs_object_CXX=no
12356 export_dynamic_flag_spec_CXX=
12357 hardcode_direct_CXX=no
12358 hardcode_direct_absolute_CXX=no
12359 hardcode_libdir_flag_spec_CXX=
12360 hardcode_libdir_flag_spec_ld_CXX=
12361 hardcode_libdir_separator_CXX=
12362 hardcode_minus_L_CXX=no
12363 hardcode_shlibpath_var_CXX=unsupported
12364 hardcode_automatic_CXX=no
12365 inherit_rpath_CXX=no
12366 module_cmds_CXX=
12367 module_expsym_cmds_CXX=
12368 link_all_deplibs_CXX=unknown
12369 old_archive_cmds_CXX=$old_archive_cmds
12370 no_undefined_flag_CXX=
12371 whole_archive_flag_spec_CXX=
12372 enable_shared_with_static_runtimes_CXX=no
12373
12374 # Source file extension for C++ test sources.
12375 ac_ext=cpp
12376
12377 # Object file extension for compiled C++ test sources.
12378 objext=o
12379 objext_CXX=$objext
12380
12381 # No sense in running all these tests if we already determined that
12382 # the CXX compiler isn't working.  Some variables (like enable_shared)
12383 # are currently assumed to apply to all compilers on this platform,
12384 # and will be corrupted by setting them based on a non-working compiler.
12385 if test "$_lt_caught_CXX_error" != yes; then
12386   # Code to be used in simple compile tests
12387   lt_simple_compile_test_code="int some_variable = 0;"
12388
12389   # Code to be used in simple link tests
12390   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12391
12392   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12393
12394
12395
12396
12397
12398
12399 # If no C compiler was specified, use CC.
12400 LTCC=${LTCC-"$CC"}
12401
12402 # If no C compiler flags were specified, use CFLAGS.
12403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12404
12405 # Allow CC to be a program name with arguments.
12406 compiler=$CC
12407
12408
12409   # save warnings/boilerplate of simple test code
12410   ac_outfile=conftest.$ac_objext
12411 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12413 _lt_compiler_boilerplate=`cat conftest.err`
12414 $RM conftest*
12415
12416   ac_outfile=conftest.$ac_objext
12417 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12419 _lt_linker_boilerplate=`cat conftest.err`
12420 $RM conftest*
12421
12422
12423   # Allow CC to be a program name with arguments.
12424   lt_save_CC=$CC
12425   lt_save_LD=$LD
12426   lt_save_GCC=$GCC
12427   GCC=$GXX
12428   lt_save_with_gnu_ld=$with_gnu_ld
12429   lt_save_path_LD=$lt_cv_path_LD
12430   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12431     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12432   else
12433     $as_unset lt_cv_prog_gnu_ld
12434   fi
12435   if test -n "${lt_cv_path_LDCXX+set}"; then
12436     lt_cv_path_LD=$lt_cv_path_LDCXX
12437   else
12438     $as_unset lt_cv_path_LD
12439   fi
12440   test -z "${LDCXX+set}" || LD=$LDCXX
12441   CC=${CXX-"c++"}
12442   compiler=$CC
12443   compiler_CXX=$CC
12444   for cc_temp in $compiler""; do
12445   case $cc_temp in
12446     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12447     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12448     \-*) ;;
12449     *) break;;
12450   esac
12451 done
12452 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12453
12454
12455   if test -n "$compiler"; then
12456     # We don't want -fno-exception when compiling C++ code, so set the
12457     # no_builtin_flag separately
12458     if test "$GXX" = yes; then
12459       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12460     else
12461       lt_prog_compiler_no_builtin_flag_CXX=
12462     fi
12463
12464     if test "$GXX" = yes; then
12465       # Set up default GNU C++ configuration
12466
12467
12468
12469 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12470 if test "${with_gnu_ld+set}" = set; then
12471   withval="$with_gnu_ld"
12472   test "$withval" = no || with_gnu_ld=yes
12473 else
12474   with_gnu_ld=no
12475 fi;
12476 ac_prog=ld
12477 if test "$GCC" = yes; then
12478   # Check if gcc -print-prog-name=ld gives a path.
12479   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12480 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12481   case $host in
12482   *-*-mingw*)
12483     # gcc leaves a trailing carriage return which upsets mingw
12484     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12485   *)
12486     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12487   esac
12488   case $ac_prog in
12489     # Accept absolute paths.
12490     [\\/]* | ?:[\\/]*)
12491       re_direlt='/[^/][^/]*/\.\./'
12492       # Canonicalize the pathname of ld
12493       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12494       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12495         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12496       done
12497       test -z "$LD" && LD="$ac_prog"
12498       ;;
12499   "")
12500     # If it fails, then pretend we aren't using GCC.
12501     ac_prog=ld
12502     ;;
12503   *)
12504     # If it is relative, then search for the first ld in PATH.
12505     with_gnu_ld=unknown
12506     ;;
12507   esac
12508 elif test "$with_gnu_ld" = yes; then
12509   echo "$as_me:$LINENO: checking for GNU ld" >&5
12510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12511 else
12512   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12514 fi
12515 if test "${lt_cv_path_LD+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   if test -z "$LD"; then
12519   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12520   for ac_dir in $PATH; do
12521     IFS="$lt_save_ifs"
12522     test -z "$ac_dir" && ac_dir=.
12523     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12524       lt_cv_path_LD="$ac_dir/$ac_prog"
12525       # Check to see if the program is GNU ld.  I'd rather use --version,
12526       # but apparently some variants of GNU ld only accept -v.
12527       # Break only if it was the GNU/non-GNU ld that we prefer.
12528       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12529       *GNU* | *'with BFD'*)
12530         test "$with_gnu_ld" != no && break
12531         ;;
12532       *)
12533         test "$with_gnu_ld" != yes && break
12534         ;;
12535       esac
12536     fi
12537   done
12538   IFS="$lt_save_ifs"
12539 else
12540   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12541 fi
12542 fi
12543
12544 LD="$lt_cv_path_LD"
12545 if test -n "$LD"; then
12546   echo "$as_me:$LINENO: result: $LD" >&5
12547 echo "${ECHO_T}$LD" >&6
12548 else
12549   echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6
12551 fi
12552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12554    { (exit 1); exit 1; }; }
12555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12561 case `$LD -v 2>&1 </dev/null` in
12562 *GNU* | *'with BFD'*)
12563   lt_cv_prog_gnu_ld=yes
12564   ;;
12565 *)
12566   lt_cv_prog_gnu_ld=no
12567   ;;
12568 esac
12569 fi
12570 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12571 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12572 with_gnu_ld=$lt_cv_prog_gnu_ld
12573
12574
12575
12576
12577
12578
12579
12580       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12581       # archiving commands below assume that GNU ld is being used.
12582       if test "$with_gnu_ld" = yes; then
12583         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12584         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12585
12586         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12587         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12588
12589         # If archive_cmds runs LD, not CC, wlarc should be empty
12590         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12591         #     investigate it a little bit more. (MM)
12592         wlarc='${wl}'
12593
12594         # ancient GNU ld didn't support --whole-archive et. al.
12595         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12596           $GREP 'no-whole-archive' > /dev/null; then
12597           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12598         else
12599           whole_archive_flag_spec_CXX=
12600         fi
12601       else
12602         with_gnu_ld=no
12603         wlarc=
12604
12605         # A generic and very simple default shared library creation
12606         # command for GNU C++ for the case where it uses the native
12607         # linker, instead of GNU ld.  If possible, this setting should
12608         # overridden to take advantage of the native linker features on
12609         # the platform it is being used on.
12610         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12611       fi
12612
12613       # Commands to make compiler produce verbose output that lists
12614       # what "hidden" libraries, object files and flags are used when
12615       # linking a shared library.
12616       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12617
12618     else
12619       GXX=no
12620       with_gnu_ld=no
12621       wlarc=
12622     fi
12623
12624     # PORTME: fill in a description of your system's C++ link characteristics
12625     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12627     ld_shlibs_CXX=yes
12628     case $host_os in
12629       aix3*)
12630         # FIXME: insert proper C++ library support
12631         ld_shlibs_CXX=no
12632         ;;
12633       aix4* | aix5*)
12634         if test "$host_cpu" = ia64; then
12635           # On IA64, the linker does run time linking by default, so we don't
12636           # have to do anything special.
12637           aix_use_runtimelinking=no
12638           exp_sym_flag='-Bexport'
12639           no_entry_flag=""
12640         else
12641           aix_use_runtimelinking=no
12642
12643           # Test if we are trying to use run time linking or normal
12644           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12645           # need to do runtime linking.
12646           case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12647             for ld_flag in $LDFLAGS; do
12648               case $ld_flag in
12649               *-brtl*)
12650                 aix_use_runtimelinking=yes
12651                 break
12652                 ;;
12653               esac
12654             done
12655             ;;
12656           esac
12657
12658           exp_sym_flag='-bexport'
12659           no_entry_flag='-bnoentry'
12660         fi
12661
12662         # When large executables or shared objects are built, AIX ld can
12663         # have problems creating the table of contents.  If linking a library
12664         # or program results in "error TOC overflow" add -mminimal-toc to
12665         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12666         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12667
12668         archive_cmds_CXX=''
12669         hardcode_direct_CXX=yes
12670         hardcode_direct_absolute_CXX=yes
12671         hardcode_libdir_separator_CXX=':'
12672         link_all_deplibs_CXX=yes
12673         file_list_spec_CXX='${wl}-f,'
12674
12675         if test "$GXX" = yes; then
12676           case $host_os in aix4.[012]|aix4.[012].*)
12677           # We only want to do this on AIX 4.2 and lower, the check
12678           # below for broken collect2 doesn't work under 4.3+
12679           collect2name=`${CC} -print-prog-name=collect2`
12680           if test -f "$collect2name" &&
12681              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12682           then
12683             # We have reworked collect2
12684             :
12685           else
12686             # We have old collect2
12687             hardcode_direct_CXX=unsupported
12688             # It fails to find uninstalled libraries when the uninstalled
12689             # path is not listed in the libpath.  Setting hardcode_minus_L
12690             # to unsupported forces relinking
12691             hardcode_minus_L_CXX=yes
12692             hardcode_libdir_flag_spec_CXX='-L$libdir'
12693             hardcode_libdir_separator_CXX=
12694           fi
12695           esac
12696           shared_flag='-shared'
12697           if test "$aix_use_runtimelinking" = yes; then
12698             shared_flag="$shared_flag "'${wl}-G'
12699           fi
12700         else
12701           # not using gcc
12702           if test "$host_cpu" = ia64; then
12703           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12704           # chokes on -Wl,-G. The following line is correct:
12705           shared_flag='-G'
12706           else
12707             if test "$aix_use_runtimelinking" = yes; then
12708               shared_flag='${wl}-G'
12709             else
12710               shared_flag='${wl}-bM:SRE'
12711             fi
12712           fi
12713         fi
12714
12715         # It seems that -bexpall does not export symbols beginning with
12716         # underscore (_), so it is better to generate a list of symbols to
12717         # export.
12718         always_export_symbols_CXX=yes
12719         if test "$aix_use_runtimelinking" = yes; then
12720           # Warning - without using the other runtime loading flags (-brtl),
12721           # -berok will link without error, but may produce a broken library.
12722           allow_undefined_flag_CXX='-berok'
12723           # Determine the default libpath from the value encoded in an empty
12724           # executable.
12725           if test x$gcc_no_link = xyes; then
12726   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12728    { (exit 1); exit 1; }; }
12729 fi
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736
12737 int
12738 main ()
12739 {
12740
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12747   (eval $ac_link) 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } &&
12754          { ac_try='test -z "$ac_cxx_werror_flag"
12755                          || test ! -s conftest.err'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; } &&
12761          { ac_try='test -s conftest$ac_exeext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767
12768 lt_aix_libpath_sed='
12769     /Import File Strings/,/^$/ {
12770         /^0/ {
12771             s/^0  *\(.*\)$/\1/
12772             p
12773         }
12774     }'
12775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12776 # Check for a 64-bit object if we didn't find anything.
12777 if test -z "$aix_libpath"; then
12778   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779 fi
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 fi
12785 rm -f conftest.err conftest.$ac_objext \
12786       conftest$ac_exeext conftest.$ac_ext
12787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12788
12789           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12790
12791           archive_expsym_cmds_CXX='$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"
12792         else
12793           if test "$host_cpu" = ia64; then
12794             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12795             allow_undefined_flag_CXX="-z nodefs"
12796             archive_expsym_cmds_CXX="\$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"
12797           else
12798             # Determine the default libpath from the value encoded in an
12799             # empty executable.
12800             if test x$gcc_no_link = xyes; then
12801   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12803    { (exit 1); exit 1; }; }
12804 fi
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811
12812 int
12813 main ()
12814 {
12815
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822   (eval $ac_link) 2>conftest.er1
12823   ac_status=$?
12824   grep -v '^ *+' conftest.er1 >conftest.err
12825   rm -f conftest.er1
12826   cat conftest.err >&5
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } &&
12829          { ac_try='test -z "$ac_cxx_werror_flag"
12830                          || test ! -s conftest.err'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; } &&
12836          { ac_try='test -s conftest$ac_exeext'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; }; then
12842
12843 lt_aix_libpath_sed='
12844     /Import File Strings/,/^$/ {
12845         /^0/ {
12846             s/^0  *\(.*\)$/\1/
12847             p
12848         }
12849     }'
12850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12851 # Check for a 64-bit object if we didn't find anything.
12852 if test -z "$aix_libpath"; then
12853   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12854 fi
12855 else
12856   echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12858
12859 fi
12860 rm -f conftest.err conftest.$ac_objext \
12861       conftest$ac_exeext conftest.$ac_ext
12862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12863
12864             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12865             # Warning - without using the other run time loading flags,
12866             # -berok will link without error, but may produce a broken library.
12867             no_undefined_flag_CXX=' ${wl}-bernotok'
12868             allow_undefined_flag_CXX=' ${wl}-berok'
12869             # Exported symbols can be pulled into shared objects from archives
12870             whole_archive_flag_spec_CXX='$convenience'
12871             archive_cmds_need_lc_CXX=yes
12872             # This is similar to how AIX traditionally builds its shared
12873             # libraries.
12874             archive_expsym_cmds_CXX="\$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'
12875           fi
12876         fi
12877         ;;
12878
12879       beos*)
12880         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12881           allow_undefined_flag_CXX=unsupported
12882           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12883           # support --undefined.  This deserves some investigation.  FIXME
12884           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885         else
12886           ld_shlibs_CXX=no
12887         fi
12888         ;;
12889
12890       chorus*)
12891         case $cc_basename in
12892           *)
12893           # FIXME: insert proper C++ library support
12894           ld_shlibs_CXX=no
12895           ;;
12896         esac
12897         ;;
12898
12899       cygwin* | mingw* | pw32*)
12900         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12901         # as there is no search path for DLLs.
12902         hardcode_libdir_flag_spec_CXX='-L$libdir'
12903         allow_undefined_flag_CXX=unsupported
12904         always_export_symbols_CXX=no
12905         enable_shared_with_static_runtimes_CXX=yes
12906
12907         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12908           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12909           # If the export-symbols file already is a .def file (1st line
12910           # is EXPORTS), use it as is; otherwise, prepend...
12911           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12912             cp $export_symbols $output_objdir/$soname.def;
12913           else
12914             echo EXPORTS > $output_objdir/$soname.def;
12915             cat $export_symbols >> $output_objdir/$soname.def;
12916           fi~
12917           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12918         else
12919           ld_shlibs_CXX=no
12920         fi
12921         ;;
12922       darwin* | rhapsody*)
12923         case $host_os in
12924           rhapsody* | darwin1.[012])
12925             allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12926             ;;
12927           *) # Darwin 1.3 on
12928             case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12929               10.[012])
12930                 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12931                 ;;
12932               10.*)
12933                 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12934                 ;;
12935             esac
12936             ;;
12937         esac
12938         archive_cmds_need_lc_CXX=no
12939         hardcode_direct_CXX=no
12940         hardcode_automatic_CXX=yes
12941         hardcode_shlibpath_var_CXX=unsupported
12942         whole_archive_flag_spec_CXX=''
12943         link_all_deplibs_CXX=yes
12944
12945         if test "$GXX" = yes ; then
12946           if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   lt_cv_apple_cc_single_mod=no
12950           if test -z "${LT_MULTI_MODULE}"; then
12951             # By default we will add the -single_module flag. You can override
12952             # by either setting the environment variable LT_MULTI_MODULE
12953             # non-empty at configure time, or by adding -multi-module to the
12954             # link flags.
12955             echo "int foo(void){return 1;}" > conftest.c
12956             $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12957                 -dynamiclib ${wl}-single_module conftest.c
12958             if test -f libconftest.dylib; then
12959                 lt_cv_apple_cc_single_mod=yes
12960                 rm libconftest.dylib
12961             fi
12962             rm conftest.$ac_ext
12963           fi
12964 fi
12965
12966           output_verbose_link_cmd=echo
12967           if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
12968            archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12969             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12970           else
12971             archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12972             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12973           fi
12974           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12975           module_expsym_cmds_CXX='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}'
12976         else
12977           case $cc_basename in
12978             xlc*)
12979               output_verbose_link_cmd=echo
12980               archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
12981               module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12982               # Don't fix this by using the ld -exported_symbols_list flag,
12983               # it doesn't exist in older darwin lds
12984               archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12985               module_expsym_cmds_CXX='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}'
12986               ;;
12987             *)
12988               ld_shlibs_CXX=no
12989               ;;
12990           esac
12991         fi
12992         ;;
12993
12994       dgux*)
12995         case $cc_basename in
12996           ec++*)
12997             # FIXME: insert proper C++ library support
12998             ld_shlibs_CXX=no
12999             ;;
13000           ghcx*)
13001             # Green Hills C++ Compiler
13002             # FIXME: insert proper C++ library support
13003             ld_shlibs_CXX=no
13004             ;;
13005           *)
13006             # FIXME: insert proper C++ library support
13007             ld_shlibs_CXX=no
13008             ;;
13009         esac
13010         ;;
13011
13012       freebsd[12]*)
13013         # C++ shared libraries reported to be fairly broken before
13014         # switch to ELF
13015         ld_shlibs_CXX=no
13016         ;;
13017
13018       freebsd-elf*)
13019         archive_cmds_need_lc_CXX=no
13020         ;;
13021
13022       freebsd* | dragonfly*)
13023         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13024         # conventions
13025         ld_shlibs_CXX=yes
13026         ;;
13027
13028       gnu*)
13029         ;;
13030
13031       hpux9*)
13032         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13033         hardcode_libdir_separator_CXX=:
13034         export_dynamic_flag_spec_CXX='${wl}-E'
13035         hardcode_direct_CXX=yes
13036         hardcode_minus_L_CXX=yes # Not in the search PATH,
13037                                              # but as the default
13038                                              # location of the library.
13039
13040         case $cc_basename in
13041           CC*)
13042             # FIXME: insert proper C++ library support
13043             ld_shlibs_CXX=no
13044             ;;
13045           aCC*)
13046             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13047             # Commands to make compiler produce verbose output that lists
13048             # what "hidden" libraries, object files and flags are used when
13049             # linking a shared library.
13050             #
13051             # There doesn't appear to be a way to prevent this compiler from
13052             # explicitly linking system object files so we need to strip them
13053             # from the output so that they don't get included in the library
13054             # dependencies.
13055             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13056             ;;
13057           *)
13058             if test "$GXX" = yes; then
13059               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13060             else
13061               # FIXME: insert proper C++ library support
13062               ld_shlibs_CXX=no
13063             fi
13064             ;;
13065         esac
13066         ;;
13067
13068       hpux10*|hpux11*)
13069         if test $with_gnu_ld = no; then
13070           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13071           hardcode_libdir_separator_CXX=:
13072
13073           case $host_cpu in
13074             hppa*64*|ia64*)
13075               ;;
13076             *)
13077               export_dynamic_flag_spec_CXX='${wl}-E'
13078               ;;
13079           esac
13080         fi
13081         case $host_cpu in
13082           hppa*64*|ia64*)
13083             hardcode_direct_CXX=no
13084             hardcode_shlibpath_var_CXX=no
13085             ;;
13086           *)
13087             hardcode_direct_CXX=yes
13088             hardcode_direct_absolute_CXX=yes
13089             hardcode_minus_L_CXX=yes # Not in the search PATH,
13090                                                  # but as the default
13091                                                  # location of the library.
13092             ;;
13093         esac
13094
13095         case $cc_basename in
13096           CC*)
13097             # FIXME: insert proper C++ library support
13098             ld_shlibs_CXX=no
13099             ;;
13100           aCC*)
13101             case $host_cpu in
13102               hppa*64*)
13103                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13104                 ;;
13105               ia64*)
13106                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13107                 ;;
13108               *)
13109                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13110                 ;;
13111             esac
13112             # Commands to make compiler produce verbose output that lists
13113             # what "hidden" libraries, object files and flags are used when
13114             # linking a shared library.
13115             #
13116             # There doesn't appear to be a way to prevent this compiler from
13117             # explicitly linking system object files so we need to strip them
13118             # from the output so that they don't get included in the library
13119             # dependencies.
13120             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13121             ;;
13122           *)
13123             if test "$GXX" = yes; then
13124               if test $with_gnu_ld = no; then
13125                 case $host_cpu in
13126                   hppa*64*)
13127                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13128                     ;;
13129                   ia64*)
13130                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13131                     ;;
13132                   *)
13133                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134                     ;;
13135                 esac
13136               fi
13137             else
13138               # FIXME: insert proper C++ library support
13139               ld_shlibs_CXX=no
13140             fi
13141             ;;
13142         esac
13143         ;;
13144
13145       interix[3-9]*)
13146         hardcode_direct_CXX=no
13147         hardcode_shlibpath_var_CXX=no
13148         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13149         export_dynamic_flag_spec_CXX='${wl}-E'
13150         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13151         # Instead, shared libraries are loaded at an image base (0x10000000 by
13152         # default) and relocated if they conflict, which is a slow very memory
13153         # consuming and fragmenting process.  To avoid this, we pick a random,
13154         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13155         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13156         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13157         archive_expsym_cmds_CXX='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'
13158         ;;
13159       irix5* | irix6*)
13160         case $cc_basename in
13161           CC*)
13162             # SGI C++
13163             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13164
13165             # Archives containing C++ object files must be created using
13166             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13167             # necessary to make sure instantiated templates are included
13168             # in the archive.
13169             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13170             ;;
13171           *)
13172             if test "$GXX" = yes; then
13173               if test "$with_gnu_ld" = no; then
13174                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13175               else
13176                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13177               fi
13178             fi
13179             link_all_deplibs_CXX=yes
13180             ;;
13181         esac
13182         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13183         hardcode_libdir_separator_CXX=:
13184         inherit_rpath_CXX=yes
13185         ;;
13186
13187       linux* | k*bsd*-gnu)
13188         case $cc_basename in
13189           KCC*)
13190             # Kuck and Associates, Inc. (KAI) C++ Compiler
13191
13192             # KCC will only create a shared library if the output file
13193             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13194             # to its proper name (with version) after linking.
13195             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13196             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13197             # Commands to make compiler produce verbose output that lists
13198             # what "hidden" libraries, object files and flags are used when
13199             # linking a shared library.
13200             #
13201             # There doesn't appear to be a way to prevent this compiler from
13202             # explicitly linking system object files so we need to strip them
13203             # from the output so that they don't get included in the library
13204             # dependencies.
13205             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13206
13207             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13208             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13209
13210             # Archives containing C++ object files must be created using
13211             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13212             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13213             ;;
13214           icpc* | ecpc* )
13215             # Intel C++
13216             with_gnu_ld=yes
13217             # version 8.0 and above of icpc choke on multiply defined symbols
13218             # if we add $predep_objects and $postdep_objects, however 7.1 and
13219             # earlier do not add the objects themselves.
13220             case `$CC -V 2>&1` in
13221               *"Version 7."*)
13222                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13224                 ;;
13225               *)  # Version 8.0 or newer
13226                 tmp_idyn=
13227                 case $host_cpu in
13228                   ia64*) tmp_idyn=' -i_dynamic';;
13229                 esac
13230                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13232                 ;;
13233             esac
13234             archive_cmds_need_lc_CXX=no
13235             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13236             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13237             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13238             ;;
13239           pgCC*)
13240             # Portland Group C++ compiler
13241             case `$CC -V` in
13242             *pgCC\ [1-5]*)
13243               prelink_cmds_CXX='tpldir=Template.dir~
13244                 rm -rf $tpldir~
13245                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13246                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13247               old_archive_cmds_CXX='tpldir=Template.dir~
13248                 rm -rf $tpldir~
13249                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13250                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13251                 $RANLIB $oldlib'
13252               archive_cmds_CXX='tpldir=Template.dir~
13253                 rm -rf $tpldir~
13254                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13255                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13256               archive_expsym_cmds_CXX='tpldir=Template.dir~
13257                 rm -rf $tpldir~
13258                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13259                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13260               ;;
13261             *) # Version 6 will use weak symbols
13262               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13263               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13264               ;;
13265             esac
13266
13267             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13268             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13269             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13270             ;;
13271           cxx*)
13272             # Compaq C++
13273             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13275
13276             runpath_var=LD_RUN_PATH
13277             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13278             hardcode_libdir_separator_CXX=:
13279
13280             # Commands to make compiler produce verbose output that lists
13281             # what "hidden" libraries, object files and flags are used when
13282             # linking a shared library.
13283             #
13284             # There doesn't appear to be a way to prevent this compiler from
13285             # explicitly linking system object files so we need to strip them
13286             # from the output so that they don't get included in the library
13287             # dependencies.
13288             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13289             ;;
13290           *)
13291             case `$CC -V 2>&1 | sed 5q` in
13292             *Sun\ C*)
13293               # Sun C++ 5.9
13294               no_undefined_flag_CXX=' -zdefs'
13295               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13296               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13297               hardcode_libdir_flag_spec_CXX='-R$libdir'
13298               whole_archive_flag_spec_CXX='${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'
13299               compiler_needs_object_CXX=yes
13300
13301               # Not sure whether something based on
13302               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13303               # would be better.
13304               output_verbose_link_cmd='echo'
13305
13306               # Archives containing C++ object files must be created using
13307               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13308               # necessary to make sure instantiated templates are included
13309               # in the archive.
13310               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13311               ;;
13312             esac
13313             ;;
13314         esac
13315         ;;
13316
13317       lynxos*)
13318         # FIXME: insert proper C++ library support
13319         ld_shlibs_CXX=no
13320         ;;
13321
13322       m88k*)
13323         # FIXME: insert proper C++ library support
13324         ld_shlibs_CXX=no
13325         ;;
13326
13327       mvs*)
13328         case $cc_basename in
13329           cxx*)
13330             # FIXME: insert proper C++ library support
13331             ld_shlibs_CXX=no
13332             ;;
13333           *)
13334             # FIXME: insert proper C++ library support
13335             ld_shlibs_CXX=no
13336             ;;
13337         esac
13338         ;;
13339
13340       netbsd*)
13341         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13342           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13343           wlarc=
13344           hardcode_libdir_flag_spec_CXX='-R$libdir'
13345           hardcode_direct_CXX=yes
13346           hardcode_shlibpath_var_CXX=no
13347         fi
13348         # Workaround some broken pre-1.5 toolchains
13349         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13350         ;;
13351
13352       *nto* | *qnx*)
13353         ld_shlibs_CXX=yes
13354         ;;
13355
13356       openbsd2*)
13357         # C++ shared libraries are fairly broken
13358         ld_shlibs_CXX=no
13359         ;;
13360
13361       openbsd*)
13362         hardcode_direct_CXX=yes
13363         hardcode_shlibpath_var_CXX=no
13364         hardcode_direct_absolute_CXX=yes
13365         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13366         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13367         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13368           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13369           export_dynamic_flag_spec_CXX='${wl}-E'
13370           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13371         fi
13372         output_verbose_link_cmd=echo
13373         ;;
13374
13375       osf3* | osf4* | osf5*)
13376         case $cc_basename in
13377           KCC*)
13378             # Kuck and Associates, Inc. (KAI) C++ Compiler
13379
13380             # KCC will only create a shared library if the output file
13381             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13382             # to its proper name (with version) after linking.
13383             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13384
13385             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13386             hardcode_libdir_separator_CXX=:
13387
13388             # Archives containing C++ object files must be created using
13389             # the KAI C++ compiler.
13390             case $host in
13391               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13392               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13393             esac
13394             ;;
13395           RCC*)
13396             # Rational C++ 2.4.1
13397             # FIXME: insert proper C++ library support
13398             ld_shlibs_CXX=no
13399             ;;
13400           cxx*)
13401             case $host in
13402               osf3*)
13403                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13404                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13405                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13406                 ;;
13407               *)
13408                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13409                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13410                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13411                   echo "-hidden">> $lib.exp~
13412                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13413                   $RM $lib.exp'
13414                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13415                 ;;
13416             esac
13417
13418             hardcode_libdir_separator_CXX=:
13419
13420             # Commands to make compiler produce verbose output that lists
13421             # what "hidden" libraries, object files and flags are used when
13422             # linking a shared library.
13423             #
13424             # There doesn't appear to be a way to prevent this compiler from
13425             # explicitly linking system object files so we need to strip them
13426             # from the output so that they don't get included in the library
13427             # dependencies.
13428             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13429             ;;
13430           *)
13431             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13432               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13433               case $host in
13434                 osf3*)
13435                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13436                   ;;
13437                 *)
13438                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13439                   ;;
13440               esac
13441
13442               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13443               hardcode_libdir_separator_CXX=:
13444
13445               # Commands to make compiler produce verbose output that lists
13446               # what "hidden" libraries, object files and flags are used when
13447               # linking a shared library.
13448               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13449
13450             else
13451               # FIXME: insert proper C++ library support
13452               ld_shlibs_CXX=no
13453             fi
13454             ;;
13455         esac
13456         ;;
13457
13458       psos*)
13459         # FIXME: insert proper C++ library support
13460         ld_shlibs_CXX=no
13461         ;;
13462
13463       sunos4*)
13464         case $cc_basename in
13465           CC*)
13466             # Sun C++ 4.x
13467             # FIXME: insert proper C++ library support
13468             ld_shlibs_CXX=no
13469             ;;
13470           lcc*)
13471             # Lucid
13472             # FIXME: insert proper C++ library support
13473             ld_shlibs_CXX=no
13474             ;;
13475           *)
13476             # FIXME: insert proper C++ library support
13477             ld_shlibs_CXX=no
13478             ;;
13479         esac
13480         ;;
13481
13482       solaris*)
13483         case $cc_basename in
13484           CC*)
13485             # Sun C++ 4.2, 5.x and Centerline C++
13486             archive_cmds_need_lc_CXX=yes
13487             no_undefined_flag_CXX=' -zdefs'
13488             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13489             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13490               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13491
13492             hardcode_libdir_flag_spec_CXX='-R$libdir'
13493             hardcode_shlibpath_var_CXX=no
13494             case $host_os in
13495               solaris2.[0-5] | solaris2.[0-5].*) ;;
13496               *)
13497                 # The compiler driver will combine and reorder linker options,
13498                 # but understands `-z linker_flag'.
13499                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13500                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13501                 ;;
13502             esac
13503             link_all_deplibs_CXX=yes
13504
13505             output_verbose_link_cmd='echo'
13506
13507             # Archives containing C++ object files must be created using
13508             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13509             # necessary to make sure instantiated templates are included
13510             # in the archive.
13511             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13512             ;;
13513           gcx*)
13514             # Green Hills C++ Compiler
13515             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13516
13517             # The C++ compiler must be used to create the archive.
13518             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13519             ;;
13520           *)
13521             # GNU C++ compiler with Solaris linker
13522             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13523               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13524               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13525                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13526                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13527                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13528
13529                 # Commands to make compiler produce verbose output that lists
13530                 # what "hidden" libraries, object files and flags are used when
13531                 # linking a shared library.
13532                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13533               else
13534                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13535                 # platform.
13536                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13537                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13538                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13539
13540                 # Commands to make compiler produce verbose output that lists
13541                 # what "hidden" libraries, object files and flags are used when
13542                 # linking a shared library.
13543                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13544               fi
13545
13546               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13547               case $host_os in
13548                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13549                 *)
13550                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13551                   ;;
13552               esac
13553             fi
13554             ;;
13555         esac
13556         ;;
13557
13558     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13559       no_undefined_flag_CXX='${wl}-z,text'
13560       archive_cmds_need_lc_CXX=no
13561       hardcode_shlibpath_var_CXX=no
13562       runpath_var='LD_RUN_PATH'
13563
13564       case $cc_basename in
13565         CC*)
13566           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13568           ;;
13569         *)
13570           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13571           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13572           ;;
13573       esac
13574       ;;
13575
13576       sysv5* | sco3.2v5* | sco5v6*)
13577         # Note: We can NOT use -z defs as we might desire, because we do not
13578         # link with -lc, and that would cause any symbols used from libc to
13579         # always be unresolved, which means just about no library would
13580         # ever link correctly.  If we're not using GNU ld we use -z text
13581         # though, which does catch some bad symbols but isn't as heavy-handed
13582         # as -z defs.
13583         no_undefined_flag_CXX='${wl}-z,text'
13584         allow_undefined_flag_CXX='${wl}-z,nodefs'
13585         archive_cmds_need_lc_CXX=no
13586         hardcode_shlibpath_var_CXX=no
13587         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13588         hardcode_libdir_separator_CXX=':'
13589         link_all_deplibs_CXX=yes
13590         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13591         runpath_var='LD_RUN_PATH'
13592
13593         case $cc_basename in
13594           CC*)
13595             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13597             ;;
13598           *)
13599             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13600             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601             ;;
13602         esac
13603       ;;
13604
13605       tandem*)
13606         case $cc_basename in
13607           NCC*)
13608             # NonStop-UX NCC 3.20
13609             # FIXME: insert proper C++ library support
13610             ld_shlibs_CXX=no
13611             ;;
13612           *)
13613             # FIXME: insert proper C++ library support
13614             ld_shlibs_CXX=no
13615             ;;
13616         esac
13617         ;;
13618
13619       vxworks*)
13620         # FIXME: insert proper C++ library support
13621         ld_shlibs_CXX=no
13622         ;;
13623
13624       *)
13625         # FIXME: insert proper C++ library support
13626         ld_shlibs_CXX=no
13627         ;;
13628     esac
13629
13630     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13631 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13632     test "$ld_shlibs_CXX" = no && can_build_shared=no
13633
13634     GCC_CXX="$GXX"
13635     LD_CXX="$LD"
13636
13637     ## CAVEAT EMPTOR:
13638     ## There is no encapsulation within the following macros, do not change
13639     ## the running order or otherwise move them around unless you know exactly
13640     ## what you are doing...
13641     # Dependencies to place before and after the object being linked:
13642 predep_objects_CXX=
13643 postdep_objects_CXX=
13644 predeps_CXX=
13645 postdeps_CXX=
13646 compiler_lib_search_path_CXX=
13647
13648 cat > conftest.$ac_ext <<_LT_EOF
13649 class Foo
13650 {
13651 public:
13652   Foo (void) { a = 0; }
13653 private:
13654   int a;
13655 };
13656 _LT_EOF
13657
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659   (eval $ac_compile) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; then
13663   # Parse the compiler output and extract the necessary
13664   # objects, libraries and library flags.
13665
13666   # Sentinel used to keep track of whether or not we are before
13667   # the conftest object file.
13668   pre_test_object_deps_done=no
13669
13670   # The `*' in the case matches for architectures that use `case' in
13671   # $output_verbose_cmd can trigger glob expansion during the loop
13672   # eval without this substitution.
13673   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13674
13675   for p in `eval $output_verbose_link_cmd`; do
13676     case $p in
13677
13678     -L* | -R* | -l*)
13679        # Some compilers place space between "-{L,R}" and the path.
13680        # Remove the space.
13681        if test $p = "-L" ||
13682           test $p = "-R"; then
13683          prev=$p
13684          continue
13685        else
13686          prev=
13687        fi
13688
13689        if test "$pre_test_object_deps_done" = no; then
13690          case $p in
13691          -L* | -R*)
13692            # Internal compiler library paths should come after those
13693            # provided the user.  The postdeps already come after the
13694            # user supplied libs so there is no need to process them.
13695            if test -z "$compiler_lib_search_path_CXX"; then
13696              compiler_lib_search_path_CXX="${prev}${p}"
13697            else
13698              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13699            fi
13700            ;;
13701          # The "-l" case would never come before the object being
13702          # linked, so don't bother handling this case.
13703          esac
13704        else
13705          if test -z "$postdeps_CXX"; then
13706            postdeps_CXX="${prev}${p}"
13707          else
13708            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13709          fi
13710        fi
13711        ;;
13712
13713     *.$objext)
13714        # This assumes that the test object file only shows up
13715        # once in the compiler output.
13716        if test "$p" = "conftest.$objext"; then
13717          pre_test_object_deps_done=yes
13718          continue
13719        fi
13720
13721        if test "$pre_test_object_deps_done" = no; then
13722          if test -z "$predep_objects_CXX"; then
13723            predep_objects_CXX="$p"
13724          else
13725            predep_objects_CXX="$predep_objects_CXX $p"
13726          fi
13727        else
13728          if test -z "$postdep_objects_CXX"; then
13729            postdep_objects_CXX="$p"
13730          else
13731            postdep_objects_CXX="$postdep_objects_CXX $p"
13732          fi
13733        fi
13734        ;;
13735
13736     *) ;; # Ignore the rest.
13737
13738     esac
13739   done
13740
13741   # Clean up.
13742   rm -f a.out a.exe
13743 else
13744   echo "libtool.m4: error: problem compiling CXX test program"
13745 fi
13746
13747 $RM -f confest.$objext
13748
13749 # PORTME: override above test on systems where it is broken
13750 case $host_os in
13751 interix[3-9]*)
13752   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13753   # hack all around it, let's just trust "g++" to DTRT.
13754   predep_objects_CXX=
13755   postdep_objects_CXX=
13756   postdeps_CXX=
13757   ;;
13758
13759 linux*)
13760   case `$CC -V 2>&1 | sed 5q` in
13761   *Sun\ C*)
13762     # Sun C++ 5.9
13763
13764     # The more standards-conforming stlport4 library is
13765     # incompatible with the Cstd library. Avoid specifying
13766     # it if it's in CXXFLAGS. Ignore libCrun as
13767     # -library=stlport4 depends on it.
13768     case " $CXX $CXXFLAGS " in
13769     *" -library=stlport4 "*)
13770       solaris_use_stlport4=yes
13771       ;;
13772     esac
13773
13774     if test "$solaris_use_stlport4" != yes; then
13775       postdeps_CXX='-library=Cstd -library=Crun'
13776     fi
13777     ;;
13778   esac
13779   ;;
13780
13781 solaris*)
13782   case $cc_basename in
13783   CC*)
13784     # The more standards-conforming stlport4 library is
13785     # incompatible with the Cstd library. Avoid specifying
13786     # it if it's in CXXFLAGS. Ignore libCrun as
13787     # -library=stlport4 depends on it.
13788     case " $CXX $CXXFLAGS " in
13789     *" -library=stlport4 "*)
13790       solaris_use_stlport4=yes
13791       ;;
13792     esac
13793
13794     # Adding this requires a known-good setup of shared libraries for
13795     # Sun compiler versions before 5.6, else PIC objects from an old
13796     # archive will be linked into the output, leading to subtle bugs.
13797     if test "$solaris_use_stlport4" != yes; then
13798       postdeps_CXX='-library=Cstd -library=Crun'
13799     fi
13800     ;;
13801   esac
13802   ;;
13803 esac
13804
13805
13806 case " $postdeps_CXX " in
13807 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13808 esac
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835     lt_prog_compiler_wl_CXX=
13836 lt_prog_compiler_pic_CXX=
13837 lt_prog_compiler_static_CXX=
13838
13839 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13841
13842   # C++ specific cases for pic, static, wl, etc.
13843   if test "$GXX" = yes; then
13844     lt_prog_compiler_wl_CXX='-Wl,'
13845     lt_prog_compiler_static_CXX='-static'
13846
13847     case $host_os in
13848     aix*)
13849       # All AIX code is PIC.
13850       if test "$host_cpu" = ia64; then
13851         # AIX 5 now supports IA64 processor
13852         lt_prog_compiler_static_CXX='-Bstatic'
13853       fi
13854       ;;
13855     amigaos*)
13856       if test "$host_cpu" = m68k; then
13857         # FIXME: we need at least 68020 code to build shared libraries, but
13858         # adding the `-m68020' flag to GCC prevents building anything better,
13859         # like `-m68040'.
13860         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13861       fi
13862       ;;
13863     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13864       # PIC is the default for these OSes.
13865       ;;
13866     mingw* | cygwin* | os2* | pw32*)
13867       # This hack is so that the source file can tell whether it is being
13868       # built for inclusion in a dll (and should export symbols for example).
13869       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13870       # (--disable-auto-import) libraries
13871       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13872       ;;
13873     darwin* | rhapsody*)
13874       # PIC is the default on this platform
13875       # Common symbols not allowed in MH_DYLIB files
13876       lt_prog_compiler_pic_CXX='-fno-common'
13877       ;;
13878     *djgpp*)
13879       # DJGPP does not support shared libraries at all
13880       lt_prog_compiler_pic_CXX=
13881       ;;
13882     interix[3-9]*)
13883       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13884       # Instead, we relocate shared libraries at runtime.
13885       ;;
13886     sysv4*MP*)
13887       if test -d /usr/nec; then
13888         lt_prog_compiler_pic_CXX=-Kconform_pic
13889       fi
13890       ;;
13891     hpux*)
13892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13893       # not for PA HP-UX.
13894       case $host_cpu in
13895       hppa*64*|ia64*)
13896         ;;
13897       *)
13898         lt_prog_compiler_pic_CXX='-fPIC'
13899         ;;
13900       esac
13901       ;;
13902     *qnx* | *nto*)
13903       # QNX uses GNU C++, but need to define -shared option too, otherwise
13904       # it will coredump.
13905       lt_prog_compiler_pic_CXX='-fPIC -shared'
13906       ;;
13907     *)
13908       lt_prog_compiler_pic_CXX='-fPIC'
13909       ;;
13910     esac
13911   else
13912     case $host_os in
13913       aix4* | aix5*)
13914         # All AIX code is PIC.
13915         if test "$host_cpu" = ia64; then
13916           # AIX 5 now supports IA64 processor
13917           lt_prog_compiler_static_CXX='-Bstatic'
13918         else
13919           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13920         fi
13921         ;;
13922       chorus*)
13923         case $cc_basename in
13924         cxch68*)
13925           # Green Hills C++ Compiler
13926           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13927           ;;
13928         esac
13929         ;;
13930       darwin*)
13931         # PIC is the default on this platform
13932         # Common symbols not allowed in MH_DYLIB files
13933         case $cc_basename in
13934           xlc*)
13935           lt_prog_compiler_pic_CXX='-qnocommon'
13936           lt_prog_compiler_wl_CXX='-Wl,'
13937           ;;
13938         esac
13939         ;;
13940       dgux*)
13941         case $cc_basename in
13942           ec++*)
13943             lt_prog_compiler_pic_CXX='-KPIC'
13944             ;;
13945           ghcx*)
13946             # Green Hills C++ Compiler
13947             lt_prog_compiler_pic_CXX='-pic'
13948             ;;
13949           *)
13950             ;;
13951         esac
13952         ;;
13953       freebsd* | dragonfly*)
13954         # FreeBSD uses GNU C++
13955         ;;
13956       hpux9* | hpux10* | hpux11*)
13957         case $cc_basename in
13958           CC*)
13959             lt_prog_compiler_wl_CXX='-Wl,'
13960             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13961             if test "$host_cpu" != ia64; then
13962               lt_prog_compiler_pic_CXX='+Z'
13963             fi
13964             ;;
13965           aCC*)
13966             lt_prog_compiler_wl_CXX='-Wl,'
13967             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13968             case $host_cpu in
13969             hppa*64*|ia64*)
13970               # +Z the default
13971               ;;
13972             *)
13973               lt_prog_compiler_pic_CXX='+Z'
13974               ;;
13975             esac
13976             ;;
13977           *)
13978             ;;
13979         esac
13980         ;;
13981       interix*)
13982         # This is c89, which is MS Visual C++ (no shared libs)
13983         # Anyone wants to do a port?
13984         ;;
13985       irix5* | irix6* | nonstopux*)
13986         case $cc_basename in
13987           CC*)
13988             lt_prog_compiler_wl_CXX='-Wl,'
13989             lt_prog_compiler_static_CXX='-non_shared'
13990             # CC pic flag -KPIC is the default.
13991             ;;
13992           *)
13993             ;;
13994         esac
13995         ;;
13996       linux* | k*bsd*-gnu)
13997         case $cc_basename in
13998           KCC*)
13999             # KAI C++ Compiler
14000             lt_prog_compiler_wl_CXX='--backend -Wl,'
14001             lt_prog_compiler_pic_CXX='-fPIC'
14002             ;;
14003           icpc* | ecpc* )
14004             # Intel C++
14005             lt_prog_compiler_wl_CXX='-Wl,'
14006             lt_prog_compiler_pic_CXX='-KPIC'
14007             lt_prog_compiler_static_CXX='-static'
14008             ;;
14009           pgCC*)
14010             # Portland Group C++ compiler
14011             lt_prog_compiler_wl_CXX='-Wl,'
14012             lt_prog_compiler_pic_CXX='-fpic'
14013             lt_prog_compiler_static_CXX='-Bstatic'
14014             ;;
14015           cxx*)
14016             # Compaq C++
14017             # Make sure the PIC flag is empty.  It appears that all Alpha
14018             # Linux and Compaq Tru64 Unix objects are PIC.
14019             lt_prog_compiler_pic_CXX=
14020             lt_prog_compiler_static_CXX='-non_shared'
14021             ;;
14022           *)
14023             case `$CC -V 2>&1 | sed 5q` in
14024             *Sun\ C*)
14025               # Sun C++ 5.9
14026               lt_prog_compiler_pic_CXX='-KPIC'
14027               lt_prog_compiler_static_CXX='-Bstatic'
14028               lt_prog_compiler_wl_CXX='-Qoption ld '
14029               ;;
14030             esac
14031             ;;
14032         esac
14033         ;;
14034       lynxos*)
14035         ;;
14036       m88k*)
14037         ;;
14038       mvs*)
14039         case $cc_basename in
14040           cxx*)
14041             lt_prog_compiler_pic_CXX='-W c,exportall'
14042             ;;
14043           *)
14044             ;;
14045         esac
14046         ;;
14047       netbsd*)
14048         ;;
14049       *qnx* | *nto*)
14050         # QNX uses GNU C++, but need to define -shared option too, otherwise
14051         # it will coredump.
14052         lt_prog_compiler_pic_CXX='-fPIC -shared'
14053         ;;
14054       osf3* | osf4* | osf5*)
14055         case $cc_basename in
14056           KCC*)
14057             lt_prog_compiler_wl_CXX='--backend -Wl,'
14058             ;;
14059           RCC*)
14060             # Rational C++ 2.4.1
14061             lt_prog_compiler_pic_CXX='-pic'
14062             ;;
14063           cxx*)
14064             # Digital/Compaq C++
14065             lt_prog_compiler_wl_CXX='-Wl,'
14066             # Make sure the PIC flag is empty.  It appears that all Alpha
14067             # Linux and Compaq Tru64 Unix objects are PIC.
14068             lt_prog_compiler_pic_CXX=
14069             lt_prog_compiler_static_CXX='-non_shared'
14070             ;;
14071           *)
14072             ;;
14073         esac
14074         ;;
14075       psos*)
14076         ;;
14077       solaris*)
14078         case $cc_basename in
14079           CC*)
14080             # Sun C++ 4.2, 5.x and Centerline C++
14081             lt_prog_compiler_pic_CXX='-KPIC'
14082             lt_prog_compiler_static_CXX='-Bstatic'
14083             lt_prog_compiler_wl_CXX='-Qoption ld '
14084             ;;
14085           gcx*)
14086             # Green Hills C++ Compiler
14087             lt_prog_compiler_pic_CXX='-PIC'
14088             ;;
14089           *)
14090             ;;
14091         esac
14092         ;;
14093       sunos4*)
14094         case $cc_basename in
14095           CC*)
14096             # Sun C++ 4.x
14097             lt_prog_compiler_pic_CXX='-pic'
14098             lt_prog_compiler_static_CXX='-Bstatic'
14099             ;;
14100           lcc*)
14101             # Lucid
14102             lt_prog_compiler_pic_CXX='-pic'
14103             ;;
14104           *)
14105             ;;
14106         esac
14107         ;;
14108       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14109         case $cc_basename in
14110           CC*)
14111             lt_prog_compiler_wl_CXX='-Wl,'
14112             lt_prog_compiler_pic_CXX='-KPIC'
14113             lt_prog_compiler_static_CXX='-Bstatic'
14114             ;;
14115         esac
14116         ;;
14117       tandem*)
14118         case $cc_basename in
14119           NCC*)
14120             # NonStop-UX NCC 3.20
14121             lt_prog_compiler_pic_CXX='-KPIC'
14122             ;;
14123           *)
14124             ;;
14125         esac
14126         ;;
14127       vxworks*)
14128         ;;
14129       *)
14130         lt_prog_compiler_can_build_shared_CXX=no
14131         ;;
14132     esac
14133   fi
14134
14135 case $host_os in
14136   # For platforms which do not support PIC, -DPIC is meaningless:
14137   *djgpp*)
14138     lt_prog_compiler_pic_CXX=
14139     ;;
14140   *)
14141     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14142     ;;
14143 esac
14144 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14145 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14146
14147
14148
14149 #
14150 # Check to make sure the PIC flag actually works.
14151 #
14152 if test -n "$lt_prog_compiler_pic_CXX"; then
14153   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14154 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14155 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   lt_prog_compiler_pic_works_CXX=no
14159    ac_outfile=conftest.$ac_objext
14160    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14161    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14162    # Insert the option either (1) after the last *FLAGS variable, or
14163    # (2) before a word containing "conftest.", or (3) at the end.
14164    # Note that $ac_compile itself does not contain backslashes and begins
14165    # with a dollar sign (not a hyphen), so the echo should work correctly.
14166    # The option is referenced via a variable to avoid confusing sed.
14167    lt_compile=`echo "$ac_compile" | $SED \
14168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14170    -e 's:$: $lt_compiler_flag:'`
14171    (eval echo "\"\$as_me:14171: $lt_compile\"" >&5)
14172    (eval "$lt_compile" 2>conftest.err)
14173    ac_status=$?
14174    cat conftest.err >&5
14175    echo "$as_me:14175: \$? = $ac_status" >&5
14176    if (exit $ac_status) && test -s "$ac_outfile"; then
14177      # The compiler can only warn and ignore the option if not recognized
14178      # So say no if there are warnings other than the usual output.
14179      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14180      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14181      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14182        lt_prog_compiler_pic_works_CXX=yes
14183      fi
14184    fi
14185    $RM conftest*
14186
14187 fi
14188 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14189 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14190
14191 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14192     case $lt_prog_compiler_pic_CXX in
14193      "" | " "*) ;;
14194      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14195      esac
14196 else
14197     lt_prog_compiler_pic_CXX=
14198      lt_prog_compiler_can_build_shared_CXX=no
14199 fi
14200
14201 fi
14202
14203
14204
14205 #
14206 # Check to make sure the static flag actually works.
14207 #
14208 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14209 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14210 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14211 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14212   echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214   lt_prog_compiler_static_works_CXX=no
14215    save_LDFLAGS="$LDFLAGS"
14216    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14217    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14218    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14219      # The linker can only warn and ignore the option if not recognized
14220      # So say no if there are warnings
14221      if test -s conftest.err; then
14222        # Append any errors to the config.log.
14223        cat conftest.err 1>&5
14224        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14225        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14226        if diff conftest.exp conftest.er2 >/dev/null; then
14227          lt_prog_compiler_static_works_CXX=yes
14228        fi
14229      else
14230        lt_prog_compiler_static_works_CXX=yes
14231      fi
14232    fi
14233    $RM conftest*
14234    LDFLAGS="$save_LDFLAGS"
14235
14236 fi
14237 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14238 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14239
14240 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14241     :
14242 else
14243     lt_prog_compiler_static_CXX=
14244 fi
14245
14246
14247
14248
14249     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14250 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14251 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   lt_cv_prog_compiler_c_o_CXX=no
14255    $RM -r conftest 2>/dev/null
14256    mkdir conftest
14257    cd conftest
14258    mkdir out
14259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14260
14261    lt_compiler_flag="-o out/conftest2.$ac_objext"
14262    # Insert the option either (1) after the last *FLAGS variable, or
14263    # (2) before a word containing "conftest.", or (3) at the end.
14264    # Note that $ac_compile itself does not contain backslashes and begins
14265    # with a dollar sign (not a hyphen), so the echo should work correctly.
14266    lt_compile=`echo "$ac_compile" | $SED \
14267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14269    -e 's:$: $lt_compiler_flag:'`
14270    (eval echo "\"\$as_me:14270: $lt_compile\"" >&5)
14271    (eval "$lt_compile" 2>out/conftest.err)
14272    ac_status=$?
14273    cat out/conftest.err >&5
14274    echo "$as_me:14274: \$? = $ac_status" >&5
14275    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14276    then
14277      # The compiler can only warn and ignore the option if not recognized
14278      # So say no if there are warnings
14279      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14280      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14281      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14282        lt_cv_prog_compiler_c_o_CXX=yes
14283      fi
14284    fi
14285    chmod u+w . 2>&5
14286    $RM conftest*
14287    # SGI C++ compiler will create directory out/ii_files/ for
14288    # template instantiation
14289    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14290    $RM out/* && rmdir out
14291    cd ..
14292    $RM -r conftest
14293    $RM conftest*
14294
14295 fi
14296 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14297 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14298
14299
14300
14301     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14302 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14303 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   lt_cv_prog_compiler_c_o_CXX=no
14307    $RM -r conftest 2>/dev/null
14308    mkdir conftest
14309    cd conftest
14310    mkdir out
14311    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14312
14313    lt_compiler_flag="-o out/conftest2.$ac_objext"
14314    # Insert the option either (1) after the last *FLAGS variable, or
14315    # (2) before a word containing "conftest.", or (3) at the end.
14316    # Note that $ac_compile itself does not contain backslashes and begins
14317    # with a dollar sign (not a hyphen), so the echo should work correctly.
14318    lt_compile=`echo "$ac_compile" | $SED \
14319    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14320    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14321    -e 's:$: $lt_compiler_flag:'`
14322    (eval echo "\"\$as_me:14322: $lt_compile\"" >&5)
14323    (eval "$lt_compile" 2>out/conftest.err)
14324    ac_status=$?
14325    cat out/conftest.err >&5
14326    echo "$as_me:14326: \$? = $ac_status" >&5
14327    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14328    then
14329      # The compiler can only warn and ignore the option if not recognized
14330      # So say no if there are warnings
14331      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14332      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14333      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14334        lt_cv_prog_compiler_c_o_CXX=yes
14335      fi
14336    fi
14337    chmod u+w . 2>&5
14338    $RM conftest*
14339    # SGI C++ compiler will create directory out/ii_files/ for
14340    # template instantiation
14341    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14342    $RM out/* && rmdir out
14343    cd ..
14344    $RM -r conftest
14345    $RM conftest*
14346
14347 fi
14348 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14349 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14350
14351
14352
14353
14354 hard_links="nottested"
14355 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14356   # do not overwrite the value of need_locks provided by the user
14357   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14358 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14359   hard_links=yes
14360   $RM conftest*
14361   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14362   touch conftest.a
14363   ln conftest.a conftest.b 2>&5 || hard_links=no
14364   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14365   echo "$as_me:$LINENO: result: $hard_links" >&5
14366 echo "${ECHO_T}$hard_links" >&6
14367   if test "$hard_links" = no; then
14368     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14369 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14370     need_locks=warn
14371   fi
14372 else
14373   need_locks=no
14374 fi
14375
14376
14377
14378     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14379 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14380
14381   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14382   case $host_os in
14383   aix4* | aix5*)
14384     # If we're using GNU nm, then we don't want the "-C" option.
14385     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14386     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14387       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14388     else
14389       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14390     fi
14391     ;;
14392   pw32*)
14393     export_symbols_cmds_CXX="$ltdll_cmds"
14394   ;;
14395   cygwin* | mingw*)
14396     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14397   ;;
14398   *)
14399     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14400   ;;
14401   esac
14402
14403 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14404 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14405 test "$ld_shlibs_CXX" = no && can_build_shared=no
14406
14407 with_gnu_ld_CXX=$with_gnu_ld
14408
14409
14410
14411
14412
14413
14414 #
14415 # Do we need to explicitly link libc?
14416 #
14417 case "x$archive_cmds_need_lc_CXX" in
14418 x|xyes)
14419   # Assume -lc should be added
14420   archive_cmds_need_lc_CXX=yes
14421
14422   if test "$enable_shared" = yes && test "$GCC" = yes; then
14423     case $archive_cmds_CXX in
14424     *'~'*)
14425       # FIXME: we may have to deal with multi-command sequences.
14426       ;;
14427     '$CC '*)
14428       # Test whether the compiler implicitly links with -lc since on some
14429       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14430       # to ld, don't add -lc before -lgcc.
14431       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14432 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14433       $RM conftest*
14434       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14435
14436       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437   (eval $ac_compile) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } 2>conftest.err; then
14441         soname=conftest
14442         lib=conftest
14443         libobjs=conftest.$ac_objext
14444         deplibs=
14445         wl=$lt_prog_compiler_wl_CXX
14446         pic_flag=$lt_prog_compiler_pic_CXX
14447         compiler_flags=-v
14448         linker_flags=-v
14449         verstring=
14450         output_objdir=.
14451         libname=conftest
14452         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14453         allow_undefined_flag_CXX=
14454         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14455   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }
14459         then
14460           archive_cmds_need_lc_CXX=no
14461         else
14462           archive_cmds_need_lc_CXX=yes
14463         fi
14464         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14465       else
14466         cat conftest.err 1>&5
14467       fi
14468       $RM conftest*
14469       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14470 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14471       ;;
14472     esac
14473   fi
14474   ;;
14475 esac
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14542 withGCC=$GXX
14543 library_names_spec=
14544 libname_spec='lib$name'
14545 soname_spec=
14546 shrext_cmds=".so"
14547 postinstall_cmds=
14548 postuninstall_cmds=
14549 finish_cmds=
14550 finish_eval=
14551 shlibpath_var=
14552 shlibpath_overrides_runpath=unknown
14553 version_type=none
14554 dynamic_linker="$host_os ld.so"
14555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14556 need_lib_prefix=unknown
14557 hardcode_into_libs=no
14558
14559 # when you set need_version to no, make sure it does not cause -set_version
14560 # flags to be left without arguments
14561 need_version=unknown
14562
14563 case $host_os in
14564 aix3*)
14565   version_type=linux
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14567   shlibpath_var=LIBPATH
14568
14569   # AIX 3 has no versioning support, so we append a major version to the name.
14570   soname_spec='${libname}${release}${shared_ext}$major'
14571   ;;
14572
14573 aix4* | aix5*)
14574   version_type=linux
14575   need_lib_prefix=no
14576   need_version=no
14577   hardcode_into_libs=yes
14578   if test "$host_cpu" = ia64; then
14579     # AIX 5 supports IA64
14580     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14581     shlibpath_var=LD_LIBRARY_PATH
14582   else
14583     # With GCC up to 2.95.x, collect2 would create an import file
14584     # for dependence libraries.  The import file would start with
14585     # the line `#! .'.  This would cause the generated library to
14586     # depend on `.', always an invalid library.  This was fixed in
14587     # development snapshots of GCC prior to 3.0.
14588     case $host_os in
14589       aix4 | aix4.[01] | aix4.[01].*)
14590       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14591            echo ' yes '
14592            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14593         :
14594       else
14595         can_build_shared=no
14596       fi
14597       ;;
14598     esac
14599     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14600     # soname into executable. Probably we can add versioning support to
14601     # collect2, so additional links can be useful in future.
14602     if test "$aix_use_runtimelinking" = yes; then
14603       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14604       # instead of lib<name>.a to let people know that these are not
14605       # typical AIX shared libraries.
14606       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607     else
14608       # We preserve .a as extension for shared libraries through AIX4.2
14609       # and later when we are not doing run time linking.
14610       library_names_spec='${libname}${release}.a $libname.a'
14611       soname_spec='${libname}${release}${shared_ext}$major'
14612     fi
14613     shlibpath_var=LIBPATH
14614   fi
14615   ;;
14616
14617 amigaos*)
14618   if test "$host_cpu" = m68k; then
14619     library_names_spec='$libname.ixlibrary $libname.a'
14620     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14621     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'
14622   else
14623     dynamic_linker=no
14624   fi
14625   ;;
14626
14627 beos*)
14628   library_names_spec='${libname}${shared_ext}'
14629   dynamic_linker="$host_os ld.so"
14630   shlibpath_var=LIBRARY_PATH
14631   ;;
14632
14633 bsdi[45]*)
14634   version_type=linux
14635   need_version=no
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637   soname_spec='${libname}${release}${shared_ext}$major'
14638   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14639   shlibpath_var=LD_LIBRARY_PATH
14640   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14641   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14642   # the default ld.so.conf also contains /usr/contrib/lib and
14643   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14644   # libtool to hard-code these into programs
14645   ;;
14646
14647 cygwin* | mingw* | pw32*)
14648   version_type=windows
14649   shrext_cmds=".dll"
14650   need_version=no
14651   need_lib_prefix=no
14652
14653   case $withGCC,$host_os in
14654   yes,cygwin* | yes,mingw* | yes,pw32*)
14655     library_names_spec='$libname.dll.a'
14656     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14657     postinstall_cmds='base_file=`basename \${file}`~
14658       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14659       dldir=$destdir/`dirname \$dlpath`~
14660       test -d \$dldir || mkdir -p \$dldir~
14661       $install_prog $dir/$dlname \$dldir/$dlname~
14662       chmod a+x \$dldir/$dlname~
14663       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14664         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14665       fi'
14666     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14667       dlpath=$dir/\$dldll~
14668        $RM \$dlpath'
14669     shlibpath_overrides_runpath=yes
14670
14671     case $host_os in
14672     cygwin*)
14673       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14674       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14675       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14676       ;;
14677     mingw*)
14678       # MinGW DLLs use traditional 'lib' prefix
14679       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14680       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14681       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14682         # It is most probably a Windows format PATH printed by
14683         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14684         # path with ; separators, and with drive letters. We can handle the
14685         # drive letters (cygwin fileutils understands them), so leave them,
14686         # especially as we might pass files found there to a mingw objdump,
14687         # which wouldn't understand a cygwinified path. Ahh.
14688         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14689       else
14690         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14691       fi
14692       ;;
14693     pw32*)
14694       # pw32 DLLs use 'pw' prefix rather than 'lib'
14695       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696       ;;
14697     esac
14698     ;;
14699
14700   *)
14701     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14702     ;;
14703   esac
14704   dynamic_linker='Win32 ld.exe'
14705   # FIXME: first we should search . and the directory the executable is in
14706   shlibpath_var=PATH
14707   ;;
14708
14709 darwin* | rhapsody*)
14710   dynamic_linker="$host_os dyld"
14711   version_type=darwin
14712   need_lib_prefix=no
14713   need_version=no
14714   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14715   soname_spec='${libname}${release}${major}$shared_ext'
14716   shlibpath_overrides_runpath=yes
14717   shlibpath_var=DYLD_LIBRARY_PATH
14718   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14719
14720   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14721   ;;
14722
14723 dgux*)
14724   version_type=linux
14725   need_lib_prefix=no
14726   need_version=no
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14728   soname_spec='${libname}${release}${shared_ext}$major'
14729   shlibpath_var=LD_LIBRARY_PATH
14730   ;;
14731
14732 freebsd1*)
14733   dynamic_linker=no
14734   ;;
14735
14736 freebsd* | dragonfly*)
14737   # DragonFly does not have aout.  When/if they implement a new
14738   # versioning mechanism, adjust this.
14739   if test -x /usr/bin/objformat; then
14740     objformat=`/usr/bin/objformat`
14741   else
14742     case $host_os in
14743     freebsd[123]*) objformat=aout ;;
14744     *) objformat=elf ;;
14745     esac
14746   fi
14747   version_type=freebsd-$objformat
14748   case $version_type in
14749     freebsd-elf*)
14750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14751       need_version=no
14752       need_lib_prefix=no
14753       ;;
14754     freebsd-*)
14755       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14756       need_version=yes
14757       ;;
14758   esac
14759   shlibpath_var=LD_LIBRARY_PATH
14760   case $host_os in
14761   freebsd2*)
14762     shlibpath_overrides_runpath=yes
14763     ;;
14764   freebsd3.[01]* | freebsdelf3.[01]*)
14765     shlibpath_overrides_runpath=yes
14766     hardcode_into_libs=yes
14767     ;;
14768   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14769   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14770     shlibpath_overrides_runpath=no
14771     hardcode_into_libs=yes
14772     ;;
14773   *) # from 4.6 on, and DragonFly
14774     shlibpath_overrides_runpath=yes
14775     hardcode_into_libs=yes
14776     ;;
14777   esac
14778   ;;
14779
14780 gnu*)
14781   version_type=linux
14782   need_lib_prefix=no
14783   need_version=no
14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14785   soname_spec='${libname}${release}${shared_ext}$major'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   hardcode_into_libs=yes
14788   ;;
14789
14790 hpux9* | hpux10* | hpux11*)
14791   # Give a soname corresponding to the major version so that dld.sl refuses to
14792   # link against other versions.
14793   version_type=sunos
14794   need_lib_prefix=no
14795   need_version=no
14796   case $host_cpu in
14797   ia64*)
14798     shrext_cmds='.so'
14799     hardcode_into_libs=yes
14800     dynamic_linker="$host_os dld.so"
14801     shlibpath_var=LD_LIBRARY_PATH
14802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804     soname_spec='${libname}${release}${shared_ext}$major'
14805     if test "X$HPUX_IA64_MODE" = X32; then
14806       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14807     else
14808       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14809     fi
14810     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14811     ;;
14812   hppa*64*)
14813     shrext_cmds='.sl'
14814     hardcode_into_libs=yes
14815     dynamic_linker="$host_os dld.sl"
14816     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819     soname_spec='${libname}${release}${shared_ext}$major'
14820     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14821     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14822     ;;
14823   *)
14824     shrext_cmds='.sl'
14825     dynamic_linker="$host_os dld.sl"
14826     shlibpath_var=SHLIB_PATH
14827     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829     soname_spec='${libname}${release}${shared_ext}$major'
14830     ;;
14831   esac
14832   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14833   postinstall_cmds='chmod 555 $lib'
14834   ;;
14835
14836 interix[3-9]*)
14837   version_type=linux
14838   need_lib_prefix=no
14839   need_version=no
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=no
14845   hardcode_into_libs=yes
14846   ;;
14847
14848 irix5* | irix6* | nonstopux*)
14849   case $host_os in
14850     nonstopux*) version_type=nonstopux ;;
14851     *)
14852         if test "$lt_cv_prog_gnu_ld" = yes; then
14853                 version_type=linux
14854         else
14855                 version_type=irix
14856         fi ;;
14857   esac
14858   need_lib_prefix=no
14859   need_version=no
14860   soname_spec='${libname}${release}${shared_ext}$major'
14861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14862   case $host_os in
14863   irix5* | nonstopux*)
14864     libsuff= shlibsuff=
14865     ;;
14866   *)
14867     case $LD in # libtool.m4 will add one of these switches to LD
14868     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14869       libsuff= shlibsuff= libmagic=32-bit;;
14870     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14871       libsuff=32 shlibsuff=N32 libmagic=N32;;
14872     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14873       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14874     *) libsuff= shlibsuff= libmagic=never-match;;
14875     esac
14876     ;;
14877   esac
14878   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14879   shlibpath_overrides_runpath=no
14880   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14881   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14882   hardcode_into_libs=yes
14883   ;;
14884
14885 # No shared lib support for Linux oldld, aout, or coff.
14886 linux*oldld* | linux*aout* | linux*coff*)
14887   dynamic_linker=no
14888   ;;
14889
14890 # This must be Linux ELF.
14891 linux* | k*bsd*-gnu)
14892   version_type=linux
14893   need_lib_prefix=no
14894   need_version=no
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896   soname_spec='${libname}${release}${shared_ext}$major'
14897   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14898   shlibpath_var=LD_LIBRARY_PATH
14899   shlibpath_overrides_runpath=no
14900   # Some binutils ld are patched to set DT_RUNPATH
14901   save_LDFLAGS=$LDFLAGS
14902   save_libdir=$libdir
14903   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14904        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14905   if test x$gcc_no_link = xyes; then
14906   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14908    { (exit 1); exit 1; }; }
14909 fi
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916
14917 int
14918 main ()
14919 {
14920
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927   (eval $ac_link) 2>conftest.er1
14928   ac_status=$?
14929   grep -v '^ *+' conftest.er1 >conftest.err
14930   rm -f conftest.er1
14931   cat conftest.err >&5
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); } &&
14934          { ac_try='test -z "$ac_cxx_werror_flag"
14935                          || test ! -s conftest.err'
14936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937   (eval $ac_try) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; } &&
14941          { ac_try='test -s conftest$ac_exeext'
14942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943   (eval $ac_try) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); }; }; then
14947   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
14948   shlibpath_overrides_runpath=yes
14949 fi
14950
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 fi
14956 rm -f conftest.err conftest.$ac_objext \
14957       conftest$ac_exeext conftest.$ac_ext
14958   LDFLAGS=$save_LDFLAGS
14959   libdir=$save_libdir
14960
14961   # This implies no fast_install, which is unacceptable.
14962   # Some rework will be needed to allow for fast_install
14963   # before this can be enabled.
14964   hardcode_into_libs=yes
14965
14966   # Append ld.so.conf contents to the search path
14967   if test -f /etc/ld.so.conf; then
14968     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' ' '`
14969     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14970   fi
14971
14972   # We used to test for /lib/ld.so.1 and disable shared libraries on
14973   # powerpc, because MkLinux only supported shared libraries with the
14974   # GNU dynamic linker.  Since this was broken with cross compilers,
14975   # most powerpc-linux boxes support dynamic linking these days and
14976   # people can always --disable-shared, the test was removed, and we
14977   # assume the GNU/Linux dynamic linker is in use.
14978   dynamic_linker='GNU/Linux ld.so'
14979   ;;
14980
14981 netbsd*)
14982   version_type=sunos
14983   need_lib_prefix=no
14984   need_version=no
14985   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14987     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14988     dynamic_linker='NetBSD (a.out) ld.so'
14989   else
14990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14991     soname_spec='${libname}${release}${shared_ext}$major'
14992     dynamic_linker='NetBSD ld.elf_so'
14993   fi
14994   shlibpath_var=LD_LIBRARY_PATH
14995   shlibpath_overrides_runpath=yes
14996   hardcode_into_libs=yes
14997   ;;
14998
14999 newsos6)
15000   version_type=linux
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002   shlibpath_var=LD_LIBRARY_PATH
15003   shlibpath_overrides_runpath=yes
15004   ;;
15005
15006 *nto* | *qnx*)
15007   version_type=qnx
15008   need_lib_prefix=no
15009   need_version=no
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   shlibpath_overrides_runpath=no
15014   hardcode_into_libs=yes
15015   dynamic_linker='ldqnx.so'
15016   ;;
15017
15018 openbsd*)
15019   version_type=sunos
15020   sys_lib_dlsearch_path_spec="/usr/lib"
15021   need_lib_prefix=no
15022   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15023   case $host_os in
15024     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15025     *)                          need_version=no  ;;
15026   esac
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15031     case $host_os in
15032       openbsd2.[89] | openbsd2.[89].*)
15033         shlibpath_overrides_runpath=no
15034         ;;
15035       *)
15036         shlibpath_overrides_runpath=yes
15037         ;;
15038       esac
15039   else
15040     shlibpath_overrides_runpath=yes
15041   fi
15042   ;;
15043
15044 os2*)
15045   libname_spec='$name'
15046   shrext_cmds=".dll"
15047   need_lib_prefix=no
15048   library_names_spec='$libname${shared_ext} $libname.a'
15049   dynamic_linker='OS/2 ld.exe'
15050   shlibpath_var=LIBPATH
15051   ;;
15052
15053 osf3* | osf4* | osf5*)
15054   version_type=osf
15055   need_lib_prefix=no
15056   need_version=no
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059   shlibpath_var=LD_LIBRARY_PATH
15060   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15061   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15062   ;;
15063
15064 rdos*)
15065   dynamic_linker=no
15066   ;;
15067
15068 solaris*)
15069   version_type=linux
15070   need_lib_prefix=no
15071   need_version=no
15072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073   soname_spec='${libname}${release}${shared_ext}$major'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   shlibpath_overrides_runpath=yes
15076   hardcode_into_libs=yes
15077   # ldd complains unless libraries are executable
15078   postinstall_cmds='chmod +x $lib'
15079   ;;
15080
15081 sunos4*)
15082   version_type=sunos
15083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15084   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   shlibpath_overrides_runpath=yes
15087   if test "$with_gnu_ld" = yes; then
15088     need_lib_prefix=no
15089   fi
15090   need_version=yes
15091   ;;
15092
15093 sysv4 | sysv4.3*)
15094   version_type=linux
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   case $host_vendor in
15099     sni)
15100       shlibpath_overrides_runpath=no
15101       need_lib_prefix=no
15102       runpath_var=LD_RUN_PATH
15103       ;;
15104     siemens)
15105       need_lib_prefix=no
15106       ;;
15107     motorola)
15108       need_lib_prefix=no
15109       need_version=no
15110       shlibpath_overrides_runpath=no
15111       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15112       ;;
15113   esac
15114   ;;
15115
15116 sysv4*MP*)
15117   if test -d /usr/nec ;then
15118     version_type=linux
15119     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15120     soname_spec='$libname${shared_ext}.$major'
15121     shlibpath_var=LD_LIBRARY_PATH
15122   fi
15123   ;;
15124
15125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15126   version_type=freebsd-elf
15127   need_lib_prefix=no
15128   need_version=no
15129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15130   soname_spec='${libname}${release}${shared_ext}$major'
15131   shlibpath_var=LD_LIBRARY_PATH
15132   shlibpath_overrides_runpath=yes
15133   hardcode_into_libs=yes
15134   if test "$with_gnu_ld" = yes; then
15135     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15136   else
15137     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15138     case $host_os in
15139       sco3.2v5*)
15140         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15141         ;;
15142     esac
15143   fi
15144   sys_lib_dlsearch_path_spec='/usr/lib'
15145   ;;
15146
15147 tpf*)
15148   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15149   version_type=linux
15150   need_lib_prefix=no
15151   need_version=no
15152   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153   shlibpath_var=LD_LIBRARY_PATH
15154   shlibpath_overrides_runpath=no
15155   hardcode_into_libs=yes
15156   ;;
15157
15158 uts4*)
15159   version_type=linux
15160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161   soname_spec='${libname}${release}${shared_ext}$major'
15162   shlibpath_var=LD_LIBRARY_PATH
15163   ;;
15164
15165 *)
15166   dynamic_linker=no
15167   ;;
15168 esac
15169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15170 echo "${ECHO_T}$dynamic_linker" >&6
15171 test "$dynamic_linker" = no && can_build_shared=no
15172
15173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15174 if test "$GCC" = yes; then
15175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15176 fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15214 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15215 hardcode_action_CXX=
15216 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15217    test -n "$runpath_var_CXX" ||
15218    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15219
15220   # We can hardcode non-existent directories.
15221   if test "$hardcode_direct_CXX" != no &&
15222      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15223      # have to relink, otherwise we might link with an installed library
15224      # when we should be linking with a yet-to-be-installed one
15225      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15226      test "$hardcode_minus_L_CXX" != no; then
15227     # Linking always hardcodes the temporary library directory.
15228     hardcode_action_CXX=relink
15229   else
15230     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15231     hardcode_action_CXX=immediate
15232   fi
15233 else
15234   # We cannot hardcode anything, or else we can only hardcode existing
15235   # directories.
15236   hardcode_action_CXX=unsupported
15237 fi
15238 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15239 echo "${ECHO_T}$hardcode_action_CXX" >&6
15240
15241 if test "$hardcode_action_CXX" = relink ||
15242    test "$inherit_rpath_CXX" = yes; then
15243   # Fast installation is not supported
15244   enable_fast_install=no
15245 elif test "$shlibpath_overrides_runpath" = yes ||
15246      test "$enable_shared" = no; then
15247   # Fast installation is not necessary
15248   enable_fast_install=needless
15249 fi
15250
15251
15252
15253
15254
15255
15256
15257   fi # test -n "$compiler"
15258
15259   CC=$lt_save_CC
15260   LDCXX=$LD
15261   LD=$lt_save_LD
15262   GCC=$lt_save_GCC
15263   with_gnu_ld=$lt_save_with_gnu_ld
15264   lt_cv_path_LDCXX=$lt_cv_path_LD
15265   lt_cv_path_LD=$lt_save_path_LD
15266   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15267   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15268 fi # test "$_lt_caught_CXX_error" != yes
15269
15270 ac_ext=c
15271 ac_cpp='$CPP $CPPFLAGS'
15272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288                   ac_config_commands="$ac_config_commands libtool"
15289
15290
15291
15292
15293 # Only expand once:
15294
15295
15296
15297 for ac_prog in gcj
15298 do
15299   # Extract the first word of "$ac_prog", so it can be a program name with args.
15300 set dummy $ac_prog; ac_word=$2
15301 echo "$as_me:$LINENO: checking for $ac_word" >&5
15302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15303 if test "${ac_cv_prog_GCJ+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   if test -n "$GCJ"; then
15307   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15308 else
15309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15310 for as_dir in $PATH
15311 do
15312   IFS=$as_save_IFS
15313   test -z "$as_dir" && as_dir=.
15314   for ac_exec_ext in '' $ac_executable_extensions; do
15315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15316     ac_cv_prog_GCJ="$ac_prog"
15317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15318     break 2
15319   fi
15320 done
15321 done
15322
15323 fi
15324 fi
15325 GCJ=$ac_cv_prog_GCJ
15326 if test -n "$GCJ"; then
15327   echo "$as_me:$LINENO: result: $GCJ" >&5
15328 echo "${ECHO_T}$GCJ" >&6
15329 else
15330   echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6
15332 fi
15333
15334   test -n "$GCJ" && break
15335 done
15336 test -n "$GCJ" || GCJ="gcj"
15337
15338 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15339 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15340    { (exit 1); exit 1; }; }
15341 if test "x${GCJFLAGS-unset}" = xunset; then
15342    GCJFLAGS="-g -O2"
15343 fi
15344
15345
15346 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15347
15348 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15349 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15350 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15354   # We make a subdir and do the tests there.  Otherwise we can end up
15355   # making bogus files that we don't know about and never remove.  For
15356   # instance it was reported that on HP-UX the gcc test will end up
15357   # making a dummy file named `D' -- because `-MD' means `put the output
15358   # in D'.
15359   mkdir conftest.dir
15360   # Copy depcomp to subdir because otherwise we won't find it if we're
15361   # using a relative directory.
15362   cp "$am_depcomp" conftest.dir
15363   cd conftest.dir
15364   # We will build objects and dependencies in a subdirectory because
15365   # it helps to detect inapplicable dependency modes.  For instance
15366   # both Tru64's cc and ICC support -MD to output dependencies as a
15367   # side effect of compilation, but ICC will put the dependencies in
15368   # the current directory while Tru64 will put them in the object
15369   # directory.
15370   mkdir sub
15371
15372   am_cv_GCJ_dependencies_compiler_type=none
15373   if test "$am_compiler_list" = ""; then
15374      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15375   fi
15376   for depmode in $am_compiler_list; do
15377     # Setup a source with many dependencies, because some compilers
15378     # like to wrap large dependency lists on column 80 (with \), and
15379     # we should not choose a depcomp mode which is confused by this.
15380     #
15381     # We need to recreate these files for each test, as the compiler may
15382     # overwrite some of them when testing with obscure command lines.
15383     # This happens at least with the AIX C compiler.
15384     : > sub/conftest.c
15385     for i in 1 2 3 4 5 6; do
15386       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15387       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15388       # Solaris 8's {/usr,}/bin/sh.
15389       touch sub/conftst$i.h
15390     done
15391     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15392
15393     case $depmode in
15394     nosideeffect)
15395       # after this tag, mechanisms are not by side-effect, so they'll
15396       # only be used when explicitly requested
15397       if test "x$enable_dependency_tracking" = xyes; then
15398         continue
15399       else
15400         break
15401       fi
15402       ;;
15403     none) break ;;
15404     esac
15405     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15406     # mode.  It turns out that the SunPro C++ compiler does not properly
15407     # handle `-M -o', and we need to detect this.
15408     if depmode=$depmode \
15409        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15410        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15411        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15412          >/dev/null 2>conftest.err &&
15413        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15414        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15415        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15416       # icc doesn't choke on unknown options, it will just issue warnings
15417       # or remarks (even with -Werror).  So we grep stderr for any message
15418       # that says an option was ignored or not supported.
15419       # When given -MP, icc 7.0 and 7.1 complain thusly:
15420       #   icc: Command line warning: ignoring option '-M'; no argument required
15421       # The diagnosis changed in icc 8.0:
15422       #   icc: Command line remark: option '-MP' not supported
15423       if (grep 'ignoring option' conftest.err ||
15424           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15425         am_cv_GCJ_dependencies_compiler_type=$depmode
15426         break
15427       fi
15428     fi
15429   done
15430
15431   cd ..
15432   rm -rf conftest.dir
15433 else
15434   am_cv_GCJ_dependencies_compiler_type=none
15435 fi
15436
15437 fi
15438 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15439 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15440 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15441
15442
15443
15444 if
15445   test "x$enable_dependency_tracking" != xno \
15446   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15447   am__fastdepGCJ_TRUE=
15448   am__fastdepGCJ_FALSE='#'
15449 else
15450   am__fastdepGCJ_TRUE='#'
15451   am__fastdepGCJ_FALSE=
15452 fi
15453
15454
15455
15456 for ac_prog in gcj
15457 do
15458   # Extract the first word of "$ac_prog", so it can be a program name with args.
15459 set dummy $ac_prog; ac_word=$2
15460 echo "$as_me:$LINENO: checking for $ac_word" >&5
15461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15462 if test "${ac_cv_prog_GCJ+set}" = set; then
15463   echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465   if test -n "$GCJ"; then
15466   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15467 else
15468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15469 for as_dir in $PATH
15470 do
15471   IFS=$as_save_IFS
15472   test -z "$as_dir" && as_dir=.
15473   for ac_exec_ext in '' $ac_executable_extensions; do
15474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15475     ac_cv_prog_GCJ="$ac_prog"
15476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15477     break 2
15478   fi
15479 done
15480 done
15481
15482 fi
15483 fi
15484 GCJ=$ac_cv_prog_GCJ
15485 if test -n "$GCJ"; then
15486   echo "$as_me:$LINENO: result: $GCJ" >&5
15487 echo "${ECHO_T}$GCJ" >&6
15488 else
15489   echo "$as_me:$LINENO: result: no" >&5
15490 echo "${ECHO_T}no" >&6
15491 fi
15492
15493   test -n "$GCJ" && break
15494 done
15495 test -n "$GCJ" || GCJ="gcj"
15496
15497 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15498 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15499    { (exit 1); exit 1; }; }
15500 if test "x${GCJFLAGS-unset}" = xunset; then
15501    GCJFLAGS="-g -O2"
15502 fi
15503
15504
15505 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15506
15507 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15508 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15509 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15510   echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15513   # We make a subdir and do the tests there.  Otherwise we can end up
15514   # making bogus files that we don't know about and never remove.  For
15515   # instance it was reported that on HP-UX the gcc test will end up
15516   # making a dummy file named `D' -- because `-MD' means `put the output
15517   # in D'.
15518   mkdir conftest.dir
15519   # Copy depcomp to subdir because otherwise we won't find it if we're
15520   # using a relative directory.
15521   cp "$am_depcomp" conftest.dir
15522   cd conftest.dir
15523   # We will build objects and dependencies in a subdirectory because
15524   # it helps to detect inapplicable dependency modes.  For instance
15525   # both Tru64's cc and ICC support -MD to output dependencies as a
15526   # side effect of compilation, but ICC will put the dependencies in
15527   # the current directory while Tru64 will put them in the object
15528   # directory.
15529   mkdir sub
15530
15531   am_cv_GCJ_dependencies_compiler_type=none
15532   if test "$am_compiler_list" = ""; then
15533      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15534   fi
15535   for depmode in $am_compiler_list; do
15536     # Setup a source with many dependencies, because some compilers
15537     # like to wrap large dependency lists on column 80 (with \), and
15538     # we should not choose a depcomp mode which is confused by this.
15539     #
15540     # We need to recreate these files for each test, as the compiler may
15541     # overwrite some of them when testing with obscure command lines.
15542     # This happens at least with the AIX C compiler.
15543     : > sub/conftest.c
15544     for i in 1 2 3 4 5 6; do
15545       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15546       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15547       # Solaris 8's {/usr,}/bin/sh.
15548       touch sub/conftst$i.h
15549     done
15550     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15551
15552     case $depmode in
15553     nosideeffect)
15554       # after this tag, mechanisms are not by side-effect, so they'll
15555       # only be used when explicitly requested
15556       if test "x$enable_dependency_tracking" = xyes; then
15557         continue
15558       else
15559         break
15560       fi
15561       ;;
15562     none) break ;;
15563     esac
15564     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15565     # mode.  It turns out that the SunPro C++ compiler does not properly
15566     # handle `-M -o', and we need to detect this.
15567     if depmode=$depmode \
15568        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15569        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15570        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15571          >/dev/null 2>conftest.err &&
15572        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15573        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15574        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15575       # icc doesn't choke on unknown options, it will just issue warnings
15576       # or remarks (even with -Werror).  So we grep stderr for any message
15577       # that says an option was ignored or not supported.
15578       # When given -MP, icc 7.0 and 7.1 complain thusly:
15579       #   icc: Command line warning: ignoring option '-M'; no argument required
15580       # The diagnosis changed in icc 8.0:
15581       #   icc: Command line remark: option '-MP' not supported
15582       if (grep 'ignoring option' conftest.err ||
15583           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15584         am_cv_GCJ_dependencies_compiler_type=$depmode
15585         break
15586       fi
15587     fi
15588   done
15589
15590   cd ..
15591   rm -rf conftest.dir
15592 else
15593   am_cv_GCJ_dependencies_compiler_type=none
15594 fi
15595
15596 fi
15597 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15598 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15599 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15600
15601
15602
15603 if
15604   test "x$enable_dependency_tracking" != xno \
15605   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15606   am__fastdepGCJ_TRUE=
15607   am__fastdepGCJ_FALSE='#'
15608 else
15609   am__fastdepGCJ_TRUE='#'
15610   am__fastdepGCJ_FALSE=
15611 fi
15612
15613
15614
15615
15616
15617
15618 # Source file extension for Java test sources.
15619 ac_ext=c
15620
15621 # Object file extension for compiled Java test sources.
15622 objext=o
15623 objext_GCJ=$objext
15624
15625 # Code to be used in simple compile tests
15626 lt_simple_compile_test_code="int some_variable = 0;"
15627
15628 # Code to be used in simple link tests
15629 lt_simple_link_test_code='int main(){return(0);}'
15630
15631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15632
15633
15634
15635
15636
15637
15638 # If no C compiler was specified, use CC.
15639 LTCC=${LTCC-"$CC"}
15640
15641 # If no C compiler flags were specified, use CFLAGS.
15642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15643
15644 # Allow CC to be a program name with arguments.
15645 compiler=$CC
15646
15647
15648 # save warnings/boilerplate of simple test code
15649 ac_outfile=conftest.$ac_objext
15650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15652 _lt_compiler_boilerplate=`cat conftest.err`
15653 $RM conftest*
15654
15655 ac_outfile=conftest.$ac_objext
15656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15658 _lt_linker_boilerplate=`cat conftest.err`
15659 $RM conftest*
15660
15661
15662 # Allow CC to be a program name with arguments.
15663 compiler=$CC
15664 compiler_GCJ=$CC
15665 for cc_temp in $compiler""; do
15666   case $cc_temp in
15667     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15668     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15669     \-*) ;;
15670     *) break;;
15671   esac
15672 done
15673 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15674
15675
15676 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15677 archive_cmds_need_lc_GCJ=no
15678
15679 old_archive_cmds_GCJ=$old_archive_cmds
15680
15681 ## CAVEAT EMPTOR:
15682 ## There is no encapsulation within the following macros, do not change
15683 ## the running order or otherwise move them around unless you know exactly
15684 ## what you are doing...
15685 if test -n "$compiler"; then
15686
15687 lt_prog_compiler_no_builtin_flag_GCJ=
15688
15689 if test "$GCC" = yes; then
15690   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15691
15692   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   lt_cv_prog_compiler_rtti_exceptions=no
15698    ac_outfile=conftest.$ac_objext
15699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15700    lt_compiler_flag="-fno-rtti -fno-exceptions"
15701    # Insert the option either (1) after the last *FLAGS variable, or
15702    # (2) before a word containing "conftest.", or (3) at the end.
15703    # Note that $ac_compile itself does not contain backslashes and begins
15704    # with a dollar sign (not a hyphen), so the echo should work correctly.
15705    # The option is referenced via a variable to avoid confusing sed.
15706    lt_compile=`echo "$ac_compile" | $SED \
15707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709    -e 's:$: $lt_compiler_flag:'`
15710    (eval echo "\"\$as_me:15710: $lt_compile\"" >&5)
15711    (eval "$lt_compile" 2>conftest.err)
15712    ac_status=$?
15713    cat conftest.err >&5
15714    echo "$as_me:15714: \$? = $ac_status" >&5
15715    if (exit $ac_status) && test -s "$ac_outfile"; then
15716      # The compiler can only warn and ignore the option if not recognized
15717      # So say no if there are warnings other than the usual output.
15718      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15721        lt_cv_prog_compiler_rtti_exceptions=yes
15722      fi
15723    fi
15724    $RM conftest*
15725
15726 fi
15727 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15728 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15729
15730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15731     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15732 else
15733     :
15734 fi
15735
15736 fi
15737
15738
15739
15740   lt_prog_compiler_wl_GCJ=
15741 lt_prog_compiler_pic_GCJ=
15742 lt_prog_compiler_static_GCJ=
15743
15744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15746
15747   if test "$GCC" = yes; then
15748     lt_prog_compiler_wl_GCJ='-Wl,'
15749     lt_prog_compiler_static_GCJ='-static'
15750
15751     case $host_os in
15752       aix*)
15753       # All AIX code is PIC.
15754       if test "$host_cpu" = ia64; then
15755         # AIX 5 now supports IA64 processor
15756         lt_prog_compiler_static_GCJ='-Bstatic'
15757       fi
15758       ;;
15759
15760     amigaos*)
15761       if test "$host_cpu" = m68k; then
15762         # FIXME: we need at least 68020 code to build shared libraries, but
15763         # adding the `-m68020' flag to GCC prevents building anything better,
15764         # like `-m68040'.
15765         lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15766       fi
15767       ;;
15768
15769     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15770       # PIC is the default for these OSes.
15771       ;;
15772
15773     mingw* | cygwin* | pw32* | os2*)
15774       # This hack is so that the source file can tell whether it is being
15775       # built for inclusion in a dll (and should export symbols for example).
15776       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15777       # (--disable-auto-import) libraries
15778       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15779       ;;
15780
15781     darwin* | rhapsody*)
15782       # PIC is the default on this platform
15783       # Common symbols not allowed in MH_DYLIB files
15784       lt_prog_compiler_pic_GCJ='-fno-common'
15785       ;;
15786
15787     hpux*)
15788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15789       # not for PA HP-UX.
15790       case $host_cpu in
15791       hppa*64*|ia64*)
15792         # +Z the default
15793         ;;
15794       *)
15795         lt_prog_compiler_pic_GCJ='-fPIC'
15796         ;;
15797       esac
15798       ;;
15799
15800     interix[3-9]*)
15801       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15802       # Instead, we relocate shared libraries at runtime.
15803       ;;
15804
15805     msdosdjgpp*)
15806       # Just because we use GCC doesn't mean we suddenly get shared libraries
15807       # on systems that don't support them.
15808       lt_prog_compiler_can_build_shared_GCJ=no
15809       enable_shared=no
15810       ;;
15811
15812     *nto* | *qnx*)
15813       # QNX uses GNU C++, but need to define -shared option too, otherwise
15814       # it will coredump.
15815       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15816       ;;
15817
15818     sysv4*MP*)
15819       if test -d /usr/nec; then
15820         lt_prog_compiler_pic_GCJ=-Kconform_pic
15821       fi
15822       ;;
15823
15824     *)
15825       lt_prog_compiler_pic_GCJ='-fPIC'
15826       ;;
15827     esac
15828   else
15829     # PORTME Check for flag to pass linker flags through the system compiler.
15830     case $host_os in
15831     aix*)
15832       lt_prog_compiler_wl_GCJ='-Wl,'
15833       if test "$host_cpu" = ia64; then
15834         # AIX 5 now supports IA64 processor
15835         lt_prog_compiler_static_GCJ='-Bstatic'
15836       else
15837         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15838       fi
15839       ;;
15840     darwin*)
15841       # PIC is the default on this platform
15842       # Common symbols not allowed in MH_DYLIB files
15843       case $cc_basename in
15844       xlc*)
15845         lt_prog_compiler_pic_GCJ='-qnocommon'
15846         lt_prog_compiler_wl_GCJ='-Wl,'
15847         ;;
15848       esac
15849       ;;
15850
15851     mingw* | cygwin* | pw32* | os2*)
15852       # This hack is so that the source file can tell whether it is being
15853       # built for inclusion in a dll (and should export symbols for example).
15854       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15855       ;;
15856
15857     hpux9* | hpux10* | hpux11*)
15858       lt_prog_compiler_wl_GCJ='-Wl,'
15859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15860       # not for PA HP-UX.
15861       case $host_cpu in
15862       hppa*64*|ia64*)
15863         # +Z the default
15864         ;;
15865       *)
15866         lt_prog_compiler_pic_GCJ='+Z'
15867         ;;
15868       esac
15869       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15870       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15871       ;;
15872
15873     irix5* | irix6* | nonstopux*)
15874       lt_prog_compiler_wl_GCJ='-Wl,'
15875       # PIC (with -KPIC) is the default.
15876       lt_prog_compiler_static_GCJ='-non_shared'
15877       ;;
15878
15879     linux* | k*bsd*-gnu)
15880       case $cc_basename in
15881       icc* | ecc*)
15882         lt_prog_compiler_wl_GCJ='-Wl,'
15883         lt_prog_compiler_pic_GCJ='-KPIC'
15884         lt_prog_compiler_static_GCJ='-static'
15885         ;;
15886       pgcc* | pgf77* | pgf90* | pgf95*)
15887         # Portland Group compilers (*not* the Pentium gcc compiler,
15888         # which looks to be a dead project)
15889         lt_prog_compiler_wl_GCJ='-Wl,'
15890         lt_prog_compiler_pic_GCJ='-fpic'
15891         lt_prog_compiler_static_GCJ='-Bstatic'
15892         ;;
15893       ccc*)
15894         lt_prog_compiler_wl_GCJ='-Wl,'
15895         # All Alpha code is PIC.
15896         lt_prog_compiler_static_GCJ='-non_shared'
15897         ;;
15898       *)
15899         case `$CC -V 2>&1 | sed 5q` in
15900         *Sun\ C*)
15901           # Sun C 5.9
15902           lt_prog_compiler_pic_GCJ='-KPIC'
15903           lt_prog_compiler_static_GCJ='-Bstatic'
15904           lt_prog_compiler_wl_GCJ='-Wl,'
15905           ;;
15906         *Sun\ F*)
15907           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15908           lt_prog_compiler_pic_GCJ='-KPIC'
15909           lt_prog_compiler_static_GCJ='-Bstatic'
15910           lt_prog_compiler_wl_GCJ=''
15911           ;;
15912         esac
15913         ;;
15914       esac
15915       ;;
15916
15917     newsos6)
15918       lt_prog_compiler_pic_GCJ='-KPIC'
15919       lt_prog_compiler_static_GCJ='-Bstatic'
15920       ;;
15921
15922     *nto* | *qnx*)
15923       # QNX uses GNU C++, but need to define -shared option too, otherwise
15924       # it will coredump.
15925       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15926       ;;
15927
15928     osf3* | osf4* | osf5*)
15929       lt_prog_compiler_wl_GCJ='-Wl,'
15930       # All OSF/1 code is PIC.
15931       lt_prog_compiler_static_GCJ='-non_shared'
15932       ;;
15933
15934     rdos*)
15935       lt_prog_compiler_static_GCJ='-non_shared'
15936       ;;
15937
15938     solaris*)
15939       lt_prog_compiler_pic_GCJ='-KPIC'
15940       lt_prog_compiler_static_GCJ='-Bstatic'
15941       case $cc_basename in
15942       f77* | f90* | f95*)
15943         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15944       *)
15945         lt_prog_compiler_wl_GCJ='-Wl,';;
15946       esac
15947       ;;
15948
15949     sunos4*)
15950       lt_prog_compiler_wl_GCJ='-Qoption ld '
15951       lt_prog_compiler_pic_GCJ='-PIC'
15952       lt_prog_compiler_static_GCJ='-Bstatic'
15953       ;;
15954
15955     sysv4 | sysv4.2uw2* | sysv4.3*)
15956       lt_prog_compiler_wl_GCJ='-Wl,'
15957       lt_prog_compiler_pic_GCJ='-KPIC'
15958       lt_prog_compiler_static_GCJ='-Bstatic'
15959       ;;
15960
15961     sysv4*MP*)
15962       if test -d /usr/nec ;then
15963         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15964         lt_prog_compiler_static_GCJ='-Bstatic'
15965       fi
15966       ;;
15967
15968     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15969       lt_prog_compiler_wl_GCJ='-Wl,'
15970       lt_prog_compiler_pic_GCJ='-KPIC'
15971       lt_prog_compiler_static_GCJ='-Bstatic'
15972       ;;
15973
15974     unicos*)
15975       lt_prog_compiler_wl_GCJ='-Wl,'
15976       lt_prog_compiler_can_build_shared_GCJ=no
15977       ;;
15978
15979     uts4*)
15980       lt_prog_compiler_pic_GCJ='-pic'
15981       lt_prog_compiler_static_GCJ='-Bstatic'
15982       ;;
15983
15984     *)
15985       lt_prog_compiler_can_build_shared_GCJ=no
15986       ;;
15987     esac
15988   fi
15989
15990 case $host_os in
15991   # For platforms which do not support PIC, -DPIC is meaningless:
15992   *djgpp*)
15993     lt_prog_compiler_pic_GCJ=
15994     ;;
15995   *)
15996     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15997     ;;
15998 esac
15999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16000 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16001
16002
16003
16004 #
16005 # Check to make sure the PIC flag actually works.
16006 #
16007 if test -n "$lt_prog_compiler_pic_GCJ"; then
16008   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16009 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16010 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16011   echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013   lt_prog_compiler_pic_works_GCJ=no
16014    ac_outfile=conftest.$ac_objext
16015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16016    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16017    # Insert the option either (1) after the last *FLAGS variable, or
16018    # (2) before a word containing "conftest.", or (3) at the end.
16019    # Note that $ac_compile itself does not contain backslashes and begins
16020    # with a dollar sign (not a hyphen), so the echo should work correctly.
16021    # The option is referenced via a variable to avoid confusing sed.
16022    lt_compile=`echo "$ac_compile" | $SED \
16023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16025    -e 's:$: $lt_compiler_flag:'`
16026    (eval echo "\"\$as_me:16026: $lt_compile\"" >&5)
16027    (eval "$lt_compile" 2>conftest.err)
16028    ac_status=$?
16029    cat conftest.err >&5
16030    echo "$as_me:16030: \$? = $ac_status" >&5
16031    if (exit $ac_status) && test -s "$ac_outfile"; then
16032      # The compiler can only warn and ignore the option if not recognized
16033      # So say no if there are warnings other than the usual output.
16034      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16035      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16036      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16037        lt_prog_compiler_pic_works_GCJ=yes
16038      fi
16039    fi
16040    $RM conftest*
16041
16042 fi
16043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16044 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16045
16046 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16047     case $lt_prog_compiler_pic_GCJ in
16048      "" | " "*) ;;
16049      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16050      esac
16051 else
16052     lt_prog_compiler_pic_GCJ=
16053      lt_prog_compiler_can_build_shared_GCJ=no
16054 fi
16055
16056 fi
16057
16058
16059
16060 #
16061 # Check to make sure the static flag actually works.
16062 #
16063 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16064 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16066 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16067   echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069   lt_prog_compiler_static_works_GCJ=no
16070    save_LDFLAGS="$LDFLAGS"
16071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16072    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16074      # The linker can only warn and ignore the option if not recognized
16075      # So say no if there are warnings
16076      if test -s conftest.err; then
16077        # Append any errors to the config.log.
16078        cat conftest.err 1>&5
16079        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16081        if diff conftest.exp conftest.er2 >/dev/null; then
16082          lt_prog_compiler_static_works_GCJ=yes
16083        fi
16084      else
16085        lt_prog_compiler_static_works_GCJ=yes
16086      fi
16087    fi
16088    $RM conftest*
16089    LDFLAGS="$save_LDFLAGS"
16090
16091 fi
16092 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16093 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16094
16095 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16096     :
16097 else
16098     lt_prog_compiler_static_GCJ=
16099 fi
16100
16101
16102
16103
16104   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16105 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16106 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109   lt_cv_prog_compiler_c_o_GCJ=no
16110    $RM -r conftest 2>/dev/null
16111    mkdir conftest
16112    cd conftest
16113    mkdir out
16114    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16115
16116    lt_compiler_flag="-o out/conftest2.$ac_objext"
16117    # Insert the option either (1) after the last *FLAGS variable, or
16118    # (2) before a word containing "conftest.", or (3) at the end.
16119    # Note that $ac_compile itself does not contain backslashes and begins
16120    # with a dollar sign (not a hyphen), so the echo should work correctly.
16121    lt_compile=`echo "$ac_compile" | $SED \
16122    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16124    -e 's:$: $lt_compiler_flag:'`
16125    (eval echo "\"\$as_me:16125: $lt_compile\"" >&5)
16126    (eval "$lt_compile" 2>out/conftest.err)
16127    ac_status=$?
16128    cat out/conftest.err >&5
16129    echo "$as_me:16129: \$? = $ac_status" >&5
16130    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16131    then
16132      # The compiler can only warn and ignore the option if not recognized
16133      # So say no if there are warnings
16134      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16135      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16136      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16137        lt_cv_prog_compiler_c_o_GCJ=yes
16138      fi
16139    fi
16140    chmod u+w . 2>&5
16141    $RM conftest*
16142    # SGI C++ compiler will create directory out/ii_files/ for
16143    # template instantiation
16144    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16145    $RM out/* && rmdir out
16146    cd ..
16147    $RM -r conftest
16148    $RM conftest*
16149
16150 fi
16151 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16152 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16153
16154
16155
16156   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16158 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   lt_cv_prog_compiler_c_o_GCJ=no
16162    $RM -r conftest 2>/dev/null
16163    mkdir conftest
16164    cd conftest
16165    mkdir out
16166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16167
16168    lt_compiler_flag="-o out/conftest2.$ac_objext"
16169    # Insert the option either (1) after the last *FLAGS variable, or
16170    # (2) before a word containing "conftest.", or (3) at the end.
16171    # Note that $ac_compile itself does not contain backslashes and begins
16172    # with a dollar sign (not a hyphen), so the echo should work correctly.
16173    lt_compile=`echo "$ac_compile" | $SED \
16174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16176    -e 's:$: $lt_compiler_flag:'`
16177    (eval echo "\"\$as_me:16177: $lt_compile\"" >&5)
16178    (eval "$lt_compile" 2>out/conftest.err)
16179    ac_status=$?
16180    cat out/conftest.err >&5
16181    echo "$as_me:16181: \$? = $ac_status" >&5
16182    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16183    then
16184      # The compiler can only warn and ignore the option if not recognized
16185      # So say no if there are warnings
16186      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16187      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16188      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16189        lt_cv_prog_compiler_c_o_GCJ=yes
16190      fi
16191    fi
16192    chmod u+w . 2>&5
16193    $RM conftest*
16194    # SGI C++ compiler will create directory out/ii_files/ for
16195    # template instantiation
16196    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16197    $RM out/* && rmdir out
16198    cd ..
16199    $RM -r conftest
16200    $RM conftest*
16201
16202 fi
16203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16205
16206
16207
16208
16209 hard_links="nottested"
16210 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16211   # do not overwrite the value of need_locks provided by the user
16212   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16214   hard_links=yes
16215   $RM conftest*
16216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16217   touch conftest.a
16218   ln conftest.a conftest.b 2>&5 || hard_links=no
16219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16220   echo "$as_me:$LINENO: result: $hard_links" >&5
16221 echo "${ECHO_T}$hard_links" >&6
16222   if test "$hard_links" = no; then
16223     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16225     need_locks=warn
16226   fi
16227 else
16228   need_locks=no
16229 fi
16230
16231
16232
16233   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16235
16236   runpath_var=
16237   allow_undefined_flag_GCJ=
16238   always_export_symbols_GCJ=no
16239   archive_cmds_GCJ=
16240   archive_expsym_cmds_GCJ=
16241   compiler_needs_object_GCJ=no
16242   enable_shared_with_static_runtimes_GCJ=no
16243   export_dynamic_flag_spec_GCJ=
16244   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16245   hardcode_automatic_GCJ=no
16246   hardcode_direct_GCJ=no
16247   hardcode_direct_absolute_GCJ=no
16248   hardcode_libdir_flag_spec_GCJ=
16249   hardcode_libdir_flag_spec_ld_GCJ=
16250   hardcode_libdir_separator_GCJ=
16251   hardcode_minus_L_GCJ=no
16252   hardcode_shlibpath_var_GCJ=unsupported
16253   inherit_rpath_GCJ=no
16254   link_all_deplibs_GCJ=unknown
16255   module_cmds_GCJ=
16256   module_expsym_cmds_GCJ=
16257   old_archive_from_new_cmds_GCJ=
16258   old_archive_from_expsyms_cmds_GCJ=
16259   thread_safe_flag_spec_GCJ=
16260   whole_archive_flag_spec_GCJ=
16261   # include_expsyms should be a list of space-separated symbols to be *always*
16262   # included in the symbol list
16263   include_expsyms_GCJ=
16264   # exclude_expsyms can be an extended regexp of symbols to exclude
16265   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16266   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16267   # as well as any symbol that contains `d'.
16268   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16269   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16270   # platforms (ab)use it in PIC code, but their linkers get confused if
16271   # the symbol is explicitly referenced.  Since portable code cannot
16272   # rely on this symbol name, it's probably fine to never include it in
16273   # preloaded symbol tables.
16274   extract_expsyms_cmds=
16275
16276   case $host_os in
16277   cygwin* | mingw* | pw32*)
16278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279     # When not using gcc, we currently assume that we are using
16280     # Microsoft Visual C++.
16281     if test "$GCC" != yes; then
16282       with_gnu_ld=no
16283     fi
16284     ;;
16285   interix*)
16286     # we just hope/assume this is gcc and not c89 (= MSVC++)
16287     with_gnu_ld=yes
16288     ;;
16289   openbsd*)
16290     with_gnu_ld=no
16291     ;;
16292   esac
16293
16294   ld_shlibs_GCJ=yes
16295   if test "$with_gnu_ld" = yes; then
16296     # If archive_cmds runs LD, not CC, wlarc should be empty
16297     wlarc='${wl}'
16298
16299     # Set some defaults for GNU ld with shared library support. These
16300     # are reset later if shared libraries are not supported. Putting them
16301     # here allows them to be overridden if necessary.
16302     runpath_var=LD_RUN_PATH
16303     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16304     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16305     # ancient GNU ld didn't support --whole-archive et. al.
16306     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16307       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16308     else
16309       whole_archive_flag_spec_GCJ=
16310     fi
16311     supports_anon_versioning=no
16312     case `$LD -v 2>&1` in
16313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16316       *\ 2.11.*) ;; # other 2.11 versions
16317       *) supports_anon_versioning=yes ;;
16318     esac
16319
16320     # See if GNU ld supports shared libraries.
16321     case $host_os in
16322     aix3* | aix4* | aix5*)
16323       # On AIX/PPC, the GNU linker is very broken
16324       if test "$host_cpu" != ia64; then
16325         ld_shlibs_GCJ=no
16326         cat <<_LT_EOF 1>&2
16327
16328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16329 *** to be unable to reliably create shared libraries on AIX.
16330 *** Therefore, libtool is disabling shared libraries support.  If you
16331 *** really care for shared libraries, you may want to modify your PATH
16332 *** so that a non-GNU linker is found, and then restart.
16333
16334 _LT_EOF
16335       fi
16336       ;;
16337
16338     amigaos*)
16339       if test "$host_cpu" = m68k; then
16340         archive_cmds_GCJ='$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)'
16341         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16342         hardcode_minus_L_GCJ=yes
16343       fi
16344
16345       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16346       # that the semantics of dynamic libraries on AmigaOS, at least up
16347       # to version 4, is to share data among multiple programs linked
16348       # with the same dynamic library.  Since this doesn't match the
16349       # behavior of shared libraries on other platforms, we can't use
16350       # them.
16351       ld_shlibs_GCJ=no
16352       ;;
16353
16354     beos*)
16355       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16356         allow_undefined_flag_GCJ=unsupported
16357         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16358         # support --undefined.  This deserves some investigation.  FIXME
16359         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360       else
16361         ld_shlibs_GCJ=no
16362       fi
16363       ;;
16364
16365     cygwin* | mingw* | pw32*)
16366       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16367       # as there is no search path for DLLs.
16368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16369       allow_undefined_flag_GCJ=unsupported
16370       always_export_symbols_GCJ=no
16371       enable_shared_with_static_runtimes_GCJ=yes
16372       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16373
16374       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16375         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16376         # If the export-symbols file already is a .def file (1st line
16377         # is EXPORTS), use it as is; otherwise, prepend...
16378         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16379           cp $export_symbols $output_objdir/$soname.def;
16380         else
16381           echo EXPORTS > $output_objdir/$soname.def;
16382           cat $export_symbols >> $output_objdir/$soname.def;
16383         fi~
16384         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16385       else
16386         ld_shlibs_GCJ=no
16387       fi
16388       ;;
16389
16390     interix[3-9]*)
16391       hardcode_direct_GCJ=no
16392       hardcode_shlibpath_var_GCJ=no
16393       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16394       export_dynamic_flag_spec_GCJ='${wl}-E'
16395       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16396       # Instead, shared libraries are loaded at an image base (0x10000000 by
16397       # default) and relocated if they conflict, which is a slow very memory
16398       # consuming and fragmenting process.  To avoid this, we pick a random,
16399       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16400       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16401       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16402       archive_expsym_cmds_GCJ='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'
16403       ;;
16404
16405     gnu* | linux* | tpf* | k*bsd*-gnu)
16406       tmp_diet=no
16407       if test "$host_os" = linux-dietlibc; then
16408         case $cc_basename in
16409           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16410         esac
16411       fi
16412       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16413          && test "$tmp_diet" = no
16414       then
16415         tmp_addflag=
16416         case $cc_basename,$host_cpu in
16417         pgcc*)                          # Portland Group C compiler
16418           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16419           tmp_addflag=' $pic_flag'
16420           ;;
16421         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16422           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16423           tmp_addflag=' $pic_flag -Mnomain' ;;
16424         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16425           tmp_addflag=' -i_dynamic' ;;
16426         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16427           tmp_addflag=' -i_dynamic -nofor_main' ;;
16428         ifc* | ifort*)                  # Intel Fortran compiler
16429           tmp_addflag=' -nofor_main' ;;
16430         esac
16431         case `$CC -V 2>&1 | sed 5q` in
16432         *Sun\ C*)                       # Sun C 5.9
16433           whole_archive_flag_spec_GCJ='${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'
16434           compiler_needs_object_GCJ=yes
16435           tmp_sharedflag='-G' ;;
16436         *Sun\ F*)                       # Sun Fortran 8.3
16437           tmp_sharedflag='-G' ;;
16438         *)
16439           tmp_sharedflag='-shared' ;;
16440         esac
16441         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442
16443         if test "x$supports_anon_versioning" = xyes; then
16444           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16445             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16446             echo "local: *; };" >> $output_objdir/$libname.ver~
16447             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16448         fi
16449       else
16450         ld_shlibs_GCJ=no
16451       fi
16452       ;;
16453
16454     netbsd*)
16455       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16456         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16457         wlarc=
16458       else
16459         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16460         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16461       fi
16462       ;;
16463
16464     solaris*)
16465       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16466         ld_shlibs_GCJ=no
16467         cat <<_LT_EOF 1>&2
16468
16469 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16470 *** create shared libraries on Solaris systems.  Therefore, libtool
16471 *** is disabling shared libraries support.  We urge you to upgrade GNU
16472 *** binutils to release 2.9.1 or newer.  Another option is to modify
16473 *** your PATH or compiler configuration so that the native linker is
16474 *** used, and then restart.
16475
16476 _LT_EOF
16477       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16478         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16479         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16480       else
16481         ld_shlibs_GCJ=no
16482       fi
16483       ;;
16484
16485     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16486       case `$LD -v 2>&1` in
16487         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16488         ld_shlibs_GCJ=no
16489         cat <<_LT_EOF 1>&2
16490
16491 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16492 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16493 *** is disabling shared libraries support.  We urge you to upgrade GNU
16494 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16495 *** your PATH or compiler configuration so that the native linker is
16496 *** used, and then restart.
16497
16498 _LT_EOF
16499         ;;
16500         *)
16501           # For security reasons, it is highly recommended that you always
16502           # use absolute paths for naming shared libraries, and exclude the
16503           # DT_RUNPATH tag from executables and libraries.  But doing so
16504           # requires that you compile everything twice, which is a pain.
16505           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16506             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16507             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16508             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16509           else
16510             ld_shlibs_GCJ=no
16511           fi
16512         ;;
16513       esac
16514       ;;
16515
16516     sunos4*)
16517       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16518       wlarc=
16519       hardcode_direct_GCJ=yes
16520       hardcode_shlibpath_var_GCJ=no
16521       ;;
16522
16523     *)
16524       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16525         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16527       else
16528         ld_shlibs_GCJ=no
16529       fi
16530       ;;
16531     esac
16532
16533     if test "$ld_shlibs_GCJ" = no; then
16534       runpath_var=
16535       hardcode_libdir_flag_spec_GCJ=
16536       export_dynamic_flag_spec_GCJ=
16537       whole_archive_flag_spec_GCJ=
16538     fi
16539   else
16540     # PORTME fill in a description of your system's linker (not GNU ld)
16541     case $host_os in
16542     aix3*)
16543       allow_undefined_flag_GCJ=unsupported
16544       always_export_symbols_GCJ=yes
16545       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16546       # Note: this linker hardcodes the directories in LIBPATH if there
16547       # are no directories specified by -L.
16548       hardcode_minus_L_GCJ=yes
16549       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16550         # Neither direct hardcoding nor static linking is supported with a
16551         # broken collect2.
16552         hardcode_direct_GCJ=unsupported
16553       fi
16554       ;;
16555
16556     aix4* | aix5*)
16557       if test "$host_cpu" = ia64; then
16558         # On IA64, the linker does run time linking by default, so we don't
16559         # have to do anything special.
16560         aix_use_runtimelinking=no
16561         exp_sym_flag='-Bexport'
16562         no_entry_flag=""
16563       else
16564         # If we're using GNU nm, then we don't want the "-C" option.
16565         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16566         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16567           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16568         else
16569           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16570         fi
16571         aix_use_runtimelinking=no
16572
16573         # Test if we are trying to use run time linking or normal
16574         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16575         # need to do runtime linking.
16576         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16577           for ld_flag in $LDFLAGS; do
16578           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16579             aix_use_runtimelinking=yes
16580             break
16581           fi
16582           done
16583           ;;
16584         esac
16585
16586         exp_sym_flag='-bexport'
16587         no_entry_flag='-bnoentry'
16588       fi
16589
16590       # When large executables or shared objects are built, AIX ld can
16591       # have problems creating the table of contents.  If linking a library
16592       # or program results in "error TOC overflow" add -mminimal-toc to
16593       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16594       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16595
16596       archive_cmds_GCJ=''
16597       hardcode_direct_GCJ=yes
16598       hardcode_direct_absolute_GCJ=yes
16599       hardcode_libdir_separator_GCJ=':'
16600       link_all_deplibs_GCJ=yes
16601       file_list_spec_GCJ='${wl}-f,'
16602
16603       if test "$GCC" = yes; then
16604         case $host_os in aix4.[012]|aix4.[012].*)
16605         # We only want to do this on AIX 4.2 and lower, the check
16606         # below for broken collect2 doesn't work under 4.3+
16607           collect2name=`${CC} -print-prog-name=collect2`
16608           if test -f "$collect2name" &&
16609            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16610           then
16611           # We have reworked collect2
16612           :
16613           else
16614           # We have old collect2
16615           hardcode_direct_GCJ=unsupported
16616           # It fails to find uninstalled libraries when the uninstalled
16617           # path is not listed in the libpath.  Setting hardcode_minus_L
16618           # to unsupported forces relinking
16619           hardcode_minus_L_GCJ=yes
16620           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16621           hardcode_libdir_separator_GCJ=
16622           fi
16623           ;;
16624         esac
16625         shared_flag='-shared'
16626         if test "$aix_use_runtimelinking" = yes; then
16627           shared_flag="$shared_flag "'${wl}-G'
16628         fi
16629       else
16630         # not using gcc
16631         if test "$host_cpu" = ia64; then
16632         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16633         # chokes on -Wl,-G. The following line is correct:
16634           shared_flag='-G'
16635         else
16636           if test "$aix_use_runtimelinking" = yes; then
16637             shared_flag='${wl}-G'
16638           else
16639             shared_flag='${wl}-bM:SRE'
16640           fi
16641         fi
16642       fi
16643
16644       # It seems that -bexpall does not export symbols beginning with
16645       # underscore (_), so it is better to generate a list of symbols to export.
16646       always_export_symbols_GCJ=yes
16647       if test "$aix_use_runtimelinking" = yes; then
16648         # Warning - without using the other runtime loading flags (-brtl),
16649         # -berok will link without error, but may produce a broken library.
16650         allow_undefined_flag_GCJ='-berok'
16651         # Determine the default libpath from the value encoded in an
16652         # empty executable.
16653         if test x$gcc_no_link = xyes; then
16654   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16656    { (exit 1); exit 1; }; }
16657 fi
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664
16665 int
16666 main ()
16667 {
16668
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675   (eval $ac_link) 2>conftest.er1
16676   ac_status=$?
16677   grep -v '^ *+' conftest.er1 >conftest.err
16678   rm -f conftest.er1
16679   cat conftest.err >&5
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } &&
16682          { ac_try='test -z "$ac_c_werror_flag"
16683                          || test ! -s conftest.err'
16684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685   (eval $ac_try) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; } &&
16689          { ac_try='test -s conftest$ac_exeext'
16690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691   (eval $ac_try) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695
16696 lt_aix_libpath_sed='
16697     /Import File Strings/,/^$/ {
16698         /^0/ {
16699             s/^0  *\(.*\)$/\1/
16700             p
16701         }
16702     }'
16703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16704 # Check for a 64-bit object if we didn't find anything.
16705 if test -z "$aix_libpath"; then
16706   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16707 fi
16708 else
16709   echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 fi
16713 rm -f conftest.err conftest.$ac_objext \
16714       conftest$ac_exeext conftest.$ac_ext
16715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16716
16717         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16718         archive_expsym_cmds_GCJ='$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"
16719       else
16720         if test "$host_cpu" = ia64; then
16721           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16722           allow_undefined_flag_GCJ="-z nodefs"
16723           archive_expsym_cmds_GCJ="\$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"
16724         else
16725          # Determine the default libpath from the value encoded in an
16726          # empty executable.
16727          if test x$gcc_no_link = xyes; then
16728   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16730    { (exit 1); exit 1; }; }
16731 fi
16732 cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h.  */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h.  */
16738
16739 int
16740 main ()
16741 {
16742
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749   (eval $ac_link) 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } &&
16756          { ac_try='test -z "$ac_c_werror_flag"
16757                          || test ! -s conftest.err'
16758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759   (eval $ac_try) 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; } &&
16763          { ac_try='test -s conftest$ac_exeext'
16764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765   (eval $ac_try) 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; }; then
16769
16770 lt_aix_libpath_sed='
16771     /Import File Strings/,/^$/ {
16772         /^0/ {
16773             s/^0  *\(.*\)$/\1/
16774             p
16775         }
16776     }'
16777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16778 # Check for a 64-bit object if we didn't find anything.
16779 if test -z "$aix_libpath"; then
16780   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16781 fi
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 fi
16787 rm -f conftest.err conftest.$ac_objext \
16788       conftest$ac_exeext conftest.$ac_ext
16789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16790
16791          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16792           # Warning - without using the other run time loading flags,
16793           # -berok will link without error, but may produce a broken library.
16794           no_undefined_flag_GCJ=' ${wl}-bernotok'
16795           allow_undefined_flag_GCJ=' ${wl}-berok'
16796           # Exported symbols can be pulled into shared objects from archives
16797           whole_archive_flag_spec_GCJ='$convenience'
16798           archive_cmds_need_lc_GCJ=yes
16799           # This is similar to how AIX traditionally builds its shared libraries.
16800           archive_expsym_cmds_GCJ="\$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'
16801         fi
16802       fi
16803       ;;
16804
16805     amigaos*)
16806       if test "$host_cpu" = m68k; then
16807         archive_cmds_GCJ='$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)'
16808         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16809         hardcode_minus_L_GCJ=yes
16810       fi
16811       # see comment about different semantics on the GNU ld section
16812       ld_shlibs_GCJ=no
16813       ;;
16814
16815     bsdi[45]*)
16816       export_dynamic_flag_spec_GCJ=-rdynamic
16817       ;;
16818
16819     cygwin* | mingw* | pw32*)
16820       # When not using gcc, we currently assume that we are using
16821       # Microsoft Visual C++.
16822       # hardcode_libdir_flag_spec is actually meaningless, as there is
16823       # no search path for DLLs.
16824       hardcode_libdir_flag_spec_GCJ=' '
16825       allow_undefined_flag_GCJ=unsupported
16826       # Tell ltmain to make .lib files, not .a files.
16827       libext=lib
16828       # Tell ltmain to make .dll files, not .so files.
16829       shrext_cmds=".dll"
16830       # FIXME: Setting linknames here is a bad hack.
16831       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16832       # The linker will automatically build a .lib file if we build a DLL.
16833       old_archive_from_new_cmds_GCJ='true'
16834       # FIXME: Should let the user specify the lib program.
16835       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16836       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16837       enable_shared_with_static_runtimes_GCJ=yes
16838       ;;
16839
16840     darwin* | rhapsody*)
16841       case $host_os in
16842       rhapsody* | darwin1.[012])
16843         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16844         ;;
16845       *) # Darwin 1.3 on
16846         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16847         10.[012])
16848           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16849           ;;
16850         10.*)
16851           allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16852           ;;
16853         esac
16854         ;;
16855       esac
16856       archive_cmds_need_lc_GCJ=no
16857       hardcode_direct_GCJ=no
16858       hardcode_automatic_GCJ=yes
16859       hardcode_shlibpath_var_GCJ=unsupported
16860       whole_archive_flag_spec_GCJ=''
16861       link_all_deplibs_GCJ=yes
16862       if test "$GCC" = yes ; then
16863         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   lt_cv_apple_cc_single_mod=no
16867         if test -z "${LT_MULTI_MODULE}"; then
16868           # By default we will add the -single_module flag. You can override
16869           # by either setting the environment variable LT_MULTI_MODULE
16870           # non-empty at configure time, or by adding -multi-module to the
16871           # link flags.
16872           echo "int foo(void){return 1;}" > conftest.c
16873           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16874               -dynamiclib ${wl}-single_module conftest.c
16875           if test -f libconftest.dylib; then
16876               lt_cv_apple_cc_single_mod=yes
16877               rm libconftest.dylib
16878           fi
16879           rm conftest.$ac_ext
16880         fi
16881 fi
16882
16883         output_verbose_link_cmd=echo
16884         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16885           archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16886           archive_expsym_cmds_GCJ='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}'
16887         else
16888           archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16889           archive_expsym_cmds_GCJ='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}'
16890         fi
16891         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16892         module_expsym_cmds_GCJ='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}'
16893       else
16894         case $cc_basename in
16895         xlc*)
16896           output_verbose_link_cmd=echo
16897           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16898           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16899           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16900           archive_expsym_cmds_GCJ='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}'
16901           module_expsym_cmds_GCJ='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}'
16902           ;;
16903         *)
16904           ld_shlibs_GCJ=no
16905           ;;
16906         esac
16907       fi
16908       ;;
16909
16910     dgux*)
16911       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16913       hardcode_shlibpath_var_GCJ=no
16914       ;;
16915
16916     freebsd1*)
16917       ld_shlibs_GCJ=no
16918       ;;
16919
16920     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16921     # support.  Future versions do this automatically, but an explicit c++rt0.o
16922     # does not break anything, and helps significantly (at the cost of a little
16923     # extra space).
16924     freebsd2.2*)
16925       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16926       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16927       hardcode_direct_GCJ=yes
16928       hardcode_shlibpath_var_GCJ=no
16929       ;;
16930
16931     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16932     freebsd2*)
16933       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16934       hardcode_direct_GCJ=yes
16935       hardcode_minus_L_GCJ=yes
16936       hardcode_shlibpath_var_GCJ=no
16937       ;;
16938
16939     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16940     freebsd* | dragonfly*)
16941       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16942       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16943       hardcode_direct_GCJ=yes
16944       hardcode_shlibpath_var_GCJ=no
16945       ;;
16946
16947     hpux9*)
16948       if test "$GCC" = yes; then
16949         archive_cmds_GCJ='$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'
16950       else
16951         archive_cmds_GCJ='$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'
16952       fi
16953       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16954       hardcode_libdir_separator_GCJ=:
16955       hardcode_direct_GCJ=yes
16956
16957       # hardcode_minus_L: Not really in the search PATH,
16958       # but as the default location of the library.
16959       hardcode_minus_L_GCJ=yes
16960       export_dynamic_flag_spec_GCJ='${wl}-E'
16961       ;;
16962
16963     hpux10*)
16964       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16965         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16966       else
16967         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16968       fi
16969       if test "$with_gnu_ld" = no; then
16970         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16971         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16972         hardcode_libdir_separator_GCJ=:
16973         hardcode_direct_GCJ=yes
16974         hardcode_direct_absolute_GCJ=yes
16975         export_dynamic_flag_spec_GCJ='${wl}-E'
16976         # hardcode_minus_L: Not really in the search PATH,
16977         # but as the default location of the library.
16978         hardcode_minus_L_GCJ=yes
16979       fi
16980       ;;
16981
16982     hpux11*)
16983       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16984         case $host_cpu in
16985         hppa*64*)
16986           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16987           ;;
16988         ia64*)
16989           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16990           ;;
16991         *)
16992           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993           ;;
16994         esac
16995       else
16996         case $host_cpu in
16997         hppa*64*)
16998           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16999           ;;
17000         ia64*)
17001           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17002           ;;
17003         *)
17004           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17005           ;;
17006         esac
17007       fi
17008       if test "$with_gnu_ld" = no; then
17009         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010         hardcode_libdir_separator_GCJ=:
17011
17012         case $host_cpu in
17013         hppa*64*|ia64*)
17014           hardcode_direct_GCJ=no
17015           hardcode_shlibpath_var_GCJ=no
17016           ;;
17017         *)
17018           hardcode_direct_GCJ=yes
17019           hardcode_direct_absolute_GCJ=yes
17020           export_dynamic_flag_spec_GCJ='${wl}-E'
17021
17022           # hardcode_minus_L: Not really in the search PATH,
17023           # but as the default location of the library.
17024           hardcode_minus_L_GCJ=yes
17025           ;;
17026         esac
17027       fi
17028       ;;
17029
17030     irix5* | irix6* | nonstopux*)
17031       if test "$GCC" = yes; then
17032         archive_cmds_GCJ='$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'
17033         # Try to use the -exported_symbol ld option, if it does not
17034         # work, assume that -exports_file does not work either and
17035         # implicitly export all symbols.
17036         save_LDFLAGS="$LDFLAGS"
17037         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17038         if test x$gcc_no_link = xyes; then
17039   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17041    { (exit 1); exit 1; }; }
17042 fi
17043 cat >conftest.$ac_ext <<_ACEOF
17044 int foo(void) {}
17045 _ACEOF
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048   (eval $ac_link) 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } &&
17055          { ac_try='test -z "$ac_c_werror_flag"
17056                          || test ! -s conftest.err'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; } &&
17062          { ac_try='test -s conftest$ac_exeext'
17063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064   (eval $ac_try) 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   archive_expsym_cmds_GCJ='$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'
17069
17070 else
17071   echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 fi
17075 rm -f conftest.err conftest.$ac_objext \
17076       conftest$ac_exeext conftest.$ac_ext
17077         LDFLAGS="$save_LDFLAGS"
17078       else
17079         archive_cmds_GCJ='$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'
17080         archive_expsym_cmds_GCJ='$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'
17081       fi
17082       archive_cmds_need_lc_GCJ='no'
17083       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17084       hardcode_libdir_separator_GCJ=:
17085       inherit_rpath_GCJ=yes
17086       link_all_deplibs_GCJ=yes
17087       ;;
17088
17089     netbsd*)
17090       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17091         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17092       else
17093         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17094       fi
17095       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17096       hardcode_direct_GCJ=yes
17097       hardcode_shlibpath_var_GCJ=no
17098       ;;
17099
17100     newsos6)
17101       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102       hardcode_direct_GCJ=yes
17103       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17104       hardcode_libdir_separator_GCJ=:
17105       hardcode_shlibpath_var_GCJ=no
17106       ;;
17107
17108     *nto* | *qnx*)
17109       ;;
17110
17111     openbsd*)
17112       hardcode_direct_GCJ=yes
17113       hardcode_shlibpath_var_GCJ=no
17114       hardcode_direct_absolute_GCJ=yes
17115       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17116         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17117         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17118         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17119         export_dynamic_flag_spec_GCJ='${wl}-E'
17120       else
17121         case $host_os in
17122         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17123           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17124           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17125           ;;
17126         *)
17127           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17128           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17129           ;;
17130         esac
17131       fi
17132       ;;
17133
17134     os2*)
17135       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17136       hardcode_minus_L_GCJ=yes
17137       allow_undefined_flag_GCJ=unsupported
17138       archive_cmds_GCJ='$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'
17139       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17140       ;;
17141
17142     osf3*)
17143       if test "$GCC" = yes; then
17144         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17145         archive_cmds_GCJ='$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'
17146       else
17147         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17148         archive_cmds_GCJ='$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'
17149       fi
17150       archive_cmds_need_lc_GCJ='no'
17151       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152       hardcode_libdir_separator_GCJ=:
17153       ;;
17154
17155     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17156       if test "$GCC" = yes; then
17157         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17158         archive_cmds_GCJ='$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'
17159         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17160       else
17161         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17162         archive_cmds_GCJ='$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'
17163         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17164         $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'
17165
17166         # Both c and cxx compiler support -rpath directly
17167         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17168       fi
17169       archive_cmds_need_lc_GCJ='no'
17170       hardcode_libdir_separator_GCJ=:
17171       ;;
17172
17173     solaris*)
17174       no_undefined_flag_GCJ=' -z defs'
17175       if test "$GCC" = yes; then
17176         wlarc='${wl}'
17177         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17178         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17179           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17180       else
17181         case `$CC -V 2>&1` in
17182         *"Compilers 5.0"*)
17183           wlarc=''
17184           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17186           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17187           ;;
17188         *)
17189           wlarc='${wl}'
17190           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17191           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17192           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17193           ;;
17194         esac
17195       fi
17196       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17197       hardcode_shlibpath_var_GCJ=no
17198       case $host_os in
17199       solaris2.[0-5] | solaris2.[0-5].*) ;;
17200       *)
17201         # The compiler driver will combine and reorder linker options,
17202         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17203         # but is careful enough not to reorder.
17204         # Supported since Solaris 2.6 (maybe 2.5.1?)
17205         if test "$GCC" = yes; then
17206           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17207         else
17208           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17209         fi
17210         ;;
17211       esac
17212       link_all_deplibs_GCJ=yes
17213       ;;
17214
17215     sunos4*)
17216       if test "x$host_vendor" = xsequent; then
17217         # Use $CC to link under sequent, because it throws in some extra .o
17218         # files that make .init and .fini sections work.
17219         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17220       else
17221         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17222       fi
17223       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224       hardcode_direct_GCJ=yes
17225       hardcode_minus_L_GCJ=yes
17226       hardcode_shlibpath_var_GCJ=no
17227       ;;
17228
17229     sysv4)
17230       case $host_vendor in
17231         sni)
17232           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17233           hardcode_direct_GCJ=yes # is this really true???
17234         ;;
17235         siemens)
17236           ## LD is ld it makes a PLAMLIB
17237           ## CC just makes a GrossModule.
17238           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17239           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17240           hardcode_direct_GCJ=no
17241         ;;
17242         motorola)
17243           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17244           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17245         ;;
17246       esac
17247       runpath_var='LD_RUN_PATH'
17248       hardcode_shlibpath_var_GCJ=no
17249       ;;
17250
17251     sysv4.3*)
17252       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17253       hardcode_shlibpath_var_GCJ=no
17254       export_dynamic_flag_spec_GCJ='-Bexport'
17255       ;;
17256
17257     sysv4*MP*)
17258       if test -d /usr/nec; then
17259         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260         hardcode_shlibpath_var_GCJ=no
17261         runpath_var=LD_RUN_PATH
17262         hardcode_runpath_var=yes
17263         ld_shlibs_GCJ=yes
17264       fi
17265       ;;
17266
17267     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17268       no_undefined_flag_GCJ='${wl}-z,text'
17269       archive_cmds_need_lc_GCJ=no
17270       hardcode_shlibpath_var_GCJ=no
17271       runpath_var='LD_RUN_PATH'
17272
17273       if test "$GCC" = yes; then
17274         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17275         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17276       else
17277         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17278         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17279       fi
17280       ;;
17281
17282     sysv5* | sco3.2v5* | sco5v6*)
17283       # Note: We can NOT use -z defs as we might desire, because we do not
17284       # link with -lc, and that would cause any symbols used from libc to
17285       # always be unresolved, which means just about no library would
17286       # ever link correctly.  If we're not using GNU ld we use -z text
17287       # though, which does catch some bad symbols but isn't as heavy-handed
17288       # as -z defs.
17289       no_undefined_flag_GCJ='${wl}-z,text'
17290       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17291       archive_cmds_need_lc_GCJ=no
17292       hardcode_shlibpath_var_GCJ=no
17293       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17294       hardcode_libdir_separator_GCJ=':'
17295       link_all_deplibs_GCJ=yes
17296       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17297       runpath_var='LD_RUN_PATH'
17298
17299       if test "$GCC" = yes; then
17300         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17301         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17302       else
17303         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17304         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17305       fi
17306       ;;
17307
17308     uts4*)
17309       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17310       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17311       hardcode_shlibpath_var_GCJ=no
17312       ;;
17313
17314     *)
17315       ld_shlibs_GCJ=no
17316       ;;
17317     esac
17318
17319     if test x$host_vendor = xsni; then
17320       case $host in
17321       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17322         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17323         ;;
17324       esac
17325     fi
17326   fi
17327
17328 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17329 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17330 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17331
17332 with_gnu_ld_GCJ=$with_gnu_ld
17333
17334
17335
17336
17337
17338
17339 #
17340 # Do we need to explicitly link libc?
17341 #
17342 case "x$archive_cmds_need_lc_GCJ" in
17343 x|xyes)
17344   # Assume -lc should be added
17345   archive_cmds_need_lc_GCJ=yes
17346
17347   if test "$enable_shared" = yes && test "$GCC" = yes; then
17348     case $archive_cmds_GCJ in
17349     *'~'*)
17350       # FIXME: we may have to deal with multi-command sequences.
17351       ;;
17352     '$CC '*)
17353       # Test whether the compiler implicitly links with -lc since on some
17354       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17355       # to ld, don't add -lc before -lgcc.
17356       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17357 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17358       $RM conftest*
17359       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17360
17361       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17362   (eval $ac_compile) 2>&5
17363   ac_status=$?
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } 2>conftest.err; then
17366         soname=conftest
17367         lib=conftest
17368         libobjs=conftest.$ac_objext
17369         deplibs=
17370         wl=$lt_prog_compiler_wl_GCJ
17371         pic_flag=$lt_prog_compiler_pic_GCJ
17372         compiler_flags=-v
17373         linker_flags=-v
17374         verstring=
17375         output_objdir=.
17376         libname=conftest
17377         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17378         allow_undefined_flag_GCJ=
17379         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17380   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }
17384         then
17385           archive_cmds_need_lc_GCJ=no
17386         else
17387           archive_cmds_need_lc_GCJ=yes
17388         fi
17389         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17390       else
17391         cat conftest.err 1>&5
17392       fi
17393       $RM conftest*
17394       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17395 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17396       ;;
17397     esac
17398   fi
17399   ;;
17400 esac
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17466 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17467 withGCC=$GCC
17468 library_names_spec=
17469 libname_spec='lib$name'
17470 soname_spec=
17471 shrext_cmds=".so"
17472 postinstall_cmds=
17473 postuninstall_cmds=
17474 finish_cmds=
17475 finish_eval=
17476 shlibpath_var=
17477 shlibpath_overrides_runpath=unknown
17478 version_type=none
17479 dynamic_linker="$host_os ld.so"
17480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17481 need_lib_prefix=unknown
17482 hardcode_into_libs=no
17483
17484 # when you set need_version to no, make sure it does not cause -set_version
17485 # flags to be left without arguments
17486 need_version=unknown
17487
17488 case $host_os in
17489 aix3*)
17490   version_type=linux
17491   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17492   shlibpath_var=LIBPATH
17493
17494   # AIX 3 has no versioning support, so we append a major version to the name.
17495   soname_spec='${libname}${release}${shared_ext}$major'
17496   ;;
17497
17498 aix4* | aix5*)
17499   version_type=linux
17500   need_lib_prefix=no
17501   need_version=no
17502   hardcode_into_libs=yes
17503   if test "$host_cpu" = ia64; then
17504     # AIX 5 supports IA64
17505     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17506     shlibpath_var=LD_LIBRARY_PATH
17507   else
17508     # With GCC up to 2.95.x, collect2 would create an import file
17509     # for dependence libraries.  The import file would start with
17510     # the line `#! .'.  This would cause the generated library to
17511     # depend on `.', always an invalid library.  This was fixed in
17512     # development snapshots of GCC prior to 3.0.
17513     case $host_os in
17514       aix4 | aix4.[01] | aix4.[01].*)
17515       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17516            echo ' yes '
17517            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17518         :
17519       else
17520         can_build_shared=no
17521       fi
17522       ;;
17523     esac
17524     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17525     # soname into executable. Probably we can add versioning support to
17526     # collect2, so additional links can be useful in future.
17527     if test "$aix_use_runtimelinking" = yes; then
17528       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17529       # instead of lib<name>.a to let people know that these are not
17530       # typical AIX shared libraries.
17531       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532     else
17533       # We preserve .a as extension for shared libraries through AIX4.2
17534       # and later when we are not doing run time linking.
17535       library_names_spec='${libname}${release}.a $libname.a'
17536       soname_spec='${libname}${release}${shared_ext}$major'
17537     fi
17538     shlibpath_var=LIBPATH
17539   fi
17540   ;;
17541
17542 amigaos*)
17543   if test "$host_cpu" = m68k; then
17544     library_names_spec='$libname.ixlibrary $libname.a'
17545     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17546     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'
17547   else
17548     dynamic_linker=no
17549   fi
17550   ;;
17551
17552 beos*)
17553   library_names_spec='${libname}${shared_ext}'
17554   dynamic_linker="$host_os ld.so"
17555   shlibpath_var=LIBRARY_PATH
17556   ;;
17557
17558 bsdi[45]*)
17559   version_type=linux
17560   need_version=no
17561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562   soname_spec='${libname}${release}${shared_ext}$major'
17563   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17564   shlibpath_var=LD_LIBRARY_PATH
17565   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17566   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17567   # the default ld.so.conf also contains /usr/contrib/lib and
17568   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17569   # libtool to hard-code these into programs
17570   ;;
17571
17572 cygwin* | mingw* | pw32*)
17573   version_type=windows
17574   shrext_cmds=".dll"
17575   need_version=no
17576   need_lib_prefix=no
17577
17578   case $withGCC,$host_os in
17579   yes,cygwin* | yes,mingw* | yes,pw32*)
17580     library_names_spec='$libname.dll.a'
17581     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17582     postinstall_cmds='base_file=`basename \${file}`~
17583       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17584       dldir=$destdir/`dirname \$dlpath`~
17585       test -d \$dldir || mkdir -p \$dldir~
17586       $install_prog $dir/$dlname \$dldir/$dlname~
17587       chmod a+x \$dldir/$dlname~
17588       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17589         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17590       fi'
17591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17592       dlpath=$dir/\$dldll~
17593        $RM \$dlpath'
17594     shlibpath_overrides_runpath=yes
17595
17596     case $host_os in
17597     cygwin*)
17598       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17599       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17600       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17601       ;;
17602     mingw*)
17603       # MinGW DLLs use traditional 'lib' prefix
17604       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17605       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17606       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17607         # It is most probably a Windows format PATH printed by
17608         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17609         # path with ; separators, and with drive letters. We can handle the
17610         # drive letters (cygwin fileutils understands them), so leave them,
17611         # especially as we might pass files found there to a mingw objdump,
17612         # which wouldn't understand a cygwinified path. Ahh.
17613         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17614       else
17615         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17616       fi
17617       ;;
17618     pw32*)
17619       # pw32 DLLs use 'pw' prefix rather than 'lib'
17620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17621       ;;
17622     esac
17623     ;;
17624
17625   *)
17626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17627     ;;
17628   esac
17629   dynamic_linker='Win32 ld.exe'
17630   # FIXME: first we should search . and the directory the executable is in
17631   shlibpath_var=PATH
17632   ;;
17633
17634 darwin* | rhapsody*)
17635   dynamic_linker="$host_os dyld"
17636   version_type=darwin
17637   need_lib_prefix=no
17638   need_version=no
17639   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17640   soname_spec='${libname}${release}${major}$shared_ext'
17641   shlibpath_overrides_runpath=yes
17642   shlibpath_var=DYLD_LIBRARY_PATH
17643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17644
17645   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17646   ;;
17647
17648 dgux*)
17649   version_type=linux
17650   need_lib_prefix=no
17651   need_version=no
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17653   soname_spec='${libname}${release}${shared_ext}$major'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   ;;
17656
17657 freebsd1*)
17658   dynamic_linker=no
17659   ;;
17660
17661 freebsd* | dragonfly*)
17662   # DragonFly does not have aout.  When/if they implement a new
17663   # versioning mechanism, adjust this.
17664   if test -x /usr/bin/objformat; then
17665     objformat=`/usr/bin/objformat`
17666   else
17667     case $host_os in
17668     freebsd[123]*) objformat=aout ;;
17669     *) objformat=elf ;;
17670     esac
17671   fi
17672   version_type=freebsd-$objformat
17673   case $version_type in
17674     freebsd-elf*)
17675       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17676       need_version=no
17677       need_lib_prefix=no
17678       ;;
17679     freebsd-*)
17680       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17681       need_version=yes
17682       ;;
17683   esac
17684   shlibpath_var=LD_LIBRARY_PATH
17685   case $host_os in
17686   freebsd2*)
17687     shlibpath_overrides_runpath=yes
17688     ;;
17689   freebsd3.[01]* | freebsdelf3.[01]*)
17690     shlibpath_overrides_runpath=yes
17691     hardcode_into_libs=yes
17692     ;;
17693   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17694   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17695     shlibpath_overrides_runpath=no
17696     hardcode_into_libs=yes
17697     ;;
17698   *) # from 4.6 on, and DragonFly
17699     shlibpath_overrides_runpath=yes
17700     hardcode_into_libs=yes
17701     ;;
17702   esac
17703   ;;
17704
17705 gnu*)
17706   version_type=linux
17707   need_lib_prefix=no
17708   need_version=no
17709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17710   soname_spec='${libname}${release}${shared_ext}$major'
17711   shlibpath_var=LD_LIBRARY_PATH
17712   hardcode_into_libs=yes
17713   ;;
17714
17715 hpux9* | hpux10* | hpux11*)
17716   # Give a soname corresponding to the major version so that dld.sl refuses to
17717   # link against other versions.
17718   version_type=sunos
17719   need_lib_prefix=no
17720   need_version=no
17721   case $host_cpu in
17722   ia64*)
17723     shrext_cmds='.so'
17724     hardcode_into_libs=yes
17725     dynamic_linker="$host_os dld.so"
17726     shlibpath_var=LD_LIBRARY_PATH
17727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729     soname_spec='${libname}${release}${shared_ext}$major'
17730     if test "X$HPUX_IA64_MODE" = X32; then
17731       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17732     else
17733       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17734     fi
17735     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17736     ;;
17737   hppa*64*)
17738     shrext_cmds='.sl'
17739     hardcode_into_libs=yes
17740     dynamic_linker="$host_os dld.sl"
17741     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17742     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17744     soname_spec='${libname}${release}${shared_ext}$major'
17745     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17746     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17747     ;;
17748   *)
17749     shrext_cmds='.sl'
17750     dynamic_linker="$host_os dld.sl"
17751     shlibpath_var=SHLIB_PATH
17752     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754     soname_spec='${libname}${release}${shared_ext}$major'
17755     ;;
17756   esac
17757   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17758   postinstall_cmds='chmod 555 $lib'
17759   ;;
17760
17761 interix[3-9]*)
17762   version_type=linux
17763   need_lib_prefix=no
17764   need_version=no
17765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17766   soname_spec='${libname}${release}${shared_ext}$major'
17767   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17768   shlibpath_var=LD_LIBRARY_PATH
17769   shlibpath_overrides_runpath=no
17770   hardcode_into_libs=yes
17771   ;;
17772
17773 irix5* | irix6* | nonstopux*)
17774   case $host_os in
17775     nonstopux*) version_type=nonstopux ;;
17776     *)
17777         if test "$lt_cv_prog_gnu_ld" = yes; then
17778                 version_type=linux
17779         else
17780                 version_type=irix
17781         fi ;;
17782   esac
17783   need_lib_prefix=no
17784   need_version=no
17785   soname_spec='${libname}${release}${shared_ext}$major'
17786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17787   case $host_os in
17788   irix5* | nonstopux*)
17789     libsuff= shlibsuff=
17790     ;;
17791   *)
17792     case $LD in # libtool.m4 will add one of these switches to LD
17793     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17794       libsuff= shlibsuff= libmagic=32-bit;;
17795     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17796       libsuff=32 shlibsuff=N32 libmagic=N32;;
17797     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17798       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17799     *) libsuff= shlibsuff= libmagic=never-match;;
17800     esac
17801     ;;
17802   esac
17803   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17804   shlibpath_overrides_runpath=no
17805   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17806   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17807   hardcode_into_libs=yes
17808   ;;
17809
17810 # No shared lib support for Linux oldld, aout, or coff.
17811 linux*oldld* | linux*aout* | linux*coff*)
17812   dynamic_linker=no
17813   ;;
17814
17815 # This must be Linux ELF.
17816 linux* | k*bsd*-gnu)
17817   version_type=linux
17818   need_lib_prefix=no
17819   need_version=no
17820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821   soname_spec='${libname}${release}${shared_ext}$major'
17822   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17823   shlibpath_var=LD_LIBRARY_PATH
17824   shlibpath_overrides_runpath=no
17825   # Some binutils ld are patched to set DT_RUNPATH
17826   save_LDFLAGS=$LDFLAGS
17827   save_libdir=$libdir
17828   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17829        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17830   if test x$gcc_no_link = xyes; then
17831   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17833    { (exit 1); exit 1; }; }
17834 fi
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841
17842 int
17843 main ()
17844 {
17845
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852   (eval $ac_link) 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } &&
17859          { ac_try='test -z "$ac_c_werror_flag"
17860                          || test ! -s conftest.err'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest$ac_exeext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17873   shlibpath_overrides_runpath=yes
17874 fi
17875
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 fi
17881 rm -f conftest.err conftest.$ac_objext \
17882       conftest$ac_exeext conftest.$ac_ext
17883   LDFLAGS=$save_LDFLAGS
17884   libdir=$save_libdir
17885
17886   # This implies no fast_install, which is unacceptable.
17887   # Some rework will be needed to allow for fast_install
17888   # before this can be enabled.
17889   hardcode_into_libs=yes
17890
17891   # Append ld.so.conf contents to the search path
17892   if test -f /etc/ld.so.conf; then
17893     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' ' '`
17894     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17895   fi
17896
17897   # We used to test for /lib/ld.so.1 and disable shared libraries on
17898   # powerpc, because MkLinux only supported shared libraries with the
17899   # GNU dynamic linker.  Since this was broken with cross compilers,
17900   # most powerpc-linux boxes support dynamic linking these days and
17901   # people can always --disable-shared, the test was removed, and we
17902   # assume the GNU/Linux dynamic linker is in use.
17903   dynamic_linker='GNU/Linux ld.so'
17904   ;;
17905
17906 netbsd*)
17907   version_type=sunos
17908   need_lib_prefix=no
17909   need_version=no
17910   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17912     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17913     dynamic_linker='NetBSD (a.out) ld.so'
17914   else
17915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17916     soname_spec='${libname}${release}${shared_ext}$major'
17917     dynamic_linker='NetBSD ld.elf_so'
17918   fi
17919   shlibpath_var=LD_LIBRARY_PATH
17920   shlibpath_overrides_runpath=yes
17921   hardcode_into_libs=yes
17922   ;;
17923
17924 newsos6)
17925   version_type=linux
17926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17927   shlibpath_var=LD_LIBRARY_PATH
17928   shlibpath_overrides_runpath=yes
17929   ;;
17930
17931 *nto* | *qnx*)
17932   version_type=qnx
17933   need_lib_prefix=no
17934   need_version=no
17935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936   soname_spec='${libname}${release}${shared_ext}$major'
17937   shlibpath_var=LD_LIBRARY_PATH
17938   shlibpath_overrides_runpath=no
17939   hardcode_into_libs=yes
17940   dynamic_linker='ldqnx.so'
17941   ;;
17942
17943 openbsd*)
17944   version_type=sunos
17945   sys_lib_dlsearch_path_spec="/usr/lib"
17946   need_lib_prefix=no
17947   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17948   case $host_os in
17949     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17950     *)                          need_version=no  ;;
17951   esac
17952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17953   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17954   shlibpath_var=LD_LIBRARY_PATH
17955   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17956     case $host_os in
17957       openbsd2.[89] | openbsd2.[89].*)
17958         shlibpath_overrides_runpath=no
17959         ;;
17960       *)
17961         shlibpath_overrides_runpath=yes
17962         ;;
17963       esac
17964   else
17965     shlibpath_overrides_runpath=yes
17966   fi
17967   ;;
17968
17969 os2*)
17970   libname_spec='$name'
17971   shrext_cmds=".dll"
17972   need_lib_prefix=no
17973   library_names_spec='$libname${shared_ext} $libname.a'
17974   dynamic_linker='OS/2 ld.exe'
17975   shlibpath_var=LIBPATH
17976   ;;
17977
17978 osf3* | osf4* | osf5*)
17979   version_type=osf
17980   need_lib_prefix=no
17981   need_version=no
17982   soname_spec='${libname}${release}${shared_ext}$major'
17983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984   shlibpath_var=LD_LIBRARY_PATH
17985   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17986   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17987   ;;
17988
17989 rdos*)
17990   dynamic_linker=no
17991   ;;
17992
17993 solaris*)
17994   version_type=linux
17995   need_lib_prefix=no
17996   need_version=no
17997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998   soname_spec='${libname}${release}${shared_ext}$major'
17999   shlibpath_var=LD_LIBRARY_PATH
18000   shlibpath_overrides_runpath=yes
18001   hardcode_into_libs=yes
18002   # ldd complains unless libraries are executable
18003   postinstall_cmds='chmod +x $lib'
18004   ;;
18005
18006 sunos4*)
18007   version_type=sunos
18008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18010   shlibpath_var=LD_LIBRARY_PATH
18011   shlibpath_overrides_runpath=yes
18012   if test "$with_gnu_ld" = yes; then
18013     need_lib_prefix=no
18014   fi
18015   need_version=yes
18016   ;;
18017
18018 sysv4 | sysv4.3*)
18019   version_type=linux
18020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021   soname_spec='${libname}${release}${shared_ext}$major'
18022   shlibpath_var=LD_LIBRARY_PATH
18023   case $host_vendor in
18024     sni)
18025       shlibpath_overrides_runpath=no
18026       need_lib_prefix=no
18027       runpath_var=LD_RUN_PATH
18028       ;;
18029     siemens)
18030       need_lib_prefix=no
18031       ;;
18032     motorola)
18033       need_lib_prefix=no
18034       need_version=no
18035       shlibpath_overrides_runpath=no
18036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18037       ;;
18038   esac
18039   ;;
18040
18041 sysv4*MP*)
18042   if test -d /usr/nec ;then
18043     version_type=linux
18044     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18045     soname_spec='$libname${shared_ext}.$major'
18046     shlibpath_var=LD_LIBRARY_PATH
18047   fi
18048   ;;
18049
18050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18051   version_type=freebsd-elf
18052   need_lib_prefix=no
18053   need_version=no
18054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18055   soname_spec='${libname}${release}${shared_ext}$major'
18056   shlibpath_var=LD_LIBRARY_PATH
18057   shlibpath_overrides_runpath=yes
18058   hardcode_into_libs=yes
18059   if test "$with_gnu_ld" = yes; then
18060     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18061   else
18062     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18063     case $host_os in
18064       sco3.2v5*)
18065         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18066         ;;
18067     esac
18068   fi
18069   sys_lib_dlsearch_path_spec='/usr/lib'
18070   ;;
18071
18072 tpf*)
18073   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18074   version_type=linux
18075   need_lib_prefix=no
18076   need_version=no
18077   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078   shlibpath_var=LD_LIBRARY_PATH
18079   shlibpath_overrides_runpath=no
18080   hardcode_into_libs=yes
18081   ;;
18082
18083 uts4*)
18084   version_type=linux
18085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086   soname_spec='${libname}${release}${shared_ext}$major'
18087   shlibpath_var=LD_LIBRARY_PATH
18088   ;;
18089
18090 *)
18091   dynamic_linker=no
18092   ;;
18093 esac
18094 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18095 echo "${ECHO_T}$dynamic_linker" >&6
18096 test "$dynamic_linker" = no && can_build_shared=no
18097
18098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18099 if test "$GCC" = yes; then
18100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18101 fi
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18139 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18140 hardcode_action_GCJ=
18141 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18142    test -n "$runpath_var_GCJ" ||
18143    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18144
18145   # We can hardcode non-existent directories.
18146   if test "$hardcode_direct_GCJ" != no &&
18147      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18148      # have to relink, otherwise we might link with an installed library
18149      # when we should be linking with a yet-to-be-installed one
18150      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18151      test "$hardcode_minus_L_GCJ" != no; then
18152     # Linking always hardcodes the temporary library directory.
18153     hardcode_action_GCJ=relink
18154   else
18155     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18156     hardcode_action_GCJ=immediate
18157   fi
18158 else
18159   # We cannot hardcode anything, or else we can only hardcode existing
18160   # directories.
18161   hardcode_action_GCJ=unsupported
18162 fi
18163 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18164 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18165
18166 if test "$hardcode_action_GCJ" = relink ||
18167    test "$inherit_rpath_GCJ" = yes; then
18168   # Fast installation is not supported
18169   enable_fast_install=no
18170 elif test "$shlibpath_overrides_runpath" = yes ||
18171      test "$enable_shared" = no; then
18172   # Fast installation is not necessary
18173   enable_fast_install=needless
18174 fi
18175
18176
18177
18178
18179
18180
18181
18182 fi
18183
18184 compiler_GCJ=${GCJ-gcj}
18185 ac_ext=c
18186 ac_cpp='$CPP $CPPFLAGS'
18187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190
18191
18192 if test "x$CC" != xcc; then
18193   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18194 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18195 else
18196   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18197 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18198 fi
18199 set dummy $CC; ac_cc=`echo $2 |
18200                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18201 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18202   echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204   cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210
18211 int
18212 main ()
18213 {
18214
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 # Make sure it works both with $CC and with simple cc.
18220 # We do the test twice because some compilers refuse to overwrite an
18221 # existing .o file with -o, though they will create one.
18222 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18223 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224   (eval $ac_try) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } &&
18228    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); };
18233 then
18234   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18235   if test "x$CC" != xcc; then
18236     # Test first that cc exists at all.
18237     if { ac_try='cc -c conftest.$ac_ext >&5'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18244       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250   (eval $ac_try) 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); };
18254       then
18255         # cc works too.
18256         :
18257       else
18258         # cc exists but doesn't like -o.
18259         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18260       fi
18261     fi
18262   fi
18263 else
18264   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18265 fi
18266 rm -f conftest*
18267
18268 fi
18269 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18270   echo "$as_me:$LINENO: result: yes" >&5
18271 echo "${ECHO_T}yes" >&6
18272 else
18273   echo "$as_me:$LINENO: result: no" >&5
18274 echo "${ECHO_T}no" >&6
18275
18276 cat >>confdefs.h <<\_ACEOF
18277 #define NO_MINUS_C_MINUS_O 1
18278 _ACEOF
18279
18280 fi
18281
18282 # FIXME: we rely on the cache variable name because
18283 # there is no other way.
18284 set dummy $CC
18285 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18286 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18287    # Losing compiler, so override with the script.
18288    # FIXME: It is wrong to rewrite CC.
18289    # But if we don't then we get into trouble of one sort or another.
18290    # A longer-term fix would be to have automake use am__CC in this case,
18291    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18292    CC="$am_aux_dir/compile $CC"
18293 fi
18294
18295
18296
18297
18298 subdirs="$subdirs classpath libltdl"
18299
18300
18301 # The -no-testsuite modules omit the test subdir.
18302
18303
18304 if test -d $srcdir/testsuite; then
18305   TESTSUBDIR_TRUE=
18306   TESTSUBDIR_FALSE='#'
18307 else
18308   TESTSUBDIR_TRUE='#'
18309   TESTSUBDIR_FALSE=
18310 fi
18311
18312
18313 # Should the runtime set system properties by examining the
18314 # environment variable GCJ_PROPERTIES?
18315 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18316 if test "${enable_getenv_properties+set}" = set; then
18317   enableval="$enable_getenv_properties"
18318
18319 fi;
18320
18321 # Whether GCJ_PROPERTIES is used depends on the target.
18322 if test -z "$enable_getenv_properties"; then
18323    enable_getenv_properties=${enable_getenv_properties_default-yes}
18324 fi
18325 if test "$enable_getenv_properties" = no; then
18326
18327 cat >>confdefs.h <<\_ACEOF
18328 #define DISABLE_GETENV_PROPERTIES 1
18329 _ACEOF
18330
18331 fi
18332
18333 # Whether we should use arguments to main()
18334 if test -z "$enable_main_args"; then
18335    enable_main_args=${enable_main_args_default-yes}
18336 fi
18337 if test "$enable_main_args" = no; then
18338
18339 cat >>confdefs.h <<\_ACEOF
18340 #define DISABLE_MAIN_ARGS 1
18341 _ACEOF
18342
18343 fi
18344
18345
18346 # Should we use hashtable-based synchronization?
18347 # Currently works only for Linux X86/ia64
18348 # Typically faster and more space-efficient
18349 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18350 if test "${enable_hash_synchronization+set}" = set; then
18351   enableval="$enable_hash_synchronization"
18352
18353 fi;
18354
18355 if test -z "$enable_hash_synchronization"; then
18356    enable_hash_synchronization=$enable_hash_synchronization_default
18357 fi
18358
18359
18360 install_ecj_jar=no
18361 ECJ_BUILD_JAR=
18362 ECJ_JAR=
18363
18364 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18365 if test "${with_ecj_jar+set}" = set; then
18366   withval="$with_ecj_jar"
18367   ECJ_JAR=$withval
18368 else
18369   if test -f $multi_basedir/ecj.jar; then
18370            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18371            ECJ_JAR='$(jardir)/ecj.jar'
18372            install_ecj_jar=yes
18373          fi
18374 fi;
18375
18376
18377
18378
18379 if test "$ECJ_JAR" != ""; then
18380   BUILD_ECJ1_TRUE=
18381   BUILD_ECJ1_FALSE='#'
18382 else
18383   BUILD_ECJ1_TRUE='#'
18384   BUILD_ECJ1_FALSE=
18385 fi
18386
18387
18388
18389 if test $install_ecj_jar = yes; then
18390   INSTALL_ECJ_JAR_TRUE=
18391   INSTALL_ECJ_JAR_FALSE='#'
18392 else
18393   INSTALL_ECJ_JAR_TRUE='#'
18394   INSTALL_ECJ_JAR_FALSE=
18395 fi
18396
18397
18398
18399 # Check whether --with-java-home or --without-java-home was given.
18400 if test "${with_java_home+set}" = set; then
18401   withval="$with_java_home"
18402   JAVA_HOME="${withval}"
18403 else
18404   JAVA_HOME=""
18405 fi;
18406
18407
18408 if test ! -z "$JAVA_HOME"; then
18409   JAVA_HOME_SET_TRUE=
18410   JAVA_HOME_SET_FALSE='#'
18411 else
18412   JAVA_HOME_SET_TRUE='#'
18413   JAVA_HOME_SET_FALSE=
18414 fi
18415
18416
18417
18418 # What is the native OS API for MinGW?
18419
18420 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18421 if test "${with_win32_nlsapi+set}" = set; then
18422   withval="$with_win32_nlsapi"
18423   case "${withval}" in
18424   ansi) with_win32_nlsapi=ansi ;;
18425   unicows) with_win32_nlsapi=unicows ;;
18426   unicode) with_win32_nlsapi=unicode ;;
18427   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18428 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18429    { (exit 1); exit 1; }; } ;;
18430 esac
18431 else
18432   with_win32_nlsapi=ansi
18433 fi;
18434
18435 case "${with_win32_nlsapi}" in
18436   unicows | unicode)
18437
18438 cat >>confdefs.h <<\_ACEOF
18439 #define MINGW_LIBGCJ_UNICODE 1
18440 _ACEOF
18441
18442     ;;
18443 esac
18444
18445 # configure.host sets slow_pthread_self if the synchronization code should
18446 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18447 if test "${slow_pthread_self}" = "yes"; then
18448
18449 cat >>confdefs.h <<\_ACEOF
18450 #define SLOW_PTHREAD_SELF 1
18451 _ACEOF
18452
18453 fi
18454
18455 # Check for gc debugging.  This option is handled both here and in the GC.
18456 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18457 if test "${enable_gc_debug+set}" = set; then
18458   enableval="$enable_gc_debug"
18459    if test "$enable_gc_debug" = "yes"; then
18460
18461 cat >>confdefs.h <<\_ACEOF
18462 #define LIBGCJ_GC_DEBUG 1
18463 _ACEOF
18464
18465   fi
18466 fi;
18467
18468 # See if the user has the interpreter included.
18469 # Check whether --enable-interpreter or --disable-interpreter was given.
18470 if test "${enable_interpreter+set}" = set; then
18471   enableval="$enable_interpreter"
18472   if test "$enable_interpreter" = yes; then
18473     # This can also be set in configure.host.
18474     libgcj_interpreter=yes
18475   elif test "$enable_interpreter" = no; then
18476     libgcj_interpreter=no
18477   fi
18478 fi;
18479
18480 if test "$libgcj_interpreter" = yes; then
18481
18482 cat >>confdefs.h <<\_ACEOF
18483 #define INTERPRETER 1
18484 _ACEOF
18485
18486 fi
18487 INTERPRETER="$libgcj_interpreter"
18488
18489
18490 echo "$as_me:$LINENO: checking for exception model to use" >&5
18491 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18492 ac_ext=cc
18493 ac_cpp='$CXXCPP $CPPFLAGS'
18494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18497
18498 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18499 if test "${enable_sjlj_exceptions+set}" = set; then
18500   enableval="$enable_sjlj_exceptions"
18501   :
18502 else
18503   cat > conftest.$ac_ext << EOF
18504 #line 18504 "configure"
18505 struct S { ~S(); };
18506 void bar();
18507 void foo()
18508 {
18509   S s;
18510   bar();
18511 }
18512 EOF
18513 old_CXXFLAGS="$CXXFLAGS"
18514 CXXFLAGS=-S
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516   (eval $ac_compile) 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); }; then
18520   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18521     enable_sjlj_exceptions=yes
18522   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18523     enable_sjlj_exceptions=no
18524   fi
18525 fi
18526 CXXFLAGS="$old_CXXFLAGS"
18527 rm -f conftest*
18528 fi;
18529 if test x$enable_sjlj_exceptions = xyes; then
18530
18531 cat >>confdefs.h <<\_ACEOF
18532 #define SJLJ_EXCEPTIONS 1
18533 _ACEOF
18534
18535   ac_exception_model_name=sjlj
18536 elif test x$enable_sjlj_exceptions = xno; then
18537   ac_exception_model_name="call frame"
18538 else
18539   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18540 echo "$as_me: error: unable to detect exception model" >&2;}
18541    { (exit 1); exit 1; }; }
18542 fi
18543 ac_ext=c
18544 ac_cpp='$CPP $CPPFLAGS'
18545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548
18549 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18550 echo "${ECHO_T}$ac_exception_model_name" >&6
18551
18552 # If we are non using SJLJ exceptions, and this host does not have support
18553 # for unwinding from a signal handler, enable checked dereferences and divides.
18554 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18555   CHECKREFSPEC=-fcheck-references
18556   DIVIDESPEC=-fuse-divide-subroutine
18557   EXCEPTIONSPEC=
18558 fi
18559
18560 # See if the user wants to disable java.net.  This is the mildly
18561 # ugly way that we admit that target-side configuration sucks.
18562 # Check whether --enable-java-net or --disable-java-net was given.
18563 if test "${enable_java_net+set}" = set; then
18564   enableval="$enable_java_net"
18565
18566 fi;
18567
18568 # Whether java.net is built by default can depend on the target.
18569 if test -z "$enable_java_net"; then
18570    enable_java_net=${enable_java_net_default-yes}
18571 fi
18572 if test "$enable_java_net" = no; then
18573
18574 cat >>confdefs.h <<\_ACEOF
18575 #define DISABLE_JAVA_NET 1
18576 _ACEOF
18577
18578 fi
18579
18580 # See if the user wants to configure without libffi.  Some
18581 # architectures don't support it, and default values are set in
18582 # configure.host.
18583
18584 # Check whether --with-libffi or --without-libffi was given.
18585 if test "${with_libffi+set}" = set; then
18586   withval="$with_libffi"
18587   :
18588 else
18589   with_libffi=${with_libffi_default-yes}
18590 fi;
18591
18592 LIBFFI=
18593 LIBFFIINCS=
18594 if test "$with_libffi" != no; then
18595
18596 cat >>confdefs.h <<\_ACEOF
18597 #define USE_LIBFFI 1
18598 _ACEOF
18599
18600    LIBFFI=../libffi/libffi_convenience.la
18601    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18602 fi
18603
18604
18605
18606 # See if the user wants to disable JVMPI support.
18607 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18608 if test "${enable_jvmpi+set}" = set; then
18609   enableval="$enable_jvmpi"
18610
18611 fi;
18612
18613 if test "$enable_jvmpi" != no; then
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define ENABLE_JVMPI 1
18617 _ACEOF
18618
18619 fi
18620
18621 # If the target is an eCos system, use the appropriate eCos
18622 # I/O routines.
18623 # FIXME: this should not be a local option but a global target
18624 # system; at present there is no eCos target.
18625 TARGET_ECOS=${PROCESS-"no"}
18626
18627 # Check whether --with-ecos or --without-ecos was given.
18628 if test "${with_ecos+set}" = set; then
18629   withval="$with_ecos"
18630   TARGET_ECOS="$with_ecos"
18631
18632 fi;
18633
18634 case "$TARGET_ECOS" in
18635    no) case "$host" in
18636       *mingw*)
18637             PLATFORM=Win32
18638             PLATFORMNET=Win32
18639             PLATFORMH=win32.h
18640
18641 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18642 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18643 LD_PROG=`$CC --print-prog-name=ld`
18644 LD_VERSION=`$LD_PROG --version`
18645 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18646 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18647 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18648   LD_OK="ok"
18649 else
18650   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18651     LD_OK="ok"
18652   fi
18653 fi
18654 if test "x$LD_OK" != x; then
18655   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18656 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18657 else
18658   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18659 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18660   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18661 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18665 _ACEOF
18666
18667 fi
18668       ;;
18669       *)
18670             PLATFORM=Posix
18671             PLATFORMNET=Posix
18672             PLATFORMH=posix.h
18673       ;;
18674       esac
18675       ;;
18676    *)
18677       PLATFORM=Ecos
18678       PLATFORMNET=NoNet
18679
18680 cat >>confdefs.h <<\_ACEOF
18681 #define ECOS 1
18682 _ACEOF
18683
18684       PLATFORMH=posix.h
18685       ;;
18686 esac
18687
18688           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18689
18690
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h.  */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h.  */
18697 #include <stdint.h>
18698
18699 _ACEOF
18700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18701   $EGREP "uint32_t" >/dev/null 2>&1; then
18702
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE_INT32_DEFINED 1
18705 _ACEOF
18706
18707 fi
18708 rm -f conftest*
18709
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716 #include <inttypes.h>
18717
18718 _ACEOF
18719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18720   $EGREP "uint32_t" >/dev/null 2>&1; then
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_INT32_DEFINED 1
18724 _ACEOF
18725
18726 fi
18727 rm -f conftest*
18728
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h.  */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h.  */
18735 #include <sys/types.h>
18736
18737 _ACEOF
18738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18739   $EGREP "u_int32_t" >/dev/null 2>&1; then
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define HAVE_BSD_INT32_DEFINED 1
18743 _ACEOF
18744
18745 fi
18746 rm -f conftest*
18747
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754 #include <sys/config.h>
18755
18756 _ACEOF
18757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18758   $EGREP "u_int32_t" >/dev/null 2>&1; then
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE_BSD_INT32_DEFINED 1
18762 _ACEOF
18763
18764 fi
18765 rm -f conftest*
18766
18767
18768
18769
18770 if test "$PLATFORM" = Win32; then
18771   USING_WIN32_PLATFORM_TRUE=
18772   USING_WIN32_PLATFORM_FALSE='#'
18773 else
18774   USING_WIN32_PLATFORM_TRUE='#'
18775   USING_WIN32_PLATFORM_FALSE=
18776 fi
18777
18778
18779
18780 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18781   USING_POSIX_PLATFORM_TRUE=
18782   USING_POSIX_PLATFORM_FALSE='#'
18783 else
18784   USING_POSIX_PLATFORM_TRUE='#'
18785   USING_POSIX_PLATFORM_FALSE=
18786 fi
18787
18788
18789 case "$host" in
18790   *-darwin*) DARWIN_CRT=true ;;
18791   *) DARWIN_CRT=false ;;
18792 esac
18793
18794
18795 if $DARWIN_CRT; then
18796   USING_DARWIN_CRT_TRUE=
18797   USING_DARWIN_CRT_FALSE='#'
18798 else
18799   USING_DARWIN_CRT_TRUE='#'
18800   USING_DARWIN_CRT_FALSE=
18801 fi
18802
18803
18804 # This may not be defined in a non-ANS conformant embedded system.
18805 # FIXME: Should these case a runtime exception in that case?
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h.  */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h.  */
18812 #include <time.h>
18813
18814 _ACEOF
18815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18816   $EGREP "localtime" >/dev/null 2>&1; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE_LOCALTIME 1
18820 _ACEOF
18821
18822 fi
18823 rm -f conftest*
18824
18825
18826 # Create the subdirectory for natFile.cc, or the attempt
18827 # to create the link will fail.
18828 test -d java || mkdir java
18829 test -d java/io || mkdir java/io
18830 test -d gnu || mkdir gnu
18831           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18832
18833
18834 # Likewise for natConcreteProcess.cc.
18835 test -d java/lang || mkdir java/lang
18836           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18837
18838
18839 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18840 test -d java/net || mkdir java/net
18841           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18842
18843           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18844
18845
18846 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18847 test -d gnu/java || mkdir gnu/java
18848 test -d gnu/java/net || mkdir gnu/java/net
18849           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18850
18851           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18852
18853
18854 # Likewise for natVMPipe.cc and natVMSelector.cc.
18855 test -d gnu/java/nio || mkdir gnu/java/nio
18856           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18857
18858           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18859
18860
18861 # Likewise for natFileChannelImpl.cc
18862 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18863           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18864
18865
18866 case "${host}" in
18867     *mingw*)
18868       SYSTEMSPEC="-lgdi32 -lws2_32"
18869       if test "${with_win32_nlsapi}" = "unicows"; then
18870         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18871       fi
18872     ;;
18873     *)
18874       SYSTEMSPEC=
18875     ;;
18876 esac
18877
18878
18879 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
18880
18881
18882
18883 # Check whether --with-system-zlib or --without-system-zlib was given.
18884 if test "${with_system_zlib+set}" = set; then
18885   withval="$with_system_zlib"
18886
18887 fi;
18888 ZLIBSPEC=
18889
18890 ZLIBTESTSPEC=
18891
18892
18893 echo "$as_me:$LINENO: checking for X" >&5
18894 echo $ECHO_N "checking for X... $ECHO_C" >&6
18895
18896
18897 # Check whether --with-x or --without-x was given.
18898 if test "${with_x+set}" = set; then
18899   withval="$with_x"
18900
18901 fi;
18902 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18903 if test "x$with_x" = xno; then
18904   # The user explicitly disabled X.
18905   have_x=disabled
18906 else
18907   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18908     # Both variables are already set.
18909     have_x=yes
18910   else
18911     if test "${ac_cv_have_x+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   # One or both of the vars are not set, and there is no cached value.
18915 ac_x_includes=no ac_x_libraries=no
18916 rm -fr conftest.dir
18917 if mkdir conftest.dir; then
18918   cd conftest.dir
18919   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18920   cat >Imakefile <<'_ACEOF'
18921 acfindx:
18922         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18923 _ACEOF
18924   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18925     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18926     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18927     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18928     for ac_extension in a so sl; do
18929       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18930          test -f $ac_im_libdir/libX11.$ac_extension; then
18931         ac_im_usrlibdir=$ac_im_libdir; break
18932       fi
18933     done
18934     # Screen out bogus values from the imake configuration.  They are
18935     # bogus both because they are the default anyway, and because
18936     # using them would break gcc on systems where it needs fixed includes.
18937     case $ac_im_incroot in
18938         /usr/include) ;;
18939         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18940     esac
18941     case $ac_im_usrlibdir in
18942         /usr/lib | /lib) ;;
18943         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18944     esac
18945   fi
18946   cd ..
18947   rm -fr conftest.dir
18948 fi
18949
18950 # Standard set of common directories for X headers.
18951 # Check X11 before X11Rn because it is often a symlink to the current release.
18952 ac_x_header_dirs='
18953 /usr/X11/include
18954 /usr/X11R6/include
18955 /usr/X11R5/include
18956 /usr/X11R4/include
18957
18958 /usr/include/X11
18959 /usr/include/X11R6
18960 /usr/include/X11R5
18961 /usr/include/X11R4
18962
18963 /usr/local/X11/include
18964 /usr/local/X11R6/include
18965 /usr/local/X11R5/include
18966 /usr/local/X11R4/include
18967
18968 /usr/local/include/X11
18969 /usr/local/include/X11R6
18970 /usr/local/include/X11R5
18971 /usr/local/include/X11R4
18972
18973 /usr/X386/include
18974 /usr/x386/include
18975 /usr/XFree86/include/X11
18976
18977 /usr/include
18978 /usr/local/include
18979 /usr/unsupported/include
18980 /usr/athena/include
18981 /usr/local/x11r5/include
18982 /usr/lpp/Xamples/include
18983
18984 /usr/openwin/include
18985 /usr/openwin/share/include'
18986
18987 if test "$ac_x_includes" = no; then
18988   # Guess where to find include files, by looking for Intrinsic.h.
18989   # First, try using that file with no special directory specified.
18990   cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h.  */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h.  */
18996 #include <X11/Intrinsic.h>
18997 _ACEOF
18998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19000   ac_status=$?
19001   grep -v '^ *+' conftest.er1 >conftest.err
19002   rm -f conftest.er1
19003   cat conftest.err >&5
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); } >/dev/null; then
19006   if test -s conftest.err; then
19007     ac_cpp_err=$ac_c_preproc_warn_flag
19008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19009   else
19010     ac_cpp_err=
19011   fi
19012 else
19013   ac_cpp_err=yes
19014 fi
19015 if test -z "$ac_cpp_err"; then
19016   # We can compile using X headers with no special include directory.
19017 ac_x_includes=
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022   for ac_dir in $ac_x_header_dirs; do
19023   if test -r "$ac_dir/X11/Intrinsic.h"; then
19024     ac_x_includes=$ac_dir
19025     break
19026   fi
19027 done
19028 fi
19029 rm -f conftest.err conftest.$ac_ext
19030 fi # $ac_x_includes = no
19031
19032 if test "$ac_x_libraries" = no; then
19033   # Check for the libraries.
19034   # See if we find them without any special options.
19035   # Don't add to $LIBS permanently.
19036   ac_save_LIBS=$LIBS
19037   LIBS="-lXt $LIBS"
19038   if test x$gcc_no_link = xyes; then
19039   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19041    { (exit 1); exit 1; }; }
19042 fi
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h.  */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h.  */
19049 #include <X11/Intrinsic.h>
19050 int
19051 main ()
19052 {
19053 XtMalloc (0)
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060   (eval $ac_link) 2>conftest.er1
19061   ac_status=$?
19062   grep -v '^ *+' conftest.er1 >conftest.err
19063   rm -f conftest.er1
19064   cat conftest.err >&5
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } &&
19067          { ac_try='test -z "$ac_c_werror_flag"
19068                          || test ! -s conftest.err'
19069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070   (eval $ac_try) 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; } &&
19074          { ac_try='test -s conftest$ac_exeext'
19075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076   (eval $ac_try) 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; }; then
19080   LIBS=$ac_save_LIBS
19081 # We can link X programs with no special library path.
19082 ac_x_libraries=
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 LIBS=$ac_save_LIBS
19088 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19089 do
19090   # Don't even attempt the hair of trying to link an X program!
19091   for ac_extension in a so sl; do
19092     if test -r $ac_dir/libXt.$ac_extension; then
19093       ac_x_libraries=$ac_dir
19094       break 2
19095     fi
19096   done
19097 done
19098 fi
19099 rm -f conftest.err conftest.$ac_objext \
19100       conftest$ac_exeext conftest.$ac_ext
19101 fi # $ac_x_libraries = no
19102
19103 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19104   # Didn't find X anywhere.  Cache the known absence of X.
19105   ac_cv_have_x="have_x=no"
19106 else
19107   # Record where we found X for the cache.
19108   ac_cv_have_x="have_x=yes \
19109                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19110 fi
19111 fi
19112
19113   fi
19114   eval "$ac_cv_have_x"
19115 fi # $with_x != no
19116
19117 if test "$have_x" != yes; then
19118   echo "$as_me:$LINENO: result: $have_x" >&5
19119 echo "${ECHO_T}$have_x" >&6
19120   no_x=yes
19121 else
19122   # If each of the values was on the command line, it overrides each guess.
19123   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19124   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19125   # Update the cache value to reflect the command line values.
19126   ac_cv_have_x="have_x=yes \
19127                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19128   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19129 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19130 fi
19131
19132 if test "$no_x" = yes; then
19133   # Not all programs may use this symbol, but it does not hurt to define it.
19134
19135 cat >>confdefs.h <<\_ACEOF
19136 #define X_DISPLAY_MISSING 1
19137 _ACEOF
19138
19139   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19140 else
19141   if test -n "$x_includes"; then
19142     X_CFLAGS="$X_CFLAGS -I$x_includes"
19143   fi
19144
19145   # It would also be nice to do this for all -L options, not just this one.
19146   if test -n "$x_libraries"; then
19147     X_LIBS="$X_LIBS -L$x_libraries"
19148     # For Solaris; some versions of Sun CC require a space after -R and
19149     # others require no space.  Words are not sufficient . . . .
19150     case `(uname -sr) 2>/dev/null` in
19151     "SunOS 5"*)
19152       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19153 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19154       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19155       if test x$gcc_no_link = xyes; then
19156   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19158    { (exit 1); exit 1; }; }
19159 fi
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166
19167 int
19168 main ()
19169 {
19170
19171   ;
19172   return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19177   (eval $ac_link) 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } &&
19184          { ac_try='test -z "$ac_c_werror_flag"
19185                          || test ! -s conftest.err'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest$ac_exeext'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; }; then
19197   ac_R_nospace=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_R_nospace=no
19203 fi
19204 rm -f conftest.err conftest.$ac_objext \
19205       conftest$ac_exeext conftest.$ac_ext
19206       if test $ac_R_nospace = yes; then
19207         echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19209         X_LIBS="$X_LIBS -R$x_libraries"
19210       else
19211         LIBS="$ac_xsave_LIBS -R $x_libraries"
19212         if test x$gcc_no_link = xyes; then
19213   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19215    { (exit 1); exit 1; }; }
19216 fi
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223
19224 int
19225 main ()
19226 {
19227
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234   (eval $ac_link) 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag"
19242                          || test ! -s conftest.err'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; } &&
19248          { ac_try='test -s conftest$ac_exeext'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_R_space=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 ac_R_space=no
19260 fi
19261 rm -f conftest.err conftest.$ac_objext \
19262       conftest$ac_exeext conftest.$ac_ext
19263         if test $ac_R_space = yes; then
19264           echo "$as_me:$LINENO: result: yes" >&5
19265 echo "${ECHO_T}yes" >&6
19266           X_LIBS="$X_LIBS -R $x_libraries"
19267         else
19268           echo "$as_me:$LINENO: result: neither works" >&5
19269 echo "${ECHO_T}neither works" >&6
19270         fi
19271       fi
19272       LIBS=$ac_xsave_LIBS
19273     esac
19274   fi
19275
19276   # Check for system-dependent libraries X programs must link with.
19277   # Do this before checking for the system-independent R6 libraries
19278   # (-lICE), since we may need -lsocket or whatever for X linking.
19279
19280   if test "$ISC" = yes; then
19281     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19282   else
19283     # Martyn Johnson says this is needed for Ultrix, if the X
19284     # libraries were built with DECnet support.  And Karl Berry says
19285     # the Alpha needs dnet_stub (dnet does not exist).
19286     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19287     if test x$gcc_no_link = xyes; then
19288   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19290    { (exit 1); exit 1; }; }
19291 fi
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298
19299 /* Override any gcc2 internal prototype to avoid an error.  */
19300 #ifdef __cplusplus
19301 extern "C"
19302 #endif
19303 /* We use char because int might match the return type of a gcc2
19304    builtin and then its argument prototype would still apply.  */
19305 char XOpenDisplay ();
19306 int
19307 main ()
19308 {
19309 XOpenDisplay ();
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316   (eval $ac_link) 2>conftest.er1
19317   ac_status=$?
19318   grep -v '^ *+' conftest.er1 >conftest.err
19319   rm -f conftest.er1
19320   cat conftest.err >&5
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } &&
19323          { ac_try='test -z "$ac_c_werror_flag"
19324                          || test ! -s conftest.err'
19325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326   (eval $ac_try) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; } &&
19330          { ac_try='test -s conftest$ac_exeext'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; }; then
19336   :
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19342 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19343 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-ldnet  $LIBS"
19348 if test x$gcc_no_link = xyes; then
19349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19351    { (exit 1); exit 1; }; }
19352 fi
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359
19360 /* Override any gcc2 internal prototype to avoid an error.  */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 /* We use char because int might match the return type of a gcc2
19365    builtin and then its argument prototype would still apply.  */
19366 char dnet_ntoa ();
19367 int
19368 main ()
19369 {
19370 dnet_ntoa ();
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377   (eval $ac_link) 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag"
19385                          || test ! -s conftest.err'
19386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387   (eval $ac_try) 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; } &&
19391          { ac_try='test -s conftest$ac_exeext'
19392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393   (eval $ac_try) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_lib_dnet_dnet_ntoa=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_lib_dnet_dnet_ntoa=no
19403 fi
19404 rm -f conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19407 fi
19408 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19409 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19410 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19411   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19412 fi
19413
19414     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19415       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19416 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19417 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-ldnet_stub  $LIBS"
19422 if test x$gcc_no_link = xyes; then
19423   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19425    { (exit 1); exit 1; }; }
19426 fi
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433
19434 /* Override any gcc2 internal prototype to avoid an error.  */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 /* We use char because int might match the return type of a gcc2
19439    builtin and then its argument prototype would still apply.  */
19440 char dnet_ntoa ();
19441 int
19442 main ()
19443 {
19444 dnet_ntoa ();
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451   (eval $ac_link) 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag"
19459                          || test ! -s conftest.err'
19460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461   (eval $ac_try) 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; } &&
19465          { ac_try='test -s conftest$ac_exeext'
19466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467   (eval $ac_try) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; }; then
19471   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 ac_cv_lib_dnet_stub_dnet_ntoa=no
19477 fi
19478 rm -f conftest.err conftest.$ac_objext \
19479       conftest$ac_exeext conftest.$ac_ext
19480 LIBS=$ac_check_lib_save_LIBS
19481 fi
19482 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19483 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19484 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19485   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19486 fi
19487
19488     fi
19489 fi
19490 rm -f conftest.err conftest.$ac_objext \
19491       conftest$ac_exeext conftest.$ac_ext
19492     LIBS="$ac_xsave_LIBS"
19493
19494     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19495     # to get the SysV transport functions.
19496     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19497     # needs -lnsl.
19498     # The nsl library prevents programs from opening the X display
19499     # on Irix 5.2, according to T.E. Dickey.
19500     # The functions gethostbyname, getservbyname, and inet_addr are
19501     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19502     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19503 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19504 if test "${ac_cv_func_gethostbyname+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   if test x$gcc_no_link = xyes; then
19508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19510    { (exit 1); exit 1; }; }
19511 fi
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19520 #define gethostbyname innocuous_gethostbyname
19521
19522 /* System header to define __stub macros and hopefully few prototypes,
19523     which can conflict with char gethostbyname (); below.
19524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19525     <limits.h> exists even on freestanding compilers.  */
19526
19527 #ifdef __STDC__
19528 # include <limits.h>
19529 #else
19530 # include <assert.h>
19531 #endif
19532
19533 #undef gethostbyname
19534
19535 /* Override any gcc2 internal prototype to avoid an error.  */
19536 #ifdef __cplusplus
19537 extern "C"
19538 {
19539 #endif
19540 /* We use char because int might match the return type of a gcc2
19541    builtin and then its argument prototype would still apply.  */
19542 char gethostbyname ();
19543 /* The GNU C library defines this for functions which it implements
19544     to always fail with ENOSYS.  Some functions are actually named
19545     something starting with __ and the normal name is an alias.  */
19546 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19547 choke me
19548 #else
19549 char (*f) () = gethostbyname;
19550 #endif
19551 #ifdef __cplusplus
19552 }
19553 #endif
19554
19555 int
19556 main ()
19557 {
19558 return f != gethostbyname;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565   (eval $ac_link) 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag"
19573                          || test ! -s conftest.err'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest$ac_exeext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   ac_cv_func_gethostbyname=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 ac_cv_func_gethostbyname=no
19591 fi
19592 rm -f conftest.err conftest.$ac_objext \
19593       conftest$ac_exeext conftest.$ac_ext
19594 fi
19595 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19596 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19597
19598     if test $ac_cv_func_gethostbyname = no; then
19599       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19600 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19601 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19602   echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604   ac_check_lib_save_LIBS=$LIBS
19605 LIBS="-lnsl  $LIBS"
19606 if test x$gcc_no_link = xyes; then
19607   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19609    { (exit 1); exit 1; }; }
19610 fi
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617
19618 /* Override any gcc2 internal prototype to avoid an error.  */
19619 #ifdef __cplusplus
19620 extern "C"
19621 #endif
19622 /* We use char because int might match the return type of a gcc2
19623    builtin and then its argument prototype would still apply.  */
19624 char gethostbyname ();
19625 int
19626 main ()
19627 {
19628 gethostbyname ();
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635   (eval $ac_link) 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag"
19643                          || test ! -s conftest.err'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; } &&
19649          { ac_try='test -s conftest$ac_exeext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_cv_lib_nsl_gethostbyname=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660 ac_cv_lib_nsl_gethostbyname=no
19661 fi
19662 rm -f conftest.err conftest.$ac_objext \
19663       conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19665 fi
19666 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19667 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19668 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19669   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19670 fi
19671
19672       if test $ac_cv_lib_nsl_gethostbyname = no; then
19673         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19674 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19675 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lbsd  $LIBS"
19680 if test x$gcc_no_link = xyes; then
19681   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19683    { (exit 1); exit 1; }; }
19684 fi
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691
19692 /* Override any gcc2 internal prototype to avoid an error.  */
19693 #ifdef __cplusplus
19694 extern "C"
19695 #endif
19696 /* We use char because int might match the return type of a gcc2
19697    builtin and then its argument prototype would still apply.  */
19698 char gethostbyname ();
19699 int
19700 main ()
19701 {
19702 gethostbyname ();
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19709   (eval $ac_link) 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_c_werror_flag"
19717                          || test ! -s conftest.err'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; } &&
19723          { ac_try='test -s conftest$ac_exeext'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   ac_cv_lib_bsd_gethostbyname=yes
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_cv_lib_bsd_gethostbyname=no
19735 fi
19736 rm -f conftest.err conftest.$ac_objext \
19737       conftest$ac_exeext conftest.$ac_ext
19738 LIBS=$ac_check_lib_save_LIBS
19739 fi
19740 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19741 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19742 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19743   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19744 fi
19745
19746       fi
19747     fi
19748
19749     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19750     # socket/setsockopt and other routines are undefined under SCO ODT
19751     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19752     # on later versions), says Simon Leinen: it contains gethostby*
19753     # variants that don't use the name server (or something).  -lsocket
19754     # must be given before -lnsl if both are needed.  We assume that
19755     # if connect needs -lnsl, so does gethostbyname.
19756     echo "$as_me:$LINENO: checking for connect" >&5
19757 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19758 if test "${ac_cv_func_connect+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   if test x$gcc_no_link = xyes; then
19762   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19764    { (exit 1); exit 1; }; }
19765 fi
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19774 #define connect innocuous_connect
19775
19776 /* System header to define __stub macros and hopefully few prototypes,
19777     which can conflict with char connect (); below.
19778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19779     <limits.h> exists even on freestanding compilers.  */
19780
19781 #ifdef __STDC__
19782 # include <limits.h>
19783 #else
19784 # include <assert.h>
19785 #endif
19786
19787 #undef connect
19788
19789 /* Override any gcc2 internal prototype to avoid an error.  */
19790 #ifdef __cplusplus
19791 extern "C"
19792 {
19793 #endif
19794 /* We use char because int might match the return type of a gcc2
19795    builtin and then its argument prototype would still apply.  */
19796 char connect ();
19797 /* The GNU C library defines this for functions which it implements
19798     to always fail with ENOSYS.  Some functions are actually named
19799     something starting with __ and the normal name is an alias.  */
19800 #if defined (__stub_connect) || defined (__stub___connect)
19801 choke me
19802 #else
19803 char (*f) () = connect;
19804 #endif
19805 #ifdef __cplusplus
19806 }
19807 #endif
19808
19809 int
19810 main ()
19811 {
19812 return f != connect;
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819   (eval $ac_link) 2>conftest.er1
19820   ac_status=$?
19821   grep -v '^ *+' conftest.er1 >conftest.err
19822   rm -f conftest.er1
19823   cat conftest.err >&5
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } &&
19826          { ac_try='test -z "$ac_c_werror_flag"
19827                          || test ! -s conftest.err'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; } &&
19833          { ac_try='test -s conftest$ac_exeext'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; }; then
19839   ac_cv_func_connect=yes
19840 else
19841   echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 ac_cv_func_connect=no
19845 fi
19846 rm -f conftest.err conftest.$ac_objext \
19847       conftest$ac_exeext conftest.$ac_ext
19848 fi
19849 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19850 echo "${ECHO_T}$ac_cv_func_connect" >&6
19851
19852     if test $ac_cv_func_connect = no; then
19853       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19854 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19855 if test "${ac_cv_lib_socket_connect+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   ac_check_lib_save_LIBS=$LIBS
19859 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19860 if test x$gcc_no_link = xyes; then
19861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19863    { (exit 1); exit 1; }; }
19864 fi
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871
19872 /* Override any gcc2 internal prototype to avoid an error.  */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 /* We use char because int might match the return type of a gcc2
19877    builtin and then its argument prototype would still apply.  */
19878 char connect ();
19879 int
19880 main ()
19881 {
19882 connect ();
19883   ;
19884   return 0;
19885 }
19886 _ACEOF
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19889   (eval $ac_link) 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } &&
19896          { ac_try='test -z "$ac_c_werror_flag"
19897                          || test ! -s conftest.err'
19898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899   (eval $ac_try) 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; } &&
19903          { ac_try='test -s conftest$ac_exeext'
19904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905   (eval $ac_try) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; }; then
19909   ac_cv_lib_socket_connect=yes
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_cv_lib_socket_connect=no
19915 fi
19916 rm -f conftest.err conftest.$ac_objext \
19917       conftest$ac_exeext conftest.$ac_ext
19918 LIBS=$ac_check_lib_save_LIBS
19919 fi
19920 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19921 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19922 if test $ac_cv_lib_socket_connect = yes; then
19923   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19924 fi
19925
19926     fi
19927
19928     # Guillermo Gomez says -lposix is necessary on A/UX.
19929     echo "$as_me:$LINENO: checking for remove" >&5
19930 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19931 if test "${ac_cv_func_remove+set}" = set; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   if test x$gcc_no_link = xyes; then
19935   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19937    { (exit 1); exit 1; }; }
19938 fi
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h.  */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h.  */
19945 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19947 #define remove innocuous_remove
19948
19949 /* System header to define __stub macros and hopefully few prototypes,
19950     which can conflict with char remove (); below.
19951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19952     <limits.h> exists even on freestanding compilers.  */
19953
19954 #ifdef __STDC__
19955 # include <limits.h>
19956 #else
19957 # include <assert.h>
19958 #endif
19959
19960 #undef remove
19961
19962 /* Override any gcc2 internal prototype to avoid an error.  */
19963 #ifdef __cplusplus
19964 extern "C"
19965 {
19966 #endif
19967 /* We use char because int might match the return type of a gcc2
19968    builtin and then its argument prototype would still apply.  */
19969 char remove ();
19970 /* The GNU C library defines this for functions which it implements
19971     to always fail with ENOSYS.  Some functions are actually named
19972     something starting with __ and the normal name is an alias.  */
19973 #if defined (__stub_remove) || defined (__stub___remove)
19974 choke me
19975 #else
19976 char (*f) () = remove;
19977 #endif
19978 #ifdef __cplusplus
19979 }
19980 #endif
19981
19982 int
19983 main ()
19984 {
19985 return f != remove;
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19992   (eval $ac_link) 2>conftest.er1
19993   ac_status=$?
19994   grep -v '^ *+' conftest.er1 >conftest.err
19995   rm -f conftest.er1
19996   cat conftest.err >&5
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); } &&
19999          { ac_try='test -z "$ac_c_werror_flag"
20000                          || test ! -s conftest.err'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest$ac_exeext'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   ac_cv_func_remove=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_cv_func_remove=no
20018 fi
20019 rm -f conftest.err conftest.$ac_objext \
20020       conftest$ac_exeext conftest.$ac_ext
20021 fi
20022 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20023 echo "${ECHO_T}$ac_cv_func_remove" >&6
20024
20025     if test $ac_cv_func_remove = no; then
20026       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20027 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20028 if test "${ac_cv_lib_posix_remove+set}" = set; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   ac_check_lib_save_LIBS=$LIBS
20032 LIBS="-lposix  $LIBS"
20033 if test x$gcc_no_link = xyes; then
20034   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20036    { (exit 1); exit 1; }; }
20037 fi
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044
20045 /* Override any gcc2 internal prototype to avoid an error.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 /* We use char because int might match the return type of a gcc2
20050    builtin and then its argument prototype would still apply.  */
20051 char remove ();
20052 int
20053 main ()
20054 {
20055 remove ();
20056   ;
20057   return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext conftest$ac_exeext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20062   (eval $ac_link) 2>conftest.er1
20063   ac_status=$?
20064   grep -v '^ *+' conftest.er1 >conftest.err
20065   rm -f conftest.er1
20066   cat conftest.err >&5
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -z "$ac_c_werror_flag"
20070                          || test ! -s conftest.err'
20071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072   (eval $ac_try) 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; } &&
20076          { ac_try='test -s conftest$ac_exeext'
20077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078   (eval $ac_try) 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; }; then
20082   ac_cv_lib_posix_remove=yes
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 ac_cv_lib_posix_remove=no
20088 fi
20089 rm -f conftest.err conftest.$ac_objext \
20090       conftest$ac_exeext conftest.$ac_ext
20091 LIBS=$ac_check_lib_save_LIBS
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20094 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20095 if test $ac_cv_lib_posix_remove = yes; then
20096   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20097 fi
20098
20099     fi
20100
20101     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20102     echo "$as_me:$LINENO: checking for shmat" >&5
20103 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20104 if test "${ac_cv_func_shmat+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   if test x$gcc_no_link = xyes; then
20108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20110    { (exit 1); exit 1; }; }
20111 fi
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20120 #define shmat innocuous_shmat
20121
20122 /* System header to define __stub macros and hopefully few prototypes,
20123     which can conflict with char shmat (); below.
20124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125     <limits.h> exists even on freestanding compilers.  */
20126
20127 #ifdef __STDC__
20128 # include <limits.h>
20129 #else
20130 # include <assert.h>
20131 #endif
20132
20133 #undef shmat
20134
20135 /* Override any gcc2 internal prototype to avoid an error.  */
20136 #ifdef __cplusplus
20137 extern "C"
20138 {
20139 #endif
20140 /* We use char because int might match the return type of a gcc2
20141    builtin and then its argument prototype would still apply.  */
20142 char shmat ();
20143 /* The GNU C library defines this for functions which it implements
20144     to always fail with ENOSYS.  Some functions are actually named
20145     something starting with __ and the normal name is an alias.  */
20146 #if defined (__stub_shmat) || defined (__stub___shmat)
20147 choke me
20148 #else
20149 char (*f) () = shmat;
20150 #endif
20151 #ifdef __cplusplus
20152 }
20153 #endif
20154
20155 int
20156 main ()
20157 {
20158 return f != shmat;
20159   ;
20160   return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165   (eval $ac_link) 2>conftest.er1
20166   ac_status=$?
20167   grep -v '^ *+' conftest.er1 >conftest.err
20168   rm -f conftest.er1
20169   cat conftest.err >&5
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } &&
20172          { ac_try='test -z "$ac_c_werror_flag"
20173                          || test ! -s conftest.err'
20174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175   (eval $ac_try) 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; } &&
20179          { ac_try='test -s conftest$ac_exeext'
20180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181   (eval $ac_try) 2>&5
20182   ac_status=$?
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); }; }; then
20185   ac_cv_func_shmat=yes
20186 else
20187   echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190 ac_cv_func_shmat=no
20191 fi
20192 rm -f conftest.err conftest.$ac_objext \
20193       conftest$ac_exeext conftest.$ac_ext
20194 fi
20195 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20196 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20197
20198     if test $ac_cv_func_shmat = no; then
20199       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20200 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20201 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204   ac_check_lib_save_LIBS=$LIBS
20205 LIBS="-lipc  $LIBS"
20206 if test x$gcc_no_link = xyes; then
20207   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20209    { (exit 1); exit 1; }; }
20210 fi
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217
20218 /* Override any gcc2 internal prototype to avoid an error.  */
20219 #ifdef __cplusplus
20220 extern "C"
20221 #endif
20222 /* We use char because int might match the return type of a gcc2
20223    builtin and then its argument prototype would still apply.  */
20224 char shmat ();
20225 int
20226 main ()
20227 {
20228 shmat ();
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20235   (eval $ac_link) 2>conftest.er1
20236   ac_status=$?
20237   grep -v '^ *+' conftest.er1 >conftest.err
20238   rm -f conftest.er1
20239   cat conftest.err >&5
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); } &&
20242          { ac_try='test -z "$ac_c_werror_flag"
20243                          || test ! -s conftest.err'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; } &&
20249          { ac_try='test -s conftest$ac_exeext'
20250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251   (eval $ac_try) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   ac_cv_lib_ipc_shmat=yes
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 ac_cv_lib_ipc_shmat=no
20261 fi
20262 rm -f conftest.err conftest.$ac_objext \
20263       conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20265 fi
20266 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20267 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20268 if test $ac_cv_lib_ipc_shmat = yes; then
20269   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20270 fi
20271
20272     fi
20273   fi
20274
20275   # Check for libraries that X11R6 Xt/Xaw programs need.
20276   ac_save_LDFLAGS=$LDFLAGS
20277   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20278   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20279   # check for ICE first), but we must link in the order -lSM -lICE or
20280   # we get undefined symbols.  So assume we have SM if we have ICE.
20281   # These have to be linked with before -lX11, unlike the other
20282   # libraries we check for below, so use a different variable.
20283   # John Interrante, Karl Berry
20284   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20285 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20286 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   ac_check_lib_save_LIBS=$LIBS
20290 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20291 if test x$gcc_no_link = xyes; then
20292   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20294    { (exit 1); exit 1; }; }
20295 fi
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302
20303 /* Override any gcc2 internal prototype to avoid an error.  */
20304 #ifdef __cplusplus
20305 extern "C"
20306 #endif
20307 /* We use char because int might match the return type of a gcc2
20308    builtin and then its argument prototype would still apply.  */
20309 char IceConnectionNumber ();
20310 int
20311 main ()
20312 {
20313 IceConnectionNumber ();
20314   ;
20315   return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320   (eval $ac_link) 2>conftest.er1
20321   ac_status=$?
20322   grep -v '^ *+' conftest.er1 >conftest.err
20323   rm -f conftest.er1
20324   cat conftest.err >&5
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); } &&
20327          { ac_try='test -z "$ac_c_werror_flag"
20328                          || test ! -s conftest.err'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; } &&
20334          { ac_try='test -s conftest$ac_exeext'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_cv_lib_ICE_IceConnectionNumber=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_lib_ICE_IceConnectionNumber=no
20346 fi
20347 rm -f conftest.err conftest.$ac_objext \
20348       conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20350 fi
20351 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20352 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20353 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20354   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20355 fi
20356
20357   LDFLAGS=$ac_save_LDFLAGS
20358
20359 fi
20360
20361
20362 # FIXME: this should be _libs on some hosts.
20363 libsubdir=.libs
20364
20365 # extra LD Flags which are required for targets
20366 case "${host}" in
20367 *-*-darwin[0-7].*)
20368     # For now we have to disable it on darwin[8-9] because it slows down
20369     # the linking phase. A possible bug in ld?
20370     # on Darwin -single_module speeds up loading of the dynamic libraries.
20371     extra_ldflags_libjava=-Wl,-single_module
20372     ;;
20373 esac
20374
20375
20376 # Allow the GC to be disabled.  Can be useful when debugging.
20377 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20378 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20379 # Check whether --enable-java-gc or --disable-java-gc was given.
20380 if test "${enable_java_gc+set}" = set; then
20381   enableval="$enable_java_gc"
20382   GC=$enableval
20383 else
20384   GC=boehm
20385 fi;
20386 GCLIBS=
20387 GCINCS=
20388 GCDEPS=
20389 GCSPEC=
20390 JC1GCSPEC=
20391 GCTESTSPEC=
20392 case "$GC" in
20393  boehm)
20394     echo "$as_me:$LINENO: result: boehm" >&5
20395 echo "${ECHO_T}boehm" >&6
20396     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20397     JC1GCSPEC='-fuse-boehm-gc'
20398     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20399     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20400     GCOBJS=boehm.lo
20401     GCHDR=boehm-gc.h
20402     # The POSIX thread support needs to know this.
20403
20404 cat >>confdefs.h <<\_ACEOF
20405 #define HAVE_BOEHM_GC 1
20406 _ACEOF
20407
20408     ;;
20409  no)
20410     echo "$as_me:$LINENO: result: none" >&5
20411 echo "${ECHO_T}none" >&6
20412     GCHDR=no-gc.h
20413     ;;
20414  *)
20415     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20416 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20417    { (exit 1); exit 1; }; }
20418     ;;
20419 esac
20420
20421
20422
20423
20424
20425
20426           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20427
20428
20429
20430 if test "$GC" = boehm; then
20431   USING_BOEHMGC_TRUE=
20432   USING_BOEHMGC_FALSE='#'
20433 else
20434   USING_BOEHMGC_TRUE='#'
20435   USING_BOEHMGC_FALSE=
20436 fi
20437
20438
20439
20440 if test "$GC" = no; then
20441   USING_NOGC_TRUE=
20442   USING_NOGC_FALSE='#'
20443 else
20444   USING_NOGC_TRUE='#'
20445   USING_NOGC_FALSE=
20446 fi
20447
20448
20449
20450 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20451 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20452 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20453 echo "$as_me:$LINENO: result: $THREADS" >&5
20454 echo "${ECHO_T}$THREADS" >&6
20455
20456 case "$THREADS" in
20457  no | none | single)
20458     THREADS=none
20459     ;;
20460  posix | posix95 | pthreads)
20461     THREADS=posix
20462     case "$host" in
20463      *-*-linux*)
20464
20465 cat >>confdefs.h <<\_ACEOF
20466 #define LINUX_THREADS 1
20467 _ACEOF
20468
20469         ;;
20470     esac
20471     ;;
20472  win32)
20473     ;;
20474  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20475     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20476 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20477    { (exit 1); exit 1; }; }
20478     ;;
20479  *)
20480     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20481 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20482    { (exit 1); exit 1; }; }
20483     ;;
20484 esac
20485
20486 THREADCXXFLAGS=
20487 THREADLDFLAGS=
20488 THREADLIBS=
20489 THREADINCS=
20490 THREADDEPS=
20491 THREADH=
20492 THREADSPEC=
20493 THREADSTARTFILESPEC=
20494 case "$THREADS" in
20495  posix)
20496     case "$host" in
20497      *-*-cygwin*)
20498         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20499         ;;
20500      *-*-freebsd[1234]*)
20501         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20502         # merely adds pthread_* functions) but it does have a -pthread switch
20503         # which is required at link-time to select -lc_r *instead* of -lc.
20504         THREADLDFLAGS=-pthread
20505         # Don't set THREADSPEC here as might be expected since -pthread is
20506         # not processed when found within a spec file, it must come from
20507         # the command line.  For now, the user must provide the -pthread
20508         # switch to link code compiled with gcj.  In future, consider adding
20509         # support for weak references to pthread_* functions ala gthr.h API.
20510         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20511         ;;
20512      *-*-freebsd*)
20513         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20514         # systems which support threads and -lpthread.
20515         THREADLDFLAGS=-pthread
20516         THREADSPEC=-lpthread
20517         ;;
20518      alpha*-dec-osf* | hppa*-hp-hpux*)
20519         THREADCXXFLAGS=-pthread
20520         # boehm-gc needs some functions from librt, so link that too.
20521         THREADLIBS='-lpthread -lrt'
20522         THREADSPEC='-lpthread -lrt'
20523         ;;
20524      *)
20525         THREADLIBS=-lpthread
20526         THREADSPEC=-lpthread
20527         ;;
20528     esac
20529     THREADH=posix-threads.h
20530     # MIT pthreads doesn't seem to have the mutexattr functions.
20531     # But for now we don't check for it.  We just assume you aren't
20532     # using MIT pthreads.
20533
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20536 _ACEOF
20537
20538
20539     # If we're using the Boehm GC, then we happen to know that it
20540     # defines _REENTRANT, so we don't bother.  Eww.
20541     if test "$GC" != boehm; then
20542
20543 cat >>confdefs.h <<\_ACEOF
20544 #define _REENTRANT 1
20545 _ACEOF
20546
20547     fi
20548
20549 cat >>confdefs.h <<\_ACEOF
20550 #define _POSIX_PTHREAD_SEMANTICS 1
20551 _ACEOF
20552
20553     ;;
20554
20555  win32)
20556     THREADH=win32-threads.h
20557     THREADCXXFLAGS=-mthreads
20558     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20559     # But we do not want the executables created to be dependent on
20560     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20561     # exception handling contexts.  The following kludge achieves this effect
20562     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20563     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20564     # A workaround is to explicitly use -mthreads while linking Java programs.
20565     # See PR libgcj/28263.
20566     #
20567     # FIXME: In Java we are able to detect thread death at the end of
20568     # Thread.run() so we should be able to clean up the exception handling
20569     # contexts ourselves.
20570     THREADSTARTFILESPEC='crtmt%O%s'
20571     ;;
20572
20573  none)
20574     THREADH=no-threads.h
20575     ;;
20576 esac
20577           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588 if test "$THREADS" = posix; then
20589   USING_POSIX_THREADS_TRUE=
20590   USING_POSIX_THREADS_FALSE='#'
20591 else
20592   USING_POSIX_THREADS_TRUE='#'
20593   USING_POSIX_THREADS_FALSE=
20594 fi
20595
20596
20597
20598 if test "$THREADS" = win32; then
20599   USING_WIN32_THREADS_TRUE=
20600   USING_WIN32_THREADS_FALSE='#'
20601 else
20602   USING_WIN32_THREADS_TRUE='#'
20603   USING_WIN32_THREADS_FALSE=
20604 fi
20605
20606
20607
20608 if test "$THREADS" = none; then
20609   USING_NO_THREADS_TRUE=
20610   USING_NO_THREADS_FALSE='#'
20611 else
20612   USING_NO_THREADS_TRUE='#'
20613   USING_NO_THREADS_FALSE=
20614 fi
20615
20616
20617
20618 if test "$use_libgcj_bc" = yes; then
20619   USE_LIBGCJ_BC_TRUE=
20620   USE_LIBGCJ_BC_FALSE='#'
20621 else
20622   USE_LIBGCJ_BC_TRUE='#'
20623   USE_LIBGCJ_BC_FALSE=
20624 fi
20625
20626
20627 if test -d sysdep; then true; else mkdir sysdep; fi
20628           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20629
20630           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20631
20632           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20633
20634
20635 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20636 if test "$use_libgcj_bc" = yes; then
20637   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20638 fi
20639
20640
20641 HASH_SYNC_SPEC=
20642 # Hash synchronization is only useful with posix threads right now.
20643 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20644    HASH_SYNC_SPEC=-fhash-synchronization
20645
20646 cat >>confdefs.h <<\_ACEOF
20647 #define JV_HASH_SYNCHRONIZATION 1
20648 _ACEOF
20649
20650 fi
20651
20652
20653
20654
20655 if test "$GCC" = yes; then
20656   USING_GCC_TRUE=
20657   USING_GCC_FALSE='#'
20658 else
20659   USING_GCC_TRUE='#'
20660   USING_GCC_FALSE=
20661 fi
20662
20663
20664 # We're in the tree with gcc, and need to include some of its headers.
20665 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20666
20667 if test "x${with_newlib}" = "xyes"; then
20668    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20669    # may not work correctly, because the compiler may not be able to
20670    # link executables.
20671
20672    # We assume newlib.  This lets us hard-code the functions we know
20673    # we'll have.
20674
20675 cat >>confdefs.h <<\_ACEOF
20676 #define HAVE_MEMMOVE 1
20677 _ACEOF
20678
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_MEMCPY 1
20682 _ACEOF
20683
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_TIME 1
20687 _ACEOF
20688
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_GMTIME_R 1
20692 _ACEOF
20693
20694
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_LOCALTIME_R 1
20697 _ACEOF
20698
20699
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_USLEEP_DECL 1
20702 _ACEOF
20703
20704    # This is only for POSIX threads.
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20708 _ACEOF
20709
20710
20711    # Assume we do not have getuid and friends.
20712
20713 cat >>confdefs.h <<\_ACEOF
20714 #define NO_GETUID 1
20715 _ACEOF
20716
20717    PLATFORMNET=NoNet
20718 else
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750 for ac_func in strerror_r select fstat open fsync sleep opendir \
20751                    localtime_r readdir_r getpwuid_r getcwd \
20752                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20753                    nl_langinfo setlocale \
20754                    inet_pton uname inet_ntoa \
20755                    getrlimit sigaction ftruncate mmap \
20756                    getifaddrs
20757 do
20758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759 echo "$as_me:$LINENO: checking for $ac_func" >&5
20760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20761 if eval "test \"\${$as_ac_var+set}\" = set"; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764   if test x$gcc_no_link = xyes; then
20765   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20767    { (exit 1); exit 1; }; }
20768 fi
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20777 #define $ac_func innocuous_$ac_func
20778
20779 /* System header to define __stub macros and hopefully few prototypes,
20780     which can conflict with char $ac_func (); below.
20781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20782     <limits.h> exists even on freestanding compilers.  */
20783
20784 #ifdef __STDC__
20785 # include <limits.h>
20786 #else
20787 # include <assert.h>
20788 #endif
20789
20790 #undef $ac_func
20791
20792 /* Override any gcc2 internal prototype to avoid an error.  */
20793 #ifdef __cplusplus
20794 extern "C"
20795 {
20796 #endif
20797 /* We use char because int might match the return type of a gcc2
20798    builtin and then its argument prototype would still apply.  */
20799 char $ac_func ();
20800 /* The GNU C library defines this for functions which it implements
20801     to always fail with ENOSYS.  Some functions are actually named
20802     something starting with __ and the normal name is an alias.  */
20803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20804 choke me
20805 #else
20806 char (*f) () = $ac_func;
20807 #endif
20808 #ifdef __cplusplus
20809 }
20810 #endif
20811
20812 int
20813 main ()
20814 {
20815 return f != $ac_func;
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822   (eval $ac_link) 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } &&
20829          { ac_try='test -z "$ac_c_werror_flag"
20830                          || test ! -s conftest.err'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; } &&
20836          { ac_try='test -s conftest$ac_exeext'
20837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838   (eval $ac_try) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   eval "$as_ac_var=yes"
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847 eval "$as_ac_var=no"
20848 fi
20849 rm -f conftest.err conftest.$ac_objext \
20850       conftest$ac_exeext conftest.$ac_ext
20851 fi
20852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20854 if test `eval echo '${'$as_ac_var'}'` = yes; then
20855   cat >>confdefs.h <<_ACEOF
20856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20857 _ACEOF
20858
20859 fi
20860 done
20861
20862
20863
20864 for ac_func in inet_aton inet_addr
20865 do
20866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20867 echo "$as_me:$LINENO: checking for $ac_func" >&5
20868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20869 if eval "test \"\${$as_ac_var+set}\" = set"; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872   if test x$gcc_no_link = xyes; then
20873   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20875    { (exit 1); exit 1; }; }
20876 fi
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20885 #define $ac_func innocuous_$ac_func
20886
20887 /* System header to define __stub macros and hopefully few prototypes,
20888     which can conflict with char $ac_func (); below.
20889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20890     <limits.h> exists even on freestanding compilers.  */
20891
20892 #ifdef __STDC__
20893 # include <limits.h>
20894 #else
20895 # include <assert.h>
20896 #endif
20897
20898 #undef $ac_func
20899
20900 /* Override any gcc2 internal prototype to avoid an error.  */
20901 #ifdef __cplusplus
20902 extern "C"
20903 {
20904 #endif
20905 /* We use char because int might match the return type of a gcc2
20906    builtin and then its argument prototype would still apply.  */
20907 char $ac_func ();
20908 /* The GNU C library defines this for functions which it implements
20909     to always fail with ENOSYS.  Some functions are actually named
20910     something starting with __ and the normal name is an alias.  */
20911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20912 choke me
20913 #else
20914 char (*f) () = $ac_func;
20915 #endif
20916 #ifdef __cplusplus
20917 }
20918 #endif
20919
20920 int
20921 main ()
20922 {
20923 return f != $ac_func;
20924   ;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext conftest$ac_exeext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20930   (eval $ac_link) 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } &&
20937          { ac_try='test -z "$ac_c_werror_flag"
20938                          || test ! -s conftest.err'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; } &&
20944          { ac_try='test -s conftest$ac_exeext'
20945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946   (eval $ac_try) 2>&5
20947   ac_status=$?
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); }; }; then
20950   eval "$as_ac_var=yes"
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 eval "$as_ac_var=no"
20956 fi
20957 rm -f conftest.err conftest.$ac_objext \
20958       conftest$ac_exeext conftest.$ac_ext
20959 fi
20960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20962 if test `eval echo '${'$as_ac_var'}'` = yes; then
20963   cat >>confdefs.h <<_ACEOF
20964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965 _ACEOF
20966  break
20967 fi
20968 done
20969
20970
20971
20972
20973 for ac_header in unistd.h dlfcn.h sys/resource.h
20974 do
20975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977   echo "$as_me:$LINENO: checking for $ac_header" >&5
20978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 fi
20982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20984 else
20985   # Is the header compilable?
20986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20988 cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 $ac_includes_default
20995 #include <$ac_header>
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999   (eval $ac_compile) 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } &&
21006          { ac_try='test -z "$ac_c_werror_flag"
21007                          || test ! -s conftest.err'
21008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009   (eval $ac_try) 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; } &&
21013          { ac_try='test -s conftest.$ac_objext'
21014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015   (eval $ac_try) 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   ac_header_compiler=yes
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_header_compiler=no
21025 fi
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21028 echo "${ECHO_T}$ac_header_compiler" >&6
21029
21030 # Is the header present?
21031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h.  */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h.  */
21039 #include <$ac_header>
21040 _ACEOF
21041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21043   ac_status=$?
21044   grep -v '^ *+' conftest.er1 >conftest.err
21045   rm -f conftest.er1
21046   cat conftest.err >&5
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } >/dev/null; then
21049   if test -s conftest.err; then
21050     ac_cpp_err=$ac_c_preproc_warn_flag
21051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21052   else
21053     ac_cpp_err=
21054   fi
21055 else
21056   ac_cpp_err=yes
21057 fi
21058 if test -z "$ac_cpp_err"; then
21059   ac_header_preproc=yes
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064   ac_header_preproc=no
21065 fi
21066 rm -f conftest.err conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21068 echo "${ECHO_T}$ac_header_preproc" >&6
21069
21070 # So?  What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21072   yes:no: )
21073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21077     ac_header_preproc=yes
21078     ;;
21079   no:yes:* )
21080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21092     (
21093       cat <<\_ASBOX
21094 ## ---------------------------------- ##
21095 ## Report this to the libjava lists.  ##
21096 ## ---------------------------------- ##
21097 _ASBOX
21098     ) |
21099       sed "s/^/$as_me: WARNING:     /" >&2
21100     ;;
21101 esac
21102 echo "$as_me:$LINENO: checking for $ac_header" >&5
21103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21105   echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107   eval "$as_ac_Header=\$ac_header_preproc"
21108 fi
21109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21111
21112 fi
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114   cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21116 _ACEOF
21117
21118 fi
21119
21120 done
21121
21122    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21123    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21124 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21125 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21126   echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128   ac_check_lib_save_LIBS=$LIBS
21129 LIBS="-ldl  $LIBS"
21130 if test x$gcc_no_link = xyes; then
21131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21133    { (exit 1); exit 1; }; }
21134 fi
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141
21142 /* Override any gcc2 internal prototype to avoid an error.  */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 /* We use char because int might match the return type of a gcc2
21147    builtin and then its argument prototype would still apply.  */
21148 char dladdr ();
21149 int
21150 main ()
21151 {
21152 dladdr ();
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21159   (eval $ac_link) 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } &&
21166          { ac_try='test -z "$ac_c_werror_flag"
21167                          || test ! -s conftest.err'
21168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169   (eval $ac_try) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; } &&
21173          { ac_try='test -s conftest$ac_exeext'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   ac_cv_lib_dl_dladdr=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 ac_cv_lib_dl_dladdr=no
21185 fi
21186 rm -f conftest.err conftest.$ac_objext \
21187       conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_check_lib_save_LIBS
21189 fi
21190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21191 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21192 if test $ac_cv_lib_dl_dladdr = yes; then
21193
21194
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_DLADDR 1
21197 _ACEOF
21198
21199 else
21200
21201        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21202 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21203 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   ac_check_lib_save_LIBS=$LIBS
21207 LIBS="-ldld  $LIBS"
21208 if test x$gcc_no_link = xyes; then
21209   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21211    { (exit 1); exit 1; }; }
21212 fi
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219
21220 /* Override any gcc2 internal prototype to avoid an error.  */
21221 #ifdef __cplusplus
21222 extern "C"
21223 #endif
21224 /* We use char because int might match the return type of a gcc2
21225    builtin and then its argument prototype would still apply.  */
21226 char dladdr ();
21227 int
21228 main ()
21229 {
21230 dladdr ();
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext conftest$ac_exeext
21236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21237   (eval $ac_link) 2>conftest.er1
21238   ac_status=$?
21239   grep -v '^ *+' conftest.er1 >conftest.err
21240   rm -f conftest.er1
21241   cat conftest.err >&5
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } &&
21244          { ac_try='test -z "$ac_c_werror_flag"
21245                          || test ! -s conftest.err'
21246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247   (eval $ac_try) 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; } &&
21251          { ac_try='test -s conftest$ac_exeext'
21252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; }; then
21257   ac_cv_lib_dld_dladdr=yes
21258 else
21259   echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_cv_lib_dld_dladdr=no
21263 fi
21264 rm -f conftest.err conftest.$ac_objext \
21265       conftest$ac_exeext conftest.$ac_ext
21266 LIBS=$ac_check_lib_save_LIBS
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21269 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21270 if test $ac_cv_lib_dld_dladdr = yes; then
21271
21272
21273 cat >>confdefs.h <<\_ACEOF
21274 #define HAVE_DLADDR 1
21275 _ACEOF
21276
21277 fi
21278
21279 fi
21280
21281
21282    if test x"$cross_compiling" = x"no"; then
21283      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21284 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21285 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   test "$cross_compiling" = yes &&
21289   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21290 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21291    { (exit 1); exit 1; }; }
21292 if test -r "/proc/self/exe"; then
21293   ac_cv_file__proc_self_exe=yes
21294 else
21295   ac_cv_file__proc_self_exe=no
21296 fi
21297 fi
21298 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21299 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21300 if test $ac_cv_file__proc_self_exe = yes; then
21301
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE__PROC_SELF_EXE 1
21304 _ACEOF
21305
21306
21307
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_PROC_SELF_EXE 1
21310 _ACEOF
21311
21312 fi
21313
21314      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21315 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21316 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21317   echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319   test "$cross_compiling" = yes &&
21320   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21321 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21322    { (exit 1); exit 1; }; }
21323 if test -r "/proc/self/maps"; then
21324   ac_cv_file__proc_self_maps=yes
21325 else
21326   ac_cv_file__proc_self_maps=no
21327 fi
21328 fi
21329 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21330 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21331 if test $ac_cv_file__proc_self_maps = yes; then
21332
21333 cat >>confdefs.h <<_ACEOF
21334 #define HAVE__PROC_SELF_MAPS 1
21335 _ACEOF
21336
21337
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_PROC_SELF_MAPS 1
21341 _ACEOF
21342
21343 fi
21344
21345    else
21346      case $host in
21347      *-linux*)
21348
21349 cat >>confdefs.h <<\_ACEOF
21350 #define HAVE_PROC_SELF_EXE 1
21351 _ACEOF
21352
21353
21354 cat >>confdefs.h <<\_ACEOF
21355 #define HAVE_PROC_SELF_MAPS 1
21356 _ACEOF
21357
21358        ;;
21359      esac
21360    fi
21361
21362
21363       if test "X$prefix" = "XNONE"; then
21364     acl_final_prefix="$ac_default_prefix"
21365   else
21366     acl_final_prefix="$prefix"
21367   fi
21368   if test "X$exec_prefix" = "XNONE"; then
21369     acl_final_exec_prefix='${prefix}'
21370   else
21371     acl_final_exec_prefix="$exec_prefix"
21372   fi
21373   acl_save_prefix="$prefix"
21374   prefix="$acl_final_prefix"
21375   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21376   prefix="$acl_save_prefix"
21377
21378
21379 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21380 if test "${with_gnu_ld+set}" = set; then
21381   withval="$with_gnu_ld"
21382   test "$withval" = no || with_gnu_ld=yes
21383 else
21384   with_gnu_ld=no
21385 fi;
21386 # Prepare PATH_SEPARATOR.
21387 # The user is always right.
21388 if test "${PATH_SEPARATOR+set}" != set; then
21389   echo "#! /bin/sh" >conf$$.sh
21390   echo  "exit 0"   >>conf$$.sh
21391   chmod +x conf$$.sh
21392   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21393     PATH_SEPARATOR=';'
21394   else
21395     PATH_SEPARATOR=:
21396   fi
21397   rm -f conf$$.sh
21398 fi
21399 ac_prog=ld
21400 if test "$GCC" = yes; then
21401   # Check if gcc -print-prog-name=ld gives a path.
21402   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21403 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21404   case $host in
21405   *-*-mingw*)
21406     # gcc leaves a trailing carriage return which upsets mingw
21407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21408   *)
21409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21410   esac
21411   case $ac_prog in
21412     # Accept absolute paths.
21413     [\\/]* | [A-Za-z]:[\\/]*)
21414       re_direlt='/[^/][^/]*/\.\./'
21415       # Canonicalize the path of ld
21416       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21417       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21418         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21419       done
21420       test -z "$LD" && LD="$ac_prog"
21421       ;;
21422   "")
21423     # If it fails, then pretend we aren't using GCC.
21424     ac_prog=ld
21425     ;;
21426   *)
21427     # If it is relative, then search for the first ld in PATH.
21428     with_gnu_ld=unknown
21429     ;;
21430   esac
21431 elif test "$with_gnu_ld" = yes; then
21432   echo "$as_me:$LINENO: checking for GNU ld" >&5
21433 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21434 else
21435   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21436 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21437 fi
21438 if test "${acl_cv_path_LD+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   if test -z "$LD"; then
21442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21443   for ac_dir in $PATH; do
21444     test -z "$ac_dir" && ac_dir=.
21445     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21446       acl_cv_path_LD="$ac_dir/$ac_prog"
21447       # Check to see if the program is GNU ld.  I'd rather use --version,
21448       # but apparently some GNU ld's only accept -v.
21449       # Break only if it was the GNU/non-GNU ld that we prefer.
21450       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21451         test "$with_gnu_ld" != no && break
21452       else
21453         test "$with_gnu_ld" != yes && break
21454       fi
21455     fi
21456   done
21457   IFS="$ac_save_ifs"
21458 else
21459   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21460 fi
21461 fi
21462
21463 LD="$acl_cv_path_LD"
21464 if test -n "$LD"; then
21465   echo "$as_me:$LINENO: result: $LD" >&5
21466 echo "${ECHO_T}$LD" >&6
21467 else
21468   echo "$as_me:$LINENO: result: no" >&5
21469 echo "${ECHO_T}no" >&6
21470 fi
21471 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21472 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21473    { (exit 1); exit 1; }; }
21474 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21475 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21476 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21480 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21481   acl_cv_prog_gnu_ld=yes
21482 else
21483   acl_cv_prog_gnu_ld=no
21484 fi
21485 fi
21486 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21487 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21488 with_gnu_ld=$acl_cv_prog_gnu_ld
21489
21490
21491
21492                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21493 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21494 if test "${acl_cv_rpath+set}" = set; then
21495   echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497
21498     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21499     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21500     . ./conftest.sh
21501     rm -f ./conftest.sh
21502     acl_cv_rpath=done
21503
21504 fi
21505 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21506 echo "${ECHO_T}$acl_cv_rpath" >&6
21507   wl="$acl_cv_wl"
21508   libext="$acl_cv_libext"
21509   shlibext="$acl_cv_shlibext"
21510   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21511   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21512   hardcode_direct="$acl_cv_hardcode_direct"
21513   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21514     # Check whether --enable-rpath or --disable-rpath was given.
21515 if test "${enable_rpath+set}" = set; then
21516   enableval="$enable_rpath"
21517   :
21518 else
21519   enable_rpath=yes
21520 fi;
21521
21522
21523
21524
21525
21526
21527
21528     use_additional=yes
21529
21530   acl_save_prefix="$prefix"
21531   prefix="$acl_final_prefix"
21532   acl_save_exec_prefix="$exec_prefix"
21533   exec_prefix="$acl_final_exec_prefix"
21534
21535     eval additional_includedir=\"$includedir\"
21536     eval additional_libdir=\"$libdir\"
21537
21538   exec_prefix="$acl_save_exec_prefix"
21539   prefix="$acl_save_prefix"
21540
21541
21542 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21543 if test "${with_libiconv_prefix+set}" = set; then
21544   withval="$with_libiconv_prefix"
21545
21546     if test "X$withval" = "Xno"; then
21547       use_additional=no
21548     else
21549       if test "X$withval" = "X"; then
21550
21551   acl_save_prefix="$prefix"
21552   prefix="$acl_final_prefix"
21553   acl_save_exec_prefix="$exec_prefix"
21554   exec_prefix="$acl_final_exec_prefix"
21555
21556           eval additional_includedir=\"$includedir\"
21557           eval additional_libdir=\"$libdir\"
21558
21559   exec_prefix="$acl_save_exec_prefix"
21560   prefix="$acl_save_prefix"
21561
21562       else
21563         additional_includedir="$withval/include"
21564         additional_libdir="$withval/lib"
21565       fi
21566     fi
21567
21568 fi;
21569       LIBICONV=
21570   LTLIBICONV=
21571   INCICONV=
21572   rpathdirs=
21573   ltrpathdirs=
21574   names_already_handled=
21575   names_next_round='iconv '
21576   while test -n "$names_next_round"; do
21577     names_this_round="$names_next_round"
21578     names_next_round=
21579     for name in $names_this_round; do
21580       already_handled=
21581       for n in $names_already_handled; do
21582         if test "$n" = "$name"; then
21583           already_handled=yes
21584           break
21585         fi
21586       done
21587       if test -z "$already_handled"; then
21588         names_already_handled="$names_already_handled $name"
21589                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21590         eval value=\"\$HAVE_LIB$uppername\"
21591         if test -n "$value"; then
21592           if test "$value" = yes; then
21593             eval value=\"\$LIB$uppername\"
21594             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21595             eval value=\"\$LTLIB$uppername\"
21596             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21597           else
21598                                     :
21599           fi
21600         else
21601                               found_dir=
21602           found_la=
21603           found_so=
21604           found_a=
21605           if test $use_additional = yes; then
21606             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21607               found_dir="$additional_libdir"
21608               found_so="$additional_libdir/lib$name.$shlibext"
21609               if test -f "$additional_libdir/lib$name.la"; then
21610                 found_la="$additional_libdir/lib$name.la"
21611               fi
21612             else
21613               if test -f "$additional_libdir/lib$name.$libext"; then
21614                 found_dir="$additional_libdir"
21615                 found_a="$additional_libdir/lib$name.$libext"
21616                 if test -f "$additional_libdir/lib$name.la"; then
21617                   found_la="$additional_libdir/lib$name.la"
21618                 fi
21619               fi
21620             fi
21621           fi
21622           if test "X$found_dir" = "X"; then
21623             for x in $LDFLAGS $LTLIBICONV; do
21624
21625   acl_save_prefix="$prefix"
21626   prefix="$acl_final_prefix"
21627   acl_save_exec_prefix="$exec_prefix"
21628   exec_prefix="$acl_final_exec_prefix"
21629   eval x=\"$x\"
21630   exec_prefix="$acl_save_exec_prefix"
21631   prefix="$acl_save_prefix"
21632
21633               case "$x" in
21634                 -L*)
21635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21636                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21637                     found_dir="$dir"
21638                     found_so="$dir/lib$name.$shlibext"
21639                     if test -f "$dir/lib$name.la"; then
21640                       found_la="$dir/lib$name.la"
21641                     fi
21642                   else
21643                     if test -f "$dir/lib$name.$libext"; then
21644                       found_dir="$dir"
21645                       found_a="$dir/lib$name.$libext"
21646                       if test -f "$dir/lib$name.la"; then
21647                         found_la="$dir/lib$name.la"
21648                       fi
21649                     fi
21650                   fi
21651                   ;;
21652               esac
21653               if test "X$found_dir" != "X"; then
21654                 break
21655               fi
21656             done
21657           fi
21658           if test "X$found_dir" != "X"; then
21659                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21660             if test "X$found_so" != "X"; then
21661                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21662                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21663               else
21664                                                                                 haveit=
21665                 for x in $ltrpathdirs; do
21666                   if test "X$x" = "X$found_dir"; then
21667                     haveit=yes
21668                     break
21669                   fi
21670                 done
21671                 if test -z "$haveit"; then
21672                   ltrpathdirs="$ltrpathdirs $found_dir"
21673                 fi
21674                                 if test "$hardcode_direct" = yes; then
21675                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21676                 else
21677                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21678                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21679                                                             haveit=
21680                     for x in $rpathdirs; do
21681                       if test "X$x" = "X$found_dir"; then
21682                         haveit=yes
21683                         break
21684                       fi
21685                     done
21686                     if test -z "$haveit"; then
21687                       rpathdirs="$rpathdirs $found_dir"
21688                     fi
21689                   else
21690                                                                                 haveit=
21691                     for x in $LDFLAGS $LIBICONV; do
21692
21693   acl_save_prefix="$prefix"
21694   prefix="$acl_final_prefix"
21695   acl_save_exec_prefix="$exec_prefix"
21696   exec_prefix="$acl_final_exec_prefix"
21697   eval x=\"$x\"
21698   exec_prefix="$acl_save_exec_prefix"
21699   prefix="$acl_save_prefix"
21700
21701                       if test "X$x" = "X-L$found_dir"; then
21702                         haveit=yes
21703                         break
21704                       fi
21705                     done
21706                     if test -z "$haveit"; then
21707                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21708                     fi
21709                     if test "$hardcode_minus_L" != no; then
21710                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21711                     else
21712                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21713                     fi
21714                   fi
21715                 fi
21716               fi
21717             else
21718               if test "X$found_a" != "X"; then
21719                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21720               else
21721                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21722               fi
21723             fi
21724                         additional_includedir=
21725             case "$found_dir" in
21726               */lib | */lib/)
21727                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21728                 additional_includedir="$basedir/include"
21729                 ;;
21730             esac
21731             if test "X$additional_includedir" != "X"; then
21732                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21733                 haveit=
21734                 if test "X$additional_includedir" = "X/usr/local/include"; then
21735                   if test -n "$GCC"; then
21736                     case $host_os in
21737                       linux*) haveit=yes;;
21738                     esac
21739                   fi
21740                 fi
21741                 if test -z "$haveit"; then
21742                   for x in $CPPFLAGS $INCICONV; do
21743
21744   acl_save_prefix="$prefix"
21745   prefix="$acl_final_prefix"
21746   acl_save_exec_prefix="$exec_prefix"
21747   exec_prefix="$acl_final_exec_prefix"
21748   eval x=\"$x\"
21749   exec_prefix="$acl_save_exec_prefix"
21750   prefix="$acl_save_prefix"
21751
21752                     if test "X$x" = "X-I$additional_includedir"; then
21753                       haveit=yes
21754                       break
21755                     fi
21756                   done
21757                   if test -z "$haveit"; then
21758                     if test -d "$additional_includedir"; then
21759                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21760                     fi
21761                   fi
21762                 fi
21763               fi
21764             fi
21765                         if test -n "$found_la"; then
21766                                                         save_libdir="$libdir"
21767               case "$found_la" in
21768                 */* | *\\*) . "$found_la" ;;
21769                 *) . "./$found_la" ;;
21770               esac
21771               libdir="$save_libdir"
21772                             for dep in $dependency_libs; do
21773                 case "$dep" in
21774                   -L*)
21775                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21776                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21777                       haveit=
21778                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21779                         if test -n "$GCC"; then
21780                           case $host_os in
21781                             linux*) haveit=yes;;
21782                           esac
21783                         fi
21784                       fi
21785                       if test -z "$haveit"; then
21786                         haveit=
21787                         for x in $LDFLAGS $LIBICONV; do
21788
21789   acl_save_prefix="$prefix"
21790   prefix="$acl_final_prefix"
21791   acl_save_exec_prefix="$exec_prefix"
21792   exec_prefix="$acl_final_exec_prefix"
21793   eval x=\"$x\"
21794   exec_prefix="$acl_save_exec_prefix"
21795   prefix="$acl_save_prefix"
21796
21797                           if test "X$x" = "X-L$additional_libdir"; then
21798                             haveit=yes
21799                             break
21800                           fi
21801                         done
21802                         if test -z "$haveit"; then
21803                           if test -d "$additional_libdir"; then
21804                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21805                           fi
21806                         fi
21807                         haveit=
21808                         for x in $LDFLAGS $LTLIBICONV; do
21809
21810   acl_save_prefix="$prefix"
21811   prefix="$acl_final_prefix"
21812   acl_save_exec_prefix="$exec_prefix"
21813   exec_prefix="$acl_final_exec_prefix"
21814   eval x=\"$x\"
21815   exec_prefix="$acl_save_exec_prefix"
21816   prefix="$acl_save_prefix"
21817
21818                           if test "X$x" = "X-L$additional_libdir"; then
21819                             haveit=yes
21820                             break
21821                           fi
21822                         done
21823                         if test -z "$haveit"; then
21824                           if test -d "$additional_libdir"; then
21825                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21826                           fi
21827                         fi
21828                       fi
21829                     fi
21830                     ;;
21831                   -R*)
21832                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21833                     if test "$enable_rpath" != no; then
21834                                                                   haveit=
21835                       for x in $rpathdirs; do
21836                         if test "X$x" = "X$dir"; then
21837                           haveit=yes
21838                           break
21839                         fi
21840                       done
21841                       if test -z "$haveit"; then
21842                         rpathdirs="$rpathdirs $dir"
21843                       fi
21844                                                                   haveit=
21845                       for x in $ltrpathdirs; do
21846                         if test "X$x" = "X$dir"; then
21847                           haveit=yes
21848                           break
21849                         fi
21850                       done
21851                       if test -z "$haveit"; then
21852                         ltrpathdirs="$ltrpathdirs $dir"
21853                       fi
21854                     fi
21855                     ;;
21856                   -l*)
21857                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21858                     ;;
21859                   *.la)
21860                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21861                     ;;
21862                   *)
21863                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21864                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21865                     ;;
21866                 esac
21867               done
21868             fi
21869           else
21870                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21871             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21872           fi
21873         fi
21874       fi
21875     done
21876   done
21877   if test "X$rpathdirs" != "X"; then
21878     if test -n "$hardcode_libdir_separator"; then
21879                         alldirs=
21880       for found_dir in $rpathdirs; do
21881         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21882       done
21883             acl_save_libdir="$libdir"
21884       libdir="$alldirs"
21885       eval flag=\"$hardcode_libdir_flag_spec\"
21886       libdir="$acl_save_libdir"
21887       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21888     else
21889             for found_dir in $rpathdirs; do
21890         acl_save_libdir="$libdir"
21891         libdir="$found_dir"
21892         eval flag=\"$hardcode_libdir_flag_spec\"
21893         libdir="$acl_save_libdir"
21894         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21895       done
21896     fi
21897   fi
21898   if test "X$ltrpathdirs" != "X"; then
21899             for found_dir in $ltrpathdirs; do
21900       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21901     done
21902   fi
21903
21904
21905
21906
21907
21908
21909
21910           am_save_CPPFLAGS="$CPPFLAGS"
21911
21912   for element in $INCICONV; do
21913     haveit=
21914     for x in $CPPFLAGS; do
21915
21916   acl_save_prefix="$prefix"
21917   prefix="$acl_final_prefix"
21918   acl_save_exec_prefix="$exec_prefix"
21919   exec_prefix="$acl_final_exec_prefix"
21920   eval x=\"$x\"
21921   exec_prefix="$acl_save_exec_prefix"
21922   prefix="$acl_save_prefix"
21923
21924       if test "X$x" = "X$element"; then
21925         haveit=yes
21926         break
21927       fi
21928     done
21929     if test -z "$haveit"; then
21930       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21931     fi
21932   done
21933
21934
21935   echo "$as_me:$LINENO: checking for iconv" >&5
21936 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21937 if test "${am_cv_func_iconv+set}" = set; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940
21941     am_cv_func_iconv="no, consider installing GNU libiconv"
21942     am_cv_lib_iconv=no
21943     if test x$gcc_no_link = xyes; then
21944   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21945 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21946    { (exit 1); exit 1; }; }
21947 fi
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 #include <stdlib.h>
21955 #include <iconv.h>
21956 int
21957 main ()
21958 {
21959 iconv_t cd = iconv_open("","");
21960        iconv(cd,NULL,NULL,NULL,NULL);
21961        iconv_close(cd);
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968   (eval $ac_link) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag"
21976                          || test ! -s conftest.err'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; } &&
21982          { ac_try='test -s conftest$ac_exeext'
21983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984   (eval $ac_try) 2>&5
21985   ac_status=$?
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); }; }; then
21988   am_cv_func_iconv=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 fi
21994 rm -f conftest.err conftest.$ac_objext \
21995       conftest$ac_exeext conftest.$ac_ext
21996     if test "$am_cv_func_iconv" != yes; then
21997       am_save_LIBS="$LIBS"
21998       LIBS="$LIBS $LIBICONV"
21999       if test x$gcc_no_link = xyes; then
22000   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22002    { (exit 1); exit 1; }; }
22003 fi
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h.  */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h.  */
22010 #include <stdlib.h>
22011 #include <iconv.h>
22012 int
22013 main ()
22014 {
22015 iconv_t cd = iconv_open("","");
22016          iconv(cd,NULL,NULL,NULL,NULL);
22017          iconv_close(cd);
22018   ;
22019   return 0;
22020 }
22021 _ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22024   (eval $ac_link) 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } &&
22031          { ac_try='test -z "$ac_c_werror_flag"
22032                          || test ! -s conftest.err'
22033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; } &&
22038          { ac_try='test -s conftest$ac_exeext'
22039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040   (eval $ac_try) 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; }; then
22044   am_cv_lib_iconv=yes
22045         am_cv_func_iconv=yes
22046 else
22047   echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22049
22050 fi
22051 rm -f conftest.err conftest.$ac_objext \
22052       conftest$ac_exeext conftest.$ac_ext
22053       LIBS="$am_save_LIBS"
22054     fi
22055
22056 fi
22057 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22058 echo "${ECHO_T}$am_cv_func_iconv" >&6
22059   if test "$am_cv_func_iconv" = yes; then
22060
22061 cat >>confdefs.h <<\_ACEOF
22062 #define HAVE_ICONV 1
22063 _ACEOF
22064
22065   fi
22066   if test "$am_cv_lib_iconv" = yes; then
22067     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22068 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22069     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22070 echo "${ECHO_T}$LIBICONV" >&6
22071   else
22072             CPPFLAGS="$am_save_CPPFLAGS"
22073     LIBICONV=
22074     LTLIBICONV=
22075   fi
22076
22077
22078
22079   if test "$am_cv_func_iconv" = yes; then
22080     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22081 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22082     if test "${am_cv_proto_iconv+set}" = set; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085
22086       cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092
22093 #include <stdlib.h>
22094 #include <iconv.h>
22095 extern
22096 #ifdef __cplusplus
22097 "C"
22098 #endif
22099 #if defined(__STDC__) || defined(__cplusplus)
22100 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22101 #else
22102 size_t iconv();
22103 #endif
22104
22105 int
22106 main ()
22107 {
22108
22109   ;
22110   return 0;
22111 }
22112 _ACEOF
22113 rm -f conftest.$ac_objext
22114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115   (eval $ac_compile) 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } &&
22122          { ac_try='test -z "$ac_c_werror_flag"
22123                          || test ! -s conftest.err'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; } &&
22129          { ac_try='test -s conftest.$ac_objext'
22130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131   (eval $ac_try) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; }; then
22135   am_cv_proto_iconv_arg1=""
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140 am_cv_proto_iconv_arg1="const"
22141 fi
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22143       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22144 fi
22145
22146     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22147     echo "$as_me:$LINENO: result: ${ac_t:-
22148          }$am_cv_proto_iconv" >&5
22149 echo "${ECHO_T}${ac_t:-
22150          }$am_cv_proto_iconv" >&6
22151
22152 cat >>confdefs.h <<_ACEOF
22153 #define ICONV_CONST $am_cv_proto_iconv_arg1
22154 _ACEOF
22155
22156   fi
22157
22158
22159   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22160 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22161 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22162   echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164   if test x$gcc_no_link = xyes; then
22165   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22167    { (exit 1); exit 1; }; }
22168 fi
22169 cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 #include <locale.h>
22176 int
22177 main ()
22178 {
22179 return LC_MESSAGES
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22186   (eval $ac_link) 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } &&
22193          { ac_try='test -z "$ac_c_werror_flag"
22194                          || test ! -s conftest.err'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest$ac_exeext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   am_cv_val_LC_MESSAGES=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 am_cv_val_LC_MESSAGES=no
22212 fi
22213 rm -f conftest.err conftest.$ac_objext \
22214       conftest$ac_exeext conftest.$ac_ext
22215 fi
22216 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22217 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22218   if test $am_cv_val_LC_MESSAGES = yes; then
22219
22220 cat >>confdefs.h <<\_ACEOF
22221 #define HAVE_LC_MESSAGES 1
22222 _ACEOF
22223
22224   fi
22225
22226    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22227 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22228 if test "${ac_cv_struct_tm+set}" = set; then
22229   echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231   cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h.  */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h.  */
22237 #include <sys/types.h>
22238 #include <time.h>
22239
22240 int
22241 main ()
22242 {
22243 struct tm *tp; tp->tm_sec;
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22250   (eval $ac_compile) 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } &&
22257          { ac_try='test -z "$ac_c_werror_flag"
22258                          || test ! -s conftest.err'
22259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260   (eval $ac_try) 2>&5
22261   ac_status=$?
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); }; } &&
22264          { ac_try='test -s conftest.$ac_objext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ac_cv_struct_tm=time.h
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275 ac_cv_struct_tm=sys/time.h
22276 fi
22277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22278 fi
22279 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22280 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22281 if test $ac_cv_struct_tm = sys/time.h; then
22282
22283 cat >>confdefs.h <<\_ACEOF
22284 #define TM_IN_SYS_TIME 1
22285 _ACEOF
22286
22287 fi
22288
22289 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22290 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22291 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #include <sys/types.h>
22301 #include <$ac_cv_struct_tm>
22302
22303
22304 int
22305 main ()
22306 {
22307 static struct tm ac_aggr;
22308 if (ac_aggr.tm_zone)
22309 return 0;
22310   ;
22311   return 0;
22312 }
22313 _ACEOF
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316   (eval $ac_compile) 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } &&
22323          { ac_try='test -z "$ac_c_werror_flag"
22324                          || test ! -s conftest.err'
22325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326   (eval $ac_try) 2>&5
22327   ac_status=$?
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); }; } &&
22330          { ac_try='test -s conftest.$ac_objext'
22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332   (eval $ac_try) 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; }; then
22336   ac_cv_member_struct_tm_tm_zone=yes
22337 else
22338   echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22340
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 #include <sys/types.h>
22348 #include <$ac_cv_struct_tm>
22349
22350
22351 int
22352 main ()
22353 {
22354 static struct tm ac_aggr;
22355 if (sizeof ac_aggr.tm_zone)
22356 return 0;
22357   ;
22358   return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363   (eval $ac_compile) 2>conftest.er1
22364   ac_status=$?
22365   grep -v '^ *+' conftest.er1 >conftest.err
22366   rm -f conftest.er1
22367   cat conftest.err >&5
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); } &&
22370          { ac_try='test -z "$ac_c_werror_flag"
22371                          || test ! -s conftest.err'
22372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373   (eval $ac_try) 2>&5
22374   ac_status=$?
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); }; } &&
22377          { ac_try='test -s conftest.$ac_objext'
22378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379   (eval $ac_try) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; }; then
22383   ac_cv_member_struct_tm_tm_zone=yes
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 ac_cv_member_struct_tm_tm_zone=no
22389 fi
22390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22393 fi
22394 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22395 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22396 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22397
22398 cat >>confdefs.h <<_ACEOF
22399 #define HAVE_STRUCT_TM_TM_ZONE 1
22400 _ACEOF
22401
22402
22403 fi
22404
22405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22406
22407 cat >>confdefs.h <<\_ACEOF
22408 #define HAVE_TM_ZONE 1
22409 _ACEOF
22410
22411 else
22412   echo "$as_me:$LINENO: checking for tzname" >&5
22413 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22414 if test "${ac_cv_var_tzname+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   if test x$gcc_no_link = xyes; then
22418   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22420    { (exit 1); exit 1; }; }
22421 fi
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428 #include <time.h>
22429 #ifndef tzname /* For SGI.  */
22430 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22431 #endif
22432
22433 int
22434 main ()
22435 {
22436 atoi(*tzname);
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"
22451                          || test ! -s conftest.err'
22452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453   (eval $ac_try) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; } &&
22457          { ac_try='test -s conftest$ac_exeext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_var_tzname=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_cv_var_tzname=no
22469 fi
22470 rm -f conftest.err conftest.$ac_objext \
22471       conftest$ac_exeext conftest.$ac_ext
22472 fi
22473 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22474 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22475   if test $ac_cv_var_tzname = yes; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_TZNAME 1
22479 _ACEOF
22480
22481   fi
22482 fi
22483
22484
22485
22486 for ac_func in gethostbyname_r
22487 do
22488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22489 echo "$as_me:$LINENO: checking for $ac_func" >&5
22490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22491 if eval "test \"\${$as_ac_var+set}\" = set"; then
22492   echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494   if test x$gcc_no_link = xyes; then
22495   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22497    { (exit 1); exit 1; }; }
22498 fi
22499 cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22507 #define $ac_func innocuous_$ac_func
22508
22509 /* System header to define __stub macros and hopefully few prototypes,
22510     which can conflict with char $ac_func (); below.
22511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22512     <limits.h> exists even on freestanding compilers.  */
22513
22514 #ifdef __STDC__
22515 # include <limits.h>
22516 #else
22517 # include <assert.h>
22518 #endif
22519
22520 #undef $ac_func
22521
22522 /* Override any gcc2 internal prototype to avoid an error.  */
22523 #ifdef __cplusplus
22524 extern "C"
22525 {
22526 #endif
22527 /* We use char because int might match the return type of a gcc2
22528    builtin and then its argument prototype would still apply.  */
22529 char $ac_func ();
22530 /* The GNU C library defines this for functions which it implements
22531     to always fail with ENOSYS.  Some functions are actually named
22532     something starting with __ and the normal name is an alias.  */
22533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22534 choke me
22535 #else
22536 char (*f) () = $ac_func;
22537 #endif
22538 #ifdef __cplusplus
22539 }
22540 #endif
22541
22542 int
22543 main ()
22544 {
22545 return f != $ac_func;
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext conftest$ac_exeext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22552   (eval $ac_link) 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } &&
22559          { ac_try='test -z "$ac_c_werror_flag"
22560                          || test ! -s conftest.err'
22561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562   (eval $ac_try) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }; } &&
22566          { ac_try='test -s conftest$ac_exeext'
22567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568   (eval $ac_try) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); }; }; then
22572   eval "$as_ac_var=yes"
22573 else
22574   echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22576
22577 eval "$as_ac_var=no"
22578 fi
22579 rm -f conftest.err conftest.$ac_objext \
22580       conftest$ac_exeext conftest.$ac_ext
22581 fi
22582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22584 if test `eval echo '${'$as_ac_var'}'` = yes; then
22585   cat >>confdefs.h <<_ACEOF
22586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22587 _ACEOF
22588
22589
22590 cat >>confdefs.h <<\_ACEOF
22591 #define HAVE_GETHOSTBYNAME_R 1
22592 _ACEOF
22593
22594      # There are two different kinds of gethostbyname_r.
22595      # We look for the one that returns `int'.
22596      # Hopefully this check is robust enough.
22597      cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 #include <netdb.h>
22604
22605 _ACEOF
22606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22607   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22608
22609
22610 cat >>confdefs.h <<\_ACEOF
22611 #define GETHOSTBYNAME_R_RETURNS_INT 1
22612 _ACEOF
22613
22614 fi
22615 rm -f conftest*
22616
22617
22618      case " $GCINCS " in
22619      *" -D_REENTRANT "*) ;;
22620      *)
22621                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22622 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22623 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626    ac_ext=cc
22627 ac_cpp='$CXXCPP $CPPFLAGS'
22628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22631
22632           cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 #include <netdb.h>
22639 int
22640 main ()
22641 {
22642 gethostbyname_r("", 0, 0);
22643   ;
22644   return 0;
22645 }
22646 _ACEOF
22647 rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649   (eval $ac_compile) 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } &&
22656          { ac_try='test -z "$ac_cxx_werror_flag"
22657                          || test ! -s conftest.err'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; } &&
22663          { ac_try='test -s conftest.$ac_objext'
22664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665   (eval $ac_try) 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; }; then
22669   libjava_cv_gethostbyname_r_needs_reentrant=no
22670 else
22671   echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22673
22674                 CPPFLAGS_SAVE="$CPPFLAGS"
22675                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22676                 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h.  */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h.  */
22682 #include <netdb.h>
22683 int
22684 main ()
22685 {
22686 gethostbyname_r("", 0, 0);
22687   ;
22688   return 0;
22689 }
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693   (eval $ac_compile) 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } &&
22700          { ac_try='test -z "$ac_cxx_werror_flag"
22701                          || test ! -s conftest.err'
22702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703   (eval $ac_try) 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); }; } &&
22707          { ac_try='test -s conftest.$ac_objext'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; }; then
22713   libjava_cv_gethostbyname_r_needs_reentrant=yes
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718 libjava_cv_gethostbyname_r_needs_reentrant=fail
22719 fi
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721                 CPPFLAGS="$CPPFLAGS_SAVE"
22722
22723 fi
22724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22725           ac_ext=c
22726 ac_cpp='$CPP $CPPFLAGS'
22727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22730
22731
22732 fi
22733 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22734 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22735         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22736
22737 cat >>confdefs.h <<\_ACEOF
22738 #define _REENTRANT 1
22739 _ACEOF
22740
22741         fi
22742      ;;
22743      esac
22744
22745      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22746 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22747 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22748   echo $ECHO_N "(cached) $ECHO_C" >&6
22749 else
22750         cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756
22757 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22758 # define _REENTRANT 1
22759 #endif
22760 #include <netdb.h>
22761 int
22762 main ()
22763 {
22764 struct hostent_data data;
22765   ;
22766   return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22771   (eval $ac_compile) 2>conftest.er1
22772   ac_status=$?
22773   grep -v '^ *+' conftest.er1 >conftest.err
22774   rm -f conftest.er1
22775   cat conftest.err >&5
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } &&
22778          { ac_try='test -z "$ac_c_werror_flag"
22779                          || test ! -s conftest.err'
22780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781   (eval $ac_try) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; } &&
22785          { ac_try='test -s conftest.$ac_objext'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   libjava_cv_struct_hostent_data=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796 libjava_cv_struct_hostent_data=no
22797 fi
22798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22799 fi
22800 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22801 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22802      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_STRUCT_HOSTENT_DATA 1
22806 _ACEOF
22807
22808      fi
22809
22810 fi
22811 done
22812
22813
22814    # FIXME: libjava source code expects to find a prototype for
22815    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22816    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22817    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22818    # linkage check is enough, yet C++ code requires proper prototypes.)
22819    cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825 #include <netdb.h>
22826
22827 _ACEOF
22828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22829   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22830
22831
22832 for ac_func in gethostbyaddr_r
22833 do
22834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22835 echo "$as_me:$LINENO: checking for $ac_func" >&5
22836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22837 if eval "test \"\${$as_ac_var+set}\" = set"; then
22838   echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840   if test x$gcc_no_link = xyes; then
22841   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22843    { (exit 1); exit 1; }; }
22844 fi
22845 cat >conftest.$ac_ext <<_ACEOF
22846 /* confdefs.h.  */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h.  */
22851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22853 #define $ac_func innocuous_$ac_func
22854
22855 /* System header to define __stub macros and hopefully few prototypes,
22856     which can conflict with char $ac_func (); below.
22857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22858     <limits.h> exists even on freestanding compilers.  */
22859
22860 #ifdef __STDC__
22861 # include <limits.h>
22862 #else
22863 # include <assert.h>
22864 #endif
22865
22866 #undef $ac_func
22867
22868 /* Override any gcc2 internal prototype to avoid an error.  */
22869 #ifdef __cplusplus
22870 extern "C"
22871 {
22872 #endif
22873 /* We use char because int might match the return type of a gcc2
22874    builtin and then its argument prototype would still apply.  */
22875 char $ac_func ();
22876 /* The GNU C library defines this for functions which it implements
22877     to always fail with ENOSYS.  Some functions are actually named
22878     something starting with __ and the normal name is an alias.  */
22879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22880 choke me
22881 #else
22882 char (*f) () = $ac_func;
22883 #endif
22884 #ifdef __cplusplus
22885 }
22886 #endif
22887
22888 int
22889 main ()
22890 {
22891 return f != $ac_func;
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898   (eval $ac_link) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_c_werror_flag"
22906                          || test ! -s conftest.err'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest$ac_exeext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   eval "$as_ac_var=yes"
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 eval "$as_ac_var=no"
22924 fi
22925 rm -f conftest.err conftest.$ac_objext \
22926       conftest$ac_exeext conftest.$ac_ext
22927 fi
22928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22930 if test `eval echo '${'$as_ac_var'}'` = yes; then
22931   cat >>confdefs.h <<_ACEOF
22932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22933 _ACEOF
22934
22935
22936 cat >>confdefs.h <<\_ACEOF
22937 #define HAVE_GETHOSTBYADDR_R 1
22938 _ACEOF
22939
22940      # There are two different kinds of gethostbyaddr_r.
22941      # We look for the one that returns `int'.
22942      # Hopefully this check is robust enough.
22943      cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949 #include <netdb.h>
22950
22951 _ACEOF
22952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22953   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
22954
22955
22956 cat >>confdefs.h <<\_ACEOF
22957 #define GETHOSTBYADDR_R_RETURNS_INT 1
22958 _ACEOF
22959
22960 fi
22961 rm -f conftest*
22962
22963 fi
22964 done
22965
22966 fi
22967 rm -f conftest*
22968
22969
22970
22971 for ac_func in gethostname
22972 do
22973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22974 echo "$as_me:$LINENO: checking for $ac_func" >&5
22975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22976 if eval "test \"\${$as_ac_var+set}\" = set"; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   if test x$gcc_no_link = xyes; then
22980   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22982    { (exit 1); exit 1; }; }
22983 fi
22984 cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22992 #define $ac_func innocuous_$ac_func
22993
22994 /* System header to define __stub macros and hopefully few prototypes,
22995     which can conflict with char $ac_func (); below.
22996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22997     <limits.h> exists even on freestanding compilers.  */
22998
22999 #ifdef __STDC__
23000 # include <limits.h>
23001 #else
23002 # include <assert.h>
23003 #endif
23004
23005 #undef $ac_func
23006
23007 /* Override any gcc2 internal prototype to avoid an error.  */
23008 #ifdef __cplusplus
23009 extern "C"
23010 {
23011 #endif
23012 /* We use char because int might match the return type of a gcc2
23013    builtin and then its argument prototype would still apply.  */
23014 char $ac_func ();
23015 /* The GNU C library defines this for functions which it implements
23016     to always fail with ENOSYS.  Some functions are actually named
23017     something starting with __ and the normal name is an alias.  */
23018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23019 choke me
23020 #else
23021 char (*f) () = $ac_func;
23022 #endif
23023 #ifdef __cplusplus
23024 }
23025 #endif
23026
23027 int
23028 main ()
23029 {
23030 return f != $ac_func;
23031   ;
23032   return 0;
23033 }
23034 _ACEOF
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23037   (eval $ac_link) 2>conftest.er1
23038   ac_status=$?
23039   grep -v '^ *+' conftest.er1 >conftest.err
23040   rm -f conftest.er1
23041   cat conftest.err >&5
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); } &&
23044          { ac_try='test -z "$ac_c_werror_flag"
23045                          || test ! -s conftest.err'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; } &&
23051          { ac_try='test -s conftest$ac_exeext'
23052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); }; }; then
23057   eval "$as_ac_var=yes"
23058 else
23059   echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23061
23062 eval "$as_ac_var=no"
23063 fi
23064 rm -f conftest.err conftest.$ac_objext \
23065       conftest$ac_exeext conftest.$ac_ext
23066 fi
23067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23069 if test `eval echo '${'$as_ac_var'}'` = yes; then
23070   cat >>confdefs.h <<_ACEOF
23071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23072 _ACEOF
23073
23074
23075 cat >>confdefs.h <<\_ACEOF
23076 #define HAVE_GETHOSTNAME 1
23077 _ACEOF
23078
23079      cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h.  */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h.  */
23085 #include <unistd.h>
23086
23087 _ACEOF
23088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23089   $EGREP "gethostname" >/dev/null 2>&1; then
23090
23091
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_GETHOSTNAME_DECL 1
23094 _ACEOF
23095
23096 fi
23097 rm -f conftest*
23098
23099 fi
23100 done
23101
23102
23103
23104 for ac_func in usleep
23105 do
23106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23107 echo "$as_me:$LINENO: checking for $ac_func" >&5
23108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23109 if eval "test \"\${$as_ac_var+set}\" = set"; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112   if test x$gcc_no_link = xyes; then
23113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23115    { (exit 1); exit 1; }; }
23116 fi
23117 cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23125 #define $ac_func innocuous_$ac_func
23126
23127 /* System header to define __stub macros and hopefully few prototypes,
23128     which can conflict with char $ac_func (); below.
23129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23130     <limits.h> exists even on freestanding compilers.  */
23131
23132 #ifdef __STDC__
23133 # include <limits.h>
23134 #else
23135 # include <assert.h>
23136 #endif
23137
23138 #undef $ac_func
23139
23140 /* Override any gcc2 internal prototype to avoid an error.  */
23141 #ifdef __cplusplus
23142 extern "C"
23143 {
23144 #endif
23145 /* We use char because int might match the return type of a gcc2
23146    builtin and then its argument prototype would still apply.  */
23147 char $ac_func ();
23148 /* The GNU C library defines this for functions which it implements
23149     to always fail with ENOSYS.  Some functions are actually named
23150     something starting with __ and the normal name is an alias.  */
23151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23152 choke me
23153 #else
23154 char (*f) () = $ac_func;
23155 #endif
23156 #ifdef __cplusplus
23157 }
23158 #endif
23159
23160 int
23161 main ()
23162 {
23163 return f != $ac_func;
23164   ;
23165   return 0;
23166 }
23167 _ACEOF
23168 rm -f conftest.$ac_objext conftest$ac_exeext
23169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23170   (eval $ac_link) 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } &&
23177          { ac_try='test -z "$ac_c_werror_flag"
23178                          || test ! -s conftest.err'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; } &&
23184          { ac_try='test -s conftest$ac_exeext'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; }; then
23190   eval "$as_ac_var=yes"
23191 else
23192   echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23194
23195 eval "$as_ac_var=no"
23196 fi
23197 rm -f conftest.err conftest.$ac_objext \
23198       conftest$ac_exeext conftest.$ac_ext
23199 fi
23200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23202 if test `eval echo '${'$as_ac_var'}'` = yes; then
23203   cat >>confdefs.h <<_ACEOF
23204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23205 _ACEOF
23206
23207      cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 #include <unistd.h>
23214
23215 _ACEOF
23216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23217   $EGREP "usleep" >/dev/null 2>&1; then
23218
23219
23220 cat >>confdefs.h <<\_ACEOF
23221 #define HAVE_USLEEP_DECL 1
23222 _ACEOF
23223
23224 fi
23225 rm -f conftest*
23226
23227 fi
23228 done
23229
23230
23231    # Look for these functions in the thread library, but only bother
23232    # if using POSIX threads.
23233    if test "$THREADS" = posix; then
23234       save_LIBS="$LIBS"
23235       LIBS="$LIBS $THREADLIBS"
23236
23237       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23238       # Solaris 7 the name librt is preferred.
23239
23240 for ac_func in sched_yield
23241 do
23242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23243 echo "$as_me:$LINENO: checking for $ac_func" >&5
23244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23245 if eval "test \"\${$as_ac_var+set}\" = set"; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   if test x$gcc_no_link = xyes; then
23249   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23251    { (exit 1); exit 1; }; }
23252 fi
23253 cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23261 #define $ac_func innocuous_$ac_func
23262
23263 /* System header to define __stub macros and hopefully few prototypes,
23264     which can conflict with char $ac_func (); below.
23265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23266     <limits.h> exists even on freestanding compilers.  */
23267
23268 #ifdef __STDC__
23269 # include <limits.h>
23270 #else
23271 # include <assert.h>
23272 #endif
23273
23274 #undef $ac_func
23275
23276 /* Override any gcc2 internal prototype to avoid an error.  */
23277 #ifdef __cplusplus
23278 extern "C"
23279 {
23280 #endif
23281 /* We use char because int might match the return type of a gcc2
23282    builtin and then its argument prototype would still apply.  */
23283 char $ac_func ();
23284 /* The GNU C library defines this for functions which it implements
23285     to always fail with ENOSYS.  Some functions are actually named
23286     something starting with __ and the normal name is an alias.  */
23287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23288 choke me
23289 #else
23290 char (*f) () = $ac_func;
23291 #endif
23292 #ifdef __cplusplus
23293 }
23294 #endif
23295
23296 int
23297 main ()
23298 {
23299 return f != $ac_func;
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306   (eval $ac_link) 2>conftest.er1
23307   ac_status=$?
23308   grep -v '^ *+' conftest.er1 >conftest.err
23309   rm -f conftest.er1
23310   cat conftest.err >&5
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } &&
23313          { ac_try='test -z "$ac_c_werror_flag"
23314                          || test ! -s conftest.err'
23315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest$ac_exeext'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   eval "$as_ac_var=yes"
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 eval "$as_ac_var=no"
23332 fi
23333 rm -f conftest.err conftest.$ac_objext \
23334       conftest$ac_exeext conftest.$ac_ext
23335 fi
23336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23338 if test `eval echo '${'$as_ac_var'}'` = yes; then
23339   cat >>confdefs.h <<_ACEOF
23340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23341 _ACEOF
23342
23343 else
23344
23345         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23346 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23347 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   ac_check_lib_save_LIBS=$LIBS
23351 LIBS="-lrt  $LIBS"
23352 if test x$gcc_no_link = xyes; then
23353   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23354 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23355    { (exit 1); exit 1; }; }
23356 fi
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363
23364 /* Override any gcc2 internal prototype to avoid an error.  */
23365 #ifdef __cplusplus
23366 extern "C"
23367 #endif
23368 /* We use char because int might match the return type of a gcc2
23369    builtin and then its argument prototype would still apply.  */
23370 char sched_yield ();
23371 int
23372 main ()
23373 {
23374 sched_yield ();
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381   (eval $ac_link) 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } &&
23388          { ac_try='test -z "$ac_c_werror_flag"
23389                          || test ! -s conftest.err'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; } &&
23395          { ac_try='test -s conftest$ac_exeext'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; }; then
23401   ac_cv_lib_rt_sched_yield=yes
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ac_cv_lib_rt_sched_yield=no
23407 fi
23408 rm -f conftest.err conftest.$ac_objext \
23409       conftest$ac_exeext conftest.$ac_ext
23410 LIBS=$ac_check_lib_save_LIBS
23411 fi
23412 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23413 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23414 if test $ac_cv_lib_rt_sched_yield = yes; then
23415
23416           cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_SCHED_YIELD 1
23418 _ACEOF
23419
23420           THREADLIBS="$THREADLIBS -lrt"
23421           THREADSPEC="$THREADSPEC -lrt"
23422 else
23423
23424           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23425 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23426 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23427   echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429   ac_check_lib_save_LIBS=$LIBS
23430 LIBS="-lposix4  $LIBS"
23431 if test x$gcc_no_link = xyes; then
23432   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23434    { (exit 1); exit 1; }; }
23435 fi
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442
23443 /* Override any gcc2 internal prototype to avoid an error.  */
23444 #ifdef __cplusplus
23445 extern "C"
23446 #endif
23447 /* We use char because int might match the return type of a gcc2
23448    builtin and then its argument prototype would still apply.  */
23449 char sched_yield ();
23450 int
23451 main ()
23452 {
23453 sched_yield ();
23454   ;
23455   return 0;
23456 }
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460   (eval $ac_link) 2>conftest.er1
23461   ac_status=$?
23462   grep -v '^ *+' conftest.er1 >conftest.err
23463   rm -f conftest.er1
23464   cat conftest.err >&5
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } &&
23467          { ac_try='test -z "$ac_c_werror_flag"
23468                          || test ! -s conftest.err'
23469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470   (eval $ac_try) 2>&5
23471   ac_status=$?
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); }; } &&
23474          { ac_try='test -s conftest$ac_exeext'
23475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476   (eval $ac_try) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); }; }; then
23480   ac_cv_lib_posix4_sched_yield=yes
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 ac_cv_lib_posix4_sched_yield=no
23486 fi
23487 rm -f conftest.err conftest.$ac_objext \
23488       conftest$ac_exeext conftest.$ac_ext
23489 LIBS=$ac_check_lib_save_LIBS
23490 fi
23491 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23492 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23493 if test $ac_cv_lib_posix4_sched_yield = yes; then
23494
23495             cat >>confdefs.h <<\_ACEOF
23496 #define HAVE_SCHED_YIELD 1
23497 _ACEOF
23498
23499             THREADLIBS="$THREADLIBS -lposix4"
23500             THREADSPEC="$THREADSPEC -lposix4"
23501 fi
23502
23503 fi
23504
23505 fi
23506 done
23507
23508
23509       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23510 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23511 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23512   echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514   ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lrt  $LIBS"
23516 if test x$gcc_no_link = xyes; then
23517   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23519    { (exit 1); exit 1; }; }
23520 fi
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h.  */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h.  */
23527
23528 /* Override any gcc2 internal prototype to avoid an error.  */
23529 #ifdef __cplusplus
23530 extern "C"
23531 #endif
23532 /* We use char because int might match the return type of a gcc2
23533    builtin and then its argument prototype would still apply.  */
23534 char clock_gettime ();
23535 int
23536 main ()
23537 {
23538 clock_gettime ();
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545   (eval $ac_link) 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } &&
23552          { ac_try='test -z "$ac_c_werror_flag"
23553                          || test ! -s conftest.err'
23554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555   (eval $ac_try) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }; } &&
23559          { ac_try='test -s conftest$ac_exeext'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; }; then
23565   ac_cv_lib_rt_clock_gettime=yes
23566 else
23567   echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570 ac_cv_lib_rt_clock_gettime=no
23571 fi
23572 rm -f conftest.err conftest.$ac_objext \
23573       conftest$ac_exeext conftest.$ac_ext
23574 LIBS=$ac_check_lib_save_LIBS
23575 fi
23576 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23577 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23578 if test $ac_cv_lib_rt_clock_gettime = yes; then
23579
23580
23581 cat >>confdefs.h <<\_ACEOF
23582 #define HAVE_CLOCK_GETTIME 1
23583 _ACEOF
23584
23585          case "$THREADSPEC" in
23586            *-lrt*) ;;
23587            *)
23588              THREADSPEC="$THREADSPEC -lrt"
23589              THREADLIBS="$THREADLIBS -lrt"
23590              ;;
23591          esac
23592 fi
23593
23594
23595       LIBS="$save_LIBS"
23596
23597       # We can save a little space at runtime if the mutex has m_count
23598       # or __m_count.  This is a nice hack for Linux.
23599       cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 #include <pthread.h>
23606 int
23607 main ()
23608 {
23609
23610           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23611
23612   ;
23613   return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext
23617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23618   (eval $ac_compile) 2>conftest.er1
23619   ac_status=$?
23620   grep -v '^ *+' conftest.er1 >conftest.err
23621   rm -f conftest.er1
23622   cat conftest.err >&5
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); } &&
23625          { ac_try='test -z "$ac_c_werror_flag"
23626                          || test ! -s conftest.err'
23627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628   (eval $ac_try) 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; } &&
23632          { ac_try='test -s conftest.$ac_objext'
23633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634   (eval $ac_try) 2>&5
23635   ac_status=$?
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); }; }; then
23638
23639 cat >>confdefs.h <<\_ACEOF
23640 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23641 _ACEOF
23642
23643 else
23644   echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647
23648         cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 #include <pthread.h>
23655 int
23656 main ()
23657 {
23658
23659             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext
23666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23667   (eval $ac_compile) 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } &&
23674          { ac_try='test -z "$ac_c_werror_flag"
23675                          || test ! -s conftest.err'
23676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; } &&
23681          { ac_try='test -s conftest.$ac_objext'
23682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683   (eval $ac_try) 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; }; then
23687
23688 cat >>confdefs.h <<\_ACEOF
23689 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23690 _ACEOF
23691
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 fi
23697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23698 fi
23699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23700    fi
23701
23702    # We require a way to get the time.
23703    time_found=no
23704
23705
23706
23707 for ac_func in gettimeofday time ftime
23708 do
23709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23710 echo "$as_me:$LINENO: checking for $ac_func" >&5
23711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23712 if eval "test \"\${$as_ac_var+set}\" = set"; then
23713   echo $ECHO_N "(cached) $ECHO_C" >&6
23714 else
23715   if test x$gcc_no_link = xyes; then
23716   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23718    { (exit 1); exit 1; }; }
23719 fi
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23728 #define $ac_func innocuous_$ac_func
23729
23730 /* System header to define __stub macros and hopefully few prototypes,
23731     which can conflict with char $ac_func (); below.
23732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23733     <limits.h> exists even on freestanding compilers.  */
23734
23735 #ifdef __STDC__
23736 # include <limits.h>
23737 #else
23738 # include <assert.h>
23739 #endif
23740
23741 #undef $ac_func
23742
23743 /* Override any gcc2 internal prototype to avoid an error.  */
23744 #ifdef __cplusplus
23745 extern "C"
23746 {
23747 #endif
23748 /* We use char because int might match the return type of a gcc2
23749    builtin and then its argument prototype would still apply.  */
23750 char $ac_func ();
23751 /* The GNU C library defines this for functions which it implements
23752     to always fail with ENOSYS.  Some functions are actually named
23753     something starting with __ and the normal name is an alias.  */
23754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23755 choke me
23756 #else
23757 char (*f) () = $ac_func;
23758 #endif
23759 #ifdef __cplusplus
23760 }
23761 #endif
23762
23763 int
23764 main ()
23765 {
23766 return f != $ac_func;
23767   ;
23768   return 0;
23769 }
23770 _ACEOF
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23773   (eval $ac_link) 2>conftest.er1
23774   ac_status=$?
23775   grep -v '^ *+' conftest.er1 >conftest.err
23776   rm -f conftest.er1
23777   cat conftest.err >&5
23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779   (exit $ac_status); } &&
23780          { ac_try='test -z "$ac_c_werror_flag"
23781                          || test ! -s conftest.err'
23782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783   (eval $ac_try) 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); }; } &&
23787          { ac_try='test -s conftest$ac_exeext'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; }; then
23793   eval "$as_ac_var=yes"
23794 else
23795   echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23797
23798 eval "$as_ac_var=no"
23799 fi
23800 rm -f conftest.err conftest.$ac_objext \
23801       conftest$ac_exeext conftest.$ac_ext
23802 fi
23803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23805 if test `eval echo '${'$as_ac_var'}'` = yes; then
23806   cat >>confdefs.h <<_ACEOF
23807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23808 _ACEOF
23809  time_found=yes
23810 fi
23811 done
23812
23813    if test "$time_found" = no; then
23814       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23815 echo "$as_me: error: no function found to get the time" >&2;}
23816    { (exit 1); exit 1; }; }
23817    fi
23818
23819
23820 for ac_func in memmove
23821 do
23822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23823 echo "$as_me:$LINENO: checking for $ac_func" >&5
23824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23825 if eval "test \"\${$as_ac_var+set}\" = set"; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   if test x$gcc_no_link = xyes; then
23829   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23831    { (exit 1); exit 1; }; }
23832 fi
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23841 #define $ac_func innocuous_$ac_func
23842
23843 /* System header to define __stub macros and hopefully few prototypes,
23844     which can conflict with char $ac_func (); below.
23845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23846     <limits.h> exists even on freestanding compilers.  */
23847
23848 #ifdef __STDC__
23849 # include <limits.h>
23850 #else
23851 # include <assert.h>
23852 #endif
23853
23854 #undef $ac_func
23855
23856 /* Override any gcc2 internal prototype to avoid an error.  */
23857 #ifdef __cplusplus
23858 extern "C"
23859 {
23860 #endif
23861 /* We use char because int might match the return type of a gcc2
23862    builtin and then its argument prototype would still apply.  */
23863 char $ac_func ();
23864 /* The GNU C library defines this for functions which it implements
23865     to always fail with ENOSYS.  Some functions are actually named
23866     something starting with __ and the normal name is an alias.  */
23867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23868 choke me
23869 #else
23870 char (*f) () = $ac_func;
23871 #endif
23872 #ifdef __cplusplus
23873 }
23874 #endif
23875
23876 int
23877 main ()
23878 {
23879 return f != $ac_func;
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886   (eval $ac_link) 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } &&
23893          { ac_try='test -z "$ac_c_werror_flag"
23894                          || test ! -s conftest.err'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; } &&
23900          { ac_try='test -s conftest$ac_exeext'
23901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); }; }; then
23906   eval "$as_ac_var=yes"
23907 else
23908   echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 eval "$as_ac_var=no"
23912 fi
23913 rm -f conftest.err conftest.$ac_objext \
23914       conftest$ac_exeext conftest.$ac_ext
23915 fi
23916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23918 if test `eval echo '${'$as_ac_var'}'` = yes; then
23919   cat >>confdefs.h <<_ACEOF
23920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23921 _ACEOF
23922
23923 fi
23924 done
23925
23926
23927    # We require memcpy.
23928    memcpy_found=no
23929
23930 for ac_func in memcpy
23931 do
23932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23933 echo "$as_me:$LINENO: checking for $ac_func" >&5
23934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23935 if eval "test \"\${$as_ac_var+set}\" = set"; then
23936   echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938   if test x$gcc_no_link = xyes; then
23939   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23941    { (exit 1); exit 1; }; }
23942 fi
23943 cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h.  */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h.  */
23949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23951 #define $ac_func innocuous_$ac_func
23952
23953 /* System header to define __stub macros and hopefully few prototypes,
23954     which can conflict with char $ac_func (); below.
23955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23956     <limits.h> exists even on freestanding compilers.  */
23957
23958 #ifdef __STDC__
23959 # include <limits.h>
23960 #else
23961 # include <assert.h>
23962 #endif
23963
23964 #undef $ac_func
23965
23966 /* Override any gcc2 internal prototype to avoid an error.  */
23967 #ifdef __cplusplus
23968 extern "C"
23969 {
23970 #endif
23971 /* We use char because int might match the return type of a gcc2
23972    builtin and then its argument prototype would still apply.  */
23973 char $ac_func ();
23974 /* The GNU C library defines this for functions which it implements
23975     to always fail with ENOSYS.  Some functions are actually named
23976     something starting with __ and the normal name is an alias.  */
23977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23978 choke me
23979 #else
23980 char (*f) () = $ac_func;
23981 #endif
23982 #ifdef __cplusplus
23983 }
23984 #endif
23985
23986 int
23987 main ()
23988 {
23989 return f != $ac_func;
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 rm -f conftest.$ac_objext conftest$ac_exeext
23995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23996   (eval $ac_link) 2>conftest.er1
23997   ac_status=$?
23998   grep -v '^ *+' conftest.er1 >conftest.err
23999   rm -f conftest.er1
24000   cat conftest.err >&5
24001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002   (exit $ac_status); } &&
24003          { ac_try='test -z "$ac_c_werror_flag"
24004                          || test ! -s conftest.err'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; } &&
24010          { ac_try='test -s conftest$ac_exeext'
24011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012   (eval $ac_try) 2>&5
24013   ac_status=$?
24014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015   (exit $ac_status); }; }; then
24016   eval "$as_ac_var=yes"
24017 else
24018   echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24020
24021 eval "$as_ac_var=no"
24022 fi
24023 rm -f conftest.err conftest.$ac_objext \
24024       conftest$ac_exeext conftest.$ac_ext
24025 fi
24026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24028 if test `eval echo '${'$as_ac_var'}'` = yes; then
24029   cat >>confdefs.h <<_ACEOF
24030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24031 _ACEOF
24032  memcpy_found=yes
24033 fi
24034 done
24035
24036    if test "$memcpy_found" = no; then
24037       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24038 echo "$as_me: error: memcpy is required" >&2;}
24039    { (exit 1); exit 1; }; }
24040    fi
24041    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24042    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24045   echo $ECHO_N "(cached) $ECHO_C" >&6
24046 else
24047   ac_check_lib_save_LIBS=$LIBS
24048 LIBS="-ldl  $LIBS"
24049 if test x$gcc_no_link = xyes; then
24050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24052    { (exit 1); exit 1; }; }
24053 fi
24054 cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h.  */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h.  */
24060
24061 /* Override any gcc2 internal prototype to avoid an error.  */
24062 #ifdef __cplusplus
24063 extern "C"
24064 #endif
24065 /* We use char because int might match the return type of a gcc2
24066    builtin and then its argument prototype would still apply.  */
24067 char dlopen ();
24068 int
24069 main ()
24070 {
24071 dlopen ();
24072   ;
24073   return 0;
24074 }
24075 _ACEOF
24076 rm -f conftest.$ac_objext conftest$ac_exeext
24077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24078   (eval $ac_link) 2>conftest.er1
24079   ac_status=$?
24080   grep -v '^ *+' conftest.er1 >conftest.err
24081   rm -f conftest.er1
24082   cat conftest.err >&5
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } &&
24085          { ac_try='test -z "$ac_c_werror_flag"
24086                          || test ! -s conftest.err'
24087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24088   (eval $ac_try) 2>&5
24089   ac_status=$?
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); }; } &&
24092          { ac_try='test -s conftest$ac_exeext'
24093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094   (eval $ac_try) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); }; }; then
24098   ac_cv_lib_dl_dlopen=yes
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103 ac_cv_lib_dl_dlopen=no
24104 fi
24105 rm -f conftest.err conftest.$ac_objext \
24106       conftest$ac_exeext conftest.$ac_ext
24107 LIBS=$ac_check_lib_save_LIBS
24108 fi
24109 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24111 if test $ac_cv_lib_dl_dlopen = yes; then
24112
24113
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_DLOPEN 1
24116 _ACEOF
24117
24118 else
24119
24120        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24121 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24122 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   ac_check_lib_save_LIBS=$LIBS
24126 LIBS="-ldld  $LIBS"
24127 if test x$gcc_no_link = xyes; then
24128   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24129 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24130    { (exit 1); exit 1; }; }
24131 fi
24132 cat >conftest.$ac_ext <<_ACEOF
24133 /* confdefs.h.  */
24134 _ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h.  */
24138
24139 /* Override any gcc2 internal prototype to avoid an error.  */
24140 #ifdef __cplusplus
24141 extern "C"
24142 #endif
24143 /* We use char because int might match the return type of a gcc2
24144    builtin and then its argument prototype would still apply.  */
24145 char dlopen ();
24146 int
24147 main ()
24148 {
24149 dlopen ();
24150   ;
24151   return 0;
24152 }
24153 _ACEOF
24154 rm -f conftest.$ac_objext conftest$ac_exeext
24155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24156   (eval $ac_link) 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } &&
24163          { ac_try='test -z "$ac_c_werror_flag"
24164                          || test ! -s conftest.err'
24165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166   (eval $ac_try) 2>&5
24167   ac_status=$?
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); }; } &&
24170          { ac_try='test -s conftest$ac_exeext'
24171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172   (eval $ac_try) 2>&5
24173   ac_status=$?
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); }; }; then
24176   ac_cv_lib_dld_dlopen=yes
24177 else
24178   echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 ac_cv_lib_dld_dlopen=no
24182 fi
24183 rm -f conftest.err conftest.$ac_objext \
24184       conftest$ac_exeext conftest.$ac_ext
24185 LIBS=$ac_check_lib_save_LIBS
24186 fi
24187 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24188 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24189 if test $ac_cv_lib_dld_dlopen = yes; then
24190
24191
24192 cat >>confdefs.h <<\_ACEOF
24193 #define HAVE_DLOPEN 1
24194 _ACEOF
24195
24196 fi
24197
24198 fi
24199
24200
24201    # Some library-finding code we stole from Tcl.
24202    #--------------------------------------------------------------------
24203    #    Check for the existence of the -lsocket and -lnsl libraries.
24204    #    The order here is important, so that they end up in the right
24205    #    order in the command line generated by make.  Here are some
24206    #    special considerations:
24207    #    1. Use "connect" and "accept" to check for -lsocket, and
24208    #       "gethostbyname" to check for -lnsl.
24209    #    2. Use each function name only once:  can't redo a check because
24210    #       autoconf caches the results of the last check and won't redo it.
24211    #    3. Use -lnsl and -lsocket only if they supply procedures that
24212    #       aren't already present in the normal libraries.  This is because
24213    #       IRIX 5.2 has libraries, but they aren't needed and they're
24214    #       bogus:  they goof up name resolution if used.
24215    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24216    #       To get around this problem, check for both libraries together
24217    #       if -lsocket doesn't work by itself.
24218    #--------------------------------------------------------------------
24219
24220    echo "$as_me:$LINENO: checking for socket libraries" >&5
24221 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24222 if test "${gcj_cv_lib_sockets+set}" = set; then
24223   echo $ECHO_N "(cached) $ECHO_C" >&6
24224 else
24225   gcj_cv_lib_sockets=
24226      gcj_checkBoth=0
24227      unset ac_cv_func_connect
24228      echo "$as_me:$LINENO: checking for connect" >&5
24229 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24230 if test "${ac_cv_func_connect+set}" = set; then
24231   echo $ECHO_N "(cached) $ECHO_C" >&6
24232 else
24233   if test x$gcc_no_link = xyes; then
24234   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24236    { (exit 1); exit 1; }; }
24237 fi
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24246 #define connect innocuous_connect
24247
24248 /* System header to define __stub macros and hopefully few prototypes,
24249     which can conflict with char connect (); below.
24250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24251     <limits.h> exists even on freestanding compilers.  */
24252
24253 #ifdef __STDC__
24254 # include <limits.h>
24255 #else
24256 # include <assert.h>
24257 #endif
24258
24259 #undef connect
24260
24261 /* Override any gcc2 internal prototype to avoid an error.  */
24262 #ifdef __cplusplus
24263 extern "C"
24264 {
24265 #endif
24266 /* We use char because int might match the return type of a gcc2
24267    builtin and then its argument prototype would still apply.  */
24268 char connect ();
24269 /* The GNU C library defines this for functions which it implements
24270     to always fail with ENOSYS.  Some functions are actually named
24271     something starting with __ and the normal name is an alias.  */
24272 #if defined (__stub_connect) || defined (__stub___connect)
24273 choke me
24274 #else
24275 char (*f) () = connect;
24276 #endif
24277 #ifdef __cplusplus
24278 }
24279 #endif
24280
24281 int
24282 main ()
24283 {
24284 return f != connect;
24285   ;
24286   return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest.$ac_objext conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291   (eval $ac_link) 2>conftest.er1
24292   ac_status=$?
24293   grep -v '^ *+' conftest.er1 >conftest.err
24294   rm -f conftest.er1
24295   cat conftest.err >&5
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); } &&
24298          { ac_try='test -z "$ac_c_werror_flag"
24299                          || test ! -s conftest.err'
24300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301   (eval $ac_try) 2>&5
24302   ac_status=$?
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); }; } &&
24305          { ac_try='test -s conftest$ac_exeext'
24306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307   (eval $ac_try) 2>&5
24308   ac_status=$?
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); }; }; then
24311   ac_cv_func_connect=yes
24312 else
24313   echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316 ac_cv_func_connect=no
24317 fi
24318 rm -f conftest.err conftest.$ac_objext \
24319       conftest$ac_exeext conftest.$ac_ext
24320 fi
24321 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24322 echo "${ECHO_T}$ac_cv_func_connect" >&6
24323 if test $ac_cv_func_connect = yes; then
24324   gcj_checkSocket=0
24325 else
24326   gcj_checkSocket=1
24327 fi
24328
24329      if test "$gcj_checkSocket" = 1; then
24330          unset ac_cv_func_connect
24331          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24332 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24333 if test "${ac_cv_lib_socket_main+set}" = set; then
24334   echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336   ac_check_lib_save_LIBS=$LIBS
24337 LIBS="-lsocket  $LIBS"
24338 if test x$gcc_no_link = xyes; then
24339   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24341    { (exit 1); exit 1; }; }
24342 fi
24343 cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349
24350
24351 int
24352 main ()
24353 {
24354 main ();
24355   ;
24356   return 0;
24357 }
24358 _ACEOF
24359 rm -f conftest.$ac_objext conftest$ac_exeext
24360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24361   (eval $ac_link) 2>conftest.er1
24362   ac_status=$?
24363   grep -v '^ *+' conftest.er1 >conftest.err
24364   rm -f conftest.er1
24365   cat conftest.err >&5
24366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367   (exit $ac_status); } &&
24368          { ac_try='test -z "$ac_c_werror_flag"
24369                          || test ! -s conftest.err'
24370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371   (eval $ac_try) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); }; } &&
24375          { ac_try='test -s conftest$ac_exeext'
24376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); }; }; then
24381   ac_cv_lib_socket_main=yes
24382 else
24383   echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386 ac_cv_lib_socket_main=no
24387 fi
24388 rm -f conftest.err conftest.$ac_objext \
24389       conftest$ac_exeext conftest.$ac_ext
24390 LIBS=$ac_check_lib_save_LIBS
24391 fi
24392 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24393 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24394 if test $ac_cv_lib_socket_main = yes; then
24395   gcj_cv_lib_sockets="-lsocket"
24396 else
24397   gcj_checkBoth=1
24398 fi
24399
24400      fi
24401      if test "$gcj_checkBoth" = 1; then
24402          gcj_oldLibs=$LIBS
24403          LIBS="$LIBS -lsocket -lnsl"
24404          unset ac_cv_func_accept
24405          echo "$as_me:$LINENO: checking for accept" >&5
24406 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24407 if test "${ac_cv_func_accept+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 else
24410   if test x$gcc_no_link = xyes; then
24411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24413    { (exit 1); exit 1; }; }
24414 fi
24415 cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24423 #define accept innocuous_accept
24424
24425 /* System header to define __stub macros and hopefully few prototypes,
24426     which can conflict with char accept (); below.
24427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24428     <limits.h> exists even on freestanding compilers.  */
24429
24430 #ifdef __STDC__
24431 # include <limits.h>
24432 #else
24433 # include <assert.h>
24434 #endif
24435
24436 #undef accept
24437
24438 /* Override any gcc2 internal prototype to avoid an error.  */
24439 #ifdef __cplusplus
24440 extern "C"
24441 {
24442 #endif
24443 /* We use char because int might match the return type of a gcc2
24444    builtin and then its argument prototype would still apply.  */
24445 char accept ();
24446 /* The GNU C library defines this for functions which it implements
24447     to always fail with ENOSYS.  Some functions are actually named
24448     something starting with __ and the normal name is an alias.  */
24449 #if defined (__stub_accept) || defined (__stub___accept)
24450 choke me
24451 #else
24452 char (*f) () = accept;
24453 #endif
24454 #ifdef __cplusplus
24455 }
24456 #endif
24457
24458 int
24459 main ()
24460 {
24461 return f != accept;
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24468   (eval $ac_link) 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } &&
24475          { ac_try='test -z "$ac_c_werror_flag"
24476                          || test ! -s conftest.err'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest$ac_exeext'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; }; then
24488   ac_cv_func_accept=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_cv_func_accept=no
24494 fi
24495 rm -f conftest.err conftest.$ac_objext \
24496       conftest$ac_exeext conftest.$ac_ext
24497 fi
24498 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24499 echo "${ECHO_T}$ac_cv_func_accept" >&6
24500 if test $ac_cv_func_accept = yes; then
24501   gcj_checkNsl=0
24502                         gcj_cv_lib_sockets="-lsocket -lnsl"
24503 fi
24504
24505          unset ac_cv_func_accept
24506          LIBS=$gcj_oldLibs
24507      fi
24508      unset ac_cv_func_gethostbyname
24509      gcj_oldLibs=$LIBS
24510      LIBS="$LIBS $gcj_cv_lib_sockets"
24511      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24512 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24513 if test "${ac_cv_func_gethostbyname+set}" = set; then
24514   echo $ECHO_N "(cached) $ECHO_C" >&6
24515 else
24516   if test x$gcc_no_link = xyes; then
24517   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24519    { (exit 1); exit 1; }; }
24520 fi
24521 cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h.  */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h.  */
24527 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24529 #define gethostbyname innocuous_gethostbyname
24530
24531 /* System header to define __stub macros and hopefully few prototypes,
24532     which can conflict with char gethostbyname (); below.
24533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24534     <limits.h> exists even on freestanding compilers.  */
24535
24536 #ifdef __STDC__
24537 # include <limits.h>
24538 #else
24539 # include <assert.h>
24540 #endif
24541
24542 #undef gethostbyname
24543
24544 /* Override any gcc2 internal prototype to avoid an error.  */
24545 #ifdef __cplusplus
24546 extern "C"
24547 {
24548 #endif
24549 /* We use char because int might match the return type of a gcc2
24550    builtin and then its argument prototype would still apply.  */
24551 char gethostbyname ();
24552 /* The GNU C library defines this for functions which it implements
24553     to always fail with ENOSYS.  Some functions are actually named
24554     something starting with __ and the normal name is an alias.  */
24555 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24556 choke me
24557 #else
24558 char (*f) () = gethostbyname;
24559 #endif
24560 #ifdef __cplusplus
24561 }
24562 #endif
24563
24564 int
24565 main ()
24566 {
24567 return f != gethostbyname;
24568   ;
24569   return 0;
24570 }
24571 _ACEOF
24572 rm -f conftest.$ac_objext conftest$ac_exeext
24573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24574   (eval $ac_link) 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } &&
24581          { ac_try='test -z "$ac_c_werror_flag"
24582                          || test ! -s conftest.err'
24583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; } &&
24588          { ac_try='test -s conftest$ac_exeext'
24589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590   (eval $ac_try) 2>&5
24591   ac_status=$?
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); }; }; then
24594   ac_cv_func_gethostbyname=yes
24595 else
24596   echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599 ac_cv_func_gethostbyname=no
24600 fi
24601 rm -f conftest.err conftest.$ac_objext \
24602       conftest$ac_exeext conftest.$ac_ext
24603 fi
24604 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24605 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24606 if test $ac_cv_func_gethostbyname = yes; then
24607   :
24608 else
24609   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24610 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24611 if test "${ac_cv_lib_nsl_main+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-lnsl  $LIBS"
24616 if test x$gcc_no_link = xyes; then
24617   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24619    { (exit 1); exit 1; }; }
24620 fi
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627
24628
24629 int
24630 main ()
24631 {
24632 main ();
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24639   (eval $ac_link) 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } &&
24646          { ac_try='test -z "$ac_c_werror_flag"
24647                          || test ! -s conftest.err'
24648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24649   (eval $ac_try) 2>&5
24650   ac_status=$?
24651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); }; } &&
24653          { ac_try='test -s conftest$ac_exeext'
24654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655   (eval $ac_try) 2>&5
24656   ac_status=$?
24657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658   (exit $ac_status); }; }; then
24659   ac_cv_lib_nsl_main=yes
24660 else
24661   echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664 ac_cv_lib_nsl_main=no
24665 fi
24666 rm -f conftest.err conftest.$ac_objext \
24667       conftest$ac_exeext conftest.$ac_ext
24668 LIBS=$ac_check_lib_save_LIBS
24669 fi
24670 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24671 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24672 if test $ac_cv_lib_nsl_main = yes; then
24673   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24674 fi
24675
24676 fi
24677
24678      unset ac_cv_func_gethostbyname
24679      LIBS=$gcj_oldLIBS
24680
24681 fi
24682 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24683 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24684    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24685
24686    if test "$with_system_zlib" = yes; then
24687       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24688 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24689 if test "${ac_cv_lib_z_deflate+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   ac_check_lib_save_LIBS=$LIBS
24693 LIBS="-lz  $LIBS"
24694 if test x$gcc_no_link = xyes; then
24695   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24697    { (exit 1); exit 1; }; }
24698 fi
24699 cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705
24706 /* Override any gcc2 internal prototype to avoid an error.  */
24707 #ifdef __cplusplus
24708 extern "C"
24709 #endif
24710 /* We use char because int might match the return type of a gcc2
24711    builtin and then its argument prototype would still apply.  */
24712 char deflate ();
24713 int
24714 main ()
24715 {
24716 deflate ();
24717   ;
24718   return 0;
24719 }
24720 _ACEOF
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723   (eval $ac_link) 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } &&
24730          { ac_try='test -z "$ac_c_werror_flag"
24731                          || test ! -s conftest.err'
24732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; } &&
24737          { ac_try='test -s conftest$ac_exeext'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; }; then
24743   ac_cv_lib_z_deflate=yes
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 ac_cv_lib_z_deflate=no
24749 fi
24750 rm -f conftest.err conftest.$ac_objext \
24751       conftest$ac_exeext conftest.$ac_ext
24752 LIBS=$ac_check_lib_save_LIBS
24753 fi
24754 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24755 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24756 if test $ac_cv_lib_z_deflate = yes; then
24757   ZLIBSPEC=-lz
24758 else
24759   ZLIBSPEC=
24760 fi
24761
24762    fi
24763
24764    # Test for Gtk stuff, if asked for.
24765    if test "$use_gtk_awt" = yes; then
24766
24767   succeeded=no
24768
24769   if test -z "$PKG_CONFIG"; then
24770     # Extract the first word of "pkg-config", so it can be a program name with args.
24771 set dummy pkg-config; ac_word=$2
24772 echo "$as_me:$LINENO: checking for $ac_word" >&5
24773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24774 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   case $PKG_CONFIG in
24778   [\\/]* | ?:[\\/]*)
24779   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24780   ;;
24781   *)
24782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24783 for as_dir in $PATH
24784 do
24785   IFS=$as_save_IFS
24786   test -z "$as_dir" && as_dir=.
24787   for ac_exec_ext in '' $ac_executable_extensions; do
24788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24789     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24791     break 2
24792   fi
24793 done
24794 done
24795
24796   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24797   ;;
24798 esac
24799 fi
24800 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24801
24802 if test -n "$PKG_CONFIG"; then
24803   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24804 echo "${ECHO_T}$PKG_CONFIG" >&6
24805 else
24806   echo "$as_me:$LINENO: result: no" >&5
24807 echo "${ECHO_T}no" >&6
24808 fi
24809
24810   fi
24811
24812   if test "$PKG_CONFIG" = "no" ; then
24813      echo "*** The pkg-config script could not be found. Make sure it is"
24814      echo "*** in your path, or set the PKG_CONFIG environment variable"
24815      echo "*** to the full path to pkg-config."
24816      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24817   else
24818      PKG_CONFIG_MIN_VERSION=0.9.0
24819      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24820         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24821 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24822
24823         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24824             echo "$as_me:$LINENO: result: yes" >&5
24825 echo "${ECHO_T}yes" >&6
24826             succeeded=yes
24827
24828             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24829 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24830             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24831             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24832 echo "${ECHO_T}$GTK_CFLAGS" >&6
24833
24834             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24835 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24836             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24837             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24838 echo "${ECHO_T}$GTK_LIBS" >&6
24839         else
24840             GTK_CFLAGS=""
24841             GTK_LIBS=""
24842             ## If we have a custom action on failure, don't print errors, but
24843             ## do set a variable so people can do so.
24844             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24845             echo $GTK_PKG_ERRORS
24846         fi
24847
24848
24849
24850      else
24851         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24852         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24853      fi
24854   fi
24855
24856   if test $succeeded = yes; then
24857      :
24858   else
24859      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
24860 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
24861    { (exit 1); exit 1; }; }
24862   fi
24863
24864
24865
24866
24867
24868   succeeded=no
24869
24870   if test -z "$PKG_CONFIG"; then
24871     # Extract the first word of "pkg-config", so it can be a program name with args.
24872 set dummy pkg-config; ac_word=$2
24873 echo "$as_me:$LINENO: checking for $ac_word" >&5
24874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24875 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24876   echo $ECHO_N "(cached) $ECHO_C" >&6
24877 else
24878   case $PKG_CONFIG in
24879   [\\/]* | ?:[\\/]*)
24880   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24881   ;;
24882   *)
24883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24884 for as_dir in $PATH
24885 do
24886   IFS=$as_save_IFS
24887   test -z "$as_dir" && as_dir=.
24888   for ac_exec_ext in '' $ac_executable_extensions; do
24889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24890     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24892     break 2
24893   fi
24894 done
24895 done
24896
24897   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24898   ;;
24899 esac
24900 fi
24901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24902
24903 if test -n "$PKG_CONFIG"; then
24904   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24905 echo "${ECHO_T}$PKG_CONFIG" >&6
24906 else
24907   echo "$as_me:$LINENO: result: no" >&5
24908 echo "${ECHO_T}no" >&6
24909 fi
24910
24911   fi
24912
24913   if test "$PKG_CONFIG" = "no" ; then
24914      echo "*** The pkg-config script could not be found. Make sure it is"
24915      echo "*** in your path, or set the PKG_CONFIG environment variable"
24916      echo "*** to the full path to pkg-config."
24917      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24918   else
24919      PKG_CONFIG_MIN_VERSION=0.9.0
24920      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24921         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
24922 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
24923
24924         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
24925             echo "$as_me:$LINENO: result: yes" >&5
24926 echo "${ECHO_T}yes" >&6
24927             succeeded=yes
24928
24929             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
24930 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
24931             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24932             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
24933 echo "${ECHO_T}$GLIB_CFLAGS" >&6
24934
24935             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
24936 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
24937             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24938             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
24939 echo "${ECHO_T}$GLIB_LIBS" >&6
24940         else
24941             GLIB_CFLAGS=""
24942             GLIB_LIBS=""
24943             ## If we have a custom action on failure, don't print errors, but
24944             ## do set a variable so people can do so.
24945             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24946             echo $GLIB_PKG_ERRORS
24947         fi
24948
24949
24950
24951      else
24952         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24953         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24954      fi
24955   fi
24956
24957   if test $succeeded = yes; then
24958      :
24959   else
24960      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
24961 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
24962    { (exit 1); exit 1; }; }
24963   fi
24964
24965
24966
24967
24968
24969   succeeded=no
24970
24971   if test -z "$PKG_CONFIG"; then
24972     # Extract the first word of "pkg-config", so it can be a program name with args.
24973 set dummy pkg-config; ac_word=$2
24974 echo "$as_me:$LINENO: checking for $ac_word" >&5
24975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   case $PKG_CONFIG in
24980   [\\/]* | ?:[\\/]*)
24981   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24982   ;;
24983   *)
24984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24985 for as_dir in $PATH
24986 do
24987   IFS=$as_save_IFS
24988   test -z "$as_dir" && as_dir=.
24989   for ac_exec_ext in '' $ac_executable_extensions; do
24990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24991     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24993     break 2
24994   fi
24995 done
24996 done
24997
24998   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24999   ;;
25000 esac
25001 fi
25002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25003
25004 if test -n "$PKG_CONFIG"; then
25005   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25006 echo "${ECHO_T}$PKG_CONFIG" >&6
25007 else
25008   echo "$as_me:$LINENO: result: no" >&5
25009 echo "${ECHO_T}no" >&6
25010 fi
25011
25012   fi
25013
25014   if test "$PKG_CONFIG" = "no" ; then
25015      echo "*** The pkg-config script could not be found. Make sure it is"
25016      echo "*** in your path, or set the PKG_CONFIG environment variable"
25017      echo "*** to the full path to pkg-config."
25018      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25019   else
25020      PKG_CONFIG_MIN_VERSION=0.9.0
25021      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25022         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25023 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25024
25025         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25026             echo "$as_me:$LINENO: result: yes" >&5
25027 echo "${ECHO_T}yes" >&6
25028             succeeded=yes
25029
25030             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25031 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25032             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25033             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25034 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25035
25036             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25037 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25038             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25039             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25040 echo "${ECHO_T}$LIBART_LIBS" >&6
25041         else
25042             LIBART_CFLAGS=""
25043             LIBART_LIBS=""
25044             ## If we have a custom action on failure, don't print errors, but
25045             ## do set a variable so people can do so.
25046             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25047             echo $LIBART_PKG_ERRORS
25048         fi
25049
25050
25051
25052      else
25053         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25054         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25055      fi
25056   fi
25057
25058   if test $succeeded = yes; then
25059      :
25060   else
25061      { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25062 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25063    { (exit 1); exit 1; }; }
25064   fi
25065
25066
25067
25068
25069       # We require the XTest Extension to support java.awt.Robot.
25070       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25071 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25072 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25073   echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075   ac_check_lib_save_LIBS=$LIBS
25076 LIBS="-lXtst ${X_LIBS} $LIBS"
25077 if test x$gcc_no_link = xyes; then
25078   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25080    { (exit 1); exit 1; }; }
25081 fi
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 /* Override any gcc2 internal prototype to avoid an error.  */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 /* We use char because int might match the return type of a gcc2
25094    builtin and then its argument prototype would still apply.  */
25095 char XTestQueryExtension ();
25096 int
25097 main ()
25098 {
25099 XTestQueryExtension ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106   (eval $ac_link) 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } &&
25113          { ac_try='test -z "$ac_c_werror_flag"
25114                          || test ! -s conftest.err'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest$ac_exeext'
25121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122   (eval $ac_try) 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126   ac_cv_lib_Xtst_XTestQueryExtension=yes
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 ac_cv_lib_Xtst_XTestQueryExtension=no
25132 fi
25133 rm -f conftest.err conftest.$ac_objext \
25134       conftest$ac_exeext conftest.$ac_ext
25135 LIBS=$ac_check_lib_save_LIBS
25136 fi
25137 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25138 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25139 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25140   true
25141 else
25142   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25143 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25144    { (exit 1); exit 1; }; }
25145 fi
25146
25147    fi
25148
25149    # On Solaris, and maybe other architectures, the Boehm collector
25150    # requires -ldl.
25151    if test "$GC" = boehm; then
25152       case "${host}" in
25153           mips-sgi-irix6*)
25154             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25155             # libgcj.spec is used, so override here
25156             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25157           ;;
25158           *)
25159             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25160 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25161 if test "${ac_cv_lib_dl_main+set}" = set; then
25162   echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164   ac_check_lib_save_LIBS=$LIBS
25165 LIBS="-ldl  $LIBS"
25166 if test x$gcc_no_link = xyes; then
25167   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25168 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25169    { (exit 1); exit 1; }; }
25170 fi
25171 cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177
25178
25179 int
25180 main ()
25181 {
25182 main ();
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 rm -f conftest.$ac_objext conftest$ac_exeext
25188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25189   (eval $ac_link) 2>conftest.er1
25190   ac_status=$?
25191   grep -v '^ *+' conftest.er1 >conftest.err
25192   rm -f conftest.er1
25193   cat conftest.err >&5
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); } &&
25196          { ac_try='test -z "$ac_c_werror_flag"
25197                          || test ! -s conftest.err'
25198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199   (eval $ac_try) 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; } &&
25203          { ac_try='test -s conftest$ac_exeext'
25204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205   (eval $ac_try) 2>&5
25206   ac_status=$?
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); }; }; then
25209   ac_cv_lib_dl_main=yes
25210 else
25211   echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214 ac_cv_lib_dl_main=no
25215 fi
25216 rm -f conftest.err conftest.$ac_objext \
25217       conftest$ac_exeext conftest.$ac_ext
25218 LIBS=$ac_check_lib_save_LIBS
25219 fi
25220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25221 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25222 if test $ac_cv_lib_dl_main = yes; then
25223   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25224 fi
25225
25226           ;;
25227       esac
25228    fi
25229 fi
25230
25231 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25232 case $build in
25233     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25234     *)         CLASSPATH_SEPARATOR=':' ;;
25235 esac
25236
25237
25238 # We must search the source tree for java.lang, since we still don't
25239 # have libgcj.jar nor java/lang/*.class
25240 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25241 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25242
25243 # Since some classes depend on this one, we need its source available
25244 # before we can do any GCJ compilation test :-(
25245 if test ! -f gnu/classpath/Configuration.java; then
25246   test -d gnu || mkdir gnu
25247   test -d gnu/classpath || mkdir gnu/classpath
25248   # Note that it is not crucial that all the values here be correct.
25249   sed -e "s,@prefix@,$prefix," \
25250       -e "s,@VERSION@,$VERSION," \
25251       -e "s,@LIBDEBUG@,false," \
25252       -e "s,@INIT_LOAD_LIBRARY@,false," \
25253       -e "s,@@,$LIBGCJDEBUG," \
25254       -e "s,@default_toolkit@,$TOOLKIT," \
25255       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25256       -e "s,@GTK_CAIRO_ENABLED@,false," \
25257       -e "s,@ECJ_JAR@,," \
25258         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25259         > gnu/classpath/Configuration.java
25260   # We do not want to redirect the output of the grep below to /dev/null,
25261   # but we add /dev/null to the input list so that grep will print the
25262   # filename of Configuration.java in case it finds any matches.
25263   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25264     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25265 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25266    { (exit 1); exit 1; }; }
25267   fi
25268 fi
25269
25270
25271 for ac_prog in gcj
25272 do
25273   # Extract the first word of "$ac_prog", so it can be a program name with args.
25274 set dummy $ac_prog; ac_word=$2
25275 echo "$as_me:$LINENO: checking for $ac_word" >&5
25276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25277 if test "${ac_cv_prog_GCJ+set}" = set; then
25278   echo $ECHO_N "(cached) $ECHO_C" >&6
25279 else
25280   if test -n "$GCJ"; then
25281   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25282 else
25283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25284 for as_dir in $PATH
25285 do
25286   IFS=$as_save_IFS
25287   test -z "$as_dir" && as_dir=.
25288   for ac_exec_ext in '' $ac_executable_extensions; do
25289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25290     ac_cv_prog_GCJ="$ac_prog"
25291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25292     break 2
25293   fi
25294 done
25295 done
25296
25297 fi
25298 fi
25299 GCJ=$ac_cv_prog_GCJ
25300 if test -n "$GCJ"; then
25301   echo "$as_me:$LINENO: result: $GCJ" >&5
25302 echo "${ECHO_T}$GCJ" >&6
25303 else
25304   echo "$as_me:$LINENO: result: no" >&5
25305 echo "${ECHO_T}no" >&6
25306 fi
25307
25308   test -n "$GCJ" && break
25309 done
25310 test -n "$GCJ" || GCJ="gcj"
25311
25312 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25313 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25314    { (exit 1); exit 1; }; }
25315 if test "x${GCJFLAGS-unset}" = xunset; then
25316    GCJFLAGS="-g -O2"
25317 fi
25318
25319
25320 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25321
25322 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25323 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25324 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25325   echo $ECHO_N "(cached) $ECHO_C" >&6
25326 else
25327   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25328   # We make a subdir and do the tests there.  Otherwise we can end up
25329   # making bogus files that we don't know about and never remove.  For
25330   # instance it was reported that on HP-UX the gcc test will end up
25331   # making a dummy file named `D' -- because `-MD' means `put the output
25332   # in D'.
25333   mkdir conftest.dir
25334   # Copy depcomp to subdir because otherwise we won't find it if we're
25335   # using a relative directory.
25336   cp "$am_depcomp" conftest.dir
25337   cd conftest.dir
25338   # We will build objects and dependencies in a subdirectory because
25339   # it helps to detect inapplicable dependency modes.  For instance
25340   # both Tru64's cc and ICC support -MD to output dependencies as a
25341   # side effect of compilation, but ICC will put the dependencies in
25342   # the current directory while Tru64 will put them in the object
25343   # directory.
25344   mkdir sub
25345
25346   am_cv_GCJ_dependencies_compiler_type=none
25347   if test "$am_compiler_list" = ""; then
25348      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25349   fi
25350   for depmode in $am_compiler_list; do
25351     # Setup a source with many dependencies, because some compilers
25352     # like to wrap large dependency lists on column 80 (with \), and
25353     # we should not choose a depcomp mode which is confused by this.
25354     #
25355     # We need to recreate these files for each test, as the compiler may
25356     # overwrite some of them when testing with obscure command lines.
25357     # This happens at least with the AIX C compiler.
25358     : > sub/conftest.c
25359     for i in 1 2 3 4 5 6; do
25360       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25361       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25362       # Solaris 8's {/usr,}/bin/sh.
25363       touch sub/conftst$i.h
25364     done
25365     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25366
25367     case $depmode in
25368     nosideeffect)
25369       # after this tag, mechanisms are not by side-effect, so they'll
25370       # only be used when explicitly requested
25371       if test "x$enable_dependency_tracking" = xyes; then
25372         continue
25373       else
25374         break
25375       fi
25376       ;;
25377     none) break ;;
25378     esac
25379     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25380     # mode.  It turns out that the SunPro C++ compiler does not properly
25381     # handle `-M -o', and we need to detect this.
25382     if depmode=$depmode \
25383        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25384        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25385        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25386          >/dev/null 2>conftest.err &&
25387        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25388        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25389        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25390       # icc doesn't choke on unknown options, it will just issue warnings
25391       # or remarks (even with -Werror).  So we grep stderr for any message
25392       # that says an option was ignored or not supported.
25393       # When given -MP, icc 7.0 and 7.1 complain thusly:
25394       #   icc: Command line warning: ignoring option '-M'; no argument required
25395       # The diagnosis changed in icc 8.0:
25396       #   icc: Command line remark: option '-MP' not supported
25397       if (grep 'ignoring option' conftest.err ||
25398           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25399         am_cv_GCJ_dependencies_compiler_type=$depmode
25400         break
25401       fi
25402     fi
25403   done
25404
25405   cd ..
25406   rm -rf conftest.dir
25407 else
25408   am_cv_GCJ_dependencies_compiler_type=none
25409 fi
25410
25411 fi
25412 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25413 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25414 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25415
25416
25417
25418 if
25419   test "x$enable_dependency_tracking" != xno \
25420   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25421   am__fastdepGCJ_TRUE=
25422   am__fastdepGCJ_FALSE='#'
25423 else
25424   am__fastdepGCJ_TRUE='#'
25425   am__fastdepGCJ_FALSE=
25426 fi
25427
25428
25429
25430
25431 # Now remove it.
25432 rm -f gnu/classpath/Configuration.java
25433
25434 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25435
25436 echo "$as_me:$LINENO: checking for void *" >&5
25437 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25438 if test "${ac_cv_type_void_p+set}" = set; then
25439   echo $ECHO_N "(cached) $ECHO_C" >&6
25440 else
25441   cat >conftest.$ac_ext <<_ACEOF
25442 /* confdefs.h.  */
25443 _ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h.  */
25447 $ac_includes_default
25448 int
25449 main ()
25450 {
25451 if ((void * *) 0)
25452   return 0;
25453 if (sizeof (void *))
25454   return 0;
25455   ;
25456   return 0;
25457 }
25458 _ACEOF
25459 rm -f conftest.$ac_objext
25460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25461   (eval $ac_compile) 2>conftest.er1
25462   ac_status=$?
25463   grep -v '^ *+' conftest.er1 >conftest.err
25464   rm -f conftest.er1
25465   cat conftest.err >&5
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } &&
25468          { ac_try='test -z "$ac_c_werror_flag"
25469                          || test ! -s conftest.err'
25470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471   (eval $ac_try) 2>&5
25472   ac_status=$?
25473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); }; } &&
25475          { ac_try='test -s conftest.$ac_objext'
25476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477   (eval $ac_try) 2>&5
25478   ac_status=$?
25479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480   (exit $ac_status); }; }; then
25481   ac_cv_type_void_p=yes
25482 else
25483   echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486 ac_cv_type_void_p=no
25487 fi
25488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25489 fi
25490 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25491 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25492
25493 echo "$as_me:$LINENO: checking size of void *" >&5
25494 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25495 if test "${ac_cv_sizeof_void_p+set}" = set; then
25496   echo $ECHO_N "(cached) $ECHO_C" >&6
25497 else
25498   if test "$ac_cv_type_void_p" = yes; then
25499   # The cast to unsigned long works around a bug in the HP C Compiler
25500   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25501   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25502   # This bug is HP SR number 8606223364.
25503   if test "$cross_compiling" = yes; then
25504   # Depending upon the size, compute the lo and hi bounds.
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511 $ac_includes_default
25512 int
25513 main ()
25514 {
25515 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25516 test_array [0] = 0
25517
25518   ;
25519   return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524   (eval $ac_compile) 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } &&
25531          { ac_try='test -z "$ac_c_werror_flag"
25532                          || test ! -s conftest.err'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; } &&
25538          { ac_try='test -s conftest.$ac_objext'
25539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540   (eval $ac_try) 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; }; then
25544   ac_lo=0 ac_mid=0
25545   while :; do
25546     cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 $ac_includes_default
25553 int
25554 main ()
25555 {
25556 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25557 test_array [0] = 0
25558
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 rm -f conftest.$ac_objext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25565   (eval $ac_compile) 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } &&
25572          { ac_try='test -z "$ac_c_werror_flag"
25573                          || test ! -s conftest.err'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; } &&
25579          { ac_try='test -s conftest.$ac_objext'
25580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581   (eval $ac_try) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; }; then
25585   ac_hi=$ac_mid; break
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 ac_lo=`expr $ac_mid + 1`
25591                     if test $ac_lo -le $ac_mid; then
25592                       ac_lo= ac_hi=
25593                       break
25594                     fi
25595                     ac_mid=`expr 2 '*' $ac_mid + 1`
25596 fi
25597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25598   done
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603 cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609 $ac_includes_default
25610 int
25611 main ()
25612 {
25613 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25614 test_array [0] = 0
25615
25616   ;
25617   return 0;
25618 }
25619 _ACEOF
25620 rm -f conftest.$ac_objext
25621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25622   (eval $ac_compile) 2>conftest.er1
25623   ac_status=$?
25624   grep -v '^ *+' conftest.er1 >conftest.err
25625   rm -f conftest.er1
25626   cat conftest.err >&5
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); } &&
25629          { ac_try='test -z "$ac_c_werror_flag"
25630                          || test ! -s conftest.err'
25631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; } &&
25636          { ac_try='test -s conftest.$ac_objext'
25637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25638   (eval $ac_try) 2>&5
25639   ac_status=$?
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); }; }; then
25642   ac_hi=-1 ac_mid=-1
25643   while :; do
25644     cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h.  */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h.  */
25650 $ac_includes_default
25651 int
25652 main ()
25653 {
25654 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25655 test_array [0] = 0
25656
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 rm -f conftest.$ac_objext
25662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25663   (eval $ac_compile) 2>conftest.er1
25664   ac_status=$?
25665   grep -v '^ *+' conftest.er1 >conftest.err
25666   rm -f conftest.er1
25667   cat conftest.err >&5
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); } &&
25670          { ac_try='test -z "$ac_c_werror_flag"
25671                          || test ! -s conftest.err'
25672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673   (eval $ac_try) 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; } &&
25677          { ac_try='test -s conftest.$ac_objext'
25678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25679   (eval $ac_try) 2>&5
25680   ac_status=$?
25681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); }; }; then
25683   ac_lo=$ac_mid; break
25684 else
25685   echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688 ac_hi=`expr '(' $ac_mid ')' - 1`
25689                        if test $ac_mid -le $ac_hi; then
25690                          ac_lo= ac_hi=
25691                          break
25692                        fi
25693                        ac_mid=`expr 2 '*' $ac_mid`
25694 fi
25695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25696   done
25697 else
25698   echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25700
25701 ac_lo= ac_hi=
25702 fi
25703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25704 fi
25705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25706 # Binary search between lo and hi bounds.
25707 while test "x$ac_lo" != "x$ac_hi"; do
25708   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25709   cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h.  */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h.  */
25715 $ac_includes_default
25716 int
25717 main ()
25718 {
25719 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25720 test_array [0] = 0
25721
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 rm -f conftest.$ac_objext
25727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25728   (eval $ac_compile) 2>conftest.er1
25729   ac_status=$?
25730   grep -v '^ *+' conftest.er1 >conftest.err
25731   rm -f conftest.er1
25732   cat conftest.err >&5
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } &&
25735          { ac_try='test -z "$ac_c_werror_flag"
25736                          || test ! -s conftest.err'
25737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738   (eval $ac_try) 2>&5
25739   ac_status=$?
25740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741   (exit $ac_status); }; } &&
25742          { ac_try='test -s conftest.$ac_objext'
25743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744   (eval $ac_try) 2>&5
25745   ac_status=$?
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); }; }; then
25748   ac_hi=$ac_mid
25749 else
25750   echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752
25753 ac_lo=`expr '(' $ac_mid ')' + 1`
25754 fi
25755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25756 done
25757 case $ac_lo in
25758 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25759 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25760 See \`config.log' for more details." >&5
25761 echo "$as_me: error: cannot compute sizeof (void *), 77
25762 See \`config.log' for more details." >&2;}
25763    { (exit 1); exit 1; }; } ;;
25764 esac
25765 else
25766   if test "$cross_compiling" = yes; then
25767   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25768 See \`config.log' for more details." >&5
25769 echo "$as_me: error: cannot run test program while cross compiling
25770 See \`config.log' for more details." >&2;}
25771    { (exit 1); exit 1; }; }
25772 else
25773   cat >conftest.$ac_ext <<_ACEOF
25774 /* confdefs.h.  */
25775 _ACEOF
25776 cat confdefs.h >>conftest.$ac_ext
25777 cat >>conftest.$ac_ext <<_ACEOF
25778 /* end confdefs.h.  */
25779 $ac_includes_default
25780 long longval () { return (long) (sizeof (void *)); }
25781 unsigned long ulongval () { return (long) (sizeof (void *)); }
25782 #include <stdio.h>
25783 #include <stdlib.h>
25784 int
25785 main ()
25786 {
25787
25788   FILE *f = fopen ("conftest.val", "w");
25789   if (! f)
25790     exit (1);
25791   if (((long) (sizeof (void *))) < 0)
25792     {
25793       long i = longval ();
25794       if (i != ((long) (sizeof (void *))))
25795         exit (1);
25796       fprintf (f, "%ld\n", i);
25797     }
25798   else
25799     {
25800       unsigned long i = ulongval ();
25801       if (i != ((long) (sizeof (void *))))
25802         exit (1);
25803       fprintf (f, "%lu\n", i);
25804     }
25805   exit (ferror (f) || fclose (f) != 0);
25806
25807   ;
25808   return 0;
25809 }
25810 _ACEOF
25811 rm -f conftest$ac_exeext
25812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25813   (eval $ac_link) 2>&5
25814   ac_status=$?
25815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818   (eval $ac_try) 2>&5
25819   ac_status=$?
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); }; }; then
25822   ac_cv_sizeof_void_p=`cat conftest.val`
25823 else
25824   echo "$as_me: program exited with status $ac_status" >&5
25825 echo "$as_me: failed program was:" >&5
25826 sed 's/^/| /' conftest.$ac_ext >&5
25827
25828 ( exit $ac_status )
25829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25830 See \`config.log' for more details." >&5
25831 echo "$as_me: error: cannot compute sizeof (void *), 77
25832 See \`config.log' for more details." >&2;}
25833    { (exit 1); exit 1; }; }
25834 fi
25835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25836 fi
25837 fi
25838 rm -f conftest.val
25839 else
25840   ac_cv_sizeof_void_p=0
25841 fi
25842 fi
25843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25844 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25845 cat >>confdefs.h <<_ACEOF
25846 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25847 _ACEOF
25848
25849
25850
25851 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25852 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25853 if test "${ac_cv_c_bigendian+set}" = set; then
25854   echo $ECHO_N "(cached) $ECHO_C" >&6
25855 else
25856   # See if sys/param.h defines the BYTE_ORDER macro.
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h.  */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h.  */
25863 #include <sys/types.h>
25864 #include <sys/param.h>
25865
25866 int
25867 main ()
25868 {
25869 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25870  bogus endian macros
25871 #endif
25872
25873   ;
25874   return 0;
25875 }
25876 _ACEOF
25877 rm -f conftest.$ac_objext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25879   (eval $ac_compile) 2>conftest.er1
25880   ac_status=$?
25881   grep -v '^ *+' conftest.er1 >conftest.err
25882   rm -f conftest.er1
25883   cat conftest.err >&5
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); } &&
25886          { ac_try='test -z "$ac_c_werror_flag"
25887                          || test ! -s conftest.err'
25888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889   (eval $ac_try) 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; } &&
25893          { ac_try='test -s conftest.$ac_objext'
25894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895   (eval $ac_try) 2>&5
25896   ac_status=$?
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); }; }; then
25899   # It does; now see whether it defined to BIG_ENDIAN or not.
25900 cat >conftest.$ac_ext <<_ACEOF
25901 /* confdefs.h.  */
25902 _ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h.  */
25906 #include <sys/types.h>
25907 #include <sys/param.h>
25908
25909 int
25910 main ()
25911 {
25912 #if BYTE_ORDER != BIG_ENDIAN
25913  not big endian
25914 #endif
25915
25916   ;
25917   return 0;
25918 }
25919 _ACEOF
25920 rm -f conftest.$ac_objext
25921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25922   (eval $ac_compile) 2>conftest.er1
25923   ac_status=$?
25924   grep -v '^ *+' conftest.er1 >conftest.err
25925   rm -f conftest.er1
25926   cat conftest.err >&5
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } &&
25929          { ac_try='test -z "$ac_c_werror_flag"
25930                          || test ! -s conftest.err'
25931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932   (eval $ac_try) 2>&5
25933   ac_status=$?
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); }; } &&
25936          { ac_try='test -s conftest.$ac_objext'
25937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938   (eval $ac_try) 2>&5
25939   ac_status=$?
25940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); }; }; then
25942   ac_cv_c_bigendian=yes
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947 ac_cv_c_bigendian=no
25948 fi
25949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25950 else
25951   echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 # It does not; compile a test program.
25955 if test "$cross_compiling" = yes; then
25956   # try to guess the endianness by grepping values into an object file
25957   ac_cv_c_bigendian=unknown
25958   cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25965 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25966 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25967 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25968 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25969 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25970 int
25971 main ()
25972 {
25973  _ascii (); _ebcdic ();
25974   ;
25975   return 0;
25976 }
25977 _ACEOF
25978 rm -f conftest.$ac_objext
25979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25980   (eval $ac_compile) 2>conftest.er1
25981   ac_status=$?
25982   grep -v '^ *+' conftest.er1 >conftest.err
25983   rm -f conftest.er1
25984   cat conftest.err >&5
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } &&
25987          { ac_try='test -z "$ac_c_werror_flag"
25988                          || test ! -s conftest.err'
25989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25990   (eval $ac_try) 2>&5
25991   ac_status=$?
25992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993   (exit $ac_status); }; } &&
25994          { ac_try='test -s conftest.$ac_objext'
25995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996   (eval $ac_try) 2>&5
25997   ac_status=$?
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); }; }; then
26000   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26001   ac_cv_c_bigendian=yes
26002 fi
26003 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26004   if test "$ac_cv_c_bigendian" = unknown; then
26005     ac_cv_c_bigendian=no
26006   else
26007     # finding both strings is unlikely to happen, but who knows?
26008     ac_cv_c_bigendian=unknown
26009   fi
26010 fi
26011 else
26012   echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015 fi
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017 else
26018   cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024 int
26025 main ()
26026 {
26027   /* Are we little or big endian?  From Harbison&Steele.  */
26028   union
26029   {
26030     long l;
26031     char c[sizeof (long)];
26032   } u;
26033   u.l = 1;
26034   exit (u.c[sizeof (long) - 1] == 1);
26035 }
26036 _ACEOF
26037 rm -f conftest$ac_exeext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26039   (eval $ac_link) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044   (eval $ac_try) 2>&5
26045   ac_status=$?
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); }; }; then
26048   ac_cv_c_bigendian=no
26049 else
26050   echo "$as_me: program exited with status $ac_status" >&5
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 ( exit $ac_status )
26055 ac_cv_c_bigendian=yes
26056 fi
26057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26058 fi
26059 fi
26060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061 fi
26062 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26063 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26064 case $ac_cv_c_bigendian in
26065   yes)
26066
26067 cat >>confdefs.h <<\_ACEOF
26068 #define WORDS_BIGENDIAN 1
26069 _ACEOF
26070  ;;
26071   no)
26072      ;;
26073   *)
26074     { { echo "$as_me:$LINENO: error: unknown endianness
26075 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26076 echo "$as_me: error: unknown endianness
26077 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26078    { (exit 1); exit 1; }; } ;;
26079 esac
26080
26081
26082 ZLIBS=
26083 SYS_ZLIBS=
26084 ZINCS=
26085
26086 if test -z "$ZLIBSPEC"; then
26087    # Use zlib from the GCC tree.
26088    ZINCS='-I$(top_srcdir)/../zlib'
26089    ZLIBS=../zlib/libzgcj_convenience.la
26090 else
26091    # System's zlib.
26092    SYS_ZLIBS="$ZLIBSPEC"
26093 fi
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105 if test "$NATIVE" = yes; then
26106   NATIVE_TRUE=
26107   NATIVE_FALSE='#'
26108 else
26109   NATIVE_TRUE='#'
26110   NATIVE_FALSE=
26111 fi
26112
26113
26114
26115 if test "$enable_shared" = yes; then
26116   ENABLE_SHARED_TRUE=
26117   ENABLE_SHARED_FALSE='#'
26118 else
26119   ENABLE_SHARED_TRUE='#'
26120   ENABLE_SHARED_FALSE=
26121 fi
26122
26123
26124
26125 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26126   NEEDS_DATA_START_TRUE=
26127   NEEDS_DATA_START_FALSE='#'
26128 else
26129   NEEDS_DATA_START_TRUE='#'
26130   NEEDS_DATA_START_FALSE=
26131 fi
26132
26133
26134
26135 # Process the option "--enable-version-specific-runtime-libs"
26136 # Calculate toolexeclibdir
26137 case ${version_specific_libs} in
26138   yes)
26139     # Need the gcc compiler version to know where to install libraries
26140     # and header files if --enable-version-specific-runtime-libs option
26141     # is selected.
26142     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26143     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26144     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26145     toolexeclibdir=$toolexecmainlibdir
26146     ;;
26147   no)
26148     if test -n "$with_cross_host" &&
26149        test x"$with_cross_host" != x"no"; then
26150       # Install a library built with a cross compiler in tooldir, not libdir.
26151       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26152       toolexecmainlibdir='$(toolexecdir)/lib'
26153     else
26154       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26155       toolexecmainlibdir='$(libdir)'
26156     fi
26157     multi_os_directory=`$CC -print-multi-os-directory`
26158     case $multi_os_directory in
26159       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26160       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26161     esac
26162     ;;
26163 esac
26164
26165
26166
26167
26168 # Determine where the standard .db file and GNU Classpath JNI
26169 # libraries are found.
26170 multi_os_directory=`$CC -print-multi-os-directory`
26171 case $multi_os_directory in
26172   .)
26173    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
26174    ;;
26175   *)
26176    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
26177    ;;
26178 esac
26179
26180
26181 # Determine gcj version number.
26182 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
26183 GCJVERSION=$gcjversion
26184
26185
26186 cat >>confdefs.h <<_ACEOF
26187 #define GCJVERSION "$GCJVERSION"
26188 _ACEOF
26189
26190
26191
26192 cat >>confdefs.h <<\_ACEOF
26193 #define JV_VERSION "1.5.0"
26194 _ACEOF
26195
26196
26197 cat >>confdefs.h <<\_ACEOF
26198 #define JV_API_VERSION "1.5"
26199 _ACEOF
26200
26201
26202
26203 case "${with_gxx_include_dir}" in
26204   yes)
26205     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26206 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26207    { (exit 1); exit 1; }; }
26208     ;;
26209   no | "")
26210     case "${enable_version_specific_runtime_libs}" in
26211       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26212       *)
26213         libstdcxx_incdir='c++/$(gcc_version)'
26214         gxx_include_dir='include/$(libstdcxx_incdir)'
26215         if test -n "$with_cross_host" &&
26216            test x"$with_cross_host" != x"no"; then
26217           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26218         else
26219           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26220         fi;;
26221     esac ;;
26222   *) gxx_include_dir=${with_gxx_include_dir} ;;
26223 esac
26224
26225
26226
26227
26228 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26229 # On that system, sys/ioctl.h will not include sys/filio.h unless
26230 # BSD_COMP is defined; just including sys/filio.h is simpler.
26231 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26232 # for now.  If you change this, you also must update natFile.cc.
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26257                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26258                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26259                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26260                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26261 do
26262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264   echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 fi
26269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26271 else
26272   # Is the header compilable?
26273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 $ac_includes_default
26282 #include <$ac_header>
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286   (eval $ac_compile) 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } &&
26293          { ac_try='test -z "$ac_c_werror_flag"
26294                          || test ! -s conftest.err'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; } &&
26300          { ac_try='test -s conftest.$ac_objext'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; }; then
26306   ac_header_compiler=yes
26307 else
26308   echo "$as_me: failed program was:" >&5
26309 sed 's/^/| /' conftest.$ac_ext >&5
26310
26311 ac_header_compiler=no
26312 fi
26313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26315 echo "${ECHO_T}$ac_header_compiler" >&6
26316
26317 # Is the header present?
26318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h.  */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h.  */
26326 #include <$ac_header>
26327 _ACEOF
26328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26330   ac_status=$?
26331   grep -v '^ *+' conftest.er1 >conftest.err
26332   rm -f conftest.er1
26333   cat conftest.err >&5
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } >/dev/null; then
26336   if test -s conftest.err; then
26337     ac_cpp_err=$ac_c_preproc_warn_flag
26338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26339   else
26340     ac_cpp_err=
26341   fi
26342 else
26343   ac_cpp_err=yes
26344 fi
26345 if test -z "$ac_cpp_err"; then
26346   ac_header_preproc=yes
26347 else
26348   echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26350
26351   ac_header_preproc=no
26352 fi
26353 rm -f conftest.err conftest.$ac_ext
26354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26355 echo "${ECHO_T}$ac_header_preproc" >&6
26356
26357 # So?  What about this header?
26358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26359   yes:no: )
26360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26364     ac_header_preproc=yes
26365     ;;
26366   no:yes:* )
26367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26379     (
26380       cat <<\_ASBOX
26381 ## ---------------------------------- ##
26382 ## Report this to the libjava lists.  ##
26383 ## ---------------------------------- ##
26384 _ASBOX
26385     ) |
26386       sed "s/^/$as_me: WARNING:     /" >&2
26387     ;;
26388 esac
26389 echo "$as_me:$LINENO: checking for $ac_header" >&5
26390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26393 else
26394   eval "$as_ac_Header=\$ac_header_preproc"
26395 fi
26396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26398
26399 fi
26400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26401   cat >>confdefs.h <<_ACEOF
26402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26403 _ACEOF
26404
26405 fi
26406
26407 done
26408
26409
26410 for ac_header in inttypes.h
26411 do
26412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26414   echo "$as_me:$LINENO: checking for $ac_header" >&5
26415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 fi
26419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26421 else
26422   # Is the header compilable?
26423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26425 cat >conftest.$ac_ext <<_ACEOF
26426 /* confdefs.h.  */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h.  */
26431 $ac_includes_default
26432 #include <$ac_header>
26433 _ACEOF
26434 rm -f conftest.$ac_objext
26435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26436   (eval $ac_compile) 2>conftest.er1
26437   ac_status=$?
26438   grep -v '^ *+' conftest.er1 >conftest.err
26439   rm -f conftest.er1
26440   cat conftest.err >&5
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); } &&
26443          { ac_try='test -z "$ac_c_werror_flag"
26444                          || test ! -s conftest.err'
26445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446   (eval $ac_try) 2>&5
26447   ac_status=$?
26448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449   (exit $ac_status); }; } &&
26450          { ac_try='test -s conftest.$ac_objext'
26451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452   (eval $ac_try) 2>&5
26453   ac_status=$?
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); }; }; then
26456   ac_header_compiler=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461 ac_header_compiler=no
26462 fi
26463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26465 echo "${ECHO_T}$ac_header_compiler" >&6
26466
26467 # Is the header present?
26468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26470 cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 #include <$ac_header>
26477 _ACEOF
26478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26480   ac_status=$?
26481   grep -v '^ *+' conftest.er1 >conftest.err
26482   rm -f conftest.er1
26483   cat conftest.err >&5
26484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); } >/dev/null; then
26486   if test -s conftest.err; then
26487     ac_cpp_err=$ac_c_preproc_warn_flag
26488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26489   else
26490     ac_cpp_err=
26491   fi
26492 else
26493   ac_cpp_err=yes
26494 fi
26495 if test -z "$ac_cpp_err"; then
26496   ac_header_preproc=yes
26497 else
26498   echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26500
26501   ac_header_preproc=no
26502 fi
26503 rm -f conftest.err conftest.$ac_ext
26504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26505 echo "${ECHO_T}$ac_header_preproc" >&6
26506
26507 # So?  What about this header?
26508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26509   yes:no: )
26510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26514     ac_header_preproc=yes
26515     ;;
26516   no:yes:* )
26517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26529     (
26530       cat <<\_ASBOX
26531 ## ---------------------------------- ##
26532 ## Report this to the libjava lists.  ##
26533 ## ---------------------------------- ##
26534 _ASBOX
26535     ) |
26536       sed "s/^/$as_me: WARNING:     /" >&2
26537     ;;
26538 esac
26539 echo "$as_me:$LINENO: checking for $ac_header" >&5
26540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26542   echo $ECHO_N "(cached) $ECHO_C" >&6
26543 else
26544   eval "$as_ac_Header=\$ac_header_preproc"
26545 fi
26546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26548
26549 fi
26550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26551   cat >>confdefs.h <<_ACEOF
26552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26553 _ACEOF
26554
26555
26556 cat >>confdefs.h <<\_ACEOF
26557 #define HAVE_INTTYPES_H 1
26558 _ACEOF
26559
26560
26561 cat >>confdefs.h <<\_ACEOF
26562 #define JV_HAVE_INTTYPES_H 1
26563 _ACEOF
26564
26565
26566 fi
26567
26568 done
26569
26570
26571 echo "$as_me:$LINENO: checking for ssize_t" >&5
26572 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26573 if test "${ac_cv_type_ssize_t+set}" = set; then
26574   echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576   cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h.  */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h.  */
26582 $ac_includes_default
26583 int
26584 main ()
26585 {
26586 if ((ssize_t *) 0)
26587   return 0;
26588 if (sizeof (ssize_t))
26589   return 0;
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26596   (eval $ac_compile) 2>conftest.er1
26597   ac_status=$?
26598   grep -v '^ *+' conftest.er1 >conftest.err
26599   rm -f conftest.er1
26600   cat conftest.err >&5
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } &&
26603          { ac_try='test -z "$ac_c_werror_flag"
26604                          || test ! -s conftest.err'
26605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606   (eval $ac_try) 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); }; } &&
26610          { ac_try='test -s conftest.$ac_objext'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   ac_cv_type_ssize_t=yes
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 ac_cv_type_ssize_t=no
26622 fi
26623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26624 fi
26625 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26626 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26627 if test $ac_cv_type_ssize_t = yes; then
26628   :
26629 else
26630
26631 cat >>confdefs.h <<_ACEOF
26632 #define ssize_t int
26633 _ACEOF
26634
26635 fi
26636
26637 echo "$as_me:$LINENO: checking for magic_t" >&5
26638 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26639 if test "${ac_cv_type_magic_t+set}" = set; then
26640   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642   cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648
26649 #ifdef HAVE_MAGIC_H
26650 #include <magic.h>
26651 #endif
26652
26653 int
26654 main ()
26655 {
26656 if ((magic_t *) 0)
26657   return 0;
26658 if (sizeof (magic_t))
26659   return 0;
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26666   (eval $ac_compile) 2>conftest.er1
26667   ac_status=$?
26668   grep -v '^ *+' conftest.er1 >conftest.err
26669   rm -f conftest.er1
26670   cat conftest.err >&5
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); } &&
26673          { ac_try='test -z "$ac_c_werror_flag"
26674                          || test ! -s conftest.err'
26675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676   (eval $ac_try) 2>&5
26677   ac_status=$?
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); }; } &&
26680          { ac_try='test -s conftest.$ac_objext'
26681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682   (eval $ac_try) 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); }; }; then
26686   ac_cv_type_magic_t=yes
26687 else
26688   echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26690
26691 ac_cv_type_magic_t=no
26692 fi
26693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26694 fi
26695 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26696 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26697 if test $ac_cv_type_magic_t = yes; then
26698
26699
26700 cat >>confdefs.h <<\_ACEOF
26701 #define HAVE_MAGIC_T 1
26702 _ACEOF
26703
26704 fi
26705
26706
26707 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26708 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26709 cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 #include <sys/types.h>
26716 #if STDC_HEADERS
26717 #include <stdlib.h>
26718 #include <stddef.h>
26719 #endif
26720 #if HAVE_NETINET_IN_H
26721 #include <netinet/in.h>
26722 #endif
26723 int
26724 main ()
26725 {
26726 in_addr_t foo;
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 rm -f conftest.$ac_objext
26732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26733   (eval $ac_compile) 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } &&
26740          { ac_try='test -z "$ac_c_werror_flag"
26741                          || test ! -s conftest.err'
26742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743   (eval $ac_try) 2>&5
26744   ac_status=$?
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); }; } &&
26747          { ac_try='test -s conftest.$ac_objext'
26748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749   (eval $ac_try) 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; }; then
26753
26754 cat >>confdefs.h <<\_ACEOF
26755 #define HAVE_IN_ADDR_T 1
26756 _ACEOF
26757
26758    echo "$as_me:$LINENO: result: yes" >&5
26759 echo "${ECHO_T}yes" >&6
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764 echo "$as_me:$LINENO: result: no" >&5
26765 echo "${ECHO_T}no" >&6
26766 fi
26767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768
26769 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26770 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777 #include <netinet/in.h>
26778 int
26779 main ()
26780 {
26781 struct ip_mreq mreq;
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext
26787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26788   (eval $ac_compile) 2>conftest.er1
26789   ac_status=$?
26790   grep -v '^ *+' conftest.er1 >conftest.err
26791   rm -f conftest.er1
26792   cat conftest.err >&5
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); } &&
26795          { ac_try='test -z "$ac_c_werror_flag"
26796                          || test ! -s conftest.err'
26797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798   (eval $ac_try) 2>&5
26799   ac_status=$?
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); }; } &&
26802          { ac_try='test -s conftest.$ac_objext'
26803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804   (eval $ac_try) 2>&5
26805   ac_status=$?
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); }; }; then
26808
26809 cat >>confdefs.h <<\_ACEOF
26810 #define HAVE_STRUCT_IP_MREQ 1
26811 _ACEOF
26812
26813    echo "$as_me:$LINENO: result: yes" >&5
26814 echo "${ECHO_T}yes" >&6
26815 else
26816   echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819 echo "$as_me:$LINENO: result: no" >&5
26820 echo "${ECHO_T}no" >&6
26821 fi
26822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26823
26824 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26825 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h.  */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h.  */
26832 #include <netinet/in.h>
26833 int
26834 main ()
26835 {
26836 struct ipv6_mreq mreq6;
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843   (eval $ac_compile) 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } &&
26850          { ac_try='test -z "$ac_c_werror_flag"
26851                          || test ! -s conftest.err'
26852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853   (eval $ac_try) 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; } &&
26857          { ac_try='test -s conftest.$ac_objext'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; }; then
26863
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_STRUCT_IPV6_MREQ 1
26866 _ACEOF
26867
26868    echo "$as_me:$LINENO: result: yes" >&5
26869 echo "${ECHO_T}yes" >&6
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 echo "$as_me:$LINENO: result: no" >&5
26875 echo "${ECHO_T}no" >&6
26876 fi
26877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26878
26879 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26880 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 #include <netinet/in.h>
26888 int
26889 main ()
26890 {
26891 struct sockaddr_in6 addr6;
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898   (eval $ac_compile) 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } &&
26905          { ac_try='test -z "$ac_c_werror_flag"
26906                          || test ! -s conftest.err'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; }; then
26918
26919 cat >>confdefs.h <<\_ACEOF
26920 #define HAVE_INET6 1
26921 _ACEOF
26922
26923    echo "$as_me:$LINENO: result: yes" >&5
26924 echo "${ECHO_T}yes" >&6
26925 else
26926   echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6
26931 fi
26932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933
26934 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
26935 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942 #define _POSIX_PII_SOCKET
26943 #include <sys/types.h>
26944 #include <sys/socket.h>
26945 int
26946 main ()
26947 {
26948 socklen_t x = 5;
26949   ;
26950   return 0;
26951 }
26952 _ACEOF
26953 rm -f conftest.$ac_objext
26954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26955   (eval $ac_compile) 2>conftest.er1
26956   ac_status=$?
26957   grep -v '^ *+' conftest.er1 >conftest.err
26958   rm -f conftest.er1
26959   cat conftest.err >&5
26960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); } &&
26962          { ac_try='test -z "$ac_c_werror_flag"
26963                          || test ! -s conftest.err'
26964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965   (eval $ac_try) 2>&5
26966   ac_status=$?
26967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); }; } &&
26969          { ac_try='test -s conftest.$ac_objext'
26970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971   (eval $ac_try) 2>&5
26972   ac_status=$?
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); }; }; then
26975
26976 cat >>confdefs.h <<\_ACEOF
26977 #define HAVE_SOCKLEN_T 1
26978 _ACEOF
26979
26980    echo "$as_me:$LINENO: result: yes" >&5
26981 echo "${ECHO_T}yes" >&6
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986 echo "$as_me:$LINENO: result: no" >&5
26987 echo "${ECHO_T}no" >&6
26988 fi
26989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26990
26991 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26992 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26993 cat >conftest.$ac_ext <<_ACEOF
26994 /* confdefs.h.  */
26995 _ACEOF
26996 cat confdefs.h >>conftest.$ac_ext
26997 cat >>conftest.$ac_ext <<_ACEOF
26998 /* end confdefs.h.  */
26999 #include <time.h>
27000 int
27001 main ()
27002 {
27003 struct tm tim; tim.tm_gmtoff = 0;
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext
27009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27010   (eval $ac_compile) 2>conftest.er1
27011   ac_status=$?
27012   grep -v '^ *+' conftest.er1 >conftest.err
27013   rm -f conftest.er1
27014   cat conftest.err >&5
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } &&
27017          { ac_try='test -z "$ac_c_werror_flag"
27018                          || test ! -s conftest.err'
27019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020   (eval $ac_try) 2>&5
27021   ac_status=$?
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); }; } &&
27024          { ac_try='test -s conftest.$ac_objext'
27025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026   (eval $ac_try) 2>&5
27027   ac_status=$?
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); }; }; then
27030
27031 cat >>confdefs.h <<\_ACEOF
27032 #define STRUCT_TM_HAS_GMTOFF 1
27033 _ACEOF
27034
27035    echo "$as_me:$LINENO: result: yes" >&5
27036 echo "${ECHO_T}yes" >&6
27037 else
27038   echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041 echo "$as_me:$LINENO: result: no" >&5
27042 echo "${ECHO_T}no" >&6
27043    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27044 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27045                cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051 #include <time.h>
27052 int
27053 main ()
27054 {
27055 void i(){long z2 = 2*timezone;}
27056   ;
27057   return 0;
27058 }
27059 _ACEOF
27060 rm -f conftest.$ac_objext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27062   (eval $ac_compile) 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } &&
27069          { ac_try='test -z "$ac_c_werror_flag"
27070                          || test ! -s conftest.err'
27071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072   (eval $ac_try) 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; } &&
27076          { ac_try='test -s conftest.$ac_objext'
27077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078   (eval $ac_try) 2>&5
27079   ac_status=$?
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); }; }; then
27082
27083 cat >>confdefs.h <<\_ACEOF
27084 #define HAVE_TIMEZONE 1
27085 _ACEOF
27086
27087       echo "$as_me:$LINENO: result: yes" >&5
27088 echo "${ECHO_T}yes" >&6
27089 else
27090   echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093 echo "$as_me:$LINENO: result: no" >&5
27094 echo "${ECHO_T}no" >&6
27095        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27096 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27097               cat >conftest.$ac_ext <<_ACEOF
27098 /* confdefs.h.  */
27099 _ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h.  */
27103 #include <time.h>
27104 int
27105 main ()
27106 {
27107 long z2 = _timezone;
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext
27113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27114   (eval $ac_compile) 2>conftest.er1
27115   ac_status=$?
27116   grep -v '^ *+' conftest.er1 >conftest.err
27117   rm -f conftest.er1
27118   cat conftest.err >&5
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); } &&
27121          { ac_try='test -z "$ac_c_werror_flag"
27122                          || test ! -s conftest.err'
27123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124   (eval $ac_try) 2>&5
27125   ac_status=$?
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); }; } &&
27128          { ac_try='test -s conftest.$ac_objext'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_UNDERSCORE_TIMEZONE 1
27137 _ACEOF
27138
27139           echo "$as_me:$LINENO: result: yes" >&5
27140 echo "${ECHO_T}yes" >&6
27141 else
27142   echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27144
27145 echo "$as_me:$LINENO: result: no" >&5
27146 echo "${ECHO_T}no" >&6
27147 fi
27148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27149 fi
27150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27151 fi
27152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27153
27154 for ac_prog in perl
27155 do
27156   # Extract the first word of "$ac_prog", so it can be a program name with args.
27157 set dummy $ac_prog; ac_word=$2
27158 echo "$as_me:$LINENO: checking for $ac_word" >&5
27159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27160 if test "${ac_cv_prog_PERL+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   if test -n "$PERL"; then
27164   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27165 else
27166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27167 for as_dir in $PATH
27168 do
27169   IFS=$as_save_IFS
27170   test -z "$as_dir" && as_dir=.
27171   for ac_exec_ext in '' $ac_executable_extensions; do
27172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27173     ac_cv_prog_PERL="$ac_prog"
27174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27175     break 2
27176   fi
27177 done
27178 done
27179
27180 fi
27181 fi
27182 PERL=$ac_cv_prog_PERL
27183 if test -n "$PERL"; then
27184   echo "$as_me:$LINENO: result: $PERL" >&5
27185 echo "${ECHO_T}$PERL" >&6
27186 else
27187   echo "$as_me:$LINENO: result: no" >&5
27188 echo "${ECHO_T}no" >&6
27189 fi
27190
27191   test -n "$PERL" && break
27192 done
27193 test -n "$PERL" || PERL="false"
27194
27195
27196 SYSDEP_SOURCES=
27197 SIGNAL_HANDLER_AUX=
27198
27199 case "${host}" in
27200  i?86-*-linux*)
27201     SIGNAL_HANDLER=include/i386-signal.h
27202     ;;
27203  sparc*-sun-solaris*)
27204     SIGNAL_HANDLER=include/sparc-signal.h
27205     ;;
27206 # ia64-*)
27207 #    SYSDEP_SOURCES=sysdep/ia64.c
27208 #    test -d sysdep || mkdir sysdep
27209 #    ;;
27210  hppa*-*-linux*)
27211     SIGNAL_HANDLER=include/pa-signal.h
27212     ;;
27213  hppa*-hp-hpux*)
27214     SIGNAL_HANDLER=include/hppa-signal.h
27215     ;;
27216  ia64-*-linux*)
27217     SIGNAL_HANDLER=include/dwarf2-signal.h
27218     ;;
27219  powerpc*-*-linux*)
27220     SIGNAL_HANDLER=include/powerpc-signal.h
27221     ;;
27222  alpha*-*-linux*)
27223     SIGNAL_HANDLER=include/dwarf2-signal.h
27224     ;;
27225  s390*-*-linux*)
27226     SIGNAL_HANDLER=include/s390-signal.h
27227     ;;
27228  x86_64*-*-linux*)
27229     SIGNAL_HANDLER=include/x86_64-signal.h
27230     SIGNAL_HANDLER_AUX=include/i386-signal.h
27231     ;;
27232  sparc*-*-linux*)
27233     SIGNAL_HANDLER=include/dwarf2-signal.h
27234     ;;
27235  sh*-*-linux*)
27236     SIGNAL_HANDLER=include/sh-signal.h
27237     ;;
27238  *mingw*)
27239     SIGNAL_HANDLER=include/win32-signal.h
27240     ;;
27241  mips*-*-linux*)
27242     SIGNAL_HANDLER=include/mips-signal.h
27243     ;;
27244  powerpc*-*-darwin*)
27245     SIGNAL_HANDLER=include/darwin-signal.h
27246     ;;
27247  *)
27248     SIGNAL_HANDLER=include/default-signal.h
27249     ;;
27250 esac
27251
27252 # If we're using sjlj exceptions, forget what we just learned.
27253 if test "$enable_sjlj_exceptions" = yes; then
27254    SIGNAL_HANDLER=include/default-signal.h
27255    SIGNAL_HANDLER_AUX=
27256 fi
27257
27258
27259
27260 if test -z "$SIGNAL_HANDLER_AUX"; then
27261   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27262 fi
27263
27264                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27265
27266
27267 if test "${multilib}" = "yes"; then
27268   multilib_arg="--enable-multilib"
27269 else
27270   multilib_arg=
27271 fi
27272
27273 # See if we support thread-local storage.
27274
27275    # Check whether --enable-tls or --disable-tls was given.
27276 if test "${enable_tls+set}" = set; then
27277   enableval="$enable_tls"
27278
27279       case "$enableval" in
27280        yes|no) ;;
27281        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27282 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27283    { (exit 1); exit 1; }; } ;;
27284       esac
27285
27286 else
27287   enable_tls=yes
27288 fi;
27289
27290   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27291 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27292 if test "${have_tls+set}" = set; then
27293   echo $ECHO_N "(cached) $ECHO_C" >&6
27294 else
27295
27296     if test "$cross_compiling" = yes; then
27297                 if test x$gcc_no_link = xyes; then
27298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27300    { (exit 1); exit 1; }; }
27301 fi
27302 cat >conftest.$ac_ext <<_ACEOF
27303 __thread int a; int b; int main() { return a = b; }
27304 _ACEOF
27305 rm -f conftest.$ac_objext conftest$ac_exeext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27307   (eval $ac_link) 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } &&
27314          { ac_try='test -z "$ac_c_werror_flag"
27315                          || test ! -s conftest.err'
27316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317   (eval $ac_try) 2>&5
27318   ac_status=$?
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); }; } &&
27321          { ac_try='test -s conftest$ac_exeext'
27322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323   (eval $ac_try) 2>&5
27324   ac_status=$?
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); }; }; then
27327   have_tls=yes
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332 have_tls=no
27333 fi
27334 rm -f conftest.err conftest.$ac_objext \
27335       conftest$ac_exeext conftest.$ac_ext
27336
27337
27338 else
27339   cat >conftest.$ac_ext <<_ACEOF
27340 __thread int a; int b; int main() { return a = b; }
27341 _ACEOF
27342 rm -f conftest$ac_exeext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344   (eval $ac_link) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; }; then
27353                       chktls_save_LDFLAGS="$LDFLAGS"
27354       LDFLAGS="-static $LDFLAGS"
27355       if test x$gcc_no_link = xyes; then
27356   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27358    { (exit 1); exit 1; }; }
27359 fi
27360 cat >conftest.$ac_ext <<_ACEOF
27361 int main() { return 0; }
27362 _ACEOF
27363 rm -f conftest.$ac_objext conftest$ac_exeext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27365   (eval $ac_link) 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } &&
27372          { ac_try='test -z "$ac_c_werror_flag"
27373                          || test ! -s conftest.err'
27374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375   (eval $ac_try) 2>&5
27376   ac_status=$?
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); }; } &&
27379          { ac_try='test -s conftest$ac_exeext'
27380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381   (eval $ac_try) 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; }; then
27385   if test "$cross_compiling" = yes; then
27386   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27387 See \`config.log' for more details." >&5
27388 echo "$as_me: error: cannot run test program while cross compiling
27389 See \`config.log' for more details." >&2;}
27390    { (exit 1); exit 1; }; }
27391 else
27392   cat >conftest.$ac_ext <<_ACEOF
27393 __thread int a; int b; int main() { return a = b; }
27394 _ACEOF
27395 rm -f conftest$ac_exeext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27397   (eval $ac_link) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402   (eval $ac_try) 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; }; then
27406   have_tls=yes
27407 else
27408   echo "$as_me: program exited with status $ac_status" >&5
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27411
27412 ( exit $ac_status )
27413 have_tls=no
27414 fi
27415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27416 fi
27417 else
27418   echo "$as_me: failed program was:" >&5
27419 sed 's/^/| /' conftest.$ac_ext >&5
27420
27421 have_tls=yes
27422 fi
27423 rm -f conftest.err conftest.$ac_objext \
27424       conftest$ac_exeext conftest.$ac_ext
27425       LDFLAGS="$chktls_save_LDFLAGS"
27426       if test $have_tls = yes; then
27427                                                 chktls_save_CFLAGS="$CFLAGS"
27428         thread_CFLAGS=failed
27429         for flag in '' '-pthread' '-lpthread'; do
27430           CFLAGS="$flag $chktls_save_CFLAGS"
27431           if test x$gcc_no_link = xyes; then
27432   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27434    { (exit 1); exit 1; }; }
27435 fi
27436 cat >conftest.$ac_ext <<_ACEOF
27437 /* confdefs.h.  */
27438 _ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h.  */
27442 #include <pthread.h>
27443                 void *g(void *d) { return NULL; }
27444 int
27445 main ()
27446 {
27447 pthread_t t; pthread_create(&t,NULL,g,NULL);
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 rm -f conftest.$ac_objext conftest$ac_exeext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27454   (eval $ac_link) 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag"
27462                          || test ! -s conftest.err'
27463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464   (eval $ac_try) 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; } &&
27468          { ac_try='test -s conftest$ac_exeext'
27469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27470   (eval $ac_try) 2>&5
27471   ac_status=$?
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); }; }; then
27474   thread_CFLAGS="$flag"
27475 else
27476   echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479 fi
27480 rm -f conftest.err conftest.$ac_objext \
27481       conftest$ac_exeext conftest.$ac_ext
27482           if test "X$thread_CFLAGS" != Xfailed; then
27483             break
27484           fi
27485         done
27486         CFLAGS="$chktls_save_CFLAGS"
27487         if test "X$thread_CFLAGS" != Xfailed; then
27488           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27489           if test "$cross_compiling" = yes; then
27490   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27491 See \`config.log' for more details." >&5
27492 echo "$as_me: error: cannot run test program while cross compiling
27493 See \`config.log' for more details." >&2;}
27494    { (exit 1); exit 1; }; }
27495 else
27496   cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502 #include <pthread.h>
27503                 __thread int a;
27504                 static int *a_in_other_thread;
27505                 static void *
27506                 thread_func (void *arg)
27507                 {
27508                   a_in_other_thread = &a;
27509                   return (void *)0;
27510                 }
27511 int
27512 main ()
27513 {
27514 pthread_t thread;
27515                 void *thread_retval;
27516                 int *a_in_main_thread;
27517                 if (pthread_create (&thread, (pthread_attr_t *)0,
27518                                     thread_func, (void *)0))
27519                   return 0;
27520                 a_in_main_thread = &a;
27521                 if (pthread_join (thread, &thread_retval))
27522                   return 0;
27523                 return (a_in_other_thread == a_in_main_thread);
27524   ;
27525   return 0;
27526 }
27527 _ACEOF
27528 rm -f conftest$ac_exeext
27529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27530   (eval $ac_link) 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535   (eval $ac_try) 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); }; }; then
27539   have_tls=yes
27540 else
27541   echo "$as_me: program exited with status $ac_status" >&5
27542 echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545 ( exit $ac_status )
27546 have_tls=no
27547 fi
27548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27549 fi
27550           CFLAGS="$chktls_save_CFLAGS"
27551         fi
27552       fi
27553 else
27554   echo "$as_me: program exited with status $ac_status" >&5
27555 echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27557
27558 ( exit $ac_status )
27559 have_tls=no
27560 fi
27561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27562 fi
27563 fi
27564 echo "$as_me:$LINENO: result: $have_tls" >&5
27565 echo "${ECHO_T}$have_tls" >&6
27566   if test "$enable_tls $have_tls" = "yes yes"; then
27567
27568 cat >>confdefs.h <<\_ACEOF
27569 #define HAVE_TLS 1
27570 _ACEOF
27571
27572   fi
27573
27574 # For _Unwind_GetIPInfo.
27575
27576
27577
27578   ac_ext=cc
27579 ac_cpp='$CXXCPP $CPPFLAGS'
27580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27583
27584   ac_save_CXXFLAGS="$CXXFLAGS"
27585   CXXFLAGS="$CXXFLAGS -fno-exceptions"
27586   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27587 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27588   if test "${gcc_cv_getipinfo+set}" = set; then
27589   echo $ECHO_N "(cached) $ECHO_C" >&6
27590 else
27591
27592   if test x$gcc_no_link = xyes; then
27593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27595    { (exit 1); exit 1; }; }
27596 fi
27597 cat >conftest.$ac_ext <<_ACEOF
27598 /* confdefs.h.  */
27599 _ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h.  */
27603 extern "C" { extern void _Unwind_GetIPInfo(); }
27604 int
27605 main ()
27606 {
27607 _Unwind_GetIPInfo();
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 rm -f conftest.$ac_objext conftest$ac_exeext
27613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27614   (eval $ac_link) 2>conftest.er1
27615   ac_status=$?
27616   grep -v '^ *+' conftest.er1 >conftest.err
27617   rm -f conftest.er1
27618   cat conftest.err >&5
27619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620   (exit $ac_status); } &&
27621          { ac_try='test -z "$ac_cxx_werror_flag"
27622                          || test ! -s conftest.err'
27623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624   (eval $ac_try) 2>&5
27625   ac_status=$?
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); }; } &&
27628          { ac_try='test -s conftest$ac_exeext'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; }; then
27634   gcc_cv_getipinfo=yes
27635 else
27636   echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27638
27639 gcc_cv_getipinfo=no
27640 fi
27641 rm -f conftest.err conftest.$ac_objext \
27642       conftest$ac_exeext conftest.$ac_ext
27643
27644 fi
27645
27646   if test $gcc_cv_getipinfo = yes; then
27647
27648 cat >>confdefs.h <<\_ACEOF
27649 #define HAVE_GETIPINFO 1
27650 _ACEOF
27651
27652   fi
27653   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27654 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27655   CXXFLAGS="$ac_save_CXXFLAGS"
27656   ac_ext=c
27657 ac_cpp='$CPP $CPPFLAGS'
27658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27661
27662
27663
27664 # See if linker supports anonymous version scripts.
27665 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27666 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27667 if test "${libjava_cv_anon_version_script+set}" = set; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27671    libjava_cv_anon_version_script=no
27672    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27673    echo '{ global: globalsymb*; local: *; };' > conftest.map
27674    if test x$gcc_no_link = xyes; then
27675   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27677    { (exit 1); exit 1; }; }
27678 fi
27679 cat >conftest.$ac_ext <<_ACEOF
27680 /* confdefs.h.  */
27681 _ACEOF
27682 cat confdefs.h >>conftest.$ac_ext
27683 cat >>conftest.$ac_ext <<_ACEOF
27684 /* end confdefs.h.  */
27685 void globalsymbol (void) {} void localsymbol (void) {}
27686 int
27687 main ()
27688 {
27689
27690   ;
27691   return 0;
27692 }
27693 _ACEOF
27694 rm -f conftest.$ac_objext conftest$ac_exeext
27695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27696   (eval $ac_link) 2>conftest.er1
27697   ac_status=$?
27698   grep -v '^ *+' conftest.er1 >conftest.err
27699   rm -f conftest.er1
27700   cat conftest.err >&5
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } &&
27703          { ac_try='test -z "$ac_c_werror_flag"
27704                          || test ! -s conftest.err'
27705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706   (eval $ac_try) 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; } &&
27710          { ac_try='test -s conftest$ac_exeext'
27711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712   (eval $ac_try) 2>&5
27713   ac_status=$?
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); }; }; then
27716   libjava_cv_anon_version_script=yes
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721 fi
27722 rm -f conftest.err conftest.$ac_objext \
27723       conftest$ac_exeext conftest.$ac_ext
27724    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27725
27726 fi
27727 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27728 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27729
27730
27731 if test "$libjava_cv_anon_version_script" = yes; then
27732   ANONVERSCRIPT_TRUE=
27733   ANONVERSCRIPT_FALSE='#'
27734 else
27735   ANONVERSCRIPT_TRUE='#'
27736   ANONVERSCRIPT_FALSE=
27737 fi
27738
27739
27740 # Check if linker supports static linking on a per library basis
27741 LD_START_STATIC_SPEC=
27742 LD_FINISH_STATIC_SPEC=
27743 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27744   if $LD --help 2>&1 | grep -q -e -non_shared ; then
27745     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27746     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27747   fi
27748 fi
27749
27750
27751
27752 here=`${PWDCMD-pwd}`
27753
27754
27755 # We get this from the environment.
27756
27757
27758                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27759
27760
27761           ac_config_files="$ac_config_files scripts/jar"
27762
27763
27764           ac_config_commands="$ac_config_commands default"
27765
27766
27767 cat >confcache <<\_ACEOF
27768 # This file is a shell script that caches the results of configure
27769 # tests run on this system so they can be shared between configure
27770 # scripts and configure runs, see configure's option --config-cache.
27771 # It is not useful on other systems.  If it contains results you don't
27772 # want to keep, you may remove or edit it.
27773 #
27774 # config.status only pays attention to the cache file if you give it
27775 # the --recheck option to rerun configure.
27776 #
27777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27779 # following values.
27780
27781 _ACEOF
27782
27783 # The following way of writing the cache mishandles newlines in values,
27784 # but we know of no workaround that is simple, portable, and efficient.
27785 # So, don't put newlines in cache variables' values.
27786 # Ultrix sh set writes to stderr and can't be redirected directly,
27787 # and sets the high bit in the cache file unless we assign to the vars.
27788 {
27789   (set) 2>&1 |
27790     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27791     *ac_space=\ *)
27792       # `set' does not quote correctly, so add quotes (double-quote
27793       # substitution turns \\\\ into \\, and sed turns \\ into \).
27794       sed -n \
27795         "s/'/'\\\\''/g;
27796           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27797       ;;
27798     *)
27799       # `set' quotes correctly as required by POSIX, so do not add quotes.
27800       sed -n \
27801         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27802       ;;
27803     esac;
27804 } |
27805   sed '
27806      t clear
27807      : clear
27808      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27809      t end
27810      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27811      : end' >>confcache
27812 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27813   if test -w $cache_file; then
27814     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27815     cat confcache >$cache_file
27816   else
27817     echo "not updating unwritable cache $cache_file"
27818   fi
27819 fi
27820 rm -f confcache
27821
27822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27823 # Let make expand exec_prefix.
27824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27825
27826 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27827 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27828 # trailing colons and then remove the whole line if VPATH becomes empty
27829 # (actually we leave an empty line to preserve line numbers).
27830 if test "x$srcdir" = x.; then
27831   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27832 s/:*\$(srcdir):*/:/;
27833 s/:*\${srcdir}:*/:/;
27834 s/:*@srcdir@:*/:/;
27835 s/^\([^=]*=[     ]*\):*/\1/;
27836 s/:*$//;
27837 s/^[^=]*=[       ]*$//;
27838 }'
27839 fi
27840
27841 DEFS=-DHAVE_CONFIG_H
27842
27843 ac_libobjs=
27844 ac_ltlibobjs=
27845 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27846   # 1. Remove the extension, and $U if already installed.
27847   ac_i=`echo "$ac_i" |
27848          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27849   # 2. Add them.
27850   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27851   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27852 done
27853 LIBOBJS=$ac_libobjs
27854
27855 LTLIBOBJS=$ac_ltlibobjs
27856
27857
27858 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27859   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27860 Usually this means the macro was only invoked conditionally." >&5
27861 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27862 Usually this means the macro was only invoked conditionally." >&2;}
27863    { (exit 1); exit 1; }; }
27864 fi
27865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27866   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27867 Usually this means the macro was only invoked conditionally." >&5
27868 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27869 Usually this means the macro was only invoked conditionally." >&2;}
27870    { (exit 1); exit 1; }; }
27871 fi
27872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27873   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27874 Usually this means the macro was only invoked conditionally." >&5
27875 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27876 Usually this means the macro was only invoked conditionally." >&2;}
27877    { (exit 1); exit 1; }; }
27878 fi
27879 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27880   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27881 Usually this means the macro was only invoked conditionally." >&5
27882 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27883 Usually this means the macro was only invoked conditionally." >&2;}
27884    { (exit 1); exit 1; }; }
27885 fi
27886 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27887   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27888 Usually this means the macro was only invoked conditionally." >&5
27889 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27890 Usually this means the macro was only invoked conditionally." >&2;}
27891    { (exit 1); exit 1; }; }
27892 fi
27893 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
27894   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
27895 Usually this means the macro was only invoked conditionally." >&5
27896 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
27897 Usually this means the macro was only invoked conditionally." >&2;}
27898    { (exit 1); exit 1; }; }
27899 fi
27900 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
27901   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
27902 Usually this means the macro was only invoked conditionally." >&5
27903 echo "$as_me: error: conditional \"X_AWT\" was never defined.
27904 Usually this means the macro was only invoked conditionally." >&2;}
27905    { (exit 1); exit 1; }; }
27906 fi
27907 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27908   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27909 Usually this means the macro was only invoked conditionally." >&5
27910 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27911 Usually this means the macro was only invoked conditionally." >&2;}
27912    { (exit 1); exit 1; }; }
27913 fi
27914 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27915   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27916 Usually this means the macro was only invoked conditionally." >&5
27917 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27918 Usually this means the macro was only invoked conditionally." >&2;}
27919    { (exit 1); exit 1; }; }
27920 fi
27921 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
27922   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
27923 Usually this means the macro was only invoked conditionally." >&5
27924 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
27925 Usually this means the macro was only invoked conditionally." >&2;}
27926    { (exit 1); exit 1; }; }
27927 fi
27928 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
27929   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
27930 Usually this means the macro was only invoked conditionally." >&5
27931 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
27932 Usually this means the macro was only invoked conditionally." >&2;}
27933    { (exit 1); exit 1; }; }
27934 fi
27935 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
27936   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27937 Usually this means the macro was only invoked conditionally." >&5
27938 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27939 Usually this means the macro was only invoked conditionally." >&2;}
27940    { (exit 1); exit 1; }; }
27941 fi
27942 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
27943   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
27944 Usually this means the macro was only invoked conditionally." >&5
27945 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
27946 Usually this means the macro was only invoked conditionally." >&2;}
27947    { (exit 1); exit 1; }; }
27948 fi
27949 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
27950   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
27951 Usually this means the macro was only invoked conditionally." >&5
27952 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
27953 Usually this means the macro was only invoked conditionally." >&2;}
27954    { (exit 1); exit 1; }; }
27955 fi
27956 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
27957   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
27958 Usually this means the macro was only invoked conditionally." >&5
27959 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
27960 Usually this means the macro was only invoked conditionally." >&2;}
27961    { (exit 1); exit 1; }; }
27962 fi
27963 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
27964   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
27965 Usually this means the macro was only invoked conditionally." >&5
27966 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
27967 Usually this means the macro was only invoked conditionally." >&2;}
27968    { (exit 1); exit 1; }; }
27969 fi
27970 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
27971   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
27972 Usually this means the macro was only invoked conditionally." >&5
27973 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
27974 Usually this means the macro was only invoked conditionally." >&2;}
27975    { (exit 1); exit 1; }; }
27976 fi
27977 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
27978   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
27979 Usually this means the macro was only invoked conditionally." >&5
27980 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
27981 Usually this means the macro was only invoked conditionally." >&2;}
27982    { (exit 1); exit 1; }; }
27983 fi
27984 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
27985   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
27986 Usually this means the macro was only invoked conditionally." >&5
27987 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
27988 Usually this means the macro was only invoked conditionally." >&2;}
27989    { (exit 1); exit 1; }; }
27990 fi
27991 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
27992   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
27993 Usually this means the macro was only invoked conditionally." >&5
27994 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
27995 Usually this means the macro was only invoked conditionally." >&2;}
27996    { (exit 1); exit 1; }; }
27997 fi
27998 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
27999   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28000 Usually this means the macro was only invoked conditionally." >&5
28001 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28002 Usually this means the macro was only invoked conditionally." >&2;}
28003    { (exit 1); exit 1; }; }
28004 fi
28005 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28006   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28007 Usually this means the macro was only invoked conditionally." >&5
28008 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28009 Usually this means the macro was only invoked conditionally." >&2;}
28010    { (exit 1); exit 1; }; }
28011 fi
28012 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28013   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28014 Usually this means the macro was only invoked conditionally." >&5
28015 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28016 Usually this means the macro was only invoked conditionally." >&2;}
28017    { (exit 1); exit 1; }; }
28018 fi
28019 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28020   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28021 Usually this means the macro was only invoked conditionally." >&5
28022 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28023 Usually this means the macro was only invoked conditionally." >&2;}
28024    { (exit 1); exit 1; }; }
28025 fi
28026 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28027   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28028 Usually this means the macro was only invoked conditionally." >&5
28029 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28030 Usually this means the macro was only invoked conditionally." >&2;}
28031    { (exit 1); exit 1; }; }
28032 fi
28033 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28034   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28035 Usually this means the macro was only invoked conditionally." >&5
28036 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28037 Usually this means the macro was only invoked conditionally." >&2;}
28038    { (exit 1); exit 1; }; }
28039 fi
28040 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28041   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28042 Usually this means the macro was only invoked conditionally." >&5
28043 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28044 Usually this means the macro was only invoked conditionally." >&2;}
28045    { (exit 1); exit 1; }; }
28046 fi
28047 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28048   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28049 Usually this means the macro was only invoked conditionally." >&5
28050 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28051 Usually this means the macro was only invoked conditionally." >&2;}
28052    { (exit 1); exit 1; }; }
28053 fi
28054
28055 : ${CONFIG_STATUS=./config.status}
28056 ac_clean_files_save=$ac_clean_files
28057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28058 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28059 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28060 cat >$CONFIG_STATUS <<_ACEOF
28061 #! $SHELL
28062 # Generated by $as_me.
28063 # Run this file to recreate the current configuration.
28064 # Compiler output produced by configure, useful for debugging
28065 # configure, is in config.log if it exists.
28066
28067 debug=false
28068 ac_cs_recheck=false
28069 ac_cs_silent=false
28070 SHELL=\${CONFIG_SHELL-$SHELL}
28071 _ACEOF
28072
28073 cat >>$CONFIG_STATUS <<\_ACEOF
28074 ## --------------------- ##
28075 ## M4sh Initialization.  ##
28076 ## --------------------- ##
28077
28078 # Be Bourne compatible
28079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28080   emulate sh
28081   NULLCMD=:
28082   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28083   # is contrary to our usage.  Disable this feature.
28084   alias -g '${1+"$@"}'='"$@"'
28085 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28086   set -o posix
28087 fi
28088 DUALCASE=1; export DUALCASE # for MKS sh
28089
28090 # Support unset when possible.
28091 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28092   as_unset=unset
28093 else
28094   as_unset=false
28095 fi
28096
28097
28098 # Work around bugs in pre-3.0 UWIN ksh.
28099 $as_unset ENV MAIL MAILPATH
28100 PS1='$ '
28101 PS2='> '
28102 PS4='+ '
28103
28104 # NLS nuisances.
28105 for as_var in \
28106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28108   LC_TELEPHONE LC_TIME
28109 do
28110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28111     eval $as_var=C; export $as_var
28112   else
28113     $as_unset $as_var
28114   fi
28115 done
28116
28117 # Required to use basename.
28118 if expr a : '\(a\)' >/dev/null 2>&1; then
28119   as_expr=expr
28120 else
28121   as_expr=false
28122 fi
28123
28124 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28125   as_basename=basename
28126 else
28127   as_basename=false
28128 fi
28129
28130
28131 # Name of the executable.
28132 as_me=`$as_basename "$0" ||
28133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28134          X"$0" : 'X\(//\)$' \| \
28135          X"$0" : 'X\(/\)$' \| \
28136          .     : '\(.\)' 2>/dev/null ||
28137 echo X/"$0" |
28138     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28139           /^X\/\(\/\/\)$/{ s//\1/; q; }
28140           /^X\/\(\/\).*/{ s//\1/; q; }
28141           s/.*/./; q'`
28142
28143
28144 # PATH needs CR, and LINENO needs CR and PATH.
28145 # Avoid depending upon Character Ranges.
28146 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28147 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28148 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28149 as_cr_digits='0123456789'
28150 as_cr_alnum=$as_cr_Letters$as_cr_digits
28151
28152 # The user is always right.
28153 if test "${PATH_SEPARATOR+set}" != set; then
28154   echo "#! /bin/sh" >conf$$.sh
28155   echo  "exit 0"   >>conf$$.sh
28156   chmod +x conf$$.sh
28157   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28158     PATH_SEPARATOR=';'
28159   else
28160     PATH_SEPARATOR=:
28161   fi
28162   rm -f conf$$.sh
28163 fi
28164
28165
28166   as_lineno_1=$LINENO
28167   as_lineno_2=$LINENO
28168   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28169   test "x$as_lineno_1" != "x$as_lineno_2" &&
28170   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28171   # Find who we are.  Look in the path if we contain no path at all
28172   # relative or not.
28173   case $0 in
28174     *[\\/]* ) as_myself=$0 ;;
28175     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28176 for as_dir in $PATH
28177 do
28178   IFS=$as_save_IFS
28179   test -z "$as_dir" && as_dir=.
28180   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28181 done
28182
28183        ;;
28184   esac
28185   # We did not find ourselves, most probably we were run as `sh COMMAND'
28186   # in which case we are not to be found in the path.
28187   if test "x$as_myself" = x; then
28188     as_myself=$0
28189   fi
28190   if test ! -f "$as_myself"; then
28191     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28192 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28193    { (exit 1); exit 1; }; }
28194   fi
28195   case $CONFIG_SHELL in
28196   '')
28197     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28199 do
28200   IFS=$as_save_IFS
28201   test -z "$as_dir" && as_dir=.
28202   for as_base in sh bash ksh sh5; do
28203          case $as_dir in
28204          /*)
28205            if ("$as_dir/$as_base" -c '
28206   as_lineno_1=$LINENO
28207   as_lineno_2=$LINENO
28208   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28209   test "x$as_lineno_1" != "x$as_lineno_2" &&
28210   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28211              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28212              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28213              CONFIG_SHELL=$as_dir/$as_base
28214              export CONFIG_SHELL
28215              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28216            fi;;
28217          esac
28218        done
28219 done
28220 ;;
28221   esac
28222
28223   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28224   # uniformly replaced by the line number.  The first 'sed' inserts a
28225   # line-number line before each line; the second 'sed' does the real
28226   # work.  The second script uses 'N' to pair each line-number line
28227   # with the numbered line, and appends trailing '-' during
28228   # substitution so that $LINENO is not a special case at line end.
28229   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28230   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28231   sed '=' <$as_myself |
28232     sed '
28233       N
28234       s,$,-,
28235       : loop
28236       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28237       t loop
28238       s,-$,,
28239       s,^['$as_cr_digits']*\n,,
28240     ' >$as_me.lineno &&
28241   chmod +x $as_me.lineno ||
28242     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28243 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28244    { (exit 1); exit 1; }; }
28245
28246   # Don't try to exec as it changes $[0], causing all sort of problems
28247   # (the dirname of $[0] is not the place where we might find the
28248   # original and so on.  Autoconf is especially sensible to this).
28249   . ./$as_me.lineno
28250   # Exit status is that of the last command.
28251   exit
28252 }
28253
28254
28255 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28256   *c*,-n*) ECHO_N= ECHO_C='
28257 ' ECHO_T='      ' ;;
28258   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28259   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28260 esac
28261
28262 if expr a : '\(a\)' >/dev/null 2>&1; then
28263   as_expr=expr
28264 else
28265   as_expr=false
28266 fi
28267
28268 rm -f conf$$ conf$$.exe conf$$.file
28269 echo >conf$$.file
28270 if ln -s conf$$.file conf$$ 2>/dev/null; then
28271   # We could just check for DJGPP; but this test a) works b) is more generic
28272   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28273   if test -f conf$$.exe; then
28274     # Don't use ln at all; we don't have any links
28275     as_ln_s='cp -p'
28276   else
28277     as_ln_s='ln -s'
28278   fi
28279 elif ln conf$$.file conf$$ 2>/dev/null; then
28280   as_ln_s=ln
28281 else
28282   as_ln_s='cp -p'
28283 fi
28284 rm -f conf$$ conf$$.exe conf$$.file
28285
28286 if mkdir -p . 2>/dev/null; then
28287   as_mkdir_p=:
28288 else
28289   test -d ./-p && rmdir ./-p
28290   as_mkdir_p=false
28291 fi
28292
28293 as_executable_p="test -f"
28294
28295 # Sed expression to map a string onto a valid CPP name.
28296 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28297
28298 # Sed expression to map a string onto a valid variable name.
28299 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28300
28301
28302 # IFS
28303 # We need space, tab and new line, in precisely that order.
28304 as_nl='
28305 '
28306 IFS="   $as_nl"
28307
28308 # CDPATH.
28309 $as_unset CDPATH
28310
28311 exec 6>&1
28312
28313 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28314 # report actual input values of CONFIG_FILES etc. instead of their
28315 # values after options handling.  Logging --version etc. is OK.
28316 exec 5>>config.log
28317 {
28318   echo
28319   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28320 ## Running $as_me. ##
28321 _ASBOX
28322 } >&5
28323 cat >&5 <<_CSEOF
28324
28325 This file was extended by libjava $as_me version-unused, which was
28326 generated by GNU Autoconf 2.59.  Invocation command line was
28327
28328   CONFIG_FILES    = $CONFIG_FILES
28329   CONFIG_HEADERS  = $CONFIG_HEADERS
28330   CONFIG_LINKS    = $CONFIG_LINKS
28331   CONFIG_COMMANDS = $CONFIG_COMMANDS
28332   $ $0 $@
28333
28334 _CSEOF
28335 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28336 echo >&5
28337 _ACEOF
28338
28339 # Files that config.status was made for.
28340 if test -n "$ac_config_files"; then
28341   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28342 fi
28343
28344 if test -n "$ac_config_headers"; then
28345   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28346 fi
28347
28348 if test -n "$ac_config_links"; then
28349   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28350 fi
28351
28352 if test -n "$ac_config_commands"; then
28353   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28354 fi
28355
28356 cat >>$CONFIG_STATUS <<\_ACEOF
28357
28358 ac_cs_usage="\
28359 \`$as_me' instantiates files from templates according to the
28360 current configuration.
28361
28362 Usage: $0 [OPTIONS] [FILE]...
28363
28364   -h, --help       print this help, then exit
28365   -V, --version    print version number, then exit
28366   -q, --quiet      do not print progress messages
28367   -d, --debug      don't remove temporary files
28368       --recheck    update $as_me by reconfiguring in the same conditions
28369   --file=FILE[:TEMPLATE]
28370                    instantiate the configuration file FILE
28371   --header=FILE[:TEMPLATE]
28372                    instantiate the configuration header FILE
28373
28374 Configuration files:
28375 $config_files
28376
28377 Configuration headers:
28378 $config_headers
28379
28380 Configuration links:
28381 $config_links
28382
28383 Configuration commands:
28384 $config_commands
28385
28386 Report bugs to <bug-autoconf@gnu.org>."
28387 _ACEOF
28388
28389 cat >>$CONFIG_STATUS <<_ACEOF
28390 ac_cs_version="\\
28391 libjava config.status version-unused
28392 configured by $0, generated by GNU Autoconf 2.59,
28393   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28394
28395 Copyright (C) 2003 Free Software Foundation, Inc.
28396 This config.status script is free software; the Free Software Foundation
28397 gives unlimited permission to copy, distribute and modify it."
28398 srcdir=$srcdir
28399 INSTALL="$INSTALL"
28400 _ACEOF
28401
28402 cat >>$CONFIG_STATUS <<\_ACEOF
28403 # If no file are specified by the user, then we need to provide default
28404 # value.  By we need to know if files were specified by the user.
28405 ac_need_defaults=:
28406 while test $# != 0
28407 do
28408   case $1 in
28409   --*=*)
28410     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28411     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28412     ac_shift=:
28413     ;;
28414   -*)
28415     ac_option=$1
28416     ac_optarg=$2
28417     ac_shift=shift
28418     ;;
28419   *) # This is not an option, so the user has probably given explicit
28420      # arguments.
28421      ac_option=$1
28422      ac_need_defaults=false;;
28423   esac
28424
28425   case $ac_option in
28426   # Handling of the options.
28427 _ACEOF
28428 cat >>$CONFIG_STATUS <<\_ACEOF
28429   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28430     ac_cs_recheck=: ;;
28431   --version | --vers* | -V )
28432     echo "$ac_cs_version"; exit 0 ;;
28433   --he | --h)
28434     # Conflict between --help and --header
28435     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28436 Try \`$0 --help' for more information." >&5
28437 echo "$as_me: error: ambiguous option: $1
28438 Try \`$0 --help' for more information." >&2;}
28439    { (exit 1); exit 1; }; };;
28440   --help | --hel | -h )
28441     echo "$ac_cs_usage"; exit 0 ;;
28442   --debug | --d* | -d )
28443     debug=: ;;
28444   --file | --fil | --fi | --f )
28445     $ac_shift
28446     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28447     ac_need_defaults=false;;
28448   --header | --heade | --head | --hea )
28449     $ac_shift
28450     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28451     ac_need_defaults=false;;
28452   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28453   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28454     ac_cs_silent=: ;;
28455
28456   # This is an error.
28457   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28458 Try \`$0 --help' for more information." >&5
28459 echo "$as_me: error: unrecognized option: $1
28460 Try \`$0 --help' for more information." >&2;}
28461    { (exit 1); exit 1; }; } ;;
28462
28463   *) ac_config_targets="$ac_config_targets $1" ;;
28464
28465   esac
28466   shift
28467 done
28468
28469 ac_configure_extra_args=
28470
28471 if $ac_cs_silent; then
28472   exec 6>/dev/null
28473   ac_configure_extra_args="$ac_configure_extra_args --silent"
28474 fi
28475
28476 _ACEOF
28477 cat >>$CONFIG_STATUS <<_ACEOF
28478 if \$ac_cs_recheck; then
28479   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28480   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28481 fi
28482
28483 _ACEOF
28484
28485 cat >>$CONFIG_STATUS <<_ACEOF
28486 #
28487 # INIT-COMMANDS section.
28488 #
28489
28490
28491 srcdir="$srcdir"
28492 host="$host"
28493 target="$target"
28494 with_multisubdir="$with_multisubdir"
28495 with_multisrctop="$with_multisrctop"
28496 with_target_subdir="$with_target_subdir"
28497 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28498 multi_basedir="$multi_basedir"
28499 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28500 CC="$CC"
28501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28502
28503
28504 # The HP-UX ksh and POSIX shell print the target directory to stdout
28505 # if CDPATH is set.
28506 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28507
28508 sed_quote_subst='$sed_quote_subst'
28509 double_quote_subst='$double_quote_subst'
28510 delay_variable_subst='$delay_variable_subst'
28511 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28512 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28513 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28514 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28515 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28516 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28517 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28518 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28519 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28520 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28521 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28522 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28523 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28524 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28525 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28526 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28527 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28528 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28529 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28530 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28531 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28532 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28533 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28534 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28535 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28536 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28537 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28538 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28539 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28540 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28541 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28542 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28543 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28544 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28545 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28546 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28547 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28548 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28549 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28550 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28551 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28552 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28553 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28554 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"`'
28555 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28556 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28557 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28558 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28559 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28560 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28561 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28562 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28563 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28564 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28565 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28566 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28567 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28568 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28569 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28570 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28571 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28572 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28573 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28574 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28575 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28576 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28577 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28578 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28579 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28580 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28581 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28582 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28583 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28584 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28585 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28586 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28587 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28588 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28589 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28590 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28591 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28592 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28593 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28594 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28595 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28596 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28597 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28598 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28599 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28600 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28601 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28602 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28603 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28604 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28605 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28606 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28607 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28608 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28609 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28610 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28611 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28612 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28613 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28614 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28615 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28616 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28617 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28618 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28619 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28620 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28621 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28622 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28623 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28624 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28625 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28626 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28627 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28628 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28629 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28630 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28631 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28632 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28633 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28634 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28635 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28636 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28637 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28638 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28639 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28640 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28641 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28642 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28643 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28644 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28645 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28646 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28647 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28648 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28649 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28650 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28651 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28652 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28653 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28654 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28655 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28656 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28657 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28658 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28659 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28660 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28661 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28662 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28663 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28664 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28665 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28666 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28667 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28668 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28669 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28670 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28671 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28672 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28673 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28674 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28675 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28676 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28677 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28678 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28679 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28680 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28681 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28682 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28683 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28684 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28685 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28686 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28687 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28688 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28689 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28690 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28691 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28692 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28693 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28694 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28695 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28696 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28697 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28698 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28699 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28700 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28701 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28702 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28703 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28704 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28705 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28706 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28707 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28708 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28709 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28710 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28711 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28712 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28713 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28714 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28715 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28716 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28717 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28718 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28719
28720 LTCC='$LTCC'
28721 LTCFLAGS='$LTCFLAGS'
28722 compiler='$compiler_DEFAULT'
28723
28724 # Quote evaled strings.
28725 for var in SED \
28726 GREP \
28727 EGREP \
28728 FGREP \
28729 LD \
28730 NM \
28731 LN_S \
28732 lt_SP2NL \
28733 lt_NL2SP \
28734 reload_flag \
28735 deplibs_check_method \
28736 file_magic_cmd \
28737 AR \
28738 AR_FLAGS \
28739 STRIP \
28740 RANLIB \
28741 CC \
28742 CFLAGS \
28743 compiler \
28744 lt_cv_sys_global_symbol_pipe \
28745 lt_cv_sys_global_symbol_to_cdecl \
28746 lt_cv_sys_global_symbol_to_c_name_address \
28747 SHELL \
28748 ECHO \
28749 lt_prog_compiler_no_builtin_flag \
28750 lt_prog_compiler_wl \
28751 lt_prog_compiler_pic \
28752 lt_prog_compiler_static \
28753 lt_cv_prog_compiler_c_o \
28754 need_locks \
28755 shrext_cmds \
28756 export_dynamic_flag_spec \
28757 whole_archive_flag_spec \
28758 compiler_needs_object \
28759 with_gnu_ld \
28760 allow_undefined_flag \
28761 no_undefined_flag \
28762 hardcode_libdir_flag_spec \
28763 hardcode_libdir_flag_spec_ld \
28764 hardcode_libdir_separator \
28765 fix_srcfile_path \
28766 exclude_expsyms \
28767 include_expsyms \
28768 file_list_spec \
28769 variables_saved_for_relink \
28770 libname_spec \
28771 library_names_spec \
28772 soname_spec \
28773 finish_eval \
28774 old_striplib \
28775 striplib \
28776 predep_objects \
28777 postdep_objects \
28778 predeps \
28779 postdeps \
28780 compiler_lib_search_path \
28781 LD_CXX \
28782 LD_GCJ \
28783 compiler_CXX \
28784 compiler_GCJ \
28785 lt_prog_compiler_no_builtin_flag_CXX \
28786 lt_prog_compiler_no_builtin_flag_GCJ \
28787 lt_prog_compiler_wl_CXX \
28788 lt_prog_compiler_wl_GCJ \
28789 lt_prog_compiler_pic_CXX \
28790 lt_prog_compiler_pic_GCJ \
28791 lt_prog_compiler_static_CXX \
28792 lt_prog_compiler_static_GCJ \
28793 lt_cv_prog_compiler_c_o_CXX \
28794 lt_cv_prog_compiler_c_o_GCJ \
28795 export_dynamic_flag_spec_CXX \
28796 export_dynamic_flag_spec_GCJ \
28797 whole_archive_flag_spec_CXX \
28798 whole_archive_flag_spec_GCJ \
28799 compiler_needs_object_CXX \
28800 compiler_needs_object_GCJ \
28801 with_gnu_ld_CXX \
28802 with_gnu_ld_GCJ \
28803 allow_undefined_flag_CXX \
28804 allow_undefined_flag_GCJ \
28805 no_undefined_flag_CXX \
28806 no_undefined_flag_GCJ \
28807 hardcode_libdir_flag_spec_CXX \
28808 hardcode_libdir_flag_spec_GCJ \
28809 hardcode_libdir_flag_spec_ld_CXX \
28810 hardcode_libdir_flag_spec_ld_GCJ \
28811 hardcode_libdir_separator_CXX \
28812 hardcode_libdir_separator_GCJ \
28813 fix_srcfile_path_CXX \
28814 fix_srcfile_path_GCJ \
28815 exclude_expsyms_CXX \
28816 exclude_expsyms_GCJ \
28817 include_expsyms_CXX \
28818 include_expsyms_GCJ \
28819 file_list_spec_CXX \
28820 file_list_spec_GCJ \
28821 predep_objects_CXX \
28822 predep_objects_GCJ \
28823 postdep_objects_CXX \
28824 postdep_objects_GCJ \
28825 predeps_CXX \
28826 predeps_GCJ \
28827 postdeps_CXX \
28828 postdeps_GCJ \
28829 compiler_lib_search_path_CXX \
28830 compiler_lib_search_path_GCJ; do
28831     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28832     *[\\\\\\\`\\"\\\$]*)
28833       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28834       ;;
28835     *)
28836       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28837       ;;
28838     esac
28839 done
28840
28841 # Double-quote double-evaled strings.
28842 for var in reload_cmds \
28843 old_postinstall_cmds \
28844 old_postuninstall_cmds \
28845 old_archive_cmds \
28846 extract_expsyms_cmds \
28847 old_archive_from_new_cmds \
28848 old_archive_from_expsyms_cmds \
28849 archive_cmds \
28850 archive_expsym_cmds \
28851 module_cmds \
28852 module_expsym_cmds \
28853 export_symbols_cmds \
28854 prelink_cmds \
28855 postinstall_cmds \
28856 postuninstall_cmds \
28857 finish_cmds \
28858 sys_lib_search_path_spec \
28859 sys_lib_dlsearch_path_spec \
28860 old_archive_cmds_CXX \
28861 old_archive_cmds_GCJ \
28862 old_archive_from_new_cmds_CXX \
28863 old_archive_from_new_cmds_GCJ \
28864 old_archive_from_expsyms_cmds_CXX \
28865 old_archive_from_expsyms_cmds_GCJ \
28866 archive_cmds_CXX \
28867 archive_cmds_GCJ \
28868 archive_expsym_cmds_CXX \
28869 archive_expsym_cmds_GCJ \
28870 module_cmds_CXX \
28871 module_cmds_GCJ \
28872 module_expsym_cmds_CXX \
28873 module_expsym_cmds_GCJ \
28874 export_symbols_cmds_CXX \
28875 export_symbols_cmds_GCJ \
28876 prelink_cmds_CXX \
28877 prelink_cmds_GCJ; do
28878     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28879     *[\\\\\\\`\\"\\\$]*)
28880       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28881       ;;
28882     *)
28883       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28884       ;;
28885     esac
28886 done
28887
28888 # Fix-up fallback echo if it was mangled by the above quoting rules.
28889 case \$lt_ECHO in
28890 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28891   ;;
28892 esac
28893
28894 ac_aux_dir='$ac_aux_dir'
28895 xsi_shell='$xsi_shell'
28896 lt_shell_append='$lt_shell_append'
28897
28898 # See if we are running on zsh, and set the options which allow our
28899 # commands through without removal of \ escapes INIT.
28900 if test -n "\${ZSH_VERSION+set}" ; then
28901    setopt NO_GLOB_SUBST
28902 fi
28903
28904
28905     PACKAGE='$PACKAGE'
28906     VERSION='$VERSION'
28907     TIMESTAMP='$TIMESTAMP'
28908     RM='$RM'
28909     ofile='$ofile'
28910
28911
28912
28913
28914
28915
28916
28917 srcdir=${srcdir}
28918 host=${host}
28919 target=${target}
28920 with_multisubdir=${with_multisubdir}
28921 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28922 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28923 multi_basedir=${multi_basedir}
28924 CC="${CC}"
28925 CXX="${CXX}"
28926 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
28927
28928
28929 _ACEOF
28930
28931
28932
28933 cat >>$CONFIG_STATUS <<\_ACEOF
28934 for ac_config_target in $ac_config_targets
28935 do
28936   case "$ac_config_target" in
28937   # Handling of arguments.
28938   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28939   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
28940   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
28941   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
28942   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
28943   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28944   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28945   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
28946   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
28947   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
28948   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
28949   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
28950   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
28951   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
28952   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
28953   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
28954   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
28955   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
28956   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
28957   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
28958   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
28959   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
28960   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
28961   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
28962   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
28963   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28964   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28965   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28966   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28967   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28968   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
28969   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28970 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28971    { (exit 1); exit 1; }; };;
28972   esac
28973 done
28974
28975 # If the user did not use the arguments to specify the items to instantiate,
28976 # then the envvar interface is used.  Set only those that are not.
28977 # We use the long form for the default assignment because of an extremely
28978 # bizarre bug on SunOS 4.1.3.
28979 if $ac_need_defaults; then
28980   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28981   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28982   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28983   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28984 fi
28985
28986 # Have a temporary directory for convenience.  Make it in the build tree
28987 # simply because there is no reason to put it here, and in addition,
28988 # creating and moving files from /tmp can sometimes cause problems.
28989 # Create a temporary directory, and hook for its removal unless debugging.
28990 $debug ||
28991 {
28992   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28993   trap '{ (exit 1); exit 1; }' 1 2 13 15
28994 }
28995
28996 # Create a (secure) tmp directory for tmp files.
28997
28998 {
28999   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29000   test -n "$tmp" && test -d "$tmp"
29001 }  ||
29002 {
29003   tmp=./confstat$$-$RANDOM
29004   (umask 077 && mkdir $tmp)
29005 } ||
29006 {
29007    echo "$me: cannot create a temporary directory in ." >&2
29008    { (exit 1); exit 1; }
29009 }
29010
29011 _ACEOF
29012
29013 cat >>$CONFIG_STATUS <<_ACEOF
29014
29015 #
29016 # CONFIG_FILES section.
29017 #
29018
29019 # No need to generate the scripts if there are no CONFIG_FILES.
29020 # This happens for instance when ./config.status config.h
29021 if test -n "\$CONFIG_FILES"; then
29022   # Protect against being on the right side of a sed subst in config.status.
29023   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29024    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29025 s,@SHELL@,$SHELL,;t t
29026 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29027 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29028 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29029 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29030 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29031 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29032 s,@exec_prefix@,$exec_prefix,;t t
29033 s,@prefix@,$prefix,;t t
29034 s,@program_transform_name@,$program_transform_name,;t t
29035 s,@bindir@,$bindir,;t t
29036 s,@sbindir@,$sbindir,;t t
29037 s,@libexecdir@,$libexecdir,;t t
29038 s,@datadir@,$datadir,;t t
29039 s,@sysconfdir@,$sysconfdir,;t t
29040 s,@sharedstatedir@,$sharedstatedir,;t t
29041 s,@localstatedir@,$localstatedir,;t t
29042 s,@libdir@,$libdir,;t t
29043 s,@includedir@,$includedir,;t t
29044 s,@oldincludedir@,$oldincludedir,;t t
29045 s,@infodir@,$infodir,;t t
29046 s,@mandir@,$mandir,;t t
29047 s,@build_alias@,$build_alias,;t t
29048 s,@host_alias@,$host_alias,;t t
29049 s,@target_alias@,$target_alias,;t t
29050 s,@DEFS@,$DEFS,;t t
29051 s,@ECHO_C@,$ECHO_C,;t t
29052 s,@ECHO_N@,$ECHO_N,;t t
29053 s,@ECHO_T@,$ECHO_T,;t t
29054 s,@LIBS@,$LIBS,;t t
29055 s,@build@,$build,;t t
29056 s,@build_cpu@,$build_cpu,;t t
29057 s,@build_vendor@,$build_vendor,;t t
29058 s,@build_os@,$build_os,;t t
29059 s,@build_libsubdir@,$build_libsubdir,;t t
29060 s,@build_subdir@,$build_subdir,;t t
29061 s,@host_subdir@,$host_subdir,;t t
29062 s,@target_subdir@,$target_subdir,;t t
29063 s,@multi_basedir@,$multi_basedir,;t t
29064 s,@host@,$host,;t t
29065 s,@host_cpu@,$host_cpu,;t t
29066 s,@host_vendor@,$host_vendor,;t t
29067 s,@host_os@,$host_os,;t t
29068 s,@target@,$target,;t t
29069 s,@target_cpu@,$target_cpu,;t t
29070 s,@target_vendor@,$target_vendor,;t t
29071 s,@target_os@,$target_os,;t t
29072 s,@target_noncanonical@,$target_noncanonical,;t t
29073 s,@LN_S@,$LN_S,;t t
29074 s,@mkinstalldirs@,$mkinstalldirs,;t t
29075 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29076 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29077 s,@CC@,$CC,;t t
29078 s,@ac_ct_CC@,$ac_ct_CC,;t t
29079 s,@EXEEXT@,$EXEEXT,;t t
29080 s,@OBJEXT@,$OBJEXT,;t t
29081 s,@CXX@,$CXX,;t t
29082 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29083 s,@CFLAGS@,$CFLAGS,;t t
29084 s,@CXXFLAGS@,$CXXFLAGS,;t t
29085 s,@LDFLAGS@,$LDFLAGS,;t t
29086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29089 s,@CYGPATH_W@,$CYGPATH_W,;t t
29090 s,@PACKAGE@,$PACKAGE,;t t
29091 s,@VERSION@,$VERSION,;t t
29092 s,@ACLOCAL@,$ACLOCAL,;t t
29093 s,@AUTOCONF@,$AUTOCONF,;t t
29094 s,@AUTOMAKE@,$AUTOMAKE,;t t
29095 s,@AUTOHEADER@,$AUTOHEADER,;t t
29096 s,@MAKEINFO@,$MAKEINFO,;t t
29097 s,@install_sh@,$install_sh,;t t
29098 s,@STRIP@,$STRIP,;t t
29099 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29100 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29101 s,@mkdir_p@,$mkdir_p,;t t
29102 s,@AWK@,$AWK,;t t
29103 s,@SET_MAKE@,$SET_MAKE,;t t
29104 s,@am__leading_dot@,$am__leading_dot,;t t
29105 s,@AMTAR@,$AMTAR,;t t
29106 s,@am__tar@,$am__tar,;t t
29107 s,@am__untar@,$am__untar,;t t
29108 s,@DEPDIR@,$DEPDIR,;t t
29109 s,@am__include@,$am__include,;t t
29110 s,@am__quote@,$am__quote,;t t
29111 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29112 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29113 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29114 s,@CCDEPMODE@,$CCDEPMODE,;t t
29115 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29116 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29117 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29118 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29119 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29120 s,@AS@,$AS,;t t
29121 s,@ac_ct_AS@,$ac_ct_AS,;t t
29122 s,@LD@,$LD,;t t
29123 s,@ac_ct_LD@,$ac_ct_LD,;t t
29124 s,@AR@,$AR,;t t
29125 s,@ac_ct_AR@,$ac_ct_AR,;t t
29126 s,@RANLIB@,$RANLIB,;t t
29127 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29128 s,@JAR@,$JAR,;t t
29129 s,@ZIP@,$ZIP,;t t
29130 s,@UNZIP@,$UNZIP,;t t
29131 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29132 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29133 s,@MAINT@,$MAINT,;t t
29134 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29135 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29136 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29137 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29138 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29139 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29140 s,@TOOLKIT@,$TOOLKIT,;t t
29141 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29142 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29143 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29144 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29145 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29146 s,@GCJH@,$GCJH,;t t
29147 s,@host_exeext@,$host_exeext,;t t
29148 s,@INCLTDL@,$INCLTDL,;t t
29149 s,@LIBLTDL@,$LIBLTDL,;t t
29150 s,@DIRLTDL@,$DIRLTDL,;t t
29151 s,@LIBTOOL@,$LIBTOOL,;t t
29152 s,@SED@,$SED,;t t
29153 s,@EGREP@,$EGREP,;t t
29154 s,@FGREP@,$FGREP,;t t
29155 s,@GREP@,$GREP,;t t
29156 s,@DUMPBIN@,$DUMPBIN,;t t
29157 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29158 s,@NM@,$NM,;t t
29159 s,@lt_ECHO@,$lt_ECHO,;t t
29160 s,@CPP@,$CPP,;t t
29161 s,@CPPFLAGS@,$CPPFLAGS,;t t
29162 s,@CXXCPP@,$CXXCPP,;t t
29163 s,@GCJ@,$GCJ,;t t
29164 s,@GCJFLAGS@,$GCJFLAGS,;t t
29165 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29166 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29167 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29168 s,@subdirs@,$subdirs,;t t
29169 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29170 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29171 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29172 s,@ECJ_JAR@,$ECJ_JAR,;t t
29173 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29174 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29175 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29176 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29177 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29178 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29179 s,@JAVA_HOME@,$JAVA_HOME,;t t
29180 s,@INTERPRETER@,$INTERPRETER,;t t
29181 s,@LIBFFI@,$LIBFFI,;t t
29182 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29183 s,@PLATFORM@,$PLATFORM,;t t
29184 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29185 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29186 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29187 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29188 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29189 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29190 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29191 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29192 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29193 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29194 s,@X_CFLAGS@,$X_CFLAGS,;t t
29195 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29196 s,@X_LIBS@,$X_LIBS,;t t
29197 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29198 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29199 s,@GCLIBS@,$GCLIBS,;t t
29200 s,@GCINCS@,$GCINCS,;t t
29201 s,@GCDEPS@,$GCDEPS,;t t
29202 s,@GCSPEC@,$GCSPEC,;t t
29203 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29204 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29205 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29206 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29207 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29208 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29209 s,@THREADLIBS@,$THREADLIBS,;t t
29210 s,@THREADINCS@,$THREADINCS,;t t
29211 s,@THREADDEPS@,$THREADDEPS,;t t
29212 s,@THREADSPEC@,$THREADSPEC,;t t
29213 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29214 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29215 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29216 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29217 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29218 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29219 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29220 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29221 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29222 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29223 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29224 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29225 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29226 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29227 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29228 s,@LIBICONV@,$LIBICONV,;t t
29229 s,@LTLIBICONV@,$LTLIBICONV,;t t
29230 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29231 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29232 s,@GTK_LIBS@,$GTK_LIBS,;t t
29233 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29234 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29235 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29236 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29237 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29238 s,@ZLIBS@,$ZLIBS,;t t
29239 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29240 s,@ZINCS@,$ZINCS,;t t
29241 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29242 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29243 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29244 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29245 s,@IEEESPEC@,$IEEESPEC,;t t
29246 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29247 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29248 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29249 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29250 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29251 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29252 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29253 s,@toolexecdir@,$toolexecdir,;t t
29254 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29255 s,@toolexeclibdir@,$toolexeclibdir,;t t
29256 s,@dbexecdir@,$dbexecdir,;t t
29257 s,@GCJVERSION@,$GCJVERSION,;t t
29258 s,@gxx_include_dir@,$gxx_include_dir,;t t
29259 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29260 s,@PERL@,$PERL,;t t
29261 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29262 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29263 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29264 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29265 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29266 s,@here@,$here,;t t
29267 s,@LIBOBJS@,$LIBOBJS,;t t
29268 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29269 CEOF
29270
29271 _ACEOF
29272
29273   cat >>$CONFIG_STATUS <<\_ACEOF
29274   # Split the substitutions into bite-sized pieces for seds with
29275   # small command number limits, like on Digital OSF/1 and HP-UX.
29276   ac_max_sed_lines=48
29277   ac_sed_frag=1 # Number of current file.
29278   ac_beg=1 # First line for current file.
29279   ac_end=$ac_max_sed_lines # Line after last line for current file.
29280   ac_more_lines=:
29281   ac_sed_cmds=
29282   while $ac_more_lines; do
29283     if test $ac_beg -gt 1; then
29284       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29285     else
29286       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29287     fi
29288     if test ! -s $tmp/subs.frag; then
29289       ac_more_lines=false
29290     else
29291       # The purpose of the label and of the branching condition is to
29292       # speed up the sed processing (if there are no `@' at all, there
29293       # is no need to browse any of the substitutions).
29294       # These are the two extra sed commands mentioned above.
29295       (echo ':t
29296   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29297       if test -z "$ac_sed_cmds"; then
29298         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29299       else
29300         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29301       fi
29302       ac_sed_frag=`expr $ac_sed_frag + 1`
29303       ac_beg=$ac_end
29304       ac_end=`expr $ac_end + $ac_max_sed_lines`
29305     fi
29306   done
29307   if test -z "$ac_sed_cmds"; then
29308     ac_sed_cmds=cat
29309   fi
29310 fi # test -n "$CONFIG_FILES"
29311
29312 _ACEOF
29313 cat >>$CONFIG_STATUS <<\_ACEOF
29314 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29315   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29316   case $ac_file in
29317   - | *:- | *:-:* ) # input from stdin
29318         cat >$tmp/stdin
29319         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29320         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29321   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29322         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29323   * )   ac_file_in=$ac_file.in ;;
29324   esac
29325
29326   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29327   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29329          X"$ac_file" : 'X\(//\)[^/]' \| \
29330          X"$ac_file" : 'X\(//\)$' \| \
29331          X"$ac_file" : 'X\(/\)' \| \
29332          .     : '\(.\)' 2>/dev/null ||
29333 echo X"$ac_file" |
29334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29336           /^X\(\/\/\)$/{ s//\1/; q; }
29337           /^X\(\/\).*/{ s//\1/; q; }
29338           s/.*/./; q'`
29339   { if $as_mkdir_p; then
29340     mkdir -p "$ac_dir"
29341   else
29342     as_dir="$ac_dir"
29343     as_dirs=
29344     while test ! -d "$as_dir"; do
29345       as_dirs="$as_dir $as_dirs"
29346       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29348          X"$as_dir" : 'X\(//\)[^/]' \| \
29349          X"$as_dir" : 'X\(//\)$' \| \
29350          X"$as_dir" : 'X\(/\)' \| \
29351          .     : '\(.\)' 2>/dev/null ||
29352 echo X"$as_dir" |
29353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29354           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29355           /^X\(\/\/\)$/{ s//\1/; q; }
29356           /^X\(\/\).*/{ s//\1/; q; }
29357           s/.*/./; q'`
29358     done
29359     test ! -n "$as_dirs" || mkdir $as_dirs
29360   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29362    { (exit 1); exit 1; }; }; }
29363
29364   ac_builddir=.
29365
29366 if test "$ac_dir" != .; then
29367   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29368   # A "../" for each directory in $ac_dir_suffix.
29369   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29370 else
29371   ac_dir_suffix= ac_top_builddir=
29372 fi
29373
29374 case $srcdir in
29375   .)  # No --srcdir option.  We are building in place.
29376     ac_srcdir=.
29377     if test -z "$ac_top_builddir"; then
29378        ac_top_srcdir=.
29379     else
29380        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29381     fi ;;
29382   [\\/]* | ?:[\\/]* )  # Absolute path.
29383     ac_srcdir=$srcdir$ac_dir_suffix;
29384     ac_top_srcdir=$srcdir ;;
29385   *) # Relative path.
29386     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29387     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29388 esac
29389
29390 # Do not use `cd foo && pwd` to compute absolute paths, because
29391 # the directories may not exist.
29392 case `pwd` in
29393 .) ac_abs_builddir="$ac_dir";;
29394 *)
29395   case "$ac_dir" in
29396   .) ac_abs_builddir=`pwd`;;
29397   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29398   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29399   esac;;
29400 esac
29401 case $ac_abs_builddir in
29402 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29403 *)
29404   case ${ac_top_builddir}. in
29405   .) ac_abs_top_builddir=$ac_abs_builddir;;
29406   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29407   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29408   esac;;
29409 esac
29410 case $ac_abs_builddir in
29411 .) ac_abs_srcdir=$ac_srcdir;;
29412 *)
29413   case $ac_srcdir in
29414   .) ac_abs_srcdir=$ac_abs_builddir;;
29415   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29416   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29417   esac;;
29418 esac
29419 case $ac_abs_builddir in
29420 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29421 *)
29422   case $ac_top_srcdir in
29423   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29424   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29425   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29426   esac;;
29427 esac
29428
29429
29430   case $INSTALL in
29431   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29432   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29433   esac
29434
29435   if test x"$ac_file" != x-; then
29436     { echo "$as_me:$LINENO: creating $ac_file" >&5
29437 echo "$as_me: creating $ac_file" >&6;}
29438     rm -f "$ac_file"
29439   fi
29440   # Let's still pretend it is `configure' which instantiates (i.e., don't
29441   # use $as_me), people would be surprised to read:
29442   #    /* config.h.  Generated by config.status.  */
29443   if test x"$ac_file" = x-; then
29444     configure_input=
29445   else
29446     configure_input="$ac_file.  "
29447   fi
29448   configure_input=$configure_input"Generated from `echo $ac_file_in |
29449                                      sed 's,.*/,,'` by configure."
29450
29451   # First look for the input files in the build tree, otherwise in the
29452   # src tree.
29453   ac_file_inputs=`IFS=:
29454     for f in $ac_file_in; do
29455       case $f in
29456       -) echo $tmp/stdin ;;
29457       [\\/$]*)
29458          # Absolute (can't be DOS-style, as IFS=:)
29459          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29460 echo "$as_me: error: cannot find input file: $f" >&2;}
29461    { (exit 1); exit 1; }; }
29462          echo "$f";;
29463       *) # Relative
29464          if test -f "$f"; then
29465            # Build tree
29466            echo "$f"
29467          elif test -f "$srcdir/$f"; then
29468            # Source tree
29469            echo "$srcdir/$f"
29470          else
29471            # /dev/null tree
29472            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29473 echo "$as_me: error: cannot find input file: $f" >&2;}
29474    { (exit 1); exit 1; }; }
29475          fi;;
29476       esac
29477     done` || { (exit 1); exit 1; }
29478 _ACEOF
29479 cat >>$CONFIG_STATUS <<_ACEOF
29480   sed "$ac_vpsub
29481 $extrasub
29482 _ACEOF
29483 cat >>$CONFIG_STATUS <<\_ACEOF
29484 :t
29485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29486 s,@configure_input@,$configure_input,;t t
29487 s,@srcdir@,$ac_srcdir,;t t
29488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29489 s,@top_srcdir@,$ac_top_srcdir,;t t
29490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29491 s,@builddir@,$ac_builddir,;t t
29492 s,@abs_builddir@,$ac_abs_builddir,;t t
29493 s,@top_builddir@,$ac_top_builddir,;t t
29494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29495 s,@INSTALL@,$ac_INSTALL,;t t
29496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29497   rm -f $tmp/stdin
29498   if test x"$ac_file" != x-; then
29499     mv $tmp/out $ac_file
29500   else
29501     cat $tmp/out
29502     rm -f $tmp/out
29503   fi
29504
29505   # Run the commands associated with the file.
29506   case $ac_file in
29507     scripts/jar ) chmod +x scripts/jar ;;
29508   esac
29509 done
29510 _ACEOF
29511 cat >>$CONFIG_STATUS <<\_ACEOF
29512
29513 #
29514 # CONFIG_HEADER section.
29515 #
29516
29517 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29518 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29519 #
29520 # ac_d sets the value in "#define NAME VALUE" lines.
29521 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29522 ac_dB='[         ].*$,\1#\2'
29523 ac_dC=' '
29524 ac_dD=',;t'
29525 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29526 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29527 ac_uB='$,\1#\2define\3'
29528 ac_uC=' '
29529 ac_uD=',;t'
29530
29531 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29532   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29533   case $ac_file in
29534   - | *:- | *:-:* ) # input from stdin
29535         cat >$tmp/stdin
29536         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29537         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29538   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29539         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29540   * )   ac_file_in=$ac_file.in ;;
29541   esac
29542
29543   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29544 echo "$as_me: creating $ac_file" >&6;}
29545
29546   # First look for the input files in the build tree, otherwise in the
29547   # src tree.
29548   ac_file_inputs=`IFS=:
29549     for f in $ac_file_in; do
29550       case $f in
29551       -) echo $tmp/stdin ;;
29552       [\\/$]*)
29553          # Absolute (can't be DOS-style, as IFS=:)
29554          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29555 echo "$as_me: error: cannot find input file: $f" >&2;}
29556    { (exit 1); exit 1; }; }
29557          # Do quote $f, to prevent DOS paths from being IFS'd.
29558          echo "$f";;
29559       *) # Relative
29560          if test -f "$f"; then
29561            # Build tree
29562            echo "$f"
29563          elif test -f "$srcdir/$f"; then
29564            # Source tree
29565            echo "$srcdir/$f"
29566          else
29567            # /dev/null tree
29568            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29569 echo "$as_me: error: cannot find input file: $f" >&2;}
29570    { (exit 1); exit 1; }; }
29571          fi;;
29572       esac
29573     done` || { (exit 1); exit 1; }
29574   # Remove the trailing spaces.
29575   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29576
29577 _ACEOF
29578
29579 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29580 # `conftest.undefs', that substitutes the proper values into
29581 # config.h.in to produce config.h.  The first handles `#define'
29582 # templates, and the second `#undef' templates.
29583 # And first: Protect against being on the right side of a sed subst in
29584 # config.status.  Protect against being in an unquoted here document
29585 # in config.status.
29586 rm -f conftest.defines conftest.undefs
29587 # Using a here document instead of a string reduces the quoting nightmare.
29588 # Putting comments in sed scripts is not portable.
29589 #
29590 # `end' is used to avoid that the second main sed command (meant for
29591 # 0-ary CPP macros) applies to n-ary macro definitions.
29592 # See the Autoconf documentation for `clear'.
29593 cat >confdef2sed.sed <<\_ACEOF
29594 s/[\\&,]/\\&/g
29595 s,[\\$`],\\&,g
29596 t clear
29597 : clear
29598 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29599 t end
29600 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29601 : end
29602 _ACEOF
29603 # If some macros were called several times there might be several times
29604 # the same #defines, which is useless.  Nevertheless, we may not want to
29605 # sort them, since we want the *last* AC-DEFINE to be honored.
29606 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29607 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29608 rm -f confdef2sed.sed
29609
29610 # This sed command replaces #undef with comments.  This is necessary, for
29611 # example, in the case of _POSIX_SOURCE, which is predefined and required
29612 # on some systems where configure will not decide to define it.
29613 cat >>conftest.undefs <<\_ACEOF
29614 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29615 _ACEOF
29616
29617 # Break up conftest.defines because some shells have a limit on the size
29618 # of here documents, and old seds have small limits too (100 cmds).
29619 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29620 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29621 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29622 echo '  :' >>$CONFIG_STATUS
29623 rm -f conftest.tail
29624 while grep . conftest.defines >/dev/null
29625 do
29626   # Write a limited-size here document to $tmp/defines.sed.
29627   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29628   # Speed up: don't consider the non `#define' lines.
29629   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29630   # Work around the forget-to-reset-the-flag bug.
29631   echo 't clr' >>$CONFIG_STATUS
29632   echo ': clr' >>$CONFIG_STATUS
29633   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29634   echo 'CEOF
29635   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29636   rm -f $tmp/in
29637   mv $tmp/out $tmp/in
29638 ' >>$CONFIG_STATUS
29639   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29640   rm -f conftest.defines
29641   mv conftest.tail conftest.defines
29642 done
29643 rm -f conftest.defines
29644 echo '  fi # grep' >>$CONFIG_STATUS
29645 echo >>$CONFIG_STATUS
29646
29647 # Break up conftest.undefs because some shells have a limit on the size
29648 # of here documents, and old seds have small limits too (100 cmds).
29649 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29650 rm -f conftest.tail
29651 while grep . conftest.undefs >/dev/null
29652 do
29653   # Write a limited-size here document to $tmp/undefs.sed.
29654   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29655   # Speed up: don't consider the non `#undef'
29656   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29657   # Work around the forget-to-reset-the-flag bug.
29658   echo 't clr' >>$CONFIG_STATUS
29659   echo ': clr' >>$CONFIG_STATUS
29660   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29661   echo 'CEOF
29662   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29663   rm -f $tmp/in
29664   mv $tmp/out $tmp/in
29665 ' >>$CONFIG_STATUS
29666   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29667   rm -f conftest.undefs
29668   mv conftest.tail conftest.undefs
29669 done
29670 rm -f conftest.undefs
29671
29672 cat >>$CONFIG_STATUS <<\_ACEOF
29673   # Let's still pretend it is `configure' which instantiates (i.e., don't
29674   # use $as_me), people would be surprised to read:
29675   #    /* config.h.  Generated by config.status.  */
29676   if test x"$ac_file" = x-; then
29677     echo "/* Generated by configure.  */" >$tmp/config.h
29678   else
29679     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29680   fi
29681   cat $tmp/in >>$tmp/config.h
29682   rm -f $tmp/in
29683   if test x"$ac_file" != x-; then
29684     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29685       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29686 echo "$as_me: $ac_file is unchanged" >&6;}
29687     else
29688       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29690          X"$ac_file" : 'X\(//\)[^/]' \| \
29691          X"$ac_file" : 'X\(//\)$' \| \
29692          X"$ac_file" : 'X\(/\)' \| \
29693          .     : '\(.\)' 2>/dev/null ||
29694 echo X"$ac_file" |
29695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29697           /^X\(\/\/\)$/{ s//\1/; q; }
29698           /^X\(\/\).*/{ s//\1/; q; }
29699           s/.*/./; q'`
29700       { if $as_mkdir_p; then
29701     mkdir -p "$ac_dir"
29702   else
29703     as_dir="$ac_dir"
29704     as_dirs=
29705     while test ! -d "$as_dir"; do
29706       as_dirs="$as_dir $as_dirs"
29707       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29709          X"$as_dir" : 'X\(//\)[^/]' \| \
29710          X"$as_dir" : 'X\(//\)$' \| \
29711          X"$as_dir" : 'X\(/\)' \| \
29712          .     : '\(.\)' 2>/dev/null ||
29713 echo X"$as_dir" |
29714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29716           /^X\(\/\/\)$/{ s//\1/; q; }
29717           /^X\(\/\).*/{ s//\1/; q; }
29718           s/.*/./; q'`
29719     done
29720     test ! -n "$as_dirs" || mkdir $as_dirs
29721   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29722 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29723    { (exit 1); exit 1; }; }; }
29724
29725       rm -f $ac_file
29726       mv $tmp/config.h $ac_file
29727     fi
29728   else
29729     cat $tmp/config.h
29730     rm -f $tmp/config.h
29731   fi
29732 # Compute $ac_file's index in $config_headers.
29733 _am_stamp_count=1
29734 for _am_header in $config_headers :; do
29735   case $_am_header in
29736     $ac_file | $ac_file:* )
29737       break ;;
29738     * )
29739       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29740   esac
29741 done
29742 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29743 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29744          X$ac_file : 'X\(//\)[^/]' \| \
29745          X$ac_file : 'X\(//\)$' \| \
29746          X$ac_file : 'X\(/\)' \| \
29747          .     : '\(.\)' 2>/dev/null ||
29748 echo X$ac_file |
29749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29751           /^X\(\/\/\)$/{ s//\1/; q; }
29752           /^X\(\/\).*/{ s//\1/; q; }
29753           s/.*/./; q'`/stamp-h$_am_stamp_count
29754 done
29755 _ACEOF
29756 cat >>$CONFIG_STATUS <<\_ACEOF
29757
29758 #
29759 # CONFIG_LINKS section.
29760 #
29761
29762 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29763   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29764   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29765
29766   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29767 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29768
29769   if test ! -r $srcdir/$ac_source; then
29770     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29771 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29772    { (exit 1); exit 1; }; }
29773   fi
29774   rm -f $ac_dest
29775
29776   # Make relative symlinks.
29777   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29778 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29779          X"$ac_dest" : 'X\(//\)[^/]' \| \
29780          X"$ac_dest" : 'X\(//\)$' \| \
29781          X"$ac_dest" : 'X\(/\)' \| \
29782          .     : '\(.\)' 2>/dev/null ||
29783 echo X"$ac_dest" |
29784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29786           /^X\(\/\/\)$/{ s//\1/; q; }
29787           /^X\(\/\).*/{ s//\1/; q; }
29788           s/.*/./; q'`
29789   { if $as_mkdir_p; then
29790     mkdir -p "$ac_dest_dir"
29791   else
29792     as_dir="$ac_dest_dir"
29793     as_dirs=
29794     while test ! -d "$as_dir"; do
29795       as_dirs="$as_dir $as_dirs"
29796       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29798          X"$as_dir" : 'X\(//\)[^/]' \| \
29799          X"$as_dir" : 'X\(//\)$' \| \
29800          X"$as_dir" : 'X\(/\)' \| \
29801          .     : '\(.\)' 2>/dev/null ||
29802 echo X"$as_dir" |
29803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29805           /^X\(\/\/\)$/{ s//\1/; q; }
29806           /^X\(\/\).*/{ s//\1/; q; }
29807           s/.*/./; q'`
29808     done
29809     test ! -n "$as_dirs" || mkdir $as_dirs
29810   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29811 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29812    { (exit 1); exit 1; }; }; }
29813
29814   ac_builddir=.
29815
29816 if test "$ac_dest_dir" != .; then
29817   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29818   # A "../" for each directory in $ac_dir_suffix.
29819   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29820 else
29821   ac_dir_suffix= ac_top_builddir=
29822 fi
29823
29824 case $srcdir in
29825   .)  # No --srcdir option.  We are building in place.
29826     ac_srcdir=.
29827     if test -z "$ac_top_builddir"; then
29828        ac_top_srcdir=.
29829     else
29830        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29831     fi ;;
29832   [\\/]* | ?:[\\/]* )  # Absolute path.
29833     ac_srcdir=$srcdir$ac_dir_suffix;
29834     ac_top_srcdir=$srcdir ;;
29835   *) # Relative path.
29836     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29837     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29838 esac
29839
29840 # Do not use `cd foo && pwd` to compute absolute paths, because
29841 # the directories may not exist.
29842 case `pwd` in
29843 .) ac_abs_builddir="$ac_dest_dir";;
29844 *)
29845   case "$ac_dest_dir" in
29846   .) ac_abs_builddir=`pwd`;;
29847   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29848   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29849   esac;;
29850 esac
29851 case $ac_abs_builddir in
29852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29853 *)
29854   case ${ac_top_builddir}. in
29855   .) ac_abs_top_builddir=$ac_abs_builddir;;
29856   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29857   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29858   esac;;
29859 esac
29860 case $ac_abs_builddir in
29861 .) ac_abs_srcdir=$ac_srcdir;;
29862 *)
29863   case $ac_srcdir in
29864   .) ac_abs_srcdir=$ac_abs_builddir;;
29865   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29866   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29867   esac;;
29868 esac
29869 case $ac_abs_builddir in
29870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29871 *)
29872   case $ac_top_srcdir in
29873   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29874   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29875   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29876   esac;;
29877 esac
29878
29879
29880   case $srcdir in
29881   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29882       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29883   esac
29884
29885   # Try a symlink, then a hard link, then a copy.
29886   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29887     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29888     cp -p $srcdir/$ac_source $ac_dest ||
29889     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29890 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29891    { (exit 1); exit 1; }; }
29892 done
29893 _ACEOF
29894 cat >>$CONFIG_STATUS <<\_ACEOF
29895
29896 #
29897 # CONFIG_COMMANDS section.
29898 #
29899 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29900   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29901   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29902   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29903 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29904          X"$ac_dest" : 'X\(//\)[^/]' \| \
29905          X"$ac_dest" : 'X\(//\)$' \| \
29906          X"$ac_dest" : 'X\(/\)' \| \
29907          .     : '\(.\)' 2>/dev/null ||
29908 echo X"$ac_dest" |
29909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29911           /^X\(\/\/\)$/{ s//\1/; q; }
29912           /^X\(\/\).*/{ s//\1/; q; }
29913           s/.*/./; q'`
29914   { if $as_mkdir_p; then
29915     mkdir -p "$ac_dir"
29916   else
29917     as_dir="$ac_dir"
29918     as_dirs=
29919     while test ! -d "$as_dir"; do
29920       as_dirs="$as_dir $as_dirs"
29921       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29923          X"$as_dir" : 'X\(//\)[^/]' \| \
29924          X"$as_dir" : 'X\(//\)$' \| \
29925          X"$as_dir" : 'X\(/\)' \| \
29926          .     : '\(.\)' 2>/dev/null ||
29927 echo X"$as_dir" |
29928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29930           /^X\(\/\/\)$/{ s//\1/; q; }
29931           /^X\(\/\).*/{ s//\1/; q; }
29932           s/.*/./; q'`
29933     done
29934     test ! -n "$as_dirs" || mkdir $as_dirs
29935   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29937    { (exit 1); exit 1; }; }; }
29938
29939   ac_builddir=.
29940
29941 if test "$ac_dir" != .; then
29942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29943   # A "../" for each directory in $ac_dir_suffix.
29944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29945 else
29946   ac_dir_suffix= ac_top_builddir=
29947 fi
29948
29949 case $srcdir in
29950   .)  # No --srcdir option.  We are building in place.
29951     ac_srcdir=.
29952     if test -z "$ac_top_builddir"; then
29953        ac_top_srcdir=.
29954     else
29955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29956     fi ;;
29957   [\\/]* | ?:[\\/]* )  # Absolute path.
29958     ac_srcdir=$srcdir$ac_dir_suffix;
29959     ac_top_srcdir=$srcdir ;;
29960   *) # Relative path.
29961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29963 esac
29964
29965 # Do not use `cd foo && pwd` to compute absolute paths, because
29966 # the directories may not exist.
29967 case `pwd` in
29968 .) ac_abs_builddir="$ac_dir";;
29969 *)
29970   case "$ac_dir" in
29971   .) ac_abs_builddir=`pwd`;;
29972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29974   esac;;
29975 esac
29976 case $ac_abs_builddir in
29977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29978 *)
29979   case ${ac_top_builddir}. in
29980   .) ac_abs_top_builddir=$ac_abs_builddir;;
29981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29983   esac;;
29984 esac
29985 case $ac_abs_builddir in
29986 .) ac_abs_srcdir=$ac_srcdir;;
29987 *)
29988   case $ac_srcdir in
29989   .) ac_abs_srcdir=$ac_abs_builddir;;
29990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29992   esac;;
29993 esac
29994 case $ac_abs_builddir in
29995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29996 *)
29997   case $ac_top_srcdir in
29998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30001   esac;;
30002 esac
30003
30004
30005   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30006 echo "$as_me: executing $ac_dest commands" >&6;}
30007   case $ac_dest in
30008     default-1 )
30009 # Only add multilib support code if we just rebuilt the top-level
30010 # Makefile.
30011 case " $CONFIG_FILES " in
30012  *" Makefile "*)
30013    ac_file=Makefile . ${multi_basedir}/config-ml.in
30014    ;;
30015 esac ;;
30016     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30017   # Strip MF so we end up with the name of the file.
30018   mf=`echo "$mf" | sed -e 's/:.*$//'`
30019   # Check whether this is an Automake generated Makefile or not.
30020   # We used to match only the files named `Makefile.in', but
30021   # some people rename them; so instead we look at the file content.
30022   # Grep'ing the first line is not enough: some people post-process
30023   # each Makefile.in and add a new line on top of each file to say so.
30024   # So let's grep whole file.
30025   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30026     dirpart=`(dirname "$mf") 2>/dev/null ||
30027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30028          X"$mf" : 'X\(//\)[^/]' \| \
30029          X"$mf" : 'X\(//\)$' \| \
30030          X"$mf" : 'X\(/\)' \| \
30031          .     : '\(.\)' 2>/dev/null ||
30032 echo X"$mf" |
30033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30035           /^X\(\/\/\)$/{ s//\1/; q; }
30036           /^X\(\/\).*/{ s//\1/; q; }
30037           s/.*/./; q'`
30038   else
30039     continue
30040   fi
30041   # Extract the definition of DEPDIR, am__include, and am__quote
30042   # from the Makefile without running `make'.
30043   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30044   test -z "$DEPDIR" && continue
30045   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30046   test -z "am__include" && continue
30047   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30048   # When using ansi2knr, U may be empty or an underscore; expand it
30049   U=`sed -n 's/^U = //p' < "$mf"`
30050   # Find all dependency output files, they are included files with
30051   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30052   # simplest approach to changing $(DEPDIR) to its actual value in the
30053   # expansion.
30054   for file in `sed -n "
30055     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30056        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30057     # Make sure the directory exists.
30058     test -f "$dirpart/$file" && continue
30059     fdir=`(dirname "$file") 2>/dev/null ||
30060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30061          X"$file" : 'X\(//\)[^/]' \| \
30062          X"$file" : 'X\(//\)$' \| \
30063          X"$file" : 'X\(/\)' \| \
30064          .     : '\(.\)' 2>/dev/null ||
30065 echo X"$file" |
30066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30068           /^X\(\/\/\)$/{ s//\1/; q; }
30069           /^X\(\/\).*/{ s//\1/; q; }
30070           s/.*/./; q'`
30071     { if $as_mkdir_p; then
30072     mkdir -p $dirpart/$fdir
30073   else
30074     as_dir=$dirpart/$fdir
30075     as_dirs=
30076     while test ! -d "$as_dir"; do
30077       as_dirs="$as_dir $as_dirs"
30078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30080          X"$as_dir" : 'X\(//\)[^/]' \| \
30081          X"$as_dir" : 'X\(//\)$' \| \
30082          X"$as_dir" : 'X\(/\)' \| \
30083          .     : '\(.\)' 2>/dev/null ||
30084 echo X"$as_dir" |
30085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30087           /^X\(\/\/\)$/{ s//\1/; q; }
30088           /^X\(\/\).*/{ s//\1/; q; }
30089           s/.*/./; q'`
30090     done
30091     test ! -n "$as_dirs" || mkdir $as_dirs
30092   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30094    { (exit 1); exit 1; }; }; }
30095
30096     # echo "creating $dirpart/$file"
30097     echo '# dummy' > "$dirpart/$file"
30098   done
30099 done
30100  ;;
30101     libtool )
30102
30103     # See if we are running on zsh, and set the options which allow our
30104     # commands through without removal of \ escapes.
30105     if test -n "${ZSH_VERSION+set}" ; then
30106       setopt NO_GLOB_SUBST
30107     fi
30108
30109     cfgfile="${ofile}T"
30110     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30111     $RM "$cfgfile"
30112
30113     cat <<_LT_EOF >> "$cfgfile"
30114 #! $SHELL
30115
30116 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30117 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30120 #
30121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30122 # 2006, 2007 Free Software Foundation, Inc.
30123 #
30124 # This file is part of GNU Libtool:
30125 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30126 #
30127 # This program is free software; you can redistribute it and/or modify
30128 # it under the terms of the GNU General Public License as published by
30129 # the Free Software Foundation; either version 2 of the License, or
30130 # (at your option) any later version.
30131 #
30132 # This program is distributed in the hope that it will be useful, but
30133 # WITHOUT ANY WARRANTY; without even the implied warranty of
30134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30135 # General Public License for more details.
30136 #
30137 # You should have received a copy of the GNU General Public License
30138 # along with this program; if not, a copy can be downloaded from
30139 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30140 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30141 # MA 02110-1301, USA.
30142 #
30143 # As a special exception to the GNU General Public License, if you
30144 # distribute this file as part of a program that contains a
30145 # configuration script generated by Autoconf, you may include it under
30146 # the same distribution terms that you use for the rest of that program.
30147
30148
30149 # The names of the tagged configurations supported by this script.
30150 available_tags="CXX GCJ "
30151
30152 # ### BEGIN LIBTOOL CONFIG
30153
30154 # Which release of libtool.m4 was used?
30155 macro_version=$macro_version
30156 macro_revision=$macro_revision
30157
30158 # Whether or not to build shared libraries.
30159 build_libtool_libs=$enable_shared
30160
30161 # Whether or not to build static libraries.
30162 build_old_libs=$enable_static
30163
30164 # What type of objects to build.
30165 pic_mode=$pic_mode
30166
30167 # Whether or not to optimize for fast installation.
30168 fast_install=$enable_fast_install
30169
30170 # The host system.
30171 host_alias=$host_alias
30172 host=$host
30173 host_os=$host_os
30174
30175 # The build system.
30176 build_alias=$build_alias
30177 build=$build
30178 build_os=$build_os
30179
30180 # A sed program that does not truncate output.
30181 SED=$lt_SED
30182
30183 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30184 Xsed="\$SED -e 1s/^X//"
30185
30186 # A grep program that handles long lines.
30187 GREP=$lt_GREP
30188
30189 # An ERE matcher.
30190 EGREP=$lt_EGREP
30191
30192 # A literal string matcher.
30193 FGREP=$lt_FGREP
30194
30195 # A BSD- or MS-compatible name lister.
30196 NM=$lt_NM
30197
30198 # Whether we need soft or hard links.
30199 LN_S=$lt_LN_S
30200
30201 # What is the maximum length of a command?
30202 max_cmd_len=$max_cmd_len
30203
30204 # Object file suffix (normally "o").
30205 objext=$ac_objext
30206
30207 # Executable file suffix (normally "").
30208 exeext=$exeext
30209
30210 # whether the shell understands "unset".
30211 lt_unset=$lt_unset
30212
30213 # turn spaces into newlines.
30214 SP2NL=$lt_lt_SP2NL
30215
30216 # turn newlines into spaces.
30217 NL2SP=$lt_lt_NL2SP
30218
30219 # How to create reloadable object files.
30220 reload_flag=$lt_reload_flag
30221 reload_cmds=$lt_reload_cmds
30222
30223 # Method to check whether dependent libraries are shared objects.
30224 deplibs_check_method=$lt_deplibs_check_method
30225
30226 # Command to use when deplibs_check_method == "file_magic".
30227 file_magic_cmd=$lt_file_magic_cmd
30228
30229 # The archiver.
30230 AR=$lt_AR
30231 AR_FLAGS=$lt_AR_FLAGS
30232
30233 # A symbol stripping program.
30234 STRIP=$lt_STRIP
30235
30236 # Commands used to install an old-style archive.
30237 RANLIB=$lt_RANLIB
30238 old_postinstall_cmds=$lt_old_postinstall_cmds
30239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30240
30241 # A C compiler.
30242 LTCC=$lt_CC
30243
30244 # LTCC compiler flags.
30245 LTCFLAGS=$lt_CFLAGS
30246
30247 # Take the output of nm and produce a listing of raw symbols and C names.
30248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30249
30250 # Transform the output of nm in a proper C declaration.
30251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30252
30253 # Transform the output of nm in a C name address pair.
30254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30255
30256 # The name of the directory that contains temporary libtool files.
30257 objdir=$objdir
30258
30259 # Shell to use when invoking shell scripts.
30260 SHELL=$lt_SHELL
30261
30262 # An echo program that does not interpret backslashes.
30263 ECHO=$lt_ECHO
30264
30265 # Used to examine libraries when file_magic_cmd begins with "file".
30266 MAGIC_CMD=$MAGIC_CMD
30267
30268 # Must we lock files when doing compilation?
30269 need_locks=$lt_need_locks
30270
30271 # Old archive suffix (normally "a").
30272 libext=$libext
30273
30274 # Shared library suffix (normally ".so").
30275 shrext_cmds=$lt_shrext_cmds
30276
30277 # The commands to extract the exported symbol list from a shared archive.
30278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30279
30280 # Variables whose values should be saved in libtool wrapper scripts and
30281 # restored at link time.
30282 variables_saved_for_relink=$lt_variables_saved_for_relink
30283
30284 # Do we need the "lib" prefix for modules?
30285 need_lib_prefix=$need_lib_prefix
30286
30287 # Do we need a version for libraries?
30288 need_version=$need_version
30289
30290 # Library versioning type.
30291 version_type=$version_type
30292
30293 # Shared library runtime path variable.
30294 runpath_var=$runpath_var
30295
30296 # Shared library path variable.
30297 shlibpath_var=$shlibpath_var
30298
30299 # Is shlibpath searched before the hard-coded library search path?
30300 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30301
30302 # Format of library name prefix.
30303 libname_spec=$lt_libname_spec
30304
30305 # List of archive names.  First name is the real one, the rest are links.
30306 # The last name is the one that the linker finds with -lNAME
30307 library_names_spec=$lt_library_names_spec
30308
30309 # The coded name of the library, if different from the real name.
30310 soname_spec=$lt_soname_spec
30311
30312 # Command to use after installation of a shared archive.
30313 postinstall_cmds=$lt_postinstall_cmds
30314
30315 # Command to use after uninstallation of a shared archive.
30316 postuninstall_cmds=$lt_postuninstall_cmds
30317
30318 # Commands used to finish a libtool library installation in a directory.
30319 finish_cmds=$lt_finish_cmds
30320
30321 # As "finish_cmds", except a single script fragment to be evaled but
30322 # not shown.
30323 finish_eval=$lt_finish_eval
30324
30325 # Whether we should hardcode library paths into libraries.
30326 hardcode_into_libs=$hardcode_into_libs
30327
30328 # Compile-time system search path for libraries.
30329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30330
30331 # Run-time system search path for libraries.
30332 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30333
30334 # Whether dlopen is supported.
30335 dlopen_support=$enable_dlopen
30336
30337 # Whether dlopen of programs is supported.
30338 dlopen_self=$enable_dlopen_self
30339
30340 # Whether dlopen of statically linked programs is supported.
30341 dlopen_self_static=$enable_dlopen_self_static
30342
30343 # Commands to strip libraries.
30344 old_striplib=$lt_old_striplib
30345 striplib=$lt_striplib
30346
30347
30348 # The linker used to build libraries.
30349 LD=$lt_LD
30350
30351 # Commands used to build an old-style archive.
30352 old_archive_cmds=$lt_old_archive_cmds
30353
30354 # A language specific compiler.
30355 CC=$lt_compiler
30356
30357 # Is the compiler the GNU compiler?
30358 with_gcc=$GCC
30359
30360 # Compiler flag to turn off builtin functions.
30361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30362
30363 # How to pass a linker flag through the compiler.
30364 wl=$lt_lt_prog_compiler_wl
30365
30366 # Additional compiler flags for building library objects.
30367 pic_flag=$lt_lt_prog_compiler_pic
30368
30369 # Compiler flag to prevent dynamic linking.
30370 link_static_flag=$lt_lt_prog_compiler_static
30371
30372 # Does compiler simultaneously support -c and -o options?
30373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30374
30375 # Whether or not to add -lc for building shared libraries.
30376 build_libtool_need_lc=$archive_cmds_need_lc
30377
30378 # Whether or not to disallow shared libs when runtime libs are static.
30379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30380
30381 # Compiler flag to allow reflexive dlopens.
30382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30383
30384 # Compiler flag to generate shared objects directly from archives.
30385 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30386
30387 # Whether the compiler copes with passing no objects directly.
30388 compiler_needs_object=$lt_compiler_needs_object
30389
30390 # Create an old-style archive from a shared archive.
30391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30392
30393 # Create a temporary old-style archive to link instead of a shared archive.
30394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30395
30396 # Commands used to build a shared archive.
30397 archive_cmds=$lt_archive_cmds
30398 archive_expsym_cmds=$lt_archive_expsym_cmds
30399
30400 # Commands used to build a loadable module if different from building
30401 # a shared archive.
30402 module_cmds=$lt_module_cmds
30403 module_expsym_cmds=$lt_module_expsym_cmds
30404
30405 # Whether we are building with GNU ld or not.
30406 with_gnu_ld=$lt_with_gnu_ld
30407
30408 # Flag that allows shared libraries with undefined symbols to be built.
30409 allow_undefined_flag=$lt_allow_undefined_flag
30410
30411 # Flag that enforces no undefined symbols.
30412 no_undefined_flag=$lt_no_undefined_flag
30413
30414 # Flag to hardcode \$libdir into a binary during linking.
30415 # This must work even if \$libdir does not exist
30416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30417
30418 # If ld is used when linking, flag to hardcode \$libdir into a binary
30419 # during linking.  This must work even if \$libdir does not exist.
30420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30421
30422 # Whether we need a single "-rpath" flag with a separated argument.
30423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30424
30425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30426 # DIR into the resulting binary.
30427 hardcode_direct=$hardcode_direct
30428
30429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30430 # DIR into the resulting binary and the resulting library dependency is
30431 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30432 # library is relocated.
30433 hardcode_direct_absolute=$hardcode_direct_absolute
30434
30435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30436 # into the resulting binary.
30437 hardcode_minus_L=$hardcode_minus_L
30438
30439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30440 # into the resulting binary.
30441 hardcode_shlibpath_var=$hardcode_shlibpath_var
30442
30443 # Set to "yes" if building a shared library automatically hardcodes DIR
30444 # into the library and all subsequent libraries and executables linked
30445 # against it.
30446 hardcode_automatic=$hardcode_automatic
30447
30448 # Set to yes if linker adds runtime paths of dependent libraries
30449 # to runtime path list.
30450 inherit_rpath=$inherit_rpath
30451
30452 # Whether libtool must link a program against all its dependency libraries.
30453 link_all_deplibs=$link_all_deplibs
30454
30455 # Fix the shell variable \$srcfile for the compiler.
30456 fix_srcfile_path=$lt_fix_srcfile_path
30457
30458 # Set to "yes" if exported symbols are required.
30459 always_export_symbols=$always_export_symbols
30460
30461 # The commands to list exported symbols.
30462 export_symbols_cmds=$lt_export_symbols_cmds
30463
30464 # Symbols that should not be listed in the preloaded symbols.
30465 exclude_expsyms=$lt_exclude_expsyms
30466
30467 # Symbols that must always be exported.
30468 include_expsyms=$lt_include_expsyms
30469
30470 # Commands necessary for linking programs (against libraries) with templates.
30471 prelink_cmds=$lt_prelink_cmds
30472
30473 # Specify filename containing input files.
30474 file_list_spec=$lt_file_list_spec
30475
30476 # How to hardcode a shared library path into an executable.
30477 hardcode_action=$hardcode_action
30478
30479 # Dependencies to place before and after the objects being linked to
30480 # create a shared library.
30481 predep_objects=$lt_predep_objects
30482 postdep_objects=$lt_postdep_objects
30483 predeps=$lt_predeps
30484 postdeps=$lt_postdeps
30485
30486 # The library search path used internally by the compiler when linking
30487 # a shared library.
30488 compiler_lib_search_path=$lt_compiler_lib_search_path
30489
30490 # ### END LIBTOOL CONFIG
30491
30492 _LT_EOF
30493
30494   case $host_os in
30495   aix3*)
30496     cat <<\_LT_EOF >> "$cfgfile"
30497 # AIX sometimes has problems with the GCC collect2 program.  For some
30498 # reason, if we set the COLLECT_NAMES environment variable, the problems
30499 # vanish in a puff of smoke.
30500 if test "X${COLLECT_NAMES+set}" != Xset; then
30501   COLLECT_NAMES=
30502   export COLLECT_NAMES
30503 fi
30504 _LT_EOF
30505     ;;
30506   esac
30507
30508
30509 ltmain="$ac_aux_dir/ltmain.sh"
30510
30511
30512   # We use sed instead of cat because bash on DJGPP gets confused if
30513   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30514   # text mode, it properly converts lines to CR/LF.  This bash problem
30515   # is reportedly fixed, but why not run on old versions too?
30516   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30517     || (rm -f "$cfgfile"; exit 1)
30518
30519   case $xsi_shell in
30520   yes)
30521     cat << \_LT_EOF >> "$cfgfile"
30522 # func_dirname file append nondir_replacement
30523 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30524 # otherwise set result to NONDIR_REPLACEMENT.
30525 func_dirname ()
30526 {
30527   case ${1} in
30528     */*) func_dirname_result="${1%/*}${2}" ;;
30529     *  ) func_dirname_result="${3}" ;;
30530   esac
30531 }
30532
30533 # func_basename file
30534 func_basename ()
30535 {
30536   func_basename_result="${1##*/}"
30537 }
30538
30539 # func_stripname prefix suffix name
30540 # strip PREFIX and SUFFIX off of NAME.
30541 # PREFIX and SUFFIX must not contain globbing or regex special
30542 # characters, hashes, percent signs, but SUFFIX may contain a leading
30543 # dot (in which case that matches only a dot).
30544 func_stripname ()
30545 {
30546   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30547   # positional parameters, so assign one to ordinary parameter first.
30548   func_stripname_result=${3}
30549   func_stripname_result=${func_stripname_result#"${1}"}
30550   func_stripname_result=${func_stripname_result%"${2}"}
30551 }
30552
30553 # func_opt_split
30554 func_opt_split ()
30555 {
30556   func_opt_split_opt=${1%%=*}
30557   func_opt_split_arg=${1#*=}
30558 }
30559
30560 # func_lo2o object
30561 func_lo2o ()
30562 {
30563   case ${1} in
30564     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30565     *)    func_lo2o_result=${1} ;;
30566   esac
30567 }
30568 _LT_EOF
30569     ;;
30570   *) # Bourne compatible functions.
30571     cat << \_LT_EOF >> "$cfgfile"
30572 # func_dirname file append nondir_replacement
30573 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30574 # otherwise set result to NONDIR_REPLACEMENT.
30575 func_dirname ()
30576 {
30577   # Extract subdirectory from the argument.
30578   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30579   if test "X$func_dirname_result" = "X${1}"; then
30580     func_dirname_result="${3}"
30581   else
30582     func_dirname_result="$func_dirname_result${2}"
30583   fi
30584 }
30585
30586 # func_basename file
30587 func_basename ()
30588 {
30589   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30590 }
30591
30592 # func_stripname prefix suffix name
30593 # strip PREFIX and SUFFIX off of NAME.
30594 # PREFIX and SUFFIX must not contain globbing or regex special
30595 # characters, hashes, percent signs, but SUFFIX may contain a leading
30596 # dot (in which case that matches only a dot).
30597 # func_strip_suffix prefix name
30598 func_stripname ()
30599 {
30600   case ${2} in
30601     .*) func_stripname_result=`$ECHO "X${3}" \
30602            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30603     *)  func_stripname_result=`$ECHO "X${3}" \
30604            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30605   esac
30606 }
30607
30608 # sed scripts:
30609 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30610 my_sed_long_arg='1s/^-[^=]*=//'
30611
30612 # func_opt_split
30613 func_opt_split ()
30614 {
30615   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30616   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30617 }
30618
30619 # func_lo2o object
30620 func_lo2o ()
30621 {
30622   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30623 }
30624 _LT_EOF
30625 esac
30626
30627 case $lt_shell_append in
30628   yes)
30629     cat << \_LT_EOF >> "$cfgfile"
30630
30631 # func_append var value
30632 # Append VALUE to the end of shell variable VAR.
30633 func_append ()
30634 {
30635   eval "$1+=\$2"
30636 }
30637 _LT_EOF
30638     ;;
30639   *)
30640     cat << \_LT_EOF >> "$cfgfile"
30641
30642 # func_append var value
30643 # Append VALUE to the end of shell variable VAR.
30644 func_append ()
30645 {
30646   eval "$1=\$$1\$2"
30647 }
30648 _LT_EOF
30649     ;;
30650   esac
30651
30652
30653   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30654     || (rm -f "$cfgfile"; exit 1)
30655
30656   mv -f "$cfgfile" "$ofile" ||
30657     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30658   chmod +x "$ofile"
30659
30660
30661     cat <<_LT_EOF >> "$ofile"
30662
30663 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30664
30665 # The linker used to build libraries.
30666 LD=$lt_LD_CXX
30667
30668 # Commands used to build an old-style archive.
30669 old_archive_cmds=$lt_old_archive_cmds_CXX
30670
30671 # A language specific compiler.
30672 CC=$lt_compiler_CXX
30673
30674 # Is the compiler the GNU compiler?
30675 with_gcc=$GCC_CXX
30676
30677 # Compiler flag to turn off builtin functions.
30678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30679
30680 # How to pass a linker flag through the compiler.
30681 wl=$lt_lt_prog_compiler_wl_CXX
30682
30683 # Additional compiler flags for building library objects.
30684 pic_flag=$lt_lt_prog_compiler_pic_CXX
30685
30686 # Compiler flag to prevent dynamic linking.
30687 link_static_flag=$lt_lt_prog_compiler_static_CXX
30688
30689 # Does compiler simultaneously support -c and -o options?
30690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30691
30692 # Whether or not to add -lc for building shared libraries.
30693 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30694
30695 # Whether or not to disallow shared libs when runtime libs are static.
30696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30697
30698 # Compiler flag to allow reflexive dlopens.
30699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30700
30701 # Compiler flag to generate shared objects directly from archives.
30702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30703
30704 # Whether the compiler copes with passing no objects directly.
30705 compiler_needs_object=$lt_compiler_needs_object_CXX
30706
30707 # Create an old-style archive from a shared archive.
30708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30709
30710 # Create a temporary old-style archive to link instead of a shared archive.
30711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30712
30713 # Commands used to build a shared archive.
30714 archive_cmds=$lt_archive_cmds_CXX
30715 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30716
30717 # Commands used to build a loadable module if different from building
30718 # a shared archive.
30719 module_cmds=$lt_module_cmds_CXX
30720 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30721
30722 # Whether we are building with GNU ld or not.
30723 with_gnu_ld=$lt_with_gnu_ld_CXX
30724
30725 # Flag that allows shared libraries with undefined symbols to be built.
30726 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30727
30728 # Flag that enforces no undefined symbols.
30729 no_undefined_flag=$lt_no_undefined_flag_CXX
30730
30731 # Flag to hardcode \$libdir into a binary during linking.
30732 # This must work even if \$libdir does not exist
30733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30734
30735 # If ld is used when linking, flag to hardcode \$libdir into a binary
30736 # during linking.  This must work even if \$libdir does not exist.
30737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30738
30739 # Whether we need a single "-rpath" flag with a separated argument.
30740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30741
30742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30743 # DIR into the resulting binary.
30744 hardcode_direct=$hardcode_direct_CXX
30745
30746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30747 # DIR into the resulting binary and the resulting library dependency is
30748 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30749 # library is relocated.
30750 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30751
30752 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30753 # into the resulting binary.
30754 hardcode_minus_L=$hardcode_minus_L_CXX
30755
30756 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30757 # into the resulting binary.
30758 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30759
30760 # Set to "yes" if building a shared library automatically hardcodes DIR
30761 # into the library and all subsequent libraries and executables linked
30762 # against it.
30763 hardcode_automatic=$hardcode_automatic_CXX
30764
30765 # Set to yes if linker adds runtime paths of dependent libraries
30766 # to runtime path list.
30767 inherit_rpath=$inherit_rpath_CXX
30768
30769 # Whether libtool must link a program against all its dependency libraries.
30770 link_all_deplibs=$link_all_deplibs_CXX
30771
30772 # Fix the shell variable \$srcfile for the compiler.
30773 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30774
30775 # Set to "yes" if exported symbols are required.
30776 always_export_symbols=$always_export_symbols_CXX
30777
30778 # The commands to list exported symbols.
30779 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30780
30781 # Symbols that should not be listed in the preloaded symbols.
30782 exclude_expsyms=$lt_exclude_expsyms_CXX
30783
30784 # Symbols that must always be exported.
30785 include_expsyms=$lt_include_expsyms_CXX
30786
30787 # Commands necessary for linking programs (against libraries) with templates.
30788 prelink_cmds=$lt_prelink_cmds_CXX
30789
30790 # Specify filename containing input files.
30791 file_list_spec=$lt_file_list_spec_CXX
30792
30793 # How to hardcode a shared library path into an executable.
30794 hardcode_action=$hardcode_action_CXX
30795
30796 # Dependencies to place before and after the objects being linked to
30797 # create a shared library.
30798 predep_objects=$lt_predep_objects_CXX
30799 postdep_objects=$lt_postdep_objects_CXX
30800 predeps=$lt_predeps_CXX
30801 postdeps=$lt_postdeps_CXX
30802
30803 # The library search path used internally by the compiler when linking
30804 # a shared library.
30805 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30806
30807 # ### END LIBTOOL TAG CONFIG: CXX
30808 _LT_EOF
30809
30810
30811     cat <<_LT_EOF >> "$ofile"
30812
30813 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30814
30815 # The linker used to build libraries.
30816 LD=$lt_LD_GCJ
30817
30818 # Commands used to build an old-style archive.
30819 old_archive_cmds=$lt_old_archive_cmds_GCJ
30820
30821 # A language specific compiler.
30822 CC=$lt_compiler_GCJ
30823
30824 # Is the compiler the GNU compiler?
30825 with_gcc=$GCC_GCJ
30826
30827 # Compiler flag to turn off builtin functions.
30828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30829
30830 # How to pass a linker flag through the compiler.
30831 wl=$lt_lt_prog_compiler_wl_GCJ
30832
30833 # Additional compiler flags for building library objects.
30834 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30835
30836 # Compiler flag to prevent dynamic linking.
30837 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30838
30839 # Does compiler simultaneously support -c and -o options?
30840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30841
30842 # Whether or not to add -lc for building shared libraries.
30843 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30844
30845 # Whether or not to disallow shared libs when runtime libs are static.
30846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30847
30848 # Compiler flag to allow reflexive dlopens.
30849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30850
30851 # Compiler flag to generate shared objects directly from archives.
30852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30853
30854 # Whether the compiler copes with passing no objects directly.
30855 compiler_needs_object=$lt_compiler_needs_object_GCJ
30856
30857 # Create an old-style archive from a shared archive.
30858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30859
30860 # Create a temporary old-style archive to link instead of a shared archive.
30861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30862
30863 # Commands used to build a shared archive.
30864 archive_cmds=$lt_archive_cmds_GCJ
30865 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30866
30867 # Commands used to build a loadable module if different from building
30868 # a shared archive.
30869 module_cmds=$lt_module_cmds_GCJ
30870 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30871
30872 # Whether we are building with GNU ld or not.
30873 with_gnu_ld=$lt_with_gnu_ld_GCJ
30874
30875 # Flag that allows shared libraries with undefined symbols to be built.
30876 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30877
30878 # Flag that enforces no undefined symbols.
30879 no_undefined_flag=$lt_no_undefined_flag_GCJ
30880
30881 # Flag to hardcode \$libdir into a binary during linking.
30882 # This must work even if \$libdir does not exist
30883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30884
30885 # If ld is used when linking, flag to hardcode \$libdir into a binary
30886 # during linking.  This must work even if \$libdir does not exist.
30887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30888
30889 # Whether we need a single "-rpath" flag with a separated argument.
30890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30891
30892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30893 # DIR into the resulting binary.
30894 hardcode_direct=$hardcode_direct_GCJ
30895
30896 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30897 # DIR into the resulting binary and the resulting library dependency is
30898 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30899 # library is relocated.
30900 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30901
30902 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30903 # into the resulting binary.
30904 hardcode_minus_L=$hardcode_minus_L_GCJ
30905
30906 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30907 # into the resulting binary.
30908 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30909
30910 # Set to "yes" if building a shared library automatically hardcodes DIR
30911 # into the library and all subsequent libraries and executables linked
30912 # against it.
30913 hardcode_automatic=$hardcode_automatic_GCJ
30914
30915 # Set to yes if linker adds runtime paths of dependent libraries
30916 # to runtime path list.
30917 inherit_rpath=$inherit_rpath_GCJ
30918
30919 # Whether libtool must link a program against all its dependency libraries.
30920 link_all_deplibs=$link_all_deplibs_GCJ
30921
30922 # Fix the shell variable \$srcfile for the compiler.
30923 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
30924
30925 # Set to "yes" if exported symbols are required.
30926 always_export_symbols=$always_export_symbols_GCJ
30927
30928 # The commands to list exported symbols.
30929 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30930
30931 # Symbols that should not be listed in the preloaded symbols.
30932 exclude_expsyms=$lt_exclude_expsyms_GCJ
30933
30934 # Symbols that must always be exported.
30935 include_expsyms=$lt_include_expsyms_GCJ
30936
30937 # Commands necessary for linking programs (against libraries) with templates.
30938 prelink_cmds=$lt_prelink_cmds_GCJ
30939
30940 # Specify filename containing input files.
30941 file_list_spec=$lt_file_list_spec_GCJ
30942
30943 # How to hardcode a shared library path into an executable.
30944 hardcode_action=$hardcode_action_GCJ
30945
30946 # Dependencies to place before and after the objects being linked to
30947 # create a shared library.
30948 predep_objects=$lt_predep_objects_GCJ
30949 postdep_objects=$lt_postdep_objects_GCJ
30950 predeps=$lt_predeps_GCJ
30951 postdeps=$lt_postdeps_GCJ
30952
30953 # The library search path used internally by the compiler when linking
30954 # a shared library.
30955 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
30956
30957 # ### END LIBTOOL TAG CONFIG: GCJ
30958 _LT_EOF
30959
30960  ;;
30961     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
30962 case " $CONFIG_FILES " in
30963  *" Makefile "*)
30964    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
30965    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
30966    ;;
30967 esac
30968 for ac_multi_file in $CONFIG_FILES; do
30969   case $ac_multi_file in
30970   */Makefile)
30971     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
30972   esac
30973 done
30974  ;;
30975   esac
30976 done
30977 _ACEOF
30978
30979 cat >>$CONFIG_STATUS <<\_ACEOF
30980
30981 { (exit 0); exit 0; }
30982 _ACEOF
30983 chmod +x $CONFIG_STATUS
30984 ac_clean_files=$ac_clean_files_save
30985
30986
30987 # configure is writing to config.log, and then calls config.status.
30988 # config.status does its own redirection, appending to config.log.
30989 # Unfortunately, on DOS this fails, as config.log is still kept open
30990 # by configure, so config.status won't be able to write to it; its
30991 # output is simply discarded.  So we exec the FD to /dev/null,
30992 # effectively closing config.log, so it can be properly (re)opened and
30993 # appended to by config.status.  When coming back to configure, we
30994 # need to make the FD available again.
30995 if test "$no_create" != yes; then
30996   ac_cs_success=:
30997   ac_config_status_args=
30998   test "$silent" = yes &&
30999     ac_config_status_args="$ac_config_status_args --quiet"
31000   exec 5>/dev/null
31001   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31002   exec 5>>config.log
31003   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31004   # would make configure fail if this is the last instruction.
31005   $ac_cs_success || { (exit 1); exit 1; }
31006 fi
31007
31008 #
31009 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31010 #
31011 if test "$no_recursion" != yes; then
31012
31013   # Remove --cache-file and --srcdir arguments so they do not pile up.
31014   ac_sub_configure_args=
31015   ac_prev=
31016   eval "set x $ac_configure_args"
31017   shift
31018   for ac_arg
31019   do
31020     if test -n "$ac_prev"; then
31021       ac_prev=
31022       continue
31023     fi
31024     case $ac_arg in
31025     -cache-file | --cache-file | --cache-fil | --cache-fi \
31026     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31027       ac_prev=cache_file ;;
31028     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31029     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31030     | --c=*)
31031       ;;
31032     --config-cache | -C)
31033       ;;
31034     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31035       ac_prev=srcdir ;;
31036     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31037       ;;
31038     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31039       ac_prev=prefix ;;
31040     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31041       ;;
31042     *)
31043       case $ac_arg in
31044       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31045       esac
31046       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31047     esac
31048   done
31049
31050   # Always prepend --prefix to ensure using the same prefix
31051   # in subdir configurations.
31052   ac_arg="--prefix=$prefix"
31053   case $ac_arg in
31054   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31055   esac
31056   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31057
31058   ac_popdir=`pwd`
31059   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31060
31061     # Do not complain, so a configure script can configure whichever
31062     # parts of a large source tree are present.
31063     test -d "$srcdir/$ac_dir" || continue
31064
31065     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31066 echo "$as_me: configuring in $ac_dir" >&6;}
31067     { if $as_mkdir_p; then
31068     mkdir -p "$ac_dir"
31069   else
31070     as_dir="$ac_dir"
31071     as_dirs=
31072     while test ! -d "$as_dir"; do
31073       as_dirs="$as_dir $as_dirs"
31074       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31076          X"$as_dir" : 'X\(//\)[^/]' \| \
31077          X"$as_dir" : 'X\(//\)$' \| \
31078          X"$as_dir" : 'X\(/\)' \| \
31079          .     : '\(.\)' 2>/dev/null ||
31080 echo X"$as_dir" |
31081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31082           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31083           /^X\(\/\/\)$/{ s//\1/; q; }
31084           /^X\(\/\).*/{ s//\1/; q; }
31085           s/.*/./; q'`
31086     done
31087     test ! -n "$as_dirs" || mkdir $as_dirs
31088   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31090    { (exit 1); exit 1; }; }; }
31091
31092     ac_builddir=.
31093
31094 if test "$ac_dir" != .; then
31095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31096   # A "../" for each directory in $ac_dir_suffix.
31097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31098 else
31099   ac_dir_suffix= ac_top_builddir=
31100 fi
31101
31102 case $srcdir in
31103   .)  # No --srcdir option.  We are building in place.
31104     ac_srcdir=.
31105     if test -z "$ac_top_builddir"; then
31106        ac_top_srcdir=.
31107     else
31108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31109     fi ;;
31110   [\\/]* | ?:[\\/]* )  # Absolute path.
31111     ac_srcdir=$srcdir$ac_dir_suffix;
31112     ac_top_srcdir=$srcdir ;;
31113   *) # Relative path.
31114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31116 esac
31117
31118 # Do not use `cd foo && pwd` to compute absolute paths, because
31119 # the directories may not exist.
31120 case `pwd` in
31121 .) ac_abs_builddir="$ac_dir";;
31122 *)
31123   case "$ac_dir" in
31124   .) ac_abs_builddir=`pwd`;;
31125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31127   esac;;
31128 esac
31129 case $ac_abs_builddir in
31130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31131 *)
31132   case ${ac_top_builddir}. in
31133   .) ac_abs_top_builddir=$ac_abs_builddir;;
31134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31136   esac;;
31137 esac
31138 case $ac_abs_builddir in
31139 .) ac_abs_srcdir=$ac_srcdir;;
31140 *)
31141   case $ac_srcdir in
31142   .) ac_abs_srcdir=$ac_abs_builddir;;
31143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31145   esac;;
31146 esac
31147 case $ac_abs_builddir in
31148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31149 *)
31150   case $ac_top_srcdir in
31151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31154   esac;;
31155 esac
31156
31157
31158     cd "$ac_dir"
31159
31160     # Check for guested configure; otherwise get Cygnus style configure.
31161     if test -f "$ac_srcdir/configure.gnu"; then
31162       ac_sub_configure=$ac_srcdir/configure.gnu
31163     elif test -f "$ac_srcdir/configure"; then
31164       ac_sub_configure=$ac_srcdir/configure
31165     elif test -f "$ac_srcdir/configure.in"; then
31166       # This should be Cygnus configure.
31167       ac_sub_configure=$ac_aux_dir/configure
31168     else
31169       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31171       ac_sub_configure=
31172     fi
31173
31174     # The recursion is here.
31175     if test -n "$ac_sub_configure"; then
31176       # Make the cache file name correct relative to the subdirectory.
31177       case $cache_file in
31178       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31179       *) # Relative path.
31180         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31181       esac
31182
31183       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31184 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31185       # The eval makes quoting arguments work.
31186       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31187            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31188         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31189 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31190    { (exit 1); exit 1; }; }
31191     fi
31192
31193     cd "$ac_popdir"
31194   done
31195 fi
31196