OSDN Git Service

PR libgcj/33764
[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 ANTLR_JAR CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE 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 ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC 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 INSTALL_BINARIES_TRUE INSTALL_BINARIES_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gcjsubdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here python_mod_dir python_mod_dir_expanded MAKE INSTALL_AOT_RPM_TRUE INSTALL_AOT_RPM_FALSE CREATE_JAVA_HOME_TRUE CREATE_JAVA_HOME_FALSE gcc_suffix JAVA_VERSION BUILD_VERSION JVM_ROOT_DIR JVM_JAR_ROOT_DIR JVM_JAR_DIR JRE_DIR SDK_DIR JRE_LNK SDK_LNK SDK_BIN_DIR SDK_LIB_DIR SDK_INCLUDE_DIR JRE_BIN_DIR JRE_LIB_DIR GCJ_BIN_DIR CPU OS LIBDIR LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464 ac_pwd=`pwd`
465
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
503
504 ac_prev=
505 for ac_option
506 do
507   # If the previous option needs an argument, assign it.
508   if test -n "$ac_prev"; then
509     eval "$ac_prev=\$ac_option"
510     ac_prev=
511     continue
512   fi
513
514   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
516   # Accept the important Cygnus configure options, so we can diagnose typos.
517
518   case $ac_option in
519
520   -bindir | --bindir | --bindi | --bind | --bin | --bi)
521     ac_prev=bindir ;;
522   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523     bindir=$ac_optarg ;;
524
525   -build | --build | --buil | --bui | --bu)
526     ac_prev=build_alias ;;
527   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528     build_alias=$ac_optarg ;;
529
530   -cache-file | --cache-file | --cache-fil | --cache-fi \
531   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532     ac_prev=cache_file ;;
533   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535     cache_file=$ac_optarg ;;
536
537   --config-cache | -C)
538     cache_file=config.cache ;;
539
540   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541     ac_prev=datadir ;;
542   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543   | --da=*)
544     datadir=$ac_optarg ;;
545
546   -disable-* | --disable-*)
547     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548     # Reject names that are not valid shell variable names.
549     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551    { (exit 1); exit 1; }; }
552     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553     eval "enable_$ac_feature=no" ;;
554
555   -enable-* | --enable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     case $ac_option in
563       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564       *) ac_optarg=yes ;;
565     esac
566     eval "enable_$ac_feature='$ac_optarg'" ;;
567
568   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570   | --exec | --exe | --ex)
571     ac_prev=exec_prefix ;;
572   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574   | --exec=* | --exe=* | --ex=*)
575     exec_prefix=$ac_optarg ;;
576
577   -gas | --gas | --ga | --g)
578     # Obsolete; use --with-gas.
579     with_gas=yes ;;
580
581   -help | --help | --hel | --he | -h)
582     ac_init_help=long ;;
583   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584     ac_init_help=recursive ;;
585   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586     ac_init_help=short ;;
587
588   -host | --host | --hos | --ho)
589     ac_prev=host_alias ;;
590   -host=* | --host=* | --hos=* | --ho=*)
591     host_alias=$ac_optarg ;;
592
593   -includedir | --includedir | --includedi | --included | --include \
594   | --includ | --inclu | --incl | --inc)
595     ac_prev=includedir ;;
596   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597   | --includ=* | --inclu=* | --incl=* | --inc=*)
598     includedir=$ac_optarg ;;
599
600   -infodir | --infodir | --infodi | --infod | --info | --inf)
601     ac_prev=infodir ;;
602   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603     infodir=$ac_optarg ;;
604
605   -libdir | --libdir | --libdi | --libd)
606     ac_prev=libdir ;;
607   -libdir=* | --libdir=* | --libdi=* | --libd=*)
608     libdir=$ac_optarg ;;
609
610   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611   | --libexe | --libex | --libe)
612     ac_prev=libexecdir ;;
613   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614   | --libexe=* | --libex=* | --libe=*)
615     libexecdir=$ac_optarg ;;
616
617   -localstatedir | --localstatedir | --localstatedi | --localstated \
618   | --localstate | --localstat | --localsta | --localst \
619   | --locals | --local | --loca | --loc | --lo)
620     ac_prev=localstatedir ;;
621   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624     localstatedir=$ac_optarg ;;
625
626   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627     ac_prev=mandir ;;
628   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629     mandir=$ac_optarg ;;
630
631   -nfp | --nfp | --nf)
632     # Obsolete; use --without-fp.
633     with_fp=no ;;
634
635   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636   | --no-cr | --no-c | -n)
637     no_create=yes ;;
638
639   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641     no_recursion=yes ;;
642
643   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645   | --oldin | --oldi | --old | --ol | --o)
646     ac_prev=oldincludedir ;;
647   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650     oldincludedir=$ac_optarg ;;
651
652   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653     ac_prev=prefix ;;
654   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655     prefix=$ac_optarg ;;
656
657   -program-prefix | --program-prefix | --program-prefi | --program-pref \
658   | --program-pre | --program-pr | --program-p)
659     ac_prev=program_prefix ;;
660   -program-prefix=* | --program-prefix=* | --program-prefi=* \
661   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662     program_prefix=$ac_optarg ;;
663
664   -program-suffix | --program-suffix | --program-suffi | --program-suff \
665   | --program-suf | --program-su | --program-s)
666     ac_prev=program_suffix ;;
667   -program-suffix=* | --program-suffix=* | --program-suffi=* \
668   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669     program_suffix=$ac_optarg ;;
670
671   -program-transform-name | --program-transform-name \
672   | --program-transform-nam | --program-transform-na \
673   | --program-transform-n | --program-transform- \
674   | --program-transform | --program-transfor \
675   | --program-transfo | --program-transf \
676   | --program-trans | --program-tran \
677   | --progr-tra | --program-tr | --program-t)
678     ac_prev=program_transform_name ;;
679   -program-transform-name=* | --program-transform-name=* \
680   | --program-transform-nam=* | --program-transform-na=* \
681   | --program-transform-n=* | --program-transform-=* \
682   | --program-transform=* | --program-transfor=* \
683   | --program-transfo=* | --program-transf=* \
684   | --program-trans=* | --program-tran=* \
685   | --progr-tra=* | --program-tr=* | --program-t=*)
686     program_transform_name=$ac_optarg ;;
687
688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689   | -silent | --silent | --silen | --sile | --sil)
690     silent=yes ;;
691
692   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693     ac_prev=sbindir ;;
694   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695   | --sbi=* | --sb=*)
696     sbindir=$ac_optarg ;;
697
698   -sharedstatedir | --sharedstatedir | --sharedstatedi \
699   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700   | --sharedst | --shareds | --shared | --share | --shar \
701   | --sha | --sh)
702     ac_prev=sharedstatedir ;;
703   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706   | --sha=* | --sh=*)
707     sharedstatedir=$ac_optarg ;;
708
709   -site | --site | --sit)
710     ac_prev=site ;;
711   -site=* | --site=* | --sit=*)
712     site=$ac_optarg ;;
713
714   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715     ac_prev=srcdir ;;
716   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717     srcdir=$ac_optarg ;;
718
719   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720   | --syscon | --sysco | --sysc | --sys | --sy)
721     ac_prev=sysconfdir ;;
722   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724     sysconfdir=$ac_optarg ;;
725
726   -target | --target | --targe | --targ | --tar | --ta | --t)
727     ac_prev=target_alias ;;
728   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729     target_alias=$ac_optarg ;;
730
731   -v | -verbose | --verbose | --verbos | --verbo | --verb)
732     verbose=yes ;;
733
734   -version | --version | --versio | --versi | --vers | -V)
735     ac_init_version=: ;;
736
737   -with-* | --with-*)
738     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739     # Reject names that are not valid shell variable names.
740     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741       { echo "$as_me: error: invalid package name: $ac_package" >&2
742    { (exit 1); exit 1; }; }
743     ac_package=`echo $ac_package| sed 's/-/_/g'`
744     case $ac_option in
745       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746       *) ac_optarg=yes ;;
747     esac
748     eval "with_$ac_package='$ac_optarg'" ;;
749
750   -without-* | --without-*)
751     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package | sed 's/-/_/g'`
757     eval "with_$ac_package=no" ;;
758
759   --x)
760     # Obsolete; use --with-x.
761     with_x=yes ;;
762
763   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764   | --x-incl | --x-inc | --x-in | --x-i)
765     ac_prev=x_includes ;;
766   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768     x_includes=$ac_optarg ;;
769
770   -x-libraries | --x-libraries | --x-librarie | --x-librari \
771   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772     ac_prev=x_libraries ;;
773   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775     x_libraries=$ac_optarg ;;
776
777   -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779    { (exit 1); exit 1; }; }
780     ;;
781
782   *=*)
783     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784     # Reject names that are not valid shell variable names.
785     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787    { (exit 1); exit 1; }; }
788     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789     eval "$ac_envvar='$ac_optarg'"
790     export $ac_envvar ;;
791
792   *)
793     # FIXME: should be removed in autoconf 3.0.
794     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798     ;;
799
800   esac
801 done
802
803 if test -n "$ac_prev"; then
804   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805   { echo "$as_me: error: missing argument to $ac_option" >&2
806    { (exit 1); exit 1; }; }
807 fi
808
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
811 do
812   eval ac_val=$`echo $ac_var`
813   case $ac_val in
814     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816    { (exit 1); exit 1; }; };;
817   esac
818 done
819
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822               localstatedir libdir includedir oldincludedir infodir mandir
823 do
824   eval ac_val=$`echo $ac_var`
825   case $ac_val in
826     [\\/$]* | ?:[\\/]* ) ;;
827     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828    { (exit 1); exit 1; }; };;
829   esac
830 done
831
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
838
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841   if test "x$build_alias" = x; then
842     cross_compiling=maybe
843     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844     If a cross compiler is detected then cross compile mode will be used." >&2
845   elif test "x$build_alias" != "x$host_alias"; then
846     cross_compiling=yes
847   fi
848 fi
849
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
853 test "$silent" = yes && exec 6>/dev/null
854
855
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858   ac_srcdir_defaulted=yes
859   # Try the directory containing this script, then its parent.
860   ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862          X"$0" : 'X\(//\)[^/]' \| \
863          X"$0" : 'X\(//\)$' \| \
864          X"$0" : 'X\(/\)' \| \
865          .     : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869           /^X\(\/\/\)$/{ s//\1/; q; }
870           /^X\(\/\).*/{ s//\1/; q; }
871           s/.*/./; q'`
872   srcdir=$ac_confdir
873   if test ! -r $srcdir/$ac_unique_file; then
874     srcdir=..
875   fi
876 else
877   ac_srcdir_defaulted=no
878 fi
879 if test ! -r $srcdir/$ac_unique_file; then
880   if test "$ac_srcdir_defaulted" = yes; then
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882    { (exit 1); exit 1; }; }
883   else
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885    { (exit 1); exit 1; }; }
886   fi
887 fi
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890    { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928
929 #
930 # Report the --help message.
931 #
932 if test "$ac_init_help" = "long"; then
933   # Omit some internal or obsolete options to make the list less imposing.
934   # This message is too long to be a string in the A/UX 3.1 sh.
935   cat <<_ACEOF
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937
938 Usage: $0 [OPTION]... [VAR=VALUE]...
939
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE.  See below for descriptions of some of the useful variables.
942
943 Defaults for the options are specified in brackets.
944
945 Configuration:
946   -h, --help              display this help and exit
947       --help=short        display options specific to this package
948       --help=recursive    display the short help of all the included packages
949   -V, --version           display version information and exit
950   -q, --quiet, --silent   do not print \`checking...' messages
951       --cache-file=FILE   cache test results in FILE [disabled]
952   -C, --config-cache      alias for \`--cache-file=config.cache'
953   -n, --no-create         do not create output files
954       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
955
956 _ACEOF
957
958   cat <<_ACEOF
959 Installation directories:
960   --prefix=PREFIX         install architecture-independent files in PREFIX
961                           [$ac_default_prefix]
962   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
963                           [PREFIX]
964
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
969
970 For better control, use the options below.
971
972 Fine tuning of the installation directories:
973   --bindir=DIR           user executables [EPREFIX/bin]
974   --sbindir=DIR          system admin executables [EPREFIX/sbin]
975   --libexecdir=DIR       program executables [EPREFIX/libexec]
976   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
977   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
978   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
979   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
980   --libdir=DIR           object code libraries [EPREFIX/lib]
981   --includedir=DIR       C header files [PREFIX/include]
982   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
983   --infodir=DIR          info documentation [PREFIX/info]
984   --mandir=DIR           man documentation [PREFIX/man]
985 _ACEOF
986
987   cat <<\_ACEOF
988
989 Program names:
990   --program-prefix=PREFIX            prepend PREFIX to installed program names
991   --program-suffix=SUFFIX            append SUFFIX to installed program names
992   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
993
994 X features:
995   --x-includes=DIR    X include files are in DIR
996   --x-libraries=DIR   X library files are in DIR
997
998 System types:
999   --build=BUILD     configure for building on BUILD [guessed]
1000   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1001   --target=TARGET   configure for building compilers for TARGET [HOST]
1002 _ACEOF
1003 fi
1004
1005 if test -n "$ac_init_help"; then
1006   case $ac_init_help in
1007      short | recursive ) echo "Configuration of libjava version-unused:";;
1008    esac
1009   cat <<\_ACEOF
1010
1011 Optional Features:
1012   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014   --enable-multilib       build many library versions (default)
1015   --enable-version-specific-runtime-libs
1016                           specify that runtime libraries should be installed
1017                           in a compiler-specific directory
1018   --enable-plugin         build gcjwebplugin web browser plugin
1019   --enable-gconf-peer     compile GConf native peers for util.preferences
1020   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1021                           default=yes
1022   --enable-java-maintainer-mode
1023                           allow rebuilding of .class and .h files
1024   --disable-dependency-tracking  speeds up one-time build
1025   --enable-dependency-tracking   do not reject slow dependency extractors
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --enable-libgcj-debug   enable runtime debugging code
1029   --enable-java-awt       list of AWT peer implementations to be built
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --disable-getenv-properties
1038                           don't set system properties from GCJ_PROPERTIES
1039   --enable-hash-synchronization
1040                           use global hash table for monitor locks
1041   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1042                           libgcj
1043   --enable-reduced-reflection
1044                           enable or disable(default) -freduced-reflection when
1045                           building portions of libgcj
1046   --enable-gc-debug       include full support for pointer backtracing etc.
1047   --enable-interpreter    enable interpreter
1048   --enable-sjlj-exceptions
1049                           force use of builtin_setjmp for exceptions
1050   --disable-java-net      disable java.net
1051   --disable-jvmpi         disable JVMPI support
1052   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1053   --disable-rpath         do not hardcode runtime library paths
1054   --enable-tls            Use thread-local storage [default=yes]
1055   --enable-aot-compile-rpm
1056                           enable installation of aot-compile-rpm [default=no]
1057   --enable-java-home      create a standard JDK-style directory layout in the
1058                           install tree [default=no]
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1064   --with-target-subdir=SUBDIR
1065                           configure in a subdirectory
1066   --with-cross-host=HOST  configure with a cross compiler from HOST
1067   --with-newlib           configure with newlib
1068   --with-antlr-jar=file   Use ANTLR from the specified jar file
1069   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1073   --with-ecj-jar=FILE     use preinstalled ecj jar
1074   --with-java-home=DIRECTORY
1075                           value of java.home system property
1076   --with-win32-nlsapi=ansi or unicows or unicode
1077                           native MinGW libgcj Win32 OS API (default is ansi)
1078   --without-libffi        don't use libffi
1079   --with-ecos             enable runtime eCos target support
1080   --with-system-zlib      use installed libz
1081   --with-x                use the X Window System
1082   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1083   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1084   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1085   --with-python-dir       the location to install Python modules. This path
1086                           should NOT include the prefix.
1087   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1088   --with-arch-directory   the arch directory under jre/lib (defaults to
1089                           auto-detect)
1090   --with-os-directory     the os directory under include (defaults to
1091                           auto-detect)
1092   --with-origin-name      the JPackage origin name of this package (default is
1093                           gcj${gcc_suffix}
1094   --with-arch-suffix      the arch directory suffix (default is the empty
1095                           string
1096   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1097   --with-jvm-jar-dir      where to install jars (default is
1098                           ${prefix}/lib/jvm-exports)
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CXX         C++ compiler command
1108   CXXFLAGS    C++ compiler flags
1109   CPP         C preprocessor
1110   CXXCPP      C++ preprocessor
1111
1112 Use these variables to override the choices made by `configure' or to help
1113 it to find libraries and programs with nonstandard names/locations.
1114
1115 _ACEOF
1116 fi
1117
1118 if test "$ac_init_help" = "recursive"; then
1119   # If there are subdirs, report their specific --help.
1120   ac_popdir=`pwd`
1121   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1122     test -d $ac_dir || continue
1123     ac_builddir=.
1124
1125 if test "$ac_dir" != .; then
1126   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1127   # A "../" for each directory in $ac_dir_suffix.
1128   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 else
1130   ac_dir_suffix= ac_top_builddir=
1131 fi
1132
1133 case $srcdir in
1134   .)  # No --srcdir option.  We are building in place.
1135     ac_srcdir=.
1136     if test -z "$ac_top_builddir"; then
1137        ac_top_srcdir=.
1138     else
1139        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140     fi ;;
1141   [\\/]* | ?:[\\/]* )  # Absolute path.
1142     ac_srcdir=$srcdir$ac_dir_suffix;
1143     ac_top_srcdir=$srcdir ;;
1144   *) # Relative path.
1145     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1146     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 esac
1148
1149 # Do not use `cd foo && pwd` to compute absolute paths, because
1150 # the directories may not exist.
1151 case `pwd` in
1152 .) ac_abs_builddir="$ac_dir";;
1153 *)
1154   case "$ac_dir" in
1155   .) ac_abs_builddir=`pwd`;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1157   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158   esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *)
1163   case ${ac_top_builddir}. in
1164   .) ac_abs_top_builddir=$ac_abs_builddir;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1166   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_srcdir=$ac_srcdir;;
1171 *)
1172   case $ac_srcdir in
1173   .) ac_abs_srcdir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1175   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176   esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *)
1181   case $ac_top_srcdir in
1182   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1183   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1184   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1185   esac;;
1186 esac
1187
1188     cd $ac_dir
1189     # Check for guested configure; otherwise get Cygnus style configure.
1190     if test -f $ac_srcdir/configure.gnu; then
1191       echo
1192       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1193     elif test -f $ac_srcdir/configure; then
1194       echo
1195       $SHELL $ac_srcdir/configure  --help=recursive
1196     elif test -f $ac_srcdir/configure.ac ||
1197            test -f $ac_srcdir/configure.in; then
1198       echo
1199       $ac_configure --help
1200     else
1201       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202     fi
1203     cd $ac_popdir
1204   done
1205 fi
1206
1207 test -n "$ac_init_help" && exit 0
1208 if $ac_init_version; then
1209   cat <<\_ACEOF
1210 libjava configure version-unused
1211 generated by GNU Autoconf 2.59
1212
1213 Copyright (C) 2003 Free Software Foundation, Inc.
1214 This configure script is free software; the Free Software Foundation
1215 gives unlimited permission to copy, distribute and modify it.
1216 _ACEOF
1217   exit 0
1218 fi
1219 exec 5>config.log
1220 cat >&5 <<_ACEOF
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1223
1224 It was created by libjava $as_me version-unused, which was
1225 generated by GNU Autoconf 2.59.  Invocation command line was
1226
1227   $ $0 $@
1228
1229 _ACEOF
1230 {
1231 cat <<_ASUNAME
1232 ## --------- ##
1233 ## Platform. ##
1234 ## --------- ##
1235
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1244
1245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1252
1253 _ASUNAME
1254
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 for as_dir in $PATH
1257 do
1258   IFS=$as_save_IFS
1259   test -z "$as_dir" && as_dir=.
1260   echo "PATH: $as_dir"
1261 done
1262
1263 } >&5
1264
1265 cat >&5 <<_ACEOF
1266
1267
1268 ## ----------- ##
1269 ## Core tests. ##
1270 ## ----------- ##
1271
1272 _ACEOF
1273
1274
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_configure_args=
1281 ac_configure_args0=
1282 ac_configure_args1=
1283 ac_sep=
1284 ac_must_keep_next=false
1285 for ac_pass in 1 2
1286 do
1287   for ac_arg
1288   do
1289     case $ac_arg in
1290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292     | -silent | --silent | --silen | --sile | --sil)
1293       continue ;;
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     esac
1297     case $ac_pass in
1298     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299     2)
1300       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301       if test $ac_must_keep_next = true; then
1302         ac_must_keep_next=false # Got value, back to normal.
1303       else
1304         case $ac_arg in
1305           *=* | --config-cache | -C | -disable-* | --disable-* \
1306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308           | -with-* | --with-* | -without-* | --without-* | --x)
1309             case "$ac_configure_args0 " in
1310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311             esac
1312             ;;
1313           -* ) ac_must_keep_next=true ;;
1314         esac
1315       fi
1316       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317       # Get rid of the leading space.
1318       ac_sep=" "
1319       ;;
1320     esac
1321   done
1322 done
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log.  We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332   # Save into config.log some information that might help in debugging.
1333   {
1334     echo
1335
1336     cat <<\_ASBOX
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1340 _ASBOX
1341     echo
1342     # The following way of writing the cache mishandles newlines in values,
1343 {
1344   (set) 2>&1 |
1345     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346     *ac_space=\ *)
1347       sed -n \
1348         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350       ;;
1351     *)
1352       sed -n \
1353         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354       ;;
1355     esac;
1356 }
1357     echo
1358
1359     cat <<\_ASBOX
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1363 _ASBOX
1364     echo
1365     for ac_var in $ac_subst_vars
1366     do
1367       eval ac_val=$`echo $ac_var`
1368       echo "$ac_var='"'"'$ac_val'"'"'"
1369     done | sort
1370     echo
1371
1372     if test -n "$ac_subst_files"; then
1373       cat <<\_ASBOX
1374 ## ------------- ##
1375 ## Output files. ##
1376 ## ------------- ##
1377 _ASBOX
1378       echo
1379       for ac_var in $ac_subst_files
1380       do
1381         eval ac_val=$`echo $ac_var`
1382         echo "$ac_var='"'"'$ac_val'"'"'"
1383       done | sort
1384       echo
1385     fi
1386
1387     if test -s confdefs.h; then
1388       cat <<\_ASBOX
1389 ## ----------- ##
1390 ## confdefs.h. ##
1391 ## ----------- ##
1392 _ASBOX
1393       echo
1394       sed "/^$/d" confdefs.h | sort
1395       echo
1396     fi
1397     test "$ac_signal" != 0 &&
1398       echo "$as_me: caught signal $ac_signal"
1399     echo "$as_me: exit $exit_status"
1400   } >&5
1401   rm -f core *.core &&
1402   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403     exit $exit_status
1404      ' 0
1405 for ac_signal in 1 2 13 15; do
1406   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 done
1408 ac_signal=0
1409
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 echo >confdefs.h
1414
1415 # Predefined preprocessor variables.
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 _ACEOF
1440
1441
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445   if test "x$prefix" != xNONE; then
1446     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447   else
1448     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449   fi
1450 fi
1451 for ac_site_file in $CONFIG_SITE; do
1452   if test -r "$ac_site_file"; then
1453     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455     sed 's/^/| /' "$ac_site_file" >&5
1456     . "$ac_site_file"
1457   fi
1458 done
1459
1460 if test -r "$cache_file"; then
1461   # Some versions of bash will fail to source /dev/null (special
1462   # files actually), so we avoid doing that.
1463   if test -f "$cache_file"; then
1464     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1465 echo "$as_me: loading cache $cache_file" >&6;}
1466     case $cache_file in
1467       [\\/]* | ?:[\\/]* ) . $cache_file;;
1468       *)                      . ./$cache_file;;
1469     esac
1470   fi
1471 else
1472   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1473 echo "$as_me: creating cache $cache_file" >&6;}
1474   >$cache_file
1475 fi
1476
1477 # Check that the precious variables saved in the cache have kept the same
1478 # value.
1479 ac_cache_corrupted=false
1480 for ac_var in `(set) 2>&1 |
1481                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1482   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1483   eval ac_new_set=\$ac_env_${ac_var}_set
1484   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1485   eval ac_new_val="\$ac_env_${ac_var}_value"
1486   case $ac_old_set,$ac_new_set in
1487     set,)
1488       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1489 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1490       ac_cache_corrupted=: ;;
1491     ,set)
1492       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1493 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1494       ac_cache_corrupted=: ;;
1495     ,);;
1496     *)
1497       if test "x$ac_old_val" != "x$ac_new_val"; then
1498         # differences in whitespace do not lead to failure.
1499         ac_old_val_w=`echo x $ac_old_val`
1500         ac_new_val_w=`echo x $ac_new_val`
1501         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1502           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1503 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1504           ac_cache_corrupted=:
1505         else
1506           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1507 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1508           eval $ac_var=\$ac_old_val
1509         fi
1510         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1511 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1512         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1513 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1514       fi;;
1515   esac
1516   # Pass precious variables to config.status.
1517   if test "$ac_new_set" = set; then
1518     case $ac_new_val in
1519     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521     *) ac_arg=$ac_var=$ac_new_val ;;
1522     esac
1523     case " $ac_configure_args " in
1524       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1525       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1526     esac
1527   fi
1528 done
1529 if $ac_cache_corrupted; then
1530   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1531 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1532   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538
1539 ac_ext=c
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577 ac_aux_dir=
1578 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1579   if test -f $ac_dir/install-sh; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/install-sh -c"
1582     break
1583   elif test -f $ac_dir/install.sh; then
1584     ac_aux_dir=$ac_dir
1585     ac_install_sh="$ac_aux_dir/install.sh -c"
1586     break
1587   elif test -f $ac_dir/shtool; then
1588     ac_aux_dir=$ac_dir
1589     ac_install_sh="$ac_aux_dir/shtool install -c"
1590     break
1591   fi
1592 done
1593 if test -z "$ac_aux_dir"; then
1594   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1595 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1596    { (exit 1); exit 1; }; }
1597 fi
1598 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1599 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1600 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1601
1602 # Make sure we can run config.sub.
1603 $ac_config_sub sun4 >/dev/null 2>&1 ||
1604   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1605 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1606    { (exit 1); exit 1; }; }
1607
1608 echo "$as_me:$LINENO: checking build system type" >&5
1609 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1610 if test "${ac_cv_build+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   ac_cv_build_alias=$build_alias
1614 test -z "$ac_cv_build_alias" &&
1615   ac_cv_build_alias=`$ac_config_guess`
1616 test -z "$ac_cv_build_alias" &&
1617   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1618 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1619    { (exit 1); exit 1; }; }
1620 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1621   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 fi
1626 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1627 echo "${ECHO_T}$ac_cv_build" >&6
1628 build=$ac_cv_build
1629 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634  case ${build_alias} in
1635   "") build_noncanonical=${build} ;;
1636   *) build_noncanonical=${build_alias} ;;
1637 esac
1638
1639  case ${host_alias} in
1640   "") host_noncanonical=${build_noncanonical} ;;
1641   *) host_noncanonical=${host_alias} ;;
1642 esac
1643
1644  case ${target_alias} in
1645   "") target_noncanonical=${host_noncanonical} ;;
1646   *) target_noncanonical=${target_alias} ;;
1647 esac
1648
1649
1650 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1651 # have matching libraries, they should use host libraries: Makefile.tpl
1652 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1653 # However, they still use the build modules, because the corresponding
1654 # host modules (e.g. bison) are only built for the host when bootstrap
1655 # finishes. So:
1656 # - build_subdir is where we find build modules, and never changes.
1657 # - build_libsubdir is where we find build libraries, and can be overridden.
1658
1659 # Prefix 'build-' so this never conflicts with target_subdir.
1660 build_subdir="build-${build_noncanonical}"
1661
1662 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1663 if test "${with_build_libsubdir+set}" = set; then
1664   withval="$with_build_libsubdir"
1665   build_libsubdir="$withval"
1666 else
1667   build_libsubdir="$build_subdir"
1668 fi;
1669 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1670 if ( test $srcdir = . && test -d gcc ) \
1671    || test -d $srcdir/../host-${host_noncanonical}; then
1672   host_subdir="host-${host_noncanonical}"
1673 else
1674   host_subdir=.
1675 fi
1676 # No prefix.
1677 target_subdir=${target_noncanonical}
1678
1679
1680 # We use these options to decide which functions to include.
1681
1682 # Check whether --with-target-subdir or --without-target-subdir was given.
1683 if test "${with_target_subdir+set}" = set; then
1684   withval="$with_target_subdir"
1685
1686 fi;
1687
1688 # We may get other options which we don't document:
1689 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1690
1691 # Find the rest of the source tree framework.
1692 # Default to --enable-multilib
1693 # Check whether --enable-multilib or --disable-multilib was given.
1694 if test "${enable_multilib+set}" = set; then
1695   enableval="$enable_multilib"
1696   case "$enableval" in
1697   yes) multilib=yes ;;
1698   no)  multilib=no ;;
1699   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1700 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1701    { (exit 1); exit 1; }; } ;;
1702  esac
1703 else
1704   multilib=yes
1705 fi;
1706
1707 # We may get other options which we leave undocumented:
1708 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1709 # See config-ml.in if you want the gory details.
1710
1711 if test "$srcdir" = "."; then
1712   if test "$with_target_subdir" != "."; then
1713     multi_basedir="$srcdir/$with_multisrctop../.."
1714   else
1715     multi_basedir="$srcdir/$with_multisrctop.."
1716   fi
1717 else
1718   multi_basedir="$srcdir/.."
1719 fi
1720
1721
1722 # Even if the default multilib is not a cross compilation,
1723 # it may be that some of the other multilibs are.
1724 if test $cross_compiling = no && test $multilib = yes \
1725    && test "x${with_multisubdir}" != x ; then
1726    cross_compiling=maybe
1727 fi
1728
1729           ac_config_commands="$ac_config_commands default-1"
1730
1731
1732 echo "$as_me:$LINENO: checking host system type" >&5
1733 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1734 if test "${ac_cv_host+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   ac_cv_host_alias=$host_alias
1738 test -z "$ac_cv_host_alias" &&
1739   ac_cv_host_alias=$ac_cv_build_alias
1740 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1741   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1742 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 fi
1746 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1747 echo "${ECHO_T}$ac_cv_host" >&6
1748 host=$ac_cv_host
1749 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752
1753
1754 echo "$as_me:$LINENO: checking target system type" >&5
1755 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1756 if test "${ac_cv_target+set}" = set; then
1757   echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759   ac_cv_target_alias=$target_alias
1760 test "x$ac_cv_target_alias" = "x" &&
1761   ac_cv_target_alias=$ac_cv_host_alias
1762 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1763   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1764 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1765    { (exit 1); exit 1; }; }
1766
1767 fi
1768 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1769 echo "${ECHO_T}$ac_cv_target" >&6
1770 target=$ac_cv_target
1771 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774
1775
1776 # The aliases save the names the user supplied, while $host etc.
1777 # will get canonicalized.
1778 test -n "$target_alias" &&
1779   test "$program_prefix$program_suffix$program_transform_name" = \
1780     NONENONEs,x,x, &&
1781   program_prefix=${target_alias}-
1782  case ${build_alias} in
1783   "") build_noncanonical=${build} ;;
1784   *) build_noncanonical=${build_alias} ;;
1785 esac
1786
1787  case ${target_alias} in
1788   "") target_noncanonical=${host_noncanonical} ;;
1789   *) target_noncanonical=${target_alias} ;;
1790 esac
1791
1792
1793
1794
1795 # This works around the fact that libtool configuration may change LD
1796 # for this particular configuration, but some shells, instead of
1797 # keeping the changes in LD private, export them just because LD is
1798 # exported.
1799 ORIGINAL_LD_FOR_MULTILIBS=$LD
1800
1801 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1803 LN_S=$as_ln_s
1804 if test "$LN_S" = "ln -s"; then
1805   echo "$as_me:$LINENO: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1809 echo "${ECHO_T}no, using $LN_S" >&6
1810 fi
1811
1812
1813 # This works around an automake problem.
1814 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1815
1816
1817
1818 # Check whether --with-cross-host or --without-cross-host was given.
1819 if test "${with_cross_host+set}" = set; then
1820   withval="$with_cross_host"
1821
1822 fi;
1823
1824
1825 # Check whether --with-newlib or --without-newlib was given.
1826 if test "${with_newlib+set}" = set; then
1827   withval="$with_newlib"
1828
1829 fi;
1830
1831 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1832 if test "${enable_version_specific_runtime_libs+set}" = set; then
1833   enableval="$enable_version_specific_runtime_libs"
1834   case "$enableval" in
1835       yes) version_specific_libs=yes ;;
1836       no)  version_specific_libs=no ;;
1837       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1838 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1839    { (exit 1); exit 1; }; };;
1840      esac
1841 else
1842   version_specific_libs=no
1843
1844 fi;
1845
1846 # Check whether --enable-plugin or --disable-plugin was given.
1847 if test "${enable_plugin+set}" = set; then
1848   enableval="$enable_plugin"
1849   case "$enableval" in
1850       yes) plugin_enabled=yes ;;
1851       no)  plugin_enabled=no ;;
1852       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1853 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1854    { (exit 1); exit 1; }; };;
1855      esac
1856 else
1857   plugin_enabled=no
1858
1859 fi;
1860
1861 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1862 if test "${enable_gconf_peer+set}" = set; then
1863   enableval="$enable_gconf_peer"
1864   case "$enableval" in
1865       yes) gconf_enabled=yes ;;
1866       no)  gconf_enabled=no ;;
1867       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1868 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1869    { (exit 1); exit 1; }; };;
1870      esac
1871 else
1872   gconf_enabled=no
1873
1874 fi;
1875
1876
1877 # Check whether --with-antlr-jar or --without-antlr-jar was given.
1878 if test "${with_antlr_jar+set}" = set; then
1879   withval="$with_antlr_jar"
1880
1881              ANTLR_JAR=$withval
1882
1883 else
1884
1885              ANTLR_JAR=
1886
1887 fi;
1888
1889 echo "$as_me:$LINENO: checking for antlr.jar" >&5
1890 echo $ECHO_N "checking for antlr.jar... $ECHO_C" >&6
1891 if test "x$ANTLR_JAR" = x; then
1892     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
1893         /usr/share/antlr/lib /usr/share/java /usr/lib;
1894     do
1895         if test -f "$antlr_lib_home/antlr.jar"; then
1896             # FIXME: version check for antlr needed without using a VM
1897             ANTLR_JAR="$antlr_lib_home/antlr.jar"
1898             break
1899         fi
1900     done
1901     if test "x$ANTLR_JAR" = x; then
1902         echo "$as_me:$LINENO: result: not found" >&5
1903 echo "${ECHO_T}not found" >&6
1904     else
1905         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1906 echo "${ECHO_T}$ANTLR_JAR" >&6
1907     fi
1908 else
1909     if test -f "${ANTLR_JAR}"; then
1910         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1911 echo "${ECHO_T}$ANTLR_JAR" >&6
1912     else
1913         { { echo "$as_me:$LINENO: error: antlr jar file not found: $ANTLR_JAR" >&5
1914 echo "$as_me: error: antlr jar file not found: $ANTLR_JAR" >&2;}
1915    { (exit 1); exit 1; }; }
1916     fi
1917 fi
1918
1919
1920 # Check whether --enable-gjdoc or --disable-gjdoc was given.
1921 if test "${enable_gjdoc+set}" = set; then
1922   enableval="$enable_gjdoc"
1923   case "${enableval}" in
1924                 yes) BUILD_GJDOC=yes ;;
1925                 no) BUILD_GJDOC=no ;;
1926                 *) BUILD_GJDOC=yes ;;
1927               esac
1928 else
1929   BUILD_GJDOC=maybe
1930 fi;
1931
1932 echo "$as_me:$LINENO: checking whether to build gjdoc" >&5
1933 echo $ECHO_N "checking whether to build gjdoc... $ECHO_C" >&6
1934 if test "x$BUILD_GJDOC" = xmaybe; then
1935     if test -f "${ANTLR_JAR}"; then
1936         BUILD_GJDOC=yes
1937         echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1939     else
1940         BUILD_GJDOC=no
1941         echo "$as_me:$LINENO: result: no, antlr.jar not found" >&5
1942 echo "${ECHO_T}no, antlr.jar not found" >&6
1943     fi
1944 else
1945     echo "$as_me:$LINENO: result: $BUILD_GJDOC" >&5
1946 echo "${ECHO_T}$BUILD_GJDOC" >&6
1947 fi
1948
1949
1950 if test "x${BUILD_GJDOC}" = xyes; then
1951   CREATE_GJDOC_TRUE=
1952   CREATE_GJDOC_FALSE='#'
1953 else
1954   CREATE_GJDOC_TRUE='#'
1955   CREATE_GJDOC_FALSE=
1956 fi
1957
1958
1959 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1960 if test "${enable_java_maintainer_mode+set}" = set; then
1961   enableval="$enable_java_maintainer_mode"
1962
1963 fi;
1964
1965
1966 if test "$enable_java_maintainer_mode" = yes; then
1967   JAVA_MAINTAINER_MODE_TRUE=
1968   JAVA_MAINTAINER_MODE_FALSE='#'
1969 else
1970   JAVA_MAINTAINER_MODE_TRUE='#'
1971   JAVA_MAINTAINER_MODE_FALSE=
1972 fi
1973
1974
1975 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1976
1977
1978 # (1) We use an abnormal CXX (without library references), so we
1979 # must cache it under a different name.
1980 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1981 # the non-multilib-adjusted value will be used in multilibs.
1982 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1983 # (4) As another side effect, automake doesn't automatically include them
1984 # in Makefile.in.
1985 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1986 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1987 # used in later tests.  This may not be necessary in libjava; I don't know.
1988
1989
1990 save_CXXFLAGS="$CXXFLAGS"
1991 CXXFLAGS="$CXXFLAGS -fno-builtin"
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$CC"; then
2006   ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 fi
2023 fi
2024 CC=$ac_cv_prog_CC
2025 if test -n "$CC"; then
2026   echo "$as_me:$LINENO: result: $CC" >&5
2027 echo "${ECHO_T}$CC" >&6
2028 else
2029   echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2031 fi
2032
2033 fi
2034 if test -z "$ac_cv_prog_CC"; then
2035   ac_ct_CC=$CC
2036   # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test -n "$ac_ct_CC"; then
2044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053     ac_cv_prog_ac_ct_CC="gcc"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059
2060 fi
2061 fi
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067   echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2069 fi
2070
2071   CC=$ac_ct_CC
2072 else
2073   CC="$ac_cv_prog_CC"
2074 fi
2075
2076 if test -z "$CC"; then
2077   if test -n "$ac_tool_prefix"; then
2078   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$CC"; then
2086   ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_CC="${ac_tool_prefix}cc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106   echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2108 else
2109   echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113 fi
2114 if test -z "$ac_cv_prog_CC"; then
2115   ac_ct_CC=$CC
2116   # Extract the first word of "cc", so it can be a program name with args.
2117 set dummy cc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_CC"; then
2124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_ac_ct_CC="cc"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151   CC=$ac_ct_CC
2152 else
2153   CC="$ac_cv_prog_CC"
2154 fi
2155
2156 fi
2157 if test -z "$CC"; then
2158   # Extract the first word of "cc", so it can be a program name with args.
2159 set dummy cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   if test -n "$CC"; then
2166   ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168   ac_prog_rejected=no
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174   for ac_exec_ext in '' $ac_executable_extensions; do
2175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177        ac_prog_rejected=yes
2178        continue
2179      fi
2180     ac_cv_prog_CC="cc"
2181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182     break 2
2183   fi
2184 done
2185 done
2186
2187 if test $ac_prog_rejected = yes; then
2188   # We found a bogon in the path, so make sure we never use it.
2189   set dummy $ac_cv_prog_CC
2190   shift
2191   if test $# != 0; then
2192     # We chose a different compiler from the bogus one.
2193     # However, it has the same basename, so the bogon will be chosen
2194     # first if we set CC to just the basename; use the full file name.
2195     shift
2196     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197   fi
2198 fi
2199 fi
2200 fi
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203   echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6
2205 else
2206   echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2208 fi
2209
2210 fi
2211 if test -z "$CC"; then
2212   if test -n "$ac_tool_prefix"; then
2213   for ac_prog in cl
2214   do
2215     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   if test -n "$CC"; then
2223   ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230   for ac_exec_ext in '' $ac_executable_extensions; do
2231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234     break 2
2235   fi
2236 done
2237 done
2238
2239 fi
2240 fi
2241 CC=$ac_cv_prog_CC
2242 if test -n "$CC"; then
2243   echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2245 else
2246   echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2248 fi
2249
2250     test -n "$CC" && break
2251   done
2252 fi
2253 if test -z "$CC"; then
2254   ac_ct_CC=$CC
2255   for ac_prog in cl
2256 do
2257   # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   if test -n "$ac_ct_CC"; then
2265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270   IFS=$as_save_IFS
2271   test -z "$as_dir" && as_dir=.
2272   for ac_exec_ext in '' $ac_executable_extensions; do
2273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274     ac_cv_prog_ac_ct_CC="$ac_prog"
2275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276     break 2
2277   fi
2278 done
2279 done
2280
2281 fi
2282 fi
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 echo "${ECHO_T}$ac_ct_CC" >&6
2287 else
2288   echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2290 fi
2291
2292   test -n "$ac_ct_CC" && break
2293 done
2294
2295   CC=$ac_ct_CC
2296 fi
2297
2298 fi
2299
2300
2301 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2302 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&2;}
2307    { (exit 1); exit 1; }; }; }
2308
2309 # Provide some information about the compiler.
2310 echo "$as_me:$LINENO:" \
2311      "checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314   (eval $ac_compiler --version </dev/null >&5) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319   (eval $ac_compiler -v </dev/null >&5) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324   (eval $ac_compiler -V </dev/null >&5) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }
2328
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 # FIXME: Cleanup?
2345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346   (eval $ac_link) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; then
2350   gcc_no_link=no
2351 else
2352   gcc_no_link=yes
2353 fi
2354
2355 if test x$gcc_no_link = xyes; then
2356   # Setting cross_compile will disable run tests; it will
2357   # also disable AC_CHECK_FILE but that's generally
2358   # correct if we can't link.
2359   cross_compiling=yes
2360   EXEEXT=
2361 else
2362   cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 int
2370 main ()
2371 {
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 ac_clean_files_save=$ac_clean_files
2378 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2379 # Try to create an executable without -o first, disregard a.out.
2380 # It will help us diagnose broken compilers, and finding out an intuition
2381 # of exeext.
2382 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2383 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2384 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2385 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2386   (eval $ac_link_default) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; then
2390   # Find the output, starting from the most likely.  This scheme is
2391 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2392 # resort.
2393
2394 # Be careful to initialize this variable, since it used to be cached.
2395 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2396 ac_cv_exeext=
2397 # b.out is created by i960 compilers.
2398 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2399 do
2400   test -f "$ac_file" || continue
2401   case $ac_file in
2402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2403         ;;
2404     conftest.$ac_ext )
2405         # This is the source file.
2406         ;;
2407     [ab].out )
2408         # We found the default executable, but exeext='' is most
2409         # certainly right.
2410         break;;
2411     *.* )
2412         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413         # FIXME: I believe we export ac_cv_exeext for Libtool,
2414         # but it would be cool to find out if it's true.  Does anybody
2415         # maintain Libtool? --akim.
2416         export ac_cv_exeext
2417         break;;
2418     * )
2419         break;;
2420   esac
2421 done
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: C compiler cannot create executables
2431 See \`config.log' for more details." >&2;}
2432    { (exit 77); exit 77; }; }; }
2433 fi
2434
2435 ac_exeext=$ac_cv_exeext
2436 echo "$as_me:$LINENO: result: $ac_file" >&5
2437 echo "${ECHO_T}$ac_file" >&6
2438
2439 # Check the compiler produces executables we can run.  If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446   if { ac_try='./$ac_file'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452     cross_compiling=no
2453   else
2454     if test "$cross_compiling" = maybe; then
2455         cross_compiling=yes
2456     else
2457         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot run C compiled programs.
2463 If you meant to cross compile, use \`--host'.
2464 See \`config.log' for more details." >&2;}
2465    { (exit 1); exit 1; }; }; }
2466     fi
2467   fi
2468 fi
2469 echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6
2471
2472 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2473 ac_clean_files=$ac_clean_files_save
2474 # Check the compiler produces executables we can run.  If not, either
2475 # the compiler is broken, or we cross compile.
2476 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2478 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479 echo "${ECHO_T}$cross_compiling" >&6
2480
2481 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484   (eval $ac_link) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2489 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2490 # work properly (i.e., refer to `conftest.exe'), while it won't with
2491 # `rm'.
2492 for ac_file in conftest.exe conftest conftest.*; do
2493   test -f "$ac_file" || continue
2494   case $ac_file in
2495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2496     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497           export ac_cv_exeext
2498           break;;
2499     * ) break;;
2500   esac
2501 done
2502 else
2503   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&2;}
2509    { (exit 1); exit 1; }; }; }
2510 fi
2511
2512 rm -f conftest$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514 echo "${ECHO_T}$ac_cv_exeext" >&6
2515
2516 rm -f conftest.$ac_ext
2517 EXEEXT=$ac_cv_exeext
2518 ac_exeext=$EXEEXT
2519 fi
2520 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2521 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2522 if test "${ac_cv_objext+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531
2532 int
2533 main ()
2534 {
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; then
2546   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550        break;;
2551   esac
2552 done
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2562 See \`config.log' for more details." >&2;}
2563    { (exit 1); exit 1; }; }; }
2564 fi
2565
2566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2567 fi
2568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2569 echo "${ECHO_T}$ac_cv_objext" >&6
2570 OBJEXT=$ac_cv_objext
2571 ac_objext=$OBJEXT
2572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587 #ifndef __GNUC__
2588        choke me
2589 #endif
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597   (eval $ac_compile) 2>conftest.er1
2598   ac_status=$?
2599   grep -v '^ *+' conftest.er1 >conftest.err
2600   rm -f conftest.er1
2601   cat conftest.err >&5
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } &&
2604          { ac_try='test -z "$ac_c_werror_flag"
2605                          || test ! -s conftest.err'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; } &&
2611          { ac_try='test -s conftest.$ac_objext'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; }; then
2617   ac_compiler_gnu=yes
2618 else
2619   echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 ac_compiler_gnu=no
2623 fi
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2626
2627 fi
2628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2630 GCC=`test $ac_compiler_gnu = yes && echo yes`
2631 ac_test_CFLAGS=${CFLAGS+set}
2632 ac_save_CFLAGS=$CFLAGS
2633 CFLAGS="-g"
2634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>conftest.er1
2657   ac_status=$?
2658   grep -v '^ *+' conftest.er1 >conftest.err
2659   rm -f conftest.er1
2660   cat conftest.err >&5
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); } &&
2663          { ac_try='test -z "$ac_c_werror_flag"
2664                          || test ! -s conftest.err'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; } &&
2670          { ac_try='test -s conftest.$ac_objext'
2671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672   (eval $ac_try) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; }; then
2676   ac_cv_prog_cc_g=yes
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 ac_cv_prog_cc_g=no
2682 fi
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2687 if test "$ac_test_CFLAGS" = set; then
2688   CFLAGS=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690   if test "$GCC" = yes; then
2691     CFLAGS="-g -O2"
2692   else
2693     CFLAGS="-g"
2694   fi
2695 else
2696   if test "$GCC" = yes; then
2697     CFLAGS="-O2"
2698   else
2699     CFLAGS=
2700   fi
2701 fi
2702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   ac_cv_prog_cc_stdc=no
2708 ac_save_CC=$CC
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715 #include <stdarg.h>
2716 #include <stdio.h>
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2723      char **p;
2724      int i;
2725 {
2726   return p[i];
2727 }
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2729 {
2730   char *s;
2731   va_list v;
2732   va_start (v,p);
2733   s = g (p, va_arg (v,int));
2734   va_end (v);
2735   return s;
2736 }
2737
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2739    function prototypes and stuff, but not '\xHH' hex character constants.
2740    These don't provoke an error unfortunately, instead are silently treated
2741    as 'x'.  The following induces an error, until -std1 is added to get
2742    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2743    array size at least.  It's necessary to write '\x00'==0 to get something
2744    that's true only with -std1.  */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
2747 int test (int i, double x);
2748 struct s1 {int (*f) (int a);};
2749 struct s2 {int (*f) (double a);};
2750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2751 int argc;
2752 char **argv;
2753 int
2754 main ()
2755 {
2756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 # Don't try gcc -ansi; that turns off useful extensions and
2762 # breaks some systems' header files.
2763 # AIX                   -qlanglvl=ansi
2764 # Ultrix and OSF/1      -std1
2765 # HP-UX 10.20 and later -Ae
2766 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2767 # SVR4                  -Xc -D__EXTENSIONS__
2768 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 do
2770   CC="$ac_save_CC $ac_arg"
2771   rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"
2781                          || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   ac_cv_prog_cc_stdc=$ac_arg
2794 break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext
2801 done
2802 rm -f conftest.$ac_ext conftest.$ac_objext
2803 CC=$ac_save_CC
2804
2805 fi
2806
2807 case "x$ac_cv_prog_cc_stdc" in
2808   x|xno)
2809     echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6 ;;
2811   *)
2812     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2814     CC="$CC $ac_cv_prog_cc_stdc" ;;
2815 esac
2816
2817 # Some people use a C++ compiler to compile C.  Since we use `exit',
2818 # in C++ we need to declare it.  In case someone uses the same compiler
2819 # for both compiling C and C++ we need to have the C++ compiler decide
2820 # the declaration of exit, since it's the most demanding environment.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #ifndef __cplusplus
2823   choke me
2824 #endif
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_c_werror_flag"
2836                          || test ! -s conftest.err'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; } &&
2842          { ac_try='test -s conftest.$ac_objext'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848   for ac_declaration in \
2849    '' \
2850    'extern "C" void std::exit (int) throw (); using std::exit;' \
2851    'extern "C" void std::exit (int); using std::exit;' \
2852    'extern "C" void exit (int) throw ();' \
2853    'extern "C" void exit (int);' \
2854    'void exit (int);'
2855 do
2856   cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 $ac_declaration
2863 #include <stdlib.h>
2864 int
2865 main ()
2866 {
2867 exit (42);
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   :
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 continue
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 $ac_declaration
2909 int
2910 main ()
2911 {
2912 exit (42);
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919   (eval $ac_compile) 2>conftest.er1
2920   ac_status=$?
2921   grep -v '^ *+' conftest.er1 >conftest.err
2922   rm -f conftest.er1
2923   cat conftest.err >&5
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } &&
2926          { ac_try='test -z "$ac_c_werror_flag"
2927                          || test ! -s conftest.err'
2928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929   (eval $ac_try) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; } &&
2933          { ac_try='test -s conftest.$ac_objext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   break
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 fi
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946 done
2947 rm -f conftest*
2948 if test -n "$ac_declaration"; then
2949   echo '#ifdef __cplusplus' >>confdefs.h
2950   echo $ac_declaration      >>confdefs.h
2951   echo '#endif'             >>confdefs.h
2952 fi
2953
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 fi
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965
2966 ac_ext=cc
2967 ac_cpp='$CXXCPP $CPPFLAGS'
2968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2973   do
2974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978 if test "${ac_cv_prog_CXX+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   if test -n "$CXX"; then
2982   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989   for ac_exec_ext in '' $ac_executable_extensions; do
2990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996 done
2997
2998 fi
2999 fi
3000 CXX=$ac_cv_prog_CXX
3001 if test -n "$CXX"; then
3002   echo "$as_me:$LINENO: result: $CXX" >&5
3003 echo "${ECHO_T}$CXX" >&6
3004 else
3005   echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6
3007 fi
3008
3009     test -n "$CXX" && break
3010   done
3011 fi
3012 if test -z "$CXX"; then
3013   ac_ct_CXX=$CXX
3014   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3015 do
3016   # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   if test -n "$ac_ct_CXX"; then
3024   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033     ac_cv_prog_ac_ct_CXX="$ac_prog"
3034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038 done
3039
3040 fi
3041 fi
3042 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3043 if test -n "$ac_ct_CXX"; then
3044   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3045 echo "${ECHO_T}$ac_ct_CXX" >&6
3046 else
3047   echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3049 fi
3050
3051   test -n "$ac_ct_CXX" && break
3052 done
3053 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3054
3055   CXX=$ac_ct_CXX
3056 fi
3057
3058
3059 # Provide some information about the compiler.
3060 echo "$as_me:$LINENO:" \
3061      "checking for C++ compiler version" >&5
3062 ac_compiler=`set X $ac_compile; echo $2`
3063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3064   (eval $ac_compiler --version </dev/null >&5) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }
3068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3069   (eval $ac_compiler -v </dev/null >&5) 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }
3073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3074   (eval $ac_compiler -V </dev/null >&5) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }
3078
3079 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3080 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3081 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094 #ifndef __GNUC__
3095        choke me
3096 #endif
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104   (eval $ac_compile) 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -z "$ac_cxx_werror_flag"
3112                          || test ! -s conftest.err'
3113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114   (eval $ac_try) 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   ac_compiler_gnu=yes
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_compiler_gnu=no
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3133
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3136 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3137 GXX=`test $ac_compiler_gnu = yes && echo yes`
3138 ac_test_CXXFLAGS=${CXXFLAGS+set}
3139 ac_save_CXXFLAGS=$CXXFLAGS
3140 CXXFLAGS="-g"
3141 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3143 if test "${ac_cv_prog_cxx_g+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163   (eval $ac_compile) 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } &&
3170          { ac_try='test -z "$ac_cxx_werror_flag"
3171                          || test ! -s conftest.err'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   ac_cv_prog_cxx_g=yes
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_cv_prog_cxx_g=no
3189 fi
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3194 if test "$ac_test_CXXFLAGS" = set; then
3195   CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197   if test "$GXX" = yes; then
3198     CXXFLAGS="-g -O2"
3199   else
3200     CXXFLAGS="-g"
3201   fi
3202 else
3203   if test "$GXX" = yes; then
3204     CXXFLAGS="-O2"
3205   else
3206     CXXFLAGS=
3207   fi
3208 fi
3209 for ac_declaration in \
3210    '' \
3211    'extern "C" void std::exit (int) throw (); using std::exit;' \
3212    'extern "C" void std::exit (int); using std::exit;' \
3213    'extern "C" void exit (int) throw ();' \
3214    'extern "C" void exit (int);' \
3215    'void exit (int);'
3216 do
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 $ac_declaration
3224 #include <stdlib.h>
3225 int
3226 main ()
3227 {
3228 exit (42);
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235   (eval $ac_compile) 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_cxx_werror_flag"
3243                          || test ! -s conftest.err'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   :
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 continue
3261 fi
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 $ac_declaration
3270 int
3271 main ()
3272 {
3273 exit (42);
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280   (eval $ac_compile) 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -z "$ac_cxx_werror_flag"
3288                          || test ! -s conftest.err'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; }; then
3300   break
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 fi
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 done
3308 rm -f conftest*
3309 if test -n "$ac_declaration"; then
3310   echo '#ifdef __cplusplus' >>confdefs.h
3311   echo $ac_declaration      >>confdefs.h
3312   echo '#endif'             >>confdefs.h
3313 fi
3314
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320
3321 CXXFLAGS="$save_CXXFLAGS"
3322
3323
3324
3325
3326
3327 am__api_version="1.9"
3328 # Find a good install program.  We prefer a C program (faster),
3329 # so one script is as good as another.  But avoid the broken or
3330 # incompatible versions:
3331 # SysV /etc/install, /usr/sbin/install
3332 # SunOS /usr/etc/install
3333 # IRIX /sbin/install
3334 # AIX /bin/install
3335 # AmigaOS /C/install, which installs bootblocks on floppy discs
3336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3339 # OS/2's system install, which has a completely different semantic
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 # Reject install programs that cannot install multiple files.
3342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3344 if test -z "$INSTALL"; then
3345 if test "${ac_cv_path_install+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   # Account for people who put trailing slashes in PATH elements.
3354 case $as_dir/ in
3355   ./ | .// | /cC/* | \
3356   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3357   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3358   /usr/ucb/* ) ;;
3359   *)
3360     # OSF1 and SCO ODT 3.0 have their own names for install.
3361     # Don't use installbsd from OSF since it installs stuff as root
3362     # by default.
3363     for ac_prog in ginstall scoinst install; do
3364       for ac_exec_ext in '' $ac_executable_extensions; do
3365         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3366           if test $ac_prog = install &&
3367             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3368             # AIX install.  It has an incompatible calling convention.
3369             :
3370           elif test $ac_prog = install &&
3371             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3372             # program-specific install script used by HP pwplus--don't use.
3373             :
3374           else
3375             rm -rf conftest.one conftest.two conftest.dir
3376             echo one > conftest.one
3377             echo two > conftest.two
3378             mkdir conftest.dir
3379             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3380               test -s conftest.one && test -s conftest.two &&
3381               test -s conftest.dir/conftest.one &&
3382               test -s conftest.dir/conftest.two
3383             then
3384               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3385               break 3
3386             fi
3387           fi
3388         fi
3389       done
3390     done
3391     ;;
3392 esac
3393 done
3394
3395 rm -rf conftest.one conftest.two conftest.dir
3396
3397 fi
3398   if test "${ac_cv_path_install+set}" = set; then
3399     INSTALL=$ac_cv_path_install
3400   else
3401     # As a last resort, use the slow shell script.  Don't cache a
3402     # value for INSTALL within a source directory, because that will
3403     # break other packages using the cache if that directory is
3404     # removed, or if the value is a relative name.
3405     INSTALL=$ac_install_sh
3406   fi
3407 fi
3408 echo "$as_me:$LINENO: result: $INSTALL" >&5
3409 echo "${ECHO_T}$INSTALL" >&6
3410
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416
3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418
3419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3421 # Just in case
3422 sleep 1
3423 echo timestamp > conftest.file
3424 # Do `set' in a subshell so we don't clobber the current shell's
3425 # arguments.  Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3428 # directory).
3429 if (
3430    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3431    if test "$*" = "X"; then
3432       # -L didn't work.
3433       set X `ls -t $srcdir/configure conftest.file`
3434    fi
3435    rm -f conftest.file
3436    if test "$*" != "X $srcdir/configure conftest.file" \
3437       && test "$*" != "X conftest.file $srcdir/configure"; then
3438
3439       # If neither matched, then we have a broken ls.  This can happen
3440       # if, for instance, CONFIG_SHELL is bash and it inherits a
3441       # broken ls alias from the environment.  This has actually
3442       # happened.  Such a system could not be considered "sane".
3443       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3444 alias in your environment" >&5
3445 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3446 alias in your environment" >&2;}
3447    { (exit 1); exit 1; }; }
3448    fi
3449
3450    test "$2" = conftest.file
3451    )
3452 then
3453    # Ok.
3454    :
3455 else
3456    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3457 Check your system clock" >&5
3458 echo "$as_me: error: newly created file is older than distributed files!
3459 Check your system clock" >&2;}
3460    { (exit 1); exit 1; }; }
3461 fi
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 test "$program_prefix" != NONE &&
3465   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3466 # Use a double $ so make ignores it.
3467 test "$program_suffix" != NONE &&
3468   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3469 # Double any \ or $.  echo might interpret backslashes.
3470 # By default was `s,x,x', remove it if useless.
3471 cat <<\_ACEOF >conftest.sed
3472 s/[\\$]/&&/g;s/;s,x,x,$//
3473 _ACEOF
3474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3475 rm conftest.sed
3476
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir=`cd $ac_aux_dir && pwd`
3479
3480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483   am_missing_run="$MISSING --run "
3484 else
3485   am_missing_run=
3486   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3488 fi
3489
3490 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3491   # We used to keeping the `.' as first argument, in order to
3492   # allow $(mkdir_p) to be used without argument.  As in
3493   #   $(mkdir_p) $(somedir)
3494   # where $(somedir) is conditionally defined.  However this is wrong
3495   # for two reasons:
3496   #  1. if the package is installed by a user who cannot write `.'
3497   #     make install will fail,
3498   #  2. the above comment should most certainly read
3499   #     $(mkdir_p) $(DESTDIR)$(somedir)
3500   #     so it does not work when $(somedir) is undefined and
3501   #     $(DESTDIR) is not.
3502   #  To support the latter case, we have to write
3503   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3504   #  so the `.' trick is pointless.
3505   mkdir_p='mkdir -p --'
3506 else
3507   # On NextStep and OpenStep, the `mkdir' command does not
3508   # recognize any option.  It will interpret all options as
3509   # directories to create, and then abort because `.' already
3510   # exists.
3511   for d in ./-p ./--version;
3512   do
3513     test -d $d && rmdir $d
3514   done
3515   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3516   if test -f "$ac_aux_dir/mkinstalldirs"; then
3517     mkdir_p='$(mkinstalldirs)'
3518   else
3519     mkdir_p='$(install_sh) -d'
3520   fi
3521 fi
3522
3523 for ac_prog in gawk mawk nawk awk
3524 do
3525   # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_AWK+set}" = set; then
3530   echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532   if test -n "$AWK"; then
3533   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540   for ac_exec_ext in '' $ac_executable_extensions; do
3541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542     ac_cv_prog_AWK="$ac_prog"
3543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544     break 2
3545   fi
3546 done
3547 done
3548
3549 fi
3550 fi
3551 AWK=$ac_cv_prog_AWK
3552 if test -n "$AWK"; then
3553   echo "$as_me:$LINENO: result: $AWK" >&5
3554 echo "${ECHO_T}$AWK" >&6
3555 else
3556   echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3558 fi
3559
3560   test -n "$AWK" && break
3561 done
3562
3563 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3564 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3565 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3566 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   cat >conftest.make <<\_ACEOF
3570 all:
3571         @echo 'ac_maketemp="$(MAKE)"'
3572 _ACEOF
3573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3574 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3575 if test -n "$ac_maketemp"; then
3576   eval ac_cv_prog_make_${ac_make}_set=yes
3577 else
3578   eval ac_cv_prog_make_${ac_make}_set=no
3579 fi
3580 rm -f conftest.make
3581 fi
3582 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3583   echo "$as_me:$LINENO: result: yes" >&5
3584 echo "${ECHO_T}yes" >&6
3585   SET_MAKE=
3586 else
3587   echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3589   SET_MAKE="MAKE=${MAKE-make}"
3590 fi
3591
3592 rm -rf .tst 2>/dev/null
3593 mkdir .tst 2>/dev/null
3594 if test -d .tst; then
3595   am__leading_dot=.
3596 else
3597   am__leading_dot=_
3598 fi
3599 rmdir .tst 2>/dev/null
3600
3601 DEPDIR="${am__leading_dot}deps"
3602
3603           ac_config_commands="$ac_config_commands depfiles"
3604
3605
3606 am_make=${MAKE-make}
3607 cat > confinc << 'END'
3608 am__doit:
3609         @echo done
3610 .PHONY: am__doit
3611 END
3612 # If we don't find an include directive, just comment out the code.
3613 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3614 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3615 am__include="#"
3616 am__quote=
3617 _am_result=none
3618 # First try GNU make style include.
3619 echo "include confinc" > confmf
3620 # We grep out `Entering directory' and `Leaving directory'
3621 # messages which can occur if `w' ends up in MAKEFLAGS.
3622 # In particular we don't look at `^make:' because GNU make might
3623 # be invoked under some other name (usually "gmake"), in which
3624 # case it prints its new name instead of `make'.
3625 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3626    am__include=include
3627    am__quote=
3628    _am_result=GNU
3629 fi
3630 # Now try BSD make style include.
3631 if test "$am__include" = "#"; then
3632    echo '.include "confinc"' > confmf
3633    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3634       am__include=.include
3635       am__quote="\""
3636       _am_result=BSD
3637    fi
3638 fi
3639
3640
3641 echo "$as_me:$LINENO: result: $_am_result" >&5
3642 echo "${ECHO_T}$_am_result" >&6
3643 rm -f confinc confmf
3644
3645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3646 if test "${enable_dependency_tracking+set}" = set; then
3647   enableval="$enable_dependency_tracking"
3648
3649 fi;
3650 if test "x$enable_dependency_tracking" != xno; then
3651   am_depcomp="$ac_aux_dir/depcomp"
3652   AMDEPBACKSLASH='\'
3653 fi
3654
3655
3656 if test "x$enable_dependency_tracking" != xno; then
3657   AMDEP_TRUE=
3658   AMDEP_FALSE='#'
3659 else
3660   AMDEP_TRUE='#'
3661   AMDEP_FALSE=
3662 fi
3663
3664
3665
3666 # test to see if srcdir already configured
3667 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3668    test -f $srcdir/config.status; then
3669   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3670 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3671    { (exit 1); exit 1; }; }
3672 fi
3673
3674 # test whether we have cygpath
3675 if test -z "$CYGPATH_W"; then
3676   if (cygpath --version) >/dev/null 2>/dev/null; then
3677     CYGPATH_W='cygpath -w'
3678   else
3679     CYGPATH_W=echo
3680   fi
3681 fi
3682
3683
3684 # Define the identity of the package.
3685  PACKAGE='libjava'
3686  VERSION='version-unused'
3687
3688
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE "$PACKAGE"
3691 _ACEOF
3692
3693
3694 cat >>confdefs.h <<_ACEOF
3695 #define VERSION "$VERSION"
3696 _ACEOF
3697
3698 # Some tools Automake needs.
3699
3700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3701
3702
3703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3704
3705
3706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3707
3708
3709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3710
3711
3712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3713
3714 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3715
3716 # Installed binaries are usually stripped using `strip' when the user
3717 # run `make install-strip'.  However `strip' might not be the right
3718 # tool to use in cross-compilation environments, therefore Automake
3719 # will honor the `STRIP' environment variable to overrule this program.
3720 if test "$cross_compiling" != no; then
3721   if test -n "$ac_tool_prefix"; then
3722   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}strip; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_STRIP+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   if test -n "$STRIP"; then
3730   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737   for ac_exec_ext in '' $ac_executable_extensions; do
3738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741     break 2
3742   fi
3743 done
3744 done
3745
3746 fi
3747 fi
3748 STRIP=$ac_cv_prog_STRIP
3749 if test -n "$STRIP"; then
3750   echo "$as_me:$LINENO: result: $STRIP" >&5
3751 echo "${ECHO_T}$STRIP" >&6
3752 else
3753   echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3755 fi
3756
3757 fi
3758 if test -z "$ac_cv_prog_STRIP"; then
3759   ac_ct_STRIP=$STRIP
3760   # Extract the first word of "strip", so it can be a program name with args.
3761 set dummy strip; ac_word=$2
3762 echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   if test -n "$ac_ct_STRIP"; then
3768   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775   for ac_exec_ext in '' $ac_executable_extensions; do
3776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777     ac_cv_prog_ac_ct_STRIP="strip"
3778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782 done
3783
3784   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3785 fi
3786 fi
3787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3788 if test -n "$ac_ct_STRIP"; then
3789   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3790 echo "${ECHO_T}$ac_ct_STRIP" >&6
3791 else
3792   echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794 fi
3795
3796   STRIP=$ac_ct_STRIP
3797 else
3798   STRIP="$ac_cv_prog_STRIP"
3799 fi
3800
3801 fi
3802 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3803
3804 # We need awk for the "check" target.  The system "awk" is bad on
3805 # some platforms.
3806 # Always define AMTAR for backward compatibility.
3807
3808 AMTAR=${AMTAR-"${am_missing_run}tar"}
3809
3810 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3811
3812
3813
3814
3815 depcc="$CC"   am_compiler_list=
3816
3817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823   # We make a subdir and do the tests there.  Otherwise we can end up
3824   # making bogus files that we don't know about and never remove.  For
3825   # instance it was reported that on HP-UX the gcc test will end up
3826   # making a dummy file named `D' -- because `-MD' means `put the output
3827   # in D'.
3828   mkdir conftest.dir
3829   # Copy depcomp to subdir because otherwise we won't find it if we're
3830   # using a relative directory.
3831   cp "$am_depcomp" conftest.dir
3832   cd conftest.dir
3833   # We will build objects and dependencies in a subdirectory because
3834   # it helps to detect inapplicable dependency modes.  For instance
3835   # both Tru64's cc and ICC support -MD to output dependencies as a
3836   # side effect of compilation, but ICC will put the dependencies in
3837   # the current directory while Tru64 will put them in the object
3838   # directory.
3839   mkdir sub
3840
3841   am_cv_CC_dependencies_compiler_type=none
3842   if test "$am_compiler_list" = ""; then
3843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844   fi
3845   for depmode in $am_compiler_list; do
3846     # Setup a source with many dependencies, because some compilers
3847     # like to wrap large dependency lists on column 80 (with \), and
3848     # we should not choose a depcomp mode which is confused by this.
3849     #
3850     # We need to recreate these files for each test, as the compiler may
3851     # overwrite some of them when testing with obscure command lines.
3852     # This happens at least with the AIX C compiler.
3853     : > sub/conftest.c
3854     for i in 1 2 3 4 5 6; do
3855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3857       # Solaris 8's {/usr,}/bin/sh.
3858       touch sub/conftst$i.h
3859     done
3860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861
3862     case $depmode in
3863     nosideeffect)
3864       # after this tag, mechanisms are not by side-effect, so they'll
3865       # only be used when explicitly requested
3866       if test "x$enable_dependency_tracking" = xyes; then
3867         continue
3868       else
3869         break
3870       fi
3871       ;;
3872     none) break ;;
3873     esac
3874     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3875     # mode.  It turns out that the SunPro C++ compiler does not properly
3876     # handle `-M -o', and we need to detect this.
3877     if depmode=$depmode \
3878        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3881          >/dev/null 2>conftest.err &&
3882        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3883        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3884        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3885       # icc doesn't choke on unknown options, it will just issue warnings
3886       # or remarks (even with -Werror).  So we grep stderr for any message
3887       # that says an option was ignored or not supported.
3888       # When given -MP, icc 7.0 and 7.1 complain thusly:
3889       #   icc: Command line warning: ignoring option '-M'; no argument required
3890       # The diagnosis changed in icc 8.0:
3891       #   icc: Command line remark: option '-MP' not supported
3892       if (grep 'ignoring option' conftest.err ||
3893           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3894         am_cv_CC_dependencies_compiler_type=$depmode
3895         break
3896       fi
3897     fi
3898   done
3899
3900   cd ..
3901   rm -rf conftest.dir
3902 else
3903   am_cv_CC_dependencies_compiler_type=none
3904 fi
3905
3906 fi
3907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3910
3911
3912
3913 if
3914   test "x$enable_dependency_tracking" != xno \
3915   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3916   am__fastdepCC_TRUE=
3917   am__fastdepCC_FALSE='#'
3918 else
3919   am__fastdepCC_TRUE='#'
3920   am__fastdepCC_FALSE=
3921 fi
3922
3923
3924 depcc="$CXX"  am_compiler_list=
3925
3926 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3927 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3928 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932   # We make a subdir and do the tests there.  Otherwise we can end up
3933   # making bogus files that we don't know about and never remove.  For
3934   # instance it was reported that on HP-UX the gcc test will end up
3935   # making a dummy file named `D' -- because `-MD' means `put the output
3936   # in D'.
3937   mkdir conftest.dir
3938   # Copy depcomp to subdir because otherwise we won't find it if we're
3939   # using a relative directory.
3940   cp "$am_depcomp" conftest.dir
3941   cd conftest.dir
3942   # We will build objects and dependencies in a subdirectory because
3943   # it helps to detect inapplicable dependency modes.  For instance
3944   # both Tru64's cc and ICC support -MD to output dependencies as a
3945   # side effect of compilation, but ICC will put the dependencies in
3946   # the current directory while Tru64 will put them in the object
3947   # directory.
3948   mkdir sub
3949
3950   am_cv_CXX_dependencies_compiler_type=none
3951   if test "$am_compiler_list" = ""; then
3952      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953   fi
3954   for depmode in $am_compiler_list; do
3955     # Setup a source with many dependencies, because some compilers
3956     # like to wrap large dependency lists on column 80 (with \), and
3957     # we should not choose a depcomp mode which is confused by this.
3958     #
3959     # We need to recreate these files for each test, as the compiler may
3960     # overwrite some of them when testing with obscure command lines.
3961     # This happens at least with the AIX C compiler.
3962     : > sub/conftest.c
3963     for i in 1 2 3 4 5 6; do
3964       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3966       # Solaris 8's {/usr,}/bin/sh.
3967       touch sub/conftst$i.h
3968     done
3969     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971     case $depmode in
3972     nosideeffect)
3973       # after this tag, mechanisms are not by side-effect, so they'll
3974       # only be used when explicitly requested
3975       if test "x$enable_dependency_tracking" = xyes; then
3976         continue
3977       else
3978         break
3979       fi
3980       ;;
3981     none) break ;;
3982     esac
3983     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984     # mode.  It turns out that the SunPro C++ compiler does not properly
3985     # handle `-M -o', and we need to detect this.
3986     if depmode=$depmode \
3987        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3988        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3990          >/dev/null 2>conftest.err &&
3991        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3993        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994       # icc doesn't choke on unknown options, it will just issue warnings
3995       # or remarks (even with -Werror).  So we grep stderr for any message
3996       # that says an option was ignored or not supported.
3997       # When given -MP, icc 7.0 and 7.1 complain thusly:
3998       #   icc: Command line warning: ignoring option '-M'; no argument required
3999       # The diagnosis changed in icc 8.0:
4000       #   icc: Command line remark: option '-MP' not supported
4001       if (grep 'ignoring option' conftest.err ||
4002           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003         am_cv_CXX_dependencies_compiler_type=$depmode
4004         break
4005       fi
4006     fi
4007   done
4008
4009   cd ..
4010   rm -rf conftest.dir
4011 else
4012   am_cv_CXX_dependencies_compiler_type=none
4013 fi
4014
4015 fi
4016 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4017 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4018 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4019
4020
4021
4022 if
4023   test "x$enable_dependency_tracking" != xno \
4024   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4025   am__fastdepCXX_TRUE=
4026   am__fastdepCXX_FALSE='#'
4027 else
4028   am__fastdepCXX_TRUE='#'
4029   am__fastdepCXX_FALSE=
4030 fi
4031
4032
4033
4034
4035 if test -n "$ac_tool_prefix"; then
4036   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}as; ac_word=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_AS+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   if test -n "$AS"; then
4044   ac_cv_prog_AS="$AS" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049   IFS=$as_save_IFS
4050   test -z "$as_dir" && as_dir=.
4051   for ac_exec_ext in '' $ac_executable_extensions; do
4052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053     ac_cv_prog_AS="${ac_tool_prefix}as"
4054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058 done
4059
4060 fi
4061 fi
4062 AS=$ac_cv_prog_AS
4063 if test -n "$AS"; then
4064   echo "$as_me:$LINENO: result: $AS" >&5
4065 echo "${ECHO_T}$AS" >&6
4066 else
4067   echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4069 fi
4070
4071 fi
4072 if test -z "$ac_cv_prog_AS"; then
4073   ac_ct_AS=$AS
4074   # Extract the first word of "as", so it can be a program name with args.
4075 set dummy as; ac_word=$2
4076 echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   if test -n "$ac_ct_AS"; then
4082   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089   for ac_exec_ext in '' $ac_executable_extensions; do
4090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091     ac_cv_prog_ac_ct_AS="as"
4092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093     break 2
4094   fi
4095 done
4096 done
4097
4098 fi
4099 fi
4100 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4101 if test -n "$ac_ct_AS"; then
4102   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4103 echo "${ECHO_T}$ac_ct_AS" >&6
4104 else
4105   echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109   AS=$ac_ct_AS
4110 else
4111   AS="$ac_cv_prog_AS"
4112 fi
4113
4114 if test -n "$ac_tool_prefix"; then
4115   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}ld; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_LD+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$LD"; then
4123   ac_cv_prog_LD="$LD" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_prog_LD="${ac_tool_prefix}ld"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139 fi
4140 fi
4141 LD=$ac_cv_prog_LD
4142 if test -n "$LD"; then
4143   echo "$as_me:$LINENO: result: $LD" >&5
4144 echo "${ECHO_T}$LD" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150 fi
4151 if test -z "$ac_cv_prog_LD"; then
4152   ac_ct_LD=$LD
4153   # Extract the first word of "ld", so it can be a program name with args.
4154 set dummy ld; ac_word=$2
4155 echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   if test -n "$ac_ct_LD"; then
4161   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168   for ac_exec_ext in '' $ac_executable_extensions; do
4169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170     ac_cv_prog_ac_ct_LD="ld"
4171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172     break 2
4173   fi
4174 done
4175 done
4176
4177 fi
4178 fi
4179 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4180 if test -n "$ac_ct_LD"; then
4181   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4182 echo "${ECHO_T}$ac_ct_LD" >&6
4183 else
4184   echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186 fi
4187
4188   LD=$ac_ct_LD
4189 else
4190   LD="$ac_cv_prog_LD"
4191 fi
4192
4193 if test -n "$ac_tool_prefix"; then
4194   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}ar; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_AR+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   if test -n "$AR"; then
4202   ac_cv_prog_AR="$AR" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209   for ac_exec_ext in '' $ac_executable_extensions; do
4210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211     ac_cv_prog_AR="${ac_tool_prefix}ar"
4212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216 done
4217
4218 fi
4219 fi
4220 AR=$ac_cv_prog_AR
4221 if test -n "$AR"; then
4222   echo "$as_me:$LINENO: result: $AR" >&5
4223 echo "${ECHO_T}$AR" >&6
4224 else
4225   echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4227 fi
4228
4229 fi
4230 if test -z "$ac_cv_prog_AR"; then
4231   ac_ct_AR=$AR
4232   # Extract the first word of "ar", so it can be a program name with args.
4233 set dummy ar; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$ac_ct_AR"; then
4240   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249     ac_cv_prog_ac_ct_AR="ar"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255
4256 fi
4257 fi
4258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4259 if test -n "$ac_ct_AR"; then
4260   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4261 echo "${ECHO_T}$ac_ct_AR" >&6
4262 else
4263   echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4265 fi
4266
4267   AR=$ac_ct_AR
4268 else
4269   AR="$ac_cv_prog_AR"
4270 fi
4271
4272 if test -n "$ac_tool_prefix"; then
4273   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_RANLIB+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$RANLIB"; then
4281   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296
4297 fi
4298 fi
4299 RANLIB=$ac_cv_prog_RANLIB
4300 if test -n "$RANLIB"; then
4301   echo "$as_me:$LINENO: result: $RANLIB" >&5
4302 echo "${ECHO_T}$RANLIB" >&6
4303 else
4304   echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308 fi
4309 if test -z "$ac_cv_prog_RANLIB"; then
4310   ac_ct_RANLIB=$RANLIB
4311   # Extract the first word of "ranlib", so it can be a program name with args.
4312 set dummy ranlib; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   if test -n "$ac_ct_RANLIB"; then
4319   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_prog_ac_ct_RANLIB="ranlib"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4336 fi
4337 fi
4338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4339 if test -n "$ac_ct_RANLIB"; then
4340   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4341 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4342 else
4343   echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345 fi
4346
4347   RANLIB=$ac_ct_RANLIB
4348 else
4349   RANLIB="$ac_cv_prog_RANLIB"
4350 fi
4351
4352 for ac_prog in gawk mawk nawk awk
4353 do
4354   # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_AWK+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -n "$AWK"; then
4362   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369   for ac_exec_ext in '' $ac_executable_extensions; do
4370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371     ac_cv_prog_AWK="$ac_prog"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377
4378 fi
4379 fi
4380 AWK=$ac_cv_prog_AWK
4381 if test -n "$AWK"; then
4382   echo "$as_me:$LINENO: result: $AWK" >&5
4383 echo "${ECHO_T}$AWK" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389   test -n "$AWK" && break
4390 done
4391
4392 for ac_prog in jar fastjar gjar
4393 do
4394   # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_JAR+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if test -n "$JAR"; then
4402   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409   for ac_exec_ext in '' $ac_executable_extensions; do
4410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411     ac_cv_prog_JAR="$ac_prog"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417
4418 fi
4419 fi
4420 JAR=$ac_cv_prog_JAR
4421 if test -n "$JAR"; then
4422   echo "$as_me:$LINENO: result: $JAR" >&5
4423 echo "${ECHO_T}$JAR" >&6
4424 else
4425   echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 fi
4428
4429   test -n "$JAR" && break
4430 done
4431 test -n "$JAR" || JAR="no"
4432
4433 # Extract the first word of "zip", so it can be a program name with args.
4434 set dummy zip; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_path_ZIP+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   case $ZIP in
4441   [\\/]* | ?:[\\/]*)
4442   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4443   ;;
4444   *)
4445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4460   ;;
4461 esac
4462 fi
4463 ZIP=$ac_cv_path_ZIP
4464
4465 if test -n "$ZIP"; then
4466   echo "$as_me:$LINENO: result: $ZIP" >&5
4467 echo "${ECHO_T}$ZIP" >&6
4468 else
4469   echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 # Extract the first word of "unzip", so it can be a program name with args.
4474 set dummy unzip; ac_word=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_path_UNZIP+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   case $UNZIP in
4481   [\\/]* | ?:[\\/]*)
4482   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4483   ;;
4484   *)
4485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498
4499   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4500   ;;
4501 esac
4502 fi
4503 UNZIP=$ac_cv_path_UNZIP
4504
4505 if test -n "$UNZIP"; then
4506   echo "$as_me:$LINENO: result: $UNZIP" >&5
4507 echo "${ECHO_T}$UNZIP" >&6
4508 else
4509   echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513
4514 # We need a jar that supports -@.  This is a GNU extension.
4515 if test "$JAR" != no; then
4516    rm -f config-test.jar
4517    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4518    if test -f config-test.jar; then
4519      rm -f config-test.jar
4520    else
4521      JAR=no
4522    fi
4523 fi
4524
4525 # Prefer the jar we found, but fall back to our jar script.
4526 if test "$JAR" = no; then
4527   if test "$ZIP" = no; then
4528     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4529 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4530    { (exit 1); exit 1; }; }
4531   else
4532     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4533     JAR=`pwd`/scripts/jar
4534   fi
4535 fi
4536
4537 # Find a good install program.  We prefer a C program (faster),
4538 # so one script is as good as another.  But avoid the broken or
4539 # incompatible versions:
4540 # SysV /etc/install, /usr/sbin/install
4541 # SunOS /usr/etc/install
4542 # IRIX /sbin/install
4543 # AIX /bin/install
4544 # AmigaOS /C/install, which installs bootblocks on floppy discs
4545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548 # OS/2's system install, which has a completely different semantic
4549 # ./install, which can be erroneously created by make from ./install.sh.
4550 # Reject install programs that cannot install multiple files.
4551 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4552 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4553 if test -z "$INSTALL"; then
4554 if test "${ac_cv_path_install+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   # Account for people who put trailing slashes in PATH elements.
4563 case $as_dir/ in
4564   ./ | .// | /cC/* | \
4565   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4566   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4567   /usr/ucb/* ) ;;
4568   *)
4569     # OSF1 and SCO ODT 3.0 have their own names for install.
4570     # Don't use installbsd from OSF since it installs stuff as root
4571     # by default.
4572     for ac_prog in ginstall scoinst install; do
4573       for ac_exec_ext in '' $ac_executable_extensions; do
4574         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4575           if test $ac_prog = install &&
4576             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4577             # AIX install.  It has an incompatible calling convention.
4578             :
4579           elif test $ac_prog = install &&
4580             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4581             # program-specific install script used by HP pwplus--don't use.
4582             :
4583           else
4584             rm -rf conftest.one conftest.two conftest.dir
4585             echo one > conftest.one
4586             echo two > conftest.two
4587             mkdir conftest.dir
4588             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4589               test -s conftest.one && test -s conftest.two &&
4590               test -s conftest.dir/conftest.one &&
4591               test -s conftest.dir/conftest.two
4592             then
4593               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4594               break 3
4595             fi
4596           fi
4597         fi
4598       done
4599     done
4600     ;;
4601 esac
4602 done
4603
4604 rm -rf conftest.one conftest.two conftest.dir
4605
4606 fi
4607   if test "${ac_cv_path_install+set}" = set; then
4608     INSTALL=$ac_cv_path_install
4609   else
4610     # As a last resort, use the slow shell script.  Don't cache a
4611     # value for INSTALL within a source directory, because that will
4612     # break other packages using the cache if that directory is
4613     # removed, or if the value is a relative name.
4614     INSTALL=$ac_install_sh
4615   fi
4616 fi
4617 echo "$as_me:$LINENO: result: $INSTALL" >&5
4618 echo "${ECHO_T}$INSTALL" >&6
4619
4620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4621 # It thinks the first close brace ends the variable substitution.
4622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4623
4624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4625
4626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4627
4628
4629 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4630 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4631     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4632 if test "${enable_maintainer_mode+set}" = set; then
4633   enableval="$enable_maintainer_mode"
4634   USE_MAINTAINER_MODE=$enableval
4635 else
4636   USE_MAINTAINER_MODE=no
4637 fi;
4638   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4639 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4640
4641
4642 if test $USE_MAINTAINER_MODE = yes; then
4643   MAINTAINER_MODE_TRUE=
4644   MAINTAINER_MODE_FALSE='#'
4645 else
4646   MAINTAINER_MODE_TRUE='#'
4647   MAINTAINER_MODE_FALSE=
4648 fi
4649
4650   MAINT=$MAINTAINER_MODE_TRUE
4651
4652
4653
4654
4655
4656 # configure.host sets the following important variables
4657 #       libgcj_cflags    - host specific C compiler flags
4658 #       libgcj_cxxflags  - host specific C++ compiler flags
4659 #       libgcj_javaflags - host specific Java compiler flags
4660
4661 libgcj_cflags=
4662 libgcj_cxxflags=
4663 libgcj_javaflags=
4664
4665 . ${srcdir}/configure.host
4666
4667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4669 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4673 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4674   acl_cv_prog_gnu_ld=yes
4675 else
4676   acl_cv_prog_gnu_ld=no
4677 fi
4678 fi
4679 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4680 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4681 with_gnu_ld=$acl_cv_prog_gnu_ld
4682
4683 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4684 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4685 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688
4689 acl_cv_prog_gnu_ld_symbolic=no
4690
4691 if test x"$with_gnu_ld" = x"yes"; then
4692   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4693     acl_cv_prog_gnu_ld_symbolic=yes
4694   fi
4695 fi
4696 fi
4697 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4698 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4699 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4700   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4701 else
4702   SYMBOLIC_LDFLAGS=''
4703 fi
4704
4705 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4706 if test -z "$libgcj_ld_symbolic"; then
4707   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4708 fi
4709
4710 LIBGCJ_CFLAGS="${libgcj_cflags}"
4711 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4712 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4713 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4714 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4715
4716
4717
4718
4719
4720
4721 # Only use libltdl for non-newlib builds.
4722 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4723    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4724 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4725 library_names_spec=
4726 libname_spec='lib$name'
4727 soname_spec=
4728 shrext=".so"
4729 postinstall_cmds=
4730 postuninstall_cmds=
4731 finish_cmds=
4732 finish_eval=
4733 shlibpath_var=
4734 shlibpath_overrides_runpath=unknown
4735 version_type=none
4736 dynamic_linker="$host_os ld.so"
4737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4738 if test "$GCC" = yes; then
4739   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4740   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4741     # if the path contains ";" then we assume it to be the separator
4742     # otherwise default to the standard path separator (i.e. ":") - it is
4743     # assumed that no part of a normal pathname contains ";" but that should
4744     # okay in the real world where ";" in dirpaths is itself problematic.
4745     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4746   else
4747     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4748   fi
4749 else
4750   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4751 fi
4752 need_lib_prefix=unknown
4753 hardcode_into_libs=no
4754
4755 # when you set need_version to no, make sure it does not cause -set_version
4756 # flags to be left without arguments
4757 need_version=unknown
4758
4759 case $host_os in
4760 aix3*)
4761   version_type=linux
4762   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4763   shlibpath_var=LIBPATH
4764
4765   # AIX 3 has no versioning support, so we append a major version to the name.
4766   soname_spec='${libname}${release}${shared_ext}$major'
4767   ;;
4768
4769 aix[4-9]*)
4770   version_type=linux
4771   need_lib_prefix=no
4772   need_version=no
4773   hardcode_into_libs=yes
4774   if test "$host_cpu" = ia64; then
4775     # AIX 5 supports IA64
4776     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4777     shlibpath_var=LD_LIBRARY_PATH
4778   else
4779     # With GCC up to 2.95.x, collect2 would create an import file
4780     # for dependence libraries.  The import file would start with
4781     # the line `#! .'.  This would cause the generated library to
4782     # depend on `.', always an invalid library.  This was fixed in
4783     # development snapshots of GCC prior to 3.0.
4784     case $host_os in
4785       aix4 | aix4.[01] | aix4.[01].*)
4786       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4787            echo ' yes '
4788            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4789         :
4790       else
4791         can_build_shared=no
4792       fi
4793       ;;
4794     esac
4795     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4796     # soname into executable. Probably we can add versioning support to
4797     # collect2, so additional links can be useful in future.
4798     if test "$aix_use_runtimelinking" = yes; then
4799       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4800       # instead of lib<name>.a to let people know that these are not
4801       # typical AIX shared libraries.
4802       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4803     else
4804       # We preserve .a as extension for shared libraries through AIX4.2
4805       # and later when we are not doing run time linking.
4806       library_names_spec='${libname}${release}.a $libname.a'
4807       soname_spec='${libname}${release}${shared_ext}$major'
4808     fi
4809     shlibpath_var=LIBPATH
4810   fi
4811   ;;
4812
4813 amigaos*)
4814   library_names_spec='$libname.ixlibrary $libname.a'
4815   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4816   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'
4817   ;;
4818
4819 beos*)
4820   library_names_spec='${libname}${shared_ext}'
4821   dynamic_linker="$host_os ld.so"
4822   shlibpath_var=LIBRARY_PATH
4823   ;;
4824
4825 bsdi4*)
4826   version_type=linux
4827   need_version=no
4828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829   soname_spec='${libname}${release}${shared_ext}$major'
4830   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4831   shlibpath_var=LD_LIBRARY_PATH
4832   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4833   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4834   # the default ld.so.conf also contains /usr/contrib/lib and
4835   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4836   # libtool to hard-code these into programs
4837   ;;
4838
4839 cygwin* | mingw* | pw32*)
4840   version_type=windows
4841   shrext=".dll"
4842   need_version=no
4843   need_lib_prefix=no
4844
4845   case $GCC,$host_os in
4846   yes,cygwin* | yes,mingw* | yes,pw32*)
4847     library_names_spec='$libname.dll.a'
4848     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4849     postinstall_cmds='base_file=`basename \${file}`~
4850       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4851       dldir=$destdir/`dirname \$dlpath`~
4852       test -d \$dldir || mkdir -p \$dldir~
4853       $install_prog $dir/$dlname \$dldir/$dlname'
4854     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4855       dlpath=$dir/\$dldll~
4856        $rm \$dlpath'
4857     shlibpath_overrides_runpath=yes
4858
4859     case $host_os in
4860     cygwin*)
4861       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4862       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4863       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4864       ;;
4865     mingw*)
4866       # MinGW DLLs use traditional 'lib' prefix
4867       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4868       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4869       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4870         # It is most probably a Windows format PATH printed by
4871         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4872         # path with ; separators, and with drive letters. We can handle the
4873         # drive letters (cygwin fileutils understands them), so leave them,
4874         # especially as we might pass files found there to a mingw objdump,
4875         # which wouldn't understand a cygwinified path. Ahh.
4876         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4877       else
4878         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4879       fi
4880       ;;
4881     pw32*)
4882       # pw32 DLLs use 'pw' prefix rather than 'lib'
4883       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4884       ;;
4885     esac
4886     ;;
4887
4888   *)
4889     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4890     ;;
4891   esac
4892   dynamic_linker='Win32 ld.exe'
4893   # FIXME: first we should search . and the directory the executable is in
4894   shlibpath_var=PATH
4895   ;;
4896
4897 darwin* | rhapsody*)
4898   dynamic_linker="$host_os dyld"
4899   version_type=darwin
4900   need_lib_prefix=no
4901   need_version=no
4902   # FIXME: Relying on posixy $() will cause problems for
4903   #        cross-compilation, but unfortunately the echo tests do not
4904   #        yet detect zsh echo's removal of \ escapes.
4905   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4906   soname_spec='${libname}${release}${major}$shared_ext'
4907   shlibpath_overrides_runpath=yes
4908   shlibpath_var=DYLD_LIBRARY_PATH
4909   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4910   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4911   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4912   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"`
4913   fi
4914   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4915   ;;
4916
4917 dgux*)
4918   version_type=linux
4919   need_lib_prefix=no
4920   need_version=no
4921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4922   soname_spec='${libname}${release}${shared_ext}$major'
4923   shlibpath_var=LD_LIBRARY_PATH
4924   ;;
4925
4926 freebsd1*)
4927   dynamic_linker=no
4928   ;;
4929
4930 freebsd*)
4931   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4932   version_type=freebsd-$objformat
4933   case $version_type in
4934     freebsd-elf*)
4935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4936       need_version=no
4937       need_lib_prefix=no
4938       ;;
4939     freebsd-*)
4940       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4941       need_version=yes
4942       ;;
4943   esac
4944   shlibpath_var=LD_LIBRARY_PATH
4945   case $host_os in
4946   freebsd2*)
4947     shlibpath_overrides_runpath=yes
4948     ;;
4949   freebsd3.01* | freebsdelf3.01*)
4950     shlibpath_overrides_runpath=yes
4951     hardcode_into_libs=yes
4952     ;;
4953   *) # from 3.2 on
4954     shlibpath_overrides_runpath=no
4955     hardcode_into_libs=yes
4956     ;;
4957   esac
4958   ;;
4959
4960 gnu*)
4961   version_type=linux
4962   need_lib_prefix=no
4963   need_version=no
4964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4965   soname_spec='${libname}${release}${shared_ext}$major'
4966   shlibpath_var=LD_LIBRARY_PATH
4967   hardcode_into_libs=yes
4968   ;;
4969
4970 hpux9* | hpux10* | hpux11*)
4971   # Give a soname corresponding to the major version so that dld.sl refuses to
4972   # link against other versions.
4973   version_type=sunos
4974   need_lib_prefix=no
4975   need_version=no
4976   case "$host_cpu" in
4977   ia64*)
4978     shrext='.so'
4979     hardcode_into_libs=yes
4980     dynamic_linker="$host_os dld.so"
4981     shlibpath_var=LD_LIBRARY_PATH
4982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4984     soname_spec='${libname}${release}${shared_ext}$major'
4985     if test "X$HPUX_IA64_MODE" = X32; then
4986       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4987     else
4988       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4989     fi
4990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4991     ;;
4992    hppa*64*)
4993      shrext='.sl'
4994      hardcode_into_libs=yes
4995      dynamic_linker="$host_os dld.sl"
4996      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4997      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4998      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4999      soname_spec='${libname}${release}${shared_ext}$major'
5000      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5001      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5002      ;;
5003    *)
5004     shrext='.sl'
5005     dynamic_linker="$host_os dld.sl"
5006     shlibpath_var=SHLIB_PATH
5007     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5009     soname_spec='${libname}${release}${shared_ext}$major'
5010     ;;
5011   esac
5012   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5013   postinstall_cmds='chmod 555 $lib'
5014   ;;
5015
5016 irix5* | irix6* | nonstopux*)
5017   case $host_os in
5018     nonstopux*) version_type=nonstopux ;;
5019     *)
5020         if test "$lt_cv_prog_gnu_ld" = yes; then
5021                 version_type=linux
5022         else
5023                 version_type=irix
5024         fi ;;
5025   esac
5026   need_lib_prefix=no
5027   need_version=no
5028   soname_spec='${libname}${release}${shared_ext}$major'
5029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5030   case $host_os in
5031   irix5* | nonstopux*)
5032     libsuff= shlibsuff=
5033     ;;
5034   *)
5035     case $LD in # libtool.m4 will add one of these switches to LD
5036     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5037       libsuff= shlibsuff= libmagic=32-bit;;
5038     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5039       libsuff=32 shlibsuff=N32 libmagic=N32;;
5040     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5041       libsuff=64 shlibsuff=64 libmagic=64-bit;;
5042     *) libsuff= shlibsuff= libmagic=never-match;;
5043     esac
5044     ;;
5045   esac
5046   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5047   shlibpath_overrides_runpath=no
5048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5050   hardcode_into_libs=yes
5051   ;;
5052
5053 # No shared lib support for Linux oldld, aout, or coff.
5054 linux*oldld* | linux*aout* | linux*coff*)
5055   dynamic_linker=no
5056   ;;
5057
5058 # This must be Linux ELF.
5059 linux*|k*bsd*-gnu)
5060   version_type=linux
5061   need_lib_prefix=no
5062   need_version=no
5063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5064   soname_spec='${libname}${release}${shared_ext}$major'
5065   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5066   shlibpath_var=LD_LIBRARY_PATH
5067   shlibpath_overrides_runpath=no
5068   # This implies no fast_install, which is unacceptable.
5069   # Some rework will be needed to allow for fast_install
5070   # before this can be enabled.
5071   hardcode_into_libs=yes
5072
5073   # We used to test for /lib/ld.so.1 and disable shared libraries on
5074   # powerpc, because MkLinux only supported shared libraries with the
5075   # GNU dynamic linker.  Since this was broken with cross compilers,
5076   # most powerpc-linux boxes support dynamic linking these days and
5077   # people can always --disable-shared, the test was removed, and we
5078   # assume the GNU/Linux dynamic linker is in use.
5079   dynamic_linker='GNU/Linux ld.so'
5080   ;;
5081
5082 netbsd*)
5083   version_type=sunos
5084   need_lib_prefix=no
5085   need_version=no
5086   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5088     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5089     dynamic_linker='NetBSD (a.out) ld.so'
5090   else
5091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5092     soname_spec='${libname}${release}${shared_ext}$major'
5093     dynamic_linker='NetBSD ld.elf_so'
5094   fi
5095   shlibpath_var=LD_LIBRARY_PATH
5096   shlibpath_overrides_runpath=yes
5097   hardcode_into_libs=yes
5098   ;;
5099
5100 newsos6)
5101   version_type=linux
5102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5103   shlibpath_var=LD_LIBRARY_PATH
5104   shlibpath_overrides_runpath=yes
5105   ;;
5106
5107 nto-qnx)
5108   version_type=linux
5109   need_lib_prefix=no
5110   need_version=no
5111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5112   soname_spec='${libname}${release}${shared_ext}$major'
5113   shlibpath_var=LD_LIBRARY_PATH
5114   shlibpath_overrides_runpath=yes
5115   ;;
5116
5117 openbsd*)
5118   version_type=sunos
5119   need_lib_prefix=no
5120   need_version=no
5121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5123   shlibpath_var=LD_LIBRARY_PATH
5124   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5125     case $host_os in
5126       openbsd2.[89] | openbsd2.[89].*)
5127         shlibpath_overrides_runpath=no
5128         ;;
5129       *)
5130         shlibpath_overrides_runpath=yes
5131         ;;
5132       esac
5133   else
5134     shlibpath_overrides_runpath=yes
5135   fi
5136   ;;
5137
5138 os2*)
5139   libname_spec='$name'
5140   shrext=".dll"
5141   need_lib_prefix=no
5142   library_names_spec='$libname${shared_ext} $libname.a'
5143   dynamic_linker='OS/2 ld.exe'
5144   shlibpath_var=LIBPATH
5145   ;;
5146
5147 osf3* | osf4* | osf5*)
5148   version_type=osf
5149   need_lib_prefix=no
5150   need_version=no
5151   soname_spec='${libname}${release}${shared_ext}$major'
5152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5153   shlibpath_var=LD_LIBRARY_PATH
5154   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5155   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5156   ;;
5157
5158 sco3.2v5*)
5159   version_type=osf
5160   soname_spec='${libname}${release}${shared_ext}$major'
5161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5162   shlibpath_var=LD_LIBRARY_PATH
5163   ;;
5164
5165 solaris*)
5166   version_type=linux
5167   need_lib_prefix=no
5168   need_version=no
5169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5170   soname_spec='${libname}${release}${shared_ext}$major'
5171   shlibpath_var=LD_LIBRARY_PATH
5172   shlibpath_overrides_runpath=yes
5173   hardcode_into_libs=yes
5174   # ldd complains unless libraries are executable
5175   postinstall_cmds='chmod +x $lib'
5176   ;;
5177
5178 sunos4*)
5179   version_type=sunos
5180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5182   shlibpath_var=LD_LIBRARY_PATH
5183   shlibpath_overrides_runpath=yes
5184   if test "$with_gnu_ld" = yes; then
5185     need_lib_prefix=no
5186   fi
5187   need_version=yes
5188   ;;
5189
5190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5191   version_type=linux
5192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5193   soname_spec='${libname}${release}${shared_ext}$major'
5194   shlibpath_var=LD_LIBRARY_PATH
5195   case $host_vendor in
5196     sni)
5197       shlibpath_overrides_runpath=no
5198       need_lib_prefix=no
5199       export_dynamic_flag_spec='${wl}-Blargedynsym'
5200       runpath_var=LD_RUN_PATH
5201       ;;
5202     siemens)
5203       need_lib_prefix=no
5204       ;;
5205     motorola)
5206       need_lib_prefix=no
5207       need_version=no
5208       shlibpath_overrides_runpath=no
5209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5210       ;;
5211   esac
5212   ;;
5213
5214 sysv4*MP*)
5215   if test -d /usr/nec ;then
5216     version_type=linux
5217     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5218     soname_spec='$libname${shared_ext}.$major'
5219     shlibpath_var=LD_LIBRARY_PATH
5220   fi
5221   ;;
5222
5223 uts4*)
5224   version_type=linux
5225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5226   soname_spec='${libname}${release}${shared_ext}$major'
5227   shlibpath_var=LD_LIBRARY_PATH
5228   ;;
5229
5230 *)
5231   dynamic_linker=no
5232   ;;
5233 esac
5234 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5235 echo "${ECHO_T}$dynamic_linker" >&6
5236 test "$dynamic_linker" = no && can_build_shared=no
5237
5238
5239 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5240 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5241 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   libltdl_cv_shlibpath_var="$shlibpath_var"
5245 fi
5246 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5247 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5248 if test -n "$libltdl_cv_shlibpath_var"; then
5249
5250 cat >>confdefs.h <<_ACEOF
5251 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5252 _ACEOF
5253
5254 fi
5255
5256 fi
5257
5258                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5259
5260
5261 # See if the user has requested runtime debugging.
5262 LIBGCJDEBUG="disable"
5263
5264 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5265 if test "${enable_libgcj_debug+set}" = set; then
5266   enableval="$enable_libgcj_debug"
5267   if test "$enable_libgcj_debug" = yes; then
5268
5269 cat >>confdefs.h <<\_ACEOF
5270 #define DEBUG 1
5271 _ACEOF
5272
5273     LIBGCJDEBUG="enable"
5274   fi
5275 fi;
5276
5277
5278 # Check whether --with-escher or --without-escher was given.
5279 if test "${with_escher+set}" = set; then
5280   withval="$with_escher"
5281
5282 fi;
5283 case "$with_escher" in
5284 "")
5285         use_escher=false
5286         ;;
5287 "no")
5288         use_escher=false
5289         ;;
5290 "yes")
5291         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5292 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5293    { (exit 1); exit 1; }; }
5294         ;;
5295 *)
5296         use_escher=true
5297         ;;
5298 esac
5299
5300 # Determine which AWT peer libraries to build
5301 # Check whether --enable-java-awt or --disable-java-awt was given.
5302 if test "${enable_java_awt+set}" = set; then
5303   enableval="$enable_java_awt"
5304
5305 fi;
5306
5307 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5308 use_xlib_awt=""
5309 use_gtk_awt=""
5310 use_qt_awt=""
5311 use_x_awt=""
5312 # The default toolkit to use is the first one specified.
5313 TOOLKIT=
5314
5315
5316 for peer in $peerlibs ; do
5317   case $peer in
5318     xlib)
5319       if test "$no_x" = yes; then
5320         echo "*** xlib peers requested but no X library available" 1>&2
5321         exit 1
5322       else
5323         use_xlib_awt="yes"
5324         if test -z "$TOOLKIT"; then
5325            TOOLKIT=gnu.awt.xlib.XToolkit
5326         fi
5327       fi
5328       ;;
5329     gtk)
5330       if test "$no_x" = yes; then
5331          echo "*** gtk peers requested but no X library available" 1>&2
5332          exit 1
5333       else
5334          use_gtk_awt=yes
5335          if test -z "$TOOLKIT"; then
5336             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5337          fi
5338       fi
5339       ;;
5340     qt)
5341       if test "$no_x" = yes; then
5342          # Perhaps we should admit the possibility of embedded Qt.
5343          echo "*** Qt peers requested but no X library available" 1>&2
5344          exit 1
5345       else
5346          use_qt_awt=yes
5347          if test -z "$TOOLKIT"; then
5348             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5349          fi
5350       fi
5351       ;;
5352     x)
5353       use_x_awt=yes
5354       if test -z "$TOOLKIT"; then
5355          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5356       fi
5357       ;;
5358     no)
5359       use_xlib_awt=
5360       use_gtk_awt=
5361       use_qt_awt=
5362       use_x_awt=
5363       break
5364       ;;
5365     *)
5366       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5367       exit 1
5368   esac
5369 done
5370
5371
5372
5373 if test "$use_xlib_awt" = yes; then
5374   XLIB_AWT_TRUE=
5375   XLIB_AWT_FALSE='#'
5376 else
5377   XLIB_AWT_TRUE='#'
5378   XLIB_AWT_FALSE=
5379 fi
5380
5381
5382
5383 if test "$use_x_awt" = yes; then
5384   X_AWT_TRUE=
5385   X_AWT_FALSE='#'
5386 else
5387   X_AWT_TRUE='#'
5388   X_AWT_FALSE=
5389 fi
5390
5391
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define AWT_TOOLKIT "$TOOLKIT"
5395 _ACEOF
5396
5397
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define LIBGCJ_PREFIX "$prefix"
5401 _ACEOF
5402
5403
5404 # Create standard.omit based on decisions we just made.
5405 cp $srcdir/standard.omit.in standard.omit
5406 if test "$use_xlib_awt" != yes; then
5407    echo gnu/awt/xlib >> standard.omit
5408    echo gnu/gcj/xlib >> standard.omit
5409 fi
5410 if test "$use_x_awt" != yes; then
5411    echo gnu/java/awt/peer/x >> standard.omit
5412 fi
5413
5414 # Tools that need to be compiled against classpath's tools classes
5415 : > vm-tools-packages
5416 for package in gnu/gcj/tools/gc_analyze ; do
5417     echo $package >> standard.omit
5418     echo $package >> vm-tools-packages
5419 done
5420
5421 if test -z "${with_multisubdir}"; then
5422    builddotdot=.
5423 else
5424    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5425 fi
5426
5427 NATIVE=yes
5428
5429 # Which gcj and host gcj (for ecjx) do we use?
5430 which_gcj=default
5431 host_exeext=${ac_exeext}
5432 GCJ_FOR_ECJX=
5433 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5434 if test -n "${with_cross_host}"; then
5435   # We are being configured with a cross compiler. We can't
5436   # use ac_exeext, because that is for the target platform.
5437   NATIVE=no
5438   cross_host_exeext=
5439   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5440   case "${with_cross_host}" in
5441      *mingw* | *cygwin*)
5442          cross_host_exeext=.exe
5443      ;;
5444   esac
5445   host_exeext=${cross_host_exeext}
5446   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5447      if test x"$build_noncanonical" = x"$with_cross_host"; then
5448         # Ordinary cross (host!=target and host=build)
5449         which_gcj=built
5450      else
5451         # Canadian cross (host!=target and host!=build)
5452         which_gcj=cross
5453      fi
5454   else
5455      which_gcj=cross
5456   fi
5457 else
5458   # We are being configured with a native or crossed-native compiler
5459   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5460      if test x"$build" = x"$host"; then
5461         # True native build (host=target and host=build)
5462         which_gcj=built
5463      else
5464         # Crossed-native build (host=target and host!=build)
5465         which_gcj=cross
5466      fi
5467   else
5468      which_gcj=path
5469   fi
5470 fi
5471 case "${which_gcj}" in
5472    built)
5473       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5474       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5475    ;;
5476    cross)
5477       if test "x${with_newlib}" = "xyes"; then
5478          # FIXME (comment): Why is this needed?
5479          GCC_UNWIND_INCLUDE=
5480          GCJ="${target_noncanonical}-gcj"
5481       else
5482          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5483       fi
5484       GCJH='$(target_noncanonical)-gcjh'
5485    ;;
5486    path)
5487       GCJ="gcj -B`${PWDCMD-pwd}`/"
5488       GCJH=gcjh
5489    ;;
5490 esac
5491 JAVAC="$GCJ -C"
5492 export JAVAC
5493
5494
5495
5496
5497
5498 # Create it, so that compile/link tests don't fail
5499 test -f libgcj.spec || touch libgcj.spec
5500
5501
5502
5503 # Set up to configure Classpath.
5504 # FIXME: no supported way to pass args in autoconf.
5505 # Disable tool wrappers to avoid ltdl.h configure check.
5506 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5507 ac_configure_args="$ac_configure_args --disable-load-library"
5508 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5509 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5510 dir1=`cd $srcdir && pwd`
5511 dir2=`pwd`
5512 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5513 ac_configure_args="$ac_configure_args --disable-core-jni"
5514 ac_configure_args="$ac_configure_args --disable-examples"
5515 ac_configure_args="$ac_configure_args --with-glibj=build"
5516 if test "$plugin_enabled" != yes; then
5517   ac_configure_args="$ac_configure_args --disable-plugin"
5518 fi
5519 if test "$gconf_enabled" != yes; then
5520   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5521   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5522 fi
5523 if test "$use_gtk_awt" != yes; then
5524   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5525 fi
5526 if test "$use_qt_awt" != yes; then
5527   ac_configure_args="$ac_configure_args --disable-qt-peer"
5528 else
5529   # We need this as qt is disabled by default in classpath.
5530   ac_configure_args="$ac_configure_args --enable-qt-peer"
5531 fi
5532 if test "$use_x_awt" != yes; then
5533   ac_configure_args="$ac_configure_args --without-escher"
5534 else
5535   # We need this as escher is disabled by default in classpath.
5536   if test "$use_escher" != true; then
5537     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5538 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5539    { (exit 1); exit 1; }; }
5540   else
5541     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5542   fi
5543 fi
5544 if test "x$BUILD_GJDOC" = xno; then
5545   ac_configure_args="$ac_configure_args --disable-gjdoc"
5546 fi
5547 # -Werror causes unavoidable problems in code using alsa.
5548 ac_configure_args="$ac_configure_args --disable-regen-headers"
5549 ac_configure_args="$ac_configure_args --disable-Werror"
5550
5551 # Only use libltdl for non-newlib builds.
5552 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5553      case $enable_ltdl_convenience in
5554   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5555 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557   "") enable_ltdl_convenience=yes
5558       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5559   esac
5560   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5561   LTDLINCL='-I${top_srcdir}/''libltdl'
5562   # For backwards non-gettext consistent compatibility...
5563   INCLTDL="$LTDLINCL"
5564
5565    enable_dlopen=yes
5566
5567
5568
5569    DIRLTDL=libltdl
5570
5571 cat >>confdefs.h <<\_ACEOF
5572 #define USE_LTDL 1
5573 _ACEOF
5574
5575    # Sigh.  Libtool's macro doesn't do the right thing.
5576    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5577    # FIXME: this is a hack.
5578    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5579    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5580 fi
5581
5582
5583
5584 case `pwd` in
5585   *\ * | *\     *)
5586     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5587 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5588 esac
5589
5590
5591
5592 macro_version='2.2.6'
5593 macro_revision='1.3012'
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 ltmain="$ac_aux_dir/ltmain.sh"
5608
5609 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5610 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5611 if test "${lt_cv_path_SED+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   # Loop through the user's path and test for sed and gsed.
5615 # Then use that list of sed's as ones to test for truncation.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for lt_ac_prog in sed gsed; do
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5624         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5625       fi
5626     done
5627   done
5628 done
5629 IFS=$as_save_IFS
5630 lt_ac_max=0
5631 lt_ac_count=0
5632 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5633 # along with /bin/sed that truncates output.
5634 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5635   test ! -f $lt_ac_sed && continue
5636   cat /dev/null > conftest.in
5637   lt_ac_count=0
5638   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5639   # Check for GNU sed and select it if it is found.
5640   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5641     lt_cv_path_SED=$lt_ac_sed
5642     break
5643   fi
5644   while true; do
5645     cat conftest.in conftest.in >conftest.tmp
5646     mv conftest.tmp conftest.in
5647     cp conftest.in conftest.nl
5648     echo >>conftest.nl
5649     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5650     cmp -s conftest.out conftest.nl || break
5651     # 10000 chars as input seems more than enough
5652     test $lt_ac_count -gt 10 && break
5653     lt_ac_count=`expr $lt_ac_count + 1`
5654     if test $lt_ac_count -gt $lt_ac_max; then
5655       lt_ac_max=$lt_ac_count
5656       lt_cv_path_SED=$lt_ac_sed
5657     fi
5658   done
5659 done
5660
5661 fi
5662
5663 SED=$lt_cv_path_SED
5664
5665 echo "$as_me:$LINENO: result: $SED" >&5
5666 echo "${ECHO_T}$SED" >&6
5667
5668 test -z "$SED" && SED=sed
5669 Xsed="$SED -e 1s/^X//"
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 echo "$as_me:$LINENO: checking for egrep" >&5
5682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5683 if test "${ac_cv_prog_egrep+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5687     then ac_cv_prog_egrep='grep -E'
5688     else ac_cv_prog_egrep='egrep'
5689     fi
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5692 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5693  EGREP=$ac_cv_prog_egrep
5694
5695
5696 echo "$as_me:$LINENO: checking for fgrep" >&5
5697 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5698 if test "${ac_cv_prog_fgrep+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5702     then ac_cv_prog_fgrep='grep -F'
5703     else ac_cv_prog_fgrep='fgrep'
5704     fi
5705 fi
5706 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5707 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5708  FGREP=$ac_cv_prog_fgrep
5709
5710
5711 test -z "$GREP" && GREP=grep
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5732 if test "${with_gnu_ld+set}" = set; then
5733   withval="$with_gnu_ld"
5734   test "$withval" = no || with_gnu_ld=yes
5735 else
5736   with_gnu_ld=no
5737 fi;
5738 ac_prog=ld
5739 if test "$GCC" = yes; then
5740   # Check if gcc -print-prog-name=ld gives a path.
5741   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5742 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5743   case $host in
5744   *-*-mingw*)
5745     # gcc leaves a trailing carriage return which upsets mingw
5746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5747   *)
5748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5749   esac
5750   case $ac_prog in
5751     # Accept absolute paths.
5752     [\\/]* | ?:[\\/]*)
5753       re_direlt='/[^/][^/]*/\.\./'
5754       # Canonicalize the pathname of ld
5755       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5756       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5757         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5758       done
5759       test -z "$LD" && LD="$ac_prog"
5760       ;;
5761   "")
5762     # If it fails, then pretend we aren't using GCC.
5763     ac_prog=ld
5764     ;;
5765   *)
5766     # If it is relative, then search for the first ld in PATH.
5767     with_gnu_ld=unknown
5768     ;;
5769   esac
5770 elif test "$with_gnu_ld" = yes; then
5771   echo "$as_me:$LINENO: checking for GNU ld" >&5
5772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5773 else
5774   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5776 fi
5777 if test "${lt_cv_path_LD+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   if test -z "$LD"; then
5781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782   for ac_dir in $PATH; do
5783     IFS="$lt_save_ifs"
5784     test -z "$ac_dir" && ac_dir=.
5785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5786       lt_cv_path_LD="$ac_dir/$ac_prog"
5787       # Check to see if the program is GNU ld.  I'd rather use --version,
5788       # but apparently some variants of GNU ld only accept -v.
5789       # Break only if it was the GNU/non-GNU ld that we prefer.
5790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5791       *GNU* | *'with BFD'*)
5792         test "$with_gnu_ld" != no && break
5793         ;;
5794       *)
5795         test "$with_gnu_ld" != yes && break
5796         ;;
5797       esac
5798     fi
5799   done
5800   IFS="$lt_save_ifs"
5801 else
5802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5803 fi
5804 fi
5805
5806 LD="$lt_cv_path_LD"
5807 if test -n "$LD"; then
5808   echo "$as_me:$LINENO: result: $LD" >&5
5809 echo "${ECHO_T}$LD" >&6
5810 else
5811   echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5813 fi
5814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5816    { (exit 1); exit 1; }; }
5817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5819 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823 case `$LD -v 2>&1 </dev/null` in
5824 *GNU* | *'with BFD'*)
5825   lt_cv_prog_gnu_ld=yes
5826   ;;
5827 *)
5828   lt_cv_prog_gnu_ld=no
5829   ;;
5830 esac
5831 fi
5832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5834 with_gnu_ld=$lt_cv_prog_gnu_ld
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5845 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5846 if test "${lt_cv_path_NM+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -n "$NM"; then
5850   # Let the user override the test.
5851   lt_cv_path_NM="$NM"
5852 else
5853   lt_nm_to_check="${ac_tool_prefix}nm"
5854   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5855     lt_nm_to_check="$lt_nm_to_check nm"
5856   fi
5857   for lt_tmp_nm in $lt_nm_to_check; do
5858     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5859     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5860       IFS="$lt_save_ifs"
5861       test -z "$ac_dir" && ac_dir=.
5862       tmp_nm="$ac_dir/$lt_tmp_nm"
5863       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5864         # Check to see if the nm accepts a BSD-compat flag.
5865         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5866         #   nm: unknown option "B" ignored
5867         # Tru64's nm complains that /dev/null is an invalid object file
5868         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5869         */dev/null* | *'Invalid file or object type'*)
5870           lt_cv_path_NM="$tmp_nm -B"
5871           break
5872           ;;
5873         *)
5874           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5875           */dev/null*)
5876             lt_cv_path_NM="$tmp_nm -p"
5877             break
5878             ;;
5879           *)
5880             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5881             continue # so that we can try to find one that supports BSD flags
5882             ;;
5883           esac
5884           ;;
5885         esac
5886       fi
5887     done
5888     IFS="$lt_save_ifs"
5889   done
5890   : ${lt_cv_path_NM=no}
5891 fi
5892 fi
5893 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5894 echo "${ECHO_T}$lt_cv_path_NM" >&6
5895 if test "$lt_cv_path_NM" != "no"; then
5896   NM="$lt_cv_path_NM"
5897 else
5898   # Didn't find any BSD compatible name lister, look for dumpbin.
5899   if test -n "$ac_tool_prefix"; then
5900   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5901   do
5902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$DUMPBIN"; then
5910   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 DUMPBIN=$ac_cv_prog_DUMPBIN
5929 if test -n "$DUMPBIN"; then
5930   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5931 echo "${ECHO_T}$DUMPBIN" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937     test -n "$DUMPBIN" && break
5938   done
5939 fi
5940 if test -z "$DUMPBIN"; then
5941   ac_ct_DUMPBIN=$DUMPBIN
5942   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5943 do
5944   # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$ac_ct_DUMPBIN"; then
5952   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967
5968 fi
5969 fi
5970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971 if test -n "$ac_ct_DUMPBIN"; then
5972   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5973 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5974 else
5975   echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5977 fi
5978
5979   test -n "$ac_ct_DUMPBIN" && break
5980 done
5981 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5982
5983   DUMPBIN=$ac_ct_DUMPBIN
5984 fi
5985
5986
5987   if test "$DUMPBIN" != ":"; then
5988     NM="$DUMPBIN"
5989   fi
5990 fi
5991 test -z "$NM" && NM=nm
5992
5993
5994
5995
5996
5997
5998 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5999 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6000 if test "${lt_cv_nm_interface+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   lt_cv_nm_interface="BSD nm"
6004   echo "int some_variable = 0;" > conftest.$ac_ext
6005   (eval echo "\"\$as_me:6005: $ac_compile\"" >&5)
6006   (eval "$ac_compile" 2>conftest.err)
6007   cat conftest.err >&5
6008   (eval echo "\"\$as_me:6008: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6009   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6010   cat conftest.err >&5
6011   (eval echo "\"\$as_me:6011: output\"" >&5)
6012   cat conftest.out >&5
6013   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6014     lt_cv_nm_interface="MS dumpbin"
6015   fi
6016   rm -f conftest*
6017 fi
6018 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6019 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6020
6021 # find the maximum length of command line arguments
6022 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027     i=0
6028   teststring="ABCD"
6029
6030   case $build_os in
6031   msdosdjgpp*)
6032     # On DJGPP, this test can blow up pretty badly due to problems in libc
6033     # (any single argument exceeding 2000 bytes causes a buffer overrun
6034     # during glob expansion).  Even if it were fixed, the result of this
6035     # check would be larger than it should be.
6036     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6037     ;;
6038
6039   gnu*)
6040     # Under GNU Hurd, this test is not required because there is
6041     # no limit to the length of command line arguments.
6042     # Libtool will interpret -1 as no limit whatsoever
6043     lt_cv_sys_max_cmd_len=-1;
6044     ;;
6045
6046   cygwin* | mingw* | cegcc*)
6047     # On Win9x/ME, this test blows up -- it succeeds, but takes
6048     # about 5 minutes as the teststring grows exponentially.
6049     # Worse, since 9x/ME are not pre-emptively multitasking,
6050     # you end up with a "frozen" computer, even though with patience
6051     # the test eventually succeeds (with a max line length of 256k).
6052     # Instead, let's just punt: use the minimum linelength reported by
6053     # all of the supported platforms: 8192 (on NT/2K/XP).
6054     lt_cv_sys_max_cmd_len=8192;
6055     ;;
6056
6057   amigaos*)
6058     # On AmigaOS with pdksh, this test takes hours, literally.
6059     # So we just punt and use a minimum line length of 8192.
6060     lt_cv_sys_max_cmd_len=8192;
6061     ;;
6062
6063   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064     # This has been around since 386BSD, at least.  Likely further.
6065     if test -x /sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067     elif test -x /usr/sbin/sysctl; then
6068       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069     else
6070       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6071     fi
6072     # And add a safety zone
6073     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075     ;;
6076
6077   interix*)
6078     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079     lt_cv_sys_max_cmd_len=196608
6080     ;;
6081
6082   osf*)
6083     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085     # nice to cause kernel panics so lets avoid the loop below.
6086     # First set a reasonable default.
6087     lt_cv_sys_max_cmd_len=16384
6088     #
6089     if test -x /sbin/sysconfig; then
6090       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092       esac
6093     fi
6094     ;;
6095   sco3.2v5*)
6096     lt_cv_sys_max_cmd_len=102400
6097     ;;
6098   sysv5* | sco5v6* | sysv4.2uw2*)
6099     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100     if test -n "$kargmax"; then
6101       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6102     else
6103       lt_cv_sys_max_cmd_len=32768
6104     fi
6105     ;;
6106   *)
6107     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108     if test -n "$lt_cv_sys_max_cmd_len"; then
6109       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111     else
6112       # Make teststring a little bigger before we do anything with it.
6113       # a 1K string should be a reasonable start.
6114       for i in 1 2 3 4 5 6 7 8 ; do
6115         teststring=$teststring$teststring
6116       done
6117       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118       # If test is not a shell built-in, we'll probably end up computing a
6119       # maximum length that is only half of the actual maximum length, but
6120       # we can't tell.
6121       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123               test $i != 17 # 1/2 MB should be enough
6124       do
6125         i=`expr $i + 1`
6126         teststring=$teststring$teststring
6127       done
6128       # Only check the string length outside the loop.
6129       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130       teststring=
6131       # Add a significant safety factor because C++ compilers can tack on
6132       # massive amounts of additional arguments before passing them to the
6133       # linker.  It appears as though 1/2 is a usable value.
6134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135     fi
6136     ;;
6137   esac
6138
6139 fi
6140
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6144 else
6145   echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6
6147 fi
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155 : ${CP="cp -f"}
6156 : ${MV="mv -f"}
6157 : ${RM="rm -f"}
6158
6159 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6161 # Try some XSI features
6162 xsi_shell=no
6163 ( _lt_dummy="a/b/c"
6164   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165       = c,a/b,, \
6166     && eval 'test $(( 1 + 1 )) -eq 2 \
6167     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168   && xsi_shell=yes
6169 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6
6171
6172
6173 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6175 lt_shell_append=no
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177     >/dev/null 2>&1 \
6178   && lt_shell_append=yes
6179 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6
6181
6182
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184   lt_unset=unset
6185 else
6186   lt_unset=false
6187 fi
6188
6189
6190
6191
6192
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195  A) # ASCII based system
6196     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197   lt_SP2NL='tr \040 \012'
6198   lt_NL2SP='tr \015\012 \040\040'
6199   ;;
6200  *) # EBCDIC based system
6201   lt_SP2NL='tr \100 \n'
6202   lt_NL2SP='tr \r\n \100\100'
6203   ;;
6204 esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   lt_cv_ld_reload_flag='-r'
6220 fi
6221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6225 "" | " "*) ;;
6226 *) reload_flag=" $reload_flag" ;;
6227 esac
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 case $host_os in
6230   darwin*)
6231     if test "$GCC" = yes; then
6232       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233     else
6234       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235     fi
6236     ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   if test -n "$OBJDUMP"; then
6256   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263   for ac_exec_ext in '' $ac_executable_extensions; do
6264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270 done
6271
6272 fi
6273 fi
6274 OBJDUMP=$ac_cv_prog_OBJDUMP
6275 if test -n "$OBJDUMP"; then
6276   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6277 echo "${ECHO_T}$OBJDUMP" >&6
6278 else
6279   echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6
6281 fi
6282
6283 fi
6284 if test -z "$ac_cv_prog_OBJDUMP"; then
6285   ac_ct_OBJDUMP=$OBJDUMP
6286   # Extract the first word of "objdump", so it can be a program name with args.
6287 set dummy objdump; ac_word=$2
6288 echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   if test -n "$ac_ct_OBJDUMP"; then
6294   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301   for ac_exec_ext in '' $ac_executable_extensions; do
6302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308 done
6309
6310   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6311 fi
6312 fi
6313 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6314 if test -n "$ac_ct_OBJDUMP"; then
6315   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6316 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6317 else
6318   echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6320 fi
6321
6322   OBJDUMP=$ac_ct_OBJDUMP
6323 else
6324   OBJDUMP="$ac_cv_prog_OBJDUMP"
6325 fi
6326
6327 test -z "$OBJDUMP" && OBJDUMP=objdump
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6338 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6339 if test "${lt_cv_deplibs_check_method+set}" = set; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   lt_cv_file_magic_cmd='$MAGIC_CMD'
6343 lt_cv_file_magic_test_file=
6344 lt_cv_deplibs_check_method='unknown'
6345 # Need to set the preceding variable on all platforms that support
6346 # interlibrary dependencies.
6347 # 'none' -- dependencies not supported.
6348 # `unknown' -- same as none, but documents that we really don't know.
6349 # 'pass_all' -- all dependencies passed with no checks.
6350 # 'test_compile' -- check by making test program.
6351 # 'file_magic [[regex]]' -- check by looking for files in library path
6352 # which responds to the $file_magic_cmd with a given extended regex.
6353 # If you have `file' or equivalent on your system and you're not sure
6354 # whether `pass_all' will *always* work, you probably want this one.
6355
6356 case $host_os in
6357 aix[4-9]*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 beos*)
6362   lt_cv_deplibs_check_method=pass_all
6363   ;;
6364
6365 bsdi[45]*)
6366   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6367   lt_cv_file_magic_cmd='/usr/bin/file -L'
6368   lt_cv_file_magic_test_file=/shlib/libc.so
6369   ;;
6370
6371 cygwin*)
6372   # func_win32_libid is a shell function defined in ltmain.sh
6373   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6374   lt_cv_file_magic_cmd='func_win32_libid'
6375   ;;
6376
6377 mingw* | pw32*)
6378   # Base MSYS/MinGW do not provide the 'file' command needed by
6379   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6380   # unless we find 'file', for example because we are cross-compiling.
6381   if ( file / ) >/dev/null 2>&1; then
6382     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6383     lt_cv_file_magic_cmd='func_win32_libid'
6384   else
6385     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6386     lt_cv_file_magic_cmd='$OBJDUMP -f'
6387   fi
6388   ;;
6389
6390 cegcc)
6391   # use the weaker test based on 'objdump'. See mingw*.
6392   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6393   lt_cv_file_magic_cmd='$OBJDUMP -f'
6394   ;;
6395
6396 darwin* | rhapsody*)
6397   lt_cv_deplibs_check_method=pass_all
6398   ;;
6399
6400 freebsd* | dragonfly*)
6401   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6402     case $host_cpu in
6403     i*86 )
6404       # Not sure whether the presence of OpenBSD here was a mistake.
6405       # Let's accept both of them until this is cleared up.
6406       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6407       lt_cv_file_magic_cmd=/usr/bin/file
6408       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6409       ;;
6410     esac
6411   else
6412     lt_cv_deplibs_check_method=pass_all
6413   fi
6414   ;;
6415
6416 gnu*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419
6420 hpux10.20* | hpux11*)
6421   lt_cv_file_magic_cmd=/usr/bin/file
6422   case $host_cpu in
6423   ia64*)
6424     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6425     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6426     ;;
6427   hppa*64*)
6428     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]'
6429     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6430     ;;
6431   *)
6432     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6433     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6434     ;;
6435   esac
6436   ;;
6437
6438 interix[3-9]*)
6439   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6440   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6441   ;;
6442
6443 irix5* | irix6* | nonstopux*)
6444   case $LD in
6445   *-32|*"-32 ") libmagic=32-bit;;
6446   *-n32|*"-n32 ") libmagic=N32;;
6447   *-64|*"-64 ") libmagic=64-bit;;
6448   *) libmagic=never-match;;
6449   esac
6450   lt_cv_deplibs_check_method=pass_all
6451   ;;
6452
6453 # This must be Linux ELF.
6454 linux* | k*bsd*-gnu)
6455   lt_cv_deplibs_check_method=pass_all
6456   ;;
6457
6458 netbsd*)
6459   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6461   else
6462     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6463   fi
6464   ;;
6465
6466 newos6*)
6467   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6468   lt_cv_file_magic_cmd=/usr/bin/file
6469   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6470   ;;
6471
6472 *nto* | *qnx*)
6473   lt_cv_deplibs_check_method=pass_all
6474   ;;
6475
6476 openbsd*)
6477   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6479   else
6480     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481   fi
6482   ;;
6483
6484 osf3* | osf4* | osf5*)
6485   lt_cv_deplibs_check_method=pass_all
6486   ;;
6487
6488 rdos*)
6489   lt_cv_deplibs_check_method=pass_all
6490   ;;
6491
6492 solaris*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6497   lt_cv_deplibs_check_method=pass_all
6498   ;;
6499
6500 sysv4 | sysv4.3*)
6501   case $host_vendor in
6502   motorola)
6503     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]'
6504     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6505     ;;
6506   ncr)
6507     lt_cv_deplibs_check_method=pass_all
6508     ;;
6509   sequent)
6510     lt_cv_file_magic_cmd='/bin/file'
6511     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6512     ;;
6513   sni)
6514     lt_cv_file_magic_cmd='/bin/file'
6515     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6516     lt_cv_file_magic_test_file=/lib/libc.so
6517     ;;
6518   siemens)
6519     lt_cv_deplibs_check_method=pass_all
6520     ;;
6521   pc)
6522     lt_cv_deplibs_check_method=pass_all
6523     ;;
6524   esac
6525   ;;
6526
6527 tpf*)
6528   lt_cv_deplibs_check_method=pass_all
6529   ;;
6530 esac
6531
6532 fi
6533 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6534 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6535 file_magic_cmd=$lt_cv_file_magic_cmd
6536 deplibs_check_method=$lt_cv_deplibs_check_method
6537 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 if test -n "$ac_tool_prefix"; then
6551   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}ar; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_AR+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$AR"; then
6559   ac_cv_prog_AR="$AR" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568     ac_cv_prog_AR="${ac_tool_prefix}ar"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574
6575 fi
6576 fi
6577 AR=$ac_cv_prog_AR
6578 if test -n "$AR"; then
6579   echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6
6581 else
6582   echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6584 fi
6585
6586 fi
6587 if test -z "$ac_cv_prog_AR"; then
6588   ac_ct_AR=$AR
6589   # Extract the first word of "ar", so it can be a program name with args.
6590 set dummy ar; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   if test -n "$ac_ct_AR"; then
6597   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606     ac_cv_prog_ac_ct_AR="ar"
6607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612
6613   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6614 fi
6615 fi
6616 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6617 if test -n "$ac_ct_AR"; then
6618   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6619 echo "${ECHO_T}$ac_ct_AR" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625   AR=$ac_ct_AR
6626 else
6627   AR="$ac_cv_prog_AR"
6628 fi
6629
6630 test -z "$AR" && AR=ar
6631 test -z "$AR_FLAGS" && AR_FLAGS=cru
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643 if test -n "$ac_tool_prefix"; then
6644   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6645 set dummy ${ac_tool_prefix}strip; ac_word=$2
6646 echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6648 if test "${ac_cv_prog_STRIP+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   if test -n "$STRIP"; then
6652   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659   for ac_exec_ext in '' $ac_executable_extensions; do
6660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666 done
6667
6668 fi
6669 fi
6670 STRIP=$ac_cv_prog_STRIP
6671 if test -n "$STRIP"; then
6672   echo "$as_me:$LINENO: result: $STRIP" >&5
6673 echo "${ECHO_T}$STRIP" >&6
6674 else
6675   echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6
6677 fi
6678
6679 fi
6680 if test -z "$ac_cv_prog_STRIP"; then
6681   ac_ct_STRIP=$STRIP
6682   # Extract the first word of "strip", so it can be a program name with args.
6683 set dummy strip; ac_word=$2
6684 echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6686 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   if test -n "$ac_ct_STRIP"; then
6690   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697   for ac_exec_ext in '' $ac_executable_extensions; do
6698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699     ac_cv_prog_ac_ct_STRIP="strip"
6700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704 done
6705
6706   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6707 fi
6708 fi
6709 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6710 if test -n "$ac_ct_STRIP"; then
6711   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6712 echo "${ECHO_T}$ac_ct_STRIP" >&6
6713 else
6714   echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6
6716 fi
6717
6718   STRIP=$ac_ct_STRIP
6719 else
6720   STRIP="$ac_cv_prog_STRIP"
6721 fi
6722
6723 test -z "$STRIP" && STRIP=:
6724
6725
6726
6727
6728
6729
6730 if test -n "$ac_tool_prefix"; then
6731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6733 echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6735 if test "${ac_cv_prog_RANLIB+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   if test -n "$RANLIB"; then
6739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746   for ac_exec_ext in '' $ac_executable_extensions; do
6747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753 done
6754
6755 fi
6756 fi
6757 RANLIB=$ac_cv_prog_RANLIB
6758 if test -n "$RANLIB"; then
6759   echo "$as_me:$LINENO: result: $RANLIB" >&5
6760 echo "${ECHO_T}$RANLIB" >&6
6761 else
6762   echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6764 fi
6765
6766 fi
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768   ac_ct_RANLIB=$RANLIB
6769   # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$ac_ct_RANLIB"; then
6777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786     ac_cv_prog_ac_ct_RANLIB="ranlib"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792
6793   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6794 fi
6795 fi
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6800 else
6801   echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803 fi
6804
6805   RANLIB=$ac_ct_RANLIB
6806 else
6807   RANLIB="$ac_cv_prog_RANLIB"
6808 fi
6809
6810 test -z "$RANLIB" && RANLIB=:
6811
6812
6813
6814
6815
6816
6817 # Determine commands to create old-style static archives.
6818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6819 old_postinstall_cmds='chmod 644 $oldlib'
6820 old_postuninstall_cmds=
6821
6822 if test -n "$RANLIB"; then
6823   case $host_os in
6824   openbsd*)
6825     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6826     ;;
6827   *)
6828     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6829     ;;
6830   esac
6831   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6832 fi
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867 # If no C compiler was specified, use CC.
6868 LTCC=${LTCC-"$CC"}
6869
6870 # If no C compiler flags were specified, use CFLAGS.
6871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6872
6873 # Allow CC to be a program name with arguments.
6874 compiler=$CC
6875
6876
6877 # Check for command to grab the raw symbol name followed by C symbol from nm.
6878 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6879 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883
6884 # These are sane defaults that work on at least a few old systems.
6885 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6886
6887 # Character class describing NM global symbol codes.
6888 symcode='[BCDEGRST]'
6889
6890 # Regexp to match symbols that can be accessed directly from C.
6891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6892
6893 # Define system-specific variables.
6894 case $host_os in
6895 aix*)
6896   symcode='[BCDT]'
6897   ;;
6898 cygwin* | mingw* | pw32* | cegcc*)
6899   symcode='[ABCDGISTW]'
6900   ;;
6901 hpux*)
6902   if test "$host_cpu" = ia64; then
6903     symcode='[ABCDEGRST]'
6904   fi
6905   ;;
6906 irix* | nonstopux*)
6907   symcode='[BCDEGRST]'
6908   ;;
6909 osf*)
6910   symcode='[BCDEGQRST]'
6911   ;;
6912 solaris*)
6913   symcode='[BDRT]'
6914   ;;
6915 sco3.2v5*)
6916   symcode='[DT]'
6917   ;;
6918 sysv4.2uw2*)
6919   symcode='[DT]'
6920   ;;
6921 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6922   symcode='[ABDT]'
6923   ;;
6924 sysv4)
6925   symcode='[DFNSTU]'
6926   ;;
6927 esac
6928
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932   symcode='[ABCDGIRSTW]' ;;
6933 esac
6934
6935 # Transform an extracted symbol line into a proper C declaration.
6936 # Some systems (esp. on ia64) link data and code symbols differently,
6937 # so use this general approach.
6938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6939
6940 # Transform an extracted symbol line into symbol name and symbol address
6941 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6943
6944 # Handle CRLF in mingw tool chain
6945 opt_cr=
6946 case $build_os in
6947 mingw*)
6948   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6949   ;;
6950 esac
6951
6952 # Try without a prefix underscore, then with it.
6953 for ac_symprfx in "" "_"; do
6954
6955   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956   symxfrm="\\1 $ac_symprfx\\2 \\2"
6957
6958   # Write the raw and C identifiers.
6959   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6960     # Fake it for dumpbin and say T for any non-static function
6961     # and D for any global variable.
6962     # Also find C++ and __fastcall symbols from MSVC++,
6963     # which start with @ or ?.
6964     lt_cv_sys_global_symbol_pipe="$AWK '"\
6965 "     {last_section=section; section=\$ 3};"\
6966 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6967 "     \$ 0!~/External *\|/{next};"\
6968 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6969 "     {if(hide[section]) next};"\
6970 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6971 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6972 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6973 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6974 "     ' prfx=^$ac_symprfx"
6975   else
6976     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6977   fi
6978
6979   # Check to see that the pipe works correctly.
6980   pipe_works=no
6981
6982   rm -f conftest*
6983   cat > conftest.$ac_ext <<_LT_EOF
6984 #ifdef __cplusplus
6985 extern "C" {
6986 #endif
6987 char nm_test_var;
6988 void nm_test_func(void);
6989 void nm_test_func(void){}
6990 #ifdef __cplusplus
6991 }
6992 #endif
6993 int main(){nm_test_var='a';nm_test_func();return(0);}
6994 _LT_EOF
6995
6996   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997   (eval $ac_compile) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; then
7001     # Now try to grab the symbols.
7002     nlist=conftest.nm
7003     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7004   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } && test -s "$nlist"; then
7008       # Try sorting and uniquifying the output.
7009       if sort "$nlist" | uniq > "$nlist"T; then
7010         mv -f "$nlist"T "$nlist"
7011       else
7012         rm -f "$nlist"T
7013       fi
7014
7015       # Make sure that we snagged all the symbols we need.
7016       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7017         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7018           cat <<_LT_EOF > conftest.$ac_ext
7019 #ifdef __cplusplus
7020 extern "C" {
7021 #endif
7022
7023 _LT_EOF
7024           # Now generate the symbol file.
7025           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7026
7027           cat <<_LT_EOF >> conftest.$ac_ext
7028
7029 /* The mapping between symbol names and symbols.  */
7030 const struct {
7031   const char *name;
7032   void       *address;
7033 }
7034 lt__PROGRAM__LTX_preloaded_symbols[] =
7035 {
7036   { "@PROGRAM@", (void *) 0 },
7037 _LT_EOF
7038           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7039           cat <<\_LT_EOF >> conftest.$ac_ext
7040   {0, (void *) 0}
7041 };
7042
7043 /* This works around a problem in FreeBSD linker */
7044 #ifdef FREEBSD_WORKAROUND
7045 static const void *lt_preloaded_setup() {
7046   return lt__PROGRAM__LTX_preloaded_symbols;
7047 }
7048 #endif
7049
7050 #ifdef __cplusplus
7051 }
7052 #endif
7053 _LT_EOF
7054           # Now try linking the two files.
7055           mv conftest.$ac_objext conftstm.$ac_objext
7056           lt_save_LIBS="$LIBS"
7057           lt_save_CFLAGS="$CFLAGS"
7058           LIBS="conftstm.$ac_objext"
7059           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7060           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061   (eval $ac_link) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7065             pipe_works=yes
7066           fi
7067           LIBS="$lt_save_LIBS"
7068           CFLAGS="$lt_save_CFLAGS"
7069         else
7070           echo "cannot find nm_test_func in $nlist" >&5
7071         fi
7072       else
7073         echo "cannot find nm_test_var in $nlist" >&5
7074       fi
7075     else
7076       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7077     fi
7078   else
7079     echo "$progname: failed program was:" >&5
7080     cat conftest.$ac_ext >&5
7081   fi
7082   rm -rf conftest* conftst*
7083
7084   # Do not use the global_symbol_pipe unless it works.
7085   if test "$pipe_works" = yes; then
7086     break
7087   else
7088     lt_cv_sys_global_symbol_pipe=
7089   fi
7090 done
7091
7092 fi
7093
7094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7095   lt_cv_sys_global_symbol_to_cdecl=
7096 fi
7097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7098   echo "$as_me:$LINENO: result: failed" >&5
7099 echo "${ECHO_T}failed" >&6
7100 else
7101   echo "$as_me:$LINENO: result: ok" >&5
7102 echo "${ECHO_T}ok" >&6
7103 fi
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7128 if test "${enable_libtool_lock+set}" = set; then
7129   enableval="$enable_libtool_lock"
7130
7131 fi;
7132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7133
7134 # Some flags need to be propagated to the compiler or linker for good
7135 # libtool support.
7136 case $host in
7137 ia64-*-hpux*)
7138   # Find out which ABI we are using.
7139   echo 'int i;' > conftest.$ac_ext
7140   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; then
7145     case `/usr/bin/file conftest.$ac_objext` in
7146       *ELF-32*)
7147         HPUX_IA64_MODE="32"
7148         ;;
7149       *ELF-64*)
7150         HPUX_IA64_MODE="64"
7151         ;;
7152     esac
7153   fi
7154   rm -rf conftest*
7155   ;;
7156 *-*-irix6*)
7157   # Find out which ABI we are using.
7158   echo '#line 7158 "configure"' > conftest.$ac_ext
7159   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160   (eval $ac_compile) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; then
7164     if test "$lt_cv_prog_gnu_ld" = yes; then
7165       case `/usr/bin/file conftest.$ac_objext` in
7166         *32-bit*)
7167           LD="${LD-ld} -melf32bsmip"
7168           ;;
7169         *N32*)
7170           LD="${LD-ld} -melf32bmipn32"
7171           ;;
7172         *64-bit*)
7173           LD="${LD-ld} -melf64bmip"
7174         ;;
7175       esac
7176     else
7177       case `/usr/bin/file conftest.$ac_objext` in
7178         *32-bit*)
7179           LD="${LD-ld} -32"
7180           ;;
7181         *N32*)
7182           LD="${LD-ld} -n32"
7183           ;;
7184         *64-bit*)
7185           LD="${LD-ld} -64"
7186           ;;
7187       esac
7188     fi
7189   fi
7190   rm -rf conftest*
7191   ;;
7192
7193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195   # Find out which ABI we are using.
7196   echo 'int i;' > conftest.$ac_ext
7197   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); }; then
7202     case `/usr/bin/file conftest.o` in
7203       *32-bit*)
7204         case $host in
7205           x86_64-*kfreebsd*-gnu)
7206             LD="${LD-ld} -m elf_i386_fbsd"
7207             ;;
7208           x86_64-*linux*)
7209             LD="${LD-ld} -m elf_i386"
7210             ;;
7211           ppc64-*linux*|powerpc64-*linux*)
7212             LD="${LD-ld} -m elf32ppclinux"
7213             ;;
7214           s390x-*linux*)
7215             LD="${LD-ld} -m elf_s390"
7216             ;;
7217           sparc64-*linux*)
7218             LD="${LD-ld} -m elf32_sparc"
7219             ;;
7220         esac
7221         ;;
7222       *64-bit*)
7223         case $host in
7224           x86_64-*kfreebsd*-gnu)
7225             LD="${LD-ld} -m elf_x86_64_fbsd"
7226             ;;
7227           x86_64-*linux*)
7228             LD="${LD-ld} -m elf_x86_64"
7229             ;;
7230           ppc*-*linux*|powerpc*-*linux*)
7231             LD="${LD-ld} -m elf64ppc"
7232             ;;
7233           s390*-*linux*|s390*-*tpf*)
7234             LD="${LD-ld} -m elf64_s390"
7235             ;;
7236           sparc*-*linux*)
7237             LD="${LD-ld} -m elf64_sparc"
7238             ;;
7239         esac
7240         ;;
7241     esac
7242   fi
7243   rm -rf conftest*
7244   ;;
7245
7246 *-*-sco3.2v5*)
7247   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7248   SAVE_CFLAGS="$CFLAGS"
7249   CFLAGS="$CFLAGS -belf"
7250   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7251 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7252 if test "${lt_cv_cc_needs_belf+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261      if test x$gcc_no_link = xyes; then
7262   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7264    { (exit 1); exit 1; }; }
7265 fi
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272
7273 int
7274 main ()
7275 {
7276
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283   (eval $ac_link) 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } &&
7290          { ac_try='test -z "$ac_c_werror_flag"
7291                          || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest$ac_exeext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   lt_cv_cc_needs_belf=yes
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 lt_cv_cc_needs_belf=no
7309 fi
7310 rm -f conftest.err conftest.$ac_objext \
7311       conftest$ac_exeext conftest.$ac_ext
7312      ac_ext=c
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317
7318 fi
7319 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7320 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7321   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7322     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7323     CFLAGS="$SAVE_CFLAGS"
7324   fi
7325   ;;
7326 sparc*-*solaris*)
7327   # Find out which ABI we are using.
7328   echo 'int i;' > conftest.$ac_ext
7329   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330   (eval $ac_compile) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; then
7334     case `/usr/bin/file conftest.o` in
7335     *64-bit*)
7336       case $lt_cv_prog_gnu_ld in
7337       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7338       *)
7339         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7340           LD="${LD-ld} -64"
7341         fi
7342         ;;
7343       esac
7344       ;;
7345     esac
7346   fi
7347   rm -rf conftest*
7348   ;;
7349 esac
7350
7351 need_locks="$enable_libtool_lock"
7352
7353
7354   case $host_os in
7355     rhapsody* | darwin*)
7356     if test -n "$ac_tool_prefix"; then
7357   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   if test -n "$DSYMUTIL"; then
7365   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372   for ac_exec_ext in '' $ac_executable_extensions; do
7373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379 done
7380
7381 fi
7382 fi
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6
7387 else
7388   echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 fi
7391
7392 fi
7393 if test -z "$ac_cv_prog_DSYMUTIL"; then
7394   ac_ct_DSYMUTIL=$DSYMUTIL
7395   # Extract the first word of "dsymutil", so it can be a program name with args.
7396 set dummy dsymutil; ac_word=$2
7397 echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7399 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   if test -n "$ac_ct_DSYMUTIL"; then
7403   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410   for ac_exec_ext in '' $ac_executable_extensions; do
7411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417 done
7418
7419   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7420 fi
7421 fi
7422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7423 if test -n "$ac_ct_DSYMUTIL"; then
7424   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7425 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7426 else
7427   echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7429 fi
7430
7431   DSYMUTIL=$ac_ct_DSYMUTIL
7432 else
7433   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7434 fi
7435
7436     if test -n "$ac_tool_prefix"; then
7437   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   if test -n "$NMEDIT"; then
7445   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460
7461 fi
7462 fi
7463 NMEDIT=$ac_cv_prog_NMEDIT
7464 if test -n "$NMEDIT"; then
7465   echo "$as_me:$LINENO: result: $NMEDIT" >&5
7466 echo "${ECHO_T}$NMEDIT" >&6
7467 else
7468   echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7470 fi
7471
7472 fi
7473 if test -z "$ac_cv_prog_NMEDIT"; then
7474   ac_ct_NMEDIT=$NMEDIT
7475   # Extract the first word of "nmedit", so it can be a program name with args.
7476 set dummy nmedit; ac_word=$2
7477 echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   if test -n "$ac_ct_NMEDIT"; then
7483   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490   for ac_exec_ext in '' $ac_executable_extensions; do
7491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497 done
7498
7499   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7500 fi
7501 fi
7502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7503 if test -n "$ac_ct_NMEDIT"; then
7504   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7505 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7506 else
7507   echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509 fi
7510
7511   NMEDIT=$ac_ct_NMEDIT
7512 else
7513   NMEDIT="$ac_cv_prog_NMEDIT"
7514 fi
7515
7516     if test -n "$ac_tool_prefix"; then
7517   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7519 echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521 if test "${ac_cv_prog_LIPO+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   if test -n "$LIPO"; then
7525   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532   for ac_exec_ext in '' $ac_executable_extensions; do
7533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539 done
7540
7541 fi
7542 fi
7543 LIPO=$ac_cv_prog_LIPO
7544 if test -n "$LIPO"; then
7545   echo "$as_me:$LINENO: result: $LIPO" >&5
7546 echo "${ECHO_T}$LIPO" >&6
7547 else
7548   echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6
7550 fi
7551
7552 fi
7553 if test -z "$ac_cv_prog_LIPO"; then
7554   ac_ct_LIPO=$LIPO
7555   # Extract the first word of "lipo", so it can be a program name with args.
7556 set dummy lipo; ac_word=$2
7557 echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   if test -n "$ac_ct_LIPO"; then
7563   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570   for ac_exec_ext in '' $ac_executable_extensions; do
7571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572     ac_cv_prog_ac_ct_LIPO="lipo"
7573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577 done
7578
7579   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7580 fi
7581 fi
7582 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7583 if test -n "$ac_ct_LIPO"; then
7584   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7585 echo "${ECHO_T}$ac_ct_LIPO" >&6
7586 else
7587   echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6
7589 fi
7590
7591   LIPO=$ac_ct_LIPO
7592 else
7593   LIPO="$ac_cv_prog_LIPO"
7594 fi
7595
7596     if test -n "$ac_tool_prefix"; then
7597   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}otool; ac_word=$2
7599 echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7601 if test "${ac_cv_prog_OTOOL+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   if test -n "$OTOOL"; then
7605   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612   for ac_exec_ext in '' $ac_executable_extensions; do
7613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619 done
7620
7621 fi
7622 fi
7623 OTOOL=$ac_cv_prog_OTOOL
7624 if test -n "$OTOOL"; then
7625   echo "$as_me:$LINENO: result: $OTOOL" >&5
7626 echo "${ECHO_T}$OTOOL" >&6
7627 else
7628   echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6
7630 fi
7631
7632 fi
7633 if test -z "$ac_cv_prog_OTOOL"; then
7634   ac_ct_OTOOL=$OTOOL
7635   # Extract the first word of "otool", so it can be a program name with args.
7636 set dummy otool; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   if test -n "$ac_ct_OTOOL"; then
7643   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_ac_ct_OTOOL="otool"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658
7659   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7660 fi
7661 fi
7662 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663 if test -n "$ac_ct_OTOOL"; then
7664   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7665 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7666 else
7667   echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7669 fi
7670
7671   OTOOL=$ac_ct_OTOOL
7672 else
7673   OTOOL="$ac_cv_prog_OTOOL"
7674 fi
7675
7676     if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   if test -n "$OTOOL64"; then
7685   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692   for ac_exec_ext in '' $ac_executable_extensions; do
7693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699 done
7700
7701 fi
7702 fi
7703 OTOOL64=$ac_cv_prog_OTOOL64
7704 if test -n "$OTOOL64"; then
7705   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7706 echo "${ECHO_T}$OTOOL64" >&6
7707 else
7708   echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7710 fi
7711
7712 fi
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714   ac_ct_OTOOL64=$OTOOL64
7715   # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7719 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   if test -n "$ac_ct_OTOOL64"; then
7723   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730   for ac_exec_ext in '' $ac_executable_extensions; do
7731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_ac_ct_OTOOL64="otool64"
7733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737 done
7738
7739   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7740 fi
7741 fi
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7745 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7746 else
7747   echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7749 fi
7750
7751   OTOOL64=$ac_ct_OTOOL64
7752 else
7753   OTOOL64="$ac_cv_prog_OTOOL64"
7754 fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7783 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7784 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   lt_cv_apple_cc_single_mod=no
7788       if test -z "${LT_MULTI_MODULE}"; then
7789         # By default we will add the -single_module flag. You can override
7790         # by either setting the environment variable LT_MULTI_MODULE
7791         # non-empty at configure time, or by adding -multi_module to the
7792         # link flags.
7793         rm -rf libconftest.dylib*
7794         echo "int foo(void){return 1;}" > conftest.c
7795         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7796 -dynamiclib -Wl,-single_module conftest.c" >&5
7797         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7798           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7799         _lt_result=$?
7800         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7801           lt_cv_apple_cc_single_mod=yes
7802         else
7803           cat conftest.err >&5
7804         fi
7805         rm -rf libconftest.dylib*
7806         rm -f conftest.*
7807       fi
7808 fi
7809 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7810 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7811     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7812 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7813 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   lt_cv_ld_exported_symbols_list=no
7817       save_LDFLAGS=$LDFLAGS
7818       echo "_main" > conftest.sym
7819       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7820       if test x$gcc_no_link = xyes; then
7821   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7823    { (exit 1); exit 1; }; }
7824 fi
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 int
7833 main ()
7834 {
7835
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842   (eval $ac_link) 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } &&
7849          { ac_try='test -z "$ac_c_werror_flag"
7850                          || test ! -s conftest.err'
7851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852   (eval $ac_try) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; } &&
7856          { ac_try='test -s conftest$ac_exeext'
7857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858   (eval $ac_try) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; }; then
7862   lt_cv_ld_exported_symbols_list=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 lt_cv_ld_exported_symbols_list=no
7868 fi
7869 rm -f conftest.err conftest.$ac_objext \
7870       conftest$ac_exeext conftest.$ac_ext
7871         LDFLAGS="$save_LDFLAGS"
7872
7873 fi
7874 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7875 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7876     case $host_os in
7877     rhapsody* | darwin1.[012])
7878       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7879     darwin1.*)
7880       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881     darwin*) # darwin 5.x on
7882       # if running on 10.5 or later, the deployment target defaults
7883       # to the OS version, if on x86, and 10.4, the deployment
7884       # target defaults to 10.4. Don't you love it?
7885       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7886         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7887           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7888         10.[012]*)
7889           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7890         10.*)
7891           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7892       esac
7893     ;;
7894   esac
7895     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7896       _lt_dar_single_mod='$single_module'
7897     fi
7898     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7899       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7900     else
7901       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7902     fi
7903     if test "$DSYMUTIL" != ":"; then
7904       _lt_dsymutil='~$DSYMUTIL $lib || :'
7905     else
7906       _lt_dsymutil=
7907     fi
7908     ;;
7909   esac
7910
7911 ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7917 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7918 # On Suns, sometimes $CPP names a directory.
7919 if test -n "$CPP" && test -d "$CPP"; then
7920   CPP=
7921 fi
7922 if test -z "$CPP"; then
7923   if test "${ac_cv_prog_CPP+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926       # Double quotes because CPP needs to be expanded
7927     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7928     do
7929       ac_preproc_ok=false
7930 for ac_c_preproc_warn_flag in '' yes
7931 do
7932   # Use a header file that comes with gcc, so configuring glibc
7933   # with a fresh cross-compiler works.
7934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935   # <limits.h> exists even on freestanding compilers.
7936   # On the NeXT, cc -E runs the code through the compiler's parser,
7937   # not just through cpp. "Syntax error" is here to catch this case.
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #ifdef __STDC__
7945 # include <limits.h>
7946 #else
7947 # include <assert.h>
7948 #endif
7949                      Syntax error
7950 _ACEOF
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7953   ac_status=$?
7954   grep -v '^ *+' conftest.er1 >conftest.err
7955   rm -f conftest.er1
7956   cat conftest.err >&5
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } >/dev/null; then
7959   if test -s conftest.err; then
7960     ac_cpp_err=$ac_c_preproc_warn_flag
7961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7962   else
7963     ac_cpp_err=
7964   fi
7965 else
7966   ac_cpp_err=yes
7967 fi
7968 if test -z "$ac_cpp_err"; then
7969   :
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974   # Broken: fails on valid input.
7975 continue
7976 fi
7977 rm -f conftest.err conftest.$ac_ext
7978
7979   # OK, works on sane cases.  Now check whether non-existent headers
7980   # can be detected and how.
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 #include <ac_nonexistent.h>
7988 _ACEOF
7989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } >/dev/null; then
7997   if test -s conftest.err; then
7998     ac_cpp_err=$ac_c_preproc_warn_flag
7999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8000   else
8001     ac_cpp_err=
8002   fi
8003 else
8004   ac_cpp_err=yes
8005 fi
8006 if test -z "$ac_cpp_err"; then
8007   # Broken: success on invalid input.
8008 continue
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013   # Passes both tests.
8014 ac_preproc_ok=:
8015 break
8016 fi
8017 rm -f conftest.err conftest.$ac_ext
8018
8019 done
8020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8021 rm -f conftest.err conftest.$ac_ext
8022 if $ac_preproc_ok; then
8023   break
8024 fi
8025
8026     done
8027     ac_cv_prog_CPP=$CPP
8028
8029 fi
8030   CPP=$ac_cv_prog_CPP
8031 else
8032   ac_cv_prog_CPP=$CPP
8033 fi
8034 echo "$as_me:$LINENO: result: $CPP" >&5
8035 echo "${ECHO_T}$CPP" >&6
8036 ac_preproc_ok=false
8037 for ac_c_preproc_warn_flag in '' yes
8038 do
8039   # Use a header file that comes with gcc, so configuring glibc
8040   # with a fresh cross-compiler works.
8041   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042   # <limits.h> exists even on freestanding compilers.
8043   # On the NeXT, cc -E runs the code through the compiler's parser,
8044   # not just through cpp. "Syntax error" is here to catch this case.
8045   cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051 #ifdef __STDC__
8052 # include <limits.h>
8053 #else
8054 # include <assert.h>
8055 #endif
8056                      Syntax error
8057 _ACEOF
8058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8060   ac_status=$?
8061   grep -v '^ *+' conftest.er1 >conftest.err
8062   rm -f conftest.er1
8063   cat conftest.err >&5
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } >/dev/null; then
8066   if test -s conftest.err; then
8067     ac_cpp_err=$ac_c_preproc_warn_flag
8068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8069   else
8070     ac_cpp_err=
8071   fi
8072 else
8073   ac_cpp_err=yes
8074 fi
8075 if test -z "$ac_cpp_err"; then
8076   :
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081   # Broken: fails on valid input.
8082 continue
8083 fi
8084 rm -f conftest.err conftest.$ac_ext
8085
8086   # OK, works on sane cases.  Now check whether non-existent headers
8087   # can be detected and how.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <ac_nonexistent.h>
8095 _ACEOF
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } >/dev/null; then
8104   if test -s conftest.err; then
8105     ac_cpp_err=$ac_c_preproc_warn_flag
8106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8107   else
8108     ac_cpp_err=
8109   fi
8110 else
8111   ac_cpp_err=yes
8112 fi
8113 if test -z "$ac_cpp_err"; then
8114   # Broken: success on invalid input.
8115 continue
8116 else
8117   echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120   # Passes both tests.
8121 ac_preproc_ok=:
8122 break
8123 fi
8124 rm -f conftest.err conftest.$ac_ext
8125
8126 done
8127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8128 rm -f conftest.err conftest.$ac_ext
8129 if $ac_preproc_ok; then
8130   :
8131 else
8132   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8135 See \`config.log' for more details." >&5
8136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8137 See \`config.log' for more details." >&2;}
8138    { (exit 1); exit 1; }; }; }
8139 fi
8140
8141 ac_ext=c
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147
8148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8150 if test "${ac_cv_header_stdc+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
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 <stdlib.h>
8160 #include <stdarg.h>
8161 #include <string.h>
8162 #include <float.h>
8163
8164 int
8165 main ()
8166 {
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174   (eval $ac_compile) 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -z "$ac_c_werror_flag"
8182                          || test ! -s conftest.err'
8183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184   (eval $ac_try) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest.$ac_objext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_cv_header_stdc=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_cv_header_stdc=no
8200 fi
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202
8203 if test $ac_cv_header_stdc = yes; then
8204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205   cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211 #include <string.h>
8212
8213 _ACEOF
8214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8215   $EGREP "memchr" >/dev/null 2>&1; then
8216   :
8217 else
8218   ac_cv_header_stdc=no
8219 fi
8220 rm -f conftest*
8221
8222 fi
8223
8224 if test $ac_cv_header_stdc = yes; then
8225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232 #include <stdlib.h>
8233
8234 _ACEOF
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236   $EGREP "free" >/dev/null 2>&1; then
8237   :
8238 else
8239   ac_cv_header_stdc=no
8240 fi
8241 rm -f conftest*
8242
8243 fi
8244
8245 if test $ac_cv_header_stdc = yes; then
8246   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247   if test "$cross_compiling" = yes; then
8248   :
8249 else
8250   cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256 #include <ctype.h>
8257 #if ((' ' & 0x0FF) == 0x020)
8258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8260 #else
8261 # define ISLOWER(c) \
8262                    (('a' <= (c) && (c) <= 'i') \
8263                      || ('j' <= (c) && (c) <= 'r') \
8264                      || ('s' <= (c) && (c) <= 'z'))
8265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8266 #endif
8267
8268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8269 int
8270 main ()
8271 {
8272   int i;
8273   for (i = 0; i < 256; i++)
8274     if (XOR (islower (i), ISLOWER (i))
8275         || toupper (i) != TOUPPER (i))
8276       exit(2);
8277   exit (0);
8278 }
8279 _ACEOF
8280 rm -f conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287   (eval $ac_try) 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; }; then
8291   :
8292 else
8293   echo "$as_me: program exited with status $ac_status" >&5
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297 ( exit $ac_status )
8298 ac_cv_header_stdc=no
8299 fi
8300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 fi
8303 fi
8304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8306 if test $ac_cv_header_stdc = yes; then
8307
8308 cat >>confdefs.h <<\_ACEOF
8309 #define STDC_HEADERS 1
8310 _ACEOF
8311
8312 fi
8313
8314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8325                   inttypes.h stdint.h unistd.h
8326 do
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339 $ac_includes_default
8340
8341 #include <$ac_header>
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345   (eval $ac_compile) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"
8353                          || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest.$ac_objext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   eval "$as_ac_Header=yes"
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 eval "$as_ac_Header=no"
8371 fi
8372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8373 fi
8374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8377   cat >>confdefs.h <<_ACEOF
8378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 _ACEOF
8380
8381 fi
8382
8383 done
8384
8385
8386
8387 for ac_header in dlfcn.h
8388 do
8389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8390 echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395   cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 $ac_includes_default
8402
8403 #include <$ac_header>
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407   (eval $ac_compile) 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } &&
8414          { ac_try='test -z "$ac_c_werror_flag"
8415                          || test ! -s conftest.err'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; } &&
8421          { ac_try='test -s conftest.$ac_objext'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   eval "$as_ac_Header=yes"
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 eval "$as_ac_Header=no"
8433 fi
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439   cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 _ACEOF
8442
8443 fi
8444
8445 done
8446
8447
8448
8449 ac_ext=cc
8450 ac_cpp='$CXXCPP $CPPFLAGS'
8451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8454 if test -n "$ac_tool_prefix"; then
8455   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8456   do
8457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8459 echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461 if test "${ac_cv_prog_CXX+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   if test -n "$CXX"; then
8465   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470   IFS=$as_save_IFS
8471   test -z "$as_dir" && as_dir=.
8472   for ac_exec_ext in '' $ac_executable_extensions; do
8473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476     break 2
8477   fi
8478 done
8479 done
8480
8481 fi
8482 fi
8483 CXX=$ac_cv_prog_CXX
8484 if test -n "$CXX"; then
8485   echo "$as_me:$LINENO: result: $CXX" >&5
8486 echo "${ECHO_T}$CXX" >&6
8487 else
8488   echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6
8490 fi
8491
8492     test -n "$CXX" && break
8493   done
8494 fi
8495 if test -z "$CXX"; then
8496   ac_ct_CXX=$CXX
8497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8498 do
8499   # Extract the first word of "$ac_prog", so it can be a program name with args.
8500 set dummy $ac_prog; ac_word=$2
8501 echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   if test -n "$ac_ct_CXX"; then
8507   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516     ac_cv_prog_ac_ct_CXX="$ac_prog"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522
8523 fi
8524 fi
8525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8526 if test -n "$ac_ct_CXX"; then
8527   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8528 echo "${ECHO_T}$ac_ct_CXX" >&6
8529 else
8530   echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6
8532 fi
8533
8534   test -n "$ac_ct_CXX" && break
8535 done
8536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8537
8538   CXX=$ac_ct_CXX
8539 fi
8540
8541
8542 # Provide some information about the compiler.
8543 echo "$as_me:$LINENO:" \
8544      "checking for C++ compiler version" >&5
8545 ac_compiler=`set X $ac_compile; echo $2`
8546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8547   (eval $ac_compiler --version </dev/null >&5) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }
8551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8552   (eval $ac_compiler -v </dev/null >&5) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }
8556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8557   (eval $ac_compiler -V </dev/null >&5) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }
8561
8562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573
8574 int
8575 main ()
8576 {
8577 #ifndef __GNUC__
8578        choke me
8579 #endif
8580
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587   (eval $ac_compile) 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -z "$ac_cxx_werror_flag"
8595                          || test ! -s conftest.err'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest.$ac_objext'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   ac_compiler_gnu=yes
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_compiler_gnu=no
8613 fi
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8616
8617 fi
8618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8620 GXX=`test $ac_compiler_gnu = yes && echo yes`
8621 ac_test_CXXFLAGS=${CXXFLAGS+set}
8622 ac_save_CXXFLAGS=$CXXFLAGS
8623 CXXFLAGS="-g"
8624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8626 if test "${ac_cv_prog_cxx_g+set}" = set; then
8627   echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629   cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635
8636 int
8637 main ()
8638 {
8639
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646   (eval $ac_compile) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_cxx_werror_flag"
8654                          || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest.$ac_objext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_prog_cxx_g=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_prog_cxx_g=no
8672 fi
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8677 if test "$ac_test_CXXFLAGS" = set; then
8678   CXXFLAGS=$ac_save_CXXFLAGS
8679 elif test $ac_cv_prog_cxx_g = yes; then
8680   if test "$GXX" = yes; then
8681     CXXFLAGS="-g -O2"
8682   else
8683     CXXFLAGS="-g"
8684   fi
8685 else
8686   if test "$GXX" = yes; then
8687     CXXFLAGS="-O2"
8688   else
8689     CXXFLAGS=
8690   fi
8691 fi
8692 for ac_declaration in \
8693    '' \
8694    'extern "C" void std::exit (int) throw (); using std::exit;' \
8695    'extern "C" void std::exit (int); using std::exit;' \
8696    'extern "C" void exit (int) throw ();' \
8697    'extern "C" void exit (int);' \
8698    'void exit (int);'
8699 do
8700   cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 $ac_declaration
8707 #include <stdlib.h>
8708 int
8709 main ()
8710 {
8711 exit (42);
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718   (eval $ac_compile) 2>conftest.er1
8719   ac_status=$?
8720   grep -v '^ *+' conftest.er1 >conftest.err
8721   rm -f conftest.er1
8722   cat conftest.err >&5
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); } &&
8725          { ac_try='test -z "$ac_cxx_werror_flag"
8726                          || test ! -s conftest.err'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; } &&
8732          { ac_try='test -s conftest.$ac_objext'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; }; then
8738   :
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743 continue
8744 fi
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8746   cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752 $ac_declaration
8753 int
8754 main ()
8755 {
8756 exit (42);
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763   (eval $ac_compile) 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -z "$ac_cxx_werror_flag"
8771                          || test ! -s conftest.err'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest.$ac_objext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   break
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 fi
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 done
8791 rm -f conftest*
8792 if test -n "$ac_declaration"; then
8793   echo '#ifdef __cplusplus' >>confdefs.h
8794   echo $ac_declaration      >>confdefs.h
8795   echo '#endif'             >>confdefs.h
8796 fi
8797
8798 ac_ext=c
8799 ac_cpp='$CPP $CPPFLAGS'
8800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803
8804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8805     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8806     (test "X$CXX" != "Xg++"))) ; then
8807   ac_ext=cc
8808 ac_cpp='$CXXCPP $CPPFLAGS'
8809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8812 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8813 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8814 if test -z "$CXXCPP"; then
8815   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818       # Double quotes because CXXCPP needs to be expanded
8819     for CXXCPP in "$CXX -E" "/lib/cpp"
8820     do
8821       ac_preproc_ok=false
8822 for ac_cxx_preproc_warn_flag in '' yes
8823 do
8824   # Use a header file that comes with gcc, so configuring glibc
8825   # with a fresh cross-compiler works.
8826   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8827   # <limits.h> exists even on freestanding compilers.
8828   # On the NeXT, cc -E runs the code through the compiler's parser,
8829   # not just through cpp. "Syntax error" is here to catch this case.
8830   cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836 #ifdef __STDC__
8837 # include <limits.h>
8838 #else
8839 # include <assert.h>
8840 #endif
8841                      Syntax error
8842 _ACEOF
8843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } >/dev/null; then
8851   if test -s conftest.err; then
8852     ac_cpp_err=$ac_cxx_preproc_warn_flag
8853     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8854   else
8855     ac_cpp_err=
8856   fi
8857 else
8858   ac_cpp_err=yes
8859 fi
8860 if test -z "$ac_cpp_err"; then
8861   :
8862 else
8863   echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866   # Broken: fails on valid input.
8867 continue
8868 fi
8869 rm -f conftest.err conftest.$ac_ext
8870
8871   # OK, works on sane cases.  Now check whether non-existent headers
8872   # can be detected and how.
8873   cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879 #include <ac_nonexistent.h>
8880 _ACEOF
8881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } >/dev/null; then
8889   if test -s conftest.err; then
8890     ac_cpp_err=$ac_cxx_preproc_warn_flag
8891     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8892   else
8893     ac_cpp_err=
8894   fi
8895 else
8896   ac_cpp_err=yes
8897 fi
8898 if test -z "$ac_cpp_err"; then
8899   # Broken: success on invalid input.
8900 continue
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905   # Passes both tests.
8906 ac_preproc_ok=:
8907 break
8908 fi
8909 rm -f conftest.err conftest.$ac_ext
8910
8911 done
8912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8913 rm -f conftest.err conftest.$ac_ext
8914 if $ac_preproc_ok; then
8915   break
8916 fi
8917
8918     done
8919     ac_cv_prog_CXXCPP=$CXXCPP
8920
8921 fi
8922   CXXCPP=$ac_cv_prog_CXXCPP
8923 else
8924   ac_cv_prog_CXXCPP=$CXXCPP
8925 fi
8926 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8927 echo "${ECHO_T}$CXXCPP" >&6
8928 ac_preproc_ok=false
8929 for ac_cxx_preproc_warn_flag in '' yes
8930 do
8931   # Use a header file that comes with gcc, so configuring glibc
8932   # with a fresh cross-compiler works.
8933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8934   # <limits.h> exists even on freestanding compilers.
8935   # On the NeXT, cc -E runs the code through the compiler's parser,
8936   # not just through cpp. "Syntax error" is here to catch this case.
8937   cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943 #ifdef __STDC__
8944 # include <limits.h>
8945 #else
8946 # include <assert.h>
8947 #endif
8948                      Syntax error
8949 _ACEOF
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8952   ac_status=$?
8953   grep -v '^ *+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } >/dev/null; then
8958   if test -s conftest.err; then
8959     ac_cpp_err=$ac_cxx_preproc_warn_flag
8960     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8961   else
8962     ac_cpp_err=
8963   fi
8964 else
8965   ac_cpp_err=yes
8966 fi
8967 if test -z "$ac_cpp_err"; then
8968   :
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973   # Broken: fails on valid input.
8974 continue
8975 fi
8976 rm -f conftest.err conftest.$ac_ext
8977
8978   # OK, works on sane cases.  Now check whether non-existent headers
8979   # can be detected and how.
8980   cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 #include <ac_nonexistent.h>
8987 _ACEOF
8988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } >/dev/null; then
8996   if test -s conftest.err; then
8997     ac_cpp_err=$ac_cxx_preproc_warn_flag
8998     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8999   else
9000     ac_cpp_err=
9001   fi
9002 else
9003   ac_cpp_err=yes
9004 fi
9005 if test -z "$ac_cpp_err"; then
9006   # Broken: success on invalid input.
9007 continue
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012   # Passes both tests.
9013 ac_preproc_ok=:
9014 break
9015 fi
9016 rm -f conftest.err conftest.$ac_ext
9017
9018 done
9019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9020 rm -f conftest.err conftest.$ac_ext
9021 if $ac_preproc_ok; then
9022   :
9023 else
9024   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9025 echo "$as_me: error: in \`$ac_pwd':" >&2;}
9026 _lt_caught_CXX_error=yes; }
9027 fi
9028
9029 ac_ext=c
9030 ac_cpp='$CPP $CPPFLAGS'
9031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9034
9035 else
9036   _lt_caught_CXX_error=yes
9037 fi
9038
9039
9040
9041
9042
9043 # Set options
9044
9045
9046
9047
9048   enable_win32_dll=no
9049
9050
9051             # Check whether --enable-shared or --disable-shared was given.
9052 if test "${enable_shared+set}" = set; then
9053   enableval="$enable_shared"
9054   p=${PACKAGE-default}
9055     case $enableval in
9056     yes) enable_shared=yes ;;
9057     no) enable_shared=no ;;
9058     *)
9059       enable_shared=no
9060       # Look at the argument we got.  We use all the common list separators.
9061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9062       for pkg in $enableval; do
9063         IFS="$lt_save_ifs"
9064         if test "X$pkg" = "X$p"; then
9065           enable_shared=yes
9066         fi
9067       done
9068       IFS="$lt_save_ifs"
9069       ;;
9070     esac
9071 else
9072   enable_shared=yes
9073 fi;
9074
9075
9076
9077
9078
9079
9080
9081
9082   # Check whether --enable-static or --disable-static was given.
9083 if test "${enable_static+set}" = set; then
9084   enableval="$enable_static"
9085   p=${PACKAGE-default}
9086     case $enableval in
9087     yes) enable_static=yes ;;
9088     no) enable_static=no ;;
9089     *)
9090      enable_static=no
9091       # Look at the argument we got.  We use all the common list separators.
9092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9093       for pkg in $enableval; do
9094         IFS="$lt_save_ifs"
9095         if test "X$pkg" = "X$p"; then
9096           enable_static=yes
9097         fi
9098       done
9099       IFS="$lt_save_ifs"
9100       ;;
9101     esac
9102 else
9103   enable_static=yes
9104 fi;
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 # Check whether --with-pic or --without-pic was given.
9115 if test "${with_pic+set}" = set; then
9116   withval="$with_pic"
9117   pic_mode="$withval"
9118 else
9119   pic_mode=default
9120 fi;
9121
9122 test -z "$pic_mode" && pic_mode=default
9123
9124
9125
9126
9127
9128
9129
9130   # Check whether --enable-fast-install or --disable-fast-install was given.
9131 if test "${enable_fast_install+set}" = set; then
9132   enableval="$enable_fast_install"
9133   p=${PACKAGE-default}
9134     case $enableval in
9135     yes) enable_fast_install=yes ;;
9136     no) enable_fast_install=no ;;
9137     *)
9138       enable_fast_install=no
9139       # Look at the argument we got.  We use all the common list separators.
9140       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9141       for pkg in $enableval; do
9142         IFS="$lt_save_ifs"
9143         if test "X$pkg" = "X$p"; then
9144           enable_fast_install=yes
9145         fi
9146       done
9147       IFS="$lt_save_ifs"
9148       ;;
9149     esac
9150 else
9151   enable_fast_install=yes
9152 fi;
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163 # This can be used to rebuild libtool when needed
9164 LIBTOOL_DEPS="$ltmain"
9165
9166 # Always use our own libtool.
9167 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 test -z "$LN_S" && LN_S="ln -s"
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 if test -n "${ZSH_VERSION+set}" ; then
9209    setopt NO_GLOB_SUBST
9210 fi
9211
9212 echo "$as_me:$LINENO: checking for objdir" >&5
9213 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9214 if test "${lt_cv_objdir+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   rm -f .libs 2>/dev/null
9218 mkdir .libs 2>/dev/null
9219 if test -d .libs; then
9220   lt_cv_objdir=.libs
9221 else
9222   # MS-DOS does not allow filenames that begin with a dot.
9223   lt_cv_objdir=_libs
9224 fi
9225 rmdir .libs 2>/dev/null
9226 fi
9227 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9228 echo "${ECHO_T}$lt_cv_objdir" >&6
9229 objdir=$lt_cv_objdir
9230
9231
9232
9233
9234
9235 cat >>confdefs.h <<_ACEOF
9236 #define LT_OBJDIR "$lt_cv_objdir/"
9237 _ACEOF
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255 case $host_os in
9256 aix3*)
9257   # AIX sometimes has problems with the GCC collect2 program.  For some
9258   # reason, if we set the COLLECT_NAMES environment variable, the problems
9259   # vanish in a puff of smoke.
9260   if test "X${COLLECT_NAMES+set}" != Xset; then
9261     COLLECT_NAMES=
9262     export COLLECT_NAMES
9263   fi
9264   ;;
9265 esac
9266
9267 # Sed substitution that helps us do robust quoting.  It backslashifies
9268 # metacharacters that are still active within double-quoted strings.
9269 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9270
9271 # Same as above, but do not quote variable references.
9272 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9273
9274 # Sed substitution to delay expansion of an escaped shell variable in a
9275 # double_quote_subst'ed string.
9276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9277
9278 # Sed substitution to delay expansion of an escaped single quote.
9279 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9280
9281 # Sed substitution to avoid accidental globbing in evaled expressions
9282 no_glob_subst='s/\*/\\\*/g'
9283
9284 # Global variables:
9285 ofile=libtool
9286 can_build_shared=yes
9287
9288 # All known linkers require a `.a' archive for static linking (except MSVC,
9289 # which needs '.lib').
9290 libext=a
9291
9292 with_gnu_ld="$lt_cv_prog_gnu_ld"
9293
9294 old_CC="$CC"
9295 old_CFLAGS="$CFLAGS"
9296
9297 # Set sane defaults for various variables
9298 test -z "$CC" && CC=cc
9299 test -z "$LTCC" && LTCC=$CC
9300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9301 test -z "$LD" && LD=ld
9302 test -z "$ac_objext" && ac_objext=o
9303
9304 for cc_temp in $compiler""; do
9305   case $cc_temp in
9306     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9307     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9308     \-*) ;;
9309     *) break;;
9310   esac
9311 done
9312 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9313
9314
9315 # Only perform the check for file, if the check method requires it
9316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9317 case $deplibs_check_method in
9318 file_magic*)
9319   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9320     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9321 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9322 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   case $MAGIC_CMD in
9326 [\\/*] |  ?:[\\/]*)
9327   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9328   ;;
9329 *)
9330   lt_save_MAGIC_CMD="$MAGIC_CMD"
9331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9332   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9333   for ac_dir in $ac_dummy; do
9334     IFS="$lt_save_ifs"
9335     test -z "$ac_dir" && ac_dir=.
9336     if test -f $ac_dir/${ac_tool_prefix}file; then
9337       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9338       if test -n "$file_magic_test_file"; then
9339         case $deplibs_check_method in
9340         "file_magic "*)
9341           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9342           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9343           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9344             $EGREP "$file_magic_regex" > /dev/null; then
9345             :
9346           else
9347             cat <<_LT_EOF 1>&2
9348
9349 *** Warning: the command libtool uses to detect shared libraries,
9350 *** $file_magic_cmd, produces output that libtool cannot recognize.
9351 *** The result is that libtool may fail to recognize shared libraries
9352 *** as such.  This will affect the creation of libtool libraries that
9353 *** depend on shared libraries, but programs linked with such libtool
9354 *** libraries will work regardless of this problem.  Nevertheless, you
9355 *** may want to report the problem to your system manager and/or to
9356 *** bug-libtool@gnu.org
9357
9358 _LT_EOF
9359           fi ;;
9360         esac
9361       fi
9362       break
9363     fi
9364   done
9365   IFS="$lt_save_ifs"
9366   MAGIC_CMD="$lt_save_MAGIC_CMD"
9367   ;;
9368 esac
9369 fi
9370
9371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9372 if test -n "$MAGIC_CMD"; then
9373   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9374 echo "${ECHO_T}$MAGIC_CMD" >&6
9375 else
9376   echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6
9378 fi
9379
9380
9381
9382
9383
9384 if test -z "$lt_cv_path_MAGIC_CMD"; then
9385   if test -n "$ac_tool_prefix"; then
9386     echo "$as_me:$LINENO: checking for file" >&5
9387 echo $ECHO_N "checking for file... $ECHO_C" >&6
9388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   case $MAGIC_CMD in
9392 [\\/*] |  ?:[\\/]*)
9393   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9394   ;;
9395 *)
9396   lt_save_MAGIC_CMD="$MAGIC_CMD"
9397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9398   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9399   for ac_dir in $ac_dummy; do
9400     IFS="$lt_save_ifs"
9401     test -z "$ac_dir" && ac_dir=.
9402     if test -f $ac_dir/file; then
9403       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9404       if test -n "$file_magic_test_file"; then
9405         case $deplibs_check_method in
9406         "file_magic "*)
9407           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9408           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9409           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9410             $EGREP "$file_magic_regex" > /dev/null; then
9411             :
9412           else
9413             cat <<_LT_EOF 1>&2
9414
9415 *** Warning: the command libtool uses to detect shared libraries,
9416 *** $file_magic_cmd, produces output that libtool cannot recognize.
9417 *** The result is that libtool may fail to recognize shared libraries
9418 *** as such.  This will affect the creation of libtool libraries that
9419 *** depend on shared libraries, but programs linked with such libtool
9420 *** libraries will work regardless of this problem.  Nevertheless, you
9421 *** may want to report the problem to your system manager and/or to
9422 *** bug-libtool@gnu.org
9423
9424 _LT_EOF
9425           fi ;;
9426         esac
9427       fi
9428       break
9429     fi
9430   done
9431   IFS="$lt_save_ifs"
9432   MAGIC_CMD="$lt_save_MAGIC_CMD"
9433   ;;
9434 esac
9435 fi
9436
9437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9438 if test -n "$MAGIC_CMD"; then
9439   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9440 echo "${ECHO_T}$MAGIC_CMD" >&6
9441 else
9442   echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447   else
9448     MAGIC_CMD=:
9449   fi
9450 fi
9451
9452   fi
9453   ;;
9454 esac
9455
9456 # Use C for the default configuration in the libtool script
9457
9458 lt_save_CC="$CC"
9459 ac_ext=c
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9464
9465
9466 # Source file extension for C test sources.
9467 ac_ext=c
9468
9469 # Object file extension for compiled C test sources.
9470 objext=o
9471 objext=$objext
9472
9473 # Code to be used in simple compile tests
9474 lt_simple_compile_test_code="int some_variable = 0;"
9475
9476 # Code to be used in simple link tests
9477 lt_simple_link_test_code='int main(){return(0);}'
9478
9479
9480
9481
9482
9483
9484
9485 # If no C compiler was specified, use CC.
9486 LTCC=${LTCC-"$CC"}
9487
9488 # If no C compiler flags were specified, use CFLAGS.
9489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9490
9491 # Allow CC to be a program name with arguments.
9492 compiler=$CC
9493
9494 # Save the default compiler, since it gets overwritten when the other
9495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9496 compiler_DEFAULT=$CC
9497
9498 # save warnings/boilerplate of simple test code
9499 ac_outfile=conftest.$ac_objext
9500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9502 _lt_compiler_boilerplate=`cat conftest.err`
9503 $RM conftest*
9504
9505 ac_outfile=conftest.$ac_objext
9506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9508 _lt_linker_boilerplate=`cat conftest.err`
9509 $RM -r conftest*
9510
9511
9512 ## CAVEAT EMPTOR:
9513 ## There is no encapsulation within the following macros, do not change
9514 ## the running order or otherwise move them around unless you know exactly
9515 ## what you are doing...
9516 if test -n "$compiler"; then
9517
9518 lt_prog_compiler_no_builtin_flag=
9519
9520 if test "$GCC" = yes; then
9521   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9522
9523   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   lt_cv_prog_compiler_rtti_exceptions=no
9529    ac_outfile=conftest.$ac_objext
9530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531    lt_compiler_flag="-fno-rtti -fno-exceptions"
9532    # Insert the option either (1) after the last *FLAGS variable, or
9533    # (2) before a word containing "conftest.", or (3) at the end.
9534    # Note that $ac_compile itself does not contain backslashes and begins
9535    # with a dollar sign (not a hyphen), so the echo should work correctly.
9536    # The option is referenced via a variable to avoid confusing sed.
9537    lt_compile=`echo "$ac_compile" | $SED \
9538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540    -e 's:$: $lt_compiler_flag:'`
9541    (eval echo "\"\$as_me:9541: $lt_compile\"" >&5)
9542    (eval "$lt_compile" 2>conftest.err)
9543    ac_status=$?
9544    cat conftest.err >&5
9545    echo "$as_me:9545: \$? = $ac_status" >&5
9546    if (exit $ac_status) && test -s "$ac_outfile"; then
9547      # The compiler can only warn and ignore the option if not recognized
9548      # So say no if there are warnings other than the usual output.
9549      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9550      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9552        lt_cv_prog_compiler_rtti_exceptions=yes
9553      fi
9554    fi
9555    $RM conftest*
9556
9557 fi
9558 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9559 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9560
9561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9562     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9563 else
9564     :
9565 fi
9566
9567 fi
9568
9569
9570
9571
9572
9573
9574   lt_prog_compiler_wl=
9575 lt_prog_compiler_pic=
9576 lt_prog_compiler_static=
9577
9578 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9579 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9580
9581   if test "$GCC" = yes; then
9582     lt_prog_compiler_wl='-Wl,'
9583     lt_prog_compiler_static='-static'
9584
9585     case $host_os in
9586       aix*)
9587       # All AIX code is PIC.
9588       if test "$host_cpu" = ia64; then
9589         # AIX 5 now supports IA64 processor
9590         lt_prog_compiler_static='-Bstatic'
9591       fi
9592       ;;
9593
9594     amigaos*)
9595       case $host_cpu in
9596       powerpc)
9597             # see comment about AmigaOS4 .so support
9598             lt_prog_compiler_pic='-fPIC'
9599         ;;
9600       m68k)
9601             # FIXME: we need at least 68020 code to build shared libraries, but
9602             # adding the `-m68020' flag to GCC prevents building anything better,
9603             # like `-m68040'.
9604             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9605         ;;
9606       esac
9607       ;;
9608
9609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9610       # PIC is the default for these OSes.
9611       ;;
9612
9613     mingw* | cygwin* | pw32* | os2* | cegcc*)
9614       # This hack is so that the source file can tell whether it is being
9615       # built for inclusion in a dll (and should export symbols for example).
9616       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9617       # (--disable-auto-import) libraries
9618       lt_prog_compiler_pic='-DDLL_EXPORT'
9619       ;;
9620
9621     darwin* | rhapsody*)
9622       # PIC is the default on this platform
9623       # Common symbols not allowed in MH_DYLIB files
9624       lt_prog_compiler_pic='-fno-common'
9625       ;;
9626
9627     hpux*)
9628       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9629       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9630       # sets the default TLS model and affects inlining.
9631       case $host_cpu in
9632       hppa*64*)
9633         # +Z the default
9634         ;;
9635       *)
9636         lt_prog_compiler_pic='-fPIC'
9637         ;;
9638       esac
9639       ;;
9640
9641     interix[3-9]*)
9642       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9643       # Instead, we relocate shared libraries at runtime.
9644       ;;
9645
9646     msdosdjgpp*)
9647       # Just because we use GCC doesn't mean we suddenly get shared libraries
9648       # on systems that don't support them.
9649       lt_prog_compiler_can_build_shared=no
9650       enable_shared=no
9651       ;;
9652
9653     *nto* | *qnx*)
9654       # QNX uses GNU C++, but need to define -shared option too, otherwise
9655       # it will coredump.
9656       lt_prog_compiler_pic='-fPIC -shared'
9657       ;;
9658
9659     sysv4*MP*)
9660       if test -d /usr/nec; then
9661         lt_prog_compiler_pic=-Kconform_pic
9662       fi
9663       ;;
9664
9665     *)
9666       lt_prog_compiler_pic='-fPIC'
9667       ;;
9668     esac
9669   else
9670     # PORTME Check for flag to pass linker flags through the system compiler.
9671     case $host_os in
9672     aix*)
9673       lt_prog_compiler_wl='-Wl,'
9674       if test "$host_cpu" = ia64; then
9675         # AIX 5 now supports IA64 processor
9676         lt_prog_compiler_static='-Bstatic'
9677       else
9678         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9679       fi
9680       ;;
9681
9682     mingw* | cygwin* | pw32* | os2* | cegcc*)
9683       # This hack is so that the source file can tell whether it is being
9684       # built for inclusion in a dll (and should export symbols for example).
9685       lt_prog_compiler_pic='-DDLL_EXPORT'
9686       ;;
9687
9688     hpux9* | hpux10* | hpux11*)
9689       lt_prog_compiler_wl='-Wl,'
9690       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9691       # not for PA HP-UX.
9692       case $host_cpu in
9693       hppa*64*|ia64*)
9694         # +Z the default
9695         ;;
9696       *)
9697         lt_prog_compiler_pic='+Z'
9698         ;;
9699       esac
9700       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9701       lt_prog_compiler_static='${wl}-a ${wl}archive'
9702       ;;
9703
9704     irix5* | irix6* | nonstopux*)
9705       lt_prog_compiler_wl='-Wl,'
9706       # PIC (with -KPIC) is the default.
9707       lt_prog_compiler_static='-non_shared'
9708       ;;
9709
9710     linux* | k*bsd*-gnu)
9711       case $cc_basename in
9712       # old Intel for x86_64 which still supported -KPIC.
9713       ecc*)
9714         lt_prog_compiler_wl='-Wl,'
9715         lt_prog_compiler_pic='-KPIC'
9716         lt_prog_compiler_static='-static'
9717         ;;
9718       # icc used to be incompatible with GCC.
9719       # ICC 10 doesn't accept -KPIC any more.
9720       icc* | ifort*)
9721         lt_prog_compiler_wl='-Wl,'
9722         lt_prog_compiler_pic='-fPIC'
9723         lt_prog_compiler_static='-static'
9724         ;;
9725       # Lahey Fortran 8.1.
9726       lf95*)
9727         lt_prog_compiler_wl='-Wl,'
9728         lt_prog_compiler_pic='--shared'
9729         lt_prog_compiler_static='--static'
9730         ;;
9731       pgcc* | pgf77* | pgf90* | pgf95*)
9732         # Portland Group compilers (*not* the Pentium gcc compiler,
9733         # which looks to be a dead project)
9734         lt_prog_compiler_wl='-Wl,'
9735         lt_prog_compiler_pic='-fpic'
9736         lt_prog_compiler_static='-Bstatic'
9737         ;;
9738       ccc*)
9739         lt_prog_compiler_wl='-Wl,'
9740         # All Alpha code is PIC.
9741         lt_prog_compiler_static='-non_shared'
9742         ;;
9743       xl*)
9744         # IBM XL C 8.0/Fortran 10.1 on PPC
9745         lt_prog_compiler_wl='-Wl,'
9746         lt_prog_compiler_pic='-qpic'
9747         lt_prog_compiler_static='-qstaticlink'
9748         ;;
9749       *)
9750         case `$CC -V 2>&1 | sed 5q` in
9751         *Sun\ C*)
9752           # Sun C 5.9
9753           lt_prog_compiler_pic='-KPIC'
9754           lt_prog_compiler_static='-Bstatic'
9755           lt_prog_compiler_wl='-Wl,'
9756           ;;
9757         *Sun\ F*)
9758           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9759           lt_prog_compiler_pic='-KPIC'
9760           lt_prog_compiler_static='-Bstatic'
9761           lt_prog_compiler_wl=''
9762           ;;
9763         esac
9764         ;;
9765       esac
9766       ;;
9767
9768     newsos6)
9769       lt_prog_compiler_pic='-KPIC'
9770       lt_prog_compiler_static='-Bstatic'
9771       ;;
9772
9773     *nto* | *qnx*)
9774       # QNX uses GNU C++, but need to define -shared option too, otherwise
9775       # it will coredump.
9776       lt_prog_compiler_pic='-fPIC -shared'
9777       ;;
9778
9779     osf3* | osf4* | osf5*)
9780       lt_prog_compiler_wl='-Wl,'
9781       # All OSF/1 code is PIC.
9782       lt_prog_compiler_static='-non_shared'
9783       ;;
9784
9785     rdos*)
9786       lt_prog_compiler_static='-non_shared'
9787       ;;
9788
9789     solaris*)
9790       lt_prog_compiler_pic='-KPIC'
9791       lt_prog_compiler_static='-Bstatic'
9792       case $cc_basename in
9793       f77* | f90* | f95*)
9794         lt_prog_compiler_wl='-Qoption ld ';;
9795       *)
9796         lt_prog_compiler_wl='-Wl,';;
9797       esac
9798       ;;
9799
9800     sunos4*)
9801       lt_prog_compiler_wl='-Qoption ld '
9802       lt_prog_compiler_pic='-PIC'
9803       lt_prog_compiler_static='-Bstatic'
9804       ;;
9805
9806     sysv4 | sysv4.2uw2* | sysv4.3*)
9807       lt_prog_compiler_wl='-Wl,'
9808       lt_prog_compiler_pic='-KPIC'
9809       lt_prog_compiler_static='-Bstatic'
9810       ;;
9811
9812     sysv4*MP*)
9813       if test -d /usr/nec ;then
9814         lt_prog_compiler_pic='-Kconform_pic'
9815         lt_prog_compiler_static='-Bstatic'
9816       fi
9817       ;;
9818
9819     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9820       lt_prog_compiler_wl='-Wl,'
9821       lt_prog_compiler_pic='-KPIC'
9822       lt_prog_compiler_static='-Bstatic'
9823       ;;
9824
9825     unicos*)
9826       lt_prog_compiler_wl='-Wl,'
9827       lt_prog_compiler_can_build_shared=no
9828       ;;
9829
9830     uts4*)
9831       lt_prog_compiler_pic='-pic'
9832       lt_prog_compiler_static='-Bstatic'
9833       ;;
9834
9835     *)
9836       lt_prog_compiler_can_build_shared=no
9837       ;;
9838     esac
9839   fi
9840
9841 case $host_os in
9842   # For platforms which do not support PIC, -DPIC is meaningless:
9843   *djgpp*)
9844     lt_prog_compiler_pic=
9845     ;;
9846   *)
9847     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9848     ;;
9849 esac
9850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9851 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9852
9853
9854
9855
9856
9857
9858 #
9859 # Check to make sure the PIC flag actually works.
9860 #
9861 if test -n "$lt_prog_compiler_pic"; then
9862   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9864 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   lt_cv_prog_compiler_pic_works=no
9868    ac_outfile=conftest.$ac_objext
9869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9871    # Insert the option either (1) after the last *FLAGS variable, or
9872    # (2) before a word containing "conftest.", or (3) at the end.
9873    # Note that $ac_compile itself does not contain backslashes and begins
9874    # with a dollar sign (not a hyphen), so the echo should work correctly.
9875    # The option is referenced via a variable to avoid confusing sed.
9876    lt_compile=`echo "$ac_compile" | $SED \
9877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879    -e 's:$: $lt_compiler_flag:'`
9880    (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881    (eval "$lt_compile" 2>conftest.err)
9882    ac_status=$?
9883    cat conftest.err >&5
9884    echo "$as_me:9884: \$? = $ac_status" >&5
9885    if (exit $ac_status) && test -s "$ac_outfile"; then
9886      # The compiler can only warn and ignore the option if not recognized
9887      # So say no if there are warnings other than the usual output.
9888      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9889      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9890      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9891        lt_cv_prog_compiler_pic_works=yes
9892      fi
9893    fi
9894    $RM conftest*
9895
9896 fi
9897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9898 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
9899
9900 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9901     case $lt_prog_compiler_pic in
9902      "" | " "*) ;;
9903      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9904      esac
9905 else
9906     lt_prog_compiler_pic=
9907      lt_prog_compiler_can_build_shared=no
9908 fi
9909
9910 fi
9911
9912
9913
9914
9915
9916
9917 #
9918 # Check to make sure the static flag actually works.
9919 #
9920 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9921 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9922 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9923 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   lt_cv_prog_compiler_static_works=no
9927    save_LDFLAGS="$LDFLAGS"
9928    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9929    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9930    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9931      # The linker can only warn and ignore the option if not recognized
9932      # So say no if there are warnings
9933      if test -s conftest.err; then
9934        # Append any errors to the config.log.
9935        cat conftest.err 1>&5
9936        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9937        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9938        if diff conftest.exp conftest.er2 >/dev/null; then
9939          lt_cv_prog_compiler_static_works=yes
9940        fi
9941      else
9942        lt_cv_prog_compiler_static_works=yes
9943      fi
9944    fi
9945    $RM -r conftest*
9946    LDFLAGS="$save_LDFLAGS"
9947
9948 fi
9949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9950 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
9951
9952 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9953     :
9954 else
9955     lt_prog_compiler_static=
9956 fi
9957
9958
9959
9960
9961
9962
9963
9964   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9965 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9966 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   lt_cv_prog_compiler_c_o=no
9970    $RM -r conftest 2>/dev/null
9971    mkdir conftest
9972    cd conftest
9973    mkdir out
9974    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9975
9976    lt_compiler_flag="-o out/conftest2.$ac_objext"
9977    # Insert the option either (1) after the last *FLAGS variable, or
9978    # (2) before a word containing "conftest.", or (3) at the end.
9979    # Note that $ac_compile itself does not contain backslashes and begins
9980    # with a dollar sign (not a hyphen), so the echo should work correctly.
9981    lt_compile=`echo "$ac_compile" | $SED \
9982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9984    -e 's:$: $lt_compiler_flag:'`
9985    (eval echo "\"\$as_me:9985: $lt_compile\"" >&5)
9986    (eval "$lt_compile" 2>out/conftest.err)
9987    ac_status=$?
9988    cat out/conftest.err >&5
9989    echo "$as_me:9989: \$? = $ac_status" >&5
9990    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9991    then
9992      # The compiler can only warn and ignore the option if not recognized
9993      # So say no if there are warnings
9994      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9995      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9996      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9997        lt_cv_prog_compiler_c_o=yes
9998      fi
9999    fi
10000    chmod u+w . 2>&5
10001    $RM conftest*
10002    # SGI C++ compiler will create directory out/ii_files/ for
10003    # template instantiation
10004    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10005    $RM out/* && rmdir out
10006    cd ..
10007    $RM -r conftest
10008    $RM conftest*
10009
10010 fi
10011 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10012 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10013
10014
10015
10016
10017
10018
10019   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10020 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10021 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   lt_cv_prog_compiler_c_o=no
10025    $RM -r conftest 2>/dev/null
10026    mkdir conftest
10027    cd conftest
10028    mkdir out
10029    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10030
10031    lt_compiler_flag="-o out/conftest2.$ac_objext"
10032    # Insert the option either (1) after the last *FLAGS variable, or
10033    # (2) before a word containing "conftest.", or (3) at the end.
10034    # Note that $ac_compile itself does not contain backslashes and begins
10035    # with a dollar sign (not a hyphen), so the echo should work correctly.
10036    lt_compile=`echo "$ac_compile" | $SED \
10037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10039    -e 's:$: $lt_compiler_flag:'`
10040    (eval echo "\"\$as_me:10040: $lt_compile\"" >&5)
10041    (eval "$lt_compile" 2>out/conftest.err)
10042    ac_status=$?
10043    cat out/conftest.err >&5
10044    echo "$as_me:10044: \$? = $ac_status" >&5
10045    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10046    then
10047      # The compiler can only warn and ignore the option if not recognized
10048      # So say no if there are warnings
10049      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10050      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10051      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10052        lt_cv_prog_compiler_c_o=yes
10053      fi
10054    fi
10055    chmod u+w . 2>&5
10056    $RM conftest*
10057    # SGI C++ compiler will create directory out/ii_files/ for
10058    # template instantiation
10059    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10060    $RM out/* && rmdir out
10061    cd ..
10062    $RM -r conftest
10063    $RM conftest*
10064
10065 fi
10066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10068
10069
10070
10071
10072 hard_links="nottested"
10073 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10074   # do not overwrite the value of need_locks provided by the user
10075   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10077   hard_links=yes
10078   $RM conftest*
10079   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10080   touch conftest.a
10081   ln conftest.a conftest.b 2>&5 || hard_links=no
10082   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10083   echo "$as_me:$LINENO: result: $hard_links" >&5
10084 echo "${ECHO_T}$hard_links" >&6
10085   if test "$hard_links" = no; then
10086     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10088     need_locks=warn
10089   fi
10090 else
10091   need_locks=no
10092 fi
10093
10094
10095
10096
10097
10098
10099   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10100 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10101
10102   runpath_var=
10103   allow_undefined_flag=
10104   always_export_symbols=no
10105   archive_cmds=
10106   archive_expsym_cmds=
10107   compiler_needs_object=no
10108   enable_shared_with_static_runtimes=no
10109   export_dynamic_flag_spec=
10110   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10111   hardcode_automatic=no
10112   hardcode_direct=no
10113   hardcode_direct_absolute=no
10114   hardcode_libdir_flag_spec=
10115   hardcode_libdir_flag_spec_ld=
10116   hardcode_libdir_separator=
10117   hardcode_minus_L=no
10118   hardcode_shlibpath_var=unsupported
10119   inherit_rpath=no
10120   link_all_deplibs=unknown
10121   module_cmds=
10122   module_expsym_cmds=
10123   old_archive_from_new_cmds=
10124   old_archive_from_expsyms_cmds=
10125   thread_safe_flag_spec=
10126   whole_archive_flag_spec=
10127   # include_expsyms should be a list of space-separated symbols to be *always*
10128   # included in the symbol list
10129   include_expsyms=
10130   # exclude_expsyms can be an extended regexp of symbols to exclude
10131   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10132   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10133   # as well as any symbol that contains `d'.
10134   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10135   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10136   # platforms (ab)use it in PIC code, but their linkers get confused if
10137   # the symbol is explicitly referenced.  Since portable code cannot
10138   # rely on this symbol name, it's probably fine to never include it in
10139   # preloaded symbol tables.
10140   # Exclude shared library initialization/finalization symbols.
10141   extract_expsyms_cmds=
10142
10143   case $host_os in
10144   cygwin* | mingw* | pw32* | cegcc*)
10145     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10146     # When not using gcc, we currently assume that we are using
10147     # Microsoft Visual C++.
10148     if test "$GCC" != yes; then
10149       with_gnu_ld=no
10150     fi
10151     ;;
10152   interix*)
10153     # we just hope/assume this is gcc and not c89 (= MSVC++)
10154     with_gnu_ld=yes
10155     ;;
10156   openbsd*)
10157     with_gnu_ld=no
10158     ;;
10159   esac
10160
10161   ld_shlibs=yes
10162   if test "$with_gnu_ld" = yes; then
10163     # If archive_cmds runs LD, not CC, wlarc should be empty
10164     wlarc='${wl}'
10165
10166     # Set some defaults for GNU ld with shared library support. These
10167     # are reset later if shared libraries are not supported. Putting them
10168     # here allows them to be overridden if necessary.
10169     runpath_var=LD_RUN_PATH
10170     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171     export_dynamic_flag_spec='${wl}--export-dynamic'
10172     # ancient GNU ld didn't support --whole-archive et. al.
10173     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10174       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10175     else
10176       whole_archive_flag_spec=
10177     fi
10178     supports_anon_versioning=no
10179     case `$LD -v 2>&1` in
10180       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10181       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10182       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10183       *\ 2.11.*) ;; # other 2.11 versions
10184       *) supports_anon_versioning=yes ;;
10185     esac
10186
10187     # See if GNU ld supports shared libraries.
10188     case $host_os in
10189     aix[3-9]*)
10190       # On AIX/PPC, the GNU linker is very broken
10191       if test "$host_cpu" != ia64; then
10192         ld_shlibs=no
10193         cat <<_LT_EOF 1>&2
10194
10195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10196 *** to be unable to reliably create shared libraries on AIX.
10197 *** Therefore, libtool is disabling shared libraries support.  If you
10198 *** really care for shared libraries, you may want to modify your PATH
10199 *** so that a non-GNU linker is found, and then restart.
10200
10201 _LT_EOF
10202       fi
10203       ;;
10204
10205     amigaos*)
10206       case $host_cpu in
10207       powerpc)
10208             # see comment about AmigaOS4 .so support
10209             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210             archive_expsym_cmds=''
10211         ;;
10212       m68k)
10213             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)'
10214             hardcode_libdir_flag_spec='-L$libdir'
10215             hardcode_minus_L=yes
10216         ;;
10217       esac
10218       ;;
10219
10220     beos*)
10221       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10222         allow_undefined_flag=unsupported
10223         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10224         # support --undefined.  This deserves some investigation.  FIXME
10225         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226       else
10227         ld_shlibs=no
10228       fi
10229       ;;
10230
10231     cygwin* | mingw* | pw32* | cegcc*)
10232       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10233       # as there is no search path for DLLs.
10234       hardcode_libdir_flag_spec='-L$libdir'
10235       allow_undefined_flag=unsupported
10236       always_export_symbols=no
10237       enable_shared_with_static_runtimes=yes
10238       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10239
10240       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10242         # If the export-symbols file already is a .def file (1st line
10243         # is EXPORTS), use it as is; otherwise, prepend...
10244         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10245           cp $export_symbols $output_objdir/$soname.def;
10246         else
10247           echo EXPORTS > $output_objdir/$soname.def;
10248           cat $export_symbols >> $output_objdir/$soname.def;
10249         fi~
10250         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10251       else
10252         ld_shlibs=no
10253       fi
10254       ;;
10255
10256     interix[3-9]*)
10257       hardcode_direct=no
10258       hardcode_shlibpath_var=no
10259       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10260       export_dynamic_flag_spec='${wl}-E'
10261       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10262       # Instead, shared libraries are loaded at an image base (0x10000000 by
10263       # default) and relocated if they conflict, which is a slow very memory
10264       # consuming and fragmenting process.  To avoid this, we pick a random,
10265       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10266       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10267       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10268       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'
10269       ;;
10270
10271     gnu* | linux* | tpf* | k*bsd*-gnu)
10272       tmp_diet=no
10273       if test "$host_os" = linux-dietlibc; then
10274         case $cc_basename in
10275           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10276         esac
10277       fi
10278       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10279          && test "$tmp_diet" = no
10280       then
10281         tmp_addflag=
10282         tmp_sharedflag='-shared'
10283         case $cc_basename,$host_cpu in
10284         pgcc*)                          # Portland Group C compiler
10285           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'
10286           tmp_addflag=' $pic_flag'
10287           ;;
10288         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10289           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'
10290           tmp_addflag=' $pic_flag -Mnomain' ;;
10291         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10292           tmp_addflag=' -i_dynamic' ;;
10293         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10294           tmp_addflag=' -i_dynamic -nofor_main' ;;
10295         ifc* | ifort*)                  # Intel Fortran compiler
10296           tmp_addflag=' -nofor_main' ;;
10297         lf95*)                          # Lahey Fortran 8.1
10298           whole_archive_flag_spec=
10299           tmp_sharedflag='--shared' ;;
10300         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10301           tmp_sharedflag='-qmkshrobj'
10302           tmp_addflag= ;;
10303         esac
10304         case `$CC -V 2>&1 | sed 5q` in
10305         *Sun\ C*)                       # Sun C 5.9
10306           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'
10307           compiler_needs_object=yes
10308           tmp_sharedflag='-G' ;;
10309         *Sun\ F*)                       # Sun Fortran 8.3
10310           tmp_sharedflag='-G' ;;
10311         esac
10312         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10313
10314         if test "x$supports_anon_versioning" = xyes; then
10315           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10316             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10317             echo "local: *; };" >> $output_objdir/$libname.ver~
10318             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10319         fi
10320
10321         case $cc_basename in
10322         xlf*)
10323           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10324           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10325           hardcode_libdir_flag_spec=
10326           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10327           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10328           if test "x$supports_anon_versioning" = xyes; then
10329             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10330               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10331               echo "local: *; };" >> $output_objdir/$libname.ver~
10332               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10333           fi
10334           ;;
10335         esac
10336       else
10337         ld_shlibs=no
10338       fi
10339       ;;
10340
10341     netbsd*)
10342       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10343         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10344         wlarc=
10345       else
10346         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10348       fi
10349       ;;
10350
10351     solaris*)
10352       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10353         ld_shlibs=no
10354         cat <<_LT_EOF 1>&2
10355
10356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10357 *** create shared libraries on Solaris systems.  Therefore, libtool
10358 *** is disabling shared libraries support.  We urge you to upgrade GNU
10359 *** binutils to release 2.9.1 or newer.  Another option is to modify
10360 *** your PATH or compiler configuration so that the native linker is
10361 *** used, and then restart.
10362
10363 _LT_EOF
10364       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10367       else
10368         ld_shlibs=no
10369       fi
10370       ;;
10371
10372     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10373       case `$LD -v 2>&1` in
10374         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10375         ld_shlibs=no
10376         cat <<_LT_EOF 1>&2
10377
10378 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10379 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10380 *** is disabling shared libraries support.  We urge you to upgrade GNU
10381 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10382 *** your PATH or compiler configuration so that the native linker is
10383 *** used, and then restart.
10384
10385 _LT_EOF
10386         ;;
10387         *)
10388           # For security reasons, it is highly recommended that you always
10389           # use absolute paths for naming shared libraries, and exclude the
10390           # DT_RUNPATH tag from executables and libraries.  But doing so
10391           # requires that you compile everything twice, which is a pain.
10392           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10393             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10394             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10396           else
10397             ld_shlibs=no
10398           fi
10399         ;;
10400       esac
10401       ;;
10402
10403     sunos4*)
10404       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10405       wlarc=
10406       hardcode_direct=yes
10407       hardcode_shlibpath_var=no
10408       ;;
10409
10410     *)
10411       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10414       else
10415         ld_shlibs=no
10416       fi
10417       ;;
10418     esac
10419
10420     if test "$ld_shlibs" = no; then
10421       runpath_var=
10422       hardcode_libdir_flag_spec=
10423       export_dynamic_flag_spec=
10424       whole_archive_flag_spec=
10425     fi
10426   else
10427     # PORTME fill in a description of your system's linker (not GNU ld)
10428     case $host_os in
10429     aix3*)
10430       allow_undefined_flag=unsupported
10431       always_export_symbols=yes
10432       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'
10433       # Note: this linker hardcodes the directories in LIBPATH if there
10434       # are no directories specified by -L.
10435       hardcode_minus_L=yes
10436       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10437         # Neither direct hardcoding nor static linking is supported with a
10438         # broken collect2.
10439         hardcode_direct=unsupported
10440       fi
10441       ;;
10442
10443     aix[4-9]*)
10444       if test "$host_cpu" = ia64; then
10445         # On IA64, the linker does run time linking by default, so we don't
10446         # have to do anything special.
10447         aix_use_runtimelinking=no
10448         exp_sym_flag='-Bexport'
10449         no_entry_flag=""
10450       else
10451         # If we're using GNU nm, then we don't want the "-C" option.
10452         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10453         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10454           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'
10455         else
10456           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'
10457         fi
10458         aix_use_runtimelinking=no
10459
10460         # Test if we are trying to use run time linking or normal
10461         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10462         # need to do runtime linking.
10463         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10464           for ld_flag in $LDFLAGS; do
10465           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10466             aix_use_runtimelinking=yes
10467             break
10468           fi
10469           done
10470           ;;
10471         esac
10472
10473         exp_sym_flag='-bexport'
10474         no_entry_flag='-bnoentry'
10475       fi
10476
10477       # When large executables or shared objects are built, AIX ld can
10478       # have problems creating the table of contents.  If linking a library
10479       # or program results in "error TOC overflow" add -mminimal-toc to
10480       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10481       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10482
10483       archive_cmds=''
10484       hardcode_direct=yes
10485       hardcode_direct_absolute=yes
10486       hardcode_libdir_separator=':'
10487       link_all_deplibs=yes
10488       file_list_spec='${wl}-f,'
10489
10490       if test "$GCC" = yes; then
10491         case $host_os in aix4.[012]|aix4.[012].*)
10492         # We only want to do this on AIX 4.2 and lower, the check
10493         # below for broken collect2 doesn't work under 4.3+
10494           collect2name=`${CC} -print-prog-name=collect2`
10495           if test -f "$collect2name" &&
10496            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10497           then
10498           # We have reworked collect2
10499           :
10500           else
10501           # We have old collect2
10502           hardcode_direct=unsupported
10503           # It fails to find uninstalled libraries when the uninstalled
10504           # path is not listed in the libpath.  Setting hardcode_minus_L
10505           # to unsupported forces relinking
10506           hardcode_minus_L=yes
10507           hardcode_libdir_flag_spec='-L$libdir'
10508           hardcode_libdir_separator=
10509           fi
10510           ;;
10511         esac
10512         shared_flag='-shared'
10513         if test "$aix_use_runtimelinking" = yes; then
10514           shared_flag="$shared_flag "'${wl}-G'
10515         fi
10516       else
10517         # not using gcc
10518         if test "$host_cpu" = ia64; then
10519         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10520         # chokes on -Wl,-G. The following line is correct:
10521           shared_flag='-G'
10522         else
10523           if test "$aix_use_runtimelinking" = yes; then
10524             shared_flag='${wl}-G'
10525           else
10526             shared_flag='${wl}-bM:SRE'
10527           fi
10528         fi
10529       fi
10530
10531       export_dynamic_flag_spec='${wl}-bexpall'
10532       # It seems that -bexpall does not export symbols beginning with
10533       # underscore (_), so it is better to generate a list of symbols to export.
10534       always_export_symbols=yes
10535       if test "$aix_use_runtimelinking" = yes; then
10536         # Warning - without using the other runtime loading flags (-brtl),
10537         # -berok will link without error, but may produce a broken library.
10538         allow_undefined_flag='-berok'
10539         # Determine the default libpath from the value encoded in an
10540         # empty executable.
10541         if test x$gcc_no_link = xyes; then
10542   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10544    { (exit 1); exit 1; }; }
10545 fi
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h.  */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h.  */
10552
10553 int
10554 main ()
10555 {
10556
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563   (eval $ac_link) 2>conftest.er1
10564   ac_status=$?
10565   grep -v '^ *+' conftest.er1 >conftest.err
10566   rm -f conftest.er1
10567   cat conftest.err >&5
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } &&
10570          { ac_try='test -z "$ac_c_werror_flag"
10571                          || test ! -s conftest.err'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; } &&
10577          { ac_try='test -s conftest$ac_exeext'
10578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579   (eval $ac_try) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); }; }; then
10583
10584 lt_aix_libpath_sed='
10585     /Import File Strings/,/^$/ {
10586         /^0/ {
10587             s/^0  *\(.*\)$/\1/
10588             p
10589         }
10590     }'
10591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10592 # Check for a 64-bit object if we didn't find anything.
10593 if test -z "$aix_libpath"; then
10594   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10595 fi
10596 else
10597   echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10599
10600 fi
10601 rm -f conftest.err conftest.$ac_objext \
10602       conftest$ac_exeext conftest.$ac_ext
10603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10604
10605         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10606         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"
10607       else
10608         if test "$host_cpu" = ia64; then
10609           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10610           allow_undefined_flag="-z nodefs"
10611           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"
10612         else
10613          # Determine the default libpath from the value encoded in an
10614          # empty executable.
10615          if test x$gcc_no_link = xyes; then
10616   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10618    { (exit 1); exit 1; }; }
10619 fi
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626
10627 int
10628 main ()
10629 {
10630
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -z "$ac_c_werror_flag"
10645                          || test ! -s conftest.err'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657
10658 lt_aix_libpath_sed='
10659     /Import File Strings/,/^$/ {
10660         /^0/ {
10661             s/^0  *\(.*\)$/\1/
10662             p
10663         }
10664     }'
10665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10666 # Check for a 64-bit object if we didn't find anything.
10667 if test -z "$aix_libpath"; then
10668   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10669 fi
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676       conftest$ac_exeext conftest.$ac_ext
10677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10678
10679          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10680           # Warning - without using the other run time loading flags,
10681           # -berok will link without error, but may produce a broken library.
10682           no_undefined_flag=' ${wl}-bernotok'
10683           allow_undefined_flag=' ${wl}-berok'
10684           # Exported symbols can be pulled into shared objects from archives
10685           whole_archive_flag_spec='$convenience'
10686           archive_cmds_need_lc=yes
10687           # This is similar to how AIX traditionally builds its shared libraries.
10688           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'
10689         fi
10690       fi
10691       ;;
10692
10693     amigaos*)
10694       case $host_cpu in
10695       powerpc)
10696             # see comment about AmigaOS4 .so support
10697             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698             archive_expsym_cmds=''
10699         ;;
10700       m68k)
10701             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)'
10702             hardcode_libdir_flag_spec='-L$libdir'
10703             hardcode_minus_L=yes
10704         ;;
10705       esac
10706       ;;
10707
10708     bsdi[45]*)
10709       export_dynamic_flag_spec=-rdynamic
10710       ;;
10711
10712     cygwin* | mingw* | pw32* | cegcc*)
10713       # When not using gcc, we currently assume that we are using
10714       # Microsoft Visual C++.
10715       # hardcode_libdir_flag_spec is actually meaningless, as there is
10716       # no search path for DLLs.
10717       hardcode_libdir_flag_spec=' '
10718       allow_undefined_flag=unsupported
10719       # Tell ltmain to make .lib files, not .a files.
10720       libext=lib
10721       # Tell ltmain to make .dll files, not .so files.
10722       shrext_cmds=".dll"
10723       # FIXME: Setting linknames here is a bad hack.
10724       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10725       # The linker will automatically build a .lib file if we build a DLL.
10726       old_archive_from_new_cmds='true'
10727       # FIXME: Should let the user specify the lib program.
10728       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10729       fix_srcfile_path='`cygpath -w "$srcfile"`'
10730       enable_shared_with_static_runtimes=yes
10731       ;;
10732
10733     darwin* | rhapsody*)
10734
10735
10736   archive_cmds_need_lc=no
10737   hardcode_direct=no
10738   hardcode_automatic=yes
10739   hardcode_shlibpath_var=unsupported
10740   whole_archive_flag_spec=''
10741   link_all_deplibs=yes
10742   allow_undefined_flag="$_lt_dar_allow_undefined"
10743   case $cc_basename in
10744      ifort*) _lt_dar_can_shared=yes ;;
10745      *) _lt_dar_can_shared=$GCC ;;
10746   esac
10747   if test "$_lt_dar_can_shared" = "yes"; then
10748     output_verbose_link_cmd=echo
10749     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10750     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10751     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10752     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10753
10754   else
10755   ld_shlibs=no
10756   fi
10757
10758       ;;
10759
10760     dgux*)
10761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762       hardcode_libdir_flag_spec='-L$libdir'
10763       hardcode_shlibpath_var=no
10764       ;;
10765
10766     freebsd1*)
10767       ld_shlibs=no
10768       ;;
10769
10770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10771     # support.  Future versions do this automatically, but an explicit c++rt0.o
10772     # does not break anything, and helps significantly (at the cost of a little
10773     # extra space).
10774     freebsd2.2*)
10775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10776       hardcode_libdir_flag_spec='-R$libdir'
10777       hardcode_direct=yes
10778       hardcode_shlibpath_var=no
10779       ;;
10780
10781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10782     freebsd2*)
10783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10784       hardcode_direct=yes
10785       hardcode_minus_L=yes
10786       hardcode_shlibpath_var=no
10787       ;;
10788
10789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10790     freebsd* | dragonfly*)
10791       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10792       hardcode_libdir_flag_spec='-R$libdir'
10793       hardcode_direct=yes
10794       hardcode_shlibpath_var=no
10795       ;;
10796
10797     hpux9*)
10798       if test "$GCC" = yes; then
10799         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'
10800       else
10801         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'
10802       fi
10803       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10804       hardcode_libdir_separator=:
10805       hardcode_direct=yes
10806
10807       # hardcode_minus_L: Not really in the search PATH,
10808       # but as the default location of the library.
10809       hardcode_minus_L=yes
10810       export_dynamic_flag_spec='${wl}-E'
10811       ;;
10812
10813     hpux10*)
10814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10815         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10816       else
10817         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10818       fi
10819       if test "$with_gnu_ld" = no; then
10820         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10821         hardcode_libdir_flag_spec_ld='+b $libdir'
10822         hardcode_libdir_separator=:
10823         hardcode_direct=yes
10824         hardcode_direct_absolute=yes
10825         export_dynamic_flag_spec='${wl}-E'
10826         # hardcode_minus_L: Not really in the search PATH,
10827         # but as the default location of the library.
10828         hardcode_minus_L=yes
10829       fi
10830       ;;
10831
10832     hpux11*)
10833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10834         case $host_cpu in
10835         hppa*64*)
10836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837           ;;
10838         ia64*)
10839           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10840           ;;
10841         *)
10842           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10843           ;;
10844         esac
10845       else
10846         case $host_cpu in
10847         hppa*64*)
10848           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10849           ;;
10850         ia64*)
10851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10852           ;;
10853         *)
10854           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10855           ;;
10856         esac
10857       fi
10858       if test "$with_gnu_ld" = no; then
10859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10860         hardcode_libdir_separator=:
10861
10862         case $host_cpu in
10863         hppa*64*|ia64*)
10864           hardcode_direct=no
10865           hardcode_shlibpath_var=no
10866           ;;
10867         *)
10868           hardcode_direct=yes
10869           hardcode_direct_absolute=yes
10870           export_dynamic_flag_spec='${wl}-E'
10871
10872           # hardcode_minus_L: Not really in the search PATH,
10873           # but as the default location of the library.
10874           hardcode_minus_L=yes
10875           ;;
10876         esac
10877       fi
10878       ;;
10879
10880     irix5* | irix6* | nonstopux*)
10881       if test "$GCC" = yes; then
10882         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'
10883         # Try to use the -exported_symbol ld option, if it does not
10884         # work, assume that -exports_file does not work either and
10885         # implicitly export all symbols.
10886         save_LDFLAGS="$LDFLAGS"
10887         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10888         if test x$gcc_no_link = xyes; then
10889   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10891    { (exit 1); exit 1; }; }
10892 fi
10893 cat >conftest.$ac_ext <<_ACEOF
10894 int foo(void) {}
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898   (eval $ac_link) 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -z "$ac_c_werror_flag"
10906                          || test ! -s conftest.err'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest$ac_exeext'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   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'
10919
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 fi
10925 rm -f conftest.err conftest.$ac_objext \
10926       conftest$ac_exeext conftest.$ac_ext
10927         LDFLAGS="$save_LDFLAGS"
10928       else
10929         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'
10930         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'
10931       fi
10932       archive_cmds_need_lc='no'
10933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10934       hardcode_libdir_separator=:
10935       inherit_rpath=yes
10936       link_all_deplibs=yes
10937       ;;
10938
10939     netbsd*)
10940       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10941         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10942       else
10943         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10944       fi
10945       hardcode_libdir_flag_spec='-R$libdir'
10946       hardcode_direct=yes
10947       hardcode_shlibpath_var=no
10948       ;;
10949
10950     newsos6)
10951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952       hardcode_direct=yes
10953       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10954       hardcode_libdir_separator=:
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     *nto* | *qnx*)
10959       ;;
10960
10961     openbsd*)
10962       if test -f /usr/libexec/ld.so; then
10963         hardcode_direct=yes
10964         hardcode_shlibpath_var=no
10965         hardcode_direct_absolute=yes
10966         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10967           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10968           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10969           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10970           export_dynamic_flag_spec='${wl}-E'
10971         else
10972           case $host_os in
10973            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10974              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10975              hardcode_libdir_flag_spec='-R$libdir'
10976              ;;
10977            *)
10978              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10979              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10980              ;;
10981           esac
10982         fi
10983       else
10984         ld_shlibs=no
10985       fi
10986       ;;
10987
10988     os2*)
10989       hardcode_libdir_flag_spec='-L$libdir'
10990       hardcode_minus_L=yes
10991       allow_undefined_flag=unsupported
10992       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'
10993       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10994       ;;
10995
10996     osf3*)
10997       if test "$GCC" = yes; then
10998         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10999         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'
11000       else
11001         allow_undefined_flag=' -expect_unresolved \*'
11002         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'
11003       fi
11004       archive_cmds_need_lc='no'
11005       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11006       hardcode_libdir_separator=:
11007       ;;
11008
11009     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11010       if test "$GCC" = yes; then
11011         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11012         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'
11013         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11014       else
11015         allow_undefined_flag=' -expect_unresolved \*'
11016         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'
11017         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~
11018         $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'
11019
11020         # Both c and cxx compiler support -rpath directly
11021         hardcode_libdir_flag_spec='-rpath $libdir'
11022       fi
11023       archive_cmds_need_lc='no'
11024       hardcode_libdir_separator=:
11025       ;;
11026
11027     solaris*)
11028       no_undefined_flag=' -z defs'
11029       if test "$GCC" = yes; then
11030         wlarc='${wl}'
11031         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11034       else
11035         case `$CC -V 2>&1` in
11036         *"Compilers 5.0"*)
11037           wlarc=''
11038           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11040           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11041           ;;
11042         *)
11043           wlarc='${wl}'
11044           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11045           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11046           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11047           ;;
11048         esac
11049       fi
11050       hardcode_libdir_flag_spec='-R$libdir'
11051       hardcode_shlibpath_var=no
11052       case $host_os in
11053       solaris2.[0-5] | solaris2.[0-5].*) ;;
11054       *)
11055         # The compiler driver will combine and reorder linker options,
11056         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11057         # but is careful enough not to reorder.
11058         # Supported since Solaris 2.6 (maybe 2.5.1?)
11059         if test "$GCC" = yes; then
11060           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11061         else
11062           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11063         fi
11064         ;;
11065       esac
11066       link_all_deplibs=yes
11067       ;;
11068
11069     sunos4*)
11070       if test "x$host_vendor" = xsequent; then
11071         # Use $CC to link under sequent, because it throws in some extra .o
11072         # files that make .init and .fini sections work.
11073         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11074       else
11075         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11076       fi
11077       hardcode_libdir_flag_spec='-L$libdir'
11078       hardcode_direct=yes
11079       hardcode_minus_L=yes
11080       hardcode_shlibpath_var=no
11081       ;;
11082
11083     sysv4)
11084       case $host_vendor in
11085         sni)
11086           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11087           hardcode_direct=yes # is this really true???
11088         ;;
11089         siemens)
11090           ## LD is ld it makes a PLAMLIB
11091           ## CC just makes a GrossModule.
11092           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11093           reload_cmds='$CC -r -o $output$reload_objs'
11094           hardcode_direct=no
11095         ;;
11096         motorola)
11097           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11099         ;;
11100       esac
11101       runpath_var='LD_RUN_PATH'
11102       hardcode_shlibpath_var=no
11103       ;;
11104
11105     sysv4.3*)
11106       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107       hardcode_shlibpath_var=no
11108       export_dynamic_flag_spec='-Bexport'
11109       ;;
11110
11111     sysv4*MP*)
11112       if test -d /usr/nec; then
11113         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114         hardcode_shlibpath_var=no
11115         runpath_var=LD_RUN_PATH
11116         hardcode_runpath_var=yes
11117         ld_shlibs=yes
11118       fi
11119       ;;
11120
11121     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11122       no_undefined_flag='${wl}-z,text'
11123       archive_cmds_need_lc=no
11124       hardcode_shlibpath_var=no
11125       runpath_var='LD_RUN_PATH'
11126
11127       if test "$GCC" = yes; then
11128         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130       else
11131         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133       fi
11134       ;;
11135
11136     sysv5* | sco3.2v5* | sco5v6*)
11137       # Note: We can NOT use -z defs as we might desire, because we do not
11138       # link with -lc, and that would cause any symbols used from libc to
11139       # always be unresolved, which means just about no library would
11140       # ever link correctly.  If we're not using GNU ld we use -z text
11141       # though, which does catch some bad symbols but isn't as heavy-handed
11142       # as -z defs.
11143       no_undefined_flag='${wl}-z,text'
11144       allow_undefined_flag='${wl}-z,nodefs'
11145       archive_cmds_need_lc=no
11146       hardcode_shlibpath_var=no
11147       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11148       hardcode_libdir_separator=':'
11149       link_all_deplibs=yes
11150       export_dynamic_flag_spec='${wl}-Bexport'
11151       runpath_var='LD_RUN_PATH'
11152
11153       if test "$GCC" = yes; then
11154         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156       else
11157         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159       fi
11160       ;;
11161
11162     uts4*)
11163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164       hardcode_libdir_flag_spec='-L$libdir'
11165       hardcode_shlibpath_var=no
11166       ;;
11167
11168     *)
11169       ld_shlibs=no
11170       ;;
11171     esac
11172
11173     if test x$host_vendor = xsni; then
11174       case $host in
11175       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11176         export_dynamic_flag_spec='${wl}-Blargedynsym'
11177         ;;
11178       esac
11179     fi
11180   fi
11181
11182 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11183 echo "${ECHO_T}$ld_shlibs" >&6
11184 test "$ld_shlibs" = no && can_build_shared=no
11185
11186 with_gnu_ld=$with_gnu_ld
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202 #
11203 # Do we need to explicitly link libc?
11204 #
11205 case "x$archive_cmds_need_lc" in
11206 x|xyes)
11207   # Assume -lc should be added
11208   archive_cmds_need_lc=yes
11209
11210   if test "$enable_shared" = yes && test "$GCC" = yes; then
11211     case $archive_cmds in
11212     *'~'*)
11213       # FIXME: we may have to deal with multi-command sequences.
11214       ;;
11215     '$CC '*)
11216       # Test whether the compiler implicitly links with -lc since on some
11217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11218       # to ld, don't add -lc before -lgcc.
11219       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11221       $RM conftest*
11222       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11223
11224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225   (eval $ac_compile) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } 2>conftest.err; then
11229         soname=conftest
11230         lib=conftest
11231         libobjs=conftest.$ac_objext
11232         deplibs=
11233         wl=$lt_prog_compiler_wl
11234         pic_flag=$lt_prog_compiler_pic
11235         compiler_flags=-v
11236         linker_flags=-v
11237         verstring=
11238         output_objdir=.
11239         libname=conftest
11240         lt_save_allow_undefined_flag=$allow_undefined_flag
11241         allow_undefined_flag=
11242         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11243   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }
11247         then
11248           archive_cmds_need_lc=no
11249         else
11250           archive_cmds_need_lc=yes
11251         fi
11252         allow_undefined_flag=$lt_save_allow_undefined_flag
11253       else
11254         cat conftest.err 1>&5
11255       fi
11256       $RM conftest*
11257       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11258 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11259       ;;
11260     esac
11261   fi
11262   ;;
11263 esac
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
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11423
11424 if test "$GCC" = yes; then
11425   case $host_os in
11426     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11427     *) lt_awk_arg="/^libraries:/" ;;
11428   esac
11429   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11430   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11431     # if the path contains ";" then we assume it to be the separator
11432     # otherwise default to the standard path separator (i.e. ":") - it is
11433     # assumed that no part of a normal pathname contains ";" but that should
11434     # okay in the real world where ";" in dirpaths is itself problematic.
11435     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11436   else
11437     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11438   fi
11439   # Ok, now we have the path, separated by spaces, we can step through it
11440   # and add multilib dir if necessary.
11441   lt_tmp_lt_search_path_spec=
11442   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11443   for lt_sys_path in $lt_search_path_spec; do
11444     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11445       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11446     else
11447       test -d "$lt_sys_path" && \
11448         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11449     fi
11450   done
11451   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11452 BEGIN {RS=" "; FS="/|\n";} {
11453   lt_foo="";
11454   lt_count=0;
11455   for (lt_i = NF; lt_i > 0; lt_i--) {
11456     if ($lt_i != "" && $lt_i != ".") {
11457       if ($lt_i == "..") {
11458         lt_count++;
11459       } else {
11460         if (lt_count == 0) {
11461           lt_foo="/" $lt_i lt_foo;
11462         } else {
11463           lt_count--;
11464         }
11465       }
11466     }
11467   }
11468   if (lt_foo != "") { lt_freq[lt_foo]++; }
11469   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11470 }'`
11471   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11472 else
11473   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11474 fi
11475 library_names_spec=
11476 libname_spec='lib$name'
11477 soname_spec=
11478 shrext_cmds=".so"
11479 postinstall_cmds=
11480 postuninstall_cmds=
11481 finish_cmds=
11482 finish_eval=
11483 shlibpath_var=
11484 shlibpath_overrides_runpath=unknown
11485 version_type=none
11486 dynamic_linker="$host_os ld.so"
11487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11488 need_lib_prefix=unknown
11489 hardcode_into_libs=no
11490
11491 # when you set need_version to no, make sure it does not cause -set_version
11492 # flags to be left without arguments
11493 need_version=unknown
11494
11495 case $host_os in
11496 aix3*)
11497   version_type=linux
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11499   shlibpath_var=LIBPATH
11500
11501   # AIX 3 has no versioning support, so we append a major version to the name.
11502   soname_spec='${libname}${release}${shared_ext}$major'
11503   ;;
11504
11505 aix[4-9]*)
11506   version_type=linux
11507   need_lib_prefix=no
11508   need_version=no
11509   hardcode_into_libs=yes
11510   if test "$host_cpu" = ia64; then
11511     # AIX 5 supports IA64
11512     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11513     shlibpath_var=LD_LIBRARY_PATH
11514   else
11515     # With GCC up to 2.95.x, collect2 would create an import file
11516     # for dependence libraries.  The import file would start with
11517     # the line `#! .'.  This would cause the generated library to
11518     # depend on `.', always an invalid library.  This was fixed in
11519     # development snapshots of GCC prior to 3.0.
11520     case $host_os in
11521       aix4 | aix4.[01] | aix4.[01].*)
11522       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11523            echo ' yes '
11524            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11525         :
11526       else
11527         can_build_shared=no
11528       fi
11529       ;;
11530     esac
11531     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11532     # soname into executable. Probably we can add versioning support to
11533     # collect2, so additional links can be useful in future.
11534     if test "$aix_use_runtimelinking" = yes; then
11535       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11536       # instead of lib<name>.a to let people know that these are not
11537       # typical AIX shared libraries.
11538       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539     else
11540       # We preserve .a as extension for shared libraries through AIX4.2
11541       # and later when we are not doing run time linking.
11542       library_names_spec='${libname}${release}.a $libname.a'
11543       soname_spec='${libname}${release}${shared_ext}$major'
11544     fi
11545     shlibpath_var=LIBPATH
11546   fi
11547   ;;
11548
11549 amigaos*)
11550   case $host_cpu in
11551   powerpc)
11552     # Since July 2007 AmigaOS4 officially supports .so libraries.
11553     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555     ;;
11556   m68k)
11557     library_names_spec='$libname.ixlibrary $libname.a'
11558     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11559     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'
11560     ;;
11561   esac
11562   ;;
11563
11564 beos*)
11565   library_names_spec='${libname}${shared_ext}'
11566   dynamic_linker="$host_os ld.so"
11567   shlibpath_var=LIBRARY_PATH
11568   ;;
11569
11570 bsdi[45]*)
11571   version_type=linux
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11576   shlibpath_var=LD_LIBRARY_PATH
11577   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11578   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11579   # the default ld.so.conf also contains /usr/contrib/lib and
11580   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11581   # libtool to hard-code these into programs
11582   ;;
11583
11584 cygwin* | mingw* | pw32* | cegcc*)
11585   version_type=windows
11586   shrext_cmds=".dll"
11587   need_version=no
11588   need_lib_prefix=no
11589
11590   case $GCC,$host_os in
11591   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11592     library_names_spec='$libname.dll.a'
11593     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11594     postinstall_cmds='base_file=`basename \${file}`~
11595       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11596       dldir=$destdir/`dirname \$dlpath`~
11597       test -d \$dldir || mkdir -p \$dldir~
11598       $install_prog $dir/$dlname \$dldir/$dlname~
11599       chmod a+x \$dldir/$dlname~
11600       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11601         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11602       fi'
11603     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11604       dlpath=$dir/\$dldll~
11605        $RM \$dlpath'
11606     shlibpath_overrides_runpath=yes
11607
11608     case $host_os in
11609     cygwin*)
11610       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11611       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11612       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11613       ;;
11614     mingw* | cegcc*)
11615       # MinGW DLLs use traditional 'lib' prefix
11616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11617       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11618       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11619         # It is most probably a Windows format PATH printed by
11620         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11621         # path with ; separators, and with drive letters. We can handle the
11622         # drive letters (cygwin fileutils understands them), so leave them,
11623         # especially as we might pass files found there to a mingw objdump,
11624         # which wouldn't understand a cygwinified path. Ahh.
11625         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11626       else
11627         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11628       fi
11629       ;;
11630     pw32*)
11631       # pw32 DLLs use 'pw' prefix rather than 'lib'
11632       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11633       ;;
11634     esac
11635     ;;
11636
11637   *)
11638     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11639     ;;
11640   esac
11641   dynamic_linker='Win32 ld.exe'
11642   # FIXME: first we should search . and the directory the executable is in
11643   shlibpath_var=PATH
11644   ;;
11645
11646 darwin* | rhapsody*)
11647   dynamic_linker="$host_os dyld"
11648   version_type=darwin
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11652   soname_spec='${libname}${release}${major}$shared_ext'
11653   shlibpath_overrides_runpath=yes
11654   shlibpath_var=DYLD_LIBRARY_PATH
11655   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11656
11657   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11658   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11659   ;;
11660
11661 dgux*)
11662   version_type=linux
11663   need_lib_prefix=no
11664   need_version=no
11665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11666   soname_spec='${libname}${release}${shared_ext}$major'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   ;;
11669
11670 freebsd1*)
11671   dynamic_linker=no
11672   ;;
11673
11674 freebsd* | dragonfly*)
11675   # DragonFly does not have aout.  When/if they implement a new
11676   # versioning mechanism, adjust this.
11677   if test -x /usr/bin/objformat; then
11678     objformat=`/usr/bin/objformat`
11679   else
11680     case $host_os in
11681     freebsd[123]*) objformat=aout ;;
11682     *) objformat=elf ;;
11683     esac
11684   fi
11685   version_type=freebsd-$objformat
11686   case $version_type in
11687     freebsd-elf*)
11688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11689       need_version=no
11690       need_lib_prefix=no
11691       ;;
11692     freebsd-*)
11693       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11694       need_version=yes
11695       ;;
11696   esac
11697   shlibpath_var=LD_LIBRARY_PATH
11698   case $host_os in
11699   freebsd2*)
11700     shlibpath_overrides_runpath=yes
11701     ;;
11702   freebsd3.[01]* | freebsdelf3.[01]*)
11703     shlibpath_overrides_runpath=yes
11704     hardcode_into_libs=yes
11705     ;;
11706   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11707   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11708     shlibpath_overrides_runpath=no
11709     hardcode_into_libs=yes
11710     ;;
11711   *) # from 4.6 on, and DragonFly
11712     shlibpath_overrides_runpath=yes
11713     hardcode_into_libs=yes
11714     ;;
11715   esac
11716   ;;
11717
11718 gnu*)
11719   version_type=linux
11720   need_lib_prefix=no
11721   need_version=no
11722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11723   soname_spec='${libname}${release}${shared_ext}$major'
11724   shlibpath_var=LD_LIBRARY_PATH
11725   hardcode_into_libs=yes
11726   ;;
11727
11728 hpux9* | hpux10* | hpux11*)
11729   # Give a soname corresponding to the major version so that dld.sl refuses to
11730   # link against other versions.
11731   version_type=sunos
11732   need_lib_prefix=no
11733   need_version=no
11734   case $host_cpu in
11735   ia64*)
11736     shrext_cmds='.so'
11737     hardcode_into_libs=yes
11738     dynamic_linker="$host_os dld.so"
11739     shlibpath_var=LD_LIBRARY_PATH
11740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742     soname_spec='${libname}${release}${shared_ext}$major'
11743     if test "X$HPUX_IA64_MODE" = X32; then
11744       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11745     else
11746       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11747     fi
11748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749     ;;
11750   hppa*64*)
11751     shrext_cmds='.sl'
11752     hardcode_into_libs=yes
11753     dynamic_linker="$host_os dld.sl"
11754     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757     soname_spec='${libname}${release}${shared_ext}$major'
11758     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11760     ;;
11761   *)
11762     shrext_cmds='.sl'
11763     dynamic_linker="$host_os dld.sl"
11764     shlibpath_var=SHLIB_PATH
11765     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767     soname_spec='${libname}${release}${shared_ext}$major'
11768     ;;
11769   esac
11770   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11771   postinstall_cmds='chmod 555 $lib'
11772   ;;
11773
11774 interix[3-9]*)
11775   version_type=linux
11776   need_lib_prefix=no
11777   need_version=no
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779   soname_spec='${libname}${release}${shared_ext}$major'
11780   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11781   shlibpath_var=LD_LIBRARY_PATH
11782   shlibpath_overrides_runpath=no
11783   hardcode_into_libs=yes
11784   ;;
11785
11786 irix5* | irix6* | nonstopux*)
11787   case $host_os in
11788     nonstopux*) version_type=nonstopux ;;
11789     *)
11790         if test "$lt_cv_prog_gnu_ld" = yes; then
11791                 version_type=linux
11792         else
11793                 version_type=irix
11794         fi ;;
11795   esac
11796   need_lib_prefix=no
11797   need_version=no
11798   soname_spec='${libname}${release}${shared_ext}$major'
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11800   case $host_os in
11801   irix5* | nonstopux*)
11802     libsuff= shlibsuff=
11803     ;;
11804   *)
11805     case $LD in # libtool.m4 will add one of these switches to LD
11806     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11807       libsuff= shlibsuff= libmagic=32-bit;;
11808     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11809       libsuff=32 shlibsuff=N32 libmagic=N32;;
11810     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11811       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11812     *) libsuff= shlibsuff= libmagic=never-match;;
11813     esac
11814     ;;
11815   esac
11816   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11817   shlibpath_overrides_runpath=no
11818   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11819   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11820   hardcode_into_libs=yes
11821   ;;
11822
11823 # No shared lib support for Linux oldld, aout, or coff.
11824 linux*oldld* | linux*aout* | linux*coff*)
11825   dynamic_linker=no
11826   ;;
11827
11828 # This must be Linux ELF.
11829 linux* | k*bsd*-gnu)
11830   version_type=linux
11831   need_lib_prefix=no
11832   need_version=no
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   shlibpath_overrides_runpath=no
11838   # Some binutils ld are patched to set DT_RUNPATH
11839   save_LDFLAGS=$LDFLAGS
11840   save_libdir=$libdir
11841   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11842        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11843   if test x$gcc_no_link = xyes; then
11844   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11846    { (exit 1); exit 1; }; }
11847 fi
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854
11855 int
11856 main ()
11857 {
11858
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865   (eval $ac_link) 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag"
11873                          || test ! -s conftest.err'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11886   shlibpath_overrides_runpath=yes
11887 fi
11888
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 fi
11894 rm -f conftest.err conftest.$ac_objext \
11895       conftest$ac_exeext conftest.$ac_ext
11896   LDFLAGS=$save_LDFLAGS
11897   libdir=$save_libdir
11898
11899   # This implies no fast_install, which is unacceptable.
11900   # Some rework will be needed to allow for fast_install
11901   # before this can be enabled.
11902   hardcode_into_libs=yes
11903
11904   # Append ld.so.conf contents to the search path
11905   if test -f /etc/ld.so.conf; then
11906     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11907     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11908   fi
11909
11910   # We used to test for /lib/ld.so.1 and disable shared libraries on
11911   # powerpc, because MkLinux only supported shared libraries with the
11912   # GNU dynamic linker.  Since this was broken with cross compilers,
11913   # most powerpc-linux boxes support dynamic linking these days and
11914   # people can always --disable-shared, the test was removed, and we
11915   # assume the GNU/Linux dynamic linker is in use.
11916   dynamic_linker='GNU/Linux ld.so'
11917   ;;
11918
11919 netbsd*)
11920   version_type=sunos
11921   need_lib_prefix=no
11922   need_version=no
11923   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11925     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11926     dynamic_linker='NetBSD (a.out) ld.so'
11927   else
11928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11929     soname_spec='${libname}${release}${shared_ext}$major'
11930     dynamic_linker='NetBSD ld.elf_so'
11931   fi
11932   shlibpath_var=LD_LIBRARY_PATH
11933   shlibpath_overrides_runpath=yes
11934   hardcode_into_libs=yes
11935   ;;
11936
11937 newsos6)
11938   version_type=linux
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940   shlibpath_var=LD_LIBRARY_PATH
11941   shlibpath_overrides_runpath=yes
11942   ;;
11943
11944 *nto* | *qnx*)
11945   version_type=qnx
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   shlibpath_overrides_runpath=no
11952   hardcode_into_libs=yes
11953   dynamic_linker='ldqnx.so'
11954   ;;
11955
11956 openbsd*)
11957   version_type=sunos
11958   sys_lib_dlsearch_path_spec="/usr/lib"
11959   need_lib_prefix=no
11960   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11961   case $host_os in
11962     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11963     *)                          need_version=no  ;;
11964   esac
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11967   shlibpath_var=LD_LIBRARY_PATH
11968   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11969     case $host_os in
11970       openbsd2.[89] | openbsd2.[89].*)
11971         shlibpath_overrides_runpath=no
11972         ;;
11973       *)
11974         shlibpath_overrides_runpath=yes
11975         ;;
11976       esac
11977   else
11978     shlibpath_overrides_runpath=yes
11979   fi
11980   ;;
11981
11982 os2*)
11983   libname_spec='$name'
11984   shrext_cmds=".dll"
11985   need_lib_prefix=no
11986   library_names_spec='$libname${shared_ext} $libname.a'
11987   dynamic_linker='OS/2 ld.exe'
11988   shlibpath_var=LIBPATH
11989   ;;
11990
11991 osf3* | osf4* | osf5*)
11992   version_type=osf
11993   need_lib_prefix=no
11994   need_version=no
11995   soname_spec='${libname}${release}${shared_ext}$major'
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997   shlibpath_var=LD_LIBRARY_PATH
11998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12000   ;;
12001
12002 rdos*)
12003   dynamic_linker=no
12004   ;;
12005
12006 solaris*)
12007   version_type=linux
12008   need_lib_prefix=no
12009   need_version=no
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011   soname_spec='${libname}${release}${shared_ext}$major'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=yes
12014   hardcode_into_libs=yes
12015   # ldd complains unless libraries are executable
12016   postinstall_cmds='chmod +x $lib'
12017   ;;
12018
12019 sunos4*)
12020   version_type=sunos
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   shlibpath_overrides_runpath=yes
12025   if test "$with_gnu_ld" = yes; then
12026     need_lib_prefix=no
12027   fi
12028   need_version=yes
12029   ;;
12030
12031 sysv4 | sysv4.3*)
12032   version_type=linux
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   soname_spec='${libname}${release}${shared_ext}$major'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   case $host_vendor in
12037     sni)
12038       shlibpath_overrides_runpath=no
12039       need_lib_prefix=no
12040       runpath_var=LD_RUN_PATH
12041       ;;
12042     siemens)
12043       need_lib_prefix=no
12044       ;;
12045     motorola)
12046       need_lib_prefix=no
12047       need_version=no
12048       shlibpath_overrides_runpath=no
12049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12050       ;;
12051   esac
12052   ;;
12053
12054 sysv4*MP*)
12055   if test -d /usr/nec ;then
12056     version_type=linux
12057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12058     soname_spec='$libname${shared_ext}.$major'
12059     shlibpath_var=LD_LIBRARY_PATH
12060   fi
12061   ;;
12062
12063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12064   version_type=freebsd-elf
12065   need_lib_prefix=no
12066   need_version=no
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12068   soname_spec='${libname}${release}${shared_ext}$major'
12069   shlibpath_var=LD_LIBRARY_PATH
12070   shlibpath_overrides_runpath=yes
12071   hardcode_into_libs=yes
12072   if test "$with_gnu_ld" = yes; then
12073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12074   else
12075     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12076     case $host_os in
12077       sco3.2v5*)
12078         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12079         ;;
12080     esac
12081   fi
12082   sys_lib_dlsearch_path_spec='/usr/lib'
12083   ;;
12084
12085 tpf*)
12086   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12087   version_type=linux
12088   need_lib_prefix=no
12089   need_version=no
12090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091   shlibpath_var=LD_LIBRARY_PATH
12092   shlibpath_overrides_runpath=no
12093   hardcode_into_libs=yes
12094   ;;
12095
12096 uts4*)
12097   version_type=linux
12098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099   soname_spec='${libname}${release}${shared_ext}$major'
12100   shlibpath_var=LD_LIBRARY_PATH
12101   ;;
12102
12103 *)
12104   dynamic_linker=no
12105   ;;
12106 esac
12107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12108 echo "${ECHO_T}$dynamic_linker" >&6
12109 test "$dynamic_linker" = no && can_build_shared=no
12110
12111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12112 if test "$GCC" = yes; then
12113   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12114 fi
12115
12116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12117   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12118 fi
12119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12120   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12121 fi
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12210 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12211 hardcode_action=
12212 if test -n "$hardcode_libdir_flag_spec" ||
12213    test -n "$runpath_var" ||
12214    test "X$hardcode_automatic" = "Xyes" ; then
12215
12216   # We can hardcode non-existent directories.
12217   if test "$hardcode_direct" != no &&
12218      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12219      # have to relink, otherwise we might link with an installed library
12220      # when we should be linking with a yet-to-be-installed one
12221      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12222      test "$hardcode_minus_L" != no; then
12223     # Linking always hardcodes the temporary library directory.
12224     hardcode_action=relink
12225   else
12226     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12227     hardcode_action=immediate
12228   fi
12229 else
12230   # We cannot hardcode anything, or else we can only hardcode existing
12231   # directories.
12232   hardcode_action=unsupported
12233 fi
12234 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12235 echo "${ECHO_T}$hardcode_action" >&6
12236
12237 if test "$hardcode_action" = relink ||
12238    test "$inherit_rpath" = yes; then
12239   # Fast installation is not supported
12240   enable_fast_install=no
12241 elif test "$shlibpath_overrides_runpath" = yes ||
12242      test "$enable_shared" = no; then
12243   # Fast installation is not necessary
12244   enable_fast_install=needless
12245 fi
12246
12247
12248
12249
12250
12251
12252   if test "x$enable_dlopen" != xyes; then
12253   enable_dlopen=unknown
12254   enable_dlopen_self=unknown
12255   enable_dlopen_self_static=unknown
12256 else
12257   lt_cv_dlopen=no
12258   lt_cv_dlopen_libs=
12259
12260   case $host_os in
12261   beos*)
12262     lt_cv_dlopen="load_add_on"
12263     lt_cv_dlopen_libs=
12264     lt_cv_dlopen_self=yes
12265     ;;
12266
12267   mingw* | pw32* | cegcc*)
12268     lt_cv_dlopen="LoadLibrary"
12269     lt_cv_dlopen_libs=
12270     ;;
12271
12272   cygwin*)
12273     lt_cv_dlopen="dlopen"
12274     lt_cv_dlopen_libs=
12275     ;;
12276
12277   darwin*)
12278   # if libdl is installed we need to link against it
12279     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12280 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-ldl  $LIBS"
12286 if test x$gcc_no_link = xyes; then
12287   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12289    { (exit 1); exit 1; }; }
12290 fi
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h.  */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h.  */
12297
12298 /* Override any gcc2 internal prototype to avoid an error.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 /* We use char because int might match the return type of a gcc2
12303    builtin and then its argument prototype would still apply.  */
12304 char dlopen ();
12305 int
12306 main ()
12307 {
12308 dlopen ();
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315   (eval $ac_link) 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_c_werror_flag"
12323                          || test ! -s conftest.err'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; } &&
12329          { ac_try='test -s conftest$ac_exeext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_cv_lib_dl_dlopen=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_cv_lib_dl_dlopen=no
12341 fi
12342 rm -f conftest.err conftest.$ac_objext \
12343       conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12345 fi
12346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348 if test $ac_cv_lib_dl_dlopen = yes; then
12349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12350 else
12351
12352     lt_cv_dlopen="dyld"
12353     lt_cv_dlopen_libs=
12354     lt_cv_dlopen_self=yes
12355
12356 fi
12357
12358     ;;
12359
12360   *)
12361     echo "$as_me:$LINENO: checking for shl_load" >&5
12362 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363 if test "${ac_cv_func_shl_load+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   if test x$gcc_no_link = xyes; then
12367   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12369    { (exit 1); exit 1; }; }
12370 fi
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12379 #define shl_load innocuous_shl_load
12380
12381 /* System header to define __stub macros and hopefully few prototypes,
12382     which can conflict with char shl_load (); below.
12383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384     <limits.h> exists even on freestanding compilers.  */
12385
12386 #ifdef __STDC__
12387 # include <limits.h>
12388 #else
12389 # include <assert.h>
12390 #endif
12391
12392 #undef shl_load
12393
12394 /* Override any gcc2 internal prototype to avoid an error.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 {
12398 #endif
12399 /* We use char because int might match the return type of a gcc2
12400    builtin and then its argument prototype would still apply.  */
12401 char shl_load ();
12402 /* The GNU C library defines this for functions which it implements
12403     to always fail with ENOSYS.  Some functions are actually named
12404     something starting with __ and the normal name is an alias.  */
12405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12406 choke me
12407 #else
12408 char (*f) () = shl_load;
12409 #endif
12410 #ifdef __cplusplus
12411 }
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return f != shl_load;
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424   (eval $ac_link) 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag"
12432                          || test ! -s conftest.err'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; } &&
12438          { ac_try='test -s conftest$ac_exeext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_func_shl_load=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 ac_cv_func_shl_load=no
12450 fi
12451 rm -f conftest.err conftest.$ac_objext \
12452       conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12456 if test $ac_cv_func_shl_load = yes; then
12457   lt_cv_dlopen="shl_load"
12458 else
12459   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldld  $LIBS"
12466 if test x$gcc_no_link = xyes; then
12467   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12469    { (exit 1); exit 1; }; }
12470 fi
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477
12478 /* Override any gcc2 internal prototype to avoid an error.  */
12479 #ifdef __cplusplus
12480 extern "C"
12481 #endif
12482 /* We use char because int might match the return type of a gcc2
12483    builtin and then its argument prototype would still apply.  */
12484 char shl_load ();
12485 int
12486 main ()
12487 {
12488 shl_load ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495   (eval $ac_link) 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -z "$ac_c_werror_flag"
12503                          || test ! -s conftest.err'
12504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; } &&
12509          { ac_try='test -s conftest$ac_exeext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_cv_lib_dld_shl_load=yes
12516 else
12517   echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ac_cv_lib_dld_shl_load=no
12521 fi
12522 rm -f conftest.err conftest.$ac_objext \
12523       conftest$ac_exeext conftest.$ac_ext
12524 LIBS=$ac_check_lib_save_LIBS
12525 fi
12526 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12527 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12528 if test $ac_cv_lib_dld_shl_load = yes; then
12529   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12530 else
12531   echo "$as_me:$LINENO: checking for dlopen" >&5
12532 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12533 if test "${ac_cv_func_dlopen+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   if test x$gcc_no_link = xyes; then
12537   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12539    { (exit 1); exit 1; }; }
12540 fi
12541 cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12549 #define dlopen innocuous_dlopen
12550
12551 /* System header to define __stub macros and hopefully few prototypes,
12552     which can conflict with char dlopen (); below.
12553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554     <limits.h> exists even on freestanding compilers.  */
12555
12556 #ifdef __STDC__
12557 # include <limits.h>
12558 #else
12559 # include <assert.h>
12560 #endif
12561
12562 #undef dlopen
12563
12564 /* Override any gcc2 internal prototype to avoid an error.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 {
12568 #endif
12569 /* We use char because int might match the return type of a gcc2
12570    builtin and then its argument prototype would still apply.  */
12571 char dlopen ();
12572 /* The GNU C library defines this for functions which it implements
12573     to always fail with ENOSYS.  Some functions are actually named
12574     something starting with __ and the normal name is an alias.  */
12575 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12576 choke me
12577 #else
12578 char (*f) () = dlopen;
12579 #endif
12580 #ifdef __cplusplus
12581 }
12582 #endif
12583
12584 int
12585 main ()
12586 {
12587 return f != dlopen;
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594   (eval $ac_link) 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_c_werror_flag"
12602                          || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   ac_cv_func_dlopen=yes
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ac_cv_func_dlopen=no
12620 fi
12621 rm -f conftest.err conftest.$ac_objext \
12622       conftest$ac_exeext conftest.$ac_ext
12623 fi
12624 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12625 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12626 if test $ac_cv_func_dlopen = yes; then
12627   lt_cv_dlopen="dlopen"
12628 else
12629   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   ac_check_lib_save_LIBS=$LIBS
12635 LIBS="-ldl  $LIBS"
12636 if test x$gcc_no_link = xyes; then
12637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12639    { (exit 1); exit 1; }; }
12640 fi
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647
12648 /* Override any gcc2 internal prototype to avoid an error.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 /* We use char because int might match the return type of a gcc2
12653    builtin and then its argument prototype would still apply.  */
12654 char dlopen ();
12655 int
12656 main ()
12657 {
12658 dlopen ();
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665   (eval $ac_link) 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_c_werror_flag"
12673                          || test ! -s conftest.err'
12674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675   (eval $ac_try) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; } &&
12679          { ac_try='test -s conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ac_cv_lib_dl_dlopen=yes
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_lib_dl_dlopen=no
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12695 fi
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12698 if test $ac_cv_lib_dl_dlopen = yes; then
12699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12700 else
12701   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12702 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12703 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lsvld  $LIBS"
12708 if test x$gcc_no_link = xyes; then
12709   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12711    { (exit 1); exit 1; }; }
12712 fi
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719
12720 /* Override any gcc2 internal prototype to avoid an error.  */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 /* We use char because int might match the return type of a gcc2
12725    builtin and then its argument prototype would still apply.  */
12726 char dlopen ();
12727 int
12728 main ()
12729 {
12730 dlopen ();
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737   (eval $ac_link) 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -z "$ac_c_werror_flag"
12745                          || test ! -s conftest.err'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; } &&
12751          { ac_try='test -s conftest$ac_exeext'
12752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753   (eval $ac_try) 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   ac_cv_lib_svld_dlopen=yes
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 ac_cv_lib_svld_dlopen=no
12763 fi
12764 rm -f conftest.err conftest.$ac_objext \
12765       conftest$ac_exeext conftest.$ac_ext
12766 LIBS=$ac_check_lib_save_LIBS
12767 fi
12768 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12769 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12770 if test $ac_cv_lib_svld_dlopen = yes; then
12771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12772 else
12773   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12774 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12775 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778   ac_check_lib_save_LIBS=$LIBS
12779 LIBS="-ldld  $LIBS"
12780 if test x$gcc_no_link = xyes; then
12781   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12783    { (exit 1); exit 1; }; }
12784 fi
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791
12792 /* Override any gcc2 internal prototype to avoid an error.  */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 /* We use char because int might match the return type of a gcc2
12797    builtin and then its argument prototype would still apply.  */
12798 char dld_link ();
12799 int
12800 main ()
12801 {
12802 dld_link ();
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809   (eval $ac_link) 2>conftest.er1
12810   ac_status=$?
12811   grep -v '^ *+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -z "$ac_c_werror_flag"
12817                          || test ! -s conftest.err'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; } &&
12823          { ac_try='test -s conftest$ac_exeext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   ac_cv_lib_dld_dld_link=yes
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 ac_cv_lib_dld_dld_link=no
12835 fi
12836 rm -f conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext conftest.$ac_ext
12838 LIBS=$ac_check_lib_save_LIBS
12839 fi
12840 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12842 if test $ac_cv_lib_dld_dld_link = yes; then
12843   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12844 fi
12845
12846
12847 fi
12848
12849
12850 fi
12851
12852
12853 fi
12854
12855
12856 fi
12857
12858
12859 fi
12860
12861     ;;
12862   esac
12863
12864   if test "x$lt_cv_dlopen" != xno; then
12865     enable_dlopen=yes
12866   else
12867     enable_dlopen=no
12868   fi
12869
12870   case $lt_cv_dlopen in
12871   dlopen)
12872     save_CPPFLAGS="$CPPFLAGS"
12873     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12874
12875     save_LDFLAGS="$LDFLAGS"
12876     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12877
12878     save_LIBS="$LIBS"
12879     LIBS="$lt_cv_dlopen_libs $LIBS"
12880
12881     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12882 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12883 if test "${lt_cv_dlopen_self+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886           if test "$cross_compiling" = yes; then :
12887   lt_cv_dlopen_self=cross
12888 else
12889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12890   lt_status=$lt_dlunknown
12891   cat > conftest.$ac_ext <<_LT_EOF
12892 #line 12892 "configure"
12893 #include "confdefs.h"
12894
12895 #if HAVE_DLFCN_H
12896 #include <dlfcn.h>
12897 #endif
12898
12899 #include <stdio.h>
12900
12901 #ifdef RTLD_GLOBAL
12902 #  define LT_DLGLOBAL           RTLD_GLOBAL
12903 #else
12904 #  ifdef DL_GLOBAL
12905 #    define LT_DLGLOBAL         DL_GLOBAL
12906 #  else
12907 #    define LT_DLGLOBAL         0
12908 #  endif
12909 #endif
12910
12911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12912    find out it does not work in some platform. */
12913 #ifndef LT_DLLAZY_OR_NOW
12914 #  ifdef RTLD_LAZY
12915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12916 #  else
12917 #    ifdef DL_LAZY
12918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12919 #    else
12920 #      ifdef RTLD_NOW
12921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12922 #      else
12923 #        ifdef DL_NOW
12924 #          define LT_DLLAZY_OR_NOW      DL_NOW
12925 #        else
12926 #          define LT_DLLAZY_OR_NOW      0
12927 #        endif
12928 #      endif
12929 #    endif
12930 #  endif
12931 #endif
12932
12933 void fnord() { int i=42;}
12934 int main ()
12935 {
12936   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12937   int status = $lt_dlunknown;
12938
12939   if (self)
12940     {
12941       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12942       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12943       /* dlclose (self); */
12944     }
12945   else
12946     puts (dlerror ());
12947
12948   return status;
12949 }
12950 _LT_EOF
12951   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952   (eval $ac_link) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12956     (./conftest; exit; ) >&5 2>/dev/null
12957     lt_status=$?
12958     case x$lt_status in
12959       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12960       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12961       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12962     esac
12963   else :
12964     # compilation failed
12965     lt_cv_dlopen_self=no
12966   fi
12967 fi
12968 rm -fr conftest*
12969
12970
12971 fi
12972 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12973 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12974
12975     if test "x$lt_cv_dlopen_self" = xyes; then
12976       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12977       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12978 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12979 if test "${lt_cv_dlopen_self_static+set}" = set; then
12980   echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982           if test "$cross_compiling" = yes; then :
12983   lt_cv_dlopen_self_static=cross
12984 else
12985   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12986   lt_status=$lt_dlunknown
12987   cat > conftest.$ac_ext <<_LT_EOF
12988 #line 12988 "configure"
12989 #include "confdefs.h"
12990
12991 #if HAVE_DLFCN_H
12992 #include <dlfcn.h>
12993 #endif
12994
12995 #include <stdio.h>
12996
12997 #ifdef RTLD_GLOBAL
12998 #  define LT_DLGLOBAL           RTLD_GLOBAL
12999 #else
13000 #  ifdef DL_GLOBAL
13001 #    define LT_DLGLOBAL         DL_GLOBAL
13002 #  else
13003 #    define LT_DLGLOBAL         0
13004 #  endif
13005 #endif
13006
13007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13008    find out it does not work in some platform. */
13009 #ifndef LT_DLLAZY_OR_NOW
13010 #  ifdef RTLD_LAZY
13011 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13012 #  else
13013 #    ifdef DL_LAZY
13014 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13015 #    else
13016 #      ifdef RTLD_NOW
13017 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13018 #      else
13019 #        ifdef DL_NOW
13020 #          define LT_DLLAZY_OR_NOW      DL_NOW
13021 #        else
13022 #          define LT_DLLAZY_OR_NOW      0
13023 #        endif
13024 #      endif
13025 #    endif
13026 #  endif
13027 #endif
13028
13029 void fnord() { int i=42;}
13030 int main ()
13031 {
13032   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13033   int status = $lt_dlunknown;
13034
13035   if (self)
13036     {
13037       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13038       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13039       /* dlclose (self); */
13040     }
13041   else
13042     puts (dlerror ());
13043
13044   return status;
13045 }
13046 _LT_EOF
13047   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048   (eval $ac_link) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13052     (./conftest; exit; ) >&5 2>/dev/null
13053     lt_status=$?
13054     case x$lt_status in
13055       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13058     esac
13059   else :
13060     # compilation failed
13061     lt_cv_dlopen_self_static=no
13062   fi
13063 fi
13064 rm -fr conftest*
13065
13066
13067 fi
13068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13069 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13070     fi
13071
13072     CPPFLAGS="$save_CPPFLAGS"
13073     LDFLAGS="$save_LDFLAGS"
13074     LIBS="$save_LIBS"
13075     ;;
13076   esac
13077
13078   case $lt_cv_dlopen_self in
13079   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080   *) enable_dlopen_self=unknown ;;
13081   esac
13082
13083   case $lt_cv_dlopen_self_static in
13084   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085   *) enable_dlopen_self_static=unknown ;;
13086   esac
13087 fi
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105 striplib=
13106 old_striplib=
13107 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13108 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112   echo "$as_me:$LINENO: result: yes" >&5
13113 echo "${ECHO_T}yes" >&6
13114 else
13115 # FIXME - insert some real tests, host_os isn't really good enough
13116   case $host_os in
13117   darwin*)
13118     if test -n "$STRIP" ; then
13119       striplib="$STRIP -x"
13120       old_striplib="$STRIP -S"
13121       echo "$as_me:$LINENO: result: yes" >&5
13122 echo "${ECHO_T}yes" >&6
13123     else
13124       echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6
13126     fi
13127     ;;
13128   *)
13129     echo "$as_me:$LINENO: result: no" >&5
13130 echo "${ECHO_T}no" >&6
13131     ;;
13132   esac
13133 fi
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146   # Report which library types will actually be built
13147   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13148 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13149   echo "$as_me:$LINENO: result: $can_build_shared" >&5
13150 echo "${ECHO_T}$can_build_shared" >&6
13151
13152   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13154   test "$can_build_shared" = "no" && enable_shared=no
13155
13156   # On AIX, shared libraries and static libraries use the same namespace, and
13157   # are all built from PIC.
13158   case $host_os in
13159   aix3*)
13160     test "$enable_shared" = yes && enable_static=no
13161     if test -n "$RANLIB"; then
13162       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163       postinstall_cmds='$RANLIB $lib'
13164     fi
13165     ;;
13166
13167   aix[4-9]*)
13168     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169       test "$enable_shared" = yes && enable_static=no
13170     fi
13171     ;;
13172   esac
13173   echo "$as_me:$LINENO: result: $enable_shared" >&5
13174 echo "${ECHO_T}$enable_shared" >&6
13175
13176   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13177 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13178   # Make sure either enable_shared or enable_static is yes.
13179   test "$enable_shared" = yes || enable_static=yes
13180   echo "$as_me:$LINENO: result: $enable_static" >&5
13181 echo "${ECHO_T}$enable_static" >&6
13182
13183
13184
13185
13186 fi
13187 ac_ext=c
13188 ac_cpp='$CPP $CPPFLAGS'
13189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192
13193 CC="$lt_save_CC"
13194
13195
13196 ac_ext=cc
13197 ac_cpp='$CXXCPP $CPPFLAGS'
13198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13201
13202 archive_cmds_need_lc_CXX=no
13203 allow_undefined_flag_CXX=
13204 always_export_symbols_CXX=no
13205 archive_expsym_cmds_CXX=
13206 compiler_needs_object_CXX=no
13207 export_dynamic_flag_spec_CXX=
13208 hardcode_direct_CXX=no
13209 hardcode_direct_absolute_CXX=no
13210 hardcode_libdir_flag_spec_CXX=
13211 hardcode_libdir_flag_spec_ld_CXX=
13212 hardcode_libdir_separator_CXX=
13213 hardcode_minus_L_CXX=no
13214 hardcode_shlibpath_var_CXX=unsupported
13215 hardcode_automatic_CXX=no
13216 inherit_rpath_CXX=no
13217 module_cmds_CXX=
13218 module_expsym_cmds_CXX=
13219 link_all_deplibs_CXX=unknown
13220 old_archive_cmds_CXX=$old_archive_cmds
13221 no_undefined_flag_CXX=
13222 whole_archive_flag_spec_CXX=
13223 enable_shared_with_static_runtimes_CXX=no
13224
13225 # Source file extension for C++ test sources.
13226 ac_ext=cpp
13227
13228 # Object file extension for compiled C++ test sources.
13229 objext=o
13230 objext_CXX=$objext
13231
13232 # No sense in running all these tests if we already determined that
13233 # the CXX compiler isn't working.  Some variables (like enable_shared)
13234 # are currently assumed to apply to all compilers on this platform,
13235 # and will be corrupted by setting them based on a non-working compiler.
13236 if test "$_lt_caught_CXX_error" != yes; then
13237   # Code to be used in simple compile tests
13238   lt_simple_compile_test_code="int some_variable = 0;"
13239
13240   # Code to be used in simple link tests
13241   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13242
13243   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13244
13245
13246
13247
13248
13249
13250 # If no C compiler was specified, use CC.
13251 LTCC=${LTCC-"$CC"}
13252
13253 # If no C compiler flags were specified, use CFLAGS.
13254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13255
13256 # Allow CC to be a program name with arguments.
13257 compiler=$CC
13258
13259
13260   # save warnings/boilerplate of simple test code
13261   ac_outfile=conftest.$ac_objext
13262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13264 _lt_compiler_boilerplate=`cat conftest.err`
13265 $RM conftest*
13266
13267   ac_outfile=conftest.$ac_objext
13268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13270 _lt_linker_boilerplate=`cat conftest.err`
13271 $RM -r conftest*
13272
13273
13274   # Allow CC to be a program name with arguments.
13275   lt_save_CC=$CC
13276   lt_save_LD=$LD
13277   lt_save_GCC=$GCC
13278   GCC=$GXX
13279   lt_save_with_gnu_ld=$with_gnu_ld
13280   lt_save_path_LD=$lt_cv_path_LD
13281   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13282     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13283   else
13284     $as_unset lt_cv_prog_gnu_ld
13285   fi
13286   if test -n "${lt_cv_path_LDCXX+set}"; then
13287     lt_cv_path_LD=$lt_cv_path_LDCXX
13288   else
13289     $as_unset lt_cv_path_LD
13290   fi
13291   test -z "${LDCXX+set}" || LD=$LDCXX
13292   CC=${CXX-"c++"}
13293   compiler=$CC
13294   compiler_CXX=$CC
13295   for cc_temp in $compiler""; do
13296   case $cc_temp in
13297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13299     \-*) ;;
13300     *) break;;
13301   esac
13302 done
13303 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13304
13305
13306   if test -n "$compiler"; then
13307     # We don't want -fno-exception when compiling C++ code, so set the
13308     # no_builtin_flag separately
13309     if test "$GXX" = yes; then
13310       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13311     else
13312       lt_prog_compiler_no_builtin_flag_CXX=
13313     fi
13314
13315     if test "$GXX" = yes; then
13316       # Set up default GNU C++ configuration
13317
13318
13319
13320 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13321 if test "${with_gnu_ld+set}" = set; then
13322   withval="$with_gnu_ld"
13323   test "$withval" = no || with_gnu_ld=yes
13324 else
13325   with_gnu_ld=no
13326 fi;
13327 ac_prog=ld
13328 if test "$GCC" = yes; then
13329   # Check if gcc -print-prog-name=ld gives a path.
13330   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13331 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13332   case $host in
13333   *-*-mingw*)
13334     # gcc leaves a trailing carriage return which upsets mingw
13335     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13336   *)
13337     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13338   esac
13339   case $ac_prog in
13340     # Accept absolute paths.
13341     [\\/]* | ?:[\\/]*)
13342       re_direlt='/[^/][^/]*/\.\./'
13343       # Canonicalize the pathname of ld
13344       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13345       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13346         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13347       done
13348       test -z "$LD" && LD="$ac_prog"
13349       ;;
13350   "")
13351     # If it fails, then pretend we aren't using GCC.
13352     ac_prog=ld
13353     ;;
13354   *)
13355     # If it is relative, then search for the first ld in PATH.
13356     with_gnu_ld=unknown
13357     ;;
13358   esac
13359 elif test "$with_gnu_ld" = yes; then
13360   echo "$as_me:$LINENO: checking for GNU ld" >&5
13361 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13362 else
13363   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13364 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13365 fi
13366 if test "${lt_cv_path_LD+set}" = set; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369   if test -z "$LD"; then
13370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13371   for ac_dir in $PATH; do
13372     IFS="$lt_save_ifs"
13373     test -z "$ac_dir" && ac_dir=.
13374     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13375       lt_cv_path_LD="$ac_dir/$ac_prog"
13376       # Check to see if the program is GNU ld.  I'd rather use --version,
13377       # but apparently some variants of GNU ld only accept -v.
13378       # Break only if it was the GNU/non-GNU ld that we prefer.
13379       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13380       *GNU* | *'with BFD'*)
13381         test "$with_gnu_ld" != no && break
13382         ;;
13383       *)
13384         test "$with_gnu_ld" != yes && break
13385         ;;
13386       esac
13387     fi
13388   done
13389   IFS="$lt_save_ifs"
13390 else
13391   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13392 fi
13393 fi
13394
13395 LD="$lt_cv_path_LD"
13396 if test -n "$LD"; then
13397   echo "$as_me:$LINENO: result: $LD" >&5
13398 echo "${ECHO_T}$LD" >&6
13399 else
13400   echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6
13402 fi
13403 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13404 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13405    { (exit 1); exit 1; }; }
13406 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13407 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13408 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13412 case `$LD -v 2>&1 </dev/null` in
13413 *GNU* | *'with BFD'*)
13414   lt_cv_prog_gnu_ld=yes
13415   ;;
13416 *)
13417   lt_cv_prog_gnu_ld=no
13418   ;;
13419 esac
13420 fi
13421 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13422 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13423 with_gnu_ld=$lt_cv_prog_gnu_ld
13424
13425
13426
13427
13428
13429
13430
13431       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13432       # archiving commands below assume that GNU ld is being used.
13433       if test "$with_gnu_ld" = yes; then
13434         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13435         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'
13436
13437         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13438         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439
13440         # If archive_cmds runs LD, not CC, wlarc should be empty
13441         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13442         #     investigate it a little bit more. (MM)
13443         wlarc='${wl}'
13444
13445         # ancient GNU ld didn't support --whole-archive et. al.
13446         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13447           $GREP 'no-whole-archive' > /dev/null; then
13448           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13449         else
13450           whole_archive_flag_spec_CXX=
13451         fi
13452       else
13453         with_gnu_ld=no
13454         wlarc=
13455
13456         # A generic and very simple default shared library creation
13457         # command for GNU C++ for the case where it uses the native
13458         # linker, instead of GNU ld.  If possible, this setting should
13459         # overridden to take advantage of the native linker features on
13460         # the platform it is being used on.
13461         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13462       fi
13463
13464       # Commands to make compiler produce verbose output that lists
13465       # what "hidden" libraries, object files and flags are used when
13466       # linking a shared library.
13467       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13468
13469     else
13470       GXX=no
13471       with_gnu_ld=no
13472       wlarc=
13473     fi
13474
13475     # PORTME: fill in a description of your system's C++ link characteristics
13476     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13478     ld_shlibs_CXX=yes
13479     case $host_os in
13480       aix3*)
13481         # FIXME: insert proper C++ library support
13482         ld_shlibs_CXX=no
13483         ;;
13484       aix[4-9]*)
13485         if test "$host_cpu" = ia64; then
13486           # On IA64, the linker does run time linking by default, so we don't
13487           # have to do anything special.
13488           aix_use_runtimelinking=no
13489           exp_sym_flag='-Bexport'
13490           no_entry_flag=""
13491         else
13492           aix_use_runtimelinking=no
13493
13494           # Test if we are trying to use run time linking or normal
13495           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13496           # need to do runtime linking.
13497           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13498             for ld_flag in $LDFLAGS; do
13499               case $ld_flag in
13500               *-brtl*)
13501                 aix_use_runtimelinking=yes
13502                 break
13503                 ;;
13504               esac
13505             done
13506             ;;
13507           esac
13508
13509           exp_sym_flag='-bexport'
13510           no_entry_flag='-bnoentry'
13511         fi
13512
13513         # When large executables or shared objects are built, AIX ld can
13514         # have problems creating the table of contents.  If linking a library
13515         # or program results in "error TOC overflow" add -mminimal-toc to
13516         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13517         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13518
13519         archive_cmds_CXX=''
13520         hardcode_direct_CXX=yes
13521         hardcode_direct_absolute_CXX=yes
13522         hardcode_libdir_separator_CXX=':'
13523         link_all_deplibs_CXX=yes
13524         file_list_spec_CXX='${wl}-f,'
13525
13526         if test "$GXX" = yes; then
13527           case $host_os in aix4.[012]|aix4.[012].*)
13528           # We only want to do this on AIX 4.2 and lower, the check
13529           # below for broken collect2 doesn't work under 4.3+
13530           collect2name=`${CC} -print-prog-name=collect2`
13531           if test -f "$collect2name" &&
13532              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13533           then
13534             # We have reworked collect2
13535             :
13536           else
13537             # We have old collect2
13538             hardcode_direct_CXX=unsupported
13539             # It fails to find uninstalled libraries when the uninstalled
13540             # path is not listed in the libpath.  Setting hardcode_minus_L
13541             # to unsupported forces relinking
13542             hardcode_minus_L_CXX=yes
13543             hardcode_libdir_flag_spec_CXX='-L$libdir'
13544             hardcode_libdir_separator_CXX=
13545           fi
13546           esac
13547           shared_flag='-shared'
13548           if test "$aix_use_runtimelinking" = yes; then
13549             shared_flag="$shared_flag "'${wl}-G'
13550           fi
13551         else
13552           # not using gcc
13553           if test "$host_cpu" = ia64; then
13554           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13555           # chokes on -Wl,-G. The following line is correct:
13556           shared_flag='-G'
13557           else
13558             if test "$aix_use_runtimelinking" = yes; then
13559               shared_flag='${wl}-G'
13560             else
13561               shared_flag='${wl}-bM:SRE'
13562             fi
13563           fi
13564         fi
13565
13566         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13567         # It seems that -bexpall does not export symbols beginning with
13568         # underscore (_), so it is better to generate a list of symbols to
13569         # export.
13570         always_export_symbols_CXX=yes
13571         if test "$aix_use_runtimelinking" = yes; then
13572           # Warning - without using the other runtime loading flags (-brtl),
13573           # -berok will link without error, but may produce a broken library.
13574           allow_undefined_flag_CXX='-berok'
13575           # Determine the default libpath from the value encoded in an empty
13576           # executable.
13577           if test x$gcc_no_link = xyes; then
13578   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13580    { (exit 1); exit 1; }; }
13581 fi
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588
13589 int
13590 main ()
13591 {
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599   (eval $ac_link) 2>conftest.er1
13600   ac_status=$?
13601   grep -v '^ *+' conftest.er1 >conftest.err
13602   rm -f conftest.er1
13603   cat conftest.err >&5
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } &&
13606          { ac_try='test -z "$ac_cxx_werror_flag"
13607                          || test ! -s conftest.err'
13608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609   (eval $ac_try) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; } &&
13613          { ac_try='test -s conftest$ac_exeext'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619
13620 lt_aix_libpath_sed='
13621     /Import File Strings/,/^$/ {
13622         /^0/ {
13623             s/^0  *\(.*\)$/\1/
13624             p
13625         }
13626     }'
13627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13628 # Check for a 64-bit object if we didn't find anything.
13629 if test -z "$aix_libpath"; then
13630   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13631 fi
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 fi
13637 rm -f conftest.err conftest.$ac_objext \
13638       conftest$ac_exeext conftest.$ac_ext
13639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13640
13641           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13642
13643           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"
13644         else
13645           if test "$host_cpu" = ia64; then
13646             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13647             allow_undefined_flag_CXX="-z nodefs"
13648             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"
13649           else
13650             # Determine the default libpath from the value encoded in an
13651             # empty executable.
13652             if test x$gcc_no_link = xyes; then
13653   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13655    { (exit 1); exit 1; }; }
13656 fi
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663
13664 int
13665 main ()
13666 {
13667
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext conftest$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674   (eval $ac_link) 2>conftest.er1
13675   ac_status=$?
13676   grep -v '^ *+' conftest.er1 >conftest.err
13677   rm -f conftest.er1
13678   cat conftest.err >&5
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } &&
13681          { ac_try='test -z "$ac_cxx_werror_flag"
13682                          || test ! -s conftest.err'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; } &&
13688          { ac_try='test -s conftest$ac_exeext'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; }; then
13694
13695 lt_aix_libpath_sed='
13696     /Import File Strings/,/^$/ {
13697         /^0/ {
13698             s/^0  *\(.*\)$/\1/
13699             p
13700         }
13701     }'
13702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13703 # Check for a 64-bit object if we didn't find anything.
13704 if test -z "$aix_libpath"; then
13705   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13706 fi
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 fi
13712 rm -f conftest.err conftest.$ac_objext \
13713       conftest$ac_exeext conftest.$ac_ext
13714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13715
13716             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13717             # Warning - without using the other run time loading flags,
13718             # -berok will link without error, but may produce a broken library.
13719             no_undefined_flag_CXX=' ${wl}-bernotok'
13720             allow_undefined_flag_CXX=' ${wl}-berok'
13721             # Exported symbols can be pulled into shared objects from archives
13722             whole_archive_flag_spec_CXX='$convenience'
13723             archive_cmds_need_lc_CXX=yes
13724             # This is similar to how AIX traditionally builds its shared
13725             # libraries.
13726             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'
13727           fi
13728         fi
13729         ;;
13730
13731       beos*)
13732         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13733           allow_undefined_flag_CXX=unsupported
13734           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13735           # support --undefined.  This deserves some investigation.  FIXME
13736           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737         else
13738           ld_shlibs_CXX=no
13739         fi
13740         ;;
13741
13742       chorus*)
13743         case $cc_basename in
13744           *)
13745           # FIXME: insert proper C++ library support
13746           ld_shlibs_CXX=no
13747           ;;
13748         esac
13749         ;;
13750
13751       cygwin* | mingw* | pw32* | cegcc*)
13752         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13753         # as there is no search path for DLLs.
13754         hardcode_libdir_flag_spec_CXX='-L$libdir'
13755         allow_undefined_flag_CXX=unsupported
13756         always_export_symbols_CXX=no
13757         enable_shared_with_static_runtimes_CXX=yes
13758
13759         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13760           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'
13761           # If the export-symbols file already is a .def file (1st line
13762           # is EXPORTS), use it as is; otherwise, prepend...
13763           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13764             cp $export_symbols $output_objdir/$soname.def;
13765           else
13766             echo EXPORTS > $output_objdir/$soname.def;
13767             cat $export_symbols >> $output_objdir/$soname.def;
13768           fi~
13769           $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'
13770         else
13771           ld_shlibs_CXX=no
13772         fi
13773         ;;
13774       darwin* | rhapsody*)
13775
13776
13777   archive_cmds_need_lc_CXX=no
13778   hardcode_direct_CXX=no
13779   hardcode_automatic_CXX=yes
13780   hardcode_shlibpath_var_CXX=unsupported
13781   whole_archive_flag_spec_CXX=''
13782   link_all_deplibs_CXX=yes
13783   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13784   case $cc_basename in
13785      ifort*) _lt_dar_can_shared=yes ;;
13786      *) _lt_dar_can_shared=$GCC ;;
13787   esac
13788   if test "$_lt_dar_can_shared" = "yes"; then
13789     output_verbose_link_cmd=echo
13790     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13791     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13792     archive_expsym_cmds_CXX="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13793     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13794        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13795       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${_lt_dsymutil}"
13796       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${_lt_dar_export_syms}${_lt_dsymutil}"
13797     fi
13798
13799   else
13800   ld_shlibs_CXX=no
13801   fi
13802
13803         ;;
13804
13805       dgux*)
13806         case $cc_basename in
13807           ec++*)
13808             # FIXME: insert proper C++ library support
13809             ld_shlibs_CXX=no
13810             ;;
13811           ghcx*)
13812             # Green Hills C++ Compiler
13813             # FIXME: insert proper C++ library support
13814             ld_shlibs_CXX=no
13815             ;;
13816           *)
13817             # FIXME: insert proper C++ library support
13818             ld_shlibs_CXX=no
13819             ;;
13820         esac
13821         ;;
13822
13823       freebsd[12]*)
13824         # C++ shared libraries reported to be fairly broken before
13825         # switch to ELF
13826         ld_shlibs_CXX=no
13827         ;;
13828
13829       freebsd-elf*)
13830         archive_cmds_need_lc_CXX=no
13831         ;;
13832
13833       freebsd* | dragonfly*)
13834         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13835         # conventions
13836         ld_shlibs_CXX=yes
13837         ;;
13838
13839       gnu*)
13840         ;;
13841
13842       hpux9*)
13843         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13844         hardcode_libdir_separator_CXX=:
13845         export_dynamic_flag_spec_CXX='${wl}-E'
13846         hardcode_direct_CXX=yes
13847         hardcode_minus_L_CXX=yes # Not in the search PATH,
13848                                              # but as the default
13849                                              # location of the library.
13850
13851         case $cc_basename in
13852           CC*)
13853             # FIXME: insert proper C++ library support
13854             ld_shlibs_CXX=no
13855             ;;
13856           aCC*)
13857             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'
13858             # Commands to make compiler produce verbose output that lists
13859             # what "hidden" libraries, object files and flags are used when
13860             # linking a shared library.
13861             #
13862             # There doesn't appear to be a way to prevent this compiler from
13863             # explicitly linking system object files so we need to strip them
13864             # from the output so that they don't get included in the library
13865             # dependencies.
13866             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'
13867             ;;
13868           *)
13869             if test "$GXX" = yes; then
13870               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'
13871             else
13872               # FIXME: insert proper C++ library support
13873               ld_shlibs_CXX=no
13874             fi
13875             ;;
13876         esac
13877         ;;
13878
13879       hpux10*|hpux11*)
13880         if test $with_gnu_ld = no; then
13881           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13882           hardcode_libdir_separator_CXX=:
13883
13884           case $host_cpu in
13885             hppa*64*|ia64*)
13886               ;;
13887             *)
13888               export_dynamic_flag_spec_CXX='${wl}-E'
13889               ;;
13890           esac
13891         fi
13892         case $host_cpu in
13893           hppa*64*|ia64*)
13894             hardcode_direct_CXX=no
13895             hardcode_shlibpath_var_CXX=no
13896             ;;
13897           *)
13898             hardcode_direct_CXX=yes
13899             hardcode_direct_absolute_CXX=yes
13900             hardcode_minus_L_CXX=yes # Not in the search PATH,
13901                                                  # but as the default
13902                                                  # location of the library.
13903             ;;
13904         esac
13905
13906         case $cc_basename in
13907           CC*)
13908             # FIXME: insert proper C++ library support
13909             ld_shlibs_CXX=no
13910             ;;
13911           aCC*)
13912             case $host_cpu in
13913               hppa*64*)
13914                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13915                 ;;
13916               ia64*)
13917                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13918                 ;;
13919               *)
13920                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13921                 ;;
13922             esac
13923             # Commands to make compiler produce verbose output that lists
13924             # what "hidden" libraries, object files and flags are used when
13925             # linking a shared library.
13926             #
13927             # There doesn't appear to be a way to prevent this compiler from
13928             # explicitly linking system object files so we need to strip them
13929             # from the output so that they don't get included in the library
13930             # dependencies.
13931             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'
13932             ;;
13933           *)
13934             if test "$GXX" = yes; then
13935               if test $with_gnu_ld = no; then
13936                 case $host_cpu in
13937                   hppa*64*)
13938                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13939                     ;;
13940                   ia64*)
13941                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13942                     ;;
13943                   *)
13944                     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'
13945                     ;;
13946                 esac
13947               fi
13948             else
13949               # FIXME: insert proper C++ library support
13950               ld_shlibs_CXX=no
13951             fi
13952             ;;
13953         esac
13954         ;;
13955
13956       interix[3-9]*)
13957         hardcode_direct_CXX=no
13958         hardcode_shlibpath_var_CXX=no
13959         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13960         export_dynamic_flag_spec_CXX='${wl}-E'
13961         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13962         # Instead, shared libraries are loaded at an image base (0x10000000 by
13963         # default) and relocated if they conflict, which is a slow very memory
13964         # consuming and fragmenting process.  To avoid this, we pick a random,
13965         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13966         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13967         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'
13968         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'
13969         ;;
13970       irix5* | irix6*)
13971         case $cc_basename in
13972           CC*)
13973             # SGI C++
13974             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'
13975
13976             # Archives containing C++ object files must be created using
13977             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13978             # necessary to make sure instantiated templates are included
13979             # in the archive.
13980             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13981             ;;
13982           *)
13983             if test "$GXX" = yes; then
13984               if test "$with_gnu_ld" = no; then
13985                 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'
13986               else
13987                 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'
13988               fi
13989             fi
13990             link_all_deplibs_CXX=yes
13991             ;;
13992         esac
13993         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13994         hardcode_libdir_separator_CXX=:
13995         inherit_rpath_CXX=yes
13996         ;;
13997
13998       linux* | k*bsd*-gnu)
13999         case $cc_basename in
14000           KCC*)
14001             # Kuck and Associates, Inc. (KAI) C++ Compiler
14002
14003             # KCC will only create a shared library if the output file
14004             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14005             # to its proper name (with version) after linking.
14006             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'
14007             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'
14008             # Commands to make compiler produce verbose output that lists
14009             # what "hidden" libraries, object files and flags are used when
14010             # linking a shared library.
14011             #
14012             # There doesn't appear to be a way to prevent this compiler from
14013             # explicitly linking system object files so we need to strip them
14014             # from the output so that they don't get included in the library
14015             # dependencies.
14016             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'
14017
14018             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14019             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14020
14021             # Archives containing C++ object files must be created using
14022             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14023             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14024             ;;
14025           icpc* | ecpc* )
14026             # Intel C++
14027             with_gnu_ld=yes
14028             # version 8.0 and above of icpc choke on multiply defined symbols
14029             # if we add $predep_objects and $postdep_objects, however 7.1 and
14030             # earlier do not add the objects themselves.
14031             case `$CC -V 2>&1` in
14032               *"Version 7."*)
14033                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14034                 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'
14035                 ;;
14036               *)  # Version 8.0 or newer
14037                 tmp_idyn=
14038                 case $host_cpu in
14039                   ia64*) tmp_idyn=' -i_dynamic';;
14040                 esac
14041                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14042                 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'
14043                 ;;
14044             esac
14045             archive_cmds_need_lc_CXX=no
14046             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14047             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14048             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14049             ;;
14050           pgCC* | pgcpp*)
14051             # Portland Group C++ compiler
14052             case `$CC -V` in
14053             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14054               prelink_cmds_CXX='tpldir=Template.dir~
14055                 rm -rf $tpldir~
14056                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14057                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14058               old_archive_cmds_CXX='tpldir=Template.dir~
14059                 rm -rf $tpldir~
14060                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14061                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14062                 $RANLIB $oldlib'
14063               archive_cmds_CXX='tpldir=Template.dir~
14064                 rm -rf $tpldir~
14065                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14066                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14067               archive_expsym_cmds_CXX='tpldir=Template.dir~
14068                 rm -rf $tpldir~
14069                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14070                 $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'
14071               ;;
14072             *) # Version 6 will use weak symbols
14073               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14074               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'
14075               ;;
14076             esac
14077
14078             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14079             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14080             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'
14081             ;;
14082           cxx*)
14083             # Compaq C++
14084             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085             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'
14086
14087             runpath_var=LD_RUN_PATH
14088             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14089             hardcode_libdir_separator_CXX=:
14090
14091             # Commands to make compiler produce verbose output that lists
14092             # what "hidden" libraries, object files and flags are used when
14093             # linking a shared library.
14094             #
14095             # There doesn't appear to be a way to prevent this compiler from
14096             # explicitly linking system object files so we need to strip them
14097             # from the output so that they don't get included in the library
14098             # dependencies.
14099             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'
14100             ;;
14101           xl*)
14102             # IBM XL 8.0 on PPC, with GNU ld
14103             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14104             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14105             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106             if test "x$supports_anon_versioning" = xyes; then
14107               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14108                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14109                 echo "local: *; };" >> $output_objdir/$libname.ver~
14110                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14111             fi
14112             ;;
14113           *)
14114             case `$CC -V 2>&1 | sed 5q` in
14115             *Sun\ C*)
14116               # Sun C++ 5.9
14117               no_undefined_flag_CXX=' -zdefs'
14118               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14119               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'
14120               hardcode_libdir_flag_spec_CXX='-R$libdir'
14121               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'
14122               compiler_needs_object_CXX=yes
14123
14124               # Not sure whether something based on
14125               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14126               # would be better.
14127               output_verbose_link_cmd='echo'
14128
14129               # Archives containing C++ object files must be created using
14130               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14131               # necessary to make sure instantiated templates are included
14132               # in the archive.
14133               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14134               ;;
14135             esac
14136             ;;
14137         esac
14138         ;;
14139
14140       lynxos*)
14141         # FIXME: insert proper C++ library support
14142         ld_shlibs_CXX=no
14143         ;;
14144
14145       m88k*)
14146         # FIXME: insert proper C++ library support
14147         ld_shlibs_CXX=no
14148         ;;
14149
14150       mvs*)
14151         case $cc_basename in
14152           cxx*)
14153             # FIXME: insert proper C++ library support
14154             ld_shlibs_CXX=no
14155             ;;
14156           *)
14157             # FIXME: insert proper C++ library support
14158             ld_shlibs_CXX=no
14159             ;;
14160         esac
14161         ;;
14162
14163       netbsd*)
14164         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14165           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14166           wlarc=
14167           hardcode_libdir_flag_spec_CXX='-R$libdir'
14168           hardcode_direct_CXX=yes
14169           hardcode_shlibpath_var_CXX=no
14170         fi
14171         # Workaround some broken pre-1.5 toolchains
14172         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14173         ;;
14174
14175       *nto* | *qnx*)
14176         ld_shlibs_CXX=yes
14177         ;;
14178
14179       openbsd2*)
14180         # C++ shared libraries are fairly broken
14181         ld_shlibs_CXX=no
14182         ;;
14183
14184       openbsd*)
14185         if test -f /usr/libexec/ld.so; then
14186           hardcode_direct_CXX=yes
14187           hardcode_shlibpath_var_CXX=no
14188           hardcode_direct_absolute_CXX=yes
14189           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14190           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14191           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14192             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14193             export_dynamic_flag_spec_CXX='${wl}-E'
14194             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14195           fi
14196           output_verbose_link_cmd=echo
14197         else
14198           ld_shlibs_CXX=no
14199         fi
14200         ;;
14201
14202       osf3* | osf4* | osf5*)
14203         case $cc_basename in
14204           KCC*)
14205             # Kuck and Associates, Inc. (KAI) C++ Compiler
14206
14207             # KCC will only create a shared library if the output file
14208             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14209             # to its proper name (with version) after linking.
14210             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'
14211
14212             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14213             hardcode_libdir_separator_CXX=:
14214
14215             # Archives containing C++ object files must be created using
14216             # the KAI C++ compiler.
14217             case $host in
14218               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14219               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14220             esac
14221             ;;
14222           RCC*)
14223             # Rational C++ 2.4.1
14224             # FIXME: insert proper C++ library support
14225             ld_shlibs_CXX=no
14226             ;;
14227           cxx*)
14228             case $host in
14229               osf3*)
14230                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14231                 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'
14232                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14233                 ;;
14234               *)
14235                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14236                 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'
14237                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14238                   echo "-hidden">> $lib.exp~
14239                   $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~
14240                   $RM $lib.exp'
14241                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14242                 ;;
14243             esac
14244
14245             hardcode_libdir_separator_CXX=:
14246
14247             # Commands to make compiler produce verbose output that lists
14248             # what "hidden" libraries, object files and flags are used when
14249             # linking a shared library.
14250             #
14251             # There doesn't appear to be a way to prevent this compiler from
14252             # explicitly linking system object files so we need to strip them
14253             # from the output so that they don't get included in the library
14254             # dependencies.
14255             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'
14256             ;;
14257           *)
14258             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14259               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14260               case $host in
14261                 osf3*)
14262                   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'
14263                   ;;
14264                 *)
14265                   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'
14266                   ;;
14267               esac
14268
14269               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14270               hardcode_libdir_separator_CXX=:
14271
14272               # Commands to make compiler produce verbose output that lists
14273               # what "hidden" libraries, object files and flags are used when
14274               # linking a shared library.
14275               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14276
14277             else
14278               # FIXME: insert proper C++ library support
14279               ld_shlibs_CXX=no
14280             fi
14281             ;;
14282         esac
14283         ;;
14284
14285       psos*)
14286         # FIXME: insert proper C++ library support
14287         ld_shlibs_CXX=no
14288         ;;
14289
14290       sunos4*)
14291         case $cc_basename in
14292           CC*)
14293             # Sun C++ 4.x
14294             # FIXME: insert proper C++ library support
14295             ld_shlibs_CXX=no
14296             ;;
14297           lcc*)
14298             # Lucid
14299             # FIXME: insert proper C++ library support
14300             ld_shlibs_CXX=no
14301             ;;
14302           *)
14303             # FIXME: insert proper C++ library support
14304             ld_shlibs_CXX=no
14305             ;;
14306         esac
14307         ;;
14308
14309       solaris*)
14310         case $cc_basename in
14311           CC*)
14312             # Sun C++ 4.2, 5.x and Centerline C++
14313             archive_cmds_need_lc_CXX=yes
14314             no_undefined_flag_CXX=' -zdefs'
14315             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14316             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14317               $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'
14318
14319             hardcode_libdir_flag_spec_CXX='-R$libdir'
14320             hardcode_shlibpath_var_CXX=no
14321             case $host_os in
14322               solaris2.[0-5] | solaris2.[0-5].*) ;;
14323               *)
14324                 # The compiler driver will combine and reorder linker options,
14325                 # but understands `-z linker_flag'.
14326                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14327                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14328                 ;;
14329             esac
14330             link_all_deplibs_CXX=yes
14331
14332             output_verbose_link_cmd='echo'
14333
14334             # Archives containing C++ object files must be created using
14335             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14336             # necessary to make sure instantiated templates are included
14337             # in the archive.
14338             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14339             ;;
14340           gcx*)
14341             # Green Hills C++ Compiler
14342             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14343
14344             # The C++ compiler must be used to create the archive.
14345             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14346             ;;
14347           *)
14348             # GNU C++ compiler with Solaris linker
14349             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14350               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14351               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14352                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14353                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14354                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14355
14356                 # Commands to make compiler produce verbose output that lists
14357                 # what "hidden" libraries, object files and flags are used when
14358                 # linking a shared library.
14359                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14360               else
14361                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14362                 # platform.
14363                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14364                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14365                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14366
14367                 # Commands to make compiler produce verbose output that lists
14368                 # what "hidden" libraries, object files and flags are used when
14369                 # linking a shared library.
14370                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14371               fi
14372
14373               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14374               case $host_os in
14375                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14376                 *)
14377                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14378                   ;;
14379               esac
14380             fi
14381             ;;
14382         esac
14383         ;;
14384
14385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14386       no_undefined_flag_CXX='${wl}-z,text'
14387       archive_cmds_need_lc_CXX=no
14388       hardcode_shlibpath_var_CXX=no
14389       runpath_var='LD_RUN_PATH'
14390
14391       case $cc_basename in
14392         CC*)
14393           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14394           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395           ;;
14396         *)
14397           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14398           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399           ;;
14400       esac
14401       ;;
14402
14403       sysv5* | sco3.2v5* | sco5v6*)
14404         # Note: We can NOT use -z defs as we might desire, because we do not
14405         # link with -lc, and that would cause any symbols used from libc to
14406         # always be unresolved, which means just about no library would
14407         # ever link correctly.  If we're not using GNU ld we use -z text
14408         # though, which does catch some bad symbols but isn't as heavy-handed
14409         # as -z defs.
14410         no_undefined_flag_CXX='${wl}-z,text'
14411         allow_undefined_flag_CXX='${wl}-z,nodefs'
14412         archive_cmds_need_lc_CXX=no
14413         hardcode_shlibpath_var_CXX=no
14414         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14415         hardcode_libdir_separator_CXX=':'
14416         link_all_deplibs_CXX=yes
14417         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14418         runpath_var='LD_RUN_PATH'
14419
14420         case $cc_basename in
14421           CC*)
14422             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14423             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14424             ;;
14425           *)
14426             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14427             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14428             ;;
14429         esac
14430       ;;
14431
14432       tandem*)
14433         case $cc_basename in
14434           NCC*)
14435             # NonStop-UX NCC 3.20
14436             # FIXME: insert proper C++ library support
14437             ld_shlibs_CXX=no
14438             ;;
14439           *)
14440             # FIXME: insert proper C++ library support
14441             ld_shlibs_CXX=no
14442             ;;
14443         esac
14444         ;;
14445
14446       vxworks*)
14447         # FIXME: insert proper C++ library support
14448         ld_shlibs_CXX=no
14449         ;;
14450
14451       *)
14452         # FIXME: insert proper C++ library support
14453         ld_shlibs_CXX=no
14454         ;;
14455     esac
14456
14457     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14458 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14459     test "$ld_shlibs_CXX" = no && can_build_shared=no
14460
14461     GCC_CXX="$GXX"
14462     LD_CXX="$LD"
14463
14464     ## CAVEAT EMPTOR:
14465     ## There is no encapsulation within the following macros, do not change
14466     ## the running order or otherwise move them around unless you know exactly
14467     ## what you are doing...
14468     # Dependencies to place before and after the object being linked:
14469 predep_objects_CXX=
14470 postdep_objects_CXX=
14471 predeps_CXX=
14472 postdeps_CXX=
14473 compiler_lib_search_path_CXX=
14474
14475 cat > conftest.$ac_ext <<_LT_EOF
14476 class Foo
14477 {
14478 public:
14479   Foo (void) { a = 0; }
14480 private:
14481   int a;
14482 };
14483 _LT_EOF
14484
14485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14486   (eval $ac_compile) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; then
14490   # Parse the compiler output and extract the necessary
14491   # objects, libraries and library flags.
14492
14493   # Sentinel used to keep track of whether or not we are before
14494   # the conftest object file.
14495   pre_test_object_deps_done=no
14496
14497   for p in `eval "$output_verbose_link_cmd"`; do
14498     case $p in
14499
14500     -L* | -R* | -l*)
14501        # Some compilers place space between "-{L,R}" and the path.
14502        # Remove the space.
14503        if test $p = "-L" ||
14504           test $p = "-R"; then
14505          prev=$p
14506          continue
14507        else
14508          prev=
14509        fi
14510
14511        if test "$pre_test_object_deps_done" = no; then
14512          case $p in
14513          -L* | -R*)
14514            # Internal compiler library paths should come after those
14515            # provided the user.  The postdeps already come after the
14516            # user supplied libs so there is no need to process them.
14517            if test -z "$compiler_lib_search_path_CXX"; then
14518              compiler_lib_search_path_CXX="${prev}${p}"
14519            else
14520              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14521            fi
14522            ;;
14523          # The "-l" case would never come before the object being
14524          # linked, so don't bother handling this case.
14525          esac
14526        else
14527          if test -z "$postdeps_CXX"; then
14528            postdeps_CXX="${prev}${p}"
14529          else
14530            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14531          fi
14532        fi
14533        ;;
14534
14535     *.$objext)
14536        # This assumes that the test object file only shows up
14537        # once in the compiler output.
14538        if test "$p" = "conftest.$objext"; then
14539          pre_test_object_deps_done=yes
14540          continue
14541        fi
14542
14543        if test "$pre_test_object_deps_done" = no; then
14544          if test -z "$predep_objects_CXX"; then
14545            predep_objects_CXX="$p"
14546          else
14547            predep_objects_CXX="$predep_objects_CXX $p"
14548          fi
14549        else
14550          if test -z "$postdep_objects_CXX"; then
14551            postdep_objects_CXX="$p"
14552          else
14553            postdep_objects_CXX="$postdep_objects_CXX $p"
14554          fi
14555        fi
14556        ;;
14557
14558     *) ;; # Ignore the rest.
14559
14560     esac
14561   done
14562
14563   # Clean up.
14564   rm -f a.out a.exe
14565 else
14566   echo "libtool.m4: error: problem compiling CXX test program"
14567 fi
14568
14569 $RM -f confest.$objext
14570
14571 # PORTME: override above test on systems where it is broken
14572 case $host_os in
14573 interix[3-9]*)
14574   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14575   # hack all around it, let's just trust "g++" to DTRT.
14576   predep_objects_CXX=
14577   postdep_objects_CXX=
14578   postdeps_CXX=
14579   ;;
14580
14581 linux*)
14582   case `$CC -V 2>&1 | sed 5q` in
14583   *Sun\ C*)
14584     # Sun C++ 5.9
14585
14586     # The more standards-conforming stlport4 library is
14587     # incompatible with the Cstd library. Avoid specifying
14588     # it if it's in CXXFLAGS. Ignore libCrun as
14589     # -library=stlport4 depends on it.
14590     case " $CXX $CXXFLAGS " in
14591     *" -library=stlport4 "*)
14592       solaris_use_stlport4=yes
14593       ;;
14594     esac
14595
14596     if test "$solaris_use_stlport4" != yes; then
14597       postdeps_CXX='-library=Cstd -library=Crun'
14598     fi
14599     ;;
14600   esac
14601   ;;
14602
14603 solaris*)
14604   case $cc_basename in
14605   CC*)
14606     # The more standards-conforming stlport4 library is
14607     # incompatible with the Cstd library. Avoid specifying
14608     # it if it's in CXXFLAGS. Ignore libCrun as
14609     # -library=stlport4 depends on it.
14610     case " $CXX $CXXFLAGS " in
14611     *" -library=stlport4 "*)
14612       solaris_use_stlport4=yes
14613       ;;
14614     esac
14615
14616     # Adding this requires a known-good setup of shared libraries for
14617     # Sun compiler versions before 5.6, else PIC objects from an old
14618     # archive will be linked into the output, leading to subtle bugs.
14619     if test "$solaris_use_stlport4" != yes; then
14620       postdeps_CXX='-library=Cstd -library=Crun'
14621     fi
14622     ;;
14623   esac
14624   ;;
14625 esac
14626
14627
14628 case " $postdeps_CXX " in
14629 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14630 esac
14631  compiler_lib_search_dirs_CXX=
14632 if test -n "${compiler_lib_search_path_CXX}"; then
14633  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14634 fi
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666     lt_prog_compiler_wl_CXX=
14667 lt_prog_compiler_pic_CXX=
14668 lt_prog_compiler_static_CXX=
14669
14670 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14671 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14672
14673   # C++ specific cases for pic, static, wl, etc.
14674   if test "$GXX" = yes; then
14675     lt_prog_compiler_wl_CXX='-Wl,'
14676     lt_prog_compiler_static_CXX='-static'
14677
14678     case $host_os in
14679     aix*)
14680       # All AIX code is PIC.
14681       if test "$host_cpu" = ia64; then
14682         # AIX 5 now supports IA64 processor
14683         lt_prog_compiler_static_CXX='-Bstatic'
14684       fi
14685       ;;
14686
14687     amigaos*)
14688       case $host_cpu in
14689       powerpc)
14690             # see comment about AmigaOS4 .so support
14691             lt_prog_compiler_pic_CXX='-fPIC'
14692         ;;
14693       m68k)
14694             # FIXME: we need at least 68020 code to build shared libraries, but
14695             # adding the `-m68020' flag to GCC prevents building anything better,
14696             # like `-m68040'.
14697             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14698         ;;
14699       esac
14700       ;;
14701
14702     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14703       # PIC is the default for these OSes.
14704       ;;
14705     mingw* | cygwin* | os2* | pw32* | cegcc*)
14706       # This hack is so that the source file can tell whether it is being
14707       # built for inclusion in a dll (and should export symbols for example).
14708       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14709       # (--disable-auto-import) libraries
14710       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14711       ;;
14712     darwin* | rhapsody*)
14713       # PIC is the default on this platform
14714       # Common symbols not allowed in MH_DYLIB files
14715       lt_prog_compiler_pic_CXX='-fno-common'
14716       ;;
14717     *djgpp*)
14718       # DJGPP does not support shared libraries at all
14719       lt_prog_compiler_pic_CXX=
14720       ;;
14721     interix[3-9]*)
14722       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14723       # Instead, we relocate shared libraries at runtime.
14724       ;;
14725     sysv4*MP*)
14726       if test -d /usr/nec; then
14727         lt_prog_compiler_pic_CXX=-Kconform_pic
14728       fi
14729       ;;
14730     hpux*)
14731       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14732       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14733       # sets the default TLS model and affects inlining.
14734       case $host_cpu in
14735       hppa*64*)
14736         ;;
14737       *)
14738         lt_prog_compiler_pic_CXX='-fPIC'
14739         ;;
14740       esac
14741       ;;
14742     *qnx* | *nto*)
14743       # QNX uses GNU C++, but need to define -shared option too, otherwise
14744       # it will coredump.
14745       lt_prog_compiler_pic_CXX='-fPIC -shared'
14746       ;;
14747     *)
14748       lt_prog_compiler_pic_CXX='-fPIC'
14749       ;;
14750     esac
14751   else
14752     case $host_os in
14753       aix[4-9]*)
14754         # All AIX code is PIC.
14755         if test "$host_cpu" = ia64; then
14756           # AIX 5 now supports IA64 processor
14757           lt_prog_compiler_static_CXX='-Bstatic'
14758         else
14759           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14760         fi
14761         ;;
14762       chorus*)
14763         case $cc_basename in
14764         cxch68*)
14765           # Green Hills C++ Compiler
14766           # _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"
14767           ;;
14768         esac
14769         ;;
14770       dgux*)
14771         case $cc_basename in
14772           ec++*)
14773             lt_prog_compiler_pic_CXX='-KPIC'
14774             ;;
14775           ghcx*)
14776             # Green Hills C++ Compiler
14777             lt_prog_compiler_pic_CXX='-pic'
14778             ;;
14779           *)
14780             ;;
14781         esac
14782         ;;
14783       freebsd* | dragonfly*)
14784         # FreeBSD uses GNU C++
14785         ;;
14786       hpux9* | hpux10* | hpux11*)
14787         case $cc_basename in
14788           CC*)
14789             lt_prog_compiler_wl_CXX='-Wl,'
14790             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14791             if test "$host_cpu" != ia64; then
14792               lt_prog_compiler_pic_CXX='+Z'
14793             fi
14794             ;;
14795           aCC*)
14796             lt_prog_compiler_wl_CXX='-Wl,'
14797             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14798             case $host_cpu in
14799             hppa*64*|ia64*)
14800               # +Z the default
14801               ;;
14802             *)
14803               lt_prog_compiler_pic_CXX='+Z'
14804               ;;
14805             esac
14806             ;;
14807           *)
14808             ;;
14809         esac
14810         ;;
14811       interix*)
14812         # This is c89, which is MS Visual C++ (no shared libs)
14813         # Anyone wants to do a port?
14814         ;;
14815       irix5* | irix6* | nonstopux*)
14816         case $cc_basename in
14817           CC*)
14818             lt_prog_compiler_wl_CXX='-Wl,'
14819             lt_prog_compiler_static_CXX='-non_shared'
14820             # CC pic flag -KPIC is the default.
14821             ;;
14822           *)
14823             ;;
14824         esac
14825         ;;
14826       linux* | k*bsd*-gnu)
14827         case $cc_basename in
14828           KCC*)
14829             # KAI C++ Compiler
14830             lt_prog_compiler_wl_CXX='--backend -Wl,'
14831             lt_prog_compiler_pic_CXX='-fPIC'
14832             ;;
14833           ecpc* )
14834             # old Intel C++ for x86_64 which still supported -KPIC.
14835             lt_prog_compiler_wl_CXX='-Wl,'
14836             lt_prog_compiler_pic_CXX='-KPIC'
14837             lt_prog_compiler_static_CXX='-static'
14838             ;;
14839           icpc* )
14840             # Intel C++, used to be incompatible with GCC.
14841             # ICC 10 doesn't accept -KPIC any more.
14842             lt_prog_compiler_wl_CXX='-Wl,'
14843             lt_prog_compiler_pic_CXX='-fPIC'
14844             lt_prog_compiler_static_CXX='-static'
14845             ;;
14846           pgCC* | pgcpp*)
14847             # Portland Group C++ compiler
14848             lt_prog_compiler_wl_CXX='-Wl,'
14849             lt_prog_compiler_pic_CXX='-fpic'
14850             lt_prog_compiler_static_CXX='-Bstatic'
14851             ;;
14852           cxx*)
14853             # Compaq C++
14854             # Make sure the PIC flag is empty.  It appears that all Alpha
14855             # Linux and Compaq Tru64 Unix objects are PIC.
14856             lt_prog_compiler_pic_CXX=
14857             lt_prog_compiler_static_CXX='-non_shared'
14858             ;;
14859           xlc* | xlC*)
14860             # IBM XL 8.0 on PPC
14861             lt_prog_compiler_wl_CXX='-Wl,'
14862             lt_prog_compiler_pic_CXX='-qpic'
14863             lt_prog_compiler_static_CXX='-qstaticlink'
14864             ;;
14865           *)
14866             case `$CC -V 2>&1 | sed 5q` in
14867             *Sun\ C*)
14868               # Sun C++ 5.9
14869               lt_prog_compiler_pic_CXX='-KPIC'
14870               lt_prog_compiler_static_CXX='-Bstatic'
14871               lt_prog_compiler_wl_CXX='-Qoption ld '
14872               ;;
14873             esac
14874             ;;
14875         esac
14876         ;;
14877       lynxos*)
14878         ;;
14879       m88k*)
14880         ;;
14881       mvs*)
14882         case $cc_basename in
14883           cxx*)
14884             lt_prog_compiler_pic_CXX='-W c,exportall'
14885             ;;
14886           *)
14887             ;;
14888         esac
14889         ;;
14890       netbsd*)
14891         ;;
14892       *qnx* | *nto*)
14893         # QNX uses GNU C++, but need to define -shared option too, otherwise
14894         # it will coredump.
14895         lt_prog_compiler_pic_CXX='-fPIC -shared'
14896         ;;
14897       osf3* | osf4* | osf5*)
14898         case $cc_basename in
14899           KCC*)
14900             lt_prog_compiler_wl_CXX='--backend -Wl,'
14901             ;;
14902           RCC*)
14903             # Rational C++ 2.4.1
14904             lt_prog_compiler_pic_CXX='-pic'
14905             ;;
14906           cxx*)
14907             # Digital/Compaq C++
14908             lt_prog_compiler_wl_CXX='-Wl,'
14909             # Make sure the PIC flag is empty.  It appears that all Alpha
14910             # Linux and Compaq Tru64 Unix objects are PIC.
14911             lt_prog_compiler_pic_CXX=
14912             lt_prog_compiler_static_CXX='-non_shared'
14913             ;;
14914           *)
14915             ;;
14916         esac
14917         ;;
14918       psos*)
14919         ;;
14920       solaris*)
14921         case $cc_basename in
14922           CC*)
14923             # Sun C++ 4.2, 5.x and Centerline C++
14924             lt_prog_compiler_pic_CXX='-KPIC'
14925             lt_prog_compiler_static_CXX='-Bstatic'
14926             lt_prog_compiler_wl_CXX='-Qoption ld '
14927             ;;
14928           gcx*)
14929             # Green Hills C++ Compiler
14930             lt_prog_compiler_pic_CXX='-PIC'
14931             ;;
14932           *)
14933             ;;
14934         esac
14935         ;;
14936       sunos4*)
14937         case $cc_basename in
14938           CC*)
14939             # Sun C++ 4.x
14940             lt_prog_compiler_pic_CXX='-pic'
14941             lt_prog_compiler_static_CXX='-Bstatic'
14942             ;;
14943           lcc*)
14944             # Lucid
14945             lt_prog_compiler_pic_CXX='-pic'
14946             ;;
14947           *)
14948             ;;
14949         esac
14950         ;;
14951       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14952         case $cc_basename in
14953           CC*)
14954             lt_prog_compiler_wl_CXX='-Wl,'
14955             lt_prog_compiler_pic_CXX='-KPIC'
14956             lt_prog_compiler_static_CXX='-Bstatic'
14957             ;;
14958         esac
14959         ;;
14960       tandem*)
14961         case $cc_basename in
14962           NCC*)
14963             # NonStop-UX NCC 3.20
14964             lt_prog_compiler_pic_CXX='-KPIC'
14965             ;;
14966           *)
14967             ;;
14968         esac
14969         ;;
14970       vxworks*)
14971         ;;
14972       *)
14973         lt_prog_compiler_can_build_shared_CXX=no
14974         ;;
14975     esac
14976   fi
14977
14978 case $host_os in
14979   # For platforms which do not support PIC, -DPIC is meaningless:
14980   *djgpp*)
14981     lt_prog_compiler_pic_CXX=
14982     ;;
14983   *)
14984     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14985     ;;
14986 esac
14987 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14989
14990
14991
14992 #
14993 # Check to make sure the PIC flag actually works.
14994 #
14995 if test -n "$lt_prog_compiler_pic_CXX"; then
14996   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14998 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   lt_cv_prog_compiler_pic_works_CXX=no
15002    ac_outfile=conftest.$ac_objext
15003    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15005    # Insert the option either (1) after the last *FLAGS variable, or
15006    # (2) before a word containing "conftest.", or (3) at the end.
15007    # Note that $ac_compile itself does not contain backslashes and begins
15008    # with a dollar sign (not a hyphen), so the echo should work correctly.
15009    # The option is referenced via a variable to avoid confusing sed.
15010    lt_compile=`echo "$ac_compile" | $SED \
15011    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013    -e 's:$: $lt_compiler_flag:'`
15014    (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
15015    (eval "$lt_compile" 2>conftest.err)
15016    ac_status=$?
15017    cat conftest.err >&5
15018    echo "$as_me:15018: \$? = $ac_status" >&5
15019    if (exit $ac_status) && test -s "$ac_outfile"; then
15020      # The compiler can only warn and ignore the option if not recognized
15021      # So say no if there are warnings other than the usual output.
15022      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15023      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15024      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15025        lt_cv_prog_compiler_pic_works_CXX=yes
15026      fi
15027    fi
15028    $RM conftest*
15029
15030 fi
15031 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15032 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
15033
15034 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15035     case $lt_prog_compiler_pic_CXX in
15036      "" | " "*) ;;
15037      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15038      esac
15039 else
15040     lt_prog_compiler_pic_CXX=
15041      lt_prog_compiler_can_build_shared_CXX=no
15042 fi
15043
15044 fi
15045
15046
15047
15048 #
15049 # Check to make sure the static flag actually works.
15050 #
15051 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15052 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15053 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15054 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   lt_cv_prog_compiler_static_works_CXX=no
15058    save_LDFLAGS="$LDFLAGS"
15059    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15060    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15061    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15062      # The linker can only warn and ignore the option if not recognized
15063      # So say no if there are warnings
15064      if test -s conftest.err; then
15065        # Append any errors to the config.log.
15066        cat conftest.err 1>&5
15067        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15068        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15069        if diff conftest.exp conftest.er2 >/dev/null; then
15070          lt_cv_prog_compiler_static_works_CXX=yes
15071        fi
15072      else
15073        lt_cv_prog_compiler_static_works_CXX=yes
15074      fi
15075    fi
15076    $RM -r conftest*
15077    LDFLAGS="$save_LDFLAGS"
15078
15079 fi
15080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15081 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
15082
15083 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15084     :
15085 else
15086     lt_prog_compiler_static_CXX=
15087 fi
15088
15089
15090
15091
15092     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15094 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097   lt_cv_prog_compiler_c_o_CXX=no
15098    $RM -r conftest 2>/dev/null
15099    mkdir conftest
15100    cd conftest
15101    mkdir out
15102    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15103
15104    lt_compiler_flag="-o out/conftest2.$ac_objext"
15105    # Insert the option either (1) after the last *FLAGS variable, or
15106    # (2) before a word containing "conftest.", or (3) at the end.
15107    # Note that $ac_compile itself does not contain backslashes and begins
15108    # with a dollar sign (not a hyphen), so the echo should work correctly.
15109    lt_compile=`echo "$ac_compile" | $SED \
15110    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15112    -e 's:$: $lt_compiler_flag:'`
15113    (eval echo "\"\$as_me:15113: $lt_compile\"" >&5)
15114    (eval "$lt_compile" 2>out/conftest.err)
15115    ac_status=$?
15116    cat out/conftest.err >&5
15117    echo "$as_me:15117: \$? = $ac_status" >&5
15118    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15119    then
15120      # The compiler can only warn and ignore the option if not recognized
15121      # So say no if there are warnings
15122      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15123      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15124      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15125        lt_cv_prog_compiler_c_o_CXX=yes
15126      fi
15127    fi
15128    chmod u+w . 2>&5
15129    $RM conftest*
15130    # SGI C++ compiler will create directory out/ii_files/ for
15131    # template instantiation
15132    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15133    $RM out/* && rmdir out
15134    cd ..
15135    $RM -r conftest
15136    $RM conftest*
15137
15138 fi
15139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15141
15142
15143
15144     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15146 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   lt_cv_prog_compiler_c_o_CXX=no
15150    $RM -r conftest 2>/dev/null
15151    mkdir conftest
15152    cd conftest
15153    mkdir out
15154    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15155
15156    lt_compiler_flag="-o out/conftest2.$ac_objext"
15157    # Insert the option either (1) after the last *FLAGS variable, or
15158    # (2) before a word containing "conftest.", or (3) at the end.
15159    # Note that $ac_compile itself does not contain backslashes and begins
15160    # with a dollar sign (not a hyphen), so the echo should work correctly.
15161    lt_compile=`echo "$ac_compile" | $SED \
15162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164    -e 's:$: $lt_compiler_flag:'`
15165    (eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
15166    (eval "$lt_compile" 2>out/conftest.err)
15167    ac_status=$?
15168    cat out/conftest.err >&5
15169    echo "$as_me:15169: \$? = $ac_status" >&5
15170    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15171    then
15172      # The compiler can only warn and ignore the option if not recognized
15173      # So say no if there are warnings
15174      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15175      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15176      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15177        lt_cv_prog_compiler_c_o_CXX=yes
15178      fi
15179    fi
15180    chmod u+w . 2>&5
15181    $RM conftest*
15182    # SGI C++ compiler will create directory out/ii_files/ for
15183    # template instantiation
15184    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15185    $RM out/* && rmdir out
15186    cd ..
15187    $RM -r conftest
15188    $RM conftest*
15189
15190 fi
15191 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15192 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15193
15194
15195
15196
15197 hard_links="nottested"
15198 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15199   # do not overwrite the value of need_locks provided by the user
15200   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15202   hard_links=yes
15203   $RM conftest*
15204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15205   touch conftest.a
15206   ln conftest.a conftest.b 2>&5 || hard_links=no
15207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15208   echo "$as_me:$LINENO: result: $hard_links" >&5
15209 echo "${ECHO_T}$hard_links" >&6
15210   if test "$hard_links" = no; then
15211     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15213     need_locks=warn
15214   fi
15215 else
15216   need_locks=no
15217 fi
15218
15219
15220
15221     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15223
15224   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15225   case $host_os in
15226   aix[4-9]*)
15227     # If we're using GNU nm, then we don't want the "-C" option.
15228     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15229     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15230       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'
15231     else
15232       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'
15233     fi
15234     ;;
15235   pw32*)
15236     export_symbols_cmds_CXX="$ltdll_cmds"
15237   ;;
15238   cygwin* | mingw* | cegcc*)
15239     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'
15240   ;;
15241   *)
15242     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243   ;;
15244   esac
15245   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15246
15247 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15248 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15249 test "$ld_shlibs_CXX" = no && can_build_shared=no
15250
15251 with_gnu_ld_CXX=$with_gnu_ld
15252
15253
15254
15255
15256
15257
15258 #
15259 # Do we need to explicitly link libc?
15260 #
15261 case "x$archive_cmds_need_lc_CXX" in
15262 x|xyes)
15263   # Assume -lc should be added
15264   archive_cmds_need_lc_CXX=yes
15265
15266   if test "$enable_shared" = yes && test "$GCC" = yes; then
15267     case $archive_cmds_CXX in
15268     *'~'*)
15269       # FIXME: we may have to deal with multi-command sequences.
15270       ;;
15271     '$CC '*)
15272       # Test whether the compiler implicitly links with -lc since on some
15273       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15274       # to ld, don't add -lc before -lgcc.
15275       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15276 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15277       $RM conftest*
15278       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15279
15280       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281   (eval $ac_compile) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } 2>conftest.err; then
15285         soname=conftest
15286         lib=conftest
15287         libobjs=conftest.$ac_objext
15288         deplibs=
15289         wl=$lt_prog_compiler_wl_CXX
15290         pic_flag=$lt_prog_compiler_pic_CXX
15291         compiler_flags=-v
15292         linker_flags=-v
15293         verstring=
15294         output_objdir=.
15295         libname=conftest
15296         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15297         allow_undefined_flag_CXX=
15298         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15299   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }
15303         then
15304           archive_cmds_need_lc_CXX=no
15305         else
15306           archive_cmds_need_lc_CXX=yes
15307         fi
15308         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15309       else
15310         cat conftest.err 1>&5
15311       fi
15312       $RM conftest*
15313       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15314 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15315       ;;
15316     esac
15317   fi
15318   ;;
15319 esac
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15385 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15386
15387 library_names_spec=
15388 libname_spec='lib$name'
15389 soname_spec=
15390 shrext_cmds=".so"
15391 postinstall_cmds=
15392 postuninstall_cmds=
15393 finish_cmds=
15394 finish_eval=
15395 shlibpath_var=
15396 shlibpath_overrides_runpath=unknown
15397 version_type=none
15398 dynamic_linker="$host_os ld.so"
15399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15400 need_lib_prefix=unknown
15401 hardcode_into_libs=no
15402
15403 # when you set need_version to no, make sure it does not cause -set_version
15404 # flags to be left without arguments
15405 need_version=unknown
15406
15407 case $host_os in
15408 aix3*)
15409   version_type=linux
15410   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15411   shlibpath_var=LIBPATH
15412
15413   # AIX 3 has no versioning support, so we append a major version to the name.
15414   soname_spec='${libname}${release}${shared_ext}$major'
15415   ;;
15416
15417 aix[4-9]*)
15418   version_type=linux
15419   need_lib_prefix=no
15420   need_version=no
15421   hardcode_into_libs=yes
15422   if test "$host_cpu" = ia64; then
15423     # AIX 5 supports IA64
15424     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15425     shlibpath_var=LD_LIBRARY_PATH
15426   else
15427     # With GCC up to 2.95.x, collect2 would create an import file
15428     # for dependence libraries.  The import file would start with
15429     # the line `#! .'.  This would cause the generated library to
15430     # depend on `.', always an invalid library.  This was fixed in
15431     # development snapshots of GCC prior to 3.0.
15432     case $host_os in
15433       aix4 | aix4.[01] | aix4.[01].*)
15434       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15435            echo ' yes '
15436            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15437         :
15438       else
15439         can_build_shared=no
15440       fi
15441       ;;
15442     esac
15443     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15444     # soname into executable. Probably we can add versioning support to
15445     # collect2, so additional links can be useful in future.
15446     if test "$aix_use_runtimelinking" = yes; then
15447       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15448       # instead of lib<name>.a to let people know that these are not
15449       # typical AIX shared libraries.
15450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451     else
15452       # We preserve .a as extension for shared libraries through AIX4.2
15453       # and later when we are not doing run time linking.
15454       library_names_spec='${libname}${release}.a $libname.a'
15455       soname_spec='${libname}${release}${shared_ext}$major'
15456     fi
15457     shlibpath_var=LIBPATH
15458   fi
15459   ;;
15460
15461 amigaos*)
15462   case $host_cpu in
15463   powerpc)
15464     # Since July 2007 AmigaOS4 officially supports .so libraries.
15465     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467     ;;
15468   m68k)
15469     library_names_spec='$libname.ixlibrary $libname.a'
15470     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15471     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'
15472     ;;
15473   esac
15474   ;;
15475
15476 beos*)
15477   library_names_spec='${libname}${shared_ext}'
15478   dynamic_linker="$host_os ld.so"
15479   shlibpath_var=LIBRARY_PATH
15480   ;;
15481
15482 bsdi[45]*)
15483   version_type=linux
15484   need_version=no
15485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486   soname_spec='${libname}${release}${shared_ext}$major'
15487   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15488   shlibpath_var=LD_LIBRARY_PATH
15489   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15490   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15491   # the default ld.so.conf also contains /usr/contrib/lib and
15492   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15493   # libtool to hard-code these into programs
15494   ;;
15495
15496 cygwin* | mingw* | pw32* | cegcc*)
15497   version_type=windows
15498   shrext_cmds=".dll"
15499   need_version=no
15500   need_lib_prefix=no
15501
15502   case $GCC,$host_os in
15503   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15504     library_names_spec='$libname.dll.a'
15505     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15506     postinstall_cmds='base_file=`basename \${file}`~
15507       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15508       dldir=$destdir/`dirname \$dlpath`~
15509       test -d \$dldir || mkdir -p \$dldir~
15510       $install_prog $dir/$dlname \$dldir/$dlname~
15511       chmod a+x \$dldir/$dlname~
15512       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15513         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15514       fi'
15515     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15516       dlpath=$dir/\$dldll~
15517        $RM \$dlpath'
15518     shlibpath_overrides_runpath=yes
15519
15520     case $host_os in
15521     cygwin*)
15522       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15523       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15524       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15525       ;;
15526     mingw* | cegcc*)
15527       # MinGW DLLs use traditional 'lib' prefix
15528       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15529       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15530       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15531         # It is most probably a Windows format PATH printed by
15532         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15533         # path with ; separators, and with drive letters. We can handle the
15534         # drive letters (cygwin fileutils understands them), so leave them,
15535         # especially as we might pass files found there to a mingw objdump,
15536         # which wouldn't understand a cygwinified path. Ahh.
15537         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15538       else
15539         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15540       fi
15541       ;;
15542     pw32*)
15543       # pw32 DLLs use 'pw' prefix rather than 'lib'
15544       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15545       ;;
15546     esac
15547     ;;
15548
15549   *)
15550     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15551     ;;
15552   esac
15553   dynamic_linker='Win32 ld.exe'
15554   # FIXME: first we should search . and the directory the executable is in
15555   shlibpath_var=PATH
15556   ;;
15557
15558 darwin* | rhapsody*)
15559   dynamic_linker="$host_os dyld"
15560   version_type=darwin
15561   need_lib_prefix=no
15562   need_version=no
15563   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15564   soname_spec='${libname}${release}${major}$shared_ext'
15565   shlibpath_overrides_runpath=yes
15566   shlibpath_var=DYLD_LIBRARY_PATH
15567   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15568
15569   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15570   ;;
15571
15572 dgux*)
15573   version_type=linux
15574   need_lib_prefix=no
15575   need_version=no
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15577   soname_spec='${libname}${release}${shared_ext}$major'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   ;;
15580
15581 freebsd1*)
15582   dynamic_linker=no
15583   ;;
15584
15585 freebsd* | dragonfly*)
15586   # DragonFly does not have aout.  When/if they implement a new
15587   # versioning mechanism, adjust this.
15588   if test -x /usr/bin/objformat; then
15589     objformat=`/usr/bin/objformat`
15590   else
15591     case $host_os in
15592     freebsd[123]*) objformat=aout ;;
15593     *) objformat=elf ;;
15594     esac
15595   fi
15596   version_type=freebsd-$objformat
15597   case $version_type in
15598     freebsd-elf*)
15599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15600       need_version=no
15601       need_lib_prefix=no
15602       ;;
15603     freebsd-*)
15604       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15605       need_version=yes
15606       ;;
15607   esac
15608   shlibpath_var=LD_LIBRARY_PATH
15609   case $host_os in
15610   freebsd2*)
15611     shlibpath_overrides_runpath=yes
15612     ;;
15613   freebsd3.[01]* | freebsdelf3.[01]*)
15614     shlibpath_overrides_runpath=yes
15615     hardcode_into_libs=yes
15616     ;;
15617   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15618   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15619     shlibpath_overrides_runpath=no
15620     hardcode_into_libs=yes
15621     ;;
15622   *) # from 4.6 on, and DragonFly
15623     shlibpath_overrides_runpath=yes
15624     hardcode_into_libs=yes
15625     ;;
15626   esac
15627   ;;
15628
15629 gnu*)
15630   version_type=linux
15631   need_lib_prefix=no
15632   need_version=no
15633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15634   soname_spec='${libname}${release}${shared_ext}$major'
15635   shlibpath_var=LD_LIBRARY_PATH
15636   hardcode_into_libs=yes
15637   ;;
15638
15639 hpux9* | hpux10* | hpux11*)
15640   # Give a soname corresponding to the major version so that dld.sl refuses to
15641   # link against other versions.
15642   version_type=sunos
15643   need_lib_prefix=no
15644   need_version=no
15645   case $host_cpu in
15646   ia64*)
15647     shrext_cmds='.so'
15648     hardcode_into_libs=yes
15649     dynamic_linker="$host_os dld.so"
15650     shlibpath_var=LD_LIBRARY_PATH
15651     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653     soname_spec='${libname}${release}${shared_ext}$major'
15654     if test "X$HPUX_IA64_MODE" = X32; then
15655       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15656     else
15657       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15658     fi
15659     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15660     ;;
15661   hppa*64*)
15662     shrext_cmds='.sl'
15663     hardcode_into_libs=yes
15664     dynamic_linker="$host_os dld.sl"
15665     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668     soname_spec='${libname}${release}${shared_ext}$major'
15669     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15671     ;;
15672   *)
15673     shrext_cmds='.sl'
15674     dynamic_linker="$host_os dld.sl"
15675     shlibpath_var=SHLIB_PATH
15676     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678     soname_spec='${libname}${release}${shared_ext}$major'
15679     ;;
15680   esac
15681   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15682   postinstall_cmds='chmod 555 $lib'
15683   ;;
15684
15685 interix[3-9]*)
15686   version_type=linux
15687   need_lib_prefix=no
15688   need_version=no
15689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15690   soname_spec='${libname}${release}${shared_ext}$major'
15691   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15692   shlibpath_var=LD_LIBRARY_PATH
15693   shlibpath_overrides_runpath=no
15694   hardcode_into_libs=yes
15695   ;;
15696
15697 irix5* | irix6* | nonstopux*)
15698   case $host_os in
15699     nonstopux*) version_type=nonstopux ;;
15700     *)
15701         if test "$lt_cv_prog_gnu_ld" = yes; then
15702                 version_type=linux
15703         else
15704                 version_type=irix
15705         fi ;;
15706   esac
15707   need_lib_prefix=no
15708   need_version=no
15709   soname_spec='${libname}${release}${shared_ext}$major'
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15711   case $host_os in
15712   irix5* | nonstopux*)
15713     libsuff= shlibsuff=
15714     ;;
15715   *)
15716     case $LD in # libtool.m4 will add one of these switches to LD
15717     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15718       libsuff= shlibsuff= libmagic=32-bit;;
15719     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15720       libsuff=32 shlibsuff=N32 libmagic=N32;;
15721     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15722       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15723     *) libsuff= shlibsuff= libmagic=never-match;;
15724     esac
15725     ;;
15726   esac
15727   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15728   shlibpath_overrides_runpath=no
15729   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15730   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15731   hardcode_into_libs=yes
15732   ;;
15733
15734 # No shared lib support for Linux oldld, aout, or coff.
15735 linux*oldld* | linux*aout* | linux*coff*)
15736   dynamic_linker=no
15737   ;;
15738
15739 # This must be Linux ELF.
15740 linux* | k*bsd*-gnu)
15741   version_type=linux
15742   need_lib_prefix=no
15743   need_version=no
15744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745   soname_spec='${libname}${release}${shared_ext}$major'
15746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15747   shlibpath_var=LD_LIBRARY_PATH
15748   shlibpath_overrides_runpath=no
15749   # Some binutils ld are patched to set DT_RUNPATH
15750   save_LDFLAGS=$LDFLAGS
15751   save_libdir=$libdir
15752   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15753        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15754   if test x$gcc_no_link = xyes; then
15755   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15757    { (exit 1); exit 1; }; }
15758 fi
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765
15766 int
15767 main ()
15768 {
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776   (eval $ac_link) 2>conftest.er1
15777   ac_status=$?
15778   grep -v '^ *+' conftest.er1 >conftest.err
15779   rm -f conftest.er1
15780   cat conftest.err >&5
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -z "$ac_cxx_werror_flag"
15784                          || test ! -s conftest.err'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest$ac_exeext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15797   shlibpath_overrides_runpath=yes
15798 fi
15799
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 fi
15805 rm -f conftest.err conftest.$ac_objext \
15806       conftest$ac_exeext conftest.$ac_ext
15807   LDFLAGS=$save_LDFLAGS
15808   libdir=$save_libdir
15809
15810   # This implies no fast_install, which is unacceptable.
15811   # Some rework will be needed to allow for fast_install
15812   # before this can be enabled.
15813   hardcode_into_libs=yes
15814
15815   # Append ld.so.conf contents to the search path
15816   if test -f /etc/ld.so.conf; then
15817     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15818     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15819   fi
15820
15821   # We used to test for /lib/ld.so.1 and disable shared libraries on
15822   # powerpc, because MkLinux only supported shared libraries with the
15823   # GNU dynamic linker.  Since this was broken with cross compilers,
15824   # most powerpc-linux boxes support dynamic linking these days and
15825   # people can always --disable-shared, the test was removed, and we
15826   # assume the GNU/Linux dynamic linker is in use.
15827   dynamic_linker='GNU/Linux ld.so'
15828   ;;
15829
15830 netbsd*)
15831   version_type=sunos
15832   need_lib_prefix=no
15833   need_version=no
15834   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15836     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15837     dynamic_linker='NetBSD (a.out) ld.so'
15838   else
15839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15840     soname_spec='${libname}${release}${shared_ext}$major'
15841     dynamic_linker='NetBSD ld.elf_so'
15842   fi
15843   shlibpath_var=LD_LIBRARY_PATH
15844   shlibpath_overrides_runpath=yes
15845   hardcode_into_libs=yes
15846   ;;
15847
15848 newsos6)
15849   version_type=linux
15850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851   shlibpath_var=LD_LIBRARY_PATH
15852   shlibpath_overrides_runpath=yes
15853   ;;
15854
15855 *nto* | *qnx*)
15856   version_type=qnx
15857   need_lib_prefix=no
15858   need_version=no
15859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860   soname_spec='${libname}${release}${shared_ext}$major'
15861   shlibpath_var=LD_LIBRARY_PATH
15862   shlibpath_overrides_runpath=no
15863   hardcode_into_libs=yes
15864   dynamic_linker='ldqnx.so'
15865   ;;
15866
15867 openbsd*)
15868   version_type=sunos
15869   sys_lib_dlsearch_path_spec="/usr/lib"
15870   need_lib_prefix=no
15871   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15872   case $host_os in
15873     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15874     *)                          need_version=no  ;;
15875   esac
15876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878   shlibpath_var=LD_LIBRARY_PATH
15879   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15880     case $host_os in
15881       openbsd2.[89] | openbsd2.[89].*)
15882         shlibpath_overrides_runpath=no
15883         ;;
15884       *)
15885         shlibpath_overrides_runpath=yes
15886         ;;
15887       esac
15888   else
15889     shlibpath_overrides_runpath=yes
15890   fi
15891   ;;
15892
15893 os2*)
15894   libname_spec='$name'
15895   shrext_cmds=".dll"
15896   need_lib_prefix=no
15897   library_names_spec='$libname${shared_ext} $libname.a'
15898   dynamic_linker='OS/2 ld.exe'
15899   shlibpath_var=LIBPATH
15900   ;;
15901
15902 osf3* | osf4* | osf5*)
15903   version_type=osf
15904   need_lib_prefix=no
15905   need_version=no
15906   soname_spec='${libname}${release}${shared_ext}$major'
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908   shlibpath_var=LD_LIBRARY_PATH
15909   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15910   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15911   ;;
15912
15913 rdos*)
15914   dynamic_linker=no
15915   ;;
15916
15917 solaris*)
15918   version_type=linux
15919   need_lib_prefix=no
15920   need_version=no
15921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922   soname_spec='${libname}${release}${shared_ext}$major'
15923   shlibpath_var=LD_LIBRARY_PATH
15924   shlibpath_overrides_runpath=yes
15925   hardcode_into_libs=yes
15926   # ldd complains unless libraries are executable
15927   postinstall_cmds='chmod +x $lib'
15928   ;;
15929
15930 sunos4*)
15931   version_type=sunos
15932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15934   shlibpath_var=LD_LIBRARY_PATH
15935   shlibpath_overrides_runpath=yes
15936   if test "$with_gnu_ld" = yes; then
15937     need_lib_prefix=no
15938   fi
15939   need_version=yes
15940   ;;
15941
15942 sysv4 | sysv4.3*)
15943   version_type=linux
15944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945   soname_spec='${libname}${release}${shared_ext}$major'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   case $host_vendor in
15948     sni)
15949       shlibpath_overrides_runpath=no
15950       need_lib_prefix=no
15951       runpath_var=LD_RUN_PATH
15952       ;;
15953     siemens)
15954       need_lib_prefix=no
15955       ;;
15956     motorola)
15957       need_lib_prefix=no
15958       need_version=no
15959       shlibpath_overrides_runpath=no
15960       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15961       ;;
15962   esac
15963   ;;
15964
15965 sysv4*MP*)
15966   if test -d /usr/nec ;then
15967     version_type=linux
15968     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15969     soname_spec='$libname${shared_ext}.$major'
15970     shlibpath_var=LD_LIBRARY_PATH
15971   fi
15972   ;;
15973
15974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15975   version_type=freebsd-elf
15976   need_lib_prefix=no
15977   need_version=no
15978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15979   soname_spec='${libname}${release}${shared_ext}$major'
15980   shlibpath_var=LD_LIBRARY_PATH
15981   shlibpath_overrides_runpath=yes
15982   hardcode_into_libs=yes
15983   if test "$with_gnu_ld" = yes; then
15984     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15985   else
15986     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15987     case $host_os in
15988       sco3.2v5*)
15989         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15990         ;;
15991     esac
15992   fi
15993   sys_lib_dlsearch_path_spec='/usr/lib'
15994   ;;
15995
15996 tpf*)
15997   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15998   version_type=linux
15999   need_lib_prefix=no
16000   need_version=no
16001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002   shlibpath_var=LD_LIBRARY_PATH
16003   shlibpath_overrides_runpath=no
16004   hardcode_into_libs=yes
16005   ;;
16006
16007 uts4*)
16008   version_type=linux
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010   soname_spec='${libname}${release}${shared_ext}$major'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   ;;
16013
16014 *)
16015   dynamic_linker=no
16016   ;;
16017 esac
16018 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16019 echo "${ECHO_T}$dynamic_linker" >&6
16020 test "$dynamic_linker" = no && can_build_shared=no
16021
16022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16023 if test "$GCC" = yes; then
16024   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16025 fi
16026
16027 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16028   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16029 fi
16030 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16031   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16032 fi
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16070 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16071 hardcode_action_CXX=
16072 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16073    test -n "$runpath_var_CXX" ||
16074    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16075
16076   # We can hardcode non-existent directories.
16077   if test "$hardcode_direct_CXX" != no &&
16078      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16079      # have to relink, otherwise we might link with an installed library
16080      # when we should be linking with a yet-to-be-installed one
16081      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16082      test "$hardcode_minus_L_CXX" != no; then
16083     # Linking always hardcodes the temporary library directory.
16084     hardcode_action_CXX=relink
16085   else
16086     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16087     hardcode_action_CXX=immediate
16088   fi
16089 else
16090   # We cannot hardcode anything, or else we can only hardcode existing
16091   # directories.
16092   hardcode_action_CXX=unsupported
16093 fi
16094 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16095 echo "${ECHO_T}$hardcode_action_CXX" >&6
16096
16097 if test "$hardcode_action_CXX" = relink ||
16098    test "$inherit_rpath_CXX" = yes; then
16099   # Fast installation is not supported
16100   enable_fast_install=no
16101 elif test "$shlibpath_overrides_runpath" = yes ||
16102      test "$enable_shared" = no; then
16103   # Fast installation is not necessary
16104   enable_fast_install=needless
16105 fi
16106
16107
16108
16109
16110
16111
16112
16113   fi # test -n "$compiler"
16114
16115   CC=$lt_save_CC
16116   LDCXX=$LD
16117   LD=$lt_save_LD
16118   GCC=$lt_save_GCC
16119   with_gnu_ld=$lt_save_with_gnu_ld
16120   lt_cv_path_LDCXX=$lt_cv_path_LD
16121   lt_cv_path_LD=$lt_save_path_LD
16122   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16123   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16124 fi # test "$_lt_caught_CXX_error" != yes
16125
16126 ac_ext=c
16127 ac_cpp='$CPP $CPPFLAGS'
16128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144                   ac_config_commands="$ac_config_commands libtool"
16145
16146
16147
16148
16149 # Only expand once:
16150
16151
16152
16153 for ac_prog in gcj
16154 do
16155   # Extract the first word of "$ac_prog", so it can be a program name with args.
16156 set dummy $ac_prog; ac_word=$2
16157 echo "$as_me:$LINENO: checking for $ac_word" >&5
16158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16159 if test "${ac_cv_prog_GCJ+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   if test -n "$GCJ"; then
16163   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16164 else
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16167 do
16168   IFS=$as_save_IFS
16169   test -z "$as_dir" && as_dir=.
16170   for ac_exec_ext in '' $ac_executable_extensions; do
16171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172     ac_cv_prog_GCJ="$ac_prog"
16173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16174     break 2
16175   fi
16176 done
16177 done
16178
16179 fi
16180 fi
16181 GCJ=$ac_cv_prog_GCJ
16182 if test -n "$GCJ"; then
16183   echo "$as_me:$LINENO: result: $GCJ" >&5
16184 echo "${ECHO_T}$GCJ" >&6
16185 else
16186   echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6
16188 fi
16189
16190   test -n "$GCJ" && break
16191 done
16192 test -n "$GCJ" || GCJ="gcj"
16193
16194 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16195 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16196    { (exit 1); exit 1; }; }
16197 if test "x${GCJFLAGS-unset}" = xunset; then
16198    GCJFLAGS="-g -O2"
16199 fi
16200
16201
16202 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16203
16204 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16205 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16206 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16210   # We make a subdir and do the tests there.  Otherwise we can end up
16211   # making bogus files that we don't know about and never remove.  For
16212   # instance it was reported that on HP-UX the gcc test will end up
16213   # making a dummy file named `D' -- because `-MD' means `put the output
16214   # in D'.
16215   mkdir conftest.dir
16216   # Copy depcomp to subdir because otherwise we won't find it if we're
16217   # using a relative directory.
16218   cp "$am_depcomp" conftest.dir
16219   cd conftest.dir
16220   # We will build objects and dependencies in a subdirectory because
16221   # it helps to detect inapplicable dependency modes.  For instance
16222   # both Tru64's cc and ICC support -MD to output dependencies as a
16223   # side effect of compilation, but ICC will put the dependencies in
16224   # the current directory while Tru64 will put them in the object
16225   # directory.
16226   mkdir sub
16227
16228   am_cv_GCJ_dependencies_compiler_type=none
16229   if test "$am_compiler_list" = ""; then
16230      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16231   fi
16232   for depmode in $am_compiler_list; do
16233     # Setup a source with many dependencies, because some compilers
16234     # like to wrap large dependency lists on column 80 (with \), and
16235     # we should not choose a depcomp mode which is confused by this.
16236     #
16237     # We need to recreate these files for each test, as the compiler may
16238     # overwrite some of them when testing with obscure command lines.
16239     # This happens at least with the AIX C compiler.
16240     : > sub/conftest.c
16241     for i in 1 2 3 4 5 6; do
16242       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16243       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16244       # Solaris 8's {/usr,}/bin/sh.
16245       touch sub/conftst$i.h
16246     done
16247     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16248
16249     case $depmode in
16250     nosideeffect)
16251       # after this tag, mechanisms are not by side-effect, so they'll
16252       # only be used when explicitly requested
16253       if test "x$enable_dependency_tracking" = xyes; then
16254         continue
16255       else
16256         break
16257       fi
16258       ;;
16259     none) break ;;
16260     esac
16261     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16262     # mode.  It turns out that the SunPro C++ compiler does not properly
16263     # handle `-M -o', and we need to detect this.
16264     if depmode=$depmode \
16265        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16266        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16267        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16268          >/dev/null 2>conftest.err &&
16269        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16270        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16271        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16272       # icc doesn't choke on unknown options, it will just issue warnings
16273       # or remarks (even with -Werror).  So we grep stderr for any message
16274       # that says an option was ignored or not supported.
16275       # When given -MP, icc 7.0 and 7.1 complain thusly:
16276       #   icc: Command line warning: ignoring option '-M'; no argument required
16277       # The diagnosis changed in icc 8.0:
16278       #   icc: Command line remark: option '-MP' not supported
16279       if (grep 'ignoring option' conftest.err ||
16280           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16281         am_cv_GCJ_dependencies_compiler_type=$depmode
16282         break
16283       fi
16284     fi
16285   done
16286
16287   cd ..
16288   rm -rf conftest.dir
16289 else
16290   am_cv_GCJ_dependencies_compiler_type=none
16291 fi
16292
16293 fi
16294 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16295 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16296 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16297
16298
16299
16300 if
16301   test "x$enable_dependency_tracking" != xno \
16302   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16303   am__fastdepGCJ_TRUE=
16304   am__fastdepGCJ_FALSE='#'
16305 else
16306   am__fastdepGCJ_TRUE='#'
16307   am__fastdepGCJ_FALSE=
16308 fi
16309
16310
16311
16312 for ac_prog in gcj
16313 do
16314   # Extract the first word of "$ac_prog", so it can be a program name with args.
16315 set dummy $ac_prog; ac_word=$2
16316 echo "$as_me:$LINENO: checking for $ac_word" >&5
16317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16318 if test "${ac_cv_prog_GCJ+set}" = set; then
16319   echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321   if test -n "$GCJ"; then
16322   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16323 else
16324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16325 for as_dir in $PATH
16326 do
16327   IFS=$as_save_IFS
16328   test -z "$as_dir" && as_dir=.
16329   for ac_exec_ext in '' $ac_executable_extensions; do
16330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16331     ac_cv_prog_GCJ="$ac_prog"
16332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16333     break 2
16334   fi
16335 done
16336 done
16337
16338 fi
16339 fi
16340 GCJ=$ac_cv_prog_GCJ
16341 if test -n "$GCJ"; then
16342   echo "$as_me:$LINENO: result: $GCJ" >&5
16343 echo "${ECHO_T}$GCJ" >&6
16344 else
16345   echo "$as_me:$LINENO: result: no" >&5
16346 echo "${ECHO_T}no" >&6
16347 fi
16348
16349   test -n "$GCJ" && break
16350 done
16351 test -n "$GCJ" || GCJ="gcj"
16352
16353 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16354 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16355    { (exit 1); exit 1; }; }
16356 if test "x${GCJFLAGS-unset}" = xunset; then
16357    GCJFLAGS="-g -O2"
16358 fi
16359
16360
16361 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16362
16363 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16364 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16365 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16369   # We make a subdir and do the tests there.  Otherwise we can end up
16370   # making bogus files that we don't know about and never remove.  For
16371   # instance it was reported that on HP-UX the gcc test will end up
16372   # making a dummy file named `D' -- because `-MD' means `put the output
16373   # in D'.
16374   mkdir conftest.dir
16375   # Copy depcomp to subdir because otherwise we won't find it if we're
16376   # using a relative directory.
16377   cp "$am_depcomp" conftest.dir
16378   cd conftest.dir
16379   # We will build objects and dependencies in a subdirectory because
16380   # it helps to detect inapplicable dependency modes.  For instance
16381   # both Tru64's cc and ICC support -MD to output dependencies as a
16382   # side effect of compilation, but ICC will put the dependencies in
16383   # the current directory while Tru64 will put them in the object
16384   # directory.
16385   mkdir sub
16386
16387   am_cv_GCJ_dependencies_compiler_type=none
16388   if test "$am_compiler_list" = ""; then
16389      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16390   fi
16391   for depmode in $am_compiler_list; do
16392     # Setup a source with many dependencies, because some compilers
16393     # like to wrap large dependency lists on column 80 (with \), and
16394     # we should not choose a depcomp mode which is confused by this.
16395     #
16396     # We need to recreate these files for each test, as the compiler may
16397     # overwrite some of them when testing with obscure command lines.
16398     # This happens at least with the AIX C compiler.
16399     : > sub/conftest.c
16400     for i in 1 2 3 4 5 6; do
16401       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16402       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16403       # Solaris 8's {/usr,}/bin/sh.
16404       touch sub/conftst$i.h
16405     done
16406     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16407
16408     case $depmode in
16409     nosideeffect)
16410       # after this tag, mechanisms are not by side-effect, so they'll
16411       # only be used when explicitly requested
16412       if test "x$enable_dependency_tracking" = xyes; then
16413         continue
16414       else
16415         break
16416       fi
16417       ;;
16418     none) break ;;
16419     esac
16420     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16421     # mode.  It turns out that the SunPro C++ compiler does not properly
16422     # handle `-M -o', and we need to detect this.
16423     if depmode=$depmode \
16424        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16425        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16426        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16427          >/dev/null 2>conftest.err &&
16428        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16429        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16430        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16431       # icc doesn't choke on unknown options, it will just issue warnings
16432       # or remarks (even with -Werror).  So we grep stderr for any message
16433       # that says an option was ignored or not supported.
16434       # When given -MP, icc 7.0 and 7.1 complain thusly:
16435       #   icc: Command line warning: ignoring option '-M'; no argument required
16436       # The diagnosis changed in icc 8.0:
16437       #   icc: Command line remark: option '-MP' not supported
16438       if (grep 'ignoring option' conftest.err ||
16439           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16440         am_cv_GCJ_dependencies_compiler_type=$depmode
16441         break
16442       fi
16443     fi
16444   done
16445
16446   cd ..
16447   rm -rf conftest.dir
16448 else
16449   am_cv_GCJ_dependencies_compiler_type=none
16450 fi
16451
16452 fi
16453 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16454 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16455 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16456
16457
16458
16459 if
16460   test "x$enable_dependency_tracking" != xno \
16461   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16462   am__fastdepGCJ_TRUE=
16463   am__fastdepGCJ_FALSE='#'
16464 else
16465   am__fastdepGCJ_TRUE='#'
16466   am__fastdepGCJ_FALSE=
16467 fi
16468
16469
16470
16471
16472
16473
16474 # Source file extension for Java test sources.
16475 ac_ext=c
16476
16477 # Object file extension for compiled Java test sources.
16478 objext=o
16479 objext_GCJ=$objext
16480
16481 # Code to be used in simple compile tests
16482 lt_simple_compile_test_code="int some_variable = 0;"
16483
16484 # Code to be used in simple link tests
16485 lt_simple_link_test_code='int main(){return(0);}'
16486
16487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16488
16489
16490
16491
16492
16493
16494 # If no C compiler was specified, use CC.
16495 LTCC=${LTCC-"$CC"}
16496
16497 # If no C compiler flags were specified, use CFLAGS.
16498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16499
16500 # Allow CC to be a program name with arguments.
16501 compiler=$CC
16502
16503
16504 # save warnings/boilerplate of simple test code
16505 ac_outfile=conftest.$ac_objext
16506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16508 _lt_compiler_boilerplate=`cat conftest.err`
16509 $RM conftest*
16510
16511 ac_outfile=conftest.$ac_objext
16512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16514 _lt_linker_boilerplate=`cat conftest.err`
16515 $RM -r conftest*
16516
16517
16518 # Allow CC to be a program name with arguments.
16519 GCC=yes
16520 compiler=$CC
16521 compiler_GCJ=$CC
16522 for cc_temp in $compiler""; do
16523   case $cc_temp in
16524     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16525     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16526     \-*) ;;
16527     *) break;;
16528   esac
16529 done
16530 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16531
16532
16533 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16534 archive_cmds_need_lc_GCJ=no
16535
16536 old_archive_cmds_GCJ=$old_archive_cmds
16537
16538 ## CAVEAT EMPTOR:
16539 ## There is no encapsulation within the following macros, do not change
16540 ## the running order or otherwise move them around unless you know exactly
16541 ## what you are doing...
16542 if test -n "$compiler"; then
16543
16544 lt_prog_compiler_no_builtin_flag_GCJ=
16545
16546 if test "$GCC" = yes; then
16547   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16548
16549   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16550 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   lt_cv_prog_compiler_rtti_exceptions=no
16555    ac_outfile=conftest.$ac_objext
16556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16557    lt_compiler_flag="-fno-rtti -fno-exceptions"
16558    # Insert the option either (1) after the last *FLAGS variable, or
16559    # (2) before a word containing "conftest.", or (3) at the end.
16560    # Note that $ac_compile itself does not contain backslashes and begins
16561    # with a dollar sign (not a hyphen), so the echo should work correctly.
16562    # The option is referenced via a variable to avoid confusing sed.
16563    lt_compile=`echo "$ac_compile" | $SED \
16564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16566    -e 's:$: $lt_compiler_flag:'`
16567    (eval echo "\"\$as_me:16567: $lt_compile\"" >&5)
16568    (eval "$lt_compile" 2>conftest.err)
16569    ac_status=$?
16570    cat conftest.err >&5
16571    echo "$as_me:16571: \$? = $ac_status" >&5
16572    if (exit $ac_status) && test -s "$ac_outfile"; then
16573      # The compiler can only warn and ignore the option if not recognized
16574      # So say no if there are warnings other than the usual output.
16575      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16576      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16577      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16578        lt_cv_prog_compiler_rtti_exceptions=yes
16579      fi
16580    fi
16581    $RM conftest*
16582
16583 fi
16584 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16586
16587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16588     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16589 else
16590     :
16591 fi
16592
16593 fi
16594
16595
16596
16597   lt_prog_compiler_wl_GCJ=
16598 lt_prog_compiler_pic_GCJ=
16599 lt_prog_compiler_static_GCJ=
16600
16601 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16603
16604   if test "$GCC" = yes; then
16605     lt_prog_compiler_wl_GCJ='-Wl,'
16606     lt_prog_compiler_static_GCJ='-static'
16607
16608     case $host_os in
16609       aix*)
16610       # All AIX code is PIC.
16611       if test "$host_cpu" = ia64; then
16612         # AIX 5 now supports IA64 processor
16613         lt_prog_compiler_static_GCJ='-Bstatic'
16614       fi
16615       ;;
16616
16617     amigaos*)
16618       case $host_cpu in
16619       powerpc)
16620             # see comment about AmigaOS4 .so support
16621             lt_prog_compiler_pic_GCJ='-fPIC'
16622         ;;
16623       m68k)
16624             # FIXME: we need at least 68020 code to build shared libraries, but
16625             # adding the `-m68020' flag to GCC prevents building anything better,
16626             # like `-m68040'.
16627             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16628         ;;
16629       esac
16630       ;;
16631
16632     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16633       # PIC is the default for these OSes.
16634       ;;
16635
16636     mingw* | cygwin* | pw32* | os2* | cegcc*)
16637       # This hack is so that the source file can tell whether it is being
16638       # built for inclusion in a dll (and should export symbols for example).
16639       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16640       # (--disable-auto-import) libraries
16641
16642       ;;
16643
16644     darwin* | rhapsody*)
16645       # PIC is the default on this platform
16646       # Common symbols not allowed in MH_DYLIB files
16647       lt_prog_compiler_pic_GCJ='-fno-common'
16648       ;;
16649
16650     hpux*)
16651       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16652       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16653       # sets the default TLS model and affects inlining.
16654       case $host_cpu in
16655       hppa*64*)
16656         # +Z the default
16657         ;;
16658       *)
16659         lt_prog_compiler_pic_GCJ='-fPIC'
16660         ;;
16661       esac
16662       ;;
16663
16664     interix[3-9]*)
16665       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16666       # Instead, we relocate shared libraries at runtime.
16667       ;;
16668
16669     msdosdjgpp*)
16670       # Just because we use GCC doesn't mean we suddenly get shared libraries
16671       # on systems that don't support them.
16672       lt_prog_compiler_can_build_shared_GCJ=no
16673       enable_shared=no
16674       ;;
16675
16676     *nto* | *qnx*)
16677       # QNX uses GNU C++, but need to define -shared option too, otherwise
16678       # it will coredump.
16679       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16680       ;;
16681
16682     sysv4*MP*)
16683       if test -d /usr/nec; then
16684         lt_prog_compiler_pic_GCJ=-Kconform_pic
16685       fi
16686       ;;
16687
16688     *)
16689       lt_prog_compiler_pic_GCJ='-fPIC'
16690       ;;
16691     esac
16692   else
16693     # PORTME Check for flag to pass linker flags through the system compiler.
16694     case $host_os in
16695     aix*)
16696       lt_prog_compiler_wl_GCJ='-Wl,'
16697       if test "$host_cpu" = ia64; then
16698         # AIX 5 now supports IA64 processor
16699         lt_prog_compiler_static_GCJ='-Bstatic'
16700       else
16701         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16702       fi
16703       ;;
16704
16705     mingw* | cygwin* | pw32* | os2* | cegcc*)
16706       # This hack is so that the source file can tell whether it is being
16707       # built for inclusion in a dll (and should export symbols for example).
16708
16709       ;;
16710
16711     hpux9* | hpux10* | hpux11*)
16712       lt_prog_compiler_wl_GCJ='-Wl,'
16713       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16714       # not for PA HP-UX.
16715       case $host_cpu in
16716       hppa*64*|ia64*)
16717         # +Z the default
16718         ;;
16719       *)
16720         lt_prog_compiler_pic_GCJ='+Z'
16721         ;;
16722       esac
16723       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16724       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16725       ;;
16726
16727     irix5* | irix6* | nonstopux*)
16728       lt_prog_compiler_wl_GCJ='-Wl,'
16729       # PIC (with -KPIC) is the default.
16730       lt_prog_compiler_static_GCJ='-non_shared'
16731       ;;
16732
16733     linux* | k*bsd*-gnu)
16734       case $cc_basename in
16735       # old Intel for x86_64 which still supported -KPIC.
16736       ecc*)
16737         lt_prog_compiler_wl_GCJ='-Wl,'
16738         lt_prog_compiler_pic_GCJ='-KPIC'
16739         lt_prog_compiler_static_GCJ='-static'
16740         ;;
16741       # icc used to be incompatible with GCC.
16742       # ICC 10 doesn't accept -KPIC any more.
16743       icc* | ifort*)
16744         lt_prog_compiler_wl_GCJ='-Wl,'
16745         lt_prog_compiler_pic_GCJ='-fPIC'
16746         lt_prog_compiler_static_GCJ='-static'
16747         ;;
16748       # Lahey Fortran 8.1.
16749       lf95*)
16750         lt_prog_compiler_wl_GCJ='-Wl,'
16751         lt_prog_compiler_pic_GCJ='--shared'
16752         lt_prog_compiler_static_GCJ='--static'
16753         ;;
16754       pgcc* | pgf77* | pgf90* | pgf95*)
16755         # Portland Group compilers (*not* the Pentium gcc compiler,
16756         # which looks to be a dead project)
16757         lt_prog_compiler_wl_GCJ='-Wl,'
16758         lt_prog_compiler_pic_GCJ='-fpic'
16759         lt_prog_compiler_static_GCJ='-Bstatic'
16760         ;;
16761       ccc*)
16762         lt_prog_compiler_wl_GCJ='-Wl,'
16763         # All Alpha code is PIC.
16764         lt_prog_compiler_static_GCJ='-non_shared'
16765         ;;
16766       xl*)
16767         # IBM XL C 8.0/Fortran 10.1 on PPC
16768         lt_prog_compiler_wl_GCJ='-Wl,'
16769         lt_prog_compiler_pic_GCJ='-qpic'
16770         lt_prog_compiler_static_GCJ='-qstaticlink'
16771         ;;
16772       *)
16773         case `$CC -V 2>&1 | sed 5q` in
16774         *Sun\ C*)
16775           # Sun C 5.9
16776           lt_prog_compiler_pic_GCJ='-KPIC'
16777           lt_prog_compiler_static_GCJ='-Bstatic'
16778           lt_prog_compiler_wl_GCJ='-Wl,'
16779           ;;
16780         *Sun\ F*)
16781           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16782           lt_prog_compiler_pic_GCJ='-KPIC'
16783           lt_prog_compiler_static_GCJ='-Bstatic'
16784           lt_prog_compiler_wl_GCJ=''
16785           ;;
16786         esac
16787         ;;
16788       esac
16789       ;;
16790
16791     newsos6)
16792       lt_prog_compiler_pic_GCJ='-KPIC'
16793       lt_prog_compiler_static_GCJ='-Bstatic'
16794       ;;
16795
16796     *nto* | *qnx*)
16797       # QNX uses GNU C++, but need to define -shared option too, otherwise
16798       # it will coredump.
16799       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16800       ;;
16801
16802     osf3* | osf4* | osf5*)
16803       lt_prog_compiler_wl_GCJ='-Wl,'
16804       # All OSF/1 code is PIC.
16805       lt_prog_compiler_static_GCJ='-non_shared'
16806       ;;
16807
16808     rdos*)
16809       lt_prog_compiler_static_GCJ='-non_shared'
16810       ;;
16811
16812     solaris*)
16813       lt_prog_compiler_pic_GCJ='-KPIC'
16814       lt_prog_compiler_static_GCJ='-Bstatic'
16815       case $cc_basename in
16816       f77* | f90* | f95*)
16817         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16818       *)
16819         lt_prog_compiler_wl_GCJ='-Wl,';;
16820       esac
16821       ;;
16822
16823     sunos4*)
16824       lt_prog_compiler_wl_GCJ='-Qoption ld '
16825       lt_prog_compiler_pic_GCJ='-PIC'
16826       lt_prog_compiler_static_GCJ='-Bstatic'
16827       ;;
16828
16829     sysv4 | sysv4.2uw2* | sysv4.3*)
16830       lt_prog_compiler_wl_GCJ='-Wl,'
16831       lt_prog_compiler_pic_GCJ='-KPIC'
16832       lt_prog_compiler_static_GCJ='-Bstatic'
16833       ;;
16834
16835     sysv4*MP*)
16836       if test -d /usr/nec ;then
16837         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16838         lt_prog_compiler_static_GCJ='-Bstatic'
16839       fi
16840       ;;
16841
16842     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16843       lt_prog_compiler_wl_GCJ='-Wl,'
16844       lt_prog_compiler_pic_GCJ='-KPIC'
16845       lt_prog_compiler_static_GCJ='-Bstatic'
16846       ;;
16847
16848     unicos*)
16849       lt_prog_compiler_wl_GCJ='-Wl,'
16850       lt_prog_compiler_can_build_shared_GCJ=no
16851       ;;
16852
16853     uts4*)
16854       lt_prog_compiler_pic_GCJ='-pic'
16855       lt_prog_compiler_static_GCJ='-Bstatic'
16856       ;;
16857
16858     *)
16859       lt_prog_compiler_can_build_shared_GCJ=no
16860       ;;
16861     esac
16862   fi
16863
16864 case $host_os in
16865   # For platforms which do not support PIC, -DPIC is meaningless:
16866   *djgpp*)
16867     lt_prog_compiler_pic_GCJ=
16868     ;;
16869   *)
16870     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16871     ;;
16872 esac
16873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16874 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16875
16876
16877
16878 #
16879 # Check to make sure the PIC flag actually works.
16880 #
16881 if test -n "$lt_prog_compiler_pic_GCJ"; then
16882   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16884 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   lt_cv_prog_compiler_pic_works_GCJ=no
16888    ac_outfile=conftest.$ac_objext
16889    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16890    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16891    # Insert the option either (1) after the last *FLAGS variable, or
16892    # (2) before a word containing "conftest.", or (3) at the end.
16893    # Note that $ac_compile itself does not contain backslashes and begins
16894    # with a dollar sign (not a hyphen), so the echo should work correctly.
16895    # The option is referenced via a variable to avoid confusing sed.
16896    lt_compile=`echo "$ac_compile" | $SED \
16897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16899    -e 's:$: $lt_compiler_flag:'`
16900    (eval echo "\"\$as_me:16900: $lt_compile\"" >&5)
16901    (eval "$lt_compile" 2>conftest.err)
16902    ac_status=$?
16903    cat conftest.err >&5
16904    echo "$as_me:16904: \$? = $ac_status" >&5
16905    if (exit $ac_status) && test -s "$ac_outfile"; then
16906      # The compiler can only warn and ignore the option if not recognized
16907      # So say no if there are warnings other than the usual output.
16908      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16909      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16910      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16911        lt_cv_prog_compiler_pic_works_GCJ=yes
16912      fi
16913    fi
16914    $RM conftest*
16915
16916 fi
16917 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16918 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16919
16920 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16921     case $lt_prog_compiler_pic_GCJ in
16922      "" | " "*) ;;
16923      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16924      esac
16925 else
16926     lt_prog_compiler_pic_GCJ=
16927      lt_prog_compiler_can_build_shared_GCJ=no
16928 fi
16929
16930 fi
16931
16932
16933
16934 #
16935 # Check to make sure the static flag actually works.
16936 #
16937 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16938 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16939 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16940 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16941   echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943   lt_cv_prog_compiler_static_works_GCJ=no
16944    save_LDFLAGS="$LDFLAGS"
16945    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16946    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16947    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16948      # The linker can only warn and ignore the option if not recognized
16949      # So say no if there are warnings
16950      if test -s conftest.err; then
16951        # Append any errors to the config.log.
16952        cat conftest.err 1>&5
16953        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16954        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16955        if diff conftest.exp conftest.er2 >/dev/null; then
16956          lt_cv_prog_compiler_static_works_GCJ=yes
16957        fi
16958      else
16959        lt_cv_prog_compiler_static_works_GCJ=yes
16960      fi
16961    fi
16962    $RM -r conftest*
16963    LDFLAGS="$save_LDFLAGS"
16964
16965 fi
16966 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16967 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16968
16969 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16970     :
16971 else
16972     lt_prog_compiler_static_GCJ=
16973 fi
16974
16975
16976
16977
16978   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16979 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16980 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   lt_cv_prog_compiler_c_o_GCJ=no
16984    $RM -r conftest 2>/dev/null
16985    mkdir conftest
16986    cd conftest
16987    mkdir out
16988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16989
16990    lt_compiler_flag="-o out/conftest2.$ac_objext"
16991    # Insert the option either (1) after the last *FLAGS variable, or
16992    # (2) before a word containing "conftest.", or (3) at the end.
16993    # Note that $ac_compile itself does not contain backslashes and begins
16994    # with a dollar sign (not a hyphen), so the echo should work correctly.
16995    lt_compile=`echo "$ac_compile" | $SED \
16996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998    -e 's:$: $lt_compiler_flag:'`
16999    (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
17000    (eval "$lt_compile" 2>out/conftest.err)
17001    ac_status=$?
17002    cat out/conftest.err >&5
17003    echo "$as_me:17003: \$? = $ac_status" >&5
17004    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17005    then
17006      # The compiler can only warn and ignore the option if not recognized
17007      # So say no if there are warnings
17008      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17009      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17010      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17011        lt_cv_prog_compiler_c_o_GCJ=yes
17012      fi
17013    fi
17014    chmod u+w . 2>&5
17015    $RM conftest*
17016    # SGI C++ compiler will create directory out/ii_files/ for
17017    # template instantiation
17018    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17019    $RM out/* && rmdir out
17020    cd ..
17021    $RM -r conftest
17022    $RM conftest*
17023
17024 fi
17025 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17026 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17027
17028
17029
17030   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17032 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   lt_cv_prog_compiler_c_o_GCJ=no
17036    $RM -r conftest 2>/dev/null
17037    mkdir conftest
17038    cd conftest
17039    mkdir out
17040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17041
17042    lt_compiler_flag="-o out/conftest2.$ac_objext"
17043    # Insert the option either (1) after the last *FLAGS variable, or
17044    # (2) before a word containing "conftest.", or (3) at the end.
17045    # Note that $ac_compile itself does not contain backslashes and begins
17046    # with a dollar sign (not a hyphen), so the echo should work correctly.
17047    lt_compile=`echo "$ac_compile" | $SED \
17048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17050    -e 's:$: $lt_compiler_flag:'`
17051    (eval echo "\"\$as_me:17051: $lt_compile\"" >&5)
17052    (eval "$lt_compile" 2>out/conftest.err)
17053    ac_status=$?
17054    cat out/conftest.err >&5
17055    echo "$as_me:17055: \$? = $ac_status" >&5
17056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17057    then
17058      # The compiler can only warn and ignore the option if not recognized
17059      # So say no if there are warnings
17060      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17063        lt_cv_prog_compiler_c_o_GCJ=yes
17064      fi
17065    fi
17066    chmod u+w . 2>&5
17067    $RM conftest*
17068    # SGI C++ compiler will create directory out/ii_files/ for
17069    # template instantiation
17070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17071    $RM out/* && rmdir out
17072    cd ..
17073    $RM -r conftest
17074    $RM conftest*
17075
17076 fi
17077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17079
17080
17081
17082
17083 hard_links="nottested"
17084 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17085   # do not overwrite the value of need_locks provided by the user
17086   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17088   hard_links=yes
17089   $RM conftest*
17090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17091   touch conftest.a
17092   ln conftest.a conftest.b 2>&5 || hard_links=no
17093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094   echo "$as_me:$LINENO: result: $hard_links" >&5
17095 echo "${ECHO_T}$hard_links" >&6
17096   if test "$hard_links" = no; then
17097     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17099     need_locks=warn
17100   fi
17101 else
17102   need_locks=no
17103 fi
17104
17105
17106
17107   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17109
17110   runpath_var=
17111   allow_undefined_flag_GCJ=
17112   always_export_symbols_GCJ=no
17113   archive_cmds_GCJ=
17114   archive_expsym_cmds_GCJ=
17115   compiler_needs_object_GCJ=no
17116   enable_shared_with_static_runtimes_GCJ=no
17117   export_dynamic_flag_spec_GCJ=
17118   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17119   hardcode_automatic_GCJ=no
17120   hardcode_direct_GCJ=no
17121   hardcode_direct_absolute_GCJ=no
17122   hardcode_libdir_flag_spec_GCJ=
17123   hardcode_libdir_flag_spec_ld_GCJ=
17124   hardcode_libdir_separator_GCJ=
17125   hardcode_minus_L_GCJ=no
17126   hardcode_shlibpath_var_GCJ=unsupported
17127   inherit_rpath_GCJ=no
17128   link_all_deplibs_GCJ=unknown
17129   module_cmds_GCJ=
17130   module_expsym_cmds_GCJ=
17131   old_archive_from_new_cmds_GCJ=
17132   old_archive_from_expsyms_cmds_GCJ=
17133   thread_safe_flag_spec_GCJ=
17134   whole_archive_flag_spec_GCJ=
17135   # include_expsyms should be a list of space-separated symbols to be *always*
17136   # included in the symbol list
17137   include_expsyms_GCJ=
17138   # exclude_expsyms can be an extended regexp of symbols to exclude
17139   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17140   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17141   # as well as any symbol that contains `d'.
17142   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17143   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17144   # platforms (ab)use it in PIC code, but their linkers get confused if
17145   # the symbol is explicitly referenced.  Since portable code cannot
17146   # rely on this symbol name, it's probably fine to never include it in
17147   # preloaded symbol tables.
17148   # Exclude shared library initialization/finalization symbols.
17149   extract_expsyms_cmds=
17150
17151   case $host_os in
17152   cygwin* | mingw* | pw32* | cegcc*)
17153     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17154     # When not using gcc, we currently assume that we are using
17155     # Microsoft Visual C++.
17156     if test "$GCC" != yes; then
17157       with_gnu_ld=no
17158     fi
17159     ;;
17160   interix*)
17161     # we just hope/assume this is gcc and not c89 (= MSVC++)
17162     with_gnu_ld=yes
17163     ;;
17164   openbsd*)
17165     with_gnu_ld=no
17166     ;;
17167   esac
17168
17169   ld_shlibs_GCJ=yes
17170   if test "$with_gnu_ld" = yes; then
17171     # If archive_cmds runs LD, not CC, wlarc should be empty
17172     wlarc='${wl}'
17173
17174     # Set some defaults for GNU ld with shared library support. These
17175     # are reset later if shared libraries are not supported. Putting them
17176     # here allows them to be overridden if necessary.
17177     runpath_var=LD_RUN_PATH
17178     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17179     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17180     # ancient GNU ld didn't support --whole-archive et. al.
17181     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17182       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17183     else
17184       whole_archive_flag_spec_GCJ=
17185     fi
17186     supports_anon_versioning=no
17187     case `$LD -v 2>&1` in
17188       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17189       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17190       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17191       *\ 2.11.*) ;; # other 2.11 versions
17192       *) supports_anon_versioning=yes ;;
17193     esac
17194
17195     # See if GNU ld supports shared libraries.
17196     case $host_os in
17197     aix[3-9]*)
17198       # On AIX/PPC, the GNU linker is very broken
17199       if test "$host_cpu" != ia64; then
17200         ld_shlibs_GCJ=no
17201         cat <<_LT_EOF 1>&2
17202
17203 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17204 *** to be unable to reliably create shared libraries on AIX.
17205 *** Therefore, libtool is disabling shared libraries support.  If you
17206 *** really care for shared libraries, you may want to modify your PATH
17207 *** so that a non-GNU linker is found, and then restart.
17208
17209 _LT_EOF
17210       fi
17211       ;;
17212
17213     amigaos*)
17214       case $host_cpu in
17215       powerpc)
17216             # see comment about AmigaOS4 .so support
17217             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17218             archive_expsym_cmds_GCJ=''
17219         ;;
17220       m68k)
17221             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)'
17222             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17223             hardcode_minus_L_GCJ=yes
17224         ;;
17225       esac
17226       ;;
17227
17228     beos*)
17229       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17230         allow_undefined_flag_GCJ=unsupported
17231         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17232         # support --undefined.  This deserves some investigation.  FIXME
17233         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17234       else
17235         ld_shlibs_GCJ=no
17236       fi
17237       ;;
17238
17239     cygwin* | mingw* | pw32* | cegcc*)
17240       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17241       # as there is no search path for DLLs.
17242       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17243       allow_undefined_flag_GCJ=unsupported
17244       always_export_symbols_GCJ=no
17245       enable_shared_with_static_runtimes_GCJ=yes
17246       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17247
17248       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17249         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17250         # If the export-symbols file already is a .def file (1st line
17251         # is EXPORTS), use it as is; otherwise, prepend...
17252         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17253           cp $export_symbols $output_objdir/$soname.def;
17254         else
17255           echo EXPORTS > $output_objdir/$soname.def;
17256           cat $export_symbols >> $output_objdir/$soname.def;
17257         fi~
17258         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17259       else
17260         ld_shlibs_GCJ=no
17261       fi
17262       ;;
17263
17264     interix[3-9]*)
17265       hardcode_direct_GCJ=no
17266       hardcode_shlibpath_var_GCJ=no
17267       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17268       export_dynamic_flag_spec_GCJ='${wl}-E'
17269       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17270       # Instead, shared libraries are loaded at an image base (0x10000000 by
17271       # default) and relocated if they conflict, which is a slow very memory
17272       # consuming and fragmenting process.  To avoid this, we pick a random,
17273       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17274       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17275       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'
17276       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'
17277       ;;
17278
17279     gnu* | linux* | tpf* | k*bsd*-gnu)
17280       tmp_diet=no
17281       if test "$host_os" = linux-dietlibc; then
17282         case $cc_basename in
17283           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17284         esac
17285       fi
17286       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17287          && test "$tmp_diet" = no
17288       then
17289         tmp_addflag=
17290         tmp_sharedflag='-shared'
17291         case $cc_basename,$host_cpu in
17292         pgcc*)                          # Portland Group C compiler
17293           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'
17294           tmp_addflag=' $pic_flag'
17295           ;;
17296         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17297           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'
17298           tmp_addflag=' $pic_flag -Mnomain' ;;
17299         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17300           tmp_addflag=' -i_dynamic' ;;
17301         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17302           tmp_addflag=' -i_dynamic -nofor_main' ;;
17303         ifc* | ifort*)                  # Intel Fortran compiler
17304           tmp_addflag=' -nofor_main' ;;
17305         lf95*)                          # Lahey Fortran 8.1
17306           whole_archive_flag_spec_GCJ=
17307           tmp_sharedflag='--shared' ;;
17308         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17309           tmp_sharedflag='-qmkshrobj'
17310           tmp_addflag= ;;
17311         esac
17312         case `$CC -V 2>&1 | sed 5q` in
17313         *Sun\ C*)                       # Sun C 5.9
17314           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'
17315           compiler_needs_object_GCJ=yes
17316           tmp_sharedflag='-G' ;;
17317         *Sun\ F*)                       # Sun Fortran 8.3
17318           tmp_sharedflag='-G' ;;
17319         esac
17320         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17321
17322         if test "x$supports_anon_versioning" = xyes; then
17323           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17324             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17325             echo "local: *; };" >> $output_objdir/$libname.ver~
17326             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17327         fi
17328
17329         case $cc_basename in
17330         xlf*)
17331           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17332           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17333           hardcode_libdir_flag_spec_GCJ=
17334           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17335           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17336           if test "x$supports_anon_versioning" = xyes; then
17337             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17338               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17339               echo "local: *; };" >> $output_objdir/$libname.ver~
17340               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17341           fi
17342           ;;
17343         esac
17344       else
17345         ld_shlibs_GCJ=no
17346       fi
17347       ;;
17348
17349     netbsd*)
17350       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17351         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17352         wlarc=
17353       else
17354         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17355         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17356       fi
17357       ;;
17358
17359     solaris*)
17360       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17361         ld_shlibs_GCJ=no
17362         cat <<_LT_EOF 1>&2
17363
17364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17365 *** create shared libraries on Solaris systems.  Therefore, libtool
17366 *** is disabling shared libraries support.  We urge you to upgrade GNU
17367 *** binutils to release 2.9.1 or newer.  Another option is to modify
17368 *** your PATH or compiler configuration so that the native linker is
17369 *** used, and then restart.
17370
17371 _LT_EOF
17372       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17373         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17375       else
17376         ld_shlibs_GCJ=no
17377       fi
17378       ;;
17379
17380     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17381       case `$LD -v 2>&1` in
17382         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17383         ld_shlibs_GCJ=no
17384         cat <<_LT_EOF 1>&2
17385
17386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17387 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17388 *** is disabling shared libraries support.  We urge you to upgrade GNU
17389 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17390 *** your PATH or compiler configuration so that the native linker is
17391 *** used, and then restart.
17392
17393 _LT_EOF
17394         ;;
17395         *)
17396           # For security reasons, it is highly recommended that you always
17397           # use absolute paths for naming shared libraries, and exclude the
17398           # DT_RUNPATH tag from executables and libraries.  But doing so
17399           # requires that you compile everything twice, which is a pain.
17400           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17401             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17402             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17404           else
17405             ld_shlibs_GCJ=no
17406           fi
17407         ;;
17408       esac
17409       ;;
17410
17411     sunos4*)
17412       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17413       wlarc=
17414       hardcode_direct_GCJ=yes
17415       hardcode_shlibpath_var_GCJ=no
17416       ;;
17417
17418     *)
17419       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17420         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17421         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17422       else
17423         ld_shlibs_GCJ=no
17424       fi
17425       ;;
17426     esac
17427
17428     if test "$ld_shlibs_GCJ" = no; then
17429       runpath_var=
17430       hardcode_libdir_flag_spec_GCJ=
17431       export_dynamic_flag_spec_GCJ=
17432       whole_archive_flag_spec_GCJ=
17433     fi
17434   else
17435     # PORTME fill in a description of your system's linker (not GNU ld)
17436     case $host_os in
17437     aix3*)
17438       allow_undefined_flag_GCJ=unsupported
17439       always_export_symbols_GCJ=yes
17440       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'
17441       # Note: this linker hardcodes the directories in LIBPATH if there
17442       # are no directories specified by -L.
17443       hardcode_minus_L_GCJ=yes
17444       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17445         # Neither direct hardcoding nor static linking is supported with a
17446         # broken collect2.
17447         hardcode_direct_GCJ=unsupported
17448       fi
17449       ;;
17450
17451     aix[4-9]*)
17452       if test "$host_cpu" = ia64; then
17453         # On IA64, the linker does run time linking by default, so we don't
17454         # have to do anything special.
17455         aix_use_runtimelinking=no
17456         exp_sym_flag='-Bexport'
17457         no_entry_flag=""
17458       else
17459         # If we're using GNU nm, then we don't want the "-C" option.
17460         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17461         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17462           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'
17463         else
17464           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'
17465         fi
17466         aix_use_runtimelinking=no
17467
17468         # Test if we are trying to use run time linking or normal
17469         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17470         # need to do runtime linking.
17471         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17472           for ld_flag in $LDFLAGS; do
17473           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17474             aix_use_runtimelinking=yes
17475             break
17476           fi
17477           done
17478           ;;
17479         esac
17480
17481         exp_sym_flag='-bexport'
17482         no_entry_flag='-bnoentry'
17483       fi
17484
17485       # When large executables or shared objects are built, AIX ld can
17486       # have problems creating the table of contents.  If linking a library
17487       # or program results in "error TOC overflow" add -mminimal-toc to
17488       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17489       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17490
17491       archive_cmds_GCJ=''
17492       hardcode_direct_GCJ=yes
17493       hardcode_direct_absolute_GCJ=yes
17494       hardcode_libdir_separator_GCJ=':'
17495       link_all_deplibs_GCJ=yes
17496       file_list_spec_GCJ='${wl}-f,'
17497
17498       if test "$GCC" = yes; then
17499         case $host_os in aix4.[012]|aix4.[012].*)
17500         # We only want to do this on AIX 4.2 and lower, the check
17501         # below for broken collect2 doesn't work under 4.3+
17502           collect2name=`${CC} -print-prog-name=collect2`
17503           if test -f "$collect2name" &&
17504            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17505           then
17506           # We have reworked collect2
17507           :
17508           else
17509           # We have old collect2
17510           hardcode_direct_GCJ=unsupported
17511           # It fails to find uninstalled libraries when the uninstalled
17512           # path is not listed in the libpath.  Setting hardcode_minus_L
17513           # to unsupported forces relinking
17514           hardcode_minus_L_GCJ=yes
17515           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17516           hardcode_libdir_separator_GCJ=
17517           fi
17518           ;;
17519         esac
17520         shared_flag='-shared'
17521         if test "$aix_use_runtimelinking" = yes; then
17522           shared_flag="$shared_flag "'${wl}-G'
17523         fi
17524       else
17525         # not using gcc
17526         if test "$host_cpu" = ia64; then
17527         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17528         # chokes on -Wl,-G. The following line is correct:
17529           shared_flag='-G'
17530         else
17531           if test "$aix_use_runtimelinking" = yes; then
17532             shared_flag='${wl}-G'
17533           else
17534             shared_flag='${wl}-bM:SRE'
17535           fi
17536         fi
17537       fi
17538
17539       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17540       # It seems that -bexpall does not export symbols beginning with
17541       # underscore (_), so it is better to generate a list of symbols to export.
17542       always_export_symbols_GCJ=yes
17543       if test "$aix_use_runtimelinking" = yes; then
17544         # Warning - without using the other runtime loading flags (-brtl),
17545         # -berok will link without error, but may produce a broken library.
17546         allow_undefined_flag_GCJ='-berok'
17547         # Determine the default libpath from the value encoded in an
17548         # empty executable.
17549         if test x$gcc_no_link = xyes; then
17550   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17551 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554 cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560
17561 int
17562 main ()
17563 {
17564
17565   ;
17566   return 0;
17567 }
17568 _ACEOF
17569 rm -f conftest.$ac_objext conftest$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571   (eval $ac_link) 2>conftest.er1
17572   ac_status=$?
17573   grep -v '^ *+' conftest.er1 >conftest.err
17574   rm -f conftest.er1
17575   cat conftest.err >&5
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); } &&
17578          { ac_try='test -z "$ac_c_werror_flag"
17579                          || test ! -s conftest.err'
17580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581   (eval $ac_try) 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); }; } &&
17585          { ac_try='test -s conftest$ac_exeext'
17586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587   (eval $ac_try) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; }; then
17591
17592 lt_aix_libpath_sed='
17593     /Import File Strings/,/^$/ {
17594         /^0/ {
17595             s/^0  *\(.*\)$/\1/
17596             p
17597         }
17598     }'
17599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600 # Check for a 64-bit object if we didn't find anything.
17601 if test -z "$aix_libpath"; then
17602   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17603 fi
17604 else
17605   echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 fi
17609 rm -f conftest.err conftest.$ac_objext \
17610       conftest$ac_exeext conftest.$ac_ext
17611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17612
17613         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17614         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"
17615       else
17616         if test "$host_cpu" = ia64; then
17617           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17618           allow_undefined_flag_GCJ="-z nodefs"
17619           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"
17620         else
17621          # Determine the default libpath from the value encoded in an
17622          # empty executable.
17623          if test x$gcc_no_link = xyes; then
17624   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17626    { (exit 1); exit 1; }; }
17627 fi
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h.  */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h.  */
17634
17635 int
17636 main ()
17637 {
17638
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645   (eval $ac_link) 2>conftest.er1
17646   ac_status=$?
17647   grep -v '^ *+' conftest.er1 >conftest.err
17648   rm -f conftest.er1
17649   cat conftest.err >&5
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } &&
17652          { ac_try='test -z "$ac_c_werror_flag"
17653                          || test ! -s conftest.err'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest$ac_exeext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665
17666 lt_aix_libpath_sed='
17667     /Import File Strings/,/^$/ {
17668         /^0/ {
17669             s/^0  *\(.*\)$/\1/
17670             p
17671         }
17672     }'
17673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17674 # Check for a 64-bit object if we didn't find anything.
17675 if test -z "$aix_libpath"; then
17676   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17677 fi
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 fi
17683 rm -f conftest.err conftest.$ac_objext \
17684       conftest$ac_exeext conftest.$ac_ext
17685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17686
17687          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17688           # Warning - without using the other run time loading flags,
17689           # -berok will link without error, but may produce a broken library.
17690           no_undefined_flag_GCJ=' ${wl}-bernotok'
17691           allow_undefined_flag_GCJ=' ${wl}-berok'
17692           # Exported symbols can be pulled into shared objects from archives
17693           whole_archive_flag_spec_GCJ='$convenience'
17694           archive_cmds_need_lc_GCJ=yes
17695           # This is similar to how AIX traditionally builds its shared libraries.
17696           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'
17697         fi
17698       fi
17699       ;;
17700
17701     amigaos*)
17702       case $host_cpu in
17703       powerpc)
17704             # see comment about AmigaOS4 .so support
17705             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17706             archive_expsym_cmds_GCJ=''
17707         ;;
17708       m68k)
17709             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)'
17710             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17711             hardcode_minus_L_GCJ=yes
17712         ;;
17713       esac
17714       ;;
17715
17716     bsdi[45]*)
17717       export_dynamic_flag_spec_GCJ=-rdynamic
17718       ;;
17719
17720     cygwin* | mingw* | pw32* | cegcc*)
17721       # When not using gcc, we currently assume that we are using
17722       # Microsoft Visual C++.
17723       # hardcode_libdir_flag_spec is actually meaningless, as there is
17724       # no search path for DLLs.
17725       hardcode_libdir_flag_spec_GCJ=' '
17726       allow_undefined_flag_GCJ=unsupported
17727       # Tell ltmain to make .lib files, not .a files.
17728       libext=lib
17729       # Tell ltmain to make .dll files, not .so files.
17730       shrext_cmds=".dll"
17731       # FIXME: Setting linknames here is a bad hack.
17732       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17733       # The linker will automatically build a .lib file if we build a DLL.
17734       old_archive_from_new_cmds_GCJ='true'
17735       # FIXME: Should let the user specify the lib program.
17736       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17737       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17738       enable_shared_with_static_runtimes_GCJ=yes
17739       ;;
17740
17741     darwin* | rhapsody*)
17742
17743
17744   archive_cmds_need_lc_GCJ=no
17745   hardcode_direct_GCJ=no
17746   hardcode_automatic_GCJ=yes
17747   hardcode_shlibpath_var_GCJ=unsupported
17748   whole_archive_flag_spec_GCJ=''
17749   link_all_deplibs_GCJ=yes
17750   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17751   case $cc_basename in
17752      ifort*) _lt_dar_can_shared=yes ;;
17753      *) _lt_dar_can_shared=$GCC ;;
17754   esac
17755   if test "$_lt_dar_can_shared" = "yes"; then
17756     output_verbose_link_cmd=echo
17757     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17758     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17759     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17760     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${_lt_dar_export_syms}${_lt_dsymutil}"
17761
17762   else
17763   ld_shlibs_GCJ=no
17764   fi
17765
17766       ;;
17767
17768     dgux*)
17769       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771       hardcode_shlibpath_var_GCJ=no
17772       ;;
17773
17774     freebsd1*)
17775       ld_shlibs_GCJ=no
17776       ;;
17777
17778     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17779     # support.  Future versions do this automatically, but an explicit c++rt0.o
17780     # does not break anything, and helps significantly (at the cost of a little
17781     # extra space).
17782     freebsd2.2*)
17783       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17784       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17785       hardcode_direct_GCJ=yes
17786       hardcode_shlibpath_var_GCJ=no
17787       ;;
17788
17789     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17790     freebsd2*)
17791       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17792       hardcode_direct_GCJ=yes
17793       hardcode_minus_L_GCJ=yes
17794       hardcode_shlibpath_var_GCJ=no
17795       ;;
17796
17797     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17798     freebsd* | dragonfly*)
17799       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17800       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17801       hardcode_direct_GCJ=yes
17802       hardcode_shlibpath_var_GCJ=no
17803       ;;
17804
17805     hpux9*)
17806       if test "$GCC" = yes; then
17807         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'
17808       else
17809         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'
17810       fi
17811       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17812       hardcode_libdir_separator_GCJ=:
17813       hardcode_direct_GCJ=yes
17814
17815       # hardcode_minus_L: Not really in the search PATH,
17816       # but as the default location of the library.
17817       hardcode_minus_L_GCJ=yes
17818       export_dynamic_flag_spec_GCJ='${wl}-E'
17819       ;;
17820
17821     hpux10*)
17822       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17823         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17824       else
17825         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17826       fi
17827       if test "$with_gnu_ld" = no; then
17828         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17829         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17830         hardcode_libdir_separator_GCJ=:
17831         hardcode_direct_GCJ=yes
17832         hardcode_direct_absolute_GCJ=yes
17833         export_dynamic_flag_spec_GCJ='${wl}-E'
17834         # hardcode_minus_L: Not really in the search PATH,
17835         # but as the default location of the library.
17836         hardcode_minus_L_GCJ=yes
17837       fi
17838       ;;
17839
17840     hpux11*)
17841       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17842         case $host_cpu in
17843         hppa*64*)
17844           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17845           ;;
17846         ia64*)
17847           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17848           ;;
17849         *)
17850           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17851           ;;
17852         esac
17853       else
17854         case $host_cpu in
17855         hppa*64*)
17856           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17857           ;;
17858         ia64*)
17859           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17860           ;;
17861         *)
17862           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17863           ;;
17864         esac
17865       fi
17866       if test "$with_gnu_ld" = no; then
17867         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868         hardcode_libdir_separator_GCJ=:
17869
17870         case $host_cpu in
17871         hppa*64*|ia64*)
17872           hardcode_direct_GCJ=no
17873           hardcode_shlibpath_var_GCJ=no
17874           ;;
17875         *)
17876           hardcode_direct_GCJ=yes
17877           hardcode_direct_absolute_GCJ=yes
17878           export_dynamic_flag_spec_GCJ='${wl}-E'
17879
17880           # hardcode_minus_L: Not really in the search PATH,
17881           # but as the default location of the library.
17882           hardcode_minus_L_GCJ=yes
17883           ;;
17884         esac
17885       fi
17886       ;;
17887
17888     irix5* | irix6* | nonstopux*)
17889       if test "$GCC" = yes; then
17890         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'
17891         # Try to use the -exported_symbol ld option, if it does not
17892         # work, assume that -exports_file does not work either and
17893         # implicitly export all symbols.
17894         save_LDFLAGS="$LDFLAGS"
17895         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17896         if test x$gcc_no_link = xyes; then
17897   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17899    { (exit 1); exit 1; }; }
17900 fi
17901 cat >conftest.$ac_ext <<_ACEOF
17902 int foo(void) {}
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } &&
17913          { ac_try='test -z "$ac_c_werror_flag"
17914                          || test ! -s conftest.err'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   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'
17927
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 fi
17933 rm -f conftest.err conftest.$ac_objext \
17934       conftest$ac_exeext conftest.$ac_ext
17935         LDFLAGS="$save_LDFLAGS"
17936       else
17937         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'
17938         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'
17939       fi
17940       archive_cmds_need_lc_GCJ='no'
17941       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942       hardcode_libdir_separator_GCJ=:
17943       inherit_rpath_GCJ=yes
17944       link_all_deplibs_GCJ=yes
17945       ;;
17946
17947     netbsd*)
17948       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17949         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17950       else
17951         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17952       fi
17953       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17954       hardcode_direct_GCJ=yes
17955       hardcode_shlibpath_var_GCJ=no
17956       ;;
17957
17958     newsos6)
17959       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960       hardcode_direct_GCJ=yes
17961       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17962       hardcode_libdir_separator_GCJ=:
17963       hardcode_shlibpath_var_GCJ=no
17964       ;;
17965
17966     *nto* | *qnx*)
17967       ;;
17968
17969     openbsd*)
17970       if test -f /usr/libexec/ld.so; then
17971         hardcode_direct_GCJ=yes
17972         hardcode_shlibpath_var_GCJ=no
17973         hardcode_direct_absolute_GCJ=yes
17974         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17975           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17976           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17977           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17978           export_dynamic_flag_spec_GCJ='${wl}-E'
17979         else
17980           case $host_os in
17981            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17982              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17983              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984              ;;
17985            *)
17986              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17987              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17988              ;;
17989           esac
17990         fi
17991       else
17992         ld_shlibs_GCJ=no
17993       fi
17994       ;;
17995
17996     os2*)
17997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17998       hardcode_minus_L_GCJ=yes
17999       allow_undefined_flag_GCJ=unsupported
18000       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'
18001       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18002       ;;
18003
18004     osf3*)
18005       if test "$GCC" = yes; then
18006         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18007         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'
18008       else
18009         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010         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'
18011       fi
18012       archive_cmds_need_lc_GCJ='no'
18013       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18014       hardcode_libdir_separator_GCJ=:
18015       ;;
18016
18017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18018       if test "$GCC" = yes; then
18019         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18020         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'
18021         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18022       else
18023         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18024         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'
18025         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~
18026         $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'
18027
18028         # Both c and cxx compiler support -rpath directly
18029         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18030       fi
18031       archive_cmds_need_lc_GCJ='no'
18032       hardcode_libdir_separator_GCJ=:
18033       ;;
18034
18035     solaris*)
18036       no_undefined_flag_GCJ=' -z defs'
18037       if test "$GCC" = yes; then
18038         wlarc='${wl}'
18039         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18040         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18041           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18042       else
18043         case `$CC -V 2>&1` in
18044         *"Compilers 5.0"*)
18045           wlarc=''
18046           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18048           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18049           ;;
18050         *)
18051           wlarc='${wl}'
18052           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18053           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18054           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18055           ;;
18056         esac
18057       fi
18058       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18059       hardcode_shlibpath_var_GCJ=no
18060       case $host_os in
18061       solaris2.[0-5] | solaris2.[0-5].*) ;;
18062       *)
18063         # The compiler driver will combine and reorder linker options,
18064         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18065         # but is careful enough not to reorder.
18066         # Supported since Solaris 2.6 (maybe 2.5.1?)
18067         if test "$GCC" = yes; then
18068           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18069         else
18070           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18071         fi
18072         ;;
18073       esac
18074       link_all_deplibs_GCJ=yes
18075       ;;
18076
18077     sunos4*)
18078       if test "x$host_vendor" = xsequent; then
18079         # Use $CC to link under sequent, because it throws in some extra .o
18080         # files that make .init and .fini sections work.
18081         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18082       else
18083         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18084       fi
18085       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086       hardcode_direct_GCJ=yes
18087       hardcode_minus_L_GCJ=yes
18088       hardcode_shlibpath_var_GCJ=no
18089       ;;
18090
18091     sysv4)
18092       case $host_vendor in
18093         sni)
18094           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095           hardcode_direct_GCJ=yes # is this really true???
18096         ;;
18097         siemens)
18098           ## LD is ld it makes a PLAMLIB
18099           ## CC just makes a GrossModule.
18100           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18101           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18102           hardcode_direct_GCJ=no
18103         ;;
18104         motorola)
18105           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18106           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18107         ;;
18108       esac
18109       runpath_var='LD_RUN_PATH'
18110       hardcode_shlibpath_var_GCJ=no
18111       ;;
18112
18113     sysv4.3*)
18114       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115       hardcode_shlibpath_var_GCJ=no
18116       export_dynamic_flag_spec_GCJ='-Bexport'
18117       ;;
18118
18119     sysv4*MP*)
18120       if test -d /usr/nec; then
18121         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122         hardcode_shlibpath_var_GCJ=no
18123         runpath_var=LD_RUN_PATH
18124         hardcode_runpath_var=yes
18125         ld_shlibs_GCJ=yes
18126       fi
18127       ;;
18128
18129     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18130       no_undefined_flag_GCJ='${wl}-z,text'
18131       archive_cmds_need_lc_GCJ=no
18132       hardcode_shlibpath_var_GCJ=no
18133       runpath_var='LD_RUN_PATH'
18134
18135       if test "$GCC" = yes; then
18136         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18138       else
18139         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141       fi
18142       ;;
18143
18144     sysv5* | sco3.2v5* | sco5v6*)
18145       # Note: We can NOT use -z defs as we might desire, because we do not
18146       # link with -lc, and that would cause any symbols used from libc to
18147       # always be unresolved, which means just about no library would
18148       # ever link correctly.  If we're not using GNU ld we use -z text
18149       # though, which does catch some bad symbols but isn't as heavy-handed
18150       # as -z defs.
18151       no_undefined_flag_GCJ='${wl}-z,text'
18152       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18153       archive_cmds_need_lc_GCJ=no
18154       hardcode_shlibpath_var_GCJ=no
18155       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18156       hardcode_libdir_separator_GCJ=':'
18157       link_all_deplibs_GCJ=yes
18158       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18159       runpath_var='LD_RUN_PATH'
18160
18161       if test "$GCC" = yes; then
18162         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18163         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164       else
18165         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18166         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18167       fi
18168       ;;
18169
18170     uts4*)
18171       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18172       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18173       hardcode_shlibpath_var_GCJ=no
18174       ;;
18175
18176     *)
18177       ld_shlibs_GCJ=no
18178       ;;
18179     esac
18180
18181     if test x$host_vendor = xsni; then
18182       case $host in
18183       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18184         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18185         ;;
18186       esac
18187     fi
18188   fi
18189
18190 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18191 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18192 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18193
18194 with_gnu_ld_GCJ=$with_gnu_ld
18195
18196
18197
18198
18199
18200
18201 #
18202 # Do we need to explicitly link libc?
18203 #
18204 case "x$archive_cmds_need_lc_GCJ" in
18205 x|xyes)
18206   # Assume -lc should be added
18207   archive_cmds_need_lc_GCJ=yes
18208
18209   if test "$enable_shared" = yes && test "$GCC" = yes; then
18210     case $archive_cmds_GCJ in
18211     *'~'*)
18212       # FIXME: we may have to deal with multi-command sequences.
18213       ;;
18214     '$CC '*)
18215       # Test whether the compiler implicitly links with -lc since on some
18216       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18217       # to ld, don't add -lc before -lgcc.
18218       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18220       $RM conftest*
18221       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18222
18223       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224   (eval $ac_compile) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } 2>conftest.err; then
18228         soname=conftest
18229         lib=conftest
18230         libobjs=conftest.$ac_objext
18231         deplibs=
18232         wl=$lt_prog_compiler_wl_GCJ
18233         pic_flag=$lt_prog_compiler_pic_GCJ
18234         compiler_flags=-v
18235         linker_flags=-v
18236         verstring=
18237         output_objdir=.
18238         libname=conftest
18239         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18240         allow_undefined_flag_GCJ=
18241         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18242   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }
18246         then
18247           archive_cmds_need_lc_GCJ=no
18248         else
18249           archive_cmds_need_lc_GCJ=yes
18250         fi
18251         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18252       else
18253         cat conftest.err 1>&5
18254       fi
18255       $RM conftest*
18256       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18257 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18258       ;;
18259     esac
18260   fi
18261   ;;
18262 esac
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18329 hardcode_action_GCJ=
18330 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18331    test -n "$runpath_var_GCJ" ||
18332    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18333
18334   # We can hardcode non-existent directories.
18335   if test "$hardcode_direct_GCJ" != no &&
18336      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18337      # have to relink, otherwise we might link with an installed library
18338      # when we should be linking with a yet-to-be-installed one
18339      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18340      test "$hardcode_minus_L_GCJ" != no; then
18341     # Linking always hardcodes the temporary library directory.
18342     hardcode_action_GCJ=relink
18343   else
18344     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18345     hardcode_action_GCJ=immediate
18346   fi
18347 else
18348   # We cannot hardcode anything, or else we can only hardcode existing
18349   # directories.
18350   hardcode_action_GCJ=unsupported
18351 fi
18352 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18353 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18354
18355 if test "$hardcode_action_GCJ" = relink ||
18356    test "$inherit_rpath_GCJ" = yes; then
18357   # Fast installation is not supported
18358   enable_fast_install=no
18359 elif test "$shlibpath_overrides_runpath" = yes ||
18360      test "$enable_shared" = no; then
18361   # Fast installation is not necessary
18362   enable_fast_install=needless
18363 fi
18364
18365
18366
18367
18368
18369
18370
18371 fi
18372
18373 compiler_GCJ=${GCJ-gcj}
18374 ac_ext=c
18375 ac_cpp='$CPP $CPPFLAGS'
18376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18379
18380
18381 if test "x$CC" != xcc; then
18382   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18383 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18384 else
18385   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18386 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18387 fi
18388 set dummy $CC; ac_cc=`echo $2 |
18389                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18390 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18391   echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393   cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399
18400 int
18401 main ()
18402 {
18403
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 # Make sure it works both with $CC and with simple cc.
18409 # We do the test twice because some compilers refuse to overwrite an
18410 # existing .o file with -o, though they will create one.
18411 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18412 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413   (eval $ac_try) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); };
18422 then
18423   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18424   if test "x$CC" != xcc; then
18425     # Test first that cc exists at all.
18426     if { ac_try='cc -c conftest.$ac_ext >&5'
18427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428   (eval $ac_try) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; }; then
18432       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18433       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } &&
18438          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); };
18443       then
18444         # cc works too.
18445         :
18446       else
18447         # cc exists but doesn't like -o.
18448         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18449       fi
18450     fi
18451   fi
18452 else
18453   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18454 fi
18455 rm -f conftest*
18456
18457 fi
18458 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18459   echo "$as_me:$LINENO: result: yes" >&5
18460 echo "${ECHO_T}yes" >&6
18461 else
18462   echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18464
18465 cat >>confdefs.h <<\_ACEOF
18466 #define NO_MINUS_C_MINUS_O 1
18467 _ACEOF
18468
18469 fi
18470
18471 # FIXME: we rely on the cache variable name because
18472 # there is no other way.
18473 set dummy $CC
18474 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18475 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18476    # Losing compiler, so override with the script.
18477    # FIXME: It is wrong to rewrite CC.
18478    # But if we don't then we get into trouble of one sort or another.
18479    # A longer-term fix would be to have automake use am__CC in this case,
18480    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18481    CC="$am_aux_dir/compile $CC"
18482 fi
18483
18484
18485
18486
18487 subdirs="$subdirs classpath libltdl"
18488
18489
18490 # The -no-testsuite modules omit the test subdir.
18491
18492
18493 if test -d $srcdir/testsuite; then
18494   TESTSUBDIR_TRUE=
18495   TESTSUBDIR_FALSE='#'
18496 else
18497   TESTSUBDIR_TRUE='#'
18498   TESTSUBDIR_FALSE=
18499 fi
18500
18501
18502 # Should the runtime set system properties by examining the
18503 # environment variable GCJ_PROPERTIES?
18504 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18505 if test "${enable_getenv_properties+set}" = set; then
18506   enableval="$enable_getenv_properties"
18507
18508 fi;
18509
18510 # Whether GCJ_PROPERTIES is used depends on the target.
18511 if test -z "$enable_getenv_properties"; then
18512    enable_getenv_properties=${enable_getenv_properties_default-yes}
18513 fi
18514 if test "$enable_getenv_properties" = no; then
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define DISABLE_GETENV_PROPERTIES 1
18518 _ACEOF
18519
18520 fi
18521
18522 # Whether we should use arguments to main()
18523 if test -z "$enable_main_args"; then
18524    enable_main_args=${enable_main_args_default-yes}
18525 fi
18526 if test "$enable_main_args" = no; then
18527
18528 cat >>confdefs.h <<\_ACEOF
18529 #define DISABLE_MAIN_ARGS 1
18530 _ACEOF
18531
18532 fi
18533
18534
18535 # Should we use hashtable-based synchronization?
18536 # Currently works only for Linux X86/ia64
18537 # Typically faster and more space-efficient
18538 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18539 if test "${enable_hash_synchronization+set}" = set; then
18540   enableval="$enable_hash_synchronization"
18541
18542 fi;
18543
18544 if test -z "$enable_hash_synchronization"; then
18545    enable_hash_synchronization=$enable_hash_synchronization_default
18546 fi
18547
18548
18549 install_ecj_jar=no
18550 ECJ_BUILD_JAR=
18551 ECJ_JAR=
18552
18553 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18554 if test "${with_ecj_jar+set}" = set; then
18555   withval="$with_ecj_jar"
18556   ECJ_JAR=$withval
18557 else
18558   if test -f $multi_basedir/ecj.jar; then
18559            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18560            ECJ_JAR='$(jardir)/ecj.jar'
18561            install_ecj_jar=yes
18562          fi
18563 fi;
18564
18565
18566
18567
18568 if test "$ECJ_JAR" != ""; then
18569   BUILD_ECJ1_TRUE=
18570   BUILD_ECJ1_FALSE='#'
18571 else
18572   BUILD_ECJ1_TRUE='#'
18573   BUILD_ECJ1_FALSE=
18574 fi
18575
18576
18577
18578 if test $install_ecj_jar = yes; then
18579   INSTALL_ECJ_JAR_TRUE=
18580   INSTALL_ECJ_JAR_FALSE='#'
18581 else
18582   INSTALL_ECJ_JAR_TRUE='#'
18583   INSTALL_ECJ_JAR_FALSE=
18584 fi
18585
18586
18587
18588 # Check whether --with-java-home or --without-java-home was given.
18589 if test "${with_java_home+set}" = set; then
18590   withval="$with_java_home"
18591   JAVA_HOME="${withval}"
18592 else
18593   JAVA_HOME=""
18594 fi;
18595
18596
18597 if test ! -z "$JAVA_HOME"; then
18598   JAVA_HOME_SET_TRUE=
18599   JAVA_HOME_SET_FALSE='#'
18600 else
18601   JAVA_HOME_SET_TRUE='#'
18602   JAVA_HOME_SET_FALSE=
18603 fi
18604
18605
18606
18607 suppress_libgcj_bc=no
18608 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18609 if test "${enable_libgcj_bc+set}" = set; then
18610   enableval="$enable_libgcj_bc"
18611   if test "$enable_libgcj_bc" = "no"; then
18612      suppress_libgcj_bc=yes
18613    fi
18614 fi;
18615
18616
18617 if test "$suppress_libgcj_bc" = "yes"; then
18618   SUPPRESS_LIBGCJ_BC_TRUE=
18619   SUPPRESS_LIBGCJ_BC_FALSE='#'
18620 else
18621   SUPPRESS_LIBGCJ_BC_TRUE='#'
18622   SUPPRESS_LIBGCJ_BC_FALSE=
18623 fi
18624
18625
18626 build_libgcj_reduced_reflection=no
18627 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18628 if test "${enable_reduced_reflection+set}" = set; then
18629   enableval="$enable_reduced_reflection"
18630   if test "$enable_reduced_reflection" = "yes"; then
18631      build_libgcj_reduced_reflection=yes
18632    fi
18633 fi;
18634
18635
18636 if test "$build_libgcj_reduced_reflection" = "yes"; then
18637   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18638   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18639 else
18640   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18641   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18642 fi
18643
18644
18645 # What is the native OS API for MinGW?
18646
18647 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18648 if test "${with_win32_nlsapi+set}" = set; then
18649   withval="$with_win32_nlsapi"
18650   case "${withval}" in
18651   ansi) with_win32_nlsapi=ansi ;;
18652   unicows) with_win32_nlsapi=unicows ;;
18653   unicode) with_win32_nlsapi=unicode ;;
18654   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18655 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18656    { (exit 1); exit 1; }; } ;;
18657 esac
18658 else
18659   with_win32_nlsapi=ansi
18660 fi;
18661
18662 case "${with_win32_nlsapi}" in
18663   unicows | unicode)
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define MINGW_LIBGCJ_UNICODE 1
18667 _ACEOF
18668
18669     ;;
18670 esac
18671
18672 # configure.host sets slow_pthread_self if the synchronization code should
18673 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18674 if test "${slow_pthread_self}" = "yes"; then
18675
18676 cat >>confdefs.h <<\_ACEOF
18677 #define SLOW_PTHREAD_SELF 1
18678 _ACEOF
18679
18680 fi
18681
18682 # Check for gc debugging.  This option is handled both here and in the GC.
18683 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18684 if test "${enable_gc_debug+set}" = set; then
18685   enableval="$enable_gc_debug"
18686    if test "$enable_gc_debug" = "yes"; then
18687
18688 cat >>confdefs.h <<\_ACEOF
18689 #define LIBGCJ_GC_DEBUG 1
18690 _ACEOF
18691
18692   fi
18693 fi;
18694
18695 # See if the user has the interpreter included.
18696 # Check whether --enable-interpreter or --disable-interpreter was given.
18697 if test "${enable_interpreter+set}" = set; then
18698   enableval="$enable_interpreter"
18699   if test "$enable_interpreter" = yes; then
18700     # This can also be set in configure.host.
18701     libgcj_interpreter=yes
18702   elif test "$enable_interpreter" = no; then
18703     libgcj_interpreter=no
18704   fi
18705 fi;
18706
18707 if test "$libgcj_interpreter" = yes; then
18708
18709 cat >>confdefs.h <<\_ACEOF
18710 #define INTERPRETER 1
18711 _ACEOF
18712
18713 fi
18714 INTERPRETER="$libgcj_interpreter"
18715
18716
18717
18718 if test "$libgcj_interpreter" = yes; then
18719   INTERPRETER_TRUE=
18720   INTERPRETER_FALSE='#'
18721 else
18722   INTERPRETER_TRUE='#'
18723   INTERPRETER_FALSE=
18724 fi
18725
18726
18727 echo "$as_me:$LINENO: checking for exception model to use" >&5
18728 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18729 ac_ext=cc
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18734
18735 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18736 if test "${enable_sjlj_exceptions+set}" = set; then
18737   enableval="$enable_sjlj_exceptions"
18738   :
18739 else
18740   cat > conftest.$ac_ext << EOF
18741 #line 18741 "configure"
18742 struct S { ~S(); };
18743 void bar();
18744 void foo()
18745 {
18746   S s;
18747   bar();
18748 }
18749 EOF
18750 old_CXXFLAGS="$CXXFLAGS"
18751 CXXFLAGS=-S
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753   (eval $ac_compile) 2>&5
18754   ac_status=$?
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); }; then
18757   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18758     enable_sjlj_exceptions=yes
18759   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18760     enable_sjlj_exceptions=no
18761   fi
18762 fi
18763 CXXFLAGS="$old_CXXFLAGS"
18764 rm -f conftest*
18765 fi;
18766 if test x$enable_sjlj_exceptions = xyes; then
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define SJLJ_EXCEPTIONS 1
18770 _ACEOF
18771
18772   ac_exception_model_name=sjlj
18773 elif test x$enable_sjlj_exceptions = xno; then
18774   ac_exception_model_name="call frame"
18775 else
18776   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18777 echo "$as_me: error: unable to detect exception model" >&2;}
18778    { (exit 1); exit 1; }; }
18779 fi
18780 ac_ext=c
18781 ac_cpp='$CPP $CPPFLAGS'
18782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18785
18786 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18787 echo "${ECHO_T}$ac_exception_model_name" >&6
18788
18789 # If we are non using SJLJ exceptions, and this host does not have support
18790 # for unwinding from a signal handler, enable checked dereferences and divides.
18791 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18792   CHECKREFSPEC=-fcheck-references
18793   DIVIDESPEC=-fuse-divide-subroutine
18794   EXCEPTIONSPEC=
18795 fi
18796
18797 # See if the user wants to disable java.net.  This is the mildly
18798 # ugly way that we admit that target-side configuration sucks.
18799 # Check whether --enable-java-net or --disable-java-net was given.
18800 if test "${enable_java_net+set}" = set; then
18801   enableval="$enable_java_net"
18802
18803 fi;
18804
18805 # Whether java.net is built by default can depend on the target.
18806 if test -z "$enable_java_net"; then
18807    enable_java_net=${enable_java_net_default-yes}
18808 fi
18809 if test "$enable_java_net" = no; then
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define DISABLE_JAVA_NET 1
18813 _ACEOF
18814
18815 fi
18816
18817 # See if the user wants to configure without libffi.  Some
18818 # architectures don't support it, and default values are set in
18819 # configure.host.
18820
18821 # Check whether --with-libffi or --without-libffi was given.
18822 if test "${with_libffi+set}" = set; then
18823   withval="$with_libffi"
18824   :
18825 else
18826   with_libffi=${with_libffi_default-yes}
18827 fi;
18828
18829 LIBFFI=
18830 LIBFFIINCS=
18831 if test "$with_libffi" != no; then
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define USE_LIBFFI 1
18835 _ACEOF
18836
18837    LIBFFI=../libffi/libffi_convenience.la
18838    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18839 fi
18840
18841
18842
18843 # See if the user wants to disable JVMPI support.
18844 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18845 if test "${enable_jvmpi+set}" = set; then
18846   enableval="$enable_jvmpi"
18847
18848 fi;
18849
18850 if test "$enable_jvmpi" != no; then
18851
18852 cat >>confdefs.h <<\_ACEOF
18853 #define ENABLE_JVMPI 1
18854 _ACEOF
18855
18856 fi
18857
18858 # If the target is an eCos system, use the appropriate eCos
18859 # I/O routines.
18860 # FIXME: this should not be a local option but a global target
18861 # system; at present there is no eCos target.
18862 TARGET_ECOS=${PROCESS-"no"}
18863
18864 # Check whether --with-ecos or --without-ecos was given.
18865 if test "${with_ecos+set}" = set; then
18866   withval="$with_ecos"
18867   TARGET_ECOS="$with_ecos"
18868
18869 fi;
18870
18871 case "$TARGET_ECOS" in
18872    no) case "$host" in
18873       *mingw*)
18874             PLATFORM=Win32
18875             PLATFORMNET=Win32
18876             PLATFORMH=win32.h
18877
18878 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18879 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18880 LD_PROG=`$CC --print-prog-name=ld`
18881 LD_VERSION=`$LD_PROG --version`
18882 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18883 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18884 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18885   LD_OK="ok"
18886 else
18887   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18888     LD_OK="ok"
18889   fi
18890 fi
18891 if test "x$LD_OK" != x; then
18892   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18893 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18894 else
18895   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18896 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18897   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18898 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18899
18900 cat >>confdefs.h <<\_ACEOF
18901 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18902 _ACEOF
18903
18904 fi
18905       ;;
18906       *)
18907             PLATFORM=Posix
18908             PLATFORMNET=Posix
18909             PLATFORMH=posix.h
18910       ;;
18911       esac
18912       ;;
18913    *)
18914       PLATFORM=Ecos
18915       PLATFORMNET=NoNet
18916
18917 cat >>confdefs.h <<\_ACEOF
18918 #define ECOS 1
18919 _ACEOF
18920
18921       PLATFORMH=posix.h
18922       ;;
18923 esac
18924
18925           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18926
18927
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934 #include <stdint.h>
18935
18936 _ACEOF
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938   $EGREP "uint32_t" >/dev/null 2>&1; then
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_INT32_DEFINED 1
18942 _ACEOF
18943
18944 fi
18945 rm -f conftest*
18946
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 #include <inttypes.h>
18954
18955 _ACEOF
18956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18957   $EGREP "uint32_t" >/dev/null 2>&1; then
18958
18959 cat >>confdefs.h <<\_ACEOF
18960 #define HAVE_INT32_DEFINED 1
18961 _ACEOF
18962
18963 fi
18964 rm -f conftest*
18965
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972 #include <sys/types.h>
18973
18974 _ACEOF
18975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18976   $EGREP "u_int32_t" >/dev/null 2>&1; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_BSD_INT32_DEFINED 1
18980 _ACEOF
18981
18982 fi
18983 rm -f conftest*
18984
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991 #include <sys/config.h>
18992
18993 _ACEOF
18994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18995   $EGREP "u_int32_t" >/dev/null 2>&1; then
18996
18997 cat >>confdefs.h <<\_ACEOF
18998 #define HAVE_BSD_INT32_DEFINED 1
18999 _ACEOF
19000
19001 fi
19002 rm -f conftest*
19003
19004
19005
19006
19007 if test "$PLATFORM" = Win32; then
19008   USING_WIN32_PLATFORM_TRUE=
19009   USING_WIN32_PLATFORM_FALSE='#'
19010 else
19011   USING_WIN32_PLATFORM_TRUE='#'
19012   USING_WIN32_PLATFORM_FALSE=
19013 fi
19014
19015
19016
19017 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19018   USING_POSIX_PLATFORM_TRUE=
19019   USING_POSIX_PLATFORM_FALSE='#'
19020 else
19021   USING_POSIX_PLATFORM_TRUE='#'
19022   USING_POSIX_PLATFORM_FALSE=
19023 fi
19024
19025
19026 case "$host" in
19027   *-darwin*) DARWIN_CRT=true ;;
19028   *) DARWIN_CRT=false ;;
19029 esac
19030
19031
19032 if $DARWIN_CRT; then
19033   USING_DARWIN_CRT_TRUE=
19034   USING_DARWIN_CRT_FALSE='#'
19035 else
19036   USING_DARWIN_CRT_TRUE='#'
19037   USING_DARWIN_CRT_FALSE=
19038 fi
19039
19040
19041 # This may not be defined in a non-ANS conformant embedded system.
19042 # FIXME: Should these case a runtime exception in that case?
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 <time.h>
19050
19051 _ACEOF
19052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19053   $EGREP "localtime" >/dev/null 2>&1; then
19054
19055 cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_LOCALTIME 1
19057 _ACEOF
19058
19059 fi
19060 rm -f conftest*
19061
19062
19063 # Create the subdirectory for natFile.cc, or the attempt
19064 # to create the link will fail.
19065 test -d java || mkdir java
19066 test -d java/io || mkdir java/io
19067 test -d gnu || mkdir gnu
19068           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19069
19070
19071 # Likewise for natConcreteProcess.cc.
19072 test -d java/lang || mkdir java/lang
19073           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19074
19075
19076 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19077 test -d java/net || mkdir java/net
19078           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19079
19080           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19081
19082
19083 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19084 test -d gnu/java || mkdir gnu/java
19085 test -d gnu/java/net || mkdir gnu/java/net
19086           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19087
19088           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19089
19090
19091 # Likewise for natVMPipe.cc and natVMSelector.cc.
19092 test -d gnu/java/nio || mkdir gnu/java/nio
19093           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19094
19095           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19096
19097
19098 # Likewise for natFileChannelImpl.cc
19099 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19100           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19101
19102
19103 case "${host}" in
19104     *mingw*)
19105       SYSTEMSPEC="-lgdi32 -lws2_32"
19106       if test "${with_win32_nlsapi}" = "unicows"; then
19107         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19108       fi
19109     ;;
19110     *)
19111       SYSTEMSPEC=
19112     ;;
19113 esac
19114
19115
19116
19117 # Check whether --with-system-zlib or --without-system-zlib was given.
19118 if test "${with_system_zlib+set}" = set; then
19119   withval="$with_system_zlib"
19120
19121 fi;
19122 ZLIBSPEC=
19123
19124 ZLIBTESTSPEC=
19125
19126
19127 echo "$as_me:$LINENO: checking for X" >&5
19128 echo $ECHO_N "checking for X... $ECHO_C" >&6
19129
19130
19131 # Check whether --with-x or --without-x was given.
19132 if test "${with_x+set}" = set; then
19133   withval="$with_x"
19134
19135 fi;
19136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19137 if test "x$with_x" = xno; then
19138   # The user explicitly disabled X.
19139   have_x=disabled
19140 else
19141   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19142     # Both variables are already set.
19143     have_x=yes
19144   else
19145     if test "${ac_cv_have_x+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   # One or both of the vars are not set, and there is no cached value.
19149 ac_x_includes=no ac_x_libraries=no
19150 rm -fr conftest.dir
19151 if mkdir conftest.dir; then
19152   cd conftest.dir
19153   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19154   cat >Imakefile <<'_ACEOF'
19155 acfindx:
19156         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19157 _ACEOF
19158   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19159     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19160     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19161     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19162     for ac_extension in a so sl; do
19163       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19164          test -f $ac_im_libdir/libX11.$ac_extension; then
19165         ac_im_usrlibdir=$ac_im_libdir; break
19166       fi
19167     done
19168     # Screen out bogus values from the imake configuration.  They are
19169     # bogus both because they are the default anyway, and because
19170     # using them would break gcc on systems where it needs fixed includes.
19171     case $ac_im_incroot in
19172         /usr/include) ;;
19173         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19174     esac
19175     case $ac_im_usrlibdir in
19176         /usr/lib | /lib) ;;
19177         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19178     esac
19179   fi
19180   cd ..
19181   rm -fr conftest.dir
19182 fi
19183
19184 # Standard set of common directories for X headers.
19185 # Check X11 before X11Rn because it is often a symlink to the current release.
19186 ac_x_header_dirs='
19187 /usr/X11/include
19188 /usr/X11R6/include
19189 /usr/X11R5/include
19190 /usr/X11R4/include
19191
19192 /usr/include/X11
19193 /usr/include/X11R6
19194 /usr/include/X11R5
19195 /usr/include/X11R4
19196
19197 /usr/local/X11/include
19198 /usr/local/X11R6/include
19199 /usr/local/X11R5/include
19200 /usr/local/X11R4/include
19201
19202 /usr/local/include/X11
19203 /usr/local/include/X11R6
19204 /usr/local/include/X11R5
19205 /usr/local/include/X11R4
19206
19207 /usr/X386/include
19208 /usr/x386/include
19209 /usr/XFree86/include/X11
19210
19211 /usr/include
19212 /usr/local/include
19213 /usr/unsupported/include
19214 /usr/athena/include
19215 /usr/local/x11r5/include
19216 /usr/lpp/Xamples/include
19217
19218 /usr/openwin/include
19219 /usr/openwin/share/include'
19220
19221 if test "$ac_x_includes" = no; then
19222   # Guess where to find include files, by looking for Intrinsic.h.
19223   # First, try using that file with no special directory specified.
19224   cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230 #include <X11/Intrinsic.h>
19231 _ACEOF
19232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19234   ac_status=$?
19235   grep -v '^ *+' conftest.er1 >conftest.err
19236   rm -f conftest.er1
19237   cat conftest.err >&5
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } >/dev/null; then
19240   if test -s conftest.err; then
19241     ac_cpp_err=$ac_c_preproc_warn_flag
19242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19243   else
19244     ac_cpp_err=
19245   fi
19246 else
19247   ac_cpp_err=yes
19248 fi
19249 if test -z "$ac_cpp_err"; then
19250   # We can compile using X headers with no special include directory.
19251 ac_x_includes=
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256   for ac_dir in $ac_x_header_dirs; do
19257   if test -r "$ac_dir/X11/Intrinsic.h"; then
19258     ac_x_includes=$ac_dir
19259     break
19260   fi
19261 done
19262 fi
19263 rm -f conftest.err conftest.$ac_ext
19264 fi # $ac_x_includes = no
19265
19266 if test "$ac_x_libraries" = no; then
19267   # Check for the libraries.
19268   # See if we find them without any special options.
19269   # Don't add to $LIBS permanently.
19270   ac_save_LIBS=$LIBS
19271   LIBS="-lXt $LIBS"
19272   if test x$gcc_no_link = xyes; then
19273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19275    { (exit 1); exit 1; }; }
19276 fi
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 #include <X11/Intrinsic.h>
19284 int
19285 main ()
19286 {
19287 XtMalloc (0)
19288   ;
19289   return 0;
19290 }
19291 _ACEOF
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294   (eval $ac_link) 2>conftest.er1
19295   ac_status=$?
19296   grep -v '^ *+' conftest.er1 >conftest.err
19297   rm -f conftest.er1
19298   cat conftest.err >&5
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } &&
19301          { ac_try='test -z "$ac_c_werror_flag"
19302                          || test ! -s conftest.err'
19303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304   (eval $ac_try) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; } &&
19308          { ac_try='test -s conftest$ac_exeext'
19309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310   (eval $ac_try) 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; }; then
19314   LIBS=$ac_save_LIBS
19315 # We can link X programs with no special library path.
19316 ac_x_libraries=
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 LIBS=$ac_save_LIBS
19322 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19323 do
19324   # Don't even attempt the hair of trying to link an X program!
19325   for ac_extension in a so sl; do
19326     if test -r $ac_dir/libXt.$ac_extension; then
19327       ac_x_libraries=$ac_dir
19328       break 2
19329     fi
19330   done
19331 done
19332 fi
19333 rm -f conftest.err conftest.$ac_objext \
19334       conftest$ac_exeext conftest.$ac_ext
19335 fi # $ac_x_libraries = no
19336
19337 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19338   # Didn't find X anywhere.  Cache the known absence of X.
19339   ac_cv_have_x="have_x=no"
19340 else
19341   # Record where we found X for the cache.
19342   ac_cv_have_x="have_x=yes \
19343                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19344 fi
19345 fi
19346
19347   fi
19348   eval "$ac_cv_have_x"
19349 fi # $with_x != no
19350
19351 if test "$have_x" != yes; then
19352   echo "$as_me:$LINENO: result: $have_x" >&5
19353 echo "${ECHO_T}$have_x" >&6
19354   no_x=yes
19355 else
19356   # If each of the values was on the command line, it overrides each guess.
19357   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19358   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19359   # Update the cache value to reflect the command line values.
19360   ac_cv_have_x="have_x=yes \
19361                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19362   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19363 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19364 fi
19365
19366 if test "$no_x" = yes; then
19367   # Not all programs may use this symbol, but it does not hurt to define it.
19368
19369 cat >>confdefs.h <<\_ACEOF
19370 #define X_DISPLAY_MISSING 1
19371 _ACEOF
19372
19373   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19374 else
19375   if test -n "$x_includes"; then
19376     X_CFLAGS="$X_CFLAGS -I$x_includes"
19377   fi
19378
19379   # It would also be nice to do this for all -L options, not just this one.
19380   if test -n "$x_libraries"; then
19381     X_LIBS="$X_LIBS -L$x_libraries"
19382     # For Solaris; some versions of Sun CC require a space after -R and
19383     # others require no space.  Words are not sufficient . . . .
19384     case `(uname -sr) 2>/dev/null` in
19385     "SunOS 5"*)
19386       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19387 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19388       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19389       if test x$gcc_no_link = xyes; then
19390   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19392    { (exit 1); exit 1; }; }
19393 fi
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 int
19402 main ()
19403 {
19404
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411   (eval $ac_link) 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag"
19419                          || test ! -s conftest.err'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; } &&
19425          { ac_try='test -s conftest$ac_exeext'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   ac_R_nospace=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_R_nospace=no
19437 fi
19438 rm -f conftest.err conftest.$ac_objext \
19439       conftest$ac_exeext conftest.$ac_ext
19440       if test $ac_R_nospace = yes; then
19441         echo "$as_me:$LINENO: result: no" >&5
19442 echo "${ECHO_T}no" >&6
19443         X_LIBS="$X_LIBS -R$x_libraries"
19444       else
19445         LIBS="$ac_xsave_LIBS -R $x_libraries"
19446         if test x$gcc_no_link = xyes; then
19447   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19449    { (exit 1); exit 1; }; }
19450 fi
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457
19458 int
19459 main ()
19460 {
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468   (eval $ac_link) 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } &&
19475          { ac_try='test -z "$ac_c_werror_flag"
19476                          || test ! -s conftest.err'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; } &&
19482          { ac_try='test -s conftest$ac_exeext'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; }; then
19488   ac_R_space=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 ac_R_space=no
19494 fi
19495 rm -f conftest.err conftest.$ac_objext \
19496       conftest$ac_exeext conftest.$ac_ext
19497         if test $ac_R_space = yes; then
19498           echo "$as_me:$LINENO: result: yes" >&5
19499 echo "${ECHO_T}yes" >&6
19500           X_LIBS="$X_LIBS -R $x_libraries"
19501         else
19502           echo "$as_me:$LINENO: result: neither works" >&5
19503 echo "${ECHO_T}neither works" >&6
19504         fi
19505       fi
19506       LIBS=$ac_xsave_LIBS
19507     esac
19508   fi
19509
19510   # Check for system-dependent libraries X programs must link with.
19511   # Do this before checking for the system-independent R6 libraries
19512   # (-lICE), since we may need -lsocket or whatever for X linking.
19513
19514   if test "$ISC" = yes; then
19515     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19516   else
19517     # Martyn Johnson says this is needed for Ultrix, if the X
19518     # libraries were built with DECnet support.  And Karl Berry says
19519     # the Alpha needs dnet_stub (dnet does not exist).
19520     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19521     if test x$gcc_no_link = xyes; then
19522   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19524    { (exit 1); exit 1; }; }
19525 fi
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532
19533 /* Override any gcc2 internal prototype to avoid an error.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char XOpenDisplay ();
19540 int
19541 main ()
19542 {
19543 XOpenDisplay ();
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550   (eval $ac_link) 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } &&
19557          { ac_try='test -z "$ac_c_werror_flag"
19558                          || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   :
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19576 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19577 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   ac_check_lib_save_LIBS=$LIBS
19581 LIBS="-ldnet  $LIBS"
19582 if test x$gcc_no_link = xyes; then
19583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19585    { (exit 1); exit 1; }; }
19586 fi
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593
19594 /* Override any gcc2 internal prototype to avoid an error.  */
19595 #ifdef __cplusplus
19596 extern "C"
19597 #endif
19598 /* We use char because int might match the return type of a gcc2
19599    builtin and then its argument prototype would still apply.  */
19600 char dnet_ntoa ();
19601 int
19602 main ()
19603 {
19604 dnet_ntoa ();
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19611   (eval $ac_link) 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -z "$ac_c_werror_flag"
19619                          || test ! -s conftest.err'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; } &&
19625          { ac_try='test -s conftest$ac_exeext'
19626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627   (eval $ac_try) 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   ac_cv_lib_dnet_dnet_ntoa=yes
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_cv_lib_dnet_dnet_ntoa=no
19637 fi
19638 rm -f conftest.err conftest.$ac_objext \
19639       conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19641 fi
19642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19645   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19646 fi
19647
19648     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19649       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-ldnet_stub  $LIBS"
19656 if test x$gcc_no_link = xyes; then
19657   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19659    { (exit 1); exit 1; }; }
19660 fi
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667
19668 /* Override any gcc2 internal prototype to avoid an error.  */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 /* We use char because int might match the return type of a gcc2
19673    builtin and then its argument prototype would still apply.  */
19674 char dnet_ntoa ();
19675 int
19676 main ()
19677 {
19678 dnet_ntoa ();
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19685   (eval $ac_link) 2>conftest.er1
19686   ac_status=$?
19687   grep -v '^ *+' conftest.er1 >conftest.err
19688   rm -f conftest.er1
19689   cat conftest.err >&5
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); } &&
19692          { ac_try='test -z "$ac_c_werror_flag"
19693                          || test ! -s conftest.err'
19694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695   (eval $ac_try) 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest$ac_exeext'
19700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701   (eval $ac_try) 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; }; then
19705   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_lib_dnet_stub_dnet_ntoa=no
19711 fi
19712 rm -f conftest.err conftest.$ac_objext \
19713       conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19715 fi
19716 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19717 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19718 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19719   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19720 fi
19721
19722     fi
19723 fi
19724 rm -f conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726     LIBS="$ac_xsave_LIBS"
19727
19728     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19729     # to get the SysV transport functions.
19730     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19731     # needs -lnsl.
19732     # The nsl library prevents programs from opening the X display
19733     # on Irix 5.2, according to T.E. Dickey.
19734     # The functions gethostbyname, getservbyname, and inet_addr are
19735     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19736     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19737 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19738 if test "${ac_cv_func_gethostbyname+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   if test x$gcc_no_link = xyes; then
19742   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19744    { (exit 1); exit 1; }; }
19745 fi
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19754 #define gethostbyname innocuous_gethostbyname
19755
19756 /* System header to define __stub macros and hopefully few prototypes,
19757     which can conflict with char gethostbyname (); below.
19758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759     <limits.h> exists even on freestanding compilers.  */
19760
19761 #ifdef __STDC__
19762 # include <limits.h>
19763 #else
19764 # include <assert.h>
19765 #endif
19766
19767 #undef gethostbyname
19768
19769 /* Override any gcc2 internal prototype to avoid an error.  */
19770 #ifdef __cplusplus
19771 extern "C"
19772 {
19773 #endif
19774 /* We use char because int might match the return type of a gcc2
19775    builtin and then its argument prototype would still apply.  */
19776 char gethostbyname ();
19777 /* The GNU C library defines this for functions which it implements
19778     to always fail with ENOSYS.  Some functions are actually named
19779     something starting with __ and the normal name is an alias.  */
19780 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19781 choke me
19782 #else
19783 char (*f) () = gethostbyname;
19784 #endif
19785 #ifdef __cplusplus
19786 }
19787 #endif
19788
19789 int
19790 main ()
19791 {
19792 return f != gethostbyname;
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19799   (eval $ac_link) 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } &&
19806          { ac_try='test -z "$ac_c_werror_flag"
19807                          || test ! -s conftest.err'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; } &&
19813          { ac_try='test -s conftest$ac_exeext'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   ac_cv_func_gethostbyname=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_cv_func_gethostbyname=no
19825 fi
19826 rm -f conftest.err conftest.$ac_objext \
19827       conftest$ac_exeext conftest.$ac_ext
19828 fi
19829 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19830 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19831
19832     if test $ac_cv_func_gethostbyname = no; then
19833       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19834 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19835 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838   ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lnsl  $LIBS"
19840 if test x$gcc_no_link = xyes; then
19841   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19843    { (exit 1); exit 1; }; }
19844 fi
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851
19852 /* Override any gcc2 internal prototype to avoid an error.  */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 /* We use char because int might match the return type of a gcc2
19857    builtin and then its argument prototype would still apply.  */
19858 char gethostbyname ();
19859 int
19860 main ()
19861 {
19862 gethostbyname ();
19863   ;
19864   return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869   (eval $ac_link) 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -z "$ac_c_werror_flag"
19877                          || test ! -s conftest.err'
19878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879   (eval $ac_try) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; } &&
19883          { ac_try='test -s conftest$ac_exeext'
19884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885   (eval $ac_try) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; }; then
19889   ac_cv_lib_nsl_gethostbyname=yes
19890 else
19891   echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ac_cv_lib_nsl_gethostbyname=no
19895 fi
19896 rm -f conftest.err conftest.$ac_objext \
19897       conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19899 fi
19900 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19901 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19902 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19903   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19904 fi
19905
19906       if test $ac_cv_lib_nsl_gethostbyname = no; then
19907         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19908 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19909 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912   ac_check_lib_save_LIBS=$LIBS
19913 LIBS="-lbsd  $LIBS"
19914 if test x$gcc_no_link = xyes; then
19915   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19917    { (exit 1); exit 1; }; }
19918 fi
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925
19926 /* Override any gcc2 internal prototype to avoid an error.  */
19927 #ifdef __cplusplus
19928 extern "C"
19929 #endif
19930 /* We use char because int might match the return type of a gcc2
19931    builtin and then its argument prototype would still apply.  */
19932 char gethostbyname ();
19933 int
19934 main ()
19935 {
19936 gethostbyname ();
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943   (eval $ac_link) 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } &&
19950          { ac_try='test -z "$ac_c_werror_flag"
19951                          || test ! -s conftest.err'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest$ac_exeext'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   ac_cv_lib_bsd_gethostbyname=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 ac_cv_lib_bsd_gethostbyname=no
19969 fi
19970 rm -f conftest.err conftest.$ac_objext \
19971       conftest$ac_exeext conftest.$ac_ext
19972 LIBS=$ac_check_lib_save_LIBS
19973 fi
19974 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19975 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19976 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19977   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19978 fi
19979
19980       fi
19981     fi
19982
19983     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19984     # socket/setsockopt and other routines are undefined under SCO ODT
19985     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19986     # on later versions), says Simon Leinen: it contains gethostby*
19987     # variants that don't use the name server (or something).  -lsocket
19988     # must be given before -lnsl if both are needed.  We assume that
19989     # if connect needs -lnsl, so does gethostbyname.
19990     echo "$as_me:$LINENO: checking for connect" >&5
19991 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19992 if test "${ac_cv_func_connect+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   if test x$gcc_no_link = xyes; then
19996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19998    { (exit 1); exit 1; }; }
19999 fi
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20008 #define connect innocuous_connect
20009
20010 /* System header to define __stub macros and hopefully few prototypes,
20011     which can conflict with char connect (); below.
20012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20013     <limits.h> exists even on freestanding compilers.  */
20014
20015 #ifdef __STDC__
20016 # include <limits.h>
20017 #else
20018 # include <assert.h>
20019 #endif
20020
20021 #undef connect
20022
20023 /* Override any gcc2 internal prototype to avoid an error.  */
20024 #ifdef __cplusplus
20025 extern "C"
20026 {
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029    builtin and then its argument prototype would still apply.  */
20030 char connect ();
20031 /* The GNU C library defines this for functions which it implements
20032     to always fail with ENOSYS.  Some functions are actually named
20033     something starting with __ and the normal name is an alias.  */
20034 #if defined (__stub_connect) || defined (__stub___connect)
20035 choke me
20036 #else
20037 char (*f) () = connect;
20038 #endif
20039 #ifdef __cplusplus
20040 }
20041 #endif
20042
20043 int
20044 main ()
20045 {
20046 return f != connect;
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20053   (eval $ac_link) 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -z "$ac_c_werror_flag"
20061                          || test ! -s conftest.err'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; } &&
20067          { ac_try='test -s conftest$ac_exeext'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_func_connect=yes
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_cv_func_connect=no
20079 fi
20080 rm -f conftest.err conftest.$ac_objext \
20081       conftest$ac_exeext conftest.$ac_ext
20082 fi
20083 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20084 echo "${ECHO_T}$ac_cv_func_connect" >&6
20085
20086     if test $ac_cv_func_connect = no; then
20087       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20089 if test "${ac_cv_lib_socket_connect+set}" = set; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20094 if test x$gcc_no_link = xyes; then
20095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20097    { (exit 1); exit 1; }; }
20098 fi
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105
20106 /* Override any gcc2 internal prototype to avoid an error.  */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 /* We use char because int might match the return type of a gcc2
20111    builtin and then its argument prototype would still apply.  */
20112 char connect ();
20113 int
20114 main ()
20115 {
20116 connect ();
20117   ;
20118   return 0;
20119 }
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123   (eval $ac_link) 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } &&
20130          { ac_try='test -z "$ac_c_werror_flag"
20131                          || test ! -s conftest.err'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; } &&
20137          { ac_try='test -s conftest$ac_exeext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   ac_cv_lib_socket_connect=yes
20144 else
20145   echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_lib_socket_connect=no
20149 fi
20150 rm -f conftest.err conftest.$ac_objext \
20151       conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20153 fi
20154 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20155 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20156 if test $ac_cv_lib_socket_connect = yes; then
20157   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20158 fi
20159
20160     fi
20161
20162     # Guillermo Gomez says -lposix is necessary on A/UX.
20163     echo "$as_me:$LINENO: checking for remove" >&5
20164 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20165 if test "${ac_cv_func_remove+set}" = set; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   if test x$gcc_no_link = xyes; then
20169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20171    { (exit 1); exit 1; }; }
20172 fi
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20181 #define remove innocuous_remove
20182
20183 /* System header to define __stub macros and hopefully few prototypes,
20184     which can conflict with char remove (); below.
20185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20186     <limits.h> exists even on freestanding compilers.  */
20187
20188 #ifdef __STDC__
20189 # include <limits.h>
20190 #else
20191 # include <assert.h>
20192 #endif
20193
20194 #undef remove
20195
20196 /* Override any gcc2 internal prototype to avoid an error.  */
20197 #ifdef __cplusplus
20198 extern "C"
20199 {
20200 #endif
20201 /* We use char because int might match the return type of a gcc2
20202    builtin and then its argument prototype would still apply.  */
20203 char remove ();
20204 /* The GNU C library defines this for functions which it implements
20205     to always fail with ENOSYS.  Some functions are actually named
20206     something starting with __ and the normal name is an alias.  */
20207 #if defined (__stub_remove) || defined (__stub___remove)
20208 choke me
20209 #else
20210 char (*f) () = remove;
20211 #endif
20212 #ifdef __cplusplus
20213 }
20214 #endif
20215
20216 int
20217 main ()
20218 {
20219 return f != remove;
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226   (eval $ac_link) 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_c_werror_flag"
20234                          || test ! -s conftest.err'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest$ac_exeext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_func_remove=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ac_cv_func_remove=no
20252 fi
20253 rm -f conftest.err conftest.$ac_objext \
20254       conftest$ac_exeext conftest.$ac_ext
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20257 echo "${ECHO_T}$ac_cv_func_remove" >&6
20258
20259     if test $ac_cv_func_remove = no; then
20260       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20262 if test "${ac_cv_lib_posix_remove+set}" = set; then
20263   echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265   ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lposix  $LIBS"
20267 if test x$gcc_no_link = xyes; then
20268   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20270    { (exit 1); exit 1; }; }
20271 fi
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278
20279 /* Override any gcc2 internal prototype to avoid an error.  */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 /* We use char because int might match the return type of a gcc2
20284    builtin and then its argument prototype would still apply.  */
20285 char remove ();
20286 int
20287 main ()
20288 {
20289 remove ();
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296   (eval $ac_link) 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } &&
20303          { ac_try='test -z "$ac_c_werror_flag"
20304                          || test ! -s conftest.err'
20305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306   (eval $ac_try) 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; } &&
20310          { ac_try='test -s conftest$ac_exeext'
20311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312   (eval $ac_try) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); }; }; then
20316   ac_cv_lib_posix_remove=yes
20317 else
20318   echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ac_cv_lib_posix_remove=no
20322 fi
20323 rm -f conftest.err conftest.$ac_objext \
20324       conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20326 fi
20327 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20328 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20329 if test $ac_cv_lib_posix_remove = yes; then
20330   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20331 fi
20332
20333     fi
20334
20335     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20336     echo "$as_me:$LINENO: checking for shmat" >&5
20337 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20338 if test "${ac_cv_func_shmat+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   if test x$gcc_no_link = xyes; then
20342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20344    { (exit 1); exit 1; }; }
20345 fi
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20354 #define shmat innocuous_shmat
20355
20356 /* System header to define __stub macros and hopefully few prototypes,
20357     which can conflict with char shmat (); below.
20358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20359     <limits.h> exists even on freestanding compilers.  */
20360
20361 #ifdef __STDC__
20362 # include <limits.h>
20363 #else
20364 # include <assert.h>
20365 #endif
20366
20367 #undef shmat
20368
20369 /* Override any gcc2 internal prototype to avoid an error.  */
20370 #ifdef __cplusplus
20371 extern "C"
20372 {
20373 #endif
20374 /* We use char because int might match the return type of a gcc2
20375    builtin and then its argument prototype would still apply.  */
20376 char shmat ();
20377 /* The GNU C library defines this for functions which it implements
20378     to always fail with ENOSYS.  Some functions are actually named
20379     something starting with __ and the normal name is an alias.  */
20380 #if defined (__stub_shmat) || defined (__stub___shmat)
20381 choke me
20382 #else
20383 char (*f) () = shmat;
20384 #endif
20385 #ifdef __cplusplus
20386 }
20387 #endif
20388
20389 int
20390 main ()
20391 {
20392 return f != shmat;
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20399   (eval $ac_link) 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } &&
20406          { ac_try='test -z "$ac_c_werror_flag"
20407                          || test ! -s conftest.err'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; } &&
20413          { ac_try='test -s conftest$ac_exeext'
20414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415   (eval $ac_try) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; }; then
20419   ac_cv_func_shmat=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424 ac_cv_func_shmat=no
20425 fi
20426 rm -f conftest.err conftest.$ac_objext \
20427       conftest$ac_exeext conftest.$ac_ext
20428 fi
20429 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20430 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20431
20432     if test $ac_cv_func_shmat = no; then
20433       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20434 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20435 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438   ac_check_lib_save_LIBS=$LIBS
20439 LIBS="-lipc  $LIBS"
20440 if test x$gcc_no_link = xyes; then
20441   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20443    { (exit 1); exit 1; }; }
20444 fi
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 /* Override any gcc2 internal prototype to avoid an error.  */
20453 #ifdef __cplusplus
20454 extern "C"
20455 #endif
20456 /* We use char because int might match the return type of a gcc2
20457    builtin and then its argument prototype would still apply.  */
20458 char shmat ();
20459 int
20460 main ()
20461 {
20462 shmat ();
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469   (eval $ac_link) 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag"
20477                          || test ! -s conftest.err'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest$ac_exeext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_cv_lib_ipc_shmat=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_lib_ipc_shmat=no
20495 fi
20496 rm -f conftest.err conftest.$ac_objext \
20497       conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20499 fi
20500 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20501 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20502 if test $ac_cv_lib_ipc_shmat = yes; then
20503   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20504 fi
20505
20506     fi
20507   fi
20508
20509   # Check for libraries that X11R6 Xt/Xaw programs need.
20510   ac_save_LDFLAGS=$LDFLAGS
20511   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20512   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20513   # check for ICE first), but we must link in the order -lSM -lICE or
20514   # we get undefined symbols.  So assume we have SM if we have ICE.
20515   # These have to be linked with before -lX11, unlike the other
20516   # libraries we check for below, so use a different variable.
20517   # John Interrante, Karl Berry
20518   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20519 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20520 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20521   echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523   ac_check_lib_save_LIBS=$LIBS
20524 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20525 if test x$gcc_no_link = xyes; then
20526   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20528    { (exit 1); exit 1; }; }
20529 fi
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536
20537 /* Override any gcc2 internal prototype to avoid an error.  */
20538 #ifdef __cplusplus
20539 extern "C"
20540 #endif
20541 /* We use char because int might match the return type of a gcc2
20542    builtin and then its argument prototype would still apply.  */
20543 char IceConnectionNumber ();
20544 int
20545 main ()
20546 {
20547 IceConnectionNumber ();
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20554   (eval $ac_link) 2>conftest.er1
20555   ac_status=$?
20556   grep -v '^ *+' conftest.er1 >conftest.err
20557   rm -f conftest.er1
20558   cat conftest.err >&5
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } &&
20561          { ac_try='test -z "$ac_c_werror_flag"
20562                          || test ! -s conftest.err'
20563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564   (eval $ac_try) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; } &&
20568          { ac_try='test -s conftest$ac_exeext'
20569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570   (eval $ac_try) 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); }; }; then
20574   ac_cv_lib_ICE_IceConnectionNumber=yes
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 ac_cv_lib_ICE_IceConnectionNumber=no
20580 fi
20581 rm -f conftest.err conftest.$ac_objext \
20582       conftest$ac_exeext conftest.$ac_ext
20583 LIBS=$ac_check_lib_save_LIBS
20584 fi
20585 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20586 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20587 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20588   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20589 fi
20590
20591   LDFLAGS=$ac_save_LDFLAGS
20592
20593 fi
20594
20595
20596 # FIXME: this should be _libs on some hosts.
20597 libsubdir=.libs
20598
20599 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20600
20601 LIBSTDCXXSPEC=
20602 # extra LD Flags which are required for targets
20603 case "${host}" in
20604 *-*-darwin[0-7].*)
20605     # For now we have to disable it on darwin[8-9] because it slows down
20606     # the linking phase. A possible bug in ld?
20607     # on Darwin -single_module speeds up loading of the dynamic libraries.
20608     extra_ldflags_libjava=-Wl,-single_module
20609     ;;
20610 *-*-darwin[9]*)
20611     extra_gij_ldflags=-Wl,-allow_stack_execute
20612     ;;
20613 arm*linux*eabi)
20614     # Some of the ARM unwinder code is actually in libstdc++.  We
20615     # could in principle replicate it in libgcj, but it's better to
20616     # have a dependency on libstdc++.
20617     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20618     LIBSTDCXXSPEC=-lstdc++
20619     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20620     ;;
20621 esac
20622
20623
20624
20625
20626
20627
20628
20629 # Allow the GC to be disabled.  Can be useful when debugging.
20630 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20631 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20632 # Check whether --enable-java-gc or --disable-java-gc was given.
20633 if test "${enable_java_gc+set}" = set; then
20634   enableval="$enable_java_gc"
20635   GC=$enableval
20636 else
20637   GC=boehm
20638 fi;
20639 GCLIBS=
20640 GCINCS=
20641 GCDEPS=
20642 GCSPEC=
20643 JC1GCSPEC=
20644 GCTESTSPEC=
20645 case "$GC" in
20646  boehm)
20647     echo "$as_me:$LINENO: result: boehm" >&5
20648 echo "${ECHO_T}boehm" >&6
20649     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20650     JC1GCSPEC='-fuse-boehm-gc'
20651     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20652     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20653     GCOBJS=boehm.lo
20654     GCHDR=boehm-gc.h
20655     # The POSIX thread support needs to know this.
20656
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_BOEHM_GC 1
20659 _ACEOF
20660
20661     ;;
20662  no)
20663     echo "$as_me:$LINENO: result: none" >&5
20664 echo "${ECHO_T}none" >&6
20665     GCHDR=no-gc.h
20666     ;;
20667  *)
20668     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20669 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20670    { (exit 1); exit 1; }; }
20671     ;;
20672 esac
20673
20674
20675
20676
20677
20678
20679           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20680
20681
20682
20683 if test "$GC" = boehm; then
20684   USING_BOEHMGC_TRUE=
20685   USING_BOEHMGC_FALSE='#'
20686 else
20687   USING_BOEHMGC_TRUE='#'
20688   USING_BOEHMGC_FALSE=
20689 fi
20690
20691
20692
20693 if test "$GC" = no; then
20694   USING_NOGC_TRUE=
20695   USING_NOGC_FALSE='#'
20696 else
20697   USING_NOGC_TRUE='#'
20698   USING_NOGC_FALSE=
20699 fi
20700
20701
20702
20703 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20704 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20705 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20706 echo "$as_me:$LINENO: result: $THREADS" >&5
20707 echo "${ECHO_T}$THREADS" >&6
20708
20709 case "$THREADS" in
20710  no | none | single)
20711     THREADS=none
20712     ;;
20713  aix | posix | posix95 | pthreads)
20714     THREADS=posix
20715     case "$host" in
20716      *-*-linux*)
20717
20718 cat >>confdefs.h <<\_ACEOF
20719 #define LINUX_THREADS 1
20720 _ACEOF
20721
20722         ;;
20723     esac
20724     ;;
20725  win32)
20726     ;;
20727  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20728     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20729 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20730    { (exit 1); exit 1; }; }
20731     ;;
20732  *)
20733     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20734 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20735    { (exit 1); exit 1; }; }
20736     ;;
20737 esac
20738
20739 THREADCXXFLAGS=
20740 THREADLDFLAGS=
20741 THREADLIBS=
20742 THREADINCS=
20743 THREADDEPS=
20744 THREADH=
20745 THREADSPEC=
20746 THREADSTARTFILESPEC=
20747 case "$THREADS" in
20748  posix)
20749     case "$host" in
20750      *-*-cygwin*)
20751         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20752         ;;
20753      *-*-freebsd[1234]*)
20754         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20755         # merely adds pthread_* functions) but it does have a -pthread switch
20756         # which is required at link-time to select -lc_r *instead* of -lc.
20757         THREADLDFLAGS=-pthread
20758         # Don't set THREADSPEC here as might be expected since -pthread is
20759         # not processed when found within a spec file, it must come from
20760         # the command line.  For now, the user must provide the -pthread
20761         # switch to link code compiled with gcj.  In future, consider adding
20762         # support for weak references to pthread_* functions ala gthr.h API.
20763         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20764         ;;
20765      *-*-freebsd*)
20766         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20767         # systems which support threads and -lpthread.
20768         THREADLDFLAGS=-pthread
20769         THREADSPEC=-lpthread
20770         ;;
20771      alpha*-dec-osf* | hppa*-hp-hpux*)
20772         THREADCXXFLAGS=-pthread
20773         # boehm-gc needs some functions from librt, so link that too.
20774         THREADLIBS='-lpthread -lrt'
20775         THREADSPEC='-lpthread -lrt'
20776         ;;
20777      *)
20778         THREADLIBS=-lpthread
20779         THREADSPEC=-lpthread
20780         ;;
20781     esac
20782     THREADH=posix-threads.h
20783     # MIT pthreads doesn't seem to have the mutexattr functions.
20784     # But for now we don't check for it.  We just assume you aren't
20785     # using MIT pthreads.
20786
20787 cat >>confdefs.h <<\_ACEOF
20788 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20789 _ACEOF
20790
20791
20792     # If we're using the Boehm GC, then we happen to know that it
20793     # defines _REENTRANT, so we don't bother.  Eww.
20794     if test "$GC" != boehm; then
20795
20796 cat >>confdefs.h <<\_ACEOF
20797 #define _REENTRANT 1
20798 _ACEOF
20799
20800     fi
20801
20802 cat >>confdefs.h <<\_ACEOF
20803 #define _POSIX_PTHREAD_SEMANTICS 1
20804 _ACEOF
20805
20806     ;;
20807
20808  win32)
20809     THREADH=win32-threads.h
20810     THREADCXXFLAGS=-mthreads
20811     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20812     # But we do not want the executables created to be dependent on
20813     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20814     # exception handling contexts.  The following kludge achieves this effect
20815     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20816     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20817     # A workaround is to explicitly use -mthreads while linking Java programs.
20818     # See PR libgcj/28263.
20819     #
20820     # FIXME: In Java we are able to detect thread death at the end of
20821     # Thread.run() so we should be able to clean up the exception handling
20822     # contexts ourselves.
20823     THREADSTARTFILESPEC='crtmt%O%s'
20824     ;;
20825
20826  none)
20827     THREADH=no-threads.h
20828     ;;
20829 esac
20830           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841 if test "$THREADS" = posix; then
20842   USING_POSIX_THREADS_TRUE=
20843   USING_POSIX_THREADS_FALSE='#'
20844 else
20845   USING_POSIX_THREADS_TRUE='#'
20846   USING_POSIX_THREADS_FALSE=
20847 fi
20848
20849
20850
20851 if test "$THREADS" = win32; then
20852   USING_WIN32_THREADS_TRUE=
20853   USING_WIN32_THREADS_FALSE='#'
20854 else
20855   USING_WIN32_THREADS_TRUE='#'
20856   USING_WIN32_THREADS_FALSE=
20857 fi
20858
20859
20860
20861 if test "$THREADS" = none; then
20862   USING_NO_THREADS_TRUE=
20863   USING_NO_THREADS_FALSE='#'
20864 else
20865   USING_NO_THREADS_TRUE='#'
20866   USING_NO_THREADS_FALSE=
20867 fi
20868
20869
20870
20871 if test "$use_libgcj_bc" = yes; then
20872   USE_LIBGCJ_BC_TRUE=
20873   USE_LIBGCJ_BC_FALSE='#'
20874 else
20875   USE_LIBGCJ_BC_TRUE='#'
20876   USE_LIBGCJ_BC_FALSE=
20877 fi
20878
20879
20880 if test -d sysdep; then true; else mkdir sysdep; fi
20881           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20882
20883           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20884
20885           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20886
20887
20888 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20889 if test "$use_libgcj_bc" = yes; then
20890   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20891 fi
20892
20893
20894 HASH_SYNC_SPEC=
20895 # Hash synchronization is only useful with posix threads right now.
20896 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20897    HASH_SYNC_SPEC=-fhash-synchronization
20898
20899 cat >>confdefs.h <<\_ACEOF
20900 #define JV_HASH_SYNCHRONIZATION 1
20901 _ACEOF
20902
20903 fi
20904
20905
20906
20907
20908 if test "$GCC" = yes; then
20909   USING_GCC_TRUE=
20910   USING_GCC_FALSE='#'
20911 else
20912   USING_GCC_TRUE='#'
20913   USING_GCC_FALSE=
20914 fi
20915
20916
20917 # We're in the tree with gcc, and need to include some of its headers.
20918 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20919
20920 if test "x${with_newlib}" = "xyes"; then
20921    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20922    # may not work correctly, because the compiler may not be able to
20923    # link executables.
20924
20925    # We assume newlib.  This lets us hard-code the functions we know
20926    # we'll have.
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_MEMMOVE 1
20930 _ACEOF
20931
20932
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_MEMCPY 1
20935 _ACEOF
20936
20937
20938 cat >>confdefs.h <<\_ACEOF
20939 #define HAVE_TIME 1
20940 _ACEOF
20941
20942
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_GMTIME_R 1
20945 _ACEOF
20946
20947
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_LOCALTIME_R 1
20950 _ACEOF
20951
20952
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_USLEEP_DECL 1
20955 _ACEOF
20956
20957    # This is only for POSIX threads.
20958
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20961 _ACEOF
20962
20963
20964    # Assume we do not have getuid and friends.
20965
20966 cat >>confdefs.h <<\_ACEOF
20967 #define NO_GETUID 1
20968 _ACEOF
20969
20970    PLATFORMNET=NoNet
20971 else
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002 for ac_func in strerror_r select fstat open fsync sleep opendir \
21003                    localtime_r getpwuid_r getcwd \
21004                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
21005                    nl_langinfo setlocale \
21006                    inet_pton uname inet_ntoa \
21007                    getrlimit sigaction ftruncate mmap \
21008                    getifaddrs
21009 do
21010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21011 echo "$as_me:$LINENO: checking for $ac_func" >&5
21012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_var+set}\" = set"; then
21014   echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016   if test x$gcc_no_link = xyes; then
21017   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21019    { (exit 1); exit 1; }; }
21020 fi
21021 cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21029 #define $ac_func innocuous_$ac_func
21030
21031 /* System header to define __stub macros and hopefully few prototypes,
21032     which can conflict with char $ac_func (); below.
21033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21034     <limits.h> exists even on freestanding compilers.  */
21035
21036 #ifdef __STDC__
21037 # include <limits.h>
21038 #else
21039 # include <assert.h>
21040 #endif
21041
21042 #undef $ac_func
21043
21044 /* Override any gcc2 internal prototype to avoid an error.  */
21045 #ifdef __cplusplus
21046 extern "C"
21047 {
21048 #endif
21049 /* We use char because int might match the return type of a gcc2
21050    builtin and then its argument prototype would still apply.  */
21051 char $ac_func ();
21052 /* The GNU C library defines this for functions which it implements
21053     to always fail with ENOSYS.  Some functions are actually named
21054     something starting with __ and the normal name is an alias.  */
21055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21056 choke me
21057 #else
21058 char (*f) () = $ac_func;
21059 #endif
21060 #ifdef __cplusplus
21061 }
21062 #endif
21063
21064 int
21065 main ()
21066 {
21067 return f != $ac_func;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21074   (eval $ac_link) 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_c_werror_flag"
21082                          || test ! -s conftest.err'
21083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; } &&
21088          { ac_try='test -s conftest$ac_exeext'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; }; then
21094   eval "$as_ac_var=yes"
21095 else
21096   echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 eval "$as_ac_var=no"
21100 fi
21101 rm -f conftest.err conftest.$ac_objext \
21102       conftest$ac_exeext conftest.$ac_ext
21103 fi
21104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21106 if test `eval echo '${'$as_ac_var'}'` = yes; then
21107   cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21109 _ACEOF
21110
21111 fi
21112 done
21113
21114
21115
21116 for ac_func in inet_aton inet_addr
21117 do
21118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21119 echo "$as_me:$LINENO: checking for $ac_func" >&5
21120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_var+set}\" = set"; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124   if test x$gcc_no_link = xyes; then
21125   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21127    { (exit 1); exit 1; }; }
21128 fi
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21137 #define $ac_func innocuous_$ac_func
21138
21139 /* System header to define __stub macros and hopefully few prototypes,
21140     which can conflict with char $ac_func (); below.
21141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21142     <limits.h> exists even on freestanding compilers.  */
21143
21144 #ifdef __STDC__
21145 # include <limits.h>
21146 #else
21147 # include <assert.h>
21148 #endif
21149
21150 #undef $ac_func
21151
21152 /* Override any gcc2 internal prototype to avoid an error.  */
21153 #ifdef __cplusplus
21154 extern "C"
21155 {
21156 #endif
21157 /* We use char because int might match the return type of a gcc2
21158    builtin and then its argument prototype would still apply.  */
21159 char $ac_func ();
21160 /* The GNU C library defines this for functions which it implements
21161     to always fail with ENOSYS.  Some functions are actually named
21162     something starting with __ and the normal name is an alias.  */
21163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21164 choke me
21165 #else
21166 char (*f) () = $ac_func;
21167 #endif
21168 #ifdef __cplusplus
21169 }
21170 #endif
21171
21172 int
21173 main ()
21174 {
21175 return f != $ac_func;
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest.$ac_objext conftest$ac_exeext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21182   (eval $ac_link) 2>conftest.er1
21183   ac_status=$?
21184   grep -v '^ *+' conftest.er1 >conftest.err
21185   rm -f conftest.er1
21186   cat conftest.err >&5
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); } &&
21189          { ac_try='test -z "$ac_c_werror_flag"
21190                          || test ! -s conftest.err'
21191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192   (eval $ac_try) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; } &&
21196          { ac_try='test -s conftest$ac_exeext'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; }; then
21202   eval "$as_ac_var=yes"
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 eval "$as_ac_var=no"
21208 fi
21209 rm -f conftest.err conftest.$ac_objext \
21210       conftest$ac_exeext conftest.$ac_ext
21211 fi
21212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21214 if test `eval echo '${'$as_ac_var'}'` = yes; then
21215   cat >>confdefs.h <<_ACEOF
21216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21217 _ACEOF
21218  break
21219 fi
21220 done
21221
21222
21223
21224
21225 for ac_header in unistd.h dlfcn.h sys/resource.h
21226 do
21227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21229   echo "$as_me:$LINENO: checking for $ac_header" >&5
21230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 fi
21234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21236 else
21237   # Is the header compilable?
21238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246 $ac_includes_default
21247 #include <$ac_header>
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251   (eval $ac_compile) 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -z "$ac_c_werror_flag"
21259                          || test ! -s conftest.err'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest.$ac_objext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ac_header_compiler=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ac_header_compiler=no
21277 fi
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21280 echo "${ECHO_T}$ac_header_compiler" >&6
21281
21282 # Is the header present?
21283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 #include <$ac_header>
21292 _ACEOF
21293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21295   ac_status=$?
21296   grep -v '^ *+' conftest.er1 >conftest.err
21297   rm -f conftest.er1
21298   cat conftest.err >&5
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } >/dev/null; then
21301   if test -s conftest.err; then
21302     ac_cpp_err=$ac_c_preproc_warn_flag
21303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21304   else
21305     ac_cpp_err=
21306   fi
21307 else
21308   ac_cpp_err=yes
21309 fi
21310 if test -z "$ac_cpp_err"; then
21311   ac_header_preproc=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316   ac_header_preproc=no
21317 fi
21318 rm -f conftest.err conftest.$ac_ext
21319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21320 echo "${ECHO_T}$ac_header_preproc" >&6
21321
21322 # So?  What about this header?
21323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21324   yes:no: )
21325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21329     ac_header_preproc=yes
21330     ;;
21331   no:yes:* )
21332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21344     (
21345       cat <<\_ASBOX
21346 ## ---------------------------------- ##
21347 ## Report this to the libjava lists.  ##
21348 ## ---------------------------------- ##
21349 _ASBOX
21350     ) |
21351       sed "s/^/$as_me: WARNING:     /" >&2
21352     ;;
21353 esac
21354 echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21357   echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359   eval "$as_ac_Header=\$ac_header_preproc"
21360 fi
21361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21363
21364 fi
21365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21366   cat >>confdefs.h <<_ACEOF
21367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21368 _ACEOF
21369
21370 fi
21371
21372 done
21373
21374    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21375    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21376 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21377 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   ac_check_lib_save_LIBS=$LIBS
21381 LIBS="-ldl  $LIBS"
21382 if test x$gcc_no_link = xyes; then
21383   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21385    { (exit 1); exit 1; }; }
21386 fi
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393
21394 /* Override any gcc2 internal prototype to avoid an error.  */
21395 #ifdef __cplusplus
21396 extern "C"
21397 #endif
21398 /* We use char because int might match the return type of a gcc2
21399    builtin and then its argument prototype would still apply.  */
21400 char dladdr ();
21401 int
21402 main ()
21403 {
21404 dladdr ();
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21411   (eval $ac_link) 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } &&
21418          { ac_try='test -z "$ac_c_werror_flag"
21419                          || test ! -s conftest.err'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; } &&
21425          { ac_try='test -s conftest$ac_exeext'
21426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427   (eval $ac_try) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   ac_cv_lib_dl_dladdr=yes
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 ac_cv_lib_dl_dladdr=no
21437 fi
21438 rm -f conftest.err conftest.$ac_objext \
21439       conftest$ac_exeext conftest.$ac_ext
21440 LIBS=$ac_check_lib_save_LIBS
21441 fi
21442 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21443 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21444 if test $ac_cv_lib_dl_dladdr = yes; then
21445
21446
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_DLADDR 1
21449 _ACEOF
21450
21451 else
21452
21453        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21454 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21455 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   ac_check_lib_save_LIBS=$LIBS
21459 LIBS="-ldld  $LIBS"
21460 if test x$gcc_no_link = xyes; then
21461   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21463    { (exit 1); exit 1; }; }
21464 fi
21465 cat >conftest.$ac_ext <<_ACEOF
21466 /* confdefs.h.  */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h.  */
21471
21472 /* Override any gcc2 internal prototype to avoid an error.  */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 /* We use char because int might match the return type of a gcc2
21477    builtin and then its argument prototype would still apply.  */
21478 char dladdr ();
21479 int
21480 main ()
21481 {
21482 dladdr ();
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext conftest$ac_exeext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489   (eval $ac_link) 2>conftest.er1
21490   ac_status=$?
21491   grep -v '^ *+' conftest.er1 >conftest.err
21492   rm -f conftest.er1
21493   cat conftest.err >&5
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } &&
21496          { ac_try='test -z "$ac_c_werror_flag"
21497                          || test ! -s conftest.err'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; } &&
21503          { ac_try='test -s conftest$ac_exeext'
21504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505   (eval $ac_try) 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); }; }; then
21509   ac_cv_lib_dld_dladdr=yes
21510 else
21511   echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514 ac_cv_lib_dld_dladdr=no
21515 fi
21516 rm -f conftest.err conftest.$ac_objext \
21517       conftest$ac_exeext conftest.$ac_ext
21518 LIBS=$ac_check_lib_save_LIBS
21519 fi
21520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21521 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21522 if test $ac_cv_lib_dld_dladdr = yes; then
21523
21524
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_DLADDR 1
21527 _ACEOF
21528
21529 fi
21530
21531 fi
21532
21533
21534    if test x"$cross_compiling" = x"no"; then
21535      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21536 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21537 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   test "$cross_compiling" = yes &&
21541   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21542 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21543    { (exit 1); exit 1; }; }
21544 if test -r "/proc/self/exe"; then
21545   ac_cv_file__proc_self_exe=yes
21546 else
21547   ac_cv_file__proc_self_exe=no
21548 fi
21549 fi
21550 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21551 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21552 if test $ac_cv_file__proc_self_exe = yes; then
21553
21554 cat >>confdefs.h <<_ACEOF
21555 #define HAVE__PROC_SELF_EXE 1
21556 _ACEOF
21557
21558
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_PROC_SELF_EXE 1
21562 _ACEOF
21563
21564 fi
21565
21566      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21567 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21568 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   test "$cross_compiling" = yes &&
21572   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21573 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21574    { (exit 1); exit 1; }; }
21575 if test -r "/proc/self/maps"; then
21576   ac_cv_file__proc_self_maps=yes
21577 else
21578   ac_cv_file__proc_self_maps=no
21579 fi
21580 fi
21581 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21582 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21583 if test $ac_cv_file__proc_self_maps = yes; then
21584
21585 cat >>confdefs.h <<_ACEOF
21586 #define HAVE__PROC_SELF_MAPS 1
21587 _ACEOF
21588
21589
21590
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_PROC_SELF_MAPS 1
21593 _ACEOF
21594
21595 fi
21596
21597    else
21598      case $host in
21599      *-linux*)
21600
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_PROC_SELF_EXE 1
21603 _ACEOF
21604
21605
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_PROC_SELF_MAPS 1
21608 _ACEOF
21609
21610        ;;
21611      esac
21612    fi
21613
21614
21615       if test "X$prefix" = "XNONE"; then
21616     acl_final_prefix="$ac_default_prefix"
21617   else
21618     acl_final_prefix="$prefix"
21619   fi
21620   if test "X$exec_prefix" = "XNONE"; then
21621     acl_final_exec_prefix='${prefix}'
21622   else
21623     acl_final_exec_prefix="$exec_prefix"
21624   fi
21625   acl_save_prefix="$prefix"
21626   prefix="$acl_final_prefix"
21627   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21628   prefix="$acl_save_prefix"
21629
21630
21631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21632 if test "${with_gnu_ld+set}" = set; then
21633   withval="$with_gnu_ld"
21634   test "$withval" = no || with_gnu_ld=yes
21635 else
21636   with_gnu_ld=no
21637 fi;
21638 # Prepare PATH_SEPARATOR.
21639 # The user is always right.
21640 if test "${PATH_SEPARATOR+set}" != set; then
21641   echo "#! /bin/sh" >conf$$.sh
21642   echo  "exit 0"   >>conf$$.sh
21643   chmod +x conf$$.sh
21644   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21645     PATH_SEPARATOR=';'
21646   else
21647     PATH_SEPARATOR=:
21648   fi
21649   rm -f conf$$.sh
21650 fi
21651 ac_prog=ld
21652 if test "$GCC" = yes; then
21653   # Check if gcc -print-prog-name=ld gives a path.
21654   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21656   case $host in
21657   *-*-mingw*)
21658     # gcc leaves a trailing carriage return which upsets mingw
21659     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21660   *)
21661     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21662   esac
21663   case $ac_prog in
21664     # Accept absolute paths.
21665     [\\/]* | [A-Za-z]:[\\/]*)
21666       re_direlt='/[^/][^/]*/\.\./'
21667       # Canonicalize the path of ld
21668       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21669       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21670         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21671       done
21672       test -z "$LD" && LD="$ac_prog"
21673       ;;
21674   "")
21675     # If it fails, then pretend we aren't using GCC.
21676     ac_prog=ld
21677     ;;
21678   *)
21679     # If it is relative, then search for the first ld in PATH.
21680     with_gnu_ld=unknown
21681     ;;
21682   esac
21683 elif test "$with_gnu_ld" = yes; then
21684   echo "$as_me:$LINENO: checking for GNU ld" >&5
21685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21686 else
21687   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21689 fi
21690 if test "${acl_cv_path_LD+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   if test -z "$LD"; then
21694   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21695   for ac_dir in $PATH; do
21696     test -z "$ac_dir" && ac_dir=.
21697     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21698       acl_cv_path_LD="$ac_dir/$ac_prog"
21699       # Check to see if the program is GNU ld.  I'd rather use --version,
21700       # but apparently some GNU ld's only accept -v.
21701       # Break only if it was the GNU/non-GNU ld that we prefer.
21702       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21703         test "$with_gnu_ld" != no && break
21704       else
21705         test "$with_gnu_ld" != yes && break
21706       fi
21707     fi
21708   done
21709   IFS="$ac_save_ifs"
21710 else
21711   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21712 fi
21713 fi
21714
21715 LD="$acl_cv_path_LD"
21716 if test -n "$LD"; then
21717   echo "$as_me:$LINENO: result: $LD" >&5
21718 echo "${ECHO_T}$LD" >&6
21719 else
21720   echo "$as_me:$LINENO: result: no" >&5
21721 echo "${ECHO_T}no" >&6
21722 fi
21723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21725    { (exit 1); exit 1; }; }
21726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21728 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21729   echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21733   acl_cv_prog_gnu_ld=yes
21734 else
21735   acl_cv_prog_gnu_ld=no
21736 fi
21737 fi
21738 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21739 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21740 with_gnu_ld=$acl_cv_prog_gnu_ld
21741
21742
21743
21744                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21745 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21746 if test "${acl_cv_rpath+set}" = set; then
21747   echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749
21750     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21751     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21752     . ./conftest.sh
21753     rm -f ./conftest.sh
21754     acl_cv_rpath=done
21755
21756 fi
21757 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21758 echo "${ECHO_T}$acl_cv_rpath" >&6
21759   wl="$acl_cv_wl"
21760   libext="$acl_cv_libext"
21761   shlibext="$acl_cv_shlibext"
21762   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21763   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21764   hardcode_direct="$acl_cv_hardcode_direct"
21765   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21766     # Check whether --enable-rpath or --disable-rpath was given.
21767 if test "${enable_rpath+set}" = set; then
21768   enableval="$enable_rpath"
21769   :
21770 else
21771   enable_rpath=yes
21772 fi;
21773
21774
21775
21776
21777
21778
21779
21780     use_additional=yes
21781
21782   acl_save_prefix="$prefix"
21783   prefix="$acl_final_prefix"
21784   acl_save_exec_prefix="$exec_prefix"
21785   exec_prefix="$acl_final_exec_prefix"
21786
21787     eval additional_includedir=\"$includedir\"
21788     eval additional_libdir=\"$libdir\"
21789
21790   exec_prefix="$acl_save_exec_prefix"
21791   prefix="$acl_save_prefix"
21792
21793
21794 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21795 if test "${with_libiconv_prefix+set}" = set; then
21796   withval="$with_libiconv_prefix"
21797
21798     if test "X$withval" = "Xno"; then
21799       use_additional=no
21800     else
21801       if test "X$withval" = "X"; then
21802
21803   acl_save_prefix="$prefix"
21804   prefix="$acl_final_prefix"
21805   acl_save_exec_prefix="$exec_prefix"
21806   exec_prefix="$acl_final_exec_prefix"
21807
21808           eval additional_includedir=\"$includedir\"
21809           eval additional_libdir=\"$libdir\"
21810
21811   exec_prefix="$acl_save_exec_prefix"
21812   prefix="$acl_save_prefix"
21813
21814       else
21815         additional_includedir="$withval/include"
21816         additional_libdir="$withval/lib"
21817       fi
21818     fi
21819
21820 fi;
21821       LIBICONV=
21822   LTLIBICONV=
21823   INCICONV=
21824   rpathdirs=
21825   ltrpathdirs=
21826   names_already_handled=
21827   names_next_round='iconv '
21828   while test -n "$names_next_round"; do
21829     names_this_round="$names_next_round"
21830     names_next_round=
21831     for name in $names_this_round; do
21832       already_handled=
21833       for n in $names_already_handled; do
21834         if test "$n" = "$name"; then
21835           already_handled=yes
21836           break
21837         fi
21838       done
21839       if test -z "$already_handled"; then
21840         names_already_handled="$names_already_handled $name"
21841                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21842         eval value=\"\$HAVE_LIB$uppername\"
21843         if test -n "$value"; then
21844           if test "$value" = yes; then
21845             eval value=\"\$LIB$uppername\"
21846             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21847             eval value=\"\$LTLIB$uppername\"
21848             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21849           else
21850                                     :
21851           fi
21852         else
21853                               found_dir=
21854           found_la=
21855           found_so=
21856           found_a=
21857           if test $use_additional = yes; then
21858             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21859               found_dir="$additional_libdir"
21860               found_so="$additional_libdir/lib$name.$shlibext"
21861               if test -f "$additional_libdir/lib$name.la"; then
21862                 found_la="$additional_libdir/lib$name.la"
21863               fi
21864             else
21865               if test -f "$additional_libdir/lib$name.$libext"; then
21866                 found_dir="$additional_libdir"
21867                 found_a="$additional_libdir/lib$name.$libext"
21868                 if test -f "$additional_libdir/lib$name.la"; then
21869                   found_la="$additional_libdir/lib$name.la"
21870                 fi
21871               fi
21872             fi
21873           fi
21874           if test "X$found_dir" = "X"; then
21875             for x in $LDFLAGS $LTLIBICONV; do
21876
21877   acl_save_prefix="$prefix"
21878   prefix="$acl_final_prefix"
21879   acl_save_exec_prefix="$exec_prefix"
21880   exec_prefix="$acl_final_exec_prefix"
21881   eval x=\"$x\"
21882   exec_prefix="$acl_save_exec_prefix"
21883   prefix="$acl_save_prefix"
21884
21885               case "$x" in
21886                 -L*)
21887                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21888                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21889                     found_dir="$dir"
21890                     found_so="$dir/lib$name.$shlibext"
21891                     if test -f "$dir/lib$name.la"; then
21892                       found_la="$dir/lib$name.la"
21893                     fi
21894                   else
21895                     if test -f "$dir/lib$name.$libext"; then
21896                       found_dir="$dir"
21897                       found_a="$dir/lib$name.$libext"
21898                       if test -f "$dir/lib$name.la"; then
21899                         found_la="$dir/lib$name.la"
21900                       fi
21901                     fi
21902                   fi
21903                   ;;
21904               esac
21905               if test "X$found_dir" != "X"; then
21906                 break
21907               fi
21908             done
21909           fi
21910           if test "X$found_dir" != "X"; then
21911                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21912             if test "X$found_so" != "X"; then
21913                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21914                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21915               else
21916                                                                                 haveit=
21917                 for x in $ltrpathdirs; do
21918                   if test "X$x" = "X$found_dir"; then
21919                     haveit=yes
21920                     break
21921                   fi
21922                 done
21923                 if test -z "$haveit"; then
21924                   ltrpathdirs="$ltrpathdirs $found_dir"
21925                 fi
21926                                 if test "$hardcode_direct" = yes; then
21927                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21928                 else
21929                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21930                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21931                                                             haveit=
21932                     for x in $rpathdirs; do
21933                       if test "X$x" = "X$found_dir"; then
21934                         haveit=yes
21935                         break
21936                       fi
21937                     done
21938                     if test -z "$haveit"; then
21939                       rpathdirs="$rpathdirs $found_dir"
21940                     fi
21941                   else
21942                                                                                 haveit=
21943                     for x in $LDFLAGS $LIBICONV; do
21944
21945   acl_save_prefix="$prefix"
21946   prefix="$acl_final_prefix"
21947   acl_save_exec_prefix="$exec_prefix"
21948   exec_prefix="$acl_final_exec_prefix"
21949   eval x=\"$x\"
21950   exec_prefix="$acl_save_exec_prefix"
21951   prefix="$acl_save_prefix"
21952
21953                       if test "X$x" = "X-L$found_dir"; then
21954                         haveit=yes
21955                         break
21956                       fi
21957                     done
21958                     if test -z "$haveit"; then
21959                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21960                     fi
21961                     if test "$hardcode_minus_L" != no; then
21962                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21963                     else
21964                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21965                     fi
21966                   fi
21967                 fi
21968               fi
21969             else
21970               if test "X$found_a" != "X"; then
21971                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21972               else
21973                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21974               fi
21975             fi
21976                         additional_includedir=
21977             case "$found_dir" in
21978               */lib | */lib/)
21979                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21980                 additional_includedir="$basedir/include"
21981                 ;;
21982             esac
21983             if test "X$additional_includedir" != "X"; then
21984                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21985                 haveit=
21986                 if test "X$additional_includedir" = "X/usr/local/include"; then
21987                   if test -n "$GCC"; then
21988                     case $host_os in
21989                       linux*) haveit=yes;;
21990                     esac
21991                   fi
21992                 fi
21993                 if test -z "$haveit"; then
21994                   for x in $CPPFLAGS $INCICONV; do
21995
21996   acl_save_prefix="$prefix"
21997   prefix="$acl_final_prefix"
21998   acl_save_exec_prefix="$exec_prefix"
21999   exec_prefix="$acl_final_exec_prefix"
22000   eval x=\"$x\"
22001   exec_prefix="$acl_save_exec_prefix"
22002   prefix="$acl_save_prefix"
22003
22004                     if test "X$x" = "X-I$additional_includedir"; then
22005                       haveit=yes
22006                       break
22007                     fi
22008                   done
22009                   if test -z "$haveit"; then
22010                     if test -d "$additional_includedir"; then
22011                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22012                     fi
22013                   fi
22014                 fi
22015               fi
22016             fi
22017                         if test -n "$found_la"; then
22018                                                         save_libdir="$libdir"
22019               case "$found_la" in
22020                 */* | *\\*) . "$found_la" ;;
22021                 *) . "./$found_la" ;;
22022               esac
22023               libdir="$save_libdir"
22024                             for dep in $dependency_libs; do
22025                 case "$dep" in
22026                   -L*)
22027                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22028                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22029                       haveit=
22030                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22031                         if test -n "$GCC"; then
22032                           case $host_os in
22033                             linux*) haveit=yes;;
22034                           esac
22035                         fi
22036                       fi
22037                       if test -z "$haveit"; then
22038                         haveit=
22039                         for x in $LDFLAGS $LIBICONV; do
22040
22041   acl_save_prefix="$prefix"
22042   prefix="$acl_final_prefix"
22043   acl_save_exec_prefix="$exec_prefix"
22044   exec_prefix="$acl_final_exec_prefix"
22045   eval x=\"$x\"
22046   exec_prefix="$acl_save_exec_prefix"
22047   prefix="$acl_save_prefix"
22048
22049                           if test "X$x" = "X-L$additional_libdir"; then
22050                             haveit=yes
22051                             break
22052                           fi
22053                         done
22054                         if test -z "$haveit"; then
22055                           if test -d "$additional_libdir"; then
22056                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22057                           fi
22058                         fi
22059                         haveit=
22060                         for x in $LDFLAGS $LTLIBICONV; do
22061
22062   acl_save_prefix="$prefix"
22063   prefix="$acl_final_prefix"
22064   acl_save_exec_prefix="$exec_prefix"
22065   exec_prefix="$acl_final_exec_prefix"
22066   eval x=\"$x\"
22067   exec_prefix="$acl_save_exec_prefix"
22068   prefix="$acl_save_prefix"
22069
22070                           if test "X$x" = "X-L$additional_libdir"; then
22071                             haveit=yes
22072                             break
22073                           fi
22074                         done
22075                         if test -z "$haveit"; then
22076                           if test -d "$additional_libdir"; then
22077                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22078                           fi
22079                         fi
22080                       fi
22081                     fi
22082                     ;;
22083                   -R*)
22084                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22085                     if test "$enable_rpath" != no; then
22086                                                                   haveit=
22087                       for x in $rpathdirs; do
22088                         if test "X$x" = "X$dir"; then
22089                           haveit=yes
22090                           break
22091                         fi
22092                       done
22093                       if test -z "$haveit"; then
22094                         rpathdirs="$rpathdirs $dir"
22095                       fi
22096                                                                   haveit=
22097                       for x in $ltrpathdirs; do
22098                         if test "X$x" = "X$dir"; then
22099                           haveit=yes
22100                           break
22101                         fi
22102                       done
22103                       if test -z "$haveit"; then
22104                         ltrpathdirs="$ltrpathdirs $dir"
22105                       fi
22106                     fi
22107                     ;;
22108                   -l*)
22109                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22110                     ;;
22111                   *.la)
22112                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22113                     ;;
22114                   *)
22115                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22116                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22117                     ;;
22118                 esac
22119               done
22120             fi
22121           else
22122                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22123             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22124           fi
22125         fi
22126       fi
22127     done
22128   done
22129   if test "X$rpathdirs" != "X"; then
22130     if test -n "$hardcode_libdir_separator"; then
22131                         alldirs=
22132       for found_dir in $rpathdirs; do
22133         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22134       done
22135             acl_save_libdir="$libdir"
22136       libdir="$alldirs"
22137       eval flag=\"$hardcode_libdir_flag_spec\"
22138       libdir="$acl_save_libdir"
22139       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22140     else
22141             for found_dir in $rpathdirs; do
22142         acl_save_libdir="$libdir"
22143         libdir="$found_dir"
22144         eval flag=\"$hardcode_libdir_flag_spec\"
22145         libdir="$acl_save_libdir"
22146         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22147       done
22148     fi
22149   fi
22150   if test "X$ltrpathdirs" != "X"; then
22151             for found_dir in $ltrpathdirs; do
22152       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22153     done
22154   fi
22155
22156
22157
22158
22159
22160
22161
22162           am_save_CPPFLAGS="$CPPFLAGS"
22163
22164   for element in $INCICONV; do
22165     haveit=
22166     for x in $CPPFLAGS; do
22167
22168   acl_save_prefix="$prefix"
22169   prefix="$acl_final_prefix"
22170   acl_save_exec_prefix="$exec_prefix"
22171   exec_prefix="$acl_final_exec_prefix"
22172   eval x=\"$x\"
22173   exec_prefix="$acl_save_exec_prefix"
22174   prefix="$acl_save_prefix"
22175
22176       if test "X$x" = "X$element"; then
22177         haveit=yes
22178         break
22179       fi
22180     done
22181     if test -z "$haveit"; then
22182       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22183     fi
22184   done
22185
22186
22187   echo "$as_me:$LINENO: checking for iconv" >&5
22188 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22189 if test "${am_cv_func_iconv+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192
22193     am_cv_func_iconv="no, consider installing GNU libiconv"
22194     am_cv_lib_iconv=no
22195     if test x$gcc_no_link = xyes; then
22196   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22198    { (exit 1); exit 1; }; }
22199 fi
22200 cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 #include <stdlib.h>
22207 #include <iconv.h>
22208 int
22209 main ()
22210 {
22211 iconv_t cd = iconv_open("","");
22212        iconv(cd,NULL,NULL,NULL,NULL);
22213        iconv_close(cd);
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220   (eval $ac_link) 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } &&
22227          { ac_try='test -z "$ac_c_werror_flag"
22228                          || test ! -s conftest.err'
22229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230   (eval $ac_try) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); }; } &&
22234          { ac_try='test -s conftest$ac_exeext'
22235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236   (eval $ac_try) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); }; }; then
22240   am_cv_func_iconv=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 fi
22246 rm -f conftest.err conftest.$ac_objext \
22247       conftest$ac_exeext conftest.$ac_ext
22248     if test "$am_cv_func_iconv" != yes; then
22249       am_save_LIBS="$LIBS"
22250       LIBS="$LIBS $LIBICONV"
22251       if test x$gcc_no_link = xyes; then
22252   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22254    { (exit 1); exit 1; }; }
22255 fi
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h.  */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h.  */
22262 #include <stdlib.h>
22263 #include <iconv.h>
22264 int
22265 main ()
22266 {
22267 iconv_t cd = iconv_open("","");
22268          iconv(cd,NULL,NULL,NULL,NULL);
22269          iconv_close(cd);
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext conftest$ac_exeext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276   (eval $ac_link) 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } &&
22283          { ac_try='test -z "$ac_c_werror_flag"
22284                          || test ! -s conftest.err'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; } &&
22290          { ac_try='test -s conftest$ac_exeext'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }; then
22296   am_cv_lib_iconv=yes
22297         am_cv_func_iconv=yes
22298 else
22299   echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302 fi
22303 rm -f conftest.err conftest.$ac_objext \
22304       conftest$ac_exeext conftest.$ac_ext
22305       LIBS="$am_save_LIBS"
22306     fi
22307
22308 fi
22309 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22310 echo "${ECHO_T}$am_cv_func_iconv" >&6
22311   if test "$am_cv_func_iconv" = yes; then
22312
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_ICONV 1
22315 _ACEOF
22316
22317   fi
22318   if test "$am_cv_lib_iconv" = yes; then
22319     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22320 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22321     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22322 echo "${ECHO_T}$LIBICONV" >&6
22323   else
22324             CPPFLAGS="$am_save_CPPFLAGS"
22325     LIBICONV=
22326     LTLIBICONV=
22327   fi
22328
22329
22330
22331   if test "$am_cv_func_iconv" = yes; then
22332     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22333 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22334     if test "${am_cv_proto_iconv+set}" = set; then
22335   echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337
22338       cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h.  */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h.  */
22344
22345 #include <stdlib.h>
22346 #include <iconv.h>
22347 extern
22348 #ifdef __cplusplus
22349 "C"
22350 #endif
22351 #if defined(__STDC__) || defined(__cplusplus)
22352 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22353 #else
22354 size_t iconv();
22355 #endif
22356
22357 int
22358 main ()
22359 {
22360
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22367   (eval $ac_compile) 2>conftest.er1
22368   ac_status=$?
22369   grep -v '^ *+' conftest.er1 >conftest.err
22370   rm -f conftest.er1
22371   cat conftest.err >&5
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); } &&
22374          { ac_try='test -z "$ac_c_werror_flag"
22375                          || test ! -s conftest.err'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; } &&
22381          { ac_try='test -s conftest.$ac_objext'
22382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383   (eval $ac_try) 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); }; }; then
22387   am_cv_proto_iconv_arg1=""
22388 else
22389   echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392 am_cv_proto_iconv_arg1="const"
22393 fi
22394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22395       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);"
22396 fi
22397
22398     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22399     echo "$as_me:$LINENO: result: ${ac_t:-
22400          }$am_cv_proto_iconv" >&5
22401 echo "${ECHO_T}${ac_t:-
22402          }$am_cv_proto_iconv" >&6
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define ICONV_CONST $am_cv_proto_iconv_arg1
22406 _ACEOF
22407
22408   fi
22409
22410
22411   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22412 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22413 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22414   echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416   if test x$gcc_no_link = xyes; then
22417   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22419    { (exit 1); exit 1; }; }
22420 fi
22421 cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h.  */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h.  */
22427 #include <locale.h>
22428 int
22429 main ()
22430 {
22431 return LC_MESSAGES
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext conftest$ac_exeext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438   (eval $ac_link) 2>conftest.er1
22439   ac_status=$?
22440   grep -v '^ *+' conftest.er1 >conftest.err
22441   rm -f conftest.er1
22442   cat conftest.err >&5
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); } &&
22445          { ac_try='test -z "$ac_c_werror_flag"
22446                          || test ! -s conftest.err'
22447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448   (eval $ac_try) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; } &&
22452          { ac_try='test -s conftest$ac_exeext'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; }; then
22458   am_cv_val_LC_MESSAGES=yes
22459 else
22460   echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22462
22463 am_cv_val_LC_MESSAGES=no
22464 fi
22465 rm -f conftest.err conftest.$ac_objext \
22466       conftest$ac_exeext conftest.$ac_ext
22467 fi
22468 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22469 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22470   if test $am_cv_val_LC_MESSAGES = yes; then
22471
22472 cat >>confdefs.h <<\_ACEOF
22473 #define HAVE_LC_MESSAGES 1
22474 _ACEOF
22475
22476   fi
22477
22478    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22480 if test "${ac_cv_struct_tm+set}" = set; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 #include <sys/types.h>
22490 #include <time.h>
22491
22492 int
22493 main ()
22494 {
22495 struct tm *tp; tp->tm_sec;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22502   (eval $ac_compile) 2>conftest.er1
22503   ac_status=$?
22504   grep -v '^ *+' conftest.er1 >conftest.err
22505   rm -f conftest.er1
22506   cat conftest.err >&5
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } &&
22509          { ac_try='test -z "$ac_c_werror_flag"
22510                          || test ! -s conftest.err'
22511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512   (eval $ac_try) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; } &&
22516          { ac_try='test -s conftest.$ac_objext'
22517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; }; then
22522   ac_cv_struct_tm=time.h
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527 ac_cv_struct_tm=sys/time.h
22528 fi
22529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22530 fi
22531 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22532 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22533 if test $ac_cv_struct_tm = sys/time.h; then
22534
22535 cat >>confdefs.h <<\_ACEOF
22536 #define TM_IN_SYS_TIME 1
22537 _ACEOF
22538
22539 fi
22540
22541 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22542 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22543 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22544   echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546   cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552 #include <sys/types.h>
22553 #include <$ac_cv_struct_tm>
22554
22555
22556 int
22557 main ()
22558 {
22559 static struct tm ac_aggr;
22560 if (ac_aggr.tm_zone)
22561 return 0;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568   (eval $ac_compile) 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -z "$ac_c_werror_flag"
22576                          || test ! -s conftest.err'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; } &&
22582          { ac_try='test -s conftest.$ac_objext'
22583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584   (eval $ac_try) 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; }; then
22588   ac_cv_member_struct_tm_tm_zone=yes
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 #include <sys/types.h>
22600 #include <$ac_cv_struct_tm>
22601
22602
22603 int
22604 main ()
22605 {
22606 static struct tm ac_aggr;
22607 if (sizeof ac_aggr.tm_zone)
22608 return 0;
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615   (eval $ac_compile) 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } &&
22622          { ac_try='test -z "$ac_c_werror_flag"
22623                          || test ! -s conftest.err'
22624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625   (eval $ac_try) 2>&5
22626   ac_status=$?
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); }; } &&
22629          { ac_try='test -s conftest.$ac_objext'
22630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631   (eval $ac_try) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); }; }; then
22635   ac_cv_member_struct_tm_tm_zone=yes
22636 else
22637   echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ac_cv_member_struct_tm_tm_zone=no
22641 fi
22642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22643 fi
22644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22649
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_STRUCT_TM_TM_ZONE 1
22652 _ACEOF
22653
22654
22655 fi
22656
22657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22658
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_TM_ZONE 1
22661 _ACEOF
22662
22663 else
22664   echo "$as_me:$LINENO: checking for tzname" >&5
22665 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22666 if test "${ac_cv_var_tzname+set}" = set; then
22667   echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669   if test x$gcc_no_link = xyes; then
22670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22672    { (exit 1); exit 1; }; }
22673 fi
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h.  */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h.  */
22680 #include <time.h>
22681 #ifndef tzname /* For SGI.  */
22682 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22683 #endif
22684
22685 int
22686 main ()
22687 {
22688 atoi(*tzname);
22689   ;
22690   return 0;
22691 }
22692 _ACEOF
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22695   (eval $ac_link) 2>conftest.er1
22696   ac_status=$?
22697   grep -v '^ *+' conftest.er1 >conftest.err
22698   rm -f conftest.er1
22699   cat conftest.err >&5
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); } &&
22702          { ac_try='test -z "$ac_c_werror_flag"
22703                          || test ! -s conftest.err'
22704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705   (eval $ac_try) 2>&5
22706   ac_status=$?
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); }; } &&
22709          { ac_try='test -s conftest$ac_exeext'
22710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711   (eval $ac_try) 2>&5
22712   ac_status=$?
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); }; }; then
22715   ac_cv_var_tzname=yes
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22719
22720 ac_cv_var_tzname=no
22721 fi
22722 rm -f conftest.err conftest.$ac_objext \
22723       conftest$ac_exeext conftest.$ac_ext
22724 fi
22725 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22726 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22727   if test $ac_cv_var_tzname = yes; then
22728
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_TZNAME 1
22731 _ACEOF
22732
22733   fi
22734 fi
22735
22736
22737
22738 for ac_func in gethostbyname_r
22739 do
22740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22741 echo "$as_me:$LINENO: checking for $ac_func" >&5
22742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22743 if eval "test \"\${$as_ac_var+set}\" = set"; then
22744   echo $ECHO_N "(cached) $ECHO_C" >&6
22745 else
22746   if test x$gcc_no_link = xyes; then
22747   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22749    { (exit 1); exit 1; }; }
22750 fi
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22759 #define $ac_func innocuous_$ac_func
22760
22761 /* System header to define __stub macros and hopefully few prototypes,
22762     which can conflict with char $ac_func (); below.
22763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22764     <limits.h> exists even on freestanding compilers.  */
22765
22766 #ifdef __STDC__
22767 # include <limits.h>
22768 #else
22769 # include <assert.h>
22770 #endif
22771
22772 #undef $ac_func
22773
22774 /* Override any gcc2 internal prototype to avoid an error.  */
22775 #ifdef __cplusplus
22776 extern "C"
22777 {
22778 #endif
22779 /* We use char because int might match the return type of a gcc2
22780    builtin and then its argument prototype would still apply.  */
22781 char $ac_func ();
22782 /* The GNU C library defines this for functions which it implements
22783     to always fail with ENOSYS.  Some functions are actually named
22784     something starting with __ and the normal name is an alias.  */
22785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22786 choke me
22787 #else
22788 char (*f) () = $ac_func;
22789 #endif
22790 #ifdef __cplusplus
22791 }
22792 #endif
22793
22794 int
22795 main ()
22796 {
22797 return f != $ac_func;
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22804   (eval $ac_link) 2>conftest.er1
22805   ac_status=$?
22806   grep -v '^ *+' conftest.er1 >conftest.err
22807   rm -f conftest.er1
22808   cat conftest.err >&5
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); } &&
22811          { ac_try='test -z "$ac_c_werror_flag"
22812                          || test ! -s conftest.err'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; } &&
22818          { ac_try='test -s conftest$ac_exeext'
22819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820   (eval $ac_try) 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   eval "$as_ac_var=yes"
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 eval "$as_ac_var=no"
22830 fi
22831 rm -f conftest.err conftest.$ac_objext \
22832       conftest$ac_exeext conftest.$ac_ext
22833 fi
22834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22836 if test `eval echo '${'$as_ac_var'}'` = yes; then
22837   cat >>confdefs.h <<_ACEOF
22838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22839 _ACEOF
22840
22841
22842 cat >>confdefs.h <<\_ACEOF
22843 #define HAVE_GETHOSTBYNAME_R 1
22844 _ACEOF
22845
22846      # There are two different kinds of gethostbyname_r.
22847      # We look for the one that returns `int'.
22848      # Hopefully this check is robust enough.
22849      cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h.  */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h.  */
22855 #include <netdb.h>
22856
22857 _ACEOF
22858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22859   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22860
22861
22862 cat >>confdefs.h <<\_ACEOF
22863 #define GETHOSTBYNAME_R_RETURNS_INT 1
22864 _ACEOF
22865
22866 fi
22867 rm -f conftest*
22868
22869
22870      case " $GCINCS " in
22871      *" -D_REENTRANT "*) ;;
22872      *)
22873                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22874 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22875 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22876   echo $ECHO_N "(cached) $ECHO_C" >&6
22877 else
22878    ac_ext=cc
22879 ac_cpp='$CXXCPP $CPPFLAGS'
22880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22883
22884           cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890 #include <netdb.h>
22891 int
22892 main ()
22893 {
22894 gethostbyname_r("", 0, 0);
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901   (eval $ac_compile) 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -z "$ac_cxx_werror_flag"
22909                          || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest.$ac_objext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   libjava_cv_gethostbyname_r_needs_reentrant=no
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926                 CPPFLAGS_SAVE="$CPPFLAGS"
22927                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22928                 cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 #include <netdb.h>
22935 int
22936 main ()
22937 {
22938 gethostbyname_r("", 0, 0);
22939   ;
22940   return 0;
22941 }
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22945   (eval $ac_compile) 2>conftest.er1
22946   ac_status=$?
22947   grep -v '^ *+' conftest.er1 >conftest.err
22948   rm -f conftest.er1
22949   cat conftest.err >&5
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); } &&
22952          { ac_try='test -z "$ac_cxx_werror_flag"
22953                          || test ! -s conftest.err'
22954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955   (eval $ac_try) 2>&5
22956   ac_status=$?
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); }; } &&
22959          { ac_try='test -s conftest.$ac_objext'
22960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961   (eval $ac_try) 2>&5
22962   ac_status=$?
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); }; }; then
22965   libjava_cv_gethostbyname_r_needs_reentrant=yes
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970 libjava_cv_gethostbyname_r_needs_reentrant=fail
22971 fi
22972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22973                 CPPFLAGS="$CPPFLAGS_SAVE"
22974
22975 fi
22976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22977           ac_ext=c
22978 ac_cpp='$CPP $CPPFLAGS'
22979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22982
22983
22984 fi
22985 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22986 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22987         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22988
22989 cat >>confdefs.h <<\_ACEOF
22990 #define _REENTRANT 1
22991 _ACEOF
22992
22993         fi
22994      ;;
22995      esac
22996
22997      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22998 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22999 if test "${libjava_cv_struct_hostent_data+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002         cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008
23009 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
23010 # define _REENTRANT 1
23011 #endif
23012 #include <netdb.h>
23013 int
23014 main ()
23015 {
23016 struct hostent_data data;
23017   ;
23018   return 0;
23019 }
23020 _ACEOF
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023   (eval $ac_compile) 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } &&
23030          { ac_try='test -z "$ac_c_werror_flag"
23031                          || test ! -s conftest.err'
23032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; } &&
23037          { ac_try='test -s conftest.$ac_objext'
23038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039   (eval $ac_try) 2>&5
23040   ac_status=$?
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); }; }; then
23043   libjava_cv_struct_hostent_data=yes
23044 else
23045   echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23047
23048 libjava_cv_struct_hostent_data=no
23049 fi
23050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23051 fi
23052 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
23053 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
23054      if test "x$libjava_cv_struct_hostent_data" = xyes; then
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_STRUCT_HOSTENT_DATA 1
23058 _ACEOF
23059
23060      fi
23061
23062 fi
23063 done
23064
23065
23066    # FIXME: libjava source code expects to find a prototype for
23067    # gethostbyaddr_r in netdb.h.  The outer check ensures that
23068    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
23069    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
23070    # linkage check is enough, yet C++ code requires proper prototypes.)
23071    cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h.  */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h.  */
23077 #include <netdb.h>
23078
23079 _ACEOF
23080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23081   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
23082
23083
23084 for ac_func in gethostbyaddr_r
23085 do
23086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23087 echo "$as_me:$LINENO: checking for $ac_func" >&5
23088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23089 if eval "test \"\${$as_ac_var+set}\" = set"; then
23090   echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092   if test x$gcc_no_link = xyes; then
23093   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23095    { (exit 1); exit 1; }; }
23096 fi
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23105 #define $ac_func innocuous_$ac_func
23106
23107 /* System header to define __stub macros and hopefully few prototypes,
23108     which can conflict with char $ac_func (); below.
23109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23110     <limits.h> exists even on freestanding compilers.  */
23111
23112 #ifdef __STDC__
23113 # include <limits.h>
23114 #else
23115 # include <assert.h>
23116 #endif
23117
23118 #undef $ac_func
23119
23120 /* Override any gcc2 internal prototype to avoid an error.  */
23121 #ifdef __cplusplus
23122 extern "C"
23123 {
23124 #endif
23125 /* We use char because int might match the return type of a gcc2
23126    builtin and then its argument prototype would still apply.  */
23127 char $ac_func ();
23128 /* The GNU C library defines this for functions which it implements
23129     to always fail with ENOSYS.  Some functions are actually named
23130     something starting with __ and the normal name is an alias.  */
23131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23132 choke me
23133 #else
23134 char (*f) () = $ac_func;
23135 #endif
23136 #ifdef __cplusplus
23137 }
23138 #endif
23139
23140 int
23141 main ()
23142 {
23143 return f != $ac_func;
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150   (eval $ac_link) 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } &&
23157          { ac_try='test -z "$ac_c_werror_flag"
23158                          || test ! -s conftest.err'
23159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160   (eval $ac_try) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; } &&
23164          { ac_try='test -s conftest$ac_exeext'
23165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); }; }; then
23170   eval "$as_ac_var=yes"
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 eval "$as_ac_var=no"
23176 fi
23177 rm -f conftest.err conftest.$ac_objext \
23178       conftest$ac_exeext conftest.$ac_ext
23179 fi
23180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23182 if test `eval echo '${'$as_ac_var'}'` = yes; then
23183   cat >>confdefs.h <<_ACEOF
23184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23185 _ACEOF
23186
23187
23188 cat >>confdefs.h <<\_ACEOF
23189 #define HAVE_GETHOSTBYADDR_R 1
23190 _ACEOF
23191
23192      # There are two different kinds of gethostbyaddr_r.
23193      # We look for the one that returns `int'.
23194      # Hopefully this check is robust enough.
23195      cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201 #include <netdb.h>
23202
23203 _ACEOF
23204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23205   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23206
23207
23208 cat >>confdefs.h <<\_ACEOF
23209 #define GETHOSTBYADDR_R_RETURNS_INT 1
23210 _ACEOF
23211
23212 fi
23213 rm -f conftest*
23214
23215 fi
23216 done
23217
23218 fi
23219 rm -f conftest*
23220
23221
23222
23223 for ac_func in gethostname
23224 do
23225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226 echo "$as_me:$LINENO: checking for $ac_func" >&5
23227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23228 if eval "test \"\${$as_ac_var+set}\" = set"; then
23229   echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231   if test x$gcc_no_link = xyes; then
23232   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23234    { (exit 1); exit 1; }; }
23235 fi
23236 cat >conftest.$ac_ext <<_ACEOF
23237 /* confdefs.h.  */
23238 _ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h.  */
23242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23244 #define $ac_func innocuous_$ac_func
23245
23246 /* System header to define __stub macros and hopefully few prototypes,
23247     which can conflict with char $ac_func (); below.
23248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23249     <limits.h> exists even on freestanding compilers.  */
23250
23251 #ifdef __STDC__
23252 # include <limits.h>
23253 #else
23254 # include <assert.h>
23255 #endif
23256
23257 #undef $ac_func
23258
23259 /* Override any gcc2 internal prototype to avoid an error.  */
23260 #ifdef __cplusplus
23261 extern "C"
23262 {
23263 #endif
23264 /* We use char because int might match the return type of a gcc2
23265    builtin and then its argument prototype would still apply.  */
23266 char $ac_func ();
23267 /* The GNU C library defines this for functions which it implements
23268     to always fail with ENOSYS.  Some functions are actually named
23269     something starting with __ and the normal name is an alias.  */
23270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23271 choke me
23272 #else
23273 char (*f) () = $ac_func;
23274 #endif
23275 #ifdef __cplusplus
23276 }
23277 #endif
23278
23279 int
23280 main ()
23281 {
23282 return f != $ac_func;
23283   ;
23284   return 0;
23285 }
23286 _ACEOF
23287 rm -f conftest.$ac_objext conftest$ac_exeext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23289   (eval $ac_link) 2>conftest.er1
23290   ac_status=$?
23291   grep -v '^ *+' conftest.er1 >conftest.err
23292   rm -f conftest.er1
23293   cat conftest.err >&5
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); } &&
23296          { ac_try='test -z "$ac_c_werror_flag"
23297                          || test ! -s conftest.err'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; } &&
23303          { ac_try='test -s conftest$ac_exeext'
23304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; }; then
23309   eval "$as_ac_var=yes"
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314 eval "$as_ac_var=no"
23315 fi
23316 rm -f conftest.err conftest.$ac_objext \
23317       conftest$ac_exeext conftest.$ac_ext
23318 fi
23319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23321 if test `eval echo '${'$as_ac_var'}'` = yes; then
23322   cat >>confdefs.h <<_ACEOF
23323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23324 _ACEOF
23325
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_GETHOSTNAME 1
23329 _ACEOF
23330
23331      cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 #include <unistd.h>
23338
23339 _ACEOF
23340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23341   $EGREP "gethostname" >/dev/null 2>&1; then
23342
23343
23344 cat >>confdefs.h <<\_ACEOF
23345 #define HAVE_GETHOSTNAME_DECL 1
23346 _ACEOF
23347
23348 fi
23349 rm -f conftest*
23350
23351 fi
23352 done
23353
23354
23355
23356 for ac_func in usleep
23357 do
23358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23359 echo "$as_me:$LINENO: checking for $ac_func" >&5
23360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23361 if eval "test \"\${$as_ac_var+set}\" = set"; then
23362   echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364   if test x$gcc_no_link = xyes; then
23365   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23367    { (exit 1); exit 1; }; }
23368 fi
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23377 #define $ac_func innocuous_$ac_func
23378
23379 /* System header to define __stub macros and hopefully few prototypes,
23380     which can conflict with char $ac_func (); below.
23381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23382     <limits.h> exists even on freestanding compilers.  */
23383
23384 #ifdef __STDC__
23385 # include <limits.h>
23386 #else
23387 # include <assert.h>
23388 #endif
23389
23390 #undef $ac_func
23391
23392 /* Override any gcc2 internal prototype to avoid an error.  */
23393 #ifdef __cplusplus
23394 extern "C"
23395 {
23396 #endif
23397 /* We use char because int might match the return type of a gcc2
23398    builtin and then its argument prototype would still apply.  */
23399 char $ac_func ();
23400 /* The GNU C library defines this for functions which it implements
23401     to always fail with ENOSYS.  Some functions are actually named
23402     something starting with __ and the normal name is an alias.  */
23403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23404 choke me
23405 #else
23406 char (*f) () = $ac_func;
23407 #endif
23408 #ifdef __cplusplus
23409 }
23410 #endif
23411
23412 int
23413 main ()
23414 {
23415 return f != $ac_func;
23416   ;
23417   return 0;
23418 }
23419 _ACEOF
23420 rm -f conftest.$ac_objext conftest$ac_exeext
23421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23422   (eval $ac_link) 2>conftest.er1
23423   ac_status=$?
23424   grep -v '^ *+' conftest.er1 >conftest.err
23425   rm -f conftest.er1
23426   cat conftest.err >&5
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); } &&
23429          { ac_try='test -z "$ac_c_werror_flag"
23430                          || test ! -s conftest.err'
23431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432   (eval $ac_try) 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; } &&
23436          { ac_try='test -s conftest$ac_exeext'
23437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438   (eval $ac_try) 2>&5
23439   ac_status=$?
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); }; }; then
23442   eval "$as_ac_var=yes"
23443 else
23444   echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447 eval "$as_ac_var=no"
23448 fi
23449 rm -f conftest.err conftest.$ac_objext \
23450       conftest$ac_exeext conftest.$ac_ext
23451 fi
23452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23454 if test `eval echo '${'$as_ac_var'}'` = yes; then
23455   cat >>confdefs.h <<_ACEOF
23456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23457 _ACEOF
23458
23459      cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 #include <unistd.h>
23466
23467 _ACEOF
23468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23469   $EGREP "usleep" >/dev/null 2>&1; then
23470
23471
23472 cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_USLEEP_DECL 1
23474 _ACEOF
23475
23476 fi
23477 rm -f conftest*
23478
23479 fi
23480 done
23481
23482
23483    # Look for these functions in the thread library, but only bother
23484    # if using POSIX threads.
23485    if test "$THREADS" = posix; then
23486       save_LIBS="$LIBS"
23487       LIBS="$LIBS $THREADLIBS"
23488
23489       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23490       # Solaris 7 the name librt is preferred.
23491
23492 for ac_func in sched_yield
23493 do
23494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495 echo "$as_me:$LINENO: checking for $ac_func" >&5
23496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497 if eval "test \"\${$as_ac_var+set}\" = set"; then
23498   echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500   if test x$gcc_no_link = xyes; then
23501   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23503    { (exit 1); exit 1; }; }
23504 fi
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h.  */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h.  */
23511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23513 #define $ac_func innocuous_$ac_func
23514
23515 /* System header to define __stub macros and hopefully few prototypes,
23516     which can conflict with char $ac_func (); below.
23517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23518     <limits.h> exists even on freestanding compilers.  */
23519
23520 #ifdef __STDC__
23521 # include <limits.h>
23522 #else
23523 # include <assert.h>
23524 #endif
23525
23526 #undef $ac_func
23527
23528 /* Override any gcc2 internal prototype to avoid an error.  */
23529 #ifdef __cplusplus
23530 extern "C"
23531 {
23532 #endif
23533 /* We use char because int might match the return type of a gcc2
23534    builtin and then its argument prototype would still apply.  */
23535 char $ac_func ();
23536 /* The GNU C library defines this for functions which it implements
23537     to always fail with ENOSYS.  Some functions are actually named
23538     something starting with __ and the normal name is an alias.  */
23539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23540 choke me
23541 #else
23542 char (*f) () = $ac_func;
23543 #endif
23544 #ifdef __cplusplus
23545 }
23546 #endif
23547
23548 int
23549 main ()
23550 {
23551 return f != $ac_func;
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558   (eval $ac_link) 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } &&
23565          { ac_try='test -z "$ac_c_werror_flag"
23566                          || test ! -s conftest.err'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; } &&
23572          { ac_try='test -s conftest$ac_exeext'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; }; then
23578   eval "$as_ac_var=yes"
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 eval "$as_ac_var=no"
23584 fi
23585 rm -f conftest.err conftest.$ac_objext \
23586       conftest$ac_exeext conftest.$ac_ext
23587 fi
23588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23590 if test `eval echo '${'$as_ac_var'}'` = yes; then
23591   cat >>confdefs.h <<_ACEOF
23592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23593 _ACEOF
23594
23595 else
23596
23597         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23598 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23599 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23600   echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602   ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-lrt  $LIBS"
23604 if test x$gcc_no_link = xyes; then
23605   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23607    { (exit 1); exit 1; }; }
23608 fi
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615
23616 /* Override any gcc2 internal prototype to avoid an error.  */
23617 #ifdef __cplusplus
23618 extern "C"
23619 #endif
23620 /* We use char because int might match the return type of a gcc2
23621    builtin and then its argument prototype would still apply.  */
23622 char sched_yield ();
23623 int
23624 main ()
23625 {
23626 sched_yield ();
23627   ;
23628   return 0;
23629 }
23630 _ACEOF
23631 rm -f conftest.$ac_objext conftest$ac_exeext
23632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23633   (eval $ac_link) 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } &&
23640          { ac_try='test -z "$ac_c_werror_flag"
23641                          || test ! -s conftest.err'
23642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643   (eval $ac_try) 2>&5
23644   ac_status=$?
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); }; } &&
23647          { ac_try='test -s conftest$ac_exeext'
23648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649   (eval $ac_try) 2>&5
23650   ac_status=$?
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); }; }; then
23653   ac_cv_lib_rt_sched_yield=yes
23654 else
23655   echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23657
23658 ac_cv_lib_rt_sched_yield=no
23659 fi
23660 rm -f conftest.err conftest.$ac_objext \
23661       conftest$ac_exeext conftest.$ac_ext
23662 LIBS=$ac_check_lib_save_LIBS
23663 fi
23664 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23665 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23666 if test $ac_cv_lib_rt_sched_yield = yes; then
23667
23668           cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_SCHED_YIELD 1
23670 _ACEOF
23671
23672           THREADLIBS="$THREADLIBS -lrt"
23673           THREADSPEC="$THREADSPEC -lrt"
23674 else
23675
23676           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23677 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23678 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23679   echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681   ac_check_lib_save_LIBS=$LIBS
23682 LIBS="-lposix4  $LIBS"
23683 if test x$gcc_no_link = xyes; then
23684   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23686    { (exit 1); exit 1; }; }
23687 fi
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h.  */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h.  */
23694
23695 /* Override any gcc2 internal prototype to avoid an error.  */
23696 #ifdef __cplusplus
23697 extern "C"
23698 #endif
23699 /* We use char because int might match the return type of a gcc2
23700    builtin and then its argument prototype would still apply.  */
23701 char sched_yield ();
23702 int
23703 main ()
23704 {
23705 sched_yield ();
23706   ;
23707   return 0;
23708 }
23709 _ACEOF
23710 rm -f conftest.$ac_objext conftest$ac_exeext
23711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23712   (eval $ac_link) 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } &&
23719          { ac_try='test -z "$ac_c_werror_flag"
23720                          || test ! -s conftest.err'
23721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722   (eval $ac_try) 2>&5
23723   ac_status=$?
23724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725   (exit $ac_status); }; } &&
23726          { ac_try='test -s conftest$ac_exeext'
23727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728   (eval $ac_try) 2>&5
23729   ac_status=$?
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); }; }; then
23732   ac_cv_lib_posix4_sched_yield=yes
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737 ac_cv_lib_posix4_sched_yield=no
23738 fi
23739 rm -f conftest.err conftest.$ac_objext \
23740       conftest$ac_exeext conftest.$ac_ext
23741 LIBS=$ac_check_lib_save_LIBS
23742 fi
23743 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23744 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23745 if test $ac_cv_lib_posix4_sched_yield = yes; then
23746
23747             cat >>confdefs.h <<\_ACEOF
23748 #define HAVE_SCHED_YIELD 1
23749 _ACEOF
23750
23751             THREADLIBS="$THREADLIBS -lposix4"
23752             THREADSPEC="$THREADSPEC -lposix4"
23753 fi
23754
23755 fi
23756
23757 fi
23758 done
23759
23760
23761       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23762 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23763 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23764   echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766   ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lrt  $LIBS"
23768 if test x$gcc_no_link = xyes; then
23769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23771    { (exit 1); exit 1; }; }
23772 fi
23773 cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779
23780 /* Override any gcc2 internal prototype to avoid an error.  */
23781 #ifdef __cplusplus
23782 extern "C"
23783 #endif
23784 /* We use char because int might match the return type of a gcc2
23785    builtin and then its argument prototype would still apply.  */
23786 char clock_gettime ();
23787 int
23788 main ()
23789 {
23790 clock_gettime ();
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext conftest$ac_exeext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23797   (eval $ac_link) 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } &&
23804          { ac_try='test -z "$ac_c_werror_flag"
23805                          || test ! -s conftest.err'
23806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807   (eval $ac_try) 2>&5
23808   ac_status=$?
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); }; } &&
23811          { ac_try='test -s conftest$ac_exeext'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; }; then
23817   ac_cv_lib_rt_clock_gettime=yes
23818 else
23819   echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23821
23822 ac_cv_lib_rt_clock_gettime=no
23823 fi
23824 rm -f conftest.err conftest.$ac_objext \
23825       conftest$ac_exeext conftest.$ac_ext
23826 LIBS=$ac_check_lib_save_LIBS
23827 fi
23828 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23829 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23830 if test $ac_cv_lib_rt_clock_gettime = yes; then
23831
23832
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_CLOCK_GETTIME 1
23835 _ACEOF
23836
23837          case "$THREADSPEC" in
23838            *-lrt*) ;;
23839            *)
23840              THREADSPEC="$THREADSPEC -lrt"
23841              THREADLIBS="$THREADLIBS -lrt"
23842              ;;
23843          esac
23844 fi
23845
23846
23847       LIBS="$save_LIBS"
23848
23849       # We can save a little space at runtime if the mutex has m_count
23850       # or __m_count.  This is a nice hack for Linux.
23851       cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857 #include <pthread.h>
23858 int
23859 main ()
23860 {
23861
23862           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23863
23864   ;
23865   return 0;
23866 }
23867 _ACEOF
23868 rm -f conftest.$ac_objext
23869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23870   (eval $ac_compile) 2>conftest.er1
23871   ac_status=$?
23872   grep -v '^ *+' conftest.er1 >conftest.err
23873   rm -f conftest.er1
23874   cat conftest.err >&5
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); } &&
23877          { ac_try='test -z "$ac_c_werror_flag"
23878                          || test ! -s conftest.err'
23879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; } &&
23884          { ac_try='test -s conftest.$ac_objext'
23885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886   (eval $ac_try) 2>&5
23887   ac_status=$?
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); }; }; then
23890
23891 cat >>confdefs.h <<\_ACEOF
23892 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23893 _ACEOF
23894
23895 else
23896   echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23898
23899
23900         cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h.  */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h.  */
23906 #include <pthread.h>
23907 int
23908 main ()
23909 {
23910
23911             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23912
23913   ;
23914   return 0;
23915 }
23916 _ACEOF
23917 rm -f conftest.$ac_objext
23918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23919   (eval $ac_compile) 2>conftest.er1
23920   ac_status=$?
23921   grep -v '^ *+' conftest.er1 >conftest.err
23922   rm -f conftest.er1
23923   cat conftest.err >&5
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); } &&
23926          { ac_try='test -z "$ac_c_werror_flag"
23927                          || test ! -s conftest.err'
23928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929   (eval $ac_try) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; } &&
23933          { ac_try='test -s conftest.$ac_objext'
23934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935   (eval $ac_try) 2>&5
23936   ac_status=$?
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); }; }; then
23939
23940 cat >>confdefs.h <<\_ACEOF
23941 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23942 _ACEOF
23943
23944 else
23945   echo "$as_me: failed program was:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23947
23948 fi
23949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950 fi
23951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23952    fi
23953
23954    # We require a way to get the time.
23955    time_found=no
23956
23957
23958
23959 for ac_func in gettimeofday time ftime
23960 do
23961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23962 echo "$as_me:$LINENO: checking for $ac_func" >&5
23963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23964 if eval "test \"\${$as_ac_var+set}\" = set"; then
23965   echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967   if test x$gcc_no_link = xyes; then
23968   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23970    { (exit 1); exit 1; }; }
23971 fi
23972 cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23980 #define $ac_func innocuous_$ac_func
23981
23982 /* System header to define __stub macros and hopefully few prototypes,
23983     which can conflict with char $ac_func (); below.
23984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23985     <limits.h> exists even on freestanding compilers.  */
23986
23987 #ifdef __STDC__
23988 # include <limits.h>
23989 #else
23990 # include <assert.h>
23991 #endif
23992
23993 #undef $ac_func
23994
23995 /* Override any gcc2 internal prototype to avoid an error.  */
23996 #ifdef __cplusplus
23997 extern "C"
23998 {
23999 #endif
24000 /* We use char because int might match the return type of a gcc2
24001    builtin and then its argument prototype would still apply.  */
24002 char $ac_func ();
24003 /* The GNU C library defines this for functions which it implements
24004     to always fail with ENOSYS.  Some functions are actually named
24005     something starting with __ and the normal name is an alias.  */
24006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24007 choke me
24008 #else
24009 char (*f) () = $ac_func;
24010 #endif
24011 #ifdef __cplusplus
24012 }
24013 #endif
24014
24015 int
24016 main ()
24017 {
24018 return f != $ac_func;
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24025   (eval $ac_link) 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } &&
24032          { ac_try='test -z "$ac_c_werror_flag"
24033                          || test ! -s conftest.err'
24034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035   (eval $ac_try) 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); }; } &&
24039          { ac_try='test -s conftest$ac_exeext'
24040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; }; then
24045   eval "$as_ac_var=yes"
24046 else
24047   echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 eval "$as_ac_var=no"
24051 fi
24052 rm -f conftest.err conftest.$ac_objext \
24053       conftest$ac_exeext conftest.$ac_ext
24054 fi
24055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24057 if test `eval echo '${'$as_ac_var'}'` = yes; then
24058   cat >>confdefs.h <<_ACEOF
24059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24060 _ACEOF
24061  time_found=yes
24062 fi
24063 done
24064
24065    if test "$time_found" = no; then
24066       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
24067 echo "$as_me: error: no function found to get the time" >&2;}
24068    { (exit 1); exit 1; }; }
24069    fi
24070
24071
24072 for ac_func in memmove
24073 do
24074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 echo "$as_me:$LINENO: checking for $ac_func" >&5
24076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24077 if eval "test \"\${$as_ac_var+set}\" = set"; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080   if test x$gcc_no_link = xyes; then
24081   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24083    { (exit 1); exit 1; }; }
24084 fi
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h.  */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h.  */
24091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24093 #define $ac_func innocuous_$ac_func
24094
24095 /* System header to define __stub macros and hopefully few prototypes,
24096     which can conflict with char $ac_func (); below.
24097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24098     <limits.h> exists even on freestanding compilers.  */
24099
24100 #ifdef __STDC__
24101 # include <limits.h>
24102 #else
24103 # include <assert.h>
24104 #endif
24105
24106 #undef $ac_func
24107
24108 /* Override any gcc2 internal prototype to avoid an error.  */
24109 #ifdef __cplusplus
24110 extern "C"
24111 {
24112 #endif
24113 /* We use char because int might match the return type of a gcc2
24114    builtin and then its argument prototype would still apply.  */
24115 char $ac_func ();
24116 /* The GNU C library defines this for functions which it implements
24117     to always fail with ENOSYS.  Some functions are actually named
24118     something starting with __ and the normal name is an alias.  */
24119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24120 choke me
24121 #else
24122 char (*f) () = $ac_func;
24123 #endif
24124 #ifdef __cplusplus
24125 }
24126 #endif
24127
24128 int
24129 main ()
24130 {
24131 return f != $ac_func;
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24138   (eval $ac_link) 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } &&
24145          { ac_try='test -z "$ac_c_werror_flag"
24146                          || test ! -s conftest.err'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; } &&
24152          { ac_try='test -s conftest$ac_exeext'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   eval "$as_ac_var=yes"
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 eval "$as_ac_var=no"
24164 fi
24165 rm -f conftest.err conftest.$ac_objext \
24166       conftest$ac_exeext conftest.$ac_ext
24167 fi
24168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24170 if test `eval echo '${'$as_ac_var'}'` = yes; then
24171   cat >>confdefs.h <<_ACEOF
24172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24173 _ACEOF
24174
24175 fi
24176 done
24177
24178
24179    # We require memcpy.
24180    memcpy_found=no
24181
24182 for ac_func in memcpy
24183 do
24184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24185 echo "$as_me:$LINENO: checking for $ac_func" >&5
24186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24187 if eval "test \"\${$as_ac_var+set}\" = set"; then
24188   echo $ECHO_N "(cached) $ECHO_C" >&6
24189 else
24190   if test x$gcc_no_link = xyes; then
24191   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24193    { (exit 1); exit 1; }; }
24194 fi
24195 cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24203 #define $ac_func innocuous_$ac_func
24204
24205 /* System header to define __stub macros and hopefully few prototypes,
24206     which can conflict with char $ac_func (); below.
24207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24208     <limits.h> exists even on freestanding compilers.  */
24209
24210 #ifdef __STDC__
24211 # include <limits.h>
24212 #else
24213 # include <assert.h>
24214 #endif
24215
24216 #undef $ac_func
24217
24218 /* Override any gcc2 internal prototype to avoid an error.  */
24219 #ifdef __cplusplus
24220 extern "C"
24221 {
24222 #endif
24223 /* We use char because int might match the return type of a gcc2
24224    builtin and then its argument prototype would still apply.  */
24225 char $ac_func ();
24226 /* The GNU C library defines this for functions which it implements
24227     to always fail with ENOSYS.  Some functions are actually named
24228     something starting with __ and the normal name is an alias.  */
24229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24230 choke me
24231 #else
24232 char (*f) () = $ac_func;
24233 #endif
24234 #ifdef __cplusplus
24235 }
24236 #endif
24237
24238 int
24239 main ()
24240 {
24241 return f != $ac_func;
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248   (eval $ac_link) 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } &&
24255          { ac_try='test -z "$ac_c_werror_flag"
24256                          || test ! -s conftest.err'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; } &&
24262          { ac_try='test -s conftest$ac_exeext'
24263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264   (eval $ac_try) 2>&5
24265   ac_status=$?
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); }; }; then
24268   eval "$as_ac_var=yes"
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273 eval "$as_ac_var=no"
24274 fi
24275 rm -f conftest.err conftest.$ac_objext \
24276       conftest$ac_exeext conftest.$ac_ext
24277 fi
24278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24280 if test `eval echo '${'$as_ac_var'}'` = yes; then
24281   cat >>confdefs.h <<_ACEOF
24282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24283 _ACEOF
24284  memcpy_found=yes
24285 fi
24286 done
24287
24288    if test "$memcpy_found" = no; then
24289       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24290 echo "$as_me: error: memcpy is required" >&2;}
24291    { (exit 1); exit 1; }; }
24292    fi
24293    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24294    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24297   echo $ECHO_N "(cached) $ECHO_C" >&6
24298 else
24299   ac_check_lib_save_LIBS=$LIBS
24300 LIBS="-ldl  $LIBS"
24301 if test x$gcc_no_link = xyes; then
24302   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24304    { (exit 1); exit 1; }; }
24305 fi
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312
24313 /* Override any gcc2 internal prototype to avoid an error.  */
24314 #ifdef __cplusplus
24315 extern "C"
24316 #endif
24317 /* We use char because int might match the return type of a gcc2
24318    builtin and then its argument prototype would still apply.  */
24319 char dlopen ();
24320 int
24321 main ()
24322 {
24323 dlopen ();
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext conftest$ac_exeext
24329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24330   (eval $ac_link) 2>conftest.er1
24331   ac_status=$?
24332   grep -v '^ *+' conftest.er1 >conftest.err
24333   rm -f conftest.er1
24334   cat conftest.err >&5
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); } &&
24337          { ac_try='test -z "$ac_c_werror_flag"
24338                          || test ! -s conftest.err'
24339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; } &&
24344          { ac_try='test -s conftest$ac_exeext'
24345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346   (eval $ac_try) 2>&5
24347   ac_status=$?
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); }; }; then
24350   ac_cv_lib_dl_dlopen=yes
24351 else
24352   echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355 ac_cv_lib_dl_dlopen=no
24356 fi
24357 rm -f conftest.err conftest.$ac_objext \
24358       conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24360 fi
24361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24363 if test $ac_cv_lib_dl_dlopen = yes; then
24364
24365
24366 cat >>confdefs.h <<\_ACEOF
24367 #define HAVE_DLOPEN 1
24368 _ACEOF
24369
24370 else
24371
24372        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24373 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24374 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24375   echo $ECHO_N "(cached) $ECHO_C" >&6
24376 else
24377   ac_check_lib_save_LIBS=$LIBS
24378 LIBS="-ldld  $LIBS"
24379 if test x$gcc_no_link = xyes; then
24380   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24382    { (exit 1); exit 1; }; }
24383 fi
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h.  */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h.  */
24390
24391 /* Override any gcc2 internal prototype to avoid an error.  */
24392 #ifdef __cplusplus
24393 extern "C"
24394 #endif
24395 /* We use char because int might match the return type of a gcc2
24396    builtin and then its argument prototype would still apply.  */
24397 char dlopen ();
24398 int
24399 main ()
24400 {
24401 dlopen ();
24402   ;
24403   return 0;
24404 }
24405 _ACEOF
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24408   (eval $ac_link) 2>conftest.er1
24409   ac_status=$?
24410   grep -v '^ *+' conftest.er1 >conftest.err
24411   rm -f conftest.er1
24412   cat conftest.err >&5
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } &&
24415          { ac_try='test -z "$ac_c_werror_flag"
24416                          || test ! -s conftest.err'
24417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418   (eval $ac_try) 2>&5
24419   ac_status=$?
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); }; } &&
24422          { ac_try='test -s conftest$ac_exeext'
24423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424   (eval $ac_try) 2>&5
24425   ac_status=$?
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); }; }; then
24428   ac_cv_lib_dld_dlopen=yes
24429 else
24430   echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24432
24433 ac_cv_lib_dld_dlopen=no
24434 fi
24435 rm -f conftest.err conftest.$ac_objext \
24436       conftest$ac_exeext conftest.$ac_ext
24437 LIBS=$ac_check_lib_save_LIBS
24438 fi
24439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24440 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24441 if test $ac_cv_lib_dld_dlopen = yes; then
24442
24443
24444 cat >>confdefs.h <<\_ACEOF
24445 #define HAVE_DLOPEN 1
24446 _ACEOF
24447
24448 fi
24449
24450 fi
24451
24452
24453    # Some library-finding code we stole from Tcl.
24454    #--------------------------------------------------------------------
24455    #    Check for the existence of the -lsocket and -lnsl libraries.
24456    #    The order here is important, so that they end up in the right
24457    #    order in the command line generated by make.  Here are some
24458    #    special considerations:
24459    #    1. Use "connect" and "accept" to check for -lsocket, and
24460    #       "gethostbyname" to check for -lnsl.
24461    #    2. Use each function name only once:  can't redo a check because
24462    #       autoconf caches the results of the last check and won't redo it.
24463    #    3. Use -lnsl and -lsocket only if they supply procedures that
24464    #       aren't already present in the normal libraries.  This is because
24465    #       IRIX 5.2 has libraries, but they aren't needed and they're
24466    #       bogus:  they goof up name resolution if used.
24467    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24468    #       To get around this problem, check for both libraries together
24469    #       if -lsocket doesn't work by itself.
24470    #--------------------------------------------------------------------
24471
24472    echo "$as_me:$LINENO: checking for socket libraries" >&5
24473 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24474 if test "${gcj_cv_lib_sockets+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   gcj_cv_lib_sockets=
24478      gcj_checkBoth=0
24479      unset ac_cv_func_connect
24480      echo "$as_me:$LINENO: checking for connect" >&5
24481 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24482 if test "${ac_cv_func_connect+set}" = set; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 else
24485   if test x$gcc_no_link = xyes; then
24486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24488    { (exit 1); exit 1; }; }
24489 fi
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24498 #define connect innocuous_connect
24499
24500 /* System header to define __stub macros and hopefully few prototypes,
24501     which can conflict with char connect (); below.
24502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24503     <limits.h> exists even on freestanding compilers.  */
24504
24505 #ifdef __STDC__
24506 # include <limits.h>
24507 #else
24508 # include <assert.h>
24509 #endif
24510
24511 #undef connect
24512
24513 /* Override any gcc2 internal prototype to avoid an error.  */
24514 #ifdef __cplusplus
24515 extern "C"
24516 {
24517 #endif
24518 /* We use char because int might match the return type of a gcc2
24519    builtin and then its argument prototype would still apply.  */
24520 char connect ();
24521 /* The GNU C library defines this for functions which it implements
24522     to always fail with ENOSYS.  Some functions are actually named
24523     something starting with __ and the normal name is an alias.  */
24524 #if defined (__stub_connect) || defined (__stub___connect)
24525 choke me
24526 #else
24527 char (*f) () = connect;
24528 #endif
24529 #ifdef __cplusplus
24530 }
24531 #endif
24532
24533 int
24534 main ()
24535 {
24536 return f != connect;
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24543   (eval $ac_link) 2>conftest.er1
24544   ac_status=$?
24545   grep -v '^ *+' conftest.er1 >conftest.err
24546   rm -f conftest.er1
24547   cat conftest.err >&5
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); } &&
24550          { ac_try='test -z "$ac_c_werror_flag"
24551                          || test ! -s conftest.err'
24552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553   (eval $ac_try) 2>&5
24554   ac_status=$?
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); }; } &&
24557          { ac_try='test -s conftest$ac_exeext'
24558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); }; }; then
24563   ac_cv_func_connect=yes
24564 else
24565   echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568 ac_cv_func_connect=no
24569 fi
24570 rm -f conftest.err conftest.$ac_objext \
24571       conftest$ac_exeext conftest.$ac_ext
24572 fi
24573 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24574 echo "${ECHO_T}$ac_cv_func_connect" >&6
24575 if test $ac_cv_func_connect = yes; then
24576   gcj_checkSocket=0
24577 else
24578   gcj_checkSocket=1
24579 fi
24580
24581      if test "$gcj_checkSocket" = 1; then
24582          unset ac_cv_func_connect
24583          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24584 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24585 if test "${ac_cv_lib_socket_main+set}" = set; then
24586   echo $ECHO_N "(cached) $ECHO_C" >&6
24587 else
24588   ac_check_lib_save_LIBS=$LIBS
24589 LIBS="-lsocket  $LIBS"
24590 if test x$gcc_no_link = xyes; then
24591   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24593    { (exit 1); exit 1; }; }
24594 fi
24595 cat >conftest.$ac_ext <<_ACEOF
24596 /* confdefs.h.  */
24597 _ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h.  */
24601
24602
24603 int
24604 main ()
24605 {
24606 main ();
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613   (eval $ac_link) 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } &&
24620          { ac_try='test -z "$ac_c_werror_flag"
24621                          || test ! -s conftest.err'
24622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; } &&
24627          { ac_try='test -s conftest$ac_exeext'
24628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629   (eval $ac_try) 2>&5
24630   ac_status=$?
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); }; }; then
24633   ac_cv_lib_socket_main=yes
24634 else
24635   echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 ac_cv_lib_socket_main=no
24639 fi
24640 rm -f conftest.err conftest.$ac_objext \
24641       conftest$ac_exeext conftest.$ac_ext
24642 LIBS=$ac_check_lib_save_LIBS
24643 fi
24644 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24645 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24646 if test $ac_cv_lib_socket_main = yes; then
24647   gcj_cv_lib_sockets="-lsocket"
24648 else
24649   gcj_checkBoth=1
24650 fi
24651
24652      fi
24653      if test "$gcj_checkBoth" = 1; then
24654          gcj_oldLibs=$LIBS
24655          LIBS="$LIBS -lsocket -lnsl"
24656          unset ac_cv_func_accept
24657          echo "$as_me:$LINENO: checking for accept" >&5
24658 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24659 if test "${ac_cv_func_accept+set}" = set; then
24660   echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662   if test x$gcc_no_link = xyes; then
24663   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24665    { (exit 1); exit 1; }; }
24666 fi
24667 cat >conftest.$ac_ext <<_ACEOF
24668 /* confdefs.h.  */
24669 _ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h.  */
24673 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24675 #define accept innocuous_accept
24676
24677 /* System header to define __stub macros and hopefully few prototypes,
24678     which can conflict with char accept (); below.
24679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24680     <limits.h> exists even on freestanding compilers.  */
24681
24682 #ifdef __STDC__
24683 # include <limits.h>
24684 #else
24685 # include <assert.h>
24686 #endif
24687
24688 #undef accept
24689
24690 /* Override any gcc2 internal prototype to avoid an error.  */
24691 #ifdef __cplusplus
24692 extern "C"
24693 {
24694 #endif
24695 /* We use char because int might match the return type of a gcc2
24696    builtin and then its argument prototype would still apply.  */
24697 char accept ();
24698 /* The GNU C library defines this for functions which it implements
24699     to always fail with ENOSYS.  Some functions are actually named
24700     something starting with __ and the normal name is an alias.  */
24701 #if defined (__stub_accept) || defined (__stub___accept)
24702 choke me
24703 #else
24704 char (*f) () = accept;
24705 #endif
24706 #ifdef __cplusplus
24707 }
24708 #endif
24709
24710 int
24711 main ()
24712 {
24713 return f != accept;
24714   ;
24715   return 0;
24716 }
24717 _ACEOF
24718 rm -f conftest.$ac_objext conftest$ac_exeext
24719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24720   (eval $ac_link) 2>conftest.er1
24721   ac_status=$?
24722   grep -v '^ *+' conftest.er1 >conftest.err
24723   rm -f conftest.er1
24724   cat conftest.err >&5
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } &&
24727          { ac_try='test -z "$ac_c_werror_flag"
24728                          || test ! -s conftest.err'
24729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730   (eval $ac_try) 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; } &&
24734          { ac_try='test -s conftest$ac_exeext'
24735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736   (eval $ac_try) 2>&5
24737   ac_status=$?
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); }; }; then
24740   ac_cv_func_accept=yes
24741 else
24742   echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 ac_cv_func_accept=no
24746 fi
24747 rm -f conftest.err conftest.$ac_objext \
24748       conftest$ac_exeext conftest.$ac_ext
24749 fi
24750 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24751 echo "${ECHO_T}$ac_cv_func_accept" >&6
24752 if test $ac_cv_func_accept = yes; then
24753   gcj_checkNsl=0
24754                         gcj_cv_lib_sockets="-lsocket -lnsl"
24755 fi
24756
24757          unset ac_cv_func_accept
24758          LIBS=$gcj_oldLibs
24759      fi
24760      unset ac_cv_func_gethostbyname
24761      gcj_oldLibs=$LIBS
24762      LIBS="$LIBS $gcj_cv_lib_sockets"
24763      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24764 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24765 if test "${ac_cv_func_gethostbyname+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   if test x$gcc_no_link = xyes; then
24769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24771    { (exit 1); exit 1; }; }
24772 fi
24773 cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24781 #define gethostbyname innocuous_gethostbyname
24782
24783 /* System header to define __stub macros and hopefully few prototypes,
24784     which can conflict with char gethostbyname (); below.
24785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24786     <limits.h> exists even on freestanding compilers.  */
24787
24788 #ifdef __STDC__
24789 # include <limits.h>
24790 #else
24791 # include <assert.h>
24792 #endif
24793
24794 #undef gethostbyname
24795
24796 /* Override any gcc2 internal prototype to avoid an error.  */
24797 #ifdef __cplusplus
24798 extern "C"
24799 {
24800 #endif
24801 /* We use char because int might match the return type of a gcc2
24802    builtin and then its argument prototype would still apply.  */
24803 char gethostbyname ();
24804 /* The GNU C library defines this for functions which it implements
24805     to always fail with ENOSYS.  Some functions are actually named
24806     something starting with __ and the normal name is an alias.  */
24807 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24808 choke me
24809 #else
24810 char (*f) () = gethostbyname;
24811 #endif
24812 #ifdef __cplusplus
24813 }
24814 #endif
24815
24816 int
24817 main ()
24818 {
24819 return f != gethostbyname;
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24826   (eval $ac_link) 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } &&
24833          { ac_try='test -z "$ac_c_werror_flag"
24834                          || test ! -s conftest.err'
24835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836   (eval $ac_try) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); }; } &&
24840          { ac_try='test -s conftest$ac_exeext'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; }; then
24846   ac_cv_func_gethostbyname=yes
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 ac_cv_func_gethostbyname=no
24852 fi
24853 rm -f conftest.err conftest.$ac_objext \
24854       conftest$ac_exeext conftest.$ac_ext
24855 fi
24856 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24857 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24858 if test $ac_cv_func_gethostbyname = yes; then
24859   :
24860 else
24861   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24862 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24863 if test "${ac_cv_lib_nsl_main+set}" = set; then
24864   echo $ECHO_N "(cached) $ECHO_C" >&6
24865 else
24866   ac_check_lib_save_LIBS=$LIBS
24867 LIBS="-lnsl  $LIBS"
24868 if test x$gcc_no_link = xyes; then
24869   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24871    { (exit 1); exit 1; }; }
24872 fi
24873 cat >conftest.$ac_ext <<_ACEOF
24874 /* confdefs.h.  */
24875 _ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h.  */
24879
24880
24881 int
24882 main ()
24883 {
24884 main ();
24885   ;
24886   return 0;
24887 }
24888 _ACEOF
24889 rm -f conftest.$ac_objext conftest$ac_exeext
24890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24891   (eval $ac_link) 2>conftest.er1
24892   ac_status=$?
24893   grep -v '^ *+' conftest.er1 >conftest.err
24894   rm -f conftest.er1
24895   cat conftest.err >&5
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); } &&
24898          { ac_try='test -z "$ac_c_werror_flag"
24899                          || test ! -s conftest.err'
24900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24901   (eval $ac_try) 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); }; } &&
24905          { ac_try='test -s conftest$ac_exeext'
24906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907   (eval $ac_try) 2>&5
24908   ac_status=$?
24909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); }; }; then
24911   ac_cv_lib_nsl_main=yes
24912 else
24913   echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24915
24916 ac_cv_lib_nsl_main=no
24917 fi
24918 rm -f conftest.err conftest.$ac_objext \
24919       conftest$ac_exeext conftest.$ac_ext
24920 LIBS=$ac_check_lib_save_LIBS
24921 fi
24922 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24923 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24924 if test $ac_cv_lib_nsl_main = yes; then
24925   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24926 fi
24927
24928 fi
24929
24930      unset ac_cv_func_gethostbyname
24931      LIBS=$gcj_oldLIBS
24932
24933 fi
24934 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24935 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24936    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24937
24938    if test "$with_system_zlib" = yes; then
24939       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24940 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24941 if test "${ac_cv_lib_z_deflate+set}" = set; then
24942   echo $ECHO_N "(cached) $ECHO_C" >&6
24943 else
24944   ac_check_lib_save_LIBS=$LIBS
24945 LIBS="-lz  $LIBS"
24946 if test x$gcc_no_link = xyes; then
24947   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24949    { (exit 1); exit 1; }; }
24950 fi
24951 cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957
24958 /* Override any gcc2 internal prototype to avoid an error.  */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 /* We use char because int might match the return type of a gcc2
24963    builtin and then its argument prototype would still apply.  */
24964 char deflate ();
24965 int
24966 main ()
24967 {
24968 deflate ();
24969   ;
24970   return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975   (eval $ac_link) 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } &&
24982          { ac_try='test -z "$ac_c_werror_flag"
24983                          || test ! -s conftest.err'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; } &&
24989          { ac_try='test -s conftest$ac_exeext'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; }; then
24995   ac_cv_lib_z_deflate=yes
24996 else
24997   echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000 ac_cv_lib_z_deflate=no
25001 fi
25002 rm -f conftest.err conftest.$ac_objext \
25003       conftest$ac_exeext conftest.$ac_ext
25004 LIBS=$ac_check_lib_save_LIBS
25005 fi
25006 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25007 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25008 if test $ac_cv_lib_z_deflate = yes; then
25009   ZLIBSPEC=-lz
25010 else
25011   ZLIBSPEC=
25012 fi
25013
25014    fi
25015
25016    # Test for Gtk stuff, if asked for.
25017    if test "$use_gtk_awt" = yes; then
25018
25019   succeeded=no
25020
25021   if test -z "$PKG_CONFIG"; then
25022     # Extract the first word of "pkg-config", so it can be a program name with args.
25023 set dummy pkg-config; ac_word=$2
25024 echo "$as_me:$LINENO: checking for $ac_word" >&5
25025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25027   echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029   case $PKG_CONFIG in
25030   [\\/]* | ?:[\\/]*)
25031   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25032   ;;
25033   *)
25034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25035 for as_dir in $PATH
25036 do
25037   IFS=$as_save_IFS
25038   test -z "$as_dir" && as_dir=.
25039   for ac_exec_ext in '' $ac_executable_extensions; do
25040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25041     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25043     break 2
25044   fi
25045 done
25046 done
25047
25048   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25049   ;;
25050 esac
25051 fi
25052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25053
25054 if test -n "$PKG_CONFIG"; then
25055   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25056 echo "${ECHO_T}$PKG_CONFIG" >&6
25057 else
25058   echo "$as_me:$LINENO: result: no" >&5
25059 echo "${ECHO_T}no" >&6
25060 fi
25061
25062   fi
25063
25064   if test "$PKG_CONFIG" = "no" ; then
25065      echo "*** The pkg-config script could not be found. Make sure it is"
25066      echo "*** in your path, or set the PKG_CONFIG environment variable"
25067      echo "*** to the full path to pkg-config."
25068      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25069   else
25070      PKG_CONFIG_MIN_VERSION=0.9.0
25071      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25072         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
25073 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
25074
25075         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
25076             echo "$as_me:$LINENO: result: yes" >&5
25077 echo "${ECHO_T}yes" >&6
25078             succeeded=yes
25079
25080             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25081 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
25082             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
25083             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25084 echo "${ECHO_T}$GTK_CFLAGS" >&6
25085
25086             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25087 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25088             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25089             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25090 echo "${ECHO_T}$GTK_LIBS" >&6
25091         else
25092             GTK_CFLAGS=""
25093             GTK_LIBS=""
25094             ## If we have a custom action on failure, don't print errors, but
25095             ## do set a variable so people can do so.
25096             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25097             echo $GTK_PKG_ERRORS
25098         fi
25099
25100
25101
25102      else
25103         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25104         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25105      fi
25106   fi
25107
25108   if test $succeeded = yes; then
25109      :
25110   else
25111      { { 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
25112 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;}
25113    { (exit 1); exit 1; }; }
25114   fi
25115
25116
25117
25118
25119
25120   succeeded=no
25121
25122   if test -z "$PKG_CONFIG"; then
25123     # Extract the first word of "pkg-config", so it can be a program name with args.
25124 set dummy pkg-config; ac_word=$2
25125 echo "$as_me:$LINENO: checking for $ac_word" >&5
25126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25128   echo $ECHO_N "(cached) $ECHO_C" >&6
25129 else
25130   case $PKG_CONFIG in
25131   [\\/]* | ?:[\\/]*)
25132   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25133   ;;
25134   *)
25135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25136 for as_dir in $PATH
25137 do
25138   IFS=$as_save_IFS
25139   test -z "$as_dir" && as_dir=.
25140   for ac_exec_ext in '' $ac_executable_extensions; do
25141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25142     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25144     break 2
25145   fi
25146 done
25147 done
25148
25149   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25150   ;;
25151 esac
25152 fi
25153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25154
25155 if test -n "$PKG_CONFIG"; then
25156   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25157 echo "${ECHO_T}$PKG_CONFIG" >&6
25158 else
25159   echo "$as_me:$LINENO: result: no" >&5
25160 echo "${ECHO_T}no" >&6
25161 fi
25162
25163   fi
25164
25165   if test "$PKG_CONFIG" = "no" ; then
25166      echo "*** The pkg-config script could not be found. Make sure it is"
25167      echo "*** in your path, or set the PKG_CONFIG environment variable"
25168      echo "*** to the full path to pkg-config."
25169      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25170   else
25171      PKG_CONFIG_MIN_VERSION=0.9.0
25172      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25173         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25174 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25175
25176         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25177             echo "$as_me:$LINENO: result: yes" >&5
25178 echo "${ECHO_T}yes" >&6
25179             succeeded=yes
25180
25181             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25182 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25183             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25184             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25185 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25186
25187             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25188 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25189             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25190             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25191 echo "${ECHO_T}$GLIB_LIBS" >&6
25192         else
25193             GLIB_CFLAGS=""
25194             GLIB_LIBS=""
25195             ## If we have a custom action on failure, don't print errors, but
25196             ## do set a variable so people can do so.
25197             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25198             echo $GLIB_PKG_ERRORS
25199         fi
25200
25201
25202
25203      else
25204         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25205         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25206      fi
25207   fi
25208
25209   if test $succeeded = yes; then
25210      :
25211   else
25212      { { 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
25213 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;}
25214    { (exit 1); exit 1; }; }
25215   fi
25216
25217
25218
25219
25220
25221   succeeded=no
25222
25223   if test -z "$PKG_CONFIG"; then
25224     # Extract the first word of "pkg-config", so it can be a program name with args.
25225 set dummy pkg-config; ac_word=$2
25226 echo "$as_me:$LINENO: checking for $ac_word" >&5
25227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25228 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25229   echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231   case $PKG_CONFIG in
25232   [\\/]* | ?:[\\/]*)
25233   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25234   ;;
25235   *)
25236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237 for as_dir in $PATH
25238 do
25239   IFS=$as_save_IFS
25240   test -z "$as_dir" && as_dir=.
25241   for ac_exec_ext in '' $ac_executable_extensions; do
25242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25243     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25245     break 2
25246   fi
25247 done
25248 done
25249
25250   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25251   ;;
25252 esac
25253 fi
25254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25255
25256 if test -n "$PKG_CONFIG"; then
25257   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25258 echo "${ECHO_T}$PKG_CONFIG" >&6
25259 else
25260   echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6
25262 fi
25263
25264   fi
25265
25266   if test "$PKG_CONFIG" = "no" ; then
25267      echo "*** The pkg-config script could not be found. Make sure it is"
25268      echo "*** in your path, or set the PKG_CONFIG environment variable"
25269      echo "*** to the full path to pkg-config."
25270      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25271   else
25272      PKG_CONFIG_MIN_VERSION=0.9.0
25273      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25274         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25275 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25276
25277         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25278             echo "$as_me:$LINENO: result: yes" >&5
25279 echo "${ECHO_T}yes" >&6
25280             succeeded=yes
25281
25282             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25283 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25284             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25285             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25286 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25287
25288             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25289 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25290             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25291             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25292 echo "${ECHO_T}$LIBART_LIBS" >&6
25293         else
25294             LIBART_CFLAGS=""
25295             LIBART_LIBS=""
25296             ## If we have a custom action on failure, don't print errors, but
25297             ## do set a variable so people can do so.
25298             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25299             echo $LIBART_PKG_ERRORS
25300         fi
25301
25302
25303
25304      else
25305         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25306         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25307      fi
25308   fi
25309
25310   if test $succeeded = yes; then
25311      :
25312   else
25313      { { 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
25314 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;}
25315    { (exit 1); exit 1; }; }
25316   fi
25317
25318
25319
25320
25321       # We require the XTest Extension to support java.awt.Robot.
25322       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25323 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25324 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25325   echo $ECHO_N "(cached) $ECHO_C" >&6
25326 else
25327   ac_check_lib_save_LIBS=$LIBS
25328 LIBS="-lXtst ${X_LIBS} $LIBS"
25329 if test x$gcc_no_link = xyes; then
25330   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25332    { (exit 1); exit 1; }; }
25333 fi
25334 cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340
25341 /* Override any gcc2 internal prototype to avoid an error.  */
25342 #ifdef __cplusplus
25343 extern "C"
25344 #endif
25345 /* We use char because int might match the return type of a gcc2
25346    builtin and then its argument prototype would still apply.  */
25347 char XTestQueryExtension ();
25348 int
25349 main ()
25350 {
25351 XTestQueryExtension ();
25352   ;
25353   return 0;
25354 }
25355 _ACEOF
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25358   (eval $ac_link) 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } &&
25365          { ac_try='test -z "$ac_c_werror_flag"
25366                          || test ! -s conftest.err'
25367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368   (eval $ac_try) 2>&5
25369   ac_status=$?
25370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); }; } &&
25372          { ac_try='test -s conftest$ac_exeext'
25373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374   (eval $ac_try) 2>&5
25375   ac_status=$?
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); }; }; then
25378   ac_cv_lib_Xtst_XTestQueryExtension=yes
25379 else
25380   echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383 ac_cv_lib_Xtst_XTestQueryExtension=no
25384 fi
25385 rm -f conftest.err conftest.$ac_objext \
25386       conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25388 fi
25389 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25390 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25391 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25392   true
25393 else
25394   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25395 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25396    { (exit 1); exit 1; }; }
25397 fi
25398
25399    fi
25400
25401    # On Solaris, and maybe other architectures, the Boehm collector
25402    # requires -ldl.
25403    if test "$GC" = boehm; then
25404       case "${host}" in
25405           mips-sgi-irix6*)
25406             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25407             # libgcj.spec is used, so override here
25408             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25409           ;;
25410           *)
25411             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25412 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25413 if test "${ac_cv_lib_dl_main+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   ac_check_lib_save_LIBS=$LIBS
25417 LIBS="-ldl  $LIBS"
25418 if test x$gcc_no_link = xyes; then
25419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25421    { (exit 1); exit 1; }; }
25422 fi
25423 cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429
25430
25431 int
25432 main ()
25433 {
25434 main ();
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 rm -f conftest.$ac_objext conftest$ac_exeext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25441   (eval $ac_link) 2>conftest.er1
25442   ac_status=$?
25443   grep -v '^ *+' conftest.er1 >conftest.err
25444   rm -f conftest.er1
25445   cat conftest.err >&5
25446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447   (exit $ac_status); } &&
25448          { ac_try='test -z "$ac_c_werror_flag"
25449                          || test ! -s conftest.err'
25450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451   (eval $ac_try) 2>&5
25452   ac_status=$?
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); }; } &&
25455          { ac_try='test -s conftest$ac_exeext'
25456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457   (eval $ac_try) 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; }; then
25461   ac_cv_lib_dl_main=yes
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466 ac_cv_lib_dl_main=no
25467 fi
25468 rm -f conftest.err conftest.$ac_objext \
25469       conftest$ac_exeext conftest.$ac_ext
25470 LIBS=$ac_check_lib_save_LIBS
25471 fi
25472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25473 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25474 if test $ac_cv_lib_dl_main = yes; then
25475   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25476 fi
25477
25478           ;;
25479       esac
25480    fi
25481 fi
25482
25483 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25484 case $build in
25485     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25486     *)         CLASSPATH_SEPARATOR=':' ;;
25487 esac
25488
25489
25490 # We must search the source tree for java.lang, since we still don't
25491 # have libgcj.jar nor java/lang/*.class
25492 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25493 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25494
25495 # Since some classes depend on this one, we need its source available
25496 # before we can do any GCJ compilation test :-(
25497 if test ! -f gnu/classpath/Configuration.java; then
25498   test -d gnu || mkdir gnu
25499   test -d gnu/classpath || mkdir gnu/classpath
25500   # Note that it is not crucial that all the values here be correct.
25501   sed -e "s,@prefix@,$prefix," \
25502       -e "s,@VERSION@,$VERSION," \
25503       -e "s,@LIBDEBUG@,false," \
25504       -e "s,@INIT_LOAD_LIBRARY@,false," \
25505       -e "s,@@,$LIBGCJDEBUG," \
25506       -e "s,@default_toolkit@,$TOOLKIT," \
25507       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25508       -e "s,@GTK_CAIRO_ENABLED@,false," \
25509       -e "s,@ECJ_JAR@,," \
25510       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
25511         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25512         > gnu/classpath/Configuration.java
25513   # We do not want to redirect the output of the grep below to /dev/null,
25514   # but we add /dev/null to the input list so that grep will print the
25515   # filename of Configuration.java in case it finds any matches.
25516   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25517     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25518 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25519    { (exit 1); exit 1; }; }
25520   fi
25521 fi
25522
25523
25524 for ac_prog in gcj
25525 do
25526   # Extract the first word of "$ac_prog", so it can be a program name with args.
25527 set dummy $ac_prog; ac_word=$2
25528 echo "$as_me:$LINENO: checking for $ac_word" >&5
25529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25530 if test "${ac_cv_prog_GCJ+set}" = set; then
25531   echo $ECHO_N "(cached) $ECHO_C" >&6
25532 else
25533   if test -n "$GCJ"; then
25534   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25535 else
25536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25537 for as_dir in $PATH
25538 do
25539   IFS=$as_save_IFS
25540   test -z "$as_dir" && as_dir=.
25541   for ac_exec_ext in '' $ac_executable_extensions; do
25542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25543     ac_cv_prog_GCJ="$ac_prog"
25544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25545     break 2
25546   fi
25547 done
25548 done
25549
25550 fi
25551 fi
25552 GCJ=$ac_cv_prog_GCJ
25553 if test -n "$GCJ"; then
25554   echo "$as_me:$LINENO: result: $GCJ" >&5
25555 echo "${ECHO_T}$GCJ" >&6
25556 else
25557   echo "$as_me:$LINENO: result: no" >&5
25558 echo "${ECHO_T}no" >&6
25559 fi
25560
25561   test -n "$GCJ" && break
25562 done
25563 test -n "$GCJ" || GCJ="gcj"
25564
25565 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25566 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25567    { (exit 1); exit 1; }; }
25568 if test "x${GCJFLAGS-unset}" = xunset; then
25569    GCJFLAGS="-g -O2"
25570 fi
25571
25572
25573 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25574
25575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25577 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25581   # We make a subdir and do the tests there.  Otherwise we can end up
25582   # making bogus files that we don't know about and never remove.  For
25583   # instance it was reported that on HP-UX the gcc test will end up
25584   # making a dummy file named `D' -- because `-MD' means `put the output
25585   # in D'.
25586   mkdir conftest.dir
25587   # Copy depcomp to subdir because otherwise we won't find it if we're
25588   # using a relative directory.
25589   cp "$am_depcomp" conftest.dir
25590   cd conftest.dir
25591   # We will build objects and dependencies in a subdirectory because
25592   # it helps to detect inapplicable dependency modes.  For instance
25593   # both Tru64's cc and ICC support -MD to output dependencies as a
25594   # side effect of compilation, but ICC will put the dependencies in
25595   # the current directory while Tru64 will put them in the object
25596   # directory.
25597   mkdir sub
25598
25599   am_cv_GCJ_dependencies_compiler_type=none
25600   if test "$am_compiler_list" = ""; then
25601      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25602   fi
25603   for depmode in $am_compiler_list; do
25604     # Setup a source with many dependencies, because some compilers
25605     # like to wrap large dependency lists on column 80 (with \), and
25606     # we should not choose a depcomp mode which is confused by this.
25607     #
25608     # We need to recreate these files for each test, as the compiler may
25609     # overwrite some of them when testing with obscure command lines.
25610     # This happens at least with the AIX C compiler.
25611     : > sub/conftest.c
25612     for i in 1 2 3 4 5 6; do
25613       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25614       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25615       # Solaris 8's {/usr,}/bin/sh.
25616       touch sub/conftst$i.h
25617     done
25618     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25619
25620     case $depmode in
25621     nosideeffect)
25622       # after this tag, mechanisms are not by side-effect, so they'll
25623       # only be used when explicitly requested
25624       if test "x$enable_dependency_tracking" = xyes; then
25625         continue
25626       else
25627         break
25628       fi
25629       ;;
25630     none) break ;;
25631     esac
25632     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25633     # mode.  It turns out that the SunPro C++ compiler does not properly
25634     # handle `-M -o', and we need to detect this.
25635     if depmode=$depmode \
25636        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25637        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25638        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25639          >/dev/null 2>conftest.err &&
25640        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25641        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25642        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25643       # icc doesn't choke on unknown options, it will just issue warnings
25644       # or remarks (even with -Werror).  So we grep stderr for any message
25645       # that says an option was ignored or not supported.
25646       # When given -MP, icc 7.0 and 7.1 complain thusly:
25647       #   icc: Command line warning: ignoring option '-M'; no argument required
25648       # The diagnosis changed in icc 8.0:
25649       #   icc: Command line remark: option '-MP' not supported
25650       if (grep 'ignoring option' conftest.err ||
25651           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25652         am_cv_GCJ_dependencies_compiler_type=$depmode
25653         break
25654       fi
25655     fi
25656   done
25657
25658   cd ..
25659   rm -rf conftest.dir
25660 else
25661   am_cv_GCJ_dependencies_compiler_type=none
25662 fi
25663
25664 fi
25665 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25666 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25667 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25668
25669
25670
25671 if
25672   test "x$enable_dependency_tracking" != xno \
25673   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25674   am__fastdepGCJ_TRUE=
25675   am__fastdepGCJ_FALSE='#'
25676 else
25677   am__fastdepGCJ_TRUE='#'
25678   am__fastdepGCJ_FALSE=
25679 fi
25680
25681
25682
25683
25684 # Now remove it.
25685 rm -f gnu/classpath/Configuration.java
25686
25687 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25688
25689 echo "$as_me:$LINENO: checking for void *" >&5
25690 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25691 if test "${ac_cv_type_void_p+set}" = set; then
25692   echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694   cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h.  */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h.  */
25700 $ac_includes_default
25701 int
25702 main ()
25703 {
25704 if ((void * *) 0)
25705   return 0;
25706 if (sizeof (void *))
25707   return 0;
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext
25713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25714   (eval $ac_compile) 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } &&
25721          { ac_try='test -z "$ac_c_werror_flag"
25722                          || test ! -s conftest.err'
25723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724   (eval $ac_try) 2>&5
25725   ac_status=$?
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); }; } &&
25728          { ac_try='test -s conftest.$ac_objext'
25729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730   (eval $ac_try) 2>&5
25731   ac_status=$?
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); }; }; then
25734   ac_cv_type_void_p=yes
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739 ac_cv_type_void_p=no
25740 fi
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25742 fi
25743 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25744 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25745
25746 echo "$as_me:$LINENO: checking size of void *" >&5
25747 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25748 if test "${ac_cv_sizeof_void_p+set}" = set; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   if test "$ac_cv_type_void_p" = yes; then
25752   # The cast to unsigned long works around a bug in the HP C Compiler
25753   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25754   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25755   # This bug is HP SR number 8606223364.
25756   if test "$cross_compiling" = yes; then
25757   # Depending upon the size, compute the lo and hi bounds.
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764 $ac_includes_default
25765 int
25766 main ()
25767 {
25768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25769 test_array [0] = 0
25770
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777   (eval $ac_compile) 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } &&
25784          { ac_try='test -z "$ac_c_werror_flag"
25785                          || test ! -s conftest.err'
25786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787   (eval $ac_try) 2>&5
25788   ac_status=$?
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); }; } &&
25791          { ac_try='test -s conftest.$ac_objext'
25792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793   (eval $ac_try) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; }; then
25797   ac_lo=0 ac_mid=0
25798   while :; do
25799     cat >conftest.$ac_ext <<_ACEOF
25800 /* confdefs.h.  */
25801 _ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h.  */
25805 $ac_includes_default
25806 int
25807 main ()
25808 {
25809 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25810 test_array [0] = 0
25811
25812   ;
25813   return 0;
25814 }
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818   (eval $ac_compile) 2>conftest.er1
25819   ac_status=$?
25820   grep -v '^ *+' conftest.er1 >conftest.err
25821   rm -f conftest.er1
25822   cat conftest.err >&5
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); } &&
25825          { ac_try='test -z "$ac_c_werror_flag"
25826                          || test ! -s conftest.err'
25827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838   ac_hi=$ac_mid; break
25839 else
25840   echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_lo=`expr $ac_mid + 1`
25844                     if test $ac_lo -le $ac_mid; then
25845                       ac_lo= ac_hi=
25846                       break
25847                     fi
25848                     ac_mid=`expr 2 '*' $ac_mid + 1`
25849 fi
25850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25851   done
25852 else
25853   echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856 cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862 $ac_includes_default
25863 int
25864 main ()
25865 {
25866 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25867 test_array [0] = 0
25868
25869   ;
25870   return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875   (eval $ac_compile) 2>conftest.er1
25876   ac_status=$?
25877   grep -v '^ *+' conftest.er1 >conftest.err
25878   rm -f conftest.er1
25879   cat conftest.err >&5
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); } &&
25882          { ac_try='test -z "$ac_c_werror_flag"
25883                          || test ! -s conftest.err'
25884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885   (eval $ac_try) 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); }; } &&
25889          { ac_try='test -s conftest.$ac_objext'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; }; then
25895   ac_hi=-1 ac_mid=-1
25896   while :; do
25897     cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903 $ac_includes_default
25904 int
25905 main ()
25906 {
25907 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25908 test_array [0] = 0
25909
25910   ;
25911   return 0;
25912 }
25913 _ACEOF
25914 rm -f conftest.$ac_objext
25915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25916   (eval $ac_compile) 2>conftest.er1
25917   ac_status=$?
25918   grep -v '^ *+' conftest.er1 >conftest.err
25919   rm -f conftest.er1
25920   cat conftest.err >&5
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); } &&
25923          { ac_try='test -z "$ac_c_werror_flag"
25924                          || test ! -s conftest.err'
25925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926   (eval $ac_try) 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; } &&
25930          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25936   ac_lo=$ac_mid; break
25937 else
25938   echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25940
25941 ac_hi=`expr '(' $ac_mid ')' - 1`
25942                        if test $ac_mid -le $ac_hi; then
25943                          ac_lo= ac_hi=
25944                          break
25945                        fi
25946                        ac_mid=`expr 2 '*' $ac_mid`
25947 fi
25948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25949   done
25950 else
25951   echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 ac_lo= ac_hi=
25955 fi
25956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25957 fi
25958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25959 # Binary search between lo and hi bounds.
25960 while test "x$ac_lo" != "x$ac_hi"; do
25961   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 $ac_includes_default
25969 int
25970 main ()
25971 {
25972 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25973 test_array [0] = 0
25974
25975   ;
25976   return 0;
25977 }
25978 _ACEOF
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981   (eval $ac_compile) 2>conftest.er1
25982   ac_status=$?
25983   grep -v '^ *+' conftest.er1 >conftest.err
25984   rm -f conftest.er1
25985   cat conftest.err >&5
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); } &&
25988          { ac_try='test -z "$ac_c_werror_flag"
25989                          || test ! -s conftest.err'
25990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991   (eval $ac_try) 2>&5
25992   ac_status=$?
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); }; } &&
25995          { ac_try='test -s conftest.$ac_objext'
25996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997   (eval $ac_try) 2>&5
25998   ac_status=$?
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); }; }; then
26001   ac_hi=$ac_mid
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006 ac_lo=`expr '(' $ac_mid ')' + 1`
26007 fi
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009 done
26010 case $ac_lo in
26011 ?*) ac_cv_sizeof_void_p=$ac_lo;;
26012 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26015 See \`config.log' for more details." >&5
26016 echo "$as_me: error: cannot compute sizeof (void *), 77
26017 See \`config.log' for more details." >&2;}
26018    { (exit 1); exit 1; }; }; } ;;
26019 esac
26020 else
26021   if test "$cross_compiling" = yes; then
26022   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26023 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26025 See \`config.log' for more details." >&5
26026 echo "$as_me: error: cannot run test program while cross compiling
26027 See \`config.log' for more details." >&2;}
26028    { (exit 1); exit 1; }; }; }
26029 else
26030   cat >conftest.$ac_ext <<_ACEOF
26031 /* confdefs.h.  */
26032 _ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h.  */
26036 $ac_includes_default
26037 long longval () { return (long) (sizeof (void *)); }
26038 unsigned long ulongval () { return (long) (sizeof (void *)); }
26039 #include <stdio.h>
26040 #include <stdlib.h>
26041 int
26042 main ()
26043 {
26044
26045   FILE *f = fopen ("conftest.val", "w");
26046   if (! f)
26047     exit (1);
26048   if (((long) (sizeof (void *))) < 0)
26049     {
26050       long i = longval ();
26051       if (i != ((long) (sizeof (void *))))
26052         exit (1);
26053       fprintf (f, "%ld\n", i);
26054     }
26055   else
26056     {
26057       unsigned long i = ulongval ();
26058       if (i != ((long) (sizeof (void *))))
26059         exit (1);
26060       fprintf (f, "%lu\n", i);
26061     }
26062   exit (ferror (f) || fclose (f) != 0);
26063
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 rm -f conftest$ac_exeext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26070   (eval $ac_link) 2>&5
26071   ac_status=$?
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; }; then
26079   ac_cv_sizeof_void_p=`cat conftest.val`
26080 else
26081   echo "$as_me: program exited with status $ac_status" >&5
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 ( exit $ac_status )
26086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26087 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26089 See \`config.log' for more details." >&5
26090 echo "$as_me: error: cannot compute sizeof (void *), 77
26091 See \`config.log' for more details." >&2;}
26092    { (exit 1); exit 1; }; }; }
26093 fi
26094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26095 fi
26096 fi
26097 rm -f conftest.val
26098 else
26099   ac_cv_sizeof_void_p=0
26100 fi
26101 fi
26102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26103 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26104 cat >>confdefs.h <<_ACEOF
26105 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26106 _ACEOF
26107
26108
26109
26110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26112 if test "${ac_cv_c_bigendian+set}" = set; then
26113   echo $ECHO_N "(cached) $ECHO_C" >&6
26114 else
26115   # See if sys/param.h defines the BYTE_ORDER macro.
26116 cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122 #include <sys/types.h>
26123 #include <sys/param.h>
26124
26125 int
26126 main ()
26127 {
26128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26129  bogus endian macros
26130 #endif
26131
26132   ;
26133   return 0;
26134 }
26135 _ACEOF
26136 rm -f conftest.$ac_objext
26137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26138   (eval $ac_compile) 2>conftest.er1
26139   ac_status=$?
26140   grep -v '^ *+' conftest.er1 >conftest.err
26141   rm -f conftest.er1
26142   cat conftest.err >&5
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } &&
26145          { ac_try='test -z "$ac_c_werror_flag"
26146                          || test ! -s conftest.err'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; } &&
26152          { ac_try='test -s conftest.$ac_objext'
26153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154   (eval $ac_try) 2>&5
26155   ac_status=$?
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); }; }; then
26158   # It does; now see whether it defined to BIG_ENDIAN or not.
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <sys/types.h>
26166 #include <sys/param.h>
26167
26168 int
26169 main ()
26170 {
26171 #if BYTE_ORDER != BIG_ENDIAN
26172  not big endian
26173 #endif
26174
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26181   (eval $ac_compile) 2>conftest.er1
26182   ac_status=$?
26183   grep -v '^ *+' conftest.er1 >conftest.err
26184   rm -f conftest.er1
26185   cat conftest.err >&5
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); } &&
26188          { ac_try='test -z "$ac_c_werror_flag"
26189                          || test ! -s conftest.err'
26190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191   (eval $ac_try) 2>&5
26192   ac_status=$?
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); }; } &&
26195          { ac_try='test -s conftest.$ac_objext'
26196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197   (eval $ac_try) 2>&5
26198   ac_status=$?
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); }; }; then
26201   ac_cv_c_bigendian=yes
26202 else
26203   echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206 ac_cv_c_bigendian=no
26207 fi
26208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 # It does not; compile a test program.
26214 if test "$cross_compiling" = yes; then
26215   # try to guess the endianness by grepping values into an object file
26216   ac_cv_c_bigendian=unknown
26217   cat >conftest.$ac_ext <<_ACEOF
26218 /* confdefs.h.  */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h.  */
26223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26229 int
26230 main ()
26231 {
26232  _ascii (); _ebcdic ();
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext
26238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26239   (eval $ac_compile) 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } &&
26246          { ac_try='test -z "$ac_c_werror_flag"
26247                          || test ! -s conftest.err'
26248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249   (eval $ac_try) 2>&5
26250   ac_status=$?
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); }; } &&
26253          { ac_try='test -s conftest.$ac_objext'
26254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255   (eval $ac_try) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; }; then
26259   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26260   ac_cv_c_bigendian=yes
26261 fi
26262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26263   if test "$ac_cv_c_bigendian" = unknown; then
26264     ac_cv_c_bigendian=no
26265   else
26266     # finding both strings is unlikely to happen, but who knows?
26267     ac_cv_c_bigendian=unknown
26268   fi
26269 fi
26270 else
26271   echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26273
26274 fi
26275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26276 else
26277   cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h.  */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h.  */
26283 int
26284 main ()
26285 {
26286   /* Are we little or big endian?  From Harbison&Steele.  */
26287   union
26288   {
26289     long l;
26290     char c[sizeof (long)];
26291   } u;
26292   u.l = 1;
26293   exit (u.c[sizeof (long) - 1] == 1);
26294 }
26295 _ACEOF
26296 rm -f conftest$ac_exeext
26297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26298   (eval $ac_link) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); }; }; then
26307   ac_cv_c_bigendian=no
26308 else
26309   echo "$as_me: program exited with status $ac_status" >&5
26310 echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 ( exit $ac_status )
26314 ac_cv_c_bigendian=yes
26315 fi
26316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26317 fi
26318 fi
26319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26320 fi
26321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26323 case $ac_cv_c_bigendian in
26324   yes)
26325
26326 cat >>confdefs.h <<\_ACEOF
26327 #define WORDS_BIGENDIAN 1
26328 _ACEOF
26329  ;;
26330   no)
26331      ;;
26332   *)
26333     { { echo "$as_me:$LINENO: error: unknown endianness
26334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26335 echo "$as_me: error: unknown endianness
26336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26337    { (exit 1); exit 1; }; } ;;
26338 esac
26339
26340
26341 ZLIBS=
26342 SYS_ZLIBS=
26343 ZINCS=
26344
26345 if test -z "$ZLIBSPEC"; then
26346    # Use zlib from the GCC tree.
26347    ZINCS='-I$(top_srcdir)/../zlib'
26348    ZLIBS=../zlib/libzgcj_convenience.la
26349 else
26350    # System's zlib.
26351    SYS_ZLIBS="$ZLIBSPEC"
26352 fi
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364 if test "$NATIVE" = yes; then
26365   NATIVE_TRUE=
26366   NATIVE_FALSE='#'
26367 else
26368   NATIVE_TRUE='#'
26369   NATIVE_FALSE=
26370 fi
26371
26372
26373
26374 if test "$enable_shared" = yes; then
26375   ENABLE_SHARED_TRUE=
26376   ENABLE_SHARED_FALSE='#'
26377 else
26378   ENABLE_SHARED_TRUE='#'
26379   ENABLE_SHARED_FALSE=
26380 fi
26381
26382
26383
26384 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26385   NEEDS_DATA_START_TRUE=
26386   NEEDS_DATA_START_FALSE='#'
26387 else
26388   NEEDS_DATA_START_TRUE='#'
26389   NEEDS_DATA_START_FALSE=
26390 fi
26391
26392
26393
26394 if test -z "${with_multisubdir}"; then
26395   INSTALL_BINARIES_TRUE=
26396   INSTALL_BINARIES_FALSE='#'
26397 else
26398   INSTALL_BINARIES_TRUE='#'
26399   INSTALL_BINARIES_FALSE=
26400 fi
26401
26402
26403
26404 # Process the option "--enable-version-specific-runtime-libs"
26405 # Calculate toolexeclibdir
26406 case ${version_specific_libs} in
26407   yes)
26408     # Need the gcc compiler version to know where to install libraries
26409     # and header files if --enable-version-specific-runtime-libs option
26410     # is selected.
26411     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26412     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26413     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26414     toolexeclibdir=$toolexecmainlibdir
26415     ;;
26416   no)
26417     if test -n "$with_cross_host" &&
26418        test x"$with_cross_host" != x"no"; then
26419       # Install a library built with a cross compiler in tooldir, not libdir.
26420       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26421       toolexecmainlibdir='$(toolexecdir)/lib'
26422     else
26423       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26424       toolexecmainlibdir='$(libdir)'
26425     fi
26426     multi_os_directory=`$CC -print-multi-os-directory`
26427     case $multi_os_directory in
26428       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26429       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26430     esac
26431     ;;
26432 esac
26433
26434
26435
26436
26437 # Determine gcj and libgcj version number.
26438 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26439 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26440 GCJVERSION=$gcjversion
26441
26442
26443 cat >>confdefs.h <<_ACEOF
26444 #define GCJVERSION "$GCJVERSION"
26445 _ACEOF
26446
26447
26448 # Determine where the standard .db file and GNU Classpath JNI
26449 # libraries are found.
26450 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26451 multi_os_directory=`$CC -print-multi-os-directory`
26452 case $multi_os_directory in
26453   .)
26454    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26455    ;;
26456   *)
26457    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26458    ;;
26459 esac
26460
26461
26462
26463
26464 cat >>confdefs.h <<\_ACEOF
26465 #define JV_VERSION "1.5.0"
26466 _ACEOF
26467
26468
26469 cat >>confdefs.h <<\_ACEOF
26470 #define JV_API_VERSION "1.5"
26471 _ACEOF
26472
26473
26474
26475 case "${with_gxx_include_dir}" in
26476   yes)
26477     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26478 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26479    { (exit 1); exit 1; }; }
26480     ;;
26481   no | "")
26482     case "${enable_version_specific_runtime_libs}" in
26483       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26484       *)
26485         libstdcxx_incdir='c++/$(gcc_version)'
26486         gxx_include_dir='include/$(libstdcxx_incdir)'
26487         if test -n "$with_cross_host" &&
26488            test x"$with_cross_host" != x"no"; then
26489           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26490         else
26491           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26492         fi;;
26493     esac ;;
26494   *) gxx_include_dir=${with_gxx_include_dir} ;;
26495 esac
26496
26497
26498
26499
26500 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26501 # On that system, sys/ioctl.h will not include sys/filio.h unless
26502 # BSD_COMP is defined; just including sys/filio.h is simpler.
26503 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26504 # for now.  If you change this, you also must update natFile.cc.
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26529                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26530                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26531                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26532                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26533 do
26534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26536   echo "$as_me:$LINENO: checking for $ac_header" >&5
26537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26539   echo $ECHO_N "(cached) $ECHO_C" >&6
26540 fi
26541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26543 else
26544   # Is the header compilable?
26545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26547 cat >conftest.$ac_ext <<_ACEOF
26548 /* confdefs.h.  */
26549 _ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h.  */
26553 $ac_includes_default
26554 #include <$ac_header>
26555 _ACEOF
26556 rm -f conftest.$ac_objext
26557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26558   (eval $ac_compile) 2>conftest.er1
26559   ac_status=$?
26560   grep -v '^ *+' conftest.er1 >conftest.err
26561   rm -f conftest.er1
26562   cat conftest.err >&5
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } &&
26565          { ac_try='test -z "$ac_c_werror_flag"
26566                          || test ! -s conftest.err'
26567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568   (eval $ac_try) 2>&5
26569   ac_status=$?
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); }; } &&
26572          { ac_try='test -s conftest.$ac_objext'
26573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574   (eval $ac_try) 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; }; then
26578   ac_header_compiler=yes
26579 else
26580   echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 ac_header_compiler=no
26584 fi
26585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26587 echo "${ECHO_T}$ac_header_compiler" >&6
26588
26589 # Is the header present?
26590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h.  */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h.  */
26598 #include <$ac_header>
26599 _ACEOF
26600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26602   ac_status=$?
26603   grep -v '^ *+' conftest.er1 >conftest.err
26604   rm -f conftest.er1
26605   cat conftest.err >&5
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } >/dev/null; then
26608   if test -s conftest.err; then
26609     ac_cpp_err=$ac_c_preproc_warn_flag
26610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26611   else
26612     ac_cpp_err=
26613   fi
26614 else
26615   ac_cpp_err=yes
26616 fi
26617 if test -z "$ac_cpp_err"; then
26618   ac_header_preproc=yes
26619 else
26620   echo "$as_me: failed program was:" >&5
26621 sed 's/^/| /' conftest.$ac_ext >&5
26622
26623   ac_header_preproc=no
26624 fi
26625 rm -f conftest.err conftest.$ac_ext
26626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26627 echo "${ECHO_T}$ac_header_preproc" >&6
26628
26629 # So?  What about this header?
26630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26631   yes:no: )
26632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26636     ac_header_preproc=yes
26637     ;;
26638   no:yes:* )
26639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26651     (
26652       cat <<\_ASBOX
26653 ## ---------------------------------- ##
26654 ## Report this to the libjava lists.  ##
26655 ## ---------------------------------- ##
26656 _ASBOX
26657     ) |
26658       sed "s/^/$as_me: WARNING:     /" >&2
26659     ;;
26660 esac
26661 echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664   echo $ECHO_N "(cached) $ECHO_C" >&6
26665 else
26666   eval "$as_ac_Header=\$ac_header_preproc"
26667 fi
26668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26670
26671 fi
26672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26673   cat >>confdefs.h <<_ACEOF
26674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26675 _ACEOF
26676
26677 fi
26678
26679 done
26680
26681
26682 for ac_header in inttypes.h
26683 do
26684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26686   echo "$as_me:$LINENO: checking for $ac_header" >&5
26687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26689   echo $ECHO_N "(cached) $ECHO_C" >&6
26690 fi
26691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26693 else
26694   # Is the header compilable?
26695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26697 cat >conftest.$ac_ext <<_ACEOF
26698 /* confdefs.h.  */
26699 _ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h.  */
26703 $ac_includes_default
26704 #include <$ac_header>
26705 _ACEOF
26706 rm -f conftest.$ac_objext
26707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26708   (eval $ac_compile) 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } &&
26715          { ac_try='test -z "$ac_c_werror_flag"
26716                          || test ! -s conftest.err'
26717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718   (eval $ac_try) 2>&5
26719   ac_status=$?
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); }; } &&
26722          { ac_try='test -s conftest.$ac_objext'
26723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724   (eval $ac_try) 2>&5
26725   ac_status=$?
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); }; }; then
26728   ac_header_compiler=yes
26729 else
26730   echo "$as_me: failed program was:" >&5
26731 sed 's/^/| /' conftest.$ac_ext >&5
26732
26733 ac_header_compiler=no
26734 fi
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26737 echo "${ECHO_T}$ac_header_compiler" >&6
26738
26739 # Is the header present?
26740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26742 cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h.  */
26748 #include <$ac_header>
26749 _ACEOF
26750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26752   ac_status=$?
26753   grep -v '^ *+' conftest.er1 >conftest.err
26754   rm -f conftest.er1
26755   cat conftest.err >&5
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); } >/dev/null; then
26758   if test -s conftest.err; then
26759     ac_cpp_err=$ac_c_preproc_warn_flag
26760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26761   else
26762     ac_cpp_err=
26763   fi
26764 else
26765   ac_cpp_err=yes
26766 fi
26767 if test -z "$ac_cpp_err"; then
26768   ac_header_preproc=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773   ac_header_preproc=no
26774 fi
26775 rm -f conftest.err conftest.$ac_ext
26776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26777 echo "${ECHO_T}$ac_header_preproc" >&6
26778
26779 # So?  What about this header?
26780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26781   yes:no: )
26782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26786     ac_header_preproc=yes
26787     ;;
26788   no:yes:* )
26789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26801     (
26802       cat <<\_ASBOX
26803 ## ---------------------------------- ##
26804 ## Report this to the libjava lists.  ##
26805 ## ---------------------------------- ##
26806 _ASBOX
26807     ) |
26808       sed "s/^/$as_me: WARNING:     /" >&2
26809     ;;
26810 esac
26811 echo "$as_me:$LINENO: checking for $ac_header" >&5
26812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816   eval "$as_ac_Header=\$ac_header_preproc"
26817 fi
26818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26820
26821 fi
26822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26823   cat >>confdefs.h <<_ACEOF
26824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26825 _ACEOF
26826
26827
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_INTTYPES_H 1
26830 _ACEOF
26831
26832
26833 cat >>confdefs.h <<\_ACEOF
26834 #define JV_HAVE_INTTYPES_H 1
26835 _ACEOF
26836
26837
26838 fi
26839
26840 done
26841
26842
26843 echo "$as_me:$LINENO: checking for ssize_t" >&5
26844 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26845 if test "${ac_cv_type_ssize_t+set}" = set; then
26846   echo $ECHO_N "(cached) $ECHO_C" >&6
26847 else
26848   cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854 $ac_includes_default
26855 int
26856 main ()
26857 {
26858 if ((ssize_t *) 0)
26859   return 0;
26860 if (sizeof (ssize_t))
26861   return 0;
26862   ;
26863   return 0;
26864 }
26865 _ACEOF
26866 rm -f conftest.$ac_objext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868   (eval $ac_compile) 2>conftest.er1
26869   ac_status=$?
26870   grep -v '^ *+' conftest.er1 >conftest.err
26871   rm -f conftest.er1
26872   cat conftest.err >&5
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); } &&
26875          { ac_try='test -z "$ac_c_werror_flag"
26876                          || test ! -s conftest.err'
26877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878   (eval $ac_try) 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; } &&
26882          { ac_try='test -s conftest.$ac_objext'
26883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884   (eval $ac_try) 2>&5
26885   ac_status=$?
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); }; }; then
26888   ac_cv_type_ssize_t=yes
26889 else
26890   echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26892
26893 ac_cv_type_ssize_t=no
26894 fi
26895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26896 fi
26897 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26898 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26899 if test $ac_cv_type_ssize_t = yes; then
26900   :
26901 else
26902
26903 cat >>confdefs.h <<_ACEOF
26904 #define ssize_t int
26905 _ACEOF
26906
26907 fi
26908
26909 echo "$as_me:$LINENO: checking for magic_t" >&5
26910 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26911 if test "${ac_cv_type_magic_t+set}" = set; then
26912   echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914   cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h.  */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h.  */
26920
26921 #ifdef HAVE_MAGIC_H
26922 #include <magic.h>
26923 #endif
26924
26925 int
26926 main ()
26927 {
26928 if ((magic_t *) 0)
26929   return 0;
26930 if (sizeof (magic_t))
26931   return 0;
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26938   (eval $ac_compile) 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } &&
26945          { ac_try='test -z "$ac_c_werror_flag"
26946                          || test ! -s conftest.err'
26947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948   (eval $ac_try) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); }; } &&
26952          { ac_try='test -s conftest.$ac_objext'
26953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954   (eval $ac_try) 2>&5
26955   ac_status=$?
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); }; }; then
26958   ac_cv_type_magic_t=yes
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 ac_cv_type_magic_t=no
26964 fi
26965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26966 fi
26967 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26968 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26969 if test $ac_cv_type_magic_t = yes; then
26970
26971
26972 cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_MAGIC_T 1
26974 _ACEOF
26975
26976 fi
26977
26978
26979 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26980 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26981 cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987 #include <sys/types.h>
26988 #if STDC_HEADERS
26989 #include <stdlib.h>
26990 #include <stddef.h>
26991 #endif
26992 #if HAVE_NETINET_IN_H
26993 #include <netinet/in.h>
26994 #endif
26995 int
26996 main ()
26997 {
26998 in_addr_t foo;
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 rm -f conftest.$ac_objext
27004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27005   (eval $ac_compile) 2>conftest.er1
27006   ac_status=$?
27007   grep -v '^ *+' conftest.er1 >conftest.err
27008   rm -f conftest.er1
27009   cat conftest.err >&5
27010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011   (exit $ac_status); } &&
27012          { ac_try='test -z "$ac_c_werror_flag"
27013                          || test ! -s conftest.err'
27014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015   (eval $ac_try) 2>&5
27016   ac_status=$?
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); }; } &&
27019          { ac_try='test -s conftest.$ac_objext'
27020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021   (eval $ac_try) 2>&5
27022   ac_status=$?
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; }; then
27025
27026 cat >>confdefs.h <<\_ACEOF
27027 #define HAVE_IN_ADDR_T 1
27028 _ACEOF
27029
27030    echo "$as_me:$LINENO: result: yes" >&5
27031 echo "${ECHO_T}yes" >&6
27032 else
27033   echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036 echo "$as_me:$LINENO: result: no" >&5
27037 echo "${ECHO_T}no" >&6
27038 fi
27039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27040
27041 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
27042 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
27043 cat >conftest.$ac_ext <<_ACEOF
27044 /* confdefs.h.  */
27045 _ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h.  */
27049 #include <netinet/in.h>
27050 int
27051 main ()
27052 {
27053 struct ip_mreq mreq;
27054   ;
27055   return 0;
27056 }
27057 _ACEOF
27058 rm -f conftest.$ac_objext
27059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27060   (eval $ac_compile) 2>conftest.er1
27061   ac_status=$?
27062   grep -v '^ *+' conftest.er1 >conftest.err
27063   rm -f conftest.er1
27064   cat conftest.err >&5
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); } &&
27067          { ac_try='test -z "$ac_c_werror_flag"
27068                          || test ! -s conftest.err'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; } &&
27074          { ac_try='test -s conftest.$ac_objext'
27075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076   (eval $ac_try) 2>&5
27077   ac_status=$?
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); }; }; then
27080
27081 cat >>confdefs.h <<\_ACEOF
27082 #define HAVE_STRUCT_IP_MREQ 1
27083 _ACEOF
27084
27085    echo "$as_me:$LINENO: result: yes" >&5
27086 echo "${ECHO_T}yes" >&6
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091 echo "$as_me:$LINENO: result: no" >&5
27092 echo "${ECHO_T}no" >&6
27093 fi
27094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27095
27096 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
27097 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
27098 cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h.  */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h.  */
27104 #include <netinet/in.h>
27105 int
27106 main ()
27107 {
27108 struct ipv6_mreq mreq6;
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115   (eval $ac_compile) 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } &&
27122          { ac_try='test -z "$ac_c_werror_flag"
27123                          || test ! -s conftest.err'
27124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125   (eval $ac_try) 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; } &&
27129          { ac_try='test -s conftest.$ac_objext'
27130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131   (eval $ac_try) 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135
27136 cat >>confdefs.h <<\_ACEOF
27137 #define HAVE_STRUCT_IPV6_MREQ 1
27138 _ACEOF
27139
27140    echo "$as_me:$LINENO: result: yes" >&5
27141 echo "${ECHO_T}yes" >&6
27142 else
27143   echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27145
27146 echo "$as_me:$LINENO: result: no" >&5
27147 echo "${ECHO_T}no" >&6
27148 fi
27149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27150
27151 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27152 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h.  */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h.  */
27159 #include <netinet/in.h>
27160 int
27161 main ()
27162 {
27163 struct sockaddr_in6 addr6;
27164   ;
27165   return 0;
27166 }
27167 _ACEOF
27168 rm -f conftest.$ac_objext
27169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27170   (eval $ac_compile) 2>conftest.er1
27171   ac_status=$?
27172   grep -v '^ *+' conftest.er1 >conftest.err
27173   rm -f conftest.er1
27174   cat conftest.err >&5
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); } &&
27177          { ac_try='test -z "$ac_c_werror_flag"
27178                          || test ! -s conftest.err'
27179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180   (eval $ac_try) 2>&5
27181   ac_status=$?
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); }; } &&
27184          { ac_try='test -s conftest.$ac_objext'
27185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186   (eval $ac_try) 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; }; then
27190
27191 cat >>confdefs.h <<\_ACEOF
27192 #define HAVE_INET6 1
27193 _ACEOF
27194
27195    echo "$as_me:$LINENO: result: yes" >&5
27196 echo "${ECHO_T}yes" >&6
27197 else
27198   echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201 echo "$as_me:$LINENO: result: no" >&5
27202 echo "${ECHO_T}no" >&6
27203 fi
27204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27205
27206 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27207 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27208 cat >conftest.$ac_ext <<_ACEOF
27209 /* confdefs.h.  */
27210 _ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h.  */
27214 #define _POSIX_PII_SOCKET
27215 #include <sys/types.h>
27216 #include <sys/socket.h>
27217 int
27218 main ()
27219 {
27220 socklen_t x = 5;
27221   ;
27222   return 0;
27223 }
27224 _ACEOF
27225 rm -f conftest.$ac_objext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27227   (eval $ac_compile) 2>conftest.er1
27228   ac_status=$?
27229   grep -v '^ *+' conftest.er1 >conftest.err
27230   rm -f conftest.er1
27231   cat conftest.err >&5
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); } &&
27234          { ac_try='test -z "$ac_c_werror_flag"
27235                          || test ! -s conftest.err'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; } &&
27241          { ac_try='test -s conftest.$ac_objext'
27242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243   (eval $ac_try) 2>&5
27244   ac_status=$?
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); }; }; then
27247
27248 cat >>confdefs.h <<\_ACEOF
27249 #define HAVE_SOCKLEN_T 1
27250 _ACEOF
27251
27252    echo "$as_me:$LINENO: result: yes" >&5
27253 echo "${ECHO_T}yes" >&6
27254 else
27255   echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258 echo "$as_me:$LINENO: result: no" >&5
27259 echo "${ECHO_T}no" >&6
27260 fi
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27262
27263 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27264 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27265 cat >conftest.$ac_ext <<_ACEOF
27266 /* confdefs.h.  */
27267 _ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h.  */
27271 #include <time.h>
27272 int
27273 main ()
27274 {
27275 struct tm tim; tim.tm_gmtoff = 0;
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext
27281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27282   (eval $ac_compile) 2>conftest.er1
27283   ac_status=$?
27284   grep -v '^ *+' conftest.er1 >conftest.err
27285   rm -f conftest.er1
27286   cat conftest.err >&5
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); } &&
27289          { ac_try='test -z "$ac_c_werror_flag"
27290                          || test ! -s conftest.err'
27291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27292   (eval $ac_try) 2>&5
27293   ac_status=$?
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); }; } &&
27296          { ac_try='test -s conftest.$ac_objext'
27297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298   (eval $ac_try) 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); }; }; then
27302
27303 cat >>confdefs.h <<\_ACEOF
27304 #define STRUCT_TM_HAS_GMTOFF 1
27305 _ACEOF
27306
27307    echo "$as_me:$LINENO: result: yes" >&5
27308 echo "${ECHO_T}yes" >&6
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 echo "$as_me:$LINENO: result: no" >&5
27314 echo "${ECHO_T}no" >&6
27315    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27316 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27317                cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h.  */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h.  */
27323 #include <time.h>
27324 int
27325 main ()
27326 {
27327 void i(){long z2 = 2*timezone;}
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334   (eval $ac_compile) 2>conftest.er1
27335   ac_status=$?
27336   grep -v '^ *+' conftest.er1 >conftest.err
27337   rm -f conftest.er1
27338   cat conftest.err >&5
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); } &&
27341          { ac_try='test -z "$ac_c_werror_flag"
27342                          || test ! -s conftest.err'
27343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344   (eval $ac_try) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); }; } &&
27348          { ac_try='test -s conftest.$ac_objext'
27349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350   (eval $ac_try) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); }; }; then
27354
27355 cat >>confdefs.h <<\_ACEOF
27356 #define HAVE_TIMEZONE 1
27357 _ACEOF
27358
27359       echo "$as_me:$LINENO: result: yes" >&5
27360 echo "${ECHO_T}yes" >&6
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 echo "$as_me:$LINENO: result: no" >&5
27366 echo "${ECHO_T}no" >&6
27367        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27368 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27369               cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h.  */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h.  */
27375 #include <time.h>
27376 int
27377 main ()
27378 {
27379 long z2 = _timezone;
27380   ;
27381   return 0;
27382 }
27383 _ACEOF
27384 rm -f conftest.$ac_objext
27385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27386   (eval $ac_compile) 2>conftest.er1
27387   ac_status=$?
27388   grep -v '^ *+' conftest.er1 >conftest.err
27389   rm -f conftest.er1
27390   cat conftest.err >&5
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); } &&
27393          { ac_try='test -z "$ac_c_werror_flag"
27394                          || test ! -s conftest.err'
27395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396   (eval $ac_try) 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); }; } &&
27400          { ac_try='test -s conftest.$ac_objext'
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
27407 cat >>confdefs.h <<\_ACEOF
27408 #define HAVE_UNDERSCORE_TIMEZONE 1
27409 _ACEOF
27410
27411           echo "$as_me:$LINENO: result: yes" >&5
27412 echo "${ECHO_T}yes" >&6
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 echo "$as_me:$LINENO: result: no" >&5
27418 echo "${ECHO_T}no" >&6
27419 fi
27420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27421 fi
27422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27423 fi
27424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27425
27426 for ac_prog in perl
27427 do
27428   # Extract the first word of "$ac_prog", so it can be a program name with args.
27429 set dummy $ac_prog; ac_word=$2
27430 echo "$as_me:$LINENO: checking for $ac_word" >&5
27431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27432 if test "${ac_cv_prog_PERL+set}" = set; then
27433   echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435   if test -n "$PERL"; then
27436   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27437 else
27438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27439 for as_dir in $PATH
27440 do
27441   IFS=$as_save_IFS
27442   test -z "$as_dir" && as_dir=.
27443   for ac_exec_ext in '' $ac_executable_extensions; do
27444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27445     ac_cv_prog_PERL="$ac_prog"
27446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27447     break 2
27448   fi
27449 done
27450 done
27451
27452 fi
27453 fi
27454 PERL=$ac_cv_prog_PERL
27455 if test -n "$PERL"; then
27456   echo "$as_me:$LINENO: result: $PERL" >&5
27457 echo "${ECHO_T}$PERL" >&6
27458 else
27459   echo "$as_me:$LINENO: result: no" >&5
27460 echo "${ECHO_T}no" >&6
27461 fi
27462
27463   test -n "$PERL" && break
27464 done
27465 test -n "$PERL" || PERL="false"
27466
27467
27468 SYSDEP_SOURCES=
27469 SIGNAL_HANDLER_AUX=
27470
27471 case "${host}" in
27472  i?86-*-linux*)
27473     SIGNAL_HANDLER=include/i386-signal.h
27474     ;;
27475  sparc*-sun-solaris*)
27476     SIGNAL_HANDLER=include/sparc-signal.h
27477     ;;
27478 # ia64-*)
27479 #    SYSDEP_SOURCES=sysdep/ia64.c
27480 #    test -d sysdep || mkdir sysdep
27481 #    ;;
27482  hppa*-*-linux*)
27483     SIGNAL_HANDLER=include/pa-signal.h
27484     ;;
27485  hppa*-hp-hpux*)
27486     SIGNAL_HANDLER=include/hppa-signal.h
27487     ;;
27488  ia64-*-linux*)
27489     SIGNAL_HANDLER=include/dwarf2-signal.h
27490     ;;
27491  powerpc*-*-linux*)
27492     SIGNAL_HANDLER=include/powerpc-signal.h
27493     ;;
27494  alpha*-*-linux*)
27495     SIGNAL_HANDLER=include/dwarf2-signal.h
27496     ;;
27497  s390*-*-linux*)
27498     SIGNAL_HANDLER=include/s390-signal.h
27499     ;;
27500  x86_64*-*-linux*)
27501     SIGNAL_HANDLER=include/x86_64-signal.h
27502     SIGNAL_HANDLER_AUX=include/i386-signal.h
27503     ;;
27504  sparc*-*-linux*)
27505     SIGNAL_HANDLER=include/dwarf2-signal.h
27506     ;;
27507  sh*-*-linux*)
27508     SIGNAL_HANDLER=include/sh-signal.h
27509     ;;
27510  *mingw*)
27511     SIGNAL_HANDLER=include/win32-signal.h
27512     ;;
27513  mips*-*-linux*)
27514     SIGNAL_HANDLER=include/mips-signal.h
27515     ;;
27516  m68*-*-linux*)
27517     SIGNAL_HANDLER=include/dwarf2-signal.h
27518     ;;
27519  powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27520     SIGNAL_HANDLER=include/darwin-signal.h
27521     ;;
27522  powerpc*-*-aix*)
27523     SIGNAL_HANDLER=include/aix-signal.h
27524     ;;
27525  *)
27526     SIGNAL_HANDLER=include/default-signal.h
27527     ;;
27528 esac
27529
27530 # If we're using sjlj exceptions, forget what we just learned.
27531 if test "$enable_sjlj_exceptions" = yes; then
27532    SIGNAL_HANDLER=include/default-signal.h
27533    SIGNAL_HANDLER_AUX=
27534 fi
27535
27536
27537
27538 if test -z "$SIGNAL_HANDLER_AUX"; then
27539   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27540 fi
27541
27542                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27543
27544
27545 if test "${multilib}" = "yes"; then
27546   multilib_arg="--enable-multilib"
27547 else
27548   multilib_arg=
27549 fi
27550
27551 # See if we support thread-local storage.
27552
27553    # Check whether --enable-tls or --disable-tls was given.
27554 if test "${enable_tls+set}" = set; then
27555   enableval="$enable_tls"
27556
27557       case "$enableval" in
27558        yes|no) ;;
27559        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27560 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27561    { (exit 1); exit 1; }; } ;;
27562       esac
27563
27564 else
27565   enable_tls=yes
27566 fi;
27567
27568   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27569 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27570 if test "${gcc_cv_have_tls+set}" = set; then
27571   echo $ECHO_N "(cached) $ECHO_C" >&6
27572 else
27573
27574     if test "$cross_compiling" = yes; then
27575                 if test x$gcc_no_link = xyes; then
27576   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27578    { (exit 1); exit 1; }; }
27579 fi
27580 cat >conftest.$ac_ext <<_ACEOF
27581 __thread int a; int b; int main() { return a = b; }
27582 _ACEOF
27583 rm -f conftest.$ac_objext conftest$ac_exeext
27584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27585   (eval $ac_link) 2>conftest.er1
27586   ac_status=$?
27587   grep -v '^ *+' conftest.er1 >conftest.err
27588   rm -f conftest.er1
27589   cat conftest.err >&5
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); } &&
27592          { ac_try='test -z "$ac_c_werror_flag"
27593                          || test ! -s conftest.err'
27594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595   (eval $ac_try) 2>&5
27596   ac_status=$?
27597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598   (exit $ac_status); }; } &&
27599          { ac_try='test -s conftest$ac_exeext'
27600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601   (eval $ac_try) 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; }; then
27605   gcc_cv_have_tls=yes
27606 else
27607   echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27609
27610 gcc_cv_have_tls=no
27611 fi
27612 rm -f conftest.err conftest.$ac_objext \
27613       conftest$ac_exeext conftest.$ac_ext
27614
27615
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618 __thread int a; int b; int main() { return a = b; }
27619 _ACEOF
27620 rm -f conftest$ac_exeext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27622   (eval $ac_link) 2>&5
27623   ac_status=$?
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; }; then
27631                       chktls_save_LDFLAGS="$LDFLAGS"
27632       LDFLAGS="-static $LDFLAGS"
27633       if test x$gcc_no_link = xyes; then
27634   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27636    { (exit 1); exit 1; }; }
27637 fi
27638 cat >conftest.$ac_ext <<_ACEOF
27639 int main() { return 0; }
27640 _ACEOF
27641 rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27643   (eval $ac_link) 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } &&
27650          { ac_try='test -z "$ac_c_werror_flag"
27651                          || test ! -s conftest.err'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; } &&
27657          { ac_try='test -s conftest$ac_exeext'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; }; then
27663   if test "$cross_compiling" = yes; then
27664   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27665 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27667 See \`config.log' for more details." >&5
27668 echo "$as_me: error: cannot run test program while cross compiling
27669 See \`config.log' for more details." >&2;}
27670    { (exit 1); exit 1; }; }; }
27671 else
27672   cat >conftest.$ac_ext <<_ACEOF
27673 __thread int a; int b; int main() { return a = b; }
27674 _ACEOF
27675 rm -f conftest$ac_exeext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27677   (eval $ac_link) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682   (eval $ac_try) 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; }; then
27686   gcc_cv_have_tls=yes
27687 else
27688   echo "$as_me: program exited with status $ac_status" >&5
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27691
27692 ( exit $ac_status )
27693 gcc_cv_have_tls=no
27694 fi
27695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27696 fi
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 gcc_cv_have_tls=yes
27702 fi
27703 rm -f conftest.err conftest.$ac_objext \
27704       conftest$ac_exeext conftest.$ac_ext
27705       LDFLAGS="$chktls_save_LDFLAGS"
27706       if test $gcc_cv_have_tls = yes; then
27707                                                 chktls_save_CFLAGS="$CFLAGS"
27708         thread_CFLAGS=failed
27709         for flag in '' '-pthread' '-lpthread'; do
27710           CFLAGS="$flag $chktls_save_CFLAGS"
27711           if test x$gcc_no_link = xyes; then
27712   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27714    { (exit 1); exit 1; }; }
27715 fi
27716 cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722 #include <pthread.h>
27723                 void *g(void *d) { return NULL; }
27724 int
27725 main ()
27726 {
27727 pthread_t t; pthread_create(&t,NULL,g,NULL);
27728   ;
27729   return 0;
27730 }
27731 _ACEOF
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27734   (eval $ac_link) 2>conftest.er1
27735   ac_status=$?
27736   grep -v '^ *+' conftest.er1 >conftest.err
27737   rm -f conftest.er1
27738   cat conftest.err >&5
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); } &&
27741          { ac_try='test -z "$ac_c_werror_flag"
27742                          || test ! -s conftest.err'
27743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744   (eval $ac_try) 2>&5
27745   ac_status=$?
27746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); }; } &&
27748          { ac_try='test -s conftest$ac_exeext'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; }; then
27754   thread_CFLAGS="$flag"
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759 fi
27760 rm -f conftest.err conftest.$ac_objext \
27761       conftest$ac_exeext conftest.$ac_ext
27762           if test "X$thread_CFLAGS" != Xfailed; then
27763             break
27764           fi
27765         done
27766         CFLAGS="$chktls_save_CFLAGS"
27767         if test "X$thread_CFLAGS" != Xfailed; then
27768           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27769           if test "$cross_compiling" = yes; then
27770   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27771 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27773 See \`config.log' for more details." >&5
27774 echo "$as_me: error: cannot run test program while cross compiling
27775 See \`config.log' for more details." >&2;}
27776    { (exit 1); exit 1; }; }; }
27777 else
27778   cat >conftest.$ac_ext <<_ACEOF
27779 /* confdefs.h.  */
27780 _ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h.  */
27784 #include <pthread.h>
27785                 __thread int a;
27786                 static int *a_in_other_thread;
27787                 static void *
27788                 thread_func (void *arg)
27789                 {
27790                   a_in_other_thread = &a;
27791                   return (void *)0;
27792                 }
27793 int
27794 main ()
27795 {
27796 pthread_t thread;
27797                 void *thread_retval;
27798                 int *a_in_main_thread;
27799                 if (pthread_create (&thread, (pthread_attr_t *)0,
27800                                     thread_func, (void *)0))
27801                   return 0;
27802                 a_in_main_thread = &a;
27803                 if (pthread_join (thread, &thread_retval))
27804                   return 0;
27805                 return (a_in_other_thread == a_in_main_thread);
27806   ;
27807   return 0;
27808 }
27809 _ACEOF
27810 rm -f conftest$ac_exeext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27812   (eval $ac_link) 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817   (eval $ac_try) 2>&5
27818   ac_status=$?
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; }; then
27821   gcc_cv_have_tls=yes
27822 else
27823   echo "$as_me: program exited with status $ac_status" >&5
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827 ( exit $ac_status )
27828 gcc_cv_have_tls=no
27829 fi
27830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27831 fi
27832           CFLAGS="$chktls_save_CFLAGS"
27833         fi
27834       fi
27835 else
27836   echo "$as_me: program exited with status $ac_status" >&5
27837 echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27839
27840 ( exit $ac_status )
27841 gcc_cv_have_tls=no
27842 fi
27843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27844 fi
27845 fi
27846 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27847 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27848   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27849
27850 cat >>confdefs.h <<\_ACEOF
27851 #define HAVE_TLS 1
27852 _ACEOF
27853
27854   fi
27855
27856 # For _Unwind_GetIPInfo.
27857
27858
27859
27860   ac_ext=cc
27861 ac_cpp='$CXXCPP $CPPFLAGS'
27862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27865
27866   ac_save_CXXFLAGS="$CXXFLAGS"
27867   CXXFLAGS="$CXXFLAGS -fno-exceptions"
27868   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27869 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27870   if test "${gcc_cv_getipinfo+set}" = set; then
27871   echo $ECHO_N "(cached) $ECHO_C" >&6
27872 else
27873
27874   if test x$gcc_no_link = xyes; then
27875   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27877    { (exit 1); exit 1; }; }
27878 fi
27879 cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h.  */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h.  */
27885 extern "C" { extern void _Unwind_GetIPInfo(); }
27886 int
27887 main ()
27888 {
27889 _Unwind_GetIPInfo();
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896   (eval $ac_link) 2>conftest.er1
27897   ac_status=$?
27898   grep -v '^ *+' conftest.er1 >conftest.err
27899   rm -f conftest.er1
27900   cat conftest.err >&5
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); } &&
27903          { ac_try='test -z "$ac_cxx_werror_flag"
27904                          || test ! -s conftest.err'
27905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906   (eval $ac_try) 2>&5
27907   ac_status=$?
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); }; } &&
27910          { ac_try='test -s conftest$ac_exeext'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; }; then
27916   gcc_cv_getipinfo=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921 gcc_cv_getipinfo=no
27922 fi
27923 rm -f conftest.err conftest.$ac_objext \
27924       conftest$ac_exeext conftest.$ac_ext
27925
27926 fi
27927
27928   if test $gcc_cv_getipinfo = yes; then
27929
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_GETIPINFO 1
27932 _ACEOF
27933
27934   fi
27935   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27936 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27937   CXXFLAGS="$ac_save_CXXFLAGS"
27938   ac_ext=c
27939 ac_cpp='$CPP $CPPFLAGS'
27940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27943
27944
27945
27946 # See if linker supports anonymous version scripts.
27947 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27948 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27949 if test "${libjava_cv_anon_version_script+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27953    libjava_cv_anon_version_script=no
27954    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27955    echo '{ global: globalsymb*; local: *; };' > conftest.map
27956    if test x$gcc_no_link = xyes; then
27957   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27959    { (exit 1); exit 1; }; }
27960 fi
27961 cat >conftest.$ac_ext <<_ACEOF
27962 /* confdefs.h.  */
27963 _ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h.  */
27967 void globalsymbol (void) {} void localsymbol (void) {}
27968 int
27969 main ()
27970 {
27971
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978   (eval $ac_link) 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag"
27986                          || test ! -s conftest.err'
27987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988   (eval $ac_try) 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; }; then
27998   libjava_cv_anon_version_script=yes
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 fi
28004 rm -f conftest.err conftest.$ac_objext \
28005       conftest$ac_exeext conftest.$ac_ext
28006    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
28007
28008 fi
28009 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
28010 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
28011
28012
28013 if test "$libjava_cv_anon_version_script" = yes; then
28014   ANONVERSCRIPT_TRUE=
28015   ANONVERSCRIPT_FALSE='#'
28016 else
28017   ANONVERSCRIPT_TRUE='#'
28018   ANONVERSCRIPT_FALSE=
28019 fi
28020
28021
28022 # Check if linker supports static linking on a per library basis
28023 LD_START_STATIC_SPEC=
28024 LD_FINISH_STATIC_SPEC=
28025 if $LD --help 2>&1 | grep -q -e -call_shared ; then
28026   if $LD --help 2>&1 | grep -q -e -non_shared ; then
28027     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
28028     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
28029   fi
28030 fi
28031
28032
28033
28034 here=`${PWDCMD-pwd}`
28035
28036
28037 # We get this from the environment.
28038
28039
28040
28041 # Check whether --with-python-dir or --without-python-dir was given.
28042 if test "${with_python_dir+set}" = set; then
28043   withval="$with_python_dir"
28044   with_python_dir=$withval
28045 else
28046   with_python_dir=""
28047 fi;
28048
28049 if test "x${with_python_dir}" = "x"
28050 then
28051   # Needed for installing Python modules during make install.
28052   python_mod_dir="\${prefix}/share/python"
28053   # Needed for substituting into aot-compile*
28054   python_mod_dir_expanded="${prefix}/share/python"
28055 else
28056   python_mod_dir="\${prefix}${with_python_dir}"
28057   python_mod_dir_expanded="${prefix}${with_python_dir}"
28058 fi
28059 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
28060 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
28061
28062
28063
28064 # needed for aot-compile-rpm
28065 MAKE=`which make`
28066
28067
28068 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
28069 if test "${enable_aot_compile_rpm+set}" = set; then
28070   enableval="$enable_aot_compile_rpm"
28071   case "${enableval}" in
28072     yes) AOT_RPM_ENABLED=yes ;;
28073     no)  AOT_RPM_ENABLED=no ;;
28074     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
28075 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
28076    { (exit 1); exit 1; }; } ;;
28077   esac
28078 else
28079   AOT_RPM_ENABLED=no
28080
28081 fi;
28082
28083
28084 if test "x${AOT_RPM_ENABLED}" = xyes; then
28085   INSTALL_AOT_RPM_TRUE=
28086   INSTALL_AOT_RPM_FALSE='#'
28087 else
28088   INSTALL_AOT_RPM_TRUE='#'
28089   INSTALL_AOT_RPM_FALSE=
28090 fi
28091
28092
28093 # Check whether --enable-java-home or --disable-java-home was given.
28094 if test "${enable_java_home+set}" = set; then
28095   enableval="$enable_java_home"
28096   case "${enableval}" in
28097     yes) JAVA_HOME_ENABLED=yes ;;
28098     no)  JAVA_HOME_ENABLED=no ;;
28099     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
28100 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
28101    { (exit 1); exit 1; }; } ;;
28102   esac
28103 else
28104   JAVA_HOME_ENABLED=no
28105
28106 fi;
28107
28108
28109 if test "x${JAVA_HOME_ENABLED}" = xyes; then
28110   CREATE_JAVA_HOME_TRUE=
28111   CREATE_JAVA_HOME_FALSE='#'
28112 else
28113   CREATE_JAVA_HOME_TRUE='#'
28114   CREATE_JAVA_HOME_FALSE=
28115 fi
28116
28117
28118 # Only do these checks if java-home above is enabled.
28119 if test "x${JAVA_HOME_ENABLED}" = xyes
28120 then
28121
28122
28123 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28124 if test "${with_gcc_suffix+set}" = set; then
28125   withval="$with_gcc_suffix"
28126   gcc_suffix=$withval
28127 else
28128   gcc_suffix=""
28129 fi;
28130   echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28131 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28132
28133
28134
28135 # Check whether --with-arch-directory or --without-arch-directory was given.
28136 if test "${with_arch_directory+set}" = set; then
28137   withval="$with_arch_directory"
28138   host_cpu=$withval
28139 else
28140   host_cpu=""
28141 fi;
28142
28143
28144 # Check whether --with-os-directory or --without-os-directory was given.
28145 if test "${with_os_directory+set}" = set; then
28146   withval="$with_os_directory"
28147   host_os=$withval
28148 else
28149   host_os=""
28150 fi;
28151
28152
28153 # Check whether --with-origin-name or --without-origin-name was given.
28154 if test "${with_origin_name+set}" = set; then
28155   withval="$with_origin_name"
28156   origin_name=$withval
28157 else
28158   origin_name=gcj${gcc_suffix}
28159 fi;
28160   echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28161 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28162
28163
28164 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28165 if test "${with_arch_suffix+set}" = set; then
28166   withval="$with_arch_suffix"
28167   arch_suffix=$withval
28168 else
28169   arch_suffix=""
28170 fi;
28171   echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28172 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28173
28174
28175 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28176 if test "${with_jvm_root_dir+set}" = set; then
28177   withval="$with_jvm_root_dir"
28178   jvm_root_dir=$withval
28179 else
28180   jvm_root_dir="\${prefix}/lib/jvm"
28181 fi;
28182   echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28183 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28184
28185
28186 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28187 if test "${with_jvm_jar_dir+set}" = set; then
28188   withval="$with_jvm_jar_dir"
28189   jvm_jar_dir=$withval
28190 else
28191   jvm_jar_dir=\${prefix}/lib/jvm-exports
28192 fi;
28193   echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28194 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28195
28196   JAVA_VERSION=1.5.0
28197   BUILD_VERSION=0
28198
28199
28200   echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28201 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28202
28203   jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28204   sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28205   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28206   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28207
28208   JVM_ROOT_DIR=${jvm_root_dir}
28209
28210   echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28211 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28212
28213   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28214
28215   echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28216 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28217
28218   JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28219
28220   echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28221 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28222
28223   JRE_DIR=${jre_dir}
28224
28225
28226   SDK_DIR=${sdk_dir}
28227
28228
28229   JRE_LNK=${jre_lnk}
28230
28231
28232   SDK_LNK=${sdk_lnk}
28233
28234
28235   SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28236
28237   echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28238 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28239
28240   SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28241
28242   echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28243 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28244
28245   SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28246
28247   echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28248 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28249
28250   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28251
28252   echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28253 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28254
28255   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28256
28257   echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28258 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28259
28260   # Find gcj prefix using gcj found in PATH.
28261   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28262
28263   # Where do the gcj binaries live?
28264   # For jhbuild based builds, they all live in a sibling of bin called
28265   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
28266   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28267
28268   echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28269 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28270
28271   echo host is ${host}
28272   if test "x${host_cpu}" = "x"
28273   then
28274     case ${host} in
28275       *-mingw* | *-cygwin*)
28276         host_cpu=x86;;
28277       i486-* | i586-* | i686-*)
28278         host_cpu=i386;;
28279       *)
28280         host_cpu=${host_cpu};;
28281     esac
28282   fi
28283   echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28284 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28285   CPU=${host_cpu}
28286
28287
28288   if test "x${host_os}" = "x"
28289   then
28290     case ${host} in
28291       *-mingw* | *-cygwin*)
28292         host_os=win32;;
28293       *-linux*)
28294         host_os=linux;;
28295       *)
28296         host_os=${host_os};;
28297     esac
28298   fi
28299   echo os directory: ${host_os}
28300   OS=${host_os}
28301
28302
28303   # make an expanded $libdir, for substituting into
28304   # scripts (and other non-Makefile things).
28305   LIBDIR=$libdir
28306   if test "x${exec_prefix}" = "xNONE"
28307   then
28308       lib_exec_prefix=$prefix
28309   else
28310       lib_exec_prefix=$exec_prefix
28311   fi
28312   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28313
28314 fi
28315
28316                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/rebuild-gcj-db"
28317
28318
28319 if test ${multilib} = yes; then
28320   multilib_arg="--enable-multilib"
28321 else
28322   multilib_arg=
28323 fi
28324
28325           ac_config_files="$ac_config_files scripts/jar"
28326
28327 cat >confcache <<\_ACEOF
28328 # This file is a shell script that caches the results of configure
28329 # tests run on this system so they can be shared between configure
28330 # scripts and configure runs, see configure's option --config-cache.
28331 # It is not useful on other systems.  If it contains results you don't
28332 # want to keep, you may remove or edit it.
28333 #
28334 # config.status only pays attention to the cache file if you give it
28335 # the --recheck option to rerun configure.
28336 #
28337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28339 # following values.
28340
28341 _ACEOF
28342
28343 # The following way of writing the cache mishandles newlines in values,
28344 # but we know of no workaround that is simple, portable, and efficient.
28345 # So, don't put newlines in cache variables' values.
28346 # Ultrix sh set writes to stderr and can't be redirected directly,
28347 # and sets the high bit in the cache file unless we assign to the vars.
28348 {
28349   (set) 2>&1 |
28350     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28351     *ac_space=\ *)
28352       # `set' does not quote correctly, so add quotes (double-quote
28353       # substitution turns \\\\ into \\, and sed turns \\ into \).
28354       sed -n \
28355         "s/'/'\\\\''/g;
28356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28357       ;;
28358     *)
28359       # `set' quotes correctly as required by POSIX, so do not add quotes.
28360       sed -n \
28361         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28362       ;;
28363     esac;
28364 } |
28365   sed '
28366      t clear
28367      : clear
28368      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28369      t end
28370      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28371      : end' >>confcache
28372 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28373   if test -w $cache_file; then
28374     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28375     cat confcache >$cache_file
28376   else
28377     echo "not updating unwritable cache $cache_file"
28378   fi
28379 fi
28380 rm -f confcache
28381
28382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28383 # Let make expand exec_prefix.
28384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28385
28386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28388 # trailing colons and then remove the whole line if VPATH becomes empty
28389 # (actually we leave an empty line to preserve line numbers).
28390 if test "x$srcdir" = x.; then
28391   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28392 s/:*\$(srcdir):*/:/;
28393 s/:*\${srcdir}:*/:/;
28394 s/:*@srcdir@:*/:/;
28395 s/^\([^=]*=[     ]*\):*/\1/;
28396 s/:*$//;
28397 s/^[^=]*=[       ]*$//;
28398 }'
28399 fi
28400
28401 DEFS=-DHAVE_CONFIG_H
28402
28403 ac_libobjs=
28404 ac_ltlibobjs=
28405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28406   # 1. Remove the extension, and $U if already installed.
28407   ac_i=`echo "$ac_i" |
28408          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28409   # 2. Add them.
28410   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28411   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28412 done
28413 LIBOBJS=$ac_libobjs
28414
28415 LTLIBOBJS=$ac_ltlibobjs
28416
28417
28418 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
28419   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
28420 Usually this means the macro was only invoked conditionally." >&5
28421 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
28422 Usually this means the macro was only invoked conditionally." >&2;}
28423    { (exit 1); exit 1; }; }
28424 fi
28425 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28426   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28427 Usually this means the macro was only invoked conditionally." >&5
28428 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28429 Usually this means the macro was only invoked conditionally." >&2;}
28430    { (exit 1); exit 1; }; }
28431 fi
28432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28433   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28434 Usually this means the macro was only invoked conditionally." >&5
28435 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28436 Usually this means the macro was only invoked conditionally." >&2;}
28437    { (exit 1); exit 1; }; }
28438 fi
28439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28440   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28441 Usually this means the macro was only invoked conditionally." >&5
28442 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28443 Usually this means the macro was only invoked conditionally." >&2;}
28444    { (exit 1); exit 1; }; }
28445 fi
28446 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28447   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28448 Usually this means the macro was only invoked conditionally." >&5
28449 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28450 Usually this means the macro was only invoked conditionally." >&2;}
28451    { (exit 1); exit 1; }; }
28452 fi
28453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28454   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28455 Usually this means the macro was only invoked conditionally." >&5
28456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28457 Usually this means the macro was only invoked conditionally." >&2;}
28458    { (exit 1); exit 1; }; }
28459 fi
28460 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28461   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28462 Usually this means the macro was only invoked conditionally." >&5
28463 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28464 Usually this means the macro was only invoked conditionally." >&2;}
28465    { (exit 1); exit 1; }; }
28466 fi
28467 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28468   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28469 Usually this means the macro was only invoked conditionally." >&5
28470 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28471 Usually this means the macro was only invoked conditionally." >&2;}
28472    { (exit 1); exit 1; }; }
28473 fi
28474 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28475   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28476 Usually this means the macro was only invoked conditionally." >&5
28477 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28478 Usually this means the macro was only invoked conditionally." >&2;}
28479    { (exit 1); exit 1; }; }
28480 fi
28481 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28482   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28483 Usually this means the macro was only invoked conditionally." >&5
28484 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28485 Usually this means the macro was only invoked conditionally." >&2;}
28486    { (exit 1); exit 1; }; }
28487 fi
28488 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28489   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28490 Usually this means the macro was only invoked conditionally." >&5
28491 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28492 Usually this means the macro was only invoked conditionally." >&2;}
28493    { (exit 1); exit 1; }; }
28494 fi
28495 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28496   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28497 Usually this means the macro was only invoked conditionally." >&5
28498 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28499 Usually this means the macro was only invoked conditionally." >&2;}
28500    { (exit 1); exit 1; }; }
28501 fi
28502 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28503   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28504 Usually this means the macro was only invoked conditionally." >&5
28505 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28506 Usually this means the macro was only invoked conditionally." >&2;}
28507    { (exit 1); exit 1; }; }
28508 fi
28509 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28510   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28511 Usually this means the macro was only invoked conditionally." >&5
28512 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28513 Usually this means the macro was only invoked conditionally." >&2;}
28514    { (exit 1); exit 1; }; }
28515 fi
28516 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28517   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28518 Usually this means the macro was only invoked conditionally." >&5
28519 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28520 Usually this means the macro was only invoked conditionally." >&2;}
28521    { (exit 1); exit 1; }; }
28522 fi
28523 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28524   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28525 Usually this means the macro was only invoked conditionally." >&5
28526 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28527 Usually this means the macro was only invoked conditionally." >&2;}
28528    { (exit 1); exit 1; }; }
28529 fi
28530 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28531   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28532 Usually this means the macro was only invoked conditionally." >&5
28533 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28534 Usually this means the macro was only invoked conditionally." >&2;}
28535    { (exit 1); exit 1; }; }
28536 fi
28537 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28538   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28539 Usually this means the macro was only invoked conditionally." >&5
28540 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28541 Usually this means the macro was only invoked conditionally." >&2;}
28542    { (exit 1); exit 1; }; }
28543 fi
28544 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28545   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28546 Usually this means the macro was only invoked conditionally." >&5
28547 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28548 Usually this means the macro was only invoked conditionally." >&2;}
28549    { (exit 1); exit 1; }; }
28550 fi
28551 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28552   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28553 Usually this means the macro was only invoked conditionally." >&5
28554 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28555 Usually this means the macro was only invoked conditionally." >&2;}
28556    { (exit 1); exit 1; }; }
28557 fi
28558 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28559   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28560 Usually this means the macro was only invoked conditionally." >&5
28561 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28562 Usually this means the macro was only invoked conditionally." >&2;}
28563    { (exit 1); exit 1; }; }
28564 fi
28565 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28566   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28567 Usually this means the macro was only invoked conditionally." >&5
28568 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28569 Usually this means the macro was only invoked conditionally." >&2;}
28570    { (exit 1); exit 1; }; }
28571 fi
28572 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28573   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28574 Usually this means the macro was only invoked conditionally." >&5
28575 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28576 Usually this means the macro was only invoked conditionally." >&2;}
28577    { (exit 1); exit 1; }; }
28578 fi
28579 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28580   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28581 Usually this means the macro was only invoked conditionally." >&5
28582 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28583 Usually this means the macro was only invoked conditionally." >&2;}
28584    { (exit 1); exit 1; }; }
28585 fi
28586 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28587   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28588 Usually this means the macro was only invoked conditionally." >&5
28589 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28590 Usually this means the macro was only invoked conditionally." >&2;}
28591    { (exit 1); exit 1; }; }
28592 fi
28593 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28594   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28595 Usually this means the macro was only invoked conditionally." >&5
28596 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28597 Usually this means the macro was only invoked conditionally." >&2;}
28598    { (exit 1); exit 1; }; }
28599 fi
28600 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28601   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28602 Usually this means the macro was only invoked conditionally." >&5
28603 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28604 Usually this means the macro was only invoked conditionally." >&2;}
28605    { (exit 1); exit 1; }; }
28606 fi
28607 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28608   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28609 Usually this means the macro was only invoked conditionally." >&5
28610 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28611 Usually this means the macro was only invoked conditionally." >&2;}
28612    { (exit 1); exit 1; }; }
28613 fi
28614 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28615   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28616 Usually this means the macro was only invoked conditionally." >&5
28617 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28618 Usually this means the macro was only invoked conditionally." >&2;}
28619    { (exit 1); exit 1; }; }
28620 fi
28621 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28622   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28623 Usually this means the macro was only invoked conditionally." >&5
28624 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28625 Usually this means the macro was only invoked conditionally." >&2;}
28626    { (exit 1); exit 1; }; }
28627 fi
28628 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28629   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28630 Usually this means the macro was only invoked conditionally." >&5
28631 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28632 Usually this means the macro was only invoked conditionally." >&2;}
28633    { (exit 1); exit 1; }; }
28634 fi
28635 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
28636   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
28637 Usually this means the macro was only invoked conditionally." >&5
28638 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
28639 Usually this means the macro was only invoked conditionally." >&2;}
28640    { (exit 1); exit 1; }; }
28641 fi
28642 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28643   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28644 Usually this means the macro was only invoked conditionally." >&5
28645 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28646 Usually this means the macro was only invoked conditionally." >&2;}
28647    { (exit 1); exit 1; }; }
28648 fi
28649 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28650   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28651 Usually this means the macro was only invoked conditionally." >&5
28652 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28653 Usually this means the macro was only invoked conditionally." >&2;}
28654    { (exit 1); exit 1; }; }
28655 fi
28656 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28657   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28658 Usually this means the macro was only invoked conditionally." >&5
28659 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28660 Usually this means the macro was only invoked conditionally." >&2;}
28661    { (exit 1); exit 1; }; }
28662 fi
28663
28664 : ${CONFIG_STATUS=./config.status}
28665 ac_clean_files_save=$ac_clean_files
28666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28669 cat >$CONFIG_STATUS <<_ACEOF
28670 #! $SHELL
28671 # Generated by $as_me.
28672 # Run this file to recreate the current configuration.
28673 # Compiler output produced by configure, useful for debugging
28674 # configure, is in config.log if it exists.
28675
28676 debug=false
28677 ac_cs_recheck=false
28678 ac_cs_silent=false
28679 SHELL=\${CONFIG_SHELL-$SHELL}
28680 _ACEOF
28681
28682 cat >>$CONFIG_STATUS <<\_ACEOF
28683 ## --------------------- ##
28684 ## M4sh Initialization.  ##
28685 ## --------------------- ##
28686
28687 # Be Bourne compatible
28688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28689   emulate sh
28690   NULLCMD=:
28691   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28692   # is contrary to our usage.  Disable this feature.
28693   alias -g '${1+"$@"}'='"$@"'
28694 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28695   set -o posix
28696 fi
28697 DUALCASE=1; export DUALCASE # for MKS sh
28698
28699 # Support unset when possible.
28700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28701   as_unset=unset
28702 else
28703   as_unset=false
28704 fi
28705
28706
28707 # Work around bugs in pre-3.0 UWIN ksh.
28708 $as_unset ENV MAIL MAILPATH
28709 PS1='$ '
28710 PS2='> '
28711 PS4='+ '
28712
28713 # NLS nuisances.
28714 for as_var in \
28715   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28716   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28717   LC_TELEPHONE LC_TIME
28718 do
28719   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28720     eval $as_var=C; export $as_var
28721   else
28722     $as_unset $as_var
28723   fi
28724 done
28725
28726 # Required to use basename.
28727 if expr a : '\(a\)' >/dev/null 2>&1; then
28728   as_expr=expr
28729 else
28730   as_expr=false
28731 fi
28732
28733 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28734   as_basename=basename
28735 else
28736   as_basename=false
28737 fi
28738
28739
28740 # Name of the executable.
28741 as_me=`$as_basename "$0" ||
28742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28743          X"$0" : 'X\(//\)$' \| \
28744          X"$0" : 'X\(/\)$' \| \
28745          .     : '\(.\)' 2>/dev/null ||
28746 echo X/"$0" |
28747     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28748           /^X\/\(\/\/\)$/{ s//\1/; q; }
28749           /^X\/\(\/\).*/{ s//\1/; q; }
28750           s/.*/./; q'`
28751
28752
28753 # PATH needs CR, and LINENO needs CR and PATH.
28754 # Avoid depending upon Character Ranges.
28755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28758 as_cr_digits='0123456789'
28759 as_cr_alnum=$as_cr_Letters$as_cr_digits
28760
28761 # The user is always right.
28762 if test "${PATH_SEPARATOR+set}" != set; then
28763   echo "#! /bin/sh" >conf$$.sh
28764   echo  "exit 0"   >>conf$$.sh
28765   chmod +x conf$$.sh
28766   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28767     PATH_SEPARATOR=';'
28768   else
28769     PATH_SEPARATOR=:
28770   fi
28771   rm -f conf$$.sh
28772 fi
28773
28774
28775   as_lineno_1=$LINENO
28776   as_lineno_2=$LINENO
28777   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28778   test "x$as_lineno_1" != "x$as_lineno_2" &&
28779   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28780   # Find who we are.  Look in the path if we contain no path at all
28781   # relative or not.
28782   case $0 in
28783     *[\\/]* ) as_myself=$0 ;;
28784     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28785 for as_dir in $PATH
28786 do
28787   IFS=$as_save_IFS
28788   test -z "$as_dir" && as_dir=.
28789   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28790 done
28791
28792        ;;
28793   esac
28794   # We did not find ourselves, most probably we were run as `sh COMMAND'
28795   # in which case we are not to be found in the path.
28796   if test "x$as_myself" = x; then
28797     as_myself=$0
28798   fi
28799   if test ! -f "$as_myself"; then
28800     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28801 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28802    { (exit 1); exit 1; }; }
28803   fi
28804   case $CONFIG_SHELL in
28805   '')
28806     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28807 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28808 do
28809   IFS=$as_save_IFS
28810   test -z "$as_dir" && as_dir=.
28811   for as_base in sh bash ksh sh5; do
28812          case $as_dir in
28813          /*)
28814            if ("$as_dir/$as_base" -c '
28815   as_lineno_1=$LINENO
28816   as_lineno_2=$LINENO
28817   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28818   test "x$as_lineno_1" != "x$as_lineno_2" &&
28819   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28820              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28821              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28822              CONFIG_SHELL=$as_dir/$as_base
28823              export CONFIG_SHELL
28824              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28825            fi;;
28826          esac
28827        done
28828 done
28829 ;;
28830   esac
28831
28832   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28833   # uniformly replaced by the line number.  The first 'sed' inserts a
28834   # line-number line before each line; the second 'sed' does the real
28835   # work.  The second script uses 'N' to pair each line-number line
28836   # with the numbered line, and appends trailing '-' during
28837   # substitution so that $LINENO is not a special case at line end.
28838   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28839   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28840   sed '=' <$as_myself |
28841     sed '
28842       N
28843       s,$,-,
28844       : loop
28845       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28846       t loop
28847       s,-$,,
28848       s,^['$as_cr_digits']*\n,,
28849     ' >$as_me.lineno &&
28850   chmod +x $as_me.lineno ||
28851     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28852 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28853    { (exit 1); exit 1; }; }
28854
28855   # Don't try to exec as it changes $[0], causing all sort of problems
28856   # (the dirname of $[0] is not the place where we might find the
28857   # original and so on.  Autoconf is especially sensible to this).
28858   . ./$as_me.lineno
28859   # Exit status is that of the last command.
28860   exit
28861 }
28862
28863
28864 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28865   *c*,-n*) ECHO_N= ECHO_C='
28866 ' ECHO_T='      ' ;;
28867   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28868   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28869 esac
28870
28871 if expr a : '\(a\)' >/dev/null 2>&1; then
28872   as_expr=expr
28873 else
28874   as_expr=false
28875 fi
28876
28877 rm -f conf$$ conf$$.exe conf$$.file
28878 echo >conf$$.file
28879 if ln -s conf$$.file conf$$ 2>/dev/null; then
28880   # We could just check for DJGPP; but this test a) works b) is more generic
28881   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28882   if test -f conf$$.exe; then
28883     # Don't use ln at all; we don't have any links
28884     as_ln_s='cp -p'
28885   else
28886     as_ln_s='ln -s'
28887   fi
28888 elif ln conf$$.file conf$$ 2>/dev/null; then
28889   as_ln_s=ln
28890 else
28891   as_ln_s='cp -p'
28892 fi
28893 rm -f conf$$ conf$$.exe conf$$.file
28894
28895 if mkdir -p . 2>/dev/null; then
28896   as_mkdir_p=:
28897 else
28898   test -d ./-p && rmdir ./-p
28899   as_mkdir_p=false
28900 fi
28901
28902 as_executable_p="test -f"
28903
28904 # Sed expression to map a string onto a valid CPP name.
28905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28906
28907 # Sed expression to map a string onto a valid variable name.
28908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28909
28910
28911 # IFS
28912 # We need space, tab and new line, in precisely that order.
28913 as_nl='
28914 '
28915 IFS="   $as_nl"
28916
28917 # CDPATH.
28918 $as_unset CDPATH
28919
28920 exec 6>&1
28921
28922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28923 # report actual input values of CONFIG_FILES etc. instead of their
28924 # values after options handling.  Logging --version etc. is OK.
28925 exec 5>>config.log
28926 {
28927   echo
28928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28929 ## Running $as_me. ##
28930 _ASBOX
28931 } >&5
28932 cat >&5 <<_CSEOF
28933
28934 This file was extended by libjava $as_me version-unused, which was
28935 generated by GNU Autoconf 2.59.  Invocation command line was
28936
28937   CONFIG_FILES    = $CONFIG_FILES
28938   CONFIG_HEADERS  = $CONFIG_HEADERS
28939   CONFIG_LINKS    = $CONFIG_LINKS
28940   CONFIG_COMMANDS = $CONFIG_COMMANDS
28941   $ $0 $@
28942
28943 _CSEOF
28944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28945 echo >&5
28946 _ACEOF
28947
28948 # Files that config.status was made for.
28949 if test -n "$ac_config_files"; then
28950   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28951 fi
28952
28953 if test -n "$ac_config_headers"; then
28954   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28955 fi
28956
28957 if test -n "$ac_config_links"; then
28958   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28959 fi
28960
28961 if test -n "$ac_config_commands"; then
28962   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28963 fi
28964
28965 cat >>$CONFIG_STATUS <<\_ACEOF
28966
28967 ac_cs_usage="\
28968 \`$as_me' instantiates files from templates according to the
28969 current configuration.
28970
28971 Usage: $0 [OPTIONS] [FILE]...
28972
28973   -h, --help       print this help, then exit
28974   -V, --version    print version number, then exit
28975   -q, --quiet      do not print progress messages
28976   -d, --debug      don't remove temporary files
28977       --recheck    update $as_me by reconfiguring in the same conditions
28978   --file=FILE[:TEMPLATE]
28979                    instantiate the configuration file FILE
28980   --header=FILE[:TEMPLATE]
28981                    instantiate the configuration header FILE
28982
28983 Configuration files:
28984 $config_files
28985
28986 Configuration headers:
28987 $config_headers
28988
28989 Configuration links:
28990 $config_links
28991
28992 Configuration commands:
28993 $config_commands
28994
28995 Report bugs to <bug-autoconf@gnu.org>."
28996 _ACEOF
28997
28998 cat >>$CONFIG_STATUS <<_ACEOF
28999 ac_cs_version="\\
29000 libjava config.status version-unused
29001 configured by $0, generated by GNU Autoconf 2.59,
29002   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29003
29004 Copyright (C) 2003 Free Software Foundation, Inc.
29005 This config.status script is free software; the Free Software Foundation
29006 gives unlimited permission to copy, distribute and modify it."
29007 srcdir=$srcdir
29008 INSTALL="$INSTALL"
29009 _ACEOF
29010
29011 cat >>$CONFIG_STATUS <<\_ACEOF
29012 # If no file are specified by the user, then we need to provide default
29013 # value.  By we need to know if files were specified by the user.
29014 ac_need_defaults=:
29015 while test $# != 0
29016 do
29017   case $1 in
29018   --*=*)
29019     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29020     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29021     ac_shift=:
29022     ;;
29023   -*)
29024     ac_option=$1
29025     ac_optarg=$2
29026     ac_shift=shift
29027     ;;
29028   *) # This is not an option, so the user has probably given explicit
29029      # arguments.
29030      ac_option=$1
29031      ac_need_defaults=false;;
29032   esac
29033
29034   case $ac_option in
29035   # Handling of the options.
29036 _ACEOF
29037 cat >>$CONFIG_STATUS <<\_ACEOF
29038   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29039     ac_cs_recheck=: ;;
29040   --version | --vers* | -V )
29041     echo "$ac_cs_version"; exit 0 ;;
29042   --he | --h)
29043     # Conflict between --help and --header
29044     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29045 Try \`$0 --help' for more information." >&5
29046 echo "$as_me: error: ambiguous option: $1
29047 Try \`$0 --help' for more information." >&2;}
29048    { (exit 1); exit 1; }; };;
29049   --help | --hel | -h )
29050     echo "$ac_cs_usage"; exit 0 ;;
29051   --debug | --d* | -d )
29052     debug=: ;;
29053   --file | --fil | --fi | --f )
29054     $ac_shift
29055     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29056     ac_need_defaults=false;;
29057   --header | --heade | --head | --hea )
29058     $ac_shift
29059     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29060     ac_need_defaults=false;;
29061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29062   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29063     ac_cs_silent=: ;;
29064
29065   # This is an error.
29066   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29067 Try \`$0 --help' for more information." >&5
29068 echo "$as_me: error: unrecognized option: $1
29069 Try \`$0 --help' for more information." >&2;}
29070    { (exit 1); exit 1; }; } ;;
29071
29072   *) ac_config_targets="$ac_config_targets $1" ;;
29073
29074   esac
29075   shift
29076 done
29077
29078 ac_configure_extra_args=
29079
29080 if $ac_cs_silent; then
29081   exec 6>/dev/null
29082   ac_configure_extra_args="$ac_configure_extra_args --silent"
29083 fi
29084
29085 _ACEOF
29086 cat >>$CONFIG_STATUS <<_ACEOF
29087 if \$ac_cs_recheck; then
29088   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29089   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29090 fi
29091
29092 _ACEOF
29093
29094 cat >>$CONFIG_STATUS <<_ACEOF
29095 #
29096 # INIT-COMMANDS section.
29097 #
29098
29099
29100 srcdir="$srcdir"
29101 host="$host"
29102 target="$target"
29103 with_multisubdir="$with_multisubdir"
29104 with_multisrctop="$with_multisrctop"
29105 with_target_subdir="$with_target_subdir"
29106 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29107 multi_basedir="$multi_basedir"
29108 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29109 CC="$CC"
29110 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29111
29112
29113 # The HP-UX ksh and POSIX shell print the target directory to stdout
29114 # if CDPATH is set.
29115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29116
29117 sed_quote_subst='$sed_quote_subst'
29118 double_quote_subst='$double_quote_subst'
29119 delay_variable_subst='$delay_variable_subst'
29120 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29121 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29122 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29123 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29124 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29125 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29126 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29127 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29128 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29129 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29130 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29131 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29132 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29133 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29134 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29135 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29136 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29137 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29138 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29139 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29140 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29141 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29142 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29143 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29144 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29145 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29146 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29147 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29148 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29149 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29150 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29151 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29152 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29153 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29154 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29155 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29156 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29157 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29158 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29159 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29160 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29161 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29162 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29164 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"`'
29165 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29166 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29167 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29168 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29169 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29170 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29171 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29172 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29173 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29174 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29175 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29176 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29177 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29178 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29179 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29180 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29181 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29182 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29183 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29184 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29185 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29186 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29187 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29188 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29189 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29190 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29191 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29192 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29193 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29194 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29195 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29196 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29197 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29198 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29199 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29200 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29201 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29202 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29203 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29204 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29205 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29206 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29207 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29208 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29209 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29210 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29211 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29212 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29213 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29214 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29215 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29216 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29217 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29218 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29219 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29220 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29221 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29222 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29223 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29224 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29225 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29226 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29227 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29228 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29229 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29230 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29231 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29232 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29233 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29234 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29235 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29236 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29237 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29238 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29239 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29240 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29241 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29242 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29243 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29244 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29245 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29246 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29247 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29248 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29249 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29250 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29251 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29252 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29253 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29254 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29255 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29256 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29257 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29258 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29259 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29260 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29261 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29262 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29263 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29264 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29265 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29266 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29267 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29268 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29269 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29270 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29271 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29272 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29273 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29274 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29275 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29276 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29277 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29278 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29279 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29280 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29281 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29282 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29283 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29284 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29285 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29286 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29287 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29288 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29289 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29290 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29291 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29292 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29293 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29294 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29295 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29296 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29297 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29298 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29300 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29301 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29303 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29304 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29305 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29306 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29307 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29308 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29309 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29310 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29311 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29312 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29313 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29314 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29315 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29316 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29317 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29318 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29319 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29320 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29321 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29322 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29323 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29324 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29325 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29326 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29327 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29328 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29329 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29330 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29331 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29332 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29333 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29334 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29335 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29336 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29337 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29338
29339 LTCC='$LTCC'
29340 LTCFLAGS='$LTCFLAGS'
29341 compiler='$compiler_DEFAULT'
29342
29343 # Quote evaled strings.
29344 for var in SED \
29345 GREP \
29346 EGREP \
29347 FGREP \
29348 LD \
29349 NM \
29350 LN_S \
29351 lt_SP2NL \
29352 lt_NL2SP \
29353 reload_flag \
29354 OBJDUMP \
29355 deplibs_check_method \
29356 file_magic_cmd \
29357 AR \
29358 AR_FLAGS \
29359 STRIP \
29360 RANLIB \
29361 CC \
29362 CFLAGS \
29363 compiler \
29364 lt_cv_sys_global_symbol_pipe \
29365 lt_cv_sys_global_symbol_to_cdecl \
29366 lt_cv_sys_global_symbol_to_c_name_address \
29367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29368 SHELL \
29369 ECHO \
29370 lt_prog_compiler_no_builtin_flag \
29371 lt_prog_compiler_wl \
29372 lt_prog_compiler_pic \
29373 lt_prog_compiler_static \
29374 lt_cv_prog_compiler_c_o \
29375 need_locks \
29376 DSYMUTIL \
29377 NMEDIT \
29378 LIPO \
29379 OTOOL \
29380 OTOOL64 \
29381 shrext_cmds \
29382 export_dynamic_flag_spec \
29383 whole_archive_flag_spec \
29384 compiler_needs_object \
29385 with_gnu_ld \
29386 allow_undefined_flag \
29387 no_undefined_flag \
29388 hardcode_libdir_flag_spec \
29389 hardcode_libdir_flag_spec_ld \
29390 hardcode_libdir_separator \
29391 fix_srcfile_path \
29392 exclude_expsyms \
29393 include_expsyms \
29394 file_list_spec \
29395 variables_saved_for_relink \
29396 libname_spec \
29397 library_names_spec \
29398 soname_spec \
29399 finish_eval \
29400 old_striplib \
29401 striplib \
29402 compiler_lib_search_dirs \
29403 predep_objects \
29404 postdep_objects \
29405 predeps \
29406 postdeps \
29407 compiler_lib_search_path \
29408 LD_CXX \
29409 LD_GCJ \
29410 compiler_CXX \
29411 compiler_GCJ \
29412 lt_prog_compiler_no_builtin_flag_CXX \
29413 lt_prog_compiler_no_builtin_flag_GCJ \
29414 lt_prog_compiler_wl_CXX \
29415 lt_prog_compiler_wl_GCJ \
29416 lt_prog_compiler_pic_CXX \
29417 lt_prog_compiler_pic_GCJ \
29418 lt_prog_compiler_static_CXX \
29419 lt_prog_compiler_static_GCJ \
29420 lt_cv_prog_compiler_c_o_CXX \
29421 lt_cv_prog_compiler_c_o_GCJ \
29422 export_dynamic_flag_spec_CXX \
29423 export_dynamic_flag_spec_GCJ \
29424 whole_archive_flag_spec_CXX \
29425 whole_archive_flag_spec_GCJ \
29426 compiler_needs_object_CXX \
29427 compiler_needs_object_GCJ \
29428 with_gnu_ld_CXX \
29429 with_gnu_ld_GCJ \
29430 allow_undefined_flag_CXX \
29431 allow_undefined_flag_GCJ \
29432 no_undefined_flag_CXX \
29433 no_undefined_flag_GCJ \
29434 hardcode_libdir_flag_spec_CXX \
29435 hardcode_libdir_flag_spec_GCJ \
29436 hardcode_libdir_flag_spec_ld_CXX \
29437 hardcode_libdir_flag_spec_ld_GCJ \
29438 hardcode_libdir_separator_CXX \
29439 hardcode_libdir_separator_GCJ \
29440 fix_srcfile_path_CXX \
29441 fix_srcfile_path_GCJ \
29442 exclude_expsyms_CXX \
29443 exclude_expsyms_GCJ \
29444 include_expsyms_CXX \
29445 include_expsyms_GCJ \
29446 file_list_spec_CXX \
29447 file_list_spec_GCJ \
29448 compiler_lib_search_dirs_CXX \
29449 compiler_lib_search_dirs_GCJ \
29450 predep_objects_CXX \
29451 predep_objects_GCJ \
29452 postdep_objects_CXX \
29453 postdep_objects_GCJ \
29454 predeps_CXX \
29455 predeps_GCJ \
29456 postdeps_CXX \
29457 postdeps_GCJ \
29458 compiler_lib_search_path_CXX \
29459 compiler_lib_search_path_GCJ; do
29460     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29461     *[\\\\\\\`\\"\\\$]*)
29462       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29463       ;;
29464     *)
29465       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29466       ;;
29467     esac
29468 done
29469
29470 # Double-quote double-evaled strings.
29471 for var in reload_cmds \
29472 old_postinstall_cmds \
29473 old_postuninstall_cmds \
29474 old_archive_cmds \
29475 extract_expsyms_cmds \
29476 old_archive_from_new_cmds \
29477 old_archive_from_expsyms_cmds \
29478 archive_cmds \
29479 archive_expsym_cmds \
29480 module_cmds \
29481 module_expsym_cmds \
29482 export_symbols_cmds \
29483 prelink_cmds \
29484 postinstall_cmds \
29485 postuninstall_cmds \
29486 finish_cmds \
29487 sys_lib_search_path_spec \
29488 sys_lib_dlsearch_path_spec \
29489 old_archive_cmds_CXX \
29490 old_archive_cmds_GCJ \
29491 old_archive_from_new_cmds_CXX \
29492 old_archive_from_new_cmds_GCJ \
29493 old_archive_from_expsyms_cmds_CXX \
29494 old_archive_from_expsyms_cmds_GCJ \
29495 archive_cmds_CXX \
29496 archive_cmds_GCJ \
29497 archive_expsym_cmds_CXX \
29498 archive_expsym_cmds_GCJ \
29499 module_cmds_CXX \
29500 module_cmds_GCJ \
29501 module_expsym_cmds_CXX \
29502 module_expsym_cmds_GCJ \
29503 export_symbols_cmds_CXX \
29504 export_symbols_cmds_GCJ \
29505 prelink_cmds_CXX \
29506 prelink_cmds_GCJ; do
29507     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29508     *[\\\\\\\`\\"\\\$]*)
29509       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29510       ;;
29511     *)
29512       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29513       ;;
29514     esac
29515 done
29516
29517 # Fix-up fallback echo if it was mangled by the above quoting rules.
29518 case \$lt_ECHO in
29519 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29520   ;;
29521 esac
29522
29523 ac_aux_dir='$ac_aux_dir'
29524 xsi_shell='$xsi_shell'
29525 lt_shell_append='$lt_shell_append'
29526
29527 # See if we are running on zsh, and set the options which allow our
29528 # commands through without removal of \ escapes INIT.
29529 if test -n "\${ZSH_VERSION+set}" ; then
29530    setopt NO_GLOB_SUBST
29531 fi
29532
29533
29534     PACKAGE='$PACKAGE'
29535     VERSION='$VERSION'
29536     TIMESTAMP='$TIMESTAMP'
29537     RM='$RM'
29538     ofile='$ofile'
29539
29540
29541
29542
29543
29544
29545
29546
29547 _ACEOF
29548
29549
29550
29551 cat >>$CONFIG_STATUS <<\_ACEOF
29552 for ac_config_target in $ac_config_targets
29553 do
29554   case "$ac_config_target" in
29555   # Handling of arguments.
29556   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29557   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29558   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29559   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29560   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29561   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29562   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29563   "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29564   "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29565   "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29566   "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29567   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29568   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29569   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29570   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29571   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29572   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29573   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29574   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29575   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29576   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29577   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29578   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29579   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29580   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29581   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29582   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29583   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29584   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29585   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29586   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29587   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29588   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29589   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29590   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29592    { (exit 1); exit 1; }; };;
29593   esac
29594 done
29595
29596 # If the user did not use the arguments to specify the items to instantiate,
29597 # then the envvar interface is used.  Set only those that are not.
29598 # We use the long form for the default assignment because of an extremely
29599 # bizarre bug on SunOS 4.1.3.
29600 if $ac_need_defaults; then
29601   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29602   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29603   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29604   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29605 fi
29606
29607 # Have a temporary directory for convenience.  Make it in the build tree
29608 # simply because there is no reason to put it here, and in addition,
29609 # creating and moving files from /tmp can sometimes cause problems.
29610 # Create a temporary directory, and hook for its removal unless debugging.
29611 $debug ||
29612 {
29613   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29614   trap '{ (exit 1); exit 1; }' 1 2 13 15
29615 }
29616
29617 # Create a (secure) tmp directory for tmp files.
29618
29619 {
29620   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29621   test -n "$tmp" && test -d "$tmp"
29622 }  ||
29623 {
29624   tmp=./confstat$$-$RANDOM
29625   (umask 077 && mkdir $tmp)
29626 } ||
29627 {
29628    echo "$me: cannot create a temporary directory in ." >&2
29629    { (exit 1); exit 1; }
29630 }
29631
29632 _ACEOF
29633
29634 cat >>$CONFIG_STATUS <<_ACEOF
29635
29636 #
29637 # CONFIG_FILES section.
29638 #
29639
29640 # No need to generate the scripts if there are no CONFIG_FILES.
29641 # This happens for instance when ./config.status config.h
29642 if test -n "\$CONFIG_FILES"; then
29643   # Protect against being on the right side of a sed subst in config.status.
29644   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29645    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29646 s,@SHELL@,$SHELL,;t t
29647 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29648 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29649 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29650 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29651 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29652 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29653 s,@exec_prefix@,$exec_prefix,;t t
29654 s,@prefix@,$prefix,;t t
29655 s,@program_transform_name@,$program_transform_name,;t t
29656 s,@bindir@,$bindir,;t t
29657 s,@sbindir@,$sbindir,;t t
29658 s,@libexecdir@,$libexecdir,;t t
29659 s,@datadir@,$datadir,;t t
29660 s,@sysconfdir@,$sysconfdir,;t t
29661 s,@sharedstatedir@,$sharedstatedir,;t t
29662 s,@localstatedir@,$localstatedir,;t t
29663 s,@libdir@,$libdir,;t t
29664 s,@includedir@,$includedir,;t t
29665 s,@oldincludedir@,$oldincludedir,;t t
29666 s,@infodir@,$infodir,;t t
29667 s,@mandir@,$mandir,;t t
29668 s,@build_alias@,$build_alias,;t t
29669 s,@host_alias@,$host_alias,;t t
29670 s,@target_alias@,$target_alias,;t t
29671 s,@DEFS@,$DEFS,;t t
29672 s,@ECHO_C@,$ECHO_C,;t t
29673 s,@ECHO_N@,$ECHO_N,;t t
29674 s,@ECHO_T@,$ECHO_T,;t t
29675 s,@LIBS@,$LIBS,;t t
29676 s,@build@,$build,;t t
29677 s,@build_cpu@,$build_cpu,;t t
29678 s,@build_vendor@,$build_vendor,;t t
29679 s,@build_os@,$build_os,;t t
29680 s,@build_libsubdir@,$build_libsubdir,;t t
29681 s,@build_subdir@,$build_subdir,;t t
29682 s,@host_subdir@,$host_subdir,;t t
29683 s,@target_subdir@,$target_subdir,;t t
29684 s,@multi_basedir@,$multi_basedir,;t t
29685 s,@host@,$host,;t t
29686 s,@host_cpu@,$host_cpu,;t t
29687 s,@host_vendor@,$host_vendor,;t t
29688 s,@host_os@,$host_os,;t t
29689 s,@target@,$target,;t t
29690 s,@target_cpu@,$target_cpu,;t t
29691 s,@target_vendor@,$target_vendor,;t t
29692 s,@target_os@,$target_os,;t t
29693 s,@target_noncanonical@,$target_noncanonical,;t t
29694 s,@LN_S@,$LN_S,;t t
29695 s,@mkinstalldirs@,$mkinstalldirs,;t t
29696 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
29697 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
29698 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
29699 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29700 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29701 s,@CC@,$CC,;t t
29702 s,@ac_ct_CC@,$ac_ct_CC,;t t
29703 s,@EXEEXT@,$EXEEXT,;t t
29704 s,@OBJEXT@,$OBJEXT,;t t
29705 s,@CXX@,$CXX,;t t
29706 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29707 s,@CFLAGS@,$CFLAGS,;t t
29708 s,@CXXFLAGS@,$CXXFLAGS,;t t
29709 s,@LDFLAGS@,$LDFLAGS,;t t
29710 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29711 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29712 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29713 s,@CYGPATH_W@,$CYGPATH_W,;t t
29714 s,@PACKAGE@,$PACKAGE,;t t
29715 s,@VERSION@,$VERSION,;t t
29716 s,@ACLOCAL@,$ACLOCAL,;t t
29717 s,@AUTOCONF@,$AUTOCONF,;t t
29718 s,@AUTOMAKE@,$AUTOMAKE,;t t
29719 s,@AUTOHEADER@,$AUTOHEADER,;t t
29720 s,@MAKEINFO@,$MAKEINFO,;t t
29721 s,@install_sh@,$install_sh,;t t
29722 s,@STRIP@,$STRIP,;t t
29723 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29724 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29725 s,@mkdir_p@,$mkdir_p,;t t
29726 s,@AWK@,$AWK,;t t
29727 s,@SET_MAKE@,$SET_MAKE,;t t
29728 s,@am__leading_dot@,$am__leading_dot,;t t
29729 s,@AMTAR@,$AMTAR,;t t
29730 s,@am__tar@,$am__tar,;t t
29731 s,@am__untar@,$am__untar,;t t
29732 s,@DEPDIR@,$DEPDIR,;t t
29733 s,@am__include@,$am__include,;t t
29734 s,@am__quote@,$am__quote,;t t
29735 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29736 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29737 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29738 s,@CCDEPMODE@,$CCDEPMODE,;t t
29739 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29740 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29741 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29742 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29743 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29744 s,@AS@,$AS,;t t
29745 s,@ac_ct_AS@,$ac_ct_AS,;t t
29746 s,@LD@,$LD,;t t
29747 s,@ac_ct_LD@,$ac_ct_LD,;t t
29748 s,@AR@,$AR,;t t
29749 s,@ac_ct_AR@,$ac_ct_AR,;t t
29750 s,@RANLIB@,$RANLIB,;t t
29751 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29752 s,@JAR@,$JAR,;t t
29753 s,@ZIP@,$ZIP,;t t
29754 s,@UNZIP@,$UNZIP,;t t
29755 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29756 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29757 s,@MAINT@,$MAINT,;t t
29758 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29759 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29760 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29761 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29762 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29763 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29764 s,@TOOLKIT@,$TOOLKIT,;t t
29765 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29766 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29767 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29768 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29769 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29770 s,@GCJH@,$GCJH,;t t
29771 s,@host_exeext@,$host_exeext,;t t
29772 s,@INCLTDL@,$INCLTDL,;t t
29773 s,@LIBLTDL@,$LIBLTDL,;t t
29774 s,@DIRLTDL@,$DIRLTDL,;t t
29775 s,@LIBTOOL@,$LIBTOOL,;t t
29776 s,@SED@,$SED,;t t
29777 s,@EGREP@,$EGREP,;t t
29778 s,@FGREP@,$FGREP,;t t
29779 s,@GREP@,$GREP,;t t
29780 s,@DUMPBIN@,$DUMPBIN,;t t
29781 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29782 s,@NM@,$NM,;t t
29783 s,@OBJDUMP@,$OBJDUMP,;t t
29784 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29785 s,@lt_ECHO@,$lt_ECHO,;t t
29786 s,@DSYMUTIL@,$DSYMUTIL,;t t
29787 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29788 s,@NMEDIT@,$NMEDIT,;t t
29789 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29790 s,@LIPO@,$LIPO,;t t
29791 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29792 s,@OTOOL@,$OTOOL,;t t
29793 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29794 s,@OTOOL64@,$OTOOL64,;t t
29795 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29796 s,@CPP@,$CPP,;t t
29797 s,@CPPFLAGS@,$CPPFLAGS,;t t
29798 s,@CXXCPP@,$CXXCPP,;t t
29799 s,@GCJ@,$GCJ,;t t
29800 s,@GCJFLAGS@,$GCJFLAGS,;t t
29801 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29802 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29803 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29804 s,@subdirs@,$subdirs,;t t
29805 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29806 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29807 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29808 s,@ECJ_JAR@,$ECJ_JAR,;t t
29809 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29810 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29811 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29812 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29813 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29814 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29815 s,@JAVA_HOME@,$JAVA_HOME,;t t
29816 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29817 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29818 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29819 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29820 s,@INTERPRETER@,$INTERPRETER,;t t
29821 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29822 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29823 s,@LIBFFI@,$LIBFFI,;t t
29824 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29825 s,@PLATFORM@,$PLATFORM,;t t
29826 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29827 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29828 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29829 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29830 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29831 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29832 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29833 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29834 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29835 s,@X_CFLAGS@,$X_CFLAGS,;t t
29836 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29837 s,@X_LIBS@,$X_LIBS,;t t
29838 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29839 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29840 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29841 s,@extra_ldflags@,$extra_ldflags,;t t
29842 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29843 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29844 s,@GCLIBS@,$GCLIBS,;t t
29845 s,@GCINCS@,$GCINCS,;t t
29846 s,@GCDEPS@,$GCDEPS,;t t
29847 s,@GCSPEC@,$GCSPEC,;t t
29848 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29849 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29850 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29851 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29852 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29853 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29854 s,@THREADLIBS@,$THREADLIBS,;t t
29855 s,@THREADINCS@,$THREADINCS,;t t
29856 s,@THREADDEPS@,$THREADDEPS,;t t
29857 s,@THREADSPEC@,$THREADSPEC,;t t
29858 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29859 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29860 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29861 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29862 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29863 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29864 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29865 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29866 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29867 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29868 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29869 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29870 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29871 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29872 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29873 s,@LIBICONV@,$LIBICONV,;t t
29874 s,@LTLIBICONV@,$LTLIBICONV,;t t
29875 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29876 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29877 s,@GTK_LIBS@,$GTK_LIBS,;t t
29878 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29879 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29880 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29881 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29882 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29883 s,@ZLIBS@,$ZLIBS,;t t
29884 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29885 s,@ZINCS@,$ZINCS,;t t
29886 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29887 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29888 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29889 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29890 s,@IEEESPEC@,$IEEESPEC,;t t
29891 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29892 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29893 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29894 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29895 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29896 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29897 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
29898 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
29899 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29900 s,@toolexecdir@,$toolexecdir,;t t
29901 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29902 s,@toolexeclibdir@,$toolexeclibdir,;t t
29903 s,@GCJVERSION@,$GCJVERSION,;t t
29904 s,@dbexecdir@,$dbexecdir,;t t
29905 s,@gcjsubdir@,$gcjsubdir,;t t
29906 s,@gxx_include_dir@,$gxx_include_dir,;t t
29907 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29908 s,@PERL@,$PERL,;t t
29909 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29910 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29911 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29912 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29913 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29914 s,@here@,$here,;t t
29915 s,@python_mod_dir@,$python_mod_dir,;t t
29916 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29917 s,@MAKE@,$MAKE,;t t
29918 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29919 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29920 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29921 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29922 s,@gcc_suffix@,$gcc_suffix,;t t
29923 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29924 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29925 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29926 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29927 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29928 s,@JRE_DIR@,$JRE_DIR,;t t
29929 s,@SDK_DIR@,$SDK_DIR,;t t
29930 s,@JRE_LNK@,$JRE_LNK,;t t
29931 s,@SDK_LNK@,$SDK_LNK,;t t
29932 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29933 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29934 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29935 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29936 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29937 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29938 s,@CPU@,$CPU,;t t
29939 s,@OS@,$OS,;t t
29940 s,@LIBDIR@,$LIBDIR,;t t
29941 s,@LIBOBJS@,$LIBOBJS,;t t
29942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29943 CEOF
29944
29945 _ACEOF
29946
29947   cat >>$CONFIG_STATUS <<\_ACEOF
29948   # Split the substitutions into bite-sized pieces for seds with
29949   # small command number limits, like on Digital OSF/1 and HP-UX.
29950   ac_max_sed_lines=48
29951   ac_sed_frag=1 # Number of current file.
29952   ac_beg=1 # First line for current file.
29953   ac_end=$ac_max_sed_lines # Line after last line for current file.
29954   ac_more_lines=:
29955   ac_sed_cmds=
29956   while $ac_more_lines; do
29957     if test $ac_beg -gt 1; then
29958       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29959     else
29960       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29961     fi
29962     if test ! -s $tmp/subs.frag; then
29963       ac_more_lines=false
29964     else
29965       # The purpose of the label and of the branching condition is to
29966       # speed up the sed processing (if there are no `@' at all, there
29967       # is no need to browse any of the substitutions).
29968       # These are the two extra sed commands mentioned above.
29969       (echo ':t
29970   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29971       if test -z "$ac_sed_cmds"; then
29972         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29973       else
29974         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29975       fi
29976       ac_sed_frag=`expr $ac_sed_frag + 1`
29977       ac_beg=$ac_end
29978       ac_end=`expr $ac_end + $ac_max_sed_lines`
29979     fi
29980   done
29981   if test -z "$ac_sed_cmds"; then
29982     ac_sed_cmds=cat
29983   fi
29984 fi # test -n "$CONFIG_FILES"
29985
29986 _ACEOF
29987 cat >>$CONFIG_STATUS <<\_ACEOF
29988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29989   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29990   case $ac_file in
29991   - | *:- | *:-:* ) # input from stdin
29992         cat >$tmp/stdin
29993         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29995   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29996         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29997   * )   ac_file_in=$ac_file.in ;;
29998   esac
29999
30000   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30001   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30003          X"$ac_file" : 'X\(//\)[^/]' \| \
30004          X"$ac_file" : 'X\(//\)$' \| \
30005          X"$ac_file" : 'X\(/\)' \| \
30006          .     : '\(.\)' 2>/dev/null ||
30007 echo X"$ac_file" |
30008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30010           /^X\(\/\/\)$/{ s//\1/; q; }
30011           /^X\(\/\).*/{ s//\1/; q; }
30012           s/.*/./; q'`
30013   { if $as_mkdir_p; then
30014     mkdir -p "$ac_dir"
30015   else
30016     as_dir="$ac_dir"
30017     as_dirs=
30018     while test ! -d "$as_dir"; do
30019       as_dirs="$as_dir $as_dirs"
30020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022          X"$as_dir" : 'X\(//\)[^/]' \| \
30023          X"$as_dir" : 'X\(//\)$' \| \
30024          X"$as_dir" : 'X\(/\)' \| \
30025          .     : '\(.\)' 2>/dev/null ||
30026 echo X"$as_dir" |
30027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30029           /^X\(\/\/\)$/{ s//\1/; q; }
30030           /^X\(\/\).*/{ s//\1/; q; }
30031           s/.*/./; q'`
30032     done
30033     test ! -n "$as_dirs" || mkdir $as_dirs
30034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30036    { (exit 1); exit 1; }; }; }
30037
30038   ac_builddir=.
30039
30040 if test "$ac_dir" != .; then
30041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30042   # A "../" for each directory in $ac_dir_suffix.
30043   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30044 else
30045   ac_dir_suffix= ac_top_builddir=
30046 fi
30047
30048 case $srcdir in
30049   .)  # No --srcdir option.  We are building in place.
30050     ac_srcdir=.
30051     if test -z "$ac_top_builddir"; then
30052        ac_top_srcdir=.
30053     else
30054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30055     fi ;;
30056   [\\/]* | ?:[\\/]* )  # Absolute path.
30057     ac_srcdir=$srcdir$ac_dir_suffix;
30058     ac_top_srcdir=$srcdir ;;
30059   *) # Relative path.
30060     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30061     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30062 esac
30063
30064 # Do not use `cd foo && pwd` to compute absolute paths, because
30065 # the directories may not exist.
30066 case `pwd` in
30067 .) ac_abs_builddir="$ac_dir";;
30068 *)
30069   case "$ac_dir" in
30070   .) ac_abs_builddir=`pwd`;;
30071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30073   esac;;
30074 esac
30075 case $ac_abs_builddir in
30076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30077 *)
30078   case ${ac_top_builddir}. in
30079   .) ac_abs_top_builddir=$ac_abs_builddir;;
30080   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30081   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30082   esac;;
30083 esac
30084 case $ac_abs_builddir in
30085 .) ac_abs_srcdir=$ac_srcdir;;
30086 *)
30087   case $ac_srcdir in
30088   .) ac_abs_srcdir=$ac_abs_builddir;;
30089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30091   esac;;
30092 esac
30093 case $ac_abs_builddir in
30094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30095 *)
30096   case $ac_top_srcdir in
30097   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30098   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30099   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30100   esac;;
30101 esac
30102
30103
30104   case $INSTALL in
30105   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30106   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30107   esac
30108
30109   if test x"$ac_file" != x-; then
30110     { echo "$as_me:$LINENO: creating $ac_file" >&5
30111 echo "$as_me: creating $ac_file" >&6;}
30112     rm -f "$ac_file"
30113   fi
30114   # Let's still pretend it is `configure' which instantiates (i.e., don't
30115   # use $as_me), people would be surprised to read:
30116   #    /* config.h.  Generated by config.status.  */
30117   if test x"$ac_file" = x-; then
30118     configure_input=
30119   else
30120     configure_input="$ac_file.  "
30121   fi
30122   configure_input=$configure_input"Generated from `echo $ac_file_in |
30123                                      sed 's,.*/,,'` by configure."
30124
30125   # First look for the input files in the build tree, otherwise in the
30126   # src tree.
30127   ac_file_inputs=`IFS=:
30128     for f in $ac_file_in; do
30129       case $f in
30130       -) echo $tmp/stdin ;;
30131       [\\/$]*)
30132          # Absolute (can't be DOS-style, as IFS=:)
30133          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30134 echo "$as_me: error: cannot find input file: $f" >&2;}
30135    { (exit 1); exit 1; }; }
30136          echo "$f";;
30137       *) # Relative
30138          if test -f "$f"; then
30139            # Build tree
30140            echo "$f"
30141          elif test -f "$srcdir/$f"; then
30142            # Source tree
30143            echo "$srcdir/$f"
30144          else
30145            # /dev/null tree
30146            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30147 echo "$as_me: error: cannot find input file: $f" >&2;}
30148    { (exit 1); exit 1; }; }
30149          fi;;
30150       esac
30151     done` || { (exit 1); exit 1; }
30152 _ACEOF
30153 cat >>$CONFIG_STATUS <<_ACEOF
30154   sed "$ac_vpsub
30155 $extrasub
30156 _ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30158 :t
30159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30160 s,@configure_input@,$configure_input,;t t
30161 s,@srcdir@,$ac_srcdir,;t t
30162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30163 s,@top_srcdir@,$ac_top_srcdir,;t t
30164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30165 s,@builddir@,$ac_builddir,;t t
30166 s,@abs_builddir@,$ac_abs_builddir,;t t
30167 s,@top_builddir@,$ac_top_builddir,;t t
30168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30169 s,@INSTALL@,$ac_INSTALL,;t t
30170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30171   rm -f $tmp/stdin
30172   if test x"$ac_file" != x-; then
30173     mv $tmp/out $ac_file
30174   else
30175     cat $tmp/out
30176     rm -f $tmp/out
30177   fi
30178
30179   # Run the commands associated with the file.
30180   case $ac_file in
30181     scripts/jar ) chmod +x scripts/jar ;;
30182   esac
30183 done
30184 _ACEOF
30185 cat >>$CONFIG_STATUS <<\_ACEOF
30186
30187 #
30188 # CONFIG_HEADER section.
30189 #
30190
30191 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30192 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30193 #
30194 # ac_d sets the value in "#define NAME VALUE" lines.
30195 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30196 ac_dB='[         ].*$,\1#\2'
30197 ac_dC=' '
30198 ac_dD=',;t'
30199 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30200 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30201 ac_uB='$,\1#\2define\3'
30202 ac_uC=' '
30203 ac_uD=',;t'
30204
30205 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30206   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30207   case $ac_file in
30208   - | *:- | *:-:* ) # input from stdin
30209         cat >$tmp/stdin
30210         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30211         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30212   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30213         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30214   * )   ac_file_in=$ac_file.in ;;
30215   esac
30216
30217   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30218 echo "$as_me: creating $ac_file" >&6;}
30219
30220   # First look for the input files in the build tree, otherwise in the
30221   # src tree.
30222   ac_file_inputs=`IFS=:
30223     for f in $ac_file_in; do
30224       case $f in
30225       -) echo $tmp/stdin ;;
30226       [\\/$]*)
30227          # Absolute (can't be DOS-style, as IFS=:)
30228          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30229 echo "$as_me: error: cannot find input file: $f" >&2;}
30230    { (exit 1); exit 1; }; }
30231          # Do quote $f, to prevent DOS paths from being IFS'd.
30232          echo "$f";;
30233       *) # Relative
30234          if test -f "$f"; then
30235            # Build tree
30236            echo "$f"
30237          elif test -f "$srcdir/$f"; then
30238            # Source tree
30239            echo "$srcdir/$f"
30240          else
30241            # /dev/null tree
30242            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30243 echo "$as_me: error: cannot find input file: $f" >&2;}
30244    { (exit 1); exit 1; }; }
30245          fi;;
30246       esac
30247     done` || { (exit 1); exit 1; }
30248   # Remove the trailing spaces.
30249   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30250
30251 _ACEOF
30252
30253 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30254 # `conftest.undefs', that substitutes the proper values into
30255 # config.h.in to produce config.h.  The first handles `#define'
30256 # templates, and the second `#undef' templates.
30257 # And first: Protect against being on the right side of a sed subst in
30258 # config.status.  Protect against being in an unquoted here document
30259 # in config.status.
30260 rm -f conftest.defines conftest.undefs
30261 # Using a here document instead of a string reduces the quoting nightmare.
30262 # Putting comments in sed scripts is not portable.
30263 #
30264 # `end' is used to avoid that the second main sed command (meant for
30265 # 0-ary CPP macros) applies to n-ary macro definitions.
30266 # See the Autoconf documentation for `clear'.
30267 cat >confdef2sed.sed <<\_ACEOF
30268 s/[\\&,]/\\&/g
30269 s,[\\$`],\\&,g
30270 t clear
30271 : clear
30272 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30273 t end
30274 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30275 : end
30276 _ACEOF
30277 # If some macros were called several times there might be several times
30278 # the same #defines, which is useless.  Nevertheless, we may not want to
30279 # sort them, since we want the *last* AC-DEFINE to be honored.
30280 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30281 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30282 rm -f confdef2sed.sed
30283
30284 # This sed command replaces #undef with comments.  This is necessary, for
30285 # example, in the case of _POSIX_SOURCE, which is predefined and required
30286 # on some systems where configure will not decide to define it.
30287 cat >>conftest.undefs <<\_ACEOF
30288 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30289 _ACEOF
30290
30291 # Break up conftest.defines because some shells have a limit on the size
30292 # of here documents, and old seds have small limits too (100 cmds).
30293 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30294 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30295 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30296 echo '  :' >>$CONFIG_STATUS
30297 rm -f conftest.tail
30298 while grep . conftest.defines >/dev/null
30299 do
30300   # Write a limited-size here document to $tmp/defines.sed.
30301   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30302   # Speed up: don't consider the non `#define' lines.
30303   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30304   # Work around the forget-to-reset-the-flag bug.
30305   echo 't clr' >>$CONFIG_STATUS
30306   echo ': clr' >>$CONFIG_STATUS
30307   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30308   echo 'CEOF
30309   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30310   rm -f $tmp/in
30311   mv $tmp/out $tmp/in
30312 ' >>$CONFIG_STATUS
30313   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30314   rm -f conftest.defines
30315   mv conftest.tail conftest.defines
30316 done
30317 rm -f conftest.defines
30318 echo '  fi # grep' >>$CONFIG_STATUS
30319 echo >>$CONFIG_STATUS
30320
30321 # Break up conftest.undefs because some shells have a limit on the size
30322 # of here documents, and old seds have small limits too (100 cmds).
30323 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30324 rm -f conftest.tail
30325 while grep . conftest.undefs >/dev/null
30326 do
30327   # Write a limited-size here document to $tmp/undefs.sed.
30328   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30329   # Speed up: don't consider the non `#undef'
30330   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30331   # Work around the forget-to-reset-the-flag bug.
30332   echo 't clr' >>$CONFIG_STATUS
30333   echo ': clr' >>$CONFIG_STATUS
30334   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30335   echo 'CEOF
30336   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30337   rm -f $tmp/in
30338   mv $tmp/out $tmp/in
30339 ' >>$CONFIG_STATUS
30340   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30341   rm -f conftest.undefs
30342   mv conftest.tail conftest.undefs
30343 done
30344 rm -f conftest.undefs
30345
30346 cat >>$CONFIG_STATUS <<\_ACEOF
30347   # Let's still pretend it is `configure' which instantiates (i.e., don't
30348   # use $as_me), people would be surprised to read:
30349   #    /* config.h.  Generated by config.status.  */
30350   if test x"$ac_file" = x-; then
30351     echo "/* Generated by configure.  */" >$tmp/config.h
30352   else
30353     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30354   fi
30355   cat $tmp/in >>$tmp/config.h
30356   rm -f $tmp/in
30357   if test x"$ac_file" != x-; then
30358     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30359       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30360 echo "$as_me: $ac_file is unchanged" >&6;}
30361     else
30362       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30364          X"$ac_file" : 'X\(//\)[^/]' \| \
30365          X"$ac_file" : 'X\(//\)$' \| \
30366          X"$ac_file" : 'X\(/\)' \| \
30367          .     : '\(.\)' 2>/dev/null ||
30368 echo X"$ac_file" |
30369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30371           /^X\(\/\/\)$/{ s//\1/; q; }
30372           /^X\(\/\).*/{ s//\1/; q; }
30373           s/.*/./; q'`
30374       { if $as_mkdir_p; then
30375     mkdir -p "$ac_dir"
30376   else
30377     as_dir="$ac_dir"
30378     as_dirs=
30379     while test ! -d "$as_dir"; do
30380       as_dirs="$as_dir $as_dirs"
30381       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30383          X"$as_dir" : 'X\(//\)[^/]' \| \
30384          X"$as_dir" : 'X\(//\)$' \| \
30385          X"$as_dir" : 'X\(/\)' \| \
30386          .     : '\(.\)' 2>/dev/null ||
30387 echo X"$as_dir" |
30388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30390           /^X\(\/\/\)$/{ s//\1/; q; }
30391           /^X\(\/\).*/{ s//\1/; q; }
30392           s/.*/./; q'`
30393     done
30394     test ! -n "$as_dirs" || mkdir $as_dirs
30395   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30397    { (exit 1); exit 1; }; }; }
30398
30399       rm -f $ac_file
30400       mv $tmp/config.h $ac_file
30401     fi
30402   else
30403     cat $tmp/config.h
30404     rm -f $tmp/config.h
30405   fi
30406 # Compute $ac_file's index in $config_headers.
30407 _am_stamp_count=1
30408 for _am_header in $config_headers :; do
30409   case $_am_header in
30410     $ac_file | $ac_file:* )
30411       break ;;
30412     * )
30413       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30414   esac
30415 done
30416 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30417 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30418          X$ac_file : 'X\(//\)[^/]' \| \
30419          X$ac_file : 'X\(//\)$' \| \
30420          X$ac_file : 'X\(/\)' \| \
30421          .     : '\(.\)' 2>/dev/null ||
30422 echo X$ac_file |
30423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30425           /^X\(\/\/\)$/{ s//\1/; q; }
30426           /^X\(\/\).*/{ s//\1/; q; }
30427           s/.*/./; q'`/stamp-h$_am_stamp_count
30428 done
30429 _ACEOF
30430 cat >>$CONFIG_STATUS <<\_ACEOF
30431
30432 #
30433 # CONFIG_LINKS section.
30434 #
30435
30436 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30437   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30438   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30439
30440   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30441 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30442
30443   if test ! -r $srcdir/$ac_source; then
30444     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30445 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30446    { (exit 1); exit 1; }; }
30447   fi
30448   rm -f $ac_dest
30449
30450   # Make relative symlinks.
30451   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30452 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30453          X"$ac_dest" : 'X\(//\)[^/]' \| \
30454          X"$ac_dest" : 'X\(//\)$' \| \
30455          X"$ac_dest" : 'X\(/\)' \| \
30456          .     : '\(.\)' 2>/dev/null ||
30457 echo X"$ac_dest" |
30458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30460           /^X\(\/\/\)$/{ s//\1/; q; }
30461           /^X\(\/\).*/{ s//\1/; q; }
30462           s/.*/./; q'`
30463   { if $as_mkdir_p; then
30464     mkdir -p "$ac_dest_dir"
30465   else
30466     as_dir="$ac_dest_dir"
30467     as_dirs=
30468     while test ! -d "$as_dir"; do
30469       as_dirs="$as_dir $as_dirs"
30470       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30472          X"$as_dir" : 'X\(//\)[^/]' \| \
30473          X"$as_dir" : 'X\(//\)$' \| \
30474          X"$as_dir" : 'X\(/\)' \| \
30475          .     : '\(.\)' 2>/dev/null ||
30476 echo X"$as_dir" |
30477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30479           /^X\(\/\/\)$/{ s//\1/; q; }
30480           /^X\(\/\).*/{ s//\1/; q; }
30481           s/.*/./; q'`
30482     done
30483     test ! -n "$as_dirs" || mkdir $as_dirs
30484   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30485 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30486    { (exit 1); exit 1; }; }; }
30487
30488   ac_builddir=.
30489
30490 if test "$ac_dest_dir" != .; then
30491   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30492   # A "../" for each directory in $ac_dir_suffix.
30493   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30494 else
30495   ac_dir_suffix= ac_top_builddir=
30496 fi
30497
30498 case $srcdir in
30499   .)  # No --srcdir option.  We are building in place.
30500     ac_srcdir=.
30501     if test -z "$ac_top_builddir"; then
30502        ac_top_srcdir=.
30503     else
30504        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30505     fi ;;
30506   [\\/]* | ?:[\\/]* )  # Absolute path.
30507     ac_srcdir=$srcdir$ac_dir_suffix;
30508     ac_top_srcdir=$srcdir ;;
30509   *) # Relative path.
30510     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30511     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30512 esac
30513
30514 # Do not use `cd foo && pwd` to compute absolute paths, because
30515 # the directories may not exist.
30516 case `pwd` in
30517 .) ac_abs_builddir="$ac_dest_dir";;
30518 *)
30519   case "$ac_dest_dir" in
30520   .) ac_abs_builddir=`pwd`;;
30521   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30522   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30523   esac;;
30524 esac
30525 case $ac_abs_builddir in
30526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30527 *)
30528   case ${ac_top_builddir}. in
30529   .) ac_abs_top_builddir=$ac_abs_builddir;;
30530   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30531   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30532   esac;;
30533 esac
30534 case $ac_abs_builddir in
30535 .) ac_abs_srcdir=$ac_srcdir;;
30536 *)
30537   case $ac_srcdir in
30538   .) ac_abs_srcdir=$ac_abs_builddir;;
30539   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30540   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30541   esac;;
30542 esac
30543 case $ac_abs_builddir in
30544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30545 *)
30546   case $ac_top_srcdir in
30547   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30548   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30549   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30550   esac;;
30551 esac
30552
30553
30554   case $srcdir in
30555   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30556       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30557   esac
30558
30559   # Try a symlink, then a hard link, then a copy.
30560   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30561     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30562     cp -p $srcdir/$ac_source $ac_dest ||
30563     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30564 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30565    { (exit 1); exit 1; }; }
30566 done
30567 _ACEOF
30568 cat >>$CONFIG_STATUS <<\_ACEOF
30569
30570 #
30571 # CONFIG_COMMANDS section.
30572 #
30573 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30574   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30575   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30576   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30578          X"$ac_dest" : 'X\(//\)[^/]' \| \
30579          X"$ac_dest" : 'X\(//\)$' \| \
30580          X"$ac_dest" : 'X\(/\)' \| \
30581          .     : '\(.\)' 2>/dev/null ||
30582 echo X"$ac_dest" |
30583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30585           /^X\(\/\/\)$/{ s//\1/; q; }
30586           /^X\(\/\).*/{ s//\1/; q; }
30587           s/.*/./; q'`
30588   { if $as_mkdir_p; then
30589     mkdir -p "$ac_dir"
30590   else
30591     as_dir="$ac_dir"
30592     as_dirs=
30593     while test ! -d "$as_dir"; do
30594       as_dirs="$as_dir $as_dirs"
30595       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597          X"$as_dir" : 'X\(//\)[^/]' \| \
30598          X"$as_dir" : 'X\(//\)$' \| \
30599          X"$as_dir" : 'X\(/\)' \| \
30600          .     : '\(.\)' 2>/dev/null ||
30601 echo X"$as_dir" |
30602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30604           /^X\(\/\/\)$/{ s//\1/; q; }
30605           /^X\(\/\).*/{ s//\1/; q; }
30606           s/.*/./; q'`
30607     done
30608     test ! -n "$as_dirs" || mkdir $as_dirs
30609   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30611    { (exit 1); exit 1; }; }; }
30612
30613   ac_builddir=.
30614
30615 if test "$ac_dir" != .; then
30616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30617   # A "../" for each directory in $ac_dir_suffix.
30618   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30619 else
30620   ac_dir_suffix= ac_top_builddir=
30621 fi
30622
30623 case $srcdir in
30624   .)  # No --srcdir option.  We are building in place.
30625     ac_srcdir=.
30626     if test -z "$ac_top_builddir"; then
30627        ac_top_srcdir=.
30628     else
30629        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30630     fi ;;
30631   [\\/]* | ?:[\\/]* )  # Absolute path.
30632     ac_srcdir=$srcdir$ac_dir_suffix;
30633     ac_top_srcdir=$srcdir ;;
30634   *) # Relative path.
30635     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30636     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30637 esac
30638
30639 # Do not use `cd foo && pwd` to compute absolute paths, because
30640 # the directories may not exist.
30641 case `pwd` in
30642 .) ac_abs_builddir="$ac_dir";;
30643 *)
30644   case "$ac_dir" in
30645   .) ac_abs_builddir=`pwd`;;
30646   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30647   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30648   esac;;
30649 esac
30650 case $ac_abs_builddir in
30651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30652 *)
30653   case ${ac_top_builddir}. in
30654   .) ac_abs_top_builddir=$ac_abs_builddir;;
30655   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30656   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30657   esac;;
30658 esac
30659 case $ac_abs_builddir in
30660 .) ac_abs_srcdir=$ac_srcdir;;
30661 *)
30662   case $ac_srcdir in
30663   .) ac_abs_srcdir=$ac_abs_builddir;;
30664   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30665   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30666   esac;;
30667 esac
30668 case $ac_abs_builddir in
30669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30670 *)
30671   case $ac_top_srcdir in
30672   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30673   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30674   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30675   esac;;
30676 esac
30677
30678
30679   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30680 echo "$as_me: executing $ac_dest commands" >&6;}
30681   case $ac_dest in
30682     default-1 )
30683 # Only add multilib support code if we just rebuilt the top-level
30684 # Makefile.
30685 case " $CONFIG_FILES " in
30686  *" Makefile "*)
30687    ac_file=Makefile . ${multi_basedir}/config-ml.in
30688    ;;
30689 esac ;;
30690     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30691   # Strip MF so we end up with the name of the file.
30692   mf=`echo "$mf" | sed -e 's/:.*$//'`
30693   # Check whether this is an Automake generated Makefile or not.
30694   # We used to match only the files named `Makefile.in', but
30695   # some people rename them; so instead we look at the file content.
30696   # Grep'ing the first line is not enough: some people post-process
30697   # each Makefile.in and add a new line on top of each file to say so.
30698   # So let's grep whole file.
30699   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30700     dirpart=`(dirname "$mf") 2>/dev/null ||
30701 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30702          X"$mf" : 'X\(//\)[^/]' \| \
30703          X"$mf" : 'X\(//\)$' \| \
30704          X"$mf" : 'X\(/\)' \| \
30705          .     : '\(.\)' 2>/dev/null ||
30706 echo X"$mf" |
30707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30709           /^X\(\/\/\)$/{ s//\1/; q; }
30710           /^X\(\/\).*/{ s//\1/; q; }
30711           s/.*/./; q'`
30712   else
30713     continue
30714   fi
30715   # Extract the definition of DEPDIR, am__include, and am__quote
30716   # from the Makefile without running `make'.
30717   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30718   test -z "$DEPDIR" && continue
30719   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30720   test -z "am__include" && continue
30721   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30722   # When using ansi2knr, U may be empty or an underscore; expand it
30723   U=`sed -n 's/^U = //p' < "$mf"`
30724   # Find all dependency output files, they are included files with
30725   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30726   # simplest approach to changing $(DEPDIR) to its actual value in the
30727   # expansion.
30728   for file in `sed -n "
30729     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30730        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30731     # Make sure the directory exists.
30732     test -f "$dirpart/$file" && continue
30733     fdir=`(dirname "$file") 2>/dev/null ||
30734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30735          X"$file" : 'X\(//\)[^/]' \| \
30736          X"$file" : 'X\(//\)$' \| \
30737          X"$file" : 'X\(/\)' \| \
30738          .     : '\(.\)' 2>/dev/null ||
30739 echo X"$file" |
30740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30741           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30742           /^X\(\/\/\)$/{ s//\1/; q; }
30743           /^X\(\/\).*/{ s//\1/; q; }
30744           s/.*/./; q'`
30745     { if $as_mkdir_p; then
30746     mkdir -p $dirpart/$fdir
30747   else
30748     as_dir=$dirpart/$fdir
30749     as_dirs=
30750     while test ! -d "$as_dir"; do
30751       as_dirs="$as_dir $as_dirs"
30752       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30754          X"$as_dir" : 'X\(//\)[^/]' \| \
30755          X"$as_dir" : 'X\(//\)$' \| \
30756          X"$as_dir" : 'X\(/\)' \| \
30757          .     : '\(.\)' 2>/dev/null ||
30758 echo X"$as_dir" |
30759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30760           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30761           /^X\(\/\/\)$/{ s//\1/; q; }
30762           /^X\(\/\).*/{ s//\1/; q; }
30763           s/.*/./; q'`
30764     done
30765     test ! -n "$as_dirs" || mkdir $as_dirs
30766   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30767 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30768    { (exit 1); exit 1; }; }; }
30769
30770     # echo "creating $dirpart/$file"
30771     echo '# dummy' > "$dirpart/$file"
30772   done
30773 done
30774  ;;
30775     libtool )
30776
30777     # See if we are running on zsh, and set the options which allow our
30778     # commands through without removal of \ escapes.
30779     if test -n "${ZSH_VERSION+set}" ; then
30780       setopt NO_GLOB_SUBST
30781     fi
30782
30783     cfgfile="${ofile}T"
30784     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30785     $RM "$cfgfile"
30786
30787     cat <<_LT_EOF >> "$cfgfile"
30788 #! $SHELL
30789
30790 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30791 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30794 #
30795 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30796 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30797 #   Written by Gordon Matzigkeit, 1996
30798 #
30799 #   This file is part of GNU Libtool.
30800 #
30801 # GNU Libtool is free software; you can redistribute it and/or
30802 # modify it under the terms of the GNU General Public License as
30803 # published by the Free Software Foundation; either version 2 of
30804 # the License, or (at your option) any later version.
30805 #
30806 # As a special exception to the GNU General Public License,
30807 # if you distribute this file as part of a program or library that
30808 # is built using GNU Libtool, you may include this file under the
30809 # same distribution terms that you use for the rest of that program.
30810 #
30811 # GNU Libtool is distributed in the hope that it will be useful,
30812 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30813 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30814 # GNU General Public License for more details.
30815 #
30816 # You should have received a copy of the GNU General Public License
30817 # along with GNU Libtool; see the file COPYING.  If not, a copy
30818 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30819 # obtained by writing to the Free Software Foundation, Inc.,
30820 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30821
30822
30823 # The names of the tagged configurations supported by this script.
30824 available_tags="CXX GCJ "
30825
30826 # ### BEGIN LIBTOOL CONFIG
30827
30828 # Which release of libtool.m4 was used?
30829 macro_version=$macro_version
30830 macro_revision=$macro_revision
30831
30832 # Whether or not to build shared libraries.
30833 build_libtool_libs=$enable_shared
30834
30835 # Whether or not to build static libraries.
30836 build_old_libs=$enable_static
30837
30838 # What type of objects to build.
30839 pic_mode=$pic_mode
30840
30841 # Whether or not to optimize for fast installation.
30842 fast_install=$enable_fast_install
30843
30844 # The host system.
30845 host_alias=$host_alias
30846 host=$host
30847 host_os=$host_os
30848
30849 # The build system.
30850 build_alias=$build_alias
30851 build=$build
30852 build_os=$build_os
30853
30854 # A sed program that does not truncate output.
30855 SED=$lt_SED
30856
30857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30858 Xsed="\$SED -e 1s/^X//"
30859
30860 # A grep program that handles long lines.
30861 GREP=$lt_GREP
30862
30863 # An ERE matcher.
30864 EGREP=$lt_EGREP
30865
30866 # A literal string matcher.
30867 FGREP=$lt_FGREP
30868
30869 # A BSD- or MS-compatible name lister.
30870 NM=$lt_NM
30871
30872 # Whether we need soft or hard links.
30873 LN_S=$lt_LN_S
30874
30875 # What is the maximum length of a command?
30876 max_cmd_len=$max_cmd_len
30877
30878 # Object file suffix (normally "o").
30879 objext=$ac_objext
30880
30881 # Executable file suffix (normally "").
30882 exeext=$exeext
30883
30884 # whether the shell understands "unset".
30885 lt_unset=$lt_unset
30886
30887 # turn spaces into newlines.
30888 SP2NL=$lt_lt_SP2NL
30889
30890 # turn newlines into spaces.
30891 NL2SP=$lt_lt_NL2SP
30892
30893 # How to create reloadable object files.
30894 reload_flag=$lt_reload_flag
30895 reload_cmds=$lt_reload_cmds
30896
30897 # An object symbol dumper.
30898 OBJDUMP=$lt_OBJDUMP
30899
30900 # Method to check whether dependent libraries are shared objects.
30901 deplibs_check_method=$lt_deplibs_check_method
30902
30903 # Command to use when deplibs_check_method == "file_magic".
30904 file_magic_cmd=$lt_file_magic_cmd
30905
30906 # The archiver.
30907 AR=$lt_AR
30908 AR_FLAGS=$lt_AR_FLAGS
30909
30910 # A symbol stripping program.
30911 STRIP=$lt_STRIP
30912
30913 # Commands used to install an old-style archive.
30914 RANLIB=$lt_RANLIB
30915 old_postinstall_cmds=$lt_old_postinstall_cmds
30916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30917
30918 # A C compiler.
30919 LTCC=$lt_CC
30920
30921 # LTCC compiler flags.
30922 LTCFLAGS=$lt_CFLAGS
30923
30924 # Take the output of nm and produce a listing of raw symbols and C names.
30925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30926
30927 # Transform the output of nm in a proper C declaration.
30928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30929
30930 # Transform the output of nm in a C name address pair.
30931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30932
30933 # Transform the output of nm in a C name address pair when lib prefix is needed.
30934 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30935
30936 # The name of the directory that contains temporary libtool files.
30937 objdir=$objdir
30938
30939 # Shell to use when invoking shell scripts.
30940 SHELL=$lt_SHELL
30941
30942 # An echo program that does not interpret backslashes.
30943 ECHO=$lt_ECHO
30944
30945 # Used to examine libraries when file_magic_cmd begins with "file".
30946 MAGIC_CMD=$MAGIC_CMD
30947
30948 # Must we lock files when doing compilation?
30949 need_locks=$lt_need_locks
30950
30951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30952 DSYMUTIL=$lt_DSYMUTIL
30953
30954 # Tool to change global to local symbols on Mac OS X.
30955 NMEDIT=$lt_NMEDIT
30956
30957 # Tool to manipulate fat objects and archives on Mac OS X.
30958 LIPO=$lt_LIPO
30959
30960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30961 OTOOL=$lt_OTOOL
30962
30963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30964 OTOOL64=$lt_OTOOL64
30965
30966 # Old archive suffix (normally "a").
30967 libext=$libext
30968
30969 # Shared library suffix (normally ".so").
30970 shrext_cmds=$lt_shrext_cmds
30971
30972 # The commands to extract the exported symbol list from a shared archive.
30973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30974
30975 # Variables whose values should be saved in libtool wrapper scripts and
30976 # restored at link time.
30977 variables_saved_for_relink=$lt_variables_saved_for_relink
30978
30979 # Do we need the "lib" prefix for modules?
30980 need_lib_prefix=$need_lib_prefix
30981
30982 # Do we need a version for libraries?
30983 need_version=$need_version
30984
30985 # Library versioning type.
30986 version_type=$version_type
30987
30988 # Shared library runtime path variable.
30989 runpath_var=$runpath_var
30990
30991 # Shared library path variable.
30992 shlibpath_var=$shlibpath_var
30993
30994 # Is shlibpath searched before the hard-coded library search path?
30995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30996
30997 # Format of library name prefix.
30998 libname_spec=$lt_libname_spec
30999
31000 # List of archive names.  First name is the real one, the rest are links.
31001 # The last name is the one that the linker finds with -lNAME
31002 library_names_spec=$lt_library_names_spec
31003
31004 # The coded name of the library, if different from the real name.
31005 soname_spec=$lt_soname_spec
31006
31007 # Command to use after installation of a shared archive.
31008 postinstall_cmds=$lt_postinstall_cmds
31009
31010 # Command to use after uninstallation of a shared archive.
31011 postuninstall_cmds=$lt_postuninstall_cmds
31012
31013 # Commands used to finish a libtool library installation in a directory.
31014 finish_cmds=$lt_finish_cmds
31015
31016 # As "finish_cmds", except a single script fragment to be evaled but
31017 # not shown.
31018 finish_eval=$lt_finish_eval
31019
31020 # Whether we should hardcode library paths into libraries.
31021 hardcode_into_libs=$hardcode_into_libs
31022
31023 # Compile-time system search path for libraries.
31024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31025
31026 # Run-time system search path for libraries.
31027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31028
31029 # Whether dlopen is supported.
31030 dlopen_support=$enable_dlopen
31031
31032 # Whether dlopen of programs is supported.
31033 dlopen_self=$enable_dlopen_self
31034
31035 # Whether dlopen of statically linked programs is supported.
31036 dlopen_self_static=$enable_dlopen_self_static
31037
31038 # Commands to strip libraries.
31039 old_striplib=$lt_old_striplib
31040 striplib=$lt_striplib
31041
31042
31043 # The linker used to build libraries.
31044 LD=$lt_LD
31045
31046 # Commands used to build an old-style archive.
31047 old_archive_cmds=$lt_old_archive_cmds
31048
31049 # A language specific compiler.
31050 CC=$lt_compiler
31051
31052 # Is the compiler the GNU compiler?
31053 with_gcc=$GCC
31054
31055 # Compiler flag to turn off builtin functions.
31056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31057
31058 # How to pass a linker flag through the compiler.
31059 wl=$lt_lt_prog_compiler_wl
31060
31061 # Additional compiler flags for building library objects.
31062 pic_flag=$lt_lt_prog_compiler_pic
31063
31064 # Compiler flag to prevent dynamic linking.
31065 link_static_flag=$lt_lt_prog_compiler_static
31066
31067 # Does compiler simultaneously support -c and -o options?
31068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31069
31070 # Whether or not to add -lc for building shared libraries.
31071 build_libtool_need_lc=$archive_cmds_need_lc
31072
31073 # Whether or not to disallow shared libs when runtime libs are static.
31074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31075
31076 # Compiler flag to allow reflexive dlopens.
31077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31078
31079 # Compiler flag to generate shared objects directly from archives.
31080 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31081
31082 # Whether the compiler copes with passing no objects directly.
31083 compiler_needs_object=$lt_compiler_needs_object
31084
31085 # Create an old-style archive from a shared archive.
31086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31087
31088 # Create a temporary old-style archive to link instead of a shared archive.
31089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31090
31091 # Commands used to build a shared archive.
31092 archive_cmds=$lt_archive_cmds
31093 archive_expsym_cmds=$lt_archive_expsym_cmds
31094
31095 # Commands used to build a loadable module if different from building
31096 # a shared archive.
31097 module_cmds=$lt_module_cmds
31098 module_expsym_cmds=$lt_module_expsym_cmds
31099
31100 # Whether we are building with GNU ld or not.
31101 with_gnu_ld=$lt_with_gnu_ld
31102
31103 # Flag that allows shared libraries with undefined symbols to be built.
31104 allow_undefined_flag=$lt_allow_undefined_flag
31105
31106 # Flag that enforces no undefined symbols.
31107 no_undefined_flag=$lt_no_undefined_flag
31108
31109 # Flag to hardcode \$libdir into a binary during linking.
31110 # This must work even if \$libdir does not exist
31111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31112
31113 # If ld is used when linking, flag to hardcode \$libdir into a binary
31114 # during linking.  This must work even if \$libdir does not exist.
31115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31116
31117 # Whether we need a single "-rpath" flag with a separated argument.
31118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31119
31120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31121 # DIR into the resulting binary.
31122 hardcode_direct=$hardcode_direct
31123
31124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31125 # DIR into the resulting binary and the resulting library dependency is
31126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31127 # library is relocated.
31128 hardcode_direct_absolute=$hardcode_direct_absolute
31129
31130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31131 # into the resulting binary.
31132 hardcode_minus_L=$hardcode_minus_L
31133
31134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31135 # into the resulting binary.
31136 hardcode_shlibpath_var=$hardcode_shlibpath_var
31137
31138 # Set to "yes" if building a shared library automatically hardcodes DIR
31139 # into the library and all subsequent libraries and executables linked
31140 # against it.
31141 hardcode_automatic=$hardcode_automatic
31142
31143 # Set to yes if linker adds runtime paths of dependent libraries
31144 # to runtime path list.
31145 inherit_rpath=$inherit_rpath
31146
31147 # Whether libtool must link a program against all its dependency libraries.
31148 link_all_deplibs=$link_all_deplibs
31149
31150 # Fix the shell variable \$srcfile for the compiler.
31151 fix_srcfile_path=$lt_fix_srcfile_path
31152
31153 # Set to "yes" if exported symbols are required.
31154 always_export_symbols=$always_export_symbols
31155
31156 # The commands to list exported symbols.
31157 export_symbols_cmds=$lt_export_symbols_cmds
31158
31159 # Symbols that should not be listed in the preloaded symbols.
31160 exclude_expsyms=$lt_exclude_expsyms
31161
31162 # Symbols that must always be exported.
31163 include_expsyms=$lt_include_expsyms
31164
31165 # Commands necessary for linking programs (against libraries) with templates.
31166 prelink_cmds=$lt_prelink_cmds
31167
31168 # Specify filename containing input files.
31169 file_list_spec=$lt_file_list_spec
31170
31171 # How to hardcode a shared library path into an executable.
31172 hardcode_action=$hardcode_action
31173
31174 # The directories searched by this compiler when creating a shared library.
31175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31176
31177 # Dependencies to place before and after the objects being linked to
31178 # create a shared library.
31179 predep_objects=$lt_predep_objects
31180 postdep_objects=$lt_postdep_objects
31181 predeps=$lt_predeps
31182 postdeps=$lt_postdeps
31183
31184 # The library search path used internally by the compiler when linking
31185 # a shared library.
31186 compiler_lib_search_path=$lt_compiler_lib_search_path
31187
31188 # ### END LIBTOOL CONFIG
31189
31190 _LT_EOF
31191
31192   case $host_os in
31193   aix3*)
31194     cat <<\_LT_EOF >> "$cfgfile"
31195 # AIX sometimes has problems with the GCC collect2 program.  For some
31196 # reason, if we set the COLLECT_NAMES environment variable, the problems
31197 # vanish in a puff of smoke.
31198 if test "X${COLLECT_NAMES+set}" != Xset; then
31199   COLLECT_NAMES=
31200   export COLLECT_NAMES
31201 fi
31202 _LT_EOF
31203     ;;
31204   esac
31205
31206
31207 ltmain="$ac_aux_dir/ltmain.sh"
31208
31209
31210   # We use sed instead of cat because bash on DJGPP gets confused if
31211   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31212   # text mode, it properly converts lines to CR/LF.  This bash problem
31213   # is reportedly fixed, but why not run on old versions too?
31214   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31215     || (rm -f "$cfgfile"; exit 1)
31216
31217   case $xsi_shell in
31218   yes)
31219     cat << \_LT_EOF >> "$cfgfile"
31220
31221 # func_dirname file append nondir_replacement
31222 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31223 # otherwise set result to NONDIR_REPLACEMENT.
31224 func_dirname ()
31225 {
31226   case ${1} in
31227     */*) func_dirname_result="${1%/*}${2}" ;;
31228     *  ) func_dirname_result="${3}" ;;
31229   esac
31230 }
31231
31232 # func_basename file
31233 func_basename ()
31234 {
31235   func_basename_result="${1##*/}"
31236 }
31237
31238 # func_dirname_and_basename file append nondir_replacement
31239 # perform func_basename and func_dirname in a single function
31240 # call:
31241 #   dirname:  Compute the dirname of FILE.  If nonempty,
31242 #             add APPEND to the result, otherwise set result
31243 #             to NONDIR_REPLACEMENT.
31244 #             value returned in "$func_dirname_result"
31245 #   basename: Compute filename of FILE.
31246 #             value retuned in "$func_basename_result"
31247 # Implementation must be kept synchronized with func_dirname
31248 # and func_basename. For efficiency, we do not delegate to
31249 # those functions but instead duplicate the functionality here.
31250 func_dirname_and_basename ()
31251 {
31252   case ${1} in
31253     */*) func_dirname_result="${1%/*}${2}" ;;
31254     *  ) func_dirname_result="${3}" ;;
31255   esac
31256   func_basename_result="${1##*/}"
31257 }
31258
31259 # func_stripname prefix suffix name
31260 # strip PREFIX and SUFFIX off of NAME.
31261 # PREFIX and SUFFIX must not contain globbing or regex special
31262 # characters, hashes, percent signs, but SUFFIX may contain a leading
31263 # dot (in which case that matches only a dot).
31264 func_stripname ()
31265 {
31266   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31267   # positional parameters, so assign one to ordinary parameter first.
31268   func_stripname_result=${3}
31269   func_stripname_result=${func_stripname_result#"${1}"}
31270   func_stripname_result=${func_stripname_result%"${2}"}
31271 }
31272
31273 # func_opt_split
31274 func_opt_split ()
31275 {
31276   func_opt_split_opt=${1%%=*}
31277   func_opt_split_arg=${1#*=}
31278 }
31279
31280 # func_lo2o object
31281 func_lo2o ()
31282 {
31283   case ${1} in
31284     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31285     *)    func_lo2o_result=${1} ;;
31286   esac
31287 }
31288
31289 # func_xform libobj-or-source
31290 func_xform ()
31291 {
31292   func_xform_result=${1%.*}.lo
31293 }
31294
31295 # func_arith arithmetic-term...
31296 func_arith ()
31297 {
31298   func_arith_result=$(( $* ))
31299 }
31300
31301 # func_len string
31302 # STRING may not start with a hyphen.
31303 func_len ()
31304 {
31305   func_len_result=${#1}
31306 }
31307
31308 _LT_EOF
31309     ;;
31310   *) # Bourne compatible functions.
31311     cat << \_LT_EOF >> "$cfgfile"
31312
31313 # func_dirname file append nondir_replacement
31314 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31315 # otherwise set result to NONDIR_REPLACEMENT.
31316 func_dirname ()
31317 {
31318   # Extract subdirectory from the argument.
31319   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31320   if test "X$func_dirname_result" = "X${1}"; then
31321     func_dirname_result="${3}"
31322   else
31323     func_dirname_result="$func_dirname_result${2}"
31324   fi
31325 }
31326
31327 # func_basename file
31328 func_basename ()
31329 {
31330   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31331 }
31332
31333
31334 # func_stripname prefix suffix name
31335 # strip PREFIX and SUFFIX off of NAME.
31336 # PREFIX and SUFFIX must not contain globbing or regex special
31337 # characters, hashes, percent signs, but SUFFIX may contain a leading
31338 # dot (in which case that matches only a dot).
31339 # func_strip_suffix prefix name
31340 func_stripname ()
31341 {
31342   case ${2} in
31343     .*) func_stripname_result=`$ECHO "X${3}" \
31344            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31345     *)  func_stripname_result=`$ECHO "X${3}" \
31346            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31347   esac
31348 }
31349
31350 # sed scripts:
31351 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31352 my_sed_long_arg='1s/^-[^=]*=//'
31353
31354 # func_opt_split
31355 func_opt_split ()
31356 {
31357   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31358   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31359 }
31360
31361 # func_lo2o object
31362 func_lo2o ()
31363 {
31364   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31365 }
31366
31367 # func_xform libobj-or-source
31368 func_xform ()
31369 {
31370   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31371 }
31372
31373 # func_arith arithmetic-term...
31374 func_arith ()
31375 {
31376   func_arith_result=`expr "$@"`
31377 }
31378
31379 # func_len string
31380 # STRING may not start with a hyphen.
31381 func_len ()
31382 {
31383   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31384 }
31385
31386 _LT_EOF
31387 esac
31388
31389 case $lt_shell_append in
31390   yes)
31391     cat << \_LT_EOF >> "$cfgfile"
31392
31393 # func_append var value
31394 # Append VALUE to the end of shell variable VAR.
31395 func_append ()
31396 {
31397   eval "$1+=\$2"
31398 }
31399 _LT_EOF
31400     ;;
31401   *)
31402     cat << \_LT_EOF >> "$cfgfile"
31403
31404 # func_append var value
31405 # Append VALUE to the end of shell variable VAR.
31406 func_append ()
31407 {
31408   eval "$1=\$$1\$2"
31409 }
31410
31411 _LT_EOF
31412     ;;
31413   esac
31414
31415
31416   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31417     || (rm -f "$cfgfile"; exit 1)
31418
31419   mv -f "$cfgfile" "$ofile" ||
31420     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31421   chmod +x "$ofile"
31422
31423
31424     cat <<_LT_EOF >> "$ofile"
31425
31426 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31427
31428 # The linker used to build libraries.
31429 LD=$lt_LD_CXX
31430
31431 # Commands used to build an old-style archive.
31432 old_archive_cmds=$lt_old_archive_cmds_CXX
31433
31434 # A language specific compiler.
31435 CC=$lt_compiler_CXX
31436
31437 # Is the compiler the GNU compiler?
31438 with_gcc=$GCC_CXX
31439
31440 # Compiler flag to turn off builtin functions.
31441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31442
31443 # How to pass a linker flag through the compiler.
31444 wl=$lt_lt_prog_compiler_wl_CXX
31445
31446 # Additional compiler flags for building library objects.
31447 pic_flag=$lt_lt_prog_compiler_pic_CXX
31448
31449 # Compiler flag to prevent dynamic linking.
31450 link_static_flag=$lt_lt_prog_compiler_static_CXX
31451
31452 # Does compiler simultaneously support -c and -o options?
31453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31454
31455 # Whether or not to add -lc for building shared libraries.
31456 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31457
31458 # Whether or not to disallow shared libs when runtime libs are static.
31459 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31460
31461 # Compiler flag to allow reflexive dlopens.
31462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31463
31464 # Compiler flag to generate shared objects directly from archives.
31465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31466
31467 # Whether the compiler copes with passing no objects directly.
31468 compiler_needs_object=$lt_compiler_needs_object_CXX
31469
31470 # Create an old-style archive from a shared archive.
31471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31472
31473 # Create a temporary old-style archive to link instead of a shared archive.
31474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31475
31476 # Commands used to build a shared archive.
31477 archive_cmds=$lt_archive_cmds_CXX
31478 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31479
31480 # Commands used to build a loadable module if different from building
31481 # a shared archive.
31482 module_cmds=$lt_module_cmds_CXX
31483 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31484
31485 # Whether we are building with GNU ld or not.
31486 with_gnu_ld=$lt_with_gnu_ld_CXX
31487
31488 # Flag that allows shared libraries with undefined symbols to be built.
31489 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31490
31491 # Flag that enforces no undefined symbols.
31492 no_undefined_flag=$lt_no_undefined_flag_CXX
31493
31494 # Flag to hardcode \$libdir into a binary during linking.
31495 # This must work even if \$libdir does not exist
31496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31497
31498 # If ld is used when linking, flag to hardcode \$libdir into a binary
31499 # during linking.  This must work even if \$libdir does not exist.
31500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31501
31502 # Whether we need a single "-rpath" flag with a separated argument.
31503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31504
31505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31506 # DIR into the resulting binary.
31507 hardcode_direct=$hardcode_direct_CXX
31508
31509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31510 # DIR into the resulting binary and the resulting library dependency is
31511 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31512 # library is relocated.
31513 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31514
31515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31516 # into the resulting binary.
31517 hardcode_minus_L=$hardcode_minus_L_CXX
31518
31519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31520 # into the resulting binary.
31521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31522
31523 # Set to "yes" if building a shared library automatically hardcodes DIR
31524 # into the library and all subsequent libraries and executables linked
31525 # against it.
31526 hardcode_automatic=$hardcode_automatic_CXX
31527
31528 # Set to yes if linker adds runtime paths of dependent libraries
31529 # to runtime path list.
31530 inherit_rpath=$inherit_rpath_CXX
31531
31532 # Whether libtool must link a program against all its dependency libraries.
31533 link_all_deplibs=$link_all_deplibs_CXX
31534
31535 # Fix the shell variable \$srcfile for the compiler.
31536 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31537
31538 # Set to "yes" if exported symbols are required.
31539 always_export_symbols=$always_export_symbols_CXX
31540
31541 # The commands to list exported symbols.
31542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31543
31544 # Symbols that should not be listed in the preloaded symbols.
31545 exclude_expsyms=$lt_exclude_expsyms_CXX
31546
31547 # Symbols that must always be exported.
31548 include_expsyms=$lt_include_expsyms_CXX
31549
31550 # Commands necessary for linking programs (against libraries) with templates.
31551 prelink_cmds=$lt_prelink_cmds_CXX
31552
31553 # Specify filename containing input files.
31554 file_list_spec=$lt_file_list_spec_CXX
31555
31556 # How to hardcode a shared library path into an executable.
31557 hardcode_action=$hardcode_action_CXX
31558
31559 # The directories searched by this compiler when creating a shared library.
31560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31561
31562 # Dependencies to place before and after the objects being linked to
31563 # create a shared library.
31564 predep_objects=$lt_predep_objects_CXX
31565 postdep_objects=$lt_postdep_objects_CXX
31566 predeps=$lt_predeps_CXX
31567 postdeps=$lt_postdeps_CXX
31568
31569 # The library search path used internally by the compiler when linking
31570 # a shared library.
31571 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31572
31573 # ### END LIBTOOL TAG CONFIG: CXX
31574 _LT_EOF
31575
31576
31577     cat <<_LT_EOF >> "$ofile"
31578
31579 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31580
31581 # The linker used to build libraries.
31582 LD=$lt_LD_GCJ
31583
31584 # Commands used to build an old-style archive.
31585 old_archive_cmds=$lt_old_archive_cmds_GCJ
31586
31587 # A language specific compiler.
31588 CC=$lt_compiler_GCJ
31589
31590 # Is the compiler the GNU compiler?
31591 with_gcc=$GCC_GCJ
31592
31593 # Compiler flag to turn off builtin functions.
31594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31595
31596 # How to pass a linker flag through the compiler.
31597 wl=$lt_lt_prog_compiler_wl_GCJ
31598
31599 # Additional compiler flags for building library objects.
31600 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31601
31602 # Compiler flag to prevent dynamic linking.
31603 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31604
31605 # Does compiler simultaneously support -c and -o options?
31606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31607
31608 # Whether or not to add -lc for building shared libraries.
31609 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31610
31611 # Whether or not to disallow shared libs when runtime libs are static.
31612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31613
31614 # Compiler flag to allow reflexive dlopens.
31615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31616
31617 # Compiler flag to generate shared objects directly from archives.
31618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31619
31620 # Whether the compiler copes with passing no objects directly.
31621 compiler_needs_object=$lt_compiler_needs_object_GCJ
31622
31623 # Create an old-style archive from a shared archive.
31624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31625
31626 # Create a temporary old-style archive to link instead of a shared archive.
31627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31628
31629 # Commands used to build a shared archive.
31630 archive_cmds=$lt_archive_cmds_GCJ
31631 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31632
31633 # Commands used to build a loadable module if different from building
31634 # a shared archive.
31635 module_cmds=$lt_module_cmds_GCJ
31636 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31637
31638 # Whether we are building with GNU ld or not.
31639 with_gnu_ld=$lt_with_gnu_ld_GCJ
31640
31641 # Flag that allows shared libraries with undefined symbols to be built.
31642 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31643
31644 # Flag that enforces no undefined symbols.
31645 no_undefined_flag=$lt_no_undefined_flag_GCJ
31646
31647 # Flag to hardcode \$libdir into a binary during linking.
31648 # This must work even if \$libdir does not exist
31649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31650
31651 # If ld is used when linking, flag to hardcode \$libdir into a binary
31652 # during linking.  This must work even if \$libdir does not exist.
31653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31654
31655 # Whether we need a single "-rpath" flag with a separated argument.
31656 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31657
31658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31659 # DIR into the resulting binary.
31660 hardcode_direct=$hardcode_direct_GCJ
31661
31662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31663 # DIR into the resulting binary and the resulting library dependency is
31664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31665 # library is relocated.
31666 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31667
31668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31669 # into the resulting binary.
31670 hardcode_minus_L=$hardcode_minus_L_GCJ
31671
31672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31673 # into the resulting binary.
31674 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31675
31676 # Set to "yes" if building a shared library automatically hardcodes DIR
31677 # into the library and all subsequent libraries and executables linked
31678 # against it.
31679 hardcode_automatic=$hardcode_automatic_GCJ
31680
31681 # Set to yes if linker adds runtime paths of dependent libraries
31682 # to runtime path list.
31683 inherit_rpath=$inherit_rpath_GCJ
31684
31685 # Whether libtool must link a program against all its dependency libraries.
31686 link_all_deplibs=$link_all_deplibs_GCJ
31687
31688 # Fix the shell variable \$srcfile for the compiler.
31689 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31690
31691 # Set to "yes" if exported symbols are required.
31692 always_export_symbols=$always_export_symbols_GCJ
31693
31694 # The commands to list exported symbols.
31695 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31696
31697 # Symbols that should not be listed in the preloaded symbols.
31698 exclude_expsyms=$lt_exclude_expsyms_GCJ
31699
31700 # Symbols that must always be exported.
31701 include_expsyms=$lt_include_expsyms_GCJ
31702
31703 # Commands necessary for linking programs (against libraries) with templates.
31704 prelink_cmds=$lt_prelink_cmds_GCJ
31705
31706 # Specify filename containing input files.
31707 file_list_spec=$lt_file_list_spec_GCJ
31708
31709 # How to hardcode a shared library path into an executable.
31710 hardcode_action=$hardcode_action_GCJ
31711
31712 # The directories searched by this compiler when creating a shared library.
31713 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31714
31715 # Dependencies to place before and after the objects being linked to
31716 # create a shared library.
31717 predep_objects=$lt_predep_objects_GCJ
31718 postdep_objects=$lt_postdep_objects_GCJ
31719 predeps=$lt_predeps_GCJ
31720 postdeps=$lt_postdeps_GCJ
31721
31722 # The library search path used internally by the compiler when linking
31723 # a shared library.
31724 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31725
31726 # ### END LIBTOOL TAG CONFIG: GCJ
31727 _LT_EOF
31728
31729  ;;
31730   esac
31731 done
31732 _ACEOF
31733
31734 cat >>$CONFIG_STATUS <<\_ACEOF
31735
31736 { (exit 0); exit 0; }
31737 _ACEOF
31738 chmod +x $CONFIG_STATUS
31739 ac_clean_files=$ac_clean_files_save
31740
31741
31742 # configure is writing to config.log, and then calls config.status.
31743 # config.status does its own redirection, appending to config.log.
31744 # Unfortunately, on DOS this fails, as config.log is still kept open
31745 # by configure, so config.status won't be able to write to it; its
31746 # output is simply discarded.  So we exec the FD to /dev/null,
31747 # effectively closing config.log, so it can be properly (re)opened and
31748 # appended to by config.status.  When coming back to configure, we
31749 # need to make the FD available again.
31750 if test "$no_create" != yes; then
31751   ac_cs_success=:
31752   ac_config_status_args=
31753   test "$silent" = yes &&
31754     ac_config_status_args="$ac_config_status_args --quiet"
31755   exec 5>/dev/null
31756   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31757   exec 5>>config.log
31758   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31759   # would make configure fail if this is the last instruction.
31760   $ac_cs_success || { (exit 1); exit 1; }
31761 fi
31762
31763 #
31764 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31765 #
31766 if test "$no_recursion" != yes; then
31767
31768   # Remove --cache-file and --srcdir arguments so they do not pile up.
31769   ac_sub_configure_args=
31770   ac_prev=
31771   eval "set x $ac_configure_args"
31772   shift
31773   for ac_arg
31774   do
31775     if test -n "$ac_prev"; then
31776       ac_prev=
31777       continue
31778     fi
31779     case $ac_arg in
31780     -cache-file | --cache-file | --cache-fil | --cache-fi \
31781     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31782       ac_prev=cache_file ;;
31783     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31784     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31785     | --c=*)
31786       ;;
31787     --config-cache | -C)
31788       ;;
31789     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31790       ac_prev=srcdir ;;
31791     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31792       ;;
31793     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31794       ac_prev=prefix ;;
31795     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31796       ;;
31797     *)
31798       case $ac_arg in
31799       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31800       esac
31801       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31802     esac
31803   done
31804
31805   # Always prepend --prefix to ensure using the same prefix
31806   # in subdir configurations.
31807   ac_arg="--prefix=$prefix"
31808   case $ac_arg in
31809   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31810   esac
31811   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31812
31813   ac_popdir=`pwd`
31814   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31815
31816     # Do not complain, so a configure script can configure whichever
31817     # parts of a large source tree are present.
31818     test -d "$srcdir/$ac_dir" || continue
31819
31820     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31821 echo "$as_me: configuring in $ac_dir" >&6;}
31822     { if $as_mkdir_p; then
31823     mkdir -p "$ac_dir"
31824   else
31825     as_dir="$ac_dir"
31826     as_dirs=
31827     while test ! -d "$as_dir"; do
31828       as_dirs="$as_dir $as_dirs"
31829       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31831          X"$as_dir" : 'X\(//\)[^/]' \| \
31832          X"$as_dir" : 'X\(//\)$' \| \
31833          X"$as_dir" : 'X\(/\)' \| \
31834          .     : '\(.\)' 2>/dev/null ||
31835 echo X"$as_dir" |
31836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31837           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31838           /^X\(\/\/\)$/{ s//\1/; q; }
31839           /^X\(\/\).*/{ s//\1/; q; }
31840           s/.*/./; q'`
31841     done
31842     test ! -n "$as_dirs" || mkdir $as_dirs
31843   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31845    { (exit 1); exit 1; }; }; }
31846
31847     ac_builddir=.
31848
31849 if test "$ac_dir" != .; then
31850   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31851   # A "../" for each directory in $ac_dir_suffix.
31852   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31853 else
31854   ac_dir_suffix= ac_top_builddir=
31855 fi
31856
31857 case $srcdir in
31858   .)  # No --srcdir option.  We are building in place.
31859     ac_srcdir=.
31860     if test -z "$ac_top_builddir"; then
31861        ac_top_srcdir=.
31862     else
31863        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31864     fi ;;
31865   [\\/]* | ?:[\\/]* )  # Absolute path.
31866     ac_srcdir=$srcdir$ac_dir_suffix;
31867     ac_top_srcdir=$srcdir ;;
31868   *) # Relative path.
31869     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31870     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31871 esac
31872
31873 # Do not use `cd foo && pwd` to compute absolute paths, because
31874 # the directories may not exist.
31875 case `pwd` in
31876 .) ac_abs_builddir="$ac_dir";;
31877 *)
31878   case "$ac_dir" in
31879   .) ac_abs_builddir=`pwd`;;
31880   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31881   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31882   esac;;
31883 esac
31884 case $ac_abs_builddir in
31885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31886 *)
31887   case ${ac_top_builddir}. in
31888   .) ac_abs_top_builddir=$ac_abs_builddir;;
31889   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31890   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31891   esac;;
31892 esac
31893 case $ac_abs_builddir in
31894 .) ac_abs_srcdir=$ac_srcdir;;
31895 *)
31896   case $ac_srcdir in
31897   .) ac_abs_srcdir=$ac_abs_builddir;;
31898   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31899   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31900   esac;;
31901 esac
31902 case $ac_abs_builddir in
31903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31904 *)
31905   case $ac_top_srcdir in
31906   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31907   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31908   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31909   esac;;
31910 esac
31911
31912
31913     cd "$ac_dir"
31914
31915     # Check for guested configure; otherwise get Cygnus style configure.
31916     if test -f "$ac_srcdir/configure.gnu"; then
31917       ac_sub_configure=$ac_srcdir/configure.gnu
31918     elif test -f "$ac_srcdir/configure"; then
31919       ac_sub_configure=$ac_srcdir/configure
31920     elif test -f "$ac_srcdir/configure.in"; then
31921       # This should be Cygnus configure.
31922       ac_sub_configure=$ac_aux_dir/configure
31923     else
31924       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31926       ac_sub_configure=
31927     fi
31928
31929     # The recursion is here.
31930     if test -n "$ac_sub_configure"; then
31931       # Make the cache file name correct relative to the subdirectory.
31932       case $cache_file in
31933       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31934       *) # Relative path.
31935         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31936       esac
31937
31938       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31940       # The eval makes quoting arguments work.
31941       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31942            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31943         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31945    { (exit 1); exit 1; }; }
31946     fi
31947
31948     cd "$ac_popdir"
31949   done
31950 fi
31951