OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [configure] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
#! /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
# Name of the host.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
249
exec 6>&1
250
 
251
#
252
# Initializations.
253
#
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
256
cross_compiling=no
257
subdirs=
258
MFLAGS=
259
MAKEFLAGS=
260
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete.  It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
266
 
267
# Identity of this package.
268
PACKAGE_NAME='libjava'
269
PACKAGE_TARNAME='libjava'
270
PACKAGE_VERSION='version-unused'
271
PACKAGE_STRING='libjava version-unused'
272
PACKAGE_BUGREPORT=''
273
 
274
ac_unique_file="java/lang/System.java"
275
ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276
# Factoring default headers for most tests.
277
ac_includes_default="\
278
#include 
279
#if HAVE_SYS_TYPES_H
280
# include 
281
#endif
282
#if HAVE_SYS_STAT_H
283
# include 
284
#endif
285
#if STDC_HEADERS
286
# include 
287
# include 
288
#else
289
# if HAVE_STDLIB_H
290
#  include 
291
# endif
292
#endif
293
#if HAVE_STRING_H
294
# if !STDC_HEADERS && HAVE_MEMORY_H
295
#  include 
296
# endif
297
# include 
298
#endif
299
#if HAVE_STRINGS_H
300
# include 
301
#endif
302
#if HAVE_INTTYPES_H
303
# include 
304
#else
305
# if HAVE_STDINT_H
306
#  include 
307
# endif
308
#endif
309
#if HAVE_UNISTD_H
310
# include 
311
#endif"
312
 
313
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_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs 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 AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314
ac_subst_files=''
315
 
316
# Initialize some variables set by options.
317
ac_init_help=
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
321
cache_file=/dev/null
322
exec_prefix=NONE
323
no_create=
324
no_recursion=
325
prefix=NONE
326
program_prefix=NONE
327
program_suffix=NONE
328
program_transform_name=s,x,x,
329
silent=
330
site=
331
srcdir=
332
verbose=
333
x_includes=NONE
334
x_libraries=NONE
335
 
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
353
 
354
ac_prev=
355
for ac_option
356
do
357
  # If the previous option needs an argument, assign it.
358
  if test -n "$ac_prev"; then
359
    eval "$ac_prev=\$ac_option"
360
    ac_prev=
361
    continue
362
  fi
363
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
367
 
368
  case $ac_option in
369
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371
    ac_prev=bindir ;;
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
    bindir=$ac_optarg ;;
374
 
375
  -build | --build | --buil | --bui | --bu)
376
    ac_prev=build_alias ;;
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
    build_alias=$ac_optarg ;;
379
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
    ac_prev=cache_file ;;
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
    cache_file=$ac_optarg ;;
386
 
387
  --config-cache | -C)
388
    cache_file=config.cache ;;
389
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
    ac_prev=datadir ;;
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
  | --da=*)
394
    datadir=$ac_optarg ;;
395
 
396
  -disable-* | --disable-*)
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
    # Reject names that are not valid shell variable names.
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
   { (exit 1); exit 1; }; }
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
    eval "enable_$ac_feature=no" ;;
404
 
405
  -enable-* | --enable-*)
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
    # Reject names that are not valid shell variable names.
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
   { (exit 1); exit 1; }; }
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
    case $ac_option in
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
      *) ac_optarg=yes ;;
415
    esac
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
417
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
  | --exec | --exe | --ex)
421
    ac_prev=exec_prefix ;;
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
  | --exec=* | --exe=* | --ex=*)
425
    exec_prefix=$ac_optarg ;;
426
 
427
  -gas | --gas | --ga | --g)
428
    # Obsolete; use --with-gas.
429
    with_gas=yes ;;
430
 
431
  -help | --help | --hel | --he | -h)
432
    ac_init_help=long ;;
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
    ac_init_help=recursive ;;
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
    ac_init_help=short ;;
437
 
438
  -host | --host | --hos | --ho)
439
    ac_prev=host_alias ;;
440
  -host=* | --host=* | --hos=* | --ho=*)
441
    host_alias=$ac_optarg ;;
442
 
443
  -includedir | --includedir | --includedi | --included | --include \
444
  | --includ | --inclu | --incl | --inc)
445
    ac_prev=includedir ;;
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
448
    includedir=$ac_optarg ;;
449
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
451
    ac_prev=infodir ;;
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
    infodir=$ac_optarg ;;
454
 
455
  -libdir | --libdir | --libdi | --libd)
456
    ac_prev=libdir ;;
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458
    libdir=$ac_optarg ;;
459
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
  | --libexe | --libex | --libe)
462
    ac_prev=libexecdir ;;
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
  | --libexe=* | --libex=* | --libe=*)
465
    libexecdir=$ac_optarg ;;
466
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
468
  | --localstate | --localstat | --localsta | --localst \
469
  | --locals | --local | --loca | --loc | --lo)
470
    ac_prev=localstatedir ;;
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
    localstatedir=$ac_optarg ;;
475
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
    ac_prev=mandir ;;
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479
    mandir=$ac_optarg ;;
480
 
481
  -nfp | --nfp | --nf)
482
    # Obsolete; use --without-fp.
483
    with_fp=no ;;
484
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
  | --no-cr | --no-c | -n)
487
    no_create=yes ;;
488
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
    no_recursion=yes ;;
492
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
  | --oldin | --oldi | --old | --ol | --o)
496
    ac_prev=oldincludedir ;;
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
    oldincludedir=$ac_optarg ;;
501
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
    ac_prev=prefix ;;
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
    prefix=$ac_optarg ;;
506
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508
  | --program-pre | --program-pr | --program-p)
509
    ac_prev=program_prefix ;;
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
    program_prefix=$ac_optarg ;;
513
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515
  | --program-suf | --program-su | --program-s)
516
    ac_prev=program_suffix ;;
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
    program_suffix=$ac_optarg ;;
520
 
521
  -program-transform-name | --program-transform-name \
522
  | --program-transform-nam | --program-transform-na \
523
  | --program-transform-n | --program-transform- \
524
  | --program-transform | --program-transfor \
525
  | --program-transfo | --program-transf \
526
  | --program-trans | --program-tran \
527
  | --progr-tra | --program-tr | --program-t)
528
    ac_prev=program_transform_name ;;
529
  -program-transform-name=* | --program-transform-name=* \
530
  | --program-transform-nam=* | --program-transform-na=* \
531
  | --program-transform-n=* | --program-transform-=* \
532
  | --program-transform=* | --program-transfor=* \
533
  | --program-transfo=* | --program-transf=* \
534
  | --program-trans=* | --program-tran=* \
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
536
    program_transform_name=$ac_optarg ;;
537
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
  | -silent | --silent | --silen | --sile | --sil)
540
    silent=yes ;;
541
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
    ac_prev=sbindir ;;
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
  | --sbi=* | --sb=*)
546
    sbindir=$ac_optarg ;;
547
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
  | --sharedst | --shareds | --shared | --share | --shar \
551
  | --sha | --sh)
552
    ac_prev=sharedstatedir ;;
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
  | --sha=* | --sh=*)
557
    sharedstatedir=$ac_optarg ;;
558
 
559
  -site | --site | --sit)
560
    ac_prev=site ;;
561
  -site=* | --site=* | --sit=*)
562
    site=$ac_optarg ;;
563
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
    ac_prev=srcdir ;;
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
    srcdir=$ac_optarg ;;
568
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
  | --syscon | --sysco | --sysc | --sys | --sy)
571
    ac_prev=sysconfdir ;;
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
    sysconfdir=$ac_optarg ;;
575
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
577
    ac_prev=target_alias ;;
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
    target_alias=$ac_optarg ;;
580
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582
    verbose=yes ;;
583
 
584
  -version | --version | --versio | --versi | --vers | -V)
585
    ac_init_version=: ;;
586
 
587
  -with-* | --with-*)
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
    # Reject names that are not valid shell variable names.
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
592
   { (exit 1); exit 1; }; }
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
594
    case $ac_option in
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
      *) ac_optarg=yes ;;
597
    esac
598
    eval "with_$ac_package='$ac_optarg'" ;;
599
 
600
  -without-* | --without-*)
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
    # Reject names that are not valid shell variable names.
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
605
   { (exit 1); exit 1; }; }
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
607
    eval "with_$ac_package=no" ;;
608
 
609
  --x)
610
    # Obsolete; use --with-x.
611
    with_x=yes ;;
612
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
  | --x-incl | --x-inc | --x-in | --x-i)
615
    ac_prev=x_includes ;;
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
    x_includes=$ac_optarg ;;
619
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
    ac_prev=x_libraries ;;
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
    x_libraries=$ac_optarg ;;
626
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
   { (exit 1); exit 1; }; }
630
    ;;
631
 
632
  *=*)
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
    # Reject names that are not valid shell variable names.
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
   { (exit 1); exit 1; }; }
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
    eval "$ac_envvar='$ac_optarg'"
640
    export $ac_envvar ;;
641
 
642
  *)
643
    # FIXME: should be removed in autoconf 3.0.
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648
    ;;
649
 
650
  esac
651
done
652
 
653
if test -n "$ac_prev"; then
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
656
   { (exit 1); exit 1; }; }
657
fi
658
 
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
661
do
662
  eval ac_val=$`echo $ac_var`
663
  case $ac_val in
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
   { (exit 1); exit 1; }; };;
667
  esac
668
done
669
 
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
              localstatedir libdir includedir oldincludedir infodir mandir
673
do
674
  eval ac_val=$`echo $ac_var`
675
  case $ac_val in
676
    [\\/$]* | ?:[\\/]* ) ;;
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
   { (exit 1); exit 1; }; };;
679
  esac
680
done
681
 
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
685
build=$build_alias
686
host=$host_alias
687
target=$target_alias
688
 
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
  if test "x$build_alias" = x; then
692
    cross_compiling=maybe
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
    If a cross compiler is detected then cross compile mode will be used." >&2
695
  elif test "x$build_alias" != "x$host_alias"; then
696
    cross_compiling=yes
697
  fi
698
fi
699
 
700
ac_tool_prefix=
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
 
703
test "$silent" = yes && exec 6>/dev/null
704
 
705
 
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
  ac_srcdir_defaulted=yes
709
  # Try the directory containing this script, then its parent.
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
         X"$0" : 'X\(//\)[^/]' \| \
713
         X"$0" : 'X\(//\)$' \| \
714
         X"$0" : 'X\(/\)' \| \
715
         .     : '\(.\)' 2>/dev/null ||
716
echo X"$0" |
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
          /^X\(\/\/\)$/{ s//\1/; q; }
720
          /^X\(\/\).*/{ s//\1/; q; }
721
          s/.*/./; q'`
722
  srcdir=$ac_confdir
723
  if test ! -r $srcdir/$ac_unique_file; then
724
    srcdir=..
725
  fi
726
else
727
  ac_srcdir_defaulted=no
728
fi
729
if test ! -r $srcdir/$ac_unique_file; then
730
  if test "$ac_srcdir_defaulted" = yes; then
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
   { (exit 1); exit 1; }; }
733
  else
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
   { (exit 1); exit 1; }; }
736
  fi
737
fi
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
   { (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CXXCPP_set=${CXXCPP+set}
755
ac_env_CXXCPP_value=$CXXCPP
756
ac_cv_env_CXXCPP_set=${CXXCPP+set}
757
ac_cv_env_CXXCPP_value=$CXXCPP
758
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759
ac_env_CPPFLAGS_value=$CPPFLAGS
760
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762
ac_env_CPP_set=${CPP+set}
763
ac_env_CPP_value=$CPP
764
ac_cv_env_CPP_set=${CPP+set}
765
ac_cv_env_CPP_value=$CPP
766
 
767
#
768
# Report the --help message.
769
#
770
if test "$ac_init_help" = "long"; then
771
  # Omit some internal or obsolete options to make the list less imposing.
772
  # This message is too long to be a string in the A/UX 3.1 sh.
773
  cat <<_ACEOF
774
\`configure' configures libjava version-unused to adapt to many kinds of systems.
775
 
776
Usage: $0 [OPTION]... [VAR=VALUE]...
777
 
778
To assign environment variables (e.g., CC, CFLAGS...), specify them as
779
VAR=VALUE.  See below for descriptions of some of the useful variables.
780
 
781
Defaults for the options are specified in brackets.
782
 
783
Configuration:
784
  -h, --help              display this help and exit
785
      --help=short        display options specific to this package
786
      --help=recursive    display the short help of all the included packages
787
  -V, --version           display version information and exit
788
  -q, --quiet, --silent   do not print \`checking...' messages
789
      --cache-file=FILE   cache test results in FILE [disabled]
790
  -C, --config-cache      alias for \`--cache-file=config.cache'
791
  -n, --no-create         do not create output files
792
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
 
794
_ACEOF
795
 
796
  cat <<_ACEOF
797
Installation directories:
798
  --prefix=PREFIX         install architecture-independent files in PREFIX
799
                          [$ac_default_prefix]
800
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801
                          [PREFIX]
802
 
803
By default, \`make install' will install all the files in
804
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806
for instance \`--prefix=\$HOME'.
807
 
808
For better control, use the options below.
809
 
810
Fine tuning of the installation directories:
811
  --bindir=DIR           user executables [EPREFIX/bin]
812
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
813
  --libexecdir=DIR       program executables [EPREFIX/libexec]
814
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818
  --libdir=DIR           object code libraries [EPREFIX/lib]
819
  --includedir=DIR       C header files [PREFIX/include]
820
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821
  --infodir=DIR          info documentation [PREFIX/info]
822
  --mandir=DIR           man documentation [PREFIX/man]
823
_ACEOF
824
 
825
  cat <<\_ACEOF
826
 
827
Program names:
828
  --program-prefix=PREFIX            prepend PREFIX to installed program names
829
  --program-suffix=SUFFIX            append SUFFIX to installed program names
830
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
 
832
X features:
833
  --x-includes=DIR    X include files are in DIR
834
  --x-libraries=DIR   X library files are in DIR
835
 
836
System types:
837
  --build=BUILD     configure for building on BUILD [guessed]
838
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839
  --target=TARGET   configure for building compilers for TARGET [HOST]
840
_ACEOF
841
fi
842
 
843
if test -n "$ac_init_help"; then
844
  case $ac_init_help in
845
     short | recursive ) echo "Configuration of libjava version-unused:";;
846
   esac
847
  cat <<\_ACEOF
848
 
849
Optional Features:
850
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852
  --enable-version-specific-runtime-libs
853
                          specify that runtime libraries should be installed
854
                          in a compiler-specific directory
855
  --enable-multilib       build many library versions (default)
856
  --disable-dependency-tracking  speeds up one-time build
857
  --enable-dependency-tracking   do not reject slow dependency extractors
858
  --enable-maintainer-mode  enable make rules and dependencies not useful
859
                          (and sometimes confusing) to the casual installer
860
  --enable-libgcj-debug   enable runtime debugging code
861
  --enable-java-awt       list of AWT peer implementations to be built
862
  --enable-shared=PKGS  build shared libraries default=yes
863
  --enable-static=PKGS  build static libraries default=yes
864
  --enable-fast-install=PKGS  optimize for fast installation default=yes
865
  --disable-libtool-lock  avoid locking (might break parallel builds)
866
  --disable-getenv-properties
867
                          don't set system properties from GCJ_PROPERTIES
868
  --enable-hash-synchronization
869
                          use global hash table for monitor locks
870
  --enable-gc-debug       include full support for pointer backtracing etc.
871
  --enable-interpreter    enable interpreter
872
  --enable-sjlj-exceptions
873
                          force use of builtin_setjmp for exceptions
874
  --disable-java-net      disable java.net
875
  --disable-jvmpi         disable JVMPI support
876
  --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
877
  --enable-java-gc=TYPE   choose garbage collector (default is boehm)
878
  --disable-rpath         do not hardcode runtime library paths
879
  _g_switchUse thread-local storage
880
                          [default=yes]
881
 
882
Optional Packages:
883
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885
  --with-target-subdir=SUBDIR
886
                          configure in a subdirectory
887
  --with-cross-host=HOST  configure with a cross compiler from HOST
888
  --with-newlib           configure with newlib
889
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
890
  --with-pic              try to use only PIC/non-PIC objects default=use both
891
  --with-java-home=DIRECTORY
892
                          value of java.home system property
893
  --with-win32-nlsapi=ansi or unicows or unicode
894
                          native MinGW libgcj Win32 OS API (default is ansi)
895
  --without-libffi        don't use libffi
896
  --with-ecos             enable runtime eCos target support
897
  --with-system-zlib      use installed libz
898
  --with-x                use the X Window System
899
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
900
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
901
 
902
Some influential environment variables:
903
  CC          C compiler command
904
  CFLAGS      C compiler flags
905
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
906
              nonstandard directory 
907
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
908
              headers in a nonstandard directory 
909
  CXX         C++ compiler command
910
  CXXFLAGS    C++ compiler flags
911
  CXXCPP      C++ preprocessor
912
  CPP         C preprocessor
913
 
914
Use these variables to override the choices made by `configure' or to help
915
it to find libraries and programs with nonstandard names/locations.
916
 
917
_ACEOF
918
fi
919
 
920
if test "$ac_init_help" = "recursive"; then
921
  # If there are subdirs, report their specific --help.
922
  ac_popdir=`pwd`
923
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924
    test -d $ac_dir || continue
925
    ac_builddir=.
926
 
927
if test "$ac_dir" != .; then
928
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929
  # A "../" for each directory in $ac_dir_suffix.
930
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931
else
932
  ac_dir_suffix= ac_top_builddir=
933
fi
934
 
935
case $srcdir in
936
  .)  # No --srcdir option.  We are building in place.
937
    ac_srcdir=.
938
    if test -z "$ac_top_builddir"; then
939
       ac_top_srcdir=.
940
    else
941
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942
    fi ;;
943
  [\\/]* | ?:[\\/]* )  # Absolute path.
944
    ac_srcdir=$srcdir$ac_dir_suffix;
945
    ac_top_srcdir=$srcdir ;;
946
  *) # Relative path.
947
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
949
esac
950
 
951
# Do not use `cd foo && pwd` to compute absolute paths, because
952
# the directories may not exist.
953
case `pwd` in
954
.) ac_abs_builddir="$ac_dir";;
955
*)
956
  case "$ac_dir" in
957
  .) ac_abs_builddir=`pwd`;;
958
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
960
  esac;;
961
esac
962
case $ac_abs_builddir in
963
.) ac_abs_top_builddir=${ac_top_builddir}.;;
964
*)
965
  case ${ac_top_builddir}. in
966
  .) ac_abs_top_builddir=$ac_abs_builddir;;
967
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969
  esac;;
970
esac
971
case $ac_abs_builddir in
972
.) ac_abs_srcdir=$ac_srcdir;;
973
*)
974
  case $ac_srcdir in
975
  .) ac_abs_srcdir=$ac_abs_builddir;;
976
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978
  esac;;
979
esac
980
case $ac_abs_builddir in
981
.) ac_abs_top_srcdir=$ac_top_srcdir;;
982
*)
983
  case $ac_top_srcdir in
984
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
985
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987
  esac;;
988
esac
989
 
990
    cd $ac_dir
991
    # Check for guested configure; otherwise get Cygnus style configure.
992
    if test -f $ac_srcdir/configure.gnu; then
993
      echo
994
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
995
    elif test -f $ac_srcdir/configure; then
996
      echo
997
      $SHELL $ac_srcdir/configure  --help=recursive
998
    elif test -f $ac_srcdir/configure.ac ||
999
           test -f $ac_srcdir/configure.in; then
1000
      echo
1001
      $ac_configure --help
1002
    else
1003
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004
    fi
1005
    cd $ac_popdir
1006
  done
1007
fi
1008
 
1009
test -n "$ac_init_help" && exit 0
1010
if $ac_init_version; then
1011
  cat <<\_ACEOF
1012
libjava configure version-unused
1013
generated by GNU Autoconf 2.59
1014
 
1015
Copyright (C) 2003 Free Software Foundation, Inc.
1016
This configure script is free software; the Free Software Foundation
1017
gives unlimited permission to copy, distribute and modify it.
1018
_ACEOF
1019
  exit 0
1020
fi
1021
exec 5>config.log
1022
cat >&5 <<_ACEOF
1023
This file contains any messages produced by compilers while
1024
running configure, to aid debugging if configure makes a mistake.
1025
 
1026
It was created by libjava $as_me version-unused, which was
1027
generated by GNU Autoconf 2.59.  Invocation command line was
1028
 
1029
  $ $0 $@
1030
 
1031
_ACEOF
1032
{
1033
cat <<_ASUNAME
1034
## --------- ##
1035
## Platform. ##
1036
## --------- ##
1037
 
1038
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043
 
1044
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1046
 
1047
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1048
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1049
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1051
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1052
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1053
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1054
 
1055
_ASUNAME
1056
 
1057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058
for as_dir in $PATH
1059
do
1060
  IFS=$as_save_IFS
1061
  test -z "$as_dir" && as_dir=.
1062
  echo "PATH: $as_dir"
1063
done
1064
 
1065
} >&5
1066
 
1067
cat >&5 <<_ACEOF
1068
 
1069
 
1070
## ----------- ##
1071
## Core tests. ##
1072
## ----------- ##
1073
 
1074
_ACEOF
1075
 
1076
 
1077
# Keep a trace of the command line.
1078
# Strip out --no-create and --no-recursion so they do not pile up.
1079
# Strip out --silent because we don't want to record it for future runs.
1080
# Also quote any args containing shell meta-characters.
1081
# Make two passes to allow for proper duplicate-argument suppression.
1082
ac_configure_args=
1083
ac_configure_args0=
1084
ac_configure_args1=
1085
ac_sep=
1086
ac_must_keep_next=false
1087
for ac_pass in 1 2
1088
do
1089
  for ac_arg
1090
  do
1091
    case $ac_arg in
1092
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094
    | -silent | --silent | --silen | --sile | --sil)
1095
      continue ;;
1096
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098
    esac
1099
    case $ac_pass in
1100
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101
    2)
1102
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103
      if test $ac_must_keep_next = true; then
1104
        ac_must_keep_next=false # Got value, back to normal.
1105
      else
1106
        case $ac_arg in
1107
          *=* | --config-cache | -C | -disable-* | --disable-* \
1108
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110
          | -with-* | --with-* | -without-* | --without-* | --x)
1111
            case "$ac_configure_args0 " in
1112
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113
            esac
1114
            ;;
1115
          -* ) ac_must_keep_next=true ;;
1116
        esac
1117
      fi
1118
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119
      # Get rid of the leading space.
1120
      ac_sep=" "
1121
      ;;
1122
    esac
1123
  done
1124
done
1125
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127
 
1128
# When interrupted or exit'd, cleanup temporary files, and complete
1129
# config.log.  We remove comments because anyway the quotes in there
1130
# would cause problems or look ugly.
1131
# WARNING: Be sure not to use single quotes in there, as some shells,
1132
# such as our DU 5.0 friend, will then `close' the trap.
1133
trap 'exit_status=$?
1134
  # Save into config.log some information that might help in debugging.
1135
  {
1136
    echo
1137
 
1138
    cat <<\_ASBOX
1139
## ---------------- ##
1140
## Cache variables. ##
1141
## ---------------- ##
1142
_ASBOX
1143
    echo
1144
    # The following way of writing the cache mishandles newlines in values,
1145
{
1146
  (set) 2>&1 |
1147
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148
    *ac_space=\ *)
1149
      sed -n \
1150
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152
      ;;
1153
    *)
1154
      sed -n \
1155
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156
      ;;
1157
    esac;
1158
}
1159
    echo
1160
 
1161
    cat <<\_ASBOX
1162
## ----------------- ##
1163
## Output variables. ##
1164
## ----------------- ##
1165
_ASBOX
1166
    echo
1167
    for ac_var in $ac_subst_vars
1168
    do
1169
      eval ac_val=$`echo $ac_var`
1170
      echo "$ac_var='"'"'$ac_val'"'"'"
1171
    done | sort
1172
    echo
1173
 
1174
    if test -n "$ac_subst_files"; then
1175
      cat <<\_ASBOX
1176
## ------------- ##
1177
## Output files. ##
1178
## ------------- ##
1179
_ASBOX
1180
      echo
1181
      for ac_var in $ac_subst_files
1182
      do
1183
        eval ac_val=$`echo $ac_var`
1184
        echo "$ac_var='"'"'$ac_val'"'"'"
1185
      done | sort
1186
      echo
1187
    fi
1188
 
1189
    if test -s confdefs.h; then
1190
      cat <<\_ASBOX
1191
## ----------- ##
1192
## confdefs.h. ##
1193
## ----------- ##
1194
_ASBOX
1195
      echo
1196
      sed "/^$/d" confdefs.h | sort
1197
      echo
1198
    fi
1199
    test "$ac_signal" != 0 &&
1200
      echo "$as_me: caught signal $ac_signal"
1201
    echo "$as_me: exit $exit_status"
1202
  } >&5
1203
  rm -f core *.core &&
1204
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205
    exit $exit_status
1206
     ' 0
1207
for ac_signal in 1 2 13 15; do
1208
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209
done
1210
ac_signal=0
1211
 
1212
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1213
rm -rf conftest* confdefs.h
1214
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215
echo >confdefs.h
1216
 
1217
# Predefined preprocessor variables.
1218
 
1219
cat >>confdefs.h <<_ACEOF
1220
#define PACKAGE_NAME "$PACKAGE_NAME"
1221
_ACEOF
1222
 
1223
 
1224
cat >>confdefs.h <<_ACEOF
1225
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226
_ACEOF
1227
 
1228
 
1229
cat >>confdefs.h <<_ACEOF
1230
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1231
_ACEOF
1232
 
1233
 
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_STRING "$PACKAGE_STRING"
1236
_ACEOF
1237
 
1238
 
1239
cat >>confdefs.h <<_ACEOF
1240
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241
_ACEOF
1242
 
1243
 
1244
# Let the site file select an alternate cache file if it wants to.
1245
# Prefer explicitly selected file to automatically selected ones.
1246
if test -z "$CONFIG_SITE"; then
1247
  if test "x$prefix" != xNONE; then
1248
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249
  else
1250
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251
  fi
1252
fi
1253
for ac_site_file in $CONFIG_SITE; do
1254
  if test -r "$ac_site_file"; then
1255
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256
echo "$as_me: loading site script $ac_site_file" >&6;}
1257
    sed 's/^/| /' "$ac_site_file" >&5
1258
    . "$ac_site_file"
1259
  fi
1260
done
1261
 
1262
if test -r "$cache_file"; then
1263
  # Some versions of bash will fail to source /dev/null (special
1264
  # files actually), so we avoid doing that.
1265
  if test -f "$cache_file"; then
1266
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267
echo "$as_me: loading cache $cache_file" >&6;}
1268
    case $cache_file in
1269
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1270
      *)                      . ./$cache_file;;
1271
    esac
1272
  fi
1273
else
1274
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275
echo "$as_me: creating cache $cache_file" >&6;}
1276
  >$cache_file
1277
fi
1278
 
1279
# Check that the precious variables saved in the cache have kept the same
1280
# value.
1281
ac_cache_corrupted=false
1282
for ac_var in `(set) 2>&1 |
1283
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285
  eval ac_new_set=\$ac_env_${ac_var}_set
1286
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287
  eval ac_new_val="\$ac_env_${ac_var}_value"
1288
  case $ac_old_set,$ac_new_set in
1289
    set,)
1290
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292
      ac_cache_corrupted=: ;;
1293
    ,set)
1294
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296
      ac_cache_corrupted=: ;;
1297
    ,);;
1298
    *)
1299
      if test "x$ac_old_val" != "x$ac_new_val"; then
1300
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1303
echo "$as_me:   former value:  $ac_old_val" >&2;}
1304
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1305
echo "$as_me:   current value: $ac_new_val" >&2;}
1306
        ac_cache_corrupted=:
1307
      fi;;
1308
  esac
1309
  # Pass precious variables to config.status.
1310
  if test "$ac_new_set" = set; then
1311
    case $ac_new_val in
1312
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314
    *) ac_arg=$ac_var=$ac_new_val ;;
1315
    esac
1316
    case " $ac_configure_args " in
1317
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1318
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319
    esac
1320
  fi
1321
done
1322
if $ac_cache_corrupted; then
1323
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327
   { (exit 1); exit 1; }; }
1328
fi
1329
 
1330
ac_ext=c
1331
ac_cpp='$CPP $CPPFLAGS'
1332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335
 
1336
 
1337
 
1338
 
1339
 
1340
 
1341
 
1342
 
1343
 
1344
 
1345
 
1346
 
1347
 
1348
 
1349
 
1350
 
1351
 
1352
 
1353
 
1354
 
1355
 
1356
 
1357
 
1358
 
1359
 
1360
 
1361
 
1362
 
1363
 
1364
 
1365
ac_aux_dir=
1366
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367
  if test -f $ac_dir/install-sh; then
1368
    ac_aux_dir=$ac_dir
1369
    ac_install_sh="$ac_aux_dir/install-sh -c"
1370
    break
1371
  elif test -f $ac_dir/install.sh; then
1372
    ac_aux_dir=$ac_dir
1373
    ac_install_sh="$ac_aux_dir/install.sh -c"
1374
    break
1375
  elif test -f $ac_dir/shtool; then
1376
    ac_aux_dir=$ac_dir
1377
    ac_install_sh="$ac_aux_dir/shtool install -c"
1378
    break
1379
  fi
1380
done
1381
if test -z "$ac_aux_dir"; then
1382
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384
   { (exit 1); exit 1; }; }
1385
fi
1386
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
 
1390
# Make sure we can run config.sub.
1391
$ac_config_sub sun4 >/dev/null 2>&1 ||
1392
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394
   { (exit 1); exit 1; }; }
1395
 
1396
echo "$as_me:$LINENO: checking build system type" >&5
1397
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398
if test "${ac_cv_build+set}" = set; then
1399
  echo $ECHO_N "(cached) $ECHO_C" >&6
1400
else
1401
  ac_cv_build_alias=$build_alias
1402
test -z "$ac_cv_build_alias" &&
1403
  ac_cv_build_alias=`$ac_config_guess`
1404
test -z "$ac_cv_build_alias" &&
1405
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407
   { (exit 1); exit 1; }; }
1408
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411
   { (exit 1); exit 1; }; }
1412
 
1413
fi
1414
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415
echo "${ECHO_T}$ac_cv_build" >&6
1416
build=$ac_cv_build
1417
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
 
1421
 
1422
 case ${build_alias} in
1423
  "") build_noncanonical=${build} ;;
1424
  *) build_noncanonical=${build_alias} ;;
1425
esac
1426
 
1427
 case ${host_alias} in
1428
  "") host_noncanonical=${build_noncanonical} ;;
1429
  *) host_noncanonical=${host_alias} ;;
1430
esac
1431
 
1432
 case ${target_alias} in
1433
  "") target_noncanonical=${host_noncanonical} ;;
1434
  *) target_noncanonical=${target_alias} ;;
1435
esac
1436
 
1437
  # Prefix 'build-' so this never conflicts with target_subdir.
1438
build_subdir="build-${build_noncanonical}"
1439
# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440
if ( test $srcdir = . && test -d gcc ) \
1441
   || test -d $srcdir/../host-${host_noncanonical}; then
1442
  host_subdir="host-${host_noncanonical}"
1443
else
1444
  host_subdir=.
1445
fi
1446
# No prefix.
1447
target_subdir=${target_noncanonical}
1448
 
1449
 
1450
# We use these options to decide which functions to include.
1451
 
1452
# Check whether --with-target-subdir or --without-target-subdir was given.
1453
if test "${with_target_subdir+set}" = set; then
1454
  withval="$with_target_subdir"
1455
 
1456
fi;
1457
 
1458
# We may get other options which we don't document:
1459
# --with-target-subdir, --with-multisrctop, --with-multisubdir
1460
 
1461
# When building with srcdir == objdir, links to the source files will
1462
# be created in directories within the target_subdir.  We have to
1463
# adjust toplevel_srcdir accordingly, so that configure finds
1464
# install-sh and other auxiliary files that live in the top-level
1465
# source directory.
1466
if test "${srcdir}" = "."; then
1467
  if test -z "${with_target_subdir}"; then
1468
    toprel=".."
1469
  else
1470
    if test "${with_target_subdir}" != "."; then
1471
      toprel="${with_multisrctop}../.."
1472
    else
1473
      toprel="${with_multisrctop}.."
1474
    fi
1475
  fi
1476
else
1477
  toprel=".."
1478
fi
1479
 
1480
libgcj_basedir=$srcdir/$toprel/./libjava
1481
 
1482
 
1483
echo "$as_me:$LINENO: checking host system type" >&5
1484
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485
if test "${ac_cv_host+set}" = set; then
1486
  echo $ECHO_N "(cached) $ECHO_C" >&6
1487
else
1488
  ac_cv_host_alias=$host_alias
1489
test -z "$ac_cv_host_alias" &&
1490
  ac_cv_host_alias=$ac_cv_build_alias
1491
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494
   { (exit 1); exit 1; }; }
1495
 
1496
fi
1497
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498
echo "${ECHO_T}$ac_cv_host" >&6
1499
host=$ac_cv_host
1500
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503
 
1504
 
1505
echo "$as_me:$LINENO: checking target system type" >&5
1506
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507
if test "${ac_cv_target+set}" = set; then
1508
  echo $ECHO_N "(cached) $ECHO_C" >&6
1509
else
1510
  ac_cv_target_alias=$target_alias
1511
test "x$ac_cv_target_alias" = "x" &&
1512
  ac_cv_target_alias=$ac_cv_host_alias
1513
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516
   { (exit 1); exit 1; }; }
1517
 
1518
fi
1519
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520
echo "${ECHO_T}$ac_cv_target" >&6
1521
target=$ac_cv_target
1522
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
 
1526
 
1527
# The aliases save the names the user supplied, while $host etc.
1528
# will get canonicalized.
1529
test -n "$target_alias" &&
1530
  test "$program_prefix$program_suffix$program_transform_name" = \
1531
    NONENONEs,x,x, &&
1532
  program_prefix=${target_alias}-
1533
 case ${build_alias} in
1534
  "") build_noncanonical=${build} ;;
1535
  *) build_noncanonical=${build_alias} ;;
1536
esac
1537
 
1538
 case ${target_alias} in
1539
  "") target_noncanonical=${host_noncanonical} ;;
1540
  *) target_noncanonical=${target_alias} ;;
1541
esac
1542
 
1543
 
1544
 
1545
 
1546
# This works around the fact that libtool configuration may change LD
1547
# for this particular configuration, but some shells, instead of
1548
# keeping the changes in LD private, export them just because LD is
1549
# exported.
1550
ORIGINAL_LD_FOR_MULTILIBS=$LD
1551
 
1552
echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554
LN_S=$as_ln_s
1555
if test "$LN_S" = "ln -s"; then
1556
  echo "$as_me:$LINENO: result: yes" >&5
1557
echo "${ECHO_T}yes" >&6
1558
else
1559
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560
echo "${ECHO_T}no, using $LN_S" >&6
1561
fi
1562
 
1563
 
1564
# This works around an automake problem.
1565
mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1566
 
1567
 
1568
 
1569
# Check whether --with-cross-host or --without-cross-host was given.
1570
if test "${with_cross_host+set}" = set; then
1571
  withval="$with_cross_host"
1572
 
1573
fi;
1574
 
1575
 
1576
# Check whether --with-newlib or --without-newlib was given.
1577
if test "${with_newlib+set}" = set; then
1578
  withval="$with_newlib"
1579
 
1580
fi;
1581
 
1582
# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583
if test "${enable_version_specific_runtime_libs+set}" = set; then
1584
  enableval="$enable_version_specific_runtime_libs"
1585
  case "$enableval" in
1586
      yes) version_specific_libs=yes ;;
1587
      no)  version_specific_libs=no ;;
1588
      *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589
echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590
   { (exit 1); exit 1; }; };;
1591
     esac
1592
else
1593
  version_specific_libs=no
1594
 
1595
fi;
1596
 
1597
# Default to --enable-multilib
1598
# Check whether --enable-multilib or --disable-multilib was given.
1599
if test "${enable_multilib+set}" = set; then
1600
  enableval="$enable_multilib"
1601
  case "${enableval}" in
1602
  yes) multilib=yes ;;
1603
  no)  multilib=no ;;
1604
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606
   { (exit 1); exit 1; }; } ;;
1607
 esac
1608
else
1609
  multilib=yes
1610
fi;
1611
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612
 
1613
 
1614
# (1) We use an abnormal CXX (without library references), so we
1615
# must cache it under a different name.
1616
# (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617
# the non-multilib-adjusted value will be used in multilibs.
1618
# (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619
# (4) As another side effect, automake doesn't automatically include them
1620
# in Makefile.in.
1621
# (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622
# non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623
# used in later tests.  This may not be necessary in libjava; I don't know.
1624
 
1625
 
1626
 
1627
save_CXXFLAGS="$CXXFLAGS"
1628
CXXFLAGS="$CXXFLAGS -fno-builtin"
1629
ac_ext=c
1630
ac_cpp='$CPP $CPPFLAGS'
1631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634
if test -n "$ac_tool_prefix"; then
1635
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637
echo "$as_me:$LINENO: checking for $ac_word" >&5
1638
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639
if test "${ac_cv_prog_CC+set}" = set; then
1640
  echo $ECHO_N "(cached) $ECHO_C" >&6
1641
else
1642
  if test -n "$CC"; then
1643
  ac_cv_prog_CC="$CC" # Let the user override the test.
1644
else
1645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646
for as_dir in $PATH
1647
do
1648
  IFS=$as_save_IFS
1649
  test -z "$as_dir" && as_dir=.
1650
  for ac_exec_ext in '' $ac_executable_extensions; do
1651
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654
    break 2
1655
  fi
1656
done
1657
done
1658
 
1659
fi
1660
fi
1661
CC=$ac_cv_prog_CC
1662
if test -n "$CC"; then
1663
  echo "$as_me:$LINENO: result: $CC" >&5
1664
echo "${ECHO_T}$CC" >&6
1665
else
1666
  echo "$as_me:$LINENO: result: no" >&5
1667
echo "${ECHO_T}no" >&6
1668
fi
1669
 
1670
fi
1671
if test -z "$ac_cv_prog_CC"; then
1672
  ac_ct_CC=$CC
1673
  # Extract the first word of "gcc", so it can be a program name with args.
1674
set dummy gcc; ac_word=$2
1675
echo "$as_me:$LINENO: checking for $ac_word" >&5
1676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678
  echo $ECHO_N "(cached) $ECHO_C" >&6
1679
else
1680
  if test -n "$ac_ct_CC"; then
1681
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682
else
1683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684
for as_dir in $PATH
1685
do
1686
  IFS=$as_save_IFS
1687
  test -z "$as_dir" && as_dir=.
1688
  for ac_exec_ext in '' $ac_executable_extensions; do
1689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690
    ac_cv_prog_ac_ct_CC="gcc"
1691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692
    break 2
1693
  fi
1694
done
1695
done
1696
 
1697
fi
1698
fi
1699
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700
if test -n "$ac_ct_CC"; then
1701
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702
echo "${ECHO_T}$ac_ct_CC" >&6
1703
else
1704
  echo "$as_me:$LINENO: result: no" >&5
1705
echo "${ECHO_T}no" >&6
1706
fi
1707
 
1708
  CC=$ac_ct_CC
1709
else
1710
  CC="$ac_cv_prog_CC"
1711
fi
1712
 
1713
if test -z "$CC"; then
1714
  if test -n "$ac_tool_prefix"; then
1715
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716
set dummy ${ac_tool_prefix}cc; ac_word=$2
1717
echo "$as_me:$LINENO: checking for $ac_word" >&5
1718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719
if test "${ac_cv_prog_CC+set}" = set; then
1720
  echo $ECHO_N "(cached) $ECHO_C" >&6
1721
else
1722
  if test -n "$CC"; then
1723
  ac_cv_prog_CC="$CC" # Let the user override the test.
1724
else
1725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726
for as_dir in $PATH
1727
do
1728
  IFS=$as_save_IFS
1729
  test -z "$as_dir" && as_dir=.
1730
  for ac_exec_ext in '' $ac_executable_extensions; do
1731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734
    break 2
1735
  fi
1736
done
1737
done
1738
 
1739
fi
1740
fi
1741
CC=$ac_cv_prog_CC
1742
if test -n "$CC"; then
1743
  echo "$as_me:$LINENO: result: $CC" >&5
1744
echo "${ECHO_T}$CC" >&6
1745
else
1746
  echo "$as_me:$LINENO: result: no" >&5
1747
echo "${ECHO_T}no" >&6
1748
fi
1749
 
1750
fi
1751
if test -z "$ac_cv_prog_CC"; then
1752
  ac_ct_CC=$CC
1753
  # Extract the first word of "cc", so it can be a program name with args.
1754
set dummy cc; ac_word=$2
1755
echo "$as_me:$LINENO: checking for $ac_word" >&5
1756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758
  echo $ECHO_N "(cached) $ECHO_C" >&6
1759
else
1760
  if test -n "$ac_ct_CC"; then
1761
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762
else
1763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764
for as_dir in $PATH
1765
do
1766
  IFS=$as_save_IFS
1767
  test -z "$as_dir" && as_dir=.
1768
  for ac_exec_ext in '' $ac_executable_extensions; do
1769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770
    ac_cv_prog_ac_ct_CC="cc"
1771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772
    break 2
1773
  fi
1774
done
1775
done
1776
 
1777
fi
1778
fi
1779
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780
if test -n "$ac_ct_CC"; then
1781
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782
echo "${ECHO_T}$ac_ct_CC" >&6
1783
else
1784
  echo "$as_me:$LINENO: result: no" >&5
1785
echo "${ECHO_T}no" >&6
1786
fi
1787
 
1788
  CC=$ac_ct_CC
1789
else
1790
  CC="$ac_cv_prog_CC"
1791
fi
1792
 
1793
fi
1794
if test -z "$CC"; then
1795
  # Extract the first word of "cc", so it can be a program name with args.
1796
set dummy cc; ac_word=$2
1797
echo "$as_me:$LINENO: checking for $ac_word" >&5
1798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799
if test "${ac_cv_prog_CC+set}" = set; then
1800
  echo $ECHO_N "(cached) $ECHO_C" >&6
1801
else
1802
  if test -n "$CC"; then
1803
  ac_cv_prog_CC="$CC" # Let the user override the test.
1804
else
1805
  ac_prog_rejected=no
1806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807
for as_dir in $PATH
1808
do
1809
  IFS=$as_save_IFS
1810
  test -z "$as_dir" && as_dir=.
1811
  for ac_exec_ext in '' $ac_executable_extensions; do
1812
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814
       ac_prog_rejected=yes
1815
       continue
1816
     fi
1817
    ac_cv_prog_CC="cc"
1818
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819
    break 2
1820
  fi
1821
done
1822
done
1823
 
1824
if test $ac_prog_rejected = yes; then
1825
  # We found a bogon in the path, so make sure we never use it.
1826
  set dummy $ac_cv_prog_CC
1827
  shift
1828
  if test $# != 0; then
1829
    # We chose a different compiler from the bogus one.
1830
    # However, it has the same basename, so the bogon will be chosen
1831
    # first if we set CC to just the basename; use the full file name.
1832
    shift
1833
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834
  fi
1835
fi
1836
fi
1837
fi
1838
CC=$ac_cv_prog_CC
1839
if test -n "$CC"; then
1840
  echo "$as_me:$LINENO: result: $CC" >&5
1841
echo "${ECHO_T}$CC" >&6
1842
else
1843
  echo "$as_me:$LINENO: result: no" >&5
1844
echo "${ECHO_T}no" >&6
1845
fi
1846
 
1847
fi
1848
if test -z "$CC"; then
1849
  if test -n "$ac_tool_prefix"; then
1850
  for ac_prog in cl
1851
  do
1852
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854
echo "$as_me:$LINENO: checking for $ac_word" >&5
1855
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856
if test "${ac_cv_prog_CC+set}" = set; then
1857
  echo $ECHO_N "(cached) $ECHO_C" >&6
1858
else
1859
  if test -n "$CC"; then
1860
  ac_cv_prog_CC="$CC" # Let the user override the test.
1861
else
1862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863
for as_dir in $PATH
1864
do
1865
  IFS=$as_save_IFS
1866
  test -z "$as_dir" && as_dir=.
1867
  for ac_exec_ext in '' $ac_executable_extensions; do
1868
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871
    break 2
1872
  fi
1873
done
1874
done
1875
 
1876
fi
1877
fi
1878
CC=$ac_cv_prog_CC
1879
if test -n "$CC"; then
1880
  echo "$as_me:$LINENO: result: $CC" >&5
1881
echo "${ECHO_T}$CC" >&6
1882
else
1883
  echo "$as_me:$LINENO: result: no" >&5
1884
echo "${ECHO_T}no" >&6
1885
fi
1886
 
1887
    test -n "$CC" && break
1888
  done
1889
fi
1890
if test -z "$CC"; then
1891
  ac_ct_CC=$CC
1892
  for ac_prog in cl
1893
do
1894
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1895
set dummy $ac_prog; ac_word=$2
1896
echo "$as_me:$LINENO: checking for $ac_word" >&5
1897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899
  echo $ECHO_N "(cached) $ECHO_C" >&6
1900
else
1901
  if test -n "$ac_ct_CC"; then
1902
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903
else
1904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905
for as_dir in $PATH
1906
do
1907
  IFS=$as_save_IFS
1908
  test -z "$as_dir" && as_dir=.
1909
  for ac_exec_ext in '' $ac_executable_extensions; do
1910
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911
    ac_cv_prog_ac_ct_CC="$ac_prog"
1912
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913
    break 2
1914
  fi
1915
done
1916
done
1917
 
1918
fi
1919
fi
1920
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921
if test -n "$ac_ct_CC"; then
1922
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923
echo "${ECHO_T}$ac_ct_CC" >&6
1924
else
1925
  echo "$as_me:$LINENO: result: no" >&5
1926
echo "${ECHO_T}no" >&6
1927
fi
1928
 
1929
  test -n "$ac_ct_CC" && break
1930
done
1931
 
1932
  CC=$ac_ct_CC
1933
fi
1934
 
1935
fi
1936
 
1937
 
1938
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939
See \`config.log' for more details." >&5
1940
echo "$as_me: error: no acceptable C compiler found in \$PATH
1941
See \`config.log' for more details." >&2;}
1942
   { (exit 1); exit 1; }; }
1943
 
1944
# Provide some information about the compiler.
1945
echo "$as_me:$LINENO:" \
1946
     "checking for C compiler version" >&5
1947
ac_compiler=`set X $ac_compile; echo $2`
1948
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1949
  (eval $ac_compiler --version &5) 2>&5
1950
  ac_status=$?
1951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952
  (exit $ac_status); }
1953
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1954
  (eval $ac_compiler -v &5) 2>&5
1955
  ac_status=$?
1956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957
  (exit $ac_status); }
1958
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1959
  (eval $ac_compiler -V &5) 2>&5
1960
  ac_status=$?
1961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962
  (exit $ac_status); }
1963
 
1964
cat >conftest.$ac_ext <<_ACEOF
1965
/* confdefs.h.  */
1966
_ACEOF
1967
cat confdefs.h >>conftest.$ac_ext
1968
cat >>conftest.$ac_ext <<_ACEOF
1969
/* end confdefs.h.  */
1970
 
1971
int
1972
main ()
1973
{
1974
 
1975
  ;
1976
  return 0;
1977
}
1978
_ACEOF
1979
# FIXME: Cleanup?
1980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981
  (eval $ac_link) 2>&5
1982
  ac_status=$?
1983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984
  (exit $ac_status); }; then
1985
  gcc_no_link=no
1986
else
1987
  gcc_no_link=yes
1988
fi
1989
 
1990
if test x$gcc_no_link = xyes; then
1991
  # Setting cross_compile will disable run tests; it will
1992
  # also disable AC_CHECK_FILE but that's generally
1993
  # correct if we can't link.
1994
  cross_compiling=yes
1995
  EXEEXT=
1996
else
1997
  cat >conftest.$ac_ext <<_ACEOF
1998
/* confdefs.h.  */
1999
_ACEOF
2000
cat confdefs.h >>conftest.$ac_ext
2001
cat >>conftest.$ac_ext <<_ACEOF
2002
/* end confdefs.h.  */
2003
 
2004
int
2005
main ()
2006
{
2007
 
2008
  ;
2009
  return 0;
2010
}
2011
_ACEOF
2012
ac_clean_files_save=$ac_clean_files
2013
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014
# Try to create an executable without -o first, disregard a.out.
2015
# It will help us diagnose broken compilers, and finding out an intuition
2016
# of exeext.
2017
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021
  (eval $ac_link_default) 2>&5
2022
  ac_status=$?
2023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024
  (exit $ac_status); }; then
2025
  # Find the output, starting from the most likely.  This scheme is
2026
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027
# resort.
2028
 
2029
# Be careful to initialize this variable, since it used to be cached.
2030
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031
ac_cv_exeext=
2032
# b.out is created by i960 compilers.
2033
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034
do
2035
  test -f "$ac_file" || continue
2036
  case $ac_file in
2037
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038
        ;;
2039
    conftest.$ac_ext )
2040
        # This is the source file.
2041
        ;;
2042
    [ab].out )
2043
        # We found the default executable, but exeext='' is most
2044
        # certainly right.
2045
        break;;
2046
    *.* )
2047
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2049
        # but it would be cool to find out if it's true.  Does anybody
2050
        # maintain Libtool? --akim.
2051
        export ac_cv_exeext
2052
        break;;
2053
    * )
2054
        break;;
2055
  esac
2056
done
2057
else
2058
  echo "$as_me: failed program was:" >&5
2059
sed 's/^/| /' conftest.$ac_ext >&5
2060
 
2061
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062
See \`config.log' for more details." >&5
2063
echo "$as_me: error: C compiler cannot create executables
2064
See \`config.log' for more details." >&2;}
2065
   { (exit 77); exit 77; }; }
2066
fi
2067
 
2068
ac_exeext=$ac_cv_exeext
2069
echo "$as_me:$LINENO: result: $ac_file" >&5
2070
echo "${ECHO_T}$ac_file" >&6
2071
 
2072
# Check the compiler produces executables we can run.  If not, either
2073
# the compiler is broken, or we cross compile.
2074
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077
# If not cross compiling, check that we can run a simple program.
2078
if test "$cross_compiling" != yes; then
2079
  if { ac_try='./$ac_file'
2080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081
  (eval $ac_try) 2>&5
2082
  ac_status=$?
2083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
  (exit $ac_status); }; }; then
2085
    cross_compiling=no
2086
  else
2087
    if test "$cross_compiling" = maybe; then
2088
        cross_compiling=yes
2089
    else
2090
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091
If you meant to cross compile, use \`--host'.
2092
See \`config.log' for more details." >&5
2093
echo "$as_me: error: cannot run C compiled programs.
2094
If you meant to cross compile, use \`--host'.
2095
See \`config.log' for more details." >&2;}
2096
   { (exit 1); exit 1; }; }
2097
    fi
2098
  fi
2099
fi
2100
echo "$as_me:$LINENO: result: yes" >&5
2101
echo "${ECHO_T}yes" >&6
2102
 
2103
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104
ac_clean_files=$ac_clean_files_save
2105
# Check the compiler produces executables we can run.  If not, either
2106
# the compiler is broken, or we cross compile.
2107
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110
echo "${ECHO_T}$cross_compiling" >&6
2111
 
2112
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115
  (eval $ac_link) 2>&5
2116
  ac_status=$?
2117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118
  (exit $ac_status); }; then
2119
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121
# work properly (i.e., refer to `conftest.exe'), while it won't with
2122
# `rm'.
2123
for ac_file in conftest.exe conftest conftest.*; do
2124
  test -f "$ac_file" || continue
2125
  case $ac_file in
2126
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128
          export ac_cv_exeext
2129
          break;;
2130
    * ) break;;
2131
  esac
2132
done
2133
else
2134
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135
See \`config.log' for more details." >&5
2136
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137
See \`config.log' for more details." >&2;}
2138
   { (exit 1); exit 1; }; }
2139
fi
2140
 
2141
rm -f conftest$ac_cv_exeext
2142
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143
echo "${ECHO_T}$ac_cv_exeext" >&6
2144
 
2145
rm -f conftest.$ac_ext
2146
EXEEXT=$ac_cv_exeext
2147
ac_exeext=$EXEEXT
2148
fi
2149
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151
if test "${ac_cv_objext+set}" = set; then
2152
  echo $ECHO_N "(cached) $ECHO_C" >&6
2153
else
2154
  cat >conftest.$ac_ext <<_ACEOF
2155
/* confdefs.h.  */
2156
_ACEOF
2157
cat confdefs.h >>conftest.$ac_ext
2158
cat >>conftest.$ac_ext <<_ACEOF
2159
/* end confdefs.h.  */
2160
 
2161
int
2162
main ()
2163
{
2164
 
2165
  ;
2166
  return 0;
2167
}
2168
_ACEOF
2169
rm -f conftest.o conftest.obj
2170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171
  (eval $ac_compile) 2>&5
2172
  ac_status=$?
2173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
  (exit $ac_status); }; then
2175
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176
  case $ac_file in
2177
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179
       break;;
2180
  esac
2181
done
2182
else
2183
  echo "$as_me: failed program was:" >&5
2184
sed 's/^/| /' conftest.$ac_ext >&5
2185
 
2186
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187
See \`config.log' for more details." >&5
2188
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189
See \`config.log' for more details." >&2;}
2190
   { (exit 1); exit 1; }; }
2191
fi
2192
 
2193
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194
fi
2195
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196
echo "${ECHO_T}$ac_cv_objext" >&6
2197
OBJEXT=$ac_cv_objext
2198
ac_objext=$OBJEXT
2199
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202
  echo $ECHO_N "(cached) $ECHO_C" >&6
2203
else
2204
  cat >conftest.$ac_ext <<_ACEOF
2205
/* confdefs.h.  */
2206
_ACEOF
2207
cat confdefs.h >>conftest.$ac_ext
2208
cat >>conftest.$ac_ext <<_ACEOF
2209
/* end confdefs.h.  */
2210
 
2211
int
2212
main ()
2213
{
2214
#ifndef __GNUC__
2215
       choke me
2216
#endif
2217
 
2218
  ;
2219
  return 0;
2220
}
2221
_ACEOF
2222
rm -f conftest.$ac_objext
2223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224
  (eval $ac_compile) 2>conftest.er1
2225
  ac_status=$?
2226
  grep -v '^ *+' conftest.er1 >conftest.err
2227
  rm -f conftest.er1
2228
  cat conftest.err >&5
2229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230
  (exit $ac_status); } &&
2231
         { ac_try='test -z "$ac_c_werror_flag"
2232
                         || test ! -s conftest.err'
2233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234
  (eval $ac_try) 2>&5
2235
  ac_status=$?
2236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
  (exit $ac_status); }; } &&
2238
         { ac_try='test -s conftest.$ac_objext'
2239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240
  (eval $ac_try) 2>&5
2241
  ac_status=$?
2242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243
  (exit $ac_status); }; }; then
2244
  ac_compiler_gnu=yes
2245
else
2246
  echo "$as_me: failed program was:" >&5
2247
sed 's/^/| /' conftest.$ac_ext >&5
2248
 
2249
ac_compiler_gnu=no
2250
fi
2251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253
 
2254
fi
2255
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257
GCC=`test $ac_compiler_gnu = yes && echo yes`
2258
ac_test_CFLAGS=${CFLAGS+set}
2259
ac_save_CFLAGS=$CFLAGS
2260
CFLAGS="-g"
2261
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263
if test "${ac_cv_prog_cc_g+set}" = set; then
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
2265
else
2266
  cat >conftest.$ac_ext <<_ACEOF
2267
/* confdefs.h.  */
2268
_ACEOF
2269
cat confdefs.h >>conftest.$ac_ext
2270
cat >>conftest.$ac_ext <<_ACEOF
2271
/* end confdefs.h.  */
2272
 
2273
int
2274
main ()
2275
{
2276
 
2277
  ;
2278
  return 0;
2279
}
2280
_ACEOF
2281
rm -f conftest.$ac_objext
2282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283
  (eval $ac_compile) 2>conftest.er1
2284
  ac_status=$?
2285
  grep -v '^ *+' conftest.er1 >conftest.err
2286
  rm -f conftest.er1
2287
  cat conftest.err >&5
2288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289
  (exit $ac_status); } &&
2290
         { ac_try='test -z "$ac_c_werror_flag"
2291
                         || test ! -s conftest.err'
2292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293
  (eval $ac_try) 2>&5
2294
  ac_status=$?
2295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296
  (exit $ac_status); }; } &&
2297
         { ac_try='test -s conftest.$ac_objext'
2298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299
  (eval $ac_try) 2>&5
2300
  ac_status=$?
2301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302
  (exit $ac_status); }; }; then
2303
  ac_cv_prog_cc_g=yes
2304
else
2305
  echo "$as_me: failed program was:" >&5
2306
sed 's/^/| /' conftest.$ac_ext >&5
2307
 
2308
ac_cv_prog_cc_g=no
2309
fi
2310
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311
fi
2312
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314
if test "$ac_test_CFLAGS" = set; then
2315
  CFLAGS=$ac_save_CFLAGS
2316
elif test $ac_cv_prog_cc_g = yes; then
2317
  if test "$GCC" = yes; then
2318
    CFLAGS="-g -O2"
2319
  else
2320
    CFLAGS="-g"
2321
  fi
2322
else
2323
  if test "$GCC" = yes; then
2324
    CFLAGS="-O2"
2325
  else
2326
    CFLAGS=
2327
  fi
2328
fi
2329
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332
  echo $ECHO_N "(cached) $ECHO_C" >&6
2333
else
2334
  ac_cv_prog_cc_stdc=no
2335
ac_save_CC=$CC
2336
cat >conftest.$ac_ext <<_ACEOF
2337
/* confdefs.h.  */
2338
_ACEOF
2339
cat confdefs.h >>conftest.$ac_ext
2340
cat >>conftest.$ac_ext <<_ACEOF
2341
/* end confdefs.h.  */
2342
#include 
2343
#include 
2344
#include 
2345
#include 
2346
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2347
struct buf { int x; };
2348
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349
static char *e (p, i)
2350
     char **p;
2351
     int i;
2352
{
2353
  return p[i];
2354
}
2355
static char *f (char * (*g) (char **, int), char **p, ...)
2356
{
2357
  char *s;
2358
  va_list v;
2359
  va_start (v,p);
2360
  s = g (p, va_arg (v,int));
2361
  va_end (v);
2362
  return s;
2363
}
2364
 
2365
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2366
   function prototypes and stuff, but not '\xHH' hex character constants.
2367
   These don't provoke an error unfortunately, instead are silently treated
2368
   as 'x'.  The following induces an error, until -std1 is added to get
2369
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2370
   array size at least.  It's necessary to write '\x00'==0 to get something
2371
   that's true only with -std1.  */
2372
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373
 
2374
int test (int i, double x);
2375
struct s1 {int (*f) (int a);};
2376
struct s2 {int (*f) (double a);};
2377
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378
int argc;
2379
char **argv;
2380
int
2381
main ()
2382
{
2383
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2384
  ;
2385
  return 0;
2386
}
2387
_ACEOF
2388
# Don't try gcc -ansi; that turns off useful extensions and
2389
# breaks some systems' header files.
2390
# AIX                   -qlanglvl=ansi
2391
# Ultrix and OSF/1      -std1
2392
# HP-UX 10.20 and later -Ae
2393
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2394
# SVR4                  -Xc -D__EXTENSIONS__
2395
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396
do
2397
  CC="$ac_save_CC $ac_arg"
2398
  rm -f conftest.$ac_objext
2399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400
  (eval $ac_compile) 2>conftest.er1
2401
  ac_status=$?
2402
  grep -v '^ *+' conftest.er1 >conftest.err
2403
  rm -f conftest.er1
2404
  cat conftest.err >&5
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
  (exit $ac_status); } &&
2407
         { ac_try='test -z "$ac_c_werror_flag"
2408
                         || test ! -s conftest.err'
2409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410
  (eval $ac_try) 2>&5
2411
  ac_status=$?
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
  (exit $ac_status); }; } &&
2414
         { ac_try='test -s conftest.$ac_objext'
2415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416
  (eval $ac_try) 2>&5
2417
  ac_status=$?
2418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
  (exit $ac_status); }; }; then
2420
  ac_cv_prog_cc_stdc=$ac_arg
2421
break
2422
else
2423
  echo "$as_me: failed program was:" >&5
2424
sed 's/^/| /' conftest.$ac_ext >&5
2425
 
2426
fi
2427
rm -f conftest.err conftest.$ac_objext
2428
done
2429
rm -f conftest.$ac_ext conftest.$ac_objext
2430
CC=$ac_save_CC
2431
 
2432
fi
2433
 
2434
case "x$ac_cv_prog_cc_stdc" in
2435
  x|xno)
2436
    echo "$as_me:$LINENO: result: none needed" >&5
2437
echo "${ECHO_T}none needed" >&6 ;;
2438
  *)
2439
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2442
esac
2443
 
2444
# Some people use a C++ compiler to compile C.  Since we use `exit',
2445
# in C++ we need to declare it.  In case someone uses the same compiler
2446
# for both compiling C and C++ we need to have the C++ compiler decide
2447
# the declaration of exit, since it's the most demanding environment.
2448
cat >conftest.$ac_ext <<_ACEOF
2449
#ifndef __cplusplus
2450
  choke me
2451
#endif
2452
_ACEOF
2453
rm -f conftest.$ac_objext
2454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455
  (eval $ac_compile) 2>conftest.er1
2456
  ac_status=$?
2457
  grep -v '^ *+' conftest.er1 >conftest.err
2458
  rm -f conftest.er1
2459
  cat conftest.err >&5
2460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461
  (exit $ac_status); } &&
2462
         { ac_try='test -z "$ac_c_werror_flag"
2463
                         || test ! -s conftest.err'
2464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; } &&
2469
         { ac_try='test -s conftest.$ac_objext'
2470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471
  (eval $ac_try) 2>&5
2472
  ac_status=$?
2473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474
  (exit $ac_status); }; }; then
2475
  for ac_declaration in \
2476
   '' \
2477
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2478
   'extern "C" void std::exit (int); using std::exit;' \
2479
   'extern "C" void exit (int) throw ();' \
2480
   'extern "C" void exit (int);' \
2481
   'void exit (int);'
2482
do
2483
  cat >conftest.$ac_ext <<_ACEOF
2484
/* confdefs.h.  */
2485
_ACEOF
2486
cat confdefs.h >>conftest.$ac_ext
2487
cat >>conftest.$ac_ext <<_ACEOF
2488
/* end confdefs.h.  */
2489
$ac_declaration
2490
#include 
2491
int
2492
main ()
2493
{
2494
exit (42);
2495
  ;
2496
  return 0;
2497
}
2498
_ACEOF
2499
rm -f conftest.$ac_objext
2500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501
  (eval $ac_compile) 2>conftest.er1
2502
  ac_status=$?
2503
  grep -v '^ *+' conftest.er1 >conftest.err
2504
  rm -f conftest.er1
2505
  cat conftest.err >&5
2506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
  (exit $ac_status); } &&
2508
         { ac_try='test -z "$ac_c_werror_flag"
2509
                         || test ! -s conftest.err'
2510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511
  (eval $ac_try) 2>&5
2512
  ac_status=$?
2513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
  (exit $ac_status); }; } &&
2515
         { ac_try='test -s conftest.$ac_objext'
2516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517
  (eval $ac_try) 2>&5
2518
  ac_status=$?
2519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520
  (exit $ac_status); }; }; then
2521
  :
2522
else
2523
  echo "$as_me: failed program was:" >&5
2524
sed 's/^/| /' conftest.$ac_ext >&5
2525
 
2526
continue
2527
fi
2528
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529
  cat >conftest.$ac_ext <<_ACEOF
2530
/* confdefs.h.  */
2531
_ACEOF
2532
cat confdefs.h >>conftest.$ac_ext
2533
cat >>conftest.$ac_ext <<_ACEOF
2534
/* end confdefs.h.  */
2535
$ac_declaration
2536
int
2537
main ()
2538
{
2539
exit (42);
2540
  ;
2541
  return 0;
2542
}
2543
_ACEOF
2544
rm -f conftest.$ac_objext
2545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546
  (eval $ac_compile) 2>conftest.er1
2547
  ac_status=$?
2548
  grep -v '^ *+' conftest.er1 >conftest.err
2549
  rm -f conftest.er1
2550
  cat conftest.err >&5
2551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552
  (exit $ac_status); } &&
2553
         { ac_try='test -z "$ac_c_werror_flag"
2554
                         || test ! -s conftest.err'
2555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
  (eval $ac_try) 2>&5
2557
  ac_status=$?
2558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559
  (exit $ac_status); }; } &&
2560
         { ac_try='test -s conftest.$ac_objext'
2561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562
  (eval $ac_try) 2>&5
2563
  ac_status=$?
2564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565
  (exit $ac_status); }; }; then
2566
  break
2567
else
2568
  echo "$as_me: failed program was:" >&5
2569
sed 's/^/| /' conftest.$ac_ext >&5
2570
 
2571
fi
2572
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573
done
2574
rm -f conftest*
2575
if test -n "$ac_declaration"; then
2576
  echo '#ifdef __cplusplus' >>confdefs.h
2577
  echo $ac_declaration      >>confdefs.h
2578
  echo '#endif'             >>confdefs.h
2579
fi
2580
 
2581
else
2582
  echo "$as_me: failed program was:" >&5
2583
sed 's/^/| /' conftest.$ac_ext >&5
2584
 
2585
fi
2586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587
ac_ext=c
2588
ac_cpp='$CPP $CPPFLAGS'
2589
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
 
2593
ac_ext=cc
2594
ac_cpp='$CXXCPP $CPPFLAGS'
2595
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598
if test -n "$ac_tool_prefix"; then
2599
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2600
  do
2601
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603
echo "$as_me:$LINENO: checking for $ac_word" >&5
2604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605
if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606
  echo $ECHO_N "(cached) $ECHO_C" >&6
2607
else
2608
  if test -n "$CXX"; then
2609
  glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610
else
2611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612
for as_dir in $PATH
2613
do
2614
  IFS=$as_save_IFS
2615
  test -z "$as_dir" && as_dir=.
2616
  for ac_exec_ext in '' $ac_executable_extensions; do
2617
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618
    glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620
    break 2
2621
  fi
2622
done
2623
done
2624
 
2625
fi
2626
fi
2627
CXX=$glibcxx_cv_prog_CXX
2628
if test -n "$CXX"; then
2629
  echo "$as_me:$LINENO: result: $CXX" >&5
2630
echo "${ECHO_T}$CXX" >&6
2631
else
2632
  echo "$as_me:$LINENO: result: no" >&5
2633
echo "${ECHO_T}no" >&6
2634
fi
2635
 
2636
    test -n "$CXX" && break
2637
  done
2638
fi
2639
if test -z "$CXX"; then
2640
  ac_ct_CXX=$CXX
2641
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2642
do
2643
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2644
set dummy $ac_prog; ac_word=$2
2645
echo "$as_me:$LINENO: checking for $ac_word" >&5
2646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648
  echo $ECHO_N "(cached) $ECHO_C" >&6
2649
else
2650
  if test -n "$ac_ct_CXX"; then
2651
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652
else
2653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654
for as_dir in $PATH
2655
do
2656
  IFS=$as_save_IFS
2657
  test -z "$as_dir" && as_dir=.
2658
  for ac_exec_ext in '' $ac_executable_extensions; do
2659
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2661
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662
    break 2
2663
  fi
2664
done
2665
done
2666
 
2667
fi
2668
fi
2669
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670
if test -n "$ac_ct_CXX"; then
2671
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672
echo "${ECHO_T}$ac_ct_CXX" >&6
2673
else
2674
  echo "$as_me:$LINENO: result: no" >&5
2675
echo "${ECHO_T}no" >&6
2676
fi
2677
 
2678
  test -n "$ac_ct_CXX" && break
2679
done
2680
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2681
 
2682
  CXX=$ac_ct_CXX
2683
fi
2684
 
2685
 
2686
# Provide some information about the compiler.
2687
echo "$as_me:$LINENO:" \
2688
     "checking for C++ compiler version" >&5
2689
ac_compiler=`set X $ac_compile; echo $2`
2690
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2691
  (eval $ac_compiler --version &5) 2>&5
2692
  ac_status=$?
2693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694
  (exit $ac_status); }
2695
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2696
  (eval $ac_compiler -v &5) 2>&5
2697
  ac_status=$?
2698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699
  (exit $ac_status); }
2700
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2701
  (eval $ac_compiler -V &5) 2>&5
2702
  ac_status=$?
2703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
  (exit $ac_status); }
2705
 
2706
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709
  echo $ECHO_N "(cached) $ECHO_C" >&6
2710
else
2711
  cat >conftest.$ac_ext <<_ACEOF
2712
/* confdefs.h.  */
2713
_ACEOF
2714
cat confdefs.h >>conftest.$ac_ext
2715
cat >>conftest.$ac_ext <<_ACEOF
2716
/* end confdefs.h.  */
2717
 
2718
int
2719
main ()
2720
{
2721
#ifndef __GNUC__
2722
       choke me
2723
#endif
2724
 
2725
  ;
2726
  return 0;
2727
}
2728
_ACEOF
2729
rm -f conftest.$ac_objext
2730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731
  (eval $ac_compile) 2>conftest.er1
2732
  ac_status=$?
2733
  grep -v '^ *+' conftest.er1 >conftest.err
2734
  rm -f conftest.er1
2735
  cat conftest.err >&5
2736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
  (exit $ac_status); } &&
2738
         { ac_try='test -z "$ac_cxx_werror_flag"
2739
                         || test ! -s conftest.err'
2740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741
  (eval $ac_try) 2>&5
2742
  ac_status=$?
2743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
  (exit $ac_status); }; } &&
2745
         { ac_try='test -s conftest.$ac_objext'
2746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747
  (eval $ac_try) 2>&5
2748
  ac_status=$?
2749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
  (exit $ac_status); }; }; then
2751
  ac_compiler_gnu=yes
2752
else
2753
  echo "$as_me: failed program was:" >&5
2754
sed 's/^/| /' conftest.$ac_ext >&5
2755
 
2756
ac_compiler_gnu=no
2757
fi
2758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760
 
2761
fi
2762
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764
GXX=`test $ac_compiler_gnu = yes && echo yes`
2765
ac_test_CXXFLAGS=${CXXFLAGS+set}
2766
ac_save_CXXFLAGS=$CXXFLAGS
2767
CXXFLAGS="-g"
2768
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770
if test "${ac_cv_prog_cxx_g+set}" = set; then
2771
  echo $ECHO_N "(cached) $ECHO_C" >&6
2772
else
2773
  cat >conftest.$ac_ext <<_ACEOF
2774
/* confdefs.h.  */
2775
_ACEOF
2776
cat confdefs.h >>conftest.$ac_ext
2777
cat >>conftest.$ac_ext <<_ACEOF
2778
/* end confdefs.h.  */
2779
 
2780
int
2781
main ()
2782
{
2783
 
2784
  ;
2785
  return 0;
2786
}
2787
_ACEOF
2788
rm -f conftest.$ac_objext
2789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790
  (eval $ac_compile) 2>conftest.er1
2791
  ac_status=$?
2792
  grep -v '^ *+' conftest.er1 >conftest.err
2793
  rm -f conftest.er1
2794
  cat conftest.err >&5
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
  (exit $ac_status); } &&
2797
         { ac_try='test -z "$ac_cxx_werror_flag"
2798
                         || test ! -s conftest.err'
2799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
  (eval $ac_try) 2>&5
2801
  ac_status=$?
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
  (exit $ac_status); }; } &&
2804
         { ac_try='test -s conftest.$ac_objext'
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
  (eval $ac_try) 2>&5
2807
  ac_status=$?
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); }; }; then
2810
  ac_cv_prog_cxx_g=yes
2811
else
2812
  echo "$as_me: failed program was:" >&5
2813
sed 's/^/| /' conftest.$ac_ext >&5
2814
 
2815
ac_cv_prog_cxx_g=no
2816
fi
2817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818
fi
2819
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821
if test "$ac_test_CXXFLAGS" = set; then
2822
  CXXFLAGS=$ac_save_CXXFLAGS
2823
elif test $ac_cv_prog_cxx_g = yes; then
2824
  if test "$GXX" = yes; then
2825
    CXXFLAGS="-g -O2"
2826
  else
2827
    CXXFLAGS="-g"
2828
  fi
2829
else
2830
  if test "$GXX" = yes; then
2831
    CXXFLAGS="-O2"
2832
  else
2833
    CXXFLAGS=
2834
  fi
2835
fi
2836
for ac_declaration in \
2837
   '' \
2838
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2839
   'extern "C" void std::exit (int); using std::exit;' \
2840
   'extern "C" void exit (int) throw ();' \
2841
   'extern "C" void exit (int);' \
2842
   'void exit (int);'
2843
do
2844
  cat >conftest.$ac_ext <<_ACEOF
2845
/* confdefs.h.  */
2846
_ACEOF
2847
cat confdefs.h >>conftest.$ac_ext
2848
cat >>conftest.$ac_ext <<_ACEOF
2849
/* end confdefs.h.  */
2850
$ac_declaration
2851
#include 
2852
int
2853
main ()
2854
{
2855
exit (42);
2856
  ;
2857
  return 0;
2858
}
2859
_ACEOF
2860
rm -f conftest.$ac_objext
2861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862
  (eval $ac_compile) 2>conftest.er1
2863
  ac_status=$?
2864
  grep -v '^ *+' conftest.er1 >conftest.err
2865
  rm -f conftest.er1
2866
  cat conftest.err >&5
2867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868
  (exit $ac_status); } &&
2869
         { ac_try='test -z "$ac_cxx_werror_flag"
2870
                         || test ! -s conftest.err'
2871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872
  (eval $ac_try) 2>&5
2873
  ac_status=$?
2874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875
  (exit $ac_status); }; } &&
2876
         { ac_try='test -s conftest.$ac_objext'
2877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878
  (eval $ac_try) 2>&5
2879
  ac_status=$?
2880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
  (exit $ac_status); }; }; then
2882
  :
2883
else
2884
  echo "$as_me: failed program was:" >&5
2885
sed 's/^/| /' conftest.$ac_ext >&5
2886
 
2887
continue
2888
fi
2889
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890
  cat >conftest.$ac_ext <<_ACEOF
2891
/* confdefs.h.  */
2892
_ACEOF
2893
cat confdefs.h >>conftest.$ac_ext
2894
cat >>conftest.$ac_ext <<_ACEOF
2895
/* end confdefs.h.  */
2896
$ac_declaration
2897
int
2898
main ()
2899
{
2900
exit (42);
2901
  ;
2902
  return 0;
2903
}
2904
_ACEOF
2905
rm -f conftest.$ac_objext
2906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907
  (eval $ac_compile) 2>conftest.er1
2908
  ac_status=$?
2909
  grep -v '^ *+' conftest.er1 >conftest.err
2910
  rm -f conftest.er1
2911
  cat conftest.err >&5
2912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
  (exit $ac_status); } &&
2914
         { ac_try='test -z "$ac_cxx_werror_flag"
2915
                         || test ! -s conftest.err'
2916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917
  (eval $ac_try) 2>&5
2918
  ac_status=$?
2919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
  (exit $ac_status); }; } &&
2921
         { ac_try='test -s conftest.$ac_objext'
2922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923
  (eval $ac_try) 2>&5
2924
  ac_status=$?
2925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
  (exit $ac_status); }; }; then
2927
  break
2928
else
2929
  echo "$as_me: failed program was:" >&5
2930
sed 's/^/| /' conftest.$ac_ext >&5
2931
 
2932
fi
2933
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934
done
2935
rm -f conftest*
2936
if test -n "$ac_declaration"; then
2937
  echo '#ifdef __cplusplus' >>confdefs.h
2938
  echo $ac_declaration      >>confdefs.h
2939
  echo '#endif'             >>confdefs.h
2940
fi
2941
 
2942
ac_ext=c
2943
ac_cpp='$CPP $CPPFLAGS'
2944
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
 
2948
CXXFLAGS="$save_CXXFLAGS"
2949
 
2950
 
2951
 
2952
 
2953
 
2954
am__api_version="1.9"
2955
# Find a good install program.  We prefer a C program (faster),
2956
# so one script is as good as another.  But avoid the broken or
2957
# incompatible versions:
2958
# SysV /etc/install, /usr/sbin/install
2959
# SunOS /usr/etc/install
2960
# IRIX /sbin/install
2961
# AIX /bin/install
2962
# AmigaOS /C/install, which installs bootblocks on floppy discs
2963
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966
# OS/2's system install, which has a completely different semantic
2967
# ./install, which can be erroneously created by make from ./install.sh.
2968
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970
if test -z "$INSTALL"; then
2971
if test "${ac_cv_path_install+set}" = set; then
2972
  echo $ECHO_N "(cached) $ECHO_C" >&6
2973
else
2974
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975
for as_dir in $PATH
2976
do
2977
  IFS=$as_save_IFS
2978
  test -z "$as_dir" && as_dir=.
2979
  # Account for people who put trailing slashes in PATH elements.
2980
case $as_dir/ in
2981
  ./ | .// | /cC/* | \
2982
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984
  /usr/ucb/* ) ;;
2985
  *)
2986
    # OSF1 and SCO ODT 3.0 have their own names for install.
2987
    # Don't use installbsd from OSF since it installs stuff as root
2988
    # by default.
2989
    for ac_prog in ginstall scoinst install; do
2990
      for ac_exec_ext in '' $ac_executable_extensions; do
2991
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992
          if test $ac_prog = install &&
2993
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994
            # AIX install.  It has an incompatible calling convention.
2995
            :
2996
          elif test $ac_prog = install &&
2997
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998
            # program-specific install script used by HP pwplus--don't use.
2999
            :
3000
          else
3001
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002
            break 3
3003
          fi
3004
        fi
3005
      done
3006
    done
3007
    ;;
3008
esac
3009
done
3010
 
3011
 
3012
fi
3013
  if test "${ac_cv_path_install+set}" = set; then
3014
    INSTALL=$ac_cv_path_install
3015
  else
3016
    # As a last resort, use the slow shell script.  We don't cache a
3017
    # path for INSTALL within a source directory, because that will
3018
    # break other packages using the cache if that directory is
3019
    # removed, or if the path is relative.
3020
    INSTALL=$ac_install_sh
3021
  fi
3022
fi
3023
echo "$as_me:$LINENO: result: $INSTALL" >&5
3024
echo "${ECHO_T}$INSTALL" >&6
3025
 
3026
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027
# It thinks the first close brace ends the variable substitution.
3028
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
 
3030
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
 
3032
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
 
3034
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036
# Just in case
3037
sleep 1
3038
echo timestamp > conftest.file
3039
# Do `set' in a subshell so we don't clobber the current shell's
3040
# arguments.  Must try -L first in case configure is actually a
3041
# symlink; some systems play weird games with the mod time of symlinks
3042
# (eg FreeBSD returns the mod time of the symlink's containing
3043
# directory).
3044
if (
3045
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046
   if test "$*" = "X"; then
3047
      # -L didn't work.
3048
      set X `ls -t $srcdir/configure conftest.file`
3049
   fi
3050
   rm -f conftest.file
3051
   if test "$*" != "X $srcdir/configure conftest.file" \
3052
      && test "$*" != "X conftest.file $srcdir/configure"; then
3053
 
3054
      # If neither matched, then we have a broken ls.  This can happen
3055
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3056
      # broken ls alias from the environment.  This has actually
3057
      # happened.  Such a system could not be considered "sane".
3058
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3059
alias in your environment" >&5
3060
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3061
alias in your environment" >&2;}
3062
   { (exit 1); exit 1; }; }
3063
   fi
3064
 
3065
   test "$2" = conftest.file
3066
   )
3067
then
3068
   # Ok.
3069
   :
3070
else
3071
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072
Check your system clock" >&5
3073
echo "$as_me: error: newly created file is older than distributed files!
3074
Check your system clock" >&2;}
3075
   { (exit 1); exit 1; }; }
3076
fi
3077
echo "$as_me:$LINENO: result: yes" >&5
3078
echo "${ECHO_T}yes" >&6
3079
test "$program_prefix" != NONE &&
3080
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081
# Use a double $ so make ignores it.
3082
test "$program_suffix" != NONE &&
3083
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084
# Double any \ or $.  echo might interpret backslashes.
3085
# By default was `s,x,x', remove it if useless.
3086
cat <<\_ACEOF >conftest.sed
3087
s/[\\$]/&&/g;s/;s,x,x,$//
3088
_ACEOF
3089
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090
rm conftest.sed
3091
 
3092
# expand $ac_aux_dir to an absolute path
3093
am_aux_dir=`cd $ac_aux_dir && pwd`
3094
 
3095
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096
# Use eval to expand $SHELL
3097
if eval "$MISSING --run true"; then
3098
  am_missing_run="$MISSING --run "
3099
else
3100
  am_missing_run=
3101
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103
fi
3104
 
3105
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106
  # We used to keeping the `.' as first argument, in order to
3107
  # allow $(mkdir_p) to be used without argument.  As in
3108
  #   $(mkdir_p) $(somedir)
3109
  # where $(somedir) is conditionally defined.  However this is wrong
3110
  # for two reasons:
3111
  #  1. if the package is installed by a user who cannot write `.'
3112
  #     make install will fail,
3113
  #  2. the above comment should most certainly read
3114
  #     $(mkdir_p) $(DESTDIR)$(somedir)
3115
  #     so it does not work when $(somedir) is undefined and
3116
  #     $(DESTDIR) is not.
3117
  #  To support the latter case, we have to write
3118
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119
  #  so the `.' trick is pointless.
3120
  mkdir_p='mkdir -p --'
3121
else
3122
  # On NextStep and OpenStep, the `mkdir' command does not
3123
  # recognize any option.  It will interpret all options as
3124
  # directories to create, and then abort because `.' already
3125
  # exists.
3126
  for d in ./-p ./--version;
3127
  do
3128
    test -d $d && rmdir $d
3129
  done
3130
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131
  if test -f "$ac_aux_dir/mkinstalldirs"; then
3132
    mkdir_p='$(mkinstalldirs)'
3133
  else
3134
    mkdir_p='$(install_sh) -d'
3135
  fi
3136
fi
3137
 
3138
for ac_prog in gawk mawk nawk awk
3139
do
3140
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141
set dummy $ac_prog; ac_word=$2
3142
echo "$as_me:$LINENO: checking for $ac_word" >&5
3143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144
if test "${ac_cv_prog_AWK+set}" = set; then
3145
  echo $ECHO_N "(cached) $ECHO_C" >&6
3146
else
3147
  if test -n "$AWK"; then
3148
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149
else
3150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151
for as_dir in $PATH
3152
do
3153
  IFS=$as_save_IFS
3154
  test -z "$as_dir" && as_dir=.
3155
  for ac_exec_ext in '' $ac_executable_extensions; do
3156
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157
    ac_cv_prog_AWK="$ac_prog"
3158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159
    break 2
3160
  fi
3161
done
3162
done
3163
 
3164
fi
3165
fi
3166
AWK=$ac_cv_prog_AWK
3167
if test -n "$AWK"; then
3168
  echo "$as_me:$LINENO: result: $AWK" >&5
3169
echo "${ECHO_T}$AWK" >&6
3170
else
3171
  echo "$as_me:$LINENO: result: no" >&5
3172
echo "${ECHO_T}no" >&6
3173
fi
3174
 
3175
  test -n "$AWK" && break
3176
done
3177
 
3178
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182
  echo $ECHO_N "(cached) $ECHO_C" >&6
3183
else
3184
  cat >conftest.make <<\_ACEOF
3185
all:
3186
        @echo 'ac_maketemp="$(MAKE)"'
3187
_ACEOF
3188
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190
if test -n "$ac_maketemp"; then
3191
  eval ac_cv_prog_make_${ac_make}_set=yes
3192
else
3193
  eval ac_cv_prog_make_${ac_make}_set=no
3194
fi
3195
rm -f conftest.make
3196
fi
3197
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198
  echo "$as_me:$LINENO: result: yes" >&5
3199
echo "${ECHO_T}yes" >&6
3200
  SET_MAKE=
3201
else
3202
  echo "$as_me:$LINENO: result: no" >&5
3203
echo "${ECHO_T}no" >&6
3204
  SET_MAKE="MAKE=${MAKE-make}"
3205
fi
3206
 
3207
rm -rf .tst 2>/dev/null
3208
mkdir .tst 2>/dev/null
3209
if test -d .tst; then
3210
  am__leading_dot=.
3211
else
3212
  am__leading_dot=_
3213
fi
3214
rmdir .tst 2>/dev/null
3215
 
3216
DEPDIR="${am__leading_dot}deps"
3217
 
3218
          ac_config_commands="$ac_config_commands depfiles"
3219
 
3220
 
3221
am_make=${MAKE-make}
3222
cat > confinc << 'END'
3223
am__doit:
3224
        @echo done
3225
.PHONY: am__doit
3226
END
3227
# If we don't find an include directive, just comment out the code.
3228
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230
am__include="#"
3231
am__quote=
3232
_am_result=none
3233
# First try GNU make style include.
3234
echo "include confinc" > confmf
3235
# We grep out `Entering directory' and `Leaving directory'
3236
# messages which can occur if `w' ends up in MAKEFLAGS.
3237
# In particular we don't look at `^make:' because GNU make might
3238
# be invoked under some other name (usually "gmake"), in which
3239
# case it prints its new name instead of `make'.
3240
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241
   am__include=include
3242
   am__quote=
3243
   _am_result=GNU
3244
fi
3245
# Now try BSD make style include.
3246
if test "$am__include" = "#"; then
3247
   echo '.include "confinc"' > confmf
3248
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249
      am__include=.include
3250
      am__quote="\""
3251
      _am_result=BSD
3252
   fi
3253
fi
3254
 
3255
 
3256
echo "$as_me:$LINENO: result: $_am_result" >&5
3257
echo "${ECHO_T}$_am_result" >&6
3258
rm -f confinc confmf
3259
 
3260
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261
if test "${enable_dependency_tracking+set}" = set; then
3262
  enableval="$enable_dependency_tracking"
3263
 
3264
fi;
3265
if test "x$enable_dependency_tracking" != xno; then
3266
  am_depcomp="$ac_aux_dir/depcomp"
3267
  AMDEPBACKSLASH='\'
3268
fi
3269
 
3270
 
3271
if test "x$enable_dependency_tracking" != xno; then
3272
  AMDEP_TRUE=
3273
  AMDEP_FALSE='#'
3274
else
3275
  AMDEP_TRUE='#'
3276
  AMDEP_FALSE=
3277
fi
3278
 
3279
 
3280
 
3281
# test to see if srcdir already configured
3282
if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283
   test -f $srcdir/config.status; then
3284
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286
   { (exit 1); exit 1; }; }
3287
fi
3288
 
3289
# test whether we have cygpath
3290
if test -z "$CYGPATH_W"; then
3291
  if (cygpath --version) >/dev/null 2>/dev/null; then
3292
    CYGPATH_W='cygpath -w'
3293
  else
3294
    CYGPATH_W=echo
3295
  fi
3296
fi
3297
 
3298
 
3299
# Define the identity of the package.
3300
 PACKAGE='libjava'
3301
 VERSION='version-unused'
3302
 
3303
 
3304
cat >>confdefs.h <<_ACEOF
3305
#define PACKAGE "$PACKAGE"
3306
_ACEOF
3307
 
3308
 
3309
cat >>confdefs.h <<_ACEOF
3310
#define VERSION "$VERSION"
3311
_ACEOF
3312
 
3313
# Some tools Automake needs.
3314
 
3315
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316
 
3317
 
3318
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319
 
3320
 
3321
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322
 
3323
 
3324
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325
 
3326
 
3327
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328
 
3329
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3330
 
3331
# Installed binaries are usually stripped using `strip' when the user
3332
# run `make install-strip'.  However `strip' might not be the right
3333
# tool to use in cross-compilation environments, therefore Automake
3334
# will honor the `STRIP' environment variable to overrule this program.
3335
if test "$cross_compiling" != no; then
3336
  if test -n "$ac_tool_prefix"; then
3337
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338
set dummy ${ac_tool_prefix}strip; ac_word=$2
3339
echo "$as_me:$LINENO: checking for $ac_word" >&5
3340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341
if test "${ac_cv_prog_STRIP+set}" = set; then
3342
  echo $ECHO_N "(cached) $ECHO_C" >&6
3343
else
3344
  if test -n "$STRIP"; then
3345
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346
else
3347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348
for as_dir in $PATH
3349
do
3350
  IFS=$as_save_IFS
3351
  test -z "$as_dir" && as_dir=.
3352
  for ac_exec_ext in '' $ac_executable_extensions; do
3353
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356
    break 2
3357
  fi
3358
done
3359
done
3360
 
3361
fi
3362
fi
3363
STRIP=$ac_cv_prog_STRIP
3364
if test -n "$STRIP"; then
3365
  echo "$as_me:$LINENO: result: $STRIP" >&5
3366
echo "${ECHO_T}$STRIP" >&6
3367
else
3368
  echo "$as_me:$LINENO: result: no" >&5
3369
echo "${ECHO_T}no" >&6
3370
fi
3371
 
3372
fi
3373
if test -z "$ac_cv_prog_STRIP"; then
3374
  ac_ct_STRIP=$STRIP
3375
  # Extract the first word of "strip", so it can be a program name with args.
3376
set dummy strip; ac_word=$2
3377
echo "$as_me:$LINENO: checking for $ac_word" >&5
3378
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380
  echo $ECHO_N "(cached) $ECHO_C" >&6
3381
else
3382
  if test -n "$ac_ct_STRIP"; then
3383
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384
else
3385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386
for as_dir in $PATH
3387
do
3388
  IFS=$as_save_IFS
3389
  test -z "$as_dir" && as_dir=.
3390
  for ac_exec_ext in '' $ac_executable_extensions; do
3391
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392
    ac_cv_prog_ac_ct_STRIP="strip"
3393
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394
    break 2
3395
  fi
3396
done
3397
done
3398
 
3399
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400
fi
3401
fi
3402
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403
if test -n "$ac_ct_STRIP"; then
3404
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405
echo "${ECHO_T}$ac_ct_STRIP" >&6
3406
else
3407
  echo "$as_me:$LINENO: result: no" >&5
3408
echo "${ECHO_T}no" >&6
3409
fi
3410
 
3411
  STRIP=$ac_ct_STRIP
3412
else
3413
  STRIP="$ac_cv_prog_STRIP"
3414
fi
3415
 
3416
fi
3417
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3418
 
3419
# We need awk for the "check" target.  The system "awk" is bad on
3420
# some platforms.
3421
# Always define AMTAR for backward compatibility.
3422
 
3423
AMTAR=${AMTAR-"${am_missing_run}tar"}
3424
 
3425
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3426
 
3427
 
3428
 
3429
 
3430
depcc="$CC"   am_compiler_list=
3431
 
3432
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435
  echo $ECHO_N "(cached) $ECHO_C" >&6
3436
else
3437
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438
  # We make a subdir and do the tests there.  Otherwise we can end up
3439
  # making bogus files that we don't know about and never remove.  For
3440
  # instance it was reported that on HP-UX the gcc test will end up
3441
  # making a dummy file named `D' -- because `-MD' means `put the output
3442
  # in D'.
3443
  mkdir conftest.dir
3444
  # Copy depcomp to subdir because otherwise we won't find it if we're
3445
  # using a relative directory.
3446
  cp "$am_depcomp" conftest.dir
3447
  cd conftest.dir
3448
  # We will build objects and dependencies in a subdirectory because
3449
  # it helps to detect inapplicable dependency modes.  For instance
3450
  # both Tru64's cc and ICC support -MD to output dependencies as a
3451
  # side effect of compilation, but ICC will put the dependencies in
3452
  # the current directory while Tru64 will put them in the object
3453
  # directory.
3454
  mkdir sub
3455
 
3456
  am_cv_CC_dependencies_compiler_type=none
3457
  if test "$am_compiler_list" = ""; then
3458
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459
  fi
3460
  for depmode in $am_compiler_list; do
3461
    # Setup a source with many dependencies, because some compilers
3462
    # like to wrap large dependency lists on column 80 (with \), and
3463
    # we should not choose a depcomp mode which is confused by this.
3464
    #
3465
    # We need to recreate these files for each test, as the compiler may
3466
    # overwrite some of them when testing with obscure command lines.
3467
    # This happens at least with the AIX C compiler.
3468
    : > sub/conftest.c
3469
    for i in 1 2 3 4 5 6; do
3470
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472
      # Solaris 8's {/usr,}/bin/sh.
3473
      touch sub/conftst$i.h
3474
    done
3475
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3476
 
3477
    case $depmode in
3478
    nosideeffect)
3479
      # after this tag, mechanisms are not by side-effect, so they'll
3480
      # only be used when explicitly requested
3481
      if test "x$enable_dependency_tracking" = xyes; then
3482
        continue
3483
      else
3484
        break
3485
      fi
3486
      ;;
3487
    none) break ;;
3488
    esac
3489
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490
    # mode.  It turns out that the SunPro C++ compiler does not properly
3491
    # handle `-M -o', and we need to detect this.
3492
    if depmode=$depmode \
3493
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496
         >/dev/null 2>conftest.err &&
3497
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500
      # icc doesn't choke on unknown options, it will just issue warnings
3501
      # or remarks (even with -Werror).  So we grep stderr for any message
3502
      # that says an option was ignored or not supported.
3503
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3504
      #   icc: Command line warning: ignoring option '-M'; no argument required
3505
      # The diagnosis changed in icc 8.0:
3506
      #   icc: Command line remark: option '-MP' not supported
3507
      if (grep 'ignoring option' conftest.err ||
3508
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509
        am_cv_CC_dependencies_compiler_type=$depmode
3510
        break
3511
      fi
3512
    fi
3513
  done
3514
 
3515
  cd ..
3516
  rm -rf conftest.dir
3517
else
3518
  am_cv_CC_dependencies_compiler_type=none
3519
fi
3520
 
3521
fi
3522
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3525
 
3526
 
3527
 
3528
if
3529
  test "x$enable_dependency_tracking" != xno \
3530
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531
  am__fastdepCC_TRUE=
3532
  am__fastdepCC_FALSE='#'
3533
else
3534
  am__fastdepCC_TRUE='#'
3535
  am__fastdepCC_FALSE=
3536
fi
3537
 
3538
 
3539
depcc="$CXX"  am_compiler_list=
3540
 
3541
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544
  echo $ECHO_N "(cached) $ECHO_C" >&6
3545
else
3546
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547
  # We make a subdir and do the tests there.  Otherwise we can end up
3548
  # making bogus files that we don't know about and never remove.  For
3549
  # instance it was reported that on HP-UX the gcc test will end up
3550
  # making a dummy file named `D' -- because `-MD' means `put the output
3551
  # in D'.
3552
  mkdir conftest.dir
3553
  # Copy depcomp to subdir because otherwise we won't find it if we're
3554
  # using a relative directory.
3555
  cp "$am_depcomp" conftest.dir
3556
  cd conftest.dir
3557
  # We will build objects and dependencies in a subdirectory because
3558
  # it helps to detect inapplicable dependency modes.  For instance
3559
  # both Tru64's cc and ICC support -MD to output dependencies as a
3560
  # side effect of compilation, but ICC will put the dependencies in
3561
  # the current directory while Tru64 will put them in the object
3562
  # directory.
3563
  mkdir sub
3564
 
3565
  am_cv_CXX_dependencies_compiler_type=none
3566
  if test "$am_compiler_list" = ""; then
3567
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568
  fi
3569
  for depmode in $am_compiler_list; do
3570
    # Setup a source with many dependencies, because some compilers
3571
    # like to wrap large dependency lists on column 80 (with \), and
3572
    # we should not choose a depcomp mode which is confused by this.
3573
    #
3574
    # We need to recreate these files for each test, as the compiler may
3575
    # overwrite some of them when testing with obscure command lines.
3576
    # This happens at least with the AIX C compiler.
3577
    : > sub/conftest.c
3578
    for i in 1 2 3 4 5 6; do
3579
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581
      # Solaris 8's {/usr,}/bin/sh.
3582
      touch sub/conftst$i.h
3583
    done
3584
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
 
3586
    case $depmode in
3587
    nosideeffect)
3588
      # after this tag, mechanisms are not by side-effect, so they'll
3589
      # only be used when explicitly requested
3590
      if test "x$enable_dependency_tracking" = xyes; then
3591
        continue
3592
      else
3593
        break
3594
      fi
3595
      ;;
3596
    none) break ;;
3597
    esac
3598
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599
    # mode.  It turns out that the SunPro C++ compiler does not properly
3600
    # handle `-M -o', and we need to detect this.
3601
    if depmode=$depmode \
3602
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605
         >/dev/null 2>conftest.err &&
3606
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609
      # icc doesn't choke on unknown options, it will just issue warnings
3610
      # or remarks (even with -Werror).  So we grep stderr for any message
3611
      # that says an option was ignored or not supported.
3612
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3613
      #   icc: Command line warning: ignoring option '-M'; no argument required
3614
      # The diagnosis changed in icc 8.0:
3615
      #   icc: Command line remark: option '-MP' not supported
3616
      if (grep 'ignoring option' conftest.err ||
3617
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618
        am_cv_CXX_dependencies_compiler_type=$depmode
3619
        break
3620
      fi
3621
    fi
3622
  done
3623
 
3624
  cd ..
3625
  rm -rf conftest.dir
3626
else
3627
  am_cv_CXX_dependencies_compiler_type=none
3628
fi
3629
 
3630
fi
3631
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3634
 
3635
 
3636
 
3637
if
3638
  test "x$enable_dependency_tracking" != xno \
3639
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640
  am__fastdepCXX_TRUE=
3641
  am__fastdepCXX_FALSE='#'
3642
else
3643
  am__fastdepCXX_TRUE='#'
3644
  am__fastdepCXX_FALSE=
3645
fi
3646
 
3647
 
3648
 
3649
 
3650
if test -n "$ac_tool_prefix"; then
3651
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652
set dummy ${ac_tool_prefix}as; ac_word=$2
3653
echo "$as_me:$LINENO: checking for $ac_word" >&5
3654
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655
if test "${ac_cv_prog_AS+set}" = set; then
3656
  echo $ECHO_N "(cached) $ECHO_C" >&6
3657
else
3658
  if test -n "$AS"; then
3659
  ac_cv_prog_AS="$AS" # Let the user override the test.
3660
else
3661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662
for as_dir in $PATH
3663
do
3664
  IFS=$as_save_IFS
3665
  test -z "$as_dir" && as_dir=.
3666
  for ac_exec_ext in '' $ac_executable_extensions; do
3667
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668
    ac_cv_prog_AS="${ac_tool_prefix}as"
3669
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670
    break 2
3671
  fi
3672
done
3673
done
3674
 
3675
fi
3676
fi
3677
AS=$ac_cv_prog_AS
3678
if test -n "$AS"; then
3679
  echo "$as_me:$LINENO: result: $AS" >&5
3680
echo "${ECHO_T}$AS" >&6
3681
else
3682
  echo "$as_me:$LINENO: result: no" >&5
3683
echo "${ECHO_T}no" >&6
3684
fi
3685
 
3686
fi
3687
if test -z "$ac_cv_prog_AS"; then
3688
  ac_ct_AS=$AS
3689
  # Extract the first word of "as", so it can be a program name with args.
3690
set dummy as; ac_word=$2
3691
echo "$as_me:$LINENO: checking for $ac_word" >&5
3692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694
  echo $ECHO_N "(cached) $ECHO_C" >&6
3695
else
3696
  if test -n "$ac_ct_AS"; then
3697
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698
else
3699
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700
for as_dir in $PATH
3701
do
3702
  IFS=$as_save_IFS
3703
  test -z "$as_dir" && as_dir=.
3704
  for ac_exec_ext in '' $ac_executable_extensions; do
3705
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706
    ac_cv_prog_ac_ct_AS="as"
3707
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708
    break 2
3709
  fi
3710
done
3711
done
3712
 
3713
fi
3714
fi
3715
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716
if test -n "$ac_ct_AS"; then
3717
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718
echo "${ECHO_T}$ac_ct_AS" >&6
3719
else
3720
  echo "$as_me:$LINENO: result: no" >&5
3721
echo "${ECHO_T}no" >&6
3722
fi
3723
 
3724
  AS=$ac_ct_AS
3725
else
3726
  AS="$ac_cv_prog_AS"
3727
fi
3728
 
3729
if test -n "$ac_tool_prefix"; then
3730
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3731
set dummy ${ac_tool_prefix}ar; ac_word=$2
3732
echo "$as_me:$LINENO: checking for $ac_word" >&5
3733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734
if test "${ac_cv_prog_AR+set}" = set; then
3735
  echo $ECHO_N "(cached) $ECHO_C" >&6
3736
else
3737
  if test -n "$AR"; then
3738
  ac_cv_prog_AR="$AR" # Let the user override the test.
3739
else
3740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741
for as_dir in $PATH
3742
do
3743
  IFS=$as_save_IFS
3744
  test -z "$as_dir" && as_dir=.
3745
  for ac_exec_ext in '' $ac_executable_extensions; do
3746
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3748
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749
    break 2
3750
  fi
3751
done
3752
done
3753
 
3754
fi
3755
fi
3756
AR=$ac_cv_prog_AR
3757
if test -n "$AR"; then
3758
  echo "$as_me:$LINENO: result: $AR" >&5
3759
echo "${ECHO_T}$AR" >&6
3760
else
3761
  echo "$as_me:$LINENO: result: no" >&5
3762
echo "${ECHO_T}no" >&6
3763
fi
3764
 
3765
fi
3766
if test -z "$ac_cv_prog_AR"; then
3767
  ac_ct_AR=$AR
3768
  # Extract the first word of "ar", so it can be a program name with args.
3769
set dummy ar; ac_word=$2
3770
echo "$as_me:$LINENO: checking for $ac_word" >&5
3771
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3773
  echo $ECHO_N "(cached) $ECHO_C" >&6
3774
else
3775
  if test -n "$ac_ct_AR"; then
3776
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3777
else
3778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779
for as_dir in $PATH
3780
do
3781
  IFS=$as_save_IFS
3782
  test -z "$as_dir" && as_dir=.
3783
  for ac_exec_ext in '' $ac_executable_extensions; do
3784
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785
    ac_cv_prog_ac_ct_AR="ar"
3786
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787
    break 2
3788
  fi
3789
done
3790
done
3791
 
3792
fi
3793
fi
3794
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3795
if test -n "$ac_ct_AR"; then
3796
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3797
echo "${ECHO_T}$ac_ct_AR" >&6
3798
else
3799
  echo "$as_me:$LINENO: result: no" >&5
3800
echo "${ECHO_T}no" >&6
3801
fi
3802
 
3803
  AR=$ac_ct_AR
3804
else
3805
  AR="$ac_cv_prog_AR"
3806
fi
3807
 
3808
if test -n "$ac_tool_prefix"; then
3809
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811
echo "$as_me:$LINENO: checking for $ac_word" >&5
3812
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813
if test "${ac_cv_prog_RANLIB+set}" = set; then
3814
  echo $ECHO_N "(cached) $ECHO_C" >&6
3815
else
3816
  if test -n "$RANLIB"; then
3817
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818
else
3819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820
for as_dir in $PATH
3821
do
3822
  IFS=$as_save_IFS
3823
  test -z "$as_dir" && as_dir=.
3824
  for ac_exec_ext in '' $ac_executable_extensions; do
3825
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828
    break 2
3829
  fi
3830
done
3831
done
3832
 
3833
fi
3834
fi
3835
RANLIB=$ac_cv_prog_RANLIB
3836
if test -n "$RANLIB"; then
3837
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3838
echo "${ECHO_T}$RANLIB" >&6
3839
else
3840
  echo "$as_me:$LINENO: result: no" >&5
3841
echo "${ECHO_T}no" >&6
3842
fi
3843
 
3844
fi
3845
if test -z "$ac_cv_prog_RANLIB"; then
3846
  ac_ct_RANLIB=$RANLIB
3847
  # Extract the first word of "ranlib", so it can be a program name with args.
3848
set dummy ranlib; ac_word=$2
3849
echo "$as_me:$LINENO: checking for $ac_word" >&5
3850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852
  echo $ECHO_N "(cached) $ECHO_C" >&6
3853
else
3854
  if test -n "$ac_ct_RANLIB"; then
3855
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856
else
3857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858
for as_dir in $PATH
3859
do
3860
  IFS=$as_save_IFS
3861
  test -z "$as_dir" && as_dir=.
3862
  for ac_exec_ext in '' $ac_executable_extensions; do
3863
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3865
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866
    break 2
3867
  fi
3868
done
3869
done
3870
 
3871
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872
fi
3873
fi
3874
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875
if test -n "$ac_ct_RANLIB"; then
3876
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878
else
3879
  echo "$as_me:$LINENO: result: no" >&5
3880
echo "${ECHO_T}no" >&6
3881
fi
3882
 
3883
  RANLIB=$ac_ct_RANLIB
3884
else
3885
  RANLIB="$ac_cv_prog_RANLIB"
3886
fi
3887
 
3888
 
3889
# Find a good install program.  We prefer a C program (faster),
3890
# so one script is as good as another.  But avoid the broken or
3891
# incompatible versions:
3892
# SysV /etc/install, /usr/sbin/install
3893
# SunOS /usr/etc/install
3894
# IRIX /sbin/install
3895
# AIX /bin/install
3896
# AmigaOS /C/install, which installs bootblocks on floppy discs
3897
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900
# OS/2's system install, which has a completely different semantic
3901
# ./install, which can be erroneously created by make from ./install.sh.
3902
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904
if test -z "$INSTALL"; then
3905
if test "${ac_cv_path_install+set}" = set; then
3906
  echo $ECHO_N "(cached) $ECHO_C" >&6
3907
else
3908
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909
for as_dir in $PATH
3910
do
3911
  IFS=$as_save_IFS
3912
  test -z "$as_dir" && as_dir=.
3913
  # Account for people who put trailing slashes in PATH elements.
3914
case $as_dir/ in
3915
  ./ | .// | /cC/* | \
3916
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918
  /usr/ucb/* ) ;;
3919
  *)
3920
    # OSF1 and SCO ODT 3.0 have their own names for install.
3921
    # Don't use installbsd from OSF since it installs stuff as root
3922
    # by default.
3923
    for ac_prog in ginstall scoinst install; do
3924
      for ac_exec_ext in '' $ac_executable_extensions; do
3925
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926
          if test $ac_prog = install &&
3927
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928
            # AIX install.  It has an incompatible calling convention.
3929
            :
3930
          elif test $ac_prog = install &&
3931
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932
            # program-specific install script used by HP pwplus--don't use.
3933
            :
3934
          else
3935
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936
            break 3
3937
          fi
3938
        fi
3939
      done
3940
    done
3941
    ;;
3942
esac
3943
done
3944
 
3945
 
3946
fi
3947
  if test "${ac_cv_path_install+set}" = set; then
3948
    INSTALL=$ac_cv_path_install
3949
  else
3950
    # As a last resort, use the slow shell script.  We don't cache a
3951
    # path for INSTALL within a source directory, because that will
3952
    # break other packages using the cache if that directory is
3953
    # removed, or if the path is relative.
3954
    INSTALL=$ac_install_sh
3955
  fi
3956
fi
3957
echo "$as_me:$LINENO: result: $INSTALL" >&5
3958
echo "${ECHO_T}$INSTALL" >&6
3959
 
3960
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961
# It thinks the first close brace ends the variable substitution.
3962
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
 
3964
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
 
3966
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
 
3968
 
3969
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3971
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3972
if test "${enable_maintainer_mode+set}" = set; then
3973
  enableval="$enable_maintainer_mode"
3974
  USE_MAINTAINER_MODE=$enableval
3975
else
3976
  USE_MAINTAINER_MODE=no
3977
fi;
3978
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980
 
3981
 
3982
if test $USE_MAINTAINER_MODE = yes; then
3983
  MAINTAINER_MODE_TRUE=
3984
  MAINTAINER_MODE_FALSE='#'
3985
else
3986
  MAINTAINER_MODE_TRUE='#'
3987
  MAINTAINER_MODE_FALSE=
3988
fi
3989
 
3990
  MAINT=$MAINTAINER_MODE_TRUE
3991
 
3992
 
3993
 
3994
 
3995
 
3996
# configure.host sets the following important variables
3997
#       libgcj_cflags    - host specific C compiler flags
3998
#       libgcj_cxxflags  - host specific C++ compiler flags
3999
#       libgcj_javaflags - host specific Java compiler flags
4000
 
4001
libgcj_cflags=
4002
libgcj_cxxflags=
4003
libgcj_javaflags=
4004
 
4005
. ${srcdir}/configure.host
4006
 
4007
LIBGCJ_CFLAGS="${libgcj_cflags}"
4008
LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4009
LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4010
LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4011
 
4012
 
4013
 
4014
 
4015
 
4016
# Only use libltdl for non-newlib builds.
4017
if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4018
   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4019
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4020
library_names_spec=
4021
libname_spec='lib$name'
4022
soname_spec=
4023
shrext=".so"
4024
postinstall_cmds=
4025
postuninstall_cmds=
4026
finish_cmds=
4027
finish_eval=
4028
shlibpath_var=
4029
shlibpath_overrides_runpath=unknown
4030
version_type=none
4031
dynamic_linker="$host_os ld.so"
4032
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4033
if test "$GCC" = yes; then
4034
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4035
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4036
    # if the path contains ";" then we assume it to be the separator
4037
    # otherwise default to the standard path separator (i.e. ":") - it is
4038
    # assumed that no part of a normal pathname contains ";" but that should
4039
    # okay in the real world where ";" in dirpaths is itself problematic.
4040
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4041
  else
4042
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4043
  fi
4044
else
4045
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4046
fi
4047
need_lib_prefix=unknown
4048
hardcode_into_libs=no
4049
 
4050
# when you set need_version to no, make sure it does not cause -set_version
4051
# flags to be left without arguments
4052
need_version=unknown
4053
 
4054
case $host_os in
4055
aix3*)
4056
  version_type=linux
4057
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4058
  shlibpath_var=LIBPATH
4059
 
4060
  # AIX 3 has no versioning support, so we append a major version to the name.
4061
  soname_spec='${libname}${release}${shared_ext}$major'
4062
  ;;
4063
 
4064
aix4* | aix5*)
4065
  version_type=linux
4066
  need_lib_prefix=no
4067
  need_version=no
4068
  hardcode_into_libs=yes
4069
  if test "$host_cpu" = ia64; then
4070
    # AIX 5 supports IA64
4071
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4072
    shlibpath_var=LD_LIBRARY_PATH
4073
  else
4074
    # With GCC up to 2.95.x, collect2 would create an import file
4075
    # for dependence libraries.  The import file would start with
4076
    # the line `#! .'.  This would cause the generated library to
4077
    # depend on `.', always an invalid library.  This was fixed in
4078
    # development snapshots of GCC prior to 3.0.
4079
    case $host_os in
4080
      aix4 | aix4.[01] | aix4.[01].*)
4081
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4082
           echo ' yes '
4083
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4084
        :
4085
      else
4086
        can_build_shared=no
4087
      fi
4088
      ;;
4089
    esac
4090
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4091
    # soname into executable. Probably we can add versioning support to
4092
    # collect2, so additional links can be useful in future.
4093
    if test "$aix_use_runtimelinking" = yes; then
4094
      # If using run time linking (on AIX 4.2 or later) use lib.so
4095
      # instead of lib.a to let people know that these are not
4096
      # typical AIX shared libraries.
4097
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098
    else
4099
      # We preserve .a as extension for shared libraries through AIX4.2
4100
      # and later when we are not doing run time linking.
4101
      library_names_spec='${libname}${release}.a $libname.a'
4102
      soname_spec='${libname}${release}${shared_ext}$major'
4103
    fi
4104
    shlibpath_var=LIBPATH
4105
  fi
4106
  ;;
4107
 
4108
amigaos*)
4109
  library_names_spec='$libname.ixlibrary $libname.a'
4110
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
4111
  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'
4112
  ;;
4113
 
4114
beos*)
4115
  library_names_spec='${libname}${shared_ext}'
4116
  dynamic_linker="$host_os ld.so"
4117
  shlibpath_var=LIBRARY_PATH
4118
  ;;
4119
 
4120
bsdi4*)
4121
  version_type=linux
4122
  need_version=no
4123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4124
  soname_spec='${libname}${release}${shared_ext}$major'
4125
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4126
  shlibpath_var=LD_LIBRARY_PATH
4127
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4128
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4129
  # the default ld.so.conf also contains /usr/contrib/lib and
4130
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4131
  # libtool to hard-code these into programs
4132
  ;;
4133
 
4134
cygwin* | mingw* | pw32*)
4135
  version_type=windows
4136
  shrext=".dll"
4137
  need_version=no
4138
  need_lib_prefix=no
4139
 
4140
  case $GCC,$host_os in
4141
  yes,cygwin* | yes,mingw* | yes,pw32*)
4142
    library_names_spec='$libname.dll.a'
4143
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
4144
    postinstall_cmds='base_file=`basename \${file}`~
4145
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4146
      dldir=$destdir/`dirname \$dlpath`~
4147
      test -d \$dldir || mkdir -p \$dldir~
4148
      $install_prog $dir/$dlname \$dldir/$dlname'
4149
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4150
      dlpath=$dir/\$dldll~
4151
       $rm \$dlpath'
4152
    shlibpath_overrides_runpath=yes
4153
 
4154
    case $host_os in
4155
    cygwin*)
4156
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4157
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4158
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4159
      ;;
4160
    mingw*)
4161
      # MinGW DLLs use traditional 'lib' prefix
4162
      soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4163
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4164
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4165
        # It is most probably a Windows format PATH printed by
4166
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
4167
        # path with ; separators, and with drive letters. We can handle the
4168
        # drive letters (cygwin fileutils understands them), so leave them,
4169
        # especially as we might pass files found there to a mingw objdump,
4170
        # which wouldn't understand a cygwinified path. Ahh.
4171
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4172
      else
4173
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4174
      fi
4175
      ;;
4176
    pw32*)
4177
      # pw32 DLLs use 'pw' prefix rather than 'lib'
4178
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4179
      ;;
4180
    esac
4181
    ;;
4182
 
4183
  *)
4184
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4185
    ;;
4186
  esac
4187
  dynamic_linker='Win32 ld.exe'
4188
  # FIXME: first we should search . and the directory the executable is in
4189
  shlibpath_var=PATH
4190
  ;;
4191
 
4192
darwin* | rhapsody*)
4193
  dynamic_linker="$host_os dyld"
4194
  version_type=darwin
4195
  need_lib_prefix=no
4196
  need_version=no
4197
  # FIXME: Relying on posixy $() will cause problems for
4198
  #        cross-compilation, but unfortunately the echo tests do not
4199
  #        yet detect zsh echo's removal of \ escapes.
4200
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4201
  soname_spec='${libname}${release}${major}$shared_ext'
4202
  shlibpath_overrides_runpath=yes
4203
  shlibpath_var=DYLD_LIBRARY_PATH
4204
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4205
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4206
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4207
  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"`
4208
  fi
4209
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4210
  ;;
4211
 
4212
dgux*)
4213
  version_type=linux
4214
  need_lib_prefix=no
4215
  need_version=no
4216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4217
  soname_spec='${libname}${release}${shared_ext}$major'
4218
  shlibpath_var=LD_LIBRARY_PATH
4219
  ;;
4220
 
4221
freebsd1*)
4222
  dynamic_linker=no
4223
  ;;
4224
 
4225
freebsd*)
4226
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4227
  version_type=freebsd-$objformat
4228
  case $version_type in
4229
    freebsd-elf*)
4230
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4231
      need_version=no
4232
      need_lib_prefix=no
4233
      ;;
4234
    freebsd-*)
4235
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4236
      need_version=yes
4237
      ;;
4238
  esac
4239
  shlibpath_var=LD_LIBRARY_PATH
4240
  case $host_os in
4241
  freebsd2*)
4242
    shlibpath_overrides_runpath=yes
4243
    ;;
4244
  freebsd3.01* | freebsdelf3.01*)
4245
    shlibpath_overrides_runpath=yes
4246
    hardcode_into_libs=yes
4247
    ;;
4248
  *) # from 3.2 on
4249
    shlibpath_overrides_runpath=no
4250
    hardcode_into_libs=yes
4251
    ;;
4252
  esac
4253
  ;;
4254
 
4255
gnu*)
4256
  version_type=linux
4257
  need_lib_prefix=no
4258
  need_version=no
4259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4260
  soname_spec='${libname}${release}${shared_ext}$major'
4261
  shlibpath_var=LD_LIBRARY_PATH
4262
  hardcode_into_libs=yes
4263
  ;;
4264
 
4265
hpux9* | hpux10* | hpux11*)
4266
  # Give a soname corresponding to the major version so that dld.sl refuses to
4267
  # link against other versions.
4268
  version_type=sunos
4269
  need_lib_prefix=no
4270
  need_version=no
4271
  case "$host_cpu" in
4272
  ia64*)
4273
    shrext='.so'
4274
    hardcode_into_libs=yes
4275
    dynamic_linker="$host_os dld.so"
4276
    shlibpath_var=LD_LIBRARY_PATH
4277
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4278
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4279
    soname_spec='${libname}${release}${shared_ext}$major'
4280
    if test "X$HPUX_IA64_MODE" = X32; then
4281
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4282
    else
4283
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4284
    fi
4285
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4286
    ;;
4287
   hppa*64*)
4288
     shrext='.sl'
4289
     hardcode_into_libs=yes
4290
     dynamic_linker="$host_os dld.sl"
4291
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4292
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4293
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4294
     soname_spec='${libname}${release}${shared_ext}$major'
4295
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4296
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4297
     ;;
4298
   *)
4299
    shrext='.sl'
4300
    dynamic_linker="$host_os dld.sl"
4301
    shlibpath_var=SHLIB_PATH
4302
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4303
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304
    soname_spec='${libname}${release}${shared_ext}$major'
4305
    ;;
4306
  esac
4307
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
4308
  postinstall_cmds='chmod 555 $lib'
4309
  ;;
4310
 
4311
irix5* | irix6* | nonstopux*)
4312
  case $host_os in
4313
    nonstopux*) version_type=nonstopux ;;
4314
    *)
4315
        if test "$lt_cv_prog_gnu_ld" = yes; then
4316
                version_type=linux
4317
        else
4318
                version_type=irix
4319
        fi ;;
4320
  esac
4321
  need_lib_prefix=no
4322
  need_version=no
4323
  soname_spec='${libname}${release}${shared_ext}$major'
4324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4325
  case $host_os in
4326
  irix5* | nonstopux*)
4327
    libsuff= shlibsuff=
4328
    ;;
4329
  *)
4330
    case $LD in # libtool.m4 will add one of these switches to LD
4331
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4332
      libsuff= shlibsuff= libmagic=32-bit;;
4333
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4334
      libsuff=32 shlibsuff=N32 libmagic=N32;;
4335
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4336
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
4337
    *) libsuff= shlibsuff= libmagic=never-match;;
4338
    esac
4339
    ;;
4340
  esac
4341
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4342
  shlibpath_overrides_runpath=no
4343
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4344
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4345
  hardcode_into_libs=yes
4346
  ;;
4347
 
4348
# No shared lib support for Linux oldld, aout, or coff.
4349
linux*oldld* | linux*aout* | linux*coff*)
4350
  dynamic_linker=no
4351
  ;;
4352
 
4353
# This must be Linux ELF.
4354
linux*)
4355
  version_type=linux
4356
  need_lib_prefix=no
4357
  need_version=no
4358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4359
  soname_spec='${libname}${release}${shared_ext}$major'
4360
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4361
  shlibpath_var=LD_LIBRARY_PATH
4362
  shlibpath_overrides_runpath=no
4363
  # This implies no fast_install, which is unacceptable.
4364
  # Some rework will be needed to allow for fast_install
4365
  # before this can be enabled.
4366
  hardcode_into_libs=yes
4367
 
4368
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4369
  # powerpc, because MkLinux only supported shared libraries with the
4370
  # GNU dynamic linker.  Since this was broken with cross compilers,
4371
  # most powerpc-linux boxes support dynamic linking these days and
4372
  # people can always --disable-shared, the test was removed, and we
4373
  # assume the GNU/Linux dynamic linker is in use.
4374
  dynamic_linker='GNU/Linux ld.so'
4375
  ;;
4376
 
4377
netbsd*)
4378
  version_type=sunos
4379
  need_lib_prefix=no
4380
  need_version=no
4381
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4382
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4383
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4384
    dynamic_linker='NetBSD (a.out) ld.so'
4385
  else
4386
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4387
    soname_spec='${libname}${release}${shared_ext}$major'
4388
    dynamic_linker='NetBSD ld.elf_so'
4389
  fi
4390
  shlibpath_var=LD_LIBRARY_PATH
4391
  shlibpath_overrides_runpath=yes
4392
  hardcode_into_libs=yes
4393
  ;;
4394
 
4395
newsos6)
4396
  version_type=linux
4397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398
  shlibpath_var=LD_LIBRARY_PATH
4399
  shlibpath_overrides_runpath=yes
4400
  ;;
4401
 
4402
nto-qnx)
4403
  version_type=linux
4404
  need_lib_prefix=no
4405
  need_version=no
4406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407
  soname_spec='${libname}${release}${shared_ext}$major'
4408
  shlibpath_var=LD_LIBRARY_PATH
4409
  shlibpath_overrides_runpath=yes
4410
  ;;
4411
 
4412
openbsd*)
4413
  version_type=sunos
4414
  need_lib_prefix=no
4415
  need_version=no
4416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4417
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4418
  shlibpath_var=LD_LIBRARY_PATH
4419
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420
    case $host_os in
4421
      openbsd2.[89] | openbsd2.[89].*)
4422
        shlibpath_overrides_runpath=no
4423
        ;;
4424
      *)
4425
        shlibpath_overrides_runpath=yes
4426
        ;;
4427
      esac
4428
  else
4429
    shlibpath_overrides_runpath=yes
4430
  fi
4431
  ;;
4432
 
4433
os2*)
4434
  libname_spec='$name'
4435
  shrext=".dll"
4436
  need_lib_prefix=no
4437
  library_names_spec='$libname${shared_ext} $libname.a'
4438
  dynamic_linker='OS/2 ld.exe'
4439
  shlibpath_var=LIBPATH
4440
  ;;
4441
 
4442
osf3* | osf4* | osf5*)
4443
  version_type=osf
4444
  need_lib_prefix=no
4445
  need_version=no
4446
  soname_spec='${libname}${release}${shared_ext}$major'
4447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4448
  shlibpath_var=LD_LIBRARY_PATH
4449
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4450
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4451
  ;;
4452
 
4453
sco3.2v5*)
4454
  version_type=osf
4455
  soname_spec='${libname}${release}${shared_ext}$major'
4456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4457
  shlibpath_var=LD_LIBRARY_PATH
4458
  ;;
4459
 
4460
solaris*)
4461
  version_type=linux
4462
  need_lib_prefix=no
4463
  need_version=no
4464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465
  soname_spec='${libname}${release}${shared_ext}$major'
4466
  shlibpath_var=LD_LIBRARY_PATH
4467
  shlibpath_overrides_runpath=yes
4468
  hardcode_into_libs=yes
4469
  # ldd complains unless libraries are executable
4470
  postinstall_cmds='chmod +x $lib'
4471
  ;;
4472
 
4473
sunos4*)
4474
  version_type=sunos
4475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4476
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4477
  shlibpath_var=LD_LIBRARY_PATH
4478
  shlibpath_overrides_runpath=yes
4479
  if test "$with_gnu_ld" = yes; then
4480
    need_lib_prefix=no
4481
  fi
4482
  need_version=yes
4483
  ;;
4484
 
4485
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4486
  version_type=linux
4487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4488
  soname_spec='${libname}${release}${shared_ext}$major'
4489
  shlibpath_var=LD_LIBRARY_PATH
4490
  case $host_vendor in
4491
    sni)
4492
      shlibpath_overrides_runpath=no
4493
      need_lib_prefix=no
4494
      export_dynamic_flag_spec='${wl}-Blargedynsym'
4495
      runpath_var=LD_RUN_PATH
4496
      ;;
4497
    siemens)
4498
      need_lib_prefix=no
4499
      ;;
4500
    motorola)
4501
      need_lib_prefix=no
4502
      need_version=no
4503
      shlibpath_overrides_runpath=no
4504
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4505
      ;;
4506
  esac
4507
  ;;
4508
 
4509
sysv4*MP*)
4510
  if test -d /usr/nec ;then
4511
    version_type=linux
4512
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4513
    soname_spec='$libname${shared_ext}.$major'
4514
    shlibpath_var=LD_LIBRARY_PATH
4515
  fi
4516
  ;;
4517
 
4518
uts4*)
4519
  version_type=linux
4520
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4521
  soname_spec='${libname}${release}${shared_ext}$major'
4522
  shlibpath_var=LD_LIBRARY_PATH
4523
  ;;
4524
 
4525
*)
4526
  dynamic_linker=no
4527
  ;;
4528
esac
4529
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4530
echo "${ECHO_T}$dynamic_linker" >&6
4531
test "$dynamic_linker" = no && can_build_shared=no
4532
 
4533
 
4534
echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4535
echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4536
if test "${libltdl_cv_shlibpath_var+set}" = set; then
4537
  echo $ECHO_N "(cached) $ECHO_C" >&6
4538
else
4539
  libltdl_cv_shlibpath_var="$shlibpath_var"
4540
fi
4541
echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4542
echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4543
if test -n "$libltdl_cv_shlibpath_var"; then
4544
 
4545
cat >>confdefs.h <<_ACEOF
4546
#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4547
_ACEOF
4548
 
4549
fi
4550
 
4551
fi
4552
 
4553
                    ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4554
 
4555
 
4556
# See if the user has requested runtime debugging.
4557
LIBGCJDEBUG="disable"
4558
 
4559
# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4560
if test "${enable_libgcj_debug+set}" = set; then
4561
  enableval="$enable_libgcj_debug"
4562
  if test "$enable_libgcj_debug" = yes; then
4563
 
4564
cat >>confdefs.h <<\_ACEOF
4565
#define DEBUG 1
4566
_ACEOF
4567
 
4568
    LIBGCJDEBUG="enable"
4569
  fi
4570
fi;
4571
 
4572
# Determine which AWT peer libraries to build
4573
# Check whether --enable-java-awt or --disable-java-awt was given.
4574
if test "${enable_java_awt+set}" = set; then
4575
  enableval="$enable_java_awt"
4576
 
4577
fi;
4578
 
4579
peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4580
use_xlib_awt=""
4581
use_gtk_awt=""
4582
use_qt_awt=""
4583
# The default toolkit to use is the first one specified.
4584
TOOLKIT=
4585
 
4586
 
4587
for peer in $peerlibs ; do
4588
  case $peer in
4589
    xlib)
4590
      if test "$no_x" = yes; then
4591
        echo "*** xlib peers requested but no X library available" 1>&2
4592
        exit 1
4593
      else
4594
        use_xlib_awt="yes"
4595
        if test -z "$TOOLKIT"; then
4596
           TOOLKIT=gnu.awt.xlib.XToolkit
4597
        fi
4598
      fi
4599
      ;;
4600
    gtk)
4601
      if test "$no_x" = yes; then
4602
         echo "*** gtk peers requested but no X library available" 1>&2
4603
         exit 1
4604
      else
4605
         use_gtk_awt=yes
4606
         if test -z "$TOOLKIT"; then
4607
            TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4608
         fi
4609
      fi
4610
      ;;
4611
    qt)
4612
      if test "$no_x" = yes; then
4613
         # Perhaps we should admit the possibility of embedded Qt.
4614
         echo "*** Qt peers requested but no X library available" 1>&2
4615
         exit 1
4616
      else
4617
         use_qt_awt=yes
4618
         if test -z "$TOOLKIT"; then
4619
            TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4620
         fi
4621
      fi
4622
      ;;
4623
    no)
4624
      use_xlib_awt=
4625
      use_gtk_awt=
4626
      use_qt_awt=
4627
      break
4628
      ;;
4629
    *)
4630
      echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4631
      exit 1
4632
  esac
4633
done
4634
 
4635
 
4636
 
4637
if test "$use_xlib_awt" = yes; then
4638
  XLIB_AWT_TRUE=
4639
  XLIB_AWT_FALSE='#'
4640
else
4641
  XLIB_AWT_TRUE='#'
4642
  XLIB_AWT_FALSE=
4643
fi
4644
 
4645
 
4646
 
4647
if test "$use_gtk_awt" = yes; then
4648
  GTK_AWT_TRUE=
4649
  GTK_AWT_FALSE='#'
4650
else
4651
  GTK_AWT_TRUE='#'
4652
  GTK_AWT_FALSE=
4653
fi
4654
 
4655
 
4656
 
4657
if test "$use_qt_awt" = yes; then
4658
  QT_AWT_TRUE=
4659
  QT_AWT_FALSE='#'
4660
else
4661
  QT_AWT_TRUE='#'
4662
  QT_AWT_FALSE=
4663
fi
4664
 
4665
 
4666
# Create standard.omit based on decisions we just made.
4667
cp $srcdir/standard.omit.in standard.omit
4668
if test "$use_xlib_awt" != yes; then
4669
   echo gnu/awt/xlib >> standard.omit
4670
   echo gnu/gcj/xlib >> standard.omit
4671
fi
4672
if test "$use_gtk_awt" != yes; then
4673
   echo gnu/java/awt/peer/gtk >> standard.omit
4674
fi
4675
if test "$use_qt_awt" != yes; then
4676
   echo gnu/java/awt/peer/qt >> standard.omit
4677
fi
4678
 
4679
if test -z "${with_multisubdir}"; then
4680
   builddotdot=.
4681
else
4682
   builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4683
fi
4684
 
4685
NATIVE=yes
4686
 
4687
# Which gcj do we use?
4688
which_gcj=default
4689
built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4690
if test -n "${with_cross_host}"; then
4691
  # We are being configured with a cross compiler. We can't
4692
  # use ac_exeext, because that is for the target platform.
4693
  NATIVE=no
4694
  cross_host_exeext=
4695
  case "${with_cross_host}" in
4696
     *mingw* | *cygwin*)
4697
         cross_host_exeext=.exe
4698
     ;;
4699
  esac
4700
  if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4701
     if test x"$build_noncanonical" = x"$with_cross_host"; then
4702
        # Ordinary cross (host!=target and host=build)
4703
        which_gcj=built
4704
     else
4705
        # Canadian cross (host!=target and host!=build)
4706
        which_gcj=cross
4707
     fi
4708
  else
4709
     which_gcj=cross
4710
  fi
4711
else
4712
  # We are being configured with a native or crossed-native compiler
4713
  if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4714
     if test x"$build" = x"$host"; then
4715
        # True native build (host=target and host=build)
4716
        which_gcj=built
4717
     else
4718
        # Crossed-native build (host=target and host!=build)
4719
        which_gcj=cross
4720
     fi
4721
  else
4722
     which_gcj=path
4723
  fi
4724
fi
4725
case "${which_gcj}" in
4726
   built)
4727
      GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4728
      GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4729
      ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4730
   ;;
4731
   cross)
4732
      if test "x${with_newlib}" = "xyes"; then
4733
         # FIXME (comment): Why is this needed?
4734
         GCC_UNWIND_INCLUDE=
4735
         GCJ="${target_noncanonical}-gcj"
4736
      else
4737
         GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4738
      fi
4739
      ZIP='$(target_noncanonical)-fastjar'
4740
      GCJH='$(target_noncanonical)-gcjh'
4741
   ;;
4742
   path)
4743
      GCJ="gcj -B`${PWDCMD-pwd}`/"
4744
      ## In this case, gcj is found outside the build tree.  However, zip is
4745
      ## found in the build tree.
4746
      ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4747
      GCJH=gcjh
4748
   ;;
4749
esac
4750
 
4751
 
4752
 
4753
 
4754
# Create it, so that compile/link tests don't fail
4755
test -f libgcj.spec || touch libgcj.spec
4756
 
4757
 
4758
 
4759
# Set up to configure Classpath.
4760
# FIXME: no supported way to pass args in autoconf.
4761
ac_configure_args="$ac_configure_args --disable-load-library"
4762
ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4763
ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4764
dir1=`cd $srcdir && pwd`
4765
dir2=`pwd`
4766
ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4767
ac_configure_args="$ac_configure_args --disable-core-jni"
4768
ac_configure_args="$ac_configure_args --disable-examples"
4769
ac_configure_args="$ac_configure_args --with-glibj=build"
4770
if test "$use_gtk_awt" != yes; then
4771
  ac_configure_args="$ac_configure_args --disable-gtk-peer"
4772
fi
4773
if test "$use_qt_awt" != yes; then
4774
  ac_configure_args="$ac_configure_args --disable-qt-peer"
4775
else
4776
  # We need this as qt is disabled by default in classpath.
4777
  ac_configure_args="$ac_configure_args --enable-qt-peer"
4778
fi
4779
 
4780
# Only use libltdl for non-newlib builds.
4781
if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4782
     case $enable_ltdl_convenience in
4783
  no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4784
echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4785
   { (exit 1); exit 1; }; } ;;
4786
  "") enable_ltdl_convenience=yes
4787
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4788
  esac
4789
  LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4790
  INCLTDL='-I${top_srcdir}/''libltdl'
4791
 
4792
 
4793
   DIRLTDL=libltdl
4794
 
4795
cat >>confdefs.h <<\_ACEOF
4796
#define USE_LTDL 1
4797
_ACEOF
4798
 
4799
   # Sigh.  Libtool's macro doesn't do the right thing.
4800
   INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4801
   # FIXME: this is a hack.
4802
   sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4803
   ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4804
fi
4805
 
4806
 
4807
 
4808
# Check whether --enable-shared or --disable-shared was given.
4809
if test "${enable_shared+set}" = set; then
4810
  enableval="$enable_shared"
4811
  p=${PACKAGE-default}
4812
case $enableval in
4813
yes) enable_shared=yes ;;
4814
no) enable_shared=no ;;
4815
*)
4816
  enable_shared=no
4817
  # Look at the argument we got.  We use all the common list separators.
4818
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4819
  for pkg in $enableval; do
4820
    if test "X$pkg" = "X$p"; then
4821
      enable_shared=yes
4822
    fi
4823
  done
4824
  IFS="$ac_save_ifs"
4825
  ;;
4826
esac
4827
else
4828
  enable_shared=yes
4829
fi;
4830
# Check whether --enable-static or --disable-static was given.
4831
if test "${enable_static+set}" = set; then
4832
  enableval="$enable_static"
4833
  p=${PACKAGE-default}
4834
case $enableval in
4835
yes) enable_static=yes ;;
4836
no) enable_static=no ;;
4837
*)
4838
  enable_static=no
4839
  # Look at the argument we got.  We use all the common list separators.
4840
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4841
  for pkg in $enableval; do
4842
    if test "X$pkg" = "X$p"; then
4843
      enable_static=yes
4844
    fi
4845
  done
4846
  IFS="$ac_save_ifs"
4847
  ;;
4848
esac
4849
else
4850
  enable_static=yes
4851
fi;
4852
# Check whether --enable-fast-install or --disable-fast-install was given.
4853
if test "${enable_fast_install+set}" = set; then
4854
  enableval="$enable_fast_install"
4855
  p=${PACKAGE-default}
4856
case $enableval in
4857
yes) enable_fast_install=yes ;;
4858
no) enable_fast_install=no ;;
4859
*)
4860
  enable_fast_install=no
4861
  # Look at the argument we got.  We use all the common list separators.
4862
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4863
  for pkg in $enableval; do
4864
    if test "X$pkg" = "X$p"; then
4865
      enable_fast_install=yes
4866
    fi
4867
  done
4868
  IFS="$ac_save_ifs"
4869
  ;;
4870
esac
4871
else
4872
  enable_fast_install=yes
4873
fi;
4874
 
4875
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4876
if test "${with_gnu_ld+set}" = set; then
4877
  withval="$with_gnu_ld"
4878
  test "$withval" = no || with_gnu_ld=yes
4879
else
4880
  with_gnu_ld=no
4881
fi;
4882
ac_prog=ld
4883
if test "$GCC" = yes; then
4884
  # Check if gcc -print-prog-name=ld gives a path.
4885
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4886
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4887
  case $host in
4888
  *-*-mingw*)
4889
    # gcc leaves a trailing carriage return which upsets mingw
4890
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4891
  *)
4892
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4893
  esac
4894
  case $ac_prog in
4895
    # Accept absolute paths.
4896
    [\\/]* | [A-Za-z]:[\\/]*)
4897
      re_direlt='/[^/][^/]*/\.\./'
4898
      # Canonicalize the path of ld
4899
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4900
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4901
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4902
      done
4903
      test -z "$LD" && LD="$ac_prog"
4904
      ;;
4905
  "")
4906
    # If it fails, then pretend we aren't using GCC.
4907
    ac_prog=ld
4908
    ;;
4909
  *)
4910
    # If it is relative, then search for the first ld in PATH.
4911
    with_gnu_ld=unknown
4912
    ;;
4913
  esac
4914
elif test "$with_gnu_ld" = yes; then
4915
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4916
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4917
else
4918
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4919
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4920
fi
4921
if test "${lt_cv_path_LD+set}" = set; then
4922
  echo $ECHO_N "(cached) $ECHO_C" >&6
4923
else
4924
  if test -z "$LD"; then
4925
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4926
  for ac_dir in $PATH; do
4927
    test -z "$ac_dir" && ac_dir=.
4928
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929
      lt_cv_path_LD="$ac_dir/$ac_prog"
4930
      # Check to see if the program is GNU ld.  I'd rather use --version,
4931
      # but apparently some GNU ld's only accept -v.
4932
      # Break only if it was the GNU/non-GNU ld that we prefer.
4933
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4934
        test "$with_gnu_ld" != no && break
4935
      else
4936
        test "$with_gnu_ld" != yes && break
4937
      fi
4938
    fi
4939
  done
4940
  IFS="$ac_save_ifs"
4941
else
4942
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4943
fi
4944
fi
4945
 
4946
LD="$lt_cv_path_LD"
4947
if test -n "$LD"; then
4948
  echo "$as_me:$LINENO: result: $LD" >&5
4949
echo "${ECHO_T}$LD" >&6
4950
else
4951
  echo "$as_me:$LINENO: result: no" >&5
4952
echo "${ECHO_T}no" >&6
4953
fi
4954
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4955
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4956
   { (exit 1); exit 1; }; }
4957
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4958
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4959
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4960
  echo $ECHO_N "(cached) $ECHO_C" >&6
4961
else
4962
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4963
if $LD -v 2>&1 &5; then
4964
  lt_cv_prog_gnu_ld=yes
4965
else
4966
  lt_cv_prog_gnu_ld=no
4967
fi
4968
fi
4969
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4970
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4971
with_gnu_ld=$lt_cv_prog_gnu_ld
4972
 
4973
 
4974
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4975
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4976
if test "${lt_cv_ld_reload_flag+set}" = set; then
4977
  echo $ECHO_N "(cached) $ECHO_C" >&6
4978
else
4979
  lt_cv_ld_reload_flag='-r'
4980
fi
4981
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4982
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4983
reload_flag=$lt_cv_ld_reload_flag
4984
test -n "$reload_flag" && reload_flag=" $reload_flag"
4985
 
4986
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4987
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4988
if test "${lt_cv_path_NM+set}" = set; then
4989
  echo $ECHO_N "(cached) $ECHO_C" >&6
4990
else
4991
  if test -n "$NM"; then
4992
  # Let the user override the test.
4993
  lt_cv_path_NM="$NM"
4994
else
4995
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4996
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4997
    test -z "$ac_dir" && ac_dir=.
4998
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4999
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5000
      # Check to see if the nm accepts a BSD-compat flag.
5001
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002
      #   nm: unknown option "B" ignored
5003
      # Tru64's nm complains that /dev/null is an invalid object file
5004
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5005
        lt_cv_path_NM="$tmp_nm -B"
5006
        break
5007
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5008
        lt_cv_path_NM="$tmp_nm -p"
5009
        break
5010
      else
5011
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5012
        continue # so that we can try to find one that supports BSD flags
5013
      fi
5014
    fi
5015
  done
5016
  IFS="$ac_save_ifs"
5017
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5018
fi
5019
fi
5020
 
5021
NM="$lt_cv_path_NM"
5022
echo "$as_me:$LINENO: result: $NM" >&5
5023
echo "${ECHO_T}$NM" >&6
5024
 
5025
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5026
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5027
if test "${lt_cv_deplibs_check_method+set}" = set; then
5028
  echo $ECHO_N "(cached) $ECHO_C" >&6
5029
else
5030
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5031
lt_cv_file_magic_test_file=
5032
lt_cv_deplibs_check_method='unknown'
5033
# Need to set the preceding variable on all platforms that support
5034
# interlibrary dependencies.
5035
# 'none' -- dependencies not supported.
5036
# `unknown' -- same as none, but documents that we really don't know.
5037
# 'pass_all' -- all dependencies passed with no checks.
5038
# 'test_compile' -- check by making test program.
5039
# 'file_magic [regex]' -- check by looking for files in library path
5040
# which responds to the $file_magic_cmd with a given egrep regex.
5041
# If you have `file' or equivalent on your system and you're not sure
5042
# whether `pass_all' will *always* work, you probably want this one.
5043
 
5044
case $host_os in
5045
aix*)
5046
  lt_cv_deplibs_check_method=pass_all
5047
  ;;
5048
 
5049
beos*)
5050
  lt_cv_deplibs_check_method=pass_all
5051
  ;;
5052
 
5053
bsdi4*)
5054
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5055
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5056
  lt_cv_file_magic_test_file=/shlib/libc.so
5057
  ;;
5058
 
5059
cygwin* | mingw* |pw32*)
5060
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5061
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5062
  ;;
5063
 
5064
darwin* | rhapsody*)
5065
  # this will be overwritten by pass_all, but leave it in just in case
5066
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5067
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5068
  case "$host_os" in
5069
  rhapsody* | darwin1.012)
5070
    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5071
    ;;
5072
  *) # Darwin 1.3 on
5073
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5074
    ;;
5075
  esac
5076
  lt_cv_deplibs_check_method=pass_all
5077
  ;;
5078
 
5079
freebsd* | kfreebsd*-gnu)
5080
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5081
    case $host_cpu in
5082
    i*86 )
5083
      # Not sure whether the presence of OpenBSD here was a mistake.
5084
      # Let's accept both of them until this is cleared up.
5085
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5086
      lt_cv_file_magic_cmd=/usr/bin/file
5087
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5088
      ;;
5089
    esac
5090
  else
5091
    lt_cv_deplibs_check_method=pass_all
5092
  fi
5093
  ;;
5094
 
5095
gnu*)
5096
  lt_cv_deplibs_check_method=pass_all
5097
  ;;
5098
 
5099
hpux10.20*|hpux11*)
5100
  case $host_cpu in
5101
  hppa*)
5102
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5103
    lt_cv_file_magic_cmd=/usr/bin/file
5104
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5105
    ;;
5106
  ia64*)
5107
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108
    lt_cv_file_magic_cmd=/usr/bin/file
5109
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5110
    ;;
5111
  esac
5112
  ;;
5113
 
5114
irix5* | irix6*)
5115
  case $host_os in
5116
  irix5*)
5117
    # this will be overridden with pass_all, but let us keep it just in case
5118
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5119
    ;;
5120
  *)
5121
    case $LD in
5122
    *-32|*"-32 ") libmagic=32-bit;;
5123
    *-n32|*"-n32 ") libmagic=N32;;
5124
    *-64|*"-64 ") libmagic=64-bit;;
5125
    *) libmagic=never-match;;
5126
    esac
5127
    # this will be overridden with pass_all, but let us keep it just in case
5128
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5129
    ;;
5130
  esac
5131
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5132
  lt_cv_deplibs_check_method=pass_all
5133
  ;;
5134
 
5135
# This must be Linux ELF.
5136
linux-gnu*)
5137
  lt_cv_deplibs_check_method=pass_all
5138
  ;;
5139
 
5140
netbsd* | knetbsd*-gnu)
5141
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5142
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5143
  else
5144
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5145
  fi
5146
  ;;
5147
 
5148
newsos6)
5149
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5150
  lt_cv_file_magic_cmd=/usr/bin/file
5151
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5152
  ;;
5153
 
5154
osf3* | osf4* | osf5*)
5155
  # this will be overridden with pass_all, but let us keep it just in case
5156
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5157
  lt_cv_file_magic_test_file=/shlib/libc.so
5158
  lt_cv_deplibs_check_method=pass_all
5159
  ;;
5160
 
5161
sco3.2v5*)
5162
  lt_cv_deplibs_check_method=pass_all
5163
  ;;
5164
 
5165
solaris*)
5166
  lt_cv_deplibs_check_method=pass_all
5167
  lt_cv_file_magic_test_file=/lib/libc.so
5168
  ;;
5169
 
5170
sysv5uw[78]* | sysv4*uw2*)
5171
  lt_cv_deplibs_check_method=pass_all
5172
  ;;
5173
 
5174
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5175
  case $host_vendor in
5176
  ncr)
5177
    lt_cv_deplibs_check_method=pass_all
5178
    ;;
5179
  motorola)
5180
    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]'
5181
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5182
    ;;
5183
  esac
5184
  ;;
5185
esac
5186
 
5187
fi
5188
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5190
file_magic_cmd=$lt_cv_file_magic_cmd
5191
deplibs_check_method=$lt_cv_deplibs_check_method
5192
 
5193
 
5194
 
5195
 
5196
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5197
 
5198
# find the maximum length of command line arguments
5199
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5200
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5201
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5202
  echo $ECHO_N "(cached) $ECHO_C" >&6
5203
else
5204
    i=0
5205
  teststring="ABCD"
5206
 
5207
  case $build_os in
5208
  msdosdjgpp*)
5209
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5210
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5211
    # during glob expansion).  Even if it were fixed, the result of this
5212
    # check would be larger than it should be.
5213
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5214
    ;;
5215
 
5216
  cygwin* | mingw*)
5217
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5218
    # about 5 minutes as the teststring grows exponentially.
5219
    # Worse, since 9x/ME are not pre-emptively multitasking,
5220
    # you end up with a "frozen" computer, even though with patience
5221
    # the test eventually succeeds (with a max line length of 256k).
5222
    # Instead, let's just punt: use the minimum linelength reported by
5223
    # all of the supported platforms: 8192 (on NT/2K/XP).
5224
    lt_cv_sys_max_cmd_len=8192;
5225
    ;;
5226
 
5227
  amigaos*)
5228
    # On AmigaOS with pdksh, this test takes hours, literally.
5229
    # So we just punt and use a minimum line length of 8192.
5230
    lt_cv_sys_max_cmd_len=8192;
5231
    ;;
5232
 
5233
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5234
    # This has been around since 386BSD, at least.  Likely further.
5235
    if test -x /sbin/sysctl; then
5236
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5237
    elif test -x /usr/sbin/sysctl; then
5238
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5239
    else
5240
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5241
    fi
5242
    # And add a safety zone
5243
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5245
    ;;
5246
  esac
5247
 
5248
fi
5249
 
5250
if test -n "$lt_cv_sys_max_cmd_len" ; then
5251
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5252
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5253
else
5254
  echo "$as_me:$LINENO: result: none" >&5
5255
echo "${ECHO_T}none" >&6
5256
fi
5257
 
5258
 
5259
# Only perform the check for file, if the check method requires it
5260
case $deplibs_check_method in
5261
file_magic*)
5262
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5263
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5264
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5265
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5266
  echo $ECHO_N "(cached) $ECHO_C" >&6
5267
else
5268
  case $MAGIC_CMD in
5269
  /*)
5270
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5271
  ;;
5272
  ?:/*)
5273
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5274
  ;;
5275
  *)
5276
  ac_save_MAGIC_CMD="$MAGIC_CMD"
5277
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5278
  ac_dummy="/usr/bin:$PATH"
5279
  for ac_dir in $ac_dummy; do
5280
    test -z "$ac_dir" && ac_dir=.
5281
    if test -f $ac_dir/${ac_tool_prefix}file; then
5282
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5283
      if test -n "$file_magic_test_file"; then
5284
        case $deplibs_check_method in
5285
        "file_magic "*)
5286
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5287
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5288
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5289
            egrep "$file_magic_regex" > /dev/null; then
5290
            :
5291
          else
5292
            cat <&2
5293
 
5294
*** Warning: the command libtool uses to detect shared libraries,
5295
*** $file_magic_cmd, produces output that libtool cannot recognize.
5296
*** The result is that libtool may fail to recognize shared libraries
5297
*** as such.  This will affect the creation of libtool libraries that
5298
*** depend on shared libraries, but programs linked with such libtool
5299
*** libraries will work regardless of this problem.  Nevertheless, you
5300
*** may want to report the problem to your system manager and/or to
5301
*** bug-libtool@gnu.org
5302
 
5303
EOF
5304
          fi ;;
5305
        esac
5306
      fi
5307
      break
5308
    fi
5309
  done
5310
  IFS="$ac_save_ifs"
5311
  MAGIC_CMD="$ac_save_MAGIC_CMD"
5312
  ;;
5313
esac
5314
fi
5315
 
5316
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317
if test -n "$MAGIC_CMD"; then
5318
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5319
echo "${ECHO_T}$MAGIC_CMD" >&6
5320
else
5321
  echo "$as_me:$LINENO: result: no" >&5
5322
echo "${ECHO_T}no" >&6
5323
fi
5324
 
5325
if test -z "$lt_cv_path_MAGIC_CMD"; then
5326
  if test -n "$ac_tool_prefix"; then
5327
    echo "$as_me:$LINENO: checking for file" >&5
5328
echo $ECHO_N "checking for file... $ECHO_C" >&6
5329
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5330
  echo $ECHO_N "(cached) $ECHO_C" >&6
5331
else
5332
  case $MAGIC_CMD in
5333
  /*)
5334
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5335
  ;;
5336
  ?:/*)
5337
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5338
  ;;
5339
  *)
5340
  ac_save_MAGIC_CMD="$MAGIC_CMD"
5341
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5342
  ac_dummy="/usr/bin:$PATH"
5343
  for ac_dir in $ac_dummy; do
5344
    test -z "$ac_dir" && ac_dir=.
5345
    if test -f $ac_dir/file; then
5346
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5347
      if test -n "$file_magic_test_file"; then
5348
        case $deplibs_check_method in
5349
        "file_magic "*)
5350
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5351
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5352
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5353
            egrep "$file_magic_regex" > /dev/null; then
5354
            :
5355
          else
5356
            cat <&2
5357
 
5358
*** Warning: the command libtool uses to detect shared libraries,
5359
*** $file_magic_cmd, produces output that libtool cannot recognize.
5360
*** The result is that libtool may fail to recognize shared libraries
5361
*** as such.  This will affect the creation of libtool libraries that
5362
*** depend on shared libraries, but programs linked with such libtool
5363
*** libraries will work regardless of this problem.  Nevertheless, you
5364
*** may want to report the problem to your system manager and/or to
5365
*** bug-libtool@gnu.org
5366
 
5367
EOF
5368
          fi ;;
5369
        esac
5370
      fi
5371
      break
5372
    fi
5373
  done
5374
  IFS="$ac_save_ifs"
5375
  MAGIC_CMD="$ac_save_MAGIC_CMD"
5376
  ;;
5377
esac
5378
fi
5379
 
5380
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5381
if test -n "$MAGIC_CMD"; then
5382
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5383
echo "${ECHO_T}$MAGIC_CMD" >&6
5384
else
5385
  echo "$as_me:$LINENO: result: no" >&5
5386
echo "${ECHO_T}no" >&6
5387
fi
5388
 
5389
  else
5390
    MAGIC_CMD=:
5391
  fi
5392
fi
5393
 
5394
  fi
5395
  ;;
5396
esac
5397
 
5398
if test -n "$ac_tool_prefix"; then
5399
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5400
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5401
echo "$as_me:$LINENO: checking for $ac_word" >&5
5402
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403
if test "${ac_cv_prog_RANLIB+set}" = set; then
5404
  echo $ECHO_N "(cached) $ECHO_C" >&6
5405
else
5406
  if test -n "$RANLIB"; then
5407
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408
else
5409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410
for as_dir in $PATH
5411
do
5412
  IFS=$as_save_IFS
5413
  test -z "$as_dir" && as_dir=.
5414
  for ac_exec_ext in '' $ac_executable_extensions; do
5415
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5417
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418
    break 2
5419
  fi
5420
done
5421
done
5422
 
5423
fi
5424
fi
5425
RANLIB=$ac_cv_prog_RANLIB
5426
if test -n "$RANLIB"; then
5427
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5428
echo "${ECHO_T}$RANLIB" >&6
5429
else
5430
  echo "$as_me:$LINENO: result: no" >&5
5431
echo "${ECHO_T}no" >&6
5432
fi
5433
 
5434
fi
5435
if test -z "$ac_cv_prog_RANLIB"; then
5436
  ac_ct_RANLIB=$RANLIB
5437
  # Extract the first word of "ranlib", so it can be a program name with args.
5438
set dummy ranlib; ac_word=$2
5439
echo "$as_me:$LINENO: checking for $ac_word" >&5
5440
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5441
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5442
  echo $ECHO_N "(cached) $ECHO_C" >&6
5443
else
5444
  if test -n "$ac_ct_RANLIB"; then
5445
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5446
else
5447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448
for as_dir in $PATH
5449
do
5450
  IFS=$as_save_IFS
5451
  test -z "$as_dir" && as_dir=.
5452
  for ac_exec_ext in '' $ac_executable_extensions; do
5453
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456
    break 2
5457
  fi
5458
done
5459
done
5460
 
5461
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5462
fi
5463
fi
5464
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5465
if test -n "$ac_ct_RANLIB"; then
5466
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5467
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5468
else
5469
  echo "$as_me:$LINENO: result: no" >&5
5470
echo "${ECHO_T}no" >&6
5471
fi
5472
 
5473
  RANLIB=$ac_ct_RANLIB
5474
else
5475
  RANLIB="$ac_cv_prog_RANLIB"
5476
fi
5477
 
5478
if test -n "$ac_tool_prefix"; then
5479
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5480
set dummy ${ac_tool_prefix}strip; ac_word=$2
5481
echo "$as_me:$LINENO: checking for $ac_word" >&5
5482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483
if test "${ac_cv_prog_STRIP+set}" = set; then
5484
  echo $ECHO_N "(cached) $ECHO_C" >&6
5485
else
5486
  if test -n "$STRIP"; then
5487
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5488
else
5489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490
for as_dir in $PATH
5491
do
5492
  IFS=$as_save_IFS
5493
  test -z "$as_dir" && as_dir=.
5494
  for ac_exec_ext in '' $ac_executable_extensions; do
5495
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5497
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498
    break 2
5499
  fi
5500
done
5501
done
5502
 
5503
fi
5504
fi
5505
STRIP=$ac_cv_prog_STRIP
5506
if test -n "$STRIP"; then
5507
  echo "$as_me:$LINENO: result: $STRIP" >&5
5508
echo "${ECHO_T}$STRIP" >&6
5509
else
5510
  echo "$as_me:$LINENO: result: no" >&5
5511
echo "${ECHO_T}no" >&6
5512
fi
5513
 
5514
fi
5515
if test -z "$ac_cv_prog_STRIP"; then
5516
  ac_ct_STRIP=$STRIP
5517
  # Extract the first word of "strip", so it can be a program name with args.
5518
set dummy strip; ac_word=$2
5519
echo "$as_me:$LINENO: checking for $ac_word" >&5
5520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5522
  echo $ECHO_N "(cached) $ECHO_C" >&6
5523
else
5524
  if test -n "$ac_ct_STRIP"; then
5525
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5526
else
5527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528
for as_dir in $PATH
5529
do
5530
  IFS=$as_save_IFS
5531
  test -z "$as_dir" && as_dir=.
5532
  for ac_exec_ext in '' $ac_executable_extensions; do
5533
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534
    ac_cv_prog_ac_ct_STRIP="strip"
5535
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536
    break 2
5537
  fi
5538
done
5539
done
5540
 
5541
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5542
fi
5543
fi
5544
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5545
if test -n "$ac_ct_STRIP"; then
5546
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5547
echo "${ECHO_T}$ac_ct_STRIP" >&6
5548
else
5549
  echo "$as_me:$LINENO: result: no" >&5
5550
echo "${ECHO_T}no" >&6
5551
fi
5552
 
5553
  STRIP=$ac_ct_STRIP
5554
else
5555
  STRIP="$ac_cv_prog_STRIP"
5556
fi
5557
 
5558
 
5559
# Check for any special flags to pass to ltconfig.
5560
libtool_flags="--cache-file=$cache_file"
5561
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5562
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5563
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5564
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5565
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5566
 
5567
 
5568
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569
if test "${enable_libtool_lock+set}" = set; then
5570
  enableval="$enable_libtool_lock"
5571
 
5572
fi;
5573
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5574
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5575
 
5576
 
5577
# Check whether --with-pic or --without-pic was given.
5578
if test "${with_pic+set}" = set; then
5579
  withval="$with_pic"
5580
  pic_mode="$withval"
5581
else
5582
  pic_mode=default
5583
fi;
5584
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5585
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5586
 
5587
# Some flags need to be propagated to the compiler or linker for good
5588
# libtool support.
5589
case $host in
5590
*-*-irix6*)
5591
  # Find out which ABI we are using.
5592
  echo '#line 5592 "configure"' > conftest.$ac_ext
5593
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594
  (eval $ac_compile) 2>&5
5595
  ac_status=$?
5596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597
  (exit $ac_status); }; then
5598
   if test "$lt_cv_prog_gnu_ld" = yes; then
5599
    case `/usr/bin/file conftest.$ac_objext` in
5600
    *32-bit*)
5601
      LD="${LD-ld} -melf32bsmip"
5602
      ;;
5603
    *N32*)
5604
      LD="${LD-ld} -melf32bmipn32"
5605
      ;;
5606
    *64-bit*)
5607
      LD="${LD-ld} -melf64bmip"
5608
      ;;
5609
    esac
5610
   else
5611
    case `/usr/bin/file conftest.$ac_objext` in
5612
    *32-bit*)
5613
      LD="${LD-ld} -32"
5614
      ;;
5615
    *N32*)
5616
      LD="${LD-ld} -n32"
5617
      ;;
5618
    *64-bit*)
5619
      LD="${LD-ld} -64"
5620
      ;;
5621
    esac
5622
   fi
5623
  fi
5624
  rm -rf conftest*
5625
  ;;
5626
 
5627
ia64-*-hpux*)
5628
  # Find out which ABI we are using.
5629
  echo 'int i;' > conftest.$ac_ext
5630
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631
  (eval $ac_compile) 2>&5
5632
  ac_status=$?
5633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634
  (exit $ac_status); }; then
5635
    case "`/usr/bin/file conftest.o`" in
5636
    *ELF-32*)
5637
      HPUX_IA64_MODE="32"
5638
      ;;
5639
    *ELF-64*)
5640
      HPUX_IA64_MODE="64"
5641
      ;;
5642
    esac
5643
  fi
5644
  rm -rf conftest*
5645
  ;;
5646
 
5647
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5648
  # Find out which ABI we are using.
5649
  echo 'int i;' > conftest.$ac_ext
5650
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651
  (eval $ac_compile) 2>&5
5652
  ac_status=$?
5653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
  (exit $ac_status); }; then
5655
    case "`/usr/bin/file conftest.o`" in
5656
    *32-bit*)
5657
      case $host in
5658
        x86_64-*linux*)
5659
          LD="${LD-ld} -m elf_i386"
5660
          ;;
5661
        ppc64-*linux*|powerpc64-*linux*)
5662
          LD="${LD-ld} -m elf32ppclinux"
5663
          ;;
5664
        s390x-*linux*)
5665
          LD="${LD-ld} -m elf_s390"
5666
          ;;
5667
        sparc64-*linux*)
5668
          LD="${LD-ld} -m elf32_sparc"
5669
          ;;
5670
      esac
5671
      ;;
5672
    *64-bit*)
5673
      case $host in
5674
        x86_64-*linux*)
5675
          LD="${LD-ld} -m elf_x86_64"
5676
          ;;
5677
        ppc*-*linux*|powerpc*-*linux*)
5678
          LD="${LD-ld} -m elf64ppc"
5679
          ;;
5680
        s390*-*linux*)
5681
          LD="${LD-ld} -m elf64_s390"
5682
          ;;
5683
        sparc*-*linux*)
5684
          LD="${LD-ld} -m elf64_sparc"
5685
          ;;
5686
      esac
5687
      ;;
5688
    esac
5689
  fi
5690
  rm -rf conftest*
5691
  ;;
5692
 
5693
*-*-sco3.2v5*)
5694
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5695
  SAVE_CFLAGS="$CFLAGS"
5696
  CFLAGS="$CFLAGS -belf"
5697
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5698
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5699
if test "${lt_cv_cc_needs_belf+set}" = set; then
5700
  echo $ECHO_N "(cached) $ECHO_C" >&6
5701
else
5702
 
5703
 
5704
     ac_ext=c
5705
ac_cpp='$CPP $CPPFLAGS'
5706
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
 
5710
     if test x$gcc_no_link = xyes; then
5711
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5712
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5713
   { (exit 1); exit 1; }; }
5714
fi
5715
cat >conftest.$ac_ext <<_ACEOF
5716
/* confdefs.h.  */
5717
_ACEOF
5718
cat confdefs.h >>conftest.$ac_ext
5719
cat >>conftest.$ac_ext <<_ACEOF
5720
/* end confdefs.h.  */
5721
 
5722
int
5723
main ()
5724
{
5725
 
5726
  ;
5727
  return 0;
5728
}
5729
_ACEOF
5730
rm -f conftest.$ac_objext conftest$ac_exeext
5731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732
  (eval $ac_link) 2>conftest.er1
5733
  ac_status=$?
5734
  grep -v '^ *+' conftest.er1 >conftest.err
5735
  rm -f conftest.er1
5736
  cat conftest.err >&5
5737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738
  (exit $ac_status); } &&
5739
         { ac_try='test -z "$ac_c_werror_flag"
5740
                         || test ! -s conftest.err'
5741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742
  (eval $ac_try) 2>&5
5743
  ac_status=$?
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
  (exit $ac_status); }; } &&
5746
         { ac_try='test -s conftest$ac_exeext'
5747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748
  (eval $ac_try) 2>&5
5749
  ac_status=$?
5750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
  (exit $ac_status); }; }; then
5752
  lt_cv_cc_needs_belf=yes
5753
else
5754
  echo "$as_me: failed program was:" >&5
5755
sed 's/^/| /' conftest.$ac_ext >&5
5756
 
5757
lt_cv_cc_needs_belf=no
5758
fi
5759
rm -f conftest.err conftest.$ac_objext \
5760
      conftest$ac_exeext conftest.$ac_ext
5761
     ac_ext=c
5762
ac_cpp='$CPP $CPPFLAGS'
5763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
 
5767
fi
5768
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5769
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5770
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5771
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5772
    CFLAGS="$SAVE_CFLAGS"
5773
  fi
5774
  ;;
5775
 
5776
 
5777
esac
5778
 
5779
 
5780
# Save cache, so that ltconfig can load it
5781
cat >confcache <<\_ACEOF
5782
# This file is a shell script that caches the results of configure
5783
# tests run on this system so they can be shared between configure
5784
# scripts and configure runs, see configure's option --config-cache.
5785
# It is not useful on other systems.  If it contains results you don't
5786
# want to keep, you may remove or edit it.
5787
#
5788
# config.status only pays attention to the cache file if you give it
5789
# the --recheck option to rerun configure.
5790
#
5791
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5792
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5793
# following values.
5794
 
5795
_ACEOF
5796
 
5797
# The following way of writing the cache mishandles newlines in values,
5798
# but we know of no workaround that is simple, portable, and efficient.
5799
# So, don't put newlines in cache variables' values.
5800
# Ultrix sh set writes to stderr and can't be redirected directly,
5801
# and sets the high bit in the cache file unless we assign to the vars.
5802
{
5803
  (set) 2>&1 |
5804
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5805
    *ac_space=\ *)
5806
      # `set' does not quote correctly, so add quotes (double-quote
5807
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5808
      sed -n \
5809
        "s/'/'\\\\''/g;
5810
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5811
      ;;
5812
    *)
5813
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5814
      sed -n \
5815
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5816
      ;;
5817
    esac;
5818
} |
5819
  sed '
5820
     t clear
5821
     : clear
5822
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823
     t end
5824
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5825
     : end' >>confcache
5826
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5827
  if test -w $cache_file; then
5828
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5829
    cat confcache >$cache_file
5830
  else
5831
    echo "not updating unwritable cache $cache_file"
5832
  fi
5833
fi
5834
rm -f confcache
5835
 
5836
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
5837
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5838
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5839
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5840
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5841
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5842
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5843
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5844
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5845
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5846
echo "$as_me: error: libtool configure failed" >&2;}
5847
   { (exit 1); exit 1; }; }
5848
 
5849
# Reload cache, that may have been modified by ltconfig
5850
if test -r "$cache_file"; then
5851
  # Some versions of bash will fail to source /dev/null (special
5852
  # files actually), so we avoid doing that.
5853
  if test -f "$cache_file"; then
5854
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5855
echo "$as_me: loading cache $cache_file" >&6;}
5856
    case $cache_file in
5857
      [\\/]* | ?:[\\/]* ) . $cache_file;;
5858
      *)                      . ./$cache_file;;
5859
    esac
5860
  fi
5861
else
5862
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5863
echo "$as_me: creating cache $cache_file" >&6;}
5864
  >$cache_file
5865
fi
5866
 
5867
 
5868
# This can be used to rebuild libtool when needed
5869
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5870
 
5871
# Always use our own libtool.
5872
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5873
 
5874
# Redirect the config.log output again, so that the ltconfig log is not
5875
# clobbered by the next message.
5876
exec 5>>./config.log
5877
 
5878
ac_ext=cc
5879
ac_cpp='$CXXCPP $CPPFLAGS'
5880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5884
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5885
if test -z "$CXXCPP"; then
5886
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5887
  echo $ECHO_N "(cached) $ECHO_C" >&6
5888
else
5889
      # Double quotes because CXXCPP needs to be expanded
5890
    for CXXCPP in "$CXX -E" "/lib/cpp"
5891
    do
5892
      ac_preproc_ok=false
5893
for ac_cxx_preproc_warn_flag in '' yes
5894
do
5895
  # Use a header file that comes with gcc, so configuring glibc
5896
  # with a fresh cross-compiler works.
5897
  # Prefer  to  if __STDC__ is defined, since
5898
  #  exists even on freestanding compilers.
5899
  # On the NeXT, cc -E runs the code through the compiler's parser,
5900
  # not just through cpp. "Syntax error" is here to catch this case.
5901
  cat >conftest.$ac_ext <<_ACEOF
5902
/* confdefs.h.  */
5903
_ACEOF
5904
cat confdefs.h >>conftest.$ac_ext
5905
cat >>conftest.$ac_ext <<_ACEOF
5906
/* end confdefs.h.  */
5907
#ifdef __STDC__
5908
# include 
5909
#else
5910
# include 
5911
#endif
5912
                     Syntax error
5913
_ACEOF
5914
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916
  ac_status=$?
5917
  grep -v '^ *+' conftest.er1 >conftest.err
5918
  rm -f conftest.er1
5919
  cat conftest.err >&5
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
  (exit $ac_status); } >/dev/null; then
5922
  if test -s conftest.err; then
5923
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5924
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5925
  else
5926
    ac_cpp_err=
5927
  fi
5928
else
5929
  ac_cpp_err=yes
5930
fi
5931
if test -z "$ac_cpp_err"; then
5932
  :
5933
else
5934
  echo "$as_me: failed program was:" >&5
5935
sed 's/^/| /' conftest.$ac_ext >&5
5936
 
5937
  # Broken: fails on valid input.
5938
continue
5939
fi
5940
rm -f conftest.err conftest.$ac_ext
5941
 
5942
  # OK, works on sane cases.  Now check whether non-existent headers
5943
  # can be detected and how.
5944
  cat >conftest.$ac_ext <<_ACEOF
5945
/* confdefs.h.  */
5946
_ACEOF
5947
cat confdefs.h >>conftest.$ac_ext
5948
cat >>conftest.$ac_ext <<_ACEOF
5949
/* end confdefs.h.  */
5950
#include 
5951
_ACEOF
5952
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954
  ac_status=$?
5955
  grep -v '^ *+' conftest.er1 >conftest.err
5956
  rm -f conftest.er1
5957
  cat conftest.err >&5
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
  (exit $ac_status); } >/dev/null; then
5960
  if test -s conftest.err; then
5961
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5962
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5963
  else
5964
    ac_cpp_err=
5965
  fi
5966
else
5967
  ac_cpp_err=yes
5968
fi
5969
if test -z "$ac_cpp_err"; then
5970
  # Broken: success on invalid input.
5971
continue
5972
else
5973
  echo "$as_me: failed program was:" >&5
5974
sed 's/^/| /' conftest.$ac_ext >&5
5975
 
5976
  # Passes both tests.
5977
ac_preproc_ok=:
5978
break
5979
fi
5980
rm -f conftest.err conftest.$ac_ext
5981
 
5982
done
5983
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984
rm -f conftest.err conftest.$ac_ext
5985
if $ac_preproc_ok; then
5986
  break
5987
fi
5988
 
5989
    done
5990
    ac_cv_prog_CXXCPP=$CXXCPP
5991
 
5992
fi
5993
  CXXCPP=$ac_cv_prog_CXXCPP
5994
else
5995
  ac_cv_prog_CXXCPP=$CXXCPP
5996
fi
5997
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5998
echo "${ECHO_T}$CXXCPP" >&6
5999
ac_preproc_ok=false
6000
for ac_cxx_preproc_warn_flag in '' yes
6001
do
6002
  # Use a header file that comes with gcc, so configuring glibc
6003
  # with a fresh cross-compiler works.
6004
  # Prefer  to  if __STDC__ is defined, since
6005
  #  exists even on freestanding compilers.
6006
  # On the NeXT, cc -E runs the code through the compiler's parser,
6007
  # not just through cpp. "Syntax error" is here to catch this case.
6008
  cat >conftest.$ac_ext <<_ACEOF
6009
/* confdefs.h.  */
6010
_ACEOF
6011
cat confdefs.h >>conftest.$ac_ext
6012
cat >>conftest.$ac_ext <<_ACEOF
6013
/* end confdefs.h.  */
6014
#ifdef __STDC__
6015
# include 
6016
#else
6017
# include 
6018
#endif
6019
                     Syntax error
6020
_ACEOF
6021
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023
  ac_status=$?
6024
  grep -v '^ *+' conftest.er1 >conftest.err
6025
  rm -f conftest.er1
6026
  cat conftest.err >&5
6027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028
  (exit $ac_status); } >/dev/null; then
6029
  if test -s conftest.err; then
6030
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6031
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6032
  else
6033
    ac_cpp_err=
6034
  fi
6035
else
6036
  ac_cpp_err=yes
6037
fi
6038
if test -z "$ac_cpp_err"; then
6039
  :
6040
else
6041
  echo "$as_me: failed program was:" >&5
6042
sed 's/^/| /' conftest.$ac_ext >&5
6043
 
6044
  # Broken: fails on valid input.
6045
continue
6046
fi
6047
rm -f conftest.err conftest.$ac_ext
6048
 
6049
  # OK, works on sane cases.  Now check whether non-existent headers
6050
  # can be detected and how.
6051
  cat >conftest.$ac_ext <<_ACEOF
6052
/* confdefs.h.  */
6053
_ACEOF
6054
cat confdefs.h >>conftest.$ac_ext
6055
cat >>conftest.$ac_ext <<_ACEOF
6056
/* end confdefs.h.  */
6057
#include 
6058
_ACEOF
6059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061
  ac_status=$?
6062
  grep -v '^ *+' conftest.er1 >conftest.err
6063
  rm -f conftest.er1
6064
  cat conftest.err >&5
6065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
  (exit $ac_status); } >/dev/null; then
6067
  if test -s conftest.err; then
6068
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6069
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6070
  else
6071
    ac_cpp_err=
6072
  fi
6073
else
6074
  ac_cpp_err=yes
6075
fi
6076
if test -z "$ac_cpp_err"; then
6077
  # Broken: success on invalid input.
6078
continue
6079
else
6080
  echo "$as_me: failed program was:" >&5
6081
sed 's/^/| /' conftest.$ac_ext >&5
6082
 
6083
  # Passes both tests.
6084
ac_preproc_ok=:
6085
break
6086
fi
6087
rm -f conftest.err conftest.$ac_ext
6088
 
6089
done
6090
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6091
rm -f conftest.err conftest.$ac_ext
6092
if $ac_preproc_ok; then
6093
  :
6094
else
6095
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6096
See \`config.log' for more details." >&5
6097
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098
See \`config.log' for more details." >&2;}
6099
   { (exit 1); exit 1; }; }
6100
fi
6101
 
6102
ac_ext=c
6103
ac_cpp='$CPP $CPPFLAGS'
6104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107
 
6108
 
6109
 
6110
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6111
lt_save_CC="$CC"
6112
lt_save_CFLAGS="$CFLAGS"
6113
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6114
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6115
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6116
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6117
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6118
deplibs_check_method="$deplibs_check_method" \
6119
file_magic_cmd="$file_magic_cmd" \
6120
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6121
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6122
|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6123
echo "$as_me: error: libtool tag configuration failed" >&2;}
6124
   { (exit 1); exit 1; }; }
6125
CC="$lt_save_CC"
6126
CFLAGS="$lt_save_CFLAGS"
6127
 
6128
# Redirect the config.log output again, so that the ltconfig log is not
6129
# clobbered by the next message.
6130
exec 5>>./config.log
6131
 
6132
 
6133
 
6134
 
6135
 
6136
 
6137
 
6138
for ac_prog in gcj
6139
do
6140
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6141
set dummy $ac_prog; ac_word=$2
6142
echo "$as_me:$LINENO: checking for $ac_word" >&5
6143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6144
if test "${ac_cv_prog_GCJ+set}" = set; then
6145
  echo $ECHO_N "(cached) $ECHO_C" >&6
6146
else
6147
  if test -n "$GCJ"; then
6148
  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6149
else
6150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151
for as_dir in $PATH
6152
do
6153
  IFS=$as_save_IFS
6154
  test -z "$as_dir" && as_dir=.
6155
  for ac_exec_ext in '' $ac_executable_extensions; do
6156
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157
    ac_cv_prog_GCJ="$ac_prog"
6158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159
    break 2
6160
  fi
6161
done
6162
done
6163
 
6164
fi
6165
fi
6166
GCJ=$ac_cv_prog_GCJ
6167
if test -n "$GCJ"; then
6168
  echo "$as_me:$LINENO: result: $GCJ" >&5
6169
echo "${ECHO_T}$GCJ" >&6
6170
else
6171
  echo "$as_me:$LINENO: result: no" >&5
6172
echo "${ECHO_T}no" >&6
6173
fi
6174
 
6175
  test -n "$GCJ" && break
6176
done
6177
test -n "$GCJ" || GCJ="gcj"
6178
 
6179
test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6180
echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6181
   { (exit 1); exit 1; }; }
6182
if test "x${GCJFLAGS-unset}" = xunset; then
6183
   GCJFLAGS="-g -O2"
6184
fi
6185
 
6186
 
6187
depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6188
 
6189
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6190
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6191
if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6192
  echo $ECHO_N "(cached) $ECHO_C" >&6
6193
else
6194
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6195
  # We make a subdir and do the tests there.  Otherwise we can end up
6196
  # making bogus files that we don't know about and never remove.  For
6197
  # instance it was reported that on HP-UX the gcc test will end up
6198
  # making a dummy file named `D' -- because `-MD' means `put the output
6199
  # in D'.
6200
  mkdir conftest.dir
6201
  # Copy depcomp to subdir because otherwise we won't find it if we're
6202
  # using a relative directory.
6203
  cp "$am_depcomp" conftest.dir
6204
  cd conftest.dir
6205
  # We will build objects and dependencies in a subdirectory because
6206
  # it helps to detect inapplicable dependency modes.  For instance
6207
  # both Tru64's cc and ICC support -MD to output dependencies as a
6208
  # side effect of compilation, but ICC will put the dependencies in
6209
  # the current directory while Tru64 will put them in the object
6210
  # directory.
6211
  mkdir sub
6212
 
6213
  am_cv_GCJ_dependencies_compiler_type=none
6214
  if test "$am_compiler_list" = ""; then
6215
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6216
  fi
6217
  for depmode in $am_compiler_list; do
6218
    # Setup a source with many dependencies, because some compilers
6219
    # like to wrap large dependency lists on column 80 (with \), and
6220
    # we should not choose a depcomp mode which is confused by this.
6221
    #
6222
    # We need to recreate these files for each test, as the compiler may
6223
    # overwrite some of them when testing with obscure command lines.
6224
    # This happens at least with the AIX C compiler.
6225
    : > sub/conftest.c
6226
    for i in 1 2 3 4 5 6; do
6227
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6228
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6229
      # Solaris 8's {/usr,}/bin/sh.
6230
      touch sub/conftst$i.h
6231
    done
6232
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6233
 
6234
    case $depmode in
6235
    nosideeffect)
6236
      # after this tag, mechanisms are not by side-effect, so they'll
6237
      # only be used when explicitly requested
6238
      if test "x$enable_dependency_tracking" = xyes; then
6239
        continue
6240
      else
6241
        break
6242
      fi
6243
      ;;
6244
    none) break ;;
6245
    esac
6246
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6247
    # mode.  It turns out that the SunPro C++ compiler does not properly
6248
    # handle `-M -o', and we need to detect this.
6249
    if depmode=$depmode \
6250
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6251
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6252
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6253
         >/dev/null 2>conftest.err &&
6254
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6255
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6256
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6257
      # icc doesn't choke on unknown options, it will just issue warnings
6258
      # or remarks (even with -Werror).  So we grep stderr for any message
6259
      # that says an option was ignored or not supported.
6260
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6261
      #   icc: Command line warning: ignoring option '-M'; no argument required
6262
      # The diagnosis changed in icc 8.0:
6263
      #   icc: Command line remark: option '-MP' not supported
6264
      if (grep 'ignoring option' conftest.err ||
6265
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6266
        am_cv_GCJ_dependencies_compiler_type=$depmode
6267
        break
6268
      fi
6269
    fi
6270
  done
6271
 
6272
  cd ..
6273
  rm -rf conftest.dir
6274
else
6275
  am_cv_GCJ_dependencies_compiler_type=none
6276
fi
6277
 
6278
fi
6279
echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6280
echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6281
GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6282
 
6283
 
6284
 
6285
if
6286
  test "x$enable_dependency_tracking" != xno \
6287
  && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6288
  am__fastdepGCJ_TRUE=
6289
  am__fastdepGCJ_FALSE='#'
6290
else
6291
  am__fastdepGCJ_TRUE='#'
6292
  am__fastdepGCJ_FALSE=
6293
fi
6294
 
6295
 
6296
 
6297
 
6298
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6299
lt_save_CC="$CC"
6300
lt_save_CFLAGS="$CFLAGS"
6301
AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6302
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6303
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6304
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6305
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6306
deplibs_check_method="$deplibs_check_method" \
6307
file_magic_cmd="$file_magic_cmd" \
6308
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6309
--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6310
|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6311
echo "$as_me: error: libtool tag configuration failed" >&2;}
6312
   { (exit 1); exit 1; }; }
6313
CC="$lt_save_CC"
6314
CFLAGS="$lt_save_CFLAGS"
6315
 
6316
# Redirect the config.log output again, so that the ltconfig log is not
6317
# clobbered by the next message.
6318
exec 5>>./config.log
6319
 
6320
 
6321
 
6322
if test "x$CC" != xcc; then
6323
  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6324
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6325
else
6326
  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6327
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6328
fi
6329
set dummy $CC; ac_cc=`echo $2 |
6330
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6331
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6332
  echo $ECHO_N "(cached) $ECHO_C" >&6
6333
else
6334
  cat >conftest.$ac_ext <<_ACEOF
6335
/* confdefs.h.  */
6336
_ACEOF
6337
cat confdefs.h >>conftest.$ac_ext
6338
cat >>conftest.$ac_ext <<_ACEOF
6339
/* end confdefs.h.  */
6340
 
6341
int
6342
main ()
6343
{
6344
 
6345
  ;
6346
  return 0;
6347
}
6348
_ACEOF
6349
# Make sure it works both with $CC and with simple cc.
6350
# We do the test twice because some compilers refuse to overwrite an
6351
# existing .o file with -o, though they will create one.
6352
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6353
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354
  (eval $ac_try) 2>&5
6355
  ac_status=$?
6356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
  (exit $ac_status); } &&
6358
   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359
  (eval $ac_try) 2>&5
6360
  ac_status=$?
6361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362
  (exit $ac_status); };
6363
then
6364
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6365
  if test "x$CC" != xcc; then
6366
    # Test first that cc exists at all.
6367
    if { ac_try='cc -c conftest.$ac_ext >&5'
6368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369
  (eval $ac_try) 2>&5
6370
  ac_status=$?
6371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372
  (exit $ac_status); }; }; then
6373
      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6374
      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375
  (eval $ac_try) 2>&5
6376
  ac_status=$?
6377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378
  (exit $ac_status); } &&
6379
         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380
  (eval $ac_try) 2>&5
6381
  ac_status=$?
6382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383
  (exit $ac_status); };
6384
      then
6385
        # cc works too.
6386
        :
6387
      else
6388
        # cc exists but doesn't like -o.
6389
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
6390
      fi
6391
    fi
6392
  fi
6393
else
6394
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
6395
fi
6396
rm -f conftest*
6397
 
6398
fi
6399
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6400
  echo "$as_me:$LINENO: result: yes" >&5
6401
echo "${ECHO_T}yes" >&6
6402
else
6403
  echo "$as_me:$LINENO: result: no" >&5
6404
echo "${ECHO_T}no" >&6
6405
 
6406
cat >>confdefs.h <<\_ACEOF
6407
#define NO_MINUS_C_MINUS_O 1
6408
_ACEOF
6409
 
6410
fi
6411
 
6412
# FIXME: we rely on the cache variable name because
6413
# there is no other way.
6414
set dummy $CC
6415
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6416
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6417
   # Losing compiler, so override with the script.
6418
   # FIXME: It is wrong to rewrite CC.
6419
   # But if we don't then we get into trouble of one sort or another.
6420
   # A longer-term fix would be to have automake use am__CC in this case,
6421
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6422
   CC="$am_aux_dir/compile $CC"
6423
fi
6424
 
6425
 
6426
 
6427
 
6428
subdirs="$subdirs classpath libltdl"
6429
 
6430
 
6431
# The -no-testsuite modules omit the test subdir.
6432
 
6433
 
6434
if test -d $srcdir/testsuite; then
6435
  TESTSUBDIR_TRUE=
6436
  TESTSUBDIR_FALSE='#'
6437
else
6438
  TESTSUBDIR_TRUE='#'
6439
  TESTSUBDIR_FALSE=
6440
fi
6441
 
6442
 
6443
# Should the runtime set system properties by examining the
6444
# environment variable GCJ_PROPERTIES?
6445
# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6446
if test "${enable_getenv_properties+set}" = set; then
6447
  enableval="$enable_getenv_properties"
6448
 
6449
fi;
6450
 
6451
# Whether GCJ_PROPERTIES is used depends on the target.
6452
if test -z "$enable_getenv_properties"; then
6453
   enable_getenv_properties=${enable_getenv_properties_default-yes}
6454
fi
6455
if test "$enable_getenv_properties" = no; then
6456
 
6457
cat >>confdefs.h <<\_ACEOF
6458
#define DISABLE_GETENV_PROPERTIES 1
6459
_ACEOF
6460
 
6461
fi
6462
 
6463
# Whether we should use arguments to main()
6464
if test -z "$enable_main_args"; then
6465
   enable_main_args=${enable_main_args_default-yes}
6466
fi
6467
if test "$enable_main_args" = no; then
6468
 
6469
cat >>confdefs.h <<\_ACEOF
6470
#define DISABLE_MAIN_ARGS 1
6471
_ACEOF
6472
 
6473
fi
6474
 
6475
 
6476
# Should we use hashtable-based synchronization?
6477
# Currently works only for Linux X86/ia64
6478
# Typically faster and more space-efficient
6479
# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6480
if test "${enable_hash_synchronization+set}" = set; then
6481
  enableval="$enable_hash_synchronization"
6482
 
6483
fi;
6484
 
6485
if test -z "$enable_hash_synchronization"; then
6486
   enable_hash_synchronization=$enable_hash_synchronization_default
6487
fi
6488
 
6489
 
6490
# Check whether --with-java-home or --without-java-home was given.
6491
if test "${with_java_home+set}" = set; then
6492
  withval="$with_java_home"
6493
  JAVA_HOME="${withval}"
6494
else
6495
  JAVA_HOME=""
6496
fi;
6497
 
6498
 
6499
if test ! -z "$JAVA_HOME"; then
6500
  JAVA_HOME_SET_TRUE=
6501
  JAVA_HOME_SET_FALSE='#'
6502
else
6503
  JAVA_HOME_SET_TRUE='#'
6504
  JAVA_HOME_SET_FALSE=
6505
fi
6506
 
6507
 
6508
 
6509
# What is the native OS API for MinGW?
6510
 
6511
# Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6512
if test "${with_win32_nlsapi+set}" = set; then
6513
  withval="$with_win32_nlsapi"
6514
  case "${withval}" in
6515
  ansi) with_win32_nlsapi=ansi ;;
6516
  unicows) with_win32_nlsapi=unicows ;;
6517
  unicode) with_win32_nlsapi=unicode ;;
6518
  *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6519
echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6520
   { (exit 1); exit 1; }; } ;;
6521
esac
6522
else
6523
  with_win32_nlsapi=ansi
6524
fi;
6525
 
6526
case "${with_win32_nlsapi}" in
6527
  unicows | unicode)
6528
 
6529
cat >>confdefs.h <<\_ACEOF
6530
#define MINGW_LIBGCJ_UNICODE 1
6531
_ACEOF
6532
 
6533
    ;;
6534
esac
6535
 
6536
# configure.host sets slow_pthread_self if the synchronization code should
6537
# try to avoid pthread_self calls by caching thread IDs in a hashtable.
6538
if test "${slow_pthread_self}" = "yes"; then
6539
 
6540
cat >>confdefs.h <<\_ACEOF
6541
#define SLOW_PTHREAD_SELF 1
6542
_ACEOF
6543
 
6544
fi
6545
 
6546
# Check for gc debugging.  This option is handled both here and in the GC.
6547
# Check whether --enable-gc-debug or --disable-gc-debug was given.
6548
if test "${enable_gc_debug+set}" = set; then
6549
  enableval="$enable_gc_debug"
6550
   if test "$enable_gc_debug" = "yes"; then
6551
 
6552
cat >>confdefs.h <<\_ACEOF
6553
#define LIBGCJ_GC_DEBUG 1
6554
_ACEOF
6555
 
6556
  fi
6557
fi;
6558
 
6559
# See if the user has the interpreter included.
6560
# Check whether --enable-interpreter or --disable-interpreter was given.
6561
if test "${enable_interpreter+set}" = set; then
6562
  enableval="$enable_interpreter"
6563
  if test "$enable_interpreter" = yes; then
6564
    # This can also be set in configure.host.
6565
    libgcj_interpreter=yes
6566
  elif test "$enable_interpreter" = no; then
6567
    libgcj_interpreter=no
6568
  fi
6569
fi;
6570
 
6571
if test "$libgcj_interpreter" = yes; then
6572
 
6573
cat >>confdefs.h <<\_ACEOF
6574
#define INTERPRETER 1
6575
_ACEOF
6576
 
6577
fi
6578
INTERPRETER="$libgcj_interpreter"
6579
 
6580
 
6581
echo "$as_me:$LINENO: checking for exception model to use" >&5
6582
echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6583
ac_ext=cc
6584
ac_cpp='$CXXCPP $CPPFLAGS'
6585
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588
 
6589
# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6590
if test "${enable_sjlj_exceptions+set}" = set; then
6591
  enableval="$enable_sjlj_exceptions"
6592
  :
6593
else
6594
  cat > conftest.$ac_ext << EOF
6595
#line 6595 "configure"
6596
struct S { ~S(); };
6597
void bar();
6598
void foo()
6599
{
6600
  S s;
6601
  bar();
6602
}
6603
EOF
6604
old_CXXFLAGS="$CXXFLAGS"
6605
CXXFLAGS=-S
6606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607
  (eval $ac_compile) 2>&5
6608
  ac_status=$?
6609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610
  (exit $ac_status); }; then
6611
  if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6612
    enable_sjlj_exceptions=yes
6613
  elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6614
    enable_sjlj_exceptions=no
6615
  fi
6616
fi
6617
CXXFLAGS="$old_CXXFLAGS"
6618
rm -f conftest*
6619
fi;
6620
if test x$enable_sjlj_exceptions = xyes; then
6621
 
6622
cat >>confdefs.h <<\_ACEOF
6623
#define SJLJ_EXCEPTIONS 1
6624
_ACEOF
6625
 
6626
  ac_exception_model_name=sjlj
6627
elif test x$enable_sjlj_exceptions = xno; then
6628
  ac_exception_model_name="call frame"
6629
else
6630
  { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6631
echo "$as_me: error: unable to detect exception model" >&2;}
6632
   { (exit 1); exit 1; }; }
6633
fi
6634
ac_ext=c
6635
ac_cpp='$CPP $CPPFLAGS'
6636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
 
6640
echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6641
echo "${ECHO_T}$ac_exception_model_name" >&6
6642
 
6643
# If we are non using SJLJ exceptions, and this host does not have support
6644
# for unwinding from a signal handler, enable checked dereferences and divides.
6645
if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6646
  CHECKREFSPEC=-fcheck-references
6647
  DIVIDESPEC=-fuse-divide-subroutine
6648
  EXCEPTIONSPEC=
6649
fi
6650
 
6651
# See if the user wants to disable java.net.  This is the mildly
6652
# ugly way that we admit that target-side configuration sucks.
6653
# Check whether --enable-java-net or --disable-java-net was given.
6654
if test "${enable_java_net+set}" = set; then
6655
  enableval="$enable_java_net"
6656
 
6657
fi;
6658
 
6659
# Whether java.net is built by default can depend on the target.
6660
if test -z "$enable_java_net"; then
6661
   enable_java_net=${enable_java_net_default-yes}
6662
fi
6663
if test "$enable_java_net" = no; then
6664
 
6665
cat >>confdefs.h <<\_ACEOF
6666
#define DISABLE_JAVA_NET 1
6667
_ACEOF
6668
 
6669
fi
6670
 
6671
# See if the user wants to configure without libffi.  Some
6672
# architectures don't support it, and default values are set in
6673
# configure.host.
6674
 
6675
# Check whether --with-libffi or --without-libffi was given.
6676
if test "${with_libffi+set}" = set; then
6677
  withval="$with_libffi"
6678
  :
6679
else
6680
  with_libffi=${with_libffi_default-yes}
6681
fi;
6682
 
6683
LIBFFI=
6684
LIBFFIINCS=
6685
if test "$with_libffi" != no; then
6686
 
6687
cat >>confdefs.h <<\_ACEOF
6688
#define USE_LIBFFI 1
6689
_ACEOF
6690
 
6691
   LIBFFI=../libffi/libffi_convenience.la
6692
   LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6693
fi
6694
 
6695
 
6696
 
6697
# See if the user wants to disable JVMPI support.
6698
# Check whether --enable-jvmpi or --disable-jvmpi was given.
6699
if test "${enable_jvmpi+set}" = set; then
6700
  enableval="$enable_jvmpi"
6701
 
6702
fi;
6703
 
6704
if test "$enable_jvmpi" != no; then
6705
 
6706
cat >>confdefs.h <<\_ACEOF
6707
#define ENABLE_JVMPI 1
6708
_ACEOF
6709
 
6710
fi
6711
 
6712
# If the target is an eCos system, use the appropriate eCos
6713
# I/O routines.
6714
# FIXME: this should not be a local option but a global target
6715
# system; at present there is no eCos target.
6716
TARGET_ECOS=${PROCESS-"no"}
6717
 
6718
# Check whether --with-ecos or --without-ecos was given.
6719
if test "${with_ecos+set}" = set; then
6720
  withval="$with_ecos"
6721
  TARGET_ECOS="$with_ecos"
6722
 
6723
fi;
6724
 
6725
supply_backtrace=no
6726
 
6727
PLATFORM_INNER_NAT_HDRS=
6728
case "$TARGET_ECOS" in
6729
   no) case "$host" in
6730
      *mingw*)
6731
            PLATFORM=Win32
6732
            PLATFORMNET=Win32
6733
            PLATFORMH=win32.h
6734
 
6735
echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6736
echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6737
LD_PROG=`$CC --print-prog-name=ld`
6738
LD_VERSION=`$LD_PROG --version`
6739
LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6740
LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6741
if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6742
  LD_OK="ok"
6743
else
6744
  if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6745
    LD_OK="ok"
6746
  fi
6747
fi
6748
if test "x$LD_OK" != x; then
6749
  echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6750
echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6751
else
6752
  echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6753
echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6754
  { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6755
echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6756
 
6757
cat >>confdefs.h <<\_ACEOF
6758
#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6759
_ACEOF
6760
 
6761
fi
6762
      ;;
6763
      *)
6764
            PLATFORM=Posix
6765
            PLATFORMNET=Posix
6766
            PLATFORMH=posix.h
6767
            PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6768
      ;;
6769
      esac
6770
      ;;
6771
   *)
6772
      PLATFORM=Ecos
6773
      PLATFORMNET=NoNet
6774
 
6775
cat >>confdefs.h <<\_ACEOF
6776
#define ECOS 1
6777
_ACEOF
6778
 
6779
      PLATFORMH=posix.h
6780
      ;;
6781
esac
6782
 
6783
          ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6784
 
6785
 
6786
ac_ext=c
6787
ac_cpp='$CPP $CPPFLAGS'
6788
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6792
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6793
# On Suns, sometimes $CPP names a directory.
6794
if test -n "$CPP" && test -d "$CPP"; then
6795
  CPP=
6796
fi
6797
if test -z "$CPP"; then
6798
  if test "${ac_cv_prog_CPP+set}" = set; then
6799
  echo $ECHO_N "(cached) $ECHO_C" >&6
6800
else
6801
      # Double quotes because CPP needs to be expanded
6802
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6803
    do
6804
      ac_preproc_ok=false
6805
for ac_c_preproc_warn_flag in '' yes
6806
do
6807
  # Use a header file that comes with gcc, so configuring glibc
6808
  # with a fresh cross-compiler works.
6809
  # Prefer  to  if __STDC__ is defined, since
6810
  #  exists even on freestanding compilers.
6811
  # On the NeXT, cc -E runs the code through the compiler's parser,
6812
  # not just through cpp. "Syntax error" is here to catch this case.
6813
  cat >conftest.$ac_ext <<_ACEOF
6814
/* confdefs.h.  */
6815
_ACEOF
6816
cat confdefs.h >>conftest.$ac_ext
6817
cat >>conftest.$ac_ext <<_ACEOF
6818
/* end confdefs.h.  */
6819
#ifdef __STDC__
6820
# include 
6821
#else
6822
# include 
6823
#endif
6824
                     Syntax error
6825
_ACEOF
6826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828
  ac_status=$?
6829
  grep -v '^ *+' conftest.er1 >conftest.err
6830
  rm -f conftest.er1
6831
  cat conftest.err >&5
6832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833
  (exit $ac_status); } >/dev/null; then
6834
  if test -s conftest.err; then
6835
    ac_cpp_err=$ac_c_preproc_warn_flag
6836
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6837
  else
6838
    ac_cpp_err=
6839
  fi
6840
else
6841
  ac_cpp_err=yes
6842
fi
6843
if test -z "$ac_cpp_err"; then
6844
  :
6845
else
6846
  echo "$as_me: failed program was:" >&5
6847
sed 's/^/| /' conftest.$ac_ext >&5
6848
 
6849
  # Broken: fails on valid input.
6850
continue
6851
fi
6852
rm -f conftest.err conftest.$ac_ext
6853
 
6854
  # OK, works on sane cases.  Now check whether non-existent headers
6855
  # can be detected and how.
6856
  cat >conftest.$ac_ext <<_ACEOF
6857
/* confdefs.h.  */
6858
_ACEOF
6859
cat confdefs.h >>conftest.$ac_ext
6860
cat >>conftest.$ac_ext <<_ACEOF
6861
/* end confdefs.h.  */
6862
#include 
6863
_ACEOF
6864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866
  ac_status=$?
6867
  grep -v '^ *+' conftest.er1 >conftest.err
6868
  rm -f conftest.er1
6869
  cat conftest.err >&5
6870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871
  (exit $ac_status); } >/dev/null; then
6872
  if test -s conftest.err; then
6873
    ac_cpp_err=$ac_c_preproc_warn_flag
6874
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875
  else
6876
    ac_cpp_err=
6877
  fi
6878
else
6879
  ac_cpp_err=yes
6880
fi
6881
if test -z "$ac_cpp_err"; then
6882
  # Broken: success on invalid input.
6883
continue
6884
else
6885
  echo "$as_me: failed program was:" >&5
6886
sed 's/^/| /' conftest.$ac_ext >&5
6887
 
6888
  # Passes both tests.
6889
ac_preproc_ok=:
6890
break
6891
fi
6892
rm -f conftest.err conftest.$ac_ext
6893
 
6894
done
6895
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896
rm -f conftest.err conftest.$ac_ext
6897
if $ac_preproc_ok; then
6898
  break
6899
fi
6900
 
6901
    done
6902
    ac_cv_prog_CPP=$CPP
6903
 
6904
fi
6905
  CPP=$ac_cv_prog_CPP
6906
else
6907
  ac_cv_prog_CPP=$CPP
6908
fi
6909
echo "$as_me:$LINENO: result: $CPP" >&5
6910
echo "${ECHO_T}$CPP" >&6
6911
ac_preproc_ok=false
6912
for ac_c_preproc_warn_flag in '' yes
6913
do
6914
  # Use a header file that comes with gcc, so configuring glibc
6915
  # with a fresh cross-compiler works.
6916
  # Prefer  to  if __STDC__ is defined, since
6917
  #  exists even on freestanding compilers.
6918
  # On the NeXT, cc -E runs the code through the compiler's parser,
6919
  # not just through cpp. "Syntax error" is here to catch this case.
6920
  cat >conftest.$ac_ext <<_ACEOF
6921
/* confdefs.h.  */
6922
_ACEOF
6923
cat confdefs.h >>conftest.$ac_ext
6924
cat >>conftest.$ac_ext <<_ACEOF
6925
/* end confdefs.h.  */
6926
#ifdef __STDC__
6927
# include 
6928
#else
6929
# include 
6930
#endif
6931
                     Syntax error
6932
_ACEOF
6933
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6934
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6935
  ac_status=$?
6936
  grep -v '^ *+' conftest.er1 >conftest.err
6937
  rm -f conftest.er1
6938
  cat conftest.err >&5
6939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940
  (exit $ac_status); } >/dev/null; then
6941
  if test -s conftest.err; then
6942
    ac_cpp_err=$ac_c_preproc_warn_flag
6943
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6944
  else
6945
    ac_cpp_err=
6946
  fi
6947
else
6948
  ac_cpp_err=yes
6949
fi
6950
if test -z "$ac_cpp_err"; then
6951
  :
6952
else
6953
  echo "$as_me: failed program was:" >&5
6954
sed 's/^/| /' conftest.$ac_ext >&5
6955
 
6956
  # Broken: fails on valid input.
6957
continue
6958
fi
6959
rm -f conftest.err conftest.$ac_ext
6960
 
6961
  # OK, works on sane cases.  Now check whether non-existent headers
6962
  # can be detected and how.
6963
  cat >conftest.$ac_ext <<_ACEOF
6964
/* confdefs.h.  */
6965
_ACEOF
6966
cat confdefs.h >>conftest.$ac_ext
6967
cat >>conftest.$ac_ext <<_ACEOF
6968
/* end confdefs.h.  */
6969
#include 
6970
_ACEOF
6971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973
  ac_status=$?
6974
  grep -v '^ *+' conftest.er1 >conftest.err
6975
  rm -f conftest.er1
6976
  cat conftest.err >&5
6977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978
  (exit $ac_status); } >/dev/null; then
6979
  if test -s conftest.err; then
6980
    ac_cpp_err=$ac_c_preproc_warn_flag
6981
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6982
  else
6983
    ac_cpp_err=
6984
  fi
6985
else
6986
  ac_cpp_err=yes
6987
fi
6988
if test -z "$ac_cpp_err"; then
6989
  # Broken: success on invalid input.
6990
continue
6991
else
6992
  echo "$as_me: failed program was:" >&5
6993
sed 's/^/| /' conftest.$ac_ext >&5
6994
 
6995
  # Passes both tests.
6996
ac_preproc_ok=:
6997
break
6998
fi
6999
rm -f conftest.err conftest.$ac_ext
7000
 
7001
done
7002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003
rm -f conftest.err conftest.$ac_ext
7004
if $ac_preproc_ok; then
7005
  :
7006
else
7007
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7008
See \`config.log' for more details." >&5
7009
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7010
See \`config.log' for more details." >&2;}
7011
   { (exit 1); exit 1; }; }
7012
fi
7013
 
7014
ac_ext=c
7015
ac_cpp='$CPP $CPPFLAGS'
7016
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
 
7020
 
7021
echo "$as_me:$LINENO: checking for egrep" >&5
7022
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7023
if test "${ac_cv_prog_egrep+set}" = set; then
7024
  echo $ECHO_N "(cached) $ECHO_C" >&6
7025
else
7026
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7027
    then ac_cv_prog_egrep='grep -E'
7028
    else ac_cv_prog_egrep='egrep'
7029
    fi
7030
fi
7031
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7032
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7033
 EGREP=$ac_cv_prog_egrep
7034
 
7035
 
7036
cat >conftest.$ac_ext <<_ACEOF
7037
/* confdefs.h.  */
7038
_ACEOF
7039
cat confdefs.h >>conftest.$ac_ext
7040
cat >>conftest.$ac_ext <<_ACEOF
7041
/* end confdefs.h.  */
7042
#include 
7043
 
7044
_ACEOF
7045
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046
  $EGREP "uint32_t" >/dev/null 2>&1; then
7047
 
7048
cat >>confdefs.h <<\_ACEOF
7049
#define HAVE_INT32_DEFINED 1
7050
_ACEOF
7051
 
7052
fi
7053
rm -f conftest*
7054
 
7055
cat >conftest.$ac_ext <<_ACEOF
7056
/* confdefs.h.  */
7057
_ACEOF
7058
cat confdefs.h >>conftest.$ac_ext
7059
cat >>conftest.$ac_ext <<_ACEOF
7060
/* end confdefs.h.  */
7061
#include 
7062
 
7063
_ACEOF
7064
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065
  $EGREP "uint32_t" >/dev/null 2>&1; then
7066
 
7067
cat >>confdefs.h <<\_ACEOF
7068
#define HAVE_INT32_DEFINED 1
7069
_ACEOF
7070
 
7071
fi
7072
rm -f conftest*
7073
 
7074
cat >conftest.$ac_ext <<_ACEOF
7075
/* confdefs.h.  */
7076
_ACEOF
7077
cat confdefs.h >>conftest.$ac_ext
7078
cat >>conftest.$ac_ext <<_ACEOF
7079
/* end confdefs.h.  */
7080
#include 
7081
 
7082
_ACEOF
7083
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084
  $EGREP "u_int32_t" >/dev/null 2>&1; then
7085
 
7086
cat >>confdefs.h <<\_ACEOF
7087
#define HAVE_BSD_INT32_DEFINED 1
7088
_ACEOF
7089
 
7090
fi
7091
rm -f conftest*
7092
 
7093
cat >conftest.$ac_ext <<_ACEOF
7094
/* confdefs.h.  */
7095
_ACEOF
7096
cat confdefs.h >>conftest.$ac_ext
7097
cat >>conftest.$ac_ext <<_ACEOF
7098
/* end confdefs.h.  */
7099
#include 
7100
 
7101
_ACEOF
7102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103
  $EGREP "u_int32_t" >/dev/null 2>&1; then
7104
 
7105
cat >>confdefs.h <<\_ACEOF
7106
#define HAVE_BSD_INT32_DEFINED 1
7107
_ACEOF
7108
 
7109
fi
7110
rm -f conftest*
7111
 
7112
 
7113
 
7114
 
7115
if test "$PLATFORM" = Win32; then
7116
  USING_WIN32_PLATFORM_TRUE=
7117
  USING_WIN32_PLATFORM_FALSE='#'
7118
else
7119
  USING_WIN32_PLATFORM_TRUE='#'
7120
  USING_WIN32_PLATFORM_FALSE=
7121
fi
7122
 
7123
 
7124
 
7125
if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7126
  USING_POSIX_PLATFORM_TRUE=
7127
  USING_POSIX_PLATFORM_FALSE='#'
7128
else
7129
  USING_POSIX_PLATFORM_TRUE='#'
7130
  USING_POSIX_PLATFORM_FALSE=
7131
fi
7132
 
7133
 
7134
case "$host" in
7135
  *-darwin*) DARWIN_CRT=true ;;
7136
  *) DARWIN_CRT=false ;;
7137
esac
7138
 
7139
 
7140
if $DARWIN_CRT; then
7141
  USING_DARWIN_CRT_TRUE=
7142
  USING_DARWIN_CRT_FALSE='#'
7143
else
7144
  USING_DARWIN_CRT_TRUE='#'
7145
  USING_DARWIN_CRT_FALSE=
7146
fi
7147
 
7148
 
7149
# These may not be defined in a non-ANS conformant embedded system.
7150
# FIXME: Should these case a runtime exception in that case?
7151
cat >conftest.$ac_ext <<_ACEOF
7152
/* confdefs.h.  */
7153
_ACEOF
7154
cat confdefs.h >>conftest.$ac_ext
7155
cat >>conftest.$ac_ext <<_ACEOF
7156
/* end confdefs.h.  */
7157
#include 
7158
 
7159
_ACEOF
7160
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7161
  $EGREP "mktime" >/dev/null 2>&1; then
7162
 
7163
cat >>confdefs.h <<\_ACEOF
7164
#define HAVE_MKTIME 1
7165
_ACEOF
7166
 
7167
fi
7168
rm -f conftest*
7169
 
7170
cat >conftest.$ac_ext <<_ACEOF
7171
/* confdefs.h.  */
7172
_ACEOF
7173
cat confdefs.h >>conftest.$ac_ext
7174
cat >>conftest.$ac_ext <<_ACEOF
7175
/* end confdefs.h.  */
7176
#include 
7177
 
7178
_ACEOF
7179
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180
  $EGREP "localtime" >/dev/null 2>&1; then
7181
 
7182
cat >>confdefs.h <<\_ACEOF
7183
#define HAVE_LOCALTIME 1
7184
_ACEOF
7185
 
7186
fi
7187
rm -f conftest*
7188
 
7189
 
7190
# Create the subdirectory for natFile.cc, or the attempt
7191
# to create the link will fail.
7192
test -d java || mkdir java
7193
test -d java/io || mkdir java/io
7194
test -d gnu || mkdir gnu
7195
          ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7196
 
7197
 
7198
# Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7199
test -d java/lang || mkdir java/lang
7200
          ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7201
 
7202
          ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7203
 
7204
 
7205
# Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7206
test -d java/net || mkdir java/net
7207
          ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7208
 
7209
          ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7210
 
7211
 
7212
# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7213
test -d gnu/java || mkdir gnu/java
7214
test -d gnu/java/net || mkdir gnu/java/net
7215
          ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7216
 
7217
          ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7218
 
7219
 
7220
# Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7221
test -d gnu/java/nio || mkdir gnu/java/nio
7222
          ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7223
 
7224
          ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7225
 
7226
test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7227
          ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7228
 
7229
 
7230
case "${host}" in
7231
    *mingw*)
7232
      SYSTEMSPEC="-lgdi32 -lws2_32"
7233
      if test "${with_win32_nlsapi}" = "unicows"; then
7234
        SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7235
      fi
7236
    ;;
7237
    *)
7238
      SYSTEMSPEC=
7239
    ;;
7240
esac
7241
 
7242
 
7243
LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7244
 
7245
 
7246
 
7247
# Check whether --with-system-zlib or --without-system-zlib was given.
7248
if test "${with_system_zlib+set}" = set; then
7249
  withval="$with_system_zlib"
7250
 
7251
fi;
7252
ZLIBSPEC=
7253
 
7254
ZLIBTESTSPEC=
7255
 
7256
 
7257
echo "$as_me:$LINENO: checking for X" >&5
7258
echo $ECHO_N "checking for X... $ECHO_C" >&6
7259
 
7260
 
7261
# Check whether --with-x or --without-x was given.
7262
if test "${with_x+set}" = set; then
7263
  withval="$with_x"
7264
 
7265
fi;
7266
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7267
if test "x$with_x" = xno; then
7268
  # The user explicitly disabled X.
7269
  have_x=disabled
7270
else
7271
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7272
    # Both variables are already set.
7273
    have_x=yes
7274
  else
7275
    if test "${ac_cv_have_x+set}" = set; then
7276
  echo $ECHO_N "(cached) $ECHO_C" >&6
7277
else
7278
  # One or both of the vars are not set, and there is no cached value.
7279
ac_x_includes=no ac_x_libraries=no
7280
rm -fr conftest.dir
7281
if mkdir conftest.dir; then
7282
  cd conftest.dir
7283
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7284
  cat >Imakefile <<'_ACEOF'
7285
acfindx:
7286
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7287
_ACEOF
7288
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7289
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7290
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7291
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7292
    for ac_extension in a so sl; do
7293
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7294
         test -f $ac_im_libdir/libX11.$ac_extension; then
7295
        ac_im_usrlibdir=$ac_im_libdir; break
7296
      fi
7297
    done
7298
    # Screen out bogus values from the imake configuration.  They are
7299
    # bogus both because they are the default anyway, and because
7300
    # using them would break gcc on systems where it needs fixed includes.
7301
    case $ac_im_incroot in
7302
        /usr/include) ;;
7303
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7304
    esac
7305
    case $ac_im_usrlibdir in
7306
        /usr/lib | /lib) ;;
7307
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7308
    esac
7309
  fi
7310
  cd ..
7311
  rm -fr conftest.dir
7312
fi
7313
 
7314
# Standard set of common directories for X headers.
7315
# Check X11 before X11Rn because it is often a symlink to the current release.
7316
ac_x_header_dirs='
7317
/usr/X11/include
7318
/usr/X11R6/include
7319
/usr/X11R5/include
7320
/usr/X11R4/include
7321
 
7322
/usr/include/X11
7323
/usr/include/X11R6
7324
/usr/include/X11R5
7325
/usr/include/X11R4
7326
 
7327
/usr/local/X11/include
7328
/usr/local/X11R6/include
7329
/usr/local/X11R5/include
7330
/usr/local/X11R4/include
7331
 
7332
/usr/local/include/X11
7333
/usr/local/include/X11R6
7334
/usr/local/include/X11R5
7335
/usr/local/include/X11R4
7336
 
7337
/usr/X386/include
7338
/usr/x386/include
7339
/usr/XFree86/include/X11
7340
 
7341
/usr/include
7342
/usr/local/include
7343
/usr/unsupported/include
7344
/usr/athena/include
7345
/usr/local/x11r5/include
7346
/usr/lpp/Xamples/include
7347
 
7348
/usr/openwin/include
7349
/usr/openwin/share/include'
7350
 
7351
if test "$ac_x_includes" = no; then
7352
  # Guess where to find include files, by looking for Intrinsic.h.
7353
  # First, try using that file with no special directory specified.
7354
  cat >conftest.$ac_ext <<_ACEOF
7355
/* confdefs.h.  */
7356
_ACEOF
7357
cat confdefs.h >>conftest.$ac_ext
7358
cat >>conftest.$ac_ext <<_ACEOF
7359
/* end confdefs.h.  */
7360
#include 
7361
_ACEOF
7362
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364
  ac_status=$?
7365
  grep -v '^ *+' conftest.er1 >conftest.err
7366
  rm -f conftest.er1
7367
  cat conftest.err >&5
7368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369
  (exit $ac_status); } >/dev/null; then
7370
  if test -s conftest.err; then
7371
    ac_cpp_err=$ac_c_preproc_warn_flag
7372
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7373
  else
7374
    ac_cpp_err=
7375
  fi
7376
else
7377
  ac_cpp_err=yes
7378
fi
7379
if test -z "$ac_cpp_err"; then
7380
  # We can compile using X headers with no special include directory.
7381
ac_x_includes=
7382
else
7383
  echo "$as_me: failed program was:" >&5
7384
sed 's/^/| /' conftest.$ac_ext >&5
7385
 
7386
  for ac_dir in $ac_x_header_dirs; do
7387
  if test -r "$ac_dir/X11/Intrinsic.h"; then
7388
    ac_x_includes=$ac_dir
7389
    break
7390
  fi
7391
done
7392
fi
7393
rm -f conftest.err conftest.$ac_ext
7394
fi # $ac_x_includes = no
7395
 
7396
if test "$ac_x_libraries" = no; then
7397
  # Check for the libraries.
7398
  # See if we find them without any special options.
7399
  # Don't add to $LIBS permanently.
7400
  ac_save_LIBS=$LIBS
7401
  LIBS="-lXt $LIBS"
7402
  if test x$gcc_no_link = xyes; then
7403
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7404
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7405
   { (exit 1); exit 1; }; }
7406
fi
7407
cat >conftest.$ac_ext <<_ACEOF
7408
/* confdefs.h.  */
7409
_ACEOF
7410
cat confdefs.h >>conftest.$ac_ext
7411
cat >>conftest.$ac_ext <<_ACEOF
7412
/* end confdefs.h.  */
7413
#include 
7414
int
7415
main ()
7416
{
7417
XtMalloc (0)
7418
  ;
7419
  return 0;
7420
}
7421
_ACEOF
7422
rm -f conftest.$ac_objext conftest$ac_exeext
7423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424
  (eval $ac_link) 2>conftest.er1
7425
  ac_status=$?
7426
  grep -v '^ *+' conftest.er1 >conftest.err
7427
  rm -f conftest.er1
7428
  cat conftest.err >&5
7429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430
  (exit $ac_status); } &&
7431
         { ac_try='test -z "$ac_c_werror_flag"
7432
                         || test ! -s conftest.err'
7433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434
  (eval $ac_try) 2>&5
7435
  ac_status=$?
7436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437
  (exit $ac_status); }; } &&
7438
         { ac_try='test -s conftest$ac_exeext'
7439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440
  (eval $ac_try) 2>&5
7441
  ac_status=$?
7442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443
  (exit $ac_status); }; }; then
7444
  LIBS=$ac_save_LIBS
7445
# We can link X programs with no special library path.
7446
ac_x_libraries=
7447
else
7448
  echo "$as_me: failed program was:" >&5
7449
sed 's/^/| /' conftest.$ac_ext >&5
7450
 
7451
LIBS=$ac_save_LIBS
7452
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7453
do
7454
  # Don't even attempt the hair of trying to link an X program!
7455
  for ac_extension in a so sl; do
7456
    if test -r $ac_dir/libXt.$ac_extension; then
7457
      ac_x_libraries=$ac_dir
7458
      break 2
7459
    fi
7460
  done
7461
done
7462
fi
7463
rm -f conftest.err conftest.$ac_objext \
7464
      conftest$ac_exeext conftest.$ac_ext
7465
fi # $ac_x_libraries = no
7466
 
7467
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7468
  # Didn't find X anywhere.  Cache the known absence of X.
7469
  ac_cv_have_x="have_x=no"
7470
else
7471
  # Record where we found X for the cache.
7472
  ac_cv_have_x="have_x=yes \
7473
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7474
fi
7475
fi
7476
 
7477
  fi
7478
  eval "$ac_cv_have_x"
7479
fi # $with_x != no
7480
 
7481
if test "$have_x" != yes; then
7482
  echo "$as_me:$LINENO: result: $have_x" >&5
7483
echo "${ECHO_T}$have_x" >&6
7484
  no_x=yes
7485
else
7486
  # If each of the values was on the command line, it overrides each guess.
7487
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7488
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7489
  # Update the cache value to reflect the command line values.
7490
  ac_cv_have_x="have_x=yes \
7491
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7492
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7493
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7494
fi
7495
 
7496
if test "$no_x" = yes; then
7497
  # Not all programs may use this symbol, but it does not hurt to define it.
7498
 
7499
cat >>confdefs.h <<\_ACEOF
7500
#define X_DISPLAY_MISSING 1
7501
_ACEOF
7502
 
7503
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7504
else
7505
  if test -n "$x_includes"; then
7506
    X_CFLAGS="$X_CFLAGS -I$x_includes"
7507
  fi
7508
 
7509
  # It would also be nice to do this for all -L options, not just this one.
7510
  if test -n "$x_libraries"; then
7511
    X_LIBS="$X_LIBS -L$x_libraries"
7512
    # For Solaris; some versions of Sun CC require a space after -R and
7513
    # others require no space.  Words are not sufficient . . . .
7514
    case `(uname -sr) 2>/dev/null` in
7515
    "SunOS 5"*)
7516
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7517
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7518
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7519
      if test x$gcc_no_link = xyes; then
7520
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7521
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7522
   { (exit 1); exit 1; }; }
7523
fi
7524
cat >conftest.$ac_ext <<_ACEOF
7525
/* confdefs.h.  */
7526
_ACEOF
7527
cat confdefs.h >>conftest.$ac_ext
7528
cat >>conftest.$ac_ext <<_ACEOF
7529
/* end confdefs.h.  */
7530
 
7531
int
7532
main ()
7533
{
7534
 
7535
  ;
7536
  return 0;
7537
}
7538
_ACEOF
7539
rm -f conftest.$ac_objext conftest$ac_exeext
7540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541
  (eval $ac_link) 2>conftest.er1
7542
  ac_status=$?
7543
  grep -v '^ *+' conftest.er1 >conftest.err
7544
  rm -f conftest.er1
7545
  cat conftest.err >&5
7546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547
  (exit $ac_status); } &&
7548
         { ac_try='test -z "$ac_c_werror_flag"
7549
                         || test ! -s conftest.err'
7550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551
  (eval $ac_try) 2>&5
7552
  ac_status=$?
7553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554
  (exit $ac_status); }; } &&
7555
         { ac_try='test -s conftest$ac_exeext'
7556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557
  (eval $ac_try) 2>&5
7558
  ac_status=$?
7559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560
  (exit $ac_status); }; }; then
7561
  ac_R_nospace=yes
7562
else
7563
  echo "$as_me: failed program was:" >&5
7564
sed 's/^/| /' conftest.$ac_ext >&5
7565
 
7566
ac_R_nospace=no
7567
fi
7568
rm -f conftest.err conftest.$ac_objext \
7569
      conftest$ac_exeext conftest.$ac_ext
7570
      if test $ac_R_nospace = yes; then
7571
        echo "$as_me:$LINENO: result: no" >&5
7572
echo "${ECHO_T}no" >&6
7573
        X_LIBS="$X_LIBS -R$x_libraries"
7574
      else
7575
        LIBS="$ac_xsave_LIBS -R $x_libraries"
7576
        if test x$gcc_no_link = xyes; then
7577
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7578
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7579
   { (exit 1); exit 1; }; }
7580
fi
7581
cat >conftest.$ac_ext <<_ACEOF
7582
/* confdefs.h.  */
7583
_ACEOF
7584
cat confdefs.h >>conftest.$ac_ext
7585
cat >>conftest.$ac_ext <<_ACEOF
7586
/* end confdefs.h.  */
7587
 
7588
int
7589
main ()
7590
{
7591
 
7592
  ;
7593
  return 0;
7594
}
7595
_ACEOF
7596
rm -f conftest.$ac_objext conftest$ac_exeext
7597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598
  (eval $ac_link) 2>conftest.er1
7599
  ac_status=$?
7600
  grep -v '^ *+' conftest.er1 >conftest.err
7601
  rm -f conftest.er1
7602
  cat conftest.err >&5
7603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604
  (exit $ac_status); } &&
7605
         { ac_try='test -z "$ac_c_werror_flag"
7606
                         || test ! -s conftest.err'
7607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608
  (eval $ac_try) 2>&5
7609
  ac_status=$?
7610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611
  (exit $ac_status); }; } &&
7612
         { ac_try='test -s conftest$ac_exeext'
7613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614
  (eval $ac_try) 2>&5
7615
  ac_status=$?
7616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617
  (exit $ac_status); }; }; then
7618
  ac_R_space=yes
7619
else
7620
  echo "$as_me: failed program was:" >&5
7621
sed 's/^/| /' conftest.$ac_ext >&5
7622
 
7623
ac_R_space=no
7624
fi
7625
rm -f conftest.err conftest.$ac_objext \
7626
      conftest$ac_exeext conftest.$ac_ext
7627
        if test $ac_R_space = yes; then
7628
          echo "$as_me:$LINENO: result: yes" >&5
7629
echo "${ECHO_T}yes" >&6
7630
          X_LIBS="$X_LIBS -R $x_libraries"
7631
        else
7632
          echo "$as_me:$LINENO: result: neither works" >&5
7633
echo "${ECHO_T}neither works" >&6
7634
        fi
7635
      fi
7636
      LIBS=$ac_xsave_LIBS
7637
    esac
7638
  fi
7639
 
7640
  # Check for system-dependent libraries X programs must link with.
7641
  # Do this before checking for the system-independent R6 libraries
7642
  # (-lICE), since we may need -lsocket or whatever for X linking.
7643
 
7644
  if test "$ISC" = yes; then
7645
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7646
  else
7647
    # Martyn Johnson says this is needed for Ultrix, if the X
7648
    # libraries were built with DECnet support.  And Karl Berry says
7649
    # the Alpha needs dnet_stub (dnet does not exist).
7650
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7651
    if test x$gcc_no_link = xyes; then
7652
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7653
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7654
   { (exit 1); exit 1; }; }
7655
fi
7656
cat >conftest.$ac_ext <<_ACEOF
7657
/* confdefs.h.  */
7658
_ACEOF
7659
cat confdefs.h >>conftest.$ac_ext
7660
cat >>conftest.$ac_ext <<_ACEOF
7661
/* end confdefs.h.  */
7662
 
7663
/* Override any gcc2 internal prototype to avoid an error.  */
7664
#ifdef __cplusplus
7665
extern "C"
7666
#endif
7667
/* We use char because int might match the return type of a gcc2
7668
   builtin and then its argument prototype would still apply.  */
7669
char XOpenDisplay ();
7670
int
7671
main ()
7672
{
7673
XOpenDisplay ();
7674
  ;
7675
  return 0;
7676
}
7677
_ACEOF
7678
rm -f conftest.$ac_objext conftest$ac_exeext
7679
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680
  (eval $ac_link) 2>conftest.er1
7681
  ac_status=$?
7682
  grep -v '^ *+' conftest.er1 >conftest.err
7683
  rm -f conftest.er1
7684
  cat conftest.err >&5
7685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686
  (exit $ac_status); } &&
7687
         { ac_try='test -z "$ac_c_werror_flag"
7688
                         || test ! -s conftest.err'
7689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690
  (eval $ac_try) 2>&5
7691
  ac_status=$?
7692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693
  (exit $ac_status); }; } &&
7694
         { ac_try='test -s conftest$ac_exeext'
7695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696
  (eval $ac_try) 2>&5
7697
  ac_status=$?
7698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
  (exit $ac_status); }; }; then
7700
  :
7701
else
7702
  echo "$as_me: failed program was:" >&5
7703
sed 's/^/| /' conftest.$ac_ext >&5
7704
 
7705
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7706
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7707
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7708
  echo $ECHO_N "(cached) $ECHO_C" >&6
7709
else
7710
  ac_check_lib_save_LIBS=$LIBS
7711
LIBS="-ldnet  $LIBS"
7712
if test x$gcc_no_link = xyes; then
7713
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7714
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7715
   { (exit 1); exit 1; }; }
7716
fi
7717
cat >conftest.$ac_ext <<_ACEOF
7718
/* confdefs.h.  */
7719
_ACEOF
7720
cat confdefs.h >>conftest.$ac_ext
7721
cat >>conftest.$ac_ext <<_ACEOF
7722
/* end confdefs.h.  */
7723
 
7724
/* Override any gcc2 internal prototype to avoid an error.  */
7725
#ifdef __cplusplus
7726
extern "C"
7727
#endif
7728
/* We use char because int might match the return type of a gcc2
7729
   builtin and then its argument prototype would still apply.  */
7730
char dnet_ntoa ();
7731
int
7732
main ()
7733
{
7734
dnet_ntoa ();
7735
  ;
7736
  return 0;
7737
}
7738
_ACEOF
7739
rm -f conftest.$ac_objext conftest$ac_exeext
7740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741
  (eval $ac_link) 2>conftest.er1
7742
  ac_status=$?
7743
  grep -v '^ *+' conftest.er1 >conftest.err
7744
  rm -f conftest.er1
7745
  cat conftest.err >&5
7746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
  (exit $ac_status); } &&
7748
         { ac_try='test -z "$ac_c_werror_flag"
7749
                         || test ! -s conftest.err'
7750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751
  (eval $ac_try) 2>&5
7752
  ac_status=$?
7753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754
  (exit $ac_status); }; } &&
7755
         { ac_try='test -s conftest$ac_exeext'
7756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757
  (eval $ac_try) 2>&5
7758
  ac_status=$?
7759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760
  (exit $ac_status); }; }; then
7761
  ac_cv_lib_dnet_dnet_ntoa=yes
7762
else
7763
  echo "$as_me: failed program was:" >&5
7764
sed 's/^/| /' conftest.$ac_ext >&5
7765
 
7766
ac_cv_lib_dnet_dnet_ntoa=no
7767
fi
7768
rm -f conftest.err conftest.$ac_objext \
7769
      conftest$ac_exeext conftest.$ac_ext
7770
LIBS=$ac_check_lib_save_LIBS
7771
fi
7772
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7773
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7774
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7775
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7776
fi
7777
 
7778
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7779
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7780
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7781
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7782
  echo $ECHO_N "(cached) $ECHO_C" >&6
7783
else
7784
  ac_check_lib_save_LIBS=$LIBS
7785
LIBS="-ldnet_stub  $LIBS"
7786
if test x$gcc_no_link = xyes; then
7787
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7788
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7789
   { (exit 1); exit 1; }; }
7790
fi
7791
cat >conftest.$ac_ext <<_ACEOF
7792
/* confdefs.h.  */
7793
_ACEOF
7794
cat confdefs.h >>conftest.$ac_ext
7795
cat >>conftest.$ac_ext <<_ACEOF
7796
/* end confdefs.h.  */
7797
 
7798
/* Override any gcc2 internal prototype to avoid an error.  */
7799
#ifdef __cplusplus
7800
extern "C"
7801
#endif
7802
/* We use char because int might match the return type of a gcc2
7803
   builtin and then its argument prototype would still apply.  */
7804
char dnet_ntoa ();
7805
int
7806
main ()
7807
{
7808
dnet_ntoa ();
7809
  ;
7810
  return 0;
7811
}
7812
_ACEOF
7813
rm -f conftest.$ac_objext conftest$ac_exeext
7814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815
  (eval $ac_link) 2>conftest.er1
7816
  ac_status=$?
7817
  grep -v '^ *+' conftest.er1 >conftest.err
7818
  rm -f conftest.er1
7819
  cat conftest.err >&5
7820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821
  (exit $ac_status); } &&
7822
         { ac_try='test -z "$ac_c_werror_flag"
7823
                         || test ! -s conftest.err'
7824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825
  (eval $ac_try) 2>&5
7826
  ac_status=$?
7827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828
  (exit $ac_status); }; } &&
7829
         { ac_try='test -s conftest$ac_exeext'
7830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831
  (eval $ac_try) 2>&5
7832
  ac_status=$?
7833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834
  (exit $ac_status); }; }; then
7835
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7836
else
7837
  echo "$as_me: failed program was:" >&5
7838
sed 's/^/| /' conftest.$ac_ext >&5
7839
 
7840
ac_cv_lib_dnet_stub_dnet_ntoa=no
7841
fi
7842
rm -f conftest.err conftest.$ac_objext \
7843
      conftest$ac_exeext conftest.$ac_ext
7844
LIBS=$ac_check_lib_save_LIBS
7845
fi
7846
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7847
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7848
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7849
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7850
fi
7851
 
7852
    fi
7853
fi
7854
rm -f conftest.err conftest.$ac_objext \
7855
      conftest$ac_exeext conftest.$ac_ext
7856
    LIBS="$ac_xsave_LIBS"
7857
 
7858
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7859
    # to get the SysV transport functions.
7860
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7861
    # needs -lnsl.
7862
    # The nsl library prevents programs from opening the X display
7863
    # on Irix 5.2, according to T.E. Dickey.
7864
    # The functions gethostbyname, getservbyname, and inet_addr are
7865
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7866
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
7867
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7868
if test "${ac_cv_func_gethostbyname+set}" = set; then
7869
  echo $ECHO_N "(cached) $ECHO_C" >&6
7870
else
7871
  if test x$gcc_no_link = xyes; then
7872
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874
   { (exit 1); exit 1; }; }
7875
fi
7876
cat >conftest.$ac_ext <<_ACEOF
7877
/* confdefs.h.  */
7878
_ACEOF
7879
cat confdefs.h >>conftest.$ac_ext
7880
cat >>conftest.$ac_ext <<_ACEOF
7881
/* end confdefs.h.  */
7882
/* Define gethostbyname to an innocuous variant, in case  declares gethostbyname.
7883
   For example, HP-UX 11i  declares gettimeofday.  */
7884
#define gethostbyname innocuous_gethostbyname
7885
 
7886
/* System header to define __stub macros and hopefully few prototypes,
7887
    which can conflict with char gethostbyname (); below.
7888
    Prefer  to  if __STDC__ is defined, since
7889
     exists even on freestanding compilers.  */
7890
 
7891
#ifdef __STDC__
7892
# include 
7893
#else
7894
# include 
7895
#endif
7896
 
7897
#undef gethostbyname
7898
 
7899
/* Override any gcc2 internal prototype to avoid an error.  */
7900
#ifdef __cplusplus
7901
extern "C"
7902
{
7903
#endif
7904
/* We use char because int might match the return type of a gcc2
7905
   builtin and then its argument prototype would still apply.  */
7906
char gethostbyname ();
7907
/* The GNU C library defines this for functions which it implements
7908
    to always fail with ENOSYS.  Some functions are actually named
7909
    something starting with __ and the normal name is an alias.  */
7910
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7911
choke me
7912
#else
7913
char (*f) () = gethostbyname;
7914
#endif
7915
#ifdef __cplusplus
7916
}
7917
#endif
7918
 
7919
int
7920
main ()
7921
{
7922
return f != gethostbyname;
7923
  ;
7924
  return 0;
7925
}
7926
_ACEOF
7927
rm -f conftest.$ac_objext conftest$ac_exeext
7928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929
  (eval $ac_link) 2>conftest.er1
7930
  ac_status=$?
7931
  grep -v '^ *+' conftest.er1 >conftest.err
7932
  rm -f conftest.er1
7933
  cat conftest.err >&5
7934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935
  (exit $ac_status); } &&
7936
         { ac_try='test -z "$ac_c_werror_flag"
7937
                         || test ! -s conftest.err'
7938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939
  (eval $ac_try) 2>&5
7940
  ac_status=$?
7941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942
  (exit $ac_status); }; } &&
7943
         { ac_try='test -s conftest$ac_exeext'
7944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945
  (eval $ac_try) 2>&5
7946
  ac_status=$?
7947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948
  (exit $ac_status); }; }; then
7949
  ac_cv_func_gethostbyname=yes
7950
else
7951
  echo "$as_me: failed program was:" >&5
7952
sed 's/^/| /' conftest.$ac_ext >&5
7953
 
7954
ac_cv_func_gethostbyname=no
7955
fi
7956
rm -f conftest.err conftest.$ac_objext \
7957
      conftest$ac_exeext conftest.$ac_ext
7958
fi
7959
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7960
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7961
 
7962
    if test $ac_cv_func_gethostbyname = no; then
7963
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7964
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7965
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7966
  echo $ECHO_N "(cached) $ECHO_C" >&6
7967
else
7968
  ac_check_lib_save_LIBS=$LIBS
7969
LIBS="-lnsl  $LIBS"
7970
if test x$gcc_no_link = xyes; then
7971
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7972
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7973
   { (exit 1); exit 1; }; }
7974
fi
7975
cat >conftest.$ac_ext <<_ACEOF
7976
/* confdefs.h.  */
7977
_ACEOF
7978
cat confdefs.h >>conftest.$ac_ext
7979
cat >>conftest.$ac_ext <<_ACEOF
7980
/* end confdefs.h.  */
7981
 
7982
/* Override any gcc2 internal prototype to avoid an error.  */
7983
#ifdef __cplusplus
7984
extern "C"
7985
#endif
7986
/* We use char because int might match the return type of a gcc2
7987
   builtin and then its argument prototype would still apply.  */
7988
char gethostbyname ();
7989
int
7990
main ()
7991
{
7992
gethostbyname ();
7993
  ;
7994
  return 0;
7995
}
7996
_ACEOF
7997
rm -f conftest.$ac_objext conftest$ac_exeext
7998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999
  (eval $ac_link) 2>conftest.er1
8000
  ac_status=$?
8001
  grep -v '^ *+' conftest.er1 >conftest.err
8002
  rm -f conftest.er1
8003
  cat conftest.err >&5
8004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005
  (exit $ac_status); } &&
8006
         { ac_try='test -z "$ac_c_werror_flag"
8007
                         || test ! -s conftest.err'
8008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009
  (eval $ac_try) 2>&5
8010
  ac_status=$?
8011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012
  (exit $ac_status); }; } &&
8013
         { ac_try='test -s conftest$ac_exeext'
8014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015
  (eval $ac_try) 2>&5
8016
  ac_status=$?
8017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018
  (exit $ac_status); }; }; then
8019
  ac_cv_lib_nsl_gethostbyname=yes
8020
else
8021
  echo "$as_me: failed program was:" >&5
8022
sed 's/^/| /' conftest.$ac_ext >&5
8023
 
8024
ac_cv_lib_nsl_gethostbyname=no
8025
fi
8026
rm -f conftest.err conftest.$ac_objext \
8027
      conftest$ac_exeext conftest.$ac_ext
8028
LIBS=$ac_check_lib_save_LIBS
8029
fi
8030
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8031
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8032
if test $ac_cv_lib_nsl_gethostbyname = yes; then
8033
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8034
fi
8035
 
8036
      if test $ac_cv_lib_nsl_gethostbyname = no; then
8037
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8038
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8039
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8040
  echo $ECHO_N "(cached) $ECHO_C" >&6
8041
else
8042
  ac_check_lib_save_LIBS=$LIBS
8043
LIBS="-lbsd  $LIBS"
8044
if test x$gcc_no_link = xyes; then
8045
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8046
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8047
   { (exit 1); exit 1; }; }
8048
fi
8049
cat >conftest.$ac_ext <<_ACEOF
8050
/* confdefs.h.  */
8051
_ACEOF
8052
cat confdefs.h >>conftest.$ac_ext
8053
cat >>conftest.$ac_ext <<_ACEOF
8054
/* end confdefs.h.  */
8055
 
8056
/* Override any gcc2 internal prototype to avoid an error.  */
8057
#ifdef __cplusplus
8058
extern "C"
8059
#endif
8060
/* We use char because int might match the return type of a gcc2
8061
   builtin and then its argument prototype would still apply.  */
8062
char gethostbyname ();
8063
int
8064
main ()
8065
{
8066
gethostbyname ();
8067
  ;
8068
  return 0;
8069
}
8070
_ACEOF
8071
rm -f conftest.$ac_objext conftest$ac_exeext
8072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8073
  (eval $ac_link) 2>conftest.er1
8074
  ac_status=$?
8075
  grep -v '^ *+' conftest.er1 >conftest.err
8076
  rm -f conftest.er1
8077
  cat conftest.err >&5
8078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079
  (exit $ac_status); } &&
8080
         { ac_try='test -z "$ac_c_werror_flag"
8081
                         || test ! -s conftest.err'
8082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083
  (eval $ac_try) 2>&5
8084
  ac_status=$?
8085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086
  (exit $ac_status); }; } &&
8087
         { ac_try='test -s conftest$ac_exeext'
8088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089
  (eval $ac_try) 2>&5
8090
  ac_status=$?
8091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092
  (exit $ac_status); }; }; then
8093
  ac_cv_lib_bsd_gethostbyname=yes
8094
else
8095
  echo "$as_me: failed program was:" >&5
8096
sed 's/^/| /' conftest.$ac_ext >&5
8097
 
8098
ac_cv_lib_bsd_gethostbyname=no
8099
fi
8100
rm -f conftest.err conftest.$ac_objext \
8101
      conftest$ac_exeext conftest.$ac_ext
8102
LIBS=$ac_check_lib_save_LIBS
8103
fi
8104
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8105
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8106
if test $ac_cv_lib_bsd_gethostbyname = yes; then
8107
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8108
fi
8109
 
8110
      fi
8111
    fi
8112
 
8113
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8114
    # socket/setsockopt and other routines are undefined under SCO ODT
8115
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8116
    # on later versions), says Simon Leinen: it contains gethostby*
8117
    # variants that don't use the name server (or something).  -lsocket
8118
    # must be given before -lnsl if both are needed.  We assume that
8119
    # if connect needs -lnsl, so does gethostbyname.
8120
    echo "$as_me:$LINENO: checking for connect" >&5
8121
echo $ECHO_N "checking for connect... $ECHO_C" >&6
8122
if test "${ac_cv_func_connect+set}" = set; then
8123
  echo $ECHO_N "(cached) $ECHO_C" >&6
8124
else
8125
  if test x$gcc_no_link = xyes; then
8126
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8127
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8128
   { (exit 1); exit 1; }; }
8129
fi
8130
cat >conftest.$ac_ext <<_ACEOF
8131
/* confdefs.h.  */
8132
_ACEOF
8133
cat confdefs.h >>conftest.$ac_ext
8134
cat >>conftest.$ac_ext <<_ACEOF
8135
/* end confdefs.h.  */
8136
/* Define connect to an innocuous variant, in case  declares connect.
8137
   For example, HP-UX 11i  declares gettimeofday.  */
8138
#define connect innocuous_connect
8139
 
8140
/* System header to define __stub macros and hopefully few prototypes,
8141
    which can conflict with char connect (); below.
8142
    Prefer  to  if __STDC__ is defined, since
8143
     exists even on freestanding compilers.  */
8144
 
8145
#ifdef __STDC__
8146
# include 
8147
#else
8148
# include 
8149
#endif
8150
 
8151
#undef connect
8152
 
8153
/* Override any gcc2 internal prototype to avoid an error.  */
8154
#ifdef __cplusplus
8155
extern "C"
8156
{
8157
#endif
8158
/* We use char because int might match the return type of a gcc2
8159
   builtin and then its argument prototype would still apply.  */
8160
char connect ();
8161
/* The GNU C library defines this for functions which it implements
8162
    to always fail with ENOSYS.  Some functions are actually named
8163
    something starting with __ and the normal name is an alias.  */
8164
#if defined (__stub_connect) || defined (__stub___connect)
8165
choke me
8166
#else
8167
char (*f) () = connect;
8168
#endif
8169
#ifdef __cplusplus
8170
}
8171
#endif
8172
 
8173
int
8174
main ()
8175
{
8176
return f != connect;
8177
  ;
8178
  return 0;
8179
}
8180
_ACEOF
8181
rm -f conftest.$ac_objext conftest$ac_exeext
8182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183
  (eval $ac_link) 2>conftest.er1
8184
  ac_status=$?
8185
  grep -v '^ *+' conftest.er1 >conftest.err
8186
  rm -f conftest.er1
8187
  cat conftest.err >&5
8188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
  (exit $ac_status); } &&
8190
         { ac_try='test -z "$ac_c_werror_flag"
8191
                         || test ! -s conftest.err'
8192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193
  (eval $ac_try) 2>&5
8194
  ac_status=$?
8195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196
  (exit $ac_status); }; } &&
8197
         { ac_try='test -s conftest$ac_exeext'
8198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199
  (eval $ac_try) 2>&5
8200
  ac_status=$?
8201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202
  (exit $ac_status); }; }; then
8203
  ac_cv_func_connect=yes
8204
else
8205
  echo "$as_me: failed program was:" >&5
8206
sed 's/^/| /' conftest.$ac_ext >&5
8207
 
8208
ac_cv_func_connect=no
8209
fi
8210
rm -f conftest.err conftest.$ac_objext \
8211
      conftest$ac_exeext conftest.$ac_ext
8212
fi
8213
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8214
echo "${ECHO_T}$ac_cv_func_connect" >&6
8215
 
8216
    if test $ac_cv_func_connect = no; then
8217
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8218
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8219
if test "${ac_cv_lib_socket_connect+set}" = set; then
8220
  echo $ECHO_N "(cached) $ECHO_C" >&6
8221
else
8222
  ac_check_lib_save_LIBS=$LIBS
8223
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8224
if test x$gcc_no_link = xyes; then
8225
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8226
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8227
   { (exit 1); exit 1; }; }
8228
fi
8229
cat >conftest.$ac_ext <<_ACEOF
8230
/* confdefs.h.  */
8231
_ACEOF
8232
cat confdefs.h >>conftest.$ac_ext
8233
cat >>conftest.$ac_ext <<_ACEOF
8234
/* end confdefs.h.  */
8235
 
8236
/* Override any gcc2 internal prototype to avoid an error.  */
8237
#ifdef __cplusplus
8238
extern "C"
8239
#endif
8240
/* We use char because int might match the return type of a gcc2
8241
   builtin and then its argument prototype would still apply.  */
8242
char connect ();
8243
int
8244
main ()
8245
{
8246
connect ();
8247
  ;
8248
  return 0;
8249
}
8250
_ACEOF
8251
rm -f conftest.$ac_objext conftest$ac_exeext
8252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253
  (eval $ac_link) 2>conftest.er1
8254
  ac_status=$?
8255
  grep -v '^ *+' conftest.er1 >conftest.err
8256
  rm -f conftest.er1
8257
  cat conftest.err >&5
8258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259
  (exit $ac_status); } &&
8260
         { ac_try='test -z "$ac_c_werror_flag"
8261
                         || test ! -s conftest.err'
8262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263
  (eval $ac_try) 2>&5
8264
  ac_status=$?
8265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
  (exit $ac_status); }; } &&
8267
         { ac_try='test -s conftest$ac_exeext'
8268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269
  (eval $ac_try) 2>&5
8270
  ac_status=$?
8271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272
  (exit $ac_status); }; }; then
8273
  ac_cv_lib_socket_connect=yes
8274
else
8275
  echo "$as_me: failed program was:" >&5
8276
sed 's/^/| /' conftest.$ac_ext >&5
8277
 
8278
ac_cv_lib_socket_connect=no
8279
fi
8280
rm -f conftest.err conftest.$ac_objext \
8281
      conftest$ac_exeext conftest.$ac_ext
8282
LIBS=$ac_check_lib_save_LIBS
8283
fi
8284
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8285
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8286
if test $ac_cv_lib_socket_connect = yes; then
8287
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8288
fi
8289
 
8290
    fi
8291
 
8292
    # Guillermo Gomez says -lposix is necessary on A/UX.
8293
    echo "$as_me:$LINENO: checking for remove" >&5
8294
echo $ECHO_N "checking for remove... $ECHO_C" >&6
8295
if test "${ac_cv_func_remove+set}" = set; then
8296
  echo $ECHO_N "(cached) $ECHO_C" >&6
8297
else
8298
  if test x$gcc_no_link = xyes; then
8299
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8300
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8301
   { (exit 1); exit 1; }; }
8302
fi
8303
cat >conftest.$ac_ext <<_ACEOF
8304
/* confdefs.h.  */
8305
_ACEOF
8306
cat confdefs.h >>conftest.$ac_ext
8307
cat >>conftest.$ac_ext <<_ACEOF
8308
/* end confdefs.h.  */
8309
/* Define remove to an innocuous variant, in case  declares remove.
8310
   For example, HP-UX 11i  declares gettimeofday.  */
8311
#define remove innocuous_remove
8312
 
8313
/* System header to define __stub macros and hopefully few prototypes,
8314
    which can conflict with char remove (); below.
8315
    Prefer  to  if __STDC__ is defined, since
8316
     exists even on freestanding compilers.  */
8317
 
8318
#ifdef __STDC__
8319
# include 
8320
#else
8321
# include 
8322
#endif
8323
 
8324
#undef remove
8325
 
8326
/* Override any gcc2 internal prototype to avoid an error.  */
8327
#ifdef __cplusplus
8328
extern "C"
8329
{
8330
#endif
8331
/* We use char because int might match the return type of a gcc2
8332
   builtin and then its argument prototype would still apply.  */
8333
char remove ();
8334
/* The GNU C library defines this for functions which it implements
8335
    to always fail with ENOSYS.  Some functions are actually named
8336
    something starting with __ and the normal name is an alias.  */
8337
#if defined (__stub_remove) || defined (__stub___remove)
8338
choke me
8339
#else
8340
char (*f) () = remove;
8341
#endif
8342
#ifdef __cplusplus
8343
}
8344
#endif
8345
 
8346
int
8347
main ()
8348
{
8349
return f != remove;
8350
  ;
8351
  return 0;
8352
}
8353
_ACEOF
8354
rm -f conftest.$ac_objext conftest$ac_exeext
8355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356
  (eval $ac_link) 2>conftest.er1
8357
  ac_status=$?
8358
  grep -v '^ *+' conftest.er1 >conftest.err
8359
  rm -f conftest.er1
8360
  cat conftest.err >&5
8361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
  (exit $ac_status); } &&
8363
         { ac_try='test -z "$ac_c_werror_flag"
8364
                         || test ! -s conftest.err'
8365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366
  (eval $ac_try) 2>&5
8367
  ac_status=$?
8368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369
  (exit $ac_status); }; } &&
8370
         { ac_try='test -s conftest$ac_exeext'
8371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372
  (eval $ac_try) 2>&5
8373
  ac_status=$?
8374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375
  (exit $ac_status); }; }; then
8376
  ac_cv_func_remove=yes
8377
else
8378
  echo "$as_me: failed program was:" >&5
8379
sed 's/^/| /' conftest.$ac_ext >&5
8380
 
8381
ac_cv_func_remove=no
8382
fi
8383
rm -f conftest.err conftest.$ac_objext \
8384
      conftest$ac_exeext conftest.$ac_ext
8385
fi
8386
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8387
echo "${ECHO_T}$ac_cv_func_remove" >&6
8388
 
8389
    if test $ac_cv_func_remove = no; then
8390
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8391
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8392
if test "${ac_cv_lib_posix_remove+set}" = set; then
8393
  echo $ECHO_N "(cached) $ECHO_C" >&6
8394
else
8395
  ac_check_lib_save_LIBS=$LIBS
8396
LIBS="-lposix  $LIBS"
8397
if test x$gcc_no_link = xyes; then
8398
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8399
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8400
   { (exit 1); exit 1; }; }
8401
fi
8402
cat >conftest.$ac_ext <<_ACEOF
8403
/* confdefs.h.  */
8404
_ACEOF
8405
cat confdefs.h >>conftest.$ac_ext
8406
cat >>conftest.$ac_ext <<_ACEOF
8407
/* end confdefs.h.  */
8408
 
8409
/* Override any gcc2 internal prototype to avoid an error.  */
8410
#ifdef __cplusplus
8411
extern "C"
8412
#endif
8413
/* We use char because int might match the return type of a gcc2
8414
   builtin and then its argument prototype would still apply.  */
8415
char remove ();
8416
int
8417
main ()
8418
{
8419
remove ();
8420
  ;
8421
  return 0;
8422
}
8423
_ACEOF
8424
rm -f conftest.$ac_objext conftest$ac_exeext
8425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426
  (eval $ac_link) 2>conftest.er1
8427
  ac_status=$?
8428
  grep -v '^ *+' conftest.er1 >conftest.err
8429
  rm -f conftest.er1
8430
  cat conftest.err >&5
8431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432
  (exit $ac_status); } &&
8433
         { ac_try='test -z "$ac_c_werror_flag"
8434
                         || test ! -s conftest.err'
8435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436
  (eval $ac_try) 2>&5
8437
  ac_status=$?
8438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439
  (exit $ac_status); }; } &&
8440
         { ac_try='test -s conftest$ac_exeext'
8441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442
  (eval $ac_try) 2>&5
8443
  ac_status=$?
8444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445
  (exit $ac_status); }; }; then
8446
  ac_cv_lib_posix_remove=yes
8447
else
8448
  echo "$as_me: failed program was:" >&5
8449
sed 's/^/| /' conftest.$ac_ext >&5
8450
 
8451
ac_cv_lib_posix_remove=no
8452
fi
8453
rm -f conftest.err conftest.$ac_objext \
8454
      conftest$ac_exeext conftest.$ac_ext
8455
LIBS=$ac_check_lib_save_LIBS
8456
fi
8457
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8458
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8459
if test $ac_cv_lib_posix_remove = yes; then
8460
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8461
fi
8462
 
8463
    fi
8464
 
8465
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8466
    echo "$as_me:$LINENO: checking for shmat" >&5
8467
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8468
if test "${ac_cv_func_shmat+set}" = set; then
8469
  echo $ECHO_N "(cached) $ECHO_C" >&6
8470
else
8471
  if test x$gcc_no_link = xyes; then
8472
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8473
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8474
   { (exit 1); exit 1; }; }
8475
fi
8476
cat >conftest.$ac_ext <<_ACEOF
8477
/* confdefs.h.  */
8478
_ACEOF
8479
cat confdefs.h >>conftest.$ac_ext
8480
cat >>conftest.$ac_ext <<_ACEOF
8481
/* end confdefs.h.  */
8482
/* Define shmat to an innocuous variant, in case  declares shmat.
8483
   For example, HP-UX 11i  declares gettimeofday.  */
8484
#define shmat innocuous_shmat
8485
 
8486
/* System header to define __stub macros and hopefully few prototypes,
8487
    which can conflict with char shmat (); below.
8488
    Prefer  to  if __STDC__ is defined, since
8489
     exists even on freestanding compilers.  */
8490
 
8491
#ifdef __STDC__
8492
# include 
8493
#else
8494
# include 
8495
#endif
8496
 
8497
#undef shmat
8498
 
8499
/* Override any gcc2 internal prototype to avoid an error.  */
8500
#ifdef __cplusplus
8501
extern "C"
8502
{
8503
#endif
8504
/* We use char because int might match the return type of a gcc2
8505
   builtin and then its argument prototype would still apply.  */
8506
char shmat ();
8507
/* The GNU C library defines this for functions which it implements
8508
    to always fail with ENOSYS.  Some functions are actually named
8509
    something starting with __ and the normal name is an alias.  */
8510
#if defined (__stub_shmat) || defined (__stub___shmat)
8511
choke me
8512
#else
8513
char (*f) () = shmat;
8514
#endif
8515
#ifdef __cplusplus
8516
}
8517
#endif
8518
 
8519
int
8520
main ()
8521
{
8522
return f != shmat;
8523
  ;
8524
  return 0;
8525
}
8526
_ACEOF
8527
rm -f conftest.$ac_objext conftest$ac_exeext
8528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529
  (eval $ac_link) 2>conftest.er1
8530
  ac_status=$?
8531
  grep -v '^ *+' conftest.er1 >conftest.err
8532
  rm -f conftest.er1
8533
  cat conftest.err >&5
8534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535
  (exit $ac_status); } &&
8536
         { ac_try='test -z "$ac_c_werror_flag"
8537
                         || test ! -s conftest.err'
8538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539
  (eval $ac_try) 2>&5
8540
  ac_status=$?
8541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542
  (exit $ac_status); }; } &&
8543
         { ac_try='test -s conftest$ac_exeext'
8544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545
  (eval $ac_try) 2>&5
8546
  ac_status=$?
8547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548
  (exit $ac_status); }; }; then
8549
  ac_cv_func_shmat=yes
8550
else
8551
  echo "$as_me: failed program was:" >&5
8552
sed 's/^/| /' conftest.$ac_ext >&5
8553
 
8554
ac_cv_func_shmat=no
8555
fi
8556
rm -f conftest.err conftest.$ac_objext \
8557
      conftest$ac_exeext conftest.$ac_ext
8558
fi
8559
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8560
echo "${ECHO_T}$ac_cv_func_shmat" >&6
8561
 
8562
    if test $ac_cv_func_shmat = no; then
8563
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8564
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8565
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8566
  echo $ECHO_N "(cached) $ECHO_C" >&6
8567
else
8568
  ac_check_lib_save_LIBS=$LIBS
8569
LIBS="-lipc  $LIBS"
8570
if test x$gcc_no_link = xyes; then
8571
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8572
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8573
   { (exit 1); exit 1; }; }
8574
fi
8575
cat >conftest.$ac_ext <<_ACEOF
8576
/* confdefs.h.  */
8577
_ACEOF
8578
cat confdefs.h >>conftest.$ac_ext
8579
cat >>conftest.$ac_ext <<_ACEOF
8580
/* end confdefs.h.  */
8581
 
8582
/* Override any gcc2 internal prototype to avoid an error.  */
8583
#ifdef __cplusplus
8584
extern "C"
8585
#endif
8586
/* We use char because int might match the return type of a gcc2
8587
   builtin and then its argument prototype would still apply.  */
8588
char shmat ();
8589
int
8590
main ()
8591
{
8592
shmat ();
8593
  ;
8594
  return 0;
8595
}
8596
_ACEOF
8597
rm -f conftest.$ac_objext conftest$ac_exeext
8598
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599
  (eval $ac_link) 2>conftest.er1
8600
  ac_status=$?
8601
  grep -v '^ *+' conftest.er1 >conftest.err
8602
  rm -f conftest.er1
8603
  cat conftest.err >&5
8604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
  (exit $ac_status); } &&
8606
         { ac_try='test -z "$ac_c_werror_flag"
8607
                         || test ! -s conftest.err'
8608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609
  (eval $ac_try) 2>&5
8610
  ac_status=$?
8611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612
  (exit $ac_status); }; } &&
8613
         { ac_try='test -s conftest$ac_exeext'
8614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615
  (eval $ac_try) 2>&5
8616
  ac_status=$?
8617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618
  (exit $ac_status); }; }; then
8619
  ac_cv_lib_ipc_shmat=yes
8620
else
8621
  echo "$as_me: failed program was:" >&5
8622
sed 's/^/| /' conftest.$ac_ext >&5
8623
 
8624
ac_cv_lib_ipc_shmat=no
8625
fi
8626
rm -f conftest.err conftest.$ac_objext \
8627
      conftest$ac_exeext conftest.$ac_ext
8628
LIBS=$ac_check_lib_save_LIBS
8629
fi
8630
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8631
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8632
if test $ac_cv_lib_ipc_shmat = yes; then
8633
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8634
fi
8635
 
8636
    fi
8637
  fi
8638
 
8639
  # Check for libraries that X11R6 Xt/Xaw programs need.
8640
  ac_save_LDFLAGS=$LDFLAGS
8641
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8642
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8643
  # check for ICE first), but we must link in the order -lSM -lICE or
8644
  # we get undefined symbols.  So assume we have SM if we have ICE.
8645
  # These have to be linked with before -lX11, unlike the other
8646
  # libraries we check for below, so use a different variable.
8647
  # John Interrante, Karl Berry
8648
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8649
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8650
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8651
  echo $ECHO_N "(cached) $ECHO_C" >&6
8652
else
8653
  ac_check_lib_save_LIBS=$LIBS
8654
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8655
if test x$gcc_no_link = xyes; then
8656
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8657
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8658
   { (exit 1); exit 1; }; }
8659
fi
8660
cat >conftest.$ac_ext <<_ACEOF
8661
/* confdefs.h.  */
8662
_ACEOF
8663
cat confdefs.h >>conftest.$ac_ext
8664
cat >>conftest.$ac_ext <<_ACEOF
8665
/* end confdefs.h.  */
8666
 
8667
/* Override any gcc2 internal prototype to avoid an error.  */
8668
#ifdef __cplusplus
8669
extern "C"
8670
#endif
8671
/* We use char because int might match the return type of a gcc2
8672
   builtin and then its argument prototype would still apply.  */
8673
char IceConnectionNumber ();
8674
int
8675
main ()
8676
{
8677
IceConnectionNumber ();
8678
  ;
8679
  return 0;
8680
}
8681
_ACEOF
8682
rm -f conftest.$ac_objext conftest$ac_exeext
8683
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684
  (eval $ac_link) 2>conftest.er1
8685
  ac_status=$?
8686
  grep -v '^ *+' conftest.er1 >conftest.err
8687
  rm -f conftest.er1
8688
  cat conftest.err >&5
8689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690
  (exit $ac_status); } &&
8691
         { ac_try='test -z "$ac_c_werror_flag"
8692
                         || test ! -s conftest.err'
8693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694
  (eval $ac_try) 2>&5
8695
  ac_status=$?
8696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697
  (exit $ac_status); }; } &&
8698
         { ac_try='test -s conftest$ac_exeext'
8699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700
  (eval $ac_try) 2>&5
8701
  ac_status=$?
8702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703
  (exit $ac_status); }; }; then
8704
  ac_cv_lib_ICE_IceConnectionNumber=yes
8705
else
8706
  echo "$as_me: failed program was:" >&5
8707
sed 's/^/| /' conftest.$ac_ext >&5
8708
 
8709
ac_cv_lib_ICE_IceConnectionNumber=no
8710
fi
8711
rm -f conftest.err conftest.$ac_objext \
8712
      conftest$ac_exeext conftest.$ac_ext
8713
LIBS=$ac_check_lib_save_LIBS
8714
fi
8715
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8716
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8717
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8718
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8719
fi
8720
 
8721
  LDFLAGS=$ac_save_LDFLAGS
8722
 
8723
fi
8724
 
8725
 
8726
# determine whether to enable the cairo GTK Graphics2D backend
8727
# Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8728
if test "${enable_gtk_cairo+set}" = set; then
8729
  enableval="$enable_gtk_cairo"
8730
 
8731
fi;
8732
 
8733
 
8734
if test "x${enable_gtk_cairo}" = xyes; then
8735
  GTK_CAIRO_TRUE=
8736
  GTK_CAIRO_FALSE='#'
8737
else
8738
  GTK_CAIRO_TRUE='#'
8739
  GTK_CAIRO_FALSE=
8740
fi
8741
 
8742
if test "x${enable_gtk_cairo}" = xyes
8743
then
8744
 
8745
  succeeded=no
8746
 
8747
  if test -z "$PKG_CONFIG"; then
8748
    # Extract the first word of "pkg-config", so it can be a program name with args.
8749
set dummy pkg-config; ac_word=$2
8750
echo "$as_me:$LINENO: checking for $ac_word" >&5
8751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8753
  echo $ECHO_N "(cached) $ECHO_C" >&6
8754
else
8755
  case $PKG_CONFIG in
8756
  [\\/]* | ?:[\\/]*)
8757
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8758
  ;;
8759
  *)
8760
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761
for as_dir in $PATH
8762
do
8763
  IFS=$as_save_IFS
8764
  test -z "$as_dir" && as_dir=.
8765
  for ac_exec_ext in '' $ac_executable_extensions; do
8766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769
    break 2
8770
  fi
8771
done
8772
done
8773
 
8774
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8775
  ;;
8776
esac
8777
fi
8778
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8779
 
8780
if test -n "$PKG_CONFIG"; then
8781
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8782
echo "${ECHO_T}$PKG_CONFIG" >&6
8783
else
8784
  echo "$as_me:$LINENO: result: no" >&5
8785
echo "${ECHO_T}no" >&6
8786
fi
8787
 
8788
  fi
8789
 
8790
  if test "$PKG_CONFIG" = "no" ; then
8791
     echo "*** The pkg-config script could not be found. Make sure it is"
8792
     echo "*** in your path, or set the PKG_CONFIG environment variable"
8793
     echo "*** to the full path to pkg-config."
8794
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8795
  else
8796
     PKG_CONFIG_MIN_VERSION=0.9.0
8797
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8798
        echo "$as_me:$LINENO: checking for cairo" >&5
8799
echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8800
 
8801
        if $PKG_CONFIG --exists "cairo" ; then
8802
            echo "$as_me:$LINENO: result: yes" >&5
8803
echo "${ECHO_T}yes" >&6
8804
            succeeded=yes
8805
 
8806
            echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8807
echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8808
            CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8809
            echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8810
echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8811
 
8812
            echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8813
echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8814
            CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8815
            echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8816
echo "${ECHO_T}$CAIRO_LIBS" >&6
8817
        else
8818
            CAIRO_CFLAGS=""
8819
            CAIRO_LIBS=""
8820
            ## If we have a custom action on failure, don't print errors, but
8821
            ## do set a variable so people can do so.
8822
            CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8823
            echo $CAIRO_PKG_ERRORS
8824
        fi
8825
 
8826
 
8827
 
8828
     else
8829
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8830
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
8831
     fi
8832
  fi
8833
 
8834
  if test $succeeded = yes; then
8835
     :
8836
  else
8837
     { { echo "$as_me:$LINENO: error: Library requirements (cairo) 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
8838
echo "$as_me: error: Library requirements (cairo) 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;}
8839
   { (exit 1); exit 1; }; }
8840
  fi
8841
 
8842
 
8843
  succeeded=no
8844
 
8845
  if test -z "$PKG_CONFIG"; then
8846
    # Extract the first word of "pkg-config", so it can be a program name with args.
8847
set dummy pkg-config; ac_word=$2
8848
echo "$as_me:$LINENO: checking for $ac_word" >&5
8849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8850
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8851
  echo $ECHO_N "(cached) $ECHO_C" >&6
8852
else
8853
  case $PKG_CONFIG in
8854
  [\\/]* | ?:[\\/]*)
8855
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8856
  ;;
8857
  *)
8858
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859
for as_dir in $PATH
8860
do
8861
  IFS=$as_save_IFS
8862
  test -z "$as_dir" && as_dir=.
8863
  for ac_exec_ext in '' $ac_executable_extensions; do
8864
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867
    break 2
8868
  fi
8869
done
8870
done
8871
 
8872
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8873
  ;;
8874
esac
8875
fi
8876
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8877
 
8878
if test -n "$PKG_CONFIG"; then
8879
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8880
echo "${ECHO_T}$PKG_CONFIG" >&6
8881
else
8882
  echo "$as_me:$LINENO: result: no" >&5
8883
echo "${ECHO_T}no" >&6
8884
fi
8885
 
8886
  fi
8887
 
8888
  if test "$PKG_CONFIG" = "no" ; then
8889
     echo "*** The pkg-config script could not be found. Make sure it is"
8890
     echo "*** in your path, or set the PKG_CONFIG environment variable"
8891
     echo "*** to the full path to pkg-config."
8892
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8893
  else
8894
     PKG_CONFIG_MIN_VERSION=0.9.0
8895
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8896
        echo "$as_me:$LINENO: checking for pangoft2" >&5
8897
echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8898
 
8899
        if $PKG_CONFIG --exists "pangoft2" ; then
8900
            echo "$as_me:$LINENO: result: yes" >&5
8901
echo "${ECHO_T}yes" >&6
8902
            succeeded=yes
8903
 
8904
            echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8905
echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8906
            PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8907
            echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8908
echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8909
 
8910
            echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8911
echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8912
            PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8913
            echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8914
echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8915
        else
8916
            PANGOFT2_CFLAGS=""
8917
            PANGOFT2_LIBS=""
8918
            ## If we have a custom action on failure, don't print errors, but
8919
            ## do set a variable so people can do so.
8920
            PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8921
            echo $PANGOFT2_PKG_ERRORS
8922
        fi
8923
 
8924
 
8925
 
8926
     else
8927
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8928
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
8929
     fi
8930
  fi
8931
 
8932
  if test $succeeded = yes; then
8933
     :
8934
  else
8935
     { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) 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
8936
echo "$as_me: error: Library requirements (pangoft2) 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;}
8937
   { (exit 1); exit 1; }; }
8938
  fi
8939
 
8940
fi
8941
 
8942
 
8943
 
8944
 
8945
 
8946
# FIXME: this should be _libs on some hosts.
8947
libsubdir=.libs
8948
 
8949
# extra LD Flags which are required for targets
8950
case "${host}" in
8951
*-*-darwin[0-7].*)
8952
    # For now we have to disable it on darwin[8-9] because it slows down
8953
    # the linking phase. A possible bug in ld?
8954
    # on Darwin -single_module speeds up loading of the dynamic libraries.
8955
    extra_ldflags_libjava=-Wl,-single_module
8956
    ;;
8957
esac
8958
 
8959
 
8960
# Allow the GC to be disabled.  Can be useful when debugging.
8961
echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8962
echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8963
# Check whether --enable-java-gc or --disable-java-gc was given.
8964
if test "${enable_java_gc+set}" = set; then
8965
  enableval="$enable_java_gc"
8966
  GC=$enableval
8967
else
8968
  GC=boehm
8969
fi;
8970
GCLIBS=
8971
GCINCS=
8972
GCDEPS=
8973
GCSPEC=
8974
JC1GCSPEC=
8975
GCTESTSPEC=
8976
case "$GC" in
8977
 boehm)
8978
    echo "$as_me:$LINENO: result: boehm" >&5
8979
echo "${ECHO_T}boehm" >&6
8980
    GCLIBS=../boehm-gc/libgcjgc_convenience.la
8981
    JC1GCSPEC='-fuse-boehm-gc'
8982
    GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8983
    GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8984
    GCOBJS=boehm.lo
8985
    GCHDR=boehm-gc.h
8986
    # The POSIX thread support needs to know this.
8987
 
8988
cat >>confdefs.h <<\_ACEOF
8989
#define HAVE_BOEHM_GC 1
8990
_ACEOF
8991
 
8992
    ;;
8993
 no)
8994
    echo "$as_me:$LINENO: result: none" >&5
8995
echo "${ECHO_T}none" >&6
8996
    GCHDR=no-gc.h
8997
    ;;
8998
 *)
8999
    { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9000
echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9001
   { (exit 1); exit 1; }; }
9002
    ;;
9003
esac
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
          ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9011
 
9012
 
9013
 
9014
if test "$GC" = boehm; then
9015
  USING_BOEHMGC_TRUE=
9016
  USING_BOEHMGC_FALSE='#'
9017
else
9018
  USING_BOEHMGC_TRUE='#'
9019
  USING_BOEHMGC_FALSE=
9020
fi
9021
 
9022
 
9023
 
9024
if test "$GC" = no; then
9025
  USING_NOGC_TRUE=
9026
  USING_NOGC_FALSE='#'
9027
else
9028
  USING_NOGC_TRUE='#'
9029
  USING_NOGC_FALSE=
9030
fi
9031
 
9032
 
9033
 
9034
echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9035
echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9036
THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9037
echo "$as_me:$LINENO: result: $THREADS" >&5
9038
echo "${ECHO_T}$THREADS" >&6
9039
 
9040
case "$THREADS" in
9041
 no | none | single)
9042
    THREADS=none
9043
    ;;
9044
 posix | posix95 | pthreads)
9045
    THREADS=posix
9046
    case "$host" in
9047
     *-*-linux*)
9048
 
9049
cat >>confdefs.h <<\_ACEOF
9050
#define LINUX_THREADS 1
9051
_ACEOF
9052
 
9053
        ;;
9054
    esac
9055
    ;;
9056
 win32)
9057
    ;;
9058
 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9059
    { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9060
echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9061
   { (exit 1); exit 1; }; }
9062
    ;;
9063
 *)
9064
    { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9065
echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9066
   { (exit 1); exit 1; }; }
9067
    ;;
9068
esac
9069
 
9070
THREADCXXFLAGS=
9071
THREADLDFLAGS=
9072
THREADLIBS=
9073
THREADINCS=
9074
THREADDEPS=
9075
THREADH=
9076
THREADSPEC=
9077
case "$THREADS" in
9078
 posix)
9079
    case "$host" in
9080
     *-*-cygwin*)
9081
        # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9082
        ;;
9083
     *-*-freebsd[1234]*)
9084
        # Before FreeBSD 5, it didn't have -lpthread (or any library which
9085
        # merely adds pthread_* functions) but it does have a -pthread switch
9086
        # which is required at link-time to select -lc_r *instead* of -lc.
9087
        THREADLDFLAGS=-pthread
9088
        # Don't set THREADSPEC here as might be expected since -pthread is
9089
        # not processed when found within a spec file, it must come from
9090
        # the command line.  For now, the user must provide the -pthread
9091
        # switch to link code compiled with gcj.  In future, consider adding
9092
        # support for weak references to pthread_* functions ala gthr.h API.
9093
        THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9094
        ;;
9095
     *-*-freebsd*)
9096
        # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9097
        # systems which support threads and -lpthread.
9098
        THREADLDFLAGS=-pthread
9099
        THREADSPEC=-lpthread
9100
        ;;
9101
     alpha*-dec-osf*)
9102
        THREADCXXFLAGS=-pthread
9103
        # boehm-gc needs some functions from librt, so link that too.
9104
        THREADLIBS='-lpthread -lrt'
9105
        THREADSPEC='-lpthread -lrt'
9106
        ;;
9107
     *)
9108
        THREADLIBS=-lpthread
9109
        THREADSPEC=-lpthread
9110
        ;;
9111
    esac
9112
    THREADH=posix-threads.h
9113
    # MIT pthreads doesn't seem to have the mutexattr functions.
9114
    # But for now we don't check for it.  We just assume you aren't
9115
    # using MIT pthreads.
9116
 
9117
cat >>confdefs.h <<\_ACEOF
9118
#define HAVE_PTHREAD_MUTEXATTR_INIT 1
9119
_ACEOF
9120
 
9121
 
9122
    # If we're using the Boehm GC, then we happen to know that it
9123
    # defines _REENTRANT, so we don't bother.  Eww.
9124
    if test "$GC" != boehm; then
9125
 
9126
cat >>confdefs.h <<\_ACEOF
9127
#define _REENTRANT 1
9128
_ACEOF
9129
 
9130
    fi
9131
 
9132
cat >>confdefs.h <<\_ACEOF
9133
#define _POSIX_PTHREAD_SEMANTICS 1
9134
_ACEOF
9135
 
9136
    ;;
9137
 
9138
 win32)
9139
    THREADH=win32-threads.h
9140
    ;;
9141
 
9142
 none)
9143
    THREADH=no-threads.h
9144
    ;;
9145
esac
9146
          ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9147
 
9148
 
9149
 
9150
 
9151
 
9152
 
9153
 
9154
 
9155
 
9156
if test "$THREADS" = posix; then
9157
  USING_POSIX_THREADS_TRUE=
9158
  USING_POSIX_THREADS_FALSE='#'
9159
else
9160
  USING_POSIX_THREADS_TRUE='#'
9161
  USING_POSIX_THREADS_FALSE=
9162
fi
9163
 
9164
 
9165
 
9166
if test "$THREADS" = win32; then
9167
  USING_WIN32_THREADS_TRUE=
9168
  USING_WIN32_THREADS_FALSE='#'
9169
else
9170
  USING_WIN32_THREADS_TRUE='#'
9171
  USING_WIN32_THREADS_FALSE=
9172
fi
9173
 
9174
 
9175
 
9176
if test "$THREADS" = none; then
9177
  USING_NO_THREADS_TRUE=
9178
  USING_NO_THREADS_FALSE='#'
9179
else
9180
  USING_NO_THREADS_TRUE='#'
9181
  USING_NO_THREADS_FALSE=
9182
fi
9183
 
9184
 
9185
if test -d sysdep; then true; else mkdir sysdep; fi
9186
          ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9187
 
9188
          ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9189
 
9190
          ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9191
 
9192
 
9193
HASH_SYNC_SPEC=
9194
# Hash synchronization is only useful with posix threads right now.
9195
if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9196
   HASH_SYNC_SPEC=-fhash-synchronization
9197
 
9198
cat >>confdefs.h <<\_ACEOF
9199
#define JV_HASH_SYNCHRONIZATION 1
9200
_ACEOF
9201
 
9202
fi
9203
 
9204
 
9205
 
9206
 
9207
if test "$GCC" = yes; then
9208
  USING_GCC_TRUE=
9209
  USING_GCC_FALSE='#'
9210
else
9211
  USING_GCC_TRUE='#'
9212
  USING_GCC_FALSE=
9213
fi
9214
 
9215
 
9216
# We're in the tree with gcc, and need to include some of its headers.
9217
GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9218
 
9219
if test "x${with_newlib}" = "xyes"; then
9220
   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9221
   # may not work correctly, because the compiler may not be able to
9222
   # link executables.
9223
 
9224
   # We assume newlib.  This lets us hard-code the functions we know
9225
   # we'll have.
9226
 
9227
cat >>confdefs.h <<\_ACEOF
9228
#define HAVE_MEMMOVE 1
9229
_ACEOF
9230
 
9231
 
9232
cat >>confdefs.h <<\_ACEOF
9233
#define HAVE_MEMCPY 1
9234
_ACEOF
9235
 
9236
 
9237
cat >>confdefs.h <<\_ACEOF
9238
#define HAVE_STRERROR 1
9239
_ACEOF
9240
 
9241
 
9242
cat >>confdefs.h <<\_ACEOF
9243
#define HAVE_TIME 1
9244
_ACEOF
9245
 
9246
 
9247
cat >>confdefs.h <<\_ACEOF
9248
#define HAVE_GMTIME_R 1
9249
_ACEOF
9250
 
9251
 
9252
cat >>confdefs.h <<\_ACEOF
9253
#define HAVE_LOCALTIME_R 1
9254
_ACEOF
9255
 
9256
 
9257
cat >>confdefs.h <<\_ACEOF
9258
#define HAVE_USLEEP_DECL 1
9259
_ACEOF
9260
 
9261
   # This is only for POSIX threads.
9262
 
9263
cat >>confdefs.h <<\_ACEOF
9264
#define HAVE_PTHREAD_MUTEXATTR_INIT 1
9265
_ACEOF
9266
 
9267
   # We also assume we are using gcc, which provides alloca.
9268
   cat >>confdefs.h <<\_ACEOF
9269
#define HAVE_ALLOCA 1
9270
_ACEOF
9271
 
9272
 
9273
   # Assume we do not have getuid and friends.
9274
 
9275
cat >>confdefs.h <<\_ACEOF
9276
#define NO_GETUID 1
9277
_ACEOF
9278
 
9279
   PLATFORMNET=NoNet
9280
else
9281
 
9282
 
9283
 
9284
 
9285
 
9286
 
9287
 
9288
 
9289
 
9290
 
9291
 
9292
 
9293
 
9294
 
9295
 
9296
 
9297
 
9298
 
9299
 
9300
 
9301
 
9302
 
9303
 
9304
 
9305
 
9306
 
9307
 
9308
 
9309
 
9310
 
9311
 
9312
 
9313
for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9314
                   gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9315
                   access stat mkdir rename rmdir unlink realpath utime chmod \
9316
                   nl_langinfo setlocale \
9317
                   inet_pton uname inet_ntoa \
9318
                   fork execvp pipe sigaction ftruncate
9319
do
9320
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9321
echo "$as_me:$LINENO: checking for $ac_func" >&5
9322
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9323
if eval "test \"\${$as_ac_var+set}\" = set"; then
9324
  echo $ECHO_N "(cached) $ECHO_C" >&6
9325
else
9326
  if test x$gcc_no_link = xyes; then
9327
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9328
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9329
   { (exit 1); exit 1; }; }
9330
fi
9331
cat >conftest.$ac_ext <<_ACEOF
9332
/* confdefs.h.  */
9333
_ACEOF
9334
cat confdefs.h >>conftest.$ac_ext
9335
cat >>conftest.$ac_ext <<_ACEOF
9336
/* end confdefs.h.  */
9337
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
9338
   For example, HP-UX 11i  declares gettimeofday.  */
9339
#define $ac_func innocuous_$ac_func
9340
 
9341
/* System header to define __stub macros and hopefully few prototypes,
9342
    which can conflict with char $ac_func (); below.
9343
    Prefer  to  if __STDC__ is defined, since
9344
     exists even on freestanding compilers.  */
9345
 
9346
#ifdef __STDC__
9347
# include 
9348
#else
9349
# include 
9350
#endif
9351
 
9352
#undef $ac_func
9353
 
9354
/* Override any gcc2 internal prototype to avoid an error.  */
9355
#ifdef __cplusplus
9356
extern "C"
9357
{
9358
#endif
9359
/* We use char because int might match the return type of a gcc2
9360
   builtin and then its argument prototype would still apply.  */
9361
char $ac_func ();
9362
/* The GNU C library defines this for functions which it implements
9363
    to always fail with ENOSYS.  Some functions are actually named
9364
    something starting with __ and the normal name is an alias.  */
9365
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9366
choke me
9367
#else
9368
char (*f) () = $ac_func;
9369
#endif
9370
#ifdef __cplusplus
9371
}
9372
#endif
9373
 
9374
int
9375
main ()
9376
{
9377
return f != $ac_func;
9378
  ;
9379
  return 0;
9380
}
9381
_ACEOF
9382
rm -f conftest.$ac_objext conftest$ac_exeext
9383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384
  (eval $ac_link) 2>conftest.er1
9385
  ac_status=$?
9386
  grep -v '^ *+' conftest.er1 >conftest.err
9387
  rm -f conftest.er1
9388
  cat conftest.err >&5
9389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390
  (exit $ac_status); } &&
9391
         { ac_try='test -z "$ac_c_werror_flag"
9392
                         || test ! -s conftest.err'
9393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394
  (eval $ac_try) 2>&5
9395
  ac_status=$?
9396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397
  (exit $ac_status); }; } &&
9398
         { ac_try='test -s conftest$ac_exeext'
9399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400
  (eval $ac_try) 2>&5
9401
  ac_status=$?
9402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403
  (exit $ac_status); }; }; then
9404
  eval "$as_ac_var=yes"
9405
else
9406
  echo "$as_me: failed program was:" >&5
9407
sed 's/^/| /' conftest.$ac_ext >&5
9408
 
9409
eval "$as_ac_var=no"
9410
fi
9411
rm -f conftest.err conftest.$ac_objext \
9412
      conftest$ac_exeext conftest.$ac_ext
9413
fi
9414
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9415
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9416
if test `eval echo '${'$as_ac_var'}'` = yes; then
9417
  cat >>confdefs.h <<_ACEOF
9418
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9419
_ACEOF
9420
 
9421
fi
9422
done
9423
 
9424
 
9425
 
9426
for ac_func in inet_aton inet_addr
9427
do
9428
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9429
echo "$as_me:$LINENO: checking for $ac_func" >&5
9430
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9431
if eval "test \"\${$as_ac_var+set}\" = set"; then
9432
  echo $ECHO_N "(cached) $ECHO_C" >&6
9433
else
9434
  if test x$gcc_no_link = xyes; then
9435
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9436
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9437
   { (exit 1); exit 1; }; }
9438
fi
9439
cat >conftest.$ac_ext <<_ACEOF
9440
/* confdefs.h.  */
9441
_ACEOF
9442
cat confdefs.h >>conftest.$ac_ext
9443
cat >>conftest.$ac_ext <<_ACEOF
9444
/* end confdefs.h.  */
9445
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
9446
   For example, HP-UX 11i  declares gettimeofday.  */
9447
#define $ac_func innocuous_$ac_func
9448
 
9449
/* System header to define __stub macros and hopefully few prototypes,
9450
    which can conflict with char $ac_func (); below.
9451
    Prefer  to  if __STDC__ is defined, since
9452
     exists even on freestanding compilers.  */
9453
 
9454
#ifdef __STDC__
9455
# include 
9456
#else
9457
# include 
9458
#endif
9459
 
9460
#undef $ac_func
9461
 
9462
/* Override any gcc2 internal prototype to avoid an error.  */
9463
#ifdef __cplusplus
9464
extern "C"
9465
{
9466
#endif
9467
/* We use char because int might match the return type of a gcc2
9468
   builtin and then its argument prototype would still apply.  */
9469
char $ac_func ();
9470
/* The GNU C library defines this for functions which it implements
9471
    to always fail with ENOSYS.  Some functions are actually named
9472
    something starting with __ and the normal name is an alias.  */
9473
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9474
choke me
9475
#else
9476
char (*f) () = $ac_func;
9477
#endif
9478
#ifdef __cplusplus
9479
}
9480
#endif
9481
 
9482
int
9483
main ()
9484
{
9485
return f != $ac_func;
9486
  ;
9487
  return 0;
9488
}
9489
_ACEOF
9490
rm -f conftest.$ac_objext conftest$ac_exeext
9491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492
  (eval $ac_link) 2>conftest.er1
9493
  ac_status=$?
9494
  grep -v '^ *+' conftest.er1 >conftest.err
9495
  rm -f conftest.er1
9496
  cat conftest.err >&5
9497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498
  (exit $ac_status); } &&
9499
         { ac_try='test -z "$ac_c_werror_flag"
9500
                         || test ! -s conftest.err'
9501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502
  (eval $ac_try) 2>&5
9503
  ac_status=$?
9504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505
  (exit $ac_status); }; } &&
9506
         { ac_try='test -s conftest$ac_exeext'
9507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508
  (eval $ac_try) 2>&5
9509
  ac_status=$?
9510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511
  (exit $ac_status); }; }; then
9512
  eval "$as_ac_var=yes"
9513
else
9514
  echo "$as_me: failed program was:" >&5
9515
sed 's/^/| /' conftest.$ac_ext >&5
9516
 
9517
eval "$as_ac_var=no"
9518
fi
9519
rm -f conftest.err conftest.$ac_objext \
9520
      conftest$ac_exeext conftest.$ac_ext
9521
fi
9522
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9523
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9524
if test `eval echo '${'$as_ac_var'}'` = yes; then
9525
  cat >>confdefs.h <<_ACEOF
9526
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9527
_ACEOF
9528
 break
9529
fi
9530
done
9531
 
9532
   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9533
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9534
if test "${ac_cv_header_stdc+set}" = set; then
9535
  echo $ECHO_N "(cached) $ECHO_C" >&6
9536
else
9537
  cat >conftest.$ac_ext <<_ACEOF
9538
/* confdefs.h.  */
9539
_ACEOF
9540
cat confdefs.h >>conftest.$ac_ext
9541
cat >>conftest.$ac_ext <<_ACEOF
9542
/* end confdefs.h.  */
9543
#include 
9544
#include 
9545
#include 
9546
#include 
9547
 
9548
int
9549
main ()
9550
{
9551
 
9552
  ;
9553
  return 0;
9554
}
9555
_ACEOF
9556
rm -f conftest.$ac_objext
9557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558
  (eval $ac_compile) 2>conftest.er1
9559
  ac_status=$?
9560
  grep -v '^ *+' conftest.er1 >conftest.err
9561
  rm -f conftest.er1
9562
  cat conftest.err >&5
9563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564
  (exit $ac_status); } &&
9565
         { ac_try='test -z "$ac_c_werror_flag"
9566
                         || test ! -s conftest.err'
9567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568
  (eval $ac_try) 2>&5
9569
  ac_status=$?
9570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571
  (exit $ac_status); }; } &&
9572
         { ac_try='test -s conftest.$ac_objext'
9573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574
  (eval $ac_try) 2>&5
9575
  ac_status=$?
9576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577
  (exit $ac_status); }; }; then
9578
  ac_cv_header_stdc=yes
9579
else
9580
  echo "$as_me: failed program was:" >&5
9581
sed 's/^/| /' conftest.$ac_ext >&5
9582
 
9583
ac_cv_header_stdc=no
9584
fi
9585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586
 
9587
if test $ac_cv_header_stdc = yes; then
9588
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9589
  cat >conftest.$ac_ext <<_ACEOF
9590
/* confdefs.h.  */
9591
_ACEOF
9592
cat confdefs.h >>conftest.$ac_ext
9593
cat >>conftest.$ac_ext <<_ACEOF
9594
/* end confdefs.h.  */
9595
#include 
9596
 
9597
_ACEOF
9598
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599
  $EGREP "memchr" >/dev/null 2>&1; then
9600
  :
9601
else
9602
  ac_cv_header_stdc=no
9603
fi
9604
rm -f conftest*
9605
 
9606
fi
9607
 
9608
if test $ac_cv_header_stdc = yes; then
9609
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9610
  cat >conftest.$ac_ext <<_ACEOF
9611
/* confdefs.h.  */
9612
_ACEOF
9613
cat confdefs.h >>conftest.$ac_ext
9614
cat >>conftest.$ac_ext <<_ACEOF
9615
/* end confdefs.h.  */
9616
#include 
9617
 
9618
_ACEOF
9619
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9620
  $EGREP "free" >/dev/null 2>&1; then
9621
  :
9622
else
9623
  ac_cv_header_stdc=no
9624
fi
9625
rm -f conftest*
9626
 
9627
fi
9628
 
9629
if test $ac_cv_header_stdc = yes; then
9630
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9631
  if test "$cross_compiling" = yes; then
9632
  :
9633
else
9634
  cat >conftest.$ac_ext <<_ACEOF
9635
/* confdefs.h.  */
9636
_ACEOF
9637
cat confdefs.h >>conftest.$ac_ext
9638
cat >>conftest.$ac_ext <<_ACEOF
9639
/* end confdefs.h.  */
9640
#include 
9641
#if ((' ' & 0x0FF) == 0x020)
9642
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9643
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9644
#else
9645
# define ISLOWER(c) \
9646
                   (('a' <= (c) && (c) <= 'i') \
9647
                     || ('j' <= (c) && (c) <= 'r') \
9648
                     || ('s' <= (c) && (c) <= 'z'))
9649
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9650
#endif
9651
 
9652
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9653
int
9654
main ()
9655
{
9656
  int i;
9657
  for (i = 0; i < 256; i++)
9658
    if (XOR (islower (i), ISLOWER (i))
9659
        || toupper (i) != TOUPPER (i))
9660
      exit(2);
9661
  exit (0);
9662
}
9663
_ACEOF
9664
rm -f conftest$ac_exeext
9665
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666
  (eval $ac_link) 2>&5
9667
  ac_status=$?
9668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671
  (eval $ac_try) 2>&5
9672
  ac_status=$?
9673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674
  (exit $ac_status); }; }; then
9675
  :
9676
else
9677
  echo "$as_me: program exited with status $ac_status" >&5
9678
echo "$as_me: failed program was:" >&5
9679
sed 's/^/| /' conftest.$ac_ext >&5
9680
 
9681
( exit $ac_status )
9682
ac_cv_header_stdc=no
9683
fi
9684
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9685
fi
9686
fi
9687
fi
9688
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9689
echo "${ECHO_T}$ac_cv_header_stdc" >&6
9690
if test $ac_cv_header_stdc = yes; then
9691
 
9692
cat >>confdefs.h <<\_ACEOF
9693
#define STDC_HEADERS 1
9694
_ACEOF
9695
 
9696
fi
9697
 
9698
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9699
 
9700
 
9701
 
9702
 
9703
 
9704
 
9705
 
9706
 
9707
 
9708
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9709
                  inttypes.h stdint.h unistd.h
9710
do
9711
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9712
echo "$as_me:$LINENO: checking for $ac_header" >&5
9713
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9714
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715
  echo $ECHO_N "(cached) $ECHO_C" >&6
9716
else
9717
  cat >conftest.$ac_ext <<_ACEOF
9718
/* confdefs.h.  */
9719
_ACEOF
9720
cat confdefs.h >>conftest.$ac_ext
9721
cat >>conftest.$ac_ext <<_ACEOF
9722
/* end confdefs.h.  */
9723
$ac_includes_default
9724
 
9725
#include <$ac_header>
9726
_ACEOF
9727
rm -f conftest.$ac_objext
9728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9729
  (eval $ac_compile) 2>conftest.er1
9730
  ac_status=$?
9731
  grep -v '^ *+' conftest.er1 >conftest.err
9732
  rm -f conftest.er1
9733
  cat conftest.err >&5
9734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735
  (exit $ac_status); } &&
9736
         { ac_try='test -z "$ac_c_werror_flag"
9737
                         || test ! -s conftest.err'
9738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739
  (eval $ac_try) 2>&5
9740
  ac_status=$?
9741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742
  (exit $ac_status); }; } &&
9743
         { ac_try='test -s conftest.$ac_objext'
9744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745
  (eval $ac_try) 2>&5
9746
  ac_status=$?
9747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748
  (exit $ac_status); }; }; then
9749
  eval "$as_ac_Header=yes"
9750
else
9751
  echo "$as_me: failed program was:" >&5
9752
sed 's/^/| /' conftest.$ac_ext >&5
9753
 
9754
eval "$as_ac_Header=no"
9755
fi
9756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9757
fi
9758
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9759
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9760
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9761
  cat >>confdefs.h <<_ACEOF
9762
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9763
_ACEOF
9764
 
9765
fi
9766
 
9767
done
9768
 
9769
 
9770
 
9771
 
9772
 
9773
for ac_header in execinfo.h unistd.h dlfcn.h
9774
do
9775
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9776
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9778
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9779
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780
  echo $ECHO_N "(cached) $ECHO_C" >&6
9781
fi
9782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9784
else
9785
  # Is the header compilable?
9786
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9787
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9788
cat >conftest.$ac_ext <<_ACEOF
9789
/* confdefs.h.  */
9790
_ACEOF
9791
cat confdefs.h >>conftest.$ac_ext
9792
cat >>conftest.$ac_ext <<_ACEOF
9793
/* end confdefs.h.  */
9794
$ac_includes_default
9795
#include <$ac_header>
9796
_ACEOF
9797
rm -f conftest.$ac_objext
9798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799
  (eval $ac_compile) 2>conftest.er1
9800
  ac_status=$?
9801
  grep -v '^ *+' conftest.er1 >conftest.err
9802
  rm -f conftest.er1
9803
  cat conftest.err >&5
9804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805
  (exit $ac_status); } &&
9806
         { ac_try='test -z "$ac_c_werror_flag"
9807
                         || test ! -s conftest.err'
9808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809
  (eval $ac_try) 2>&5
9810
  ac_status=$?
9811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812
  (exit $ac_status); }; } &&
9813
         { ac_try='test -s conftest.$ac_objext'
9814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815
  (eval $ac_try) 2>&5
9816
  ac_status=$?
9817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818
  (exit $ac_status); }; }; then
9819
  ac_header_compiler=yes
9820
else
9821
  echo "$as_me: failed program was:" >&5
9822
sed 's/^/| /' conftest.$ac_ext >&5
9823
 
9824
ac_header_compiler=no
9825
fi
9826
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9827
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9828
echo "${ECHO_T}$ac_header_compiler" >&6
9829
 
9830
# Is the header present?
9831
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9832
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9833
cat >conftest.$ac_ext <<_ACEOF
9834
/* confdefs.h.  */
9835
_ACEOF
9836
cat confdefs.h >>conftest.$ac_ext
9837
cat >>conftest.$ac_ext <<_ACEOF
9838
/* end confdefs.h.  */
9839
#include <$ac_header>
9840
_ACEOF
9841
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9842
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9843
  ac_status=$?
9844
  grep -v '^ *+' conftest.er1 >conftest.err
9845
  rm -f conftest.er1
9846
  cat conftest.err >&5
9847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848
  (exit $ac_status); } >/dev/null; then
9849
  if test -s conftest.err; then
9850
    ac_cpp_err=$ac_c_preproc_warn_flag
9851
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9852
  else
9853
    ac_cpp_err=
9854
  fi
9855
else
9856
  ac_cpp_err=yes
9857
fi
9858
if test -z "$ac_cpp_err"; then
9859
  ac_header_preproc=yes
9860
else
9861
  echo "$as_me: failed program was:" >&5
9862
sed 's/^/| /' conftest.$ac_ext >&5
9863
 
9864
  ac_header_preproc=no
9865
fi
9866
rm -f conftest.err conftest.$ac_ext
9867
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9868
echo "${ECHO_T}$ac_header_preproc" >&6
9869
 
9870
# So?  What about this header?
9871
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9872
  yes:no: )
9873
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9874
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9875
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9876
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9877
    ac_header_preproc=yes
9878
    ;;
9879
  no:yes:* )
9880
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9881
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9882
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9883
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9884
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9885
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9886
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9887
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9888
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9889
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9890
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9891
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892
    (
9893
      cat <<\_ASBOX
9894
## ---------------------------------- ##
9895
## Report this to the libjava lists.  ##
9896
## ---------------------------------- ##
9897
_ASBOX
9898
    ) |
9899
      sed "s/^/$as_me: WARNING:     /" >&2
9900
    ;;
9901
esac
9902
echo "$as_me:$LINENO: checking for $ac_header" >&5
9903
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9904
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9905
  echo $ECHO_N "(cached) $ECHO_C" >&6
9906
else
9907
  eval "$as_ac_Header=\$ac_header_preproc"
9908
fi
9909
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9910
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9911
 
9912
fi
9913
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9914
  cat >>confdefs.h <<_ACEOF
9915
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9916
_ACEOF
9917
 
9918
fi
9919
 
9920
done
9921
 
9922
   echo "$as_me:$LINENO: checking for backtrace" >&5
9923
echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9924
if test "${ac_cv_func_backtrace+set}" = set; then
9925
  echo $ECHO_N "(cached) $ECHO_C" >&6
9926
else
9927
  if test x$gcc_no_link = xyes; then
9928
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9929
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9930
   { (exit 1); exit 1; }; }
9931
fi
9932
cat >conftest.$ac_ext <<_ACEOF
9933
/* confdefs.h.  */
9934
_ACEOF
9935
cat confdefs.h >>conftest.$ac_ext
9936
cat >>conftest.$ac_ext <<_ACEOF
9937
/* end confdefs.h.  */
9938
/* Define backtrace to an innocuous variant, in case  declares backtrace.
9939
   For example, HP-UX 11i  declares gettimeofday.  */
9940
#define backtrace innocuous_backtrace
9941
 
9942
/* System header to define __stub macros and hopefully few prototypes,
9943
    which can conflict with char backtrace (); below.
9944
    Prefer  to  if __STDC__ is defined, since
9945
     exists even on freestanding compilers.  */
9946
 
9947
#ifdef __STDC__
9948
# include 
9949
#else
9950
# include 
9951
#endif
9952
 
9953
#undef backtrace
9954
 
9955
/* Override any gcc2 internal prototype to avoid an error.  */
9956
#ifdef __cplusplus
9957
extern "C"
9958
{
9959
#endif
9960
/* We use char because int might match the return type of a gcc2
9961
   builtin and then its argument prototype would still apply.  */
9962
char backtrace ();
9963
/* The GNU C library defines this for functions which it implements
9964
    to always fail with ENOSYS.  Some functions are actually named
9965
    something starting with __ and the normal name is an alias.  */
9966
#if defined (__stub_backtrace) || defined (__stub___backtrace)
9967
choke me
9968
#else
9969
char (*f) () = backtrace;
9970
#endif
9971
#ifdef __cplusplus
9972
}
9973
#endif
9974
 
9975
int
9976
main ()
9977
{
9978
return f != backtrace;
9979
  ;
9980
  return 0;
9981
}
9982
_ACEOF
9983
rm -f conftest.$ac_objext conftest$ac_exeext
9984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985
  (eval $ac_link) 2>conftest.er1
9986
  ac_status=$?
9987
  grep -v '^ *+' conftest.er1 >conftest.err
9988
  rm -f conftest.er1
9989
  cat conftest.err >&5
9990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991
  (exit $ac_status); } &&
9992
         { ac_try='test -z "$ac_c_werror_flag"
9993
                         || test ! -s conftest.err'
9994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995
  (eval $ac_try) 2>&5
9996
  ac_status=$?
9997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998
  (exit $ac_status); }; } &&
9999
         { ac_try='test -s conftest$ac_exeext'
10000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001
  (eval $ac_try) 2>&5
10002
  ac_status=$?
10003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004
  (exit $ac_status); }; }; then
10005
  ac_cv_func_backtrace=yes
10006
else
10007
  echo "$as_me: failed program was:" >&5
10008
sed 's/^/| /' conftest.$ac_ext >&5
10009
 
10010
ac_cv_func_backtrace=no
10011
fi
10012
rm -f conftest.err conftest.$ac_objext \
10013
      conftest$ac_exeext conftest.$ac_ext
10014
fi
10015
echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
10016
echo "${ECHO_T}$ac_cv_func_backtrace" >&6
10017
if test $ac_cv_func_backtrace = yes; then
10018
 
10019
     case "$host" in
10020
       ia64-*-linux*)
10021
         # Has broken backtrace()
10022
         ;;
10023
       mips*-*-linux*)
10024
         # Has broken backtrace(), but we supply our own.
10025
         if test -d sysdep; then true; else mkdir -p sysdep; fi
10026
         supply_backtrace=yes
10027
 
10028
cat >>confdefs.h <<\_ACEOF
10029
#define HAVE_BACKTRACE 1
10030
_ACEOF
10031
 
10032
         ;;
10033
       *)
10034
 
10035
cat >>confdefs.h <<\_ACEOF
10036
#define HAVE_BACKTRACE 1
10037
_ACEOF
10038
 
10039
         ;;
10040
     esac
10041
 
10042
else
10043
 
10044
     case "$host" in
10045
       *mingw*)
10046
         # Has backtrace() defined in libgcj itself
10047
 
10048
cat >>confdefs.h <<\_ACEOF
10049
#define HAVE_BACKTRACE 1
10050
_ACEOF
10051
 
10052
         ;;
10053
     esac
10054
 
10055
fi
10056
 
10057
 
10058
   echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10059
echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10060
if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10061
  echo $ECHO_N "(cached) $ECHO_C" >&6
10062
else
10063
  ac_check_lib_save_LIBS=$LIBS
10064
LIBS="-ldl  $LIBS"
10065
if test x$gcc_no_link = xyes; then
10066
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10067
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10068
   { (exit 1); exit 1; }; }
10069
fi
10070
cat >conftest.$ac_ext <<_ACEOF
10071
/* confdefs.h.  */
10072
_ACEOF
10073
cat confdefs.h >>conftest.$ac_ext
10074
cat >>conftest.$ac_ext <<_ACEOF
10075
/* end confdefs.h.  */
10076
 
10077
/* Override any gcc2 internal prototype to avoid an error.  */
10078
#ifdef __cplusplus
10079
extern "C"
10080
#endif
10081
/* We use char because int might match the return type of a gcc2
10082
   builtin and then its argument prototype would still apply.  */
10083
char dladdr ();
10084
int
10085
main ()
10086
{
10087
dladdr ();
10088
  ;
10089
  return 0;
10090
}
10091
_ACEOF
10092
rm -f conftest.$ac_objext conftest$ac_exeext
10093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094
  (eval $ac_link) 2>conftest.er1
10095
  ac_status=$?
10096
  grep -v '^ *+' conftest.er1 >conftest.err
10097
  rm -f conftest.er1
10098
  cat conftest.err >&5
10099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100
  (exit $ac_status); } &&
10101
         { ac_try='test -z "$ac_c_werror_flag"
10102
                         || test ! -s conftest.err'
10103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104
  (eval $ac_try) 2>&5
10105
  ac_status=$?
10106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107
  (exit $ac_status); }; } &&
10108
         { ac_try='test -s conftest$ac_exeext'
10109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110
  (eval $ac_try) 2>&5
10111
  ac_status=$?
10112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
  (exit $ac_status); }; }; then
10114
  ac_cv_lib_dl_dladdr=yes
10115
else
10116
  echo "$as_me: failed program was:" >&5
10117
sed 's/^/| /' conftest.$ac_ext >&5
10118
 
10119
ac_cv_lib_dl_dladdr=no
10120
fi
10121
rm -f conftest.err conftest.$ac_objext \
10122
      conftest$ac_exeext conftest.$ac_ext
10123
LIBS=$ac_check_lib_save_LIBS
10124
fi
10125
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10126
echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10127
if test $ac_cv_lib_dl_dladdr = yes; then
10128
 
10129
 
10130
cat >>confdefs.h <<\_ACEOF
10131
#define HAVE_DLADDR 1
10132
_ACEOF
10133
 
10134
fi
10135
 
10136
 
10137
   if test x"$build" = x"$host"; then
10138
     echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10139
echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10140
if test "${ac_cv_file__proc_self_exe+set}" = set; then
10141
  echo $ECHO_N "(cached) $ECHO_C" >&6
10142
else
10143
  test "$cross_compiling" = yes &&
10144
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10145
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10146
   { (exit 1); exit 1; }; }
10147
if test -r "/proc/self/exe"; then
10148
  ac_cv_file__proc_self_exe=yes
10149
else
10150
  ac_cv_file__proc_self_exe=no
10151
fi
10152
fi
10153
echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10154
echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10155
if test $ac_cv_file__proc_self_exe = yes; then
10156
 
10157
cat >>confdefs.h <<_ACEOF
10158
#define HAVE__PROC_SELF_EXE 1
10159
_ACEOF
10160
 
10161
 
10162
 
10163
cat >>confdefs.h <<\_ACEOF
10164
#define HAVE_PROC_SELF_EXE 1
10165
_ACEOF
10166
 
10167
fi
10168
 
10169
   else
10170
     case $host in
10171
     *-linux*)
10172
 
10173
cat >>confdefs.h <<\_ACEOF
10174
#define HAVE_PROC_SELF_EXE 1
10175
_ACEOF
10176
 
10177
       ;;
10178
     esac
10179
   fi
10180
 
10181
 
10182
      if test "X$prefix" = "XNONE"; then
10183
    acl_final_prefix="$ac_default_prefix"
10184
  else
10185
    acl_final_prefix="$prefix"
10186
  fi
10187
  if test "X$exec_prefix" = "XNONE"; then
10188
    acl_final_exec_prefix='${prefix}'
10189
  else
10190
    acl_final_exec_prefix="$exec_prefix"
10191
  fi
10192
  acl_save_prefix="$prefix"
10193
  prefix="$acl_final_prefix"
10194
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10195
  prefix="$acl_save_prefix"
10196
 
10197
 
10198
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10199
if test "${with_gnu_ld+set}" = set; then
10200
  withval="$with_gnu_ld"
10201
  test "$withval" = no || with_gnu_ld=yes
10202
else
10203
  with_gnu_ld=no
10204
fi;
10205
# Prepare PATH_SEPARATOR.
10206
# The user is always right.
10207
if test "${PATH_SEPARATOR+set}" != set; then
10208
  echo "#! /bin/sh" >conf$$.sh
10209
  echo  "exit 0"   >>conf$$.sh
10210
  chmod +x conf$$.sh
10211
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10212
    PATH_SEPARATOR=';'
10213
  else
10214
    PATH_SEPARATOR=:
10215
  fi
10216
  rm -f conf$$.sh
10217
fi
10218
ac_prog=ld
10219
if test "$GCC" = yes; then
10220
  # Check if gcc -print-prog-name=ld gives a path.
10221
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10222
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10223
  case $host in
10224
  *-*-mingw*)
10225
    # gcc leaves a trailing carriage return which upsets mingw
10226
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10227
  *)
10228
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10229
  esac
10230
  case $ac_prog in
10231
    # Accept absolute paths.
10232
    [\\/]* | [A-Za-z]:[\\/]*)
10233
      re_direlt='/[^/][^/]*/\.\./'
10234
      # Canonicalize the path of ld
10235
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10236
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10237
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10238
      done
10239
      test -z "$LD" && LD="$ac_prog"
10240
      ;;
10241
  "")
10242
    # If it fails, then pretend we aren't using GCC.
10243
    ac_prog=ld
10244
    ;;
10245
  *)
10246
    # If it is relative, then search for the first ld in PATH.
10247
    with_gnu_ld=unknown
10248
    ;;
10249
  esac
10250
elif test "$with_gnu_ld" = yes; then
10251
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10252
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10253
else
10254
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10255
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10256
fi
10257
if test "${acl_cv_path_LD+set}" = set; then
10258
  echo $ECHO_N "(cached) $ECHO_C" >&6
10259
else
10260
  if test -z "$LD"; then
10261
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10262
  for ac_dir in $PATH; do
10263
    test -z "$ac_dir" && ac_dir=.
10264
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10265
      acl_cv_path_LD="$ac_dir/$ac_prog"
10266
      # Check to see if the program is GNU ld.  I'd rather use --version,
10267
      # but apparently some GNU ld's only accept -v.
10268
      # Break only if it was the GNU/non-GNU ld that we prefer.
10269
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10270
        test "$with_gnu_ld" != no && break
10271
      else
10272
        test "$with_gnu_ld" != yes && break
10273
      fi
10274
    fi
10275
  done
10276
  IFS="$ac_save_ifs"
10277
else
10278
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10279
fi
10280
fi
10281
 
10282
LD="$acl_cv_path_LD"
10283
if test -n "$LD"; then
10284
  echo "$as_me:$LINENO: result: $LD" >&5
10285
echo "${ECHO_T}$LD" >&6
10286
else
10287
  echo "$as_me:$LINENO: result: no" >&5
10288
echo "${ECHO_T}no" >&6
10289
fi
10290
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10291
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10292
   { (exit 1); exit 1; }; }
10293
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10294
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10295
if test "${acl_cv_prog_gnu_ld+set}" = set; then
10296
  echo $ECHO_N "(cached) $ECHO_C" >&6
10297
else
10298
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10299
if $LD -v 2>&1 &5; then
10300
  acl_cv_prog_gnu_ld=yes
10301
else
10302
  acl_cv_prog_gnu_ld=no
10303
fi
10304
fi
10305
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10306
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10307
with_gnu_ld=$acl_cv_prog_gnu_ld
10308
 
10309
 
10310
 
10311
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10312
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10313
if test "${acl_cv_rpath+set}" = set; then
10314
  echo $ECHO_N "(cached) $ECHO_C" >&6
10315
else
10316
 
10317
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10318
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10319
    . ./conftest.sh
10320
    rm -f ./conftest.sh
10321
    acl_cv_rpath=done
10322
 
10323
fi
10324
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10325
echo "${ECHO_T}$acl_cv_rpath" >&6
10326
  wl="$acl_cv_wl"
10327
  libext="$acl_cv_libext"
10328
  shlibext="$acl_cv_shlibext"
10329
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10330
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10331
  hardcode_direct="$acl_cv_hardcode_direct"
10332
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10333
    # Check whether --enable-rpath or --disable-rpath was given.
10334
if test "${enable_rpath+set}" = set; then
10335
  enableval="$enable_rpath"
10336
  :
10337
else
10338
  enable_rpath=yes
10339
fi;
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
    use_additional=yes
10348
 
10349
  acl_save_prefix="$prefix"
10350
  prefix="$acl_final_prefix"
10351
  acl_save_exec_prefix="$exec_prefix"
10352
  exec_prefix="$acl_final_exec_prefix"
10353
 
10354
    eval additional_includedir=\"$includedir\"
10355
    eval additional_libdir=\"$libdir\"
10356
 
10357
  exec_prefix="$acl_save_exec_prefix"
10358
  prefix="$acl_save_prefix"
10359
 
10360
 
10361
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10362
if test "${with_libiconv_prefix+set}" = set; then
10363
  withval="$with_libiconv_prefix"
10364
 
10365
    if test "X$withval" = "Xno"; then
10366
      use_additional=no
10367
    else
10368
      if test "X$withval" = "X"; then
10369
 
10370
  acl_save_prefix="$prefix"
10371
  prefix="$acl_final_prefix"
10372
  acl_save_exec_prefix="$exec_prefix"
10373
  exec_prefix="$acl_final_exec_prefix"
10374
 
10375
          eval additional_includedir=\"$includedir\"
10376
          eval additional_libdir=\"$libdir\"
10377
 
10378
  exec_prefix="$acl_save_exec_prefix"
10379
  prefix="$acl_save_prefix"
10380
 
10381
      else
10382
        additional_includedir="$withval/include"
10383
        additional_libdir="$withval/lib"
10384
      fi
10385
    fi
10386
 
10387
fi;
10388
      LIBICONV=
10389
  LTLIBICONV=
10390
  INCICONV=
10391
  rpathdirs=
10392
  ltrpathdirs=
10393
  names_already_handled=
10394
  names_next_round='iconv '
10395
  while test -n "$names_next_round"; do
10396
    names_this_round="$names_next_round"
10397
    names_next_round=
10398
    for name in $names_this_round; do
10399
      already_handled=
10400
      for n in $names_already_handled; do
10401
        if test "$n" = "$name"; then
10402
          already_handled=yes
10403
          break
10404
        fi
10405
      done
10406
      if test -z "$already_handled"; then
10407
        names_already_handled="$names_already_handled $name"
10408
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10409
        eval value=\"\$HAVE_LIB$uppername\"
10410
        if test -n "$value"; then
10411
          if test "$value" = yes; then
10412
            eval value=\"\$LIB$uppername\"
10413
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10414
            eval value=\"\$LTLIB$uppername\"
10415
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10416
          else
10417
                                    :
10418
          fi
10419
        else
10420
                              found_dir=
10421
          found_la=
10422
          found_so=
10423
          found_a=
10424
          if test $use_additional = yes; then
10425
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10426
              found_dir="$additional_libdir"
10427
              found_so="$additional_libdir/lib$name.$shlibext"
10428
              if test -f "$additional_libdir/lib$name.la"; then
10429
                found_la="$additional_libdir/lib$name.la"
10430
              fi
10431
            else
10432
              if test -f "$additional_libdir/lib$name.$libext"; then
10433
                found_dir="$additional_libdir"
10434
                found_a="$additional_libdir/lib$name.$libext"
10435
                if test -f "$additional_libdir/lib$name.la"; then
10436
                  found_la="$additional_libdir/lib$name.la"
10437
                fi
10438
              fi
10439
            fi
10440
          fi
10441
          if test "X$found_dir" = "X"; then
10442
            for x in $LDFLAGS $LTLIBICONV; do
10443
 
10444
  acl_save_prefix="$prefix"
10445
  prefix="$acl_final_prefix"
10446
  acl_save_exec_prefix="$exec_prefix"
10447
  exec_prefix="$acl_final_exec_prefix"
10448
  eval x=\"$x\"
10449
  exec_prefix="$acl_save_exec_prefix"
10450
  prefix="$acl_save_prefix"
10451
 
10452
              case "$x" in
10453
                -L*)
10454
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10455
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10456
                    found_dir="$dir"
10457
                    found_so="$dir/lib$name.$shlibext"
10458
                    if test -f "$dir/lib$name.la"; then
10459
                      found_la="$dir/lib$name.la"
10460
                    fi
10461
                  else
10462
                    if test -f "$dir/lib$name.$libext"; then
10463
                      found_dir="$dir"
10464
                      found_a="$dir/lib$name.$libext"
10465
                      if test -f "$dir/lib$name.la"; then
10466
                        found_la="$dir/lib$name.la"
10467
                      fi
10468
                    fi
10469
                  fi
10470
                  ;;
10471
              esac
10472
              if test "X$found_dir" != "X"; then
10473
                break
10474
              fi
10475
            done
10476
          fi
10477
          if test "X$found_dir" != "X"; then
10478
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10479
            if test "X$found_so" != "X"; then
10480
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10481
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10482
              else
10483
                                                                                haveit=
10484
                for x in $ltrpathdirs; do
10485
                  if test "X$x" = "X$found_dir"; then
10486
                    haveit=yes
10487
                    break
10488
                  fi
10489
                done
10490
                if test -z "$haveit"; then
10491
                  ltrpathdirs="$ltrpathdirs $found_dir"
10492
                fi
10493
                                if test "$hardcode_direct" = yes; then
10494
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10495
                else
10496
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10497
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10498
                                                            haveit=
10499
                    for x in $rpathdirs; do
10500
                      if test "X$x" = "X$found_dir"; then
10501
                        haveit=yes
10502
                        break
10503
                      fi
10504
                    done
10505
                    if test -z "$haveit"; then
10506
                      rpathdirs="$rpathdirs $found_dir"
10507
                    fi
10508
                  else
10509
                                                                                haveit=
10510
                    for x in $LDFLAGS $LIBICONV; do
10511
 
10512
  acl_save_prefix="$prefix"
10513
  prefix="$acl_final_prefix"
10514
  acl_save_exec_prefix="$exec_prefix"
10515
  exec_prefix="$acl_final_exec_prefix"
10516
  eval x=\"$x\"
10517
  exec_prefix="$acl_save_exec_prefix"
10518
  prefix="$acl_save_prefix"
10519
 
10520
                      if test "X$x" = "X-L$found_dir"; then
10521
                        haveit=yes
10522
                        break
10523
                      fi
10524
                    done
10525
                    if test -z "$haveit"; then
10526
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10527
                    fi
10528
                    if test "$hardcode_minus_L" != no; then
10529
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10530
                    else
10531
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10532
                    fi
10533
                  fi
10534
                fi
10535
              fi
10536
            else
10537
              if test "X$found_a" != "X"; then
10538
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10539
              else
10540
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10541
              fi
10542
            fi
10543
                        additional_includedir=
10544
            case "$found_dir" in
10545
              */lib | */lib/)
10546
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10547
                additional_includedir="$basedir/include"
10548
                ;;
10549
            esac
10550
            if test "X$additional_includedir" != "X"; then
10551
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10552
                haveit=
10553
                if test "X$additional_includedir" = "X/usr/local/include"; then
10554
                  if test -n "$GCC"; then
10555
                    case $host_os in
10556
                      linux*) haveit=yes;;
10557
                    esac
10558
                  fi
10559
                fi
10560
                if test -z "$haveit"; then
10561
                  for x in $CPPFLAGS $INCICONV; do
10562
 
10563
  acl_save_prefix="$prefix"
10564
  prefix="$acl_final_prefix"
10565
  acl_save_exec_prefix="$exec_prefix"
10566
  exec_prefix="$acl_final_exec_prefix"
10567
  eval x=\"$x\"
10568
  exec_prefix="$acl_save_exec_prefix"
10569
  prefix="$acl_save_prefix"
10570
 
10571
                    if test "X$x" = "X-I$additional_includedir"; then
10572
                      haveit=yes
10573
                      break
10574
                    fi
10575
                  done
10576
                  if test -z "$haveit"; then
10577
                    if test -d "$additional_includedir"; then
10578
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10579
                    fi
10580
                  fi
10581
                fi
10582
              fi
10583
            fi
10584
                        if test -n "$found_la"; then
10585
                                                        save_libdir="$libdir"
10586
              case "$found_la" in
10587
                */* | *\\*) . "$found_la" ;;
10588
                *) . "./$found_la" ;;
10589
              esac
10590
              libdir="$save_libdir"
10591
                            for dep in $dependency_libs; do
10592
                case "$dep" in
10593
                  -L*)
10594
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10595
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10596
                      haveit=
10597
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10598
                        if test -n "$GCC"; then
10599
                          case $host_os in
10600
                            linux*) haveit=yes;;
10601
                          esac
10602
                        fi
10603
                      fi
10604
                      if test -z "$haveit"; then
10605
                        haveit=
10606
                        for x in $LDFLAGS $LIBICONV; do
10607
 
10608
  acl_save_prefix="$prefix"
10609
  prefix="$acl_final_prefix"
10610
  acl_save_exec_prefix="$exec_prefix"
10611
  exec_prefix="$acl_final_exec_prefix"
10612
  eval x=\"$x\"
10613
  exec_prefix="$acl_save_exec_prefix"
10614
  prefix="$acl_save_prefix"
10615
 
10616
                          if test "X$x" = "X-L$additional_libdir"; then
10617
                            haveit=yes
10618
                            break
10619
                          fi
10620
                        done
10621
                        if test -z "$haveit"; then
10622
                          if test -d "$additional_libdir"; then
10623
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10624
                          fi
10625
                        fi
10626
                        haveit=
10627
                        for x in $LDFLAGS $LTLIBICONV; do
10628
 
10629
  acl_save_prefix="$prefix"
10630
  prefix="$acl_final_prefix"
10631
  acl_save_exec_prefix="$exec_prefix"
10632
  exec_prefix="$acl_final_exec_prefix"
10633
  eval x=\"$x\"
10634
  exec_prefix="$acl_save_exec_prefix"
10635
  prefix="$acl_save_prefix"
10636
 
10637
                          if test "X$x" = "X-L$additional_libdir"; then
10638
                            haveit=yes
10639
                            break
10640
                          fi
10641
                        done
10642
                        if test -z "$haveit"; then
10643
                          if test -d "$additional_libdir"; then
10644
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10645
                          fi
10646
                        fi
10647
                      fi
10648
                    fi
10649
                    ;;
10650
                  -R*)
10651
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10652
                    if test "$enable_rpath" != no; then
10653
                                                                  haveit=
10654
                      for x in $rpathdirs; do
10655
                        if test "X$x" = "X$dir"; then
10656
                          haveit=yes
10657
                          break
10658
                        fi
10659
                      done
10660
                      if test -z "$haveit"; then
10661
                        rpathdirs="$rpathdirs $dir"
10662
                      fi
10663
                                                                  haveit=
10664
                      for x in $ltrpathdirs; do
10665
                        if test "X$x" = "X$dir"; then
10666
                          haveit=yes
10667
                          break
10668
                        fi
10669
                      done
10670
                      if test -z "$haveit"; then
10671
                        ltrpathdirs="$ltrpathdirs $dir"
10672
                      fi
10673
                    fi
10674
                    ;;
10675
                  -l*)
10676
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10677
                    ;;
10678
                  *.la)
10679
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10680
                    ;;
10681
                  *)
10682
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10683
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10684
                    ;;
10685
                esac
10686
              done
10687
            fi
10688
          else
10689
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10690
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10691
          fi
10692
        fi
10693
      fi
10694
    done
10695
  done
10696
  if test "X$rpathdirs" != "X"; then
10697
    if test -n "$hardcode_libdir_separator"; then
10698
                        alldirs=
10699
      for found_dir in $rpathdirs; do
10700
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10701
      done
10702
            acl_save_libdir="$libdir"
10703
      libdir="$alldirs"
10704
      eval flag=\"$hardcode_libdir_flag_spec\"
10705
      libdir="$acl_save_libdir"
10706
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10707
    else
10708
            for found_dir in $rpathdirs; do
10709
        acl_save_libdir="$libdir"
10710
        libdir="$found_dir"
10711
        eval flag=\"$hardcode_libdir_flag_spec\"
10712
        libdir="$acl_save_libdir"
10713
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10714
      done
10715
    fi
10716
  fi
10717
  if test "X$ltrpathdirs" != "X"; then
10718
            for found_dir in $ltrpathdirs; do
10719
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10720
    done
10721
  fi
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
          am_save_CPPFLAGS="$CPPFLAGS"
10730
 
10731
  for element in $INCICONV; do
10732
    haveit=
10733
    for x in $CPPFLAGS; do
10734
 
10735
  acl_save_prefix="$prefix"
10736
  prefix="$acl_final_prefix"
10737
  acl_save_exec_prefix="$exec_prefix"
10738
  exec_prefix="$acl_final_exec_prefix"
10739
  eval x=\"$x\"
10740
  exec_prefix="$acl_save_exec_prefix"
10741
  prefix="$acl_save_prefix"
10742
 
10743
      if test "X$x" = "X$element"; then
10744
        haveit=yes
10745
        break
10746
      fi
10747
    done
10748
    if test -z "$haveit"; then
10749
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10750
    fi
10751
  done
10752
 
10753
 
10754
  echo "$as_me:$LINENO: checking for iconv" >&5
10755
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10756
if test "${am_cv_func_iconv+set}" = set; then
10757
  echo $ECHO_N "(cached) $ECHO_C" >&6
10758
else
10759
 
10760
    am_cv_func_iconv="no, consider installing GNU libiconv"
10761
    am_cv_lib_iconv=no
10762
    if test x$gcc_no_link = xyes; then
10763
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10764
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10765
   { (exit 1); exit 1; }; }
10766
fi
10767
cat >conftest.$ac_ext <<_ACEOF
10768
/* confdefs.h.  */
10769
_ACEOF
10770
cat confdefs.h >>conftest.$ac_ext
10771
cat >>conftest.$ac_ext <<_ACEOF
10772
/* end confdefs.h.  */
10773
#include 
10774
#include 
10775
int
10776
main ()
10777
{
10778
iconv_t cd = iconv_open("","");
10779
       iconv(cd,NULL,NULL,NULL,NULL);
10780
       iconv_close(cd);
10781
  ;
10782
  return 0;
10783
}
10784
_ACEOF
10785
rm -f conftest.$ac_objext conftest$ac_exeext
10786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787
  (eval $ac_link) 2>conftest.er1
10788
  ac_status=$?
10789
  grep -v '^ *+' conftest.er1 >conftest.err
10790
  rm -f conftest.er1
10791
  cat conftest.err >&5
10792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793
  (exit $ac_status); } &&
10794
         { ac_try='test -z "$ac_c_werror_flag"
10795
                         || test ! -s conftest.err'
10796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797
  (eval $ac_try) 2>&5
10798
  ac_status=$?
10799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800
  (exit $ac_status); }; } &&
10801
         { ac_try='test -s conftest$ac_exeext'
10802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803
  (eval $ac_try) 2>&5
10804
  ac_status=$?
10805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806
  (exit $ac_status); }; }; then
10807
  am_cv_func_iconv=yes
10808
else
10809
  echo "$as_me: failed program was:" >&5
10810
sed 's/^/| /' conftest.$ac_ext >&5
10811
 
10812
fi
10813
rm -f conftest.err conftest.$ac_objext \
10814
      conftest$ac_exeext conftest.$ac_ext
10815
    if test "$am_cv_func_iconv" != yes; then
10816
      am_save_LIBS="$LIBS"
10817
      LIBS="$LIBS $LIBICONV"
10818
      if test x$gcc_no_link = xyes; then
10819
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10820
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10821
   { (exit 1); exit 1; }; }
10822
fi
10823
cat >conftest.$ac_ext <<_ACEOF
10824
/* confdefs.h.  */
10825
_ACEOF
10826
cat confdefs.h >>conftest.$ac_ext
10827
cat >>conftest.$ac_ext <<_ACEOF
10828
/* end confdefs.h.  */
10829
#include 
10830
#include 
10831
int
10832
main ()
10833
{
10834
iconv_t cd = iconv_open("","");
10835
         iconv(cd,NULL,NULL,NULL,NULL);
10836
         iconv_close(cd);
10837
  ;
10838
  return 0;
10839
}
10840
_ACEOF
10841
rm -f conftest.$ac_objext conftest$ac_exeext
10842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843
  (eval $ac_link) 2>conftest.er1
10844
  ac_status=$?
10845
  grep -v '^ *+' conftest.er1 >conftest.err
10846
  rm -f conftest.er1
10847
  cat conftest.err >&5
10848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849
  (exit $ac_status); } &&
10850
         { ac_try='test -z "$ac_c_werror_flag"
10851
                         || test ! -s conftest.err'
10852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853
  (eval $ac_try) 2>&5
10854
  ac_status=$?
10855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856
  (exit $ac_status); }; } &&
10857
         { ac_try='test -s conftest$ac_exeext'
10858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859
  (eval $ac_try) 2>&5
10860
  ac_status=$?
10861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862
  (exit $ac_status); }; }; then
10863
  am_cv_lib_iconv=yes
10864
        am_cv_func_iconv=yes
10865
else
10866
  echo "$as_me: failed program was:" >&5
10867
sed 's/^/| /' conftest.$ac_ext >&5
10868
 
10869
fi
10870
rm -f conftest.err conftest.$ac_objext \
10871
      conftest$ac_exeext conftest.$ac_ext
10872
      LIBS="$am_save_LIBS"
10873
    fi
10874
 
10875
fi
10876
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10877
echo "${ECHO_T}$am_cv_func_iconv" >&6
10878
  if test "$am_cv_func_iconv" = yes; then
10879
 
10880
cat >>confdefs.h <<\_ACEOF
10881
#define HAVE_ICONV 1
10882
_ACEOF
10883
 
10884
  fi
10885
  if test "$am_cv_lib_iconv" = yes; then
10886
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10887
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10888
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
10889
echo "${ECHO_T}$LIBICONV" >&6
10890
  else
10891
            CPPFLAGS="$am_save_CPPFLAGS"
10892
    LIBICONV=
10893
    LTLIBICONV=
10894
  fi
10895
 
10896
 
10897
 
10898
  if test "$am_cv_func_iconv" = yes; then
10899
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
10900
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10901
    if test "${am_cv_proto_iconv+set}" = set; then
10902
  echo $ECHO_N "(cached) $ECHO_C" >&6
10903
else
10904
 
10905
      cat >conftest.$ac_ext <<_ACEOF
10906
/* confdefs.h.  */
10907
_ACEOF
10908
cat confdefs.h >>conftest.$ac_ext
10909
cat >>conftest.$ac_ext <<_ACEOF
10910
/* end confdefs.h.  */
10911
 
10912
#include 
10913
#include 
10914
extern
10915
#ifdef __cplusplus
10916
"C"
10917
#endif
10918
#if defined(__STDC__) || defined(__cplusplus)
10919
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10920
#else
10921
size_t iconv();
10922
#endif
10923
 
10924
int
10925
main ()
10926
{
10927
 
10928
  ;
10929
  return 0;
10930
}
10931
_ACEOF
10932
rm -f conftest.$ac_objext
10933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10934
  (eval $ac_compile) 2>conftest.er1
10935
  ac_status=$?
10936
  grep -v '^ *+' conftest.er1 >conftest.err
10937
  rm -f conftest.er1
10938
  cat conftest.err >&5
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940
  (exit $ac_status); } &&
10941
         { ac_try='test -z "$ac_c_werror_flag"
10942
                         || test ! -s conftest.err'
10943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944
  (eval $ac_try) 2>&5
10945
  ac_status=$?
10946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947
  (exit $ac_status); }; } &&
10948
         { ac_try='test -s conftest.$ac_objext'
10949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950
  (eval $ac_try) 2>&5
10951
  ac_status=$?
10952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953
  (exit $ac_status); }; }; then
10954
  am_cv_proto_iconv_arg1=""
10955
else
10956
  echo "$as_me: failed program was:" >&5
10957
sed 's/^/| /' conftest.$ac_ext >&5
10958
 
10959
am_cv_proto_iconv_arg1="const"
10960
fi
10961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10962
      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);"
10963
fi
10964
 
10965
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10966
    echo "$as_me:$LINENO: result: ${ac_t:-
10967
         }$am_cv_proto_iconv" >&5
10968
echo "${ECHO_T}${ac_t:-
10969
         }$am_cv_proto_iconv" >&6
10970
 
10971
cat >>confdefs.h <<_ACEOF
10972
#define ICONV_CONST $am_cv_proto_iconv_arg1
10973
_ACEOF
10974
 
10975
  fi
10976
 
10977
 
10978
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10979
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10980
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10981
  echo $ECHO_N "(cached) $ECHO_C" >&6
10982
else
10983
  if test x$gcc_no_link = xyes; then
10984
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10985
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10986
   { (exit 1); exit 1; }; }
10987
fi
10988
cat >conftest.$ac_ext <<_ACEOF
10989
/* confdefs.h.  */
10990
_ACEOF
10991
cat confdefs.h >>conftest.$ac_ext
10992
cat >>conftest.$ac_ext <<_ACEOF
10993
/* end confdefs.h.  */
10994
#include 
10995
int
10996
main ()
10997
{
10998
return LC_MESSAGES
10999
  ;
11000
  return 0;
11001
}
11002
_ACEOF
11003
rm -f conftest.$ac_objext conftest$ac_exeext
11004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005
  (eval $ac_link) 2>conftest.er1
11006
  ac_status=$?
11007
  grep -v '^ *+' conftest.er1 >conftest.err
11008
  rm -f conftest.er1
11009
  cat conftest.err >&5
11010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011
  (exit $ac_status); } &&
11012
         { ac_try='test -z "$ac_c_werror_flag"
11013
                         || test ! -s conftest.err'
11014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015
  (eval $ac_try) 2>&5
11016
  ac_status=$?
11017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018
  (exit $ac_status); }; } &&
11019
         { ac_try='test -s conftest$ac_exeext'
11020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021
  (eval $ac_try) 2>&5
11022
  ac_status=$?
11023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
  (exit $ac_status); }; }; then
11025
  am_cv_val_LC_MESSAGES=yes
11026
else
11027
  echo "$as_me: failed program was:" >&5
11028
sed 's/^/| /' conftest.$ac_ext >&5
11029
 
11030
am_cv_val_LC_MESSAGES=no
11031
fi
11032
rm -f conftest.err conftest.$ac_objext \
11033
      conftest$ac_exeext conftest.$ac_ext
11034
fi
11035
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11036
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11037
  if test $am_cv_val_LC_MESSAGES = yes; then
11038
 
11039
cat >>confdefs.h <<\_ACEOF
11040
#define HAVE_LC_MESSAGES 1
11041
_ACEOF
11042
 
11043
  fi
11044
 
11045
   echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11046
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11047
if test "${ac_cv_struct_tm+set}" = set; then
11048
  echo $ECHO_N "(cached) $ECHO_C" >&6
11049
else
11050
  cat >conftest.$ac_ext <<_ACEOF
11051
/* confdefs.h.  */
11052
_ACEOF
11053
cat confdefs.h >>conftest.$ac_ext
11054
cat >>conftest.$ac_ext <<_ACEOF
11055
/* end confdefs.h.  */
11056
#include 
11057
#include 
11058
 
11059
int
11060
main ()
11061
{
11062
struct tm *tp; tp->tm_sec;
11063
  ;
11064
  return 0;
11065
}
11066
_ACEOF
11067
rm -f conftest.$ac_objext
11068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069
  (eval $ac_compile) 2>conftest.er1
11070
  ac_status=$?
11071
  grep -v '^ *+' conftest.er1 >conftest.err
11072
  rm -f conftest.er1
11073
  cat conftest.err >&5
11074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075
  (exit $ac_status); } &&
11076
         { ac_try='test -z "$ac_c_werror_flag"
11077
                         || test ! -s conftest.err'
11078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079
  (eval $ac_try) 2>&5
11080
  ac_status=$?
11081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
  (exit $ac_status); }; } &&
11083
         { ac_try='test -s conftest.$ac_objext'
11084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085
  (eval $ac_try) 2>&5
11086
  ac_status=$?
11087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088
  (exit $ac_status); }; }; then
11089
  ac_cv_struct_tm=time.h
11090
else
11091
  echo "$as_me: failed program was:" >&5
11092
sed 's/^/| /' conftest.$ac_ext >&5
11093
 
11094
ac_cv_struct_tm=sys/time.h
11095
fi
11096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11097
fi
11098
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11099
echo "${ECHO_T}$ac_cv_struct_tm" >&6
11100
if test $ac_cv_struct_tm = sys/time.h; then
11101
 
11102
cat >>confdefs.h <<\_ACEOF
11103
#define TM_IN_SYS_TIME 1
11104
_ACEOF
11105
 
11106
fi
11107
 
11108
echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11109
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11110
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11111
  echo $ECHO_N "(cached) $ECHO_C" >&6
11112
else
11113
  cat >conftest.$ac_ext <<_ACEOF
11114
/* confdefs.h.  */
11115
_ACEOF
11116
cat confdefs.h >>conftest.$ac_ext
11117
cat >>conftest.$ac_ext <<_ACEOF
11118
/* end confdefs.h.  */
11119
#include 
11120
#include <$ac_cv_struct_tm>
11121
 
11122
 
11123
int
11124
main ()
11125
{
11126
static struct tm ac_aggr;
11127
if (ac_aggr.tm_zone)
11128
return 0;
11129
  ;
11130
  return 0;
11131
}
11132
_ACEOF
11133
rm -f conftest.$ac_objext
11134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135
  (eval $ac_compile) 2>conftest.er1
11136
  ac_status=$?
11137
  grep -v '^ *+' conftest.er1 >conftest.err
11138
  rm -f conftest.er1
11139
  cat conftest.err >&5
11140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141
  (exit $ac_status); } &&
11142
         { ac_try='test -z "$ac_c_werror_flag"
11143
                         || test ! -s conftest.err'
11144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145
  (eval $ac_try) 2>&5
11146
  ac_status=$?
11147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148
  (exit $ac_status); }; } &&
11149
         { ac_try='test -s conftest.$ac_objext'
11150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151
  (eval $ac_try) 2>&5
11152
  ac_status=$?
11153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154
  (exit $ac_status); }; }; then
11155
  ac_cv_member_struct_tm_tm_zone=yes
11156
else
11157
  echo "$as_me: failed program was:" >&5
11158
sed 's/^/| /' conftest.$ac_ext >&5
11159
 
11160
cat >conftest.$ac_ext <<_ACEOF
11161
/* confdefs.h.  */
11162
_ACEOF
11163
cat confdefs.h >>conftest.$ac_ext
11164
cat >>conftest.$ac_ext <<_ACEOF
11165
/* end confdefs.h.  */
11166
#include 
11167
#include <$ac_cv_struct_tm>
11168
 
11169
 
11170
int
11171
main ()
11172
{
11173
static struct tm ac_aggr;
11174
if (sizeof ac_aggr.tm_zone)
11175
return 0;
11176
  ;
11177
  return 0;
11178
}
11179
_ACEOF
11180
rm -f conftest.$ac_objext
11181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182
  (eval $ac_compile) 2>conftest.er1
11183
  ac_status=$?
11184
  grep -v '^ *+' conftest.er1 >conftest.err
11185
  rm -f conftest.er1
11186
  cat conftest.err >&5
11187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188
  (exit $ac_status); } &&
11189
         { ac_try='test -z "$ac_c_werror_flag"
11190
                         || test ! -s conftest.err'
11191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192
  (eval $ac_try) 2>&5
11193
  ac_status=$?
11194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195
  (exit $ac_status); }; } &&
11196
         { ac_try='test -s conftest.$ac_objext'
11197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198
  (eval $ac_try) 2>&5
11199
  ac_status=$?
11200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
  (exit $ac_status); }; }; then
11202
  ac_cv_member_struct_tm_tm_zone=yes
11203
else
11204
  echo "$as_me: failed program was:" >&5
11205
sed 's/^/| /' conftest.$ac_ext >&5
11206
 
11207
ac_cv_member_struct_tm_tm_zone=no
11208
fi
11209
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210
fi
11211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11212
fi
11213
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11214
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11215
if test $ac_cv_member_struct_tm_tm_zone = yes; then
11216
 
11217
cat >>confdefs.h <<_ACEOF
11218
#define HAVE_STRUCT_TM_TM_ZONE 1
11219
_ACEOF
11220
 
11221
 
11222
fi
11223
 
11224
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11225
 
11226
cat >>confdefs.h <<\_ACEOF
11227
#define HAVE_TM_ZONE 1
11228
_ACEOF
11229
 
11230
else
11231
  echo "$as_me:$LINENO: checking for tzname" >&5
11232
echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11233
if test "${ac_cv_var_tzname+set}" = set; then
11234
  echo $ECHO_N "(cached) $ECHO_C" >&6
11235
else
11236
  if test x$gcc_no_link = xyes; then
11237
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11238
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11239
   { (exit 1); exit 1; }; }
11240
fi
11241
cat >conftest.$ac_ext <<_ACEOF
11242
/* confdefs.h.  */
11243
_ACEOF
11244
cat confdefs.h >>conftest.$ac_ext
11245
cat >>conftest.$ac_ext <<_ACEOF
11246
/* end confdefs.h.  */
11247
#include 
11248
#ifndef tzname /* For SGI.  */
11249
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11250
#endif
11251
 
11252
int
11253
main ()
11254
{
11255
atoi(*tzname);
11256
  ;
11257
  return 0;
11258
}
11259
_ACEOF
11260
rm -f conftest.$ac_objext conftest$ac_exeext
11261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262
  (eval $ac_link) 2>conftest.er1
11263
  ac_status=$?
11264
  grep -v '^ *+' conftest.er1 >conftest.err
11265
  rm -f conftest.er1
11266
  cat conftest.err >&5
11267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
  (exit $ac_status); } &&
11269
         { ac_try='test -z "$ac_c_werror_flag"
11270
                         || test ! -s conftest.err'
11271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272
  (eval $ac_try) 2>&5
11273
  ac_status=$?
11274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275
  (exit $ac_status); }; } &&
11276
         { ac_try='test -s conftest$ac_exeext'
11277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278
  (eval $ac_try) 2>&5
11279
  ac_status=$?
11280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281
  (exit $ac_status); }; }; then
11282
  ac_cv_var_tzname=yes
11283
else
11284
  echo "$as_me: failed program was:" >&5
11285
sed 's/^/| /' conftest.$ac_ext >&5
11286
 
11287
ac_cv_var_tzname=no
11288
fi
11289
rm -f conftest.err conftest.$ac_objext \
11290
      conftest$ac_exeext conftest.$ac_ext
11291
fi
11292
echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11293
echo "${ECHO_T}$ac_cv_var_tzname" >&6
11294
  if test $ac_cv_var_tzname = yes; then
11295
 
11296
cat >>confdefs.h <<\_ACEOF
11297
#define HAVE_TZNAME 1
11298
_ACEOF
11299
 
11300
  fi
11301
fi
11302
 
11303
 
11304
 
11305
 
11306
for ac_func in gethostbyname_r
11307
do
11308
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309
echo "$as_me:$LINENO: checking for $ac_func" >&5
11310
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11311
if eval "test \"\${$as_ac_var+set}\" = set"; then
11312
  echo $ECHO_N "(cached) $ECHO_C" >&6
11313
else
11314
  if test x$gcc_no_link = xyes; then
11315
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11316
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11317
   { (exit 1); exit 1; }; }
11318
fi
11319
cat >conftest.$ac_ext <<_ACEOF
11320
/* confdefs.h.  */
11321
_ACEOF
11322
cat confdefs.h >>conftest.$ac_ext
11323
cat >>conftest.$ac_ext <<_ACEOF
11324
/* end confdefs.h.  */
11325
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11326
   For example, HP-UX 11i  declares gettimeofday.  */
11327
#define $ac_func innocuous_$ac_func
11328
 
11329
/* System header to define __stub macros and hopefully few prototypes,
11330
    which can conflict with char $ac_func (); below.
11331
    Prefer  to  if __STDC__ is defined, since
11332
     exists even on freestanding compilers.  */
11333
 
11334
#ifdef __STDC__
11335
# include 
11336
#else
11337
# include 
11338
#endif
11339
 
11340
#undef $ac_func
11341
 
11342
/* Override any gcc2 internal prototype to avoid an error.  */
11343
#ifdef __cplusplus
11344
extern "C"
11345
{
11346
#endif
11347
/* We use char because int might match the return type of a gcc2
11348
   builtin and then its argument prototype would still apply.  */
11349
char $ac_func ();
11350
/* The GNU C library defines this for functions which it implements
11351
    to always fail with ENOSYS.  Some functions are actually named
11352
    something starting with __ and the normal name is an alias.  */
11353
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11354
choke me
11355
#else
11356
char (*f) () = $ac_func;
11357
#endif
11358
#ifdef __cplusplus
11359
}
11360
#endif
11361
 
11362
int
11363
main ()
11364
{
11365
return f != $ac_func;
11366
  ;
11367
  return 0;
11368
}
11369
_ACEOF
11370
rm -f conftest.$ac_objext conftest$ac_exeext
11371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372
  (eval $ac_link) 2>conftest.er1
11373
  ac_status=$?
11374
  grep -v '^ *+' conftest.er1 >conftest.err
11375
  rm -f conftest.er1
11376
  cat conftest.err >&5
11377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378
  (exit $ac_status); } &&
11379
         { ac_try='test -z "$ac_c_werror_flag"
11380
                         || test ! -s conftest.err'
11381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382
  (eval $ac_try) 2>&5
11383
  ac_status=$?
11384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385
  (exit $ac_status); }; } &&
11386
         { ac_try='test -s conftest$ac_exeext'
11387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388
  (eval $ac_try) 2>&5
11389
  ac_status=$?
11390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391
  (exit $ac_status); }; }; then
11392
  eval "$as_ac_var=yes"
11393
else
11394
  echo "$as_me: failed program was:" >&5
11395
sed 's/^/| /' conftest.$ac_ext >&5
11396
 
11397
eval "$as_ac_var=no"
11398
fi
11399
rm -f conftest.err conftest.$ac_objext \
11400
      conftest$ac_exeext conftest.$ac_ext
11401
fi
11402
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11403
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11404
if test `eval echo '${'$as_ac_var'}'` = yes; then
11405
  cat >>confdefs.h <<_ACEOF
11406
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11407
_ACEOF
11408
 
11409
 
11410
cat >>confdefs.h <<\_ACEOF
11411
#define HAVE_GETHOSTBYNAME_R 1
11412
_ACEOF
11413
 
11414
     # There are two different kinds of gethostbyname_r.
11415
     # We look for the one that returns `int'.
11416
     # Hopefully this check is robust enough.
11417
     cat >conftest.$ac_ext <<_ACEOF
11418
/* confdefs.h.  */
11419
_ACEOF
11420
cat confdefs.h >>conftest.$ac_ext
11421
cat >>conftest.$ac_ext <<_ACEOF
11422
/* end confdefs.h.  */
11423
#include 
11424
 
11425
_ACEOF
11426
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427
  $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11428
 
11429
 
11430
cat >>confdefs.h <<\_ACEOF
11431
#define GETHOSTBYNAME_R_RETURNS_INT 1
11432
_ACEOF
11433
 
11434
fi
11435
rm -f conftest*
11436
 
11437
 
11438
     case " $GCINCS " in
11439
     *" -D_REENTRANT "*) ;;
11440
     *)
11441
                echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11442
echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11443
if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11444
  echo $ECHO_N "(cached) $ECHO_C" >&6
11445
else
11446
   ac_ext=cc
11447
ac_cpp='$CXXCPP $CPPFLAGS'
11448
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11451
 
11452
          cat >conftest.$ac_ext <<_ACEOF
11453
/* confdefs.h.  */
11454
_ACEOF
11455
cat confdefs.h >>conftest.$ac_ext
11456
cat >>conftest.$ac_ext <<_ACEOF
11457
/* end confdefs.h.  */
11458
#include 
11459
int
11460
main ()
11461
{
11462
gethostbyname_r("", 0, 0);
11463
  ;
11464
  return 0;
11465
}
11466
_ACEOF
11467
rm -f conftest.$ac_objext
11468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469
  (eval $ac_compile) 2>conftest.er1
11470
  ac_status=$?
11471
  grep -v '^ *+' conftest.er1 >conftest.err
11472
  rm -f conftest.er1
11473
  cat conftest.err >&5
11474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475
  (exit $ac_status); } &&
11476
         { ac_try='test -z "$ac_cxx_werror_flag"
11477
                         || test ! -s conftest.err'
11478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479
  (eval $ac_try) 2>&5
11480
  ac_status=$?
11481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482
  (exit $ac_status); }; } &&
11483
         { ac_try='test -s conftest.$ac_objext'
11484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485
  (eval $ac_try) 2>&5
11486
  ac_status=$?
11487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488
  (exit $ac_status); }; }; then
11489
  libjava_cv_gethostbyname_r_needs_reentrant=no
11490
else
11491
  echo "$as_me: failed program was:" >&5
11492
sed 's/^/| /' conftest.$ac_ext >&5
11493
 
11494
                CPPFLAGS_SAVE="$CPPFLAGS"
11495
                CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11496
                cat >conftest.$ac_ext <<_ACEOF
11497
/* confdefs.h.  */
11498
_ACEOF
11499
cat confdefs.h >>conftest.$ac_ext
11500
cat >>conftest.$ac_ext <<_ACEOF
11501
/* end confdefs.h.  */
11502
#include 
11503
int
11504
main ()
11505
{
11506
gethostbyname_r("", 0, 0);
11507
  ;
11508
  return 0;
11509
}
11510
_ACEOF
11511
rm -f conftest.$ac_objext
11512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513
  (eval $ac_compile) 2>conftest.er1
11514
  ac_status=$?
11515
  grep -v '^ *+' conftest.er1 >conftest.err
11516
  rm -f conftest.er1
11517
  cat conftest.err >&5
11518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519
  (exit $ac_status); } &&
11520
         { ac_try='test -z "$ac_cxx_werror_flag"
11521
                         || test ! -s conftest.err'
11522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523
  (eval $ac_try) 2>&5
11524
  ac_status=$?
11525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
  (exit $ac_status); }; } &&
11527
         { ac_try='test -s conftest.$ac_objext'
11528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529
  (eval $ac_try) 2>&5
11530
  ac_status=$?
11531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532
  (exit $ac_status); }; }; then
11533
  libjava_cv_gethostbyname_r_needs_reentrant=yes
11534
else
11535
  echo "$as_me: failed program was:" >&5
11536
sed 's/^/| /' conftest.$ac_ext >&5
11537
 
11538
libjava_cv_gethostbyname_r_needs_reentrant=fail
11539
fi
11540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541
                CPPFLAGS="$CPPFLAGS_SAVE"
11542
 
11543
fi
11544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11545
          ac_ext=c
11546
ac_cpp='$CPP $CPPFLAGS'
11547
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11548
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11549
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11550
 
11551
 
11552
fi
11553
echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11554
echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11555
        if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11556
 
11557
cat >>confdefs.h <<\_ACEOF
11558
#define _REENTRANT 1
11559
_ACEOF
11560
 
11561
        fi
11562
     ;;
11563
     esac
11564
 
11565
     echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11566
echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11567
if test "${libjava_cv_struct_hostent_data+set}" = set; then
11568
  echo $ECHO_N "(cached) $ECHO_C" >&6
11569
else
11570
        cat >conftest.$ac_ext <<_ACEOF
11571
/* confdefs.h.  */
11572
_ACEOF
11573
cat confdefs.h >>conftest.$ac_ext
11574
cat >>conftest.$ac_ext <<_ACEOF
11575
/* end confdefs.h.  */
11576
 
11577
#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11578
# define _REENTRANT 1
11579
#endif
11580
#include 
11581
int
11582
main ()
11583
{
11584
struct hostent_data data;
11585
  ;
11586
  return 0;
11587
}
11588
_ACEOF
11589
rm -f conftest.$ac_objext
11590
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591
  (eval $ac_compile) 2>conftest.er1
11592
  ac_status=$?
11593
  grep -v '^ *+' conftest.er1 >conftest.err
11594
  rm -f conftest.er1
11595
  cat conftest.err >&5
11596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597
  (exit $ac_status); } &&
11598
         { ac_try='test -z "$ac_c_werror_flag"
11599
                         || test ! -s conftest.err'
11600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601
  (eval $ac_try) 2>&5
11602
  ac_status=$?
11603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604
  (exit $ac_status); }; } &&
11605
         { ac_try='test -s conftest.$ac_objext'
11606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607
  (eval $ac_try) 2>&5
11608
  ac_status=$?
11609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610
  (exit $ac_status); }; }; then
11611
  libjava_cv_struct_hostent_data=yes
11612
else
11613
  echo "$as_me: failed program was:" >&5
11614
sed 's/^/| /' conftest.$ac_ext >&5
11615
 
11616
libjava_cv_struct_hostent_data=no
11617
fi
11618
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11619
fi
11620
echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11621
echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11622
     if test "x$libjava_cv_struct_hostent_data" = xyes; then
11623
 
11624
cat >>confdefs.h <<\_ACEOF
11625
#define HAVE_STRUCT_HOSTENT_DATA 1
11626
_ACEOF
11627
 
11628
     fi
11629
 
11630
fi
11631
done
11632
 
11633
 
11634
   # FIXME: libjava source code expects to find a prototype for
11635
   # gethostbyaddr_r in netdb.h.  The outer check ensures that
11636
   # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11637
   # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11638
   # linkage check is enough, yet C++ code requires proper prototypes.)
11639
   cat >conftest.$ac_ext <<_ACEOF
11640
/* confdefs.h.  */
11641
_ACEOF
11642
cat confdefs.h >>conftest.$ac_ext
11643
cat >>conftest.$ac_ext <<_ACEOF
11644
/* end confdefs.h.  */
11645
#include 
11646
 
11647
_ACEOF
11648
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649
  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11650
 
11651
 
11652
for ac_func in gethostbyaddr_r
11653
do
11654
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655
echo "$as_me:$LINENO: checking for $ac_func" >&5
11656
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11657
if eval "test \"\${$as_ac_var+set}\" = set"; then
11658
  echo $ECHO_N "(cached) $ECHO_C" >&6
11659
else
11660
  if test x$gcc_no_link = xyes; then
11661
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11662
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11663
   { (exit 1); exit 1; }; }
11664
fi
11665
cat >conftest.$ac_ext <<_ACEOF
11666
/* confdefs.h.  */
11667
_ACEOF
11668
cat confdefs.h >>conftest.$ac_ext
11669
cat >>conftest.$ac_ext <<_ACEOF
11670
/* end confdefs.h.  */
11671
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11672
   For example, HP-UX 11i  declares gettimeofday.  */
11673
#define $ac_func innocuous_$ac_func
11674
 
11675
/* System header to define __stub macros and hopefully few prototypes,
11676
    which can conflict with char $ac_func (); below.
11677
    Prefer  to  if __STDC__ is defined, since
11678
     exists even on freestanding compilers.  */
11679
 
11680
#ifdef __STDC__
11681
# include 
11682
#else
11683
# include 
11684
#endif
11685
 
11686
#undef $ac_func
11687
 
11688
/* Override any gcc2 internal prototype to avoid an error.  */
11689
#ifdef __cplusplus
11690
extern "C"
11691
{
11692
#endif
11693
/* We use char because int might match the return type of a gcc2
11694
   builtin and then its argument prototype would still apply.  */
11695
char $ac_func ();
11696
/* The GNU C library defines this for functions which it implements
11697
    to always fail with ENOSYS.  Some functions are actually named
11698
    something starting with __ and the normal name is an alias.  */
11699
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11700
choke me
11701
#else
11702
char (*f) () = $ac_func;
11703
#endif
11704
#ifdef __cplusplus
11705
}
11706
#endif
11707
 
11708
int
11709
main ()
11710
{
11711
return f != $ac_func;
11712
  ;
11713
  return 0;
11714
}
11715
_ACEOF
11716
rm -f conftest.$ac_objext conftest$ac_exeext
11717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718
  (eval $ac_link) 2>conftest.er1
11719
  ac_status=$?
11720
  grep -v '^ *+' conftest.er1 >conftest.err
11721
  rm -f conftest.er1
11722
  cat conftest.err >&5
11723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724
  (exit $ac_status); } &&
11725
         { ac_try='test -z "$ac_c_werror_flag"
11726
                         || test ! -s conftest.err'
11727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728
  (eval $ac_try) 2>&5
11729
  ac_status=$?
11730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731
  (exit $ac_status); }; } &&
11732
         { ac_try='test -s conftest$ac_exeext'
11733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734
  (eval $ac_try) 2>&5
11735
  ac_status=$?
11736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737
  (exit $ac_status); }; }; then
11738
  eval "$as_ac_var=yes"
11739
else
11740
  echo "$as_me: failed program was:" >&5
11741
sed 's/^/| /' conftest.$ac_ext >&5
11742
 
11743
eval "$as_ac_var=no"
11744
fi
11745
rm -f conftest.err conftest.$ac_objext \
11746
      conftest$ac_exeext conftest.$ac_ext
11747
fi
11748
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11749
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11750
if test `eval echo '${'$as_ac_var'}'` = yes; then
11751
  cat >>confdefs.h <<_ACEOF
11752
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753
_ACEOF
11754
 
11755
 
11756
cat >>confdefs.h <<\_ACEOF
11757
#define HAVE_GETHOSTBYADDR_R 1
11758
_ACEOF
11759
 
11760
     # There are two different kinds of gethostbyaddr_r.
11761
     # We look for the one that returns `int'.
11762
     # Hopefully this check is robust enough.
11763
     cat >conftest.$ac_ext <<_ACEOF
11764
/* confdefs.h.  */
11765
_ACEOF
11766
cat confdefs.h >>conftest.$ac_ext
11767
cat >>conftest.$ac_ext <<_ACEOF
11768
/* end confdefs.h.  */
11769
#include 
11770
 
11771
_ACEOF
11772
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11773
  $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11774
 
11775
 
11776
cat >>confdefs.h <<\_ACEOF
11777
#define GETHOSTBYADDR_R_RETURNS_INT 1
11778
_ACEOF
11779
 
11780
fi
11781
rm -f conftest*
11782
 
11783
fi
11784
done
11785
 
11786
fi
11787
rm -f conftest*
11788
 
11789
 
11790
 
11791
for ac_func in gethostname
11792
do
11793
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11794
echo "$as_me:$LINENO: checking for $ac_func" >&5
11795
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11796
if eval "test \"\${$as_ac_var+set}\" = set"; then
11797
  echo $ECHO_N "(cached) $ECHO_C" >&6
11798
else
11799
  if test x$gcc_no_link = xyes; then
11800
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11801
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11802
   { (exit 1); exit 1; }; }
11803
fi
11804
cat >conftest.$ac_ext <<_ACEOF
11805
/* confdefs.h.  */
11806
_ACEOF
11807
cat confdefs.h >>conftest.$ac_ext
11808
cat >>conftest.$ac_ext <<_ACEOF
11809
/* end confdefs.h.  */
11810
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11811
   For example, HP-UX 11i  declares gettimeofday.  */
11812
#define $ac_func innocuous_$ac_func
11813
 
11814
/* System header to define __stub macros and hopefully few prototypes,
11815
    which can conflict with char $ac_func (); below.
11816
    Prefer  to  if __STDC__ is defined, since
11817
     exists even on freestanding compilers.  */
11818
 
11819
#ifdef __STDC__
11820
# include 
11821
#else
11822
# include 
11823
#endif
11824
 
11825
#undef $ac_func
11826
 
11827
/* Override any gcc2 internal prototype to avoid an error.  */
11828
#ifdef __cplusplus
11829
extern "C"
11830
{
11831
#endif
11832
/* We use char because int might match the return type of a gcc2
11833
   builtin and then its argument prototype would still apply.  */
11834
char $ac_func ();
11835
/* The GNU C library defines this for functions which it implements
11836
    to always fail with ENOSYS.  Some functions are actually named
11837
    something starting with __ and the normal name is an alias.  */
11838
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11839
choke me
11840
#else
11841
char (*f) () = $ac_func;
11842
#endif
11843
#ifdef __cplusplus
11844
}
11845
#endif
11846
 
11847
int
11848
main ()
11849
{
11850
return f != $ac_func;
11851
  ;
11852
  return 0;
11853
}
11854
_ACEOF
11855
rm -f conftest.$ac_objext conftest$ac_exeext
11856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857
  (eval $ac_link) 2>conftest.er1
11858
  ac_status=$?
11859
  grep -v '^ *+' conftest.er1 >conftest.err
11860
  rm -f conftest.er1
11861
  cat conftest.err >&5
11862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863
  (exit $ac_status); } &&
11864
         { ac_try='test -z "$ac_c_werror_flag"
11865
                         || test ! -s conftest.err'
11866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867
  (eval $ac_try) 2>&5
11868
  ac_status=$?
11869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870
  (exit $ac_status); }; } &&
11871
         { ac_try='test -s conftest$ac_exeext'
11872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873
  (eval $ac_try) 2>&5
11874
  ac_status=$?
11875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876
  (exit $ac_status); }; }; then
11877
  eval "$as_ac_var=yes"
11878
else
11879
  echo "$as_me: failed program was:" >&5
11880
sed 's/^/| /' conftest.$ac_ext >&5
11881
 
11882
eval "$as_ac_var=no"
11883
fi
11884
rm -f conftest.err conftest.$ac_objext \
11885
      conftest$ac_exeext conftest.$ac_ext
11886
fi
11887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11888
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11889
if test `eval echo '${'$as_ac_var'}'` = yes; then
11890
  cat >>confdefs.h <<_ACEOF
11891
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892
_ACEOF
11893
 
11894
 
11895
cat >>confdefs.h <<\_ACEOF
11896
#define HAVE_GETHOSTNAME 1
11897
_ACEOF
11898
 
11899
     cat >conftest.$ac_ext <<_ACEOF
11900
/* confdefs.h.  */
11901
_ACEOF
11902
cat confdefs.h >>conftest.$ac_ext
11903
cat >>conftest.$ac_ext <<_ACEOF
11904
/* end confdefs.h.  */
11905
#include 
11906
 
11907
_ACEOF
11908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909
  $EGREP "gethostname" >/dev/null 2>&1; then
11910
 
11911
 
11912
cat >>confdefs.h <<\_ACEOF
11913
#define HAVE_GETHOSTNAME_DECL 1
11914
_ACEOF
11915
 
11916
fi
11917
rm -f conftest*
11918
 
11919
fi
11920
done
11921
 
11922
 
11923
 
11924
for ac_func in usleep
11925
do
11926
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927
echo "$as_me:$LINENO: checking for $ac_func" >&5
11928
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11929
if eval "test \"\${$as_ac_var+set}\" = set"; then
11930
  echo $ECHO_N "(cached) $ECHO_C" >&6
11931
else
11932
  if test x$gcc_no_link = xyes; then
11933
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11934
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11935
   { (exit 1); exit 1; }; }
11936
fi
11937
cat >conftest.$ac_ext <<_ACEOF
11938
/* confdefs.h.  */
11939
_ACEOF
11940
cat confdefs.h >>conftest.$ac_ext
11941
cat >>conftest.$ac_ext <<_ACEOF
11942
/* end confdefs.h.  */
11943
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11944
   For example, HP-UX 11i  declares gettimeofday.  */
11945
#define $ac_func innocuous_$ac_func
11946
 
11947
/* System header to define __stub macros and hopefully few prototypes,
11948
    which can conflict with char $ac_func (); below.
11949
    Prefer  to  if __STDC__ is defined, since
11950
     exists even on freestanding compilers.  */
11951
 
11952
#ifdef __STDC__
11953
# include 
11954
#else
11955
# include 
11956
#endif
11957
 
11958
#undef $ac_func
11959
 
11960
/* Override any gcc2 internal prototype to avoid an error.  */
11961
#ifdef __cplusplus
11962
extern "C"
11963
{
11964
#endif
11965
/* We use char because int might match the return type of a gcc2
11966
   builtin and then its argument prototype would still apply.  */
11967
char $ac_func ();
11968
/* The GNU C library defines this for functions which it implements
11969
    to always fail with ENOSYS.  Some functions are actually named
11970
    something starting with __ and the normal name is an alias.  */
11971
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972
choke me
11973
#else
11974
char (*f) () = $ac_func;
11975
#endif
11976
#ifdef __cplusplus
11977
}
11978
#endif
11979
 
11980
int
11981
main ()
11982
{
11983
return f != $ac_func;
11984
  ;
11985
  return 0;
11986
}
11987
_ACEOF
11988
rm -f conftest.$ac_objext conftest$ac_exeext
11989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990
  (eval $ac_link) 2>conftest.er1
11991
  ac_status=$?
11992
  grep -v '^ *+' conftest.er1 >conftest.err
11993
  rm -f conftest.er1
11994
  cat conftest.err >&5
11995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996
  (exit $ac_status); } &&
11997
         { ac_try='test -z "$ac_c_werror_flag"
11998
                         || test ! -s conftest.err'
11999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000
  (eval $ac_try) 2>&5
12001
  ac_status=$?
12002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003
  (exit $ac_status); }; } &&
12004
         { ac_try='test -s conftest$ac_exeext'
12005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006
  (eval $ac_try) 2>&5
12007
  ac_status=$?
12008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009
  (exit $ac_status); }; }; then
12010
  eval "$as_ac_var=yes"
12011
else
12012
  echo "$as_me: failed program was:" >&5
12013
sed 's/^/| /' conftest.$ac_ext >&5
12014
 
12015
eval "$as_ac_var=no"
12016
fi
12017
rm -f conftest.err conftest.$ac_objext \
12018
      conftest$ac_exeext conftest.$ac_ext
12019
fi
12020
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022
if test `eval echo '${'$as_ac_var'}'` = yes; then
12023
  cat >>confdefs.h <<_ACEOF
12024
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025
_ACEOF
12026
 
12027
     cat >conftest.$ac_ext <<_ACEOF
12028
/* confdefs.h.  */
12029
_ACEOF
12030
cat confdefs.h >>conftest.$ac_ext
12031
cat >>conftest.$ac_ext <<_ACEOF
12032
/* end confdefs.h.  */
12033
#include 
12034
 
12035
_ACEOF
12036
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12037
  $EGREP "usleep" >/dev/null 2>&1; then
12038
 
12039
 
12040
cat >>confdefs.h <<\_ACEOF
12041
#define HAVE_USLEEP_DECL 1
12042
_ACEOF
12043
 
12044
fi
12045
rm -f conftest*
12046
 
12047
fi
12048
done
12049
 
12050
 
12051
   # Look for these functions in the thread library, but only bother
12052
   # if using POSIX threads.
12053
   if test "$THREADS" = posix; then
12054
      save_LIBS="$LIBS"
12055
      LIBS="$LIBS $THREADLIBS"
12056
      # Some POSIX thread systems don't have pthread_mutexattr_settype.
12057
      # E.g., Solaris.
12058
 
12059
 
12060
for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12061
do
12062
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12063
echo "$as_me:$LINENO: checking for $ac_func" >&5
12064
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12065
if eval "test \"\${$as_ac_var+set}\" = set"; then
12066
  echo $ECHO_N "(cached) $ECHO_C" >&6
12067
else
12068
  if test x$gcc_no_link = xyes; then
12069
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12070
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12071
   { (exit 1); exit 1; }; }
12072
fi
12073
cat >conftest.$ac_ext <<_ACEOF
12074
/* confdefs.h.  */
12075
_ACEOF
12076
cat confdefs.h >>conftest.$ac_ext
12077
cat >>conftest.$ac_ext <<_ACEOF
12078
/* end confdefs.h.  */
12079
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12080
   For example, HP-UX 11i  declares gettimeofday.  */
12081
#define $ac_func innocuous_$ac_func
12082
 
12083
/* System header to define __stub macros and hopefully few prototypes,
12084
    which can conflict with char $ac_func (); below.
12085
    Prefer  to  if __STDC__ is defined, since
12086
     exists even on freestanding compilers.  */
12087
 
12088
#ifdef __STDC__
12089
# include 
12090
#else
12091
# include 
12092
#endif
12093
 
12094
#undef $ac_func
12095
 
12096
/* Override any gcc2 internal prototype to avoid an error.  */
12097
#ifdef __cplusplus
12098
extern "C"
12099
{
12100
#endif
12101
/* We use char because int might match the return type of a gcc2
12102
   builtin and then its argument prototype would still apply.  */
12103
char $ac_func ();
12104
/* The GNU C library defines this for functions which it implements
12105
    to always fail with ENOSYS.  Some functions are actually named
12106
    something starting with __ and the normal name is an alias.  */
12107
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12108
choke me
12109
#else
12110
char (*f) () = $ac_func;
12111
#endif
12112
#ifdef __cplusplus
12113
}
12114
#endif
12115
 
12116
int
12117
main ()
12118
{
12119
return f != $ac_func;
12120
  ;
12121
  return 0;
12122
}
12123
_ACEOF
12124
rm -f conftest.$ac_objext conftest$ac_exeext
12125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126
  (eval $ac_link) 2>conftest.er1
12127
  ac_status=$?
12128
  grep -v '^ *+' conftest.er1 >conftest.err
12129
  rm -f conftest.er1
12130
  cat conftest.err >&5
12131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132
  (exit $ac_status); } &&
12133
         { ac_try='test -z "$ac_c_werror_flag"
12134
                         || test ! -s conftest.err'
12135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136
  (eval $ac_try) 2>&5
12137
  ac_status=$?
12138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139
  (exit $ac_status); }; } &&
12140
         { ac_try='test -s conftest$ac_exeext'
12141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142
  (eval $ac_try) 2>&5
12143
  ac_status=$?
12144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145
  (exit $ac_status); }; }; then
12146
  eval "$as_ac_var=yes"
12147
else
12148
  echo "$as_me: failed program was:" >&5
12149
sed 's/^/| /' conftest.$ac_ext >&5
12150
 
12151
eval "$as_ac_var=no"
12152
fi
12153
rm -f conftest.err conftest.$ac_objext \
12154
      conftest$ac_exeext conftest.$ac_ext
12155
fi
12156
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12157
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12158
if test `eval echo '${'$as_ac_var'}'` = yes; then
12159
  cat >>confdefs.h <<_ACEOF
12160
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12161
_ACEOF
12162
 
12163
fi
12164
done
12165
 
12166
 
12167
      # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12168
      # Solaris 7 the name librt is preferred.
12169
 
12170
for ac_func in sched_yield
12171
do
12172
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12173
echo "$as_me:$LINENO: checking for $ac_func" >&5
12174
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12175
if eval "test \"\${$as_ac_var+set}\" = set"; then
12176
  echo $ECHO_N "(cached) $ECHO_C" >&6
12177
else
12178
  if test x$gcc_no_link = xyes; then
12179
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12180
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12181
   { (exit 1); exit 1; }; }
12182
fi
12183
cat >conftest.$ac_ext <<_ACEOF
12184
/* confdefs.h.  */
12185
_ACEOF
12186
cat confdefs.h >>conftest.$ac_ext
12187
cat >>conftest.$ac_ext <<_ACEOF
12188
/* end confdefs.h.  */
12189
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12190
   For example, HP-UX 11i  declares gettimeofday.  */
12191
#define $ac_func innocuous_$ac_func
12192
 
12193
/* System header to define __stub macros and hopefully few prototypes,
12194
    which can conflict with char $ac_func (); below.
12195
    Prefer  to  if __STDC__ is defined, since
12196
     exists even on freestanding compilers.  */
12197
 
12198
#ifdef __STDC__
12199
# include 
12200
#else
12201
# include 
12202
#endif
12203
 
12204
#undef $ac_func
12205
 
12206
/* Override any gcc2 internal prototype to avoid an error.  */
12207
#ifdef __cplusplus
12208
extern "C"
12209
{
12210
#endif
12211
/* We use char because int might match the return type of a gcc2
12212
   builtin and then its argument prototype would still apply.  */
12213
char $ac_func ();
12214
/* The GNU C library defines this for functions which it implements
12215
    to always fail with ENOSYS.  Some functions are actually named
12216
    something starting with __ and the normal name is an alias.  */
12217
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218
choke me
12219
#else
12220
char (*f) () = $ac_func;
12221
#endif
12222
#ifdef __cplusplus
12223
}
12224
#endif
12225
 
12226
int
12227
main ()
12228
{
12229
return f != $ac_func;
12230
  ;
12231
  return 0;
12232
}
12233
_ACEOF
12234
rm -f conftest.$ac_objext conftest$ac_exeext
12235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236
  (eval $ac_link) 2>conftest.er1
12237
  ac_status=$?
12238
  grep -v '^ *+' conftest.er1 >conftest.err
12239
  rm -f conftest.er1
12240
  cat conftest.err >&5
12241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242
  (exit $ac_status); } &&
12243
         { ac_try='test -z "$ac_c_werror_flag"
12244
                         || test ! -s conftest.err'
12245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246
  (eval $ac_try) 2>&5
12247
  ac_status=$?
12248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249
  (exit $ac_status); }; } &&
12250
         { ac_try='test -s conftest$ac_exeext'
12251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252
  (eval $ac_try) 2>&5
12253
  ac_status=$?
12254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255
  (exit $ac_status); }; }; then
12256
  eval "$as_ac_var=yes"
12257
else
12258
  echo "$as_me: failed program was:" >&5
12259
sed 's/^/| /' conftest.$ac_ext >&5
12260
 
12261
eval "$as_ac_var=no"
12262
fi
12263
rm -f conftest.err conftest.$ac_objext \
12264
      conftest$ac_exeext conftest.$ac_ext
12265
fi
12266
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12267
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12268
if test `eval echo '${'$as_ac_var'}'` = yes; then
12269
  cat >>confdefs.h <<_ACEOF
12270
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271
_ACEOF
12272
 
12273
else
12274
 
12275
        echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12276
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12277
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12278
  echo $ECHO_N "(cached) $ECHO_C" >&6
12279
else
12280
  ac_check_lib_save_LIBS=$LIBS
12281
LIBS="-lrt  $LIBS"
12282
if test x$gcc_no_link = xyes; then
12283
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12284
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12285
   { (exit 1); exit 1; }; }
12286
fi
12287
cat >conftest.$ac_ext <<_ACEOF
12288
/* confdefs.h.  */
12289
_ACEOF
12290
cat confdefs.h >>conftest.$ac_ext
12291
cat >>conftest.$ac_ext <<_ACEOF
12292
/* end confdefs.h.  */
12293
 
12294
/* Override any gcc2 internal prototype to avoid an error.  */
12295
#ifdef __cplusplus
12296
extern "C"
12297
#endif
12298
/* We use char because int might match the return type of a gcc2
12299
   builtin and then its argument prototype would still apply.  */
12300
char sched_yield ();
12301
int
12302
main ()
12303
{
12304
sched_yield ();
12305
  ;
12306
  return 0;
12307
}
12308
_ACEOF
12309
rm -f conftest.$ac_objext conftest$ac_exeext
12310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311
  (eval $ac_link) 2>conftest.er1
12312
  ac_status=$?
12313
  grep -v '^ *+' conftest.er1 >conftest.err
12314
  rm -f conftest.er1
12315
  cat conftest.err >&5
12316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317
  (exit $ac_status); } &&
12318
         { ac_try='test -z "$ac_c_werror_flag"
12319
                         || test ! -s conftest.err'
12320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321
  (eval $ac_try) 2>&5
12322
  ac_status=$?
12323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324
  (exit $ac_status); }; } &&
12325
         { ac_try='test -s conftest$ac_exeext'
12326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327
  (eval $ac_try) 2>&5
12328
  ac_status=$?
12329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330
  (exit $ac_status); }; }; then
12331
  ac_cv_lib_rt_sched_yield=yes
12332
else
12333
  echo "$as_me: failed program was:" >&5
12334
sed 's/^/| /' conftest.$ac_ext >&5
12335
 
12336
ac_cv_lib_rt_sched_yield=no
12337
fi
12338
rm -f conftest.err conftest.$ac_objext \
12339
      conftest$ac_exeext conftest.$ac_ext
12340
LIBS=$ac_check_lib_save_LIBS
12341
fi
12342
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12343
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12344
if test $ac_cv_lib_rt_sched_yield = yes; then
12345
 
12346
          cat >>confdefs.h <<\_ACEOF
12347
#define HAVE_SCHED_YIELD 1
12348
_ACEOF
12349
 
12350
          THREADLIBS="$THREADLIBS -lrt"
12351
          THREADSPEC="$THREADSPEC -lrt"
12352
else
12353
 
12354
          echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12355
echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12356
if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12357
  echo $ECHO_N "(cached) $ECHO_C" >&6
12358
else
12359
  ac_check_lib_save_LIBS=$LIBS
12360
LIBS="-lposix4  $LIBS"
12361
if test x$gcc_no_link = xyes; then
12362
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12363
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12364
   { (exit 1); exit 1; }; }
12365
fi
12366
cat >conftest.$ac_ext <<_ACEOF
12367
/* confdefs.h.  */
12368
_ACEOF
12369
cat confdefs.h >>conftest.$ac_ext
12370
cat >>conftest.$ac_ext <<_ACEOF
12371
/* end confdefs.h.  */
12372
 
12373
/* Override any gcc2 internal prototype to avoid an error.  */
12374
#ifdef __cplusplus
12375
extern "C"
12376
#endif
12377
/* We use char because int might match the return type of a gcc2
12378
   builtin and then its argument prototype would still apply.  */
12379
char sched_yield ();
12380
int
12381
main ()
12382
{
12383
sched_yield ();
12384
  ;
12385
  return 0;
12386
}
12387
_ACEOF
12388
rm -f conftest.$ac_objext conftest$ac_exeext
12389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390
  (eval $ac_link) 2>conftest.er1
12391
  ac_status=$?
12392
  grep -v '^ *+' conftest.er1 >conftest.err
12393
  rm -f conftest.er1
12394
  cat conftest.err >&5
12395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396
  (exit $ac_status); } &&
12397
         { ac_try='test -z "$ac_c_werror_flag"
12398
                         || test ! -s conftest.err'
12399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400
  (eval $ac_try) 2>&5
12401
  ac_status=$?
12402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403
  (exit $ac_status); }; } &&
12404
         { ac_try='test -s conftest$ac_exeext'
12405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406
  (eval $ac_try) 2>&5
12407
  ac_status=$?
12408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
  (exit $ac_status); }; }; then
12410
  ac_cv_lib_posix4_sched_yield=yes
12411
else
12412
  echo "$as_me: failed program was:" >&5
12413
sed 's/^/| /' conftest.$ac_ext >&5
12414
 
12415
ac_cv_lib_posix4_sched_yield=no
12416
fi
12417
rm -f conftest.err conftest.$ac_objext \
12418
      conftest$ac_exeext conftest.$ac_ext
12419
LIBS=$ac_check_lib_save_LIBS
12420
fi
12421
echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12422
echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12423
if test $ac_cv_lib_posix4_sched_yield = yes; then
12424
 
12425
            cat >>confdefs.h <<\_ACEOF
12426
#define HAVE_SCHED_YIELD 1
12427
_ACEOF
12428
 
12429
            THREADLIBS="$THREADLIBS -lposix4"
12430
            THREADSPEC="$THREADSPEC -lposix4"
12431
fi
12432
 
12433
fi
12434
 
12435
fi
12436
done
12437
 
12438
      LIBS="$save_LIBS"
12439
 
12440
      # We can save a little space at runtime if the mutex has m_count
12441
      # or __m_count.  This is a nice hack for Linux.
12442
      cat >conftest.$ac_ext <<_ACEOF
12443
/* confdefs.h.  */
12444
_ACEOF
12445
cat confdefs.h >>conftest.$ac_ext
12446
cat >>conftest.$ac_ext <<_ACEOF
12447
/* end confdefs.h.  */
12448
#include 
12449
int
12450
main ()
12451
{
12452
 
12453
          extern pthread_mutex_t *mutex; int q = mutex->m_count;
12454
 
12455
  ;
12456
  return 0;
12457
}
12458
_ACEOF
12459
rm -f conftest.$ac_objext
12460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461
  (eval $ac_compile) 2>conftest.er1
12462
  ac_status=$?
12463
  grep -v '^ *+' conftest.er1 >conftest.err
12464
  rm -f conftest.er1
12465
  cat conftest.err >&5
12466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467
  (exit $ac_status); } &&
12468
         { ac_try='test -z "$ac_c_werror_flag"
12469
                         || test ! -s conftest.err'
12470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471
  (eval $ac_try) 2>&5
12472
  ac_status=$?
12473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474
  (exit $ac_status); }; } &&
12475
         { ac_try='test -s conftest.$ac_objext'
12476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477
  (eval $ac_try) 2>&5
12478
  ac_status=$?
12479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480
  (exit $ac_status); }; }; then
12481
 
12482
cat >>confdefs.h <<\_ACEOF
12483
#define PTHREAD_MUTEX_HAVE_M_COUNT 1
12484
_ACEOF
12485
 
12486
else
12487
  echo "$as_me: failed program was:" >&5
12488
sed 's/^/| /' conftest.$ac_ext >&5
12489
 
12490
 
12491
        cat >conftest.$ac_ext <<_ACEOF
12492
/* confdefs.h.  */
12493
_ACEOF
12494
cat confdefs.h >>conftest.$ac_ext
12495
cat >>conftest.$ac_ext <<_ACEOF
12496
/* end confdefs.h.  */
12497
#include 
12498
int
12499
main ()
12500
{
12501
 
12502
            extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12503
 
12504
  ;
12505
  return 0;
12506
}
12507
_ACEOF
12508
rm -f conftest.$ac_objext
12509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510
  (eval $ac_compile) 2>conftest.er1
12511
  ac_status=$?
12512
  grep -v '^ *+' conftest.er1 >conftest.err
12513
  rm -f conftest.er1
12514
  cat conftest.err >&5
12515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516
  (exit $ac_status); } &&
12517
         { ac_try='test -z "$ac_c_werror_flag"
12518
                         || test ! -s conftest.err'
12519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520
  (eval $ac_try) 2>&5
12521
  ac_status=$?
12522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523
  (exit $ac_status); }; } &&
12524
         { ac_try='test -s conftest.$ac_objext'
12525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526
  (eval $ac_try) 2>&5
12527
  ac_status=$?
12528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529
  (exit $ac_status); }; }; then
12530
 
12531
cat >>confdefs.h <<\_ACEOF
12532
#define PTHREAD_MUTEX_HAVE___M_COUNT 1
12533
_ACEOF
12534
 
12535
else
12536
  echo "$as_me: failed program was:" >&5
12537
sed 's/^/| /' conftest.$ac_ext >&5
12538
 
12539
fi
12540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12541
fi
12542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12543
   fi
12544
 
12545
   # We require a way to get the time.
12546
   time_found=no
12547
 
12548
 
12549
 
12550
for ac_func in gettimeofday time ftime
12551
do
12552
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553
echo "$as_me:$LINENO: checking for $ac_func" >&5
12554
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12555
if eval "test \"\${$as_ac_var+set}\" = set"; then
12556
  echo $ECHO_N "(cached) $ECHO_C" >&6
12557
else
12558
  if test x$gcc_no_link = xyes; then
12559
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12560
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12561
   { (exit 1); exit 1; }; }
12562
fi
12563
cat >conftest.$ac_ext <<_ACEOF
12564
/* confdefs.h.  */
12565
_ACEOF
12566
cat confdefs.h >>conftest.$ac_ext
12567
cat >>conftest.$ac_ext <<_ACEOF
12568
/* end confdefs.h.  */
12569
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12570
   For example, HP-UX 11i  declares gettimeofday.  */
12571
#define $ac_func innocuous_$ac_func
12572
 
12573
/* System header to define __stub macros and hopefully few prototypes,
12574
    which can conflict with char $ac_func (); below.
12575
    Prefer  to  if __STDC__ is defined, since
12576
     exists even on freestanding compilers.  */
12577
 
12578
#ifdef __STDC__
12579
# include 
12580
#else
12581
# include 
12582
#endif
12583
 
12584
#undef $ac_func
12585
 
12586
/* Override any gcc2 internal prototype to avoid an error.  */
12587
#ifdef __cplusplus
12588
extern "C"
12589
{
12590
#endif
12591
/* We use char because int might match the return type of a gcc2
12592
   builtin and then its argument prototype would still apply.  */
12593
char $ac_func ();
12594
/* The GNU C library defines this for functions which it implements
12595
    to always fail with ENOSYS.  Some functions are actually named
12596
    something starting with __ and the normal name is an alias.  */
12597
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12598
choke me
12599
#else
12600
char (*f) () = $ac_func;
12601
#endif
12602
#ifdef __cplusplus
12603
}
12604
#endif
12605
 
12606
int
12607
main ()
12608
{
12609
return f != $ac_func;
12610
  ;
12611
  return 0;
12612
}
12613
_ACEOF
12614
rm -f conftest.$ac_objext conftest$ac_exeext
12615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616
  (eval $ac_link) 2>conftest.er1
12617
  ac_status=$?
12618
  grep -v '^ *+' conftest.er1 >conftest.err
12619
  rm -f conftest.er1
12620
  cat conftest.err >&5
12621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622
  (exit $ac_status); } &&
12623
         { ac_try='test -z "$ac_c_werror_flag"
12624
                         || test ! -s conftest.err'
12625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626
  (eval $ac_try) 2>&5
12627
  ac_status=$?
12628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629
  (exit $ac_status); }; } &&
12630
         { ac_try='test -s conftest$ac_exeext'
12631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632
  (eval $ac_try) 2>&5
12633
  ac_status=$?
12634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635
  (exit $ac_status); }; }; then
12636
  eval "$as_ac_var=yes"
12637
else
12638
  echo "$as_me: failed program was:" >&5
12639
sed 's/^/| /' conftest.$ac_ext >&5
12640
 
12641
eval "$as_ac_var=no"
12642
fi
12643
rm -f conftest.err conftest.$ac_objext \
12644
      conftest$ac_exeext conftest.$ac_ext
12645
fi
12646
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12647
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12648
if test `eval echo '${'$as_ac_var'}'` = yes; then
12649
  cat >>confdefs.h <<_ACEOF
12650
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12651
_ACEOF
12652
 time_found=yes
12653
fi
12654
done
12655
 
12656
   if test "$time_found" = no; then
12657
      { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12658
echo "$as_me: error: no function found to get the time" >&2;}
12659
   { (exit 1); exit 1; }; }
12660
   fi
12661
 
12662
 
12663
for ac_func in memmove
12664
do
12665
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666
echo "$as_me:$LINENO: checking for $ac_func" >&5
12667
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12668
if eval "test \"\${$as_ac_var+set}\" = set"; then
12669
  echo $ECHO_N "(cached) $ECHO_C" >&6
12670
else
12671
  if test x$gcc_no_link = xyes; then
12672
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12673
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12674
   { (exit 1); exit 1; }; }
12675
fi
12676
cat >conftest.$ac_ext <<_ACEOF
12677
/* confdefs.h.  */
12678
_ACEOF
12679
cat confdefs.h >>conftest.$ac_ext
12680
cat >>conftest.$ac_ext <<_ACEOF
12681
/* end confdefs.h.  */
12682
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12683
   For example, HP-UX 11i  declares gettimeofday.  */
12684
#define $ac_func innocuous_$ac_func
12685
 
12686
/* System header to define __stub macros and hopefully few prototypes,
12687
    which can conflict with char $ac_func (); below.
12688
    Prefer  to  if __STDC__ is defined, since
12689
     exists even on freestanding compilers.  */
12690
 
12691
#ifdef __STDC__
12692
# include 
12693
#else
12694
# include 
12695
#endif
12696
 
12697
#undef $ac_func
12698
 
12699
/* Override any gcc2 internal prototype to avoid an error.  */
12700
#ifdef __cplusplus
12701
extern "C"
12702
{
12703
#endif
12704
/* We use char because int might match the return type of a gcc2
12705
   builtin and then its argument prototype would still apply.  */
12706
char $ac_func ();
12707
/* The GNU C library defines this for functions which it implements
12708
    to always fail with ENOSYS.  Some functions are actually named
12709
    something starting with __ and the normal name is an alias.  */
12710
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12711
choke me
12712
#else
12713
char (*f) () = $ac_func;
12714
#endif
12715
#ifdef __cplusplus
12716
}
12717
#endif
12718
 
12719
int
12720
main ()
12721
{
12722
return f != $ac_func;
12723
  ;
12724
  return 0;
12725
}
12726
_ACEOF
12727
rm -f conftest.$ac_objext conftest$ac_exeext
12728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729
  (eval $ac_link) 2>conftest.er1
12730
  ac_status=$?
12731
  grep -v '^ *+' conftest.er1 >conftest.err
12732
  rm -f conftest.er1
12733
  cat conftest.err >&5
12734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735
  (exit $ac_status); } &&
12736
         { ac_try='test -z "$ac_c_werror_flag"
12737
                         || test ! -s conftest.err'
12738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739
  (eval $ac_try) 2>&5
12740
  ac_status=$?
12741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742
  (exit $ac_status); }; } &&
12743
         { ac_try='test -s conftest$ac_exeext'
12744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745
  (eval $ac_try) 2>&5
12746
  ac_status=$?
12747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748
  (exit $ac_status); }; }; then
12749
  eval "$as_ac_var=yes"
12750
else
12751
  echo "$as_me: failed program was:" >&5
12752
sed 's/^/| /' conftest.$ac_ext >&5
12753
 
12754
eval "$as_ac_var=no"
12755
fi
12756
rm -f conftest.err conftest.$ac_objext \
12757
      conftest$ac_exeext conftest.$ac_ext
12758
fi
12759
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12760
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12761
if test `eval echo '${'$as_ac_var'}'` = yes; then
12762
  cat >>confdefs.h <<_ACEOF
12763
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12764
_ACEOF
12765
 
12766
fi
12767
done
12768
 
12769
 
12770
   # We require memcpy.
12771
   memcpy_found=no
12772
 
12773
for ac_func in memcpy
12774
do
12775
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776
echo "$as_me:$LINENO: checking for $ac_func" >&5
12777
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12778
if eval "test \"\${$as_ac_var+set}\" = set"; then
12779
  echo $ECHO_N "(cached) $ECHO_C" >&6
12780
else
12781
  if test x$gcc_no_link = xyes; then
12782
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12783
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12784
   { (exit 1); exit 1; }; }
12785
fi
12786
cat >conftest.$ac_ext <<_ACEOF
12787
/* confdefs.h.  */
12788
_ACEOF
12789
cat confdefs.h >>conftest.$ac_ext
12790
cat >>conftest.$ac_ext <<_ACEOF
12791
/* end confdefs.h.  */
12792
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12793
   For example, HP-UX 11i  declares gettimeofday.  */
12794
#define $ac_func innocuous_$ac_func
12795
 
12796
/* System header to define __stub macros and hopefully few prototypes,
12797
    which can conflict with char $ac_func (); below.
12798
    Prefer  to  if __STDC__ is defined, since
12799
     exists even on freestanding compilers.  */
12800
 
12801
#ifdef __STDC__
12802
# include 
12803
#else
12804
# include 
12805
#endif
12806
 
12807
#undef $ac_func
12808
 
12809
/* Override any gcc2 internal prototype to avoid an error.  */
12810
#ifdef __cplusplus
12811
extern "C"
12812
{
12813
#endif
12814
/* We use char because int might match the return type of a gcc2
12815
   builtin and then its argument prototype would still apply.  */
12816
char $ac_func ();
12817
/* The GNU C library defines this for functions which it implements
12818
    to always fail with ENOSYS.  Some functions are actually named
12819
    something starting with __ and the normal name is an alias.  */
12820
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12821
choke me
12822
#else
12823
char (*f) () = $ac_func;
12824
#endif
12825
#ifdef __cplusplus
12826
}
12827
#endif
12828
 
12829
int
12830
main ()
12831
{
12832
return f != $ac_func;
12833
  ;
12834
  return 0;
12835
}
12836
_ACEOF
12837
rm -f conftest.$ac_objext conftest$ac_exeext
12838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839
  (eval $ac_link) 2>conftest.er1
12840
  ac_status=$?
12841
  grep -v '^ *+' conftest.er1 >conftest.err
12842
  rm -f conftest.er1
12843
  cat conftest.err >&5
12844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845
  (exit $ac_status); } &&
12846
         { ac_try='test -z "$ac_c_werror_flag"
12847
                         || test ! -s conftest.err'
12848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849
  (eval $ac_try) 2>&5
12850
  ac_status=$?
12851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852
  (exit $ac_status); }; } &&
12853
         { ac_try='test -s conftest$ac_exeext'
12854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855
  (eval $ac_try) 2>&5
12856
  ac_status=$?
12857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858
  (exit $ac_status); }; }; then
12859
  eval "$as_ac_var=yes"
12860
else
12861
  echo "$as_me: failed program was:" >&5
12862
sed 's/^/| /' conftest.$ac_ext >&5
12863
 
12864
eval "$as_ac_var=no"
12865
fi
12866
rm -f conftest.err conftest.$ac_objext \
12867
      conftest$ac_exeext conftest.$ac_ext
12868
fi
12869
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12870
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12871
if test `eval echo '${'$as_ac_var'}'` = yes; then
12872
  cat >>confdefs.h <<_ACEOF
12873
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12874
_ACEOF
12875
 memcpy_found=yes
12876
fi
12877
done
12878
 
12879
   if test "$memcpy_found" = no; then
12880
      { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12881
echo "$as_me: error: memcpy is required" >&2;}
12882
   { (exit 1); exit 1; }; }
12883
   fi
12884
 
12885
   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12886
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12887
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12888
  echo $ECHO_N "(cached) $ECHO_C" >&6
12889
else
12890
  ac_check_lib_save_LIBS=$LIBS
12891
LIBS="-ldl  $LIBS"
12892
if test x$gcc_no_link = xyes; then
12893
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12894
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12895
   { (exit 1); exit 1; }; }
12896
fi
12897
cat >conftest.$ac_ext <<_ACEOF
12898
/* confdefs.h.  */
12899
_ACEOF
12900
cat confdefs.h >>conftest.$ac_ext
12901
cat >>conftest.$ac_ext <<_ACEOF
12902
/* end confdefs.h.  */
12903
 
12904
/* Override any gcc2 internal prototype to avoid an error.  */
12905
#ifdef __cplusplus
12906
extern "C"
12907
#endif
12908
/* We use char because int might match the return type of a gcc2
12909
   builtin and then its argument prototype would still apply.  */
12910
char dlopen ();
12911
int
12912
main ()
12913
{
12914
dlopen ();
12915
  ;
12916
  return 0;
12917
}
12918
_ACEOF
12919
rm -f conftest.$ac_objext conftest$ac_exeext
12920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921
  (eval $ac_link) 2>conftest.er1
12922
  ac_status=$?
12923
  grep -v '^ *+' conftest.er1 >conftest.err
12924
  rm -f conftest.er1
12925
  cat conftest.err >&5
12926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
  (exit $ac_status); } &&
12928
         { ac_try='test -z "$ac_c_werror_flag"
12929
                         || test ! -s conftest.err'
12930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931
  (eval $ac_try) 2>&5
12932
  ac_status=$?
12933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934
  (exit $ac_status); }; } &&
12935
         { ac_try='test -s conftest$ac_exeext'
12936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937
  (eval $ac_try) 2>&5
12938
  ac_status=$?
12939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940
  (exit $ac_status); }; }; then
12941
  ac_cv_lib_dl_dlopen=yes
12942
else
12943
  echo "$as_me: failed program was:" >&5
12944
sed 's/^/| /' conftest.$ac_ext >&5
12945
 
12946
ac_cv_lib_dl_dlopen=no
12947
fi
12948
rm -f conftest.err conftest.$ac_objext \
12949
      conftest$ac_exeext conftest.$ac_ext
12950
LIBS=$ac_check_lib_save_LIBS
12951
fi
12952
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12953
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12954
if test $ac_cv_lib_dl_dlopen = yes; then
12955
 
12956
 
12957
cat >>confdefs.h <<\_ACEOF
12958
#define HAVE_DLOPEN 1
12959
_ACEOF
12960
 
12961
fi
12962
 
12963
 
12964
   # Some library-finding code we stole from Tcl.
12965
   #--------------------------------------------------------------------
12966
   #    Check for the existence of the -lsocket and -lnsl libraries.
12967
   #    The order here is important, so that they end up in the right
12968
   #    order in the command line generated by make.  Here are some
12969
   #    special considerations:
12970
   #    1. Use "connect" and "accept" to check for -lsocket, and
12971
   #       "gethostbyname" to check for -lnsl.
12972
   #    2. Use each function name only once:  can't redo a check because
12973
   #       autoconf caches the results of the last check and won't redo it.
12974
   #    3. Use -lnsl and -lsocket only if they supply procedures that
12975
   #       aren't already present in the normal libraries.  This is because
12976
   #       IRIX 5.2 has libraries, but they aren't needed and they're
12977
   #       bogus:  they goof up name resolution if used.
12978
   #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12979
   #       To get around this problem, check for both libraries together
12980
   #       if -lsocket doesn't work by itself.
12981
   #--------------------------------------------------------------------
12982
 
12983
   echo "$as_me:$LINENO: checking for socket libraries" >&5
12984
echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12985
if test "${gcj_cv_lib_sockets+set}" = set; then
12986
  echo $ECHO_N "(cached) $ECHO_C" >&6
12987
else
12988
  gcj_cv_lib_sockets=
12989
     gcj_checkBoth=0
12990
     unset ac_cv_func_connect
12991
     echo "$as_me:$LINENO: checking for connect" >&5
12992
echo $ECHO_N "checking for connect... $ECHO_C" >&6
12993
if test "${ac_cv_func_connect+set}" = set; then
12994
  echo $ECHO_N "(cached) $ECHO_C" >&6
12995
else
12996
  if test x$gcc_no_link = xyes; then
12997
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12998
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12999
   { (exit 1); exit 1; }; }
13000
fi
13001
cat >conftest.$ac_ext <<_ACEOF
13002
/* confdefs.h.  */
13003
_ACEOF
13004
cat confdefs.h >>conftest.$ac_ext
13005
cat >>conftest.$ac_ext <<_ACEOF
13006
/* end confdefs.h.  */
13007
/* Define connect to an innocuous variant, in case  declares connect.
13008
   For example, HP-UX 11i  declares gettimeofday.  */
13009
#define connect innocuous_connect
13010
 
13011
/* System header to define __stub macros and hopefully few prototypes,
13012
    which can conflict with char connect (); below.
13013
    Prefer  to  if __STDC__ is defined, since
13014
     exists even on freestanding compilers.  */
13015
 
13016
#ifdef __STDC__
13017
# include 
13018
#else
13019
# include 
13020
#endif
13021
 
13022
#undef connect
13023
 
13024
/* Override any gcc2 internal prototype to avoid an error.  */
13025
#ifdef __cplusplus
13026
extern "C"
13027
{
13028
#endif
13029
/* We use char because int might match the return type of a gcc2
13030
   builtin and then its argument prototype would still apply.  */
13031
char connect ();
13032
/* The GNU C library defines this for functions which it implements
13033
    to always fail with ENOSYS.  Some functions are actually named
13034
    something starting with __ and the normal name is an alias.  */
13035
#if defined (__stub_connect) || defined (__stub___connect)
13036
choke me
13037
#else
13038
char (*f) () = connect;
13039
#endif
13040
#ifdef __cplusplus
13041
}
13042
#endif
13043
 
13044
int
13045
main ()
13046
{
13047
return f != connect;
13048
  ;
13049
  return 0;
13050
}
13051
_ACEOF
13052
rm -f conftest.$ac_objext conftest$ac_exeext
13053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054
  (eval $ac_link) 2>conftest.er1
13055
  ac_status=$?
13056
  grep -v '^ *+' conftest.er1 >conftest.err
13057
  rm -f conftest.er1
13058
  cat conftest.err >&5
13059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060
  (exit $ac_status); } &&
13061
         { ac_try='test -z "$ac_c_werror_flag"
13062
                         || test ! -s conftest.err'
13063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064
  (eval $ac_try) 2>&5
13065
  ac_status=$?
13066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067
  (exit $ac_status); }; } &&
13068
         { ac_try='test -s conftest$ac_exeext'
13069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070
  (eval $ac_try) 2>&5
13071
  ac_status=$?
13072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073
  (exit $ac_status); }; }; then
13074
  ac_cv_func_connect=yes
13075
else
13076
  echo "$as_me: failed program was:" >&5
13077
sed 's/^/| /' conftest.$ac_ext >&5
13078
 
13079
ac_cv_func_connect=no
13080
fi
13081
rm -f conftest.err conftest.$ac_objext \
13082
      conftest$ac_exeext conftest.$ac_ext
13083
fi
13084
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13085
echo "${ECHO_T}$ac_cv_func_connect" >&6
13086
if test $ac_cv_func_connect = yes; then
13087
  gcj_checkSocket=0
13088
else
13089
  gcj_checkSocket=1
13090
fi
13091
 
13092
     if test "$gcj_checkSocket" = 1; then
13093
         unset ac_cv_func_connect
13094
         echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13095
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13096
if test "${ac_cv_lib_socket_main+set}" = set; then
13097
  echo $ECHO_N "(cached) $ECHO_C" >&6
13098
else
13099
  ac_check_lib_save_LIBS=$LIBS
13100
LIBS="-lsocket  $LIBS"
13101
if test x$gcc_no_link = xyes; then
13102
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13103
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13104
   { (exit 1); exit 1; }; }
13105
fi
13106
cat >conftest.$ac_ext <<_ACEOF
13107
/* confdefs.h.  */
13108
_ACEOF
13109
cat confdefs.h >>conftest.$ac_ext
13110
cat >>conftest.$ac_ext <<_ACEOF
13111
/* end confdefs.h.  */
13112
 
13113
 
13114
int
13115
main ()
13116
{
13117
main ();
13118
  ;
13119
  return 0;
13120
}
13121
_ACEOF
13122
rm -f conftest.$ac_objext conftest$ac_exeext
13123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13124
  (eval $ac_link) 2>conftest.er1
13125
  ac_status=$?
13126
  grep -v '^ *+' conftest.er1 >conftest.err
13127
  rm -f conftest.er1
13128
  cat conftest.err >&5
13129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130
  (exit $ac_status); } &&
13131
         { ac_try='test -z "$ac_c_werror_flag"
13132
                         || test ! -s conftest.err'
13133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134
  (eval $ac_try) 2>&5
13135
  ac_status=$?
13136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137
  (exit $ac_status); }; } &&
13138
         { ac_try='test -s conftest$ac_exeext'
13139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140
  (eval $ac_try) 2>&5
13141
  ac_status=$?
13142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143
  (exit $ac_status); }; }; then
13144
  ac_cv_lib_socket_main=yes
13145
else
13146
  echo "$as_me: failed program was:" >&5
13147
sed 's/^/| /' conftest.$ac_ext >&5
13148
 
13149
ac_cv_lib_socket_main=no
13150
fi
13151
rm -f conftest.err conftest.$ac_objext \
13152
      conftest$ac_exeext conftest.$ac_ext
13153
LIBS=$ac_check_lib_save_LIBS
13154
fi
13155
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13156
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13157
if test $ac_cv_lib_socket_main = yes; then
13158
  gcj_cv_lib_sockets="-lsocket"
13159
else
13160
  gcj_checkBoth=1
13161
fi
13162
 
13163
     fi
13164
     if test "$gcj_checkBoth" = 1; then
13165
         gcj_oldLibs=$LIBS
13166
         LIBS="$LIBS -lsocket -lnsl"
13167
         unset ac_cv_func_accept
13168
         echo "$as_me:$LINENO: checking for accept" >&5
13169
echo $ECHO_N "checking for accept... $ECHO_C" >&6
13170
if test "${ac_cv_func_accept+set}" = set; then
13171
  echo $ECHO_N "(cached) $ECHO_C" >&6
13172
else
13173
  if test x$gcc_no_link = xyes; then
13174
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13175
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13176
   { (exit 1); exit 1; }; }
13177
fi
13178
cat >conftest.$ac_ext <<_ACEOF
13179
/* confdefs.h.  */
13180
_ACEOF
13181
cat confdefs.h >>conftest.$ac_ext
13182
cat >>conftest.$ac_ext <<_ACEOF
13183
/* end confdefs.h.  */
13184
/* Define accept to an innocuous variant, in case  declares accept.
13185
   For example, HP-UX 11i  declares gettimeofday.  */
13186
#define accept innocuous_accept
13187
 
13188
/* System header to define __stub macros and hopefully few prototypes,
13189
    which can conflict with char accept (); below.
13190
    Prefer  to  if __STDC__ is defined, since
13191
     exists even on freestanding compilers.  */
13192
 
13193
#ifdef __STDC__
13194
# include 
13195
#else
13196
# include 
13197
#endif
13198
 
13199
#undef accept
13200
 
13201
/* Override any gcc2 internal prototype to avoid an error.  */
13202
#ifdef __cplusplus
13203
extern "C"
13204
{
13205
#endif
13206
/* We use char because int might match the return type of a gcc2
13207
   builtin and then its argument prototype would still apply.  */
13208
char accept ();
13209
/* The GNU C library defines this for functions which it implements
13210
    to always fail with ENOSYS.  Some functions are actually named
13211
    something starting with __ and the normal name is an alias.  */
13212
#if defined (__stub_accept) || defined (__stub___accept)
13213
choke me
13214
#else
13215
char (*f) () = accept;
13216
#endif
13217
#ifdef __cplusplus
13218
}
13219
#endif
13220
 
13221
int
13222
main ()
13223
{
13224
return f != accept;
13225
  ;
13226
  return 0;
13227
}
13228
_ACEOF
13229
rm -f conftest.$ac_objext conftest$ac_exeext
13230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231
  (eval $ac_link) 2>conftest.er1
13232
  ac_status=$?
13233
  grep -v '^ *+' conftest.er1 >conftest.err
13234
  rm -f conftest.er1
13235
  cat conftest.err >&5
13236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237
  (exit $ac_status); } &&
13238
         { ac_try='test -z "$ac_c_werror_flag"
13239
                         || test ! -s conftest.err'
13240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241
  (eval $ac_try) 2>&5
13242
  ac_status=$?
13243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244
  (exit $ac_status); }; } &&
13245
         { ac_try='test -s conftest$ac_exeext'
13246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247
  (eval $ac_try) 2>&5
13248
  ac_status=$?
13249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250
  (exit $ac_status); }; }; then
13251
  ac_cv_func_accept=yes
13252
else
13253
  echo "$as_me: failed program was:" >&5
13254
sed 's/^/| /' conftest.$ac_ext >&5
13255
 
13256
ac_cv_func_accept=no
13257
fi
13258
rm -f conftest.err conftest.$ac_objext \
13259
      conftest$ac_exeext conftest.$ac_ext
13260
fi
13261
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13262
echo "${ECHO_T}$ac_cv_func_accept" >&6
13263
if test $ac_cv_func_accept = yes; then
13264
  gcj_checkNsl=0
13265
                        gcj_cv_lib_sockets="-lsocket -lnsl"
13266
fi
13267
 
13268
         unset ac_cv_func_accept
13269
         LIBS=$gcj_oldLibs
13270
     fi
13271
     unset ac_cv_func_gethostbyname
13272
     gcj_oldLibs=$LIBS
13273
     LIBS="$LIBS $gcj_cv_lib_sockets"
13274
     echo "$as_me:$LINENO: checking for gethostbyname" >&5
13275
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13276
if test "${ac_cv_func_gethostbyname+set}" = set; then
13277
  echo $ECHO_N "(cached) $ECHO_C" >&6
13278
else
13279
  if test x$gcc_no_link = xyes; then
13280
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13281
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13282
   { (exit 1); exit 1; }; }
13283
fi
13284
cat >conftest.$ac_ext <<_ACEOF
13285
/* confdefs.h.  */
13286
_ACEOF
13287
cat confdefs.h >>conftest.$ac_ext
13288
cat >>conftest.$ac_ext <<_ACEOF
13289
/* end confdefs.h.  */
13290
/* Define gethostbyname to an innocuous variant, in case  declares gethostbyname.
13291
   For example, HP-UX 11i  declares gettimeofday.  */
13292
#define gethostbyname innocuous_gethostbyname
13293
 
13294
/* System header to define __stub macros and hopefully few prototypes,
13295
    which can conflict with char gethostbyname (); below.
13296
    Prefer  to  if __STDC__ is defined, since
13297
     exists even on freestanding compilers.  */
13298
 
13299
#ifdef __STDC__
13300
# include 
13301
#else
13302
# include 
13303
#endif
13304
 
13305
#undef gethostbyname
13306
 
13307
/* Override any gcc2 internal prototype to avoid an error.  */
13308
#ifdef __cplusplus
13309
extern "C"
13310
{
13311
#endif
13312
/* We use char because int might match the return type of a gcc2
13313
   builtin and then its argument prototype would still apply.  */
13314
char gethostbyname ();
13315
/* The GNU C library defines this for functions which it implements
13316
    to always fail with ENOSYS.  Some functions are actually named
13317
    something starting with __ and the normal name is an alias.  */
13318
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13319
choke me
13320
#else
13321
char (*f) () = gethostbyname;
13322
#endif
13323
#ifdef __cplusplus
13324
}
13325
#endif
13326
 
13327
int
13328
main ()
13329
{
13330
return f != gethostbyname;
13331
  ;
13332
  return 0;
13333
}
13334
_ACEOF
13335
rm -f conftest.$ac_objext conftest$ac_exeext
13336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13337
  (eval $ac_link) 2>conftest.er1
13338
  ac_status=$?
13339
  grep -v '^ *+' conftest.er1 >conftest.err
13340
  rm -f conftest.er1
13341
  cat conftest.err >&5
13342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343
  (exit $ac_status); } &&
13344
         { ac_try='test -z "$ac_c_werror_flag"
13345
                         || test ! -s conftest.err'
13346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347
  (eval $ac_try) 2>&5
13348
  ac_status=$?
13349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350
  (exit $ac_status); }; } &&
13351
         { ac_try='test -s conftest$ac_exeext'
13352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353
  (eval $ac_try) 2>&5
13354
  ac_status=$?
13355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356
  (exit $ac_status); }; }; then
13357
  ac_cv_func_gethostbyname=yes
13358
else
13359
  echo "$as_me: failed program was:" >&5
13360
sed 's/^/| /' conftest.$ac_ext >&5
13361
 
13362
ac_cv_func_gethostbyname=no
13363
fi
13364
rm -f conftest.err conftest.$ac_objext \
13365
      conftest$ac_exeext conftest.$ac_ext
13366
fi
13367
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13368
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13369
if test $ac_cv_func_gethostbyname = yes; then
13370
  :
13371
else
13372
  echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13373
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13374
if test "${ac_cv_lib_nsl_main+set}" = set; then
13375
  echo $ECHO_N "(cached) $ECHO_C" >&6
13376
else
13377
  ac_check_lib_save_LIBS=$LIBS
13378
LIBS="-lnsl  $LIBS"
13379
if test x$gcc_no_link = xyes; then
13380
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13381
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13382
   { (exit 1); exit 1; }; }
13383
fi
13384
cat >conftest.$ac_ext <<_ACEOF
13385
/* confdefs.h.  */
13386
_ACEOF
13387
cat confdefs.h >>conftest.$ac_ext
13388
cat >>conftest.$ac_ext <<_ACEOF
13389
/* end confdefs.h.  */
13390
 
13391
 
13392
int
13393
main ()
13394
{
13395
main ();
13396
  ;
13397
  return 0;
13398
}
13399
_ACEOF
13400
rm -f conftest.$ac_objext conftest$ac_exeext
13401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13402
  (eval $ac_link) 2>conftest.er1
13403
  ac_status=$?
13404
  grep -v '^ *+' conftest.er1 >conftest.err
13405
  rm -f conftest.er1
13406
  cat conftest.err >&5
13407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408
  (exit $ac_status); } &&
13409
         { ac_try='test -z "$ac_c_werror_flag"
13410
                         || test ! -s conftest.err'
13411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412
  (eval $ac_try) 2>&5
13413
  ac_status=$?
13414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415
  (exit $ac_status); }; } &&
13416
         { ac_try='test -s conftest$ac_exeext'
13417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418
  (eval $ac_try) 2>&5
13419
  ac_status=$?
13420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421
  (exit $ac_status); }; }; then
13422
  ac_cv_lib_nsl_main=yes
13423
else
13424
  echo "$as_me: failed program was:" >&5
13425
sed 's/^/| /' conftest.$ac_ext >&5
13426
 
13427
ac_cv_lib_nsl_main=no
13428
fi
13429
rm -f conftest.err conftest.$ac_objext \
13430
      conftest$ac_exeext conftest.$ac_ext
13431
LIBS=$ac_check_lib_save_LIBS
13432
fi
13433
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13434
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13435
if test $ac_cv_lib_nsl_main = yes; then
13436
  gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13437
fi
13438
 
13439
fi
13440
 
13441
     unset ac_cv_func_gethostbyname
13442
     LIBS=$gcj_oldLIBS
13443
 
13444
fi
13445
echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13446
echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13447
   SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13448
 
13449
   if test "$with_system_zlib" = yes; then
13450
      echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13451
echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13452
if test "${ac_cv_lib_z_deflate+set}" = set; then
13453
  echo $ECHO_N "(cached) $ECHO_C" >&6
13454
else
13455
  ac_check_lib_save_LIBS=$LIBS
13456
LIBS="-lz  $LIBS"
13457
if test x$gcc_no_link = xyes; then
13458
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13459
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13460
   { (exit 1); exit 1; }; }
13461
fi
13462
cat >conftest.$ac_ext <<_ACEOF
13463
/* confdefs.h.  */
13464
_ACEOF
13465
cat confdefs.h >>conftest.$ac_ext
13466
cat >>conftest.$ac_ext <<_ACEOF
13467
/* end confdefs.h.  */
13468
 
13469
/* Override any gcc2 internal prototype to avoid an error.  */
13470
#ifdef __cplusplus
13471
extern "C"
13472
#endif
13473
/* We use char because int might match the return type of a gcc2
13474
   builtin and then its argument prototype would still apply.  */
13475
char deflate ();
13476
int
13477
main ()
13478
{
13479
deflate ();
13480
  ;
13481
  return 0;
13482
}
13483
_ACEOF
13484
rm -f conftest.$ac_objext conftest$ac_exeext
13485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13486
  (eval $ac_link) 2>conftest.er1
13487
  ac_status=$?
13488
  grep -v '^ *+' conftest.er1 >conftest.err
13489
  rm -f conftest.er1
13490
  cat conftest.err >&5
13491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492
  (exit $ac_status); } &&
13493
         { ac_try='test -z "$ac_c_werror_flag"
13494
                         || test ! -s conftest.err'
13495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496
  (eval $ac_try) 2>&5
13497
  ac_status=$?
13498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499
  (exit $ac_status); }; } &&
13500
         { ac_try='test -s conftest$ac_exeext'
13501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502
  (eval $ac_try) 2>&5
13503
  ac_status=$?
13504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505
  (exit $ac_status); }; }; then
13506
  ac_cv_lib_z_deflate=yes
13507
else
13508
  echo "$as_me: failed program was:" >&5
13509
sed 's/^/| /' conftest.$ac_ext >&5
13510
 
13511
ac_cv_lib_z_deflate=no
13512
fi
13513
rm -f conftest.err conftest.$ac_objext \
13514
      conftest$ac_exeext conftest.$ac_ext
13515
LIBS=$ac_check_lib_save_LIBS
13516
fi
13517
echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13518
echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13519
if test $ac_cv_lib_z_deflate = yes; then
13520
  ZLIBSPEC=-lz
13521
else
13522
  ZLIBSPEC=
13523
fi
13524
 
13525
   fi
13526
 
13527
   # Test for Gtk stuff, if asked for.
13528
   if test "$use_gtk_awt" = yes; then
13529
 
13530
  succeeded=no
13531
 
13532
  if test -z "$PKG_CONFIG"; then
13533
    # Extract the first word of "pkg-config", so it can be a program name with args.
13534
set dummy pkg-config; ac_word=$2
13535
echo "$as_me:$LINENO: checking for $ac_word" >&5
13536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13537
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13538
  echo $ECHO_N "(cached) $ECHO_C" >&6
13539
else
13540
  case $PKG_CONFIG in
13541
  [\\/]* | ?:[\\/]*)
13542
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13543
  ;;
13544
  *)
13545
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546
for as_dir in $PATH
13547
do
13548
  IFS=$as_save_IFS
13549
  test -z "$as_dir" && as_dir=.
13550
  for ac_exec_ext in '' $ac_executable_extensions; do
13551
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13552
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13554
    break 2
13555
  fi
13556
done
13557
done
13558
 
13559
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13560
  ;;
13561
esac
13562
fi
13563
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13564
 
13565
if test -n "$PKG_CONFIG"; then
13566
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13567
echo "${ECHO_T}$PKG_CONFIG" >&6
13568
else
13569
  echo "$as_me:$LINENO: result: no" >&5
13570
echo "${ECHO_T}no" >&6
13571
fi
13572
 
13573
  fi
13574
 
13575
  if test "$PKG_CONFIG" = "no" ; then
13576
     echo "*** The pkg-config script could not be found. Make sure it is"
13577
     echo "*** in your path, or set the PKG_CONFIG environment variable"
13578
     echo "*** to the full path to pkg-config."
13579
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13580
  else
13581
     PKG_CONFIG_MIN_VERSION=0.9.0
13582
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13583
        echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13584
echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13585
 
13586
        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13587
            echo "$as_me:$LINENO: result: yes" >&5
13588
echo "${ECHO_T}yes" >&6
13589
            succeeded=yes
13590
 
13591
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13592
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13593
            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13594
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13595
echo "${ECHO_T}$GTK_CFLAGS" >&6
13596
 
13597
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13598
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13599
            GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13600
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13601
echo "${ECHO_T}$GTK_LIBS" >&6
13602
        else
13603
            GTK_CFLAGS=""
13604
            GTK_LIBS=""
13605
            ## If we have a custom action on failure, don't print errors, but
13606
            ## do set a variable so people can do so.
13607
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13608
            echo $GTK_PKG_ERRORS
13609
        fi
13610
 
13611
 
13612
 
13613
     else
13614
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13615
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
13616
     fi
13617
  fi
13618
 
13619
  if test $succeeded = yes; then
13620
     :
13621
  else
13622
     { { 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
13623
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;}
13624
   { (exit 1); exit 1; }; }
13625
  fi
13626
 
13627
 
13628
 
13629
 
13630
 
13631
  succeeded=no
13632
 
13633
  if test -z "$PKG_CONFIG"; then
13634
    # Extract the first word of "pkg-config", so it can be a program name with args.
13635
set dummy pkg-config; ac_word=$2
13636
echo "$as_me:$LINENO: checking for $ac_word" >&5
13637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13638
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13639
  echo $ECHO_N "(cached) $ECHO_C" >&6
13640
else
13641
  case $PKG_CONFIG in
13642
  [\\/]* | ?:[\\/]*)
13643
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13644
  ;;
13645
  *)
13646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647
for as_dir in $PATH
13648
do
13649
  IFS=$as_save_IFS
13650
  test -z "$as_dir" && as_dir=.
13651
  for ac_exec_ext in '' $ac_executable_extensions; do
13652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13653
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13655
    break 2
13656
  fi
13657
done
13658
done
13659
 
13660
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13661
  ;;
13662
esac
13663
fi
13664
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13665
 
13666
if test -n "$PKG_CONFIG"; then
13667
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13668
echo "${ECHO_T}$PKG_CONFIG" >&6
13669
else
13670
  echo "$as_me:$LINENO: result: no" >&5
13671
echo "${ECHO_T}no" >&6
13672
fi
13673
 
13674
  fi
13675
 
13676
  if test "$PKG_CONFIG" = "no" ; then
13677
     echo "*** The pkg-config script could not be found. Make sure it is"
13678
     echo "*** in your path, or set the PKG_CONFIG environment variable"
13679
     echo "*** to the full path to pkg-config."
13680
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13681
  else
13682
     PKG_CONFIG_MIN_VERSION=0.9.0
13683
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13684
        echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13685
echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13686
 
13687
        if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13688
            echo "$as_me:$LINENO: result: yes" >&5
13689
echo "${ECHO_T}yes" >&6
13690
            succeeded=yes
13691
 
13692
            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13693
echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13694
            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13695
            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13696
echo "${ECHO_T}$GLIB_CFLAGS" >&6
13697
 
13698
            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13699
echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13700
            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13701
            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13702
echo "${ECHO_T}$GLIB_LIBS" >&6
13703
        else
13704
            GLIB_CFLAGS=""
13705
            GLIB_LIBS=""
13706
            ## If we have a custom action on failure, don't print errors, but
13707
            ## do set a variable so people can do so.
13708
            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13709
            echo $GLIB_PKG_ERRORS
13710
        fi
13711
 
13712
 
13713
 
13714
     else
13715
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13716
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
13717
     fi
13718
  fi
13719
 
13720
  if test $succeeded = yes; then
13721
     :
13722
  else
13723
     { { 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
13724
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;}
13725
   { (exit 1); exit 1; }; }
13726
  fi
13727
 
13728
 
13729
 
13730
 
13731
 
13732
  succeeded=no
13733
 
13734
  if test -z "$PKG_CONFIG"; then
13735
    # Extract the first word of "pkg-config", so it can be a program name with args.
13736
set dummy pkg-config; ac_word=$2
13737
echo "$as_me:$LINENO: checking for $ac_word" >&5
13738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13739
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13740
  echo $ECHO_N "(cached) $ECHO_C" >&6
13741
else
13742
  case $PKG_CONFIG in
13743
  [\\/]* | ?:[\\/]*)
13744
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13745
  ;;
13746
  *)
13747
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748
for as_dir in $PATH
13749
do
13750
  IFS=$as_save_IFS
13751
  test -z "$as_dir" && as_dir=.
13752
  for ac_exec_ext in '' $ac_executable_extensions; do
13753
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13756
    break 2
13757
  fi
13758
done
13759
done
13760
 
13761
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13762
  ;;
13763
esac
13764
fi
13765
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13766
 
13767
if test -n "$PKG_CONFIG"; then
13768
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13769
echo "${ECHO_T}$PKG_CONFIG" >&6
13770
else
13771
  echo "$as_me:$LINENO: result: no" >&5
13772
echo "${ECHO_T}no" >&6
13773
fi
13774
 
13775
  fi
13776
 
13777
  if test "$PKG_CONFIG" = "no" ; then
13778
     echo "*** The pkg-config script could not be found. Make sure it is"
13779
     echo "*** in your path, or set the PKG_CONFIG environment variable"
13780
     echo "*** to the full path to pkg-config."
13781
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13782
  else
13783
     PKG_CONFIG_MIN_VERSION=0.9.0
13784
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13785
        echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13786
echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13787
 
13788
        if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13789
            echo "$as_me:$LINENO: result: yes" >&5
13790
echo "${ECHO_T}yes" >&6
13791
            succeeded=yes
13792
 
13793
            echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13794
echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13795
            LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13796
            echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13797
echo "${ECHO_T}$LIBART_CFLAGS" >&6
13798
 
13799
            echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13800
echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13801
            LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13802
            echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13803
echo "${ECHO_T}$LIBART_LIBS" >&6
13804
        else
13805
            LIBART_CFLAGS=""
13806
            LIBART_LIBS=""
13807
            ## If we have a custom action on failure, don't print errors, but
13808
            ## do set a variable so people can do so.
13809
            LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13810
            echo $LIBART_PKG_ERRORS
13811
        fi
13812
 
13813
 
13814
 
13815
     else
13816
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13817
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
13818
     fi
13819
  fi
13820
 
13821
  if test $succeeded = yes; then
13822
     :
13823
  else
13824
     { { 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
13825
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;}
13826
   { (exit 1); exit 1; }; }
13827
  fi
13828
 
13829
 
13830
 
13831
 
13832
      # We require the XTest Extension to support java.awt.Robot.
13833
      echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13834
echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13835
if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13836
  echo $ECHO_N "(cached) $ECHO_C" >&6
13837
else
13838
  ac_check_lib_save_LIBS=$LIBS
13839
LIBS="-lXtst ${X_LIBS} $LIBS"
13840
if test x$gcc_no_link = xyes; then
13841
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13842
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13843
   { (exit 1); exit 1; }; }
13844
fi
13845
cat >conftest.$ac_ext <<_ACEOF
13846
/* confdefs.h.  */
13847
_ACEOF
13848
cat confdefs.h >>conftest.$ac_ext
13849
cat >>conftest.$ac_ext <<_ACEOF
13850
/* end confdefs.h.  */
13851
 
13852
/* Override any gcc2 internal prototype to avoid an error.  */
13853
#ifdef __cplusplus
13854
extern "C"
13855
#endif
13856
/* We use char because int might match the return type of a gcc2
13857
   builtin and then its argument prototype would still apply.  */
13858
char XTestQueryExtension ();
13859
int
13860
main ()
13861
{
13862
XTestQueryExtension ();
13863
  ;
13864
  return 0;
13865
}
13866
_ACEOF
13867
rm -f conftest.$ac_objext conftest$ac_exeext
13868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869
  (eval $ac_link) 2>conftest.er1
13870
  ac_status=$?
13871
  grep -v '^ *+' conftest.er1 >conftest.err
13872
  rm -f conftest.er1
13873
  cat conftest.err >&5
13874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875
  (exit $ac_status); } &&
13876
         { ac_try='test -z "$ac_c_werror_flag"
13877
                         || test ! -s conftest.err'
13878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879
  (eval $ac_try) 2>&5
13880
  ac_status=$?
13881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882
  (exit $ac_status); }; } &&
13883
         { ac_try='test -s conftest$ac_exeext'
13884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885
  (eval $ac_try) 2>&5
13886
  ac_status=$?
13887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888
  (exit $ac_status); }; }; then
13889
  ac_cv_lib_Xtst_XTestQueryExtension=yes
13890
else
13891
  echo "$as_me: failed program was:" >&5
13892
sed 's/^/| /' conftest.$ac_ext >&5
13893
 
13894
ac_cv_lib_Xtst_XTestQueryExtension=no
13895
fi
13896
rm -f conftest.err conftest.$ac_objext \
13897
      conftest$ac_exeext conftest.$ac_ext
13898
LIBS=$ac_check_lib_save_LIBS
13899
fi
13900
echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13901
echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13902
if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13903
  true
13904
else
13905
  { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13906
echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13907
   { (exit 1); exit 1; }; }
13908
fi
13909
 
13910
   fi
13911
 
13912
   # On Solaris, and maybe other architectures, the Boehm collector
13913
   # requires -ldl.
13914
   if test "$GC" = boehm; then
13915
      echo "$as_me:$LINENO: checking for main in -ldl" >&5
13916
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13917
if test "${ac_cv_lib_dl_main+set}" = set; then
13918
  echo $ECHO_N "(cached) $ECHO_C" >&6
13919
else
13920
  ac_check_lib_save_LIBS=$LIBS
13921
LIBS="-ldl  $LIBS"
13922
if test x$gcc_no_link = xyes; then
13923
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13924
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13925
   { (exit 1); exit 1; }; }
13926
fi
13927
cat >conftest.$ac_ext <<_ACEOF
13928
/* confdefs.h.  */
13929
_ACEOF
13930
cat confdefs.h >>conftest.$ac_ext
13931
cat >>conftest.$ac_ext <<_ACEOF
13932
/* end confdefs.h.  */
13933
 
13934
 
13935
int
13936
main ()
13937
{
13938
main ();
13939
  ;
13940
  return 0;
13941
}
13942
_ACEOF
13943
rm -f conftest.$ac_objext conftest$ac_exeext
13944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945
  (eval $ac_link) 2>conftest.er1
13946
  ac_status=$?
13947
  grep -v '^ *+' conftest.er1 >conftest.err
13948
  rm -f conftest.er1
13949
  cat conftest.err >&5
13950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951
  (exit $ac_status); } &&
13952
         { ac_try='test -z "$ac_c_werror_flag"
13953
                         || test ! -s conftest.err'
13954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955
  (eval $ac_try) 2>&5
13956
  ac_status=$?
13957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958
  (exit $ac_status); }; } &&
13959
         { ac_try='test -s conftest$ac_exeext'
13960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961
  (eval $ac_try) 2>&5
13962
  ac_status=$?
13963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964
  (exit $ac_status); }; }; then
13965
  ac_cv_lib_dl_main=yes
13966
else
13967
  echo "$as_me: failed program was:" >&5
13968
sed 's/^/| /' conftest.$ac_ext >&5
13969
 
13970
ac_cv_lib_dl_main=no
13971
fi
13972
rm -f conftest.err conftest.$ac_objext \
13973
      conftest$ac_exeext conftest.$ac_ext
13974
LIBS=$ac_check_lib_save_LIBS
13975
fi
13976
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13977
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13978
if test $ac_cv_lib_dl_main = yes; then
13979
  SYSTEMSPEC="$SYSTEMSPEC -ldl"
13980
fi
13981
 
13982
   fi
13983
fi
13984
 
13985
 
13986
if test "$supply_backtrace" = yes; then
13987
  SUPPLY_BACKTRACE_TRUE=
13988
  SUPPLY_BACKTRACE_FALSE='#'
13989
else
13990
  SUPPLY_BACKTRACE_TRUE='#'
13991
  SUPPLY_BACKTRACE_FALSE=
13992
fi
13993
 
13994
 
13995
# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13996
case $build in
13997
    *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13998
    *)         CLASSPATH_SEPARATOR=':' ;;
13999
esac
14000
 
14001
 
14002
# We must search the source tree for java.lang, since we still don't
14003
# have libgcj.jar nor java/lang/*.class
14004
GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14005
CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14006
 
14007
# Since some classes depend on this one, we need its source available
14008
# before we can do any GCJ compilation test :-(
14009
if test ! -f gnu/classpath/Configuration.java; then
14010
  test -d gnu || mkdir gnu
14011
  test -d gnu/classpath || mkdir gnu/classpath
14012
  # Note that it is not crucial that all the values here be correct.
14013
  sed -e "s,@prefix@,$prefix," \
14014
      -e "s,@VERSION@,$VERSION," \
14015
      -e "s,@LIBDEBUG@,false," \
14016
      -e "s,@INIT_LOAD_LIBRARY@,false," \
14017
      -e "s,@@,$LIBGCJDEBUG," \
14018
      -e "s,@default_toolkit@,$TOOLKIT," \
14019
      -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14020
      -e "s,@GTK_CAIRO_ENABLED@,false," \
14021
        < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14022
        > gnu/classpath/Configuration.java
14023
  # We do not want to redirect the output of the grep below to /dev/null,
14024
  # but we add /dev/null to the input list so that grep will print the
14025
  # filename of Configuration.java in case it finds any matches.
14026
  if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14027
    { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14028
echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14029
   { (exit 1); exit 1; }; }
14030
  fi
14031
fi
14032
 
14033
if test -n "$ac_tool_prefix"; then
14034
  # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14035
set dummy ${ac_tool_prefix}gcj; ac_word=$2
14036
echo "$as_me:$LINENO: checking for $ac_word" >&5
14037
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14038
if test "${ac_cv_prog_GCJ+set}" = set; then
14039
  echo $ECHO_N "(cached) $ECHO_C" >&6
14040
else
14041
  if test -n "$GCJ"; then
14042
  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14043
else
14044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045
for as_dir in $PATH
14046
do
14047
  IFS=$as_save_IFS
14048
  test -z "$as_dir" && as_dir=.
14049
  for ac_exec_ext in '' $ac_executable_extensions; do
14050
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14051
    ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14052
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14053
    break 2
14054
  fi
14055
done
14056
done
14057
 
14058
fi
14059
fi
14060
GCJ=$ac_cv_prog_GCJ
14061
if test -n "$GCJ"; then
14062
  echo "$as_me:$LINENO: result: $GCJ" >&5
14063
echo "${ECHO_T}$GCJ" >&6
14064
else
14065
  echo "$as_me:$LINENO: result: no" >&5
14066
echo "${ECHO_T}no" >&6
14067
fi
14068
 
14069
fi
14070
if test -z "$ac_cv_prog_GCJ"; then
14071
  ac_ct_GCJ=$GCJ
14072
  # Extract the first word of "gcj", so it can be a program name with args.
14073
set dummy gcj; ac_word=$2
14074
echo "$as_me:$LINENO: checking for $ac_word" >&5
14075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14076
if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14077
  echo $ECHO_N "(cached) $ECHO_C" >&6
14078
else
14079
  if test -n "$ac_ct_GCJ"; then
14080
  ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14081
else
14082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083
for as_dir in $PATH
14084
do
14085
  IFS=$as_save_IFS
14086
  test -z "$as_dir" && as_dir=.
14087
  for ac_exec_ext in '' $ac_executable_extensions; do
14088
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14089
    ac_cv_prog_ac_ct_GCJ="gcj"
14090
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091
    break 2
14092
  fi
14093
done
14094
done
14095
 
14096
  test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14097
fi
14098
fi
14099
ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14100
if test -n "$ac_ct_GCJ"; then
14101
  echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14102
echo "${ECHO_T}$ac_ct_GCJ" >&6
14103
else
14104
  echo "$as_me:$LINENO: result: no" >&5
14105
echo "${ECHO_T}no" >&6
14106
fi
14107
 
14108
  GCJ=$ac_ct_GCJ
14109
else
14110
  GCJ="$ac_cv_prog_GCJ"
14111
fi
14112
 
14113
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14114
 
14115
 
14116
 
14117
 
14118
# Now remove it.
14119
rm -f gnu/classpath/Configuration.java
14120
 
14121
CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14122
 
14123
echo "$as_me:$LINENO: checking for void *" >&5
14124
echo $ECHO_N "checking for void *... $ECHO_C" >&6
14125
if test "${ac_cv_type_void_p+set}" = set; then
14126
  echo $ECHO_N "(cached) $ECHO_C" >&6
14127
else
14128
  cat >conftest.$ac_ext <<_ACEOF
14129
/* confdefs.h.  */
14130
_ACEOF
14131
cat confdefs.h >>conftest.$ac_ext
14132
cat >>conftest.$ac_ext <<_ACEOF
14133
/* end confdefs.h.  */
14134
$ac_includes_default
14135
int
14136
main ()
14137
{
14138
if ((void * *) 0)
14139
  return 0;
14140
if (sizeof (void *))
14141
  return 0;
14142
  ;
14143
  return 0;
14144
}
14145
_ACEOF
14146
rm -f conftest.$ac_objext
14147
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14148
  (eval $ac_compile) 2>conftest.er1
14149
  ac_status=$?
14150
  grep -v '^ *+' conftest.er1 >conftest.err
14151
  rm -f conftest.er1
14152
  cat conftest.err >&5
14153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154
  (exit $ac_status); } &&
14155
         { ac_try='test -z "$ac_c_werror_flag"
14156
                         || test ! -s conftest.err'
14157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158
  (eval $ac_try) 2>&5
14159
  ac_status=$?
14160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161
  (exit $ac_status); }; } &&
14162
         { ac_try='test -s conftest.$ac_objext'
14163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164
  (eval $ac_try) 2>&5
14165
  ac_status=$?
14166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167
  (exit $ac_status); }; }; then
14168
  ac_cv_type_void_p=yes
14169
else
14170
  echo "$as_me: failed program was:" >&5
14171
sed 's/^/| /' conftest.$ac_ext >&5
14172
 
14173
ac_cv_type_void_p=no
14174
fi
14175
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14176
fi
14177
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14178
echo "${ECHO_T}$ac_cv_type_void_p" >&6
14179
 
14180
echo "$as_me:$LINENO: checking size of void *" >&5
14181
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14182
if test "${ac_cv_sizeof_void_p+set}" = set; then
14183
  echo $ECHO_N "(cached) $ECHO_C" >&6
14184
else
14185
  if test "$ac_cv_type_void_p" = yes; then
14186
  # The cast to unsigned long works around a bug in the HP C Compiler
14187
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14188
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14189
  # This bug is HP SR number 8606223364.
14190
  if test "$cross_compiling" = yes; then
14191
  # Depending upon the size, compute the lo and hi bounds.
14192
cat >conftest.$ac_ext <<_ACEOF
14193
/* confdefs.h.  */
14194
_ACEOF
14195
cat confdefs.h >>conftest.$ac_ext
14196
cat >>conftest.$ac_ext <<_ACEOF
14197
/* end confdefs.h.  */
14198
$ac_includes_default
14199
int
14200
main ()
14201
{
14202
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14203
test_array [0] = 0
14204
 
14205
  ;
14206
  return 0;
14207
}
14208
_ACEOF
14209
rm -f conftest.$ac_objext
14210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211
  (eval $ac_compile) 2>conftest.er1
14212
  ac_status=$?
14213
  grep -v '^ *+' conftest.er1 >conftest.err
14214
  rm -f conftest.er1
14215
  cat conftest.err >&5
14216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217
  (exit $ac_status); } &&
14218
         { ac_try='test -z "$ac_c_werror_flag"
14219
                         || test ! -s conftest.err'
14220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221
  (eval $ac_try) 2>&5
14222
  ac_status=$?
14223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224
  (exit $ac_status); }; } &&
14225
         { ac_try='test -s conftest.$ac_objext'
14226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227
  (eval $ac_try) 2>&5
14228
  ac_status=$?
14229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230
  (exit $ac_status); }; }; then
14231
  ac_lo=0 ac_mid=0
14232
  while :; do
14233
    cat >conftest.$ac_ext <<_ACEOF
14234
/* confdefs.h.  */
14235
_ACEOF
14236
cat confdefs.h >>conftest.$ac_ext
14237
cat >>conftest.$ac_ext <<_ACEOF
14238
/* end confdefs.h.  */
14239
$ac_includes_default
14240
int
14241
main ()
14242
{
14243
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14244
test_array [0] = 0
14245
 
14246
  ;
14247
  return 0;
14248
}
14249
_ACEOF
14250
rm -f conftest.$ac_objext
14251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252
  (eval $ac_compile) 2>conftest.er1
14253
  ac_status=$?
14254
  grep -v '^ *+' conftest.er1 >conftest.err
14255
  rm -f conftest.er1
14256
  cat conftest.err >&5
14257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258
  (exit $ac_status); } &&
14259
         { ac_try='test -z "$ac_c_werror_flag"
14260
                         || test ! -s conftest.err'
14261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262
  (eval $ac_try) 2>&5
14263
  ac_status=$?
14264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265
  (exit $ac_status); }; } &&
14266
         { ac_try='test -s conftest.$ac_objext'
14267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268
  (eval $ac_try) 2>&5
14269
  ac_status=$?
14270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271
  (exit $ac_status); }; }; then
14272
  ac_hi=$ac_mid; break
14273
else
14274
  echo "$as_me: failed program was:" >&5
14275
sed 's/^/| /' conftest.$ac_ext >&5
14276
 
14277
ac_lo=`expr $ac_mid + 1`
14278
                    if test $ac_lo -le $ac_mid; then
14279
                      ac_lo= ac_hi=
14280
                      break
14281
                    fi
14282
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14283
fi
14284
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14285
  done
14286
else
14287
  echo "$as_me: failed program was:" >&5
14288
sed 's/^/| /' conftest.$ac_ext >&5
14289
 
14290
cat >conftest.$ac_ext <<_ACEOF
14291
/* confdefs.h.  */
14292
_ACEOF
14293
cat confdefs.h >>conftest.$ac_ext
14294
cat >>conftest.$ac_ext <<_ACEOF
14295
/* end confdefs.h.  */
14296
$ac_includes_default
14297
int
14298
main ()
14299
{
14300
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14301
test_array [0] = 0
14302
 
14303
  ;
14304
  return 0;
14305
}
14306
_ACEOF
14307
rm -f conftest.$ac_objext
14308
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14309
  (eval $ac_compile) 2>conftest.er1
14310
  ac_status=$?
14311
  grep -v '^ *+' conftest.er1 >conftest.err
14312
  rm -f conftest.er1
14313
  cat conftest.err >&5
14314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315
  (exit $ac_status); } &&
14316
         { ac_try='test -z "$ac_c_werror_flag"
14317
                         || test ! -s conftest.err'
14318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319
  (eval $ac_try) 2>&5
14320
  ac_status=$?
14321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322
  (exit $ac_status); }; } &&
14323
         { ac_try='test -s conftest.$ac_objext'
14324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325
  (eval $ac_try) 2>&5
14326
  ac_status=$?
14327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328
  (exit $ac_status); }; }; then
14329
  ac_hi=-1 ac_mid=-1
14330
  while :; do
14331
    cat >conftest.$ac_ext <<_ACEOF
14332
/* confdefs.h.  */
14333
_ACEOF
14334
cat confdefs.h >>conftest.$ac_ext
14335
cat >>conftest.$ac_ext <<_ACEOF
14336
/* end confdefs.h.  */
14337
$ac_includes_default
14338
int
14339
main ()
14340
{
14341
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14342
test_array [0] = 0
14343
 
14344
  ;
14345
  return 0;
14346
}
14347
_ACEOF
14348
rm -f conftest.$ac_objext
14349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350
  (eval $ac_compile) 2>conftest.er1
14351
  ac_status=$?
14352
  grep -v '^ *+' conftest.er1 >conftest.err
14353
  rm -f conftest.er1
14354
  cat conftest.err >&5
14355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356
  (exit $ac_status); } &&
14357
         { ac_try='test -z "$ac_c_werror_flag"
14358
                         || test ! -s conftest.err'
14359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360
  (eval $ac_try) 2>&5
14361
  ac_status=$?
14362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363
  (exit $ac_status); }; } &&
14364
         { ac_try='test -s conftest.$ac_objext'
14365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366
  (eval $ac_try) 2>&5
14367
  ac_status=$?
14368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369
  (exit $ac_status); }; }; then
14370
  ac_lo=$ac_mid; break
14371
else
14372
  echo "$as_me: failed program was:" >&5
14373
sed 's/^/| /' conftest.$ac_ext >&5
14374
 
14375
ac_hi=`expr '(' $ac_mid ')' - 1`
14376
                       if test $ac_mid -le $ac_hi; then
14377
                         ac_lo= ac_hi=
14378
                         break
14379
                       fi
14380
                       ac_mid=`expr 2 '*' $ac_mid`
14381
fi
14382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14383
  done
14384
else
14385
  echo "$as_me: failed program was:" >&5
14386
sed 's/^/| /' conftest.$ac_ext >&5
14387
 
14388
ac_lo= ac_hi=
14389
fi
14390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391
fi
14392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393
# Binary search between lo and hi bounds.
14394
while test "x$ac_lo" != "x$ac_hi"; do
14395
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14396
  cat >conftest.$ac_ext <<_ACEOF
14397
/* confdefs.h.  */
14398
_ACEOF
14399
cat confdefs.h >>conftest.$ac_ext
14400
cat >>conftest.$ac_ext <<_ACEOF
14401
/* end confdefs.h.  */
14402
$ac_includes_default
14403
int
14404
main ()
14405
{
14406
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14407
test_array [0] = 0
14408
 
14409
  ;
14410
  return 0;
14411
}
14412
_ACEOF
14413
rm -f conftest.$ac_objext
14414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415
  (eval $ac_compile) 2>conftest.er1
14416
  ac_status=$?
14417
  grep -v '^ *+' conftest.er1 >conftest.err
14418
  rm -f conftest.er1
14419
  cat conftest.err >&5
14420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421
  (exit $ac_status); } &&
14422
         { ac_try='test -z "$ac_c_werror_flag"
14423
                         || test ! -s conftest.err'
14424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425
  (eval $ac_try) 2>&5
14426
  ac_status=$?
14427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428
  (exit $ac_status); }; } &&
14429
         { ac_try='test -s conftest.$ac_objext'
14430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431
  (eval $ac_try) 2>&5
14432
  ac_status=$?
14433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434
  (exit $ac_status); }; }; then
14435
  ac_hi=$ac_mid
14436
else
14437
  echo "$as_me: failed program was:" >&5
14438
sed 's/^/| /' conftest.$ac_ext >&5
14439
 
14440
ac_lo=`expr '(' $ac_mid ')' + 1`
14441
fi
14442
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14443
done
14444
case $ac_lo in
14445
?*) ac_cv_sizeof_void_p=$ac_lo;;
14446
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14447
See \`config.log' for more details." >&5
14448
echo "$as_me: error: cannot compute sizeof (void *), 77
14449
See \`config.log' for more details." >&2;}
14450
   { (exit 1); exit 1; }; } ;;
14451
esac
14452
else
14453
  if test "$cross_compiling" = yes; then
14454
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14455
See \`config.log' for more details." >&5
14456
echo "$as_me: error: cannot run test program while cross compiling
14457
See \`config.log' for more details." >&2;}
14458
   { (exit 1); exit 1; }; }
14459
else
14460
  cat >conftest.$ac_ext <<_ACEOF
14461
/* confdefs.h.  */
14462
_ACEOF
14463
cat confdefs.h >>conftest.$ac_ext
14464
cat >>conftest.$ac_ext <<_ACEOF
14465
/* end confdefs.h.  */
14466
$ac_includes_default
14467
long longval () { return (long) (sizeof (void *)); }
14468
unsigned long ulongval () { return (long) (sizeof (void *)); }
14469
#include 
14470
#include 
14471
int
14472
main ()
14473
{
14474
 
14475
  FILE *f = fopen ("conftest.val", "w");
14476
  if (! f)
14477
    exit (1);
14478
  if (((long) (sizeof (void *))) < 0)
14479
    {
14480
      long i = longval ();
14481
      if (i != ((long) (sizeof (void *))))
14482
        exit (1);
14483
      fprintf (f, "%ld\n", i);
14484
    }
14485
  else
14486
    {
14487
      unsigned long i = ulongval ();
14488
      if (i != ((long) (sizeof (void *))))
14489
        exit (1);
14490
      fprintf (f, "%lu\n", i);
14491
    }
14492
  exit (ferror (f) || fclose (f) != 0);
14493
 
14494
  ;
14495
  return 0;
14496
}
14497
_ACEOF
14498
rm -f conftest$ac_exeext
14499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500
  (eval $ac_link) 2>&5
14501
  ac_status=$?
14502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505
  (eval $ac_try) 2>&5
14506
  ac_status=$?
14507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508
  (exit $ac_status); }; }; then
14509
  ac_cv_sizeof_void_p=`cat conftest.val`
14510
else
14511
  echo "$as_me: program exited with status $ac_status" >&5
14512
echo "$as_me: failed program was:" >&5
14513
sed 's/^/| /' conftest.$ac_ext >&5
14514
 
14515
( exit $ac_status )
14516
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14517
See \`config.log' for more details." >&5
14518
echo "$as_me: error: cannot compute sizeof (void *), 77
14519
See \`config.log' for more details." >&2;}
14520
   { (exit 1); exit 1; }; }
14521
fi
14522
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523
fi
14524
fi
14525
rm -f conftest.val
14526
else
14527
  ac_cv_sizeof_void_p=0
14528
fi
14529
fi
14530
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14531
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14532
cat >>confdefs.h <<_ACEOF
14533
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14534
_ACEOF
14535
 
14536
 
14537
 
14538
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14539
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14540
if test "${ac_cv_c_bigendian+set}" = set; then
14541
  echo $ECHO_N "(cached) $ECHO_C" >&6
14542
else
14543
  # See if sys/param.h defines the BYTE_ORDER macro.
14544
cat >conftest.$ac_ext <<_ACEOF
14545
/* confdefs.h.  */
14546
_ACEOF
14547
cat confdefs.h >>conftest.$ac_ext
14548
cat >>conftest.$ac_ext <<_ACEOF
14549
/* end confdefs.h.  */
14550
#include 
14551
#include 
14552
 
14553
int
14554
main ()
14555
{
14556
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14557
 bogus endian macros
14558
#endif
14559
 
14560
  ;
14561
  return 0;
14562
}
14563
_ACEOF
14564
rm -f conftest.$ac_objext
14565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566
  (eval $ac_compile) 2>conftest.er1
14567
  ac_status=$?
14568
  grep -v '^ *+' conftest.er1 >conftest.err
14569
  rm -f conftest.er1
14570
  cat conftest.err >&5
14571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572
  (exit $ac_status); } &&
14573
         { ac_try='test -z "$ac_c_werror_flag"
14574
                         || test ! -s conftest.err'
14575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576
  (eval $ac_try) 2>&5
14577
  ac_status=$?
14578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579
  (exit $ac_status); }; } &&
14580
         { ac_try='test -s conftest.$ac_objext'
14581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582
  (eval $ac_try) 2>&5
14583
  ac_status=$?
14584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585
  (exit $ac_status); }; }; then
14586
  # It does; now see whether it defined to BIG_ENDIAN or not.
14587
cat >conftest.$ac_ext <<_ACEOF
14588
/* confdefs.h.  */
14589
_ACEOF
14590
cat confdefs.h >>conftest.$ac_ext
14591
cat >>conftest.$ac_ext <<_ACEOF
14592
/* end confdefs.h.  */
14593
#include 
14594
#include 
14595
 
14596
int
14597
main ()
14598
{
14599
#if BYTE_ORDER != BIG_ENDIAN
14600
 not big endian
14601
#endif
14602
 
14603
  ;
14604
  return 0;
14605
}
14606
_ACEOF
14607
rm -f conftest.$ac_objext
14608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609
  (eval $ac_compile) 2>conftest.er1
14610
  ac_status=$?
14611
  grep -v '^ *+' conftest.er1 >conftest.err
14612
  rm -f conftest.er1
14613
  cat conftest.err >&5
14614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615
  (exit $ac_status); } &&
14616
         { ac_try='test -z "$ac_c_werror_flag"
14617
                         || test ! -s conftest.err'
14618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619
  (eval $ac_try) 2>&5
14620
  ac_status=$?
14621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622
  (exit $ac_status); }; } &&
14623
         { ac_try='test -s conftest.$ac_objext'
14624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625
  (eval $ac_try) 2>&5
14626
  ac_status=$?
14627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628
  (exit $ac_status); }; }; then
14629
  ac_cv_c_bigendian=yes
14630
else
14631
  echo "$as_me: failed program was:" >&5
14632
sed 's/^/| /' conftest.$ac_ext >&5
14633
 
14634
ac_cv_c_bigendian=no
14635
fi
14636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14637
else
14638
  echo "$as_me: failed program was:" >&5
14639
sed 's/^/| /' conftest.$ac_ext >&5
14640
 
14641
# It does not; compile a test program.
14642
if test "$cross_compiling" = yes; then
14643
  # try to guess the endianness by grepping values into an object file
14644
  ac_cv_c_bigendian=unknown
14645
  cat >conftest.$ac_ext <<_ACEOF
14646
/* confdefs.h.  */
14647
_ACEOF
14648
cat confdefs.h >>conftest.$ac_ext
14649
cat >>conftest.$ac_ext <<_ACEOF
14650
/* end confdefs.h.  */
14651
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14652
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14653
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14654
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14655
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14656
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14657
int
14658
main ()
14659
{
14660
 _ascii (); _ebcdic ();
14661
  ;
14662
  return 0;
14663
}
14664
_ACEOF
14665
rm -f conftest.$ac_objext
14666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667
  (eval $ac_compile) 2>conftest.er1
14668
  ac_status=$?
14669
  grep -v '^ *+' conftest.er1 >conftest.err
14670
  rm -f conftest.er1
14671
  cat conftest.err >&5
14672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673
  (exit $ac_status); } &&
14674
         { ac_try='test -z "$ac_c_werror_flag"
14675
                         || test ! -s conftest.err'
14676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677
  (eval $ac_try) 2>&5
14678
  ac_status=$?
14679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680
  (exit $ac_status); }; } &&
14681
         { ac_try='test -s conftest.$ac_objext'
14682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683
  (eval $ac_try) 2>&5
14684
  ac_status=$?
14685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686
  (exit $ac_status); }; }; then
14687
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14688
  ac_cv_c_bigendian=yes
14689
fi
14690
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14691
  if test "$ac_cv_c_bigendian" = unknown; then
14692
    ac_cv_c_bigendian=no
14693
  else
14694
    # finding both strings is unlikely to happen, but who knows?
14695
    ac_cv_c_bigendian=unknown
14696
  fi
14697
fi
14698
else
14699
  echo "$as_me: failed program was:" >&5
14700
sed 's/^/| /' conftest.$ac_ext >&5
14701
 
14702
fi
14703
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14704
else
14705
  cat >conftest.$ac_ext <<_ACEOF
14706
/* confdefs.h.  */
14707
_ACEOF
14708
cat confdefs.h >>conftest.$ac_ext
14709
cat >>conftest.$ac_ext <<_ACEOF
14710
/* end confdefs.h.  */
14711
int
14712
main ()
14713
{
14714
  /* Are we little or big endian?  From Harbison&Steele.  */
14715
  union
14716
  {
14717
    long l;
14718
    char c[sizeof (long)];
14719
  } u;
14720
  u.l = 1;
14721
  exit (u.c[sizeof (long) - 1] == 1);
14722
}
14723
_ACEOF
14724
rm -f conftest$ac_exeext
14725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726
  (eval $ac_link) 2>&5
14727
  ac_status=$?
14728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731
  (eval $ac_try) 2>&5
14732
  ac_status=$?
14733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734
  (exit $ac_status); }; }; then
14735
  ac_cv_c_bigendian=no
14736
else
14737
  echo "$as_me: program exited with status $ac_status" >&5
14738
echo "$as_me: failed program was:" >&5
14739
sed 's/^/| /' conftest.$ac_ext >&5
14740
 
14741
( exit $ac_status )
14742
ac_cv_c_bigendian=yes
14743
fi
14744
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14745
fi
14746
fi
14747
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748
fi
14749
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14750
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14751
case $ac_cv_c_bigendian in
14752
  yes)
14753
 
14754
cat >>confdefs.h <<\_ACEOF
14755
#define WORDS_BIGENDIAN 1
14756
_ACEOF
14757
 ;;
14758
  no)
14759
     ;;
14760
  *)
14761
    { { echo "$as_me:$LINENO: error: unknown endianness
14762
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14763
echo "$as_me: error: unknown endianness
14764
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14765
   { (exit 1); exit 1; }; } ;;
14766
esac
14767
 
14768
 
14769
ZLIBS=
14770
SYS_ZLIBS=
14771
ZINCS=
14772
 
14773
if test -z "$ZLIBSPEC"; then
14774
   # Use zlib from the GCC tree.
14775
   ZINCS='-I$(top_srcdir)/../zlib'
14776
   ZLIBS=../zlib/libzgcj_convenience.la
14777
else
14778
   # System's zlib.
14779
   SYS_ZLIBS="$ZLIBSPEC"
14780
fi
14781
 
14782
 
14783
 
14784
 
14785
 
14786
 
14787
 
14788
 
14789
 
14790
 
14791
 
14792
if test "$NATIVE" = yes; then
14793
  NATIVE_TRUE=
14794
  NATIVE_FALSE='#'
14795
else
14796
  NATIVE_TRUE='#'
14797
  NATIVE_FALSE=
14798
fi
14799
 
14800
 
14801
 
14802
if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14803
  NEEDS_DATA_START_TRUE=
14804
  NEEDS_DATA_START_FALSE='#'
14805
else
14806
  NEEDS_DATA_START_TRUE='#'
14807
  NEEDS_DATA_START_FALSE=
14808
fi
14809
 
14810
 
14811
 
14812
# Process the option "--enable-version-specific-runtime-libs"
14813
# Calculate toolexeclibdir
14814
case ${version_specific_libs} in
14815
  yes)
14816
    # Need the gcc compiler version to know where to install libraries
14817
    # and header files if --enable-version-specific-runtime-libs option
14818
    # is selected.
14819
    includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14820
    toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14821
    toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14822
    toolexeclibdir=$toolexecmainlibdir
14823
    ;;
14824
  no)
14825
    if test -n "$with_cross_host" &&
14826
       test x"$with_cross_host" != x"no"; then
14827
      # Install a library built with a cross compiler in tooldir, not libdir.
14828
      toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14829
      toolexecmainlibdir='$(toolexecdir)/lib'
14830
    else
14831
      toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14832
      toolexecmainlibdir='$(libdir)'
14833
    fi
14834
    multi_os_directory=`$CC -print-multi-os-directory`
14835
    case $multi_os_directory in
14836
      .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14837
      *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14838
    esac
14839
    ;;
14840
esac
14841
 
14842
 
14843
 
14844
 
14845
# Determine where the standard .db file is found.
14846
multi_os_directory=`$CC -print-multi-os-directory`
14847
case $multi_os_directory in
14848
  .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14849
  *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14850
esac
14851
 
14852
 
14853
# Determine gcj version number.
14854
gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14855
GCJVERSION=$gcjversion
14856
 
14857
 
14858
cat >>confdefs.h <<_ACEOF
14859
#define GCJVERSION "$GCJVERSION"
14860
_ACEOF
14861
 
14862
 
14863
 
14864
cat >>confdefs.h <<\_ACEOF
14865
#define JV_VERSION "1.4.2"
14866
_ACEOF
14867
 
14868
 
14869
cat >>confdefs.h <<\_ACEOF
14870
#define JV_API_VERSION "1.4"
14871
_ACEOF
14872
 
14873
 
14874
 
14875
case "${with_gxx_include_dir}" in
14876
  yes)
14877
    { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14878
echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14879
   { (exit 1); exit 1; }; }
14880
    ;;
14881
  no | "")
14882
    case "${enable_version_specific_runtime_libs}" in
14883
      yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14884
      *)
14885
        libstdcxx_incdir='c++/$(gcc_version)'
14886
        gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14887
    esac ;;
14888
  *) gxx_include_dir=${with_gxx_include_dir} ;;
14889
esac
14890
 
14891
 
14892
 
14893
 
14894
# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14895
# On that system, sys/ioctl.h will not include sys/filio.h unless
14896
# BSD_COMP is defined; just including sys/filio.h is simpler.
14897
# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14898
# for now.  If you change this, you also must update natFile.cc.
14899
 
14900
 
14901
 
14902
 
14903
 
14904
 
14905
 
14906
 
14907
 
14908
 
14909
 
14910
 
14911
 
14912
 
14913
 
14914
 
14915
 
14916
 
14917
 
14918
 
14919
for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14920
                  sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14921
                  sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14922
                  pwd.h sys/config.h stdint.h langinfo.h locale.h \
14923
                  dirent.h
14924
do
14925
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14926
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927
  echo "$as_me:$LINENO: checking for $ac_header" >&5
14928
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14929
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14930
  echo $ECHO_N "(cached) $ECHO_C" >&6
14931
fi
14932
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14933
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14934
else
14935
  # Is the header compilable?
14936
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14937
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14938
cat >conftest.$ac_ext <<_ACEOF
14939
/* confdefs.h.  */
14940
_ACEOF
14941
cat confdefs.h >>conftest.$ac_ext
14942
cat >>conftest.$ac_ext <<_ACEOF
14943
/* end confdefs.h.  */
14944
$ac_includes_default
14945
#include <$ac_header>
14946
_ACEOF
14947
rm -f conftest.$ac_objext
14948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949
  (eval $ac_compile) 2>conftest.er1
14950
  ac_status=$?
14951
  grep -v '^ *+' conftest.er1 >conftest.err
14952
  rm -f conftest.er1
14953
  cat conftest.err >&5
14954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955
  (exit $ac_status); } &&
14956
         { ac_try='test -z "$ac_c_werror_flag"
14957
                         || test ! -s conftest.err'
14958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959
  (eval $ac_try) 2>&5
14960
  ac_status=$?
14961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962
  (exit $ac_status); }; } &&
14963
         { ac_try='test -s conftest.$ac_objext'
14964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965
  (eval $ac_try) 2>&5
14966
  ac_status=$?
14967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968
  (exit $ac_status); }; }; then
14969
  ac_header_compiler=yes
14970
else
14971
  echo "$as_me: failed program was:" >&5
14972
sed 's/^/| /' conftest.$ac_ext >&5
14973
 
14974
ac_header_compiler=no
14975
fi
14976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14977
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14978
echo "${ECHO_T}$ac_header_compiler" >&6
14979
 
14980
# Is the header present?
14981
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14982
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14983
cat >conftest.$ac_ext <<_ACEOF
14984
/* confdefs.h.  */
14985
_ACEOF
14986
cat confdefs.h >>conftest.$ac_ext
14987
cat >>conftest.$ac_ext <<_ACEOF
14988
/* end confdefs.h.  */
14989
#include <$ac_header>
14990
_ACEOF
14991
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14992
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14993
  ac_status=$?
14994
  grep -v '^ *+' conftest.er1 >conftest.err
14995
  rm -f conftest.er1
14996
  cat conftest.err >&5
14997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998
  (exit $ac_status); } >/dev/null; then
14999
  if test -s conftest.err; then
15000
    ac_cpp_err=$ac_c_preproc_warn_flag
15001
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15002
  else
15003
    ac_cpp_err=
15004
  fi
15005
else
15006
  ac_cpp_err=yes
15007
fi
15008
if test -z "$ac_cpp_err"; then
15009
  ac_header_preproc=yes
15010
else
15011
  echo "$as_me: failed program was:" >&5
15012
sed 's/^/| /' conftest.$ac_ext >&5
15013
 
15014
  ac_header_preproc=no
15015
fi
15016
rm -f conftest.err conftest.$ac_ext
15017
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15018
echo "${ECHO_T}$ac_header_preproc" >&6
15019
 
15020
# So?  What about this header?
15021
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15022
  yes:no: )
15023
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15024
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15025
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15026
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15027
    ac_header_preproc=yes
15028
    ;;
15029
  no:yes:* )
15030
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15031
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15032
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15033
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15034
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15035
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15036
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15037
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15038
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15039
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15040
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15041
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15042
    (
15043
      cat <<\_ASBOX
15044
## ---------------------------------- ##
15045
## Report this to the libjava lists.  ##
15046
## ---------------------------------- ##
15047
_ASBOX
15048
    ) |
15049
      sed "s/^/$as_me: WARNING:     /" >&2
15050
    ;;
15051
esac
15052
echo "$as_me:$LINENO: checking for $ac_header" >&5
15053
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15054
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15055
  echo $ECHO_N "(cached) $ECHO_C" >&6
15056
else
15057
  eval "$as_ac_Header=\$ac_header_preproc"
15058
fi
15059
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15060
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15061
 
15062
fi
15063
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15064
  cat >>confdefs.h <<_ACEOF
15065
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15066
_ACEOF
15067
 
15068
fi
15069
 
15070
done
15071
 
15072
 
15073
for ac_header in inttypes.h
15074
do
15075
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15076
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15077
  echo "$as_me:$LINENO: checking for $ac_header" >&5
15078
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15079
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080
  echo $ECHO_N "(cached) $ECHO_C" >&6
15081
fi
15082
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15083
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15084
else
15085
  # Is the header compilable?
15086
echo "$as_me:$LINENO: checking $ac_header usability" >&5
15087
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15088
cat >conftest.$ac_ext <<_ACEOF
15089
/* confdefs.h.  */
15090
_ACEOF
15091
cat confdefs.h >>conftest.$ac_ext
15092
cat >>conftest.$ac_ext <<_ACEOF
15093
/* end confdefs.h.  */
15094
$ac_includes_default
15095
#include <$ac_header>
15096
_ACEOF
15097
rm -f conftest.$ac_objext
15098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099
  (eval $ac_compile) 2>conftest.er1
15100
  ac_status=$?
15101
  grep -v '^ *+' conftest.er1 >conftest.err
15102
  rm -f conftest.er1
15103
  cat conftest.err >&5
15104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105
  (exit $ac_status); } &&
15106
         { ac_try='test -z "$ac_c_werror_flag"
15107
                         || test ! -s conftest.err'
15108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109
  (eval $ac_try) 2>&5
15110
  ac_status=$?
15111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112
  (exit $ac_status); }; } &&
15113
         { ac_try='test -s conftest.$ac_objext'
15114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115
  (eval $ac_try) 2>&5
15116
  ac_status=$?
15117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118
  (exit $ac_status); }; }; then
15119
  ac_header_compiler=yes
15120
else
15121
  echo "$as_me: failed program was:" >&5
15122
sed 's/^/| /' conftest.$ac_ext >&5
15123
 
15124
ac_header_compiler=no
15125
fi
15126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15127
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15128
echo "${ECHO_T}$ac_header_compiler" >&6
15129
 
15130
# Is the header present?
15131
echo "$as_me:$LINENO: checking $ac_header presence" >&5
15132
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15133
cat >conftest.$ac_ext <<_ACEOF
15134
/* confdefs.h.  */
15135
_ACEOF
15136
cat confdefs.h >>conftest.$ac_ext
15137
cat >>conftest.$ac_ext <<_ACEOF
15138
/* end confdefs.h.  */
15139
#include <$ac_header>
15140
_ACEOF
15141
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15142
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15143
  ac_status=$?
15144
  grep -v '^ *+' conftest.er1 >conftest.err
15145
  rm -f conftest.er1
15146
  cat conftest.err >&5
15147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148
  (exit $ac_status); } >/dev/null; then
15149
  if test -s conftest.err; then
15150
    ac_cpp_err=$ac_c_preproc_warn_flag
15151
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15152
  else
15153
    ac_cpp_err=
15154
  fi
15155
else
15156
  ac_cpp_err=yes
15157
fi
15158
if test -z "$ac_cpp_err"; then
15159
  ac_header_preproc=yes
15160
else
15161
  echo "$as_me: failed program was:" >&5
15162
sed 's/^/| /' conftest.$ac_ext >&5
15163
 
15164
  ac_header_preproc=no
15165
fi
15166
rm -f conftest.err conftest.$ac_ext
15167
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168
echo "${ECHO_T}$ac_header_preproc" >&6
15169
 
15170
# So?  What about this header?
15171
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172
  yes:no: )
15173
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15174
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15176
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15177
    ac_header_preproc=yes
15178
    ;;
15179
  no:yes:* )
15180
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15183
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15184
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15185
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15186
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15187
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15188
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15189
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15190
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15191
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15192
    (
15193
      cat <<\_ASBOX
15194
## ---------------------------------- ##
15195
## Report this to the libjava lists.  ##
15196
## ---------------------------------- ##
15197
_ASBOX
15198
    ) |
15199
      sed "s/^/$as_me: WARNING:     /" >&2
15200
    ;;
15201
esac
15202
echo "$as_me:$LINENO: checking for $ac_header" >&5
15203
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15204
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15205
  echo $ECHO_N "(cached) $ECHO_C" >&6
15206
else
15207
  eval "$as_ac_Header=\$ac_header_preproc"
15208
fi
15209
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15210
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15211
 
15212
fi
15213
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15214
  cat >>confdefs.h <<_ACEOF
15215
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15216
_ACEOF
15217
 
15218
 
15219
cat >>confdefs.h <<\_ACEOF
15220
#define HAVE_INTTYPES_H 1
15221
_ACEOF
15222
 
15223
 
15224
cat >>confdefs.h <<\_ACEOF
15225
#define JV_HAVE_INTTYPES_H 1
15226
_ACEOF
15227
 
15228
 
15229
fi
15230
 
15231
done
15232
 
15233
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15234
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15235
if test "${ac_cv_header_sys_wait_h+set}" = set; then
15236
  echo $ECHO_N "(cached) $ECHO_C" >&6
15237
else
15238
  cat >conftest.$ac_ext <<_ACEOF
15239
/* confdefs.h.  */
15240
_ACEOF
15241
cat confdefs.h >>conftest.$ac_ext
15242
cat >>conftest.$ac_ext <<_ACEOF
15243
/* end confdefs.h.  */
15244
#include 
15245
#include 
15246
#ifndef WEXITSTATUS
15247
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15248
#endif
15249
#ifndef WIFEXITED
15250
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15251
#endif
15252
 
15253
int
15254
main ()
15255
{
15256
  int s;
15257
  wait (&s);
15258
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15259
  ;
15260
  return 0;
15261
}
15262
_ACEOF
15263
rm -f conftest.$ac_objext
15264
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265
  (eval $ac_compile) 2>conftest.er1
15266
  ac_status=$?
15267
  grep -v '^ *+' conftest.er1 >conftest.err
15268
  rm -f conftest.er1
15269
  cat conftest.err >&5
15270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271
  (exit $ac_status); } &&
15272
         { ac_try='test -z "$ac_c_werror_flag"
15273
                         || test ! -s conftest.err'
15274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275
  (eval $ac_try) 2>&5
15276
  ac_status=$?
15277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278
  (exit $ac_status); }; } &&
15279
         { ac_try='test -s conftest.$ac_objext'
15280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281
  (eval $ac_try) 2>&5
15282
  ac_status=$?
15283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284
  (exit $ac_status); }; }; then
15285
  ac_cv_header_sys_wait_h=yes
15286
else
15287
  echo "$as_me: failed program was:" >&5
15288
sed 's/^/| /' conftest.$ac_ext >&5
15289
 
15290
ac_cv_header_sys_wait_h=no
15291
fi
15292
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293
fi
15294
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15295
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15296
if test $ac_cv_header_sys_wait_h = yes; then
15297
 
15298
cat >>confdefs.h <<\_ACEOF
15299
#define HAVE_SYS_WAIT_H 1
15300
_ACEOF
15301
 
15302
fi
15303
 
15304
 
15305
echo "$as_me:$LINENO: checking for ssize_t" >&5
15306
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15307
if test "${ac_cv_type_ssize_t+set}" = set; then
15308
  echo $ECHO_N "(cached) $ECHO_C" >&6
15309
else
15310
  cat >conftest.$ac_ext <<_ACEOF
15311
/* confdefs.h.  */
15312
_ACEOF
15313
cat confdefs.h >>conftest.$ac_ext
15314
cat >>conftest.$ac_ext <<_ACEOF
15315
/* end confdefs.h.  */
15316
$ac_includes_default
15317
int
15318
main ()
15319
{
15320
if ((ssize_t *) 0)
15321
  return 0;
15322
if (sizeof (ssize_t))
15323
  return 0;
15324
  ;
15325
  return 0;
15326
}
15327
_ACEOF
15328
rm -f conftest.$ac_objext
15329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330
  (eval $ac_compile) 2>conftest.er1
15331
  ac_status=$?
15332
  grep -v '^ *+' conftest.er1 >conftest.err
15333
  rm -f conftest.er1
15334
  cat conftest.err >&5
15335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336
  (exit $ac_status); } &&
15337
         { ac_try='test -z "$ac_c_werror_flag"
15338
                         || test ! -s conftest.err'
15339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340
  (eval $ac_try) 2>&5
15341
  ac_status=$?
15342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343
  (exit $ac_status); }; } &&
15344
         { ac_try='test -s conftest.$ac_objext'
15345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346
  (eval $ac_try) 2>&5
15347
  ac_status=$?
15348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349
  (exit $ac_status); }; }; then
15350
  ac_cv_type_ssize_t=yes
15351
else
15352
  echo "$as_me: failed program was:" >&5
15353
sed 's/^/| /' conftest.$ac_ext >&5
15354
 
15355
ac_cv_type_ssize_t=no
15356
fi
15357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358
fi
15359
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15360
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15361
if test $ac_cv_type_ssize_t = yes; then
15362
  :
15363
else
15364
 
15365
cat >>confdefs.h <<_ACEOF
15366
#define ssize_t int
15367
_ACEOF
15368
 
15369
fi
15370
 
15371
 
15372
echo "$as_me:$LINENO: checking for in_addr_t" >&5
15373
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15374
cat >conftest.$ac_ext <<_ACEOF
15375
/* confdefs.h.  */
15376
_ACEOF
15377
cat confdefs.h >>conftest.$ac_ext
15378
cat >>conftest.$ac_ext <<_ACEOF
15379
/* end confdefs.h.  */
15380
#include 
15381
#if STDC_HEADERS
15382
#include 
15383
#include 
15384
#endif
15385
#if HAVE_NETINET_IN_H
15386
#include 
15387
#endif
15388
int
15389
main ()
15390
{
15391
in_addr_t foo;
15392
  ;
15393
  return 0;
15394
}
15395
_ACEOF
15396
rm -f conftest.$ac_objext
15397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15398
  (eval $ac_compile) 2>conftest.er1
15399
  ac_status=$?
15400
  grep -v '^ *+' conftest.er1 >conftest.err
15401
  rm -f conftest.er1
15402
  cat conftest.err >&5
15403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404
  (exit $ac_status); } &&
15405
         { ac_try='test -z "$ac_c_werror_flag"
15406
                         || test ! -s conftest.err'
15407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408
  (eval $ac_try) 2>&5
15409
  ac_status=$?
15410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411
  (exit $ac_status); }; } &&
15412
         { ac_try='test -s conftest.$ac_objext'
15413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414
  (eval $ac_try) 2>&5
15415
  ac_status=$?
15416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417
  (exit $ac_status); }; }; then
15418
 
15419
cat >>confdefs.h <<\_ACEOF
15420
#define HAVE_IN_ADDR_T 1
15421
_ACEOF
15422
 
15423
   echo "$as_me:$LINENO: result: yes" >&5
15424
echo "${ECHO_T}yes" >&6
15425
else
15426
  echo "$as_me: failed program was:" >&5
15427
sed 's/^/| /' conftest.$ac_ext >&5
15428
 
15429
echo "$as_me:$LINENO: result: no" >&5
15430
echo "${ECHO_T}no" >&6
15431
fi
15432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15433
 
15434
echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15435
echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15436
cat >conftest.$ac_ext <<_ACEOF
15437
/* confdefs.h.  */
15438
_ACEOF
15439
cat confdefs.h >>conftest.$ac_ext
15440
cat >>conftest.$ac_ext <<_ACEOF
15441
/* end confdefs.h.  */
15442
#include 
15443
int
15444
main ()
15445
{
15446
struct ip_mreq mreq;
15447
  ;
15448
  return 0;
15449
}
15450
_ACEOF
15451
rm -f conftest.$ac_objext
15452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453
  (eval $ac_compile) 2>conftest.er1
15454
  ac_status=$?
15455
  grep -v '^ *+' conftest.er1 >conftest.err
15456
  rm -f conftest.er1
15457
  cat conftest.err >&5
15458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459
  (exit $ac_status); } &&
15460
         { ac_try='test -z "$ac_c_werror_flag"
15461
                         || test ! -s conftest.err'
15462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463
  (eval $ac_try) 2>&5
15464
  ac_status=$?
15465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466
  (exit $ac_status); }; } &&
15467
         { ac_try='test -s conftest.$ac_objext'
15468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469
  (eval $ac_try) 2>&5
15470
  ac_status=$?
15471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472
  (exit $ac_status); }; }; then
15473
 
15474
cat >>confdefs.h <<\_ACEOF
15475
#define HAVE_STRUCT_IP_MREQ 1
15476
_ACEOF
15477
 
15478
   echo "$as_me:$LINENO: result: yes" >&5
15479
echo "${ECHO_T}yes" >&6
15480
else
15481
  echo "$as_me: failed program was:" >&5
15482
sed 's/^/| /' conftest.$ac_ext >&5
15483
 
15484
echo "$as_me:$LINENO: result: no" >&5
15485
echo "${ECHO_T}no" >&6
15486
fi
15487
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15488
 
15489
echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15490
echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15491
cat >conftest.$ac_ext <<_ACEOF
15492
/* confdefs.h.  */
15493
_ACEOF
15494
cat confdefs.h >>conftest.$ac_ext
15495
cat >>conftest.$ac_ext <<_ACEOF
15496
/* end confdefs.h.  */
15497
#include 
15498
int
15499
main ()
15500
{
15501
struct ipv6_mreq mreq6;
15502
  ;
15503
  return 0;
15504
}
15505
_ACEOF
15506
rm -f conftest.$ac_objext
15507
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508
  (eval $ac_compile) 2>conftest.er1
15509
  ac_status=$?
15510
  grep -v '^ *+' conftest.er1 >conftest.err
15511
  rm -f conftest.er1
15512
  cat conftest.err >&5
15513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514
  (exit $ac_status); } &&
15515
         { ac_try='test -z "$ac_c_werror_flag"
15516
                         || test ! -s conftest.err'
15517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518
  (eval $ac_try) 2>&5
15519
  ac_status=$?
15520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521
  (exit $ac_status); }; } &&
15522
         { ac_try='test -s conftest.$ac_objext'
15523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524
  (eval $ac_try) 2>&5
15525
  ac_status=$?
15526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527
  (exit $ac_status); }; }; then
15528
 
15529
cat >>confdefs.h <<\_ACEOF
15530
#define HAVE_STRUCT_IPV6_MREQ 1
15531
_ACEOF
15532
 
15533
   echo "$as_me:$LINENO: result: yes" >&5
15534
echo "${ECHO_T}yes" >&6
15535
else
15536
  echo "$as_me: failed program was:" >&5
15537
sed 's/^/| /' conftest.$ac_ext >&5
15538
 
15539
echo "$as_me:$LINENO: result: no" >&5
15540
echo "${ECHO_T}no" >&6
15541
fi
15542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15543
 
15544
echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15545
echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15546
cat >conftest.$ac_ext <<_ACEOF
15547
/* confdefs.h.  */
15548
_ACEOF
15549
cat confdefs.h >>conftest.$ac_ext
15550
cat >>conftest.$ac_ext <<_ACEOF
15551
/* end confdefs.h.  */
15552
#include 
15553
int
15554
main ()
15555
{
15556
struct sockaddr_in6 addr6;
15557
  ;
15558
  return 0;
15559
}
15560
_ACEOF
15561
rm -f conftest.$ac_objext
15562
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563
  (eval $ac_compile) 2>conftest.er1
15564
  ac_status=$?
15565
  grep -v '^ *+' conftest.er1 >conftest.err
15566
  rm -f conftest.er1
15567
  cat conftest.err >&5
15568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569
  (exit $ac_status); } &&
15570
         { ac_try='test -z "$ac_c_werror_flag"
15571
                         || test ! -s conftest.err'
15572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573
  (eval $ac_try) 2>&5
15574
  ac_status=$?
15575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576
  (exit $ac_status); }; } &&
15577
         { ac_try='test -s conftest.$ac_objext'
15578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579
  (eval $ac_try) 2>&5
15580
  ac_status=$?
15581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582
  (exit $ac_status); }; }; then
15583
 
15584
cat >>confdefs.h <<\_ACEOF
15585
#define HAVE_INET6 1
15586
_ACEOF
15587
 
15588
   echo "$as_me:$LINENO: result: yes" >&5
15589
echo "${ECHO_T}yes" >&6
15590
else
15591
  echo "$as_me: failed program was:" >&5
15592
sed 's/^/| /' conftest.$ac_ext >&5
15593
 
15594
echo "$as_me:$LINENO: result: no" >&5
15595
echo "${ECHO_T}no" >&6
15596
fi
15597
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598
 
15599
echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15600
echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15601
cat >conftest.$ac_ext <<_ACEOF
15602
/* confdefs.h.  */
15603
_ACEOF
15604
cat confdefs.h >>conftest.$ac_ext
15605
cat >>conftest.$ac_ext <<_ACEOF
15606
/* end confdefs.h.  */
15607
#define _POSIX_PII_SOCKET
15608
#include 
15609
#include 
15610
int
15611
main ()
15612
{
15613
socklen_t x = 5;
15614
  ;
15615
  return 0;
15616
}
15617
_ACEOF
15618
rm -f conftest.$ac_objext
15619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620
  (eval $ac_compile) 2>conftest.er1
15621
  ac_status=$?
15622
  grep -v '^ *+' conftest.er1 >conftest.err
15623
  rm -f conftest.er1
15624
  cat conftest.err >&5
15625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626
  (exit $ac_status); } &&
15627
         { ac_try='test -z "$ac_c_werror_flag"
15628
                         || test ! -s conftest.err'
15629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630
  (eval $ac_try) 2>&5
15631
  ac_status=$?
15632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
  (exit $ac_status); }; } &&
15634
         { ac_try='test -s conftest.$ac_objext'
15635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636
  (eval $ac_try) 2>&5
15637
  ac_status=$?
15638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639
  (exit $ac_status); }; }; then
15640
 
15641
cat >>confdefs.h <<\_ACEOF
15642
#define HAVE_SOCKLEN_T 1
15643
_ACEOF
15644
 
15645
   echo "$as_me:$LINENO: result: yes" >&5
15646
echo "${ECHO_T}yes" >&6
15647
else
15648
  echo "$as_me: failed program was:" >&5
15649
sed 's/^/| /' conftest.$ac_ext >&5
15650
 
15651
echo "$as_me:$LINENO: result: no" >&5
15652
echo "${ECHO_T}no" >&6
15653
fi
15654
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15655
 
15656
echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15657
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15658
cat >conftest.$ac_ext <<_ACEOF
15659
/* confdefs.h.  */
15660
_ACEOF
15661
cat confdefs.h >>conftest.$ac_ext
15662
cat >>conftest.$ac_ext <<_ACEOF
15663
/* end confdefs.h.  */
15664
#include 
15665
int
15666
main ()
15667
{
15668
struct tm tim; tim.tm_gmtoff = 0;
15669
  ;
15670
  return 0;
15671
}
15672
_ACEOF
15673
rm -f conftest.$ac_objext
15674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675
  (eval $ac_compile) 2>conftest.er1
15676
  ac_status=$?
15677
  grep -v '^ *+' conftest.er1 >conftest.err
15678
  rm -f conftest.er1
15679
  cat conftest.err >&5
15680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681
  (exit $ac_status); } &&
15682
         { ac_try='test -z "$ac_c_werror_flag"
15683
                         || test ! -s conftest.err'
15684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685
  (eval $ac_try) 2>&5
15686
  ac_status=$?
15687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688
  (exit $ac_status); }; } &&
15689
         { ac_try='test -s conftest.$ac_objext'
15690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691
  (eval $ac_try) 2>&5
15692
  ac_status=$?
15693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694
  (exit $ac_status); }; }; then
15695
 
15696
cat >>confdefs.h <<\_ACEOF
15697
#define STRUCT_TM_HAS_GMTOFF 1
15698
_ACEOF
15699
 
15700
   echo "$as_me:$LINENO: result: yes" >&5
15701
echo "${ECHO_T}yes" >&6
15702
else
15703
  echo "$as_me: failed program was:" >&5
15704
sed 's/^/| /' conftest.$ac_ext >&5
15705
 
15706
echo "$as_me:$LINENO: result: no" >&5
15707
echo "${ECHO_T}no" >&6
15708
   echo "$as_me:$LINENO: checking for global timezone variable" >&5
15709
echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15710
               cat >conftest.$ac_ext <<_ACEOF
15711
/* confdefs.h.  */
15712
_ACEOF
15713
cat confdefs.h >>conftest.$ac_ext
15714
cat >>conftest.$ac_ext <<_ACEOF
15715
/* end confdefs.h.  */
15716
#include 
15717
int
15718
main ()
15719
{
15720
void i(){long z2 = 2*timezone;}
15721
  ;
15722
  return 0;
15723
}
15724
_ACEOF
15725
rm -f conftest.$ac_objext
15726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15727
  (eval $ac_compile) 2>conftest.er1
15728
  ac_status=$?
15729
  grep -v '^ *+' conftest.er1 >conftest.err
15730
  rm -f conftest.er1
15731
  cat conftest.err >&5
15732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733
  (exit $ac_status); } &&
15734
         { ac_try='test -z "$ac_c_werror_flag"
15735
                         || test ! -s conftest.err'
15736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737
  (eval $ac_try) 2>&5
15738
  ac_status=$?
15739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740
  (exit $ac_status); }; } &&
15741
         { ac_try='test -s conftest.$ac_objext'
15742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743
  (eval $ac_try) 2>&5
15744
  ac_status=$?
15745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746
  (exit $ac_status); }; }; then
15747
 
15748
cat >>confdefs.h <<\_ACEOF
15749
#define HAVE_TIMEZONE 1
15750
_ACEOF
15751
 
15752
      echo "$as_me:$LINENO: result: yes" >&5
15753
echo "${ECHO_T}yes" >&6
15754
else
15755
  echo "$as_me: failed program was:" >&5
15756
sed 's/^/| /' conftest.$ac_ext >&5
15757
 
15758
echo "$as_me:$LINENO: result: no" >&5
15759
echo "${ECHO_T}no" >&6
15760
       echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15761
echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15762
              cat >conftest.$ac_ext <<_ACEOF
15763
/* confdefs.h.  */
15764
_ACEOF
15765
cat confdefs.h >>conftest.$ac_ext
15766
cat >>conftest.$ac_ext <<_ACEOF
15767
/* end confdefs.h.  */
15768
#include 
15769
int
15770
main ()
15771
{
15772
long z2 = _timezone;
15773
  ;
15774
  return 0;
15775
}
15776
_ACEOF
15777
rm -f conftest.$ac_objext
15778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15779
  (eval $ac_compile) 2>conftest.er1
15780
  ac_status=$?
15781
  grep -v '^ *+' conftest.er1 >conftest.err
15782
  rm -f conftest.er1
15783
  cat conftest.err >&5
15784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785
  (exit $ac_status); } &&
15786
         { ac_try='test -z "$ac_c_werror_flag"
15787
                         || test ! -s conftest.err'
15788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789
  (eval $ac_try) 2>&5
15790
  ac_status=$?
15791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792
  (exit $ac_status); }; } &&
15793
         { ac_try='test -s conftest.$ac_objext'
15794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795
  (eval $ac_try) 2>&5
15796
  ac_status=$?
15797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798
  (exit $ac_status); }; }; then
15799
 
15800
cat >>confdefs.h <<\_ACEOF
15801
#define HAVE_UNDERSCORE_TIMEZONE 1
15802
_ACEOF
15803
 
15804
          echo "$as_me:$LINENO: result: yes" >&5
15805
echo "${ECHO_T}yes" >&6
15806
else
15807
  echo "$as_me: failed program was:" >&5
15808
sed 's/^/| /' conftest.$ac_ext >&5
15809
 
15810
echo "$as_me:$LINENO: result: no" >&5
15811
echo "${ECHO_T}no" >&6
15812
fi
15813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814
fi
15815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15816
fi
15817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818
 
15819
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15820
# for constant arguments.  Useless!
15821
echo "$as_me:$LINENO: checking for working alloca.h" >&5
15822
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15823
if test "${ac_cv_working_alloca_h+set}" = set; then
15824
  echo $ECHO_N "(cached) $ECHO_C" >&6
15825
else
15826
  if test x$gcc_no_link = xyes; then
15827
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15828
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15829
   { (exit 1); exit 1; }; }
15830
fi
15831
cat >conftest.$ac_ext <<_ACEOF
15832
/* confdefs.h.  */
15833
_ACEOF
15834
cat confdefs.h >>conftest.$ac_ext
15835
cat >>conftest.$ac_ext <<_ACEOF
15836
/* end confdefs.h.  */
15837
#include 
15838
int
15839
main ()
15840
{
15841
char *p = (char *) alloca (2 * sizeof (int));
15842
  ;
15843
  return 0;
15844
}
15845
_ACEOF
15846
rm -f conftest.$ac_objext conftest$ac_exeext
15847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848
  (eval $ac_link) 2>conftest.er1
15849
  ac_status=$?
15850
  grep -v '^ *+' conftest.er1 >conftest.err
15851
  rm -f conftest.er1
15852
  cat conftest.err >&5
15853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854
  (exit $ac_status); } &&
15855
         { ac_try='test -z "$ac_c_werror_flag"
15856
                         || test ! -s conftest.err'
15857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858
  (eval $ac_try) 2>&5
15859
  ac_status=$?
15860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861
  (exit $ac_status); }; } &&
15862
         { ac_try='test -s conftest$ac_exeext'
15863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864
  (eval $ac_try) 2>&5
15865
  ac_status=$?
15866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867
  (exit $ac_status); }; }; then
15868
  ac_cv_working_alloca_h=yes
15869
else
15870
  echo "$as_me: failed program was:" >&5
15871
sed 's/^/| /' conftest.$ac_ext >&5
15872
 
15873
ac_cv_working_alloca_h=no
15874
fi
15875
rm -f conftest.err conftest.$ac_objext \
15876
      conftest$ac_exeext conftest.$ac_ext
15877
fi
15878
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15879
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15880
if test $ac_cv_working_alloca_h = yes; then
15881
 
15882
cat >>confdefs.h <<\_ACEOF
15883
#define HAVE_ALLOCA_H 1
15884
_ACEOF
15885
 
15886
fi
15887
 
15888
echo "$as_me:$LINENO: checking for alloca" >&5
15889
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15890
if test "${ac_cv_func_alloca_works+set}" = set; then
15891
  echo $ECHO_N "(cached) $ECHO_C" >&6
15892
else
15893
  if test x$gcc_no_link = xyes; then
15894
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15895
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15896
   { (exit 1); exit 1; }; }
15897
fi
15898
cat >conftest.$ac_ext <<_ACEOF
15899
/* confdefs.h.  */
15900
_ACEOF
15901
cat confdefs.h >>conftest.$ac_ext
15902
cat >>conftest.$ac_ext <<_ACEOF
15903
/* end confdefs.h.  */
15904
#ifdef __GNUC__
15905
# define alloca __builtin_alloca
15906
#else
15907
# ifdef _MSC_VER
15908
#  include 
15909
#  define alloca _alloca
15910
# else
15911
#  if HAVE_ALLOCA_H
15912
#   include 
15913
#  else
15914
#   ifdef _AIX
15915
 #pragma alloca
15916
#   else
15917
#    ifndef alloca /* predefined by HP cc +Olibcalls */
15918
char *alloca ();
15919
#    endif
15920
#   endif
15921
#  endif
15922
# endif
15923
#endif
15924
 
15925
int
15926
main ()
15927
{
15928
char *p = (char *) alloca (1);
15929
  ;
15930
  return 0;
15931
}
15932
_ACEOF
15933
rm -f conftest.$ac_objext conftest$ac_exeext
15934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935
  (eval $ac_link) 2>conftest.er1
15936
  ac_status=$?
15937
  grep -v '^ *+' conftest.er1 >conftest.err
15938
  rm -f conftest.er1
15939
  cat conftest.err >&5
15940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941
  (exit $ac_status); } &&
15942
         { ac_try='test -z "$ac_c_werror_flag"
15943
                         || test ! -s conftest.err'
15944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945
  (eval $ac_try) 2>&5
15946
  ac_status=$?
15947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948
  (exit $ac_status); }; } &&
15949
         { ac_try='test -s conftest$ac_exeext'
15950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951
  (eval $ac_try) 2>&5
15952
  ac_status=$?
15953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954
  (exit $ac_status); }; }; then
15955
  ac_cv_func_alloca_works=yes
15956
else
15957
  echo "$as_me: failed program was:" >&5
15958
sed 's/^/| /' conftest.$ac_ext >&5
15959
 
15960
ac_cv_func_alloca_works=no
15961
fi
15962
rm -f conftest.err conftest.$ac_objext \
15963
      conftest$ac_exeext conftest.$ac_ext
15964
fi
15965
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15966
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15967
 
15968
if test $ac_cv_func_alloca_works = yes; then
15969
 
15970
cat >>confdefs.h <<\_ACEOF
15971
#define HAVE_ALLOCA 1
15972
_ACEOF
15973
 
15974
else
15975
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15976
# that cause trouble.  Some versions do not even contain alloca or
15977
# contain a buggy version.  If you still want to use their alloca,
15978
# use ar to extract alloca.o from them instead of compiling alloca.c.
15979
 
15980
ALLOCA=alloca.$ac_objext
15981
 
15982
cat >>confdefs.h <<\_ACEOF
15983
#define C_ALLOCA 1
15984
_ACEOF
15985
 
15986
 
15987
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15988
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15989
if test "${ac_cv_os_cray+set}" = set; then
15990
  echo $ECHO_N "(cached) $ECHO_C" >&6
15991
else
15992
  cat >conftest.$ac_ext <<_ACEOF
15993
/* confdefs.h.  */
15994
_ACEOF
15995
cat confdefs.h >>conftest.$ac_ext
15996
cat >>conftest.$ac_ext <<_ACEOF
15997
/* end confdefs.h.  */
15998
#if defined(CRAY) && ! defined(CRAY2)
15999
webecray
16000
#else
16001
wenotbecray
16002
#endif
16003
 
16004
_ACEOF
16005
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16006
  $EGREP "webecray" >/dev/null 2>&1; then
16007
  ac_cv_os_cray=yes
16008
else
16009
  ac_cv_os_cray=no
16010
fi
16011
rm -f conftest*
16012
 
16013
fi
16014
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16015
echo "${ECHO_T}$ac_cv_os_cray" >&6
16016
if test $ac_cv_os_cray = yes; then
16017
  for ac_func in _getb67 GETB67 getb67; do
16018
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16019
echo "$as_me:$LINENO: checking for $ac_func" >&5
16020
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16021
if eval "test \"\${$as_ac_var+set}\" = set"; then
16022
  echo $ECHO_N "(cached) $ECHO_C" >&6
16023
else
16024
  if test x$gcc_no_link = xyes; then
16025
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16026
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16027
   { (exit 1); exit 1; }; }
16028
fi
16029
cat >conftest.$ac_ext <<_ACEOF
16030
/* confdefs.h.  */
16031
_ACEOF
16032
cat confdefs.h >>conftest.$ac_ext
16033
cat >>conftest.$ac_ext <<_ACEOF
16034
/* end confdefs.h.  */
16035
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
16036
   For example, HP-UX 11i  declares gettimeofday.  */
16037
#define $ac_func innocuous_$ac_func
16038
 
16039
/* System header to define __stub macros and hopefully few prototypes,
16040
    which can conflict with char $ac_func (); below.
16041
    Prefer  to  if __STDC__ is defined, since
16042
     exists even on freestanding compilers.  */
16043
 
16044
#ifdef __STDC__
16045
# include 
16046
#else
16047
# include 
16048
#endif
16049
 
16050
#undef $ac_func
16051
 
16052
/* Override any gcc2 internal prototype to avoid an error.  */
16053
#ifdef __cplusplus
16054
extern "C"
16055
{
16056
#endif
16057
/* We use char because int might match the return type of a gcc2
16058
   builtin and then its argument prototype would still apply.  */
16059
char $ac_func ();
16060
/* The GNU C library defines this for functions which it implements
16061
    to always fail with ENOSYS.  Some functions are actually named
16062
    something starting with __ and the normal name is an alias.  */
16063
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16064
choke me
16065
#else
16066
char (*f) () = $ac_func;
16067
#endif
16068
#ifdef __cplusplus
16069
}
16070
#endif
16071
 
16072
int
16073
main ()
16074
{
16075
return f != $ac_func;
16076
  ;
16077
  return 0;
16078
}
16079
_ACEOF
16080
rm -f conftest.$ac_objext conftest$ac_exeext
16081
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16082
  (eval $ac_link) 2>conftest.er1
16083
  ac_status=$?
16084
  grep -v '^ *+' conftest.er1 >conftest.err
16085
  rm -f conftest.er1
16086
  cat conftest.err >&5
16087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088
  (exit $ac_status); } &&
16089
         { ac_try='test -z "$ac_c_werror_flag"
16090
                         || test ! -s conftest.err'
16091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092
  (eval $ac_try) 2>&5
16093
  ac_status=$?
16094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095
  (exit $ac_status); }; } &&
16096
         { ac_try='test -s conftest$ac_exeext'
16097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098
  (eval $ac_try) 2>&5
16099
  ac_status=$?
16100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101
  (exit $ac_status); }; }; then
16102
  eval "$as_ac_var=yes"
16103
else
16104
  echo "$as_me: failed program was:" >&5
16105
sed 's/^/| /' conftest.$ac_ext >&5
16106
 
16107
eval "$as_ac_var=no"
16108
fi
16109
rm -f conftest.err conftest.$ac_objext \
16110
      conftest$ac_exeext conftest.$ac_ext
16111
fi
16112
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16113
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16114
if test `eval echo '${'$as_ac_var'}'` = yes; then
16115
 
16116
cat >>confdefs.h <<_ACEOF
16117
#define CRAY_STACKSEG_END $ac_func
16118
_ACEOF
16119
 
16120
    break
16121
fi
16122
 
16123
  done
16124
fi
16125
 
16126
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16127
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16128
if test "${ac_cv_c_stack_direction+set}" = set; then
16129
  echo $ECHO_N "(cached) $ECHO_C" >&6
16130
else
16131
  if test "$cross_compiling" = yes; then
16132
  ac_cv_c_stack_direction=0
16133
else
16134
  cat >conftest.$ac_ext <<_ACEOF
16135
/* confdefs.h.  */
16136
_ACEOF
16137
cat confdefs.h >>conftest.$ac_ext
16138
cat >>conftest.$ac_ext <<_ACEOF
16139
/* end confdefs.h.  */
16140
int
16141
find_stack_direction ()
16142
{
16143
  static char *addr = 0;
16144
  auto char dummy;
16145
  if (addr == 0)
16146
    {
16147
      addr = &dummy;
16148
      return find_stack_direction ();
16149
    }
16150
  else
16151
    return (&dummy > addr) ? 1 : -1;
16152
}
16153
 
16154
int
16155
main ()
16156
{
16157
  exit (find_stack_direction () < 0);
16158
}
16159
_ACEOF
16160
rm -f conftest$ac_exeext
16161
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16162
  (eval $ac_link) 2>&5
16163
  ac_status=$?
16164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167
  (eval $ac_try) 2>&5
16168
  ac_status=$?
16169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170
  (exit $ac_status); }; }; then
16171
  ac_cv_c_stack_direction=1
16172
else
16173
  echo "$as_me: program exited with status $ac_status" >&5
16174
echo "$as_me: failed program was:" >&5
16175
sed 's/^/| /' conftest.$ac_ext >&5
16176
 
16177
( exit $ac_status )
16178
ac_cv_c_stack_direction=-1
16179
fi
16180
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16181
fi
16182
fi
16183
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16184
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16185
 
16186
cat >>confdefs.h <<_ACEOF
16187
#define STACK_DIRECTION $ac_cv_c_stack_direction
16188
_ACEOF
16189
 
16190
 
16191
fi
16192
 
16193
if test x$gcc_no_link = xyes; then
16194
  if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16195
    ac_cv_func_mmap_fixed_mapped=no
16196
  fi
16197
fi
16198
if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16199
 
16200
 
16201
for ac_header in stdlib.h unistd.h
16202
do
16203
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16204
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16205
  echo "$as_me:$LINENO: checking for $ac_header" >&5
16206
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16207
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16208
  echo $ECHO_N "(cached) $ECHO_C" >&6
16209
fi
16210
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16211
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16212
else
16213
  # Is the header compilable?
16214
echo "$as_me:$LINENO: checking $ac_header usability" >&5
16215
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16216
cat >conftest.$ac_ext <<_ACEOF
16217
/* confdefs.h.  */
16218
_ACEOF
16219
cat confdefs.h >>conftest.$ac_ext
16220
cat >>conftest.$ac_ext <<_ACEOF
16221
/* end confdefs.h.  */
16222
$ac_includes_default
16223
#include <$ac_header>
16224
_ACEOF
16225
rm -f conftest.$ac_objext
16226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16227
  (eval $ac_compile) 2>conftest.er1
16228
  ac_status=$?
16229
  grep -v '^ *+' conftest.er1 >conftest.err
16230
  rm -f conftest.er1
16231
  cat conftest.err >&5
16232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233
  (exit $ac_status); } &&
16234
         { ac_try='test -z "$ac_c_werror_flag"
16235
                         || test ! -s conftest.err'
16236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237
  (eval $ac_try) 2>&5
16238
  ac_status=$?
16239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240
  (exit $ac_status); }; } &&
16241
         { ac_try='test -s conftest.$ac_objext'
16242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243
  (eval $ac_try) 2>&5
16244
  ac_status=$?
16245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246
  (exit $ac_status); }; }; then
16247
  ac_header_compiler=yes
16248
else
16249
  echo "$as_me: failed program was:" >&5
16250
sed 's/^/| /' conftest.$ac_ext >&5
16251
 
16252
ac_header_compiler=no
16253
fi
16254
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16256
echo "${ECHO_T}$ac_header_compiler" >&6
16257
 
16258
# Is the header present?
16259
echo "$as_me:$LINENO: checking $ac_header presence" >&5
16260
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16261
cat >conftest.$ac_ext <<_ACEOF
16262
/* confdefs.h.  */
16263
_ACEOF
16264
cat confdefs.h >>conftest.$ac_ext
16265
cat >>conftest.$ac_ext <<_ACEOF
16266
/* end confdefs.h.  */
16267
#include <$ac_header>
16268
_ACEOF
16269
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16270
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16271
  ac_status=$?
16272
  grep -v '^ *+' conftest.er1 >conftest.err
16273
  rm -f conftest.er1
16274
  cat conftest.err >&5
16275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276
  (exit $ac_status); } >/dev/null; then
16277
  if test -s conftest.err; then
16278
    ac_cpp_err=$ac_c_preproc_warn_flag
16279
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280
  else
16281
    ac_cpp_err=
16282
  fi
16283
else
16284
  ac_cpp_err=yes
16285
fi
16286
if test -z "$ac_cpp_err"; then
16287
  ac_header_preproc=yes
16288
else
16289
  echo "$as_me: failed program was:" >&5
16290
sed 's/^/| /' conftest.$ac_ext >&5
16291
 
16292
  ac_header_preproc=no
16293
fi
16294
rm -f conftest.err conftest.$ac_ext
16295
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16296
echo "${ECHO_T}$ac_header_preproc" >&6
16297
 
16298
# So?  What about this header?
16299
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300
  yes:no: )
16301
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16302
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16303
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16304
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16305
    ac_header_preproc=yes
16306
    ;;
16307
  no:yes:* )
16308
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16309
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16310
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16311
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16312
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16313
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16314
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16315
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16316
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16317
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16318
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16319
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16320
    (
16321
      cat <<\_ASBOX
16322
## ---------------------------------- ##
16323
## Report this to the libjava lists.  ##
16324
## ---------------------------------- ##
16325
_ASBOX
16326
    ) |
16327
      sed "s/^/$as_me: WARNING:     /" >&2
16328
    ;;
16329
esac
16330
echo "$as_me:$LINENO: checking for $ac_header" >&5
16331
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333
  echo $ECHO_N "(cached) $ECHO_C" >&6
16334
else
16335
  eval "$as_ac_Header=\$ac_header_preproc"
16336
fi
16337
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16338
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16339
 
16340
fi
16341
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342
  cat >>confdefs.h <<_ACEOF
16343
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344
_ACEOF
16345
 
16346
fi
16347
 
16348
done
16349
 
16350
 
16351
for ac_func in getpagesize
16352
do
16353
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16354
echo "$as_me:$LINENO: checking for $ac_func" >&5
16355
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16356
if eval "test \"\${$as_ac_var+set}\" = set"; then
16357
  echo $ECHO_N "(cached) $ECHO_C" >&6
16358
else
16359
  if test x$gcc_no_link = xyes; then
16360
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16361
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16362
   { (exit 1); exit 1; }; }
16363
fi
16364
cat >conftest.$ac_ext <<_ACEOF
16365
/* confdefs.h.  */
16366
_ACEOF
16367
cat confdefs.h >>conftest.$ac_ext
16368
cat >>conftest.$ac_ext <<_ACEOF
16369
/* end confdefs.h.  */
16370
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
16371
   For example, HP-UX 11i  declares gettimeofday.  */
16372
#define $ac_func innocuous_$ac_func
16373
 
16374
/* System header to define __stub macros and hopefully few prototypes,
16375
    which can conflict with char $ac_func (); below.
16376
    Prefer  to  if __STDC__ is defined, since
16377
     exists even on freestanding compilers.  */
16378
 
16379
#ifdef __STDC__
16380
# include 
16381
#else
16382
# include 
16383
#endif
16384
 
16385
#undef $ac_func
16386
 
16387
/* Override any gcc2 internal prototype to avoid an error.  */
16388
#ifdef __cplusplus
16389
extern "C"
16390
{
16391
#endif
16392
/* We use char because int might match the return type of a gcc2
16393
   builtin and then its argument prototype would still apply.  */
16394
char $ac_func ();
16395
/* The GNU C library defines this for functions which it implements
16396
    to always fail with ENOSYS.  Some functions are actually named
16397
    something starting with __ and the normal name is an alias.  */
16398
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399
choke me
16400
#else
16401
char (*f) () = $ac_func;
16402
#endif
16403
#ifdef __cplusplus
16404
}
16405
#endif
16406
 
16407
int
16408
main ()
16409
{
16410
return f != $ac_func;
16411
  ;
16412
  return 0;
16413
}
16414
_ACEOF
16415
rm -f conftest.$ac_objext conftest$ac_exeext
16416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417
  (eval $ac_link) 2>conftest.er1
16418
  ac_status=$?
16419
  grep -v '^ *+' conftest.er1 >conftest.err
16420
  rm -f conftest.er1
16421
  cat conftest.err >&5
16422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423
  (exit $ac_status); } &&
16424
         { ac_try='test -z "$ac_c_werror_flag"
16425
                         || test ! -s conftest.err'
16426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427
  (eval $ac_try) 2>&5
16428
  ac_status=$?
16429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430
  (exit $ac_status); }; } &&
16431
         { ac_try='test -s conftest$ac_exeext'
16432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433
  (eval $ac_try) 2>&5
16434
  ac_status=$?
16435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436
  (exit $ac_status); }; }; then
16437
  eval "$as_ac_var=yes"
16438
else
16439
  echo "$as_me: failed program was:" >&5
16440
sed 's/^/| /' conftest.$ac_ext >&5
16441
 
16442
eval "$as_ac_var=no"
16443
fi
16444
rm -f conftest.err conftest.$ac_objext \
16445
      conftest$ac_exeext conftest.$ac_ext
16446
fi
16447
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449
if test `eval echo '${'$as_ac_var'}'` = yes; then
16450
  cat >>confdefs.h <<_ACEOF
16451
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452
_ACEOF
16453
 
16454
fi
16455
done
16456
 
16457
echo "$as_me:$LINENO: checking for working mmap" >&5
16458
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16459
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16460
  echo $ECHO_N "(cached) $ECHO_C" >&6
16461
else
16462
  if test "$cross_compiling" = yes; then
16463
  ac_cv_func_mmap_fixed_mapped=no
16464
else
16465
  cat >conftest.$ac_ext <<_ACEOF
16466
/* confdefs.h.  */
16467
_ACEOF
16468
cat confdefs.h >>conftest.$ac_ext
16469
cat >>conftest.$ac_ext <<_ACEOF
16470
/* end confdefs.h.  */
16471
$ac_includes_default
16472
/* malloc might have been renamed as rpl_malloc. */
16473
#undef malloc
16474
 
16475
/* Thanks to Mike Haertel and Jim Avera for this test.
16476
   Here is a matrix of mmap possibilities:
16477
        mmap private not fixed
16478
        mmap private fixed at somewhere currently unmapped
16479
        mmap private fixed at somewhere already mapped
16480
        mmap shared not fixed
16481
        mmap shared fixed at somewhere currently unmapped
16482
        mmap shared fixed at somewhere already mapped
16483
   For private mappings, we should verify that changes cannot be read()
16484
   back from the file, nor mmap's back from the file at a different
16485
   address.  (There have been systems where private was not correctly
16486
   implemented like the infamous i386 svr4.0, and systems where the
16487
   VM page cache was not coherent with the file system buffer cache
16488
   like early versions of FreeBSD and possibly contemporary NetBSD.)
16489
   For shared mappings, we should conversely verify that changes get
16490
   propagated back to all the places they're supposed to be.
16491
 
16492
   Grep wants private fixed already mapped.
16493
   The main things grep needs to know about mmap are:
16494
   * does it exist and is it safe to write into the mmap'd area
16495
   * how to use it (BSD variants)  */
16496
 
16497
#include 
16498
#include 
16499
 
16500
#if !STDC_HEADERS && !HAVE_STDLIB_H
16501
char *malloc ();
16502
#endif
16503
 
16504
/* This mess was copied from the GNU getpagesize.h.  */
16505
#if !HAVE_GETPAGESIZE
16506
/* Assume that all systems that can run configure have sys/param.h.  */
16507
# if !HAVE_SYS_PARAM_H
16508
#  define HAVE_SYS_PARAM_H 1
16509
# endif
16510
 
16511
# ifdef _SC_PAGESIZE
16512
#  define getpagesize() sysconf(_SC_PAGESIZE)
16513
# else /* no _SC_PAGESIZE */
16514
#  if HAVE_SYS_PARAM_H
16515
#   include 
16516
#   ifdef EXEC_PAGESIZE
16517
#    define getpagesize() EXEC_PAGESIZE
16518
#   else /* no EXEC_PAGESIZE */
16519
#    ifdef NBPG
16520
#     define getpagesize() NBPG * CLSIZE
16521
#     ifndef CLSIZE
16522
#      define CLSIZE 1
16523
#     endif /* no CLSIZE */
16524
#    else /* no NBPG */
16525
#     ifdef NBPC
16526
#      define getpagesize() NBPC
16527
#     else /* no NBPC */
16528
#      ifdef PAGESIZE
16529
#       define getpagesize() PAGESIZE
16530
#      endif /* PAGESIZE */
16531
#     endif /* no NBPC */
16532
#    endif /* no NBPG */
16533
#   endif /* no EXEC_PAGESIZE */
16534
#  else /* no HAVE_SYS_PARAM_H */
16535
#   define getpagesize() 8192   /* punt totally */
16536
#  endif /* no HAVE_SYS_PARAM_H */
16537
# endif /* no _SC_PAGESIZE */
16538
 
16539
#endif /* no HAVE_GETPAGESIZE */
16540
 
16541
int
16542
main ()
16543
{
16544
  char *data, *data2, *data3;
16545
  int i, pagesize;
16546
  int fd;
16547
 
16548
  pagesize = getpagesize ();
16549
 
16550
  /* First, make a file with some known garbage in it. */
16551
  data = (char *) malloc (pagesize);
16552
  if (!data)
16553
    exit (1);
16554
  for (i = 0; i < pagesize; ++i)
16555
    *(data + i) = rand ();
16556
  umask (0);
16557
  fd = creat ("conftest.mmap", 0600);
16558
  if (fd < 0)
16559
    exit (1);
16560
  if (write (fd, data, pagesize) != pagesize)
16561
    exit (1);
16562
  close (fd);
16563
 
16564
  /* Next, try to mmap the file at a fixed address which already has
16565
     something else allocated at it.  If we can, also make sure that
16566
     we see the same garbage.  */
16567
  fd = open ("conftest.mmap", O_RDWR);
16568
  if (fd < 0)
16569
    exit (1);
16570
  data2 = (char *) malloc (2 * pagesize);
16571
  if (!data2)
16572
    exit (1);
16573
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16574
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16575
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16576
    exit (1);
16577
  for (i = 0; i < pagesize; ++i)
16578
    if (*(data + i) != *(data2 + i))
16579
      exit (1);
16580
 
16581
  /* Finally, make sure that changes to the mapped area do not
16582
     percolate back to the file as seen by read().  (This is a bug on
16583
     some variants of i386 svr4.0.)  */
16584
  for (i = 0; i < pagesize; ++i)
16585
    *(data2 + i) = *(data2 + i) + 1;
16586
  data3 = (char *) malloc (pagesize);
16587
  if (!data3)
16588
    exit (1);
16589
  if (read (fd, data3, pagesize) != pagesize)
16590
    exit (1);
16591
  for (i = 0; i < pagesize; ++i)
16592
    if (*(data + i) != *(data3 + i))
16593
      exit (1);
16594
  close (fd);
16595
  exit (0);
16596
}
16597
_ACEOF
16598
rm -f conftest$ac_exeext
16599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600
  (eval $ac_link) 2>&5
16601
  ac_status=$?
16602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605
  (eval $ac_try) 2>&5
16606
  ac_status=$?
16607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608
  (exit $ac_status); }; }; then
16609
  ac_cv_func_mmap_fixed_mapped=yes
16610
else
16611
  echo "$as_me: program exited with status $ac_status" >&5
16612
echo "$as_me: failed program was:" >&5
16613
sed 's/^/| /' conftest.$ac_ext >&5
16614
 
16615
( exit $ac_status )
16616
ac_cv_func_mmap_fixed_mapped=no
16617
fi
16618
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16619
fi
16620
fi
16621
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16622
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16623
if test $ac_cv_func_mmap_fixed_mapped = yes; then
16624
 
16625
cat >>confdefs.h <<\_ACEOF
16626
#define HAVE_MMAP 1
16627
_ACEOF
16628
 
16629
fi
16630
rm -f conftest.mmap
16631
 
16632
fi
16633
 
16634
for ac_prog in perl
16635
do
16636
  # Extract the first word of "$ac_prog", so it can be a program name with args.
16637
set dummy $ac_prog; ac_word=$2
16638
echo "$as_me:$LINENO: checking for $ac_word" >&5
16639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16640
if test "${ac_cv_prog_PERL+set}" = set; then
16641
  echo $ECHO_N "(cached) $ECHO_C" >&6
16642
else
16643
  if test -n "$PERL"; then
16644
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
16645
else
16646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647
for as_dir in $PATH
16648
do
16649
  IFS=$as_save_IFS
16650
  test -z "$as_dir" && as_dir=.
16651
  for ac_exec_ext in '' $ac_executable_extensions; do
16652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653
    ac_cv_prog_PERL="$ac_prog"
16654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16655
    break 2
16656
  fi
16657
done
16658
done
16659
 
16660
fi
16661
fi
16662
PERL=$ac_cv_prog_PERL
16663
if test -n "$PERL"; then
16664
  echo "$as_me:$LINENO: result: $PERL" >&5
16665
echo "${ECHO_T}$PERL" >&6
16666
else
16667
  echo "$as_me:$LINENO: result: no" >&5
16668
echo "${ECHO_T}no" >&6
16669
fi
16670
 
16671
  test -n "$PERL" && break
16672
done
16673
test -n "$PERL" || PERL="false"
16674
 
16675
 
16676
SYSDEP_SOURCES=
16677
SIGNAL_HANDLER_AUX=
16678
 
16679
case "${host}" in
16680
 i?86-*-linux*)
16681
    SIGNAL_HANDLER=include/i386-signal.h
16682
    ;;
16683
 sparc*-sun-solaris*)
16684
    SIGNAL_HANDLER=include/sparc-signal.h
16685
    ;;
16686
# ia64-*)
16687
#    SYSDEP_SOURCES=sysdep/ia64.c
16688
#    test -d sysdep || mkdir sysdep
16689
#    ;;
16690
 hppa*-*-linux*)
16691
    SIGNAL_HANDLER=include/pa-signal.h
16692
    ;;
16693
 ia64-*-linux*)
16694
    SIGNAL_HANDLER=include/dwarf2-signal.h
16695
    ;;
16696
 powerpc*-*-linux*)
16697
    SIGNAL_HANDLER=include/powerpc-signal.h
16698
    ;;
16699
 alpha*-*-linux*)
16700
    SIGNAL_HANDLER=include/dwarf2-signal.h
16701
    ;;
16702
 s390*-*-linux*)
16703
    SIGNAL_HANDLER=include/s390-signal.h
16704
    ;;
16705
 x86_64*-*-linux*)
16706
    SIGNAL_HANDLER=include/x86_64-signal.h
16707
    SIGNAL_HANDLER_AUX=include/i386-signal.h
16708
    ;;
16709
 sparc*-*-linux*)
16710
    SIGNAL_HANDLER=include/dwarf2-signal.h
16711
    ;;
16712
 sh*-*-linux*)
16713
    SIGNAL_HANDLER=include/sh-signal.h
16714
    ;;
16715
 *mingw*)
16716
    SIGNAL_HANDLER=include/win32-signal.h
16717
    ;;
16718
 mips*-*-linux*)
16719
    SIGNAL_HANDLER=include/mips-signal.h
16720
    ;;
16721
 *-*-darwin*)
16722
    SIGNAL_HANDLER=include/darwin-signal.h
16723
    ;;
16724
 *)
16725
    SIGNAL_HANDLER=include/default-signal.h
16726
    ;;
16727
esac
16728
 
16729
# If we're using sjlj exceptions, forget what we just learned.
16730
if test "$enable_sjlj_exceptions" = yes; then
16731
   SIGNAL_HANDLER=include/default-signal.h
16732
   SIGNAL_HANDLER_AUX=
16733
fi
16734
 
16735
 
16736
 
16737
if test -z "$SIGNAL_HANDLER_AUX"; then
16738
  SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16739
fi
16740
 
16741
                    ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16742
 
16743
 
16744
if test "${multilib}" = "yes"; then
16745
  multilib_arg="--enable-multilib"
16746
else
16747
  multilib_arg=
16748
fi
16749
 
16750
# See if we support thread-local storage.
16751
 
16752
   # Check whether --enable-tls or --disable-tls was given.
16753
if test "${enable_tls+set}" = set; then
16754
  enableval="$enable_tls"
16755
 
16756
      case "$enableval" in
16757
       yes|no) ;;
16758
       *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16759
echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16760
   { (exit 1); exit 1; }; } ;;
16761
      esac
16762
 
16763
else
16764
  enable_tls=yes
16765
fi;
16766
 
16767
  echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16768
echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16769
if test "${have_tls+set}" = set; then
16770
  echo $ECHO_N "(cached) $ECHO_C" >&6
16771
else
16772
 
16773
    if test "$cross_compiling" = yes; then
16774
  cat >conftest.$ac_ext <<_ACEOF
16775
__thread int foo;
16776
_ACEOF
16777
rm -f conftest.$ac_objext
16778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779
  (eval $ac_compile) 2>conftest.er1
16780
  ac_status=$?
16781
  grep -v '^ *+' conftest.er1 >conftest.err
16782
  rm -f conftest.er1
16783
  cat conftest.err >&5
16784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785
  (exit $ac_status); } &&
16786
         { ac_try='test -z "$ac_c_werror_flag"
16787
                         || test ! -s conftest.err'
16788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789
  (eval $ac_try) 2>&5
16790
  ac_status=$?
16791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792
  (exit $ac_status); }; } &&
16793
         { ac_try='test -s conftest.$ac_objext'
16794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795
  (eval $ac_try) 2>&5
16796
  ac_status=$?
16797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798
  (exit $ac_status); }; }; then
16799
  have_tls=yes
16800
else
16801
  echo "$as_me: failed program was:" >&5
16802
sed 's/^/| /' conftest.$ac_ext >&5
16803
 
16804
have_tls=no
16805
fi
16806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16807
 
16808
else
16809
  cat >conftest.$ac_ext <<_ACEOF
16810
__thread int a; int b; int main() { return a = b; }
16811
_ACEOF
16812
rm -f conftest$ac_exeext
16813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814
  (eval $ac_link) 2>&5
16815
  ac_status=$?
16816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819
  (eval $ac_try) 2>&5
16820
  ac_status=$?
16821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822
  (exit $ac_status); }; }; then
16823
                    save_LDFLAGS="$LDFLAGS"
16824
      LDFLAGS="-static $LDFLAGS"
16825
      if test "$cross_compiling" = yes; then
16826
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16827
See \`config.log' for more details." >&5
16828
echo "$as_me: error: cannot run test program while cross compiling
16829
See \`config.log' for more details." >&2;}
16830
   { (exit 1); exit 1; }; }
16831
else
16832
  cat >conftest.$ac_ext <<_ACEOF
16833
__thread int a; int b; int main() { return a = b; }
16834
_ACEOF
16835
rm -f conftest$ac_exeext
16836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837
  (eval $ac_link) 2>&5
16838
  ac_status=$?
16839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842
  (eval $ac_try) 2>&5
16843
  ac_status=$?
16844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845
  (exit $ac_status); }; }; then
16846
  have_tls=yes
16847
else
16848
  echo "$as_me: program exited with status $ac_status" >&5
16849
echo "$as_me: failed program was:" >&5
16850
sed 's/^/| /' conftest.$ac_ext >&5
16851
 
16852
( exit $ac_status )
16853
have_tls=no
16854
fi
16855
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16856
fi
16857
      LDFLAGS="$save_LDFLAGS"
16858
else
16859
  echo "$as_me: program exited with status $ac_status" >&5
16860
echo "$as_me: failed program was:" >&5
16861
sed 's/^/| /' conftest.$ac_ext >&5
16862
 
16863
( exit $ac_status )
16864
have_tls=no
16865
fi
16866
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16867
fi
16868
fi
16869
echo "$as_me:$LINENO: result: $have_tls" >&5
16870
echo "${ECHO_T}$have_tls" >&6
16871
  if test "$enable_tls $have_tls" = "yes yes"; then
16872
 
16873
cat >>confdefs.h <<\_ACEOF
16874
#define HAVE_TLS 1
16875
_ACEOF
16876
 
16877
  fi
16878
 
16879
 
16880
here=`${PWDCMD-pwd}`
16881
 
16882
 
16883
# We get this from the environment.
16884
 
16885
 
16886
                                                                      ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16887
 
16888
 
16889
          ac_config_commands="$ac_config_commands default"
16890
 
16891
 
16892
cat >confcache <<\_ACEOF
16893
# This file is a shell script that caches the results of configure
16894
# tests run on this system so they can be shared between configure
16895
# scripts and configure runs, see configure's option --config-cache.
16896
# It is not useful on other systems.  If it contains results you don't
16897
# want to keep, you may remove or edit it.
16898
#
16899
# config.status only pays attention to the cache file if you give it
16900
# the --recheck option to rerun configure.
16901
#
16902
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16903
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16904
# following values.
16905
 
16906
_ACEOF
16907
 
16908
# The following way of writing the cache mishandles newlines in values,
16909
# but we know of no workaround that is simple, portable, and efficient.
16910
# So, don't put newlines in cache variables' values.
16911
# Ultrix sh set writes to stderr and can't be redirected directly,
16912
# and sets the high bit in the cache file unless we assign to the vars.
16913
{
16914
  (set) 2>&1 |
16915
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
16916
    *ac_space=\ *)
16917
      # `set' does not quote correctly, so add quotes (double-quote
16918
      # substitution turns \\\\ into \\, and sed turns \\ into \).
16919
      sed -n \
16920
        "s/'/'\\\\''/g;
16921
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16922
      ;;
16923
    *)
16924
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16925
      sed -n \
16926
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16927
      ;;
16928
    esac;
16929
} |
16930
  sed '
16931
     t clear
16932
     : clear
16933
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16934
     t end
16935
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16936
     : end' >>confcache
16937
if diff $cache_file confcache >/dev/null 2>&1; then :; else
16938
  if test -w $cache_file; then
16939
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16940
    cat confcache >$cache_file
16941
  else
16942
    echo "not updating unwritable cache $cache_file"
16943
  fi
16944
fi
16945
rm -f confcache
16946
 
16947
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16948
# Let make expand exec_prefix.
16949
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16950
 
16951
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16952
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16953
# trailing colons and then remove the whole line if VPATH becomes empty
16954
# (actually we leave an empty line to preserve line numbers).
16955
if test "x$srcdir" = x.; then
16956
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
16957
s/:*\$(srcdir):*/:/;
16958
s/:*\${srcdir}:*/:/;
16959
s/:*@srcdir@:*/:/;
16960
s/^\([^=]*=[     ]*\):*/\1/;
16961
s/:*$//;
16962
s/^[^=]*=[       ]*$//;
16963
}'
16964
fi
16965
 
16966
DEFS=-DHAVE_CONFIG_H
16967
 
16968
ac_libobjs=
16969
ac_ltlibobjs=
16970
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16971
  # 1. Remove the extension, and $U if already installed.
16972
  ac_i=`echo "$ac_i" |
16973
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16974
  # 2. Add them.
16975
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16976
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16977
done
16978
LIBOBJS=$ac_libobjs
16979
 
16980
LTLIBOBJS=$ac_ltlibobjs
16981
 
16982
 
16983
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16984
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16985
Usually this means the macro was only invoked conditionally." >&5
16986
echo "$as_me: error: conditional \"AMDEP\" was never defined.
16987
Usually this means the macro was only invoked conditionally." >&2;}
16988
   { (exit 1); exit 1; }; }
16989
fi
16990
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16991
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16992
Usually this means the macro was only invoked conditionally." >&5
16993
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16994
Usually this means the macro was only invoked conditionally." >&2;}
16995
   { (exit 1); exit 1; }; }
16996
fi
16997
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16998
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16999
Usually this means the macro was only invoked conditionally." >&5
17000
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17001
Usually this means the macro was only invoked conditionally." >&2;}
17002
   { (exit 1); exit 1; }; }
17003
fi
17004
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17005
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17006
Usually this means the macro was only invoked conditionally." >&5
17007
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17008
Usually this means the macro was only invoked conditionally." >&2;}
17009
   { (exit 1); exit 1; }; }
17010
fi
17011
if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17012
  { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17013
Usually this means the macro was only invoked conditionally." >&5
17014
echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17015
Usually this means the macro was only invoked conditionally." >&2;}
17016
   { (exit 1); exit 1; }; }
17017
fi
17018
if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17019
  { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17020
Usually this means the macro was only invoked conditionally." >&5
17021
echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17022
Usually this means the macro was only invoked conditionally." >&2;}
17023
   { (exit 1); exit 1; }; }
17024
fi
17025
if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17026
  { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17027
Usually this means the macro was only invoked conditionally." >&5
17028
echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17029
Usually this means the macro was only invoked conditionally." >&2;}
17030
   { (exit 1); exit 1; }; }
17031
fi
17032
if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17033
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17034
Usually this means the macro was only invoked conditionally." >&5
17035
echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17036
Usually this means the macro was only invoked conditionally." >&2;}
17037
   { (exit 1); exit 1; }; }
17038
fi
17039
if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17040
  { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17041
Usually this means the macro was only invoked conditionally." >&5
17042
echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17043
Usually this means the macro was only invoked conditionally." >&2;}
17044
   { (exit 1); exit 1; }; }
17045
fi
17046
if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17047
  { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17048
Usually this means the macro was only invoked conditionally." >&5
17049
echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17050
Usually this means the macro was only invoked conditionally." >&2;}
17051
   { (exit 1); exit 1; }; }
17052
fi
17053
if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17054
  { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17055
Usually this means the macro was only invoked conditionally." >&5
17056
echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17057
Usually this means the macro was only invoked conditionally." >&2;}
17058
   { (exit 1); exit 1; }; }
17059
fi
17060
if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17061
  { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17062
Usually this means the macro was only invoked conditionally." >&5
17063
echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17064
Usually this means the macro was only invoked conditionally." >&2;}
17065
   { (exit 1); exit 1; }; }
17066
fi
17067
if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17068
  { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17069
Usually this means the macro was only invoked conditionally." >&5
17070
echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17071
Usually this means the macro was only invoked conditionally." >&2;}
17072
   { (exit 1); exit 1; }; }
17073
fi
17074
if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17075
  { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17076
Usually this means the macro was only invoked conditionally." >&5
17077
echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17078
Usually this means the macro was only invoked conditionally." >&2;}
17079
   { (exit 1); exit 1; }; }
17080
fi
17081
if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17082
  { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17083
Usually this means the macro was only invoked conditionally." >&5
17084
echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17085
Usually this means the macro was only invoked conditionally." >&2;}
17086
   { (exit 1); exit 1; }; }
17087
fi
17088
if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17089
  { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17090
Usually this means the macro was only invoked conditionally." >&5
17091
echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17092
Usually this means the macro was only invoked conditionally." >&2;}
17093
   { (exit 1); exit 1; }; }
17094
fi
17095
if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17096
  { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17097
Usually this means the macro was only invoked conditionally." >&5
17098
echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17099
Usually this means the macro was only invoked conditionally." >&2;}
17100
   { (exit 1); exit 1; }; }
17101
fi
17102
if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17103
  { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17104
Usually this means the macro was only invoked conditionally." >&5
17105
echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17106
Usually this means the macro was only invoked conditionally." >&2;}
17107
   { (exit 1); exit 1; }; }
17108
fi
17109
if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17110
  { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17111
Usually this means the macro was only invoked conditionally." >&5
17112
echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17113
Usually this means the macro was only invoked conditionally." >&2;}
17114
   { (exit 1); exit 1; }; }
17115
fi
17116
if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17117
  { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17118
Usually this means the macro was only invoked conditionally." >&5
17119
echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17120
Usually this means the macro was only invoked conditionally." >&2;}
17121
   { (exit 1); exit 1; }; }
17122
fi
17123
if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
17124
  { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17125
Usually this means the macro was only invoked conditionally." >&5
17126
echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17127
Usually this means the macro was only invoked conditionally." >&2;}
17128
   { (exit 1); exit 1; }; }
17129
fi
17130
if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17131
  { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17132
Usually this means the macro was only invoked conditionally." >&5
17133
echo "$as_me: error: conditional \"NATIVE\" was never defined.
17134
Usually this means the macro was only invoked conditionally." >&2;}
17135
   { (exit 1); exit 1; }; }
17136
fi
17137
if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17138
  { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17139
Usually this means the macro was only invoked conditionally." >&5
17140
echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17141
Usually this means the macro was only invoked conditionally." >&2;}
17142
   { (exit 1); exit 1; }; }
17143
fi
17144
 
17145
: ${CONFIG_STATUS=./config.status}
17146
ac_clean_files_save=$ac_clean_files
17147
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17148
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17149
echo "$as_me: creating $CONFIG_STATUS" >&6;}
17150
cat >$CONFIG_STATUS <<_ACEOF
17151
#! $SHELL
17152
# Generated by $as_me.
17153
# Run this file to recreate the current configuration.
17154
# Compiler output produced by configure, useful for debugging
17155
# configure, is in config.log if it exists.
17156
 
17157
debug=false
17158
ac_cs_recheck=false
17159
ac_cs_silent=false
17160
SHELL=\${CONFIG_SHELL-$SHELL}
17161
_ACEOF
17162
 
17163
cat >>$CONFIG_STATUS <<\_ACEOF
17164
## --------------------- ##
17165
## M4sh Initialization.  ##
17166
## --------------------- ##
17167
 
17168
# Be Bourne compatible
17169
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17170
  emulate sh
17171
  NULLCMD=:
17172
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17173
  # is contrary to our usage.  Disable this feature.
17174
  alias -g '${1+"$@"}'='"$@"'
17175
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17176
  set -o posix
17177
fi
17178
DUALCASE=1; export DUALCASE # for MKS sh
17179
 
17180
# Support unset when possible.
17181
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17182
  as_unset=unset
17183
else
17184
  as_unset=false
17185
fi
17186
 
17187
 
17188
# Work around bugs in pre-3.0 UWIN ksh.
17189
$as_unset ENV MAIL MAILPATH
17190
PS1='$ '
17191
PS2='> '
17192
PS4='+ '
17193
 
17194
# NLS nuisances.
17195
for as_var in \
17196
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17197
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17198
  LC_TELEPHONE LC_TIME
17199
do
17200
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17201
    eval $as_var=C; export $as_var
17202
  else
17203
    $as_unset $as_var
17204
  fi
17205
done
17206
 
17207
# Required to use basename.
17208
if expr a : '\(a\)' >/dev/null 2>&1; then
17209
  as_expr=expr
17210
else
17211
  as_expr=false
17212
fi
17213
 
17214
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17215
  as_basename=basename
17216
else
17217
  as_basename=false
17218
fi
17219
 
17220
 
17221
# Name of the executable.
17222
as_me=`$as_basename "$0" ||
17223
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17224
         X"$0" : 'X\(//\)$' \| \
17225
         X"$0" : 'X\(/\)$' \| \
17226
         .     : '\(.\)' 2>/dev/null ||
17227
echo X/"$0" |
17228
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17229
          /^X\/\(\/\/\)$/{ s//\1/; q; }
17230
          /^X\/\(\/\).*/{ s//\1/; q; }
17231
          s/.*/./; q'`
17232
 
17233
 
17234
# PATH needs CR, and LINENO needs CR and PATH.
17235
# Avoid depending upon Character Ranges.
17236
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17237
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17238
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17239
as_cr_digits='0123456789'
17240
as_cr_alnum=$as_cr_Letters$as_cr_digits
17241
 
17242
# The user is always right.
17243
if test "${PATH_SEPARATOR+set}" != set; then
17244
  echo "#! /bin/sh" >conf$$.sh
17245
  echo  "exit 0"   >>conf$$.sh
17246
  chmod +x conf$$.sh
17247
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17248
    PATH_SEPARATOR=';'
17249
  else
17250
    PATH_SEPARATOR=:
17251
  fi
17252
  rm -f conf$$.sh
17253
fi
17254
 
17255
 
17256
  as_lineno_1=$LINENO
17257
  as_lineno_2=$LINENO
17258
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17259
  test "x$as_lineno_1" != "x$as_lineno_2" &&
17260
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17261
  # Find who we are.  Look in the path if we contain no path at all
17262
  # relative or not.
17263
  case $0 in
17264
    *[\\/]* ) as_myself=$0 ;;
17265
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17266
for as_dir in $PATH
17267
do
17268
  IFS=$as_save_IFS
17269
  test -z "$as_dir" && as_dir=.
17270
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17271
done
17272
 
17273
       ;;
17274
  esac
17275
  # We did not find ourselves, most probably we were run as `sh COMMAND'
17276
  # in which case we are not to be found in the path.
17277
  if test "x$as_myself" = x; then
17278
    as_myself=$0
17279
  fi
17280
  if test ! -f "$as_myself"; then
17281
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17282
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17283
   { (exit 1); exit 1; }; }
17284
  fi
17285
  case $CONFIG_SHELL in
17286
  '')
17287
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17289
do
17290
  IFS=$as_save_IFS
17291
  test -z "$as_dir" && as_dir=.
17292
  for as_base in sh bash ksh sh5; do
17293
         case $as_dir in
17294
         /*)
17295
           if ("$as_dir/$as_base" -c '
17296
  as_lineno_1=$LINENO
17297
  as_lineno_2=$LINENO
17298
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17299
  test "x$as_lineno_1" != "x$as_lineno_2" &&
17300
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17301
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17302
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17303
             CONFIG_SHELL=$as_dir/$as_base
17304
             export CONFIG_SHELL
17305
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17306
           fi;;
17307
         esac
17308
       done
17309
done
17310
;;
17311
  esac
17312
 
17313
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17314
  # uniformly replaced by the line number.  The first 'sed' inserts a
17315
  # line-number line before each line; the second 'sed' does the real
17316
  # work.  The second script uses 'N' to pair each line-number line
17317
  # with the numbered line, and appends trailing '-' during
17318
  # substitution so that $LINENO is not a special case at line end.
17319
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17320
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17321
  sed '=' <$as_myself |
17322
    sed '
17323
      N
17324
      s,$,-,
17325
      : loop
17326
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17327
      t loop
17328
      s,-$,,
17329
      s,^['$as_cr_digits']*\n,,
17330
    ' >$as_me.lineno &&
17331
  chmod +x $as_me.lineno ||
17332
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17333
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17334
   { (exit 1); exit 1; }; }
17335
 
17336
  # Don't try to exec as it changes $[0], causing all sort of problems
17337
  # (the dirname of $[0] is not the place where we might find the
17338
  # original and so on.  Autoconf is especially sensible to this).
17339
  . ./$as_me.lineno
17340
  # Exit status is that of the last command.
17341
  exit
17342
}
17343
 
17344
 
17345
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17346
  *c*,-n*) ECHO_N= ECHO_C='
17347
' ECHO_T='      ' ;;
17348
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17349
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17350
esac
17351
 
17352
if expr a : '\(a\)' >/dev/null 2>&1; then
17353
  as_expr=expr
17354
else
17355
  as_expr=false
17356
fi
17357
 
17358
rm -f conf$$ conf$$.exe conf$$.file
17359
echo >conf$$.file
17360
if ln -s conf$$.file conf$$ 2>/dev/null; then
17361
  # We could just check for DJGPP; but this test a) works b) is more generic
17362
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17363
  if test -f conf$$.exe; then
17364
    # Don't use ln at all; we don't have any links
17365
    as_ln_s='cp -p'
17366
  else
17367
    as_ln_s='ln -s'
17368
  fi
17369
elif ln conf$$.file conf$$ 2>/dev/null; then
17370
  as_ln_s=ln
17371
else
17372
  as_ln_s='cp -p'
17373
fi
17374
rm -f conf$$ conf$$.exe conf$$.file
17375
 
17376
if mkdir -p . 2>/dev/null; then
17377
  as_mkdir_p=:
17378
else
17379
  test -d ./-p && rmdir ./-p
17380
  as_mkdir_p=false
17381
fi
17382
 
17383
as_executable_p="test -f"
17384
 
17385
# Sed expression to map a string onto a valid CPP name.
17386
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17387
 
17388
# Sed expression to map a string onto a valid variable name.
17389
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17390
 
17391
 
17392
# IFS
17393
# We need space, tab and new line, in precisely that order.
17394
as_nl='
17395
'
17396
IFS="   $as_nl"
17397
 
17398
# CDPATH.
17399
$as_unset CDPATH
17400
 
17401
exec 6>&1
17402
 
17403
# Open the log real soon, to keep \$[0] and so on meaningful, and to
17404
# report actual input values of CONFIG_FILES etc. instead of their
17405
# values after options handling.  Logging --version etc. is OK.
17406
exec 5>>config.log
17407
{
17408
  echo
17409
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17410
## Running $as_me. ##
17411
_ASBOX
17412
} >&5
17413
cat >&5 <<_CSEOF
17414
 
17415
This file was extended by libjava $as_me version-unused, which was
17416
generated by GNU Autoconf 2.59.  Invocation command line was
17417
 
17418
  CONFIG_FILES    = $CONFIG_FILES
17419
  CONFIG_HEADERS  = $CONFIG_HEADERS
17420
  CONFIG_LINKS    = $CONFIG_LINKS
17421
  CONFIG_COMMANDS = $CONFIG_COMMANDS
17422
  $ $0 $@
17423
 
17424
_CSEOF
17425
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17426
echo >&5
17427
_ACEOF
17428
 
17429
# Files that config.status was made for.
17430
if test -n "$ac_config_files"; then
17431
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17432
fi
17433
 
17434
if test -n "$ac_config_headers"; then
17435
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17436
fi
17437
 
17438
if test -n "$ac_config_links"; then
17439
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17440
fi
17441
 
17442
if test -n "$ac_config_commands"; then
17443
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17444
fi
17445
 
17446
cat >>$CONFIG_STATUS <<\_ACEOF
17447
 
17448
ac_cs_usage="\
17449
\`$as_me' instantiates files from templates according to the
17450
current configuration.
17451
 
17452
Usage: $0 [OPTIONS] [FILE]...
17453
 
17454
  -h, --help       print this help, then exit
17455
  -V, --version    print version number, then exit
17456
  -q, --quiet      do not print progress messages
17457
  -d, --debug      don't remove temporary files
17458
      --recheck    update $as_me by reconfiguring in the same conditions
17459
  --file=FILE[:TEMPLATE]
17460
                   instantiate the configuration file FILE
17461
  --header=FILE[:TEMPLATE]
17462
                   instantiate the configuration header FILE
17463
 
17464
Configuration files:
17465
$config_files
17466
 
17467
Configuration headers:
17468
$config_headers
17469
 
17470
Configuration links:
17471
$config_links
17472
 
17473
Configuration commands:
17474
$config_commands
17475
 
17476
Report bugs to ."
17477
_ACEOF
17478
 
17479
cat >>$CONFIG_STATUS <<_ACEOF
17480
ac_cs_version="\\
17481
libjava config.status version-unused
17482
configured by $0, generated by GNU Autoconf 2.59,
17483
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17484
 
17485
Copyright (C) 2003 Free Software Foundation, Inc.
17486
This config.status script is free software; the Free Software Foundation
17487
gives unlimited permission to copy, distribute and modify it."
17488
srcdir=$srcdir
17489
INSTALL="$INSTALL"
17490
_ACEOF
17491
 
17492
cat >>$CONFIG_STATUS <<\_ACEOF
17493
# If no file are specified by the user, then we need to provide default
17494
# value.  By we need to know if files were specified by the user.
17495
ac_need_defaults=:
17496
while test $# != 0
17497
do
17498
  case $1 in
17499
  --*=*)
17500
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
17501
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17502
    ac_shift=:
17503
    ;;
17504
  -*)
17505
    ac_option=$1
17506
    ac_optarg=$2
17507
    ac_shift=shift
17508
    ;;
17509
  *) # This is not an option, so the user has probably given explicit
17510
     # arguments.
17511
     ac_option=$1
17512
     ac_need_defaults=false;;
17513
  esac
17514
 
17515
  case $ac_option in
17516
  # Handling of the options.
17517
_ACEOF
17518
cat >>$CONFIG_STATUS <<\_ACEOF
17519
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17520
    ac_cs_recheck=: ;;
17521
  --version | --vers* | -V )
17522
    echo "$ac_cs_version"; exit 0 ;;
17523
  --he | --h)
17524
    # Conflict between --help and --header
17525
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
17526
Try \`$0 --help' for more information." >&5
17527
echo "$as_me: error: ambiguous option: $1
17528
Try \`$0 --help' for more information." >&2;}
17529
   { (exit 1); exit 1; }; };;
17530
  --help | --hel | -h )
17531
    echo "$ac_cs_usage"; exit 0 ;;
17532
  --debug | --d* | -d )
17533
    debug=: ;;
17534
  --file | --fil | --fi | --f )
17535
    $ac_shift
17536
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17537
    ac_need_defaults=false;;
17538
  --header | --heade | --head | --hea )
17539
    $ac_shift
17540
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17541
    ac_need_defaults=false;;
17542
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17543
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17544
    ac_cs_silent=: ;;
17545
 
17546
  # This is an error.
17547
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17548
Try \`$0 --help' for more information." >&5
17549
echo "$as_me: error: unrecognized option: $1
17550
Try \`$0 --help' for more information." >&2;}
17551
   { (exit 1); exit 1; }; } ;;
17552
 
17553
  *) ac_config_targets="$ac_config_targets $1" ;;
17554
 
17555
  esac
17556
  shift
17557
done
17558
 
17559
ac_configure_extra_args=
17560
 
17561
if $ac_cs_silent; then
17562
  exec 6>/dev/null
17563
  ac_configure_extra_args="$ac_configure_extra_args --silent"
17564
fi
17565
 
17566
_ACEOF
17567
cat >>$CONFIG_STATUS <<_ACEOF
17568
if \$ac_cs_recheck; then
17569
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17570
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17571
fi
17572
 
17573
_ACEOF
17574
 
17575
cat >>$CONFIG_STATUS <<_ACEOF
17576
#
17577
# INIT-COMMANDS section.
17578
#
17579
 
17580
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17581
srcdir=${srcdir}
17582
host=${host}
17583
target=${target}
17584
with_multisubdir=${with_multisubdir}
17585
ac_configure_args="${multilib_arg} ${ac_configure_args}"
17586
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17587
libgcj_basedir=${libgcj_basedir}
17588
CC="${CC}"
17589
CXX="${CXX}"
17590
ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17591
 
17592
 
17593
_ACEOF
17594
 
17595
 
17596
 
17597
cat >>$CONFIG_STATUS <<\_ACEOF
17598
for ac_config_target in $ac_config_targets
17599
do
17600
  case "$ac_config_target" in
17601
  # Handling of arguments.
17602
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17603
  "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17604
  "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17605
  "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17606
  "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17607
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17608
  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17609
  "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17610
  "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17611
  "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17612
  "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17613
  "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17614
  "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17615
  "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17616
  "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17617
  "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17618
  "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17619
  "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17620
  "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17621
  "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17622
  "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17623
  "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17624
  "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17625
  "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17626
  "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17627
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17628
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17629
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17630
  "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17631
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17632
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17633
   { (exit 1); exit 1; }; };;
17634
  esac
17635
done
17636
 
17637
# If the user did not use the arguments to specify the items to instantiate,
17638
# then the envvar interface is used.  Set only those that are not.
17639
# We use the long form for the default assignment because of an extremely
17640
# bizarre bug on SunOS 4.1.3.
17641
if $ac_need_defaults; then
17642
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17643
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17644
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17645
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17646
fi
17647
 
17648
# Have a temporary directory for convenience.  Make it in the build tree
17649
# simply because there is no reason to put it here, and in addition,
17650
# creating and moving files from /tmp can sometimes cause problems.
17651
# Create a temporary directory, and hook for its removal unless debugging.
17652
$debug ||
17653
{
17654
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17655
  trap '{ (exit 1); exit 1; }' 1 2 13 15
17656
}
17657
 
17658
# Create a (secure) tmp directory for tmp files.
17659
 
17660
{
17661
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17662
  test -n "$tmp" && test -d "$tmp"
17663
}  ||
17664
{
17665
  tmp=./confstat$$-$RANDOM
17666
  (umask 077 && mkdir $tmp)
17667
} ||
17668
{
17669
   echo "$me: cannot create a temporary directory in ." >&2
17670
   { (exit 1); exit 1; }
17671
}
17672
 
17673
_ACEOF
17674
 
17675
cat >>$CONFIG_STATUS <<_ACEOF
17676
 
17677
#
17678
# CONFIG_FILES section.
17679
#
17680
 
17681
# No need to generate the scripts if there are no CONFIG_FILES.
17682
# This happens for instance when ./config.status config.h
17683
if test -n "\$CONFIG_FILES"; then
17684
  # Protect against being on the right side of a sed subst in config.status.
17685
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17686
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17687
s,@SHELL@,$SHELL,;t t
17688
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17689
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17690
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17691
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17692
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17693
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17694
s,@exec_prefix@,$exec_prefix,;t t
17695
s,@prefix@,$prefix,;t t
17696
s,@program_transform_name@,$program_transform_name,;t t
17697
s,@bindir@,$bindir,;t t
17698
s,@sbindir@,$sbindir,;t t
17699
s,@libexecdir@,$libexecdir,;t t
17700
s,@datadir@,$datadir,;t t
17701
s,@sysconfdir@,$sysconfdir,;t t
17702
s,@sharedstatedir@,$sharedstatedir,;t t
17703
s,@localstatedir@,$localstatedir,;t t
17704
s,@libdir@,$libdir,;t t
17705
s,@includedir@,$includedir,;t t
17706
s,@oldincludedir@,$oldincludedir,;t t
17707
s,@infodir@,$infodir,;t t
17708
s,@mandir@,$mandir,;t t
17709
s,@build_alias@,$build_alias,;t t
17710
s,@host_alias@,$host_alias,;t t
17711
s,@target_alias@,$target_alias,;t t
17712
s,@DEFS@,$DEFS,;t t
17713
s,@ECHO_C@,$ECHO_C,;t t
17714
s,@ECHO_N@,$ECHO_N,;t t
17715
s,@ECHO_T@,$ECHO_T,;t t
17716
s,@LIBS@,$LIBS,;t t
17717
s,@build@,$build,;t t
17718
s,@build_cpu@,$build_cpu,;t t
17719
s,@build_vendor@,$build_vendor,;t t
17720
s,@build_os@,$build_os,;t t
17721
s,@build_subdir@,$build_subdir,;t t
17722
s,@host_subdir@,$host_subdir,;t t
17723
s,@target_subdir@,$target_subdir,;t t
17724
s,@libgcj_basedir@,$libgcj_basedir,;t t
17725
s,@host@,$host,;t t
17726
s,@host_cpu@,$host_cpu,;t t
17727
s,@host_vendor@,$host_vendor,;t t
17728
s,@host_os@,$host_os,;t t
17729
s,@target@,$target,;t t
17730
s,@target_cpu@,$target_cpu,;t t
17731
s,@target_vendor@,$target_vendor,;t t
17732
s,@target_os@,$target_os,;t t
17733
s,@target_noncanonical@,$target_noncanonical,;t t
17734
s,@LN_S@,$LN_S,;t t
17735
s,@mkinstalldirs@,$mkinstalldirs,;t t
17736
s,@CC@,$CC,;t t
17737
s,@ac_ct_CC@,$ac_ct_CC,;t t
17738
s,@EXEEXT@,$EXEEXT,;t t
17739
s,@OBJEXT@,$OBJEXT,;t t
17740
s,@CXX@,$CXX,;t t
17741
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17742
s,@CFLAGS@,$CFLAGS,;t t
17743
s,@CXXFLAGS@,$CXXFLAGS,;t t
17744
s,@LDFLAGS@,$LDFLAGS,;t t
17745
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17746
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17747
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17748
s,@CYGPATH_W@,$CYGPATH_W,;t t
17749
s,@PACKAGE@,$PACKAGE,;t t
17750
s,@VERSION@,$VERSION,;t t
17751
s,@ACLOCAL@,$ACLOCAL,;t t
17752
s,@AUTOCONF@,$AUTOCONF,;t t
17753
s,@AUTOMAKE@,$AUTOMAKE,;t t
17754
s,@AUTOHEADER@,$AUTOHEADER,;t t
17755
s,@MAKEINFO@,$MAKEINFO,;t t
17756
s,@install_sh@,$install_sh,;t t
17757
s,@STRIP@,$STRIP,;t t
17758
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17759
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17760
s,@mkdir_p@,$mkdir_p,;t t
17761
s,@AWK@,$AWK,;t t
17762
s,@SET_MAKE@,$SET_MAKE,;t t
17763
s,@am__leading_dot@,$am__leading_dot,;t t
17764
s,@AMTAR@,$AMTAR,;t t
17765
s,@am__tar@,$am__tar,;t t
17766
s,@am__untar@,$am__untar,;t t
17767
s,@DEPDIR@,$DEPDIR,;t t
17768
s,@am__include@,$am__include,;t t
17769
s,@am__quote@,$am__quote,;t t
17770
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17771
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17772
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17773
s,@CCDEPMODE@,$CCDEPMODE,;t t
17774
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17775
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17776
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17777
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17778
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17779
s,@AS@,$AS,;t t
17780
s,@ac_ct_AS@,$ac_ct_AS,;t t
17781
s,@AR@,$AR,;t t
17782
s,@ac_ct_AR@,$ac_ct_AR,;t t
17783
s,@RANLIB@,$RANLIB,;t t
17784
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17785
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17786
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17787
s,@MAINT@,$MAINT,;t t
17788
s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17789
s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17790
s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17791
s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17792
s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17793
s,@TOOLKIT@,$TOOLKIT,;t t
17794
s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17795
s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17796
s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17797
s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17798
s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17799
s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17800
s,@GCJH@,$GCJH,;t t
17801
s,@ZIP@,$ZIP,;t t
17802
s,@INCLTDL@,$INCLTDL,;t t
17803
s,@LIBLTDL@,$LIBLTDL,;t t
17804
s,@DIRLTDL@,$DIRLTDL,;t t
17805
s,@LIBTOOL@,$LIBTOOL,;t t
17806
s,@CXXCPP@,$CXXCPP,;t t
17807
s,@CPPFLAGS@,$CPPFLAGS,;t t
17808
s,@GCJ@,$GCJ,;t t
17809
s,@GCJFLAGS@,$GCJFLAGS,;t t
17810
s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17811
s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17812
s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17813
s,@subdirs@,$subdirs,;t t
17814
s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17815
s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17816
s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17817
s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17818
s,@JAVA_HOME@,$JAVA_HOME,;t t
17819
s,@INTERPRETER@,$INTERPRETER,;t t
17820
s,@LIBFFI@,$LIBFFI,;t t
17821
s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17822
s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17823
s,@CPP@,$CPP,;t t
17824
s,@EGREP@,$EGREP,;t t
17825
s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17826
s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17827
s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17828
s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17829
s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17830
s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17831
s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17832
s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17833
s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17834
s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17835
s,@X_CFLAGS@,$X_CFLAGS,;t t
17836
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17837
s,@X_LIBS@,$X_LIBS,;t t
17838
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17839
s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17840
s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17841
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17842
s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17843
s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17844
s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17845
s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17846
s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17847
s,@GCLIBS@,$GCLIBS,;t t
17848
s,@GCINCS@,$GCINCS,;t t
17849
s,@GCDEPS@,$GCDEPS,;t t
17850
s,@GCSPEC@,$GCSPEC,;t t
17851
s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17852
s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17853
s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17854
s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17855
s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17856
s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17857
s,@THREADLIBS@,$THREADLIBS,;t t
17858
s,@THREADINCS@,$THREADINCS,;t t
17859
s,@THREADDEPS@,$THREADDEPS,;t t
17860
s,@THREADSPEC@,$THREADSPEC,;t t
17861
s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17862
s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17863
s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17864
s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17865
s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17866
s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17867
s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17868
s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17869
s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17870
s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17871
s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17872
s,@LIBICONV@,$LIBICONV,;t t
17873
s,@LTLIBICONV@,$LTLIBICONV,;t t
17874
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17875
s,@GTK_LIBS@,$GTK_LIBS,;t t
17876
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17877
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17878
s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17879
s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17880
s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17881
s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17882
s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17883
s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17884
s,@ZLIBS@,$ZLIBS,;t t
17885
s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17886
s,@ZINCS@,$ZINCS,;t t
17887
s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17888
s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17889
s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17890
s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17891
s,@IEEESPEC@,$IEEESPEC,;t t
17892
s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17893
s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17894
s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17895
s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17896
s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17897
s,@toolexecdir@,$toolexecdir,;t t
17898
s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17899
s,@toolexeclibdir@,$toolexeclibdir,;t t
17900
s,@dbexecdir@,$dbexecdir,;t t
17901
s,@GCJVERSION@,$GCJVERSION,;t t
17902
s,@gxx_include_dir@,$gxx_include_dir,;t t
17903
s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17904
s,@ALLOCA@,$ALLOCA,;t t
17905
s,@PERL@,$PERL,;t t
17906
s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17907
s,@here@,$here,;t t
17908
s,@LIBOBJS@,$LIBOBJS,;t t
17909
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17910
CEOF
17911
 
17912
_ACEOF
17913
 
17914
  cat >>$CONFIG_STATUS <<\_ACEOF
17915
  # Split the substitutions into bite-sized pieces for seds with
17916
  # small command number limits, like on Digital OSF/1 and HP-UX.
17917
  ac_max_sed_lines=48
17918
  ac_sed_frag=1 # Number of current file.
17919
  ac_beg=1 # First line for current file.
17920
  ac_end=$ac_max_sed_lines # Line after last line for current file.
17921
  ac_more_lines=:
17922
  ac_sed_cmds=
17923
  while $ac_more_lines; do
17924
    if test $ac_beg -gt 1; then
17925
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17926
    else
17927
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17928
    fi
17929
    if test ! -s $tmp/subs.frag; then
17930
      ac_more_lines=false
17931
    else
17932
      # The purpose of the label and of the branching condition is to
17933
      # speed up the sed processing (if there are no `@' at all, there
17934
      # is no need to browse any of the substitutions).
17935
      # These are the two extra sed commands mentioned above.
17936
      (echo ':t
17937
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17938
      if test -z "$ac_sed_cmds"; then
17939
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17940
      else
17941
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17942
      fi
17943
      ac_sed_frag=`expr $ac_sed_frag + 1`
17944
      ac_beg=$ac_end
17945
      ac_end=`expr $ac_end + $ac_max_sed_lines`
17946
    fi
17947
  done
17948
  if test -z "$ac_sed_cmds"; then
17949
    ac_sed_cmds=cat
17950
  fi
17951
fi # test -n "$CONFIG_FILES"
17952
 
17953
_ACEOF
17954
cat >>$CONFIG_STATUS <<\_ACEOF
17955
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17956
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17957
  case $ac_file in
17958
  - | *:- | *:-:* ) # input from stdin
17959
        cat >$tmp/stdin
17960
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17961
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17962
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17963
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17964
  * )   ac_file_in=$ac_file.in ;;
17965
  esac
17966
 
17967
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17968
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17969
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17970
         X"$ac_file" : 'X\(//\)[^/]' \| \
17971
         X"$ac_file" : 'X\(//\)$' \| \
17972
         X"$ac_file" : 'X\(/\)' \| \
17973
         .     : '\(.\)' 2>/dev/null ||
17974
echo X"$ac_file" |
17975
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17976
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17977
          /^X\(\/\/\)$/{ s//\1/; q; }
17978
          /^X\(\/\).*/{ s//\1/; q; }
17979
          s/.*/./; q'`
17980
  { if $as_mkdir_p; then
17981
    mkdir -p "$ac_dir"
17982
  else
17983
    as_dir="$ac_dir"
17984
    as_dirs=
17985
    while test ! -d "$as_dir"; do
17986
      as_dirs="$as_dir $as_dirs"
17987
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17988
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17989
         X"$as_dir" : 'X\(//\)[^/]' \| \
17990
         X"$as_dir" : 'X\(//\)$' \| \
17991
         X"$as_dir" : 'X\(/\)' \| \
17992
         .     : '\(.\)' 2>/dev/null ||
17993
echo X"$as_dir" |
17994
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17995
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17996
          /^X\(\/\/\)$/{ s//\1/; q; }
17997
          /^X\(\/\).*/{ s//\1/; q; }
17998
          s/.*/./; q'`
17999
    done
18000
    test ! -n "$as_dirs" || mkdir $as_dirs
18001
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18002
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18003
   { (exit 1); exit 1; }; }; }
18004
 
18005
  ac_builddir=.
18006
 
18007
if test "$ac_dir" != .; then
18008
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18009
  # A "../" for each directory in $ac_dir_suffix.
18010
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18011
else
18012
  ac_dir_suffix= ac_top_builddir=
18013
fi
18014
 
18015
case $srcdir in
18016
  .)  # No --srcdir option.  We are building in place.
18017
    ac_srcdir=.
18018
    if test -z "$ac_top_builddir"; then
18019
       ac_top_srcdir=.
18020
    else
18021
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18022
    fi ;;
18023
  [\\/]* | ?:[\\/]* )  # Absolute path.
18024
    ac_srcdir=$srcdir$ac_dir_suffix;
18025
    ac_top_srcdir=$srcdir ;;
18026
  *) # Relative path.
18027
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18028
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18029
esac
18030
 
18031
# Do not use `cd foo && pwd` to compute absolute paths, because
18032
# the directories may not exist.
18033
case `pwd` in
18034
.) ac_abs_builddir="$ac_dir";;
18035
*)
18036
  case "$ac_dir" in
18037
  .) ac_abs_builddir=`pwd`;;
18038
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18039
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
18040
  esac;;
18041
esac
18042
case $ac_abs_builddir in
18043
.) ac_abs_top_builddir=${ac_top_builddir}.;;
18044
*)
18045
  case ${ac_top_builddir}. in
18046
  .) ac_abs_top_builddir=$ac_abs_builddir;;
18047
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18048
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18049
  esac;;
18050
esac
18051
case $ac_abs_builddir in
18052
.) ac_abs_srcdir=$ac_srcdir;;
18053
*)
18054
  case $ac_srcdir in
18055
  .) ac_abs_srcdir=$ac_abs_builddir;;
18056
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18057
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18058
  esac;;
18059
esac
18060
case $ac_abs_builddir in
18061
.) ac_abs_top_srcdir=$ac_top_srcdir;;
18062
*)
18063
  case $ac_top_srcdir in
18064
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
18065
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18066
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18067
  esac;;
18068
esac
18069
 
18070
 
18071
  case $INSTALL in
18072
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18073
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18074
  esac
18075
 
18076
  if test x"$ac_file" != x-; then
18077
    { echo "$as_me:$LINENO: creating $ac_file" >&5
18078
echo "$as_me: creating $ac_file" >&6;}
18079
    rm -f "$ac_file"
18080
  fi
18081
  # Let's still pretend it is `configure' which instantiates (i.e., don't
18082
  # use $as_me), people would be surprised to read:
18083
  #    /* config.h.  Generated by config.status.  */
18084
  if test x"$ac_file" = x-; then
18085
    configure_input=
18086
  else
18087
    configure_input="$ac_file.  "
18088
  fi
18089
  configure_input=$configure_input"Generated from `echo $ac_file_in |
18090
                                     sed 's,.*/,,'` by configure."
18091
 
18092
  # First look for the input files in the build tree, otherwise in the
18093
  # src tree.
18094
  ac_file_inputs=`IFS=:
18095
    for f in $ac_file_in; do
18096
      case $f in
18097
      -) echo $tmp/stdin ;;
18098
      [\\/$]*)
18099
         # Absolute (can't be DOS-style, as IFS=:)
18100
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18101
echo "$as_me: error: cannot find input file: $f" >&2;}
18102
   { (exit 1); exit 1; }; }
18103
         echo "$f";;
18104
      *) # Relative
18105
         if test -f "$f"; then
18106
           # Build tree
18107
           echo "$f"
18108
         elif test -f "$srcdir/$f"; then
18109
           # Source tree
18110
           echo "$srcdir/$f"
18111
         else
18112
           # /dev/null tree
18113
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18114
echo "$as_me: error: cannot find input file: $f" >&2;}
18115
   { (exit 1); exit 1; }; }
18116
         fi;;
18117
      esac
18118
    done` || { (exit 1); exit 1; }
18119
_ACEOF
18120
cat >>$CONFIG_STATUS <<_ACEOF
18121
  sed "$ac_vpsub
18122
$extrasub
18123
_ACEOF
18124
cat >>$CONFIG_STATUS <<\_ACEOF
18125
:t
18126
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18127
s,@configure_input@,$configure_input,;t t
18128
s,@srcdir@,$ac_srcdir,;t t
18129
s,@abs_srcdir@,$ac_abs_srcdir,;t t
18130
s,@top_srcdir@,$ac_top_srcdir,;t t
18131
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18132
s,@builddir@,$ac_builddir,;t t
18133
s,@abs_builddir@,$ac_abs_builddir,;t t
18134
s,@top_builddir@,$ac_top_builddir,;t t
18135
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18136
s,@INSTALL@,$ac_INSTALL,;t t
18137
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18138
  rm -f $tmp/stdin
18139
  if test x"$ac_file" != x-; then
18140
    mv $tmp/out $ac_file
18141
  else
18142
    cat $tmp/out
18143
    rm -f $tmp/out
18144
  fi
18145
 
18146
done
18147
_ACEOF
18148
cat >>$CONFIG_STATUS <<\_ACEOF
18149
 
18150
#
18151
# CONFIG_HEADER section.
18152
#
18153
 
18154
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18155
# NAME is the cpp macro being defined and VALUE is the value it is being given.
18156
#
18157
# ac_d sets the value in "#define NAME VALUE" lines.
18158
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18159
ac_dB='[         ].*$,\1#\2'
18160
ac_dC=' '
18161
ac_dD=',;t'
18162
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18163
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18164
ac_uB='$,\1#\2define\3'
18165
ac_uC=' '
18166
ac_uD=',;t'
18167
 
18168
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18169
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18170
  case $ac_file in
18171
  - | *:- | *:-:* ) # input from stdin
18172
        cat >$tmp/stdin
18173
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18174
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18175
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18176
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18177
  * )   ac_file_in=$ac_file.in ;;
18178
  esac
18179
 
18180
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18181
echo "$as_me: creating $ac_file" >&6;}
18182
 
18183
  # First look for the input files in the build tree, otherwise in the
18184
  # src tree.
18185
  ac_file_inputs=`IFS=:
18186
    for f in $ac_file_in; do
18187
      case $f in
18188
      -) echo $tmp/stdin ;;
18189
      [\\/$]*)
18190
         # Absolute (can't be DOS-style, as IFS=:)
18191
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18192
echo "$as_me: error: cannot find input file: $f" >&2;}
18193
   { (exit 1); exit 1; }; }
18194
         # Do quote $f, to prevent DOS paths from being IFS'd.
18195
         echo "$f";;
18196
      *) # Relative
18197
         if test -f "$f"; then
18198
           # Build tree
18199
           echo "$f"
18200
         elif test -f "$srcdir/$f"; then
18201
           # Source tree
18202
           echo "$srcdir/$f"
18203
         else
18204
           # /dev/null tree
18205
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18206
echo "$as_me: error: cannot find input file: $f" >&2;}
18207
   { (exit 1); exit 1; }; }
18208
         fi;;
18209
      esac
18210
    done` || { (exit 1); exit 1; }
18211
  # Remove the trailing spaces.
18212
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18213
 
18214
_ACEOF
18215
 
18216
# Transform confdefs.h into two sed scripts, `conftest.defines' and
18217
# `conftest.undefs', that substitutes the proper values into
18218
# config.h.in to produce config.h.  The first handles `#define'
18219
# templates, and the second `#undef' templates.
18220
# And first: Protect against being on the right side of a sed subst in
18221
# config.status.  Protect against being in an unquoted here document
18222
# in config.status.
18223
rm -f conftest.defines conftest.undefs
18224
# Using a here document instead of a string reduces the quoting nightmare.
18225
# Putting comments in sed scripts is not portable.
18226
#
18227
# `end' is used to avoid that the second main sed command (meant for
18228
# 0-ary CPP macros) applies to n-ary macro definitions.
18229
# See the Autoconf documentation for `clear'.
18230
cat >confdef2sed.sed <<\_ACEOF
18231
s/[\\&,]/\\&/g
18232
s,[\\$`],\\&,g
18233
t clear
18234
: clear
18235
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18236
t end
18237
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18238
: end
18239
_ACEOF
18240
# If some macros were called several times there might be several times
18241
# the same #defines, which is useless.  Nevertheless, we may not want to
18242
# sort them, since we want the *last* AC-DEFINE to be honored.
18243
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18244
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18245
rm -f confdef2sed.sed
18246
 
18247
# This sed command replaces #undef with comments.  This is necessary, for
18248
# example, in the case of _POSIX_SOURCE, which is predefined and required
18249
# on some systems where configure will not decide to define it.
18250
cat >>conftest.undefs <<\_ACEOF
18251
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18252
_ACEOF
18253
 
18254
# Break up conftest.defines because some shells have a limit on the size
18255
# of here documents, and old seds have small limits too (100 cmds).
18256
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18257
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18258
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18259
echo '  :' >>$CONFIG_STATUS
18260
rm -f conftest.tail
18261
while grep . conftest.defines >/dev/null
18262
do
18263
  # Write a limited-size here document to $tmp/defines.sed.
18264
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
18265
  # Speed up: don't consider the non `#define' lines.
18266
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18267
  # Work around the forget-to-reset-the-flag bug.
18268
  echo 't clr' >>$CONFIG_STATUS
18269
  echo ': clr' >>$CONFIG_STATUS
18270
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18271
  echo 'CEOF
18272
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
18273
  rm -f $tmp/in
18274
  mv $tmp/out $tmp/in
18275
' >>$CONFIG_STATUS
18276
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18277
  rm -f conftest.defines
18278
  mv conftest.tail conftest.defines
18279
done
18280
rm -f conftest.defines
18281
echo '  fi # grep' >>$CONFIG_STATUS
18282
echo >>$CONFIG_STATUS
18283
 
18284
# Break up conftest.undefs because some shells have a limit on the size
18285
# of here documents, and old seds have small limits too (100 cmds).
18286
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18287
rm -f conftest.tail
18288
while grep . conftest.undefs >/dev/null
18289
do
18290
  # Write a limited-size here document to $tmp/undefs.sed.
18291
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
18292
  # Speed up: don't consider the non `#undef'
18293
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18294
  # Work around the forget-to-reset-the-flag bug.
18295
  echo 't clr' >>$CONFIG_STATUS
18296
  echo ': clr' >>$CONFIG_STATUS
18297
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18298
  echo 'CEOF
18299
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18300
  rm -f $tmp/in
18301
  mv $tmp/out $tmp/in
18302
' >>$CONFIG_STATUS
18303
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18304
  rm -f conftest.undefs
18305
  mv conftest.tail conftest.undefs
18306
done
18307
rm -f conftest.undefs
18308
 
18309
cat >>$CONFIG_STATUS <<\_ACEOF
18310
  # Let's still pretend it is `configure' which instantiates (i.e., don't
18311
  # use $as_me), people would be surprised to read:
18312
  #    /* config.h.  Generated by config.status.  */
18313
  if test x"$ac_file" = x-; then
18314
    echo "/* Generated by configure.  */" >$tmp/config.h
18315
  else
18316
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18317
  fi
18318
  cat $tmp/in >>$tmp/config.h
18319
  rm -f $tmp/in
18320
  if test x"$ac_file" != x-; then
18321
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18322
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18323
echo "$as_me: $ac_file is unchanged" >&6;}
18324
    else
18325
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18326
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327
         X"$ac_file" : 'X\(//\)[^/]' \| \
18328
         X"$ac_file" : 'X\(//\)$' \| \
18329
         X"$ac_file" : 'X\(/\)' \| \
18330
         .     : '\(.\)' 2>/dev/null ||
18331
echo X"$ac_file" |
18332
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18333
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18334
          /^X\(\/\/\)$/{ s//\1/; q; }
18335
          /^X\(\/\).*/{ s//\1/; q; }
18336
          s/.*/./; q'`
18337
      { if $as_mkdir_p; then
18338
    mkdir -p "$ac_dir"
18339
  else
18340
    as_dir="$ac_dir"
18341
    as_dirs=
18342
    while test ! -d "$as_dir"; do
18343
      as_dirs="$as_dir $as_dirs"
18344
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18345
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18346
         X"$as_dir" : 'X\(//\)[^/]' \| \
18347
         X"$as_dir" : 'X\(//\)$' \| \
18348
         X"$as_dir" : 'X\(/\)' \| \
18349
         .     : '\(.\)' 2>/dev/null ||
18350
echo X"$as_dir" |
18351
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18352
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18353
          /^X\(\/\/\)$/{ s//\1/; q; }
18354
          /^X\(\/\).*/{ s//\1/; q; }
18355
          s/.*/./; q'`
18356
    done
18357
    test ! -n "$as_dirs" || mkdir $as_dirs
18358
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18359
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18360
   { (exit 1); exit 1; }; }; }
18361
 
18362
      rm -f $ac_file
18363
      mv $tmp/config.h $ac_file
18364
    fi
18365
  else
18366
    cat $tmp/config.h
18367
    rm -f $tmp/config.h
18368
  fi
18369
# Compute $ac_file's index in $config_headers.
18370
_am_stamp_count=1
18371
for _am_header in $config_headers :; do
18372
  case $_am_header in
18373
    $ac_file | $ac_file:* )
18374
      break ;;
18375
    * )
18376
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18377
  esac
18378
done
18379
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18380
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381
         X$ac_file : 'X\(//\)[^/]' \| \
18382
         X$ac_file : 'X\(//\)$' \| \
18383
         X$ac_file : 'X\(/\)' \| \
18384
         .     : '\(.\)' 2>/dev/null ||
18385
echo X$ac_file |
18386
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388
          /^X\(\/\/\)$/{ s//\1/; q; }
18389
          /^X\(\/\).*/{ s//\1/; q; }
18390
          s/.*/./; q'`/stamp-h$_am_stamp_count
18391
done
18392
_ACEOF
18393
cat >>$CONFIG_STATUS <<\_ACEOF
18394
 
18395
#
18396
# CONFIG_LINKS section.
18397
#
18398
 
18399
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18400
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18401
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18402
 
18403
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18404
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18405
 
18406
  if test ! -r $srcdir/$ac_source; then
18407
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18408
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18409
   { (exit 1); exit 1; }; }
18410
  fi
18411
  rm -f $ac_dest
18412
 
18413
  # Make relative symlinks.
18414
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18415
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18416
         X"$ac_dest" : 'X\(//\)[^/]' \| \
18417
         X"$ac_dest" : 'X\(//\)$' \| \
18418
         X"$ac_dest" : 'X\(/\)' \| \
18419
         .     : '\(.\)' 2>/dev/null ||
18420
echo X"$ac_dest" |
18421
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18422
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18423
          /^X\(\/\/\)$/{ s//\1/; q; }
18424
          /^X\(\/\).*/{ s//\1/; q; }
18425
          s/.*/./; q'`
18426
  { if $as_mkdir_p; then
18427
    mkdir -p "$ac_dest_dir"
18428
  else
18429
    as_dir="$ac_dest_dir"
18430
    as_dirs=
18431
    while test ! -d "$as_dir"; do
18432
      as_dirs="$as_dir $as_dirs"
18433
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18434
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18435
         X"$as_dir" : 'X\(//\)[^/]' \| \
18436
         X"$as_dir" : 'X\(//\)$' \| \
18437
         X"$as_dir" : 'X\(/\)' \| \
18438
         .     : '\(.\)' 2>/dev/null ||
18439
echo X"$as_dir" |
18440
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18441
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18442
          /^X\(\/\/\)$/{ s//\1/; q; }
18443
          /^X\(\/\).*/{ s//\1/; q; }
18444
          s/.*/./; q'`
18445
    done
18446
    test ! -n "$as_dirs" || mkdir $as_dirs
18447
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18448
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18449
   { (exit 1); exit 1; }; }; }
18450
 
18451
  ac_builddir=.
18452
 
18453
if test "$ac_dest_dir" != .; then
18454
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18455
  # A "../" for each directory in $ac_dir_suffix.
18456
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18457
else
18458
  ac_dir_suffix= ac_top_builddir=
18459
fi
18460
 
18461
case $srcdir in
18462
  .)  # No --srcdir option.  We are building in place.
18463
    ac_srcdir=.
18464
    if test -z "$ac_top_builddir"; then
18465
       ac_top_srcdir=.
18466
    else
18467
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18468
    fi ;;
18469
  [\\/]* | ?:[\\/]* )  # Absolute path.
18470
    ac_srcdir=$srcdir$ac_dir_suffix;
18471
    ac_top_srcdir=$srcdir ;;
18472
  *) # Relative path.
18473
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18474
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18475
esac
18476
 
18477
# Do not use `cd foo && pwd` to compute absolute paths, because
18478
# the directories may not exist.
18479
case `pwd` in
18480
.) ac_abs_builddir="$ac_dest_dir";;
18481
*)
18482
  case "$ac_dest_dir" in
18483
  .) ac_abs_builddir=`pwd`;;
18484
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18485
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18486
  esac;;
18487
esac
18488
case $ac_abs_builddir in
18489
.) ac_abs_top_builddir=${ac_top_builddir}.;;
18490
*)
18491
  case ${ac_top_builddir}. in
18492
  .) ac_abs_top_builddir=$ac_abs_builddir;;
18493
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18494
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18495
  esac;;
18496
esac
18497
case $ac_abs_builddir in
18498
.) ac_abs_srcdir=$ac_srcdir;;
18499
*)
18500
  case $ac_srcdir in
18501
  .) ac_abs_srcdir=$ac_abs_builddir;;
18502
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18503
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18504
  esac;;
18505
esac
18506
case $ac_abs_builddir in
18507
.) ac_abs_top_srcdir=$ac_top_srcdir;;
18508
*)
18509
  case $ac_top_srcdir in
18510
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
18511
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18512
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18513
  esac;;
18514
esac
18515
 
18516
 
18517
  case $srcdir in
18518
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18519
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18520
  esac
18521
 
18522
  # Try a symlink, then a hard link, then a copy.
18523
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18524
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18525
    cp -p $srcdir/$ac_source $ac_dest ||
18526
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18527
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18528
   { (exit 1); exit 1; }; }
18529
done
18530
_ACEOF
18531
cat >>$CONFIG_STATUS <<\_ACEOF
18532
 
18533
#
18534
# CONFIG_COMMANDS section.
18535
#
18536
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18537
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18538
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18539
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18540
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18541
         X"$ac_dest" : 'X\(//\)[^/]' \| \
18542
         X"$ac_dest" : 'X\(//\)$' \| \
18543
         X"$ac_dest" : 'X\(/\)' \| \
18544
         .     : '\(.\)' 2>/dev/null ||
18545
echo X"$ac_dest" |
18546
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18547
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18548
          /^X\(\/\/\)$/{ s//\1/; q; }
18549
          /^X\(\/\).*/{ s//\1/; q; }
18550
          s/.*/./; q'`
18551
  { if $as_mkdir_p; then
18552
    mkdir -p "$ac_dir"
18553
  else
18554
    as_dir="$ac_dir"
18555
    as_dirs=
18556
    while test ! -d "$as_dir"; do
18557
      as_dirs="$as_dir $as_dirs"
18558
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18559
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560
         X"$as_dir" : 'X\(//\)[^/]' \| \
18561
         X"$as_dir" : 'X\(//\)$' \| \
18562
         X"$as_dir" : 'X\(/\)' \| \
18563
         .     : '\(.\)' 2>/dev/null ||
18564
echo X"$as_dir" |
18565
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18566
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18567
          /^X\(\/\/\)$/{ s//\1/; q; }
18568
          /^X\(\/\).*/{ s//\1/; q; }
18569
          s/.*/./; q'`
18570
    done
18571
    test ! -n "$as_dirs" || mkdir $as_dirs
18572
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18573
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18574
   { (exit 1); exit 1; }; }; }
18575
 
18576
  ac_builddir=.
18577
 
18578
if test "$ac_dir" != .; then
18579
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18580
  # A "../" for each directory in $ac_dir_suffix.
18581
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18582
else
18583
  ac_dir_suffix= ac_top_builddir=
18584
fi
18585
 
18586
case $srcdir in
18587
  .)  # No --srcdir option.  We are building in place.
18588
    ac_srcdir=.
18589
    if test -z "$ac_top_builddir"; then
18590
       ac_top_srcdir=.
18591
    else
18592
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18593
    fi ;;
18594
  [\\/]* | ?:[\\/]* )  # Absolute path.
18595
    ac_srcdir=$srcdir$ac_dir_suffix;
18596
    ac_top_srcdir=$srcdir ;;
18597
  *) # Relative path.
18598
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18599
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18600
esac
18601
 
18602
# Do not use `cd foo && pwd` to compute absolute paths, because
18603
# the directories may not exist.
18604
case `pwd` in
18605
.) ac_abs_builddir="$ac_dir";;
18606
*)
18607
  case "$ac_dir" in
18608
  .) ac_abs_builddir=`pwd`;;
18609
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18610
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
18611
  esac;;
18612
esac
18613
case $ac_abs_builddir in
18614
.) ac_abs_top_builddir=${ac_top_builddir}.;;
18615
*)
18616
  case ${ac_top_builddir}. in
18617
  .) ac_abs_top_builddir=$ac_abs_builddir;;
18618
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18619
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18620
  esac;;
18621
esac
18622
case $ac_abs_builddir in
18623
.) ac_abs_srcdir=$ac_srcdir;;
18624
*)
18625
  case $ac_srcdir in
18626
  .) ac_abs_srcdir=$ac_abs_builddir;;
18627
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18628
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18629
  esac;;
18630
esac
18631
case $ac_abs_builddir in
18632
.) ac_abs_top_srcdir=$ac_top_srcdir;;
18633
*)
18634
  case $ac_top_srcdir in
18635
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
18636
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18637
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18638
  esac;;
18639
esac
18640
 
18641
 
18642
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18643
echo "$as_me: executing $ac_dest commands" >&6;}
18644
  case $ac_dest in
18645
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18646
  # Strip MF so we end up with the name of the file.
18647
  mf=`echo "$mf" | sed -e 's/:.*$//'`
18648
  # Check whether this is an Automake generated Makefile or not.
18649
  # We used to match only the files named `Makefile.in', but
18650
  # some people rename them; so instead we look at the file content.
18651
  # Grep'ing the first line is not enough: some people post-process
18652
  # each Makefile.in and add a new line on top of each file to say so.
18653
  # So let's grep whole file.
18654
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18655
    dirpart=`(dirname "$mf") 2>/dev/null ||
18656
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18657
         X"$mf" : 'X\(//\)[^/]' \| \
18658
         X"$mf" : 'X\(//\)$' \| \
18659
         X"$mf" : 'X\(/\)' \| \
18660
         .     : '\(.\)' 2>/dev/null ||
18661
echo X"$mf" |
18662
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18663
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18664
          /^X\(\/\/\)$/{ s//\1/; q; }
18665
          /^X\(\/\).*/{ s//\1/; q; }
18666
          s/.*/./; q'`
18667
  else
18668
    continue
18669
  fi
18670
  # Extract the definition of DEPDIR, am__include, and am__quote
18671
  # from the Makefile without running `make'.
18672
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18673
  test -z "$DEPDIR" && continue
18674
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
18675
  test -z "am__include" && continue
18676
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18677
  # When using ansi2knr, U may be empty or an underscore; expand it
18678
  U=`sed -n 's/^U = //p' < "$mf"`
18679
  # Find all dependency output files, they are included files with
18680
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
18681
  # simplest approach to changing $(DEPDIR) to its actual value in the
18682
  # expansion.
18683
  for file in `sed -n "
18684
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18685
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18686
    # Make sure the directory exists.
18687
    test -f "$dirpart/$file" && continue
18688
    fdir=`(dirname "$file") 2>/dev/null ||
18689
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690
         X"$file" : 'X\(//\)[^/]' \| \
18691
         X"$file" : 'X\(//\)$' \| \
18692
         X"$file" : 'X\(/\)' \| \
18693
         .     : '\(.\)' 2>/dev/null ||
18694
echo X"$file" |
18695
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18696
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18697
          /^X\(\/\/\)$/{ s//\1/; q; }
18698
          /^X\(\/\).*/{ s//\1/; q; }
18699
          s/.*/./; q'`
18700
    { if $as_mkdir_p; then
18701
    mkdir -p $dirpart/$fdir
18702
  else
18703
    as_dir=$dirpart/$fdir
18704
    as_dirs=
18705
    while test ! -d "$as_dir"; do
18706
      as_dirs="$as_dir $as_dirs"
18707
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18708
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709
         X"$as_dir" : 'X\(//\)[^/]' \| \
18710
         X"$as_dir" : 'X\(//\)$' \| \
18711
         X"$as_dir" : 'X\(/\)' \| \
18712
         .     : '\(.\)' 2>/dev/null ||
18713
echo X"$as_dir" |
18714
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18715
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18716
          /^X\(\/\/\)$/{ s//\1/; q; }
18717
          /^X\(\/\).*/{ s//\1/; q; }
18718
          s/.*/./; q'`
18719
    done
18720
    test ! -n "$as_dirs" || mkdir $as_dirs
18721
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18722
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18723
   { (exit 1); exit 1; }; }; }
18724
 
18725
    # echo "creating $dirpart/$file"
18726
    echo '# dummy' > "$dirpart/$file"
18727
  done
18728
done
18729
 ;;
18730
    default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18731
case " $CONFIG_FILES " in
18732
 *" Makefile "*)
18733
   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18734
   ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18735
   ;;
18736
esac
18737
for ac_multi_file in $CONFIG_FILES; do
18738
  case $ac_multi_file in
18739
  */Makefile)
18740
    grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18741
  esac
18742
done
18743
 ;;
18744
  esac
18745
done
18746
_ACEOF
18747
 
18748
cat >>$CONFIG_STATUS <<\_ACEOF
18749
 
18750
{ (exit 0); exit 0; }
18751
_ACEOF
18752
chmod +x $CONFIG_STATUS
18753
ac_clean_files=$ac_clean_files_save
18754
 
18755
 
18756
# configure is writing to config.log, and then calls config.status.
18757
# config.status does its own redirection, appending to config.log.
18758
# Unfortunately, on DOS this fails, as config.log is still kept open
18759
# by configure, so config.status won't be able to write to it; its
18760
# output is simply discarded.  So we exec the FD to /dev/null,
18761
# effectively closing config.log, so it can be properly (re)opened and
18762
# appended to by config.status.  When coming back to configure, we
18763
# need to make the FD available again.
18764
if test "$no_create" != yes; then
18765
  ac_cs_success=:
18766
  ac_config_status_args=
18767
  test "$silent" = yes &&
18768
    ac_config_status_args="$ac_config_status_args --quiet"
18769
  exec 5>/dev/null
18770
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18771
  exec 5>>config.log
18772
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18773
  # would make configure fail if this is the last instruction.
18774
  $ac_cs_success || { (exit 1); exit 1; }
18775
fi
18776
 
18777
#
18778
# CONFIG_SUBDIRS section.
18779
#
18780
if test "$no_recursion" != yes; then
18781
 
18782
  # Remove --cache-file and --srcdir arguments so they do not pile up.
18783
  ac_sub_configure_args=
18784
  ac_prev=
18785
  for ac_arg in $ac_configure_args; do
18786
    if test -n "$ac_prev"; then
18787
      ac_prev=
18788
      continue
18789
    fi
18790
    case $ac_arg in
18791
    -cache-file | --cache-file | --cache-fil | --cache-fi \
18792
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18793
      ac_prev=cache_file ;;
18794
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18795
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18796
    | --c=*)
18797
      ;;
18798
    --config-cache | -C)
18799
      ;;
18800
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18801
      ac_prev=srcdir ;;
18802
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18803
      ;;
18804
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18805
      ac_prev=prefix ;;
18806
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18807
      ;;
18808
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18809
    esac
18810
  done
18811
 
18812
  # Always prepend --prefix to ensure using the same prefix
18813
  # in subdir configurations.
18814
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18815
 
18816
  ac_popdir=`pwd`
18817
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18818
 
18819
    # Do not complain, so a configure script can configure whichever
18820
    # parts of a large source tree are present.
18821
    test -d $srcdir/$ac_dir || continue
18822
 
18823
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18824
echo "$as_me: configuring in $ac_dir" >&6;}
18825
    { if $as_mkdir_p; then
18826
    mkdir -p "$ac_dir"
18827
  else
18828
    as_dir="$ac_dir"
18829
    as_dirs=
18830
    while test ! -d "$as_dir"; do
18831
      as_dirs="$as_dir $as_dirs"
18832
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18833
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18834
         X"$as_dir" : 'X\(//\)[^/]' \| \
18835
         X"$as_dir" : 'X\(//\)$' \| \
18836
         X"$as_dir" : 'X\(/\)' \| \
18837
         .     : '\(.\)' 2>/dev/null ||
18838
echo X"$as_dir" |
18839
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18840
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18841
          /^X\(\/\/\)$/{ s//\1/; q; }
18842
          /^X\(\/\).*/{ s//\1/; q; }
18843
          s/.*/./; q'`
18844
    done
18845
    test ! -n "$as_dirs" || mkdir $as_dirs
18846
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18847
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18848
   { (exit 1); exit 1; }; }; }
18849
 
18850
    ac_builddir=.
18851
 
18852
if test "$ac_dir" != .; then
18853
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18854
  # A "../" for each directory in $ac_dir_suffix.
18855
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18856
else
18857
  ac_dir_suffix= ac_top_builddir=
18858
fi
18859
 
18860
case $srcdir in
18861
  .)  # No --srcdir option.  We are building in place.
18862
    ac_srcdir=.
18863
    if test -z "$ac_top_builddir"; then
18864
       ac_top_srcdir=.
18865
    else
18866
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18867
    fi ;;
18868
  [\\/]* | ?:[\\/]* )  # Absolute path.
18869
    ac_srcdir=$srcdir$ac_dir_suffix;
18870
    ac_top_srcdir=$srcdir ;;
18871
  *) # Relative path.
18872
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18873
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18874
esac
18875
 
18876
# Do not use `cd foo && pwd` to compute absolute paths, because
18877
# the directories may not exist.
18878
case `pwd` in
18879
.) ac_abs_builddir="$ac_dir";;
18880
*)
18881
  case "$ac_dir" in
18882
  .) ac_abs_builddir=`pwd`;;
18883
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18884
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
18885
  esac;;
18886
esac
18887
case $ac_abs_builddir in
18888
.) ac_abs_top_builddir=${ac_top_builddir}.;;
18889
*)
18890
  case ${ac_top_builddir}. in
18891
  .) ac_abs_top_builddir=$ac_abs_builddir;;
18892
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18893
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18894
  esac;;
18895
esac
18896
case $ac_abs_builddir in
18897
.) ac_abs_srcdir=$ac_srcdir;;
18898
*)
18899
  case $ac_srcdir in
18900
  .) ac_abs_srcdir=$ac_abs_builddir;;
18901
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18902
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18903
  esac;;
18904
esac
18905
case $ac_abs_builddir in
18906
.) ac_abs_top_srcdir=$ac_top_srcdir;;
18907
*)
18908
  case $ac_top_srcdir in
18909
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
18910
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18911
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18912
  esac;;
18913
esac
18914
 
18915
 
18916
    cd $ac_dir
18917
 
18918
    # Check for guested configure; otherwise get Cygnus style configure.
18919
    if test -f $ac_srcdir/configure.gnu; then
18920
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18921
    elif test -f $ac_srcdir/configure; then
18922
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18923
    elif test -f $ac_srcdir/configure.in; then
18924
      ac_sub_configure=$ac_configure
18925
    else
18926
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18927
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18928
      ac_sub_configure=
18929
    fi
18930
 
18931
    # The recursion is here.
18932
    if test -n "$ac_sub_configure"; then
18933
      # Make the cache file name correct relative to the subdirectory.
18934
      case $cache_file in
18935
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18936
      *) # Relative path.
18937
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18938
      esac
18939
 
18940
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18941
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18942
      # The eval makes quoting arguments work.
18943
      eval $ac_sub_configure $ac_sub_configure_args \
18944
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18945
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18946
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18947
   { (exit 1); exit 1; }; }
18948
    fi
18949
 
18950
    cd $ac_popdir
18951
  done
18952
fi
18953
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.