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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [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 GNU Classpath 0.20-pre.
4
#
5
# Report bugs to .
6
#
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization.  ##
12
## --------------------- ##
13
 
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
  set -o posix
23
fi
24
DUALCASE=1; export DUALCASE # for MKS sh
25
 
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
  as_unset=unset
29
else
30
  as_unset=false
31
fi
32
 
33
 
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
36
PS1='$ '
37
PS2='> '
38
PS4='+ '
39
 
40
# NLS nuisances.
41
for as_var in \
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
  LC_TELEPHONE LC_TIME
45
do
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
    eval $as_var=C; export $as_var
48
  else
49
    $as_unset $as_var
50
  fi
51
done
52
 
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
55
  as_expr=expr
56
else
57
  as_expr=false
58
fi
59
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
  as_basename=basename
62
else
63
  as_basename=false
64
fi
65
 
66
 
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
         X"$0" : 'X\(//\)$' \| \
71
         X"$0" : 'X\(/\)$' \| \
72
         .     : '\(.\)' 2>/dev/null ||
73
echo X/"$0" |
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
          /^X\/\(\/\).*/{ s//\1/; q; }
77
          s/.*/./; q'`
78
 
79
 
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
  echo "#! /bin/sh" >conf$$.sh
91
  echo  "exit 0"   >>conf$$.sh
92
  chmod +x conf$$.sh
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
    PATH_SEPARATOR=';'
95
  else
96
    PATH_SEPARATOR=:
97
  fi
98
  rm -f conf$$.sh
99
fi
100
 
101
 
102
  as_lineno_1=$LINENO
103
  as_lineno_2=$LINENO
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
  # Find who we are.  Look in the path if we contain no path at all
108
  # relative or not.
109
  case $0 in
110
    *[\\/]* ) as_myself=$0 ;;
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
for as_dir in $PATH
113
do
114
  IFS=$as_save_IFS
115
  test -z "$as_dir" && as_dir=.
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
done
118
 
119
       ;;
120
  esac
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
  # in which case we are not to be found in the path.
123
  if test "x$as_myself" = x; then
124
    as_myself=$0
125
  fi
126
  if test ! -f "$as_myself"; then
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
   { (exit 1); exit 1; }; }
129
  fi
130
  case $CONFIG_SHELL in
131
  '')
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
do
135
  IFS=$as_save_IFS
136
  test -z "$as_dir" && as_dir=.
137
  for as_base in sh bash ksh sh5; do
138
         case $as_dir in
139
         /*)
140
           if ("$as_dir/$as_base" -c '
141
  as_lineno_1=$LINENO
142
  as_lineno_2=$LINENO
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
             CONFIG_SHELL=$as_dir/$as_base
149
             export CONFIG_SHELL
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
           fi;;
152
         esac
153
       done
154
done
155
;;
156
  esac
157
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
  # line-number line before each line; the second 'sed' does the real
161
  # work.  The second script uses 'N' to pair each line-number line
162
  # with the numbered line, and appends trailing '-' during
163
  # substitution so that $LINENO is not a special case at line end.
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
  sed '=' <$as_myself |
167
    sed '
168
      N
169
      s,$,-,
170
      : loop
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
      t loop
173
      s,-$,,
174
      s,^['$as_cr_digits']*\n,,
175
    ' >$as_me.lineno &&
176
  chmod +x $as_me.lineno ||
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
   { (exit 1); exit 1; }; }
179
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
181
  # (the dirname of $[0] is not the place where we might find the
182
  # original and so on.  Autoconf is especially sensible to this).
183
  . ./$as_me.lineno
184
  # Exit status is that of the last command.
185
  exit
186
}
187
 
188
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
  *c*,-n*) ECHO_N= ECHO_C='
191
' ECHO_T='      ' ;;
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
esac
195
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
197
  as_expr=expr
198
else
199
  as_expr=false
200
fi
201
 
202
rm -f conf$$ conf$$.exe conf$$.file
203
echo >conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
  # We could just check for DJGPP; but this test a) works b) is more generic
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
  if test -f conf$$.exe; then
208
    # Don't use ln at all; we don't have any links
209
    as_ln_s='cp -p'
210
  else
211
    as_ln_s='ln -s'
212
  fi
213
elif ln conf$$.file conf$$ 2>/dev/null; then
214
  as_ln_s=ln
215
else
216
  as_ln_s='cp -p'
217
fi
218
rm -f conf$$ conf$$.exe conf$$.file
219
 
220
if mkdir -p . 2>/dev/null; then
221
  as_mkdir_p=:
222
else
223
  test -d ./-p && rmdir ./-p
224
  as_mkdir_p=false
225
fi
226
 
227
as_executable_p="test -f"
228
 
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
 
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
 
235
 
236
# IFS
237
# We need space, tab and new line, in precisely that order.
238
as_nl='
239
'
240
IFS="   $as_nl"
241
 
242
# CDPATH.
243
$as_unset CDPATH
244
 
245
 
246
# Name of the host.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
 
251
exec 6>&1
252
 
253
#
254
# Initializations.
255
#
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
258
cross_compiling=no
259
subdirs=
260
MFLAGS=
261
MAKEFLAGS=
262
SHELL=${CONFIG_SHELL-/bin/sh}
263
 
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete.  It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
268
 
269
# Identity of this package.
270
PACKAGE_NAME='GNU Classpath'
271
PACKAGE_TARNAME='classpath'
272
PACKAGE_VERSION='0.20-pre'
273
PACKAGE_STRING='GNU Classpath 0.20-pre'
274
PACKAGE_BUGREPORT='classpath@gnu.org'
275
 
276
ac_unique_file="java/lang/System.java"
277
ac_default_prefix=/usr/local/classpath
278
# Factoring default headers for most tests.
279
ac_includes_default="\
280
#include 
281
#if HAVE_SYS_TYPES_H
282
# include 
283
#endif
284
#if HAVE_SYS_STAT_H
285
# include 
286
#endif
287
#if STDC_HEADERS
288
# include 
289
# include 
290
#else
291
# if HAVE_STDLIB_H
292
#  include 
293
# endif
294
#endif
295
#if HAVE_STRING_H
296
# if !STDC_HEADERS && HAVE_MEMORY_H
297
#  include 
298
# endif
299
# include 
300
#endif
301
#if HAVE_STRINGS_H
302
# include 
303
#endif
304
#if HAVE_INTTYPES_H
305
# include 
306
#else
307
# if HAVE_STDINT_H
308
#  include 
309
# endif
310
#endif
311
#if HAVE_UNISTD_H
312
# include 
313
#endif"
314
 
315
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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBVERSION CLASSPATH_MODULE 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 CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE GTK_CAIRO_ENABLED GTK_CAIRO_TRUE GTK_CAIRO_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE nativelibdir glibjdir CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS QT_CFLAGS QT_LIBS MOC USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE LIBOBJS LTLIBOBJS'
316
ac_subst_files=''
317
 
318
# Initialize some variables set by options.
319
ac_init_help=
320
ac_init_version=false
321
# The variables have the same names as the options, with
322
# dashes changed to underlines.
323
cache_file=/dev/null
324
exec_prefix=NONE
325
no_create=
326
no_recursion=
327
prefix=NONE
328
program_prefix=NONE
329
program_suffix=NONE
330
program_transform_name=s,x,x,
331
silent=
332
site=
333
srcdir=
334
verbose=
335
x_includes=NONE
336
x_libraries=NONE
337
 
338
# Installation directory options.
339
# These are left unexpanded so users can "make install exec_prefix=/foo"
340
# and all the variables that are supposed to be based on exec_prefix
341
# by default will actually change.
342
# Use braces instead of parens because sh, perl, etc. also accept them.
343
bindir='${exec_prefix}/bin'
344
sbindir='${exec_prefix}/sbin'
345
libexecdir='${exec_prefix}/libexec'
346
datadir='${prefix}/share'
347
sysconfdir='${prefix}/etc'
348
sharedstatedir='${prefix}/com'
349
localstatedir='${prefix}/var'
350
libdir='${exec_prefix}/lib'
351
includedir='${prefix}/include'
352
oldincludedir='/usr/include'
353
infodir='${prefix}/info'
354
mandir='${prefix}/man'
355
 
356
ac_prev=
357
for ac_option
358
do
359
  # If the previous option needs an argument, assign it.
360
  if test -n "$ac_prev"; then
361
    eval "$ac_prev=\$ac_option"
362
    ac_prev=
363
    continue
364
  fi
365
 
366
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
 
368
  # Accept the important Cygnus configure options, so we can diagnose typos.
369
 
370
  case $ac_option in
371
 
372
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373
    ac_prev=bindir ;;
374
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
    bindir=$ac_optarg ;;
376
 
377
  -build | --build | --buil | --bui | --bu)
378
    ac_prev=build_alias ;;
379
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380
    build_alias=$ac_optarg ;;
381
 
382
  -cache-file | --cache-file | --cache-fil | --cache-fi \
383
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384
    ac_prev=cache_file ;;
385
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387
    cache_file=$ac_optarg ;;
388
 
389
  --config-cache | -C)
390
    cache_file=config.cache ;;
391
 
392
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393
    ac_prev=datadir ;;
394
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
  | --da=*)
396
    datadir=$ac_optarg ;;
397
 
398
  -disable-* | --disable-*)
399
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400
    # Reject names that are not valid shell variable names.
401
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403
   { (exit 1); exit 1; }; }
404
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405
    eval "enable_$ac_feature=no" ;;
406
 
407
  -enable-* | --enable-*)
408
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409
    # Reject names that are not valid shell variable names.
410
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412
   { (exit 1); exit 1; }; }
413
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414
    case $ac_option in
415
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
      *) ac_optarg=yes ;;
417
    esac
418
    eval "enable_$ac_feature='$ac_optarg'" ;;
419
 
420
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422
  | --exec | --exe | --ex)
423
    ac_prev=exec_prefix ;;
424
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426
  | --exec=* | --exe=* | --ex=*)
427
    exec_prefix=$ac_optarg ;;
428
 
429
  -gas | --gas | --ga | --g)
430
    # Obsolete; use --with-gas.
431
    with_gas=yes ;;
432
 
433
  -help | --help | --hel | --he | -h)
434
    ac_init_help=long ;;
435
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436
    ac_init_help=recursive ;;
437
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438
    ac_init_help=short ;;
439
 
440
  -host | --host | --hos | --ho)
441
    ac_prev=host_alias ;;
442
  -host=* | --host=* | --hos=* | --ho=*)
443
    host_alias=$ac_optarg ;;
444
 
445
  -includedir | --includedir | --includedi | --included | --include \
446
  | --includ | --inclu | --incl | --inc)
447
    ac_prev=includedir ;;
448
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449
  | --includ=* | --inclu=* | --incl=* | --inc=*)
450
    includedir=$ac_optarg ;;
451
 
452
  -infodir | --infodir | --infodi | --infod | --info | --inf)
453
    ac_prev=infodir ;;
454
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455
    infodir=$ac_optarg ;;
456
 
457
  -libdir | --libdir | --libdi | --libd)
458
    ac_prev=libdir ;;
459
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
460
    libdir=$ac_optarg ;;
461
 
462
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463
  | --libexe | --libex | --libe)
464
    ac_prev=libexecdir ;;
465
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466
  | --libexe=* | --libex=* | --libe=*)
467
    libexecdir=$ac_optarg ;;
468
 
469
  -localstatedir | --localstatedir | --localstatedi | --localstated \
470
  | --localstate | --localstat | --localsta | --localst \
471
  | --locals | --local | --loca | --loc | --lo)
472
    ac_prev=localstatedir ;;
473
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476
    localstatedir=$ac_optarg ;;
477
 
478
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479
    ac_prev=mandir ;;
480
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
    mandir=$ac_optarg ;;
482
 
483
  -nfp | --nfp | --nf)
484
    # Obsolete; use --without-fp.
485
    with_fp=no ;;
486
 
487
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488
  | --no-cr | --no-c | -n)
489
    no_create=yes ;;
490
 
491
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
    no_recursion=yes ;;
494
 
495
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497
  | --oldin | --oldi | --old | --ol | --o)
498
    ac_prev=oldincludedir ;;
499
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502
    oldincludedir=$ac_optarg ;;
503
 
504
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505
    ac_prev=prefix ;;
506
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
    prefix=$ac_optarg ;;
508
 
509
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
510
  | --program-pre | --program-pr | --program-p)
511
    ac_prev=program_prefix ;;
512
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
513
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514
    program_prefix=$ac_optarg ;;
515
 
516
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
517
  | --program-suf | --program-su | --program-s)
518
    ac_prev=program_suffix ;;
519
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
520
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521
    program_suffix=$ac_optarg ;;
522
 
523
  -program-transform-name | --program-transform-name \
524
  | --program-transform-nam | --program-transform-na \
525
  | --program-transform-n | --program-transform- \
526
  | --program-transform | --program-transfor \
527
  | --program-transfo | --program-transf \
528
  | --program-trans | --program-tran \
529
  | --progr-tra | --program-tr | --program-t)
530
    ac_prev=program_transform_name ;;
531
  -program-transform-name=* | --program-transform-name=* \
532
  | --program-transform-nam=* | --program-transform-na=* \
533
  | --program-transform-n=* | --program-transform-=* \
534
  | --program-transform=* | --program-transfor=* \
535
  | --program-transfo=* | --program-transf=* \
536
  | --program-trans=* | --program-tran=* \
537
  | --progr-tra=* | --program-tr=* | --program-t=*)
538
    program_transform_name=$ac_optarg ;;
539
 
540
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541
  | -silent | --silent | --silen | --sile | --sil)
542
    silent=yes ;;
543
 
544
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545
    ac_prev=sbindir ;;
546
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547
  | --sbi=* | --sb=*)
548
    sbindir=$ac_optarg ;;
549
 
550
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
551
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552
  | --sharedst | --shareds | --shared | --share | --shar \
553
  | --sha | --sh)
554
    ac_prev=sharedstatedir ;;
555
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558
  | --sha=* | --sh=*)
559
    sharedstatedir=$ac_optarg ;;
560
 
561
  -site | --site | --sit)
562
    ac_prev=site ;;
563
  -site=* | --site=* | --sit=*)
564
    site=$ac_optarg ;;
565
 
566
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567
    ac_prev=srcdir ;;
568
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
    srcdir=$ac_optarg ;;
570
 
571
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572
  | --syscon | --sysco | --sysc | --sys | --sy)
573
    ac_prev=sysconfdir ;;
574
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576
    sysconfdir=$ac_optarg ;;
577
 
578
  -target | --target | --targe | --targ | --tar | --ta | --t)
579
    ac_prev=target_alias ;;
580
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581
    target_alias=$ac_optarg ;;
582
 
583
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
584
    verbose=yes ;;
585
 
586
  -version | --version | --versio | --versi | --vers | -V)
587
    ac_init_version=: ;;
588
 
589
  -with-* | --with-*)
590
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591
    # Reject names that are not valid shell variable names.
592
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593
      { echo "$as_me: error: invalid package name: $ac_package" >&2
594
   { (exit 1); exit 1; }; }
595
    ac_package=`echo $ac_package| sed 's/-/_/g'`
596
    case $ac_option in
597
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
      *) ac_optarg=yes ;;
599
    esac
600
    eval "with_$ac_package='$ac_optarg'" ;;
601
 
602
  -without-* | --without-*)
603
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604
    # Reject names that are not valid shell variable names.
605
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606
      { echo "$as_me: error: invalid package name: $ac_package" >&2
607
   { (exit 1); exit 1; }; }
608
    ac_package=`echo $ac_package | sed 's/-/_/g'`
609
    eval "with_$ac_package=no" ;;
610
 
611
  --x)
612
    # Obsolete; use --with-x.
613
    with_x=yes ;;
614
 
615
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616
  | --x-incl | --x-inc | --x-in | --x-i)
617
    ac_prev=x_includes ;;
618
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620
    x_includes=$ac_optarg ;;
621
 
622
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
623
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624
    ac_prev=x_libraries ;;
625
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627
    x_libraries=$ac_optarg ;;
628
 
629
  -*) { echo "$as_me: error: unrecognized option: $ac_option
630
Try \`$0 --help' for more information." >&2
631
   { (exit 1); exit 1; }; }
632
    ;;
633
 
634
  *=*)
635
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636
    # Reject names that are not valid shell variable names.
637
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639
   { (exit 1); exit 1; }; }
640
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641
    eval "$ac_envvar='$ac_optarg'"
642
    export $ac_envvar ;;
643
 
644
  *)
645
    # FIXME: should be removed in autoconf 3.0.
646
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650
    ;;
651
 
652
  esac
653
done
654
 
655
if test -n "$ac_prev"; then
656
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657
  { echo "$as_me: error: missing argument to $ac_option" >&2
658
   { (exit 1); exit 1; }; }
659
fi
660
 
661
# Be sure to have absolute paths.
662
for ac_var in exec_prefix prefix
663
do
664
  eval ac_val=$`echo $ac_var`
665
  case $ac_val in
666
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668
   { (exit 1); exit 1; }; };;
669
  esac
670
done
671
 
672
# Be sure to have absolute paths.
673
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674
              localstatedir libdir includedir oldincludedir infodir mandir
675
do
676
  eval ac_val=$`echo $ac_var`
677
  case $ac_val in
678
    [\\/$]* | ?:[\\/]* ) ;;
679
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680
   { (exit 1); exit 1; }; };;
681
  esac
682
done
683
 
684
# There might be people who depend on the old broken behavior: `$host'
685
# used to hold the argument of --host etc.
686
# FIXME: To remove some day.
687
build=$build_alias
688
host=$host_alias
689
target=$target_alias
690
 
691
# FIXME: To remove some day.
692
if test "x$host_alias" != x; then
693
  if test "x$build_alias" = x; then
694
    cross_compiling=maybe
695
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696
    If a cross compiler is detected then cross compile mode will be used." >&2
697
  elif test "x$build_alias" != "x$host_alias"; then
698
    cross_compiling=yes
699
  fi
700
fi
701
 
702
ac_tool_prefix=
703
test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
 
705
test "$silent" = yes && exec 6>/dev/null
706
 
707
 
708
# Find the source files, if location was not specified.
709
if test -z "$srcdir"; then
710
  ac_srcdir_defaulted=yes
711
  # Try the directory containing this script, then its parent.
712
  ac_confdir=`(dirname "$0") 2>/dev/null ||
713
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714
         X"$0" : 'X\(//\)[^/]' \| \
715
         X"$0" : 'X\(//\)$' \| \
716
         X"$0" : 'X\(/\)' \| \
717
         .     : '\(.\)' 2>/dev/null ||
718
echo X"$0" |
719
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721
          /^X\(\/\/\)$/{ s//\1/; q; }
722
          /^X\(\/\).*/{ s//\1/; q; }
723
          s/.*/./; q'`
724
  srcdir=$ac_confdir
725
  if test ! -r $srcdir/$ac_unique_file; then
726
    srcdir=..
727
  fi
728
else
729
  ac_srcdir_defaulted=no
730
fi
731
if test ! -r $srcdir/$ac_unique_file; then
732
  if test "$ac_srcdir_defaulted" = yes; then
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734
   { (exit 1); exit 1; }; }
735
  else
736
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737
   { (exit 1); exit 1; }; }
738
  fi
739
fi
740
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742
   { (exit 1); exit 1; }; }
743
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744
ac_env_build_alias_set=${build_alias+set}
745
ac_env_build_alias_value=$build_alias
746
ac_cv_env_build_alias_set=${build_alias+set}
747
ac_cv_env_build_alias_value=$build_alias
748
ac_env_host_alias_set=${host_alias+set}
749
ac_env_host_alias_value=$host_alias
750
ac_cv_env_host_alias_set=${host_alias+set}
751
ac_cv_env_host_alias_value=$host_alias
752
ac_env_target_alias_set=${target_alias+set}
753
ac_env_target_alias_value=$target_alias
754
ac_cv_env_target_alias_set=${target_alias+set}
755
ac_cv_env_target_alias_value=$target_alias
756
ac_env_CC_set=${CC+set}
757
ac_env_CC_value=$CC
758
ac_cv_env_CC_set=${CC+set}
759
ac_cv_env_CC_value=$CC
760
ac_env_CFLAGS_set=${CFLAGS+set}
761
ac_env_CFLAGS_value=$CFLAGS
762
ac_cv_env_CFLAGS_set=${CFLAGS+set}
763
ac_cv_env_CFLAGS_value=$CFLAGS
764
ac_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_env_LDFLAGS_value=$LDFLAGS
766
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767
ac_cv_env_LDFLAGS_value=$LDFLAGS
768
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_env_CPPFLAGS_value=$CPPFLAGS
770
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
ac_env_CPP_set=${CPP+set}
773
ac_env_CPP_value=$CPP
774
ac_cv_env_CPP_set=${CPP+set}
775
ac_cv_env_CPP_value=$CPP
776
ac_env_CXX_set=${CXX+set}
777
ac_env_CXX_value=$CXX
778
ac_cv_env_CXX_set=${CXX+set}
779
ac_cv_env_CXX_value=$CXX
780
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781
ac_env_CXXFLAGS_value=$CXXFLAGS
782
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784
ac_env_CXXCPP_set=${CXXCPP+set}
785
ac_env_CXXCPP_value=$CXXCPP
786
ac_cv_env_CXXCPP_set=${CXXCPP+set}
787
ac_cv_env_CXXCPP_value=$CXXCPP
788
 
789
#
790
# Report the --help message.
791
#
792
if test "$ac_init_help" = "long"; then
793
  # Omit some internal or obsolete options to make the list less imposing.
794
  # This message is too long to be a string in the A/UX 3.1 sh.
795
  cat <<_ACEOF
796
\`configure' configures GNU Classpath 0.20-pre to adapt to many kinds of systems.
797
 
798
Usage: $0 [OPTION]... [VAR=VALUE]...
799
 
800
To assign environment variables (e.g., CC, CFLAGS...), specify them as
801
VAR=VALUE.  See below for descriptions of some of the useful variables.
802
 
803
Defaults for the options are specified in brackets.
804
 
805
Configuration:
806
  -h, --help              display this help and exit
807
      --help=short        display options specific to this package
808
      --help=recursive    display the short help of all the included packages
809
  -V, --version           display version information and exit
810
  -q, --quiet, --silent   do not print \`checking...' messages
811
      --cache-file=FILE   cache test results in FILE [disabled]
812
  -C, --config-cache      alias for \`--cache-file=config.cache'
813
  -n, --no-create         do not create output files
814
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
815
 
816
_ACEOF
817
 
818
  cat <<_ACEOF
819
Installation directories:
820
  --prefix=PREFIX         install architecture-independent files in PREFIX
821
                          [$ac_default_prefix]
822
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
823
                          [PREFIX]
824
 
825
By default, \`make install' will install all the files in
826
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
827
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828
for instance \`--prefix=\$HOME'.
829
 
830
For better control, use the options below.
831
 
832
Fine tuning of the installation directories:
833
  --bindir=DIR           user executables [EPREFIX/bin]
834
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
835
  --libexecdir=DIR       program executables [EPREFIX/libexec]
836
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
837
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
838
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
839
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
840
  --libdir=DIR           object code libraries [EPREFIX/lib]
841
  --includedir=DIR       C header files [PREFIX/include]
842
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
843
  --infodir=DIR          info documentation [PREFIX/info]
844
  --mandir=DIR           man documentation [PREFIX/man]
845
_ACEOF
846
 
847
  cat <<\_ACEOF
848
 
849
Program names:
850
  --program-prefix=PREFIX            prepend PREFIX to installed program names
851
  --program-suffix=SUFFIX            append SUFFIX to installed program names
852
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
853
 
854
X features:
855
  --x-includes=DIR    X include files are in DIR
856
  --x-libraries=DIR   X library files are in DIR
857
 
858
System types:
859
  --build=BUILD     configure for building on BUILD [guessed]
860
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
861
  --target=TARGET   configure for building compilers for TARGET [HOST]
862
_ACEOF
863
fi
864
 
865
if test -n "$ac_init_help"; then
866
  case $ac_init_help in
867
     short | recursive ) echo "Configuration of GNU Classpath 0.20-pre:";;
868
   esac
869
  cat <<\_ACEOF
870
 
871
Optional Features:
872
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
873
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
874
  --enable-jni            compile JNI source default=yes
875
  --enable-core-jni       compile JNI sources for core default=yes
876
  --enable-Werror         whether to compile C code with -Werror which turns
877
                          any compiler warning into a compilation failure
878
                          default=no
879
  --enable-default-toolkit
880
                          fully qualified class name of default AWT toolkit
881
  --enable-xmlj           compile native libxml/xslt library default=no
882
  --disable-alsa          compile ALSA providers (enable by --enable-alsa)
883
                          default=yes
884
  --disable-dependency-tracking  speeds up one-time build
885
  --enable-dependency-tracking   do not reject slow dependency extractors
886
  --disable-dssi          compile DSSI providers (enable by --enable-dssi)
887
                          default=yes
888
  --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
889
                          default=yes
890
 
891
  --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
892
                          default=no
893
  --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
894
                          default=no
895
  --enable-regen-headers  automatically regenerate JNI headers default=no
896
  --enable-static=PKGS  build static libraries default=no
897
  --enable-shared=PKGS  build shared libraries default=yes
898
  --enable-fast-install=PKGS  optimize for fast installation default=yes
899
  --disable-libtool-lock  avoid locking (might break parallel builds)
900
  --disable-rpath         do not hardcode runtime library paths
901
  --enable-maintainer-mode  enable make rules and dependencies not useful
902
                          (and sometimes confusing) to the casual installer
903
  --enable-debug          enable runtime debugging code
904
  --enable-load-library   enable to use JNI native methods default=yes
905
  --enable-java-lang-system-explicit-initialization
906
                          will the VM explicitly invoke java.lang.System's
907
                          static initialization methods default=no
908
  --enable-examples       enable build of the examples default=yes
909
  --enable-portable-native-sync
910
                          synchronize VM threads portably
911
 
912
Optional Packages:
913
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915
  --with-native-libdir    sets the installation directore for native libraries
916
                          default='${libdir}/${PACKAGE}'
917
  --with-glibj-dir        sets the installation directory for glibj.zip
918
                          default='${libdir}/${PACKAGE}'
919
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
920
  --with-pic              try to use only PIC/non-PIC objects default=use both
921
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
922
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
923
  --with-x                use the X Window System
924
  --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
925
                          systems use pkg-config.
926
  --with-javah            specify path or name of a javah-like program
927
  --with-gcj              bytecode compilation with gcj
928
  --with-jikes            bytecode compilation with jikes
929
  --with-kjc              bytecode compilation with kjc
930
  --with-gcjx             bytecode compilation with gcjx
931
  --with-ecj              bytecode compilation with ecj
932
  --with-classpath        specify path to a classes.zip like file
933
  --with-vm-classes       specify path to VM override source files
934
  --with-glibj            define what to install (zip|flat|both|none|build)
935
                          [default=zip]
936
  --with-gjdoc            generate documentation using gjdoc (default is NO)
937
  --with-jay              Regenerate the parsers with jay must be given the
938
                          path to the jay executable
939
 
940
Some influential environment variables:
941
  CC          C compiler command
942
  CFLAGS      C compiler flags
943
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
944
              nonstandard directory 
945
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
946
              headers in a nonstandard directory 
947
  CPP         C preprocessor
948
  CXX         C++ compiler command
949
  CXXFLAGS    C++ compiler flags
950
  CXXCPP      C++ preprocessor
951
 
952
Use these variables to override the choices made by `configure' or to help
953
it to find libraries and programs with nonstandard names/locations.
954
 
955
Report bugs to .
956
_ACEOF
957
fi
958
 
959
if test "$ac_init_help" = "recursive"; then
960
  # If there are subdirs, report their specific --help.
961
  ac_popdir=`pwd`
962
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
963
    test -d $ac_dir || continue
964
    ac_builddir=.
965
 
966
if test "$ac_dir" != .; then
967
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
968
  # A "../" for each directory in $ac_dir_suffix.
969
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
970
else
971
  ac_dir_suffix= ac_top_builddir=
972
fi
973
 
974
case $srcdir in
975
  .)  # No --srcdir option.  We are building in place.
976
    ac_srcdir=.
977
    if test -z "$ac_top_builddir"; then
978
       ac_top_srcdir=.
979
    else
980
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
981
    fi ;;
982
  [\\/]* | ?:[\\/]* )  # Absolute path.
983
    ac_srcdir=$srcdir$ac_dir_suffix;
984
    ac_top_srcdir=$srcdir ;;
985
  *) # Relative path.
986
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
987
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
988
esac
989
 
990
# Do not use `cd foo && pwd` to compute absolute paths, because
991
# the directories may not exist.
992
case `pwd` in
993
.) ac_abs_builddir="$ac_dir";;
994
*)
995
  case "$ac_dir" in
996
  .) ac_abs_builddir=`pwd`;;
997
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
998
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
999
  esac;;
1000
esac
1001
case $ac_abs_builddir in
1002
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1003
*)
1004
  case ${ac_top_builddir}. in
1005
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1006
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1007
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1008
  esac;;
1009
esac
1010
case $ac_abs_builddir in
1011
.) ac_abs_srcdir=$ac_srcdir;;
1012
*)
1013
  case $ac_srcdir in
1014
  .) ac_abs_srcdir=$ac_abs_builddir;;
1015
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1016
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1017
  esac;;
1018
esac
1019
case $ac_abs_builddir in
1020
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1021
*)
1022
  case $ac_top_srcdir in
1023
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1024
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1025
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026
  esac;;
1027
esac
1028
 
1029
    cd $ac_dir
1030
    # Check for guested configure; otherwise get Cygnus style configure.
1031
    if test -f $ac_srcdir/configure.gnu; then
1032
      echo
1033
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1034
    elif test -f $ac_srcdir/configure; then
1035
      echo
1036
      $SHELL $ac_srcdir/configure  --help=recursive
1037
    elif test -f $ac_srcdir/configure.ac ||
1038
           test -f $ac_srcdir/configure.in; then
1039
      echo
1040
      $ac_configure --help
1041
    else
1042
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1043
    fi
1044
    cd $ac_popdir
1045
  done
1046
fi
1047
 
1048
test -n "$ac_init_help" && exit 0
1049
if $ac_init_version; then
1050
  cat <<\_ACEOF
1051
GNU Classpath configure 0.20-pre
1052
generated by GNU Autoconf 2.59
1053
 
1054
Copyright (C) 2003 Free Software Foundation, Inc.
1055
This configure script is free software; the Free Software Foundation
1056
gives unlimited permission to copy, distribute and modify it.
1057
_ACEOF
1058
  exit 0
1059
fi
1060
exec 5>config.log
1061
cat >&5 <<_ACEOF
1062
This file contains any messages produced by compilers while
1063
running configure, to aid debugging if configure makes a mistake.
1064
 
1065
It was created by GNU Classpath $as_me 0.20-pre, which was
1066
generated by GNU Autoconf 2.59.  Invocation command line was
1067
 
1068
  $ $0 $@
1069
 
1070
_ACEOF
1071
{
1072
cat <<_ASUNAME
1073
## --------- ##
1074
## Platform. ##
1075
## --------- ##
1076
 
1077
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1082
 
1083
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1085
 
1086
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1087
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1088
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1090
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1091
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1092
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1093
 
1094
_ASUNAME
1095
 
1096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097
for as_dir in $PATH
1098
do
1099
  IFS=$as_save_IFS
1100
  test -z "$as_dir" && as_dir=.
1101
  echo "PATH: $as_dir"
1102
done
1103
 
1104
} >&5
1105
 
1106
cat >&5 <<_ACEOF
1107
 
1108
 
1109
## ----------- ##
1110
## Core tests. ##
1111
## ----------- ##
1112
 
1113
_ACEOF
1114
 
1115
 
1116
# Keep a trace of the command line.
1117
# Strip out --no-create and --no-recursion so they do not pile up.
1118
# Strip out --silent because we don't want to record it for future runs.
1119
# Also quote any args containing shell meta-characters.
1120
# Make two passes to allow for proper duplicate-argument suppression.
1121
ac_configure_args=
1122
ac_configure_args0=
1123
ac_configure_args1=
1124
ac_sep=
1125
ac_must_keep_next=false
1126
for ac_pass in 1 2
1127
do
1128
  for ac_arg
1129
  do
1130
    case $ac_arg in
1131
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133
    | -silent | --silent | --silen | --sile | --sil)
1134
      continue ;;
1135
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137
    esac
1138
    case $ac_pass in
1139
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1140
    2)
1141
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142
      if test $ac_must_keep_next = true; then
1143
        ac_must_keep_next=false # Got value, back to normal.
1144
      else
1145
        case $ac_arg in
1146
          *=* | --config-cache | -C | -disable-* | --disable-* \
1147
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149
          | -with-* | --with-* | -without-* | --without-* | --x)
1150
            case "$ac_configure_args0 " in
1151
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152
            esac
1153
            ;;
1154
          -* ) ac_must_keep_next=true ;;
1155
        esac
1156
      fi
1157
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158
      # Get rid of the leading space.
1159
      ac_sep=" "
1160
      ;;
1161
    esac
1162
  done
1163
done
1164
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1166
 
1167
# When interrupted or exit'd, cleanup temporary files, and complete
1168
# config.log.  We remove comments because anyway the quotes in there
1169
# would cause problems or look ugly.
1170
# WARNING: Be sure not to use single quotes in there, as some shells,
1171
# such as our DU 5.0 friend, will then `close' the trap.
1172
trap 'exit_status=$?
1173
  # Save into config.log some information that might help in debugging.
1174
  {
1175
    echo
1176
 
1177
    cat <<\_ASBOX
1178
## ---------------- ##
1179
## Cache variables. ##
1180
## ---------------- ##
1181
_ASBOX
1182
    echo
1183
    # The following way of writing the cache mishandles newlines in values,
1184
{
1185
  (set) 2>&1 |
1186
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187
    *ac_space=\ *)
1188
      sed -n \
1189
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1191
      ;;
1192
    *)
1193
      sed -n \
1194
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195
      ;;
1196
    esac;
1197
}
1198
    echo
1199
 
1200
    cat <<\_ASBOX
1201
## ----------------- ##
1202
## Output variables. ##
1203
## ----------------- ##
1204
_ASBOX
1205
    echo
1206
    for ac_var in $ac_subst_vars
1207
    do
1208
      eval ac_val=$`echo $ac_var`
1209
      echo "$ac_var='"'"'$ac_val'"'"'"
1210
    done | sort
1211
    echo
1212
 
1213
    if test -n "$ac_subst_files"; then
1214
      cat <<\_ASBOX
1215
## ------------- ##
1216
## Output files. ##
1217
## ------------- ##
1218
_ASBOX
1219
      echo
1220
      for ac_var in $ac_subst_files
1221
      do
1222
        eval ac_val=$`echo $ac_var`
1223
        echo "$ac_var='"'"'$ac_val'"'"'"
1224
      done | sort
1225
      echo
1226
    fi
1227
 
1228
    if test -s confdefs.h; then
1229
      cat <<\_ASBOX
1230
## ----------- ##
1231
## confdefs.h. ##
1232
## ----------- ##
1233
_ASBOX
1234
      echo
1235
      sed "/^$/d" confdefs.h | sort
1236
      echo
1237
    fi
1238
    test "$ac_signal" != 0 &&
1239
      echo "$as_me: caught signal $ac_signal"
1240
    echo "$as_me: exit $exit_status"
1241
  } >&5
1242
  rm -f core *.core &&
1243
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244
    exit $exit_status
1245
     ' 0
1246
for ac_signal in 1 2 13 15; do
1247
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248
done
1249
ac_signal=0
1250
 
1251
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1252
rm -rf conftest* confdefs.h
1253
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254
echo >confdefs.h
1255
 
1256
# Predefined preprocessor variables.
1257
 
1258
cat >>confdefs.h <<_ACEOF
1259
#define PACKAGE_NAME "$PACKAGE_NAME"
1260
_ACEOF
1261
 
1262
 
1263
cat >>confdefs.h <<_ACEOF
1264
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265
_ACEOF
1266
 
1267
 
1268
cat >>confdefs.h <<_ACEOF
1269
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1270
_ACEOF
1271
 
1272
 
1273
cat >>confdefs.h <<_ACEOF
1274
#define PACKAGE_STRING "$PACKAGE_STRING"
1275
_ACEOF
1276
 
1277
 
1278
cat >>confdefs.h <<_ACEOF
1279
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280
_ACEOF
1281
 
1282
 
1283
# Let the site file select an alternate cache file if it wants to.
1284
# Prefer explicitly selected file to automatically selected ones.
1285
if test -z "$CONFIG_SITE"; then
1286
  if test "x$prefix" != xNONE; then
1287
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288
  else
1289
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1290
  fi
1291
fi
1292
for ac_site_file in $CONFIG_SITE; do
1293
  if test -r "$ac_site_file"; then
1294
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295
echo "$as_me: loading site script $ac_site_file" >&6;}
1296
    sed 's/^/| /' "$ac_site_file" >&5
1297
    . "$ac_site_file"
1298
  fi
1299
done
1300
 
1301
if test -r "$cache_file"; then
1302
  # Some versions of bash will fail to source /dev/null (special
1303
  # files actually), so we avoid doing that.
1304
  if test -f "$cache_file"; then
1305
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306
echo "$as_me: loading cache $cache_file" >&6;}
1307
    case $cache_file in
1308
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1309
      *)                      . ./$cache_file;;
1310
    esac
1311
  fi
1312
else
1313
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314
echo "$as_me: creating cache $cache_file" >&6;}
1315
  >$cache_file
1316
fi
1317
 
1318
# Check that the precious variables saved in the cache have kept the same
1319
# value.
1320
ac_cache_corrupted=false
1321
for ac_var in `(set) 2>&1 |
1322
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324
  eval ac_new_set=\$ac_env_${ac_var}_set
1325
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326
  eval ac_new_val="\$ac_env_${ac_var}_value"
1327
  case $ac_old_set,$ac_new_set in
1328
    set,)
1329
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331
      ac_cache_corrupted=: ;;
1332
    ,set)
1333
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335
      ac_cache_corrupted=: ;;
1336
    ,);;
1337
    *)
1338
      if test "x$ac_old_val" != "x$ac_new_val"; then
1339
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1342
echo "$as_me:   former value:  $ac_old_val" >&2;}
1343
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1344
echo "$as_me:   current value: $ac_new_val" >&2;}
1345
        ac_cache_corrupted=:
1346
      fi;;
1347
  esac
1348
  # Pass precious variables to config.status.
1349
  if test "$ac_new_set" = set; then
1350
    case $ac_new_val in
1351
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353
    *) ac_arg=$ac_var=$ac_new_val ;;
1354
    esac
1355
    case " $ac_configure_args " in
1356
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1357
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358
    esac
1359
  fi
1360
done
1361
if $ac_cache_corrupted; then
1362
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366
   { (exit 1); exit 1; }; }
1367
fi
1368
 
1369
ac_ext=c
1370
ac_cpp='$CPP $CPPFLAGS'
1371
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374
 
1375
 
1376
 
1377
 
1378
 
1379
 
1380
 
1381
 
1382
 
1383
 
1384
 
1385
 
1386
 
1387
 
1388
 
1389
 
1390
 
1391
 
1392
 
1393
 
1394
 
1395
 
1396
 
1397
 
1398
 
1399
 
1400
 
1401
 
1402
 
1403
ac_aux_dir=
1404
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405
  if test -f $ac_dir/install-sh; then
1406
    ac_aux_dir=$ac_dir
1407
    ac_install_sh="$ac_aux_dir/install-sh -c"
1408
    break
1409
  elif test -f $ac_dir/install.sh; then
1410
    ac_aux_dir=$ac_dir
1411
    ac_install_sh="$ac_aux_dir/install.sh -c"
1412
    break
1413
  elif test -f $ac_dir/shtool; then
1414
    ac_aux_dir=$ac_dir
1415
    ac_install_sh="$ac_aux_dir/shtool install -c"
1416
    break
1417
  fi
1418
done
1419
if test -z "$ac_aux_dir"; then
1420
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422
   { (exit 1); exit 1; }; }
1423
fi
1424
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
 
1428
# Make sure we can run config.sub.
1429
$ac_config_sub sun4 >/dev/null 2>&1 ||
1430
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432
   { (exit 1); exit 1; }; }
1433
 
1434
echo "$as_me:$LINENO: checking build system type" >&5
1435
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436
if test "${ac_cv_build+set}" = set; then
1437
  echo $ECHO_N "(cached) $ECHO_C" >&6
1438
else
1439
  ac_cv_build_alias=$build_alias
1440
test -z "$ac_cv_build_alias" &&
1441
  ac_cv_build_alias=`$ac_config_guess`
1442
test -z "$ac_cv_build_alias" &&
1443
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445
   { (exit 1); exit 1; }; }
1446
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449
   { (exit 1); exit 1; }; }
1450
 
1451
fi
1452
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453
echo "${ECHO_T}$ac_cv_build" >&6
1454
build=$ac_cv_build
1455
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
 
1459
 
1460
echo "$as_me:$LINENO: checking host system type" >&5
1461
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462
if test "${ac_cv_host+set}" = set; then
1463
  echo $ECHO_N "(cached) $ECHO_C" >&6
1464
else
1465
  ac_cv_host_alias=$host_alias
1466
test -z "$ac_cv_host_alias" &&
1467
  ac_cv_host_alias=$ac_cv_build_alias
1468
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471
   { (exit 1); exit 1; }; }
1472
 
1473
fi
1474
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475
echo "${ECHO_T}$ac_cv_host" >&6
1476
host=$ac_cv_host
1477
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
 
1481
 
1482
echo "$as_me:$LINENO: checking target system type" >&5
1483
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484
if test "${ac_cv_target+set}" = set; then
1485
  echo $ECHO_N "(cached) $ECHO_C" >&6
1486
else
1487
  ac_cv_target_alias=$target_alias
1488
test "x$ac_cv_target_alias" = "x" &&
1489
  ac_cv_target_alias=$ac_cv_host_alias
1490
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493
   { (exit 1); exit 1; }; }
1494
 
1495
fi
1496
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497
echo "${ECHO_T}$ac_cv_target" >&6
1498
target=$ac_cv_target
1499
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
 
1503
 
1504
# The aliases save the names the user supplied, while $host etc.
1505
# will get canonicalized.
1506
test -n "$target_alias" &&
1507
  test "$program_prefix$program_suffix$program_transform_name" = \
1508
    NONENONEs,x,x, &&
1509
  program_prefix=${target_alias}-
1510
 
1511
if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1512
 
1513
LIBVERSION="0:0:0"
1514
 
1515
case "$host_os" in
1516
     darwin*)
1517
        cp_module=""
1518
        ;;
1519
        *)
1520
        cp_module="-module"
1521
        ;;
1522
esac
1523
 
1524
CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1525
 
1526
 
1527
 
1528
am__api_version="1.9"
1529
# Find a good install program.  We prefer a C program (faster),
1530
# so one script is as good as another.  But avoid the broken or
1531
# incompatible versions:
1532
# SysV /etc/install, /usr/sbin/install
1533
# SunOS /usr/etc/install
1534
# IRIX /sbin/install
1535
# AIX /bin/install
1536
# AmigaOS /C/install, which installs bootblocks on floppy discs
1537
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540
# OS/2's system install, which has a completely different semantic
1541
# ./install, which can be erroneously created by make from ./install.sh.
1542
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544
if test -z "$INSTALL"; then
1545
if test "${ac_cv_path_install+set}" = set; then
1546
  echo $ECHO_N "(cached) $ECHO_C" >&6
1547
else
1548
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549
for as_dir in $PATH
1550
do
1551
  IFS=$as_save_IFS
1552
  test -z "$as_dir" && as_dir=.
1553
  # Account for people who put trailing slashes in PATH elements.
1554
case $as_dir/ in
1555
  ./ | .// | /cC/* | \
1556
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558
  /usr/ucb/* ) ;;
1559
  *)
1560
    # OSF1 and SCO ODT 3.0 have their own names for install.
1561
    # Don't use installbsd from OSF since it installs stuff as root
1562
    # by default.
1563
    for ac_prog in ginstall scoinst install; do
1564
      for ac_exec_ext in '' $ac_executable_extensions; do
1565
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566
          if test $ac_prog = install &&
1567
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568
            # AIX install.  It has an incompatible calling convention.
1569
            :
1570
          elif test $ac_prog = install &&
1571
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572
            # program-specific install script used by HP pwplus--don't use.
1573
            :
1574
          else
1575
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1576
            break 3
1577
          fi
1578
        fi
1579
      done
1580
    done
1581
    ;;
1582
esac
1583
done
1584
 
1585
 
1586
fi
1587
  if test "${ac_cv_path_install+set}" = set; then
1588
    INSTALL=$ac_cv_path_install
1589
  else
1590
    # As a last resort, use the slow shell script.  We don't cache a
1591
    # path for INSTALL within a source directory, because that will
1592
    # break other packages using the cache if that directory is
1593
    # removed, or if the path is relative.
1594
    INSTALL=$ac_install_sh
1595
  fi
1596
fi
1597
echo "$as_me:$LINENO: result: $INSTALL" >&5
1598
echo "${ECHO_T}$INSTALL" >&6
1599
 
1600
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601
# It thinks the first close brace ends the variable substitution.
1602
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603
 
1604
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605
 
1606
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607
 
1608
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610
# Just in case
1611
sleep 1
1612
echo timestamp > conftest.file
1613
# Do `set' in a subshell so we don't clobber the current shell's
1614
# arguments.  Must try -L first in case configure is actually a
1615
# symlink; some systems play weird games with the mod time of symlinks
1616
# (eg FreeBSD returns the mod time of the symlink's containing
1617
# directory).
1618
if (
1619
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620
   if test "$*" = "X"; then
1621
      # -L didn't work.
1622
      set X `ls -t $srcdir/configure conftest.file`
1623
   fi
1624
   rm -f conftest.file
1625
   if test "$*" != "X $srcdir/configure conftest.file" \
1626
      && test "$*" != "X conftest.file $srcdir/configure"; then
1627
 
1628
      # If neither matched, then we have a broken ls.  This can happen
1629
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1630
      # broken ls alias from the environment.  This has actually
1631
      # happened.  Such a system could not be considered "sane".
1632
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1633
alias in your environment" >&5
1634
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1635
alias in your environment" >&2;}
1636
   { (exit 1); exit 1; }; }
1637
   fi
1638
 
1639
   test "$2" = conftest.file
1640
   )
1641
then
1642
   # Ok.
1643
   :
1644
else
1645
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646
Check your system clock" >&5
1647
echo "$as_me: error: newly created file is older than distributed files!
1648
Check your system clock" >&2;}
1649
   { (exit 1); exit 1; }; }
1650
fi
1651
echo "$as_me:$LINENO: result: yes" >&5
1652
echo "${ECHO_T}yes" >&6
1653
test "$program_prefix" != NONE &&
1654
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655
# Use a double $ so make ignores it.
1656
test "$program_suffix" != NONE &&
1657
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658
# Double any \ or $.  echo might interpret backslashes.
1659
# By default was `s,x,x', remove it if useless.
1660
cat <<\_ACEOF >conftest.sed
1661
s/[\\$]/&&/g;s/;s,x,x,$//
1662
_ACEOF
1663
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664
rm conftest.sed
1665
 
1666
# expand $ac_aux_dir to an absolute path
1667
am_aux_dir=`cd $ac_aux_dir && pwd`
1668
 
1669
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670
# Use eval to expand $SHELL
1671
if eval "$MISSING --run true"; then
1672
  am_missing_run="$MISSING --run "
1673
else
1674
  am_missing_run=
1675
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677
fi
1678
 
1679
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680
  # We used to keeping the `.' as first argument, in order to
1681
  # allow $(mkdir_p) to be used without argument.  As in
1682
  #   $(mkdir_p) $(somedir)
1683
  # where $(somedir) is conditionally defined.  However this is wrong
1684
  # for two reasons:
1685
  #  1. if the package is installed by a user who cannot write `.'
1686
  #     make install will fail,
1687
  #  2. the above comment should most certainly read
1688
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1689
  #     so it does not work when $(somedir) is undefined and
1690
  #     $(DESTDIR) is not.
1691
  #  To support the latter case, we have to write
1692
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693
  #  so the `.' trick is pointless.
1694
  mkdir_p='mkdir -p --'
1695
else
1696
  # On NextStep and OpenStep, the `mkdir' command does not
1697
  # recognize any option.  It will interpret all options as
1698
  # directories to create, and then abort because `.' already
1699
  # exists.
1700
  for d in ./-p ./--version;
1701
  do
1702
    test -d $d && rmdir $d
1703
  done
1704
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1706
    mkdir_p='$(mkinstalldirs)'
1707
  else
1708
    mkdir_p='$(install_sh) -d'
1709
  fi
1710
fi
1711
 
1712
for ac_prog in gawk mawk nawk awk
1713
do
1714
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1715
set dummy $ac_prog; ac_word=$2
1716
echo "$as_me:$LINENO: checking for $ac_word" >&5
1717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718
if test "${ac_cv_prog_AWK+set}" = set; then
1719
  echo $ECHO_N "(cached) $ECHO_C" >&6
1720
else
1721
  if test -n "$AWK"; then
1722
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723
else
1724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725
for as_dir in $PATH
1726
do
1727
  IFS=$as_save_IFS
1728
  test -z "$as_dir" && as_dir=.
1729
  for ac_exec_ext in '' $ac_executable_extensions; do
1730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731
    ac_cv_prog_AWK="$ac_prog"
1732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733
    break 2
1734
  fi
1735
done
1736
done
1737
 
1738
fi
1739
fi
1740
AWK=$ac_cv_prog_AWK
1741
if test -n "$AWK"; then
1742
  echo "$as_me:$LINENO: result: $AWK" >&5
1743
echo "${ECHO_T}$AWK" >&6
1744
else
1745
  echo "$as_me:$LINENO: result: no" >&5
1746
echo "${ECHO_T}no" >&6
1747
fi
1748
 
1749
  test -n "$AWK" && break
1750
done
1751
 
1752
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756
  echo $ECHO_N "(cached) $ECHO_C" >&6
1757
else
1758
  cat >conftest.make <<\_ACEOF
1759
all:
1760
        @echo 'ac_maketemp="$(MAKE)"'
1761
_ACEOF
1762
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764
if test -n "$ac_maketemp"; then
1765
  eval ac_cv_prog_make_${ac_make}_set=yes
1766
else
1767
  eval ac_cv_prog_make_${ac_make}_set=no
1768
fi
1769
rm -f conftest.make
1770
fi
1771
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772
  echo "$as_me:$LINENO: result: yes" >&5
1773
echo "${ECHO_T}yes" >&6
1774
  SET_MAKE=
1775
else
1776
  echo "$as_me:$LINENO: result: no" >&5
1777
echo "${ECHO_T}no" >&6
1778
  SET_MAKE="MAKE=${MAKE-make}"
1779
fi
1780
 
1781
rm -rf .tst 2>/dev/null
1782
mkdir .tst 2>/dev/null
1783
if test -d .tst; then
1784
  am__leading_dot=.
1785
else
1786
  am__leading_dot=_
1787
fi
1788
rmdir .tst 2>/dev/null
1789
 
1790
# test to see if srcdir already configured
1791
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792
   test -f $srcdir/config.status; then
1793
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795
   { (exit 1); exit 1; }; }
1796
fi
1797
 
1798
# test whether we have cygpath
1799
if test -z "$CYGPATH_W"; then
1800
  if (cygpath --version) >/dev/null 2>/dev/null; then
1801
    CYGPATH_W='cygpath -w'
1802
  else
1803
    CYGPATH_W=echo
1804
  fi
1805
fi
1806
 
1807
 
1808
# Define the identity of the package.
1809
 PACKAGE='classpath'
1810
 VERSION='0.20-pre'
1811
 
1812
 
1813
cat >>confdefs.h <<_ACEOF
1814
#define PACKAGE "$PACKAGE"
1815
_ACEOF
1816
 
1817
 
1818
cat >>confdefs.h <<_ACEOF
1819
#define VERSION "$VERSION"
1820
_ACEOF
1821
 
1822
# Some tools Automake needs.
1823
 
1824
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1825
 
1826
 
1827
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1828
 
1829
 
1830
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1831
 
1832
 
1833
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1834
 
1835
 
1836
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1837
 
1838
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839
 
1840
# Installed binaries are usually stripped using `strip' when the user
1841
# run `make install-strip'.  However `strip' might not be the right
1842
# tool to use in cross-compilation environments, therefore Automake
1843
# will honor the `STRIP' environment variable to overrule this program.
1844
if test "$cross_compiling" != no; then
1845
  if test -n "$ac_tool_prefix"; then
1846
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1847
set dummy ${ac_tool_prefix}strip; ac_word=$2
1848
echo "$as_me:$LINENO: checking for $ac_word" >&5
1849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850
if test "${ac_cv_prog_STRIP+set}" = set; then
1851
  echo $ECHO_N "(cached) $ECHO_C" >&6
1852
else
1853
  if test -n "$STRIP"; then
1854
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1855
else
1856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857
for as_dir in $PATH
1858
do
1859
  IFS=$as_save_IFS
1860
  test -z "$as_dir" && as_dir=.
1861
  for ac_exec_ext in '' $ac_executable_extensions; do
1862
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1864
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865
    break 2
1866
  fi
1867
done
1868
done
1869
 
1870
fi
1871
fi
1872
STRIP=$ac_cv_prog_STRIP
1873
if test -n "$STRIP"; then
1874
  echo "$as_me:$LINENO: result: $STRIP" >&5
1875
echo "${ECHO_T}$STRIP" >&6
1876
else
1877
  echo "$as_me:$LINENO: result: no" >&5
1878
echo "${ECHO_T}no" >&6
1879
fi
1880
 
1881
fi
1882
if test -z "$ac_cv_prog_STRIP"; then
1883
  ac_ct_STRIP=$STRIP
1884
  # Extract the first word of "strip", so it can be a program name with args.
1885
set dummy strip; ac_word=$2
1886
echo "$as_me:$LINENO: checking for $ac_word" >&5
1887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1889
  echo $ECHO_N "(cached) $ECHO_C" >&6
1890
else
1891
  if test -n "$ac_ct_STRIP"; then
1892
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1893
else
1894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895
for as_dir in $PATH
1896
do
1897
  IFS=$as_save_IFS
1898
  test -z "$as_dir" && as_dir=.
1899
  for ac_exec_ext in '' $ac_executable_extensions; do
1900
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901
    ac_cv_prog_ac_ct_STRIP="strip"
1902
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903
    break 2
1904
  fi
1905
done
1906
done
1907
 
1908
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1909
fi
1910
fi
1911
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1912
if test -n "$ac_ct_STRIP"; then
1913
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1914
echo "${ECHO_T}$ac_ct_STRIP" >&6
1915
else
1916
  echo "$as_me:$LINENO: result: no" >&5
1917
echo "${ECHO_T}no" >&6
1918
fi
1919
 
1920
  STRIP=$ac_ct_STRIP
1921
else
1922
  STRIP="$ac_cv_prog_STRIP"
1923
fi
1924
 
1925
fi
1926
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927
 
1928
# We need awk for the "check" target.  The system "awk" is bad on
1929
# some platforms.
1930
# Always define AMTAR for backward compatibility.
1931
 
1932
AMTAR=${AMTAR-"${am_missing_run}tar"}
1933
 
1934
 
1935
echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1936
echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1937
# Loop over all known methods to create a tar archive until one works.
1938
_am_tools='gnutar plaintar pax cpio none'
1939
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1940
# Do not fold the above two line into one, because Tru64 sh and
1941
# Solaris sh will not grok spaces in the rhs of `-'.
1942
for _am_tool in $_am_tools
1943
do
1944
  case $_am_tool in
1945
  gnutar)
1946
    for _am_tar in tar gnutar gtar;
1947
    do
1948
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
1949
   ($_am_tar --version) >&5 2>&5
1950
   ac_status=$?
1951
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952
   (exit $ac_status); } && break
1953
    done
1954
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1955
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1956
    am__untar="$_am_tar -xf -"
1957
    ;;
1958
  plaintar)
1959
    # Must skip GNU tar: if it does not support --format= it doesn't create
1960
    # ustar tarball either.
1961
    (tar --version) >/dev/null 2>&1 && continue
1962
    am__tar='tar chf - "$$tardir"'
1963
    am__tar_='tar chf - "$tardir"'
1964
    am__untar='tar xf -'
1965
    ;;
1966
  pax)
1967
    am__tar='pax -L -x ustar -w "$$tardir"'
1968
    am__tar_='pax -L -x ustar -w "$tardir"'
1969
    am__untar='pax -r'
1970
    ;;
1971
  cpio)
1972
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1973
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1974
    am__untar='cpio -i -H ustar -d'
1975
    ;;
1976
  none)
1977
    am__tar=false
1978
    am__tar_=false
1979
    am__untar=false
1980
    ;;
1981
  esac
1982
 
1983
  # If the value was cached, stop now.  We just wanted to have am__tar
1984
  # and am__untar set.
1985
  test -n "${am_cv_prog_tar_ustar}" && break
1986
 
1987
  # tar/untar a dummy directory, and stop if the command works
1988
  rm -rf conftest.dir
1989
  mkdir conftest.dir
1990
  echo GrepMe > conftest.dir/file
1991
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
1992
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
1993
   ac_status=$?
1994
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995
   (exit $ac_status); }
1996
  rm -rf conftest.dir
1997
  if test -s conftest.tar; then
1998
    { echo "$as_me:$LINENO: $am__untar &5
1999
   ($am__untar &5 2>&5
2000
   ac_status=$?
2001
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002
   (exit $ac_status); }
2003
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2004
  fi
2005
done
2006
rm -rf conftest.dir
2007
 
2008
if test "${am_cv_prog_tar_ustar+set}" = set; then
2009
  echo $ECHO_N "(cached) $ECHO_C" >&6
2010
else
2011
  am_cv_prog_tar_ustar=$_am_tool
2012
fi
2013
 
2014
echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2015
echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2016
 
2017
 
2018
 
2019
 
2020
 
2021
          ac_config_headers="$ac_config_headers include/config.h"
2022
 
2023
 
2024
 
2025
 
2026
 
2027
# Check whether --enable-jni or --disable-jni was given.
2028
if test "${enable_jni+set}" = set; then
2029
  enableval="$enable_jni"
2030
  case "${enableval}" in
2031
                yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2032
                no) COMPILE_JNI=no ;;
2033
                *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2034
              esac
2035
else
2036
  COMPILE_JNI=yes
2037
fi;
2038
 
2039
 
2040
if test "x${COMPILE_JNI}" = xyes; then
2041
  CREATE_JNI_LIBRARIES_TRUE=
2042
  CREATE_JNI_LIBRARIES_FALSE='#'
2043
else
2044
  CREATE_JNI_LIBRARIES_TRUE='#'
2045
  CREATE_JNI_LIBRARIES_FALSE=
2046
fi
2047
 
2048
 
2049
# Check whether --enable-core-jni or --disable-core-jni was given.
2050
if test "${enable_core_jni+set}" = set; then
2051
  enableval="$enable_core_jni"
2052
  case "${enableval}" in
2053
                yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2054
                no) COMPILE_CORE_JNI=no ;;
2055
                *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2056
              esac
2057
else
2058
  COMPILE_CORE_JNI=yes
2059
fi;
2060
 
2061
 
2062
if test "x${COMPILE_CORE_JNI}" = xyes; then
2063
  CREATE_CORE_JNI_LIBRARIES_TRUE=
2064
  CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2065
else
2066
  CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2067
  CREATE_CORE_JNI_LIBRARIES_FALSE=
2068
fi
2069
 
2070
 
2071
# Check whether --enable-Werror or --disable-Werror was given.
2072
if test "${enable_Werror+set}" = set; then
2073
  enableval="$enable_Werror"
2074
  case "${enableval}" in
2075
                yes) ENABLE_WERROR=yes ;;
2076
                no) ENABLE_WERROR=no ;;
2077
                *) ENABLE_WERROR=no ;;
2078
              esac
2079
else
2080
  ENABLE_WERROR=no
2081
fi;
2082
 
2083
# Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2084
if test "${enable_default_toolkit+set}" = set; then
2085
  enableval="$enable_default_toolkit"
2086
 
2087
fi;
2088
default_toolkit=$enable_default_toolkit
2089
if test "$default_toolkit" = ""; then
2090
   default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2091
fi
2092
 
2093
 
2094
# Check whether --enable-xmlj or --disable-xmlj was given.
2095
if test "${enable_xmlj+set}" = set; then
2096
  enableval="$enable_xmlj"
2097
  case "${enableval}" in
2098
                yes) COMPILE_XMLJ=yes ;;
2099
                no) COMPILE_XMLJ=no ;;
2100
                *) COMPILE_XMLJ=no ;;
2101
              esac
2102
else
2103
  COMPILE_XMLJ=no
2104
fi;
2105
 
2106
 
2107
if test "x${COMPILE_XMLJ}" = xyes; then
2108
  CREATE_XMLJ_LIBRARY_TRUE=
2109
  CREATE_XMLJ_LIBRARY_FALSE='#'
2110
else
2111
  CREATE_XMLJ_LIBRARY_TRUE='#'
2112
  CREATE_XMLJ_LIBRARY_FALSE=
2113
fi
2114
 
2115
 
2116
DEPDIR="${am__leading_dot}deps"
2117
 
2118
          ac_config_commands="$ac_config_commands depfiles"
2119
 
2120
 
2121
am_make=${MAKE-make}
2122
cat > confinc << 'END'
2123
am__doit:
2124
        @echo done
2125
.PHONY: am__doit
2126
END
2127
# If we don't find an include directive, just comment out the code.
2128
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2129
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2130
am__include="#"
2131
am__quote=
2132
_am_result=none
2133
# First try GNU make style include.
2134
echo "include confinc" > confmf
2135
# We grep out `Entering directory' and `Leaving directory'
2136
# messages which can occur if `w' ends up in MAKEFLAGS.
2137
# In particular we don't look at `^make:' because GNU make might
2138
# be invoked under some other name (usually "gmake"), in which
2139
# case it prints its new name instead of `make'.
2140
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2141
   am__include=include
2142
   am__quote=
2143
   _am_result=GNU
2144
fi
2145
# Now try BSD make style include.
2146
if test "$am__include" = "#"; then
2147
   echo '.include "confinc"' > confmf
2148
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2149
      am__include=.include
2150
      am__quote="\""
2151
      _am_result=BSD
2152
   fi
2153
fi
2154
 
2155
 
2156
echo "$as_me:$LINENO: result: $_am_result" >&5
2157
echo "${ECHO_T}$_am_result" >&6
2158
rm -f confinc confmf
2159
 
2160
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2161
if test "${enable_dependency_tracking+set}" = set; then
2162
  enableval="$enable_dependency_tracking"
2163
 
2164
fi;
2165
if test "x$enable_dependency_tracking" != xno; then
2166
  am_depcomp="$ac_aux_dir/depcomp"
2167
  AMDEPBACKSLASH='\'
2168
fi
2169
 
2170
 
2171
if test "x$enable_dependency_tracking" != xno; then
2172
  AMDEP_TRUE=
2173
  AMDEP_FALSE='#'
2174
else
2175
  AMDEP_TRUE='#'
2176
  AMDEP_FALSE=
2177
fi
2178
 
2179
 
2180
 
2181
ac_ext=c
2182
ac_cpp='$CPP $CPPFLAGS'
2183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
if test -n "$ac_tool_prefix"; then
2187
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189
echo "$as_me:$LINENO: checking for $ac_word" >&5
2190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191
if test "${ac_cv_prog_CC+set}" = set; then
2192
  echo $ECHO_N "(cached) $ECHO_C" >&6
2193
else
2194
  if test -n "$CC"; then
2195
  ac_cv_prog_CC="$CC" # Let the user override the test.
2196
else
2197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198
for as_dir in $PATH
2199
do
2200
  IFS=$as_save_IFS
2201
  test -z "$as_dir" && as_dir=.
2202
  for ac_exec_ext in '' $ac_executable_extensions; do
2203
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206
    break 2
2207
  fi
2208
done
2209
done
2210
 
2211
fi
2212
fi
2213
CC=$ac_cv_prog_CC
2214
if test -n "$CC"; then
2215
  echo "$as_me:$LINENO: result: $CC" >&5
2216
echo "${ECHO_T}$CC" >&6
2217
else
2218
  echo "$as_me:$LINENO: result: no" >&5
2219
echo "${ECHO_T}no" >&6
2220
fi
2221
 
2222
fi
2223
if test -z "$ac_cv_prog_CC"; then
2224
  ac_ct_CC=$CC
2225
  # Extract the first word of "gcc", so it can be a program name with args.
2226
set dummy gcc; ac_word=$2
2227
echo "$as_me:$LINENO: checking for $ac_word" >&5
2228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230
  echo $ECHO_N "(cached) $ECHO_C" >&6
2231
else
2232
  if test -n "$ac_ct_CC"; then
2233
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234
else
2235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236
for as_dir in $PATH
2237
do
2238
  IFS=$as_save_IFS
2239
  test -z "$as_dir" && as_dir=.
2240
  for ac_exec_ext in '' $ac_executable_extensions; do
2241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242
    ac_cv_prog_ac_ct_CC="gcc"
2243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244
    break 2
2245
  fi
2246
done
2247
done
2248
 
2249
fi
2250
fi
2251
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252
if test -n "$ac_ct_CC"; then
2253
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254
echo "${ECHO_T}$ac_ct_CC" >&6
2255
else
2256
  echo "$as_me:$LINENO: result: no" >&5
2257
echo "${ECHO_T}no" >&6
2258
fi
2259
 
2260
  CC=$ac_ct_CC
2261
else
2262
  CC="$ac_cv_prog_CC"
2263
fi
2264
 
2265
if test -z "$CC"; then
2266
  if test -n "$ac_tool_prefix"; then
2267
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268
set dummy ${ac_tool_prefix}cc; ac_word=$2
2269
echo "$as_me:$LINENO: checking for $ac_word" >&5
2270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271
if test "${ac_cv_prog_CC+set}" = set; then
2272
  echo $ECHO_N "(cached) $ECHO_C" >&6
2273
else
2274
  if test -n "$CC"; then
2275
  ac_cv_prog_CC="$CC" # Let the user override the test.
2276
else
2277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278
for as_dir in $PATH
2279
do
2280
  IFS=$as_save_IFS
2281
  test -z "$as_dir" && as_dir=.
2282
  for ac_exec_ext in '' $ac_executable_extensions; do
2283
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2285
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286
    break 2
2287
  fi
2288
done
2289
done
2290
 
2291
fi
2292
fi
2293
CC=$ac_cv_prog_CC
2294
if test -n "$CC"; then
2295
  echo "$as_me:$LINENO: result: $CC" >&5
2296
echo "${ECHO_T}$CC" >&6
2297
else
2298
  echo "$as_me:$LINENO: result: no" >&5
2299
echo "${ECHO_T}no" >&6
2300
fi
2301
 
2302
fi
2303
if test -z "$ac_cv_prog_CC"; then
2304
  ac_ct_CC=$CC
2305
  # Extract the first word of "cc", so it can be a program name with args.
2306
set dummy cc; ac_word=$2
2307
echo "$as_me:$LINENO: checking for $ac_word" >&5
2308
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310
  echo $ECHO_N "(cached) $ECHO_C" >&6
2311
else
2312
  if test -n "$ac_ct_CC"; then
2313
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314
else
2315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
for as_dir in $PATH
2317
do
2318
  IFS=$as_save_IFS
2319
  test -z "$as_dir" && as_dir=.
2320
  for ac_exec_ext in '' $ac_executable_extensions; do
2321
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322
    ac_cv_prog_ac_ct_CC="cc"
2323
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324
    break 2
2325
  fi
2326
done
2327
done
2328
 
2329
fi
2330
fi
2331
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332
if test -n "$ac_ct_CC"; then
2333
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334
echo "${ECHO_T}$ac_ct_CC" >&6
2335
else
2336
  echo "$as_me:$LINENO: result: no" >&5
2337
echo "${ECHO_T}no" >&6
2338
fi
2339
 
2340
  CC=$ac_ct_CC
2341
else
2342
  CC="$ac_cv_prog_CC"
2343
fi
2344
 
2345
fi
2346
if test -z "$CC"; then
2347
  # Extract the first word of "cc", so it can be a program name with args.
2348
set dummy cc; ac_word=$2
2349
echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351
if test "${ac_cv_prog_CC+set}" = set; then
2352
  echo $ECHO_N "(cached) $ECHO_C" >&6
2353
else
2354
  if test -n "$CC"; then
2355
  ac_cv_prog_CC="$CC" # Let the user override the test.
2356
else
2357
  ac_prog_rejected=no
2358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359
for as_dir in $PATH
2360
do
2361
  IFS=$as_save_IFS
2362
  test -z "$as_dir" && as_dir=.
2363
  for ac_exec_ext in '' $ac_executable_extensions; do
2364
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366
       ac_prog_rejected=yes
2367
       continue
2368
     fi
2369
    ac_cv_prog_CC="cc"
2370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371
    break 2
2372
  fi
2373
done
2374
done
2375
 
2376
if test $ac_prog_rejected = yes; then
2377
  # We found a bogon in the path, so make sure we never use it.
2378
  set dummy $ac_cv_prog_CC
2379
  shift
2380
  if test $# != 0; then
2381
    # We chose a different compiler from the bogus one.
2382
    # However, it has the same basename, so the bogon will be chosen
2383
    # first if we set CC to just the basename; use the full file name.
2384
    shift
2385
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2386
  fi
2387
fi
2388
fi
2389
fi
2390
CC=$ac_cv_prog_CC
2391
if test -n "$CC"; then
2392
  echo "$as_me:$LINENO: result: $CC" >&5
2393
echo "${ECHO_T}$CC" >&6
2394
else
2395
  echo "$as_me:$LINENO: result: no" >&5
2396
echo "${ECHO_T}no" >&6
2397
fi
2398
 
2399
fi
2400
if test -z "$CC"; then
2401
  if test -n "$ac_tool_prefix"; then
2402
  for ac_prog in cl
2403
  do
2404
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406
echo "$as_me:$LINENO: checking for $ac_word" >&5
2407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408
if test "${ac_cv_prog_CC+set}" = set; then
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
2410
else
2411
  if test -n "$CC"; then
2412
  ac_cv_prog_CC="$CC" # Let the user override the test.
2413
else
2414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415
for as_dir in $PATH
2416
do
2417
  IFS=$as_save_IFS
2418
  test -z "$as_dir" && as_dir=.
2419
  for ac_exec_ext in '' $ac_executable_extensions; do
2420
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423
    break 2
2424
  fi
2425
done
2426
done
2427
 
2428
fi
2429
fi
2430
CC=$ac_cv_prog_CC
2431
if test -n "$CC"; then
2432
  echo "$as_me:$LINENO: result: $CC" >&5
2433
echo "${ECHO_T}$CC" >&6
2434
else
2435
  echo "$as_me:$LINENO: result: no" >&5
2436
echo "${ECHO_T}no" >&6
2437
fi
2438
 
2439
    test -n "$CC" && break
2440
  done
2441
fi
2442
if test -z "$CC"; then
2443
  ac_ct_CC=$CC
2444
  for ac_prog in cl
2445
do
2446
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2447
set dummy $ac_prog; ac_word=$2
2448
echo "$as_me:$LINENO: checking for $ac_word" >&5
2449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451
  echo $ECHO_N "(cached) $ECHO_C" >&6
2452
else
2453
  if test -n "$ac_ct_CC"; then
2454
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455
else
2456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457
for as_dir in $PATH
2458
do
2459
  IFS=$as_save_IFS
2460
  test -z "$as_dir" && as_dir=.
2461
  for ac_exec_ext in '' $ac_executable_extensions; do
2462
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463
    ac_cv_prog_ac_ct_CC="$ac_prog"
2464
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465
    break 2
2466
  fi
2467
done
2468
done
2469
 
2470
fi
2471
fi
2472
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473
if test -n "$ac_ct_CC"; then
2474
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475
echo "${ECHO_T}$ac_ct_CC" >&6
2476
else
2477
  echo "$as_me:$LINENO: result: no" >&5
2478
echo "${ECHO_T}no" >&6
2479
fi
2480
 
2481
  test -n "$ac_ct_CC" && break
2482
done
2483
 
2484
  CC=$ac_ct_CC
2485
fi
2486
 
2487
fi
2488
 
2489
 
2490
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491
See \`config.log' for more details." >&5
2492
echo "$as_me: error: no acceptable C compiler found in \$PATH
2493
See \`config.log' for more details." >&2;}
2494
   { (exit 1); exit 1; }; }
2495
 
2496
# Provide some information about the compiler.
2497
echo "$as_me:$LINENO:" \
2498
     "checking for C compiler version" >&5
2499
ac_compiler=`set X $ac_compile; echo $2`
2500
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2501
  (eval $ac_compiler --version &5) 2>&5
2502
  ac_status=$?
2503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
  (exit $ac_status); }
2505
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2506
  (eval $ac_compiler -v &5) 2>&5
2507
  ac_status=$?
2508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
  (exit $ac_status); }
2510
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2511
  (eval $ac_compiler -V &5) 2>&5
2512
  ac_status=$?
2513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
  (exit $ac_status); }
2515
 
2516
cat >conftest.$ac_ext <<_ACEOF
2517
/* confdefs.h.  */
2518
_ACEOF
2519
cat confdefs.h >>conftest.$ac_ext
2520
cat >>conftest.$ac_ext <<_ACEOF
2521
/* end confdefs.h.  */
2522
 
2523
int
2524
main ()
2525
{
2526
 
2527
  ;
2528
  return 0;
2529
}
2530
_ACEOF
2531
# FIXME: Cleanup?
2532
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533
  (eval $ac_link) 2>&5
2534
  ac_status=$?
2535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
  (exit $ac_status); }; then
2537
  gcc_no_link=no
2538
else
2539
  gcc_no_link=yes
2540
fi
2541
 
2542
if test x$gcc_no_link = xyes; then
2543
  # Setting cross_compile will disable run tests; it will
2544
  # also disable AC_CHECK_FILE but that's generally
2545
  # correct if we can't link.
2546
  cross_compiling=yes
2547
  EXEEXT=
2548
else
2549
  cat >conftest.$ac_ext <<_ACEOF
2550
/* confdefs.h.  */
2551
_ACEOF
2552
cat confdefs.h >>conftest.$ac_ext
2553
cat >>conftest.$ac_ext <<_ACEOF
2554
/* end confdefs.h.  */
2555
 
2556
int
2557
main ()
2558
{
2559
 
2560
  ;
2561
  return 0;
2562
}
2563
_ACEOF
2564
ac_clean_files_save=$ac_clean_files
2565
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566
# Try to create an executable without -o first, disregard a.out.
2567
# It will help us diagnose broken compilers, and finding out an intuition
2568
# of exeext.
2569
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573
  (eval $ac_link_default) 2>&5
2574
  ac_status=$?
2575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
  (exit $ac_status); }; then
2577
  # Find the output, starting from the most likely.  This scheme is
2578
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2579
# resort.
2580
 
2581
# Be careful to initialize this variable, since it used to be cached.
2582
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2583
ac_cv_exeext=
2584
# b.out is created by i960 compilers.
2585
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2586
do
2587
  test -f "$ac_file" || continue
2588
  case $ac_file in
2589
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2590
        ;;
2591
    conftest.$ac_ext )
2592
        # This is the source file.
2593
        ;;
2594
    [ab].out )
2595
        # We found the default executable, but exeext='' is most
2596
        # certainly right.
2597
        break;;
2598
    *.* )
2599
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2601
        # but it would be cool to find out if it's true.  Does anybody
2602
        # maintain Libtool? --akim.
2603
        export ac_cv_exeext
2604
        break;;
2605
    * )
2606
        break;;
2607
  esac
2608
done
2609
else
2610
  echo "$as_me: failed program was:" >&5
2611
sed 's/^/| /' conftest.$ac_ext >&5
2612
 
2613
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2614
See \`config.log' for more details." >&5
2615
echo "$as_me: error: C compiler cannot create executables
2616
See \`config.log' for more details." >&2;}
2617
   { (exit 77); exit 77; }; }
2618
fi
2619
 
2620
ac_exeext=$ac_cv_exeext
2621
echo "$as_me:$LINENO: result: $ac_file" >&5
2622
echo "${ECHO_T}$ac_file" >&6
2623
 
2624
# Check the compiler produces executables we can run.  If not, either
2625
# the compiler is broken, or we cross compile.
2626
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2627
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2628
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2629
# If not cross compiling, check that we can run a simple program.
2630
if test "$cross_compiling" != yes; then
2631
  if { ac_try='./$ac_file'
2632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633
  (eval $ac_try) 2>&5
2634
  ac_status=$?
2635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636
  (exit $ac_status); }; }; then
2637
    cross_compiling=no
2638
  else
2639
    if test "$cross_compiling" = maybe; then
2640
        cross_compiling=yes
2641
    else
2642
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2643
If you meant to cross compile, use \`--host'.
2644
See \`config.log' for more details." >&5
2645
echo "$as_me: error: cannot run C compiled programs.
2646
If you meant to cross compile, use \`--host'.
2647
See \`config.log' for more details." >&2;}
2648
   { (exit 1); exit 1; }; }
2649
    fi
2650
  fi
2651
fi
2652
echo "$as_me:$LINENO: result: yes" >&5
2653
echo "${ECHO_T}yes" >&6
2654
 
2655
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2656
ac_clean_files=$ac_clean_files_save
2657
# Check the compiler produces executables we can run.  If not, either
2658
# the compiler is broken, or we cross compile.
2659
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2660
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2661
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2662
echo "${ECHO_T}$cross_compiling" >&6
2663
 
2664
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2665
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667
  (eval $ac_link) 2>&5
2668
  ac_status=$?
2669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670
  (exit $ac_status); }; then
2671
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2672
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2673
# work properly (i.e., refer to `conftest.exe'), while it won't with
2674
# `rm'.
2675
for ac_file in conftest.exe conftest conftest.*; do
2676
  test -f "$ac_file" || continue
2677
  case $ac_file in
2678
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2679
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2680
          export ac_cv_exeext
2681
          break;;
2682
    * ) break;;
2683
  esac
2684
done
2685
else
2686
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2687
See \`config.log' for more details." >&5
2688
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2689
See \`config.log' for more details." >&2;}
2690
   { (exit 1); exit 1; }; }
2691
fi
2692
 
2693
rm -f conftest$ac_cv_exeext
2694
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2695
echo "${ECHO_T}$ac_cv_exeext" >&6
2696
 
2697
rm -f conftest.$ac_ext
2698
EXEEXT=$ac_cv_exeext
2699
ac_exeext=$EXEEXT
2700
fi
2701
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2702
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2703
if test "${ac_cv_objext+set}" = set; then
2704
  echo $ECHO_N "(cached) $ECHO_C" >&6
2705
else
2706
  cat >conftest.$ac_ext <<_ACEOF
2707
/* confdefs.h.  */
2708
_ACEOF
2709
cat confdefs.h >>conftest.$ac_ext
2710
cat >>conftest.$ac_ext <<_ACEOF
2711
/* end confdefs.h.  */
2712
 
2713
int
2714
main ()
2715
{
2716
 
2717
  ;
2718
  return 0;
2719
}
2720
_ACEOF
2721
rm -f conftest.o conftest.obj
2722
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723
  (eval $ac_compile) 2>&5
2724
  ac_status=$?
2725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726
  (exit $ac_status); }; then
2727
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2728
  case $ac_file in
2729
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2730
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2731
       break;;
2732
  esac
2733
done
2734
else
2735
  echo "$as_me: failed program was:" >&5
2736
sed 's/^/| /' conftest.$ac_ext >&5
2737
 
2738
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2739
See \`config.log' for more details." >&5
2740
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2741
See \`config.log' for more details." >&2;}
2742
   { (exit 1); exit 1; }; }
2743
fi
2744
 
2745
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2746
fi
2747
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2748
echo "${ECHO_T}$ac_cv_objext" >&6
2749
OBJEXT=$ac_cv_objext
2750
ac_objext=$OBJEXT
2751
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2752
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2753
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2754
  echo $ECHO_N "(cached) $ECHO_C" >&6
2755
else
2756
  cat >conftest.$ac_ext <<_ACEOF
2757
/* confdefs.h.  */
2758
_ACEOF
2759
cat confdefs.h >>conftest.$ac_ext
2760
cat >>conftest.$ac_ext <<_ACEOF
2761
/* end confdefs.h.  */
2762
 
2763
int
2764
main ()
2765
{
2766
#ifndef __GNUC__
2767
       choke me
2768
#endif
2769
 
2770
  ;
2771
  return 0;
2772
}
2773
_ACEOF
2774
rm -f conftest.$ac_objext
2775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776
  (eval $ac_compile) 2>conftest.er1
2777
  ac_status=$?
2778
  grep -v '^ *+' conftest.er1 >conftest.err
2779
  rm -f conftest.er1
2780
  cat conftest.err >&5
2781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782
  (exit $ac_status); } &&
2783
         { ac_try='test -z "$ac_c_werror_flag"
2784
                         || test ! -s conftest.err'
2785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786
  (eval $ac_try) 2>&5
2787
  ac_status=$?
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
  (exit $ac_status); }; } &&
2790
         { ac_try='test -s conftest.$ac_objext'
2791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792
  (eval $ac_try) 2>&5
2793
  ac_status=$?
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
  (exit $ac_status); }; }; then
2796
  ac_compiler_gnu=yes
2797
else
2798
  echo "$as_me: failed program was:" >&5
2799
sed 's/^/| /' conftest.$ac_ext >&5
2800
 
2801
ac_compiler_gnu=no
2802
fi
2803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2805
 
2806
fi
2807
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2808
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2809
GCC=`test $ac_compiler_gnu = yes && echo yes`
2810
ac_test_CFLAGS=${CFLAGS+set}
2811
ac_save_CFLAGS=$CFLAGS
2812
CFLAGS="-g"
2813
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2814
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2815
if test "${ac_cv_prog_cc_g+set}" = set; then
2816
  echo $ECHO_N "(cached) $ECHO_C" >&6
2817
else
2818
  cat >conftest.$ac_ext <<_ACEOF
2819
/* confdefs.h.  */
2820
_ACEOF
2821
cat confdefs.h >>conftest.$ac_ext
2822
cat >>conftest.$ac_ext <<_ACEOF
2823
/* end confdefs.h.  */
2824
 
2825
int
2826
main ()
2827
{
2828
 
2829
  ;
2830
  return 0;
2831
}
2832
_ACEOF
2833
rm -f conftest.$ac_objext
2834
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835
  (eval $ac_compile) 2>conftest.er1
2836
  ac_status=$?
2837
  grep -v '^ *+' conftest.er1 >conftest.err
2838
  rm -f conftest.er1
2839
  cat conftest.err >&5
2840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
  (exit $ac_status); } &&
2842
         { ac_try='test -z "$ac_c_werror_flag"
2843
                         || test ! -s conftest.err'
2844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845
  (eval $ac_try) 2>&5
2846
  ac_status=$?
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); }; } &&
2849
         { ac_try='test -s conftest.$ac_objext'
2850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
  (eval $ac_try) 2>&5
2852
  ac_status=$?
2853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
  (exit $ac_status); }; }; then
2855
  ac_cv_prog_cc_g=yes
2856
else
2857
  echo "$as_me: failed program was:" >&5
2858
sed 's/^/| /' conftest.$ac_ext >&5
2859
 
2860
ac_cv_prog_cc_g=no
2861
fi
2862
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863
fi
2864
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2865
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2866
if test "$ac_test_CFLAGS" = set; then
2867
  CFLAGS=$ac_save_CFLAGS
2868
elif test $ac_cv_prog_cc_g = yes; then
2869
  if test "$GCC" = yes; then
2870
    CFLAGS="-g -O2"
2871
  else
2872
    CFLAGS="-g"
2873
  fi
2874
else
2875
  if test "$GCC" = yes; then
2876
    CFLAGS="-O2"
2877
  else
2878
    CFLAGS=
2879
  fi
2880
fi
2881
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2882
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2883
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2884
  echo $ECHO_N "(cached) $ECHO_C" >&6
2885
else
2886
  ac_cv_prog_cc_stdc=no
2887
ac_save_CC=$CC
2888
cat >conftest.$ac_ext <<_ACEOF
2889
/* confdefs.h.  */
2890
_ACEOF
2891
cat confdefs.h >>conftest.$ac_ext
2892
cat >>conftest.$ac_ext <<_ACEOF
2893
/* end confdefs.h.  */
2894
#include 
2895
#include 
2896
#include 
2897
#include 
2898
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2899
struct buf { int x; };
2900
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901
static char *e (p, i)
2902
     char **p;
2903
     int i;
2904
{
2905
  return p[i];
2906
}
2907
static char *f (char * (*g) (char **, int), char **p, ...)
2908
{
2909
  char *s;
2910
  va_list v;
2911
  va_start (v,p);
2912
  s = g (p, va_arg (v,int));
2913
  va_end (v);
2914
  return s;
2915
}
2916
 
2917
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2918
   function prototypes and stuff, but not '\xHH' hex character constants.
2919
   These don't provoke an error unfortunately, instead are silently treated
2920
   as 'x'.  The following induces an error, until -std1 is added to get
2921
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2922
   array size at least.  It's necessary to write '\x00'==0 to get something
2923
   that's true only with -std1.  */
2924
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2925
 
2926
int test (int i, double x);
2927
struct s1 {int (*f) (int a);};
2928
struct s2 {int (*f) (double a);};
2929
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2930
int argc;
2931
char **argv;
2932
int
2933
main ()
2934
{
2935
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2936
  ;
2937
  return 0;
2938
}
2939
_ACEOF
2940
# Don't try gcc -ansi; that turns off useful extensions and
2941
# breaks some systems' header files.
2942
# AIX                   -qlanglvl=ansi
2943
# Ultrix and OSF/1      -std1
2944
# HP-UX 10.20 and later -Ae
2945
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2946
# SVR4                  -Xc -D__EXTENSIONS__
2947
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2948
do
2949
  CC="$ac_save_CC $ac_arg"
2950
  rm -f conftest.$ac_objext
2951
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952
  (eval $ac_compile) 2>conftest.er1
2953
  ac_status=$?
2954
  grep -v '^ *+' conftest.er1 >conftest.err
2955
  rm -f conftest.er1
2956
  cat conftest.err >&5
2957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
  (exit $ac_status); } &&
2959
         { ac_try='test -z "$ac_c_werror_flag"
2960
                         || test ! -s conftest.err'
2961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962
  (eval $ac_try) 2>&5
2963
  ac_status=$?
2964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965
  (exit $ac_status); }; } &&
2966
         { ac_try='test -s conftest.$ac_objext'
2967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968
  (eval $ac_try) 2>&5
2969
  ac_status=$?
2970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971
  (exit $ac_status); }; }; then
2972
  ac_cv_prog_cc_stdc=$ac_arg
2973
break
2974
else
2975
  echo "$as_me: failed program was:" >&5
2976
sed 's/^/| /' conftest.$ac_ext >&5
2977
 
2978
fi
2979
rm -f conftest.err conftest.$ac_objext
2980
done
2981
rm -f conftest.$ac_ext conftest.$ac_objext
2982
CC=$ac_save_CC
2983
 
2984
fi
2985
 
2986
case "x$ac_cv_prog_cc_stdc" in
2987
  x|xno)
2988
    echo "$as_me:$LINENO: result: none needed" >&5
2989
echo "${ECHO_T}none needed" >&6 ;;
2990
  *)
2991
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2992
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2993
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2994
esac
2995
 
2996
# Some people use a C++ compiler to compile C.  Since we use `exit',
2997
# in C++ we need to declare it.  In case someone uses the same compiler
2998
# for both compiling C and C++ we need to have the C++ compiler decide
2999
# the declaration of exit, since it's the most demanding environment.
3000
cat >conftest.$ac_ext <<_ACEOF
3001
#ifndef __cplusplus
3002
  choke me
3003
#endif
3004
_ACEOF
3005
rm -f conftest.$ac_objext
3006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007
  (eval $ac_compile) 2>conftest.er1
3008
  ac_status=$?
3009
  grep -v '^ *+' conftest.er1 >conftest.err
3010
  rm -f conftest.er1
3011
  cat conftest.err >&5
3012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013
  (exit $ac_status); } &&
3014
         { ac_try='test -z "$ac_c_werror_flag"
3015
                         || test ! -s conftest.err'
3016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017
  (eval $ac_try) 2>&5
3018
  ac_status=$?
3019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
  (exit $ac_status); }; } &&
3021
         { ac_try='test -s conftest.$ac_objext'
3022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023
  (eval $ac_try) 2>&5
3024
  ac_status=$?
3025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
  (exit $ac_status); }; }; then
3027
  for ac_declaration in \
3028
   '' \
3029
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3030
   'extern "C" void std::exit (int); using std::exit;' \
3031
   'extern "C" void exit (int) throw ();' \
3032
   'extern "C" void exit (int);' \
3033
   'void exit (int);'
3034
do
3035
  cat >conftest.$ac_ext <<_ACEOF
3036
/* confdefs.h.  */
3037
_ACEOF
3038
cat confdefs.h >>conftest.$ac_ext
3039
cat >>conftest.$ac_ext <<_ACEOF
3040
/* end confdefs.h.  */
3041
$ac_declaration
3042
#include 
3043
int
3044
main ()
3045
{
3046
exit (42);
3047
  ;
3048
  return 0;
3049
}
3050
_ACEOF
3051
rm -f conftest.$ac_objext
3052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053
  (eval $ac_compile) 2>conftest.er1
3054
  ac_status=$?
3055
  grep -v '^ *+' conftest.er1 >conftest.err
3056
  rm -f conftest.er1
3057
  cat conftest.err >&5
3058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059
  (exit $ac_status); } &&
3060
         { ac_try='test -z "$ac_c_werror_flag"
3061
                         || test ! -s conftest.err'
3062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063
  (eval $ac_try) 2>&5
3064
  ac_status=$?
3065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
  (exit $ac_status); }; } &&
3067
         { ac_try='test -s conftest.$ac_objext'
3068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069
  (eval $ac_try) 2>&5
3070
  ac_status=$?
3071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
  (exit $ac_status); }; }; then
3073
  :
3074
else
3075
  echo "$as_me: failed program was:" >&5
3076
sed 's/^/| /' conftest.$ac_ext >&5
3077
 
3078
continue
3079
fi
3080
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081
  cat >conftest.$ac_ext <<_ACEOF
3082
/* confdefs.h.  */
3083
_ACEOF
3084
cat confdefs.h >>conftest.$ac_ext
3085
cat >>conftest.$ac_ext <<_ACEOF
3086
/* end confdefs.h.  */
3087
$ac_declaration
3088
int
3089
main ()
3090
{
3091
exit (42);
3092
  ;
3093
  return 0;
3094
}
3095
_ACEOF
3096
rm -f conftest.$ac_objext
3097
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098
  (eval $ac_compile) 2>conftest.er1
3099
  ac_status=$?
3100
  grep -v '^ *+' conftest.er1 >conftest.err
3101
  rm -f conftest.er1
3102
  cat conftest.err >&5
3103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
  (exit $ac_status); } &&
3105
         { ac_try='test -z "$ac_c_werror_flag"
3106
                         || test ! -s conftest.err'
3107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108
  (eval $ac_try) 2>&5
3109
  ac_status=$?
3110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111
  (exit $ac_status); }; } &&
3112
         { ac_try='test -s conftest.$ac_objext'
3113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114
  (eval $ac_try) 2>&5
3115
  ac_status=$?
3116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117
  (exit $ac_status); }; }; then
3118
  break
3119
else
3120
  echo "$as_me: failed program was:" >&5
3121
sed 's/^/| /' conftest.$ac_ext >&5
3122
 
3123
fi
3124
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125
done
3126
rm -f conftest*
3127
if test -n "$ac_declaration"; then
3128
  echo '#ifdef __cplusplus' >>confdefs.h
3129
  echo $ac_declaration      >>confdefs.h
3130
  echo '#endif'             >>confdefs.h
3131
fi
3132
 
3133
else
3134
  echo "$as_me: failed program was:" >&5
3135
sed 's/^/| /' conftest.$ac_ext >&5
3136
 
3137
fi
3138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3139
ac_ext=c
3140
ac_cpp='$CPP $CPPFLAGS'
3141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144
 
3145
depcc="$CC"   am_compiler_list=
3146
 
3147
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3148
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3149
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3150
  echo $ECHO_N "(cached) $ECHO_C" >&6
3151
else
3152
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3153
  # We make a subdir and do the tests there.  Otherwise we can end up
3154
  # making bogus files that we don't know about and never remove.  For
3155
  # instance it was reported that on HP-UX the gcc test will end up
3156
  # making a dummy file named `D' -- because `-MD' means `put the output
3157
  # in D'.
3158
  mkdir conftest.dir
3159
  # Copy depcomp to subdir because otherwise we won't find it if we're
3160
  # using a relative directory.
3161
  cp "$am_depcomp" conftest.dir
3162
  cd conftest.dir
3163
  # We will build objects and dependencies in a subdirectory because
3164
  # it helps to detect inapplicable dependency modes.  For instance
3165
  # both Tru64's cc and ICC support -MD to output dependencies as a
3166
  # side effect of compilation, but ICC will put the dependencies in
3167
  # the current directory while Tru64 will put them in the object
3168
  # directory.
3169
  mkdir sub
3170
 
3171
  am_cv_CC_dependencies_compiler_type=none
3172
  if test "$am_compiler_list" = ""; then
3173
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3174
  fi
3175
  for depmode in $am_compiler_list; do
3176
    # Setup a source with many dependencies, because some compilers
3177
    # like to wrap large dependency lists on column 80 (with \), and
3178
    # we should not choose a depcomp mode which is confused by this.
3179
    #
3180
    # We need to recreate these files for each test, as the compiler may
3181
    # overwrite some of them when testing with obscure command lines.
3182
    # This happens at least with the AIX C compiler.
3183
    : > sub/conftest.c
3184
    for i in 1 2 3 4 5 6; do
3185
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3186
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3187
      # Solaris 8's {/usr,}/bin/sh.
3188
      touch sub/conftst$i.h
3189
    done
3190
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3191
 
3192
    case $depmode in
3193
    nosideeffect)
3194
      # after this tag, mechanisms are not by side-effect, so they'll
3195
      # only be used when explicitly requested
3196
      if test "x$enable_dependency_tracking" = xyes; then
3197
        continue
3198
      else
3199
        break
3200
      fi
3201
      ;;
3202
    none) break ;;
3203
    esac
3204
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3205
    # mode.  It turns out that the SunPro C++ compiler does not properly
3206
    # handle `-M -o', and we need to detect this.
3207
    if depmode=$depmode \
3208
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3209
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3210
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3211
         >/dev/null 2>conftest.err &&
3212
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3213
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3214
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3215
      # icc doesn't choke on unknown options, it will just issue warnings
3216
      # or remarks (even with -Werror).  So we grep stderr for any message
3217
      # that says an option was ignored or not supported.
3218
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3219
      #   icc: Command line warning: ignoring option '-M'; no argument required
3220
      # The diagnosis changed in icc 8.0:
3221
      #   icc: Command line remark: option '-MP' not supported
3222
      if (grep 'ignoring option' conftest.err ||
3223
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3224
        am_cv_CC_dependencies_compiler_type=$depmode
3225
        break
3226
      fi
3227
    fi
3228
  done
3229
 
3230
  cd ..
3231
  rm -rf conftest.dir
3232
else
3233
  am_cv_CC_dependencies_compiler_type=none
3234
fi
3235
 
3236
fi
3237
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3238
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3239
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3240
 
3241
 
3242
 
3243
if
3244
  test "x$enable_dependency_tracking" != xno \
3245
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3246
  am__fastdepCC_TRUE=
3247
  am__fastdepCC_FALSE='#'
3248
else
3249
  am__fastdepCC_TRUE='#'
3250
  am__fastdepCC_FALSE=
3251
fi
3252
 
3253
 
3254
 
3255
ac_ext=c
3256
ac_cpp='$CPP $CPPFLAGS'
3257
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3261
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3262
# On Suns, sometimes $CPP names a directory.
3263
if test -n "$CPP" && test -d "$CPP"; then
3264
  CPP=
3265
fi
3266
if test -z "$CPP"; then
3267
  if test "${ac_cv_prog_CPP+set}" = set; then
3268
  echo $ECHO_N "(cached) $ECHO_C" >&6
3269
else
3270
      # Double quotes because CPP needs to be expanded
3271
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3272
    do
3273
      ac_preproc_ok=false
3274
for ac_c_preproc_warn_flag in '' yes
3275
do
3276
  # Use a header file that comes with gcc, so configuring glibc
3277
  # with a fresh cross-compiler works.
3278
  # Prefer  to  if __STDC__ is defined, since
3279
  #  exists even on freestanding compilers.
3280
  # On the NeXT, cc -E runs the code through the compiler's parser,
3281
  # not just through cpp. "Syntax error" is here to catch this case.
3282
  cat >conftest.$ac_ext <<_ACEOF
3283
/* confdefs.h.  */
3284
_ACEOF
3285
cat confdefs.h >>conftest.$ac_ext
3286
cat >>conftest.$ac_ext <<_ACEOF
3287
/* end confdefs.h.  */
3288
#ifdef __STDC__
3289
# include 
3290
#else
3291
# include 
3292
#endif
3293
                     Syntax error
3294
_ACEOF
3295
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297
  ac_status=$?
3298
  grep -v '^ *+' conftest.er1 >conftest.err
3299
  rm -f conftest.er1
3300
  cat conftest.err >&5
3301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302
  (exit $ac_status); } >/dev/null; then
3303
  if test -s conftest.err; then
3304
    ac_cpp_err=$ac_c_preproc_warn_flag
3305
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306
  else
3307
    ac_cpp_err=
3308
  fi
3309
else
3310
  ac_cpp_err=yes
3311
fi
3312
if test -z "$ac_cpp_err"; then
3313
  :
3314
else
3315
  echo "$as_me: failed program was:" >&5
3316
sed 's/^/| /' conftest.$ac_ext >&5
3317
 
3318
  # Broken: fails on valid input.
3319
continue
3320
fi
3321
rm -f conftest.err conftest.$ac_ext
3322
 
3323
  # OK, works on sane cases.  Now check whether non-existent headers
3324
  # can be detected and how.
3325
  cat >conftest.$ac_ext <<_ACEOF
3326
/* confdefs.h.  */
3327
_ACEOF
3328
cat confdefs.h >>conftest.$ac_ext
3329
cat >>conftest.$ac_ext <<_ACEOF
3330
/* end confdefs.h.  */
3331
#include 
3332
_ACEOF
3333
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335
  ac_status=$?
3336
  grep -v '^ *+' conftest.er1 >conftest.err
3337
  rm -f conftest.er1
3338
  cat conftest.err >&5
3339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340
  (exit $ac_status); } >/dev/null; then
3341
  if test -s conftest.err; then
3342
    ac_cpp_err=$ac_c_preproc_warn_flag
3343
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344
  else
3345
    ac_cpp_err=
3346
  fi
3347
else
3348
  ac_cpp_err=yes
3349
fi
3350
if test -z "$ac_cpp_err"; then
3351
  # Broken: success on invalid input.
3352
continue
3353
else
3354
  echo "$as_me: failed program was:" >&5
3355
sed 's/^/| /' conftest.$ac_ext >&5
3356
 
3357
  # Passes both tests.
3358
ac_preproc_ok=:
3359
break
3360
fi
3361
rm -f conftest.err conftest.$ac_ext
3362
 
3363
done
3364
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3365
rm -f conftest.err conftest.$ac_ext
3366
if $ac_preproc_ok; then
3367
  break
3368
fi
3369
 
3370
    done
3371
    ac_cv_prog_CPP=$CPP
3372
 
3373
fi
3374
  CPP=$ac_cv_prog_CPP
3375
else
3376
  ac_cv_prog_CPP=$CPP
3377
fi
3378
echo "$as_me:$LINENO: result: $CPP" >&5
3379
echo "${ECHO_T}$CPP" >&6
3380
ac_preproc_ok=false
3381
for ac_c_preproc_warn_flag in '' yes
3382
do
3383
  # Use a header file that comes with gcc, so configuring glibc
3384
  # with a fresh cross-compiler works.
3385
  # Prefer  to  if __STDC__ is defined, since
3386
  #  exists even on freestanding compilers.
3387
  # On the NeXT, cc -E runs the code through the compiler's parser,
3388
  # not just through cpp. "Syntax error" is here to catch this case.
3389
  cat >conftest.$ac_ext <<_ACEOF
3390
/* confdefs.h.  */
3391
_ACEOF
3392
cat confdefs.h >>conftest.$ac_ext
3393
cat >>conftest.$ac_ext <<_ACEOF
3394
/* end confdefs.h.  */
3395
#ifdef __STDC__
3396
# include 
3397
#else
3398
# include 
3399
#endif
3400
                     Syntax error
3401
_ACEOF
3402
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3403
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3404
  ac_status=$?
3405
  grep -v '^ *+' conftest.er1 >conftest.err
3406
  rm -f conftest.er1
3407
  cat conftest.err >&5
3408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409
  (exit $ac_status); } >/dev/null; then
3410
  if test -s conftest.err; then
3411
    ac_cpp_err=$ac_c_preproc_warn_flag
3412
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413
  else
3414
    ac_cpp_err=
3415
  fi
3416
else
3417
  ac_cpp_err=yes
3418
fi
3419
if test -z "$ac_cpp_err"; then
3420
  :
3421
else
3422
  echo "$as_me: failed program was:" >&5
3423
sed 's/^/| /' conftest.$ac_ext >&5
3424
 
3425
  # Broken: fails on valid input.
3426
continue
3427
fi
3428
rm -f conftest.err conftest.$ac_ext
3429
 
3430
  # OK, works on sane cases.  Now check whether non-existent headers
3431
  # can be detected and how.
3432
  cat >conftest.$ac_ext <<_ACEOF
3433
/* confdefs.h.  */
3434
_ACEOF
3435
cat confdefs.h >>conftest.$ac_ext
3436
cat >>conftest.$ac_ext <<_ACEOF
3437
/* end confdefs.h.  */
3438
#include 
3439
_ACEOF
3440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442
  ac_status=$?
3443
  grep -v '^ *+' conftest.er1 >conftest.err
3444
  rm -f conftest.er1
3445
  cat conftest.err >&5
3446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447
  (exit $ac_status); } >/dev/null; then
3448
  if test -s conftest.err; then
3449
    ac_cpp_err=$ac_c_preproc_warn_flag
3450
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451
  else
3452
    ac_cpp_err=
3453
  fi
3454
else
3455
  ac_cpp_err=yes
3456
fi
3457
if test -z "$ac_cpp_err"; then
3458
  # Broken: success on invalid input.
3459
continue
3460
else
3461
  echo "$as_me: failed program was:" >&5
3462
sed 's/^/| /' conftest.$ac_ext >&5
3463
 
3464
  # Passes both tests.
3465
ac_preproc_ok=:
3466
break
3467
fi
3468
rm -f conftest.err conftest.$ac_ext
3469
 
3470
done
3471
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472
rm -f conftest.err conftest.$ac_ext
3473
if $ac_preproc_ok; then
3474
  :
3475
else
3476
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477
See \`config.log' for more details." >&5
3478
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479
See \`config.log' for more details." >&2;}
3480
   { (exit 1); exit 1; }; }
3481
fi
3482
 
3483
ac_ext=c
3484
ac_cpp='$CPP $CPPFLAGS'
3485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
 
3489
 
3490
echo "$as_me:$LINENO: checking for egrep" >&5
3491
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3492
if test "${ac_cv_prog_egrep+set}" = set; then
3493
  echo $ECHO_N "(cached) $ECHO_C" >&6
3494
else
3495
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3496
    then ac_cv_prog_egrep='grep -E'
3497
    else ac_cv_prog_egrep='egrep'
3498
    fi
3499
fi
3500
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3501
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3502
 EGREP=$ac_cv_prog_egrep
3503
 
3504
 
3505
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3506
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3507
if test "${ac_cv_header_stdc+set}" = set; then
3508
  echo $ECHO_N "(cached) $ECHO_C" >&6
3509
else
3510
  cat >conftest.$ac_ext <<_ACEOF
3511
/* confdefs.h.  */
3512
_ACEOF
3513
cat confdefs.h >>conftest.$ac_ext
3514
cat >>conftest.$ac_ext <<_ACEOF
3515
/* end confdefs.h.  */
3516
#include 
3517
#include 
3518
#include 
3519
#include 
3520
 
3521
int
3522
main ()
3523
{
3524
 
3525
  ;
3526
  return 0;
3527
}
3528
_ACEOF
3529
rm -f conftest.$ac_objext
3530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531
  (eval $ac_compile) 2>conftest.er1
3532
  ac_status=$?
3533
  grep -v '^ *+' conftest.er1 >conftest.err
3534
  rm -f conftest.er1
3535
  cat conftest.err >&5
3536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537
  (exit $ac_status); } &&
3538
         { ac_try='test -z "$ac_c_werror_flag"
3539
                         || test ! -s conftest.err'
3540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541
  (eval $ac_try) 2>&5
3542
  ac_status=$?
3543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544
  (exit $ac_status); }; } &&
3545
         { ac_try='test -s conftest.$ac_objext'
3546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547
  (eval $ac_try) 2>&5
3548
  ac_status=$?
3549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550
  (exit $ac_status); }; }; then
3551
  ac_cv_header_stdc=yes
3552
else
3553
  echo "$as_me: failed program was:" >&5
3554
sed 's/^/| /' conftest.$ac_ext >&5
3555
 
3556
ac_cv_header_stdc=no
3557
fi
3558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559
 
3560
if test $ac_cv_header_stdc = yes; then
3561
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562
  cat >conftest.$ac_ext <<_ACEOF
3563
/* confdefs.h.  */
3564
_ACEOF
3565
cat confdefs.h >>conftest.$ac_ext
3566
cat >>conftest.$ac_ext <<_ACEOF
3567
/* end confdefs.h.  */
3568
#include 
3569
 
3570
_ACEOF
3571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572
  $EGREP "memchr" >/dev/null 2>&1; then
3573
  :
3574
else
3575
  ac_cv_header_stdc=no
3576
fi
3577
rm -f conftest*
3578
 
3579
fi
3580
 
3581
if test $ac_cv_header_stdc = yes; then
3582
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3583
  cat >conftest.$ac_ext <<_ACEOF
3584
/* confdefs.h.  */
3585
_ACEOF
3586
cat confdefs.h >>conftest.$ac_ext
3587
cat >>conftest.$ac_ext <<_ACEOF
3588
/* end confdefs.h.  */
3589
#include 
3590
 
3591
_ACEOF
3592
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593
  $EGREP "free" >/dev/null 2>&1; then
3594
  :
3595
else
3596
  ac_cv_header_stdc=no
3597
fi
3598
rm -f conftest*
3599
 
3600
fi
3601
 
3602
if test $ac_cv_header_stdc = yes; then
3603
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3604
  if test "$cross_compiling" = yes; then
3605
  :
3606
else
3607
  cat >conftest.$ac_ext <<_ACEOF
3608
/* confdefs.h.  */
3609
_ACEOF
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h.  */
3613
#include 
3614
#if ((' ' & 0x0FF) == 0x020)
3615
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3617
#else
3618
# define ISLOWER(c) \
3619
                   (('a' <= (c) && (c) <= 'i') \
3620
                     || ('j' <= (c) && (c) <= 'r') \
3621
                     || ('s' <= (c) && (c) <= 'z'))
3622
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3623
#endif
3624
 
3625
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3626
int
3627
main ()
3628
{
3629
  int i;
3630
  for (i = 0; i < 256; i++)
3631
    if (XOR (islower (i), ISLOWER (i))
3632
        || toupper (i) != TOUPPER (i))
3633
      exit(2);
3634
  exit (0);
3635
}
3636
_ACEOF
3637
rm -f conftest$ac_exeext
3638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639
  (eval $ac_link) 2>&5
3640
  ac_status=$?
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644
  (eval $ac_try) 2>&5
3645
  ac_status=$?
3646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
  (exit $ac_status); }; }; then
3648
  :
3649
else
3650
  echo "$as_me: program exited with status $ac_status" >&5
3651
echo "$as_me: failed program was:" >&5
3652
sed 's/^/| /' conftest.$ac_ext >&5
3653
 
3654
( exit $ac_status )
3655
ac_cv_header_stdc=no
3656
fi
3657
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3658
fi
3659
fi
3660
fi
3661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3663
if test $ac_cv_header_stdc = yes; then
3664
 
3665
cat >>confdefs.h <<\_ACEOF
3666
#define STDC_HEADERS 1
3667
_ACEOF
3668
 
3669
fi
3670
 
3671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3672
 
3673
 
3674
 
3675
 
3676
 
3677
 
3678
 
3679
 
3680
 
3681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3682
                  inttypes.h stdint.h unistd.h
3683
do
3684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3685
echo "$as_me:$LINENO: checking for $ac_header" >&5
3686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3688
  echo $ECHO_N "(cached) $ECHO_C" >&6
3689
else
3690
  cat >conftest.$ac_ext <<_ACEOF
3691
/* confdefs.h.  */
3692
_ACEOF
3693
cat confdefs.h >>conftest.$ac_ext
3694
cat >>conftest.$ac_ext <<_ACEOF
3695
/* end confdefs.h.  */
3696
$ac_includes_default
3697
 
3698
#include <$ac_header>
3699
_ACEOF
3700
rm -f conftest.$ac_objext
3701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702
  (eval $ac_compile) 2>conftest.er1
3703
  ac_status=$?
3704
  grep -v '^ *+' conftest.er1 >conftest.err
3705
  rm -f conftest.er1
3706
  cat conftest.err >&5
3707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708
  (exit $ac_status); } &&
3709
         { ac_try='test -z "$ac_c_werror_flag"
3710
                         || test ! -s conftest.err'
3711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712
  (eval $ac_try) 2>&5
3713
  ac_status=$?
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
  (exit $ac_status); }; } &&
3716
         { ac_try='test -s conftest.$ac_objext'
3717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
  (eval $ac_try) 2>&5
3719
  ac_status=$?
3720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721
  (exit $ac_status); }; }; then
3722
  eval "$as_ac_Header=yes"
3723
else
3724
  echo "$as_me: failed program was:" >&5
3725
sed 's/^/| /' conftest.$ac_ext >&5
3726
 
3727
eval "$as_ac_Header=no"
3728
fi
3729
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730
fi
3731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734
  cat >>confdefs.h <<_ACEOF
3735
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3736
_ACEOF
3737
 
3738
fi
3739
 
3740
done
3741
 
3742
 
3743
# Check whether --enable-alsa or --disable-alsa was given.
3744
if test "${enable_alsa+set}" = set; then
3745
  enableval="$enable_alsa"
3746
  case "${enableval}" in
3747
                yes) COMPILE_ALSA=yes ;;
3748
                no) COMPILE_ALSA=no ;;
3749
                *) COMPILE_ALSA=yes ;;
3750
              esac
3751
else
3752
 
3753
for ac_header in alsa/asoundlib.h
3754
do
3755
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3757
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3758
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3759
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3760
  echo $ECHO_N "(cached) $ECHO_C" >&6
3761
fi
3762
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3763
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3764
else
3765
  # Is the header compilable?
3766
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3767
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3768
cat >conftest.$ac_ext <<_ACEOF
3769
/* confdefs.h.  */
3770
_ACEOF
3771
cat confdefs.h >>conftest.$ac_ext
3772
cat >>conftest.$ac_ext <<_ACEOF
3773
/* end confdefs.h.  */
3774
$ac_includes_default
3775
#include <$ac_header>
3776
_ACEOF
3777
rm -f conftest.$ac_objext
3778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779
  (eval $ac_compile) 2>conftest.er1
3780
  ac_status=$?
3781
  grep -v '^ *+' conftest.er1 >conftest.err
3782
  rm -f conftest.er1
3783
  cat conftest.err >&5
3784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
  (exit $ac_status); } &&
3786
         { ac_try='test -z "$ac_c_werror_flag"
3787
                         || test ! -s conftest.err'
3788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789
  (eval $ac_try) 2>&5
3790
  ac_status=$?
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
  (exit $ac_status); }; } &&
3793
         { ac_try='test -s conftest.$ac_objext'
3794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795
  (eval $ac_try) 2>&5
3796
  ac_status=$?
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
  (exit $ac_status); }; }; then
3799
  ac_header_compiler=yes
3800
else
3801
  echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3803
 
3804
ac_header_compiler=no
3805
fi
3806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3808
echo "${ECHO_T}$ac_header_compiler" >&6
3809
 
3810
# Is the header present?
3811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3813
cat >conftest.$ac_ext <<_ACEOF
3814
/* confdefs.h.  */
3815
_ACEOF
3816
cat confdefs.h >>conftest.$ac_ext
3817
cat >>conftest.$ac_ext <<_ACEOF
3818
/* end confdefs.h.  */
3819
#include <$ac_header>
3820
_ACEOF
3821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823
  ac_status=$?
3824
  grep -v '^ *+' conftest.er1 >conftest.err
3825
  rm -f conftest.er1
3826
  cat conftest.err >&5
3827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828
  (exit $ac_status); } >/dev/null; then
3829
  if test -s conftest.err; then
3830
    ac_cpp_err=$ac_c_preproc_warn_flag
3831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3832
  else
3833
    ac_cpp_err=
3834
  fi
3835
else
3836
  ac_cpp_err=yes
3837
fi
3838
if test -z "$ac_cpp_err"; then
3839
  ac_header_preproc=yes
3840
else
3841
  echo "$as_me: failed program was:" >&5
3842
sed 's/^/| /' conftest.$ac_ext >&5
3843
 
3844
  ac_header_preproc=no
3845
fi
3846
rm -f conftest.err conftest.$ac_ext
3847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3848
echo "${ECHO_T}$ac_header_preproc" >&6
3849
 
3850
# So?  What about this header?
3851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3852
  yes:no: )
3853
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3855
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3857
    ac_header_preproc=yes
3858
    ;;
3859
  no:yes:* )
3860
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3862
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3863
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3864
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3866
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3867
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3868
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3870
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3872
    (
3873
      cat <<\_ASBOX
3874
## -------------------------------- ##
3875
## Report this to classpath@gnu.org ##
3876
## -------------------------------- ##
3877
_ASBOX
3878
    ) |
3879
      sed "s/^/$as_me: WARNING:     /" >&2
3880
    ;;
3881
esac
3882
echo "$as_me:$LINENO: checking for $ac_header" >&5
3883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3885
  echo $ECHO_N "(cached) $ECHO_C" >&6
3886
else
3887
  eval "$as_ac_Header=\$ac_header_preproc"
3888
fi
3889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3891
 
3892
fi
3893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3894
  cat >>confdefs.h <<_ACEOF
3895
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3896
_ACEOF
3897
 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3898
echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3899
if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3900
  echo $ECHO_N "(cached) $ECHO_C" >&6
3901
else
3902
  ac_check_lib_save_LIBS=$LIBS
3903
LIBS="-lasound  $LIBS"
3904
if test x$gcc_no_link = xyes; then
3905
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3906
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3907
   { (exit 1); exit 1; }; }
3908
fi
3909
cat >conftest.$ac_ext <<_ACEOF
3910
/* confdefs.h.  */
3911
_ACEOF
3912
cat confdefs.h >>conftest.$ac_ext
3913
cat >>conftest.$ac_ext <<_ACEOF
3914
/* end confdefs.h.  */
3915
 
3916
/* Override any gcc2 internal prototype to avoid an error.  */
3917
#ifdef __cplusplus
3918
extern "C"
3919
#endif
3920
/* We use char because int might match the return type of a gcc2
3921
   builtin and then its argument prototype would still apply.  */
3922
char snd_seq_open ();
3923
int
3924
main ()
3925
{
3926
snd_seq_open ();
3927
  ;
3928
  return 0;
3929
}
3930
_ACEOF
3931
rm -f conftest.$ac_objext conftest$ac_exeext
3932
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933
  (eval $ac_link) 2>conftest.er1
3934
  ac_status=$?
3935
  grep -v '^ *+' conftest.er1 >conftest.err
3936
  rm -f conftest.er1
3937
  cat conftest.err >&5
3938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939
  (exit $ac_status); } &&
3940
         { ac_try='test -z "$ac_c_werror_flag"
3941
                         || test ! -s conftest.err'
3942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943
  (eval $ac_try) 2>&5
3944
  ac_status=$?
3945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
  (exit $ac_status); }; } &&
3947
         { ac_try='test -s conftest$ac_exeext'
3948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949
  (eval $ac_try) 2>&5
3950
  ac_status=$?
3951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952
  (exit $ac_status); }; }; then
3953
  ac_cv_lib_asound_snd_seq_open=yes
3954
else
3955
  echo "$as_me: failed program was:" >&5
3956
sed 's/^/| /' conftest.$ac_ext >&5
3957
 
3958
ac_cv_lib_asound_snd_seq_open=no
3959
fi
3960
rm -f conftest.err conftest.$ac_objext \
3961
      conftest$ac_exeext conftest.$ac_ext
3962
LIBS=$ac_check_lib_save_LIBS
3963
fi
3964
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
3965
echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
3966
if test $ac_cv_lib_asound_snd_seq_open = yes; then
3967
  COMPILE_ALSA=yes
3968
else
3969
  COMPILE_ALSA=no
3970
fi
3971
 
3972
else
3973
  COMPILE_ALSA=no
3974
fi
3975
 
3976
done
3977
 
3978
fi;
3979
 
3980
 
3981
if test "x${COMPILE_ALSA}" = xyes; then
3982
  CREATE_ALSA_LIBRARIES_TRUE=
3983
  CREATE_ALSA_LIBRARIES_FALSE='#'
3984
else
3985
  CREATE_ALSA_LIBRARIES_TRUE='#'
3986
  CREATE_ALSA_LIBRARIES_FALSE=
3987
fi
3988
 
3989
 
3990
# Check whether --enable-dssi or --disable-dssi was given.
3991
if test "${enable_dssi+set}" = set; then
3992
  enableval="$enable_dssi"
3993
  case "${enableval}" in
3994
                yes) COMPILE_DSSI=yes ;;
3995
                no) COMPILE_DSSI=no ;;
3996
                *) COMPILE_DSSI=yes ;;
3997
              esac
3998
else
3999
 
4000
for ac_header in dssi.h
4001
do
4002
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4003
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4004
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4005
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4006
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4007
  echo $ECHO_N "(cached) $ECHO_C" >&6
4008
fi
4009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4010
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4011
else
4012
  # Is the header compilable?
4013
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4014
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4015
cat >conftest.$ac_ext <<_ACEOF
4016
/* confdefs.h.  */
4017
_ACEOF
4018
cat confdefs.h >>conftest.$ac_ext
4019
cat >>conftest.$ac_ext <<_ACEOF
4020
/* end confdefs.h.  */
4021
$ac_includes_default
4022
#include <$ac_header>
4023
_ACEOF
4024
rm -f conftest.$ac_objext
4025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026
  (eval $ac_compile) 2>conftest.er1
4027
  ac_status=$?
4028
  grep -v '^ *+' conftest.er1 >conftest.err
4029
  rm -f conftest.er1
4030
  cat conftest.err >&5
4031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032
  (exit $ac_status); } &&
4033
         { ac_try='test -z "$ac_c_werror_flag"
4034
                         || test ! -s conftest.err'
4035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036
  (eval $ac_try) 2>&5
4037
  ac_status=$?
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039
  (exit $ac_status); }; } &&
4040
         { ac_try='test -s conftest.$ac_objext'
4041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042
  (eval $ac_try) 2>&5
4043
  ac_status=$?
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
  (exit $ac_status); }; }; then
4046
  ac_header_compiler=yes
4047
else
4048
  echo "$as_me: failed program was:" >&5
4049
sed 's/^/| /' conftest.$ac_ext >&5
4050
 
4051
ac_header_compiler=no
4052
fi
4053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4054
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4055
echo "${ECHO_T}$ac_header_compiler" >&6
4056
 
4057
# Is the header present?
4058
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4059
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4060
cat >conftest.$ac_ext <<_ACEOF
4061
/* confdefs.h.  */
4062
_ACEOF
4063
cat confdefs.h >>conftest.$ac_ext
4064
cat >>conftest.$ac_ext <<_ACEOF
4065
/* end confdefs.h.  */
4066
#include <$ac_header>
4067
_ACEOF
4068
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070
  ac_status=$?
4071
  grep -v '^ *+' conftest.er1 >conftest.err
4072
  rm -f conftest.er1
4073
  cat conftest.err >&5
4074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
  (exit $ac_status); } >/dev/null; then
4076
  if test -s conftest.err; then
4077
    ac_cpp_err=$ac_c_preproc_warn_flag
4078
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079
  else
4080
    ac_cpp_err=
4081
  fi
4082
else
4083
  ac_cpp_err=yes
4084
fi
4085
if test -z "$ac_cpp_err"; then
4086
  ac_header_preproc=yes
4087
else
4088
  echo "$as_me: failed program was:" >&5
4089
sed 's/^/| /' conftest.$ac_ext >&5
4090
 
4091
  ac_header_preproc=no
4092
fi
4093
rm -f conftest.err conftest.$ac_ext
4094
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4095
echo "${ECHO_T}$ac_header_preproc" >&6
4096
 
4097
# So?  What about this header?
4098
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4099
  yes:no: )
4100
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4101
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4102
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4103
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4104
    ac_header_preproc=yes
4105
    ;;
4106
  no:yes:* )
4107
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4108
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4109
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4110
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4111
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4112
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4113
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4114
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4115
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4116
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4117
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4118
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4119
    (
4120
      cat <<\_ASBOX
4121
## -------------------------------- ##
4122
## Report this to classpath@gnu.org ##
4123
## -------------------------------- ##
4124
_ASBOX
4125
    ) |
4126
      sed "s/^/$as_me: WARNING:     /" >&2
4127
    ;;
4128
esac
4129
echo "$as_me:$LINENO: checking for $ac_header" >&5
4130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4131
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4132
  echo $ECHO_N "(cached) $ECHO_C" >&6
4133
else
4134
  eval "$as_ac_Header=\$ac_header_preproc"
4135
fi
4136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4138
 
4139
fi
4140
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4141
  cat >>confdefs.h <<_ACEOF
4142
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4143
_ACEOF
4144
 COMPILE_DSSI=yes
4145
else
4146
  COMPILE_DSSI=no
4147
fi
4148
 
4149
done
4150
 
4151
fi;
4152
 
4153
 
4154
if test "x${COMPILE_DSSI}" = xyes; then
4155
  CREATE_DSSI_LIBRARIES_TRUE=
4156
  CREATE_DSSI_LIBRARIES_FALSE='#'
4157
else
4158
  CREATE_DSSI_LIBRARIES_TRUE='#'
4159
  CREATE_DSSI_LIBRARIES_FALSE=
4160
fi
4161
 
4162
 
4163
# Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4164
if test "${enable_gtk_peer+set}" = set; then
4165
  enableval="$enable_gtk_peer"
4166
  case "${enableval}" in
4167
                yes) COMPILE_GTK_PEER=yes ;;
4168
                no) COMPILE_GTK_PEER=no ;;
4169
                *) COMPILE_GTK_PEER=yes ;;
4170
              esac
4171
else
4172
  COMPILE_GTK_PEER=yes
4173
fi;
4174
 
4175
 
4176
if test "x${COMPILE_GTK_PEER}" = xyes; then
4177
  CREATE_GTK_PEER_LIBRARIES_TRUE=
4178
  CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4179
else
4180
  CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4181
  CREATE_GTK_PEER_LIBRARIES_FALSE=
4182
fi
4183
 
4184
 
4185
# Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4186
if test "${enable_gtk_peers+set}" = set; then
4187
  enableval="$enable_gtk_peers"
4188
  { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4189
echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4190
   { (exit 1); exit 1; }; }
4191
fi;
4192
 
4193
# Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4194
if test "${enable_gtk_cairo+set}" = set; then
4195
  enableval="$enable_gtk_cairo"
4196
  case "${enableval}" in
4197
                yes) GTK_CAIRO_ENABLED=true ;;
4198
                no) GTK_CAIRO_ENABLED=false ;;
4199
                *) GTK_CAIRO_ENABLED=true ;;
4200
              esac
4201
else
4202
  GTK_CAIRO_ENABLED=false
4203
fi;
4204
 
4205
if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4206
 
4207
cat >>confdefs.h <<\_ACEOF
4208
#define GTK_CAIRO 1
4209
_ACEOF
4210
 
4211
fi
4212
 
4213
 
4214
if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4215
  GTK_CAIRO_TRUE=
4216
  GTK_CAIRO_FALSE='#'
4217
else
4218
  GTK_CAIRO_TRUE='#'
4219
  GTK_CAIRO_FALSE=
4220
fi
4221
 
4222
 
4223
# Check whether --enable-qt-peer or --disable-qt-peer was given.
4224
if test "${enable_qt_peer+set}" = set; then
4225
  enableval="$enable_qt_peer"
4226
  case "${enableval}" in
4227
                yes) COMPILE_QT_PEER=yes ;;
4228
                no) COMPILE_QT_PEER=no ;;
4229
                *) COMPILE_QT_PEER=yes ;;
4230
              esac
4231
else
4232
  COMPILE_QT_PEER=no
4233
fi;
4234
 
4235
 
4236
if test "x${COMPILE_QT_PEER}" = xyes; then
4237
  CREATE_QT_PEER_LIBRARIES_TRUE=
4238
  CREATE_QT_PEER_LIBRARIES_FALSE='#'
4239
else
4240
  CREATE_QT_PEER_LIBRARIES_TRUE='#'
4241
  CREATE_QT_PEER_LIBRARIES_FALSE=
4242
fi
4243
 
4244
 
4245
 
4246
 
4247
# Check whether --with-native-libdir or --without-native-libdir was given.
4248
if test "${with_native_libdir+set}" = set; then
4249
  withval="$with_native_libdir"
4250
 
4251
             nativelibdir=${withval}
4252
 
4253
else
4254
 
4255
             nativelibdir='${libdir}/${PACKAGE}'
4256
 
4257
fi;
4258
 
4259
 
4260
 
4261
 
4262
# Check whether --with-glibj-dir or --without-glibj-dir was given.
4263
if test "${with_glibj_dir+set}" = set; then
4264
  withval="$with_glibj_dir"
4265
 
4266
             glibjdir=${withval}
4267
 
4268
else
4269
 
4270
             glibjdir='${datadir}/${PACKAGE}'
4271
 
4272
fi;
4273
 
4274
 
4275
 
4276
# Check whether --enable-regen-headers or --disable-regen-headers was given.
4277
if test "${enable_regen_headers+set}" = set; then
4278
  enableval="$enable_regen_headers"
4279
  case "${enableval}" in
4280
                yes) REGENERATE_JNI_HEADERS=yes ;;
4281
                no) REGENERATE_JNI_HEADERS=no ;;
4282
                *) REGENERATE_JNI_HEADERS=no ;;
4283
              esac
4284
else
4285
  REGENERATE_JNI_HEADERS=no
4286
fi;
4287
 
4288
 
4289
if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4290
  CREATE_JNI_HEADERS_TRUE=
4291
  CREATE_JNI_HEADERS_FALSE='#'
4292
else
4293
  CREATE_JNI_HEADERS_TRUE='#'
4294
  CREATE_JNI_HEADERS_FALSE=
4295
fi
4296
 
4297
 
4298
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4299
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4300
LN_S=$as_ln_s
4301
if test "$LN_S" = "ln -s"; then
4302
  echo "$as_me:$LINENO: result: yes" >&5
4303
echo "${ECHO_T}yes" >&6
4304
else
4305
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4306
echo "${ECHO_T}no, using $LN_S" >&6
4307
fi
4308
 
4309
# Find a good install program.  We prefer a C program (faster),
4310
# so one script is as good as another.  But avoid the broken or
4311
# incompatible versions:
4312
# SysV /etc/install, /usr/sbin/install
4313
# SunOS /usr/etc/install
4314
# IRIX /sbin/install
4315
# AIX /bin/install
4316
# AmigaOS /C/install, which installs bootblocks on floppy discs
4317
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4318
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4319
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4320
# OS/2's system install, which has a completely different semantic
4321
# ./install, which can be erroneously created by make from ./install.sh.
4322
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4323
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4324
if test -z "$INSTALL"; then
4325
if test "${ac_cv_path_install+set}" = set; then
4326
  echo $ECHO_N "(cached) $ECHO_C" >&6
4327
else
4328
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329
for as_dir in $PATH
4330
do
4331
  IFS=$as_save_IFS
4332
  test -z "$as_dir" && as_dir=.
4333
  # Account for people who put trailing slashes in PATH elements.
4334
case $as_dir/ in
4335
  ./ | .// | /cC/* | \
4336
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4337
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4338
  /usr/ucb/* ) ;;
4339
  *)
4340
    # OSF1 and SCO ODT 3.0 have their own names for install.
4341
    # Don't use installbsd from OSF since it installs stuff as root
4342
    # by default.
4343
    for ac_prog in ginstall scoinst install; do
4344
      for ac_exec_ext in '' $ac_executable_extensions; do
4345
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4346
          if test $ac_prog = install &&
4347
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4348
            # AIX install.  It has an incompatible calling convention.
4349
            :
4350
          elif test $ac_prog = install &&
4351
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4352
            # program-specific install script used by HP pwplus--don't use.
4353
            :
4354
          else
4355
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4356
            break 3
4357
          fi
4358
        fi
4359
      done
4360
    done
4361
    ;;
4362
esac
4363
done
4364
 
4365
 
4366
fi
4367
  if test "${ac_cv_path_install+set}" = set; then
4368
    INSTALL=$ac_cv_path_install
4369
  else
4370
    # As a last resort, use the slow shell script.  We don't cache a
4371
    # path for INSTALL within a source directory, because that will
4372
    # break other packages using the cache if that directory is
4373
    # removed, or if the path is relative.
4374
    INSTALL=$ac_install_sh
4375
  fi
4376
fi
4377
echo "$as_me:$LINENO: result: $INSTALL" >&5
4378
echo "${ECHO_T}$INSTALL" >&6
4379
 
4380
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4381
# It thinks the first close brace ends the variable substitution.
4382
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4383
 
4384
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4385
 
4386
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4387
 
4388
 
4389
 
4390
# Check whether --enable-static or --disable-static was given.
4391
if test "${enable_static+set}" = set; then
4392
  enableval="$enable_static"
4393
  p=${PACKAGE-default}
4394
case $enableval in
4395
yes) enable_static=yes ;;
4396
no) enable_static=no ;;
4397
*)
4398
  enable_static=no
4399
  # Look at the argument we got.  We use all the common list separators.
4400
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4401
  for pkg in $enableval; do
4402
    if test "X$pkg" = "X$p"; then
4403
      enable_static=yes
4404
    fi
4405
  done
4406
  IFS="$ac_save_ifs"
4407
  ;;
4408
esac
4409
else
4410
  enable_static=no
4411
fi;
4412
# Check whether --enable-shared or --disable-shared was given.
4413
if test "${enable_shared+set}" = set; then
4414
  enableval="$enable_shared"
4415
  p=${PACKAGE-default}
4416
case $enableval in
4417
yes) enable_shared=yes ;;
4418
no) enable_shared=no ;;
4419
*)
4420
  enable_shared=no
4421
  # Look at the argument we got.  We use all the common list separators.
4422
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4423
  for pkg in $enableval; do
4424
    if test "X$pkg" = "X$p"; then
4425
      enable_shared=yes
4426
    fi
4427
  done
4428
  IFS="$ac_save_ifs"
4429
  ;;
4430
esac
4431
else
4432
  enable_shared=yes
4433
fi;
4434
# Check whether --enable-fast-install or --disable-fast-install was given.
4435
if test "${enable_fast_install+set}" = set; then
4436
  enableval="$enable_fast_install"
4437
  p=${PACKAGE-default}
4438
case $enableval in
4439
yes) enable_fast_install=yes ;;
4440
no) enable_fast_install=no ;;
4441
*)
4442
  enable_fast_install=no
4443
  # Look at the argument we got.  We use all the common list separators.
4444
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4445
  for pkg in $enableval; do
4446
    if test "X$pkg" = "X$p"; then
4447
      enable_fast_install=yes
4448
    fi
4449
  done
4450
  IFS="$ac_save_ifs"
4451
  ;;
4452
esac
4453
else
4454
  enable_fast_install=yes
4455
fi;
4456
 
4457
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4458
if test "${with_gnu_ld+set}" = set; then
4459
  withval="$with_gnu_ld"
4460
  test "$withval" = no || with_gnu_ld=yes
4461
else
4462
  with_gnu_ld=no
4463
fi;
4464
ac_prog=ld
4465
if test "$GCC" = yes; then
4466
  # Check if gcc -print-prog-name=ld gives a path.
4467
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4468
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4469
  case $host in
4470
  *-*-mingw*)
4471
    # gcc leaves a trailing carriage return which upsets mingw
4472
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4473
  *)
4474
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4475
  esac
4476
  case $ac_prog in
4477
    # Accept absolute paths.
4478
    [\\/]* | [A-Za-z]:[\\/]*)
4479
      re_direlt='/[^/][^/]*/\.\./'
4480
      # Canonicalize the path of ld
4481
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4482
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4483
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4484
      done
4485
      test -z "$LD" && LD="$ac_prog"
4486
      ;;
4487
  "")
4488
    # If it fails, then pretend we aren't using GCC.
4489
    ac_prog=ld
4490
    ;;
4491
  *)
4492
    # If it is relative, then search for the first ld in PATH.
4493
    with_gnu_ld=unknown
4494
    ;;
4495
  esac
4496
elif test "$with_gnu_ld" = yes; then
4497
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4498
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4499
else
4500
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4501
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4502
fi
4503
if test "${lt_cv_path_LD+set}" = set; then
4504
  echo $ECHO_N "(cached) $ECHO_C" >&6
4505
else
4506
  if test -z "$LD"; then
4507
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4508
  for ac_dir in $PATH; do
4509
    test -z "$ac_dir" && ac_dir=.
4510
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4511
      lt_cv_path_LD="$ac_dir/$ac_prog"
4512
      # Check to see if the program is GNU ld.  I'd rather use --version,
4513
      # but apparently some GNU ld's only accept -v.
4514
      # Break only if it was the GNU/non-GNU ld that we prefer.
4515
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4516
        test "$with_gnu_ld" != no && break
4517
      else
4518
        test "$with_gnu_ld" != yes && break
4519
      fi
4520
    fi
4521
  done
4522
  IFS="$ac_save_ifs"
4523
else
4524
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4525
fi
4526
fi
4527
 
4528
LD="$lt_cv_path_LD"
4529
if test -n "$LD"; then
4530
  echo "$as_me:$LINENO: result: $LD" >&5
4531
echo "${ECHO_T}$LD" >&6
4532
else
4533
  echo "$as_me:$LINENO: result: no" >&5
4534
echo "${ECHO_T}no" >&6
4535
fi
4536
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4537
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4538
   { (exit 1); exit 1; }; }
4539
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4540
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4541
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4542
  echo $ECHO_N "(cached) $ECHO_C" >&6
4543
else
4544
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4545
if $LD -v 2>&1 &5; then
4546
  lt_cv_prog_gnu_ld=yes
4547
else
4548
  lt_cv_prog_gnu_ld=no
4549
fi
4550
fi
4551
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4552
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4553
with_gnu_ld=$lt_cv_prog_gnu_ld
4554
 
4555
 
4556
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4557
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4558
if test "${lt_cv_ld_reload_flag+set}" = set; then
4559
  echo $ECHO_N "(cached) $ECHO_C" >&6
4560
else
4561
  lt_cv_ld_reload_flag='-r'
4562
fi
4563
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4564
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4565
reload_flag=$lt_cv_ld_reload_flag
4566
test -n "$reload_flag" && reload_flag=" $reload_flag"
4567
 
4568
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4569
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4570
if test "${lt_cv_path_NM+set}" = set; then
4571
  echo $ECHO_N "(cached) $ECHO_C" >&6
4572
else
4573
  if test -n "$NM"; then
4574
  # Let the user override the test.
4575
  lt_cv_path_NM="$NM"
4576
else
4577
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4578
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4579
    test -z "$ac_dir" && ac_dir=.
4580
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4581
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4582
      # Check to see if the nm accepts a BSD-compat flag.
4583
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4584
      #   nm: unknown option "B" ignored
4585
      # Tru64's nm complains that /dev/null is an invalid object file
4586
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4587
        lt_cv_path_NM="$tmp_nm -B"
4588
        break
4589
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4590
        lt_cv_path_NM="$tmp_nm -p"
4591
        break
4592
      else
4593
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4594
        continue # so that we can try to find one that supports BSD flags
4595
      fi
4596
    fi
4597
  done
4598
  IFS="$ac_save_ifs"
4599
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4600
fi
4601
fi
4602
 
4603
NM="$lt_cv_path_NM"
4604
echo "$as_me:$LINENO: result: $NM" >&5
4605
echo "${ECHO_T}$NM" >&6
4606
 
4607
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4608
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4609
if test "${lt_cv_deplibs_check_method+set}" = set; then
4610
  echo $ECHO_N "(cached) $ECHO_C" >&6
4611
else
4612
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4613
lt_cv_file_magic_test_file=
4614
lt_cv_deplibs_check_method='unknown'
4615
# Need to set the preceding variable on all platforms that support
4616
# interlibrary dependencies.
4617
# 'none' -- dependencies not supported.
4618
# `unknown' -- same as none, but documents that we really don't know.
4619
# 'pass_all' -- all dependencies passed with no checks.
4620
# 'test_compile' -- check by making test program.
4621
# 'file_magic [regex]' -- check by looking for files in library path
4622
# which responds to the $file_magic_cmd with a given egrep regex.
4623
# If you have `file' or equivalent on your system and you're not sure
4624
# whether `pass_all' will *always* work, you probably want this one.
4625
 
4626
case $host_os in
4627
aix*)
4628
  lt_cv_deplibs_check_method=pass_all
4629
  ;;
4630
 
4631
beos*)
4632
  lt_cv_deplibs_check_method=pass_all
4633
  ;;
4634
 
4635
bsdi4*)
4636
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4637
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4638
  lt_cv_file_magic_test_file=/shlib/libc.so
4639
  ;;
4640
 
4641
cygwin* | mingw* |pw32*)
4642
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4643
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4644
  ;;
4645
 
4646
darwin* | rhapsody*)
4647
  # this will be overwritten by pass_all, but leave it in just in case
4648
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4649
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4650
  case "$host_os" in
4651
  rhapsody* | darwin1.012)
4652
    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4653
    ;;
4654
  *) # Darwin 1.3 on
4655
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4656
    ;;
4657
  esac
4658
  lt_cv_deplibs_check_method=pass_all
4659
  ;;
4660
 
4661
freebsd* | kfreebsd*-gnu)
4662
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4663
    case $host_cpu in
4664
    i*86 )
4665
      # Not sure whether the presence of OpenBSD here was a mistake.
4666
      # Let's accept both of them until this is cleared up.
4667
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4668
      lt_cv_file_magic_cmd=/usr/bin/file
4669
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4670
      ;;
4671
    esac
4672
  else
4673
    lt_cv_deplibs_check_method=pass_all
4674
  fi
4675
  ;;
4676
 
4677
gnu*)
4678
  lt_cv_deplibs_check_method=pass_all
4679
  ;;
4680
 
4681
hpux10.20*|hpux11*)
4682
  case $host_cpu in
4683
  hppa*)
4684
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4685
    lt_cv_file_magic_cmd=/usr/bin/file
4686
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4687
    ;;
4688
  ia64*)
4689
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4690
    lt_cv_file_magic_cmd=/usr/bin/file
4691
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4692
    ;;
4693
  esac
4694
  ;;
4695
 
4696
irix5* | irix6*)
4697
  case $host_os in
4698
  irix5*)
4699
    # this will be overridden with pass_all, but let us keep it just in case
4700
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4701
    ;;
4702
  *)
4703
    case $LD in
4704
    *-32|*"-32 ") libmagic=32-bit;;
4705
    *-n32|*"-n32 ") libmagic=N32;;
4706
    *-64|*"-64 ") libmagic=64-bit;;
4707
    *) libmagic=never-match;;
4708
    esac
4709
    # this will be overridden with pass_all, but let us keep it just in case
4710
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4711
    ;;
4712
  esac
4713
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4714
  lt_cv_deplibs_check_method=pass_all
4715
  ;;
4716
 
4717
# This must be Linux ELF.
4718
linux-gnu*)
4719
  lt_cv_deplibs_check_method=pass_all
4720
  ;;
4721
 
4722
netbsd* | knetbsd*-gnu)
4723
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4724
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4725
  else
4726
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4727
  fi
4728
  ;;
4729
 
4730
newsos6)
4731
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4732
  lt_cv_file_magic_cmd=/usr/bin/file
4733
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4734
  ;;
4735
 
4736
osf3* | osf4* | osf5*)
4737
  # this will be overridden with pass_all, but let us keep it just in case
4738
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4739
  lt_cv_file_magic_test_file=/shlib/libc.so
4740
  lt_cv_deplibs_check_method=pass_all
4741
  ;;
4742
 
4743
sco3.2v5*)
4744
  lt_cv_deplibs_check_method=pass_all
4745
  ;;
4746
 
4747
solaris*)
4748
  lt_cv_deplibs_check_method=pass_all
4749
  lt_cv_file_magic_test_file=/lib/libc.so
4750
  ;;
4751
 
4752
sysv5uw[78]* | sysv4*uw2*)
4753
  lt_cv_deplibs_check_method=pass_all
4754
  ;;
4755
 
4756
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4757
  case $host_vendor in
4758
  ncr)
4759
    lt_cv_deplibs_check_method=pass_all
4760
    ;;
4761
  motorola)
4762
    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]'
4763
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4764
    ;;
4765
  esac
4766
  ;;
4767
esac
4768
 
4769
fi
4770
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4771
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4772
file_magic_cmd=$lt_cv_file_magic_cmd
4773
deplibs_check_method=$lt_cv_deplibs_check_method
4774
 
4775
 
4776
 
4777
 
4778
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4779
 
4780
# find the maximum length of command line arguments
4781
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4782
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4783
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4784
  echo $ECHO_N "(cached) $ECHO_C" >&6
4785
else
4786
    i=0
4787
  teststring="ABCD"
4788
 
4789
  case $build_os in
4790
  msdosdjgpp*)
4791
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4792
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4793
    # during glob expansion).  Even if it were fixed, the result of this
4794
    # check would be larger than it should be.
4795
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4796
    ;;
4797
 
4798
  cygwin* | mingw*)
4799
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4800
    # about 5 minutes as the teststring grows exponentially.
4801
    # Worse, since 9x/ME are not pre-emptively multitasking,
4802
    # you end up with a "frozen" computer, even though with patience
4803
    # the test eventually succeeds (with a max line length of 256k).
4804
    # Instead, let's just punt: use the minimum linelength reported by
4805
    # all of the supported platforms: 8192 (on NT/2K/XP).
4806
    lt_cv_sys_max_cmd_len=8192;
4807
    ;;
4808
 
4809
  amigaos*)
4810
    # On AmigaOS with pdksh, this test takes hours, literally.
4811
    # So we just punt and use a minimum line length of 8192.
4812
    lt_cv_sys_max_cmd_len=8192;
4813
    ;;
4814
 
4815
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4816
    # This has been around since 386BSD, at least.  Likely further.
4817
    if test -x /sbin/sysctl; then
4818
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4819
    elif test -x /usr/sbin/sysctl; then
4820
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4821
    else
4822
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4823
    fi
4824
    # And add a safety zone
4825
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4826
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4827
    ;;
4828
  esac
4829
 
4830
fi
4831
 
4832
if test -n "$lt_cv_sys_max_cmd_len" ; then
4833
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4834
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4835
else
4836
  echo "$as_me:$LINENO: result: none" >&5
4837
echo "${ECHO_T}none" >&6
4838
fi
4839
 
4840
 
4841
# Only perform the check for file, if the check method requires it
4842
case $deplibs_check_method in
4843
file_magic*)
4844
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4845
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4846
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4847
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4848
  echo $ECHO_N "(cached) $ECHO_C" >&6
4849
else
4850
  case $MAGIC_CMD in
4851
  /*)
4852
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4853
  ;;
4854
  ?:/*)
4855
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4856
  ;;
4857
  *)
4858
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4859
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4860
  ac_dummy="/usr/bin:$PATH"
4861
  for ac_dir in $ac_dummy; do
4862
    test -z "$ac_dir" && ac_dir=.
4863
    if test -f $ac_dir/${ac_tool_prefix}file; then
4864
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4865
      if test -n "$file_magic_test_file"; then
4866
        case $deplibs_check_method in
4867
        "file_magic "*)
4868
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4869
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4870
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4871
            egrep "$file_magic_regex" > /dev/null; then
4872
            :
4873
          else
4874
            cat <&2
4875
 
4876
*** Warning: the command libtool uses to detect shared libraries,
4877
*** $file_magic_cmd, produces output that libtool cannot recognize.
4878
*** The result is that libtool may fail to recognize shared libraries
4879
*** as such.  This will affect the creation of libtool libraries that
4880
*** depend on shared libraries, but programs linked with such libtool
4881
*** libraries will work regardless of this problem.  Nevertheless, you
4882
*** may want to report the problem to your system manager and/or to
4883
*** bug-libtool@gnu.org
4884
 
4885
EOF
4886
          fi ;;
4887
        esac
4888
      fi
4889
      break
4890
    fi
4891
  done
4892
  IFS="$ac_save_ifs"
4893
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4894
  ;;
4895
esac
4896
fi
4897
 
4898
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4899
if test -n "$MAGIC_CMD"; then
4900
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4901
echo "${ECHO_T}$MAGIC_CMD" >&6
4902
else
4903
  echo "$as_me:$LINENO: result: no" >&5
4904
echo "${ECHO_T}no" >&6
4905
fi
4906
 
4907
if test -z "$lt_cv_path_MAGIC_CMD"; then
4908
  if test -n "$ac_tool_prefix"; then
4909
    echo "$as_me:$LINENO: checking for file" >&5
4910
echo $ECHO_N "checking for file... $ECHO_C" >&6
4911
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4912
  echo $ECHO_N "(cached) $ECHO_C" >&6
4913
else
4914
  case $MAGIC_CMD in
4915
  /*)
4916
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4917
  ;;
4918
  ?:/*)
4919
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4920
  ;;
4921
  *)
4922
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4923
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4924
  ac_dummy="/usr/bin:$PATH"
4925
  for ac_dir in $ac_dummy; do
4926
    test -z "$ac_dir" && ac_dir=.
4927
    if test -f $ac_dir/file; then
4928
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4929
      if test -n "$file_magic_test_file"; then
4930
        case $deplibs_check_method in
4931
        "file_magic "*)
4932
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4933
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4934
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4935
            egrep "$file_magic_regex" > /dev/null; then
4936
            :
4937
          else
4938
            cat <&2
4939
 
4940
*** Warning: the command libtool uses to detect shared libraries,
4941
*** $file_magic_cmd, produces output that libtool cannot recognize.
4942
*** The result is that libtool may fail to recognize shared libraries
4943
*** as such.  This will affect the creation of libtool libraries that
4944
*** depend on shared libraries, but programs linked with such libtool
4945
*** libraries will work regardless of this problem.  Nevertheless, you
4946
*** may want to report the problem to your system manager and/or to
4947
*** bug-libtool@gnu.org
4948
 
4949
EOF
4950
          fi ;;
4951
        esac
4952
      fi
4953
      break
4954
    fi
4955
  done
4956
  IFS="$ac_save_ifs"
4957
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4958
  ;;
4959
esac
4960
fi
4961
 
4962
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4963
if test -n "$MAGIC_CMD"; then
4964
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4965
echo "${ECHO_T}$MAGIC_CMD" >&6
4966
else
4967
  echo "$as_me:$LINENO: result: no" >&5
4968
echo "${ECHO_T}no" >&6
4969
fi
4970
 
4971
  else
4972
    MAGIC_CMD=:
4973
  fi
4974
fi
4975
 
4976
  fi
4977
  ;;
4978
esac
4979
 
4980
if test -n "$ac_tool_prefix"; then
4981
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4982
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4983
echo "$as_me:$LINENO: checking for $ac_word" >&5
4984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985
if test "${ac_cv_prog_RANLIB+set}" = set; then
4986
  echo $ECHO_N "(cached) $ECHO_C" >&6
4987
else
4988
  if test -n "$RANLIB"; then
4989
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4990
else
4991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992
for as_dir in $PATH
4993
do
4994
  IFS=$as_save_IFS
4995
  test -z "$as_dir" && as_dir=.
4996
  for ac_exec_ext in '' $ac_executable_extensions; do
4997
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4999
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000
    break 2
5001
  fi
5002
done
5003
done
5004
 
5005
fi
5006
fi
5007
RANLIB=$ac_cv_prog_RANLIB
5008
if test -n "$RANLIB"; then
5009
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5010
echo "${ECHO_T}$RANLIB" >&6
5011
else
5012
  echo "$as_me:$LINENO: result: no" >&5
5013
echo "${ECHO_T}no" >&6
5014
fi
5015
 
5016
fi
5017
if test -z "$ac_cv_prog_RANLIB"; then
5018
  ac_ct_RANLIB=$RANLIB
5019
  # Extract the first word of "ranlib", so it can be a program name with args.
5020
set dummy ranlib; ac_word=$2
5021
echo "$as_me:$LINENO: checking for $ac_word" >&5
5022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5024
  echo $ECHO_N "(cached) $ECHO_C" >&6
5025
else
5026
  if test -n "$ac_ct_RANLIB"; then
5027
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5028
else
5029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030
for as_dir in $PATH
5031
do
5032
  IFS=$as_save_IFS
5033
  test -z "$as_dir" && as_dir=.
5034
  for ac_exec_ext in '' $ac_executable_extensions; do
5035
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038
    break 2
5039
  fi
5040
done
5041
done
5042
 
5043
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5044
fi
5045
fi
5046
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5047
if test -n "$ac_ct_RANLIB"; then
5048
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5049
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5050
else
5051
  echo "$as_me:$LINENO: result: no" >&5
5052
echo "${ECHO_T}no" >&6
5053
fi
5054
 
5055
  RANLIB=$ac_ct_RANLIB
5056
else
5057
  RANLIB="$ac_cv_prog_RANLIB"
5058
fi
5059
 
5060
if test -n "$ac_tool_prefix"; then
5061
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5062
set dummy ${ac_tool_prefix}strip; ac_word=$2
5063
echo "$as_me:$LINENO: checking for $ac_word" >&5
5064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065
if test "${ac_cv_prog_STRIP+set}" = set; then
5066
  echo $ECHO_N "(cached) $ECHO_C" >&6
5067
else
5068
  if test -n "$STRIP"; then
5069
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5070
else
5071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072
for as_dir in $PATH
5073
do
5074
  IFS=$as_save_IFS
5075
  test -z "$as_dir" && as_dir=.
5076
  for ac_exec_ext in '' $ac_executable_extensions; do
5077
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5079
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080
    break 2
5081
  fi
5082
done
5083
done
5084
 
5085
fi
5086
fi
5087
STRIP=$ac_cv_prog_STRIP
5088
if test -n "$STRIP"; then
5089
  echo "$as_me:$LINENO: result: $STRIP" >&5
5090
echo "${ECHO_T}$STRIP" >&6
5091
else
5092
  echo "$as_me:$LINENO: result: no" >&5
5093
echo "${ECHO_T}no" >&6
5094
fi
5095
 
5096
fi
5097
if test -z "$ac_cv_prog_STRIP"; then
5098
  ac_ct_STRIP=$STRIP
5099
  # Extract the first word of "strip", so it can be a program name with args.
5100
set dummy strip; ac_word=$2
5101
echo "$as_me:$LINENO: checking for $ac_word" >&5
5102
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5104
  echo $ECHO_N "(cached) $ECHO_C" >&6
5105
else
5106
  if test -n "$ac_ct_STRIP"; then
5107
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5108
else
5109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110
for as_dir in $PATH
5111
do
5112
  IFS=$as_save_IFS
5113
  test -z "$as_dir" && as_dir=.
5114
  for ac_exec_ext in '' $ac_executable_extensions; do
5115
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116
    ac_cv_prog_ac_ct_STRIP="strip"
5117
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118
    break 2
5119
  fi
5120
done
5121
done
5122
 
5123
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5124
fi
5125
fi
5126
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5127
if test -n "$ac_ct_STRIP"; then
5128
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5129
echo "${ECHO_T}$ac_ct_STRIP" >&6
5130
else
5131
  echo "$as_me:$LINENO: result: no" >&5
5132
echo "${ECHO_T}no" >&6
5133
fi
5134
 
5135
  STRIP=$ac_ct_STRIP
5136
else
5137
  STRIP="$ac_cv_prog_STRIP"
5138
fi
5139
 
5140
 
5141
# Check for any special flags to pass to ltconfig.
5142
libtool_flags="--cache-file=$cache_file"
5143
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5144
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5145
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5146
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5147
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5148
 
5149
 
5150
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5151
if test "${enable_libtool_lock+set}" = set; then
5152
  enableval="$enable_libtool_lock"
5153
 
5154
fi;
5155
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5156
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5157
 
5158
 
5159
# Check whether --with-pic or --without-pic was given.
5160
if test "${with_pic+set}" = set; then
5161
  withval="$with_pic"
5162
  pic_mode="$withval"
5163
else
5164
  pic_mode=default
5165
fi;
5166
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5167
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5168
 
5169
# Some flags need to be propagated to the compiler or linker for good
5170
# libtool support.
5171
case $host in
5172
*-*-irix6*)
5173
  # Find out which ABI we are using.
5174
  echo '#line 5174 "configure"' > conftest.$ac_ext
5175
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176
  (eval $ac_compile) 2>&5
5177
  ac_status=$?
5178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179
  (exit $ac_status); }; then
5180
   if test "$lt_cv_prog_gnu_ld" = yes; then
5181
    case `/usr/bin/file conftest.$ac_objext` in
5182
    *32-bit*)
5183
      LD="${LD-ld} -melf32bsmip"
5184
      ;;
5185
    *N32*)
5186
      LD="${LD-ld} -melf32bmipn32"
5187
      ;;
5188
    *64-bit*)
5189
      LD="${LD-ld} -melf64bmip"
5190
      ;;
5191
    esac
5192
   else
5193
    case `/usr/bin/file conftest.$ac_objext` in
5194
    *32-bit*)
5195
      LD="${LD-ld} -32"
5196
      ;;
5197
    *N32*)
5198
      LD="${LD-ld} -n32"
5199
      ;;
5200
    *64-bit*)
5201
      LD="${LD-ld} -64"
5202
      ;;
5203
    esac
5204
   fi
5205
  fi
5206
  rm -rf conftest*
5207
  ;;
5208
 
5209
ia64-*-hpux*)
5210
  # Find out which ABI we are using.
5211
  echo 'int i;' > conftest.$ac_ext
5212
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213
  (eval $ac_compile) 2>&5
5214
  ac_status=$?
5215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216
  (exit $ac_status); }; then
5217
    case "`/usr/bin/file conftest.o`" in
5218
    *ELF-32*)
5219
      HPUX_IA64_MODE="32"
5220
      ;;
5221
    *ELF-64*)
5222
      HPUX_IA64_MODE="64"
5223
      ;;
5224
    esac
5225
  fi
5226
  rm -rf conftest*
5227
  ;;
5228
 
5229
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5230
  # Find out which ABI we are using.
5231
  echo 'int i;' > conftest.$ac_ext
5232
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233
  (eval $ac_compile) 2>&5
5234
  ac_status=$?
5235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236
  (exit $ac_status); }; then
5237
    case "`/usr/bin/file conftest.o`" in
5238
    *32-bit*)
5239
      case $host in
5240
        x86_64-*linux*)
5241
          LD="${LD-ld} -m elf_i386"
5242
          ;;
5243
        ppc64-*linux*|powerpc64-*linux*)
5244
          LD="${LD-ld} -m elf32ppclinux"
5245
          ;;
5246
        s390x-*linux*)
5247
          LD="${LD-ld} -m elf_s390"
5248
          ;;
5249
        sparc64-*linux*)
5250
          LD="${LD-ld} -m elf32_sparc"
5251
          ;;
5252
      esac
5253
      ;;
5254
    *64-bit*)
5255
      case $host in
5256
        x86_64-*linux*)
5257
          LD="${LD-ld} -m elf_x86_64"
5258
          ;;
5259
        ppc*-*linux*|powerpc*-*linux*)
5260
          LD="${LD-ld} -m elf64ppc"
5261
          ;;
5262
        s390*-*linux*)
5263
          LD="${LD-ld} -m elf64_s390"
5264
          ;;
5265
        sparc*-*linux*)
5266
          LD="${LD-ld} -m elf64_sparc"
5267
          ;;
5268
      esac
5269
      ;;
5270
    esac
5271
  fi
5272
  rm -rf conftest*
5273
  ;;
5274
 
5275
*-*-sco3.2v5*)
5276
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5277
  SAVE_CFLAGS="$CFLAGS"
5278
  CFLAGS="$CFLAGS -belf"
5279
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5280
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5281
if test "${lt_cv_cc_needs_belf+set}" = set; then
5282
  echo $ECHO_N "(cached) $ECHO_C" >&6
5283
else
5284
 
5285
 
5286
     ac_ext=c
5287
ac_cpp='$CPP $CPPFLAGS'
5288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
 
5292
     if test x$gcc_no_link = xyes; then
5293
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5294
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5295
   { (exit 1); exit 1; }; }
5296
fi
5297
cat >conftest.$ac_ext <<_ACEOF
5298
/* confdefs.h.  */
5299
_ACEOF
5300
cat confdefs.h >>conftest.$ac_ext
5301
cat >>conftest.$ac_ext <<_ACEOF
5302
/* end confdefs.h.  */
5303
 
5304
int
5305
main ()
5306
{
5307
 
5308
  ;
5309
  return 0;
5310
}
5311
_ACEOF
5312
rm -f conftest.$ac_objext conftest$ac_exeext
5313
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314
  (eval $ac_link) 2>conftest.er1
5315
  ac_status=$?
5316
  grep -v '^ *+' conftest.er1 >conftest.err
5317
  rm -f conftest.er1
5318
  cat conftest.err >&5
5319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320
  (exit $ac_status); } &&
5321
         { ac_try='test -z "$ac_c_werror_flag"
5322
                         || test ! -s conftest.err'
5323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
  (eval $ac_try) 2>&5
5325
  ac_status=$?
5326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327
  (exit $ac_status); }; } &&
5328
         { ac_try='test -s conftest$ac_exeext'
5329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330
  (eval $ac_try) 2>&5
5331
  ac_status=$?
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333
  (exit $ac_status); }; }; then
5334
  lt_cv_cc_needs_belf=yes
5335
else
5336
  echo "$as_me: failed program was:" >&5
5337
sed 's/^/| /' conftest.$ac_ext >&5
5338
 
5339
lt_cv_cc_needs_belf=no
5340
fi
5341
rm -f conftest.err conftest.$ac_objext \
5342
      conftest$ac_exeext conftest.$ac_ext
5343
     ac_ext=c
5344
ac_cpp='$CPP $CPPFLAGS'
5345
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
 
5349
fi
5350
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5351
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5352
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5353
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5354
    CFLAGS="$SAVE_CFLAGS"
5355
  fi
5356
  ;;
5357
 
5358
 
5359
esac
5360
 
5361
 
5362
# Save cache, so that ltconfig can load it
5363
cat >confcache <<\_ACEOF
5364
# This file is a shell script that caches the results of configure
5365
# tests run on this system so they can be shared between configure
5366
# scripts and configure runs, see configure's option --config-cache.
5367
# It is not useful on other systems.  If it contains results you don't
5368
# want to keep, you may remove or edit it.
5369
#
5370
# config.status only pays attention to the cache file if you give it
5371
# the --recheck option to rerun configure.
5372
#
5373
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5374
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5375
# following values.
5376
 
5377
_ACEOF
5378
 
5379
# The following way of writing the cache mishandles newlines in values,
5380
# but we know of no workaround that is simple, portable, and efficient.
5381
# So, don't put newlines in cache variables' values.
5382
# Ultrix sh set writes to stderr and can't be redirected directly,
5383
# and sets the high bit in the cache file unless we assign to the vars.
5384
{
5385
  (set) 2>&1 |
5386
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5387
    *ac_space=\ *)
5388
      # `set' does not quote correctly, so add quotes (double-quote
5389
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5390
      sed -n \
5391
        "s/'/'\\\\''/g;
5392
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5393
      ;;
5394
    *)
5395
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5396
      sed -n \
5397
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5398
      ;;
5399
    esac;
5400
} |
5401
  sed '
5402
     t clear
5403
     : clear
5404
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5405
     t end
5406
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5407
     : end' >>confcache
5408
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5409
  if test -w $cache_file; then
5410
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5411
    cat confcache >$cache_file
5412
  else
5413
    echo "not updating unwritable cache $cache_file"
5414
  fi
5415
fi
5416
rm -f confcache
5417
 
5418
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
5419
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5420
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5421
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5422
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5423
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5424
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5425
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5426
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5427
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5428
echo "$as_me: error: libtool configure failed" >&2;}
5429
   { (exit 1); exit 1; }; }
5430
 
5431
# Reload cache, that may have been modified by ltconfig
5432
if test -r "$cache_file"; then
5433
  # Some versions of bash will fail to source /dev/null (special
5434
  # files actually), so we avoid doing that.
5435
  if test -f "$cache_file"; then
5436
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5437
echo "$as_me: loading cache $cache_file" >&6;}
5438
    case $cache_file in
5439
      [\\/]* | ?:[\\/]* ) . $cache_file;;
5440
      *)                      . ./$cache_file;;
5441
    esac
5442
  fi
5443
else
5444
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5445
echo "$as_me: creating cache $cache_file" >&6;}
5446
  >$cache_file
5447
fi
5448
 
5449
 
5450
# This can be used to rebuild libtool when needed
5451
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5452
 
5453
# Always use our own libtool.
5454
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5455
 
5456
# Redirect the config.log output again, so that the ltconfig log is not
5457
# clobbered by the next message.
5458
exec 5>>./config.log
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
ac_ext=c
5466
ac_cpp='$CPP $CPPFLAGS'
5467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470
if test -n "$ac_tool_prefix"; then
5471
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5472
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5473
echo "$as_me:$LINENO: checking for $ac_word" >&5
5474
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475
if test "${ac_cv_prog_CC+set}" = set; then
5476
  echo $ECHO_N "(cached) $ECHO_C" >&6
5477
else
5478
  if test -n "$CC"; then
5479
  ac_cv_prog_CC="$CC" # Let the user override the test.
5480
else
5481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482
for as_dir in $PATH
5483
do
5484
  IFS=$as_save_IFS
5485
  test -z "$as_dir" && as_dir=.
5486
  for ac_exec_ext in '' $ac_executable_extensions; do
5487
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5489
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490
    break 2
5491
  fi
5492
done
5493
done
5494
 
5495
fi
5496
fi
5497
CC=$ac_cv_prog_CC
5498
if test -n "$CC"; then
5499
  echo "$as_me:$LINENO: result: $CC" >&5
5500
echo "${ECHO_T}$CC" >&6
5501
else
5502
  echo "$as_me:$LINENO: result: no" >&5
5503
echo "${ECHO_T}no" >&6
5504
fi
5505
 
5506
fi
5507
if test -z "$ac_cv_prog_CC"; then
5508
  ac_ct_CC=$CC
5509
  # Extract the first word of "gcc", so it can be a program name with args.
5510
set dummy gcc; ac_word=$2
5511
echo "$as_me:$LINENO: checking for $ac_word" >&5
5512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5513
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5514
  echo $ECHO_N "(cached) $ECHO_C" >&6
5515
else
5516
  if test -n "$ac_ct_CC"; then
5517
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5518
else
5519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520
for as_dir in $PATH
5521
do
5522
  IFS=$as_save_IFS
5523
  test -z "$as_dir" && as_dir=.
5524
  for ac_exec_ext in '' $ac_executable_extensions; do
5525
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526
    ac_cv_prog_ac_ct_CC="gcc"
5527
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528
    break 2
5529
  fi
5530
done
5531
done
5532
 
5533
fi
5534
fi
5535
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5536
if test -n "$ac_ct_CC"; then
5537
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5538
echo "${ECHO_T}$ac_ct_CC" >&6
5539
else
5540
  echo "$as_me:$LINENO: result: no" >&5
5541
echo "${ECHO_T}no" >&6
5542
fi
5543
 
5544
  CC=$ac_ct_CC
5545
else
5546
  CC="$ac_cv_prog_CC"
5547
fi
5548
 
5549
if test -z "$CC"; then
5550
  if test -n "$ac_tool_prefix"; then
5551
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5552
set dummy ${ac_tool_prefix}cc; ac_word=$2
5553
echo "$as_me:$LINENO: checking for $ac_word" >&5
5554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555
if test "${ac_cv_prog_CC+set}" = set; then
5556
  echo $ECHO_N "(cached) $ECHO_C" >&6
5557
else
5558
  if test -n "$CC"; then
5559
  ac_cv_prog_CC="$CC" # Let the user override the test.
5560
else
5561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562
for as_dir in $PATH
5563
do
5564
  IFS=$as_save_IFS
5565
  test -z "$as_dir" && as_dir=.
5566
  for ac_exec_ext in '' $ac_executable_extensions; do
5567
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568
    ac_cv_prog_CC="${ac_tool_prefix}cc"
5569
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570
    break 2
5571
  fi
5572
done
5573
done
5574
 
5575
fi
5576
fi
5577
CC=$ac_cv_prog_CC
5578
if test -n "$CC"; then
5579
  echo "$as_me:$LINENO: result: $CC" >&5
5580
echo "${ECHO_T}$CC" >&6
5581
else
5582
  echo "$as_me:$LINENO: result: no" >&5
5583
echo "${ECHO_T}no" >&6
5584
fi
5585
 
5586
fi
5587
if test -z "$ac_cv_prog_CC"; then
5588
  ac_ct_CC=$CC
5589
  # Extract the first word of "cc", so it can be a program name with args.
5590
set dummy cc; ac_word=$2
5591
echo "$as_me:$LINENO: checking for $ac_word" >&5
5592
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5593
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5594
  echo $ECHO_N "(cached) $ECHO_C" >&6
5595
else
5596
  if test -n "$ac_ct_CC"; then
5597
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5598
else
5599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600
for as_dir in $PATH
5601
do
5602
  IFS=$as_save_IFS
5603
  test -z "$as_dir" && as_dir=.
5604
  for ac_exec_ext in '' $ac_executable_extensions; do
5605
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606
    ac_cv_prog_ac_ct_CC="cc"
5607
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608
    break 2
5609
  fi
5610
done
5611
done
5612
 
5613
fi
5614
fi
5615
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5616
if test -n "$ac_ct_CC"; then
5617
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5618
echo "${ECHO_T}$ac_ct_CC" >&6
5619
else
5620
  echo "$as_me:$LINENO: result: no" >&5
5621
echo "${ECHO_T}no" >&6
5622
fi
5623
 
5624
  CC=$ac_ct_CC
5625
else
5626
  CC="$ac_cv_prog_CC"
5627
fi
5628
 
5629
fi
5630
if test -z "$CC"; then
5631
  # Extract the first word of "cc", so it can be a program name with args.
5632
set dummy cc; ac_word=$2
5633
echo "$as_me:$LINENO: checking for $ac_word" >&5
5634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635
if test "${ac_cv_prog_CC+set}" = set; then
5636
  echo $ECHO_N "(cached) $ECHO_C" >&6
5637
else
5638
  if test -n "$CC"; then
5639
  ac_cv_prog_CC="$CC" # Let the user override the test.
5640
else
5641
  ac_prog_rejected=no
5642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643
for as_dir in $PATH
5644
do
5645
  IFS=$as_save_IFS
5646
  test -z "$as_dir" && as_dir=.
5647
  for ac_exec_ext in '' $ac_executable_extensions; do
5648
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5650
       ac_prog_rejected=yes
5651
       continue
5652
     fi
5653
    ac_cv_prog_CC="cc"
5654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655
    break 2
5656
  fi
5657
done
5658
done
5659
 
5660
if test $ac_prog_rejected = yes; then
5661
  # We found a bogon in the path, so make sure we never use it.
5662
  set dummy $ac_cv_prog_CC
5663
  shift
5664
  if test $# != 0; then
5665
    # We chose a different compiler from the bogus one.
5666
    # However, it has the same basename, so the bogon will be chosen
5667
    # first if we set CC to just the basename; use the full file name.
5668
    shift
5669
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5670
  fi
5671
fi
5672
fi
5673
fi
5674
CC=$ac_cv_prog_CC
5675
if test -n "$CC"; then
5676
  echo "$as_me:$LINENO: result: $CC" >&5
5677
echo "${ECHO_T}$CC" >&6
5678
else
5679
  echo "$as_me:$LINENO: result: no" >&5
5680
echo "${ECHO_T}no" >&6
5681
fi
5682
 
5683
fi
5684
if test -z "$CC"; then
5685
  if test -n "$ac_tool_prefix"; then
5686
  for ac_prog in cl
5687
  do
5688
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5690
echo "$as_me:$LINENO: checking for $ac_word" >&5
5691
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692
if test "${ac_cv_prog_CC+set}" = set; then
5693
  echo $ECHO_N "(cached) $ECHO_C" >&6
5694
else
5695
  if test -n "$CC"; then
5696
  ac_cv_prog_CC="$CC" # Let the user override the test.
5697
else
5698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699
for as_dir in $PATH
5700
do
5701
  IFS=$as_save_IFS
5702
  test -z "$as_dir" && as_dir=.
5703
  for ac_exec_ext in '' $ac_executable_extensions; do
5704
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5706
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707
    break 2
5708
  fi
5709
done
5710
done
5711
 
5712
fi
5713
fi
5714
CC=$ac_cv_prog_CC
5715
if test -n "$CC"; then
5716
  echo "$as_me:$LINENO: result: $CC" >&5
5717
echo "${ECHO_T}$CC" >&6
5718
else
5719
  echo "$as_me:$LINENO: result: no" >&5
5720
echo "${ECHO_T}no" >&6
5721
fi
5722
 
5723
    test -n "$CC" && break
5724
  done
5725
fi
5726
if test -z "$CC"; then
5727
  ac_ct_CC=$CC
5728
  for ac_prog in cl
5729
do
5730
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5731
set dummy $ac_prog; ac_word=$2
5732
echo "$as_me:$LINENO: checking for $ac_word" >&5
5733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5735
  echo $ECHO_N "(cached) $ECHO_C" >&6
5736
else
5737
  if test -n "$ac_ct_CC"; then
5738
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5739
else
5740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741
for as_dir in $PATH
5742
do
5743
  IFS=$as_save_IFS
5744
  test -z "$as_dir" && as_dir=.
5745
  for ac_exec_ext in '' $ac_executable_extensions; do
5746
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747
    ac_cv_prog_ac_ct_CC="$ac_prog"
5748
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749
    break 2
5750
  fi
5751
done
5752
done
5753
 
5754
fi
5755
fi
5756
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5757
if test -n "$ac_ct_CC"; then
5758
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5759
echo "${ECHO_T}$ac_ct_CC" >&6
5760
else
5761
  echo "$as_me:$LINENO: result: no" >&5
5762
echo "${ECHO_T}no" >&6
5763
fi
5764
 
5765
  test -n "$ac_ct_CC" && break
5766
done
5767
 
5768
  CC=$ac_ct_CC
5769
fi
5770
 
5771
fi
5772
 
5773
 
5774
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5775
See \`config.log' for more details." >&5
5776
echo "$as_me: error: no acceptable C compiler found in \$PATH
5777
See \`config.log' for more details." >&2;}
5778
   { (exit 1); exit 1; }; }
5779
 
5780
# Provide some information about the compiler.
5781
echo "$as_me:$LINENO:" \
5782
     "checking for C compiler version" >&5
5783
ac_compiler=`set X $ac_compile; echo $2`
5784
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
5785
  (eval $ac_compiler --version &5) 2>&5
5786
  ac_status=$?
5787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788
  (exit $ac_status); }
5789
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
5790
  (eval $ac_compiler -v &5) 2>&5
5791
  ac_status=$?
5792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793
  (exit $ac_status); }
5794
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
5795
  (eval $ac_compiler -V &5) 2>&5
5796
  ac_status=$?
5797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798
  (exit $ac_status); }
5799
 
5800
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5802
if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803
  echo $ECHO_N "(cached) $ECHO_C" >&6
5804
else
5805
  cat >conftest.$ac_ext <<_ACEOF
5806
/* confdefs.h.  */
5807
_ACEOF
5808
cat confdefs.h >>conftest.$ac_ext
5809
cat >>conftest.$ac_ext <<_ACEOF
5810
/* end confdefs.h.  */
5811
 
5812
int
5813
main ()
5814
{
5815
#ifndef __GNUC__
5816
       choke me
5817
#endif
5818
 
5819
  ;
5820
  return 0;
5821
}
5822
_ACEOF
5823
rm -f conftest.$ac_objext
5824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825
  (eval $ac_compile) 2>conftest.er1
5826
  ac_status=$?
5827
  grep -v '^ *+' conftest.er1 >conftest.err
5828
  rm -f conftest.er1
5829
  cat conftest.err >&5
5830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831
  (exit $ac_status); } &&
5832
         { ac_try='test -z "$ac_c_werror_flag"
5833
                         || test ! -s conftest.err'
5834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835
  (eval $ac_try) 2>&5
5836
  ac_status=$?
5837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838
  (exit $ac_status); }; } &&
5839
         { ac_try='test -s conftest.$ac_objext'
5840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841
  (eval $ac_try) 2>&5
5842
  ac_status=$?
5843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844
  (exit $ac_status); }; }; then
5845
  ac_compiler_gnu=yes
5846
else
5847
  echo "$as_me: failed program was:" >&5
5848
sed 's/^/| /' conftest.$ac_ext >&5
5849
 
5850
ac_compiler_gnu=no
5851
fi
5852
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5854
 
5855
fi
5856
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5857
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5858
GCC=`test $ac_compiler_gnu = yes && echo yes`
5859
ac_test_CFLAGS=${CFLAGS+set}
5860
ac_save_CFLAGS=$CFLAGS
5861
CFLAGS="-g"
5862
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5863
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5864
if test "${ac_cv_prog_cc_g+set}" = set; then
5865
  echo $ECHO_N "(cached) $ECHO_C" >&6
5866
else
5867
  cat >conftest.$ac_ext <<_ACEOF
5868
/* confdefs.h.  */
5869
_ACEOF
5870
cat confdefs.h >>conftest.$ac_ext
5871
cat >>conftest.$ac_ext <<_ACEOF
5872
/* end confdefs.h.  */
5873
 
5874
int
5875
main ()
5876
{
5877
 
5878
  ;
5879
  return 0;
5880
}
5881
_ACEOF
5882
rm -f conftest.$ac_objext
5883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884
  (eval $ac_compile) 2>conftest.er1
5885
  ac_status=$?
5886
  grep -v '^ *+' conftest.er1 >conftest.err
5887
  rm -f conftest.er1
5888
  cat conftest.err >&5
5889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890
  (exit $ac_status); } &&
5891
         { ac_try='test -z "$ac_c_werror_flag"
5892
                         || test ! -s conftest.err'
5893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894
  (eval $ac_try) 2>&5
5895
  ac_status=$?
5896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897
  (exit $ac_status); }; } &&
5898
         { ac_try='test -s conftest.$ac_objext'
5899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900
  (eval $ac_try) 2>&5
5901
  ac_status=$?
5902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903
  (exit $ac_status); }; }; then
5904
  ac_cv_prog_cc_g=yes
5905
else
5906
  echo "$as_me: failed program was:" >&5
5907
sed 's/^/| /' conftest.$ac_ext >&5
5908
 
5909
ac_cv_prog_cc_g=no
5910
fi
5911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912
fi
5913
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5914
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5915
if test "$ac_test_CFLAGS" = set; then
5916
  CFLAGS=$ac_save_CFLAGS
5917
elif test $ac_cv_prog_cc_g = yes; then
5918
  if test "$GCC" = yes; then
5919
    CFLAGS="-g -O2"
5920
  else
5921
    CFLAGS="-g"
5922
  fi
5923
else
5924
  if test "$GCC" = yes; then
5925
    CFLAGS="-O2"
5926
  else
5927
    CFLAGS=
5928
  fi
5929
fi
5930
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5931
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5932
if test "${ac_cv_prog_cc_stdc+set}" = set; then
5933
  echo $ECHO_N "(cached) $ECHO_C" >&6
5934
else
5935
  ac_cv_prog_cc_stdc=no
5936
ac_save_CC=$CC
5937
cat >conftest.$ac_ext <<_ACEOF
5938
/* confdefs.h.  */
5939
_ACEOF
5940
cat confdefs.h >>conftest.$ac_ext
5941
cat >>conftest.$ac_ext <<_ACEOF
5942
/* end confdefs.h.  */
5943
#include 
5944
#include 
5945
#include 
5946
#include 
5947
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5948
struct buf { int x; };
5949
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5950
static char *e (p, i)
5951
     char **p;
5952
     int i;
5953
{
5954
  return p[i];
5955
}
5956
static char *f (char * (*g) (char **, int), char **p, ...)
5957
{
5958
  char *s;
5959
  va_list v;
5960
  va_start (v,p);
5961
  s = g (p, va_arg (v,int));
5962
  va_end (v);
5963
  return s;
5964
}
5965
 
5966
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5967
   function prototypes and stuff, but not '\xHH' hex character constants.
5968
   These don't provoke an error unfortunately, instead are silently treated
5969
   as 'x'.  The following induces an error, until -std1 is added to get
5970
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5971
   array size at least.  It's necessary to write '\x00'==0 to get something
5972
   that's true only with -std1.  */
5973
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5974
 
5975
int test (int i, double x);
5976
struct s1 {int (*f) (int a);};
5977
struct s2 {int (*f) (double a);};
5978
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5979
int argc;
5980
char **argv;
5981
int
5982
main ()
5983
{
5984
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5985
  ;
5986
  return 0;
5987
}
5988
_ACEOF
5989
# Don't try gcc -ansi; that turns off useful extensions and
5990
# breaks some systems' header files.
5991
# AIX                   -qlanglvl=ansi
5992
# Ultrix and OSF/1      -std1
5993
# HP-UX 10.20 and later -Ae
5994
# HP-UX older versions  -Aa -D_HPUX_SOURCE
5995
# SVR4                  -Xc -D__EXTENSIONS__
5996
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5997
do
5998
  CC="$ac_save_CC $ac_arg"
5999
  rm -f conftest.$ac_objext
6000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001
  (eval $ac_compile) 2>conftest.er1
6002
  ac_status=$?
6003
  grep -v '^ *+' conftest.er1 >conftest.err
6004
  rm -f conftest.er1
6005
  cat conftest.err >&5
6006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
  (exit $ac_status); } &&
6008
         { ac_try='test -z "$ac_c_werror_flag"
6009
                         || test ! -s conftest.err'
6010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011
  (eval $ac_try) 2>&5
6012
  ac_status=$?
6013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014
  (exit $ac_status); }; } &&
6015
         { ac_try='test -s conftest.$ac_objext'
6016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017
  (eval $ac_try) 2>&5
6018
  ac_status=$?
6019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020
  (exit $ac_status); }; }; then
6021
  ac_cv_prog_cc_stdc=$ac_arg
6022
break
6023
else
6024
  echo "$as_me: failed program was:" >&5
6025
sed 's/^/| /' conftest.$ac_ext >&5
6026
 
6027
fi
6028
rm -f conftest.err conftest.$ac_objext
6029
done
6030
rm -f conftest.$ac_ext conftest.$ac_objext
6031
CC=$ac_save_CC
6032
 
6033
fi
6034
 
6035
case "x$ac_cv_prog_cc_stdc" in
6036
  x|xno)
6037
    echo "$as_me:$LINENO: result: none needed" >&5
6038
echo "${ECHO_T}none needed" >&6 ;;
6039
  *)
6040
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6041
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6042
    CC="$CC $ac_cv_prog_cc_stdc" ;;
6043
esac
6044
 
6045
# Some people use a C++ compiler to compile C.  Since we use `exit',
6046
# in C++ we need to declare it.  In case someone uses the same compiler
6047
# for both compiling C and C++ we need to have the C++ compiler decide
6048
# the declaration of exit, since it's the most demanding environment.
6049
cat >conftest.$ac_ext <<_ACEOF
6050
#ifndef __cplusplus
6051
  choke me
6052
#endif
6053
_ACEOF
6054
rm -f conftest.$ac_objext
6055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056
  (eval $ac_compile) 2>conftest.er1
6057
  ac_status=$?
6058
  grep -v '^ *+' conftest.er1 >conftest.err
6059
  rm -f conftest.er1
6060
  cat conftest.err >&5
6061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062
  (exit $ac_status); } &&
6063
         { ac_try='test -z "$ac_c_werror_flag"
6064
                         || test ! -s conftest.err'
6065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066
  (eval $ac_try) 2>&5
6067
  ac_status=$?
6068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069
  (exit $ac_status); }; } &&
6070
         { ac_try='test -s conftest.$ac_objext'
6071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072
  (eval $ac_try) 2>&5
6073
  ac_status=$?
6074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075
  (exit $ac_status); }; }; then
6076
  for ac_declaration in \
6077
   '' \
6078
   'extern "C" void std::exit (int) throw (); using std::exit;' \
6079
   'extern "C" void std::exit (int); using std::exit;' \
6080
   'extern "C" void exit (int) throw ();' \
6081
   'extern "C" void exit (int);' \
6082
   'void exit (int);'
6083
do
6084
  cat >conftest.$ac_ext <<_ACEOF
6085
/* confdefs.h.  */
6086
_ACEOF
6087
cat confdefs.h >>conftest.$ac_ext
6088
cat >>conftest.$ac_ext <<_ACEOF
6089
/* end confdefs.h.  */
6090
$ac_declaration
6091
#include 
6092
int
6093
main ()
6094
{
6095
exit (42);
6096
  ;
6097
  return 0;
6098
}
6099
_ACEOF
6100
rm -f conftest.$ac_objext
6101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102
  (eval $ac_compile) 2>conftest.er1
6103
  ac_status=$?
6104
  grep -v '^ *+' conftest.er1 >conftest.err
6105
  rm -f conftest.er1
6106
  cat conftest.err >&5
6107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108
  (exit $ac_status); } &&
6109
         { ac_try='test -z "$ac_c_werror_flag"
6110
                         || test ! -s conftest.err'
6111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112
  (eval $ac_try) 2>&5
6113
  ac_status=$?
6114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115
  (exit $ac_status); }; } &&
6116
         { ac_try='test -s conftest.$ac_objext'
6117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118
  (eval $ac_try) 2>&5
6119
  ac_status=$?
6120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121
  (exit $ac_status); }; }; then
6122
  :
6123
else
6124
  echo "$as_me: failed program was:" >&5
6125
sed 's/^/| /' conftest.$ac_ext >&5
6126
 
6127
continue
6128
fi
6129
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6130
  cat >conftest.$ac_ext <<_ACEOF
6131
/* confdefs.h.  */
6132
_ACEOF
6133
cat confdefs.h >>conftest.$ac_ext
6134
cat >>conftest.$ac_ext <<_ACEOF
6135
/* end confdefs.h.  */
6136
$ac_declaration
6137
int
6138
main ()
6139
{
6140
exit (42);
6141
  ;
6142
  return 0;
6143
}
6144
_ACEOF
6145
rm -f conftest.$ac_objext
6146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147
  (eval $ac_compile) 2>conftest.er1
6148
  ac_status=$?
6149
  grep -v '^ *+' conftest.er1 >conftest.err
6150
  rm -f conftest.er1
6151
  cat conftest.err >&5
6152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153
  (exit $ac_status); } &&
6154
         { ac_try='test -z "$ac_c_werror_flag"
6155
                         || test ! -s conftest.err'
6156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157
  (eval $ac_try) 2>&5
6158
  ac_status=$?
6159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160
  (exit $ac_status); }; } &&
6161
         { ac_try='test -s conftest.$ac_objext'
6162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163
  (eval $ac_try) 2>&5
6164
  ac_status=$?
6165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166
  (exit $ac_status); }; }; then
6167
  break
6168
else
6169
  echo "$as_me: failed program was:" >&5
6170
sed 's/^/| /' conftest.$ac_ext >&5
6171
 
6172
fi
6173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6174
done
6175
rm -f conftest*
6176
if test -n "$ac_declaration"; then
6177
  echo '#ifdef __cplusplus' >>confdefs.h
6178
  echo $ac_declaration      >>confdefs.h
6179
  echo '#endif'             >>confdefs.h
6180
fi
6181
 
6182
else
6183
  echo "$as_me: failed program was:" >&5
6184
sed 's/^/| /' conftest.$ac_ext >&5
6185
 
6186
fi
6187
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6188
ac_ext=c
6189
ac_cpp='$CPP $CPPFLAGS'
6190
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
 
6194
depcc="$CC"   am_compiler_list=
6195
 
6196
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6197
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6198
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6199
  echo $ECHO_N "(cached) $ECHO_C" >&6
6200
else
6201
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202
  # We make a subdir and do the tests there.  Otherwise we can end up
6203
  # making bogus files that we don't know about and never remove.  For
6204
  # instance it was reported that on HP-UX the gcc test will end up
6205
  # making a dummy file named `D' -- because `-MD' means `put the output
6206
  # in D'.
6207
  mkdir conftest.dir
6208
  # Copy depcomp to subdir because otherwise we won't find it if we're
6209
  # using a relative directory.
6210
  cp "$am_depcomp" conftest.dir
6211
  cd conftest.dir
6212
  # We will build objects and dependencies in a subdirectory because
6213
  # it helps to detect inapplicable dependency modes.  For instance
6214
  # both Tru64's cc and ICC support -MD to output dependencies as a
6215
  # side effect of compilation, but ICC will put the dependencies in
6216
  # the current directory while Tru64 will put them in the object
6217
  # directory.
6218
  mkdir sub
6219
 
6220
  am_cv_CC_dependencies_compiler_type=none
6221
  if test "$am_compiler_list" = ""; then
6222
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6223
  fi
6224
  for depmode in $am_compiler_list; do
6225
    # Setup a source with many dependencies, because some compilers
6226
    # like to wrap large dependency lists on column 80 (with \), and
6227
    # we should not choose a depcomp mode which is confused by this.
6228
    #
6229
    # We need to recreate these files for each test, as the compiler may
6230
    # overwrite some of them when testing with obscure command lines.
6231
    # This happens at least with the AIX C compiler.
6232
    : > sub/conftest.c
6233
    for i in 1 2 3 4 5 6; do
6234
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6235
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6236
      # Solaris 8's {/usr,}/bin/sh.
6237
      touch sub/conftst$i.h
6238
    done
6239
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6240
 
6241
    case $depmode in
6242
    nosideeffect)
6243
      # after this tag, mechanisms are not by side-effect, so they'll
6244
      # only be used when explicitly requested
6245
      if test "x$enable_dependency_tracking" = xyes; then
6246
        continue
6247
      else
6248
        break
6249
      fi
6250
      ;;
6251
    none) break ;;
6252
    esac
6253
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6254
    # mode.  It turns out that the SunPro C++ compiler does not properly
6255
    # handle `-M -o', and we need to detect this.
6256
    if depmode=$depmode \
6257
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6258
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6259
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6260
         >/dev/null 2>conftest.err &&
6261
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6262
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6263
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6264
      # icc doesn't choke on unknown options, it will just issue warnings
6265
      # or remarks (even with -Werror).  So we grep stderr for any message
6266
      # that says an option was ignored or not supported.
6267
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6268
      #   icc: Command line warning: ignoring option '-M'; no argument required
6269
      # The diagnosis changed in icc 8.0:
6270
      #   icc: Command line remark: option '-MP' not supported
6271
      if (grep 'ignoring option' conftest.err ||
6272
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6273
        am_cv_CC_dependencies_compiler_type=$depmode
6274
        break
6275
      fi
6276
    fi
6277
  done
6278
 
6279
  cd ..
6280
  rm -rf conftest.dir
6281
else
6282
  am_cv_CC_dependencies_compiler_type=none
6283
fi
6284
 
6285
fi
6286
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6287
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6288
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6289
 
6290
 
6291
 
6292
if
6293
  test "x$enable_dependency_tracking" != xno \
6294
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6295
  am__fastdepCC_TRUE=
6296
  am__fastdepCC_FALSE='#'
6297
else
6298
  am__fastdepCC_TRUE='#'
6299
  am__fastdepCC_FALSE=
6300
fi
6301
 
6302
 
6303
ac_ext=c
6304
ac_cpp='$CPP $CPPFLAGS'
6305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6308
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6309
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6310
# On Suns, sometimes $CPP names a directory.
6311
if test -n "$CPP" && test -d "$CPP"; then
6312
  CPP=
6313
fi
6314
if test -z "$CPP"; then
6315
  if test "${ac_cv_prog_CPP+set}" = set; then
6316
  echo $ECHO_N "(cached) $ECHO_C" >&6
6317
else
6318
      # Double quotes because CPP needs to be expanded
6319
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6320
    do
6321
      ac_preproc_ok=false
6322
for ac_c_preproc_warn_flag in '' yes
6323
do
6324
  # Use a header file that comes with gcc, so configuring glibc
6325
  # with a fresh cross-compiler works.
6326
  # Prefer  to  if __STDC__ is defined, since
6327
  #  exists even on freestanding compilers.
6328
  # On the NeXT, cc -E runs the code through the compiler's parser,
6329
  # not just through cpp. "Syntax error" is here to catch this case.
6330
  cat >conftest.$ac_ext <<_ACEOF
6331
/* confdefs.h.  */
6332
_ACEOF
6333
cat confdefs.h >>conftest.$ac_ext
6334
cat >>conftest.$ac_ext <<_ACEOF
6335
/* end confdefs.h.  */
6336
#ifdef __STDC__
6337
# include 
6338
#else
6339
# include 
6340
#endif
6341
                     Syntax error
6342
_ACEOF
6343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345
  ac_status=$?
6346
  grep -v '^ *+' conftest.er1 >conftest.err
6347
  rm -f conftest.er1
6348
  cat conftest.err >&5
6349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350
  (exit $ac_status); } >/dev/null; then
6351
  if test -s conftest.err; then
6352
    ac_cpp_err=$ac_c_preproc_warn_flag
6353
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354
  else
6355
    ac_cpp_err=
6356
  fi
6357
else
6358
  ac_cpp_err=yes
6359
fi
6360
if test -z "$ac_cpp_err"; then
6361
  :
6362
else
6363
  echo "$as_me: failed program was:" >&5
6364
sed 's/^/| /' conftest.$ac_ext >&5
6365
 
6366
  # Broken: fails on valid input.
6367
continue
6368
fi
6369
rm -f conftest.err conftest.$ac_ext
6370
 
6371
  # OK, works on sane cases.  Now check whether non-existent headers
6372
  # can be detected and how.
6373
  cat >conftest.$ac_ext <<_ACEOF
6374
/* confdefs.h.  */
6375
_ACEOF
6376
cat confdefs.h >>conftest.$ac_ext
6377
cat >>conftest.$ac_ext <<_ACEOF
6378
/* end confdefs.h.  */
6379
#include 
6380
_ACEOF
6381
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6382
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6383
  ac_status=$?
6384
  grep -v '^ *+' conftest.er1 >conftest.err
6385
  rm -f conftest.er1
6386
  cat conftest.err >&5
6387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
  (exit $ac_status); } >/dev/null; then
6389
  if test -s conftest.err; then
6390
    ac_cpp_err=$ac_c_preproc_warn_flag
6391
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6392
  else
6393
    ac_cpp_err=
6394
  fi
6395
else
6396
  ac_cpp_err=yes
6397
fi
6398
if test -z "$ac_cpp_err"; then
6399
  # Broken: success on invalid input.
6400
continue
6401
else
6402
  echo "$as_me: failed program was:" >&5
6403
sed 's/^/| /' conftest.$ac_ext >&5
6404
 
6405
  # Passes both tests.
6406
ac_preproc_ok=:
6407
break
6408
fi
6409
rm -f conftest.err conftest.$ac_ext
6410
 
6411
done
6412
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6413
rm -f conftest.err conftest.$ac_ext
6414
if $ac_preproc_ok; then
6415
  break
6416
fi
6417
 
6418
    done
6419
    ac_cv_prog_CPP=$CPP
6420
 
6421
fi
6422
  CPP=$ac_cv_prog_CPP
6423
else
6424
  ac_cv_prog_CPP=$CPP
6425
fi
6426
echo "$as_me:$LINENO: result: $CPP" >&5
6427
echo "${ECHO_T}$CPP" >&6
6428
ac_preproc_ok=false
6429
for ac_c_preproc_warn_flag in '' yes
6430
do
6431
  # Use a header file that comes with gcc, so configuring glibc
6432
  # with a fresh cross-compiler works.
6433
  # Prefer  to  if __STDC__ is defined, since
6434
  #  exists even on freestanding compilers.
6435
  # On the NeXT, cc -E runs the code through the compiler's parser,
6436
  # not just through cpp. "Syntax error" is here to catch this case.
6437
  cat >conftest.$ac_ext <<_ACEOF
6438
/* confdefs.h.  */
6439
_ACEOF
6440
cat confdefs.h >>conftest.$ac_ext
6441
cat >>conftest.$ac_ext <<_ACEOF
6442
/* end confdefs.h.  */
6443
#ifdef __STDC__
6444
# include 
6445
#else
6446
# include 
6447
#endif
6448
                     Syntax error
6449
_ACEOF
6450
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452
  ac_status=$?
6453
  grep -v '^ *+' conftest.er1 >conftest.err
6454
  rm -f conftest.er1
6455
  cat conftest.err >&5
6456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457
  (exit $ac_status); } >/dev/null; then
6458
  if test -s conftest.err; then
6459
    ac_cpp_err=$ac_c_preproc_warn_flag
6460
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6461
  else
6462
    ac_cpp_err=
6463
  fi
6464
else
6465
  ac_cpp_err=yes
6466
fi
6467
if test -z "$ac_cpp_err"; then
6468
  :
6469
else
6470
  echo "$as_me: failed program was:" >&5
6471
sed 's/^/| /' conftest.$ac_ext >&5
6472
 
6473
  # Broken: fails on valid input.
6474
continue
6475
fi
6476
rm -f conftest.err conftest.$ac_ext
6477
 
6478
  # OK, works on sane cases.  Now check whether non-existent headers
6479
  # can be detected and how.
6480
  cat >conftest.$ac_ext <<_ACEOF
6481
/* confdefs.h.  */
6482
_ACEOF
6483
cat confdefs.h >>conftest.$ac_ext
6484
cat >>conftest.$ac_ext <<_ACEOF
6485
/* end confdefs.h.  */
6486
#include 
6487
_ACEOF
6488
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6489
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6490
  ac_status=$?
6491
  grep -v '^ *+' conftest.er1 >conftest.err
6492
  rm -f conftest.er1
6493
  cat conftest.err >&5
6494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495
  (exit $ac_status); } >/dev/null; then
6496
  if test -s conftest.err; then
6497
    ac_cpp_err=$ac_c_preproc_warn_flag
6498
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6499
  else
6500
    ac_cpp_err=
6501
  fi
6502
else
6503
  ac_cpp_err=yes
6504
fi
6505
if test -z "$ac_cpp_err"; then
6506
  # Broken: success on invalid input.
6507
continue
6508
else
6509
  echo "$as_me: failed program was:" >&5
6510
sed 's/^/| /' conftest.$ac_ext >&5
6511
 
6512
  # Passes both tests.
6513
ac_preproc_ok=:
6514
break
6515
fi
6516
rm -f conftest.err conftest.$ac_ext
6517
 
6518
done
6519
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6520
rm -f conftest.err conftest.$ac_ext
6521
if $ac_preproc_ok; then
6522
  :
6523
else
6524
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6525
See \`config.log' for more details." >&5
6526
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6527
See \`config.log' for more details." >&2;}
6528
   { (exit 1); exit 1; }; }
6529
fi
6530
 
6531
ac_ext=c
6532
ac_cpp='$CPP $CPPFLAGS'
6533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
 
6537
ac_ext=cc
6538
ac_cpp='$CXXCPP $CPPFLAGS'
6539
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6542
if test -n "$ac_tool_prefix"; then
6543
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6544
  do
6545
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6546
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6547
echo "$as_me:$LINENO: checking for $ac_word" >&5
6548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549
if test "${ac_cv_prog_CXX+set}" = set; then
6550
  echo $ECHO_N "(cached) $ECHO_C" >&6
6551
else
6552
  if test -n "$CXX"; then
6553
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6554
else
6555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556
for as_dir in $PATH
6557
do
6558
  IFS=$as_save_IFS
6559
  test -z "$as_dir" && as_dir=.
6560
  for ac_exec_ext in '' $ac_executable_extensions; do
6561
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6563
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564
    break 2
6565
  fi
6566
done
6567
done
6568
 
6569
fi
6570
fi
6571
CXX=$ac_cv_prog_CXX
6572
if test -n "$CXX"; then
6573
  echo "$as_me:$LINENO: result: $CXX" >&5
6574
echo "${ECHO_T}$CXX" >&6
6575
else
6576
  echo "$as_me:$LINENO: result: no" >&5
6577
echo "${ECHO_T}no" >&6
6578
fi
6579
 
6580
    test -n "$CXX" && break
6581
  done
6582
fi
6583
if test -z "$CXX"; then
6584
  ac_ct_CXX=$CXX
6585
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6586
do
6587
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6588
set dummy $ac_prog; ac_word=$2
6589
echo "$as_me:$LINENO: checking for $ac_word" >&5
6590
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6591
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6592
  echo $ECHO_N "(cached) $ECHO_C" >&6
6593
else
6594
  if test -n "$ac_ct_CXX"; then
6595
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6596
else
6597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598
for as_dir in $PATH
6599
do
6600
  IFS=$as_save_IFS
6601
  test -z "$as_dir" && as_dir=.
6602
  for ac_exec_ext in '' $ac_executable_extensions; do
6603
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604
    ac_cv_prog_ac_ct_CXX="$ac_prog"
6605
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606
    break 2
6607
  fi
6608
done
6609
done
6610
 
6611
fi
6612
fi
6613
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6614
if test -n "$ac_ct_CXX"; then
6615
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6616
echo "${ECHO_T}$ac_ct_CXX" >&6
6617
else
6618
  echo "$as_me:$LINENO: result: no" >&5
6619
echo "${ECHO_T}no" >&6
6620
fi
6621
 
6622
  test -n "$ac_ct_CXX" && break
6623
done
6624
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6625
 
6626
  CXX=$ac_ct_CXX
6627
fi
6628
 
6629
 
6630
# Provide some information about the compiler.
6631
echo "$as_me:$LINENO:" \
6632
     "checking for C++ compiler version" >&5
6633
ac_compiler=`set X $ac_compile; echo $2`
6634
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
6635
  (eval $ac_compiler --version &5) 2>&5
6636
  ac_status=$?
6637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638
  (exit $ac_status); }
6639
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
6640
  (eval $ac_compiler -v &5) 2>&5
6641
  ac_status=$?
6642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643
  (exit $ac_status); }
6644
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
6645
  (eval $ac_compiler -V &5) 2>&5
6646
  ac_status=$?
6647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648
  (exit $ac_status); }
6649
 
6650
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6651
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6652
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6653
  echo $ECHO_N "(cached) $ECHO_C" >&6
6654
else
6655
  cat >conftest.$ac_ext <<_ACEOF
6656
/* confdefs.h.  */
6657
_ACEOF
6658
cat confdefs.h >>conftest.$ac_ext
6659
cat >>conftest.$ac_ext <<_ACEOF
6660
/* end confdefs.h.  */
6661
 
6662
int
6663
main ()
6664
{
6665
#ifndef __GNUC__
6666
       choke me
6667
#endif
6668
 
6669
  ;
6670
  return 0;
6671
}
6672
_ACEOF
6673
rm -f conftest.$ac_objext
6674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675
  (eval $ac_compile) 2>conftest.er1
6676
  ac_status=$?
6677
  grep -v '^ *+' conftest.er1 >conftest.err
6678
  rm -f conftest.er1
6679
  cat conftest.err >&5
6680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681
  (exit $ac_status); } &&
6682
         { ac_try='test -z "$ac_cxx_werror_flag"
6683
                         || test ! -s conftest.err'
6684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685
  (eval $ac_try) 2>&5
6686
  ac_status=$?
6687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688
  (exit $ac_status); }; } &&
6689
         { ac_try='test -s conftest.$ac_objext'
6690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691
  (eval $ac_try) 2>&5
6692
  ac_status=$?
6693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694
  (exit $ac_status); }; }; then
6695
  ac_compiler_gnu=yes
6696
else
6697
  echo "$as_me: failed program was:" >&5
6698
sed 's/^/| /' conftest.$ac_ext >&5
6699
 
6700
ac_compiler_gnu=no
6701
fi
6702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6704
 
6705
fi
6706
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6707
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6708
GXX=`test $ac_compiler_gnu = yes && echo yes`
6709
ac_test_CXXFLAGS=${CXXFLAGS+set}
6710
ac_save_CXXFLAGS=$CXXFLAGS
6711
CXXFLAGS="-g"
6712
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6713
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6714
if test "${ac_cv_prog_cxx_g+set}" = set; then
6715
  echo $ECHO_N "(cached) $ECHO_C" >&6
6716
else
6717
  cat >conftest.$ac_ext <<_ACEOF
6718
/* confdefs.h.  */
6719
_ACEOF
6720
cat confdefs.h >>conftest.$ac_ext
6721
cat >>conftest.$ac_ext <<_ACEOF
6722
/* end confdefs.h.  */
6723
 
6724
int
6725
main ()
6726
{
6727
 
6728
  ;
6729
  return 0;
6730
}
6731
_ACEOF
6732
rm -f conftest.$ac_objext
6733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734
  (eval $ac_compile) 2>conftest.er1
6735
  ac_status=$?
6736
  grep -v '^ *+' conftest.er1 >conftest.err
6737
  rm -f conftest.er1
6738
  cat conftest.err >&5
6739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740
  (exit $ac_status); } &&
6741
         { ac_try='test -z "$ac_cxx_werror_flag"
6742
                         || test ! -s conftest.err'
6743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744
  (eval $ac_try) 2>&5
6745
  ac_status=$?
6746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747
  (exit $ac_status); }; } &&
6748
         { ac_try='test -s conftest.$ac_objext'
6749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750
  (eval $ac_try) 2>&5
6751
  ac_status=$?
6752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753
  (exit $ac_status); }; }; then
6754
  ac_cv_prog_cxx_g=yes
6755
else
6756
  echo "$as_me: failed program was:" >&5
6757
sed 's/^/| /' conftest.$ac_ext >&5
6758
 
6759
ac_cv_prog_cxx_g=no
6760
fi
6761
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6762
fi
6763
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6764
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6765
if test "$ac_test_CXXFLAGS" = set; then
6766
  CXXFLAGS=$ac_save_CXXFLAGS
6767
elif test $ac_cv_prog_cxx_g = yes; then
6768
  if test "$GXX" = yes; then
6769
    CXXFLAGS="-g -O2"
6770
  else
6771
    CXXFLAGS="-g"
6772
  fi
6773
else
6774
  if test "$GXX" = yes; then
6775
    CXXFLAGS="-O2"
6776
  else
6777
    CXXFLAGS=
6778
  fi
6779
fi
6780
for ac_declaration in \
6781
   '' \
6782
   'extern "C" void std::exit (int) throw (); using std::exit;' \
6783
   'extern "C" void std::exit (int); using std::exit;' \
6784
   'extern "C" void exit (int) throw ();' \
6785
   'extern "C" void exit (int);' \
6786
   'void exit (int);'
6787
do
6788
  cat >conftest.$ac_ext <<_ACEOF
6789
/* confdefs.h.  */
6790
_ACEOF
6791
cat confdefs.h >>conftest.$ac_ext
6792
cat >>conftest.$ac_ext <<_ACEOF
6793
/* end confdefs.h.  */
6794
$ac_declaration
6795
#include 
6796
int
6797
main ()
6798
{
6799
exit (42);
6800
  ;
6801
  return 0;
6802
}
6803
_ACEOF
6804
rm -f conftest.$ac_objext
6805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806
  (eval $ac_compile) 2>conftest.er1
6807
  ac_status=$?
6808
  grep -v '^ *+' conftest.er1 >conftest.err
6809
  rm -f conftest.er1
6810
  cat conftest.err >&5
6811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812
  (exit $ac_status); } &&
6813
         { ac_try='test -z "$ac_cxx_werror_flag"
6814
                         || test ! -s conftest.err'
6815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816
  (eval $ac_try) 2>&5
6817
  ac_status=$?
6818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819
  (exit $ac_status); }; } &&
6820
         { ac_try='test -s conftest.$ac_objext'
6821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822
  (eval $ac_try) 2>&5
6823
  ac_status=$?
6824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825
  (exit $ac_status); }; }; then
6826
  :
6827
else
6828
  echo "$as_me: failed program was:" >&5
6829
sed 's/^/| /' conftest.$ac_ext >&5
6830
 
6831
continue
6832
fi
6833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6834
  cat >conftest.$ac_ext <<_ACEOF
6835
/* confdefs.h.  */
6836
_ACEOF
6837
cat confdefs.h >>conftest.$ac_ext
6838
cat >>conftest.$ac_ext <<_ACEOF
6839
/* end confdefs.h.  */
6840
$ac_declaration
6841
int
6842
main ()
6843
{
6844
exit (42);
6845
  ;
6846
  return 0;
6847
}
6848
_ACEOF
6849
rm -f conftest.$ac_objext
6850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851
  (eval $ac_compile) 2>conftest.er1
6852
  ac_status=$?
6853
  grep -v '^ *+' conftest.er1 >conftest.err
6854
  rm -f conftest.er1
6855
  cat conftest.err >&5
6856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
  (exit $ac_status); } &&
6858
         { ac_try='test -z "$ac_cxx_werror_flag"
6859
                         || test ! -s conftest.err'
6860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861
  (eval $ac_try) 2>&5
6862
  ac_status=$?
6863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864
  (exit $ac_status); }; } &&
6865
         { ac_try='test -s conftest.$ac_objext'
6866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867
  (eval $ac_try) 2>&5
6868
  ac_status=$?
6869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870
  (exit $ac_status); }; }; then
6871
  break
6872
else
6873
  echo "$as_me: failed program was:" >&5
6874
sed 's/^/| /' conftest.$ac_ext >&5
6875
 
6876
fi
6877
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878
done
6879
rm -f conftest*
6880
if test -n "$ac_declaration"; then
6881
  echo '#ifdef __cplusplus' >>confdefs.h
6882
  echo $ac_declaration      >>confdefs.h
6883
  echo '#endif'             >>confdefs.h
6884
fi
6885
 
6886
ac_ext=c
6887
ac_cpp='$CPP $CPPFLAGS'
6888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6891
 
6892
depcc="$CXX"  am_compiler_list=
6893
 
6894
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6895
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6896
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6897
  echo $ECHO_N "(cached) $ECHO_C" >&6
6898
else
6899
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6900
  # We make a subdir and do the tests there.  Otherwise we can end up
6901
  # making bogus files that we don't know about and never remove.  For
6902
  # instance it was reported that on HP-UX the gcc test will end up
6903
  # making a dummy file named `D' -- because `-MD' means `put the output
6904
  # in D'.
6905
  mkdir conftest.dir
6906
  # Copy depcomp to subdir because otherwise we won't find it if we're
6907
  # using a relative directory.
6908
  cp "$am_depcomp" conftest.dir
6909
  cd conftest.dir
6910
  # We will build objects and dependencies in a subdirectory because
6911
  # it helps to detect inapplicable dependency modes.  For instance
6912
  # both Tru64's cc and ICC support -MD to output dependencies as a
6913
  # side effect of compilation, but ICC will put the dependencies in
6914
  # the current directory while Tru64 will put them in the object
6915
  # directory.
6916
  mkdir sub
6917
 
6918
  am_cv_CXX_dependencies_compiler_type=none
6919
  if test "$am_compiler_list" = ""; then
6920
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6921
  fi
6922
  for depmode in $am_compiler_list; do
6923
    # Setup a source with many dependencies, because some compilers
6924
    # like to wrap large dependency lists on column 80 (with \), and
6925
    # we should not choose a depcomp mode which is confused by this.
6926
    #
6927
    # We need to recreate these files for each test, as the compiler may
6928
    # overwrite some of them when testing with obscure command lines.
6929
    # This happens at least with the AIX C compiler.
6930
    : > sub/conftest.c
6931
    for i in 1 2 3 4 5 6; do
6932
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6933
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6934
      # Solaris 8's {/usr,}/bin/sh.
6935
      touch sub/conftst$i.h
6936
    done
6937
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6938
 
6939
    case $depmode in
6940
    nosideeffect)
6941
      # after this tag, mechanisms are not by side-effect, so they'll
6942
      # only be used when explicitly requested
6943
      if test "x$enable_dependency_tracking" = xyes; then
6944
        continue
6945
      else
6946
        break
6947
      fi
6948
      ;;
6949
    none) break ;;
6950
    esac
6951
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6952
    # mode.  It turns out that the SunPro C++ compiler does not properly
6953
    # handle `-M -o', and we need to detect this.
6954
    if depmode=$depmode \
6955
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6956
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6957
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6958
         >/dev/null 2>conftest.err &&
6959
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6960
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6961
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6962
      # icc doesn't choke on unknown options, it will just issue warnings
6963
      # or remarks (even with -Werror).  So we grep stderr for any message
6964
      # that says an option was ignored or not supported.
6965
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6966
      #   icc: Command line warning: ignoring option '-M'; no argument required
6967
      # The diagnosis changed in icc 8.0:
6968
      #   icc: Command line remark: option '-MP' not supported
6969
      if (grep 'ignoring option' conftest.err ||
6970
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6971
        am_cv_CXX_dependencies_compiler_type=$depmode
6972
        break
6973
      fi
6974
    fi
6975
  done
6976
 
6977
  cd ..
6978
  rm -rf conftest.dir
6979
else
6980
  am_cv_CXX_dependencies_compiler_type=none
6981
fi
6982
 
6983
fi
6984
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6985
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6986
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6987
 
6988
 
6989
 
6990
if
6991
  test "x$enable_dependency_tracking" != xno \
6992
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6993
  am__fastdepCXX_TRUE=
6994
  am__fastdepCXX_FALSE='#'
6995
else
6996
  am__fastdepCXX_TRUE='#'
6997
  am__fastdepCXX_FALSE=
6998
fi
6999
 
7000
ac_ext=cc
7001
ac_cpp='$CXXCPP $CPPFLAGS'
7002
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7005
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7006
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7007
if test -z "$CXXCPP"; then
7008
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7009
  echo $ECHO_N "(cached) $ECHO_C" >&6
7010
else
7011
      # Double quotes because CXXCPP needs to be expanded
7012
    for CXXCPP in "$CXX -E" "/lib/cpp"
7013
    do
7014
      ac_preproc_ok=false
7015
for ac_cxx_preproc_warn_flag in '' yes
7016
do
7017
  # Use a header file that comes with gcc, so configuring glibc
7018
  # with a fresh cross-compiler works.
7019
  # Prefer  to  if __STDC__ is defined, since
7020
  #  exists even on freestanding compilers.
7021
  # On the NeXT, cc -E runs the code through the compiler's parser,
7022
  # not just through cpp. "Syntax error" is here to catch this case.
7023
  cat >conftest.$ac_ext <<_ACEOF
7024
/* confdefs.h.  */
7025
_ACEOF
7026
cat confdefs.h >>conftest.$ac_ext
7027
cat >>conftest.$ac_ext <<_ACEOF
7028
/* end confdefs.h.  */
7029
#ifdef __STDC__
7030
# include 
7031
#else
7032
# include 
7033
#endif
7034
                     Syntax error
7035
_ACEOF
7036
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7037
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7038
  ac_status=$?
7039
  grep -v '^ *+' conftest.er1 >conftest.err
7040
  rm -f conftest.er1
7041
  cat conftest.err >&5
7042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
  (exit $ac_status); } >/dev/null; then
7044
  if test -s conftest.err; then
7045
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7046
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7047
  else
7048
    ac_cpp_err=
7049
  fi
7050
else
7051
  ac_cpp_err=yes
7052
fi
7053
if test -z "$ac_cpp_err"; then
7054
  :
7055
else
7056
  echo "$as_me: failed program was:" >&5
7057
sed 's/^/| /' conftest.$ac_ext >&5
7058
 
7059
  # Broken: fails on valid input.
7060
continue
7061
fi
7062
rm -f conftest.err conftest.$ac_ext
7063
 
7064
  # OK, works on sane cases.  Now check whether non-existent headers
7065
  # can be detected and how.
7066
  cat >conftest.$ac_ext <<_ACEOF
7067
/* confdefs.h.  */
7068
_ACEOF
7069
cat confdefs.h >>conftest.$ac_ext
7070
cat >>conftest.$ac_ext <<_ACEOF
7071
/* end confdefs.h.  */
7072
#include 
7073
_ACEOF
7074
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7075
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7076
  ac_status=$?
7077
  grep -v '^ *+' conftest.er1 >conftest.err
7078
  rm -f conftest.er1
7079
  cat conftest.err >&5
7080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081
  (exit $ac_status); } >/dev/null; then
7082
  if test -s conftest.err; then
7083
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7084
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7085
  else
7086
    ac_cpp_err=
7087
  fi
7088
else
7089
  ac_cpp_err=yes
7090
fi
7091
if test -z "$ac_cpp_err"; then
7092
  # Broken: success on invalid input.
7093
continue
7094
else
7095
  echo "$as_me: failed program was:" >&5
7096
sed 's/^/| /' conftest.$ac_ext >&5
7097
 
7098
  # Passes both tests.
7099
ac_preproc_ok=:
7100
break
7101
fi
7102
rm -f conftest.err conftest.$ac_ext
7103
 
7104
done
7105
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7106
rm -f conftest.err conftest.$ac_ext
7107
if $ac_preproc_ok; then
7108
  break
7109
fi
7110
 
7111
    done
7112
    ac_cv_prog_CXXCPP=$CXXCPP
7113
 
7114
fi
7115
  CXXCPP=$ac_cv_prog_CXXCPP
7116
else
7117
  ac_cv_prog_CXXCPP=$CXXCPP
7118
fi
7119
echo "$as_me:$LINENO: result: $CXXCPP" >&5
7120
echo "${ECHO_T}$CXXCPP" >&6
7121
ac_preproc_ok=false
7122
for ac_cxx_preproc_warn_flag in '' yes
7123
do
7124
  # Use a header file that comes with gcc, so configuring glibc
7125
  # with a fresh cross-compiler works.
7126
  # Prefer  to  if __STDC__ is defined, since
7127
  #  exists even on freestanding compilers.
7128
  # On the NeXT, cc -E runs the code through the compiler's parser,
7129
  # not just through cpp. "Syntax error" is here to catch this case.
7130
  cat >conftest.$ac_ext <<_ACEOF
7131
/* confdefs.h.  */
7132
_ACEOF
7133
cat confdefs.h >>conftest.$ac_ext
7134
cat >>conftest.$ac_ext <<_ACEOF
7135
/* end confdefs.h.  */
7136
#ifdef __STDC__
7137
# include 
7138
#else
7139
# include 
7140
#endif
7141
                     Syntax error
7142
_ACEOF
7143
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7144
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7145
  ac_status=$?
7146
  grep -v '^ *+' conftest.er1 >conftest.err
7147
  rm -f conftest.er1
7148
  cat conftest.err >&5
7149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150
  (exit $ac_status); } >/dev/null; then
7151
  if test -s conftest.err; then
7152
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7153
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7154
  else
7155
    ac_cpp_err=
7156
  fi
7157
else
7158
  ac_cpp_err=yes
7159
fi
7160
if test -z "$ac_cpp_err"; then
7161
  :
7162
else
7163
  echo "$as_me: failed program was:" >&5
7164
sed 's/^/| /' conftest.$ac_ext >&5
7165
 
7166
  # Broken: fails on valid input.
7167
continue
7168
fi
7169
rm -f conftest.err conftest.$ac_ext
7170
 
7171
  # OK, works on sane cases.  Now check whether non-existent headers
7172
  # can be detected and how.
7173
  cat >conftest.$ac_ext <<_ACEOF
7174
/* confdefs.h.  */
7175
_ACEOF
7176
cat confdefs.h >>conftest.$ac_ext
7177
cat >>conftest.$ac_ext <<_ACEOF
7178
/* end confdefs.h.  */
7179
#include 
7180
_ACEOF
7181
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7182
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7183
  ac_status=$?
7184
  grep -v '^ *+' conftest.er1 >conftest.err
7185
  rm -f conftest.er1
7186
  cat conftest.err >&5
7187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188
  (exit $ac_status); } >/dev/null; then
7189
  if test -s conftest.err; then
7190
    ac_cpp_err=$ac_cxx_preproc_warn_flag
7191
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7192
  else
7193
    ac_cpp_err=
7194
  fi
7195
else
7196
  ac_cpp_err=yes
7197
fi
7198
if test -z "$ac_cpp_err"; then
7199
  # Broken: success on invalid input.
7200
continue
7201
else
7202
  echo "$as_me: failed program was:" >&5
7203
sed 's/^/| /' conftest.$ac_ext >&5
7204
 
7205
  # Passes both tests.
7206
ac_preproc_ok=:
7207
break
7208
fi
7209
rm -f conftest.err conftest.$ac_ext
7210
 
7211
done
7212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7213
rm -f conftest.err conftest.$ac_ext
7214
if $ac_preproc_ok; then
7215
  :
7216
else
7217
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7218
See \`config.log' for more details." >&5
7219
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7220
See \`config.log' for more details." >&2;}
7221
   { (exit 1); exit 1; }; }
7222
fi
7223
 
7224
ac_ext=c
7225
ac_cpp='$CPP $CPPFLAGS'
7226
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
 
7230
 
7231
 
7232
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7233
lt_save_CC="$CC"
7234
lt_save_CFLAGS="$CFLAGS"
7235
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7236
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7237
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7238
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7239
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7240
deplibs_check_method="$deplibs_check_method" \
7241
file_magic_cmd="$file_magic_cmd" \
7242
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7243
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7244
|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7245
echo "$as_me: error: libtool tag configuration failed" >&2;}
7246
   { (exit 1); exit 1; }; }
7247
CC="$lt_save_CC"
7248
CFLAGS="$lt_save_CFLAGS"
7249
 
7250
# Redirect the config.log output again, so that the ltconfig log is not
7251
# clobbered by the next message.
7252
exec 5>>./config.log
7253
 
7254
 
7255
 
7256
 
7257
if test "x${COMPILE_JNI}" = xyes; then
7258
  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7259
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7260
if test "${ac_cv_header_stdc+set}" = set; then
7261
  echo $ECHO_N "(cached) $ECHO_C" >&6
7262
else
7263
  cat >conftest.$ac_ext <<_ACEOF
7264
/* confdefs.h.  */
7265
_ACEOF
7266
cat confdefs.h >>conftest.$ac_ext
7267
cat >>conftest.$ac_ext <<_ACEOF
7268
/* end confdefs.h.  */
7269
#include 
7270
#include 
7271
#include 
7272
#include 
7273
 
7274
int
7275
main ()
7276
{
7277
 
7278
  ;
7279
  return 0;
7280
}
7281
_ACEOF
7282
rm -f conftest.$ac_objext
7283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284
  (eval $ac_compile) 2>conftest.er1
7285
  ac_status=$?
7286
  grep -v '^ *+' conftest.er1 >conftest.err
7287
  rm -f conftest.er1
7288
  cat conftest.err >&5
7289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290
  (exit $ac_status); } &&
7291
         { ac_try='test -z "$ac_c_werror_flag"
7292
                         || test ! -s conftest.err'
7293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294
  (eval $ac_try) 2>&5
7295
  ac_status=$?
7296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297
  (exit $ac_status); }; } &&
7298
         { ac_try='test -s conftest.$ac_objext'
7299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300
  (eval $ac_try) 2>&5
7301
  ac_status=$?
7302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303
  (exit $ac_status); }; }; then
7304
  ac_cv_header_stdc=yes
7305
else
7306
  echo "$as_me: failed program was:" >&5
7307
sed 's/^/| /' conftest.$ac_ext >&5
7308
 
7309
ac_cv_header_stdc=no
7310
fi
7311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312
 
7313
if test $ac_cv_header_stdc = yes; then
7314
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7315
  cat >conftest.$ac_ext <<_ACEOF
7316
/* confdefs.h.  */
7317
_ACEOF
7318
cat confdefs.h >>conftest.$ac_ext
7319
cat >>conftest.$ac_ext <<_ACEOF
7320
/* end confdefs.h.  */
7321
#include 
7322
 
7323
_ACEOF
7324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325
  $EGREP "memchr" >/dev/null 2>&1; then
7326
  :
7327
else
7328
  ac_cv_header_stdc=no
7329
fi
7330
rm -f conftest*
7331
 
7332
fi
7333
 
7334
if test $ac_cv_header_stdc = yes; then
7335
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7336
  cat >conftest.$ac_ext <<_ACEOF
7337
/* confdefs.h.  */
7338
_ACEOF
7339
cat confdefs.h >>conftest.$ac_ext
7340
cat >>conftest.$ac_ext <<_ACEOF
7341
/* end confdefs.h.  */
7342
#include 
7343
 
7344
_ACEOF
7345
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346
  $EGREP "free" >/dev/null 2>&1; then
7347
  :
7348
else
7349
  ac_cv_header_stdc=no
7350
fi
7351
rm -f conftest*
7352
 
7353
fi
7354
 
7355
if test $ac_cv_header_stdc = yes; then
7356
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7357
  if test "$cross_compiling" = yes; then
7358
  :
7359
else
7360
  cat >conftest.$ac_ext <<_ACEOF
7361
/* confdefs.h.  */
7362
_ACEOF
7363
cat confdefs.h >>conftest.$ac_ext
7364
cat >>conftest.$ac_ext <<_ACEOF
7365
/* end confdefs.h.  */
7366
#include 
7367
#if ((' ' & 0x0FF) == 0x020)
7368
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7369
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7370
#else
7371
# define ISLOWER(c) \
7372
                   (('a' <= (c) && (c) <= 'i') \
7373
                     || ('j' <= (c) && (c) <= 'r') \
7374
                     || ('s' <= (c) && (c) <= 'z'))
7375
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7376
#endif
7377
 
7378
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7379
int
7380
main ()
7381
{
7382
  int i;
7383
  for (i = 0; i < 256; i++)
7384
    if (XOR (islower (i), ISLOWER (i))
7385
        || toupper (i) != TOUPPER (i))
7386
      exit(2);
7387
  exit (0);
7388
}
7389
_ACEOF
7390
rm -f conftest$ac_exeext
7391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392
  (eval $ac_link) 2>&5
7393
  ac_status=$?
7394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397
  (eval $ac_try) 2>&5
7398
  ac_status=$?
7399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400
  (exit $ac_status); }; }; then
7401
  :
7402
else
7403
  echo "$as_me: program exited with status $ac_status" >&5
7404
echo "$as_me: failed program was:" >&5
7405
sed 's/^/| /' conftest.$ac_ext >&5
7406
 
7407
( exit $ac_status )
7408
ac_cv_header_stdc=no
7409
fi
7410
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7411
fi
7412
fi
7413
fi
7414
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7415
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7416
if test $ac_cv_header_stdc = yes; then
7417
 
7418
cat >>confdefs.h <<\_ACEOF
7419
#define STDC_HEADERS 1
7420
_ACEOF
7421
 
7422
fi
7423
 
7424
 
7425
      echo "$as_me:$LINENO: checking size of void *" >&5
7426
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7427
if test "${ac_cv_sizeof_void_p+set}" = set; then
7428
  echo $ECHO_N "(cached) $ECHO_C" >&6
7429
else
7430
  for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
7431
  cat >conftest.$ac_ext <<_ACEOF
7432
/* confdefs.h.  */
7433
_ACEOF
7434
cat confdefs.h >>conftest.$ac_ext
7435
cat >>conftest.$ac_ext <<_ACEOF
7436
/* end confdefs.h.  */
7437
#include "confdefs.h"
7438
#include 
7439
 
7440
 
7441
int
7442
main ()
7443
{
7444
switch (0) case 0: case (sizeof (void *) == $ac_size):;
7445
  ;
7446
  return 0;
7447
}
7448
_ACEOF
7449
rm -f conftest.$ac_objext
7450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451
  (eval $ac_compile) 2>conftest.er1
7452
  ac_status=$?
7453
  grep -v '^ *+' conftest.er1 >conftest.err
7454
  rm -f conftest.er1
7455
  cat conftest.err >&5
7456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457
  (exit $ac_status); } &&
7458
         { ac_try='test -z "$ac_c_werror_flag"
7459
                         || test ! -s conftest.err'
7460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461
  (eval $ac_try) 2>&5
7462
  ac_status=$?
7463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464
  (exit $ac_status); }; } &&
7465
         { ac_try='test -s conftest.$ac_objext'
7466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467
  (eval $ac_try) 2>&5
7468
  ac_status=$?
7469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470
  (exit $ac_status); }; }; then
7471
  ac_cv_sizeof_void_p=$ac_size
7472
else
7473
  echo "$as_me: failed program was:" >&5
7474
sed 's/^/| /' conftest.$ac_ext >&5
7475
 
7476
fi
7477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7478
  if test x$ac_cv_sizeof_void_p != x ; then break; fi
7479
done
7480
 
7481
fi
7482
 
7483
if test x$ac_cv_sizeof_void_p = x ; then
7484
  { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
7485
echo "$as_me: error: cannot determine a size for void *" >&2;}
7486
   { (exit 1); exit 1; }; }
7487
fi
7488
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7489
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7490
 
7491
cat >>confdefs.h <<_ACEOF
7492
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7493
_ACEOF
7494
 
7495
 
7496
 
7497
    echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7498
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7499
if test "${ac_cv_c_bigendian+set}" = set; then
7500
  echo $ECHO_N "(cached) $ECHO_C" >&6
7501
else
7502
  ac_cv_c_bigendian=unknown
7503
# See if sys/param.h defines the BYTE_ORDER macro.
7504
cat >conftest.$ac_ext <<_ACEOF
7505
/* confdefs.h.  */
7506
_ACEOF
7507
cat confdefs.h >>conftest.$ac_ext
7508
cat >>conftest.$ac_ext <<_ACEOF
7509
/* end confdefs.h.  */
7510
#include 
7511
#include 
7512
int
7513
main ()
7514
{
7515
 
7516
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7517
 bogus endian macros
7518
#endif
7519
  ;
7520
  return 0;
7521
}
7522
_ACEOF
7523
rm -f conftest.$ac_objext
7524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525
  (eval $ac_compile) 2>conftest.er1
7526
  ac_status=$?
7527
  grep -v '^ *+' conftest.er1 >conftest.err
7528
  rm -f conftest.er1
7529
  cat conftest.err >&5
7530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531
  (exit $ac_status); } &&
7532
         { ac_try='test -z "$ac_c_werror_flag"
7533
                         || test ! -s conftest.err'
7534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535
  (eval $ac_try) 2>&5
7536
  ac_status=$?
7537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538
  (exit $ac_status); }; } &&
7539
         { ac_try='test -s conftest.$ac_objext'
7540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541
  (eval $ac_try) 2>&5
7542
  ac_status=$?
7543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544
  (exit $ac_status); }; }; then
7545
  # It does; now see whether it defined to BIG_ENDIAN or not.
7546
cat >conftest.$ac_ext <<_ACEOF
7547
/* confdefs.h.  */
7548
_ACEOF
7549
cat confdefs.h >>conftest.$ac_ext
7550
cat >>conftest.$ac_ext <<_ACEOF
7551
/* end confdefs.h.  */
7552
#include 
7553
#include 
7554
int
7555
main ()
7556
{
7557
 
7558
#if BYTE_ORDER != BIG_ENDIAN
7559
 not big endian
7560
#endif
7561
  ;
7562
  return 0;
7563
}
7564
_ACEOF
7565
rm -f conftest.$ac_objext
7566
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567
  (eval $ac_compile) 2>conftest.er1
7568
  ac_status=$?
7569
  grep -v '^ *+' conftest.er1 >conftest.err
7570
  rm -f conftest.er1
7571
  cat conftest.err >&5
7572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573
  (exit $ac_status); } &&
7574
         { ac_try='test -z "$ac_c_werror_flag"
7575
                         || test ! -s conftest.err'
7576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577
  (eval $ac_try) 2>&5
7578
  ac_status=$?
7579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580
  (exit $ac_status); }; } &&
7581
         { ac_try='test -s conftest.$ac_objext'
7582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583
  (eval $ac_try) 2>&5
7584
  ac_status=$?
7585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586
  (exit $ac_status); }; }; then
7587
  ac_cv_c_bigendian=yes
7588
else
7589
  echo "$as_me: failed program was:" >&5
7590
sed 's/^/| /' conftest.$ac_ext >&5
7591
 
7592
ac_cv_c_bigendian=no
7593
fi
7594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7595
else
7596
  echo "$as_me: failed program was:" >&5
7597
sed 's/^/| /' conftest.$ac_ext >&5
7598
 
7599
fi
7600
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7601
if test $ac_cv_c_bigendian = unknown; then
7602
if test "$cross_compiling" = yes; then
7603
   echo $ac_n "cross-compiling... " 2>&6
7604
else
7605
  cat >conftest.$ac_ext <<_ACEOF
7606
/* confdefs.h.  */
7607
_ACEOF
7608
cat confdefs.h >>conftest.$ac_ext
7609
cat >>conftest.$ac_ext <<_ACEOF
7610
/* end confdefs.h.  */
7611
main () {
7612
  /* Are we little or big endian?  From Harbison&Steele.  */
7613
  union
7614
  {
7615
    long l;
7616
    char c[sizeof (long)];
7617
  } u;
7618
  u.l = 1;
7619
  exit (u.c[sizeof (long) - 1] == 1);
7620
}
7621
_ACEOF
7622
rm -f conftest$ac_exeext
7623
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624
  (eval $ac_link) 2>&5
7625
  ac_status=$?
7626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629
  (eval $ac_try) 2>&5
7630
  ac_status=$?
7631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632
  (exit $ac_status); }; }; then
7633
  ac_cv_c_bigendian=no
7634
else
7635
  echo "$as_me: program exited with status $ac_status" >&5
7636
echo "$as_me: failed program was:" >&5
7637
sed 's/^/| /' conftest.$ac_ext >&5
7638
 
7639
( exit $ac_status )
7640
ac_cv_c_bigendian=yes
7641
fi
7642
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7643
fi
7644
fi
7645
fi
7646
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7647
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7648
if test $ac_cv_c_bigendian = unknown; then
7649
echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
7650
echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
7651
 
7652
cat >conftest.c <
7653
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7654
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7655
void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7656
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7657
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7658
void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7659
int main() { _ascii (); _ebcdic (); return 0; }
7660
EOF
7661
 if test -f conftest.c ; then
7662
     if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7663
        if test `grep -l BIGenDianSyS conftest.o` ; then
7664
           echo $ac_n ' big endian probe OK, ' 1>&6
7665
           ac_cv_c_bigendian=yes
7666
        fi
7667
        if test `grep -l LiTTleEnDian conftest.o` ; then
7668
           echo $ac_n ' little endian probe OK, ' 1>&6
7669
           if test $ac_cv_c_bigendian = yes ; then
7670
            ac_cv_c_bigendian=unknown;
7671
           else
7672
            ac_cv_c_bigendian=no
7673
           fi
7674
        fi
7675
        echo $ac_n 'guessing bigendian ...  ' >&6
7676
     fi
7677
  fi
7678
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7679
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7680
fi
7681
if test $ac_cv_c_bigendian = yes; then
7682
 
7683
cat >>confdefs.h <<\_ACEOF
7684
#define WORDS_BIGENDIAN 1
7685
_ACEOF
7686
 
7687
 
7688
cat >>confdefs.h <<\_ACEOF
7689
#define HOST_WORDS_BIG_ENDIAN 1
7690
_ACEOF
7691
 
7692
  BYTEORDER=4321
7693
else
7694
  BYTEORDER=1234
7695
fi
7696
 
7697
cat >>confdefs.h <<_ACEOF
7698
#define BYTEORDER $BYTEORDER
7699
_ACEOF
7700
 
7701
if test $ac_cv_c_bigendian = unknown; then
7702
  { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
7703
echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
7704
   { (exit 1); exit 1; }; }
7705
fi
7706
 
7707
 
7708
 
7709
 
7710
 
7711
 
7712
 
7713
 
7714
 
7715
 
7716
 
7717
 
7718
 
7719
 
7720
 
7721
 
7722
 
7723
for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7724
                    asm/ioctls.h \
7725
                    inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7726
                    sys/time.h \
7727
                    sys/select.h \
7728
                    crt_externs.h \
7729
                    fcntl.h \
7730
                    sys/mman.h
7731
do
7732
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7733
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7735
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7736
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737
  echo $ECHO_N "(cached) $ECHO_C" >&6
7738
fi
7739
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741
else
7742
  # Is the header compilable?
7743
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7744
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7745
cat >conftest.$ac_ext <<_ACEOF
7746
/* confdefs.h.  */
7747
_ACEOF
7748
cat confdefs.h >>conftest.$ac_ext
7749
cat >>conftest.$ac_ext <<_ACEOF
7750
/* end confdefs.h.  */
7751
$ac_includes_default
7752
#include <$ac_header>
7753
_ACEOF
7754
rm -f conftest.$ac_objext
7755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756
  (eval $ac_compile) 2>conftest.er1
7757
  ac_status=$?
7758
  grep -v '^ *+' conftest.er1 >conftest.err
7759
  rm -f conftest.er1
7760
  cat conftest.err >&5
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
  (exit $ac_status); } &&
7763
         { ac_try='test -z "$ac_c_werror_flag"
7764
                         || test ! -s conftest.err'
7765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766
  (eval $ac_try) 2>&5
7767
  ac_status=$?
7768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769
  (exit $ac_status); }; } &&
7770
         { ac_try='test -s conftest.$ac_objext'
7771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772
  (eval $ac_try) 2>&5
7773
  ac_status=$?
7774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775
  (exit $ac_status); }; }; then
7776
  ac_header_compiler=yes
7777
else
7778
  echo "$as_me: failed program was:" >&5
7779
sed 's/^/| /' conftest.$ac_ext >&5
7780
 
7781
ac_header_compiler=no
7782
fi
7783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7785
echo "${ECHO_T}$ac_header_compiler" >&6
7786
 
7787
# Is the header present?
7788
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7789
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7790
cat >conftest.$ac_ext <<_ACEOF
7791
/* confdefs.h.  */
7792
_ACEOF
7793
cat confdefs.h >>conftest.$ac_ext
7794
cat >>conftest.$ac_ext <<_ACEOF
7795
/* end confdefs.h.  */
7796
#include <$ac_header>
7797
_ACEOF
7798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800
  ac_status=$?
7801
  grep -v '^ *+' conftest.er1 >conftest.err
7802
  rm -f conftest.er1
7803
  cat conftest.err >&5
7804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805
  (exit $ac_status); } >/dev/null; then
7806
  if test -s conftest.err; then
7807
    ac_cpp_err=$ac_c_preproc_warn_flag
7808
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7809
  else
7810
    ac_cpp_err=
7811
  fi
7812
else
7813
  ac_cpp_err=yes
7814
fi
7815
if test -z "$ac_cpp_err"; then
7816
  ac_header_preproc=yes
7817
else
7818
  echo "$as_me: failed program was:" >&5
7819
sed 's/^/| /' conftest.$ac_ext >&5
7820
 
7821
  ac_header_preproc=no
7822
fi
7823
rm -f conftest.err conftest.$ac_ext
7824
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7825
echo "${ECHO_T}$ac_header_preproc" >&6
7826
 
7827
# So?  What about this header?
7828
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7829
  yes:no: )
7830
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7831
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7832
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7833
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7834
    ac_header_preproc=yes
7835
    ;;
7836
  no:yes:* )
7837
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7838
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7839
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7840
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7841
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7842
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7843
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7844
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7845
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7848
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7849
    (
7850
      cat <<\_ASBOX
7851
## -------------------------------- ##
7852
## Report this to classpath@gnu.org ##
7853
## -------------------------------- ##
7854
_ASBOX
7855
    ) |
7856
      sed "s/^/$as_me: WARNING:     /" >&2
7857
    ;;
7858
esac
7859
echo "$as_me:$LINENO: checking for $ac_header" >&5
7860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7862
  echo $ECHO_N "(cached) $ECHO_C" >&6
7863
else
7864
  eval "$as_ac_Header=\$ac_header_preproc"
7865
fi
7866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868
 
7869
fi
7870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871
  cat >>confdefs.h <<_ACEOF
7872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873
_ACEOF
7874
 
7875
fi
7876
 
7877
done
7878
 
7879
 
7880
  cat >conftest.$ac_ext <<_ACEOF
7881
/* confdefs.h.  */
7882
_ACEOF
7883
cat confdefs.h >>conftest.$ac_ext
7884
cat >>conftest.$ac_ext <<_ACEOF
7885
/* end confdefs.h.  */
7886
#include 
7887
 
7888
_ACEOF
7889
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890
  $EGREP "uint32_t" >/dev/null 2>&1; then
7891
 
7892
cat >>confdefs.h <<\_ACEOF
7893
#define HAVE_INT32_DEFINED 1
7894
_ACEOF
7895
 
7896
fi
7897
rm -f conftest*
7898
 
7899
  cat >conftest.$ac_ext <<_ACEOF
7900
/* confdefs.h.  */
7901
_ACEOF
7902
cat confdefs.h >>conftest.$ac_ext
7903
cat >>conftest.$ac_ext <<_ACEOF
7904
/* end confdefs.h.  */
7905
#include 
7906
 
7907
_ACEOF
7908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909
  $EGREP "uint32_t" >/dev/null 2>&1; then
7910
 
7911
cat >>confdefs.h <<\_ACEOF
7912
#define HAVE_INT32_DEFINED 1
7913
_ACEOF
7914
 
7915
fi
7916
rm -f conftest*
7917
 
7918
  cat >conftest.$ac_ext <<_ACEOF
7919
/* confdefs.h.  */
7920
_ACEOF
7921
cat confdefs.h >>conftest.$ac_ext
7922
cat >>conftest.$ac_ext <<_ACEOF
7923
/* end confdefs.h.  */
7924
#include 
7925
 
7926
_ACEOF
7927
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928
  $EGREP "u_int32_t" >/dev/null 2>&1; then
7929
 
7930
cat >>confdefs.h <<\_ACEOF
7931
#define HAVE_BSD_INT32_DEFINED 1
7932
_ACEOF
7933
 
7934
fi
7935
rm -f conftest*
7936
 
7937
  cat >conftest.$ac_ext <<_ACEOF
7938
/* confdefs.h.  */
7939
_ACEOF
7940
cat confdefs.h >>conftest.$ac_ext
7941
cat >>conftest.$ac_ext <<_ACEOF
7942
/* end confdefs.h.  */
7943
#include 
7944
 
7945
_ACEOF
7946
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7947
  $EGREP "u_int32_t" >/dev/null 2>&1; then
7948
 
7949
cat >>confdefs.h <<\_ACEOF
7950
#define HAVE_BSD_INT32_DEFINED 1
7951
_ACEOF
7952
 
7953
fi
7954
rm -f conftest*
7955
 
7956
 
7957
 
7958
 
7959
 
7960
 
7961
 
7962
 
7963
 
7964
 
7965
 
7966
 
7967
 
7968
 
7969
 
7970
 
7971
 
7972
 
7973
 
7974
 
7975
 
7976
 
7977
 
7978
 
7979
 
7980
 
7981
 
7982
 
7983
 
7984
 
7985
 
7986
 
7987
 
7988
 
7989
 
7990
 
7991
 
7992
 
7993
 
7994
 
7995
 
7996
 
7997
 
7998
for ac_func in ftruncate fsync select \
7999
                  gethostname socket strerror fork pipe execve open close \
8000
                  lseek fstat read write htonl memset htons connect \
8001
                  getsockname getpeername bind listen accept \
8002
                  recvfrom send sendto setsockopt getsockopt time mktime \
8003
                  localtime_r \
8004
                  strerror_r \
8005
                  fcntl \
8006
                  mmap munmap mincore msync madvise getpagesize sysconf
8007
do
8008
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009
echo "$as_me:$LINENO: checking for $ac_func" >&5
8010
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8011
if eval "test \"\${$as_ac_var+set}\" = set"; then
8012
  echo $ECHO_N "(cached) $ECHO_C" >&6
8013
else
8014
  if test x$gcc_no_link = xyes; then
8015
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8016
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8017
   { (exit 1); exit 1; }; }
8018
fi
8019
cat >conftest.$ac_ext <<_ACEOF
8020
/* confdefs.h.  */
8021
_ACEOF
8022
cat confdefs.h >>conftest.$ac_ext
8023
cat >>conftest.$ac_ext <<_ACEOF
8024
/* end confdefs.h.  */
8025
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
8026
   For example, HP-UX 11i  declares gettimeofday.  */
8027
#define $ac_func innocuous_$ac_func
8028
 
8029
/* System header to define __stub macros and hopefully few prototypes,
8030
    which can conflict with char $ac_func (); below.
8031
    Prefer  to  if __STDC__ is defined, since
8032
     exists even on freestanding compilers.  */
8033
 
8034
#ifdef __STDC__
8035
# include 
8036
#else
8037
# include 
8038
#endif
8039
 
8040
#undef $ac_func
8041
 
8042
/* Override any gcc2 internal prototype to avoid an error.  */
8043
#ifdef __cplusplus
8044
extern "C"
8045
{
8046
#endif
8047
/* We use char because int might match the return type of a gcc2
8048
   builtin and then its argument prototype would still apply.  */
8049
char $ac_func ();
8050
/* The GNU C library defines this for functions which it implements
8051
    to always fail with ENOSYS.  Some functions are actually named
8052
    something starting with __ and the normal name is an alias.  */
8053
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8054
choke me
8055
#else
8056
char (*f) () = $ac_func;
8057
#endif
8058
#ifdef __cplusplus
8059
}
8060
#endif
8061
 
8062
int
8063
main ()
8064
{
8065
return f != $ac_func;
8066
  ;
8067
  return 0;
8068
}
8069
_ACEOF
8070
rm -f conftest.$ac_objext conftest$ac_exeext
8071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072
  (eval $ac_link) 2>conftest.er1
8073
  ac_status=$?
8074
  grep -v '^ *+' conftest.er1 >conftest.err
8075
  rm -f conftest.er1
8076
  cat conftest.err >&5
8077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078
  (exit $ac_status); } &&
8079
         { ac_try='test -z "$ac_c_werror_flag"
8080
                         || test ! -s conftest.err'
8081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082
  (eval $ac_try) 2>&5
8083
  ac_status=$?
8084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085
  (exit $ac_status); }; } &&
8086
         { ac_try='test -s conftest$ac_exeext'
8087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088
  (eval $ac_try) 2>&5
8089
  ac_status=$?
8090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091
  (exit $ac_status); }; }; then
8092
  eval "$as_ac_var=yes"
8093
else
8094
  echo "$as_me: failed program was:" >&5
8095
sed 's/^/| /' conftest.$ac_ext >&5
8096
 
8097
eval "$as_ac_var=no"
8098
fi
8099
rm -f conftest.err conftest.$ac_objext \
8100
      conftest$ac_exeext conftest.$ac_ext
8101
fi
8102
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8103
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8104
if test `eval echo '${'$as_ac_var'}'` = yes; then
8105
  cat >>confdefs.h <<_ACEOF
8106
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8107
_ACEOF
8108
 
8109
fi
8110
done
8111
 
8112
 
8113
  echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8114
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8115
if test "${ac_cv_header_time+set}" = set; then
8116
  echo $ECHO_N "(cached) $ECHO_C" >&6
8117
else
8118
  cat >conftest.$ac_ext <<_ACEOF
8119
/* confdefs.h.  */
8120
_ACEOF
8121
cat confdefs.h >>conftest.$ac_ext
8122
cat >>conftest.$ac_ext <<_ACEOF
8123
/* end confdefs.h.  */
8124
#include 
8125
#include 
8126
#include 
8127
 
8128
int
8129
main ()
8130
{
8131
if ((struct tm *) 0)
8132
return 0;
8133
  ;
8134
  return 0;
8135
}
8136
_ACEOF
8137
rm -f conftest.$ac_objext
8138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139
  (eval $ac_compile) 2>conftest.er1
8140
  ac_status=$?
8141
  grep -v '^ *+' conftest.er1 >conftest.err
8142
  rm -f conftest.er1
8143
  cat conftest.err >&5
8144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145
  (exit $ac_status); } &&
8146
         { ac_try='test -z "$ac_c_werror_flag"
8147
                         || test ! -s conftest.err'
8148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149
  (eval $ac_try) 2>&5
8150
  ac_status=$?
8151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152
  (exit $ac_status); }; } &&
8153
         { ac_try='test -s conftest.$ac_objext'
8154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155
  (eval $ac_try) 2>&5
8156
  ac_status=$?
8157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158
  (exit $ac_status); }; }; then
8159
  ac_cv_header_time=yes
8160
else
8161
  echo "$as_me: failed program was:" >&5
8162
sed 's/^/| /' conftest.$ac_ext >&5
8163
 
8164
ac_cv_header_time=no
8165
fi
8166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167
fi
8168
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8169
echo "${ECHO_T}$ac_cv_header_time" >&6
8170
if test $ac_cv_header_time = yes; then
8171
 
8172
cat >>confdefs.h <<\_ACEOF
8173
#define TIME_WITH_SYS_TIME 1
8174
_ACEOF
8175
 
8176
fi
8177
 
8178
  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8179
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8180
if test "${ac_cv_struct_tm+set}" = set; then
8181
  echo $ECHO_N "(cached) $ECHO_C" >&6
8182
else
8183
  cat >conftest.$ac_ext <<_ACEOF
8184
/* confdefs.h.  */
8185
_ACEOF
8186
cat confdefs.h >>conftest.$ac_ext
8187
cat >>conftest.$ac_ext <<_ACEOF
8188
/* end confdefs.h.  */
8189
#include 
8190
#include 
8191
 
8192
int
8193
main ()
8194
{
8195
struct tm *tp; tp->tm_sec;
8196
  ;
8197
  return 0;
8198
}
8199
_ACEOF
8200
rm -f conftest.$ac_objext
8201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8202
  (eval $ac_compile) 2>conftest.er1
8203
  ac_status=$?
8204
  grep -v '^ *+' conftest.er1 >conftest.err
8205
  rm -f conftest.er1
8206
  cat conftest.err >&5
8207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208
  (exit $ac_status); } &&
8209
         { ac_try='test -z "$ac_c_werror_flag"
8210
                         || test ! -s conftest.err'
8211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212
  (eval $ac_try) 2>&5
8213
  ac_status=$?
8214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215
  (exit $ac_status); }; } &&
8216
         { ac_try='test -s conftest.$ac_objext'
8217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218
  (eval $ac_try) 2>&5
8219
  ac_status=$?
8220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221
  (exit $ac_status); }; }; then
8222
  ac_cv_struct_tm=time.h
8223
else
8224
  echo "$as_me: failed program was:" >&5
8225
sed 's/^/| /' conftest.$ac_ext >&5
8226
 
8227
ac_cv_struct_tm=sys/time.h
8228
fi
8229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8230
fi
8231
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8232
echo "${ECHO_T}$ac_cv_struct_tm" >&6
8233
if test $ac_cv_struct_tm = sys/time.h; then
8234
 
8235
cat >>confdefs.h <<\_ACEOF
8236
#define TM_IN_SYS_TIME 1
8237
_ACEOF
8238
 
8239
fi
8240
 
8241
  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8242
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8243
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8244
  echo $ECHO_N "(cached) $ECHO_C" >&6
8245
else
8246
  cat >conftest.$ac_ext <<_ACEOF
8247
/* confdefs.h.  */
8248
_ACEOF
8249
cat confdefs.h >>conftest.$ac_ext
8250
cat >>conftest.$ac_ext <<_ACEOF
8251
/* end confdefs.h.  */
8252
#include 
8253
#include <$ac_cv_struct_tm>
8254
 
8255
 
8256
int
8257
main ()
8258
{
8259
static struct tm ac_aggr;
8260
if (ac_aggr.tm_zone)
8261
return 0;
8262
  ;
8263
  return 0;
8264
}
8265
_ACEOF
8266
rm -f conftest.$ac_objext
8267
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268
  (eval $ac_compile) 2>conftest.er1
8269
  ac_status=$?
8270
  grep -v '^ *+' conftest.er1 >conftest.err
8271
  rm -f conftest.er1
8272
  cat conftest.err >&5
8273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274
  (exit $ac_status); } &&
8275
         { ac_try='test -z "$ac_c_werror_flag"
8276
                         || test ! -s conftest.err'
8277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278
  (eval $ac_try) 2>&5
8279
  ac_status=$?
8280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281
  (exit $ac_status); }; } &&
8282
         { ac_try='test -s conftest.$ac_objext'
8283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284
  (eval $ac_try) 2>&5
8285
  ac_status=$?
8286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287
  (exit $ac_status); }; }; then
8288
  ac_cv_member_struct_tm_tm_zone=yes
8289
else
8290
  echo "$as_me: failed program was:" >&5
8291
sed 's/^/| /' conftest.$ac_ext >&5
8292
 
8293
cat >conftest.$ac_ext <<_ACEOF
8294
/* confdefs.h.  */
8295
_ACEOF
8296
cat confdefs.h >>conftest.$ac_ext
8297
cat >>conftest.$ac_ext <<_ACEOF
8298
/* end confdefs.h.  */
8299
#include 
8300
#include <$ac_cv_struct_tm>
8301
 
8302
 
8303
int
8304
main ()
8305
{
8306
static struct tm ac_aggr;
8307
if (sizeof ac_aggr.tm_zone)
8308
return 0;
8309
  ;
8310
  return 0;
8311
}
8312
_ACEOF
8313
rm -f conftest.$ac_objext
8314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315
  (eval $ac_compile) 2>conftest.er1
8316
  ac_status=$?
8317
  grep -v '^ *+' conftest.er1 >conftest.err
8318
  rm -f conftest.er1
8319
  cat conftest.err >&5
8320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321
  (exit $ac_status); } &&
8322
         { ac_try='test -z "$ac_c_werror_flag"
8323
                         || test ! -s conftest.err'
8324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325
  (eval $ac_try) 2>&5
8326
  ac_status=$?
8327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328
  (exit $ac_status); }; } &&
8329
         { ac_try='test -s conftest.$ac_objext'
8330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331
  (eval $ac_try) 2>&5
8332
  ac_status=$?
8333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334
  (exit $ac_status); }; }; then
8335
  ac_cv_member_struct_tm_tm_zone=yes
8336
else
8337
  echo "$as_me: failed program was:" >&5
8338
sed 's/^/| /' conftest.$ac_ext >&5
8339
 
8340
ac_cv_member_struct_tm_tm_zone=no
8341
fi
8342
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343
fi
8344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345
fi
8346
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8347
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8348
if test $ac_cv_member_struct_tm_tm_zone = yes; then
8349
 
8350
cat >>confdefs.h <<_ACEOF
8351
#define HAVE_STRUCT_TM_TM_ZONE 1
8352
_ACEOF
8353
 
8354
 
8355
fi
8356
 
8357
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8358
 
8359
cat >>confdefs.h <<\_ACEOF
8360
#define HAVE_TM_ZONE 1
8361
_ACEOF
8362
 
8363
else
8364
  echo "$as_me:$LINENO: checking for tzname" >&5
8365
echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8366
if test "${ac_cv_var_tzname+set}" = set; then
8367
  echo $ECHO_N "(cached) $ECHO_C" >&6
8368
else
8369
  if test x$gcc_no_link = xyes; then
8370
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8371
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8372
   { (exit 1); exit 1; }; }
8373
fi
8374
cat >conftest.$ac_ext <<_ACEOF
8375
/* confdefs.h.  */
8376
_ACEOF
8377
cat confdefs.h >>conftest.$ac_ext
8378
cat >>conftest.$ac_ext <<_ACEOF
8379
/* end confdefs.h.  */
8380
#include 
8381
#ifndef tzname /* For SGI.  */
8382
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8383
#endif
8384
 
8385
int
8386
main ()
8387
{
8388
atoi(*tzname);
8389
  ;
8390
  return 0;
8391
}
8392
_ACEOF
8393
rm -f conftest.$ac_objext conftest$ac_exeext
8394
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395
  (eval $ac_link) 2>conftest.er1
8396
  ac_status=$?
8397
  grep -v '^ *+' conftest.er1 >conftest.err
8398
  rm -f conftest.er1
8399
  cat conftest.err >&5
8400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401
  (exit $ac_status); } &&
8402
         { ac_try='test -z "$ac_c_werror_flag"
8403
                         || test ! -s conftest.err'
8404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405
  (eval $ac_try) 2>&5
8406
  ac_status=$?
8407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408
  (exit $ac_status); }; } &&
8409
         { ac_try='test -s conftest$ac_exeext'
8410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411
  (eval $ac_try) 2>&5
8412
  ac_status=$?
8413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414
  (exit $ac_status); }; }; then
8415
  ac_cv_var_tzname=yes
8416
else
8417
  echo "$as_me: failed program was:" >&5
8418
sed 's/^/| /' conftest.$ac_ext >&5
8419
 
8420
ac_cv_var_tzname=no
8421
fi
8422
rm -f conftest.err conftest.$ac_objext \
8423
      conftest$ac_exeext conftest.$ac_ext
8424
fi
8425
echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8426
echo "${ECHO_T}$ac_cv_var_tzname" >&6
8427
  if test $ac_cv_var_tzname = yes; then
8428
 
8429
cat >>confdefs.h <<\_ACEOF
8430
#define HAVE_TZNAME 1
8431
_ACEOF
8432
 
8433
  fi
8434
fi
8435
 
8436
 
8437
  echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8438
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8439
  cat >conftest.$ac_ext <<_ACEOF
8440
/* confdefs.h.  */
8441
_ACEOF
8442
cat confdefs.h >>conftest.$ac_ext
8443
cat >>conftest.$ac_ext <<_ACEOF
8444
/* end confdefs.h.  */
8445
#include 
8446
int
8447
main ()
8448
{
8449
struct tm tim; tim.tm_gmtoff = 0;
8450
  ;
8451
  return 0;
8452
}
8453
_ACEOF
8454
rm -f conftest.$ac_objext
8455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456
  (eval $ac_compile) 2>conftest.er1
8457
  ac_status=$?
8458
  grep -v '^ *+' conftest.er1 >conftest.err
8459
  rm -f conftest.er1
8460
  cat conftest.err >&5
8461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462
  (exit $ac_status); } &&
8463
         { ac_try='test -z "$ac_c_werror_flag"
8464
                         || test ! -s conftest.err'
8465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466
  (eval $ac_try) 2>&5
8467
  ac_status=$?
8468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469
  (exit $ac_status); }; } &&
8470
         { ac_try='test -s conftest.$ac_objext'
8471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472
  (eval $ac_try) 2>&5
8473
  ac_status=$?
8474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475
  (exit $ac_status); }; }; then
8476
 
8477
cat >>confdefs.h <<\_ACEOF
8478
#define STRUCT_TM_HAS_GMTOFF 1
8479
_ACEOF
8480
 
8481
   echo "$as_me:$LINENO: result: yes" >&5
8482
echo "${ECHO_T}yes" >&6
8483
else
8484
  echo "$as_me: failed program was:" >&5
8485
sed 's/^/| /' conftest.$ac_ext >&5
8486
 
8487
echo "$as_me:$LINENO: result: no" >&5
8488
echo "${ECHO_T}no" >&6
8489
   echo "$as_me:$LINENO: checking for global timezone variable" >&5
8490
echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8491
               cat >conftest.$ac_ext <<_ACEOF
8492
/* confdefs.h.  */
8493
_ACEOF
8494
cat confdefs.h >>conftest.$ac_ext
8495
cat >>conftest.$ac_ext <<_ACEOF
8496
/* end confdefs.h.  */
8497
#include 
8498
int
8499
main ()
8500
{
8501
void i(){long z2 = 2*timezone;}
8502
  ;
8503
  return 0;
8504
}
8505
_ACEOF
8506
rm -f conftest.$ac_objext
8507
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508
  (eval $ac_compile) 2>conftest.er1
8509
  ac_status=$?
8510
  grep -v '^ *+' conftest.er1 >conftest.err
8511
  rm -f conftest.er1
8512
  cat conftest.err >&5
8513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
  (exit $ac_status); } &&
8515
         { ac_try='test -z "$ac_c_werror_flag"
8516
                         || test ! -s conftest.err'
8517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518
  (eval $ac_try) 2>&5
8519
  ac_status=$?
8520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521
  (exit $ac_status); }; } &&
8522
         { ac_try='test -s conftest.$ac_objext'
8523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524
  (eval $ac_try) 2>&5
8525
  ac_status=$?
8526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
  (exit $ac_status); }; }; then
8528
 
8529
cat >>confdefs.h <<\_ACEOF
8530
#define HAVE_TIMEZONE 1
8531
_ACEOF
8532
 
8533
      echo "$as_me:$LINENO: result: yes" >&5
8534
echo "${ECHO_T}yes" >&6
8535
else
8536
  echo "$as_me: failed program was:" >&5
8537
sed 's/^/| /' conftest.$ac_ext >&5
8538
 
8539
echo "$as_me:$LINENO: result: no" >&5
8540
echo "${ECHO_T}no" >&6
8541
       echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8542
echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8543
              cat >conftest.$ac_ext <<_ACEOF
8544
/* confdefs.h.  */
8545
_ACEOF
8546
cat confdefs.h >>conftest.$ac_ext
8547
cat >>conftest.$ac_ext <<_ACEOF
8548
/* end confdefs.h.  */
8549
#include 
8550
int
8551
main ()
8552
{
8553
long z2 = _timezone;
8554
  ;
8555
  return 0;
8556
}
8557
_ACEOF
8558
rm -f conftest.$ac_objext
8559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560
  (eval $ac_compile) 2>conftest.er1
8561
  ac_status=$?
8562
  grep -v '^ *+' conftest.er1 >conftest.err
8563
  rm -f conftest.er1
8564
  cat conftest.err >&5
8565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566
  (exit $ac_status); } &&
8567
         { ac_try='test -z "$ac_c_werror_flag"
8568
                         || test ! -s conftest.err'
8569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570
  (eval $ac_try) 2>&5
8571
  ac_status=$?
8572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573
  (exit $ac_status); }; } &&
8574
         { ac_try='test -s conftest.$ac_objext'
8575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576
  (eval $ac_try) 2>&5
8577
  ac_status=$?
8578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579
  (exit $ac_status); }; }; then
8580
 
8581
cat >>confdefs.h <<\_ACEOF
8582
#define HAVE_UNDERSCORE_TIMEZONE 1
8583
_ACEOF
8584
 
8585
          echo "$as_me:$LINENO: result: yes" >&5
8586
echo "${ECHO_T}yes" >&6
8587
else
8588
  echo "$as_me: failed program was:" >&5
8589
sed 's/^/| /' conftest.$ac_ext >&5
8590
 
8591
echo "$as_me:$LINENO: result: no" >&5
8592
echo "${ECHO_T}no" >&6
8593
fi
8594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8595
fi
8596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597
fi
8598
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8599
 
8600
  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8601
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8602
if test "${ac_cv_c_const+set}" = set; then
8603
  echo $ECHO_N "(cached) $ECHO_C" >&6
8604
else
8605
  cat >conftest.$ac_ext <<_ACEOF
8606
/* confdefs.h.  */
8607
_ACEOF
8608
cat confdefs.h >>conftest.$ac_ext
8609
cat >>conftest.$ac_ext <<_ACEOF
8610
/* end confdefs.h.  */
8611
 
8612
int
8613
main ()
8614
{
8615
/* FIXME: Include the comments suggested by Paul. */
8616
#ifndef __cplusplus
8617
  /* Ultrix mips cc rejects this.  */
8618
  typedef int charset[2];
8619
  const charset x;
8620
  /* SunOS 4.1.1 cc rejects this.  */
8621
  char const *const *ccp;
8622
  char **p;
8623
  /* NEC SVR4.0.2 mips cc rejects this.  */
8624
  struct point {int x, y;};
8625
  static struct point const zero = {0,0};
8626
  /* AIX XL C 1.02.0.0 rejects this.
8627
     It does not let you subtract one const X* pointer from another in
8628
     an arm of an if-expression whose if-part is not a constant
8629
     expression */
8630
  const char *g = "string";
8631
  ccp = &g + (g ? g-g : 0);
8632
  /* HPUX 7.0 cc rejects these. */
8633
  ++ccp;
8634
  p = (char**) ccp;
8635
  ccp = (char const *const *) p;
8636
  { /* SCO 3.2v4 cc rejects this.  */
8637
    char *t;
8638
    char const *s = 0 ? (char *) 0 : (char const *) 0;
8639
 
8640
    *t++ = 0;
8641
  }
8642
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8643
    int x[] = {25, 17};
8644
    const int *foo = &x[0];
8645
    ++foo;
8646
  }
8647
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8648
    typedef const int *iptr;
8649
    iptr p = 0;
8650
    ++p;
8651
  }
8652
  { /* AIX XL C 1.02.0.0 rejects this saying
8653
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8654
    struct s { int j; const int *ap[3]; };
8655
    struct s *b; b->j = 5;
8656
  }
8657
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8658
    const int foo = 10;
8659
  }
8660
#endif
8661
 
8662
  ;
8663
  return 0;
8664
}
8665
_ACEOF
8666
rm -f conftest.$ac_objext
8667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668
  (eval $ac_compile) 2>conftest.er1
8669
  ac_status=$?
8670
  grep -v '^ *+' conftest.er1 >conftest.err
8671
  rm -f conftest.er1
8672
  cat conftest.err >&5
8673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674
  (exit $ac_status); } &&
8675
         { ac_try='test -z "$ac_c_werror_flag"
8676
                         || test ! -s conftest.err'
8677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678
  (eval $ac_try) 2>&5
8679
  ac_status=$?
8680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681
  (exit $ac_status); }; } &&
8682
         { ac_try='test -s conftest.$ac_objext'
8683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684
  (eval $ac_try) 2>&5
8685
  ac_status=$?
8686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687
  (exit $ac_status); }; }; then
8688
  ac_cv_c_const=yes
8689
else
8690
  echo "$as_me: failed program was:" >&5
8691
sed 's/^/| /' conftest.$ac_ext >&5
8692
 
8693
ac_cv_c_const=no
8694
fi
8695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8696
fi
8697
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8698
echo "${ECHO_T}$ac_cv_c_const" >&6
8699
if test $ac_cv_c_const = no; then
8700
 
8701
cat >>confdefs.h <<\_ACEOF
8702
#define const
8703
_ACEOF
8704
 
8705
fi
8706
 
8707
  echo "$as_me:$LINENO: checking for __attribute__" >&5
8708
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8709
if test "${ac_cv_c_attribute+set}" = set; then
8710
  echo $ECHO_N "(cached) $ECHO_C" >&6
8711
else
8712
 
8713
cat >conftest.$ac_ext <<_ACEOF
8714
/* confdefs.h.  */
8715
_ACEOF
8716
cat confdefs.h >>conftest.$ac_ext
8717
cat >>conftest.$ac_ext <<_ACEOF
8718
/* end confdefs.h.  */
8719
void foo(void) __attribute__ ((__noreturn__));
8720
 
8721
_ACEOF
8722
rm -f conftest.$ac_objext
8723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724
  (eval $ac_compile) 2>conftest.er1
8725
  ac_status=$?
8726
  grep -v '^ *+' conftest.er1 >conftest.err
8727
  rm -f conftest.er1
8728
  cat conftest.err >&5
8729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730
  (exit $ac_status); } &&
8731
         { ac_try='test -z "$ac_c_werror_flag"
8732
                         || test ! -s conftest.err'
8733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734
  (eval $ac_try) 2>&5
8735
  ac_status=$?
8736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737
  (exit $ac_status); }; } &&
8738
         { ac_try='test -s conftest.$ac_objext'
8739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740
  (eval $ac_try) 2>&5
8741
  ac_status=$?
8742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743
  (exit $ac_status); }; }; then
8744
  ac_cv_c_attribute=yes
8745
else
8746
  echo "$as_me: failed program was:" >&5
8747
sed 's/^/| /' conftest.$ac_ext >&5
8748
 
8749
ac_cv_c_attribute=no
8750
 
8751
fi
8752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753
 
8754
fi
8755
echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8756
echo "${ECHO_T}$ac_cv_c_attribute" >&6
8757
 
8758
 
8759
case $ac_cv_c_attribute in
8760
  yes) ;;
8761
  no)
8762
    cat >>confdefs.h <<_ACEOF
8763
#define __attribute__(x)    /* nothing */
8764
_ACEOF
8765
    ;;
8766
esac
8767
 
8768
 
8769
 
8770
      if test "X$prefix" = "XNONE"; then
8771
    acl_final_prefix="$ac_default_prefix"
8772
  else
8773
    acl_final_prefix="$prefix"
8774
  fi
8775
  if test "X$exec_prefix" = "XNONE"; then
8776
    acl_final_exec_prefix='${prefix}'
8777
  else
8778
    acl_final_exec_prefix="$exec_prefix"
8779
  fi
8780
  acl_save_prefix="$prefix"
8781
  prefix="$acl_final_prefix"
8782
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8783
  prefix="$acl_save_prefix"
8784
 
8785
 
8786
# Check whether --with-gnu-ld or --without-gnu-ld was given.
8787
if test "${with_gnu_ld+set}" = set; then
8788
  withval="$with_gnu_ld"
8789
  test "$withval" = no || with_gnu_ld=yes
8790
else
8791
  with_gnu_ld=no
8792
fi;
8793
# Prepare PATH_SEPARATOR.
8794
# The user is always right.
8795
if test "${PATH_SEPARATOR+set}" != set; then
8796
  echo "#! /bin/sh" >conf$$.sh
8797
  echo  "exit 0"   >>conf$$.sh
8798
  chmod +x conf$$.sh
8799
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8800
    PATH_SEPARATOR=';'
8801
  else
8802
    PATH_SEPARATOR=:
8803
  fi
8804
  rm -f conf$$.sh
8805
fi
8806
ac_prog=ld
8807
if test "$GCC" = yes; then
8808
  # Check if gcc -print-prog-name=ld gives a path.
8809
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8810
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8811
  case $host in
8812
  *-*-mingw*)
8813
    # gcc leaves a trailing carriage return which upsets mingw
8814
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8815
  *)
8816
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8817
  esac
8818
  case $ac_prog in
8819
    # Accept absolute paths.
8820
    [\\/]* | [A-Za-z]:[\\/]*)
8821
      re_direlt='/[^/][^/]*/\.\./'
8822
      # Canonicalize the path of ld
8823
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8824
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8825
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8826
      done
8827
      test -z "$LD" && LD="$ac_prog"
8828
      ;;
8829
  "")
8830
    # If it fails, then pretend we aren't using GCC.
8831
    ac_prog=ld
8832
    ;;
8833
  *)
8834
    # If it is relative, then search for the first ld in PATH.
8835
    with_gnu_ld=unknown
8836
    ;;
8837
  esac
8838
elif test "$with_gnu_ld" = yes; then
8839
  echo "$as_me:$LINENO: checking for GNU ld" >&5
8840
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8841
else
8842
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8843
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8844
fi
8845
if test "${acl_cv_path_LD+set}" = set; then
8846
  echo $ECHO_N "(cached) $ECHO_C" >&6
8847
else
8848
  if test -z "$LD"; then
8849
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8850
  for ac_dir in $PATH; do
8851
    test -z "$ac_dir" && ac_dir=.
8852
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8853
      acl_cv_path_LD="$ac_dir/$ac_prog"
8854
      # Check to see if the program is GNU ld.  I'd rather use --version,
8855
      # but apparently some GNU ld's only accept -v.
8856
      # Break only if it was the GNU/non-GNU ld that we prefer.
8857
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8858
        test "$with_gnu_ld" != no && break
8859
      else
8860
        test "$with_gnu_ld" != yes && break
8861
      fi
8862
    fi
8863
  done
8864
  IFS="$ac_save_ifs"
8865
else
8866
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
8867
fi
8868
fi
8869
 
8870
LD="$acl_cv_path_LD"
8871
if test -n "$LD"; then
8872
  echo "$as_me:$LINENO: result: $LD" >&5
8873
echo "${ECHO_T}$LD" >&6
8874
else
8875
  echo "$as_me:$LINENO: result: no" >&5
8876
echo "${ECHO_T}no" >&6
8877
fi
8878
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8879
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8880
   { (exit 1); exit 1; }; }
8881
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8882
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8883
if test "${acl_cv_prog_gnu_ld+set}" = set; then
8884
  echo $ECHO_N "(cached) $ECHO_C" >&6
8885
else
8886
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8887
if $LD -v 2>&1 &5; then
8888
  acl_cv_prog_gnu_ld=yes
8889
else
8890
  acl_cv_prog_gnu_ld=no
8891
fi
8892
fi
8893
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8894
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8895
with_gnu_ld=$acl_cv_prog_gnu_ld
8896
 
8897
 
8898
 
8899
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8900
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8901
if test "${acl_cv_rpath+set}" = set; then
8902
  echo $ECHO_N "(cached) $ECHO_C" >&6
8903
else
8904
 
8905
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8906
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8907
    . ./conftest.sh
8908
    rm -f ./conftest.sh
8909
    acl_cv_rpath=done
8910
 
8911
fi
8912
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8913
echo "${ECHO_T}$acl_cv_rpath" >&6
8914
  wl="$acl_cv_wl"
8915
  libext="$acl_cv_libext"
8916
  shlibext="$acl_cv_shlibext"
8917
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8918
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8919
  hardcode_direct="$acl_cv_hardcode_direct"
8920
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
8921
    # Check whether --enable-rpath or --disable-rpath was given.
8922
if test "${enable_rpath+set}" = set; then
8923
  enableval="$enable_rpath"
8924
  :
8925
else
8926
  enable_rpath=yes
8927
fi;
8928
 
8929
 
8930
 
8931
 
8932
 
8933
 
8934
 
8935
    use_additional=yes
8936
 
8937
  acl_save_prefix="$prefix"
8938
  prefix="$acl_final_prefix"
8939
  acl_save_exec_prefix="$exec_prefix"
8940
  exec_prefix="$acl_final_exec_prefix"
8941
 
8942
    eval additional_includedir=\"$includedir\"
8943
    eval additional_libdir=\"$libdir\"
8944
 
8945
  exec_prefix="$acl_save_exec_prefix"
8946
  prefix="$acl_save_prefix"
8947
 
8948
 
8949
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8950
if test "${with_libiconv_prefix+set}" = set; then
8951
  withval="$with_libiconv_prefix"
8952
 
8953
    if test "X$withval" = "Xno"; then
8954
      use_additional=no
8955
    else
8956
      if test "X$withval" = "X"; then
8957
 
8958
  acl_save_prefix="$prefix"
8959
  prefix="$acl_final_prefix"
8960
  acl_save_exec_prefix="$exec_prefix"
8961
  exec_prefix="$acl_final_exec_prefix"
8962
 
8963
          eval additional_includedir=\"$includedir\"
8964
          eval additional_libdir=\"$libdir\"
8965
 
8966
  exec_prefix="$acl_save_exec_prefix"
8967
  prefix="$acl_save_prefix"
8968
 
8969
      else
8970
        additional_includedir="$withval/include"
8971
        additional_libdir="$withval/lib"
8972
      fi
8973
    fi
8974
 
8975
fi;
8976
      LIBICONV=
8977
  LTLIBICONV=
8978
  INCICONV=
8979
  rpathdirs=
8980
  ltrpathdirs=
8981
  names_already_handled=
8982
  names_next_round='iconv '
8983
  while test -n "$names_next_round"; do
8984
    names_this_round="$names_next_round"
8985
    names_next_round=
8986
    for name in $names_this_round; do
8987
      already_handled=
8988
      for n in $names_already_handled; do
8989
        if test "$n" = "$name"; then
8990
          already_handled=yes
8991
          break
8992
        fi
8993
      done
8994
      if test -z "$already_handled"; then
8995
        names_already_handled="$names_already_handled $name"
8996
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8997
        eval value=\"\$HAVE_LIB$uppername\"
8998
        if test -n "$value"; then
8999
          if test "$value" = yes; then
9000
            eval value=\"\$LIB$uppername\"
9001
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9002
            eval value=\"\$LTLIB$uppername\"
9003
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9004
          else
9005
                                    :
9006
          fi
9007
        else
9008
                              found_dir=
9009
          found_la=
9010
          found_so=
9011
          found_a=
9012
          if test $use_additional = yes; then
9013
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9014
              found_dir="$additional_libdir"
9015
              found_so="$additional_libdir/lib$name.$shlibext"
9016
              if test -f "$additional_libdir/lib$name.la"; then
9017
                found_la="$additional_libdir/lib$name.la"
9018
              fi
9019
            else
9020
              if test -f "$additional_libdir/lib$name.$libext"; then
9021
                found_dir="$additional_libdir"
9022
                found_a="$additional_libdir/lib$name.$libext"
9023
                if test -f "$additional_libdir/lib$name.la"; then
9024
                  found_la="$additional_libdir/lib$name.la"
9025
                fi
9026
              fi
9027
            fi
9028
          fi
9029
          if test "X$found_dir" = "X"; then
9030
            for x in $LDFLAGS $LTLIBICONV; do
9031
 
9032
  acl_save_prefix="$prefix"
9033
  prefix="$acl_final_prefix"
9034
  acl_save_exec_prefix="$exec_prefix"
9035
  exec_prefix="$acl_final_exec_prefix"
9036
  eval x=\"$x\"
9037
  exec_prefix="$acl_save_exec_prefix"
9038
  prefix="$acl_save_prefix"
9039
 
9040
              case "$x" in
9041
                -L*)
9042
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9043
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9044
                    found_dir="$dir"
9045
                    found_so="$dir/lib$name.$shlibext"
9046
                    if test -f "$dir/lib$name.la"; then
9047
                      found_la="$dir/lib$name.la"
9048
                    fi
9049
                  else
9050
                    if test -f "$dir/lib$name.$libext"; then
9051
                      found_dir="$dir"
9052
                      found_a="$dir/lib$name.$libext"
9053
                      if test -f "$dir/lib$name.la"; then
9054
                        found_la="$dir/lib$name.la"
9055
                      fi
9056
                    fi
9057
                  fi
9058
                  ;;
9059
              esac
9060
              if test "X$found_dir" != "X"; then
9061
                break
9062
              fi
9063
            done
9064
          fi
9065
          if test "X$found_dir" != "X"; then
9066
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9067
            if test "X$found_so" != "X"; then
9068
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9069
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9070
              else
9071
                                                                                haveit=
9072
                for x in $ltrpathdirs; do
9073
                  if test "X$x" = "X$found_dir"; then
9074
                    haveit=yes
9075
                    break
9076
                  fi
9077
                done
9078
                if test -z "$haveit"; then
9079
                  ltrpathdirs="$ltrpathdirs $found_dir"
9080
                fi
9081
                                if test "$hardcode_direct" = yes; then
9082
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9083
                else
9084
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9085
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9086
                                                            haveit=
9087
                    for x in $rpathdirs; do
9088
                      if test "X$x" = "X$found_dir"; then
9089
                        haveit=yes
9090
                        break
9091
                      fi
9092
                    done
9093
                    if test -z "$haveit"; then
9094
                      rpathdirs="$rpathdirs $found_dir"
9095
                    fi
9096
                  else
9097
                                                                                haveit=
9098
                    for x in $LDFLAGS $LIBICONV; do
9099
 
9100
  acl_save_prefix="$prefix"
9101
  prefix="$acl_final_prefix"
9102
  acl_save_exec_prefix="$exec_prefix"
9103
  exec_prefix="$acl_final_exec_prefix"
9104
  eval x=\"$x\"
9105
  exec_prefix="$acl_save_exec_prefix"
9106
  prefix="$acl_save_prefix"
9107
 
9108
                      if test "X$x" = "X-L$found_dir"; then
9109
                        haveit=yes
9110
                        break
9111
                      fi
9112
                    done
9113
                    if test -z "$haveit"; then
9114
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9115
                    fi
9116
                    if test "$hardcode_minus_L" != no; then
9117
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9118
                    else
9119
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9120
                    fi
9121
                  fi
9122
                fi
9123
              fi
9124
            else
9125
              if test "X$found_a" != "X"; then
9126
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9127
              else
9128
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9129
              fi
9130
            fi
9131
                        additional_includedir=
9132
            case "$found_dir" in
9133
              */lib | */lib/)
9134
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9135
                additional_includedir="$basedir/include"
9136
                ;;
9137
            esac
9138
            if test "X$additional_includedir" != "X"; then
9139
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9140
                haveit=
9141
                if test "X$additional_includedir" = "X/usr/local/include"; then
9142
                  if test -n "$GCC"; then
9143
                    case $host_os in
9144
                      linux*) haveit=yes;;
9145
                    esac
9146
                  fi
9147
                fi
9148
                if test -z "$haveit"; then
9149
                  for x in $CPPFLAGS $INCICONV; do
9150
 
9151
  acl_save_prefix="$prefix"
9152
  prefix="$acl_final_prefix"
9153
  acl_save_exec_prefix="$exec_prefix"
9154
  exec_prefix="$acl_final_exec_prefix"
9155
  eval x=\"$x\"
9156
  exec_prefix="$acl_save_exec_prefix"
9157
  prefix="$acl_save_prefix"
9158
 
9159
                    if test "X$x" = "X-I$additional_includedir"; then
9160
                      haveit=yes
9161
                      break
9162
                    fi
9163
                  done
9164
                  if test -z "$haveit"; then
9165
                    if test -d "$additional_includedir"; then
9166
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9167
                    fi
9168
                  fi
9169
                fi
9170
              fi
9171
            fi
9172
                        if test -n "$found_la"; then
9173
                                                        save_libdir="$libdir"
9174
              case "$found_la" in
9175
                */* | *\\*) . "$found_la" ;;
9176
                *) . "./$found_la" ;;
9177
              esac
9178
              libdir="$save_libdir"
9179
                            for dep in $dependency_libs; do
9180
                case "$dep" in
9181
                  -L*)
9182
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9183
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9184
                      haveit=
9185
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9186
                        if test -n "$GCC"; then
9187
                          case $host_os in
9188
                            linux*) haveit=yes;;
9189
                          esac
9190
                        fi
9191
                      fi
9192
                      if test -z "$haveit"; then
9193
                        haveit=
9194
                        for x in $LDFLAGS $LIBICONV; do
9195
 
9196
  acl_save_prefix="$prefix"
9197
  prefix="$acl_final_prefix"
9198
  acl_save_exec_prefix="$exec_prefix"
9199
  exec_prefix="$acl_final_exec_prefix"
9200
  eval x=\"$x\"
9201
  exec_prefix="$acl_save_exec_prefix"
9202
  prefix="$acl_save_prefix"
9203
 
9204
                          if test "X$x" = "X-L$additional_libdir"; then
9205
                            haveit=yes
9206
                            break
9207
                          fi
9208
                        done
9209
                        if test -z "$haveit"; then
9210
                          if test -d "$additional_libdir"; then
9211
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9212
                          fi
9213
                        fi
9214
                        haveit=
9215
                        for x in $LDFLAGS $LTLIBICONV; do
9216
 
9217
  acl_save_prefix="$prefix"
9218
  prefix="$acl_final_prefix"
9219
  acl_save_exec_prefix="$exec_prefix"
9220
  exec_prefix="$acl_final_exec_prefix"
9221
  eval x=\"$x\"
9222
  exec_prefix="$acl_save_exec_prefix"
9223
  prefix="$acl_save_prefix"
9224
 
9225
                          if test "X$x" = "X-L$additional_libdir"; then
9226
                            haveit=yes
9227
                            break
9228
                          fi
9229
                        done
9230
                        if test -z "$haveit"; then
9231
                          if test -d "$additional_libdir"; then
9232
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9233
                          fi
9234
                        fi
9235
                      fi
9236
                    fi
9237
                    ;;
9238
                  -R*)
9239
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9240
                    if test "$enable_rpath" != no; then
9241
                                                                  haveit=
9242
                      for x in $rpathdirs; do
9243
                        if test "X$x" = "X$dir"; then
9244
                          haveit=yes
9245
                          break
9246
                        fi
9247
                      done
9248
                      if test -z "$haveit"; then
9249
                        rpathdirs="$rpathdirs $dir"
9250
                      fi
9251
                                                                  haveit=
9252
                      for x in $ltrpathdirs; do
9253
                        if test "X$x" = "X$dir"; then
9254
                          haveit=yes
9255
                          break
9256
                        fi
9257
                      done
9258
                      if test -z "$haveit"; then
9259
                        ltrpathdirs="$ltrpathdirs $dir"
9260
                      fi
9261
                    fi
9262
                    ;;
9263
                  -l*)
9264
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9265
                    ;;
9266
                  *.la)
9267
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9268
                    ;;
9269
                  *)
9270
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9271
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9272
                    ;;
9273
                esac
9274
              done
9275
            fi
9276
          else
9277
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9278
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9279
          fi
9280
        fi
9281
      fi
9282
    done
9283
  done
9284
  if test "X$rpathdirs" != "X"; then
9285
    if test -n "$hardcode_libdir_separator"; then
9286
                        alldirs=
9287
      for found_dir in $rpathdirs; do
9288
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9289
      done
9290
            acl_save_libdir="$libdir"
9291
      libdir="$alldirs"
9292
      eval flag=\"$hardcode_libdir_flag_spec\"
9293
      libdir="$acl_save_libdir"
9294
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9295
    else
9296
            for found_dir in $rpathdirs; do
9297
        acl_save_libdir="$libdir"
9298
        libdir="$found_dir"
9299
        eval flag=\"$hardcode_libdir_flag_spec\"
9300
        libdir="$acl_save_libdir"
9301
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9302
      done
9303
    fi
9304
  fi
9305
  if test "X$ltrpathdirs" != "X"; then
9306
            for found_dir in $ltrpathdirs; do
9307
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9308
    done
9309
  fi
9310
 
9311
 
9312
 
9313
 
9314
 
9315
 
9316
 
9317
          am_save_CPPFLAGS="$CPPFLAGS"
9318
 
9319
  for element in $INCICONV; do
9320
    haveit=
9321
    for x in $CPPFLAGS; do
9322
 
9323
  acl_save_prefix="$prefix"
9324
  prefix="$acl_final_prefix"
9325
  acl_save_exec_prefix="$exec_prefix"
9326
  exec_prefix="$acl_final_exec_prefix"
9327
  eval x=\"$x\"
9328
  exec_prefix="$acl_save_exec_prefix"
9329
  prefix="$acl_save_prefix"
9330
 
9331
      if test "X$x" = "X$element"; then
9332
        haveit=yes
9333
        break
9334
      fi
9335
    done
9336
    if test -z "$haveit"; then
9337
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9338
    fi
9339
  done
9340
 
9341
 
9342
  echo "$as_me:$LINENO: checking for iconv" >&5
9343
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9344
if test "${am_cv_func_iconv+set}" = set; then
9345
  echo $ECHO_N "(cached) $ECHO_C" >&6
9346
else
9347
 
9348
    am_cv_func_iconv="no, consider installing GNU libiconv"
9349
    am_cv_lib_iconv=no
9350
    if test x$gcc_no_link = xyes; then
9351
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9352
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9353
   { (exit 1); exit 1; }; }
9354
fi
9355
cat >conftest.$ac_ext <<_ACEOF
9356
/* confdefs.h.  */
9357
_ACEOF
9358
cat confdefs.h >>conftest.$ac_ext
9359
cat >>conftest.$ac_ext <<_ACEOF
9360
/* end confdefs.h.  */
9361
#include 
9362
#include 
9363
int
9364
main ()
9365
{
9366
iconv_t cd = iconv_open("","");
9367
       iconv(cd,NULL,NULL,NULL,NULL);
9368
       iconv_close(cd);
9369
  ;
9370
  return 0;
9371
}
9372
_ACEOF
9373
rm -f conftest.$ac_objext conftest$ac_exeext
9374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375
  (eval $ac_link) 2>conftest.er1
9376
  ac_status=$?
9377
  grep -v '^ *+' conftest.er1 >conftest.err
9378
  rm -f conftest.er1
9379
  cat conftest.err >&5
9380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381
  (exit $ac_status); } &&
9382
         { ac_try='test -z "$ac_c_werror_flag"
9383
                         || test ! -s conftest.err'
9384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385
  (eval $ac_try) 2>&5
9386
  ac_status=$?
9387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388
  (exit $ac_status); }; } &&
9389
         { ac_try='test -s conftest$ac_exeext'
9390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391
  (eval $ac_try) 2>&5
9392
  ac_status=$?
9393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394
  (exit $ac_status); }; }; then
9395
  am_cv_func_iconv=yes
9396
else
9397
  echo "$as_me: failed program was:" >&5
9398
sed 's/^/| /' conftest.$ac_ext >&5
9399
 
9400
fi
9401
rm -f conftest.err conftest.$ac_objext \
9402
      conftest$ac_exeext conftest.$ac_ext
9403
    if test "$am_cv_func_iconv" != yes; then
9404
      am_save_LIBS="$LIBS"
9405
      LIBS="$LIBS $LIBICONV"
9406
      if test x$gcc_no_link = xyes; then
9407
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9408
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9409
   { (exit 1); exit 1; }; }
9410
fi
9411
cat >conftest.$ac_ext <<_ACEOF
9412
/* confdefs.h.  */
9413
_ACEOF
9414
cat confdefs.h >>conftest.$ac_ext
9415
cat >>conftest.$ac_ext <<_ACEOF
9416
/* end confdefs.h.  */
9417
#include 
9418
#include 
9419
int
9420
main ()
9421
{
9422
iconv_t cd = iconv_open("","");
9423
         iconv(cd,NULL,NULL,NULL,NULL);
9424
         iconv_close(cd);
9425
  ;
9426
  return 0;
9427
}
9428
_ACEOF
9429
rm -f conftest.$ac_objext conftest$ac_exeext
9430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431
  (eval $ac_link) 2>conftest.er1
9432
  ac_status=$?
9433
  grep -v '^ *+' conftest.er1 >conftest.err
9434
  rm -f conftest.er1
9435
  cat conftest.err >&5
9436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437
  (exit $ac_status); } &&
9438
         { ac_try='test -z "$ac_c_werror_flag"
9439
                         || test ! -s conftest.err'
9440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441
  (eval $ac_try) 2>&5
9442
  ac_status=$?
9443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444
  (exit $ac_status); }; } &&
9445
         { ac_try='test -s conftest$ac_exeext'
9446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447
  (eval $ac_try) 2>&5
9448
  ac_status=$?
9449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450
  (exit $ac_status); }; }; then
9451
  am_cv_lib_iconv=yes
9452
        am_cv_func_iconv=yes
9453
else
9454
  echo "$as_me: failed program was:" >&5
9455
sed 's/^/| /' conftest.$ac_ext >&5
9456
 
9457
fi
9458
rm -f conftest.err conftest.$ac_objext \
9459
      conftest$ac_exeext conftest.$ac_ext
9460
      LIBS="$am_save_LIBS"
9461
    fi
9462
 
9463
fi
9464
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9465
echo "${ECHO_T}$am_cv_func_iconv" >&6
9466
  if test "$am_cv_func_iconv" = yes; then
9467
 
9468
cat >>confdefs.h <<\_ACEOF
9469
#define HAVE_ICONV 1
9470
_ACEOF
9471
 
9472
  fi
9473
  if test "$am_cv_lib_iconv" = yes; then
9474
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9475
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9476
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
9477
echo "${ECHO_T}$LIBICONV" >&6
9478
  else
9479
            CPPFLAGS="$am_save_CPPFLAGS"
9480
    LIBICONV=
9481
    LTLIBICONV=
9482
  fi
9483
 
9484
 
9485
 
9486
  if test "$am_cv_func_iconv" = yes; then
9487
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
9488
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9489
    if test "${am_cv_proto_iconv+set}" = set; then
9490
  echo $ECHO_N "(cached) $ECHO_C" >&6
9491
else
9492
 
9493
      cat >conftest.$ac_ext <<_ACEOF
9494
/* confdefs.h.  */
9495
_ACEOF
9496
cat confdefs.h >>conftest.$ac_ext
9497
cat >>conftest.$ac_ext <<_ACEOF
9498
/* end confdefs.h.  */
9499
 
9500
#include 
9501
#include 
9502
extern
9503
#ifdef __cplusplus
9504
"C"
9505
#endif
9506
#if defined(__STDC__) || defined(__cplusplus)
9507
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9508
#else
9509
size_t iconv();
9510
#endif
9511
 
9512
int
9513
main ()
9514
{
9515
 
9516
  ;
9517
  return 0;
9518
}
9519
_ACEOF
9520
rm -f conftest.$ac_objext
9521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522
  (eval $ac_compile) 2>conftest.er1
9523
  ac_status=$?
9524
  grep -v '^ *+' conftest.er1 >conftest.err
9525
  rm -f conftest.er1
9526
  cat conftest.err >&5
9527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528
  (exit $ac_status); } &&
9529
         { ac_try='test -z "$ac_c_werror_flag"
9530
                         || test ! -s conftest.err'
9531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532
  (eval $ac_try) 2>&5
9533
  ac_status=$?
9534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535
  (exit $ac_status); }; } &&
9536
         { ac_try='test -s conftest.$ac_objext'
9537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538
  (eval $ac_try) 2>&5
9539
  ac_status=$?
9540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541
  (exit $ac_status); }; }; then
9542
  am_cv_proto_iconv_arg1=""
9543
else
9544
  echo "$as_me: failed program was:" >&5
9545
sed 's/^/| /' conftest.$ac_ext >&5
9546
 
9547
am_cv_proto_iconv_arg1="const"
9548
fi
9549
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9550
      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);"
9551
fi
9552
 
9553
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9554
    echo "$as_me:$LINENO: result: ${ac_t:-
9555
         }$am_cv_proto_iconv" >&5
9556
echo "${ECHO_T}${ac_t:-
9557
         }$am_cv_proto_iconv" >&6
9558
 
9559
cat >>confdefs.h <<_ACEOF
9560
#define ICONV_CONST $am_cv_proto_iconv_arg1
9561
_ACEOF
9562
 
9563
  fi
9564
 
9565
 
9566
    if test "x${GCC}" = xyes; then
9567
 
9568
            WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9569
 
9570
 
9571
            STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9572
 
9573
 
9574
            ERROR_CFLAGS=
9575
    if test "x${ENABLE_WERROR}" = xyes; then
9576
       ERROR_CFLAGS='-Werror'
9577
    fi
9578
 
9579
  fi
9580
 
9581
    if test "x${COMPILE_XMLJ}" = xyes; then
9582
 
9583
  succeeded=no
9584
 
9585
  if test -z "$PKG_CONFIG"; then
9586
    # Extract the first word of "pkg-config", so it can be a program name with args.
9587
set dummy pkg-config; ac_word=$2
9588
echo "$as_me:$LINENO: checking for $ac_word" >&5
9589
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9590
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9591
  echo $ECHO_N "(cached) $ECHO_C" >&6
9592
else
9593
  case $PKG_CONFIG in
9594
  [\\/]* | ?:[\\/]*)
9595
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9596
  ;;
9597
  *)
9598
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599
for as_dir in $PATH
9600
do
9601
  IFS=$as_save_IFS
9602
  test -z "$as_dir" && as_dir=.
9603
  for ac_exec_ext in '' $ac_executable_extensions; do
9604
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9606
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9607
    break 2
9608
  fi
9609
done
9610
done
9611
 
9612
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9613
  ;;
9614
esac
9615
fi
9616
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9617
 
9618
if test -n "$PKG_CONFIG"; then
9619
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9620
echo "${ECHO_T}$PKG_CONFIG" >&6
9621
else
9622
  echo "$as_me:$LINENO: result: no" >&5
9623
echo "${ECHO_T}no" >&6
9624
fi
9625
 
9626
  fi
9627
 
9628
  if test "$PKG_CONFIG" = "no" ; then
9629
     echo "*** The pkg-config script could not be found. Make sure it is"
9630
     echo "*** in your path, or set the PKG_CONFIG environment variable"
9631
     echo "*** to the full path to pkg-config."
9632
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9633
  else
9634
     PKG_CONFIG_MIN_VERSION=0.9.0
9635
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9636
        echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9637
echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9638
 
9639
        if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9640
            echo "$as_me:$LINENO: result: yes" >&5
9641
echo "${ECHO_T}yes" >&6
9642
            succeeded=yes
9643
 
9644
            echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9645
echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9646
            XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9647
            echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9648
echo "${ECHO_T}$XML_CFLAGS" >&6
9649
 
9650
            echo "$as_me:$LINENO: checking XML_LIBS" >&5
9651
echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9652
            XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9653
            echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9654
echo "${ECHO_T}$XML_LIBS" >&6
9655
        else
9656
            XML_CFLAGS=""
9657
            XML_LIBS=""
9658
            ## If we have a custom action on failure, don't print errors, but
9659
            ## do set a variable so people can do so.
9660
            XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9661
            echo $XML_PKG_ERRORS
9662
        fi
9663
 
9664
 
9665
 
9666
     else
9667
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9668
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
9669
     fi
9670
  fi
9671
 
9672
  if test $succeeded = yes; then
9673
     :
9674
  else
9675
     { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.6.8) 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
9676
echo "$as_me: error: Library requirements (libxml-2.0 >= 2.6.8) 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;}
9677
   { (exit 1); exit 1; }; }
9678
  fi
9679
 
9680
 
9681
  succeeded=no
9682
 
9683
  if test -z "$PKG_CONFIG"; then
9684
    # Extract the first word of "pkg-config", so it can be a program name with args.
9685
set dummy pkg-config; ac_word=$2
9686
echo "$as_me:$LINENO: checking for $ac_word" >&5
9687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9688
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9689
  echo $ECHO_N "(cached) $ECHO_C" >&6
9690
else
9691
  case $PKG_CONFIG in
9692
  [\\/]* | ?:[\\/]*)
9693
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9694
  ;;
9695
  *)
9696
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697
for as_dir in $PATH
9698
do
9699
  IFS=$as_save_IFS
9700
  test -z "$as_dir" && as_dir=.
9701
  for ac_exec_ext in '' $ac_executable_extensions; do
9702
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9705
    break 2
9706
  fi
9707
done
9708
done
9709
 
9710
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9711
  ;;
9712
esac
9713
fi
9714
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9715
 
9716
if test -n "$PKG_CONFIG"; then
9717
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9718
echo "${ECHO_T}$PKG_CONFIG" >&6
9719
else
9720
  echo "$as_me:$LINENO: result: no" >&5
9721
echo "${ECHO_T}no" >&6
9722
fi
9723
 
9724
  fi
9725
 
9726
  if test "$PKG_CONFIG" = "no" ; then
9727
     echo "*** The pkg-config script could not be found. Make sure it is"
9728
     echo "*** in your path, or set the PKG_CONFIG environment variable"
9729
     echo "*** to the full path to pkg-config."
9730
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9731
  else
9732
     PKG_CONFIG_MIN_VERSION=0.9.0
9733
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9734
        echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9735
echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9736
 
9737
        if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9738
            echo "$as_me:$LINENO: result: yes" >&5
9739
echo "${ECHO_T}yes" >&6
9740
            succeeded=yes
9741
 
9742
            echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9743
echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9744
            XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9745
            echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9746
echo "${ECHO_T}$XSLT_CFLAGS" >&6
9747
 
9748
            echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9749
echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9750
            XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9751
            echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9752
echo "${ECHO_T}$XSLT_LIBS" >&6
9753
        else
9754
            XSLT_CFLAGS=""
9755
            XSLT_LIBS=""
9756
            ## If we have a custom action on failure, don't print errors, but
9757
            ## do set a variable so people can do so.
9758
            XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9759
            echo $XSLT_PKG_ERRORS
9760
        fi
9761
 
9762
 
9763
 
9764
     else
9765
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9766
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
9767
     fi
9768
  fi
9769
 
9770
  if test $succeeded = yes; then
9771
     :
9772
  else
9773
     { { echo "$as_me:$LINENO: error: Library requirements (libxslt >= 1.1.11) 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
9774
echo "$as_me: error: Library requirements (libxslt >= 1.1.11) 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;}
9775
   { (exit 1); exit 1; }; }
9776
  fi
9777
 
9778
 
9779
 
9780
 
9781
 
9782
  fi
9783
 
9784
    if test "x${COMPILE_GTK_PEER}" = xyes; then
9785
    echo "$as_me:$LINENO: checking for X" >&5
9786
echo $ECHO_N "checking for X... $ECHO_C" >&6
9787
 
9788
 
9789
# Check whether --with-x or --without-x was given.
9790
if test "${with_x+set}" = set; then
9791
  withval="$with_x"
9792
 
9793
fi;
9794
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9795
if test "x$with_x" = xno; then
9796
  # The user explicitly disabled X.
9797
  have_x=disabled
9798
else
9799
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9800
    # Both variables are already set.
9801
    have_x=yes
9802
  else
9803
    if test "${ac_cv_have_x+set}" = set; then
9804
  echo $ECHO_N "(cached) $ECHO_C" >&6
9805
else
9806
  # One or both of the vars are not set, and there is no cached value.
9807
ac_x_includes=no ac_x_libraries=no
9808
rm -fr conftest.dir
9809
if mkdir conftest.dir; then
9810
  cd conftest.dir
9811
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9812
  cat >Imakefile <<'_ACEOF'
9813
acfindx:
9814
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9815
_ACEOF
9816
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9817
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9818
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9819
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9820
    for ac_extension in a so sl; do
9821
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9822
         test -f $ac_im_libdir/libX11.$ac_extension; then
9823
        ac_im_usrlibdir=$ac_im_libdir; break
9824
      fi
9825
    done
9826
    # Screen out bogus values from the imake configuration.  They are
9827
    # bogus both because they are the default anyway, and because
9828
    # using them would break gcc on systems where it needs fixed includes.
9829
    case $ac_im_incroot in
9830
        /usr/include) ;;
9831
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9832
    esac
9833
    case $ac_im_usrlibdir in
9834
        /usr/lib | /lib) ;;
9835
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9836
    esac
9837
  fi
9838
  cd ..
9839
  rm -fr conftest.dir
9840
fi
9841
 
9842
# Standard set of common directories for X headers.
9843
# Check X11 before X11Rn because it is often a symlink to the current release.
9844
ac_x_header_dirs='
9845
/usr/X11/include
9846
/usr/X11R6/include
9847
/usr/X11R5/include
9848
/usr/X11R4/include
9849
 
9850
/usr/include/X11
9851
/usr/include/X11R6
9852
/usr/include/X11R5
9853
/usr/include/X11R4
9854
 
9855
/usr/local/X11/include
9856
/usr/local/X11R6/include
9857
/usr/local/X11R5/include
9858
/usr/local/X11R4/include
9859
 
9860
/usr/local/include/X11
9861
/usr/local/include/X11R6
9862
/usr/local/include/X11R5
9863
/usr/local/include/X11R4
9864
 
9865
/usr/X386/include
9866
/usr/x386/include
9867
/usr/XFree86/include/X11
9868
 
9869
/usr/include
9870
/usr/local/include
9871
/usr/unsupported/include
9872
/usr/athena/include
9873
/usr/local/x11r5/include
9874
/usr/lpp/Xamples/include
9875
 
9876
/usr/openwin/include
9877
/usr/openwin/share/include'
9878
 
9879
if test "$ac_x_includes" = no; then
9880
  # Guess where to find include files, by looking for Intrinsic.h.
9881
  # First, try using that file with no special directory specified.
9882
  cat >conftest.$ac_ext <<_ACEOF
9883
/* confdefs.h.  */
9884
_ACEOF
9885
cat confdefs.h >>conftest.$ac_ext
9886
cat >>conftest.$ac_ext <<_ACEOF
9887
/* end confdefs.h.  */
9888
#include 
9889
_ACEOF
9890
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9891
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9892
  ac_status=$?
9893
  grep -v '^ *+' conftest.er1 >conftest.err
9894
  rm -f conftest.er1
9895
  cat conftest.err >&5
9896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897
  (exit $ac_status); } >/dev/null; then
9898
  if test -s conftest.err; then
9899
    ac_cpp_err=$ac_c_preproc_warn_flag
9900
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9901
  else
9902
    ac_cpp_err=
9903
  fi
9904
else
9905
  ac_cpp_err=yes
9906
fi
9907
if test -z "$ac_cpp_err"; then
9908
  # We can compile using X headers with no special include directory.
9909
ac_x_includes=
9910
else
9911
  echo "$as_me: failed program was:" >&5
9912
sed 's/^/| /' conftest.$ac_ext >&5
9913
 
9914
  for ac_dir in $ac_x_header_dirs; do
9915
  if test -r "$ac_dir/X11/Intrinsic.h"; then
9916
    ac_x_includes=$ac_dir
9917
    break
9918
  fi
9919
done
9920
fi
9921
rm -f conftest.err conftest.$ac_ext
9922
fi # $ac_x_includes = no
9923
 
9924
if test "$ac_x_libraries" = no; then
9925
  # Check for the libraries.
9926
  # See if we find them without any special options.
9927
  # Don't add to $LIBS permanently.
9928
  ac_save_LIBS=$LIBS
9929
  LIBS="-lXt $LIBS"
9930
  if test x$gcc_no_link = xyes; then
9931
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9932
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9933
   { (exit 1); exit 1; }; }
9934
fi
9935
cat >conftest.$ac_ext <<_ACEOF
9936
/* confdefs.h.  */
9937
_ACEOF
9938
cat confdefs.h >>conftest.$ac_ext
9939
cat >>conftest.$ac_ext <<_ACEOF
9940
/* end confdefs.h.  */
9941
#include 
9942
int
9943
main ()
9944
{
9945
XtMalloc (0)
9946
  ;
9947
  return 0;
9948
}
9949
_ACEOF
9950
rm -f conftest.$ac_objext conftest$ac_exeext
9951
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952
  (eval $ac_link) 2>conftest.er1
9953
  ac_status=$?
9954
  grep -v '^ *+' conftest.er1 >conftest.err
9955
  rm -f conftest.er1
9956
  cat conftest.err >&5
9957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958
  (exit $ac_status); } &&
9959
         { ac_try='test -z "$ac_c_werror_flag"
9960
                         || test ! -s conftest.err'
9961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962
  (eval $ac_try) 2>&5
9963
  ac_status=$?
9964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965
  (exit $ac_status); }; } &&
9966
         { ac_try='test -s conftest$ac_exeext'
9967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968
  (eval $ac_try) 2>&5
9969
  ac_status=$?
9970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971
  (exit $ac_status); }; }; then
9972
  LIBS=$ac_save_LIBS
9973
# We can link X programs with no special library path.
9974
ac_x_libraries=
9975
else
9976
  echo "$as_me: failed program was:" >&5
9977
sed 's/^/| /' conftest.$ac_ext >&5
9978
 
9979
LIBS=$ac_save_LIBS
9980
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9981
do
9982
  # Don't even attempt the hair of trying to link an X program!
9983
  for ac_extension in a so sl; do
9984
    if test -r $ac_dir/libXt.$ac_extension; then
9985
      ac_x_libraries=$ac_dir
9986
      break 2
9987
    fi
9988
  done
9989
done
9990
fi
9991
rm -f conftest.err conftest.$ac_objext \
9992
      conftest$ac_exeext conftest.$ac_ext
9993
fi # $ac_x_libraries = no
9994
 
9995
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9996
  # Didn't find X anywhere.  Cache the known absence of X.
9997
  ac_cv_have_x="have_x=no"
9998
else
9999
  # Record where we found X for the cache.
10000
  ac_cv_have_x="have_x=yes \
10001
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10002
fi
10003
fi
10004
 
10005
  fi
10006
  eval "$ac_cv_have_x"
10007
fi # $with_x != no
10008
 
10009
if test "$have_x" != yes; then
10010
  echo "$as_me:$LINENO: result: $have_x" >&5
10011
echo "${ECHO_T}$have_x" >&6
10012
  no_x=yes
10013
else
10014
  # If each of the values was on the command line, it overrides each guess.
10015
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10016
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10017
  # Update the cache value to reflect the command line values.
10018
  ac_cv_have_x="have_x=yes \
10019
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10020
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10021
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10022
fi
10023
 
10024
if test "$no_x" = yes; then
10025
  # Not all programs may use this symbol, but it does not hurt to define it.
10026
 
10027
cat >>confdefs.h <<\_ACEOF
10028
#define X_DISPLAY_MISSING 1
10029
_ACEOF
10030
 
10031
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10032
else
10033
  if test -n "$x_includes"; then
10034
    X_CFLAGS="$X_CFLAGS -I$x_includes"
10035
  fi
10036
 
10037
  # It would also be nice to do this for all -L options, not just this one.
10038
  if test -n "$x_libraries"; then
10039
    X_LIBS="$X_LIBS -L$x_libraries"
10040
    # For Solaris; some versions of Sun CC require a space after -R and
10041
    # others require no space.  Words are not sufficient . . . .
10042
    case `(uname -sr) 2>/dev/null` in
10043
    "SunOS 5"*)
10044
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10045
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10046
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10047
      if test x$gcc_no_link = xyes; then
10048
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10049
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10050
   { (exit 1); exit 1; }; }
10051
fi
10052
cat >conftest.$ac_ext <<_ACEOF
10053
/* confdefs.h.  */
10054
_ACEOF
10055
cat confdefs.h >>conftest.$ac_ext
10056
cat >>conftest.$ac_ext <<_ACEOF
10057
/* end confdefs.h.  */
10058
 
10059
int
10060
main ()
10061
{
10062
 
10063
  ;
10064
  return 0;
10065
}
10066
_ACEOF
10067
rm -f conftest.$ac_objext conftest$ac_exeext
10068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069
  (eval $ac_link) 2>conftest.er1
10070
  ac_status=$?
10071
  grep -v '^ *+' conftest.er1 >conftest.err
10072
  rm -f conftest.er1
10073
  cat conftest.err >&5
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
  (exit $ac_status); } &&
10076
         { ac_try='test -z "$ac_c_werror_flag"
10077
                         || test ! -s conftest.err'
10078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079
  (eval $ac_try) 2>&5
10080
  ac_status=$?
10081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082
  (exit $ac_status); }; } &&
10083
         { ac_try='test -s conftest$ac_exeext'
10084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085
  (eval $ac_try) 2>&5
10086
  ac_status=$?
10087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088
  (exit $ac_status); }; }; then
10089
  ac_R_nospace=yes
10090
else
10091
  echo "$as_me: failed program was:" >&5
10092
sed 's/^/| /' conftest.$ac_ext >&5
10093
 
10094
ac_R_nospace=no
10095
fi
10096
rm -f conftest.err conftest.$ac_objext \
10097
      conftest$ac_exeext conftest.$ac_ext
10098
      if test $ac_R_nospace = yes; then
10099
        echo "$as_me:$LINENO: result: no" >&5
10100
echo "${ECHO_T}no" >&6
10101
        X_LIBS="$X_LIBS -R$x_libraries"
10102
      else
10103
        LIBS="$ac_xsave_LIBS -R $x_libraries"
10104
        if test x$gcc_no_link = xyes; then
10105
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10106
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10107
   { (exit 1); exit 1; }; }
10108
fi
10109
cat >conftest.$ac_ext <<_ACEOF
10110
/* confdefs.h.  */
10111
_ACEOF
10112
cat confdefs.h >>conftest.$ac_ext
10113
cat >>conftest.$ac_ext <<_ACEOF
10114
/* end confdefs.h.  */
10115
 
10116
int
10117
main ()
10118
{
10119
 
10120
  ;
10121
  return 0;
10122
}
10123
_ACEOF
10124
rm -f conftest.$ac_objext conftest$ac_exeext
10125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126
  (eval $ac_link) 2>conftest.er1
10127
  ac_status=$?
10128
  grep -v '^ *+' conftest.er1 >conftest.err
10129
  rm -f conftest.er1
10130
  cat conftest.err >&5
10131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132
  (exit $ac_status); } &&
10133
         { ac_try='test -z "$ac_c_werror_flag"
10134
                         || test ! -s conftest.err'
10135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136
  (eval $ac_try) 2>&5
10137
  ac_status=$?
10138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139
  (exit $ac_status); }; } &&
10140
         { ac_try='test -s conftest$ac_exeext'
10141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142
  (eval $ac_try) 2>&5
10143
  ac_status=$?
10144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145
  (exit $ac_status); }; }; then
10146
  ac_R_space=yes
10147
else
10148
  echo "$as_me: failed program was:" >&5
10149
sed 's/^/| /' conftest.$ac_ext >&5
10150
 
10151
ac_R_space=no
10152
fi
10153
rm -f conftest.err conftest.$ac_objext \
10154
      conftest$ac_exeext conftest.$ac_ext
10155
        if test $ac_R_space = yes; then
10156
          echo "$as_me:$LINENO: result: yes" >&5
10157
echo "${ECHO_T}yes" >&6
10158
          X_LIBS="$X_LIBS -R $x_libraries"
10159
        else
10160
          echo "$as_me:$LINENO: result: neither works" >&5
10161
echo "${ECHO_T}neither works" >&6
10162
        fi
10163
      fi
10164
      LIBS=$ac_xsave_LIBS
10165
    esac
10166
  fi
10167
 
10168
  # Check for system-dependent libraries X programs must link with.
10169
  # Do this before checking for the system-independent R6 libraries
10170
  # (-lICE), since we may need -lsocket or whatever for X linking.
10171
 
10172
  if test "$ISC" = yes; then
10173
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10174
  else
10175
    # Martyn Johnson says this is needed for Ultrix, if the X
10176
    # libraries were built with DECnet support.  And Karl Berry says
10177
    # the Alpha needs dnet_stub (dnet does not exist).
10178
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10179
    if test x$gcc_no_link = xyes; then
10180
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10181
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10182
   { (exit 1); exit 1; }; }
10183
fi
10184
cat >conftest.$ac_ext <<_ACEOF
10185
/* confdefs.h.  */
10186
_ACEOF
10187
cat confdefs.h >>conftest.$ac_ext
10188
cat >>conftest.$ac_ext <<_ACEOF
10189
/* end confdefs.h.  */
10190
 
10191
/* Override any gcc2 internal prototype to avoid an error.  */
10192
#ifdef __cplusplus
10193
extern "C"
10194
#endif
10195
/* We use char because int might match the return type of a gcc2
10196
   builtin and then its argument prototype would still apply.  */
10197
char XOpenDisplay ();
10198
int
10199
main ()
10200
{
10201
XOpenDisplay ();
10202
  ;
10203
  return 0;
10204
}
10205
_ACEOF
10206
rm -f conftest.$ac_objext conftest$ac_exeext
10207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208
  (eval $ac_link) 2>conftest.er1
10209
  ac_status=$?
10210
  grep -v '^ *+' conftest.er1 >conftest.err
10211
  rm -f conftest.er1
10212
  cat conftest.err >&5
10213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214
  (exit $ac_status); } &&
10215
         { ac_try='test -z "$ac_c_werror_flag"
10216
                         || test ! -s conftest.err'
10217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218
  (eval $ac_try) 2>&5
10219
  ac_status=$?
10220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221
  (exit $ac_status); }; } &&
10222
         { ac_try='test -s conftest$ac_exeext'
10223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224
  (eval $ac_try) 2>&5
10225
  ac_status=$?
10226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227
  (exit $ac_status); }; }; then
10228
  :
10229
else
10230
  echo "$as_me: failed program was:" >&5
10231
sed 's/^/| /' conftest.$ac_ext >&5
10232
 
10233
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10234
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10235
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10236
  echo $ECHO_N "(cached) $ECHO_C" >&6
10237
else
10238
  ac_check_lib_save_LIBS=$LIBS
10239
LIBS="-ldnet  $LIBS"
10240
if test x$gcc_no_link = xyes; then
10241
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10242
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10243
   { (exit 1); exit 1; }; }
10244
fi
10245
cat >conftest.$ac_ext <<_ACEOF
10246
/* confdefs.h.  */
10247
_ACEOF
10248
cat confdefs.h >>conftest.$ac_ext
10249
cat >>conftest.$ac_ext <<_ACEOF
10250
/* end confdefs.h.  */
10251
 
10252
/* Override any gcc2 internal prototype to avoid an error.  */
10253
#ifdef __cplusplus
10254
extern "C"
10255
#endif
10256
/* We use char because int might match the return type of a gcc2
10257
   builtin and then its argument prototype would still apply.  */
10258
char dnet_ntoa ();
10259
int
10260
main ()
10261
{
10262
dnet_ntoa ();
10263
  ;
10264
  return 0;
10265
}
10266
_ACEOF
10267
rm -f conftest.$ac_objext conftest$ac_exeext
10268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269
  (eval $ac_link) 2>conftest.er1
10270
  ac_status=$?
10271
  grep -v '^ *+' conftest.er1 >conftest.err
10272
  rm -f conftest.er1
10273
  cat conftest.err >&5
10274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275
  (exit $ac_status); } &&
10276
         { ac_try='test -z "$ac_c_werror_flag"
10277
                         || test ! -s conftest.err'
10278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279
  (eval $ac_try) 2>&5
10280
  ac_status=$?
10281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282
  (exit $ac_status); }; } &&
10283
         { ac_try='test -s conftest$ac_exeext'
10284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285
  (eval $ac_try) 2>&5
10286
  ac_status=$?
10287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288
  (exit $ac_status); }; }; then
10289
  ac_cv_lib_dnet_dnet_ntoa=yes
10290
else
10291
  echo "$as_me: failed program was:" >&5
10292
sed 's/^/| /' conftest.$ac_ext >&5
10293
 
10294
ac_cv_lib_dnet_dnet_ntoa=no
10295
fi
10296
rm -f conftest.err conftest.$ac_objext \
10297
      conftest$ac_exeext conftest.$ac_ext
10298
LIBS=$ac_check_lib_save_LIBS
10299
fi
10300
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10301
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10302
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10303
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10304
fi
10305
 
10306
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10307
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10308
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10309
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10310
  echo $ECHO_N "(cached) $ECHO_C" >&6
10311
else
10312
  ac_check_lib_save_LIBS=$LIBS
10313
LIBS="-ldnet_stub  $LIBS"
10314
if test x$gcc_no_link = xyes; then
10315
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10316
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10317
   { (exit 1); exit 1; }; }
10318
fi
10319
cat >conftest.$ac_ext <<_ACEOF
10320
/* confdefs.h.  */
10321
_ACEOF
10322
cat confdefs.h >>conftest.$ac_ext
10323
cat >>conftest.$ac_ext <<_ACEOF
10324
/* end confdefs.h.  */
10325
 
10326
/* Override any gcc2 internal prototype to avoid an error.  */
10327
#ifdef __cplusplus
10328
extern "C"
10329
#endif
10330
/* We use char because int might match the return type of a gcc2
10331
   builtin and then its argument prototype would still apply.  */
10332
char dnet_ntoa ();
10333
int
10334
main ()
10335
{
10336
dnet_ntoa ();
10337
  ;
10338
  return 0;
10339
}
10340
_ACEOF
10341
rm -f conftest.$ac_objext conftest$ac_exeext
10342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343
  (eval $ac_link) 2>conftest.er1
10344
  ac_status=$?
10345
  grep -v '^ *+' conftest.er1 >conftest.err
10346
  rm -f conftest.er1
10347
  cat conftest.err >&5
10348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349
  (exit $ac_status); } &&
10350
         { ac_try='test -z "$ac_c_werror_flag"
10351
                         || test ! -s conftest.err'
10352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353
  (eval $ac_try) 2>&5
10354
  ac_status=$?
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356
  (exit $ac_status); }; } &&
10357
         { ac_try='test -s conftest$ac_exeext'
10358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359
  (eval $ac_try) 2>&5
10360
  ac_status=$?
10361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362
  (exit $ac_status); }; }; then
10363
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
10364
else
10365
  echo "$as_me: failed program was:" >&5
10366
sed 's/^/| /' conftest.$ac_ext >&5
10367
 
10368
ac_cv_lib_dnet_stub_dnet_ntoa=no
10369
fi
10370
rm -f conftest.err conftest.$ac_objext \
10371
      conftest$ac_exeext conftest.$ac_ext
10372
LIBS=$ac_check_lib_save_LIBS
10373
fi
10374
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10375
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10376
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10377
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10378
fi
10379
 
10380
    fi
10381
fi
10382
rm -f conftest.err conftest.$ac_objext \
10383
      conftest$ac_exeext conftest.$ac_ext
10384
    LIBS="$ac_xsave_LIBS"
10385
 
10386
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10387
    # to get the SysV transport functions.
10388
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10389
    # needs -lnsl.
10390
    # The nsl library prevents programs from opening the X display
10391
    # on Irix 5.2, according to T.E. Dickey.
10392
    # The functions gethostbyname, getservbyname, and inet_addr are
10393
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10394
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
10395
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10396
if test "${ac_cv_func_gethostbyname+set}" = set; then
10397
  echo $ECHO_N "(cached) $ECHO_C" >&6
10398
else
10399
  if test x$gcc_no_link = xyes; then
10400
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10401
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10402
   { (exit 1); exit 1; }; }
10403
fi
10404
cat >conftest.$ac_ext <<_ACEOF
10405
/* confdefs.h.  */
10406
_ACEOF
10407
cat confdefs.h >>conftest.$ac_ext
10408
cat >>conftest.$ac_ext <<_ACEOF
10409
/* end confdefs.h.  */
10410
/* Define gethostbyname to an innocuous variant, in case  declares gethostbyname.
10411
   For example, HP-UX 11i  declares gettimeofday.  */
10412
#define gethostbyname innocuous_gethostbyname
10413
 
10414
/* System header to define __stub macros and hopefully few prototypes,
10415
    which can conflict with char gethostbyname (); below.
10416
    Prefer  to  if __STDC__ is defined, since
10417
     exists even on freestanding compilers.  */
10418
 
10419
#ifdef __STDC__
10420
# include 
10421
#else
10422
# include 
10423
#endif
10424
 
10425
#undef gethostbyname
10426
 
10427
/* Override any gcc2 internal prototype to avoid an error.  */
10428
#ifdef __cplusplus
10429
extern "C"
10430
{
10431
#endif
10432
/* We use char because int might match the return type of a gcc2
10433
   builtin and then its argument prototype would still apply.  */
10434
char gethostbyname ();
10435
/* The GNU C library defines this for functions which it implements
10436
    to always fail with ENOSYS.  Some functions are actually named
10437
    something starting with __ and the normal name is an alias.  */
10438
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10439
choke me
10440
#else
10441
char (*f) () = gethostbyname;
10442
#endif
10443
#ifdef __cplusplus
10444
}
10445
#endif
10446
 
10447
int
10448
main ()
10449
{
10450
return f != gethostbyname;
10451
  ;
10452
  return 0;
10453
}
10454
_ACEOF
10455
rm -f conftest.$ac_objext conftest$ac_exeext
10456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457
  (eval $ac_link) 2>conftest.er1
10458
  ac_status=$?
10459
  grep -v '^ *+' conftest.er1 >conftest.err
10460
  rm -f conftest.er1
10461
  cat conftest.err >&5
10462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463
  (exit $ac_status); } &&
10464
         { ac_try='test -z "$ac_c_werror_flag"
10465
                         || test ! -s conftest.err'
10466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467
  (eval $ac_try) 2>&5
10468
  ac_status=$?
10469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470
  (exit $ac_status); }; } &&
10471
         { ac_try='test -s conftest$ac_exeext'
10472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473
  (eval $ac_try) 2>&5
10474
  ac_status=$?
10475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476
  (exit $ac_status); }; }; then
10477
  ac_cv_func_gethostbyname=yes
10478
else
10479
  echo "$as_me: failed program was:" >&5
10480
sed 's/^/| /' conftest.$ac_ext >&5
10481
 
10482
ac_cv_func_gethostbyname=no
10483
fi
10484
rm -f conftest.err conftest.$ac_objext \
10485
      conftest$ac_exeext conftest.$ac_ext
10486
fi
10487
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10488
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10489
 
10490
    if test $ac_cv_func_gethostbyname = no; then
10491
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10492
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10493
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10494
  echo $ECHO_N "(cached) $ECHO_C" >&6
10495
else
10496
  ac_check_lib_save_LIBS=$LIBS
10497
LIBS="-lnsl  $LIBS"
10498
if test x$gcc_no_link = xyes; then
10499
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10500
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10501
   { (exit 1); exit 1; }; }
10502
fi
10503
cat >conftest.$ac_ext <<_ACEOF
10504
/* confdefs.h.  */
10505
_ACEOF
10506
cat confdefs.h >>conftest.$ac_ext
10507
cat >>conftest.$ac_ext <<_ACEOF
10508
/* end confdefs.h.  */
10509
 
10510
/* Override any gcc2 internal prototype to avoid an error.  */
10511
#ifdef __cplusplus
10512
extern "C"
10513
#endif
10514
/* We use char because int might match the return type of a gcc2
10515
   builtin and then its argument prototype would still apply.  */
10516
char gethostbyname ();
10517
int
10518
main ()
10519
{
10520
gethostbyname ();
10521
  ;
10522
  return 0;
10523
}
10524
_ACEOF
10525
rm -f conftest.$ac_objext conftest$ac_exeext
10526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527
  (eval $ac_link) 2>conftest.er1
10528
  ac_status=$?
10529
  grep -v '^ *+' conftest.er1 >conftest.err
10530
  rm -f conftest.er1
10531
  cat conftest.err >&5
10532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533
  (exit $ac_status); } &&
10534
         { ac_try='test -z "$ac_c_werror_flag"
10535
                         || test ! -s conftest.err'
10536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537
  (eval $ac_try) 2>&5
10538
  ac_status=$?
10539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540
  (exit $ac_status); }; } &&
10541
         { ac_try='test -s conftest$ac_exeext'
10542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543
  (eval $ac_try) 2>&5
10544
  ac_status=$?
10545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546
  (exit $ac_status); }; }; then
10547
  ac_cv_lib_nsl_gethostbyname=yes
10548
else
10549
  echo "$as_me: failed program was:" >&5
10550
sed 's/^/| /' conftest.$ac_ext >&5
10551
 
10552
ac_cv_lib_nsl_gethostbyname=no
10553
fi
10554
rm -f conftest.err conftest.$ac_objext \
10555
      conftest$ac_exeext conftest.$ac_ext
10556
LIBS=$ac_check_lib_save_LIBS
10557
fi
10558
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10559
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10560
if test $ac_cv_lib_nsl_gethostbyname = yes; then
10561
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10562
fi
10563
 
10564
      if test $ac_cv_lib_nsl_gethostbyname = no; then
10565
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10566
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10567
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10568
  echo $ECHO_N "(cached) $ECHO_C" >&6
10569
else
10570
  ac_check_lib_save_LIBS=$LIBS
10571
LIBS="-lbsd  $LIBS"
10572
if test x$gcc_no_link = xyes; then
10573
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10574
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10575
   { (exit 1); exit 1; }; }
10576
fi
10577
cat >conftest.$ac_ext <<_ACEOF
10578
/* confdefs.h.  */
10579
_ACEOF
10580
cat confdefs.h >>conftest.$ac_ext
10581
cat >>conftest.$ac_ext <<_ACEOF
10582
/* end confdefs.h.  */
10583
 
10584
/* Override any gcc2 internal prototype to avoid an error.  */
10585
#ifdef __cplusplus
10586
extern "C"
10587
#endif
10588
/* We use char because int might match the return type of a gcc2
10589
   builtin and then its argument prototype would still apply.  */
10590
char gethostbyname ();
10591
int
10592
main ()
10593
{
10594
gethostbyname ();
10595
  ;
10596
  return 0;
10597
}
10598
_ACEOF
10599
rm -f conftest.$ac_objext conftest$ac_exeext
10600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601
  (eval $ac_link) 2>conftest.er1
10602
  ac_status=$?
10603
  grep -v '^ *+' conftest.er1 >conftest.err
10604
  rm -f conftest.er1
10605
  cat conftest.err >&5
10606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607
  (exit $ac_status); } &&
10608
         { ac_try='test -z "$ac_c_werror_flag"
10609
                         || test ! -s conftest.err'
10610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611
  (eval $ac_try) 2>&5
10612
  ac_status=$?
10613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614
  (exit $ac_status); }; } &&
10615
         { ac_try='test -s conftest$ac_exeext'
10616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617
  (eval $ac_try) 2>&5
10618
  ac_status=$?
10619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620
  (exit $ac_status); }; }; then
10621
  ac_cv_lib_bsd_gethostbyname=yes
10622
else
10623
  echo "$as_me: failed program was:" >&5
10624
sed 's/^/| /' conftest.$ac_ext >&5
10625
 
10626
ac_cv_lib_bsd_gethostbyname=no
10627
fi
10628
rm -f conftest.err conftest.$ac_objext \
10629
      conftest$ac_exeext conftest.$ac_ext
10630
LIBS=$ac_check_lib_save_LIBS
10631
fi
10632
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10633
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10634
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10635
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10636
fi
10637
 
10638
      fi
10639
    fi
10640
 
10641
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
10642
    # socket/setsockopt and other routines are undefined under SCO ODT
10643
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10644
    # on later versions), says Simon Leinen: it contains gethostby*
10645
    # variants that don't use the name server (or something).  -lsocket
10646
    # must be given before -lnsl if both are needed.  We assume that
10647
    # if connect needs -lnsl, so does gethostbyname.
10648
    echo "$as_me:$LINENO: checking for connect" >&5
10649
echo $ECHO_N "checking for connect... $ECHO_C" >&6
10650
if test "${ac_cv_func_connect+set}" = set; then
10651
  echo $ECHO_N "(cached) $ECHO_C" >&6
10652
else
10653
  if test x$gcc_no_link = xyes; then
10654
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10655
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10656
   { (exit 1); exit 1; }; }
10657
fi
10658
cat >conftest.$ac_ext <<_ACEOF
10659
/* confdefs.h.  */
10660
_ACEOF
10661
cat confdefs.h >>conftest.$ac_ext
10662
cat >>conftest.$ac_ext <<_ACEOF
10663
/* end confdefs.h.  */
10664
/* Define connect to an innocuous variant, in case  declares connect.
10665
   For example, HP-UX 11i  declares gettimeofday.  */
10666
#define connect innocuous_connect
10667
 
10668
/* System header to define __stub macros and hopefully few prototypes,
10669
    which can conflict with char connect (); below.
10670
    Prefer  to  if __STDC__ is defined, since
10671
     exists even on freestanding compilers.  */
10672
 
10673
#ifdef __STDC__
10674
# include 
10675
#else
10676
# include 
10677
#endif
10678
 
10679
#undef connect
10680
 
10681
/* Override any gcc2 internal prototype to avoid an error.  */
10682
#ifdef __cplusplus
10683
extern "C"
10684
{
10685
#endif
10686
/* We use char because int might match the return type of a gcc2
10687
   builtin and then its argument prototype would still apply.  */
10688
char connect ();
10689
/* The GNU C library defines this for functions which it implements
10690
    to always fail with ENOSYS.  Some functions are actually named
10691
    something starting with __ and the normal name is an alias.  */
10692
#if defined (__stub_connect) || defined (__stub___connect)
10693
choke me
10694
#else
10695
char (*f) () = connect;
10696
#endif
10697
#ifdef __cplusplus
10698
}
10699
#endif
10700
 
10701
int
10702
main ()
10703
{
10704
return f != connect;
10705
  ;
10706
  return 0;
10707
}
10708
_ACEOF
10709
rm -f conftest.$ac_objext conftest$ac_exeext
10710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711
  (eval $ac_link) 2>conftest.er1
10712
  ac_status=$?
10713
  grep -v '^ *+' conftest.er1 >conftest.err
10714
  rm -f conftest.er1
10715
  cat conftest.err >&5
10716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717
  (exit $ac_status); } &&
10718
         { ac_try='test -z "$ac_c_werror_flag"
10719
                         || test ! -s conftest.err'
10720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721
  (eval $ac_try) 2>&5
10722
  ac_status=$?
10723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724
  (exit $ac_status); }; } &&
10725
         { ac_try='test -s conftest$ac_exeext'
10726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727
  (eval $ac_try) 2>&5
10728
  ac_status=$?
10729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730
  (exit $ac_status); }; }; then
10731
  ac_cv_func_connect=yes
10732
else
10733
  echo "$as_me: failed program was:" >&5
10734
sed 's/^/| /' conftest.$ac_ext >&5
10735
 
10736
ac_cv_func_connect=no
10737
fi
10738
rm -f conftest.err conftest.$ac_objext \
10739
      conftest$ac_exeext conftest.$ac_ext
10740
fi
10741
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10742
echo "${ECHO_T}$ac_cv_func_connect" >&6
10743
 
10744
    if test $ac_cv_func_connect = no; then
10745
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10746
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10747
if test "${ac_cv_lib_socket_connect+set}" = set; then
10748
  echo $ECHO_N "(cached) $ECHO_C" >&6
10749
else
10750
  ac_check_lib_save_LIBS=$LIBS
10751
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10752
if test x$gcc_no_link = xyes; then
10753
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10754
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10755
   { (exit 1); exit 1; }; }
10756
fi
10757
cat >conftest.$ac_ext <<_ACEOF
10758
/* confdefs.h.  */
10759
_ACEOF
10760
cat confdefs.h >>conftest.$ac_ext
10761
cat >>conftest.$ac_ext <<_ACEOF
10762
/* end confdefs.h.  */
10763
 
10764
/* Override any gcc2 internal prototype to avoid an error.  */
10765
#ifdef __cplusplus
10766
extern "C"
10767
#endif
10768
/* We use char because int might match the return type of a gcc2
10769
   builtin and then its argument prototype would still apply.  */
10770
char connect ();
10771
int
10772
main ()
10773
{
10774
connect ();
10775
  ;
10776
  return 0;
10777
}
10778
_ACEOF
10779
rm -f conftest.$ac_objext conftest$ac_exeext
10780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781
  (eval $ac_link) 2>conftest.er1
10782
  ac_status=$?
10783
  grep -v '^ *+' conftest.er1 >conftest.err
10784
  rm -f conftest.er1
10785
  cat conftest.err >&5
10786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787
  (exit $ac_status); } &&
10788
         { ac_try='test -z "$ac_c_werror_flag"
10789
                         || test ! -s conftest.err'
10790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791
  (eval $ac_try) 2>&5
10792
  ac_status=$?
10793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794
  (exit $ac_status); }; } &&
10795
         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10801
  ac_cv_lib_socket_connect=yes
10802
else
10803
  echo "$as_me: failed program was:" >&5
10804
sed 's/^/| /' conftest.$ac_ext >&5
10805
 
10806
ac_cv_lib_socket_connect=no
10807
fi
10808
rm -f conftest.err conftest.$ac_objext \
10809
      conftest$ac_exeext conftest.$ac_ext
10810
LIBS=$ac_check_lib_save_LIBS
10811
fi
10812
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10813
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10814
if test $ac_cv_lib_socket_connect = yes; then
10815
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10816
fi
10817
 
10818
    fi
10819
 
10820
    # Guillermo Gomez says -lposix is necessary on A/UX.
10821
    echo "$as_me:$LINENO: checking for remove" >&5
10822
echo $ECHO_N "checking for remove... $ECHO_C" >&6
10823
if test "${ac_cv_func_remove+set}" = set; then
10824
  echo $ECHO_N "(cached) $ECHO_C" >&6
10825
else
10826
  if test x$gcc_no_link = xyes; then
10827
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10828
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10829
   { (exit 1); exit 1; }; }
10830
fi
10831
cat >conftest.$ac_ext <<_ACEOF
10832
/* confdefs.h.  */
10833
_ACEOF
10834
cat confdefs.h >>conftest.$ac_ext
10835
cat >>conftest.$ac_ext <<_ACEOF
10836
/* end confdefs.h.  */
10837
/* Define remove to an innocuous variant, in case  declares remove.
10838
   For example, HP-UX 11i  declares gettimeofday.  */
10839
#define remove innocuous_remove
10840
 
10841
/* System header to define __stub macros and hopefully few prototypes,
10842
    which can conflict with char remove (); below.
10843
    Prefer  to  if __STDC__ is defined, since
10844
     exists even on freestanding compilers.  */
10845
 
10846
#ifdef __STDC__
10847
# include 
10848
#else
10849
# include 
10850
#endif
10851
 
10852
#undef remove
10853
 
10854
/* Override any gcc2 internal prototype to avoid an error.  */
10855
#ifdef __cplusplus
10856
extern "C"
10857
{
10858
#endif
10859
/* We use char because int might match the return type of a gcc2
10860
   builtin and then its argument prototype would still apply.  */
10861
char remove ();
10862
/* The GNU C library defines this for functions which it implements
10863
    to always fail with ENOSYS.  Some functions are actually named
10864
    something starting with __ and the normal name is an alias.  */
10865
#if defined (__stub_remove) || defined (__stub___remove)
10866
choke me
10867
#else
10868
char (*f) () = remove;
10869
#endif
10870
#ifdef __cplusplus
10871
}
10872
#endif
10873
 
10874
int
10875
main ()
10876
{
10877
return f != remove;
10878
  ;
10879
  return 0;
10880
}
10881
_ACEOF
10882
rm -f conftest.$ac_objext conftest$ac_exeext
10883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884
  (eval $ac_link) 2>conftest.er1
10885
  ac_status=$?
10886
  grep -v '^ *+' conftest.er1 >conftest.err
10887
  rm -f conftest.er1
10888
  cat conftest.err >&5
10889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890
  (exit $ac_status); } &&
10891
         { ac_try='test -z "$ac_c_werror_flag"
10892
                         || test ! -s conftest.err'
10893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894
  (eval $ac_try) 2>&5
10895
  ac_status=$?
10896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897
  (exit $ac_status); }; } &&
10898
         { ac_try='test -s conftest$ac_exeext'
10899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900
  (eval $ac_try) 2>&5
10901
  ac_status=$?
10902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903
  (exit $ac_status); }; }; then
10904
  ac_cv_func_remove=yes
10905
else
10906
  echo "$as_me: failed program was:" >&5
10907
sed 's/^/| /' conftest.$ac_ext >&5
10908
 
10909
ac_cv_func_remove=no
10910
fi
10911
rm -f conftest.err conftest.$ac_objext \
10912
      conftest$ac_exeext conftest.$ac_ext
10913
fi
10914
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10915
echo "${ECHO_T}$ac_cv_func_remove" >&6
10916
 
10917
    if test $ac_cv_func_remove = no; then
10918
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10919
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10920
if test "${ac_cv_lib_posix_remove+set}" = set; then
10921
  echo $ECHO_N "(cached) $ECHO_C" >&6
10922
else
10923
  ac_check_lib_save_LIBS=$LIBS
10924
LIBS="-lposix  $LIBS"
10925
if test x$gcc_no_link = xyes; then
10926
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10927
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10928
   { (exit 1); exit 1; }; }
10929
fi
10930
cat >conftest.$ac_ext <<_ACEOF
10931
/* confdefs.h.  */
10932
_ACEOF
10933
cat confdefs.h >>conftest.$ac_ext
10934
cat >>conftest.$ac_ext <<_ACEOF
10935
/* end confdefs.h.  */
10936
 
10937
/* Override any gcc2 internal prototype to avoid an error.  */
10938
#ifdef __cplusplus
10939
extern "C"
10940
#endif
10941
/* We use char because int might match the return type of a gcc2
10942
   builtin and then its argument prototype would still apply.  */
10943
char remove ();
10944
int
10945
main ()
10946
{
10947
remove ();
10948
  ;
10949
  return 0;
10950
}
10951
_ACEOF
10952
rm -f conftest.$ac_objext conftest$ac_exeext
10953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954
  (eval $ac_link) 2>conftest.er1
10955
  ac_status=$?
10956
  grep -v '^ *+' conftest.er1 >conftest.err
10957
  rm -f conftest.er1
10958
  cat conftest.err >&5
10959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960
  (exit $ac_status); } &&
10961
         { ac_try='test -z "$ac_c_werror_flag"
10962
                         || test ! -s conftest.err'
10963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964
  (eval $ac_try) 2>&5
10965
  ac_status=$?
10966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967
  (exit $ac_status); }; } &&
10968
         { ac_try='test -s conftest$ac_exeext'
10969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970
  (eval $ac_try) 2>&5
10971
  ac_status=$?
10972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973
  (exit $ac_status); }; }; then
10974
  ac_cv_lib_posix_remove=yes
10975
else
10976
  echo "$as_me: failed program was:" >&5
10977
sed 's/^/| /' conftest.$ac_ext >&5
10978
 
10979
ac_cv_lib_posix_remove=no
10980
fi
10981
rm -f conftest.err conftest.$ac_objext \
10982
      conftest$ac_exeext conftest.$ac_ext
10983
LIBS=$ac_check_lib_save_LIBS
10984
fi
10985
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10986
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10987
if test $ac_cv_lib_posix_remove = yes; then
10988
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10989
fi
10990
 
10991
    fi
10992
 
10993
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10994
    echo "$as_me:$LINENO: checking for shmat" >&5
10995
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10996
if test "${ac_cv_func_shmat+set}" = set; then
10997
  echo $ECHO_N "(cached) $ECHO_C" >&6
10998
else
10999
  if test x$gcc_no_link = xyes; then
11000
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11001
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11002
   { (exit 1); exit 1; }; }
11003
fi
11004
cat >conftest.$ac_ext <<_ACEOF
11005
/* confdefs.h.  */
11006
_ACEOF
11007
cat confdefs.h >>conftest.$ac_ext
11008
cat >>conftest.$ac_ext <<_ACEOF
11009
/* end confdefs.h.  */
11010
/* Define shmat to an innocuous variant, in case  declares shmat.
11011
   For example, HP-UX 11i  declares gettimeofday.  */
11012
#define shmat innocuous_shmat
11013
 
11014
/* System header to define __stub macros and hopefully few prototypes,
11015
    which can conflict with char shmat (); below.
11016
    Prefer  to  if __STDC__ is defined, since
11017
     exists even on freestanding compilers.  */
11018
 
11019
#ifdef __STDC__
11020
# include 
11021
#else
11022
# include 
11023
#endif
11024
 
11025
#undef shmat
11026
 
11027
/* Override any gcc2 internal prototype to avoid an error.  */
11028
#ifdef __cplusplus
11029
extern "C"
11030
{
11031
#endif
11032
/* We use char because int might match the return type of a gcc2
11033
   builtin and then its argument prototype would still apply.  */
11034
char shmat ();
11035
/* The GNU C library defines this for functions which it implements
11036
    to always fail with ENOSYS.  Some functions are actually named
11037
    something starting with __ and the normal name is an alias.  */
11038
#if defined (__stub_shmat) || defined (__stub___shmat)
11039
choke me
11040
#else
11041
char (*f) () = shmat;
11042
#endif
11043
#ifdef __cplusplus
11044
}
11045
#endif
11046
 
11047
int
11048
main ()
11049
{
11050
return f != shmat;
11051
  ;
11052
  return 0;
11053
}
11054
_ACEOF
11055
rm -f conftest.$ac_objext conftest$ac_exeext
11056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057
  (eval $ac_link) 2>conftest.er1
11058
  ac_status=$?
11059
  grep -v '^ *+' conftest.er1 >conftest.err
11060
  rm -f conftest.er1
11061
  cat conftest.err >&5
11062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
  (exit $ac_status); } &&
11064
         { ac_try='test -z "$ac_c_werror_flag"
11065
                         || test ! -s conftest.err'
11066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067
  (eval $ac_try) 2>&5
11068
  ac_status=$?
11069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070
  (exit $ac_status); }; } &&
11071
         { ac_try='test -s conftest$ac_exeext'
11072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073
  (eval $ac_try) 2>&5
11074
  ac_status=$?
11075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076
  (exit $ac_status); }; }; then
11077
  ac_cv_func_shmat=yes
11078
else
11079
  echo "$as_me: failed program was:" >&5
11080
sed 's/^/| /' conftest.$ac_ext >&5
11081
 
11082
ac_cv_func_shmat=no
11083
fi
11084
rm -f conftest.err conftest.$ac_objext \
11085
      conftest$ac_exeext conftest.$ac_ext
11086
fi
11087
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11088
echo "${ECHO_T}$ac_cv_func_shmat" >&6
11089
 
11090
    if test $ac_cv_func_shmat = no; then
11091
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11092
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11093
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11094
  echo $ECHO_N "(cached) $ECHO_C" >&6
11095
else
11096
  ac_check_lib_save_LIBS=$LIBS
11097
LIBS="-lipc  $LIBS"
11098
if test x$gcc_no_link = xyes; then
11099
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11100
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11101
   { (exit 1); exit 1; }; }
11102
fi
11103
cat >conftest.$ac_ext <<_ACEOF
11104
/* confdefs.h.  */
11105
_ACEOF
11106
cat confdefs.h >>conftest.$ac_ext
11107
cat >>conftest.$ac_ext <<_ACEOF
11108
/* end confdefs.h.  */
11109
 
11110
/* Override any gcc2 internal prototype to avoid an error.  */
11111
#ifdef __cplusplus
11112
extern "C"
11113
#endif
11114
/* We use char because int might match the return type of a gcc2
11115
   builtin and then its argument prototype would still apply.  */
11116
char shmat ();
11117
int
11118
main ()
11119
{
11120
shmat ();
11121
  ;
11122
  return 0;
11123
}
11124
_ACEOF
11125
rm -f conftest.$ac_objext conftest$ac_exeext
11126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127
  (eval $ac_link) 2>conftest.er1
11128
  ac_status=$?
11129
  grep -v '^ *+' conftest.er1 >conftest.err
11130
  rm -f conftest.er1
11131
  cat conftest.err >&5
11132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133
  (exit $ac_status); } &&
11134
         { ac_try='test -z "$ac_c_werror_flag"
11135
                         || test ! -s conftest.err'
11136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137
  (eval $ac_try) 2>&5
11138
  ac_status=$?
11139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140
  (exit $ac_status); }; } &&
11141
         { ac_try='test -s conftest$ac_exeext'
11142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143
  (eval $ac_try) 2>&5
11144
  ac_status=$?
11145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146
  (exit $ac_status); }; }; then
11147
  ac_cv_lib_ipc_shmat=yes
11148
else
11149
  echo "$as_me: failed program was:" >&5
11150
sed 's/^/| /' conftest.$ac_ext >&5
11151
 
11152
ac_cv_lib_ipc_shmat=no
11153
fi
11154
rm -f conftest.err conftest.$ac_objext \
11155
      conftest$ac_exeext conftest.$ac_ext
11156
LIBS=$ac_check_lib_save_LIBS
11157
fi
11158
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11159
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11160
if test $ac_cv_lib_ipc_shmat = yes; then
11161
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11162
fi
11163
 
11164
    fi
11165
  fi
11166
 
11167
  # Check for libraries that X11R6 Xt/Xaw programs need.
11168
  ac_save_LDFLAGS=$LDFLAGS
11169
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11170
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11171
  # check for ICE first), but we must link in the order -lSM -lICE or
11172
  # we get undefined symbols.  So assume we have SM if we have ICE.
11173
  # These have to be linked with before -lX11, unlike the other
11174
  # libraries we check for below, so use a different variable.
11175
  # John Interrante, Karl Berry
11176
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11177
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11178
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11179
  echo $ECHO_N "(cached) $ECHO_C" >&6
11180
else
11181
  ac_check_lib_save_LIBS=$LIBS
11182
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11183
if test x$gcc_no_link = xyes; then
11184
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11185
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11186
   { (exit 1); exit 1; }; }
11187
fi
11188
cat >conftest.$ac_ext <<_ACEOF
11189
/* confdefs.h.  */
11190
_ACEOF
11191
cat confdefs.h >>conftest.$ac_ext
11192
cat >>conftest.$ac_ext <<_ACEOF
11193
/* end confdefs.h.  */
11194
 
11195
/* Override any gcc2 internal prototype to avoid an error.  */
11196
#ifdef __cplusplus
11197
extern "C"
11198
#endif
11199
/* We use char because int might match the return type of a gcc2
11200
   builtin and then its argument prototype would still apply.  */
11201
char IceConnectionNumber ();
11202
int
11203
main ()
11204
{
11205
IceConnectionNumber ();
11206
  ;
11207
  return 0;
11208
}
11209
_ACEOF
11210
rm -f conftest.$ac_objext conftest$ac_exeext
11211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212
  (eval $ac_link) 2>conftest.er1
11213
  ac_status=$?
11214
  grep -v '^ *+' conftest.er1 >conftest.err
11215
  rm -f conftest.er1
11216
  cat conftest.err >&5
11217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218
  (exit $ac_status); } &&
11219
         { ac_try='test -z "$ac_c_werror_flag"
11220
                         || test ! -s conftest.err'
11221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222
  (eval $ac_try) 2>&5
11223
  ac_status=$?
11224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225
  (exit $ac_status); }; } &&
11226
         { ac_try='test -s conftest$ac_exeext'
11227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228
  (eval $ac_try) 2>&5
11229
  ac_status=$?
11230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231
  (exit $ac_status); }; }; then
11232
  ac_cv_lib_ICE_IceConnectionNumber=yes
11233
else
11234
  echo "$as_me: failed program was:" >&5
11235
sed 's/^/| /' conftest.$ac_ext >&5
11236
 
11237
ac_cv_lib_ICE_IceConnectionNumber=no
11238
fi
11239
rm -f conftest.err conftest.$ac_objext \
11240
      conftest$ac_exeext conftest.$ac_ext
11241
LIBS=$ac_check_lib_save_LIBS
11242
fi
11243
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11244
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11245
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11246
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11247
fi
11248
 
11249
  LDFLAGS=$ac_save_LDFLAGS
11250
 
11251
fi
11252
 
11253
    if test "$no_x" = yes; then
11254
        { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11255
echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11256
   { (exit 1); exit 1; }; }
11257
    fi
11258
        echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11259
echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11260
if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11261
  echo $ECHO_N "(cached) $ECHO_C" >&6
11262
else
11263
  ac_check_lib_save_LIBS=$LIBS
11264
LIBS="-lXtst ${X_LIBS} $LIBS"
11265
if test x$gcc_no_link = xyes; then
11266
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11267
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11268
   { (exit 1); exit 1; }; }
11269
fi
11270
cat >conftest.$ac_ext <<_ACEOF
11271
/* confdefs.h.  */
11272
_ACEOF
11273
cat confdefs.h >>conftest.$ac_ext
11274
cat >>conftest.$ac_ext <<_ACEOF
11275
/* end confdefs.h.  */
11276
 
11277
/* Override any gcc2 internal prototype to avoid an error.  */
11278
#ifdef __cplusplus
11279
extern "C"
11280
#endif
11281
/* We use char because int might match the return type of a gcc2
11282
   builtin and then its argument prototype would still apply.  */
11283
char XTestQueryExtension ();
11284
int
11285
main ()
11286
{
11287
XTestQueryExtension ();
11288
  ;
11289
  return 0;
11290
}
11291
_ACEOF
11292
rm -f conftest.$ac_objext conftest$ac_exeext
11293
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11294
  (eval $ac_link) 2>conftest.er1
11295
  ac_status=$?
11296
  grep -v '^ *+' conftest.er1 >conftest.err
11297
  rm -f conftest.er1
11298
  cat conftest.err >&5
11299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300
  (exit $ac_status); } &&
11301
         { ac_try='test -z "$ac_c_werror_flag"
11302
                         || test ! -s conftest.err'
11303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304
  (eval $ac_try) 2>&5
11305
  ac_status=$?
11306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307
  (exit $ac_status); }; } &&
11308
         { ac_try='test -s conftest$ac_exeext'
11309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310
  (eval $ac_try) 2>&5
11311
  ac_status=$?
11312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313
  (exit $ac_status); }; }; then
11314
  ac_cv_lib_Xtst_XTestQueryExtension=yes
11315
else
11316
  echo "$as_me: failed program was:" >&5
11317
sed 's/^/| /' conftest.$ac_ext >&5
11318
 
11319
ac_cv_lib_Xtst_XTestQueryExtension=no
11320
fi
11321
rm -f conftest.err conftest.$ac_objext \
11322
      conftest$ac_exeext conftest.$ac_ext
11323
LIBS=$ac_check_lib_save_LIBS
11324
fi
11325
echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11326
echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11327
if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11328
  true
11329
else
11330
  { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11331
echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11332
   { (exit 1); exit 1; }; }
11333
fi
11334
 
11335
 
11336
  succeeded=no
11337
 
11338
  if test -z "$PKG_CONFIG"; then
11339
    # Extract the first word of "pkg-config", so it can be a program name with args.
11340
set dummy pkg-config; ac_word=$2
11341
echo "$as_me:$LINENO: checking for $ac_word" >&5
11342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11344
  echo $ECHO_N "(cached) $ECHO_C" >&6
11345
else
11346
  case $PKG_CONFIG in
11347
  [\\/]* | ?:[\\/]*)
11348
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11349
  ;;
11350
  *)
11351
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352
for as_dir in $PATH
11353
do
11354
  IFS=$as_save_IFS
11355
  test -z "$as_dir" && as_dir=.
11356
  for ac_exec_ext in '' $ac_executable_extensions; do
11357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360
    break 2
11361
  fi
11362
done
11363
done
11364
 
11365
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11366
  ;;
11367
esac
11368
fi
11369
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11370
 
11371
if test -n "$PKG_CONFIG"; then
11372
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11373
echo "${ECHO_T}$PKG_CONFIG" >&6
11374
else
11375
  echo "$as_me:$LINENO: result: no" >&5
11376
echo "${ECHO_T}no" >&6
11377
fi
11378
 
11379
  fi
11380
 
11381
  if test "$PKG_CONFIG" = "no" ; then
11382
     echo "*** The pkg-config script could not be found. Make sure it is"
11383
     echo "*** in your path, or set the PKG_CONFIG environment variable"
11384
     echo "*** to the full path to pkg-config."
11385
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11386
  else
11387
     PKG_CONFIG_MIN_VERSION=0.9.0
11388
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11389
        echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11390
echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11391
 
11392
        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11393
            echo "$as_me:$LINENO: result: yes" >&5
11394
echo "${ECHO_T}yes" >&6
11395
            succeeded=yes
11396
 
11397
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11398
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11399
            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11400
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11401
echo "${ECHO_T}$GTK_CFLAGS" >&6
11402
 
11403
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11404
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11405
            GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11406
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11407
echo "${ECHO_T}$GTK_LIBS" >&6
11408
        else
11409
            GTK_CFLAGS=""
11410
            GTK_LIBS=""
11411
            ## If we have a custom action on failure, don't print errors, but
11412
            ## do set a variable so people can do so.
11413
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11414
            echo $GTK_PKG_ERRORS
11415
        fi
11416
 
11417
 
11418
 
11419
     else
11420
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11421
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422
     fi
11423
  fi
11424
 
11425
  if test $succeeded = yes; then
11426
     :
11427
  else
11428
     { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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
11429
echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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;}
11430
   { (exit 1); exit 1; }; }
11431
  fi
11432
 
11433
 
11434
    if test "x${enable_gtk_cairo}" = xyes; then
11435
 
11436
  succeeded=no
11437
 
11438
  if test -z "$PKG_CONFIG"; then
11439
    # Extract the first word of "pkg-config", so it can be a program name with args.
11440
set dummy pkg-config; ac_word=$2
11441
echo "$as_me:$LINENO: checking for $ac_word" >&5
11442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11443
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11444
  echo $ECHO_N "(cached) $ECHO_C" >&6
11445
else
11446
  case $PKG_CONFIG in
11447
  [\\/]* | ?:[\\/]*)
11448
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11449
  ;;
11450
  *)
11451
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452
for as_dir in $PATH
11453
do
11454
  IFS=$as_save_IFS
11455
  test -z "$as_dir" && as_dir=.
11456
  for ac_exec_ext in '' $ac_executable_extensions; do
11457
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11459
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11460
    break 2
11461
  fi
11462
done
11463
done
11464
 
11465
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11466
  ;;
11467
esac
11468
fi
11469
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11470
 
11471
if test -n "$PKG_CONFIG"; then
11472
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11473
echo "${ECHO_T}$PKG_CONFIG" >&6
11474
else
11475
  echo "$as_me:$LINENO: result: no" >&5
11476
echo "${ECHO_T}no" >&6
11477
fi
11478
 
11479
  fi
11480
 
11481
  if test "$PKG_CONFIG" = "no" ; then
11482
     echo "*** The pkg-config script could not be found. Make sure it is"
11483
     echo "*** in your path, or set the PKG_CONFIG environment variable"
11484
     echo "*** to the full path to pkg-config."
11485
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11486
  else
11487
     PKG_CONFIG_MIN_VERSION=0.9.0
11488
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11489
        echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
11490
echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6
11491
 
11492
        if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
11493
            echo "$as_me:$LINENO: result: yes" >&5
11494
echo "${ECHO_T}yes" >&6
11495
            succeeded=yes
11496
 
11497
            echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
11498
echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
11499
            CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
11500
            echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
11501
echo "${ECHO_T}$CAIRO_CFLAGS" >&6
11502
 
11503
            echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
11504
echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
11505
            CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
11506
            echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
11507
echo "${ECHO_T}$CAIRO_LIBS" >&6
11508
        else
11509
            CAIRO_CFLAGS=""
11510
            CAIRO_LIBS=""
11511
            ## If we have a custom action on failure, don't print errors, but
11512
            ## do set a variable so people can do so.
11513
            CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
11514
            echo $CAIRO_PKG_ERRORS
11515
        fi
11516
 
11517
 
11518
 
11519
     else
11520
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11521
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
11522
     fi
11523
  fi
11524
 
11525
  if test $succeeded = yes; then
11526
     :
11527
  else
11528
     { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 0.5.0) 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
11529
echo "$as_me: error: Library requirements (cairo >= 0.5.0) 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;}
11530
   { (exit 1); exit 1; }; }
11531
  fi
11532
 
11533
    fi
11534
 
11535
 
11536
  succeeded=no
11537
 
11538
  if test -z "$PKG_CONFIG"; then
11539
    # Extract the first word of "pkg-config", so it can be a program name with args.
11540
set dummy pkg-config; ac_word=$2
11541
echo "$as_me:$LINENO: checking for $ac_word" >&5
11542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11544
  echo $ECHO_N "(cached) $ECHO_C" >&6
11545
else
11546
  case $PKG_CONFIG in
11547
  [\\/]* | ?:[\\/]*)
11548
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11549
  ;;
11550
  *)
11551
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552
for as_dir in $PATH
11553
do
11554
  IFS=$as_save_IFS
11555
  test -z "$as_dir" && as_dir=.
11556
  for ac_exec_ext in '' $ac_executable_extensions; do
11557
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11559
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560
    break 2
11561
  fi
11562
done
11563
done
11564
 
11565
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11566
  ;;
11567
esac
11568
fi
11569
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11570
 
11571
if test -n "$PKG_CONFIG"; then
11572
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11573
echo "${ECHO_T}$PKG_CONFIG" >&6
11574
else
11575
  echo "$as_me:$LINENO: result: no" >&5
11576
echo "${ECHO_T}no" >&6
11577
fi
11578
 
11579
  fi
11580
 
11581
  if test "$PKG_CONFIG" = "no" ; then
11582
     echo "*** The pkg-config script could not be found. Make sure it is"
11583
     echo "*** in your path, or set the PKG_CONFIG environment variable"
11584
     echo "*** to the full path to pkg-config."
11585
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11586
  else
11587
     PKG_CONFIG_MIN_VERSION=0.9.0
11588
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11589
        echo "$as_me:$LINENO: checking for pangoft2" >&5
11590
echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11591
 
11592
        if $PKG_CONFIG --exists "pangoft2" ; then
11593
            echo "$as_me:$LINENO: result: yes" >&5
11594
echo "${ECHO_T}yes" >&6
11595
            succeeded=yes
11596
 
11597
            echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11598
echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11599
            PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11600
            echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11601
echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11602
 
11603
            echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11604
echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11605
            PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11606
            echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11607
echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11608
        else
11609
            PANGOFT2_CFLAGS=""
11610
            PANGOFT2_LIBS=""
11611
            ## If we have a custom action on failure, don't print errors, but
11612
            ## do set a variable so people can do so.
11613
            PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11614
            echo $PANGOFT2_PKG_ERRORS
11615
        fi
11616
 
11617
 
11618
 
11619
     else
11620
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11621
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
11622
     fi
11623
  fi
11624
 
11625
  if test $succeeded = yes; then
11626
     :
11627
  else
11628
     { { 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
11629
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;}
11630
   { (exit 1); exit 1; }; }
11631
  fi
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
  fi
11641
 
11642
    if test "x${COMPILE_QT_PEER}" = xyes; then
11643
 
11644
  succeeded=no
11645
 
11646
  if test -z "$PKG_CONFIG"; then
11647
    # Extract the first word of "pkg-config", so it can be a program name with args.
11648
set dummy pkg-config; ac_word=$2
11649
echo "$as_me:$LINENO: checking for $ac_word" >&5
11650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11651
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11652
  echo $ECHO_N "(cached) $ECHO_C" >&6
11653
else
11654
  case $PKG_CONFIG in
11655
  [\\/]* | ?:[\\/]*)
11656
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11657
  ;;
11658
  *)
11659
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660
for as_dir in $PATH
11661
do
11662
  IFS=$as_save_IFS
11663
  test -z "$as_dir" && as_dir=.
11664
  for ac_exec_ext in '' $ac_executable_extensions; do
11665
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11667
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668
    break 2
11669
  fi
11670
done
11671
done
11672
 
11673
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11674
  ;;
11675
esac
11676
fi
11677
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11678
 
11679
if test -n "$PKG_CONFIG"; then
11680
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11681
echo "${ECHO_T}$PKG_CONFIG" >&6
11682
else
11683
  echo "$as_me:$LINENO: result: no" >&5
11684
echo "${ECHO_T}no" >&6
11685
fi
11686
 
11687
  fi
11688
 
11689
  if test "$PKG_CONFIG" = "no" ; then
11690
     echo "*** The pkg-config script could not be found. Make sure it is"
11691
     echo "*** in your path, or set the PKG_CONFIG environment variable"
11692
     echo "*** to the full path to pkg-config."
11693
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11694
  else
11695
     PKG_CONFIG_MIN_VERSION=0.9.0
11696
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11697
        echo "$as_me:$LINENO: checking for QtGui >= 4.0.1" >&5
11698
echo $ECHO_N "checking for QtGui >= 4.0.1... $ECHO_C" >&6
11699
 
11700
        if $PKG_CONFIG --exists "QtGui >= 4.0.1" ; then
11701
            echo "$as_me:$LINENO: result: yes" >&5
11702
echo "${ECHO_T}yes" >&6
11703
            succeeded=yes
11704
 
11705
            echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
11706
echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
11707
            QT_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.0.1"`
11708
            echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
11709
echo "${ECHO_T}$QT_CFLAGS" >&6
11710
 
11711
            echo "$as_me:$LINENO: checking QT_LIBS" >&5
11712
echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
11713
            QT_LIBS=`$PKG_CONFIG --libs "QtGui >= 4.0.1"`
11714
            echo "$as_me:$LINENO: result: $QT_LIBS" >&5
11715
echo "${ECHO_T}$QT_LIBS" >&6
11716
        else
11717
            QT_CFLAGS=""
11718
            QT_LIBS=""
11719
            ## If we have a custom action on failure, don't print errors, but
11720
            ## do set a variable so people can do so.
11721
            QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.0.1"`
11722
 
11723
        fi
11724
 
11725
 
11726
 
11727
     else
11728
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11729
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
11730
     fi
11731
  fi
11732
 
11733
  if test $succeeded = yes; then
11734
     HAVE_QT4="yes"
11735
  else
11736
     HAVE_QT4="no"
11737
  fi
11738
 
11739
    if test "x$HAVE_QT4" = "xyes"; then
11740
                  QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
11741
      EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
11742
      as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11743
echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
11744
echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11745
if eval "test \"\${$as_ac_File+set}\" = set"; then
11746
  echo $ECHO_N "(cached) $ECHO_C" >&6
11747
else
11748
  test "$cross_compiling" = yes &&
11749
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11750
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11751
   { (exit 1); exit 1; }; }
11752
if test -r "$QT_INCLUDE_DIR/QWidget"; then
11753
  eval "$as_ac_File=yes"
11754
else
11755
  eval "$as_ac_File=no"
11756
fi
11757
fi
11758
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11759
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11760
if test `eval echo '${'$as_ac_File'}'` = yes; then
11761
  { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
11762
echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
11763
else
11764
  as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11765
echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
11766
echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11767
if eval "test \"\${$as_ac_File+set}\" = set"; then
11768
  echo $ECHO_N "(cached) $ECHO_C" >&6
11769
else
11770
  test "$cross_compiling" = yes &&
11771
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11772
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11773
   { (exit 1); exit 1; }; }
11774
if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
11775
  eval "$as_ac_File=yes"
11776
else
11777
  eval "$as_ac_File=no"
11778
fi
11779
fi
11780
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11781
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11782
if test `eval echo '${'$as_ac_File'}'` = yes; then
11783
  QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
11784
else
11785
  { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
11786
echo "$as_me: WARNING: QWidget not found" >&2;}
11787
fi
11788
 
11789
fi
11790
 
11791
        # Extract the first word of "moc", so it can be a program name with args.
11792
set dummy moc; ac_word=$2
11793
echo "$as_me:$LINENO: checking for $ac_word" >&5
11794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795
if test "${ac_cv_prog_MOC+set}" = set; then
11796
  echo $ECHO_N "(cached) $ECHO_C" >&6
11797
else
11798
  if test -n "$MOC"; then
11799
  ac_cv_prog_MOC="$MOC" # Let the user override the test.
11800
else
11801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802
for as_dir in $PATH
11803
do
11804
  IFS=$as_save_IFS
11805
  test -z "$as_dir" && as_dir=.
11806
  for ac_exec_ext in '' $ac_executable_extensions; do
11807
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808
    ac_cv_prog_MOC="moc"
11809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810
    break 2
11811
  fi
11812
done
11813
done
11814
 
11815
fi
11816
fi
11817
MOC=$ac_cv_prog_MOC
11818
if test -n "$MOC"; then
11819
  echo "$as_me:$LINENO: result: $MOC" >&5
11820
echo "${ECHO_T}$MOC" >&6
11821
else
11822
  echo "$as_me:$LINENO: result: no" >&5
11823
echo "${ECHO_T}no" >&6
11824
fi
11825
 
11826
    fi
11827
    if test "x$HAVE_QT4" = "xno"; then
11828
      { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
11829
echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
11830
      case "$host_os" in
11831
        darwin*)
11832
 
11833
# Check whether --with-qt4dir or --without-qt4dir was given.
11834
if test "${with_qt4dir+set}" = set; then
11835
  withval="$with_qt4dir"
11836
  QT4DIR=$withval
11837
 
11838
fi;
11839
          if test x"$QT4DIR" = x ; then
11840
            { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
11841
echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
11842
   { (exit 1); exit 1; }; }
11843
          fi
11844
          echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
11845
echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
11846
          # Extract the first word of "moc", so it can be a program name with args.
11847
set dummy moc; ac_word=$2
11848
echo "$as_me:$LINENO: checking for $ac_word" >&5
11849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11850
if test "${ac_cv_prog_MOC+set}" = set; then
11851
  echo $ECHO_N "(cached) $ECHO_C" >&6
11852
else
11853
  if test -n "$MOC"; then
11854
  ac_cv_prog_MOC="$MOC" # Let the user override the test.
11855
else
11856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857
for as_dir in $QT4DIR/bin
11858
do
11859
  IFS=$as_save_IFS
11860
  test -z "$as_dir" && as_dir=.
11861
  for ac_exec_ext in '' $ac_executable_extensions; do
11862
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863
    ac_cv_prog_MOC="$QT4DIR/bin/moc"
11864
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11865
    break 2
11866
  fi
11867
done
11868
done
11869
 
11870
fi
11871
fi
11872
MOC=$ac_cv_prog_MOC
11873
if test -n "$MOC"; then
11874
  echo "$as_me:$LINENO: result: $MOC" >&5
11875
echo "${ECHO_T}$MOC" >&6
11876
else
11877
  echo "$as_me:$LINENO: result: no" >&5
11878
echo "${ECHO_T}no" >&6
11879
fi
11880
 
11881
          if test x"$MOC" = x; then
11882
            { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
11883
echo "$as_me: error: *** This is not the right Qt installation" >&2;}
11884
   { (exit 1); exit 1; }; }
11885
          fi
11886
          QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
11887
          QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
11888
          QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
11889
          QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
11890
          ;;
11891
        *)
11892
          { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
11893
          of your installed Qt4 installation." >&5
11894
echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
11895
          of your installed Qt4 installation." >&2;}
11896
   { (exit 1); exit 1; }; }
11897
          ;;
11898
      esac
11899
    fi
11900
    { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
11901
echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
11902
 
11903
 
11904
  fi
11905
fi
11906
 
11907
 
11908
 
11909
# Check whether --with-javah or --without-javah was given.
11910
if test "${with_javah+set}" = set; then
11911
  withval="$with_javah"
11912
 
11913
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11914
 
11915
  if test "x${withval}" != x; then
11916
    if test -f "${withval}"; then
11917
      USER_JAVAH="${withval}"
11918
    else
11919
      # Extract the first word of ""${withval}"", so it can be a program name with args.
11920
set dummy "${withval}"; ac_word=$2
11921
echo "$as_me:$LINENO: checking for $ac_word" >&5
11922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11923
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11924
  echo $ECHO_N "(cached) $ECHO_C" >&6
11925
else
11926
  case $USER_JAVAH in
11927
  [\\/]* | ?:[\\/]*)
11928
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11929
  ;;
11930
  *)
11931
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932
for as_dir in $PATH
11933
do
11934
  IFS=$as_save_IFS
11935
  test -z "$as_dir" && as_dir=.
11936
  for ac_exec_ext in '' $ac_executable_extensions; do
11937
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11940
    break 2
11941
  fi
11942
done
11943
done
11944
 
11945
  ;;
11946
esac
11947
fi
11948
USER_JAVAH=$ac_cv_path_USER_JAVAH
11949
 
11950
if test -n "$USER_JAVAH"; then
11951
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11952
echo "${ECHO_T}$USER_JAVAH" >&6
11953
else
11954
  echo "$as_me:$LINENO: result: no" >&5
11955
echo "${ECHO_T}no" >&6
11956
fi
11957
 
11958
    fi
11959
  else
11960
    for javah_name in gcjh javah; do
11961
      # Extract the first word of ""$javah_name"", so it can be a program name with args.
11962
set dummy "$javah_name"; ac_word=$2
11963
echo "$as_me:$LINENO: checking for $ac_word" >&5
11964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11965
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11966
  echo $ECHO_N "(cached) $ECHO_C" >&6
11967
else
11968
  case $USER_JAVAH in
11969
  [\\/]* | ?:[\\/]*)
11970
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11971
  ;;
11972
  *)
11973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974
for as_dir in $PATH
11975
do
11976
  IFS=$as_save_IFS
11977
  test -z "$as_dir" && as_dir=.
11978
  for ac_exec_ext in '' $ac_executable_extensions; do
11979
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11981
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11982
    break 2
11983
  fi
11984
done
11985
done
11986
 
11987
  ;;
11988
esac
11989
fi
11990
USER_JAVAH=$ac_cv_path_USER_JAVAH
11991
 
11992
if test -n "$USER_JAVAH"; then
11993
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11994
echo "${ECHO_T}$USER_JAVAH" >&6
11995
else
11996
  echo "$as_me:$LINENO: result: no" >&5
11997
echo "${ECHO_T}no" >&6
11998
fi
11999
 
12000
      if test "x${USER_JAVAH}" != x; then
12001
        break
12002
      fi
12003
    done
12004
  fi
12005
 
12006
#  if test "x${USER_JAVAH}" = x; then
12007
#    echo "configure: cannot find javah" 1>&2
12008
#    exit 1
12009
#  fi
12010
 
12011
    else
12012
 
12013
  if test "x" != x; then
12014
    if test -f ""; then
12015
      USER_JAVAH=""
12016
    else
12017
      # Extract the first word of """", so it can be a program name with args.
12018
set dummy ""; ac_word=$2
12019
echo "$as_me:$LINENO: checking for $ac_word" >&5
12020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12021
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12022
  echo $ECHO_N "(cached) $ECHO_C" >&6
12023
else
12024
  case $USER_JAVAH in
12025
  [\\/]* | ?:[\\/]*)
12026
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12027
  ;;
12028
  *)
12029
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030
for as_dir in $PATH
12031
do
12032
  IFS=$as_save_IFS
12033
  test -z "$as_dir" && as_dir=.
12034
  for ac_exec_ext in '' $ac_executable_extensions; do
12035
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038
    break 2
12039
  fi
12040
done
12041
done
12042
 
12043
  ;;
12044
esac
12045
fi
12046
USER_JAVAH=$ac_cv_path_USER_JAVAH
12047
 
12048
if test -n "$USER_JAVAH"; then
12049
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12050
echo "${ECHO_T}$USER_JAVAH" >&6
12051
else
12052
  echo "$as_me:$LINENO: result: no" >&5
12053
echo "${ECHO_T}no" >&6
12054
fi
12055
 
12056
    fi
12057
  else
12058
    for javah_name in gcjh javah; do
12059
      # Extract the first word of ""$javah_name"", so it can be a program name with args.
12060
set dummy "$javah_name"; ac_word=$2
12061
echo "$as_me:$LINENO: checking for $ac_word" >&5
12062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12063
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12064
  echo $ECHO_N "(cached) $ECHO_C" >&6
12065
else
12066
  case $USER_JAVAH in
12067
  [\\/]* | ?:[\\/]*)
12068
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12069
  ;;
12070
  *)
12071
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072
for as_dir in $PATH
12073
do
12074
  IFS=$as_save_IFS
12075
  test -z "$as_dir" && as_dir=.
12076
  for ac_exec_ext in '' $ac_executable_extensions; do
12077
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12079
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12080
    break 2
12081
  fi
12082
done
12083
done
12084
 
12085
  ;;
12086
esac
12087
fi
12088
USER_JAVAH=$ac_cv_path_USER_JAVAH
12089
 
12090
if test -n "$USER_JAVAH"; then
12091
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12092
echo "${ECHO_T}$USER_JAVAH" >&6
12093
else
12094
  echo "$as_me:$LINENO: result: no" >&5
12095
echo "${ECHO_T}no" >&6
12096
fi
12097
 
12098
      if test "x${USER_JAVAH}" != x; then
12099
        break
12100
      fi
12101
    done
12102
  fi
12103
 
12104
#  if test "x${USER_JAVAH}" = x; then
12105
#    echo "configure: cannot find javah" 1>&2
12106
#    exit 1
12107
#  fi
12108
 
12109
    fi
12110
 
12111
else
12112
 
12113
 
12114
  if test "x" != x; then
12115
    if test -f ""; then
12116
      USER_JAVAH=""
12117
    else
12118
      # Extract the first word of """", so it can be a program name with args.
12119
set dummy ""; ac_word=$2
12120
echo "$as_me:$LINENO: checking for $ac_word" >&5
12121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12122
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12123
  echo $ECHO_N "(cached) $ECHO_C" >&6
12124
else
12125
  case $USER_JAVAH in
12126
  [\\/]* | ?:[\\/]*)
12127
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12128
  ;;
12129
  *)
12130
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131
for as_dir in $PATH
12132
do
12133
  IFS=$as_save_IFS
12134
  test -z "$as_dir" && as_dir=.
12135
  for ac_exec_ext in '' $ac_executable_extensions; do
12136
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12138
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139
    break 2
12140
  fi
12141
done
12142
done
12143
 
12144
  ;;
12145
esac
12146
fi
12147
USER_JAVAH=$ac_cv_path_USER_JAVAH
12148
 
12149
if test -n "$USER_JAVAH"; then
12150
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12151
echo "${ECHO_T}$USER_JAVAH" >&6
12152
else
12153
  echo "$as_me:$LINENO: result: no" >&5
12154
echo "${ECHO_T}no" >&6
12155
fi
12156
 
12157
    fi
12158
  else
12159
    for javah_name in gcjh javah; do
12160
      # Extract the first word of ""$javah_name"", so it can be a program name with args.
12161
set dummy "$javah_name"; ac_word=$2
12162
echo "$as_me:$LINENO: checking for $ac_word" >&5
12163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12164
if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12165
  echo $ECHO_N "(cached) $ECHO_C" >&6
12166
else
12167
  case $USER_JAVAH in
12168
  [\\/]* | ?:[\\/]*)
12169
  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12170
  ;;
12171
  *)
12172
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173
for as_dir in $PATH
12174
do
12175
  IFS=$as_save_IFS
12176
  test -z "$as_dir" && as_dir=.
12177
  for ac_exec_ext in '' $ac_executable_extensions; do
12178
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179
    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12180
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12181
    break 2
12182
  fi
12183
done
12184
done
12185
 
12186
  ;;
12187
esac
12188
fi
12189
USER_JAVAH=$ac_cv_path_USER_JAVAH
12190
 
12191
if test -n "$USER_JAVAH"; then
12192
  echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12193
echo "${ECHO_T}$USER_JAVAH" >&6
12194
else
12195
  echo "$as_me:$LINENO: result: no" >&5
12196
echo "${ECHO_T}no" >&6
12197
fi
12198
 
12199
      if test "x${USER_JAVAH}" != x; then
12200
        break
12201
      fi
12202
    done
12203
  fi
12204
 
12205
#  if test "x${USER_JAVAH}" = x; then
12206
#    echo "configure: cannot find javah" 1>&2
12207
#    exit 1
12208
#  fi
12209
 
12210
 
12211
fi;
12212
 
12213
 
12214
if test "x${USER_JAVAH}" != x; then
12215
  USER_SPECIFIED_JAVAH_TRUE=
12216
  USER_SPECIFIED_JAVAH_FALSE='#'
12217
else
12218
  USER_SPECIFIED_JAVAH_TRUE='#'
12219
  USER_SPECIFIED_JAVAH_FALSE=
12220
fi
12221
 
12222
 
12223
 
12224
 
12225
CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
12226
 
12227
 
12228
if test "x${COMPILE_JNI}" = xyes; then
12229
  echo "$as_me:$LINENO: checking jni_md.h support" >&5
12230
echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
12231
  if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
12232
    echo "$as_me:$LINENO: result: yes" >&5
12233
echo "${ECHO_T}yes" >&6
12234
  else
12235
    target_cpu=x86
12236
    target_os=linux-gnu
12237
    { echo "$as_me:$LINENO: WARNING: no" >&5
12238
echo "$as_me: WARNING: no" >&2;}
12239
  fi
12240
  ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
12241
  ac_dests="include/jni_md.h"
12242
  while test -n "$ac_sources"; do
12243
    set $ac_dests; ac_dest=$1; shift; ac_dests=$*
12244
    set $ac_sources; ac_source=$1; shift; ac_sources=$*
12245
    ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
12246
  done
12247
            ac_config_links="$ac_config_links $ac_config_links_1"
12248
 
12249
fi
12250
 
12251
 
12252
  user_specified_javac=
12253
 
12254
 
12255
 
12256
# Check whether --with-gcj or --without-gcj was given.
12257
if test "${with_gcj+set}" = set; then
12258
  withval="$with_gcj"
12259
 
12260
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12261
 
12262
  if test "x${withval}" != x; then
12263
    if test -f "${withval}"; then
12264
      GCJ="${withval}"
12265
    else
12266
      # Extract the first word of ""${withval}"", so it can be a program name with args.
12267
set dummy "${withval}"; ac_word=$2
12268
echo "$as_me:$LINENO: checking for $ac_word" >&5
12269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270
if test "${ac_cv_path_GCJ+set}" = set; then
12271
  echo $ECHO_N "(cached) $ECHO_C" >&6
12272
else
12273
  case $GCJ in
12274
  [\\/]* | ?:[\\/]*)
12275
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12276
  ;;
12277
  *)
12278
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279
for as_dir in $PATH
12280
do
12281
  IFS=$as_save_IFS
12282
  test -z "$as_dir" && as_dir=.
12283
  for ac_exec_ext in '' $ac_executable_extensions; do
12284
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12287
    break 2
12288
  fi
12289
done
12290
done
12291
 
12292
  ;;
12293
esac
12294
fi
12295
GCJ=$ac_cv_path_GCJ
12296
 
12297
if test -n "$GCJ"; then
12298
  echo "$as_me:$LINENO: result: $GCJ" >&5
12299
echo "${ECHO_T}$GCJ" >&6
12300
else
12301
  echo "$as_me:$LINENO: result: no" >&5
12302
echo "${ECHO_T}no" >&6
12303
fi
12304
 
12305
    fi
12306
  else
12307
    # Extract the first word of ""gcj"", so it can be a program name with args.
12308
set dummy "gcj"; ac_word=$2
12309
echo "$as_me:$LINENO: checking for $ac_word" >&5
12310
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12311
if test "${ac_cv_path_GCJ+set}" = set; then
12312
  echo $ECHO_N "(cached) $ECHO_C" >&6
12313
else
12314
  case $GCJ in
12315
  [\\/]* | ?:[\\/]*)
12316
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12317
  ;;
12318
  *)
12319
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320
for as_dir in $PATH
12321
do
12322
  IFS=$as_save_IFS
12323
  test -z "$as_dir" && as_dir=.
12324
  for ac_exec_ext in '' $ac_executable_extensions; do
12325
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12328
    break 2
12329
  fi
12330
done
12331
done
12332
 
12333
  ;;
12334
esac
12335
fi
12336
GCJ=$ac_cv_path_GCJ
12337
 
12338
if test -n "$GCJ"; then
12339
  echo "$as_me:$LINENO: result: $GCJ" >&5
12340
echo "${ECHO_T}$GCJ" >&6
12341
else
12342
  echo "$as_me:$LINENO: result: no" >&5
12343
echo "${ECHO_T}no" >&6
12344
fi
12345
 
12346
  fi
12347
    if test "x$GCJ" != x; then
12348
    echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12349
echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12350
    ac_ext=c
12351
ac_cpp='$CPP $CPPFLAGS'
12352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355
 
12356
    cat >conftest.$ac_ext <<_ACEOF
12357
#if __GNUC__ <= 3
12358
    #error GCJ 4.0.0 or higher is required
12359
    #endif
12360
 
12361
_ACEOF
12362
    $GCJ -E conftest.c > /dev/null
12363
    gcj_4_result=$?
12364
    if test "x$gcj_4_result" = "x0"; then
12365
      echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12366
echo "${ECHO_T}4.0 or higher found" >&6
12367
    else
12368
      { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12369
echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12370
    fi
12371
    ac_ext=c
12372
ac_cpp='$CPP $CPPFLAGS'
12373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12376
 
12377
  fi
12378
 
12379
    else
12380
      if test "x${withval}" != xno; then
12381
 
12382
  if test "x" != x; then
12383
    if test -f ""; then
12384
      GCJ=""
12385
    else
12386
      # Extract the first word of """", so it can be a program name with args.
12387
set dummy ""; ac_word=$2
12388
echo "$as_me:$LINENO: checking for $ac_word" >&5
12389
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12390
if test "${ac_cv_path_GCJ+set}" = set; then
12391
  echo $ECHO_N "(cached) $ECHO_C" >&6
12392
else
12393
  case $GCJ in
12394
  [\\/]* | ?:[\\/]*)
12395
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12396
  ;;
12397
  *)
12398
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399
for as_dir in $PATH
12400
do
12401
  IFS=$as_save_IFS
12402
  test -z "$as_dir" && as_dir=.
12403
  for ac_exec_ext in '' $ac_executable_extensions; do
12404
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12405
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12406
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12407
    break 2
12408
  fi
12409
done
12410
done
12411
 
12412
  ;;
12413
esac
12414
fi
12415
GCJ=$ac_cv_path_GCJ
12416
 
12417
if test -n "$GCJ"; then
12418
  echo "$as_me:$LINENO: result: $GCJ" >&5
12419
echo "${ECHO_T}$GCJ" >&6
12420
else
12421
  echo "$as_me:$LINENO: result: no" >&5
12422
echo "${ECHO_T}no" >&6
12423
fi
12424
 
12425
    fi
12426
  else
12427
    # Extract the first word of ""gcj"", so it can be a program name with args.
12428
set dummy "gcj"; ac_word=$2
12429
echo "$as_me:$LINENO: checking for $ac_word" >&5
12430
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12431
if test "${ac_cv_path_GCJ+set}" = set; then
12432
  echo $ECHO_N "(cached) $ECHO_C" >&6
12433
else
12434
  case $GCJ in
12435
  [\\/]* | ?:[\\/]*)
12436
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12437
  ;;
12438
  *)
12439
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440
for as_dir in $PATH
12441
do
12442
  IFS=$as_save_IFS
12443
  test -z "$as_dir" && as_dir=.
12444
  for ac_exec_ext in '' $ac_executable_extensions; do
12445
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12447
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12448
    break 2
12449
  fi
12450
done
12451
done
12452
 
12453
  ;;
12454
esac
12455
fi
12456
GCJ=$ac_cv_path_GCJ
12457
 
12458
if test -n "$GCJ"; then
12459
  echo "$as_me:$LINENO: result: $GCJ" >&5
12460
echo "${ECHO_T}$GCJ" >&6
12461
else
12462
  echo "$as_me:$LINENO: result: no" >&5
12463
echo "${ECHO_T}no" >&6
12464
fi
12465
 
12466
  fi
12467
    if test "x$GCJ" != x; then
12468
    echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12469
echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12470
    ac_ext=c
12471
ac_cpp='$CPP $CPPFLAGS'
12472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12475
 
12476
    cat >conftest.$ac_ext <<_ACEOF
12477
#if __GNUC__ <= 3
12478
    #error GCJ 4.0.0 or higher is required
12479
    #endif
12480
 
12481
_ACEOF
12482
    $GCJ -E conftest.c > /dev/null
12483
    gcj_4_result=$?
12484
    if test "x$gcj_4_result" = "x0"; then
12485
      echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12486
echo "${ECHO_T}4.0 or higher found" >&6
12487
    else
12488
      { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12489
echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12490
    fi
12491
    ac_ext=c
12492
ac_cpp='$CPP $CPPFLAGS'
12493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496
 
12497
  fi
12498
 
12499
      fi
12500
    fi
12501
    user_specified_javac=gcj
12502
 
12503
else
12504
 
12505
 
12506
  if test "x" != x; then
12507
    if test -f ""; then
12508
      GCJ=""
12509
    else
12510
      # Extract the first word of """", so it can be a program name with args.
12511
set dummy ""; ac_word=$2
12512
echo "$as_me:$LINENO: checking for $ac_word" >&5
12513
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12514
if test "${ac_cv_path_GCJ+set}" = set; then
12515
  echo $ECHO_N "(cached) $ECHO_C" >&6
12516
else
12517
  case $GCJ in
12518
  [\\/]* | ?:[\\/]*)
12519
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12520
  ;;
12521
  *)
12522
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523
for as_dir in $PATH
12524
do
12525
  IFS=$as_save_IFS
12526
  test -z "$as_dir" && as_dir=.
12527
  for ac_exec_ext in '' $ac_executable_extensions; do
12528
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12531
    break 2
12532
  fi
12533
done
12534
done
12535
 
12536
  ;;
12537
esac
12538
fi
12539
GCJ=$ac_cv_path_GCJ
12540
 
12541
if test -n "$GCJ"; then
12542
  echo "$as_me:$LINENO: result: $GCJ" >&5
12543
echo "${ECHO_T}$GCJ" >&6
12544
else
12545
  echo "$as_me:$LINENO: result: no" >&5
12546
echo "${ECHO_T}no" >&6
12547
fi
12548
 
12549
    fi
12550
  else
12551
    # Extract the first word of ""gcj"", so it can be a program name with args.
12552
set dummy "gcj"; ac_word=$2
12553
echo "$as_me:$LINENO: checking for $ac_word" >&5
12554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12555
if test "${ac_cv_path_GCJ+set}" = set; then
12556
  echo $ECHO_N "(cached) $ECHO_C" >&6
12557
else
12558
  case $GCJ in
12559
  [\\/]* | ?:[\\/]*)
12560
  ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12561
  ;;
12562
  *)
12563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564
for as_dir in $PATH
12565
do
12566
  IFS=$as_save_IFS
12567
  test -z "$as_dir" && as_dir=.
12568
  for ac_exec_ext in '' $ac_executable_extensions; do
12569
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570
    ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12572
    break 2
12573
  fi
12574
done
12575
done
12576
 
12577
  ;;
12578
esac
12579
fi
12580
GCJ=$ac_cv_path_GCJ
12581
 
12582
if test -n "$GCJ"; then
12583
  echo "$as_me:$LINENO: result: $GCJ" >&5
12584
echo "${ECHO_T}$GCJ" >&6
12585
else
12586
  echo "$as_me:$LINENO: result: no" >&5
12587
echo "${ECHO_T}no" >&6
12588
fi
12589
 
12590
  fi
12591
    if test "x$GCJ" != x; then
12592
    echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12593
echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12594
    ac_ext=c
12595
ac_cpp='$CPP $CPPFLAGS'
12596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599
 
12600
    cat >conftest.$ac_ext <<_ACEOF
12601
#if __GNUC__ <= 3
12602
    #error GCJ 4.0.0 or higher is required
12603
    #endif
12604
 
12605
_ACEOF
12606
    $GCJ -E conftest.c > /dev/null
12607
    gcj_4_result=$?
12608
    if test "x$gcj_4_result" = "x0"; then
12609
      echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12610
echo "${ECHO_T}4.0 or higher found" >&6
12611
    else
12612
      { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12613
echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12614
    fi
12615
    ac_ext=c
12616
ac_cpp='$CPP $CPPFLAGS'
12617
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12620
 
12621
  fi
12622
 
12623
 
12624
fi;
12625
 
12626
 
12627
 
12628
 
12629
# Check whether --with-jikes or --without-jikes was given.
12630
if test "${with_jikes+set}" = set; then
12631
  withval="$with_jikes"
12632
 
12633
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12634
 
12635
  if test "x${withval}" != x; then
12636
    if test -f "${withval}"; then
12637
      JIKES="${withval}"
12638
    else
12639
      # Extract the first word of ""${withval}"", so it can be a program name with args.
12640
set dummy "${withval}"; ac_word=$2
12641
echo "$as_me:$LINENO: checking for $ac_word" >&5
12642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12643
if test "${ac_cv_path_JIKES+set}" = set; then
12644
  echo $ECHO_N "(cached) $ECHO_C" >&6
12645
else
12646
  case $JIKES in
12647
  [\\/]* | ?:[\\/]*)
12648
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12649
  ;;
12650
  *)
12651
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652
for as_dir in $PATH
12653
do
12654
  IFS=$as_save_IFS
12655
  test -z "$as_dir" && as_dir=.
12656
  for ac_exec_ext in '' $ac_executable_extensions; do
12657
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12659
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12660
    break 2
12661
  fi
12662
done
12663
done
12664
 
12665
  ;;
12666
esac
12667
fi
12668
JIKES=$ac_cv_path_JIKES
12669
 
12670
if test -n "$JIKES"; then
12671
  echo "$as_me:$LINENO: result: $JIKES" >&5
12672
echo "${ECHO_T}$JIKES" >&6
12673
else
12674
  echo "$as_me:$LINENO: result: no" >&5
12675
echo "${ECHO_T}no" >&6
12676
fi
12677
 
12678
    fi
12679
  else
12680
    # Extract the first word of ""jikes"", so it can be a program name with args.
12681
set dummy "jikes"; ac_word=$2
12682
echo "$as_me:$LINENO: checking for $ac_word" >&5
12683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12684
if test "${ac_cv_path_JIKES+set}" = set; then
12685
  echo $ECHO_N "(cached) $ECHO_C" >&6
12686
else
12687
  case $JIKES in
12688
  [\\/]* | ?:[\\/]*)
12689
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12690
  ;;
12691
  *)
12692
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693
for as_dir in $PATH
12694
do
12695
  IFS=$as_save_IFS
12696
  test -z "$as_dir" && as_dir=.
12697
  for ac_exec_ext in '' $ac_executable_extensions; do
12698
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12699
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12700
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12701
    break 2
12702
  fi
12703
done
12704
done
12705
 
12706
  ;;
12707
esac
12708
fi
12709
JIKES=$ac_cv_path_JIKES
12710
 
12711
if test -n "$JIKES"; then
12712
  echo "$as_me:$LINENO: result: $JIKES" >&5
12713
echo "${ECHO_T}$JIKES" >&6
12714
else
12715
  echo "$as_me:$LINENO: result: no" >&5
12716
echo "${ECHO_T}no" >&6
12717
fi
12718
 
12719
  fi
12720
  if test "x$JIKES" != "x"; then
12721
        echo "$as_me:$LINENO: checking jikes version" >&5
12722
echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12723
    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12724
    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12725
    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12726
    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12727
      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12728
        JIKES=""
12729
      fi
12730
    fi
12731
    if test "x$JIKES" != "x"; then
12732
      echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12733
echo "${ECHO_T}$JIKES_VERSION" >&6
12734
    else
12735
      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12736
echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12737
    fi
12738
 
12739
    JIKESENCODING=
12740
    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12741
       JIKESENCODING='-encoding UTF-8'
12742
    fi
12743
 
12744
  fi
12745
 
12746
    else
12747
      if test "x${withval}" != xno; then
12748
 
12749
  if test "x" != x; then
12750
    if test -f ""; then
12751
      JIKES=""
12752
    else
12753
      # Extract the first word of """", so it can be a program name with args.
12754
set dummy ""; ac_word=$2
12755
echo "$as_me:$LINENO: checking for $ac_word" >&5
12756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12757
if test "${ac_cv_path_JIKES+set}" = set; then
12758
  echo $ECHO_N "(cached) $ECHO_C" >&6
12759
else
12760
  case $JIKES in
12761
  [\\/]* | ?:[\\/]*)
12762
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12763
  ;;
12764
  *)
12765
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766
for as_dir in $PATH
12767
do
12768
  IFS=$as_save_IFS
12769
  test -z "$as_dir" && as_dir=.
12770
  for ac_exec_ext in '' $ac_executable_extensions; do
12771
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12774
    break 2
12775
  fi
12776
done
12777
done
12778
 
12779
  ;;
12780
esac
12781
fi
12782
JIKES=$ac_cv_path_JIKES
12783
 
12784
if test -n "$JIKES"; then
12785
  echo "$as_me:$LINENO: result: $JIKES" >&5
12786
echo "${ECHO_T}$JIKES" >&6
12787
else
12788
  echo "$as_me:$LINENO: result: no" >&5
12789
echo "${ECHO_T}no" >&6
12790
fi
12791
 
12792
    fi
12793
  else
12794
    # Extract the first word of ""jikes"", so it can be a program name with args.
12795
set dummy "jikes"; ac_word=$2
12796
echo "$as_me:$LINENO: checking for $ac_word" >&5
12797
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12798
if test "${ac_cv_path_JIKES+set}" = set; then
12799
  echo $ECHO_N "(cached) $ECHO_C" >&6
12800
else
12801
  case $JIKES in
12802
  [\\/]* | ?:[\\/]*)
12803
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12804
  ;;
12805
  *)
12806
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807
for as_dir in $PATH
12808
do
12809
  IFS=$as_save_IFS
12810
  test -z "$as_dir" && as_dir=.
12811
  for ac_exec_ext in '' $ac_executable_extensions; do
12812
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12814
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12815
    break 2
12816
  fi
12817
done
12818
done
12819
 
12820
  ;;
12821
esac
12822
fi
12823
JIKES=$ac_cv_path_JIKES
12824
 
12825
if test -n "$JIKES"; then
12826
  echo "$as_me:$LINENO: result: $JIKES" >&5
12827
echo "${ECHO_T}$JIKES" >&6
12828
else
12829
  echo "$as_me:$LINENO: result: no" >&5
12830
echo "${ECHO_T}no" >&6
12831
fi
12832
 
12833
  fi
12834
  if test "x$JIKES" != "x"; then
12835
        echo "$as_me:$LINENO: checking jikes version" >&5
12836
echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12837
    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12838
    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12839
    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12840
    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12841
      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12842
        JIKES=""
12843
      fi
12844
    fi
12845
    if test "x$JIKES" != "x"; then
12846
      echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12847
echo "${ECHO_T}$JIKES_VERSION" >&6
12848
    else
12849
      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12850
echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12851
    fi
12852
 
12853
    JIKESENCODING=
12854
    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12855
       JIKESENCODING='-encoding UTF-8'
12856
    fi
12857
 
12858
  fi
12859
 
12860
      fi
12861
    fi
12862
    user_specified_javac=jikes
12863
 
12864
else
12865
 
12866
 
12867
  if test "x" != x; then
12868
    if test -f ""; then
12869
      JIKES=""
12870
    else
12871
      # Extract the first word of """", so it can be a program name with args.
12872
set dummy ""; ac_word=$2
12873
echo "$as_me:$LINENO: checking for $ac_word" >&5
12874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12875
if test "${ac_cv_path_JIKES+set}" = set; then
12876
  echo $ECHO_N "(cached) $ECHO_C" >&6
12877
else
12878
  case $JIKES in
12879
  [\\/]* | ?:[\\/]*)
12880
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12881
  ;;
12882
  *)
12883
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884
for as_dir in $PATH
12885
do
12886
  IFS=$as_save_IFS
12887
  test -z "$as_dir" && as_dir=.
12888
  for ac_exec_ext in '' $ac_executable_extensions; do
12889
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12892
    break 2
12893
  fi
12894
done
12895
done
12896
 
12897
  ;;
12898
esac
12899
fi
12900
JIKES=$ac_cv_path_JIKES
12901
 
12902
if test -n "$JIKES"; then
12903
  echo "$as_me:$LINENO: result: $JIKES" >&5
12904
echo "${ECHO_T}$JIKES" >&6
12905
else
12906
  echo "$as_me:$LINENO: result: no" >&5
12907
echo "${ECHO_T}no" >&6
12908
fi
12909
 
12910
    fi
12911
  else
12912
    # Extract the first word of ""jikes"", so it can be a program name with args.
12913
set dummy "jikes"; ac_word=$2
12914
echo "$as_me:$LINENO: checking for $ac_word" >&5
12915
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12916
if test "${ac_cv_path_JIKES+set}" = set; then
12917
  echo $ECHO_N "(cached) $ECHO_C" >&6
12918
else
12919
  case $JIKES in
12920
  [\\/]* | ?:[\\/]*)
12921
  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12922
  ;;
12923
  *)
12924
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925
for as_dir in $PATH
12926
do
12927
  IFS=$as_save_IFS
12928
  test -z "$as_dir" && as_dir=.
12929
  for ac_exec_ext in '' $ac_executable_extensions; do
12930
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12931
    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933
    break 2
12934
  fi
12935
done
12936
done
12937
 
12938
  ;;
12939
esac
12940
fi
12941
JIKES=$ac_cv_path_JIKES
12942
 
12943
if test -n "$JIKES"; then
12944
  echo "$as_me:$LINENO: result: $JIKES" >&5
12945
echo "${ECHO_T}$JIKES" >&6
12946
else
12947
  echo "$as_me:$LINENO: result: no" >&5
12948
echo "${ECHO_T}no" >&6
12949
fi
12950
 
12951
  fi
12952
  if test "x$JIKES" != "x"; then
12953
        echo "$as_me:$LINENO: checking jikes version" >&5
12954
echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12955
    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12956
    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12957
    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12958
    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12959
      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12960
        JIKES=""
12961
      fi
12962
    fi
12963
    if test "x$JIKES" != "x"; then
12964
      echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12965
echo "${ECHO_T}$JIKES_VERSION" >&6
12966
    else
12967
      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12968
echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12969
    fi
12970
 
12971
    JIKESENCODING=
12972
    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12973
       JIKESENCODING='-encoding UTF-8'
12974
    fi
12975
 
12976
  fi
12977
 
12978
 
12979
fi;
12980
 
12981
 
12982
 
12983
 
12984
# Check whether --with-kjc or --without-kjc was given.
12985
if test "${with_kjc+set}" = set; then
12986
  withval="$with_kjc"
12987
 
12988
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12989
 
12990
  if test "x${withval}" != x; then
12991
    if test -f "${withval}"; then
12992
      KJC="${withval}"
12993
    else
12994
      # Extract the first word of ""${withval}"", so it can be a program name with args.
12995
set dummy "${withval}"; ac_word=$2
12996
echo "$as_me:$LINENO: checking for $ac_word" >&5
12997
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12998
if test "${ac_cv_path_KJC+set}" = set; then
12999
  echo $ECHO_N "(cached) $ECHO_C" >&6
13000
else
13001
  case $KJC in
13002
  [\\/]* | ?:[\\/]*)
13003
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13004
  ;;
13005
  *)
13006
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007
for as_dir in $PATH
13008
do
13009
  IFS=$as_save_IFS
13010
  test -z "$as_dir" && as_dir=.
13011
  for ac_exec_ext in '' $ac_executable_extensions; do
13012
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13014
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13015
    break 2
13016
  fi
13017
done
13018
done
13019
 
13020
  ;;
13021
esac
13022
fi
13023
KJC=$ac_cv_path_KJC
13024
 
13025
if test -n "$KJC"; then
13026
  echo "$as_me:$LINENO: result: $KJC" >&5
13027
echo "${ECHO_T}$KJC" >&6
13028
else
13029
  echo "$as_me:$LINENO: result: no" >&5
13030
echo "${ECHO_T}no" >&6
13031
fi
13032
 
13033
    fi
13034
  else
13035
    # Extract the first word of ""kJC"", so it can be a program name with args.
13036
set dummy "kJC"; ac_word=$2
13037
echo "$as_me:$LINENO: checking for $ac_word" >&5
13038
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13039
if test "${ac_cv_path_KJC+set}" = set; then
13040
  echo $ECHO_N "(cached) $ECHO_C" >&6
13041
else
13042
  case $KJC in
13043
  [\\/]* | ?:[\\/]*)
13044
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13045
  ;;
13046
  *)
13047
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048
for as_dir in $PATH
13049
do
13050
  IFS=$as_save_IFS
13051
  test -z "$as_dir" && as_dir=.
13052
  for ac_exec_ext in '' $ac_executable_extensions; do
13053
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13055
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056
    break 2
13057
  fi
13058
done
13059
done
13060
 
13061
  ;;
13062
esac
13063
fi
13064
KJC=$ac_cv_path_KJC
13065
 
13066
if test -n "$KJC"; then
13067
  echo "$as_me:$LINENO: result: $KJC" >&5
13068
echo "${ECHO_T}$KJC" >&6
13069
else
13070
  echo "$as_me:$LINENO: result: no" >&5
13071
echo "${ECHO_T}no" >&6
13072
fi
13073
 
13074
  fi
13075
 
13076
    else
13077
      if test "x${withval}" != xno; then
13078
 
13079
  if test "x" != x; then
13080
    if test -f ""; then
13081
      KJC=""
13082
    else
13083
      # Extract the first word of """", so it can be a program name with args.
13084
set dummy ""; ac_word=$2
13085
echo "$as_me:$LINENO: checking for $ac_word" >&5
13086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13087
if test "${ac_cv_path_KJC+set}" = set; then
13088
  echo $ECHO_N "(cached) $ECHO_C" >&6
13089
else
13090
  case $KJC in
13091
  [\\/]* | ?:[\\/]*)
13092
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13093
  ;;
13094
  *)
13095
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096
for as_dir in $PATH
13097
do
13098
  IFS=$as_save_IFS
13099
  test -z "$as_dir" && as_dir=.
13100
  for ac_exec_ext in '' $ac_executable_extensions; do
13101
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13103
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13104
    break 2
13105
  fi
13106
done
13107
done
13108
 
13109
  ;;
13110
esac
13111
fi
13112
KJC=$ac_cv_path_KJC
13113
 
13114
if test -n "$KJC"; then
13115
  echo "$as_me:$LINENO: result: $KJC" >&5
13116
echo "${ECHO_T}$KJC" >&6
13117
else
13118
  echo "$as_me:$LINENO: result: no" >&5
13119
echo "${ECHO_T}no" >&6
13120
fi
13121
 
13122
    fi
13123
  else
13124
    # Extract the first word of ""kJC"", so it can be a program name with args.
13125
set dummy "kJC"; ac_word=$2
13126
echo "$as_me:$LINENO: checking for $ac_word" >&5
13127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13128
if test "${ac_cv_path_KJC+set}" = set; then
13129
  echo $ECHO_N "(cached) $ECHO_C" >&6
13130
else
13131
  case $KJC in
13132
  [\\/]* | ?:[\\/]*)
13133
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13134
  ;;
13135
  *)
13136
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137
for as_dir in $PATH
13138
do
13139
  IFS=$as_save_IFS
13140
  test -z "$as_dir" && as_dir=.
13141
  for ac_exec_ext in '' $ac_executable_extensions; do
13142
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13144
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13145
    break 2
13146
  fi
13147
done
13148
done
13149
 
13150
  ;;
13151
esac
13152
fi
13153
KJC=$ac_cv_path_KJC
13154
 
13155
if test -n "$KJC"; then
13156
  echo "$as_me:$LINENO: result: $KJC" >&5
13157
echo "${ECHO_T}$KJC" >&6
13158
else
13159
  echo "$as_me:$LINENO: result: no" >&5
13160
echo "${ECHO_T}no" >&6
13161
fi
13162
 
13163
  fi
13164
 
13165
      fi
13166
    fi
13167
    user_specified_javac=kjc
13168
 
13169
else
13170
 
13171
 
13172
  if test "x" != x; then
13173
    if test -f ""; then
13174
      KJC=""
13175
    else
13176
      # Extract the first word of """", so it can be a program name with args.
13177
set dummy ""; ac_word=$2
13178
echo "$as_me:$LINENO: checking for $ac_word" >&5
13179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13180
if test "${ac_cv_path_KJC+set}" = set; then
13181
  echo $ECHO_N "(cached) $ECHO_C" >&6
13182
else
13183
  case $KJC in
13184
  [\\/]* | ?:[\\/]*)
13185
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13186
  ;;
13187
  *)
13188
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189
for as_dir in $PATH
13190
do
13191
  IFS=$as_save_IFS
13192
  test -z "$as_dir" && as_dir=.
13193
  for ac_exec_ext in '' $ac_executable_extensions; do
13194
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13196
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13197
    break 2
13198
  fi
13199
done
13200
done
13201
 
13202
  ;;
13203
esac
13204
fi
13205
KJC=$ac_cv_path_KJC
13206
 
13207
if test -n "$KJC"; then
13208
  echo "$as_me:$LINENO: result: $KJC" >&5
13209
echo "${ECHO_T}$KJC" >&6
13210
else
13211
  echo "$as_me:$LINENO: result: no" >&5
13212
echo "${ECHO_T}no" >&6
13213
fi
13214
 
13215
    fi
13216
  else
13217
    # Extract the first word of ""kJC"", so it can be a program name with args.
13218
set dummy "kJC"; ac_word=$2
13219
echo "$as_me:$LINENO: checking for $ac_word" >&5
13220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13221
if test "${ac_cv_path_KJC+set}" = set; then
13222
  echo $ECHO_N "(cached) $ECHO_C" >&6
13223
else
13224
  case $KJC in
13225
  [\\/]* | ?:[\\/]*)
13226
  ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13227
  ;;
13228
  *)
13229
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230
for as_dir in $PATH
13231
do
13232
  IFS=$as_save_IFS
13233
  test -z "$as_dir" && as_dir=.
13234
  for ac_exec_ext in '' $ac_executable_extensions; do
13235
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236
    ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13237
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13238
    break 2
13239
  fi
13240
done
13241
done
13242
 
13243
  ;;
13244
esac
13245
fi
13246
KJC=$ac_cv_path_KJC
13247
 
13248
if test -n "$KJC"; then
13249
  echo "$as_me:$LINENO: result: $KJC" >&5
13250
echo "${ECHO_T}$KJC" >&6
13251
else
13252
  echo "$as_me:$LINENO: result: no" >&5
13253
echo "${ECHO_T}no" >&6
13254
fi
13255
 
13256
  fi
13257
 
13258
 
13259
fi;
13260
 
13261
 
13262
 
13263
 
13264
# Check whether --with-gcjx or --without-gcjx was given.
13265
if test "${with_gcjx+set}" = set; then
13266
  withval="$with_gcjx"
13267
 
13268
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13269
 
13270
  if test "x${withval}" != x; then
13271
    if test -f "${withval}"; then
13272
      GCJX="${withval}"
13273
    else
13274
      # Extract the first word of ""${withval}"", so it can be a program name with args.
13275
set dummy "${withval}"; ac_word=$2
13276
echo "$as_me:$LINENO: checking for $ac_word" >&5
13277
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278
if test "${ac_cv_path_GCJX+set}" = set; then
13279
  echo $ECHO_N "(cached) $ECHO_C" >&6
13280
else
13281
  case $GCJX in
13282
  [\\/]* | ?:[\\/]*)
13283
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13284
  ;;
13285
  *)
13286
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287
for as_dir in $PATH
13288
do
13289
  IFS=$as_save_IFS
13290
  test -z "$as_dir" && as_dir=.
13291
  for ac_exec_ext in '' $ac_executable_extensions; do
13292
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13295
    break 2
13296
  fi
13297
done
13298
done
13299
 
13300
  ;;
13301
esac
13302
fi
13303
GCJX=$ac_cv_path_GCJX
13304
 
13305
if test -n "$GCJX"; then
13306
  echo "$as_me:$LINENO: result: $GCJX" >&5
13307
echo "${ECHO_T}$GCJX" >&6
13308
else
13309
  echo "$as_me:$LINENO: result: no" >&5
13310
echo "${ECHO_T}no" >&6
13311
fi
13312
 
13313
    fi
13314
  else
13315
    # Extract the first word of ""gcjx"", so it can be a program name with args.
13316
set dummy "gcjx"; ac_word=$2
13317
echo "$as_me:$LINENO: checking for $ac_word" >&5
13318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13319
if test "${ac_cv_path_GCJX+set}" = set; then
13320
  echo $ECHO_N "(cached) $ECHO_C" >&6
13321
else
13322
  case $GCJX in
13323
  [\\/]* | ?:[\\/]*)
13324
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13325
  ;;
13326
  *)
13327
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328
for as_dir in $PATH
13329
do
13330
  IFS=$as_save_IFS
13331
  test -z "$as_dir" && as_dir=.
13332
  for ac_exec_ext in '' $ac_executable_extensions; do
13333
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13336
    break 2
13337
  fi
13338
done
13339
done
13340
 
13341
  ;;
13342
esac
13343
fi
13344
GCJX=$ac_cv_path_GCJX
13345
 
13346
if test -n "$GCJX"; then
13347
  echo "$as_me:$LINENO: result: $GCJX" >&5
13348
echo "${ECHO_T}$GCJX" >&6
13349
else
13350
  echo "$as_me:$LINENO: result: no" >&5
13351
echo "${ECHO_T}no" >&6
13352
fi
13353
 
13354
  fi
13355
 
13356
    else
13357
      if test "x${withval}" != xno; then
13358
 
13359
  if test "x" != x; then
13360
    if test -f ""; then
13361
      GCJX=""
13362
    else
13363
      # Extract the first word of """", so it can be a program name with args.
13364
set dummy ""; ac_word=$2
13365
echo "$as_me:$LINENO: checking for $ac_word" >&5
13366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13367
if test "${ac_cv_path_GCJX+set}" = set; then
13368
  echo $ECHO_N "(cached) $ECHO_C" >&6
13369
else
13370
  case $GCJX in
13371
  [\\/]* | ?:[\\/]*)
13372
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13373
  ;;
13374
  *)
13375
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376
for as_dir in $PATH
13377
do
13378
  IFS=$as_save_IFS
13379
  test -z "$as_dir" && as_dir=.
13380
  for ac_exec_ext in '' $ac_executable_extensions; do
13381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13384
    break 2
13385
  fi
13386
done
13387
done
13388
 
13389
  ;;
13390
esac
13391
fi
13392
GCJX=$ac_cv_path_GCJX
13393
 
13394
if test -n "$GCJX"; then
13395
  echo "$as_me:$LINENO: result: $GCJX" >&5
13396
echo "${ECHO_T}$GCJX" >&6
13397
else
13398
  echo "$as_me:$LINENO: result: no" >&5
13399
echo "${ECHO_T}no" >&6
13400
fi
13401
 
13402
    fi
13403
  else
13404
    # Extract the first word of ""gcjx"", so it can be a program name with args.
13405
set dummy "gcjx"; ac_word=$2
13406
echo "$as_me:$LINENO: checking for $ac_word" >&5
13407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13408
if test "${ac_cv_path_GCJX+set}" = set; then
13409
  echo $ECHO_N "(cached) $ECHO_C" >&6
13410
else
13411
  case $GCJX in
13412
  [\\/]* | ?:[\\/]*)
13413
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13414
  ;;
13415
  *)
13416
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417
for as_dir in $PATH
13418
do
13419
  IFS=$as_save_IFS
13420
  test -z "$as_dir" && as_dir=.
13421
  for ac_exec_ext in '' $ac_executable_extensions; do
13422
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13424
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13425
    break 2
13426
  fi
13427
done
13428
done
13429
 
13430
  ;;
13431
esac
13432
fi
13433
GCJX=$ac_cv_path_GCJX
13434
 
13435
if test -n "$GCJX"; then
13436
  echo "$as_me:$LINENO: result: $GCJX" >&5
13437
echo "${ECHO_T}$GCJX" >&6
13438
else
13439
  echo "$as_me:$LINENO: result: no" >&5
13440
echo "${ECHO_T}no" >&6
13441
fi
13442
 
13443
  fi
13444
 
13445
      fi
13446
    fi
13447
    user_specified_javac=gcjx
13448
 
13449
else
13450
 
13451
 
13452
  if test "x" != x; then
13453
    if test -f ""; then
13454
      GCJX=""
13455
    else
13456
      # Extract the first word of """", so it can be a program name with args.
13457
set dummy ""; ac_word=$2
13458
echo "$as_me:$LINENO: checking for $ac_word" >&5
13459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13460
if test "${ac_cv_path_GCJX+set}" = set; then
13461
  echo $ECHO_N "(cached) $ECHO_C" >&6
13462
else
13463
  case $GCJX in
13464
  [\\/]* | ?:[\\/]*)
13465
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13466
  ;;
13467
  *)
13468
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469
for as_dir in $PATH
13470
do
13471
  IFS=$as_save_IFS
13472
  test -z "$as_dir" && as_dir=.
13473
  for ac_exec_ext in '' $ac_executable_extensions; do
13474
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13476
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13477
    break 2
13478
  fi
13479
done
13480
done
13481
 
13482
  ;;
13483
esac
13484
fi
13485
GCJX=$ac_cv_path_GCJX
13486
 
13487
if test -n "$GCJX"; then
13488
  echo "$as_me:$LINENO: result: $GCJX" >&5
13489
echo "${ECHO_T}$GCJX" >&6
13490
else
13491
  echo "$as_me:$LINENO: result: no" >&5
13492
echo "${ECHO_T}no" >&6
13493
fi
13494
 
13495
    fi
13496
  else
13497
    # Extract the first word of ""gcjx"", so it can be a program name with args.
13498
set dummy "gcjx"; ac_word=$2
13499
echo "$as_me:$LINENO: checking for $ac_word" >&5
13500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13501
if test "${ac_cv_path_GCJX+set}" = set; then
13502
  echo $ECHO_N "(cached) $ECHO_C" >&6
13503
else
13504
  case $GCJX in
13505
  [\\/]* | ?:[\\/]*)
13506
  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13507
  ;;
13508
  *)
13509
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510
for as_dir in $PATH
13511
do
13512
  IFS=$as_save_IFS
13513
  test -z "$as_dir" && as_dir=.
13514
  for ac_exec_ext in '' $ac_executable_extensions; do
13515
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516
    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13518
    break 2
13519
  fi
13520
done
13521
done
13522
 
13523
  ;;
13524
esac
13525
fi
13526
GCJX=$ac_cv_path_GCJX
13527
 
13528
if test -n "$GCJX"; then
13529
  echo "$as_me:$LINENO: result: $GCJX" >&5
13530
echo "${ECHO_T}$GCJX" >&6
13531
else
13532
  echo "$as_me:$LINENO: result: no" >&5
13533
echo "${ECHO_T}no" >&6
13534
fi
13535
 
13536
  fi
13537
 
13538
 
13539
fi;
13540
 
13541
 
13542
 
13543
 
13544
# Check whether --with-ecj or --without-ecj was given.
13545
if test "${with_ecj+set}" = set; then
13546
  withval="$with_ecj"
13547
 
13548
    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13549
 
13550
  if test "x${withval}" != x; then
13551
    if test -f "${withval}"; then
13552
      ECJ="${withval}"
13553
    else
13554
      # Extract the first word of ""${withval}"", so it can be a program name with args.
13555
set dummy "${withval}"; ac_word=$2
13556
echo "$as_me:$LINENO: checking for $ac_word" >&5
13557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13558
if test "${ac_cv_path_ECJ+set}" = set; then
13559
  echo $ECHO_N "(cached) $ECHO_C" >&6
13560
else
13561
  case $ECJ in
13562
  [\\/]* | ?:[\\/]*)
13563
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13564
  ;;
13565
  *)
13566
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567
for as_dir in $PATH
13568
do
13569
  IFS=$as_save_IFS
13570
  test -z "$as_dir" && as_dir=.
13571
  for ac_exec_ext in '' $ac_executable_extensions; do
13572
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13574
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13575
    break 2
13576
  fi
13577
done
13578
done
13579
 
13580
  ;;
13581
esac
13582
fi
13583
ECJ=$ac_cv_path_ECJ
13584
 
13585
if test -n "$ECJ"; then
13586
  echo "$as_me:$LINENO: result: $ECJ" >&5
13587
echo "${ECHO_T}$ECJ" >&6
13588
else
13589
  echo "$as_me:$LINENO: result: no" >&5
13590
echo "${ECHO_T}no" >&6
13591
fi
13592
 
13593
    fi
13594
  else
13595
    # Extract the first word of ""ecj"", so it can be a program name with args.
13596
set dummy "ecj"; ac_word=$2
13597
echo "$as_me:$LINENO: checking for $ac_word" >&5
13598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13599
if test "${ac_cv_path_ECJ+set}" = set; then
13600
  echo $ECHO_N "(cached) $ECHO_C" >&6
13601
else
13602
  case $ECJ in
13603
  [\\/]* | ?:[\\/]*)
13604
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13605
  ;;
13606
  *)
13607
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608
for as_dir in $PATH
13609
do
13610
  IFS=$as_save_IFS
13611
  test -z "$as_dir" && as_dir=.
13612
  for ac_exec_ext in '' $ac_executable_extensions; do
13613
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13614
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13616
    break 2
13617
  fi
13618
done
13619
done
13620
 
13621
  ;;
13622
esac
13623
fi
13624
ECJ=$ac_cv_path_ECJ
13625
 
13626
if test -n "$ECJ"; then
13627
  echo "$as_me:$LINENO: result: $ECJ" >&5
13628
echo "${ECHO_T}$ECJ" >&6
13629
else
13630
  echo "$as_me:$LINENO: result: no" >&5
13631
echo "${ECHO_T}no" >&6
13632
fi
13633
 
13634
  fi
13635
 
13636
    else
13637
      if test "x${withval}" != xno; then
13638
 
13639
  if test "x" != x; then
13640
    if test -f ""; then
13641
      ECJ=""
13642
    else
13643
      # Extract the first word of """", so it can be a program name with args.
13644
set dummy ""; ac_word=$2
13645
echo "$as_me:$LINENO: checking for $ac_word" >&5
13646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13647
if test "${ac_cv_path_ECJ+set}" = set; then
13648
  echo $ECHO_N "(cached) $ECHO_C" >&6
13649
else
13650
  case $ECJ in
13651
  [\\/]* | ?:[\\/]*)
13652
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13653
  ;;
13654
  *)
13655
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656
for as_dir in $PATH
13657
do
13658
  IFS=$as_save_IFS
13659
  test -z "$as_dir" && as_dir=.
13660
  for ac_exec_ext in '' $ac_executable_extensions; do
13661
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13663
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13664
    break 2
13665
  fi
13666
done
13667
done
13668
 
13669
  ;;
13670
esac
13671
fi
13672
ECJ=$ac_cv_path_ECJ
13673
 
13674
if test -n "$ECJ"; then
13675
  echo "$as_me:$LINENO: result: $ECJ" >&5
13676
echo "${ECHO_T}$ECJ" >&6
13677
else
13678
  echo "$as_me:$LINENO: result: no" >&5
13679
echo "${ECHO_T}no" >&6
13680
fi
13681
 
13682
    fi
13683
  else
13684
    # Extract the first word of ""ecj"", so it can be a program name with args.
13685
set dummy "ecj"; ac_word=$2
13686
echo "$as_me:$LINENO: checking for $ac_word" >&5
13687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13688
if test "${ac_cv_path_ECJ+set}" = set; then
13689
  echo $ECHO_N "(cached) $ECHO_C" >&6
13690
else
13691
  case $ECJ in
13692
  [\\/]* | ?:[\\/]*)
13693
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13694
  ;;
13695
  *)
13696
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697
for as_dir in $PATH
13698
do
13699
  IFS=$as_save_IFS
13700
  test -z "$as_dir" && as_dir=.
13701
  for ac_exec_ext in '' $ac_executable_extensions; do
13702
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13705
    break 2
13706
  fi
13707
done
13708
done
13709
 
13710
  ;;
13711
esac
13712
fi
13713
ECJ=$ac_cv_path_ECJ
13714
 
13715
if test -n "$ECJ"; then
13716
  echo "$as_me:$LINENO: result: $ECJ" >&5
13717
echo "${ECHO_T}$ECJ" >&6
13718
else
13719
  echo "$as_me:$LINENO: result: no" >&5
13720
echo "${ECHO_T}no" >&6
13721
fi
13722
 
13723
  fi
13724
 
13725
      fi
13726
    fi
13727
    user_specified_javac=ecj
13728
 
13729
else
13730
 
13731
 
13732
  if test "x" != x; then
13733
    if test -f ""; then
13734
      ECJ=""
13735
    else
13736
      # Extract the first word of """", so it can be a program name with args.
13737
set dummy ""; ac_word=$2
13738
echo "$as_me:$LINENO: checking for $ac_word" >&5
13739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13740
if test "${ac_cv_path_ECJ+set}" = set; then
13741
  echo $ECHO_N "(cached) $ECHO_C" >&6
13742
else
13743
  case $ECJ in
13744
  [\\/]* | ?:[\\/]*)
13745
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13746
  ;;
13747
  *)
13748
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749
for as_dir in $PATH
13750
do
13751
  IFS=$as_save_IFS
13752
  test -z "$as_dir" && as_dir=.
13753
  for ac_exec_ext in '' $ac_executable_extensions; do
13754
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13756
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13757
    break 2
13758
  fi
13759
done
13760
done
13761
 
13762
  ;;
13763
esac
13764
fi
13765
ECJ=$ac_cv_path_ECJ
13766
 
13767
if test -n "$ECJ"; then
13768
  echo "$as_me:$LINENO: result: $ECJ" >&5
13769
echo "${ECHO_T}$ECJ" >&6
13770
else
13771
  echo "$as_me:$LINENO: result: no" >&5
13772
echo "${ECHO_T}no" >&6
13773
fi
13774
 
13775
    fi
13776
  else
13777
    # Extract the first word of ""ecj"", so it can be a program name with args.
13778
set dummy "ecj"; ac_word=$2
13779
echo "$as_me:$LINENO: checking for $ac_word" >&5
13780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13781
if test "${ac_cv_path_ECJ+set}" = set; then
13782
  echo $ECHO_N "(cached) $ECHO_C" >&6
13783
else
13784
  case $ECJ in
13785
  [\\/]* | ?:[\\/]*)
13786
  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13787
  ;;
13788
  *)
13789
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790
for as_dir in $PATH
13791
do
13792
  IFS=$as_save_IFS
13793
  test -z "$as_dir" && as_dir=.
13794
  for ac_exec_ext in '' $ac_executable_extensions; do
13795
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796
    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13797
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13798
    break 2
13799
  fi
13800
done
13801
done
13802
 
13803
  ;;
13804
esac
13805
fi
13806
ECJ=$ac_cv_path_ECJ
13807
 
13808
if test -n "$ECJ"; then
13809
  echo "$as_me:$LINENO: result: $ECJ" >&5
13810
echo "${ECHO_T}$ECJ" >&6
13811
else
13812
  echo "$as_me:$LINENO: result: no" >&5
13813
echo "${ECHO_T}no" >&6
13814
fi
13815
 
13816
  fi
13817
 
13818
 
13819
fi;
13820
 
13821
 
13822
 
13823
  if test "x${user_specified_javac}" = x; then
13824
 
13825
 
13826
if test "x${GCJ}" != x; then
13827
  FOUND_GCJ_TRUE=
13828
  FOUND_GCJ_FALSE='#'
13829
else
13830
  FOUND_GCJ_TRUE='#'
13831
  FOUND_GCJ_FALSE=
13832
fi
13833
 
13834
 
13835
 
13836
if test "x${JIKES}" != x; then
13837
  FOUND_JIKES_TRUE=
13838
  FOUND_JIKES_FALSE='#'
13839
else
13840
  FOUND_JIKES_TRUE='#'
13841
  FOUND_JIKES_FALSE=
13842
fi
13843
 
13844
 
13845
 
13846
if test "x${ECJ}" != x; then
13847
  FOUND_ECJ_TRUE=
13848
  FOUND_ECJ_FALSE='#'
13849
else
13850
  FOUND_ECJ_TRUE='#'
13851
  FOUND_ECJ_FALSE=
13852
fi
13853
 
13854
  else
13855
 
13856
 
13857
if test "x${user_specified_javac}" = xgcj; then
13858
  FOUND_GCJ_TRUE=
13859
  FOUND_GCJ_FALSE='#'
13860
else
13861
  FOUND_GCJ_TRUE='#'
13862
  FOUND_GCJ_FALSE=
13863
fi
13864
 
13865
 
13866
 
13867
if test "x${user_specified_javac}" = xjikes; then
13868
  FOUND_JIKES_TRUE=
13869
  FOUND_JIKES_FALSE='#'
13870
else
13871
  FOUND_JIKES_TRUE='#'
13872
  FOUND_JIKES_FALSE=
13873
fi
13874
 
13875
 
13876
 
13877
if test "x${user_specified_javac}" = xecj; then
13878
  FOUND_ECJ_TRUE=
13879
  FOUND_ECJ_FALSE='#'
13880
else
13881
  FOUND_ECJ_TRUE='#'
13882
  FOUND_ECJ_FALSE=
13883
fi
13884
 
13885
  fi
13886
 
13887
 
13888
if test "x${user_specified_javac}" = xkjc; then
13889
  FOUND_KJC_TRUE=
13890
  FOUND_KJC_FALSE='#'
13891
else
13892
  FOUND_KJC_TRUE='#'
13893
  FOUND_KJC_FALSE=
13894
fi
13895
 
13896
 
13897
 
13898
if test "x${user_specified_javac}" = xgcjx; then
13899
  FOUND_GCJX_TRUE=
13900
  FOUND_GCJX_FALSE='#'
13901
else
13902
  FOUND_GCJX_TRUE='#'
13903
  FOUND_GCJX_FALSE=
13904
fi
13905
 
13906
 
13907
  if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx; then
13908
      # FIXME: use autoconf error function
13909
      echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or --with-gcjx" 1>&2
13910
      exit 1
13911
  fi
13912
 
13913
 
13914
 
13915
 
13916
# Check whether --with-classpath or --without-classpath was given.
13917
if test "${with_classpath+set}" = set; then
13918
  withval="$with_classpath"
13919
 
13920
    if test "x${withval}" = xyes; then
13921
      # set user classpath to CLASSPATH from env
13922
      echo "$as_me:$LINENO: checking for classlib" >&5
13923
echo $ECHO_N "checking for classlib... $ECHO_C" >&6
13924
      USER_CLASSLIB=${CLASSPATH}
13925
 
13926
      echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
13927
echo "${ECHO_T}${USER_CLASSLIB}" >&6
13928
      conditional_with_classlib=true
13929
    elif test "x${withval}" != x && test "x${withval}" != xno; then
13930
      # set user classpath to specified value
13931
      echo "$as_me:$LINENO: checking for classlib" >&5
13932
echo $ECHO_N "checking for classlib... $ECHO_C" >&6
13933
      USER_CLASSLIB=${withval}
13934
 
13935
      echo "$as_me:$LINENO: result: ${withval}" >&5
13936
echo "${ECHO_T}${withval}" >&6
13937
      conditional_with_classlib=true
13938
    fi
13939
 
13940
else
13941
   conditional_with_classlib=false
13942
fi;
13943
 
13944
 
13945
if test "x${conditional_with_classlib}" = xtrue; then
13946
  USER_SPECIFIED_CLASSLIB_TRUE=
13947
  USER_SPECIFIED_CLASSLIB_FALSE='#'
13948
else
13949
  USER_SPECIFIED_CLASSLIB_TRUE='#'
13950
  USER_SPECIFIED_CLASSLIB_FALSE=
13951
fi
13952
 
13953
 
13954
 
13955
# Check whether --with-vm-classes or --without-vm-classes was given.
13956
if test "${with_vm_classes+set}" = set; then
13957
  withval="$with_vm_classes"
13958
  vm_classes="$with_vm_classes"
13959
else
13960
  vm_classes='${top_srcdir}/vm/reference'
13961
fi;
13962
 
13963
 
13964
 
13965
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13966
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13967
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13968
if test "${enable_maintainer_mode+set}" = set; then
13969
  enableval="$enable_maintainer_mode"
13970
  USE_MAINTAINER_MODE=$enableval
13971
else
13972
  USE_MAINTAINER_MODE=no
13973
fi;
13974
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13975
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13976
 
13977
 
13978
if test $USE_MAINTAINER_MODE = yes; then
13979
  MAINTAINER_MODE_TRUE=
13980
  MAINTAINER_MODE_FALSE='#'
13981
else
13982
  MAINTAINER_MODE_TRUE='#'
13983
  MAINTAINER_MODE_FALSE=
13984
fi
13985
 
13986
  MAINT=$MAINTAINER_MODE_TRUE
13987
 
13988
 
13989
 
13990
# Check whether --enable-debug or --disable-debug was given.
13991
if test "${enable_debug+set}" = set; then
13992
  enableval="$enable_debug"
13993
  case "${enableval}" in
13994
                yes)
13995
                LIBDEBUG="true"
13996
 
13997
cat >>confdefs.h <<\_ACEOF
13998
#define DEBUG 1
13999
_ACEOF
14000
 
14001
                ;;
14002
                no)   LIBDEBUG="false" ;;
14003
                *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14004
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14005
   { (exit 1); exit 1; }; } ;;
14006
              esac
14007
else
14008
  LIBDEBUG="false"
14009
fi;
14010
 
14011
 
14012
# Check whether --enable-load-library or --disable-load-library was given.
14013
if test "${enable_load_library+set}" = set; then
14014
  enableval="$enable_load_library"
14015
  case "${enableval}" in
14016
                yes) INIT_LOAD_LIBRARY="true" ;;
14017
                no) INIT_LOAD_LIBRARY="false" ;;
14018
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
14019
echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
14020
   { (exit 1); exit 1; }; } ;;
14021
              esac
14022
else
14023
  INIT_LOAD_LIBRARY="true"
14024
fi;
14025
 
14026
 
14027
 
14028
# Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
14029
if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
14030
  enableval="$enable_java_lang_system_explicit_initialization"
14031
  case "${enableval}" in
14032
                yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
14033
                no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
14034
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
14035
echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
14036
   { (exit 1); exit 1; }; } ;;
14037
              esac
14038
else
14039
  JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
14040
fi;
14041
 
14042
 
14043
 
14044
REMOVE=""
14045
 
14046
 
14047
# Extract the first word of "mkdir", so it can be a program name with args.
14048
set dummy mkdir; ac_word=$2
14049
echo "$as_me:$LINENO: checking for $ac_word" >&5
14050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14051
if test "${ac_cv_path_MKDIR+set}" = set; then
14052
  echo $ECHO_N "(cached) $ECHO_C" >&6
14053
else
14054
  case $MKDIR in
14055
  [\\/]* | ?:[\\/]*)
14056
  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
14057
  ;;
14058
  *)
14059
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060
for as_dir in $PATH
14061
do
14062
  IFS=$as_save_IFS
14063
  test -z "$as_dir" && as_dir=.
14064
  for ac_exec_ext in '' $ac_executable_extensions; do
14065
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14066
    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
14067
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14068
    break 2
14069
  fi
14070
done
14071
done
14072
 
14073
  ;;
14074
esac
14075
fi
14076
MKDIR=$ac_cv_path_MKDIR
14077
 
14078
if test -n "$MKDIR"; then
14079
  echo "$as_me:$LINENO: result: $MKDIR" >&5
14080
echo "${ECHO_T}$MKDIR" >&6
14081
else
14082
  echo "$as_me:$LINENO: result: no" >&5
14083
echo "${ECHO_T}no" >&6
14084
fi
14085
 
14086
# Extract the first word of "cp", so it can be a program name with args.
14087
set dummy cp; ac_word=$2
14088
echo "$as_me:$LINENO: checking for $ac_word" >&5
14089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14090
if test "${ac_cv_path_CP+set}" = set; then
14091
  echo $ECHO_N "(cached) $ECHO_C" >&6
14092
else
14093
  case $CP in
14094
  [\\/]* | ?:[\\/]*)
14095
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
14096
  ;;
14097
  *)
14098
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099
for as_dir in $PATH
14100
do
14101
  IFS=$as_save_IFS
14102
  test -z "$as_dir" && as_dir=.
14103
  for ac_exec_ext in '' $ac_executable_extensions; do
14104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105
    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14106
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14107
    break 2
14108
  fi
14109
done
14110
done
14111
 
14112
  ;;
14113
esac
14114
fi
14115
CP=$ac_cv_path_CP
14116
 
14117
if test -n "$CP"; then
14118
  echo "$as_me:$LINENO: result: $CP" >&5
14119
echo "${ECHO_T}$CP" >&6
14120
else
14121
  echo "$as_me:$LINENO: result: no" >&5
14122
echo "${ECHO_T}no" >&6
14123
fi
14124
 
14125
# Extract the first word of "date", so it can be a program name with args.
14126
set dummy date; ac_word=$2
14127
echo "$as_me:$LINENO: checking for $ac_word" >&5
14128
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14129
if test "${ac_cv_path_DATE+set}" = set; then
14130
  echo $ECHO_N "(cached) $ECHO_C" >&6
14131
else
14132
  case $DATE in
14133
  [\\/]* | ?:[\\/]*)
14134
  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
14135
  ;;
14136
  *)
14137
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138
for as_dir in $PATH
14139
do
14140
  IFS=$as_save_IFS
14141
  test -z "$as_dir" && as_dir=.
14142
  for ac_exec_ext in '' $ac_executable_extensions; do
14143
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144
    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
14145
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146
    break 2
14147
  fi
14148
done
14149
done
14150
 
14151
  ;;
14152
esac
14153
fi
14154
DATE=$ac_cv_path_DATE
14155
 
14156
if test -n "$DATE"; then
14157
  echo "$as_me:$LINENO: result: $DATE" >&5
14158
echo "${ECHO_T}$DATE" >&6
14159
else
14160
  echo "$as_me:$LINENO: result: no" >&5
14161
echo "${ECHO_T}no" >&6
14162
fi
14163
 
14164
 
14165
# Extract the first word of "find", so it can be a program name with args.
14166
set dummy find; ac_word=$2
14167
echo "$as_me:$LINENO: checking for $ac_word" >&5
14168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14169
if test "${ac_cv_path_FIND+set}" = set; then
14170
  echo $ECHO_N "(cached) $ECHO_C" >&6
14171
else
14172
  case $FIND in
14173
  [\\/]* | ?:[\\/]*)
14174
  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
14175
  ;;
14176
  *)
14177
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178
for as_dir in $PATH
14179
do
14180
  IFS=$as_save_IFS
14181
  test -z "$as_dir" && as_dir=.
14182
  for ac_exec_ext in '' $ac_executable_extensions; do
14183
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184
    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
14185
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186
    break 2
14187
  fi
14188
done
14189
done
14190
 
14191
  ;;
14192
esac
14193
fi
14194
FIND=$ac_cv_path_FIND
14195
 
14196
if test -n "$FIND"; then
14197
  echo "$as_me:$LINENO: result: $FIND" >&5
14198
echo "${ECHO_T}$FIND" >&6
14199
else
14200
  echo "$as_me:$LINENO: result: no" >&5
14201
echo "${ECHO_T}no" >&6
14202
fi
14203
 
14204
 
14205
 
14206
  # Extract the first word of "zip", so it can be a program name with args.
14207
set dummy zip; ac_word=$2
14208
echo "$as_me:$LINENO: checking for $ac_word" >&5
14209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14210
if test "${ac_cv_path_ZIP+set}" = set; then
14211
  echo $ECHO_N "(cached) $ECHO_C" >&6
14212
else
14213
  case $ZIP in
14214
  [\\/]* | ?:[\\/]*)
14215
  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
14216
  ;;
14217
  *)
14218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219
for as_dir in $PATH
14220
do
14221
  IFS=$as_save_IFS
14222
  test -z "$as_dir" && as_dir=.
14223
  for ac_exec_ext in '' $ac_executable_extensions; do
14224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14225
    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
14226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227
    break 2
14228
  fi
14229
done
14230
done
14231
 
14232
  ;;
14233
esac
14234
fi
14235
ZIP=$ac_cv_path_ZIP
14236
 
14237
if test -n "$ZIP"; then
14238
  echo "$as_me:$LINENO: result: $ZIP" >&5
14239
echo "${ECHO_T}$ZIP" >&6
14240
else
14241
  echo "$as_me:$LINENO: result: no" >&5
14242
echo "${ECHO_T}no" >&6
14243
fi
14244
 
14245
 
14246
# Check whether --with-glibj or --without-glibj was given.
14247
if test "${with_glibj+set}" = set; then
14248
  withval="$with_glibj"
14249
 
14250
                if test "x${withval}" = xyes || test "x${withval}" = xzip; then
14251
                  install_class_files=no
14252
                  build_class_files=yes
14253
                  use_zip=yes
14254
                elif test "x${withval}" = xboth; then
14255
                  install_class_files=yes
14256
                  build_class_files=yes
14257
                  use_zip=yes
14258
                elif test "x${withval}" = xflat; then
14259
                  install_class_files=yes
14260
                  build_class_files=yes
14261
                  use_zip=no
14262
                elif test "x${withval}" = xno || test "x${withval}" = xnone; then
14263
                  install_class_files=no
14264
                  build_class_files=no
14265
                  use_zip=no
14266
                elif test "x${withval}" = xbuild; then
14267
                  install_class_files=no
14268
                  build_class_files=yes
14269
                  use_zip=no
14270
                else
14271
                  { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
14272
echo "$as_me: error: unknown value given to --with-glibj" >&2;}
14273
   { (exit 1); exit 1; }; }
14274
                fi
14275
 
14276
else
14277
 
14278
                install_class_files=no
14279
                use_zip=yes
14280
 
14281
fi;
14282
 
14283
 
14284
if test "x${use_zip}" = xyes; then
14285
  INSTALL_GLIBJ_ZIP_TRUE=
14286
  INSTALL_GLIBJ_ZIP_FALSE='#'
14287
else
14288
  INSTALL_GLIBJ_ZIP_TRUE='#'
14289
  INSTALL_GLIBJ_ZIP_FALSE=
14290
fi
14291
 
14292
 
14293
 
14294
if test "x${install_class_files}" = xyes; then
14295
  INSTALL_CLASS_FILES_TRUE=
14296
  INSTALL_CLASS_FILES_FALSE='#'
14297
else
14298
  INSTALL_CLASS_FILES_TRUE='#'
14299
  INSTALL_CLASS_FILES_FALSE=
14300
fi
14301
 
14302
 
14303
 
14304
if test "x${build_class_files}" = xyes; then
14305
  BUILD_CLASS_FILES_TRUE=
14306
  BUILD_CLASS_FILES_FALSE='#'
14307
else
14308
  BUILD_CLASS_FILES_TRUE='#'
14309
  BUILD_CLASS_FILES_FALSE=
14310
fi
14311
 
14312
 
14313
  # Check whether --enable-examples or --disable-examples was given.
14314
if test "${enable_examples+set}" = set; then
14315
  enableval="$enable_examples"
14316
  case "${enableval}" in
14317
                  yes) EXAMPLESDIR="examples" ;;
14318
                  no) EXAMPLESDIR="" ;;
14319
                  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
14320
echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
14321
   { (exit 1); exit 1; }; } ;;
14322
                esac
14323
else
14324
  EXAMPLESDIR="examples"
14325
fi;
14326
  if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
14327
    EXAMPLESDIR=""
14328
  fi
14329
 
14330
 
14331
 
14332
 
14333
 
14334
# Check whether --with-gjdoc or --without-gjdoc was given.
14335
if test "${with_gjdoc+set}" = set; then
14336
  withval="$with_gjdoc"
14337
  if test "x${withval}" = xno; then
14338
                 WITH_GJDOC=no;
14339
               elif test "x${withval}" = xyes -o "x{withval}" = x; then
14340
                 WITH_GJDOC=yes;
14341
                 # Extract the first word of "gjdoc", so it can be a program name with args.
14342
set dummy gjdoc; ac_word=$2
14343
echo "$as_me:$LINENO: checking for $ac_word" >&5
14344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14345
if test "${ac_cv_path_GJDOC+set}" = set; then
14346
  echo $ECHO_N "(cached) $ECHO_C" >&6
14347
else
14348
  case $GJDOC in
14349
  [\\/]* | ?:[\\/]*)
14350
  ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
14351
  ;;
14352
  *)
14353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354
for as_dir in $PATH
14355
do
14356
  IFS=$as_save_IFS
14357
  test -z "$as_dir" && as_dir=.
14358
  for ac_exec_ext in '' $ac_executable_extensions; do
14359
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14360
    ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
14361
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362
    break 2
14363
  fi
14364
done
14365
done
14366
 
14367
  test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
14368
  ;;
14369
esac
14370
fi
14371
GJDOC=$ac_cv_path_GJDOC
14372
 
14373
if test -n "$GJDOC"; then
14374
  echo "$as_me:$LINENO: result: $GJDOC" >&5
14375
echo "${ECHO_T}$GJDOC" >&6
14376
else
14377
  echo "$as_me:$LINENO: result: no" >&5
14378
echo "${ECHO_T}no" >&6
14379
fi
14380
 
14381
                 if test "x${GJDOC}" = xno; then
14382
                   { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
14383
echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
14384
   { (exit 1); exit 1; }; };
14385
                 fi
14386
               else
14387
                 WITH_GJDOC=yes
14388
                 GJDOC="${withval}"
14389
                 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
14390
echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
14391
echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
14392
if eval "test \"\${$as_ac_File+set}\" = set"; then
14393
  echo $ECHO_N "(cached) $ECHO_C" >&6
14394
else
14395
  test "$cross_compiling" = yes &&
14396
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14397
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14398
   { (exit 1); exit 1; }; }
14399
if test -r "${GJDOC}"; then
14400
  eval "$as_ac_File=yes"
14401
else
14402
  eval "$as_ac_File=no"
14403
fi
14404
fi
14405
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14406
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14407
if test `eval echo '${'$as_ac_File'}'` = yes; then
14408
  :
14409
else
14410
  { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
14411
echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
14412
   { (exit 1); exit 1; }; }
14413
fi
14414
 
14415
               fi
14416
else
14417
  WITH_GJDOC=no
14418
fi;
14419
 
14420
 
14421
 
14422
if test "x${WITH_GJDOC}" = xyes; then
14423
  CREATE_API_DOCS_TRUE=
14424
  CREATE_API_DOCS_FALSE='#'
14425
else
14426
  CREATE_API_DOCS_TRUE='#'
14427
  CREATE_API_DOCS_FALSE=
14428
fi
14429
 
14430
 
14431
 
14432
 
14433
 
14434
# Check whether --with-jay or --without-jay was given.
14435
if test "${with_jay+set}" = set; then
14436
  withval="$with_jay"
14437
 
14438
    if test -d "${withval}"; then
14439
      JAY_DIR_PATH="${withval}"
14440
      # Extract the first word of "jay", so it can be a program name with args.
14441
set dummy jay; ac_word=$2
14442
echo "$as_me:$LINENO: checking for $ac_word" >&5
14443
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14444
if test "${ac_cv_path_JAY+set}" = set; then
14445
  echo $ECHO_N "(cached) $ECHO_C" >&6
14446
else
14447
  case $JAY in
14448
  [\\/]* | ?:[\\/]*)
14449
  ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
14450
  ;;
14451
  *)
14452
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453
for as_dir in ${JAY_DIR_PATH}
14454
do
14455
  IFS=$as_save_IFS
14456
  test -z "$as_dir" && as_dir=.
14457
  for ac_exec_ext in '' $ac_executable_extensions; do
14458
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14459
    ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
14460
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14461
    break 2
14462
  fi
14463
done
14464
done
14465
 
14466
  test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
14467
  ;;
14468
esac
14469
fi
14470
JAY=$ac_cv_path_JAY
14471
 
14472
if test -n "$JAY"; then
14473
  echo "$as_me:$LINENO: result: $JAY" >&5
14474
echo "${ECHO_T}$JAY" >&6
14475
else
14476
  echo "$as_me:$LINENO: result: no" >&5
14477
echo "${ECHO_T}no" >&6
14478
fi
14479
 
14480
      if test "x${JAY}" = xno; then
14481
        { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
14482
echo "$as_me: error: \"jay executable not found\"" >&2;}
14483
   { (exit 1); exit 1; }; };
14484
      fi
14485
    else
14486
      JAY_DIR_PATH=$(dirname "${withval}")
14487
      JAY="${withval}"
14488
 
14489
    fi
14490
    JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
14491
    as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
14492
echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
14493
echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
14494
if eval "test \"\${$as_ac_File+set}\" = set"; then
14495
  echo $ECHO_N "(cached) $ECHO_C" >&6
14496
else
14497
  test "$cross_compiling" = yes &&
14498
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14499
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14500
   { (exit 1); exit 1; }; }
14501
if test -r "${JAY_SKELETON}"; then
14502
  eval "$as_ac_File=yes"
14503
else
14504
  eval "$as_ac_File=no"
14505
fi
14506
fi
14507
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14508
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14509
if test `eval echo '${'$as_ac_File'}'` = yes; then
14510
  :
14511
else
14512
  { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
14513
echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
14514
   { (exit 1); exit 1; }; }
14515
fi
14516
 
14517
    JAY_FOUND=yes
14518
 
14519
else
14520
 
14521
    JAY_FOUND=no
14522
 
14523
fi;
14524
 
14525
 
14526
if test "x${JAY_FOUND}" = xyes; then
14527
  REGEN_PARSERS_TRUE=
14528
  REGEN_PARSERS_FALSE='#'
14529
else
14530
  REGEN_PARSERS_TRUE='#'
14531
  REGEN_PARSERS_FALSE=
14532
fi
14533
 
14534
 
14535
 
14536
# Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
14537
if test "${enable_portable_native_sync+set}" = set; then
14538
  enableval="$enable_portable_native_sync"
14539
  case "${enableval}" in
14540
                yes)
14541
 
14542
cat >>confdefs.h <<\_ACEOF
14543
#define PORTABLE_NATIVE_SYNC 1
14544
_ACEOF
14545
 
14546
                     ;;
14547
                no)  ;;
14548
                *)
14549
                     { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
14550
echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
14551
   { (exit 1); exit 1; }; }
14552
                     ;;
14553
              esac
14554
fi;
14555
 
14556
                                                                                                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile gnu/classpath/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh examples/Makefile examples/Makefile.jawt"
14557
 
14558
          ac_config_commands="$ac_config_commands gen-classlist"
14559
 
14560
          ac_config_commands="$ac_config_commands copy-vmresources"
14561
 
14562
cat >confcache <<\_ACEOF
14563
# This file is a shell script that caches the results of configure
14564
# tests run on this system so they can be shared between configure
14565
# scripts and configure runs, see configure's option --config-cache.
14566
# It is not useful on other systems.  If it contains results you don't
14567
# want to keep, you may remove or edit it.
14568
#
14569
# config.status only pays attention to the cache file if you give it
14570
# the --recheck option to rerun configure.
14571
#
14572
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14573
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14574
# following values.
14575
 
14576
_ACEOF
14577
 
14578
# The following way of writing the cache mishandles newlines in values,
14579
# but we know of no workaround that is simple, portable, and efficient.
14580
# So, don't put newlines in cache variables' values.
14581
# Ultrix sh set writes to stderr and can't be redirected directly,
14582
# and sets the high bit in the cache file unless we assign to the vars.
14583
{
14584
  (set) 2>&1 |
14585
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14586
    *ac_space=\ *)
14587
      # `set' does not quote correctly, so add quotes (double-quote
14588
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14589
      sed -n \
14590
        "s/'/'\\\\''/g;
14591
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14592
      ;;
14593
    *)
14594
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14595
      sed -n \
14596
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14597
      ;;
14598
    esac;
14599
} |
14600
  sed '
14601
     t clear
14602
     : clear
14603
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14604
     t end
14605
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14606
     : end' >>confcache
14607
if diff $cache_file confcache >/dev/null 2>&1; then :; else
14608
  if test -w $cache_file; then
14609
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14610
    cat confcache >$cache_file
14611
  else
14612
    echo "not updating unwritable cache $cache_file"
14613
  fi
14614
fi
14615
rm -f confcache
14616
 
14617
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14618
# Let make expand exec_prefix.
14619
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14620
 
14621
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14622
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14623
# trailing colons and then remove the whole line if VPATH becomes empty
14624
# (actually we leave an empty line to preserve line numbers).
14625
if test "x$srcdir" = x.; then
14626
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14627
s/:*\$(srcdir):*/:/;
14628
s/:*\${srcdir}:*/:/;
14629
s/:*@srcdir@:*/:/;
14630
s/^\([^=]*=[     ]*\):*/\1/;
14631
s/:*$//;
14632
s/^[^=]*=[       ]*$//;
14633
}'
14634
fi
14635
 
14636
DEFS=-DHAVE_CONFIG_H
14637
 
14638
ac_libobjs=
14639
ac_ltlibobjs=
14640
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14641
  # 1. Remove the extension, and $U if already installed.
14642
  ac_i=`echo "$ac_i" |
14643
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14644
  # 2. Add them.
14645
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14646
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14647
done
14648
LIBOBJS=$ac_libobjs
14649
 
14650
LTLIBOBJS=$ac_ltlibobjs
14651
 
14652
 
14653
if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
14654
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
14655
Usually this means the macro was only invoked conditionally." >&5
14656
echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
14657
Usually this means the macro was only invoked conditionally." >&2;}
14658
   { (exit 1); exit 1; }; }
14659
fi
14660
if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
14661
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
14662
Usually this means the macro was only invoked conditionally." >&5
14663
echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
14664
Usually this means the macro was only invoked conditionally." >&2;}
14665
   { (exit 1); exit 1; }; }
14666
fi
14667
if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
14668
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
14669
Usually this means the macro was only invoked conditionally." >&5
14670
echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
14671
Usually this means the macro was only invoked conditionally." >&2;}
14672
   { (exit 1); exit 1; }; }
14673
fi
14674
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14675
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14676
Usually this means the macro was only invoked conditionally." >&5
14677
echo "$as_me: error: conditional \"AMDEP\" was never defined.
14678
Usually this means the macro was only invoked conditionally." >&2;}
14679
   { (exit 1); exit 1; }; }
14680
fi
14681
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14682
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14683
Usually this means the macro was only invoked conditionally." >&5
14684
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14685
Usually this means the macro was only invoked conditionally." >&2;}
14686
   { (exit 1); exit 1; }; }
14687
fi
14688
if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
14689
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
14690
Usually this means the macro was only invoked conditionally." >&5
14691
echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
14692
Usually this means the macro was only invoked conditionally." >&2;}
14693
   { (exit 1); exit 1; }; }
14694
fi
14695
if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
14696
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
14697
Usually this means the macro was only invoked conditionally." >&5
14698
echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
14699
Usually this means the macro was only invoked conditionally." >&2;}
14700
   { (exit 1); exit 1; }; }
14701
fi
14702
if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
14703
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
14704
Usually this means the macro was only invoked conditionally." >&5
14705
echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
14706
Usually this means the macro was only invoked conditionally." >&2;}
14707
   { (exit 1); exit 1; }; }
14708
fi
14709
if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
14710
  { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
14711
Usually this means the macro was only invoked conditionally." >&5
14712
echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
14713
Usually this means the macro was only invoked conditionally." >&2;}
14714
   { (exit 1); exit 1; }; }
14715
fi
14716
if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
14717
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
14718
Usually this means the macro was only invoked conditionally." >&5
14719
echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
14720
Usually this means the macro was only invoked conditionally." >&2;}
14721
   { (exit 1); exit 1; }; }
14722
fi
14723
if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
14724
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
14725
Usually this means the macro was only invoked conditionally." >&5
14726
echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
14727
Usually this means the macro was only invoked conditionally." >&2;}
14728
   { (exit 1); exit 1; }; }
14729
fi
14730
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14731
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14732
Usually this means the macro was only invoked conditionally." >&5
14733
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14734
Usually this means the macro was only invoked conditionally." >&2;}
14735
   { (exit 1); exit 1; }; }
14736
fi
14737
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14738
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
14739
Usually this means the macro was only invoked conditionally." >&5
14740
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
14741
Usually this means the macro was only invoked conditionally." >&2;}
14742
   { (exit 1); exit 1; }; }
14743
fi
14744
if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
14745
  { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
14746
Usually this means the macro was only invoked conditionally." >&5
14747
echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
14748
Usually this means the macro was only invoked conditionally." >&2;}
14749
   { (exit 1); exit 1; }; }
14750
fi
14751
if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
14752
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
14753
Usually this means the macro was only invoked conditionally." >&5
14754
echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
14755
Usually this means the macro was only invoked conditionally." >&2;}
14756
   { (exit 1); exit 1; }; }
14757
fi
14758
if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
14759
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
14760
Usually this means the macro was only invoked conditionally." >&5
14761
echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
14762
Usually this means the macro was only invoked conditionally." >&2;}
14763
   { (exit 1); exit 1; }; }
14764
fi
14765
if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
14766
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
14767
Usually this means the macro was only invoked conditionally." >&5
14768
echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
14769
Usually this means the macro was only invoked conditionally." >&2;}
14770
   { (exit 1); exit 1; }; }
14771
fi
14772
if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
14773
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
14774
Usually this means the macro was only invoked conditionally." >&5
14775
echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
14776
Usually this means the macro was only invoked conditionally." >&2;}
14777
   { (exit 1); exit 1; }; }
14778
fi
14779
if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
14780
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
14781
Usually this means the macro was only invoked conditionally." >&5
14782
echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
14783
Usually this means the macro was only invoked conditionally." >&2;}
14784
   { (exit 1); exit 1; }; }
14785
fi
14786
if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
14787
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
14788
Usually this means the macro was only invoked conditionally." >&5
14789
echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
14790
Usually this means the macro was only invoked conditionally." >&2;}
14791
   { (exit 1); exit 1; }; }
14792
fi
14793
if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
14794
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
14795
Usually this means the macro was only invoked conditionally." >&5
14796
echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
14797
Usually this means the macro was only invoked conditionally." >&2;}
14798
   { (exit 1); exit 1; }; }
14799
fi
14800
if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
14801
  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
14802
Usually this means the macro was only invoked conditionally." >&5
14803
echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
14804
Usually this means the macro was only invoked conditionally." >&2;}
14805
   { (exit 1); exit 1; }; }
14806
fi
14807
if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
14808
  { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
14809
Usually this means the macro was only invoked conditionally." >&5
14810
echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
14811
Usually this means the macro was only invoked conditionally." >&2;}
14812
   { (exit 1); exit 1; }; }
14813
fi
14814
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14815
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14816
Usually this means the macro was only invoked conditionally." >&5
14817
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14818
Usually this means the macro was only invoked conditionally." >&2;}
14819
   { (exit 1); exit 1; }; }
14820
fi
14821
if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
14822
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
14823
Usually this means the macro was only invoked conditionally." >&5
14824
echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
14825
Usually this means the macro was only invoked conditionally." >&2;}
14826
   { (exit 1); exit 1; }; }
14827
fi
14828
if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
14829
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
14830
Usually this means the macro was only invoked conditionally." >&5
14831
echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
14832
Usually this means the macro was only invoked conditionally." >&2;}
14833
   { (exit 1); exit 1; }; }
14834
fi
14835
if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
14836
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
14837
Usually this means the macro was only invoked conditionally." >&5
14838
echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
14839
Usually this means the macro was only invoked conditionally." >&2;}
14840
   { (exit 1); exit 1; }; }
14841
fi
14842
if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
14843
  { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
14844
Usually this means the macro was only invoked conditionally." >&5
14845
echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
14846
Usually this means the macro was only invoked conditionally." >&2;}
14847
   { (exit 1); exit 1; }; }
14848
fi
14849
if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
14850
  { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
14851
Usually this means the macro was only invoked conditionally." >&5
14852
echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
14853
Usually this means the macro was only invoked conditionally." >&2;}
14854
   { (exit 1); exit 1; }; }
14855
fi
14856
 
14857
: ${CONFIG_STATUS=./config.status}
14858
ac_clean_files_save=$ac_clean_files
14859
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14860
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14861
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14862
cat >$CONFIG_STATUS <<_ACEOF
14863
#! $SHELL
14864
# Generated by $as_me.
14865
# Run this file to recreate the current configuration.
14866
# Compiler output produced by configure, useful for debugging
14867
# configure, is in config.log if it exists.
14868
 
14869
debug=false
14870
ac_cs_recheck=false
14871
ac_cs_silent=false
14872
SHELL=\${CONFIG_SHELL-$SHELL}
14873
_ACEOF
14874
 
14875
cat >>$CONFIG_STATUS <<\_ACEOF
14876
## --------------------- ##
14877
## M4sh Initialization.  ##
14878
## --------------------- ##
14879
 
14880
# Be Bourne compatible
14881
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14882
  emulate sh
14883
  NULLCMD=:
14884
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14885
  # is contrary to our usage.  Disable this feature.
14886
  alias -g '${1+"$@"}'='"$@"'
14887
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14888
  set -o posix
14889
fi
14890
DUALCASE=1; export DUALCASE # for MKS sh
14891
 
14892
# Support unset when possible.
14893
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14894
  as_unset=unset
14895
else
14896
  as_unset=false
14897
fi
14898
 
14899
 
14900
# Work around bugs in pre-3.0 UWIN ksh.
14901
$as_unset ENV MAIL MAILPATH
14902
PS1='$ '
14903
PS2='> '
14904
PS4='+ '
14905
 
14906
# NLS nuisances.
14907
for as_var in \
14908
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14909
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14910
  LC_TELEPHONE LC_TIME
14911
do
14912
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14913
    eval $as_var=C; export $as_var
14914
  else
14915
    $as_unset $as_var
14916
  fi
14917
done
14918
 
14919
# Required to use basename.
14920
if expr a : '\(a\)' >/dev/null 2>&1; then
14921
  as_expr=expr
14922
else
14923
  as_expr=false
14924
fi
14925
 
14926
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14927
  as_basename=basename
14928
else
14929
  as_basename=false
14930
fi
14931
 
14932
 
14933
# Name of the executable.
14934
as_me=`$as_basename "$0" ||
14935
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14936
         X"$0" : 'X\(//\)$' \| \
14937
         X"$0" : 'X\(/\)$' \| \
14938
         .     : '\(.\)' 2>/dev/null ||
14939
echo X/"$0" |
14940
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14941
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14942
          /^X\/\(\/\).*/{ s//\1/; q; }
14943
          s/.*/./; q'`
14944
 
14945
 
14946
# PATH needs CR, and LINENO needs CR and PATH.
14947
# Avoid depending upon Character Ranges.
14948
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14949
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14950
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14951
as_cr_digits='0123456789'
14952
as_cr_alnum=$as_cr_Letters$as_cr_digits
14953
 
14954
# The user is always right.
14955
if test "${PATH_SEPARATOR+set}" != set; then
14956
  echo "#! /bin/sh" >conf$$.sh
14957
  echo  "exit 0"   >>conf$$.sh
14958
  chmod +x conf$$.sh
14959
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14960
    PATH_SEPARATOR=';'
14961
  else
14962
    PATH_SEPARATOR=:
14963
  fi
14964
  rm -f conf$$.sh
14965
fi
14966
 
14967
 
14968
  as_lineno_1=$LINENO
14969
  as_lineno_2=$LINENO
14970
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14971
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14972
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14973
  # Find who we are.  Look in the path if we contain no path at all
14974
  # relative or not.
14975
  case $0 in
14976
    *[\\/]* ) as_myself=$0 ;;
14977
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978
for as_dir in $PATH
14979
do
14980
  IFS=$as_save_IFS
14981
  test -z "$as_dir" && as_dir=.
14982
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14983
done
14984
 
14985
       ;;
14986
  esac
14987
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14988
  # in which case we are not to be found in the path.
14989
  if test "x$as_myself" = x; then
14990
    as_myself=$0
14991
  fi
14992
  if test ! -f "$as_myself"; then
14993
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14994
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14995
   { (exit 1); exit 1; }; }
14996
  fi
14997
  case $CONFIG_SHELL in
14998
  '')
14999
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15001
do
15002
  IFS=$as_save_IFS
15003
  test -z "$as_dir" && as_dir=.
15004
  for as_base in sh bash ksh sh5; do
15005
         case $as_dir in
15006
         /*)
15007
           if ("$as_dir/$as_base" -c '
15008
  as_lineno_1=$LINENO
15009
  as_lineno_2=$LINENO
15010
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15011
  test "x$as_lineno_1" != "x$as_lineno_2" &&
15012
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15013
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15014
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15015
             CONFIG_SHELL=$as_dir/$as_base
15016
             export CONFIG_SHELL
15017
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15018
           fi;;
15019
         esac
15020
       done
15021
done
15022
;;
15023
  esac
15024
 
15025
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15026
  # uniformly replaced by the line number.  The first 'sed' inserts a
15027
  # line-number line before each line; the second 'sed' does the real
15028
  # work.  The second script uses 'N' to pair each line-number line
15029
  # with the numbered line, and appends trailing '-' during
15030
  # substitution so that $LINENO is not a special case at line end.
15031
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15032
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15033
  sed '=' <$as_myself |
15034
    sed '
15035
      N
15036
      s,$,-,
15037
      : loop
15038
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15039
      t loop
15040
      s,-$,,
15041
      s,^['$as_cr_digits']*\n,,
15042
    ' >$as_me.lineno &&
15043
  chmod +x $as_me.lineno ||
15044
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15045
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15046
   { (exit 1); exit 1; }; }
15047
 
15048
  # Don't try to exec as it changes $[0], causing all sort of problems
15049
  # (the dirname of $[0] is not the place where we might find the
15050
  # original and so on.  Autoconf is especially sensible to this).
15051
  . ./$as_me.lineno
15052
  # Exit status is that of the last command.
15053
  exit
15054
}
15055
 
15056
 
15057
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15058
  *c*,-n*) ECHO_N= ECHO_C='
15059
' ECHO_T='      ' ;;
15060
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15061
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15062
esac
15063
 
15064
if expr a : '\(a\)' >/dev/null 2>&1; then
15065
  as_expr=expr
15066
else
15067
  as_expr=false
15068
fi
15069
 
15070
rm -f conf$$ conf$$.exe conf$$.file
15071
echo >conf$$.file
15072
if ln -s conf$$.file conf$$ 2>/dev/null; then
15073
  # We could just check for DJGPP; but this test a) works b) is more generic
15074
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15075
  if test -f conf$$.exe; then
15076
    # Don't use ln at all; we don't have any links
15077
    as_ln_s='cp -p'
15078
  else
15079
    as_ln_s='ln -s'
15080
  fi
15081
elif ln conf$$.file conf$$ 2>/dev/null; then
15082
  as_ln_s=ln
15083
else
15084
  as_ln_s='cp -p'
15085
fi
15086
rm -f conf$$ conf$$.exe conf$$.file
15087
 
15088
if mkdir -p . 2>/dev/null; then
15089
  as_mkdir_p=:
15090
else
15091
  test -d ./-p && rmdir ./-p
15092
  as_mkdir_p=false
15093
fi
15094
 
15095
as_executable_p="test -f"
15096
 
15097
# Sed expression to map a string onto a valid CPP name.
15098
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15099
 
15100
# Sed expression to map a string onto a valid variable name.
15101
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15102
 
15103
 
15104
# IFS
15105
# We need space, tab and new line, in precisely that order.
15106
as_nl='
15107
'
15108
IFS="   $as_nl"
15109
 
15110
# CDPATH.
15111
$as_unset CDPATH
15112
 
15113
exec 6>&1
15114
 
15115
# Open the log real soon, to keep \$[0] and so on meaningful, and to
15116
# report actual input values of CONFIG_FILES etc. instead of their
15117
# values after options handling.  Logging --version etc. is OK.
15118
exec 5>>config.log
15119
{
15120
  echo
15121
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15122
## Running $as_me. ##
15123
_ASBOX
15124
} >&5
15125
cat >&5 <<_CSEOF
15126
 
15127
This file was extended by GNU Classpath $as_me 0.20-pre, which was
15128
generated by GNU Autoconf 2.59.  Invocation command line was
15129
 
15130
  CONFIG_FILES    = $CONFIG_FILES
15131
  CONFIG_HEADERS  = $CONFIG_HEADERS
15132
  CONFIG_LINKS    = $CONFIG_LINKS
15133
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15134
  $ $0 $@
15135
 
15136
_CSEOF
15137
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15138
echo >&5
15139
_ACEOF
15140
 
15141
# Files that config.status was made for.
15142
if test -n "$ac_config_files"; then
15143
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15144
fi
15145
 
15146
if test -n "$ac_config_headers"; then
15147
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15148
fi
15149
 
15150
if test -n "$ac_config_links"; then
15151
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15152
fi
15153
 
15154
if test -n "$ac_config_commands"; then
15155
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15156
fi
15157
 
15158
cat >>$CONFIG_STATUS <<\_ACEOF
15159
 
15160
ac_cs_usage="\
15161
\`$as_me' instantiates files from templates according to the
15162
current configuration.
15163
 
15164
Usage: $0 [OPTIONS] [FILE]...
15165
 
15166
  -h, --help       print this help, then exit
15167
  -V, --version    print version number, then exit
15168
  -q, --quiet      do not print progress messages
15169
  -d, --debug      don't remove temporary files
15170
      --recheck    update $as_me by reconfiguring in the same conditions
15171
  --file=FILE[:TEMPLATE]
15172
                   instantiate the configuration file FILE
15173
  --header=FILE[:TEMPLATE]
15174
                   instantiate the configuration header FILE
15175
 
15176
Configuration files:
15177
$config_files
15178
 
15179
Configuration headers:
15180
$config_headers
15181
 
15182
Configuration links:
15183
$config_links
15184
 
15185
Configuration commands:
15186
$config_commands
15187
 
15188
Report bugs to ."
15189
_ACEOF
15190
 
15191
cat >>$CONFIG_STATUS <<_ACEOF
15192
ac_cs_version="\\
15193
GNU Classpath config.status 0.20-pre
15194
configured by $0, generated by GNU Autoconf 2.59,
15195
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15196
 
15197
Copyright (C) 2003 Free Software Foundation, Inc.
15198
This config.status script is free software; the Free Software Foundation
15199
gives unlimited permission to copy, distribute and modify it."
15200
srcdir=$srcdir
15201
INSTALL="$INSTALL"
15202
_ACEOF
15203
 
15204
cat >>$CONFIG_STATUS <<\_ACEOF
15205
# If no file are specified by the user, then we need to provide default
15206
# value.  By we need to know if files were specified by the user.
15207
ac_need_defaults=:
15208
while test $# != 0
15209
do
15210
  case $1 in
15211
  --*=*)
15212
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15213
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15214
    ac_shift=:
15215
    ;;
15216
  -*)
15217
    ac_option=$1
15218
    ac_optarg=$2
15219
    ac_shift=shift
15220
    ;;
15221
  *) # This is not an option, so the user has probably given explicit
15222
     # arguments.
15223
     ac_option=$1
15224
     ac_need_defaults=false;;
15225
  esac
15226
 
15227
  case $ac_option in
15228
  # Handling of the options.
15229
_ACEOF
15230
cat >>$CONFIG_STATUS <<\_ACEOF
15231
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15232
    ac_cs_recheck=: ;;
15233
  --version | --vers* | -V )
15234
    echo "$ac_cs_version"; exit 0 ;;
15235
  --he | --h)
15236
    # Conflict between --help and --header
15237
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15238
Try \`$0 --help' for more information." >&5
15239
echo "$as_me: error: ambiguous option: $1
15240
Try \`$0 --help' for more information." >&2;}
15241
   { (exit 1); exit 1; }; };;
15242
  --help | --hel | -h )
15243
    echo "$ac_cs_usage"; exit 0 ;;
15244
  --debug | --d* | -d )
15245
    debug=: ;;
15246
  --file | --fil | --fi | --f )
15247
    $ac_shift
15248
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15249
    ac_need_defaults=false;;
15250
  --header | --heade | --head | --hea )
15251
    $ac_shift
15252
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15253
    ac_need_defaults=false;;
15254
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15255
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15256
    ac_cs_silent=: ;;
15257
 
15258
  # This is an error.
15259
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15260
Try \`$0 --help' for more information." >&5
15261
echo "$as_me: error: unrecognized option: $1
15262
Try \`$0 --help' for more information." >&2;}
15263
   { (exit 1); exit 1; }; } ;;
15264
 
15265
  *) ac_config_targets="$ac_config_targets $1" ;;
15266
 
15267
  esac
15268
  shift
15269
done
15270
 
15271
ac_configure_extra_args=
15272
 
15273
if $ac_cs_silent; then
15274
  exec 6>/dev/null
15275
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15276
fi
15277
 
15278
_ACEOF
15279
cat >>$CONFIG_STATUS <<_ACEOF
15280
if \$ac_cs_recheck; then
15281
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15282
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15283
fi
15284
 
15285
_ACEOF
15286
 
15287
cat >>$CONFIG_STATUS <<_ACEOF
15288
#
15289
# INIT-COMMANDS section.
15290
#
15291
 
15292
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15293
 
15294
_ACEOF
15295
 
15296
 
15297
 
15298
cat >>$CONFIG_STATUS <<\_ACEOF
15299
for ac_config_target in $ac_config_targets
15300
do
15301
  case "$ac_config_target" in
15302
  # Handling of arguments.
15303
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15304
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15305
  "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
15306
  "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
15307
  "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
15308
  "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
15309
  "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15310
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15311
  "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
15312
  "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
15313
  "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
15314
  "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
15315
  "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
15316
  "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
15317
  "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
15318
  "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
15319
  "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
15320
  "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
15321
  "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
15322
  "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
15323
  "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
15324
  "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
15325
  "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
15326
  "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
15327
  "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
15328
  "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
15329
  "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
15330
  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15331
  "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
15332
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15333
  "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
15334
  "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
15335
  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15336
  "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
15337
  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15338
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15339
  "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
15340
  "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
15341
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15342
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15343
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15344
   { (exit 1); exit 1; }; };;
15345
  esac
15346
done
15347
 
15348
# If the user did not use the arguments to specify the items to instantiate,
15349
# then the envvar interface is used.  Set only those that are not.
15350
# We use the long form for the default assignment because of an extremely
15351
# bizarre bug on SunOS 4.1.3.
15352
if $ac_need_defaults; then
15353
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15354
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15355
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15356
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15357
fi
15358
 
15359
# Have a temporary directory for convenience.  Make it in the build tree
15360
# simply because there is no reason to put it here, and in addition,
15361
# creating and moving files from /tmp can sometimes cause problems.
15362
# Create a temporary directory, and hook for its removal unless debugging.
15363
$debug ||
15364
{
15365
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15366
  trap '{ (exit 1); exit 1; }' 1 2 13 15
15367
}
15368
 
15369
# Create a (secure) tmp directory for tmp files.
15370
 
15371
{
15372
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15373
  test -n "$tmp" && test -d "$tmp"
15374
}  ||
15375
{
15376
  tmp=./confstat$$-$RANDOM
15377
  (umask 077 && mkdir $tmp)
15378
} ||
15379
{
15380
   echo "$me: cannot create a temporary directory in ." >&2
15381
   { (exit 1); exit 1; }
15382
}
15383
 
15384
_ACEOF
15385
 
15386
cat >>$CONFIG_STATUS <<_ACEOF
15387
 
15388
#
15389
# CONFIG_FILES section.
15390
#
15391
 
15392
# No need to generate the scripts if there are no CONFIG_FILES.
15393
# This happens for instance when ./config.status config.h
15394
if test -n "\$CONFIG_FILES"; then
15395
  # Protect against being on the right side of a sed subst in config.status.
15396
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15397
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15398
s,@SHELL@,$SHELL,;t t
15399
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15400
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15401
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15402
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15403
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15404
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15405
s,@exec_prefix@,$exec_prefix,;t t
15406
s,@prefix@,$prefix,;t t
15407
s,@program_transform_name@,$program_transform_name,;t t
15408
s,@bindir@,$bindir,;t t
15409
s,@sbindir@,$sbindir,;t t
15410
s,@libexecdir@,$libexecdir,;t t
15411
s,@datadir@,$datadir,;t t
15412
s,@sysconfdir@,$sysconfdir,;t t
15413
s,@sharedstatedir@,$sharedstatedir,;t t
15414
s,@localstatedir@,$localstatedir,;t t
15415
s,@libdir@,$libdir,;t t
15416
s,@includedir@,$includedir,;t t
15417
s,@oldincludedir@,$oldincludedir,;t t
15418
s,@infodir@,$infodir,;t t
15419
s,@mandir@,$mandir,;t t
15420
s,@build_alias@,$build_alias,;t t
15421
s,@host_alias@,$host_alias,;t t
15422
s,@target_alias@,$target_alias,;t t
15423
s,@DEFS@,$DEFS,;t t
15424
s,@ECHO_C@,$ECHO_C,;t t
15425
s,@ECHO_N@,$ECHO_N,;t t
15426
s,@ECHO_T@,$ECHO_T,;t t
15427
s,@LIBS@,$LIBS,;t t
15428
s,@build@,$build,;t t
15429
s,@build_cpu@,$build_cpu,;t t
15430
s,@build_vendor@,$build_vendor,;t t
15431
s,@build_os@,$build_os,;t t
15432
s,@host@,$host,;t t
15433
s,@host_cpu@,$host_cpu,;t t
15434
s,@host_vendor@,$host_vendor,;t t
15435
s,@host_os@,$host_os,;t t
15436
s,@target@,$target,;t t
15437
s,@target_cpu@,$target_cpu,;t t
15438
s,@target_vendor@,$target_vendor,;t t
15439
s,@target_os@,$target_os,;t t
15440
s,@LIBVERSION@,$LIBVERSION,;t t
15441
s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
15442
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15443
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15444
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15445
s,@CYGPATH_W@,$CYGPATH_W,;t t
15446
s,@PACKAGE@,$PACKAGE,;t t
15447
s,@VERSION@,$VERSION,;t t
15448
s,@ACLOCAL@,$ACLOCAL,;t t
15449
s,@AUTOCONF@,$AUTOCONF,;t t
15450
s,@AUTOMAKE@,$AUTOMAKE,;t t
15451
s,@AUTOHEADER@,$AUTOHEADER,;t t
15452
s,@MAKEINFO@,$MAKEINFO,;t t
15453
s,@install_sh@,$install_sh,;t t
15454
s,@STRIP@,$STRIP,;t t
15455
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15456
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15457
s,@mkdir_p@,$mkdir_p,;t t
15458
s,@AWK@,$AWK,;t t
15459
s,@SET_MAKE@,$SET_MAKE,;t t
15460
s,@am__leading_dot@,$am__leading_dot,;t t
15461
s,@AMTAR@,$AMTAR,;t t
15462
s,@am__tar@,$am__tar,;t t
15463
s,@am__untar@,$am__untar,;t t
15464
s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
15465
s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
15466
s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
15467
s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
15468
s,@default_toolkit@,$default_toolkit,;t t
15469
s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
15470
s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
15471
s,@CC@,$CC,;t t
15472
s,@CFLAGS@,$CFLAGS,;t t
15473
s,@LDFLAGS@,$LDFLAGS,;t t
15474
s,@CPPFLAGS@,$CPPFLAGS,;t t
15475
s,@ac_ct_CC@,$ac_ct_CC,;t t
15476
s,@EXEEXT@,$EXEEXT,;t t
15477
s,@OBJEXT@,$OBJEXT,;t t
15478
s,@DEPDIR@,$DEPDIR,;t t
15479
s,@am__include@,$am__include,;t t
15480
s,@am__quote@,$am__quote,;t t
15481
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15482
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15483
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15484
s,@CCDEPMODE@,$CCDEPMODE,;t t
15485
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15486
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15487
s,@CPP@,$CPP,;t t
15488
s,@EGREP@,$EGREP,;t t
15489
s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
15490
s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
15491
s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
15492
s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
15493
s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
15494
s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
15495
s,@GTK_CAIRO_ENABLED@,$GTK_CAIRO_ENABLED,;t t
15496
s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15497
s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15498
s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
15499
s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
15500
s,@nativelibdir@,$nativelibdir,;t t
15501
s,@glibjdir@,$glibjdir,;t t
15502
s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
15503
s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
15504
s,@LN_S@,$LN_S,;t t
15505
s,@RANLIB@,$RANLIB,;t t
15506
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15507
s,@LIBTOOL@,$LIBTOOL,;t t
15508
s,@CXX@,$CXX,;t t
15509
s,@CXXFLAGS@,$CXXFLAGS,;t t
15510
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15511
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
15512
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
15513
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
15514
s,@CXXCPP@,$CXXCPP,;t t
15515
s,@LIBICONV@,$LIBICONV,;t t
15516
s,@LTLIBICONV@,$LTLIBICONV,;t t
15517
s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
15518
s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
15519
s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
15520
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15521
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
15522
s,@XML_LIBS@,$XML_LIBS,;t t
15523
s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
15524
s,@XSLT_LIBS@,$XSLT_LIBS,;t t
15525
s,@X_CFLAGS@,$X_CFLAGS,;t t
15526
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15527
s,@X_LIBS@,$X_LIBS,;t t
15528
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15529
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15530
s,@GTK_LIBS@,$GTK_LIBS,;t t
15531
s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15532
s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15533
s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15534
s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15535
s,@QT_CFLAGS@,$QT_CFLAGS,;t t
15536
s,@QT_LIBS@,$QT_LIBS,;t t
15537
s,@MOC@,$MOC,;t t
15538
s,@USER_JAVAH@,$USER_JAVAH,;t t
15539
s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
15540
s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
15541
s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
15542
s,@GCJ@,$GCJ,;t t
15543
s,@JIKES@,$JIKES,;t t
15544
s,@JIKESENCODING@,$JIKESENCODING,;t t
15545
s,@KJC@,$KJC,;t t
15546
s,@GCJX@,$GCJX,;t t
15547
s,@ECJ@,$ECJ,;t t
15548
s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
15549
s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
15550
s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
15551
s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
15552
s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
15553
s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
15554
s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
15555
s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
15556
s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
15557
s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
15558
s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
15559
s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
15560
s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
15561
s,@vm_classes@,$vm_classes,;t t
15562
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15563
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15564
s,@MAINT@,$MAINT,;t t
15565
s,@LIBDEBUG@,$LIBDEBUG,;t t
15566
s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
15567
s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
15568
s,@REMOVE@,$REMOVE,;t t
15569
s,@MKDIR@,$MKDIR,;t t
15570
s,@CP@,$CP,;t t
15571
s,@DATE@,$DATE,;t t
15572
s,@FIND@,$FIND,;t t
15573
s,@ZIP@,$ZIP,;t t
15574
s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
15575
s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
15576
s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
15577
s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
15578
s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
15579
s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
15580
s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
15581
s,@GJDOC@,$GJDOC,;t t
15582
s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
15583
s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
15584
s,@JAY@,$JAY,;t t
15585
s,@JAY_SKELETON@,$JAY_SKELETON,;t t
15586
s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
15587
s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
15588
s,@LIBOBJS@,$LIBOBJS,;t t
15589
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15590
CEOF
15591
 
15592
_ACEOF
15593
 
15594
  cat >>$CONFIG_STATUS <<\_ACEOF
15595
  # Split the substitutions into bite-sized pieces for seds with
15596
  # small command number limits, like on Digital OSF/1 and HP-UX.
15597
  ac_max_sed_lines=48
15598
  ac_sed_frag=1 # Number of current file.
15599
  ac_beg=1 # First line for current file.
15600
  ac_end=$ac_max_sed_lines # Line after last line for current file.
15601
  ac_more_lines=:
15602
  ac_sed_cmds=
15603
  while $ac_more_lines; do
15604
    if test $ac_beg -gt 1; then
15605
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15606
    else
15607
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15608
    fi
15609
    if test ! -s $tmp/subs.frag; then
15610
      ac_more_lines=false
15611
    else
15612
      # The purpose of the label and of the branching condition is to
15613
      # speed up the sed processing (if there are no `@' at all, there
15614
      # is no need to browse any of the substitutions).
15615
      # These are the two extra sed commands mentioned above.
15616
      (echo ':t
15617
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15618
      if test -z "$ac_sed_cmds"; then
15619
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15620
      else
15621
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15622
      fi
15623
      ac_sed_frag=`expr $ac_sed_frag + 1`
15624
      ac_beg=$ac_end
15625
      ac_end=`expr $ac_end + $ac_max_sed_lines`
15626
    fi
15627
  done
15628
  if test -z "$ac_sed_cmds"; then
15629
    ac_sed_cmds=cat
15630
  fi
15631
fi # test -n "$CONFIG_FILES"
15632
 
15633
_ACEOF
15634
cat >>$CONFIG_STATUS <<\_ACEOF
15635
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15636
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15637
  case $ac_file in
15638
  - | *:- | *:-:* ) # input from stdin
15639
        cat >$tmp/stdin
15640
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15641
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15642
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15643
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15644
  * )   ac_file_in=$ac_file.in ;;
15645
  esac
15646
 
15647
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15648
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15649
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15650
         X"$ac_file" : 'X\(//\)[^/]' \| \
15651
         X"$ac_file" : 'X\(//\)$' \| \
15652
         X"$ac_file" : 'X\(/\)' \| \
15653
         .     : '\(.\)' 2>/dev/null ||
15654
echo X"$ac_file" |
15655
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15656
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15657
          /^X\(\/\/\)$/{ s//\1/; q; }
15658
          /^X\(\/\).*/{ s//\1/; q; }
15659
          s/.*/./; q'`
15660
  { if $as_mkdir_p; then
15661
    mkdir -p "$ac_dir"
15662
  else
15663
    as_dir="$ac_dir"
15664
    as_dirs=
15665
    while test ! -d "$as_dir"; do
15666
      as_dirs="$as_dir $as_dirs"
15667
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15668
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15669
         X"$as_dir" : 'X\(//\)[^/]' \| \
15670
         X"$as_dir" : 'X\(//\)$' \| \
15671
         X"$as_dir" : 'X\(/\)' \| \
15672
         .     : '\(.\)' 2>/dev/null ||
15673
echo X"$as_dir" |
15674
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15675
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15676
          /^X\(\/\/\)$/{ s//\1/; q; }
15677
          /^X\(\/\).*/{ s//\1/; q; }
15678
          s/.*/./; q'`
15679
    done
15680
    test ! -n "$as_dirs" || mkdir $as_dirs
15681
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15682
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15683
   { (exit 1); exit 1; }; }; }
15684
 
15685
  ac_builddir=.
15686
 
15687
if test "$ac_dir" != .; then
15688
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15689
  # A "../" for each directory in $ac_dir_suffix.
15690
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15691
else
15692
  ac_dir_suffix= ac_top_builddir=
15693
fi
15694
 
15695
case $srcdir in
15696
  .)  # No --srcdir option.  We are building in place.
15697
    ac_srcdir=.
15698
    if test -z "$ac_top_builddir"; then
15699
       ac_top_srcdir=.
15700
    else
15701
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15702
    fi ;;
15703
  [\\/]* | ?:[\\/]* )  # Absolute path.
15704
    ac_srcdir=$srcdir$ac_dir_suffix;
15705
    ac_top_srcdir=$srcdir ;;
15706
  *) # Relative path.
15707
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15708
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15709
esac
15710
 
15711
# Do not use `cd foo && pwd` to compute absolute paths, because
15712
# the directories may not exist.
15713
case `pwd` in
15714
.) ac_abs_builddir="$ac_dir";;
15715
*)
15716
  case "$ac_dir" in
15717
  .) ac_abs_builddir=`pwd`;;
15718
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15719
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15720
  esac;;
15721
esac
15722
case $ac_abs_builddir in
15723
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15724
*)
15725
  case ${ac_top_builddir}. in
15726
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15727
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15728
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15729
  esac;;
15730
esac
15731
case $ac_abs_builddir in
15732
.) ac_abs_srcdir=$ac_srcdir;;
15733
*)
15734
  case $ac_srcdir in
15735
  .) ac_abs_srcdir=$ac_abs_builddir;;
15736
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15737
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15738
  esac;;
15739
esac
15740
case $ac_abs_builddir in
15741
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15742
*)
15743
  case $ac_top_srcdir in
15744
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15745
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15746
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15747
  esac;;
15748
esac
15749
 
15750
 
15751
  case $INSTALL in
15752
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15753
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15754
  esac
15755
 
15756
  if test x"$ac_file" != x-; then
15757
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15758
echo "$as_me: creating $ac_file" >&6;}
15759
    rm -f "$ac_file"
15760
  fi
15761
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15762
  # use $as_me), people would be surprised to read:
15763
  #    /* config.h.  Generated by config.status.  */
15764
  if test x"$ac_file" = x-; then
15765
    configure_input=
15766
  else
15767
    configure_input="$ac_file.  "
15768
  fi
15769
  configure_input=$configure_input"Generated from `echo $ac_file_in |
15770
                                     sed 's,.*/,,'` by configure."
15771
 
15772
  # First look for the input files in the build tree, otherwise in the
15773
  # src tree.
15774
  ac_file_inputs=`IFS=:
15775
    for f in $ac_file_in; do
15776
      case $f in
15777
      -) echo $tmp/stdin ;;
15778
      [\\/$]*)
15779
         # Absolute (can't be DOS-style, as IFS=:)
15780
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15781
echo "$as_me: error: cannot find input file: $f" >&2;}
15782
   { (exit 1); exit 1; }; }
15783
         echo "$f";;
15784
      *) # Relative
15785
         if test -f "$f"; then
15786
           # Build tree
15787
           echo "$f"
15788
         elif test -f "$srcdir/$f"; then
15789
           # Source tree
15790
           echo "$srcdir/$f"
15791
         else
15792
           # /dev/null tree
15793
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15794
echo "$as_me: error: cannot find input file: $f" >&2;}
15795
   { (exit 1); exit 1; }; }
15796
         fi;;
15797
      esac
15798
    done` || { (exit 1); exit 1; }
15799
_ACEOF
15800
cat >>$CONFIG_STATUS <<_ACEOF
15801
  sed "$ac_vpsub
15802
$extrasub
15803
_ACEOF
15804
cat >>$CONFIG_STATUS <<\_ACEOF
15805
:t
15806
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15807
s,@configure_input@,$configure_input,;t t
15808
s,@srcdir@,$ac_srcdir,;t t
15809
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15810
s,@top_srcdir@,$ac_top_srcdir,;t t
15811
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15812
s,@builddir@,$ac_builddir,;t t
15813
s,@abs_builddir@,$ac_abs_builddir,;t t
15814
s,@top_builddir@,$ac_top_builddir,;t t
15815
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15816
s,@INSTALL@,$ac_INSTALL,;t t
15817
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15818
  rm -f $tmp/stdin
15819
  if test x"$ac_file" != x-; then
15820
    mv $tmp/out $ac_file
15821
  else
15822
    cat $tmp/out
15823
    rm -f $tmp/out
15824
  fi
15825
 
15826
done
15827
_ACEOF
15828
cat >>$CONFIG_STATUS <<\_ACEOF
15829
 
15830
#
15831
# CONFIG_HEADER section.
15832
#
15833
 
15834
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15835
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15836
#
15837
# ac_d sets the value in "#define NAME VALUE" lines.
15838
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15839
ac_dB='[         ].*$,\1#\2'
15840
ac_dC=' '
15841
ac_dD=',;t'
15842
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15843
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15844
ac_uB='$,\1#\2define\3'
15845
ac_uC=' '
15846
ac_uD=',;t'
15847
 
15848
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15849
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15850
  case $ac_file in
15851
  - | *:- | *:-:* ) # input from stdin
15852
        cat >$tmp/stdin
15853
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15854
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15855
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15856
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15857
  * )   ac_file_in=$ac_file.in ;;
15858
  esac
15859
 
15860
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15861
echo "$as_me: creating $ac_file" >&6;}
15862
 
15863
  # First look for the input files in the build tree, otherwise in the
15864
  # src tree.
15865
  ac_file_inputs=`IFS=:
15866
    for f in $ac_file_in; do
15867
      case $f in
15868
      -) echo $tmp/stdin ;;
15869
      [\\/$]*)
15870
         # Absolute (can't be DOS-style, as IFS=:)
15871
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15872
echo "$as_me: error: cannot find input file: $f" >&2;}
15873
   { (exit 1); exit 1; }; }
15874
         # Do quote $f, to prevent DOS paths from being IFS'd.
15875
         echo "$f";;
15876
      *) # Relative
15877
         if test -f "$f"; then
15878
           # Build tree
15879
           echo "$f"
15880
         elif test -f "$srcdir/$f"; then
15881
           # Source tree
15882
           echo "$srcdir/$f"
15883
         else
15884
           # /dev/null tree
15885
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15886
echo "$as_me: error: cannot find input file: $f" >&2;}
15887
   { (exit 1); exit 1; }; }
15888
         fi;;
15889
      esac
15890
    done` || { (exit 1); exit 1; }
15891
  # Remove the trailing spaces.
15892
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15893
 
15894
_ACEOF
15895
 
15896
# Transform confdefs.h into two sed scripts, `conftest.defines' and
15897
# `conftest.undefs', that substitutes the proper values into
15898
# config.h.in to produce config.h.  The first handles `#define'
15899
# templates, and the second `#undef' templates.
15900
# And first: Protect against being on the right side of a sed subst in
15901
# config.status.  Protect against being in an unquoted here document
15902
# in config.status.
15903
rm -f conftest.defines conftest.undefs
15904
# Using a here document instead of a string reduces the quoting nightmare.
15905
# Putting comments in sed scripts is not portable.
15906
#
15907
# `end' is used to avoid that the second main sed command (meant for
15908
# 0-ary CPP macros) applies to n-ary macro definitions.
15909
# See the Autoconf documentation for `clear'.
15910
cat >confdef2sed.sed <<\_ACEOF
15911
s/[\\&,]/\\&/g
15912
s,[\\$`],\\&,g
15913
t clear
15914
: clear
15915
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15916
t end
15917
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15918
: end
15919
_ACEOF
15920
# If some macros were called several times there might be several times
15921
# the same #defines, which is useless.  Nevertheless, we may not want to
15922
# sort them, since we want the *last* AC-DEFINE to be honored.
15923
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15924
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15925
rm -f confdef2sed.sed
15926
 
15927
# This sed command replaces #undef with comments.  This is necessary, for
15928
# example, in the case of _POSIX_SOURCE, which is predefined and required
15929
# on some systems where configure will not decide to define it.
15930
cat >>conftest.undefs <<\_ACEOF
15931
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15932
_ACEOF
15933
 
15934
# Break up conftest.defines because some shells have a limit on the size
15935
# of here documents, and old seds have small limits too (100 cmds).
15936
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15937
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15938
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15939
echo '  :' >>$CONFIG_STATUS
15940
rm -f conftest.tail
15941
while grep . conftest.defines >/dev/null
15942
do
15943
  # Write a limited-size here document to $tmp/defines.sed.
15944
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
15945
  # Speed up: don't consider the non `#define' lines.
15946
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15947
  # Work around the forget-to-reset-the-flag bug.
15948
  echo 't clr' >>$CONFIG_STATUS
15949
  echo ': clr' >>$CONFIG_STATUS
15950
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15951
  echo 'CEOF
15952
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15953
  rm -f $tmp/in
15954
  mv $tmp/out $tmp/in
15955
' >>$CONFIG_STATUS
15956
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15957
  rm -f conftest.defines
15958
  mv conftest.tail conftest.defines
15959
done
15960
rm -f conftest.defines
15961
echo '  fi # grep' >>$CONFIG_STATUS
15962
echo >>$CONFIG_STATUS
15963
 
15964
# Break up conftest.undefs because some shells have a limit on the size
15965
# of here documents, and old seds have small limits too (100 cmds).
15966
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15967
rm -f conftest.tail
15968
while grep . conftest.undefs >/dev/null
15969
do
15970
  # Write a limited-size here document to $tmp/undefs.sed.
15971
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
15972
  # Speed up: don't consider the non `#undef'
15973
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15974
  # Work around the forget-to-reset-the-flag bug.
15975
  echo 't clr' >>$CONFIG_STATUS
15976
  echo ': clr' >>$CONFIG_STATUS
15977
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15978
  echo 'CEOF
15979
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15980
  rm -f $tmp/in
15981
  mv $tmp/out $tmp/in
15982
' >>$CONFIG_STATUS
15983
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15984
  rm -f conftest.undefs
15985
  mv conftest.tail conftest.undefs
15986
done
15987
rm -f conftest.undefs
15988
 
15989
cat >>$CONFIG_STATUS <<\_ACEOF
15990
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15991
  # use $as_me), people would be surprised to read:
15992
  #    /* config.h.  Generated by config.status.  */
15993
  if test x"$ac_file" = x-; then
15994
    echo "/* Generated by configure.  */" >$tmp/config.h
15995
  else
15996
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15997
  fi
15998
  cat $tmp/in >>$tmp/config.h
15999
  rm -f $tmp/in
16000
  if test x"$ac_file" != x-; then
16001
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16002
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16003
echo "$as_me: $ac_file is unchanged" >&6;}
16004
    else
16005
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16006
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16007
         X"$ac_file" : 'X\(//\)[^/]' \| \
16008
         X"$ac_file" : 'X\(//\)$' \| \
16009
         X"$ac_file" : 'X\(/\)' \| \
16010
         .     : '\(.\)' 2>/dev/null ||
16011
echo X"$ac_file" |
16012
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16013
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16014
          /^X\(\/\/\)$/{ s//\1/; q; }
16015
          /^X\(\/\).*/{ s//\1/; q; }
16016
          s/.*/./; q'`
16017
      { if $as_mkdir_p; then
16018
    mkdir -p "$ac_dir"
16019
  else
16020
    as_dir="$ac_dir"
16021
    as_dirs=
16022
    while test ! -d "$as_dir"; do
16023
      as_dirs="$as_dir $as_dirs"
16024
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16025
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16026
         X"$as_dir" : 'X\(//\)[^/]' \| \
16027
         X"$as_dir" : 'X\(//\)$' \| \
16028
         X"$as_dir" : 'X\(/\)' \| \
16029
         .     : '\(.\)' 2>/dev/null ||
16030
echo X"$as_dir" |
16031
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16032
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16033
          /^X\(\/\/\)$/{ s//\1/; q; }
16034
          /^X\(\/\).*/{ s//\1/; q; }
16035
          s/.*/./; q'`
16036
    done
16037
    test ! -n "$as_dirs" || mkdir $as_dirs
16038
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16039
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16040
   { (exit 1); exit 1; }; }; }
16041
 
16042
      rm -f $ac_file
16043
      mv $tmp/config.h $ac_file
16044
    fi
16045
  else
16046
    cat $tmp/config.h
16047
    rm -f $tmp/config.h
16048
  fi
16049
# Compute $ac_file's index in $config_headers.
16050
_am_stamp_count=1
16051
for _am_header in $config_headers :; do
16052
  case $_am_header in
16053
    $ac_file | $ac_file:* )
16054
      break ;;
16055
    * )
16056
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16057
  esac
16058
done
16059
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16060
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16061
         X$ac_file : 'X\(//\)[^/]' \| \
16062
         X$ac_file : 'X\(//\)$' \| \
16063
         X$ac_file : 'X\(/\)' \| \
16064
         .     : '\(.\)' 2>/dev/null ||
16065
echo X$ac_file |
16066
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16067
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16068
          /^X\(\/\/\)$/{ s//\1/; q; }
16069
          /^X\(\/\).*/{ s//\1/; q; }
16070
          s/.*/./; q'`/stamp-h$_am_stamp_count
16071
done
16072
_ACEOF
16073
cat >>$CONFIG_STATUS <<\_ACEOF
16074
 
16075
#
16076
# CONFIG_LINKS section.
16077
#
16078
 
16079
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16080
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16081
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16082
 
16083
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16084
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16085
 
16086
  if test ! -r $srcdir/$ac_source; then
16087
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16088
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16089
   { (exit 1); exit 1; }; }
16090
  fi
16091
  rm -f $ac_dest
16092
 
16093
  # Make relative symlinks.
16094
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16095
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096
         X"$ac_dest" : 'X\(//\)[^/]' \| \
16097
         X"$ac_dest" : 'X\(//\)$' \| \
16098
         X"$ac_dest" : 'X\(/\)' \| \
16099
         .     : '\(.\)' 2>/dev/null ||
16100
echo X"$ac_dest" |
16101
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16102
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16103
          /^X\(\/\/\)$/{ s//\1/; q; }
16104
          /^X\(\/\).*/{ s//\1/; q; }
16105
          s/.*/./; q'`
16106
  { if $as_mkdir_p; then
16107
    mkdir -p "$ac_dest_dir"
16108
  else
16109
    as_dir="$ac_dest_dir"
16110
    as_dirs=
16111
    while test ! -d "$as_dir"; do
16112
      as_dirs="$as_dir $as_dirs"
16113
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16114
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115
         X"$as_dir" : 'X\(//\)[^/]' \| \
16116
         X"$as_dir" : 'X\(//\)$' \| \
16117
         X"$as_dir" : 'X\(/\)' \| \
16118
         .     : '\(.\)' 2>/dev/null ||
16119
echo X"$as_dir" |
16120
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16121
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16122
          /^X\(\/\/\)$/{ s//\1/; q; }
16123
          /^X\(\/\).*/{ s//\1/; q; }
16124
          s/.*/./; q'`
16125
    done
16126
    test ! -n "$as_dirs" || mkdir $as_dirs
16127
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16128
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16129
   { (exit 1); exit 1; }; }; }
16130
 
16131
  ac_builddir=.
16132
 
16133
if test "$ac_dest_dir" != .; then
16134
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16135
  # A "../" for each directory in $ac_dir_suffix.
16136
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16137
else
16138
  ac_dir_suffix= ac_top_builddir=
16139
fi
16140
 
16141
case $srcdir in
16142
  .)  # No --srcdir option.  We are building in place.
16143
    ac_srcdir=.
16144
    if test -z "$ac_top_builddir"; then
16145
       ac_top_srcdir=.
16146
    else
16147
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16148
    fi ;;
16149
  [\\/]* | ?:[\\/]* )  # Absolute path.
16150
    ac_srcdir=$srcdir$ac_dir_suffix;
16151
    ac_top_srcdir=$srcdir ;;
16152
  *) # Relative path.
16153
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16154
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16155
esac
16156
 
16157
# Do not use `cd foo && pwd` to compute absolute paths, because
16158
# the directories may not exist.
16159
case `pwd` in
16160
.) ac_abs_builddir="$ac_dest_dir";;
16161
*)
16162
  case "$ac_dest_dir" in
16163
  .) ac_abs_builddir=`pwd`;;
16164
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
16165
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
16166
  esac;;
16167
esac
16168
case $ac_abs_builddir in
16169
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16170
*)
16171
  case ${ac_top_builddir}. in
16172
  .) ac_abs_top_builddir=$ac_abs_builddir;;
16173
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16174
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16175
  esac;;
16176
esac
16177
case $ac_abs_builddir in
16178
.) ac_abs_srcdir=$ac_srcdir;;
16179
*)
16180
  case $ac_srcdir in
16181
  .) ac_abs_srcdir=$ac_abs_builddir;;
16182
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16183
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16184
  esac;;
16185
esac
16186
case $ac_abs_builddir in
16187
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16188
*)
16189
  case $ac_top_srcdir in
16190
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16191
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16192
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16193
  esac;;
16194
esac
16195
 
16196
 
16197
  case $srcdir in
16198
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16199
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16200
  esac
16201
 
16202
  # Try a symlink, then a hard link, then a copy.
16203
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16204
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16205
    cp -p $srcdir/$ac_source $ac_dest ||
16206
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16207
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16208
   { (exit 1); exit 1; }; }
16209
done
16210
_ACEOF
16211
cat >>$CONFIG_STATUS <<\_ACEOF
16212
 
16213
#
16214
# CONFIG_COMMANDS section.
16215
#
16216
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16217
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16218
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16219
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16220
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16221
         X"$ac_dest" : 'X\(//\)[^/]' \| \
16222
         X"$ac_dest" : 'X\(//\)$' \| \
16223
         X"$ac_dest" : 'X\(/\)' \| \
16224
         .     : '\(.\)' 2>/dev/null ||
16225
echo X"$ac_dest" |
16226
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16227
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16228
          /^X\(\/\/\)$/{ s//\1/; q; }
16229
          /^X\(\/\).*/{ s//\1/; q; }
16230
          s/.*/./; q'`
16231
  { if $as_mkdir_p; then
16232
    mkdir -p "$ac_dir"
16233
  else
16234
    as_dir="$ac_dir"
16235
    as_dirs=
16236
    while test ! -d "$as_dir"; do
16237
      as_dirs="$as_dir $as_dirs"
16238
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16239
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16240
         X"$as_dir" : 'X\(//\)[^/]' \| \
16241
         X"$as_dir" : 'X\(//\)$' \| \
16242
         X"$as_dir" : 'X\(/\)' \| \
16243
         .     : '\(.\)' 2>/dev/null ||
16244
echo X"$as_dir" |
16245
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16246
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16247
          /^X\(\/\/\)$/{ s//\1/; q; }
16248
          /^X\(\/\).*/{ s//\1/; q; }
16249
          s/.*/./; q'`
16250
    done
16251
    test ! -n "$as_dirs" || mkdir $as_dirs
16252
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16253
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16254
   { (exit 1); exit 1; }; }; }
16255
 
16256
  ac_builddir=.
16257
 
16258
if test "$ac_dir" != .; then
16259
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16260
  # A "../" for each directory in $ac_dir_suffix.
16261
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16262
else
16263
  ac_dir_suffix= ac_top_builddir=
16264
fi
16265
 
16266
case $srcdir in
16267
  .)  # No --srcdir option.  We are building in place.
16268
    ac_srcdir=.
16269
    if test -z "$ac_top_builddir"; then
16270
       ac_top_srcdir=.
16271
    else
16272
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16273
    fi ;;
16274
  [\\/]* | ?:[\\/]* )  # Absolute path.
16275
    ac_srcdir=$srcdir$ac_dir_suffix;
16276
    ac_top_srcdir=$srcdir ;;
16277
  *) # Relative path.
16278
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16279
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16280
esac
16281
 
16282
# Do not use `cd foo && pwd` to compute absolute paths, because
16283
# the directories may not exist.
16284
case `pwd` in
16285
.) ac_abs_builddir="$ac_dir";;
16286
*)
16287
  case "$ac_dir" in
16288
  .) ac_abs_builddir=`pwd`;;
16289
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16290
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16291
  esac;;
16292
esac
16293
case $ac_abs_builddir in
16294
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16295
*)
16296
  case ${ac_top_builddir}. in
16297
  .) ac_abs_top_builddir=$ac_abs_builddir;;
16298
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16299
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16300
  esac;;
16301
esac
16302
case $ac_abs_builddir in
16303
.) ac_abs_srcdir=$ac_srcdir;;
16304
*)
16305
  case $ac_srcdir in
16306
  .) ac_abs_srcdir=$ac_abs_builddir;;
16307
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16308
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16309
  esac;;
16310
esac
16311
case $ac_abs_builddir in
16312
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16313
*)
16314
  case $ac_top_srcdir in
16315
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16316
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16317
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16318
  esac;;
16319
esac
16320
 
16321
 
16322
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16323
echo "$as_me: executing $ac_dest commands" >&6;}
16324
  case $ac_dest in
16325
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16326
  # Strip MF so we end up with the name of the file.
16327
  mf=`echo "$mf" | sed -e 's/:.*$//'`
16328
  # Check whether this is an Automake generated Makefile or not.
16329
  # We used to match only the files named `Makefile.in', but
16330
  # some people rename them; so instead we look at the file content.
16331
  # Grep'ing the first line is not enough: some people post-process
16332
  # each Makefile.in and add a new line on top of each file to say so.
16333
  # So let's grep whole file.
16334
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16335
    dirpart=`(dirname "$mf") 2>/dev/null ||
16336
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16337
         X"$mf" : 'X\(//\)[^/]' \| \
16338
         X"$mf" : 'X\(//\)$' \| \
16339
         X"$mf" : 'X\(/\)' \| \
16340
         .     : '\(.\)' 2>/dev/null ||
16341
echo X"$mf" |
16342
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16343
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16344
          /^X\(\/\/\)$/{ s//\1/; q; }
16345
          /^X\(\/\).*/{ s//\1/; q; }
16346
          s/.*/./; q'`
16347
  else
16348
    continue
16349
  fi
16350
  # Extract the definition of DEPDIR, am__include, and am__quote
16351
  # from the Makefile without running `make'.
16352
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16353
  test -z "$DEPDIR" && continue
16354
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16355
  test -z "am__include" && continue
16356
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16357
  # When using ansi2knr, U may be empty or an underscore; expand it
16358
  U=`sed -n 's/^U = //p' < "$mf"`
16359
  # Find all dependency output files, they are included files with
16360
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16361
  # simplest approach to changing $(DEPDIR) to its actual value in the
16362
  # expansion.
16363
  for file in `sed -n "
16364
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16365
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16366
    # Make sure the directory exists.
16367
    test -f "$dirpart/$file" && continue
16368
    fdir=`(dirname "$file") 2>/dev/null ||
16369
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370
         X"$file" : 'X\(//\)[^/]' \| \
16371
         X"$file" : 'X\(//\)$' \| \
16372
         X"$file" : 'X\(/\)' \| \
16373
         .     : '\(.\)' 2>/dev/null ||
16374
echo X"$file" |
16375
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16376
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16377
          /^X\(\/\/\)$/{ s//\1/; q; }
16378
          /^X\(\/\).*/{ s//\1/; q; }
16379
          s/.*/./; q'`
16380
    { if $as_mkdir_p; then
16381
    mkdir -p $dirpart/$fdir
16382
  else
16383
    as_dir=$dirpart/$fdir
16384
    as_dirs=
16385
    while test ! -d "$as_dir"; do
16386
      as_dirs="$as_dir $as_dirs"
16387
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16388
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389
         X"$as_dir" : 'X\(//\)[^/]' \| \
16390
         X"$as_dir" : 'X\(//\)$' \| \
16391
         X"$as_dir" : 'X\(/\)' \| \
16392
         .     : '\(.\)' 2>/dev/null ||
16393
echo X"$as_dir" |
16394
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16395
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16396
          /^X\(\/\/\)$/{ s//\1/; q; }
16397
          /^X\(\/\).*/{ s//\1/; q; }
16398
          s/.*/./; q'`
16399
    done
16400
    test ! -n "$as_dirs" || mkdir $as_dirs
16401
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16402
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16403
   { (exit 1); exit 1; }; }; }
16404
 
16405
    # echo "creating $dirpart/$file"
16406
    echo '# dummy' > "$dirpart/$file"
16407
  done
16408
done
16409
 ;;
16410
    gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
16411
    copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
16412
  esac
16413
done
16414
_ACEOF
16415
 
16416
cat >>$CONFIG_STATUS <<\_ACEOF
16417
 
16418
{ (exit 0); exit 0; }
16419
_ACEOF
16420
chmod +x $CONFIG_STATUS
16421
ac_clean_files=$ac_clean_files_save
16422
 
16423
 
16424
# configure is writing to config.log, and then calls config.status.
16425
# config.status does its own redirection, appending to config.log.
16426
# Unfortunately, on DOS this fails, as config.log is still kept open
16427
# by configure, so config.status won't be able to write to it; its
16428
# output is simply discarded.  So we exec the FD to /dev/null,
16429
# effectively closing config.log, so it can be properly (re)opened and
16430
# appended to by config.status.  When coming back to configure, we
16431
# need to make the FD available again.
16432
if test "$no_create" != yes; then
16433
  ac_cs_success=:
16434
  ac_config_status_args=
16435
  test "$silent" = yes &&
16436
    ac_config_status_args="$ac_config_status_args --quiet"
16437
  exec 5>/dev/null
16438
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16439
  exec 5>>config.log
16440
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16441
  # would make configure fail if this is the last instruction.
16442
  $ac_cs_success || { (exit 1); exit 1; }
16443
fi
16444
 

powered by: WebSVN 2.1.0

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