~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59.
6
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
12
254
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --enable-procfs               Use /proc filesystem (default)"
16
 
ac_help="$ac_help
17
 
  --enable-pass-arguments       Force user main call to NSProcessInfo initialize"
18
 
ac_help="$ac_help
19
 
  --enable-fake-main            Force redefine of user main function"
20
 
ac_help="$ac_help
21
 
  --enable-libffi               Enable use of libffi library"
22
 
ac_help="$ac_help
23
 
  --enable-ffcall               Enable use of ffcall library"
24
 
ac_help="$ac_help
25
 
  --with-xml-prefix=PFX    Prefix where libxml is installed (optional)"
26
 
ac_help="$ac_help
27
 
  --disable-xmltest        Do not try to compile and run a test XML program"
28
 
ac_help="$ac_help
29
 
  --with-gmp-include=PATH  include path for gmp headers"
30
 
ac_help="$ac_help
31
 
  --with-gmp-library=PATH  library path for gmp libraries"
32
 
ac_help="$ac_help
33
 
  --with-libiconv-library=PATH  library path for libiconv libraries"
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${CONFIG_SHELL-/bin/sh}
 
261
 
 
262
# Maximum number of lines to put in a shell here document.
 
263
# This variable seems obsolete.  It should probably be removed, and
 
264
# only ac_max_sed_lines should be used.
 
265
: ${ac_max_here_lines=38}
 
266
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="Source/NSArray.m"
 
275
# Factoring default headers for most tests.
 
276
ac_includes_default="\
 
277
#include <stdio.h>
 
278
#if HAVE_SYS_TYPES_H
 
279
# include <sys/types.h>
 
280
#endif
 
281
#if HAVE_SYS_STAT_H
 
282
# include <sys/stat.h>
 
283
#endif
 
284
#if STDC_HEADERS
 
285
# include <stdlib.h>
 
286
# include <stddef.h>
 
287
#else
 
288
# if HAVE_STDLIB_H
 
289
#  include <stdlib.h>
 
290
# endif
 
291
#endif
 
292
#if HAVE_STRING_H
 
293
# if !STDC_HEADERS && HAVE_MEMORY_H
 
294
#  include <memory.h>
 
295
# endif
 
296
# include <string.h>
 
297
#endif
 
298
#if HAVE_STRINGS_H
 
299
# include <strings.h>
 
300
#endif
 
301
#if HAVE_INTTYPES_H
 
302
# include <inttypes.h>
 
303
#else
 
304
# if HAVE_STDINT_H
 
305
#  include <stdint.h>
 
306
# endif
 
307
#endif
 
308
#if HAVE_UNISTD_H
 
309
# include <unistd.h>
 
310
#endif"
 
311
 
 
312
ac_subdirs_all="$ac_subdirs_all Source/mframe SSL"
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP WHOAMI EGREP GS_WORDS_BIGENDIAN GS_SINT8 GS_UINT8 ac_cv_sizeof_short ac_cv_sizeof_int ac_cv_sizeof_long ac_cv_sizeof_long_long ac_cv_sizeof_float ac_cv_sizeof_double ac_cv_sizeof_voidp GS_ADDR GS_SINT16 GS_UINT16 GS_SINT32 GS_UINT32 GS_SINT64 GS_UINT64 GS_HAVE_I64 GS_SINT128 GS_UINT128 GS_HAVE_I128 GS_FLT32 GS_FLT64 _GSC_S_SHT _GSC_S_INT _GSC_S_LNG _GSC_S_LNG_LNG DYNAMIC_LINKER NX_CONST_STRING_OBJCFLAGS NX_CONST_STRING_CLASS HAVE_PTHREAD_H HAVE_PTS_STREAM_MODULES INCLUDE_STDINT DEFINE_UINT8_T DEFINE_INT32_T DEFINE_INT64_T USE_ZLIB GS_PASS_ARGUMENTS GS_FAKE_MAIN WITH_FFI XML2_CONFIG XML_CONFIG XML_CFLAGS XML_LIBS HAVE_LIBXSLT HAVE_LIBXML USE_GMP INCLUDE_FLAGS LDIR_FLAGS subdirs VERSION MAJOR_VERSION MINOR_VERSION SUBMINOR_VERSION GCC_VERSION LIBOBJS LTLIBOBJS'
 
314
ac_subst_files=''
34
315
 
35
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
36
319
# The variables have the same names as the options, with
37
320
# dashes changed to underlines.
38
 
build=NONE
39
 
cache_file=./config.cache
 
321
cache_file=/dev/null
40
322
exec_prefix=NONE
41
 
host=NONE
42
323
no_create=
43
 
nonopt=NONE
44
324
no_recursion=
45
325
prefix=NONE
46
326
program_prefix=NONE
49
329
silent=
50
330
site=
51
331
srcdir=
52
 
target=NONE
53
332
verbose=
54
333
x_includes=NONE
55
334
x_libraries=NONE
 
335
 
 
336
# Installation directory options.
 
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
338
# and all the variables that are supposed to be based on exec_prefix
 
339
# by default will actually change.
 
340
# Use braces instead of parens because sh, perl, etc. also accept them.
56
341
bindir='${exec_prefix}/bin'
57
342
sbindir='${exec_prefix}/sbin'
58
343
libexecdir='${exec_prefix}/libexec'
66
351
infodir='${prefix}/info'
67
352
mandir='${prefix}/man'
68
353
 
69
 
# Initialize some other variables.
70
 
subdirs=
71
 
MFLAGS= MAKEFLAGS=
72
 
SHELL=${CONFIG_SHELL-/bin/sh}
73
 
# Maximum number of lines to put in a shell here document.
74
 
ac_max_here_lines=12
75
 
 
76
354
ac_prev=
77
355
for ac_option
78
356
do
79
 
 
80
357
  # If the previous option needs an argument, assign it.
81
358
  if test -n "$ac_prev"; then
82
359
    eval "$ac_prev=\$ac_option"
84
361
    continue
85
362
  fi
86
363
 
87
 
  case "$ac_option" in
88
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89
 
  *) ac_optarg= ;;
90
 
  esac
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
91
365
 
92
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
93
367
 
94
 
  case "$ac_option" in
 
368
  case $ac_option in
95
369
 
96
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
97
371
    ac_prev=bindir ;;
98
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99
 
    bindir="$ac_optarg" ;;
 
373
    bindir=$ac_optarg ;;
100
374
 
101
375
  -build | --build | --buil | --bui | --bu)
102
 
    ac_prev=build ;;
 
376
    ac_prev=build_alias ;;
103
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104
 
    build="$ac_optarg" ;;
 
378
    build_alias=$ac_optarg ;;
105
379
 
106
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
107
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108
382
    ac_prev=cache_file ;;
109
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111
 
    cache_file="$ac_optarg" ;;
 
385
    cache_file=$ac_optarg ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
112
389
 
113
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114
391
    ac_prev=datadir ;;
115
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116
393
  | --da=*)
117
 
    datadir="$ac_optarg" ;;
 
394
    datadir=$ac_optarg ;;
118
395
 
119
396
  -disable-* | --disable-*)
120
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
121
398
    # Reject names that are not valid shell variable names.
122
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124
 
    fi
125
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126
 
    eval "enable_${ac_feature}=no" ;;
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
401
   { (exit 1); exit 1; }; }
 
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
403
    eval "enable_$ac_feature=no" ;;
127
404
 
128
405
  -enable-* | --enable-*)
129
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
130
407
    # Reject names that are not valid shell variable names.
131
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133
 
    fi
134
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135
 
    case "$ac_option" in
136
 
      *=*) ;;
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
410
   { (exit 1); exit 1; }; }
 
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
137
414
      *) ac_optarg=yes ;;
138
415
    esac
139
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
140
417
 
141
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147
424
  | --exec=* | --exe=* | --ex=*)
148
 
    exec_prefix="$ac_optarg" ;;
 
425
    exec_prefix=$ac_optarg ;;
149
426
 
150
427
  -gas | --gas | --ga | --g)
151
428
    # Obsolete; use --with-gas.
152
429
    with_gas=yes ;;
153
430
 
154
 
  -help | --help | --hel | --he)
155
 
    # Omit some internal or obsolete options to make the list less imposing.
156
 
    # This message is too long to be a string in the A/UX 3.1 sh.
157
 
    cat << EOF
158
 
Usage: configure [options] [host]
159
 
Options: [defaults in brackets after descriptions]
160
 
Configuration:
161
 
  --cache-file=FILE       cache test results in FILE
162
 
  --help                  print this message
163
 
  --no-create             do not create output files
164
 
  --quiet, --silent       do not print \`checking...' messages
165
 
  --version               print the version of autoconf that created configure
166
 
Directory and file names:
167
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
168
 
                          [$ac_default_prefix]
169
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170
 
                          [same as prefix]
171
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
172
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174
 
  --datadir=DIR           read-only architecture-independent data in DIR
175
 
                          [PREFIX/share]
176
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178
 
                          [PREFIX/com]
179
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
182
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
184
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
185
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
186
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
187
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
188
 
  --program-transform-name=PROGRAM
189
 
                          run sed PROGRAM on installed program names
190
 
EOF
191
 
    cat << EOF
192
 
Host type:
193
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
194
 
  --host=HOST             configure for HOST [guessed]
195
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
196
 
Features and packages:
197
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201
 
  --x-includes=DIR        X include files are in DIR
202
 
  --x-libraries=DIR       X library files are in DIR
203
 
EOF
204
 
    if test -n "$ac_help"; then
205
 
      echo "--enable and --with options recognized:$ac_help"
206
 
    fi
207
 
    exit 0 ;;
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
434
    ac_init_help=recursive ;;
 
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
436
    ac_init_help=short ;;
208
437
 
209
438
  -host | --host | --hos | --ho)
210
 
    ac_prev=host ;;
 
439
    ac_prev=host_alias ;;
211
440
  -host=* | --host=* | --hos=* | --ho=*)
212
 
    host="$ac_optarg" ;;
 
441
    host_alias=$ac_optarg ;;
213
442
 
214
443
  -includedir | --includedir | --includedi | --included | --include \
215
444
  | --includ | --inclu | --incl | --inc)
216
445
    ac_prev=includedir ;;
217
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
219
 
    includedir="$ac_optarg" ;;
 
448
    includedir=$ac_optarg ;;
220
449
 
221
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
222
451
    ac_prev=infodir ;;
223
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224
 
    infodir="$ac_optarg" ;;
 
453
    infodir=$ac_optarg ;;
225
454
 
226
455
  -libdir | --libdir | --libdi | --libd)
227
456
    ac_prev=libdir ;;
228
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
229
 
    libdir="$ac_optarg" ;;
 
458
    libdir=$ac_optarg ;;
230
459
 
231
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232
461
  | --libexe | --libex | --libe)
233
462
    ac_prev=libexecdir ;;
234
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235
464
  | --libexe=* | --libex=* | --libe=*)
236
 
    libexecdir="$ac_optarg" ;;
 
465
    libexecdir=$ac_optarg ;;
237
466
 
238
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
239
468
  | --localstate | --localstat | --localsta | --localst \
242
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245
 
    localstatedir="$ac_optarg" ;;
 
474
    localstatedir=$ac_optarg ;;
246
475
 
247
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248
477
    ac_prev=mandir ;;
249
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250
 
    mandir="$ac_optarg" ;;
 
479
    mandir=$ac_optarg ;;
251
480
 
252
481
  -nfp | --nfp | --nf)
253
482
    # Obsolete; use --without-fp.
254
483
    with_fp=no ;;
255
484
 
256
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257
 
  | --no-cr | --no-c)
 
486
  | --no-cr | --no-c | -n)
258
487
    no_create=yes ;;
259
488
 
260
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271
 
    oldincludedir="$ac_optarg" ;;
 
500
    oldincludedir=$ac_optarg ;;
272
501
 
273
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274
503
    ac_prev=prefix ;;
275
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276
 
    prefix="$ac_optarg" ;;
 
505
    prefix=$ac_optarg ;;
277
506
 
278
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
279
508
  | --program-pre | --program-pr | --program-p)
280
509
    ac_prev=program_prefix ;;
281
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
282
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283
 
    program_prefix="$ac_optarg" ;;
 
512
    program_prefix=$ac_optarg ;;
284
513
 
285
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
286
515
  | --program-suf | --program-su | --program-s)
287
516
    ac_prev=program_suffix ;;
288
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
289
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290
 
    program_suffix="$ac_optarg" ;;
 
519
    program_suffix=$ac_optarg ;;
291
520
 
292
521
  -program-transform-name | --program-transform-name \
293
522
  | --program-transform-nam | --program-transform-na \
304
533
  | --program-transfo=* | --program-transf=* \
305
534
  | --program-trans=* | --program-tran=* \
306
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
307
 
    program_transform_name="$ac_optarg" ;;
 
536
    program_transform_name=$ac_optarg ;;
308
537
 
309
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310
539
  | -silent | --silent | --silen | --sile | --sil)
314
543
    ac_prev=sbindir ;;
315
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316
545
  | --sbi=* | --sb=*)
317
 
    sbindir="$ac_optarg" ;;
 
546
    sbindir=$ac_optarg ;;
318
547
 
319
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
320
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327
556
  | --sha=* | --sh=*)
328
 
    sharedstatedir="$ac_optarg" ;;
 
557
    sharedstatedir=$ac_optarg ;;
329
558
 
330
559
  -site | --site | --sit)
331
560
    ac_prev=site ;;
332
561
  -site=* | --site=* | --sit=*)
333
 
    site="$ac_optarg" ;;
 
562
    site=$ac_optarg ;;
334
563
 
335
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336
565
    ac_prev=srcdir ;;
337
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338
 
    srcdir="$ac_optarg" ;;
 
567
    srcdir=$ac_optarg ;;
339
568
 
340
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341
570
  | --syscon | --sysco | --sysc | --sys | --sy)
342
571
    ac_prev=sysconfdir ;;
343
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345
 
    sysconfdir="$ac_optarg" ;;
 
574
    sysconfdir=$ac_optarg ;;
346
575
 
347
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
348
 
    ac_prev=target ;;
 
577
    ac_prev=target_alias ;;
349
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350
 
    target="$ac_optarg" ;;
 
579
    target_alias=$ac_optarg ;;
351
580
 
352
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
353
582
    verbose=yes ;;
354
583
 
355
 
  -version | --version | --versio | --versi | --vers)
356
 
    echo "configure generated by autoconf version 2.13"
357
 
    exit 0 ;;
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
358
586
 
359
587
  -with-* | --with-*)
360
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
361
589
    # Reject names that are not valid shell variable names.
362
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364
 
    fi
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
592
   { (exit 1); exit 1; }; }
365
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
366
 
    case "$ac_option" in
367
 
      *=*) ;;
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
368
596
      *) ac_optarg=yes ;;
369
597
    esac
370
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
371
599
 
372
600
  -without-* | --without-*)
373
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
374
602
    # Reject names that are not valid shell variable names.
375
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377
 
    fi
378
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
379
 
    eval "with_${ac_package}=no" ;;
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
605
   { (exit 1); exit 1; }; }
 
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
607
    eval "with_$ac_package=no" ;;
380
608
 
381
609
  --x)
382
610
    # Obsolete; use --with-x.
387
615
    ac_prev=x_includes ;;
388
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390
 
    x_includes="$ac_optarg" ;;
 
618
    x_includes=$ac_optarg ;;
391
619
 
392
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
393
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394
622
    ac_prev=x_libraries ;;
395
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397
 
    x_libraries="$ac_optarg" ;;
 
625
    x_libraries=$ac_optarg ;;
398
626
 
399
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
400
630
    ;;
401
631
 
 
632
  *=*)
 
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
634
    # Reject names that are not valid shell variable names.
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
637
   { (exit 1); exit 1; }; }
 
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
639
    eval "$ac_envvar='$ac_optarg'"
 
640
    export $ac_envvar ;;
 
641
 
402
642
  *)
403
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
405
 
    fi
406
 
    if test "x$nonopt" != xNONE; then
407
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408
 
    fi
409
 
    nonopt="$ac_option"
 
643
    # FIXME: should be removed in autoconf 3.0.
 
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
410
648
    ;;
411
649
 
412
650
  esac
413
651
done
414
652
 
415
653
if test -n "$ac_prev"; then
416
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417
 
fi
418
 
 
419
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
 
 
421
 
# File descriptor usage:
422
 
# 0 standard input
423
 
# 1 file creation
424
 
# 2 errors and warnings
425
 
# 3 some systems may open it to /dev/tty
426
 
# 4 used on the Kubota Titan
427
 
# 6 checking for... messages and results
428
 
# 5 compiler messages saved in config.log
429
 
if test "$silent" = yes; then
430
 
  exec 6>/dev/null
431
 
else
432
 
  exec 6>&1
433
 
fi
434
 
exec 5>./config.log
435
 
 
436
 
echo "\
437
 
This file contains any messages produced by compilers while
438
 
running configure, to aid debugging if configure makes a mistake.
439
 
" 1>&5
440
 
 
441
 
# Strip out --no-create and --no-recursion so they do not pile up.
442
 
# Also quote any args containing shell metacharacters.
443
 
ac_configure_args=
444
 
for ac_arg
445
 
do
446
 
  case "$ac_arg" in
447
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448
 
  | --no-cr | --no-c) ;;
449
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454
 
  esac
455
 
done
456
 
 
457
 
# NLS nuisances.
458
 
# Only set these to C if already set.  These must not be set unconditionally
459
 
# because not all systems understand e.g. LANG=C (notably SCO).
460
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461
 
# Non-C LC_CTYPE values break the ctype check.
462
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
466
 
 
467
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
468
 
rm -rf conftest* confdefs.h
469
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470
 
echo > confdefs.h
471
 
 
472
 
# A filename unique to this package, relative to the directory that
473
 
# configure is in, which we can look for to find out if srcdir is correct.
474
 
ac_unique_file=Source/NSArray.m
 
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
656
   { (exit 1); exit 1; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
 
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
682
# There might be people who depend on the old broken behavior: `$host'
 
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
689
# FIXME: To remove some day.
 
690
if test "x$host_alias" != x; then
 
691
  if test "x$build_alias" = x; then
 
692
    cross_compiling=maybe
 
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
694
    If a cross compiler is detected then cross compile mode will be used." >&2
 
695
  elif test "x$build_alias" != "x$host_alias"; then
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
475
705
 
476
706
# Find the source files, if location was not specified.
477
707
if test -z "$srcdir"; then
478
708
  ac_srcdir_defaulted=yes
479
709
  # Try the directory containing this script, then its parent.
480
 
  ac_prog=$0
481
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
483
722
  srcdir=$ac_confdir
484
723
  if test ! -r $srcdir/$ac_unique_file; then
485
724
    srcdir=..
489
728
fi
490
729
if test ! -r $srcdir/$ac_unique_file; then
491
730
  if test "$ac_srcdir_defaulted" = yes; then
492
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
732
   { (exit 1); exit 1; }; }
493
733
  else
494
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
495
736
  fi
496
737
fi
497
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
 
 
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
 
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
742
ac_env_build_alias_set=${build_alias+set}
 
743
ac_env_build_alias_value=$build_alias
 
744
ac_cv_env_build_alias_set=${build_alias+set}
 
745
ac_cv_env_build_alias_value=$build_alias
 
746
ac_env_host_alias_set=${host_alias+set}
 
747
ac_env_host_alias_value=$host_alias
 
748
ac_cv_env_host_alias_set=${host_alias+set}
 
749
ac_cv_env_host_alias_value=$host_alias
 
750
ac_env_target_alias_set=${target_alias+set}
 
751
ac_env_target_alias_value=$target_alias
 
752
ac_cv_env_target_alias_set=${target_alias+set}
 
753
ac_cv_env_target_alias_value=$target_alias
 
754
ac_env_CC_set=${CC+set}
 
755
ac_env_CC_value=$CC
 
756
ac_cv_env_CC_set=${CC+set}
 
757
ac_cv_env_CC_value=$CC
 
758
ac_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_env_CFLAGS_value=$CFLAGS
 
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
761
ac_cv_env_CFLAGS_value=$CFLAGS
 
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_env_LDFLAGS_value=$LDFLAGS
 
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
770
ac_env_CPP_set=${CPP+set}
 
771
ac_env_CPP_value=$CPP
 
772
ac_cv_env_CPP_set=${CPP+set}
 
773
ac_cv_env_CPP_value=$CPP
 
774
 
 
775
#
 
776
# Report the --help message.
 
777
#
 
778
if test "$ac_init_help" = "long"; then
 
779
  # Omit some internal or obsolete options to make the list less imposing.
 
780
  # This message is too long to be a string in the A/UX 3.1 sh.
 
781
  cat <<_ACEOF
 
782
\`configure' configures this package to adapt to many kinds of systems.
 
783
 
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
 
785
 
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
788
 
 
789
Defaults for the options are specified in brackets.
 
790
 
 
791
Configuration:
 
792
  -h, --help              display this help and exit
 
793
      --help=short        display options specific to this package
 
794
      --help=recursive    display the short help of all the included packages
 
795
  -V, --version           display version information and exit
 
796
  -q, --quiet, --silent   do not print \`checking...' messages
 
797
      --cache-file=FILE   cache test results in FILE [disabled]
 
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
799
  -n, --no-create         do not create output files
 
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
801
 
 
802
_ACEOF
 
803
 
 
804
  cat <<_ACEOF
 
805
Installation directories:
 
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
807
                          [$ac_default_prefix]
 
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
809
                          [PREFIX]
 
810
 
 
811
By default, \`make install' will install all the files in
 
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
814
for instance \`--prefix=\$HOME'.
 
815
 
 
816
For better control, use the options below.
 
817
 
 
818
Fine tuning of the installation directories:
 
819
  --bindir=DIR           user executables [EPREFIX/bin]
 
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
827
  --includedir=DIR       C header files [PREFIX/include]
 
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
829
  --infodir=DIR          info documentation [PREFIX/info]
 
830
  --mandir=DIR           man documentation [PREFIX/man]
 
831
_ACEOF
 
832
 
 
833
  cat <<\_ACEOF
 
834
 
 
835
System types:
 
836
  --build=BUILD     configure for building on BUILD [guessed]
 
837
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
838
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
839
_ACEOF
 
840
fi
 
841
 
 
842
if test -n "$ac_init_help"; then
 
843
 
 
844
  cat <<\_ACEOF
 
845
 
 
846
Optional Features:
 
847
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
848
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
849
  --enable-procfs               Use /proc filesystem (default)
 
850
  --enable-pass-arguments       Force user main call to NSProcessInfo initialize
 
851
  --enable-fake-main            Force redefine of user main function
 
852
  --enable-libffi               Enable use of libffi library
 
853
  --enable-ffcall               Enable use of ffcall library
 
854
  --disable-do                  Compile even if DO-dependencies are not met
 
855
  --disable-xml                 Compile even if XML-dependencies are not met
 
856
  --disable-xmltest             Do not try to compile and run a test XML program
 
857
  --disable-xslt                Compile even if XSLT-dependency is not met
 
858
  --disable-openssl             Disable support for openssl in URL classes
 
859
 
 
860
Optional Packages:
 
861
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
862
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
863
  --with-include-flags=FLAGS specify all include flags at once
 
864
  --with-library-flags=FLAGS specify all library flags at once
 
865
  --with-ffi-include=PATH include path for ffi (ffcall/libffi) headers
 
866
  --with-ffi-library=PATH library path for ffi (ffcall/libffi) libraries
 
867
  --with-libiconv-library=PATH  library path for libiconv libraries
 
868
  --with-xml-prefix=PFX    Prefix where libxml is installed (optional)
 
869
  --with-gmp-include=PATH  include path for gmp headers
 
870
  --with-gmp-library=PATH  library path for gmp libraries
 
871
  --with-openssl-include=PATH  include path for openssl headers
 
872
  --with-openssl-library=PATH  library path for openssl libraries
 
873
 
 
874
Some influential environment variables:
 
875
  CC          C compiler command
 
876
  CFLAGS      C compiler flags
 
877
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
878
              nonstandard directory <lib dir>
 
879
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
880
              headers in a nonstandard directory <include dir>
 
881
  CPP         C preprocessor
 
882
 
 
883
Use these variables to override the choices made by `configure' or to help
 
884
it to find libraries and programs with nonstandard names/locations.
 
885
 
 
886
_ACEOF
 
887
fi
 
888
 
 
889
if test "$ac_init_help" = "recursive"; then
 
890
  # If there are subdirs, report their specific --help.
 
891
  ac_popdir=`pwd`
 
892
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
893
    test -d $ac_dir || continue
 
894
    ac_builddir=.
 
895
 
 
896
if test "$ac_dir" != .; then
 
897
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
898
  # A "../" for each directory in $ac_dir_suffix.
 
899
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
900
else
 
901
  ac_dir_suffix= ac_top_builddir=
 
902
fi
 
903
 
 
904
case $srcdir in
 
905
  .)  # No --srcdir option.  We are building in place.
 
906
    ac_srcdir=.
 
907
    if test -z "$ac_top_builddir"; then
 
908
       ac_top_srcdir=.
 
909
    else
 
910
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
911
    fi ;;
 
912
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
913
    ac_srcdir=$srcdir$ac_dir_suffix;
 
914
    ac_top_srcdir=$srcdir ;;
 
915
  *) # Relative path.
 
916
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
917
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
918
esac
 
919
 
 
920
# Do not use `cd foo && pwd` to compute absolute paths, because
 
921
# the directories may not exist.
 
922
case `pwd` in
 
923
.) ac_abs_builddir="$ac_dir";;
 
924
*)
 
925
  case "$ac_dir" in
 
926
  .) ac_abs_builddir=`pwd`;;
 
927
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
928
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
929
  esac;;
 
930
esac
 
931
case $ac_abs_builddir in
 
932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
933
*)
 
934
  case ${ac_top_builddir}. in
 
935
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
936
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
937
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
938
  esac;;
 
939
esac
 
940
case $ac_abs_builddir in
 
941
.) ac_abs_srcdir=$ac_srcdir;;
 
942
*)
 
943
  case $ac_srcdir in
 
944
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
945
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
946
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
947
  esac;;
 
948
esac
 
949
case $ac_abs_builddir in
 
950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
951
*)
 
952
  case $ac_top_srcdir in
 
953
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
954
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
955
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
956
  esac;;
 
957
esac
 
958
 
 
959
    cd $ac_dir
 
960
    # Check for guested configure; otherwise get Cygnus style configure.
 
961
    if test -f $ac_srcdir/configure.gnu; then
 
962
      echo
 
963
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
964
    elif test -f $ac_srcdir/configure; then
 
965
      echo
 
966
      $SHELL $ac_srcdir/configure  --help=recursive
 
967
    elif test -f $ac_srcdir/configure.ac ||
 
968
           test -f $ac_srcdir/configure.in; then
 
969
      echo
 
970
      $ac_configure --help
 
971
    else
 
972
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
973
    fi
 
974
    cd "$ac_popdir"
 
975
  done
 
976
fi
 
977
 
 
978
test -n "$ac_init_help" && exit 0
 
979
if $ac_init_version; then
 
980
  cat <<\_ACEOF
 
981
 
 
982
Copyright (C) 2003 Free Software Foundation, Inc.
 
983
This configure script is free software; the Free Software Foundation
 
984
gives unlimited permission to copy, distribute and modify it.
 
985
_ACEOF
 
986
  exit 0
 
987
fi
 
988
exec 5>config.log
 
989
cat >&5 <<_ACEOF
 
990
This file contains any messages produced by compilers while
 
991
running configure, to aid debugging if configure makes a mistake.
 
992
 
 
993
It was created by $as_me, which was
 
994
generated by GNU Autoconf 2.59.  Invocation command line was
 
995
 
 
996
  $ $0 $@
 
997
 
 
998
_ACEOF
 
999
{
 
1000
cat <<_ASUNAME
 
1001
## --------- ##
 
1002
## Platform. ##
 
1003
## --------- ##
 
1004
 
 
1005
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1006
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1007
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1008
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1009
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1010
 
 
1011
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1012
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1013
 
 
1014
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1015
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1016
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1017
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1018
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1019
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1020
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1021
 
 
1022
_ASUNAME
 
1023
 
 
1024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1025
for as_dir in $PATH
 
1026
do
 
1027
  IFS=$as_save_IFS
 
1028
  test -z "$as_dir" && as_dir=.
 
1029
  echo "PATH: $as_dir"
 
1030
done
 
1031
 
 
1032
} >&5
 
1033
 
 
1034
cat >&5 <<_ACEOF
 
1035
 
 
1036
 
 
1037
## ----------- ##
 
1038
## Core tests. ##
 
1039
## ----------- ##
 
1040
 
 
1041
_ACEOF
 
1042
 
 
1043
 
 
1044
# Keep a trace of the command line.
 
1045
# Strip out --no-create and --no-recursion so they do not pile up.
 
1046
# Strip out --silent because we don't want to record it for future runs.
 
1047
# Also quote any args containing shell meta-characters.
 
1048
# Make two passes to allow for proper duplicate-argument suppression.
 
1049
ac_configure_args=
 
1050
ac_configure_args0=
 
1051
ac_configure_args1=
 
1052
ac_sep=
 
1053
ac_must_keep_next=false
 
1054
for ac_pass in 1 2
 
1055
do
 
1056
  for ac_arg
 
1057
  do
 
1058
    case $ac_arg in
 
1059
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1060
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1061
    | -silent | --silent | --silen | --sile | --sil)
 
1062
      continue ;;
 
1063
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1064
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1065
    esac
 
1066
    case $ac_pass in
 
1067
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1068
    2)
 
1069
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1070
      if test $ac_must_keep_next = true; then
 
1071
        ac_must_keep_next=false # Got value, back to normal.
 
1072
      else
 
1073
        case $ac_arg in
 
1074
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1075
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1076
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1077
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1078
            case "$ac_configure_args0 " in
 
1079
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1080
            esac
 
1081
            ;;
 
1082
          -* ) ac_must_keep_next=true ;;
 
1083
        esac
 
1084
      fi
 
1085
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1086
      # Get rid of the leading space.
 
1087
      ac_sep=" "
 
1088
      ;;
 
1089
    esac
 
1090
  done
 
1091
done
 
1092
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1093
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1094
 
 
1095
# When interrupted or exit'd, cleanup temporary files, and complete
 
1096
# config.log.  We remove comments because anyway the quotes in there
 
1097
# would cause problems or look ugly.
 
1098
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1099
# such as our DU 5.0 friend, will then `close' the trap.
 
1100
trap 'exit_status=$?
 
1101
  # Save into config.log some information that might help in debugging.
 
1102
  {
 
1103
    echo
 
1104
 
 
1105
    cat <<\_ASBOX
 
1106
## ---------------- ##
 
1107
## Cache variables. ##
 
1108
## ---------------- ##
 
1109
_ASBOX
 
1110
    echo
 
1111
    # The following way of writing the cache mishandles newlines in values,
 
1112
{
 
1113
  (set) 2>&1 |
 
1114
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1115
    *ac_space=\ *)
 
1116
      sed -n \
 
1117
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1118
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1119
      ;;
 
1120
    *)
 
1121
      sed -n \
 
1122
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1123
      ;;
 
1124
    esac;
 
1125
}
 
1126
    echo
 
1127
 
 
1128
    cat <<\_ASBOX
 
1129
## ----------------- ##
 
1130
## Output variables. ##
 
1131
## ----------------- ##
 
1132
_ASBOX
 
1133
    echo
 
1134
    for ac_var in $ac_subst_vars
 
1135
    do
 
1136
      eval ac_val=$`echo $ac_var`
 
1137
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1138
    done | sort
 
1139
    echo
 
1140
 
 
1141
    if test -n "$ac_subst_files"; then
 
1142
      cat <<\_ASBOX
 
1143
## ------------- ##
 
1144
## Output files. ##
 
1145
## ------------- ##
 
1146
_ASBOX
 
1147
      echo
 
1148
      for ac_var in $ac_subst_files
 
1149
      do
 
1150
        eval ac_val=$`echo $ac_var`
 
1151
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1152
      done | sort
 
1153
      echo
 
1154
    fi
 
1155
 
 
1156
    if test -s confdefs.h; then
 
1157
      cat <<\_ASBOX
 
1158
## ----------- ##
 
1159
## confdefs.h. ##
 
1160
## ----------- ##
 
1161
_ASBOX
 
1162
      echo
 
1163
      sed "/^$/d" confdefs.h | sort
 
1164
      echo
 
1165
    fi
 
1166
    test "$ac_signal" != 0 &&
 
1167
      echo "$as_me: caught signal $ac_signal"
 
1168
    echo "$as_me: exit $exit_status"
 
1169
  } >&5
 
1170
  rm -f core *.core &&
 
1171
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1172
    exit $exit_status
 
1173
     ' 0
 
1174
for ac_signal in 1 2 13 15; do
 
1175
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1176
done
 
1177
ac_signal=0
 
1178
 
 
1179
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1180
rm -rf conftest* confdefs.h
 
1181
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1182
echo >confdefs.h
 
1183
 
 
1184
# Predefined preprocessor variables.
 
1185
 
 
1186
cat >>confdefs.h <<_ACEOF
 
1187
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1188
_ACEOF
 
1189
 
 
1190
 
 
1191
cat >>confdefs.h <<_ACEOF
 
1192
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1193
_ACEOF
 
1194
 
 
1195
 
 
1196
cat >>confdefs.h <<_ACEOF
 
1197
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1198
_ACEOF
 
1199
 
 
1200
 
 
1201
cat >>confdefs.h <<_ACEOF
 
1202
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1203
_ACEOF
 
1204
 
 
1205
 
 
1206
cat >>confdefs.h <<_ACEOF
 
1207
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1208
_ACEOF
 
1209
 
 
1210
 
 
1211
# Let the site file select an alternate cache file if it wants to.
499
1212
# Prefer explicitly selected file to automatically selected ones.
500
1213
if test -z "$CONFIG_SITE"; then
501
1214
  if test "x$prefix" != xNONE; then
506
1219
fi
507
1220
for ac_site_file in $CONFIG_SITE; do
508
1221
  if test -r "$ac_site_file"; then
509
 
    echo "loading site script $ac_site_file"
 
1222
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1223
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1224
    sed 's/^/| /' "$ac_site_file" >&5
510
1225
    . "$ac_site_file"
511
1226
  fi
512
1227
done
513
1228
 
514
1229
if test -r "$cache_file"; then
515
 
  echo "loading cache $cache_file"
516
 
  . $cache_file
 
1230
  # Some versions of bash will fail to source /dev/null (special
 
1231
  # files actually), so we avoid doing that.
 
1232
  if test -f "$cache_file"; then
 
1233
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1234
echo "$as_me: loading cache $cache_file" >&6;}
 
1235
    case $cache_file in
 
1236
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1237
      *)                      . ./$cache_file;;
 
1238
    esac
 
1239
  fi
517
1240
else
518
 
  echo "creating cache $cache_file"
519
 
  > $cache_file
 
1241
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1242
echo "$as_me: creating cache $cache_file" >&6;}
 
1243
  >$cache_file
 
1244
fi
 
1245
 
 
1246
# Check that the precious variables saved in the cache have kept the same
 
1247
# value.
 
1248
ac_cache_corrupted=false
 
1249
for ac_var in `(set) 2>&1 |
 
1250
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1251
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1252
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1253
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1254
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1255
  case $ac_old_set,$ac_new_set in
 
1256
    set,)
 
1257
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1258
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1259
      ac_cache_corrupted=: ;;
 
1260
    ,set)
 
1261
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1262
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1263
      ac_cache_corrupted=: ;;
 
1264
    ,);;
 
1265
    *)
 
1266
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1267
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1268
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1269
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1270
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1271
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1272
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1273
        ac_cache_corrupted=:
 
1274
      fi;;
 
1275
  esac
 
1276
  # Pass precious variables to config.status.
 
1277
  if test "$ac_new_set" = set; then
 
1278
    case $ac_new_val in
 
1279
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1280
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1281
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1282
    esac
 
1283
    case " $ac_configure_args " in
 
1284
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1285
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1286
    esac
 
1287
  fi
 
1288
done
 
1289
if $ac_cache_corrupted; then
 
1290
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1291
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1292
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1293
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1294
   { (exit 1); exit 1; }; }
520
1295
fi
521
1296
 
522
1297
ac_ext=c
523
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524
1298
ac_cpp='$CPP $CPPFLAGS'
525
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527
 
cross_compiling=$ac_cv_prog_cc_cross
528
 
 
529
 
ac_exeext=
530
 
ac_objext=o
531
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534
 
    ac_n= ac_c='
535
 
' ac_t='        '
536
 
  else
537
 
    ac_n=-n ac_c= ac_t=
538
 
  fi
539
 
else
540
 
  ac_n= ac_c='\c' ac_t=
541
 
fi
542
 
 
543
 
 
544
 
 
545
 
# configure.in for GNU Objective-C library
546
 
# Process this file with autoconf to produce a configure script.
547
 
#
548
 
#   Copyright (C) 1993,1994, 1995, 1996, 1997 Free Software Foundation, Inc.
549
 
#
550
 
#   Written by:  Andrew Kachites McCallum <mccallum@cs.rochester.edu>
551
 
#   Dept. of Computer Science, U. of Rochester, Rochester, NY  14627
552
 
#
553
 
#   This file is part of the GNU Objective-C library.
554
 
#
555
 
#   This library is free software; you can redistribute it and/or
556
 
#   modify it under the terms of the GNU Library General Public
557
 
#   License as published by the Free Software Foundation; either
558
 
#   version 2 of the License, or (at your option) any later version.
559
 
#   
560
 
#   This library is distributed in the hope that it will be useful,
561
 
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
562
 
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
563
 
#   Library General Public License for more details.
564
 
#
565
 
#   You should have received a copy of the GNU Library General Public
566
 
#   License along with this library; if not, write to the Free
567
 
#   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
 
1299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
568
1322
 
569
1323
if test -z "$GNUSTEP_SYSTEM_ROOT"; then
570
 
  {
571
 
   echo "ERROR: You must run the GNUstep initialization script before configuring the base library!" 1>&2;
572
 
  exit 1; 
573
 
  }
 
1324
  { { echo "$as_me:$LINENO: error: You must run the GNUstep initialization script first!" >&5
 
1325
echo "$as_me: error: You must run the GNUstep initialization script first!" >&2;}
 
1326
   { (exit 1); exit 1; }; }
574
1327
fi
575
1328
 
576
1329
#--------------------------------------------------------------------
577
1330
# Use config.guess, config.sub and install-sh provided by gnustep-make
578
1331
#--------------------------------------------------------------------
579
1332
ac_aux_dir=
580
 
for ac_dir in $GNUSTEP_SYSTEM_ROOT/Makefiles $srcdir/$GNUSTEP_SYSTEM_ROOT/Makefiles; do
 
1333
for ac_dir in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES; do
581
1334
  if test -f $ac_dir/install-sh; then
582
1335
    ac_aux_dir=$ac_dir
583
1336
    ac_install_sh="$ac_aux_dir/install-sh -c"
586
1339
    ac_aux_dir=$ac_dir
587
1340
    ac_install_sh="$ac_aux_dir/install.sh -c"
588
1341
    break
 
1342
  elif test -f $ac_dir/shtool; then
 
1343
    ac_aux_dir=$ac_dir
 
1344
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1345
    break
589
1346
  fi
590
1347
done
591
1348
if test -z "$ac_aux_dir"; then
592
 
  { echo "configure: error: can not find install-sh or install.sh in $GNUSTEP_SYSTEM_ROOT/Makefiles $srcdir/$GNUSTEP_SYSTEM_ROOT/Makefiles" 1>&2; exit 1; }
 
1349
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5
 
1350
echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;}
 
1351
   { (exit 1); exit 1; }; }
593
1352
fi
594
 
ac_config_guess=$ac_aux_dir/config.guess
595
 
ac_config_sub=$ac_aux_dir/config.sub
596
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1353
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1354
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1355
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
597
1356
 
598
1357
 
599
1358
#--------------------------------------------------------------------
600
1359
# Use a .h file with #define's, instead of -D command-line switches
601
1360
#--------------------------------------------------------------------
 
1361
          ac_config_headers="$ac_config_headers Headers/Additions/GNUstepBase/config.h"
602
1362
 
603
1363
 
604
1364
#--------------------------------------------------------------------
605
1365
# Determine the host, build, and target systems
606
1366
#--------------------------------------------------------------------
607
 
 
608
 
# Do some error checking and defaulting for the host and target type.
609
 
# The inputs are:
610
 
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
611
 
#
612
 
# The rules are:
613
 
# 1. You are not allowed to specify --host, --target, and nonopt at the
614
 
#    same time.
615
 
# 2. Host defaults to nonopt.
616
 
# 3. If nonopt is not specified, then host defaults to the current host,
617
 
#    as determined by config.guess.
618
 
# 4. Target and build default to nonopt.
619
 
# 5. If nonopt is not specified, then target and build default to host.
 
1367
# Make sure we can run config.sub.
 
1368
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1369
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1370
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1371
   { (exit 1); exit 1; }; }
 
1372
 
 
1373
echo "$as_me:$LINENO: checking build system type" >&5
 
1374
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1375
if test "${ac_cv_build+set}" = set; then
 
1376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1377
else
 
1378
  ac_cv_build_alias=$build_alias
 
1379
test -z "$ac_cv_build_alias" &&
 
1380
  ac_cv_build_alias=`$ac_config_guess`
 
1381
test -z "$ac_cv_build_alias" &&
 
1382
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1383
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1384
   { (exit 1); exit 1; }; }
 
1385
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1386
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1387
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1388
   { (exit 1); exit 1; }; }
 
1389
 
 
1390
fi
 
1391
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1392
echo "${ECHO_T}$ac_cv_build" >&6
 
1393
build=$ac_cv_build
 
1394
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1395
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1396
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1397
 
 
1398
 
 
1399
echo "$as_me:$LINENO: checking host system type" >&5
 
1400
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1401
if test "${ac_cv_host+set}" = set; then
 
1402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1403
else
 
1404
  ac_cv_host_alias=$host_alias
 
1405
test -z "$ac_cv_host_alias" &&
 
1406
  ac_cv_host_alias=$ac_cv_build_alias
 
1407
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1408
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1409
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1410
   { (exit 1); exit 1; }; }
 
1411
 
 
1412
fi
 
1413
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1414
echo "${ECHO_T}$ac_cv_host" >&6
 
1415
host=$ac_cv_host
 
1416
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1417
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1418
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1419
 
 
1420
 
 
1421
echo "$as_me:$LINENO: checking target system type" >&5
 
1422
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1423
if test "${ac_cv_target+set}" = set; then
 
1424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1425
else
 
1426
  ac_cv_target_alias=$target_alias
 
1427
test "x$ac_cv_target_alias" = "x" &&
 
1428
  ac_cv_target_alias=$ac_cv_host_alias
 
1429
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1430
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1431
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1432
   { (exit 1); exit 1; }; }
 
1433
 
 
1434
fi
 
1435
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1436
echo "${ECHO_T}$ac_cv_target" >&6
 
1437
target=$ac_cv_target
 
1438
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1439
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1440
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1441
 
620
1442
 
621
1443
# The aliases save the names the user supplied, while $host etc.
622
1444
# will get canonicalized.
623
 
case $host---$target---$nonopt in
624
 
NONE---*---* | *---NONE---* | *---*---NONE) ;;
625
 
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626
 
esac
627
 
 
628
 
 
629
 
# Make sure we can run config.sub.
630
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632
 
fi
633
 
 
634
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
635
 
echo "configure:636: checking host system type" >&5
636
 
 
637
 
host_alias=$host
638
 
case "$host_alias" in
639
 
NONE)
640
 
  case $nonopt in
641
 
  NONE)
642
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644
 
    fi ;;
645
 
  *) host_alias=$nonopt ;;
646
 
  esac ;;
647
 
esac
648
 
 
649
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653
 
echo "$ac_t""$host" 1>&6
654
 
 
655
 
echo $ac_n "checking target system type""... $ac_c" 1>&6
656
 
echo "configure:657: checking target system type" >&5
657
 
 
658
 
target_alias=$target
659
 
case "$target_alias" in
660
 
NONE)
661
 
  case $nonopt in
662
 
  NONE) target_alias=$host_alias ;;
663
 
  *) target_alias=$nonopt ;;
664
 
  esac ;;
665
 
esac
666
 
 
667
 
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668
 
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669
 
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670
 
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671
 
echo "$ac_t""$target" 1>&6
672
 
 
673
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
674
 
echo "configure:675: checking build system type" >&5
675
 
 
676
 
build_alias=$build
677
 
case "$build_alias" in
678
 
NONE)
679
 
  case $nonopt in
680
 
  NONE) build_alias=$host_alias ;;
681
 
  *) build_alias=$nonopt ;;
682
 
  esac ;;
683
 
esac
684
 
 
685
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689
 
echo "$ac_t""$build" 1>&6
690
 
 
691
 
test "$host_alias" != "$target_alias" &&
 
1445
test -n "$target_alias" &&
692
1446
  test "$program_prefix$program_suffix$program_transform_name" = \
693
1447
    NONENONEs,x,x, &&
694
1448
  program_prefix=${target_alias}-
695
1449
 
696
 
 
697
1450
#--------------------------------------------------------------------
698
1451
# Find the compiler
699
1452
#--------------------------------------------------------------------
700
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1453
ac_ext=c
 
1454
ac_cpp='$CPP $CPPFLAGS'
 
1455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1458
if test -n "$ac_tool_prefix"; then
 
1459
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1460
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1463
if test "${ac_cv_prog_CC+set}" = set; then
 
1464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1465
else
 
1466
  if test -n "$CC"; then
 
1467
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1468
else
 
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1470
for as_dir in $PATH
 
1471
do
 
1472
  IFS=$as_save_IFS
 
1473
  test -z "$as_dir" && as_dir=.
 
1474
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1476
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1478
    break 2
 
1479
  fi
 
1480
done
 
1481
done
 
1482
 
 
1483
fi
 
1484
fi
 
1485
CC=$ac_cv_prog_CC
 
1486
if test -n "$CC"; then
 
1487
  echo "$as_me:$LINENO: result: $CC" >&5
 
1488
echo "${ECHO_T}$CC" >&6
 
1489
else
 
1490
  echo "$as_me:$LINENO: result: no" >&5
 
1491
echo "${ECHO_T}no" >&6
 
1492
fi
 
1493
 
 
1494
fi
 
1495
if test -z "$ac_cv_prog_CC"; then
 
1496
  ac_ct_CC=$CC
 
1497
  # Extract the first word of "gcc", so it can be a program name with args.
701
1498
set dummy gcc; ac_word=$2
702
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703
 
echo "configure:704: checking for $ac_word" >&5
704
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1499
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1501
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1503
else
 
1504
  if test -n "$ac_ct_CC"; then
 
1505
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1506
else
 
1507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1508
for as_dir in $PATH
 
1509
do
 
1510
  IFS=$as_save_IFS
 
1511
  test -z "$as_dir" && as_dir=.
 
1512
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1513
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1514
    ac_cv_prog_ac_ct_CC="gcc"
 
1515
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1516
    break 2
 
1517
  fi
 
1518
done
 
1519
done
 
1520
 
 
1521
fi
 
1522
fi
 
1523
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1524
if test -n "$ac_ct_CC"; then
 
1525
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1526
echo "${ECHO_T}$ac_ct_CC" >&6
 
1527
else
 
1528
  echo "$as_me:$LINENO: result: no" >&5
 
1529
echo "${ECHO_T}no" >&6
 
1530
fi
 
1531
 
 
1532
  CC=$ac_ct_CC
 
1533
else
 
1534
  CC="$ac_cv_prog_CC"
 
1535
fi
 
1536
 
 
1537
if test -z "$CC"; then
 
1538
  if test -n "$ac_tool_prefix"; then
 
1539
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1540
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1541
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1543
if test "${ac_cv_prog_CC+set}" = set; then
 
1544
  echo $ECHO_N "(cached) $ECHO_C" >&6
706
1545
else
707
1546
  if test -n "$CC"; then
708
1547
  ac_cv_prog_CC="$CC" # Let the user override the test.
709
1548
else
710
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
711
 
  ac_dummy="$PATH"
712
 
  for ac_dir in $ac_dummy; do
713
 
    test -z "$ac_dir" && ac_dir=.
714
 
    if test -f $ac_dir/$ac_word; then
715
 
      ac_cv_prog_CC="gcc"
716
 
      break
717
 
    fi
718
 
  done
719
 
  IFS="$ac_save_ifs"
720
 
fi
721
 
fi
722
 
CC="$ac_cv_prog_CC"
 
1549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1550
for as_dir in $PATH
 
1551
do
 
1552
  IFS=$as_save_IFS
 
1553
  test -z "$as_dir" && as_dir=.
 
1554
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1555
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1556
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1557
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1558
    break 2
 
1559
  fi
 
1560
done
 
1561
done
 
1562
 
 
1563
fi
 
1564
fi
 
1565
CC=$ac_cv_prog_CC
723
1566
if test -n "$CC"; then
724
 
  echo "$ac_t""$CC" 1>&6
725
 
else
726
 
  echo "$ac_t""no" 1>&6
727
 
fi
728
 
 
 
1567
  echo "$as_me:$LINENO: result: $CC" >&5
 
1568
echo "${ECHO_T}$CC" >&6
 
1569
else
 
1570
  echo "$as_me:$LINENO: result: no" >&5
 
1571
echo "${ECHO_T}no" >&6
 
1572
fi
 
1573
 
 
1574
fi
 
1575
if test -z "$ac_cv_prog_CC"; then
 
1576
  ac_ct_CC=$CC
 
1577
  # Extract the first word of "cc", so it can be a program name with args.
 
1578
set dummy cc; ac_word=$2
 
1579
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1581
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1583
else
 
1584
  if test -n "$ac_ct_CC"; then
 
1585
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1586
else
 
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1588
for as_dir in $PATH
 
1589
do
 
1590
  IFS=$as_save_IFS
 
1591
  test -z "$as_dir" && as_dir=.
 
1592
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1593
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1594
    ac_cv_prog_ac_ct_CC="cc"
 
1595
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1596
    break 2
 
1597
  fi
 
1598
done
 
1599
done
 
1600
 
 
1601
fi
 
1602
fi
 
1603
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1604
if test -n "$ac_ct_CC"; then
 
1605
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1606
echo "${ECHO_T}$ac_ct_CC" >&6
 
1607
else
 
1608
  echo "$as_me:$LINENO: result: no" >&5
 
1609
echo "${ECHO_T}no" >&6
 
1610
fi
 
1611
 
 
1612
  CC=$ac_ct_CC
 
1613
else
 
1614
  CC="$ac_cv_prog_CC"
 
1615
fi
 
1616
 
 
1617
fi
729
1618
if test -z "$CC"; then
730
1619
  # Extract the first word of "cc", so it can be a program name with args.
731
1620
set dummy cc; ac_word=$2
732
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733
 
echo "configure:734: checking for $ac_word" >&5
734
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1623
if test "${ac_cv_prog_CC+set}" = set; then
 
1624
  echo $ECHO_N "(cached) $ECHO_C" >&6
736
1625
else
737
1626
  if test -n "$CC"; then
738
1627
  ac_cv_prog_CC="$CC" # Let the user override the test.
739
1628
else
740
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
741
1629
  ac_prog_rejected=no
742
 
  ac_dummy="$PATH"
743
 
  for ac_dir in $ac_dummy; do
744
 
    test -z "$ac_dir" && ac_dir=.
745
 
    if test -f $ac_dir/$ac_word; then
746
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
747
 
        ac_prog_rejected=yes
748
 
        continue
749
 
      fi
750
 
      ac_cv_prog_CC="cc"
751
 
      break
752
 
    fi
753
 
  done
754
 
  IFS="$ac_save_ifs"
 
1630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1631
for as_dir in $PATH
 
1632
do
 
1633
  IFS=$as_save_IFS
 
1634
  test -z "$as_dir" && as_dir=.
 
1635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1636
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1637
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1638
       ac_prog_rejected=yes
 
1639
       continue
 
1640
     fi
 
1641
    ac_cv_prog_CC="cc"
 
1642
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1643
    break 2
 
1644
  fi
 
1645
done
 
1646
done
 
1647
 
755
1648
if test $ac_prog_rejected = yes; then
756
1649
  # We found a bogon in the path, so make sure we never use it.
757
1650
  set dummy $ac_cv_prog_CC
758
1651
  shift
759
 
  if test $# -gt 0; then
 
1652
  if test $# != 0; then
760
1653
    # We chose a different compiler from the bogus one.
761
1654
    # However, it has the same basename, so the bogon will be chosen
762
1655
    # first if we set CC to just the basename; use the full file name.
763
1656
    shift
764
 
    set dummy "$ac_dir/$ac_word" "$@"
765
 
    shift
766
 
    ac_cv_prog_CC="$@"
 
1657
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
767
1658
  fi
768
1659
fi
769
1660
fi
770
1661
fi
771
 
CC="$ac_cv_prog_CC"
 
1662
CC=$ac_cv_prog_CC
772
1663
if test -n "$CC"; then
773
 
  echo "$ac_t""$CC" 1>&6
 
1664
  echo "$as_me:$LINENO: result: $CC" >&5
 
1665
echo "${ECHO_T}$CC" >&6
774
1666
else
775
 
  echo "$ac_t""no" 1>&6
 
1667
  echo "$as_me:$LINENO: result: no" >&5
 
1668
echo "${ECHO_T}no" >&6
776
1669
fi
777
1670
 
778
 
  if test -z "$CC"; then
779
 
    case "`uname -s`" in
780
 
    *win32* | *WIN32*)
781
 
      # Extract the first word of "cl", so it can be a program name with args.
782
 
set dummy cl; ac_word=$2
783
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784
 
echo "configure:785: checking for $ac_word" >&5
785
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1671
fi
 
1672
if test -z "$CC"; then
 
1673
  if test -n "$ac_tool_prefix"; then
 
1674
  for ac_prog in cl
 
1675
  do
 
1676
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1677
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1678
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1680
if test "${ac_cv_prog_CC+set}" = set; then
 
1681
  echo $ECHO_N "(cached) $ECHO_C" >&6
787
1682
else
788
1683
  if test -n "$CC"; then
789
1684
  ac_cv_prog_CC="$CC" # Let the user override the test.
790
1685
else
791
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
792
 
  ac_dummy="$PATH"
793
 
  for ac_dir in $ac_dummy; do
794
 
    test -z "$ac_dir" && ac_dir=.
795
 
    if test -f $ac_dir/$ac_word; then
796
 
      ac_cv_prog_CC="cl"
797
 
      break
798
 
    fi
 
1686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1687
for as_dir in $PATH
 
1688
do
 
1689
  IFS=$as_save_IFS
 
1690
  test -z "$as_dir" && as_dir=.
 
1691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1692
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1693
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1695
    break 2
 
1696
  fi
 
1697
done
 
1698
done
 
1699
 
 
1700
fi
 
1701
fi
 
1702
CC=$ac_cv_prog_CC
 
1703
if test -n "$CC"; then
 
1704
  echo "$as_me:$LINENO: result: $CC" >&5
 
1705
echo "${ECHO_T}$CC" >&6
 
1706
else
 
1707
  echo "$as_me:$LINENO: result: no" >&5
 
1708
echo "${ECHO_T}no" >&6
 
1709
fi
 
1710
 
 
1711
    test -n "$CC" && break
799
1712
  done
800
 
  IFS="$ac_save_ifs"
801
 
fi
802
 
fi
803
 
CC="$ac_cv_prog_CC"
804
 
if test -n "$CC"; then
805
 
  echo "$ac_t""$CC" 1>&6
806
 
else
807
 
  echo "$ac_t""no" 1>&6
808
 
fi
809
 
 ;;
810
 
    esac
 
1713
fi
 
1714
if test -z "$CC"; then
 
1715
  ac_ct_CC=$CC
 
1716
  for ac_prog in cl
 
1717
do
 
1718
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1719
set dummy $ac_prog; ac_word=$2
 
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1722
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1724
else
 
1725
  if test -n "$ac_ct_CC"; then
 
1726
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1727
else
 
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1729
for as_dir in $PATH
 
1730
do
 
1731
  IFS=$as_save_IFS
 
1732
  test -z "$as_dir" && as_dir=.
 
1733
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1734
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1735
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1737
    break 2
811
1738
  fi
812
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
813
 
fi
814
 
 
815
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816
 
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
817
 
 
818
 
ac_ext=c
819
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820
 
ac_cpp='$CPP $CPPFLAGS'
821
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823
 
cross_compiling=$ac_cv_prog_cc_cross
824
 
 
825
 
cat > conftest.$ac_ext << EOF
826
 
 
827
 
#line 828 "configure"
828
 
#include "confdefs.h"
829
 
 
830
 
main(){return(0);}
831
 
EOF
832
 
if { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
833
 
  ac_cv_prog_cc_works=yes
834
 
  # If we can't run a trivial program, we are probably using a cross compiler.
835
 
  if (./conftest; exit) 2>/dev/null; then
836
 
    ac_cv_prog_cc_cross=no
 
1739
done
 
1740
done
 
1741
 
 
1742
fi
 
1743
fi
 
1744
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1745
if test -n "$ac_ct_CC"; then
 
1746
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1747
echo "${ECHO_T}$ac_ct_CC" >&6
 
1748
else
 
1749
  echo "$as_me:$LINENO: result: no" >&5
 
1750
echo "${ECHO_T}no" >&6
 
1751
fi
 
1752
 
 
1753
  test -n "$ac_ct_CC" && break
 
1754
done
 
1755
 
 
1756
  CC=$ac_ct_CC
 
1757
fi
 
1758
 
 
1759
fi
 
1760
 
 
1761
 
 
1762
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1763
See \`config.log' for more details." >&5
 
1764
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1765
See \`config.log' for more details." >&2;}
 
1766
   { (exit 1); exit 1; }; }
 
1767
 
 
1768
# Provide some information about the compiler.
 
1769
echo "$as_me:$LINENO:" \
 
1770
     "checking for C compiler version" >&5
 
1771
ac_compiler=`set X $ac_compile; echo $2`
 
1772
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1773
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1774
  ac_status=$?
 
1775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1776
  (exit $ac_status); }
 
1777
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1778
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1779
  ac_status=$?
 
1780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1781
  (exit $ac_status); }
 
1782
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1783
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1784
  ac_status=$?
 
1785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1786
  (exit $ac_status); }
 
1787
 
 
1788
cat >conftest.$ac_ext <<_ACEOF
 
1789
/* confdefs.h.  */
 
1790
_ACEOF
 
1791
cat confdefs.h >>conftest.$ac_ext
 
1792
cat >>conftest.$ac_ext <<_ACEOF
 
1793
/* end confdefs.h.  */
 
1794
 
 
1795
int
 
1796
main ()
 
1797
{
 
1798
 
 
1799
  ;
 
1800
  return 0;
 
1801
}
 
1802
_ACEOF
 
1803
ac_clean_files_save=$ac_clean_files
 
1804
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1805
# Try to create an executable without -o first, disregard a.out.
 
1806
# It will help us diagnose broken compilers, and finding out an intuition
 
1807
# of exeext.
 
1808
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1809
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1810
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1811
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1812
  (eval $ac_link_default) 2>&5
 
1813
  ac_status=$?
 
1814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1815
  (exit $ac_status); }; then
 
1816
  # Find the output, starting from the most likely.  This scheme is
 
1817
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1818
# resort.
 
1819
 
 
1820
# Be careful to initialize this variable, since it used to be cached.
 
1821
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1822
ac_cv_exeext=
 
1823
# b.out is created by i960 compilers.
 
1824
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1825
do
 
1826
  test -f "$ac_file" || continue
 
1827
  case $ac_file in
 
1828
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1829
        ;;
 
1830
    conftest.$ac_ext )
 
1831
        # This is the source file.
 
1832
        ;;
 
1833
    [ab].out )
 
1834
        # We found the default executable, but exeext='' is most
 
1835
        # certainly right.
 
1836
        break;;
 
1837
    *.* )
 
1838
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1839
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1840
        # but it would be cool to find out if it's true.  Does anybody
 
1841
        # maintain Libtool? --akim.
 
1842
        export ac_cv_exeext
 
1843
        break;;
 
1844
    * )
 
1845
        break;;
 
1846
  esac
 
1847
done
 
1848
else
 
1849
  echo "$as_me: failed program was:" >&5
 
1850
sed 's/^/| /' conftest.$ac_ext >&5
 
1851
 
 
1852
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1853
See \`config.log' for more details." >&5
 
1854
echo "$as_me: error: C compiler cannot create executables
 
1855
See \`config.log' for more details." >&2;}
 
1856
   { (exit 77); exit 77; }; }
 
1857
fi
 
1858
 
 
1859
ac_exeext=$ac_cv_exeext
 
1860
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1861
echo "${ECHO_T}$ac_file" >&6
 
1862
 
 
1863
# Check the compiler produces executables we can run.  If not, either
 
1864
# the compiler is broken, or we cross compile.
 
1865
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1866
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1867
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1868
# If not cross compiling, check that we can run a simple program.
 
1869
if test "$cross_compiling" != yes; then
 
1870
  if { ac_try='./$ac_file'
 
1871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1872
  (eval $ac_try) 2>&5
 
1873
  ac_status=$?
 
1874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1875
  (exit $ac_status); }; }; then
 
1876
    cross_compiling=no
837
1877
  else
838
 
    ac_cv_prog_cc_cross=yes
 
1878
    if test "$cross_compiling" = maybe; then
 
1879
        cross_compiling=yes
 
1880
    else
 
1881
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1882
If you meant to cross compile, use \`--host'.
 
1883
See \`config.log' for more details." >&5
 
1884
echo "$as_me: error: cannot run C compiled programs.
 
1885
If you meant to cross compile, use \`--host'.
 
1886
See \`config.log' for more details." >&2;}
 
1887
   { (exit 1); exit 1; }; }
 
1888
    fi
839
1889
  fi
840
 
else
841
 
  echo "configure: failed program was:" >&5
842
 
  cat conftest.$ac_ext >&5
843
 
  ac_cv_prog_cc_works=no
844
 
fi
845
 
rm -fr conftest*
846
 
ac_ext=c
847
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
848
 
ac_cpp='$CPP $CPPFLAGS'
849
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
850
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
851
 
cross_compiling=$ac_cv_prog_cc_cross
852
 
 
853
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
854
 
if test $ac_cv_prog_cc_works = no; then
855
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
856
 
fi
857
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
858
 
echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
859
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
860
 
cross_compiling=$ac_cv_prog_cc_cross
861
 
 
862
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
863
 
echo "configure:864: checking whether we are using GNU C" >&5
864
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
865
 
  echo $ac_n "(cached) $ac_c" 1>&6
866
 
else
867
 
  cat > conftest.c <<EOF
868
 
#ifdef __GNUC__
869
 
  yes;
 
1890
fi
 
1891
echo "$as_me:$LINENO: result: yes" >&5
 
1892
echo "${ECHO_T}yes" >&6
 
1893
 
 
1894
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1895
ac_clean_files=$ac_clean_files_save
 
1896
# Check the compiler produces executables we can run.  If not, either
 
1897
# the compiler is broken, or we cross compile.
 
1898
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1899
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1900
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1901
echo "${ECHO_T}$cross_compiling" >&6
 
1902
 
 
1903
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1904
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1905
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1906
  (eval $ac_link) 2>&5
 
1907
  ac_status=$?
 
1908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1909
  (exit $ac_status); }; then
 
1910
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1911
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1912
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1913
# `rm'.
 
1914
for ac_file in conftest.exe conftest conftest.*; do
 
1915
  test -f "$ac_file" || continue
 
1916
  case $ac_file in
 
1917
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1918
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1919
          export ac_cv_exeext
 
1920
          break;;
 
1921
    * ) break;;
 
1922
  esac
 
1923
done
 
1924
else
 
1925
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1926
See \`config.log' for more details." >&5
 
1927
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1928
See \`config.log' for more details." >&2;}
 
1929
   { (exit 1); exit 1; }; }
 
1930
fi
 
1931
 
 
1932
rm -f conftest$ac_cv_exeext
 
1933
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1934
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1935
 
 
1936
rm -f conftest.$ac_ext
 
1937
EXEEXT=$ac_cv_exeext
 
1938
ac_exeext=$EXEEXT
 
1939
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1940
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1941
if test "${ac_cv_objext+set}" = set; then
 
1942
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1943
else
 
1944
  cat >conftest.$ac_ext <<_ACEOF
 
1945
/* confdefs.h.  */
 
1946
_ACEOF
 
1947
cat confdefs.h >>conftest.$ac_ext
 
1948
cat >>conftest.$ac_ext <<_ACEOF
 
1949
/* end confdefs.h.  */
 
1950
 
 
1951
int
 
1952
main ()
 
1953
{
 
1954
 
 
1955
  ;
 
1956
  return 0;
 
1957
}
 
1958
_ACEOF
 
1959
rm -f conftest.o conftest.obj
 
1960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1961
  (eval $ac_compile) 2>&5
 
1962
  ac_status=$?
 
1963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1964
  (exit $ac_status); }; then
 
1965
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1966
  case $ac_file in
 
1967
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1968
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1969
       break;;
 
1970
  esac
 
1971
done
 
1972
else
 
1973
  echo "$as_me: failed program was:" >&5
 
1974
sed 's/^/| /' conftest.$ac_ext >&5
 
1975
 
 
1976
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1977
See \`config.log' for more details." >&5
 
1978
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1979
See \`config.log' for more details." >&2;}
 
1980
   { (exit 1); exit 1; }; }
 
1981
fi
 
1982
 
 
1983
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1984
fi
 
1985
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1986
echo "${ECHO_T}$ac_cv_objext" >&6
 
1987
OBJEXT=$ac_cv_objext
 
1988
ac_objext=$OBJEXT
 
1989
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1990
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1991
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1993
else
 
1994
  cat >conftest.$ac_ext <<_ACEOF
 
1995
/* confdefs.h.  */
 
1996
_ACEOF
 
1997
cat confdefs.h >>conftest.$ac_ext
 
1998
cat >>conftest.$ac_ext <<_ACEOF
 
1999
/* end confdefs.h.  */
 
2000
 
 
2001
int
 
2002
main ()
 
2003
{
 
2004
#ifndef __GNUC__
 
2005
       choke me
870
2006
#endif
871
 
EOF
872
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
873
 
  ac_cv_prog_gcc=yes
874
 
else
875
 
  ac_cv_prog_gcc=no
876
 
fi
877
 
fi
878
 
 
879
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
880
 
 
881
 
if test $ac_cv_prog_gcc = yes; then
882
 
  GCC=yes
883
 
else
884
 
  GCC=
885
 
fi
886
 
 
887
 
ac_test_CFLAGS="${CFLAGS+set}"
888
 
ac_save_CFLAGS="$CFLAGS"
889
 
CFLAGS=
890
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
891
 
echo "configure:892: checking whether ${CC-cc} accepts -g" >&5
892
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
893
 
  echo $ac_n "(cached) $ac_c" 1>&6
894
 
else
895
 
  echo 'void f(){}' > conftest.c
896
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2007
 
 
2008
  ;
 
2009
  return 0;
 
2010
}
 
2011
_ACEOF
 
2012
rm -f conftest.$ac_objext
 
2013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2014
  (eval $ac_compile) 2>conftest.er1
 
2015
  ac_status=$?
 
2016
  grep -v '^ *+' conftest.er1 >conftest.err
 
2017
  rm -f conftest.er1
 
2018
  cat conftest.err >&5
 
2019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2020
  (exit $ac_status); } &&
 
2021
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2023
  (eval $ac_try) 2>&5
 
2024
  ac_status=$?
 
2025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2026
  (exit $ac_status); }; } &&
 
2027
         { ac_try='test -s conftest.$ac_objext'
 
2028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2029
  (eval $ac_try) 2>&5
 
2030
  ac_status=$?
 
2031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2032
  (exit $ac_status); }; }; then
 
2033
  ac_compiler_gnu=yes
 
2034
else
 
2035
  echo "$as_me: failed program was:" >&5
 
2036
sed 's/^/| /' conftest.$ac_ext >&5
 
2037
 
 
2038
ac_compiler_gnu=no
 
2039
fi
 
2040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2041
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2042
 
 
2043
fi
 
2044
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2045
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2046
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2047
ac_test_CFLAGS=${CFLAGS+set}
 
2048
ac_save_CFLAGS=$CFLAGS
 
2049
CFLAGS="-g"
 
2050
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2051
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2052
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2054
else
 
2055
  cat >conftest.$ac_ext <<_ACEOF
 
2056
/* confdefs.h.  */
 
2057
_ACEOF
 
2058
cat confdefs.h >>conftest.$ac_ext
 
2059
cat >>conftest.$ac_ext <<_ACEOF
 
2060
/* end confdefs.h.  */
 
2061
 
 
2062
int
 
2063
main ()
 
2064
{
 
2065
 
 
2066
  ;
 
2067
  return 0;
 
2068
}
 
2069
_ACEOF
 
2070
rm -f conftest.$ac_objext
 
2071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2072
  (eval $ac_compile) 2>conftest.er1
 
2073
  ac_status=$?
 
2074
  grep -v '^ *+' conftest.er1 >conftest.err
 
2075
  rm -f conftest.er1
 
2076
  cat conftest.err >&5
 
2077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2078
  (exit $ac_status); } &&
 
2079
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2081
  (eval $ac_try) 2>&5
 
2082
  ac_status=$?
 
2083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2084
  (exit $ac_status); }; } &&
 
2085
         { ac_try='test -s conftest.$ac_objext'
 
2086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2087
  (eval $ac_try) 2>&5
 
2088
  ac_status=$?
 
2089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2090
  (exit $ac_status); }; }; then
897
2091
  ac_cv_prog_cc_g=yes
898
2092
else
899
 
  ac_cv_prog_cc_g=no
900
 
fi
901
 
rm -f conftest*
902
 
 
903
 
fi
904
 
 
905
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2093
  echo "$as_me: failed program was:" >&5
 
2094
sed 's/^/| /' conftest.$ac_ext >&5
 
2095
 
 
2096
ac_cv_prog_cc_g=no
 
2097
fi
 
2098
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2099
fi
 
2100
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2101
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
906
2102
if test "$ac_test_CFLAGS" = set; then
907
 
  CFLAGS="$ac_save_CFLAGS"
 
2103
  CFLAGS=$ac_save_CFLAGS
908
2104
elif test $ac_cv_prog_cc_g = yes; then
909
2105
  if test "$GCC" = yes; then
910
2106
    CFLAGS="-g -O2"
918
2114
    CFLAGS=
919
2115
  fi
920
2116
fi
921
 
 
922
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
923
 
echo "configure:924: checking how to run the C preprocessor" >&5
 
2117
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2118
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2119
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2121
else
 
2122
  ac_cv_prog_cc_stdc=no
 
2123
ac_save_CC=$CC
 
2124
cat >conftest.$ac_ext <<_ACEOF
 
2125
/* confdefs.h.  */
 
2126
_ACEOF
 
2127
cat confdefs.h >>conftest.$ac_ext
 
2128
cat >>conftest.$ac_ext <<_ACEOF
 
2129
/* end confdefs.h.  */
 
2130
#include <stdarg.h>
 
2131
#include <stdio.h>
 
2132
#include <sys/types.h>
 
2133
#include <sys/stat.h>
 
2134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2135
struct buf { int x; };
 
2136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2137
static char *e (p, i)
 
2138
     char **p;
 
2139
     int i;
 
2140
{
 
2141
  return p[i];
 
2142
}
 
2143
static char *f (char * (*g) (char **, int), char **p, ...)
 
2144
{
 
2145
  char *s;
 
2146
  va_list v;
 
2147
  va_start (v,p);
 
2148
  s = g (p, va_arg (v,int));
 
2149
  va_end (v);
 
2150
  return s;
 
2151
}
 
2152
 
 
2153
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2154
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2155
   These don't provoke an error unfortunately, instead are silently treated
 
2156
   as 'x'.  The following induces an error, until -std1 is added to get
 
2157
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2158
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2159
   that's true only with -std1.  */
 
2160
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2161
 
 
2162
int test (int i, double x);
 
2163
struct s1 {int (*f) (int a);};
 
2164
struct s2 {int (*f) (double a);};
 
2165
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2166
int argc;
 
2167
char **argv;
 
2168
int
 
2169
main ()
 
2170
{
 
2171
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2172
  ;
 
2173
  return 0;
 
2174
}
 
2175
_ACEOF
 
2176
# Don't try gcc -ansi; that turns off useful extensions and
 
2177
# breaks some systems' header files.
 
2178
# AIX                   -qlanglvl=ansi
 
2179
# Ultrix and OSF/1      -std1
 
2180
# HP-UX 10.20 and later -Ae
 
2181
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2182
# SVR4                  -Xc -D__EXTENSIONS__
 
2183
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2184
do
 
2185
  CC="$ac_save_CC $ac_arg"
 
2186
  rm -f conftest.$ac_objext
 
2187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2188
  (eval $ac_compile) 2>conftest.er1
 
2189
  ac_status=$?
 
2190
  grep -v '^ *+' conftest.er1 >conftest.err
 
2191
  rm -f conftest.er1
 
2192
  cat conftest.err >&5
 
2193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2194
  (exit $ac_status); } &&
 
2195
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2197
  (eval $ac_try) 2>&5
 
2198
  ac_status=$?
 
2199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2200
  (exit $ac_status); }; } &&
 
2201
         { ac_try='test -s conftest.$ac_objext'
 
2202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2203
  (eval $ac_try) 2>&5
 
2204
  ac_status=$?
 
2205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2206
  (exit $ac_status); }; }; then
 
2207
  ac_cv_prog_cc_stdc=$ac_arg
 
2208
break
 
2209
else
 
2210
  echo "$as_me: failed program was:" >&5
 
2211
sed 's/^/| /' conftest.$ac_ext >&5
 
2212
 
 
2213
fi
 
2214
rm -f conftest.err conftest.$ac_objext
 
2215
done
 
2216
rm -f conftest.$ac_ext conftest.$ac_objext
 
2217
CC=$ac_save_CC
 
2218
 
 
2219
fi
 
2220
 
 
2221
case "x$ac_cv_prog_cc_stdc" in
 
2222
  x|xno)
 
2223
    echo "$as_me:$LINENO: result: none needed" >&5
 
2224
echo "${ECHO_T}none needed" >&6 ;;
 
2225
  *)
 
2226
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2227
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2228
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2229
esac
 
2230
 
 
2231
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2232
# in C++ we need to declare it.  In case someone uses the same compiler
 
2233
# for both compiling C and C++ we need to have the C++ compiler decide
 
2234
# the declaration of exit, since it's the most demanding environment.
 
2235
cat >conftest.$ac_ext <<_ACEOF
 
2236
#ifndef __cplusplus
 
2237
  choke me
 
2238
#endif
 
2239
_ACEOF
 
2240
rm -f conftest.$ac_objext
 
2241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2242
  (eval $ac_compile) 2>conftest.er1
 
2243
  ac_status=$?
 
2244
  grep -v '^ *+' conftest.er1 >conftest.err
 
2245
  rm -f conftest.er1
 
2246
  cat conftest.err >&5
 
2247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2248
  (exit $ac_status); } &&
 
2249
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2251
  (eval $ac_try) 2>&5
 
2252
  ac_status=$?
 
2253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2254
  (exit $ac_status); }; } &&
 
2255
         { ac_try='test -s conftest.$ac_objext'
 
2256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2257
  (eval $ac_try) 2>&5
 
2258
  ac_status=$?
 
2259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2260
  (exit $ac_status); }; }; then
 
2261
  for ac_declaration in \
 
2262
   '' \
 
2263
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2264
   'extern "C" void std::exit (int); using std::exit;' \
 
2265
   'extern "C" void exit (int) throw ();' \
 
2266
   'extern "C" void exit (int);' \
 
2267
   'void exit (int);'
 
2268
do
 
2269
  cat >conftest.$ac_ext <<_ACEOF
 
2270
/* confdefs.h.  */
 
2271
_ACEOF
 
2272
cat confdefs.h >>conftest.$ac_ext
 
2273
cat >>conftest.$ac_ext <<_ACEOF
 
2274
/* end confdefs.h.  */
 
2275
$ac_declaration
 
2276
#include <stdlib.h>
 
2277
int
 
2278
main ()
 
2279
{
 
2280
exit (42);
 
2281
  ;
 
2282
  return 0;
 
2283
}
 
2284
_ACEOF
 
2285
rm -f conftest.$ac_objext
 
2286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2287
  (eval $ac_compile) 2>conftest.er1
 
2288
  ac_status=$?
 
2289
  grep -v '^ *+' conftest.er1 >conftest.err
 
2290
  rm -f conftest.er1
 
2291
  cat conftest.err >&5
 
2292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2293
  (exit $ac_status); } &&
 
2294
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2296
  (eval $ac_try) 2>&5
 
2297
  ac_status=$?
 
2298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2299
  (exit $ac_status); }; } &&
 
2300
         { ac_try='test -s conftest.$ac_objext'
 
2301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2302
  (eval $ac_try) 2>&5
 
2303
  ac_status=$?
 
2304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2305
  (exit $ac_status); }; }; then
 
2306
  :
 
2307
else
 
2308
  echo "$as_me: failed program was:" >&5
 
2309
sed 's/^/| /' conftest.$ac_ext >&5
 
2310
 
 
2311
continue
 
2312
fi
 
2313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2314
  cat >conftest.$ac_ext <<_ACEOF
 
2315
/* confdefs.h.  */
 
2316
_ACEOF
 
2317
cat confdefs.h >>conftest.$ac_ext
 
2318
cat >>conftest.$ac_ext <<_ACEOF
 
2319
/* end confdefs.h.  */
 
2320
$ac_declaration
 
2321
int
 
2322
main ()
 
2323
{
 
2324
exit (42);
 
2325
  ;
 
2326
  return 0;
 
2327
}
 
2328
_ACEOF
 
2329
rm -f conftest.$ac_objext
 
2330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2331
  (eval $ac_compile) 2>conftest.er1
 
2332
  ac_status=$?
 
2333
  grep -v '^ *+' conftest.er1 >conftest.err
 
2334
  rm -f conftest.er1
 
2335
  cat conftest.err >&5
 
2336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2337
  (exit $ac_status); } &&
 
2338
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2340
  (eval $ac_try) 2>&5
 
2341
  ac_status=$?
 
2342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2343
  (exit $ac_status); }; } &&
 
2344
         { ac_try='test -s conftest.$ac_objext'
 
2345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2346
  (eval $ac_try) 2>&5
 
2347
  ac_status=$?
 
2348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2349
  (exit $ac_status); }; }; then
 
2350
  break
 
2351
else
 
2352
  echo "$as_me: failed program was:" >&5
 
2353
sed 's/^/| /' conftest.$ac_ext >&5
 
2354
 
 
2355
fi
 
2356
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2357
done
 
2358
rm -f conftest*
 
2359
if test -n "$ac_declaration"; then
 
2360
  echo '#ifdef __cplusplus' >>confdefs.h
 
2361
  echo $ac_declaration      >>confdefs.h
 
2362
  echo '#endif'             >>confdefs.h
 
2363
fi
 
2364
 
 
2365
else
 
2366
  echo "$as_me: failed program was:" >&5
 
2367
sed 's/^/| /' conftest.$ac_ext >&5
 
2368
 
 
2369
fi
 
2370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2371
ac_ext=c
 
2372
ac_cpp='$CPP $CPPFLAGS'
 
2373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2376
 
 
2377
ac_ext=c
 
2378
ac_cpp='$CPP $CPPFLAGS'
 
2379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2382
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2383
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
924
2384
# On Suns, sometimes $CPP names a directory.
925
2385
if test -n "$CPP" && test -d "$CPP"; then
926
2386
  CPP=
927
2387
fi
928
2388
if test -z "$CPP"; then
929
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
930
 
  echo $ac_n "(cached) $ac_c" 1>&6
931
 
else
932
 
    # This must be in double quotes, not single quotes, because CPP may get
933
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
934
 
  CPP="${CC-cc} -E"
935
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
936
 
  # not just through cpp.
937
 
  cat > conftest.$ac_ext <<EOF
938
 
#line 939 "configure"
939
 
#include "confdefs.h"
940
 
#include <assert.h>
941
 
Syntax Error
942
 
EOF
943
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944
 
{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946
 
if test -z "$ac_err"; then
947
 
  :
948
 
else
949
 
  echo "$ac_err" >&5
950
 
  echo "configure: failed program was:" >&5
951
 
  cat conftest.$ac_ext >&5
952
 
  rm -rf conftest*
953
 
  CPP="${CC-cc} -E -traditional-cpp"
954
 
  cat > conftest.$ac_ext <<EOF
955
 
#line 956 "configure"
956
 
#include "confdefs.h"
957
 
#include <assert.h>
958
 
Syntax Error
959
 
EOF
960
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
961
 
{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
962
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963
 
if test -z "$ac_err"; then
964
 
  :
965
 
else
966
 
  echo "$ac_err" >&5
967
 
  echo "configure: failed program was:" >&5
968
 
  cat conftest.$ac_ext >&5
969
 
  rm -rf conftest*
970
 
  CPP="${CC-cc} -nologo -E"
971
 
  cat > conftest.$ac_ext <<EOF
972
 
#line 973 "configure"
973
 
#include "confdefs.h"
974
 
#include <assert.h>
975
 
Syntax Error
976
 
EOF
977
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
978
 
{ (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
979
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
980
 
if test -z "$ac_err"; then
981
 
  :
982
 
else
983
 
  echo "$ac_err" >&5
984
 
  echo "configure: failed program was:" >&5
985
 
  cat conftest.$ac_ext >&5
986
 
  rm -rf conftest*
987
 
  CPP=/lib/cpp
988
 
fi
989
 
rm -f conftest*
990
 
fi
991
 
rm -f conftest*
992
 
fi
993
 
rm -f conftest*
994
 
  ac_cv_prog_CPP="$CPP"
995
 
fi
996
 
  CPP="$ac_cv_prog_CPP"
997
 
else
998
 
  ac_cv_prog_CPP="$CPP"
999
 
fi
1000
 
echo "$ac_t""$CPP" 1>&6
 
2389
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2391
else
 
2392
      # Double quotes because CPP needs to be expanded
 
2393
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2394
    do
 
2395
      ac_preproc_ok=false
 
2396
for ac_c_preproc_warn_flag in '' yes
 
2397
do
 
2398
  # Use a header file that comes with gcc, so configuring glibc
 
2399
  # with a fresh cross-compiler works.
 
2400
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2401
  # <limits.h> exists even on freestanding compilers.
 
2402
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2403
  # not just through cpp. "Syntax error" is here to catch this case.
 
2404
  cat >conftest.$ac_ext <<_ACEOF
 
2405
/* confdefs.h.  */
 
2406
_ACEOF
 
2407
cat confdefs.h >>conftest.$ac_ext
 
2408
cat >>conftest.$ac_ext <<_ACEOF
 
2409
/* end confdefs.h.  */
 
2410
#ifdef __STDC__
 
2411
# include <limits.h>
 
2412
#else
 
2413
# include <assert.h>
 
2414
#endif
 
2415
                     Syntax error
 
2416
_ACEOF
 
2417
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2418
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2419
  ac_status=$?
 
2420
  grep -v '^ *+' conftest.er1 >conftest.err
 
2421
  rm -f conftest.er1
 
2422
  cat conftest.err >&5
 
2423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2424
  (exit $ac_status); } >/dev/null; then
 
2425
  if test -s conftest.err; then
 
2426
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2427
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2428
  else
 
2429
    ac_cpp_err=
 
2430
  fi
 
2431
else
 
2432
  ac_cpp_err=yes
 
2433
fi
 
2434
if test -z "$ac_cpp_err"; then
 
2435
  :
 
2436
else
 
2437
  echo "$as_me: failed program was:" >&5
 
2438
sed 's/^/| /' conftest.$ac_ext >&5
 
2439
 
 
2440
  # Broken: fails on valid input.
 
2441
continue
 
2442
fi
 
2443
rm -f conftest.err conftest.$ac_ext
 
2444
 
 
2445
  # OK, works on sane cases.  Now check whether non-existent headers
 
2446
  # can be detected and how.
 
2447
  cat >conftest.$ac_ext <<_ACEOF
 
2448
/* confdefs.h.  */
 
2449
_ACEOF
 
2450
cat confdefs.h >>conftest.$ac_ext
 
2451
cat >>conftest.$ac_ext <<_ACEOF
 
2452
/* end confdefs.h.  */
 
2453
#include <ac_nonexistent.h>
 
2454
_ACEOF
 
2455
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2456
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2457
  ac_status=$?
 
2458
  grep -v '^ *+' conftest.er1 >conftest.err
 
2459
  rm -f conftest.er1
 
2460
  cat conftest.err >&5
 
2461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2462
  (exit $ac_status); } >/dev/null; then
 
2463
  if test -s conftest.err; then
 
2464
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2465
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2466
  else
 
2467
    ac_cpp_err=
 
2468
  fi
 
2469
else
 
2470
  ac_cpp_err=yes
 
2471
fi
 
2472
if test -z "$ac_cpp_err"; then
 
2473
  # Broken: success on invalid input.
 
2474
continue
 
2475
else
 
2476
  echo "$as_me: failed program was:" >&5
 
2477
sed 's/^/| /' conftest.$ac_ext >&5
 
2478
 
 
2479
  # Passes both tests.
 
2480
ac_preproc_ok=:
 
2481
break
 
2482
fi
 
2483
rm -f conftest.err conftest.$ac_ext
 
2484
 
 
2485
done
 
2486
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2487
rm -f conftest.err conftest.$ac_ext
 
2488
if $ac_preproc_ok; then
 
2489
  break
 
2490
fi
 
2491
 
 
2492
    done
 
2493
    ac_cv_prog_CPP=$CPP
 
2494
 
 
2495
fi
 
2496
  CPP=$ac_cv_prog_CPP
 
2497
else
 
2498
  ac_cv_prog_CPP=$CPP
 
2499
fi
 
2500
echo "$as_me:$LINENO: result: $CPP" >&5
 
2501
echo "${ECHO_T}$CPP" >&6
 
2502
ac_preproc_ok=false
 
2503
for ac_c_preproc_warn_flag in '' yes
 
2504
do
 
2505
  # Use a header file that comes with gcc, so configuring glibc
 
2506
  # with a fresh cross-compiler works.
 
2507
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2508
  # <limits.h> exists even on freestanding compilers.
 
2509
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2510
  # not just through cpp. "Syntax error" is here to catch this case.
 
2511
  cat >conftest.$ac_ext <<_ACEOF
 
2512
/* confdefs.h.  */
 
2513
_ACEOF
 
2514
cat confdefs.h >>conftest.$ac_ext
 
2515
cat >>conftest.$ac_ext <<_ACEOF
 
2516
/* end confdefs.h.  */
 
2517
#ifdef __STDC__
 
2518
# include <limits.h>
 
2519
#else
 
2520
# include <assert.h>
 
2521
#endif
 
2522
                     Syntax error
 
2523
_ACEOF
 
2524
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2525
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2526
  ac_status=$?
 
2527
  grep -v '^ *+' conftest.er1 >conftest.err
 
2528
  rm -f conftest.er1
 
2529
  cat conftest.err >&5
 
2530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2531
  (exit $ac_status); } >/dev/null; then
 
2532
  if test -s conftest.err; then
 
2533
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2534
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2535
  else
 
2536
    ac_cpp_err=
 
2537
  fi
 
2538
else
 
2539
  ac_cpp_err=yes
 
2540
fi
 
2541
if test -z "$ac_cpp_err"; then
 
2542
  :
 
2543
else
 
2544
  echo "$as_me: failed program was:" >&5
 
2545
sed 's/^/| /' conftest.$ac_ext >&5
 
2546
 
 
2547
  # Broken: fails on valid input.
 
2548
continue
 
2549
fi
 
2550
rm -f conftest.err conftest.$ac_ext
 
2551
 
 
2552
  # OK, works on sane cases.  Now check whether non-existent headers
 
2553
  # can be detected and how.
 
2554
  cat >conftest.$ac_ext <<_ACEOF
 
2555
/* confdefs.h.  */
 
2556
_ACEOF
 
2557
cat confdefs.h >>conftest.$ac_ext
 
2558
cat >>conftest.$ac_ext <<_ACEOF
 
2559
/* end confdefs.h.  */
 
2560
#include <ac_nonexistent.h>
 
2561
_ACEOF
 
2562
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2563
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2564
  ac_status=$?
 
2565
  grep -v '^ *+' conftest.er1 >conftest.err
 
2566
  rm -f conftest.er1
 
2567
  cat conftest.err >&5
 
2568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2569
  (exit $ac_status); } >/dev/null; then
 
2570
  if test -s conftest.err; then
 
2571
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2572
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2573
  else
 
2574
    ac_cpp_err=
 
2575
  fi
 
2576
else
 
2577
  ac_cpp_err=yes
 
2578
fi
 
2579
if test -z "$ac_cpp_err"; then
 
2580
  # Broken: success on invalid input.
 
2581
continue
 
2582
else
 
2583
  echo "$as_me: failed program was:" >&5
 
2584
sed 's/^/| /' conftest.$ac_ext >&5
 
2585
 
 
2586
  # Passes both tests.
 
2587
ac_preproc_ok=:
 
2588
break
 
2589
fi
 
2590
rm -f conftest.err conftest.$ac_ext
 
2591
 
 
2592
done
 
2593
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2594
rm -f conftest.err conftest.$ac_ext
 
2595
if $ac_preproc_ok; then
 
2596
  :
 
2597
else
 
2598
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2599
See \`config.log' for more details." >&5
 
2600
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2601
See \`config.log' for more details." >&2;}
 
2602
   { (exit 1); exit 1; }; }
 
2603
fi
 
2604
 
 
2605
ac_ext=c
 
2606
ac_cpp='$CPP $CPPFLAGS'
 
2607
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2608
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2609
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1001
2610
 
1002
2611
 
1003
2612
# Extract the first word of "whoami", so it can be a program name with args.
1004
2613
set dummy whoami; ac_word=$2
1005
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006
 
echo "configure:1007: checking for $ac_word" >&5
1007
 
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1008
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2614
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2616
if test "${ac_cv_path_WHOAMI+set}" = set; then
 
2617
  echo $ECHO_N "(cached) $ECHO_C" >&6
1009
2618
else
1010
 
  case "$WHOAMI" in
1011
 
  /*)
 
2619
  case $WHOAMI in
 
2620
  [\\/]* | ?:[\\/]*)
1012
2621
  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
1013
2622
  ;;
1014
 
  ?:/*)                  
1015
 
  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
1016
 
  ;;
1017
2623
  *)
1018
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1019
 
  ac_dummy="$PATH:/usr/ucb"
1020
 
  for ac_dir in $ac_dummy; do 
1021
 
    test -z "$ac_dir" && ac_dir=.
1022
 
    if test -f $ac_dir/$ac_word; then
1023
 
      ac_cv_path_WHOAMI="$ac_dir/$ac_word"
1024
 
      break
1025
 
    fi
1026
 
  done
1027
 
  IFS="$ac_save_ifs"
 
2624
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2625
as_dummy="$PATH:/usr/ucb"
 
2626
for as_dir in $as_dummy
 
2627
do
 
2628
  IFS=$as_save_IFS
 
2629
  test -z "$as_dir" && as_dir=.
 
2630
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2631
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2632
    ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
 
2633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2634
    break 2
 
2635
  fi
 
2636
done
 
2637
done
 
2638
 
1028
2639
  test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
1029
2640
  ;;
1030
2641
esac
1031
2642
fi
1032
 
WHOAMI="$ac_cv_path_WHOAMI"
 
2643
WHOAMI=$ac_cv_path_WHOAMI
 
2644
 
1033
2645
if test -n "$WHOAMI"; then
1034
 
  echo "$ac_t""$WHOAMI" 1>&6
1035
 
else
1036
 
  echo "$ac_t""no" 1>&6
1037
 
fi
1038
 
 
1039
 
 
1040
 
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1041
 
echo "configure:1042: checking for Cygwin environment" >&5
1042
 
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1043
 
  echo $ac_n "(cached) $ac_c" 1>&6
1044
 
else
1045
 
  cat > conftest.$ac_ext <<EOF
1046
 
#line 1047 "configure"
1047
 
#include "confdefs.h"
1048
 
 
1049
 
int main() {
1050
 
 
1051
 
#ifndef __CYGWIN__
1052
 
#define __CYGWIN__ __CYGWIN32__
1053
 
#endif
1054
 
return __CYGWIN__;
1055
 
; return 0; }
1056
 
EOF
1057
 
if { (eval echo configure:1058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1058
 
  rm -rf conftest*
1059
 
  ac_cv_cygwin=yes
1060
 
else
1061
 
  echo "configure: failed program was:" >&5
1062
 
  cat conftest.$ac_ext >&5
1063
 
  rm -rf conftest*
1064
 
  ac_cv_cygwin=no
1065
 
fi
1066
 
rm -f conftest*
1067
 
rm -f conftest*
1068
 
fi
1069
 
 
1070
 
echo "$ac_t""$ac_cv_cygwin" 1>&6
1071
 
CYGWIN=
1072
 
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1073
 
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1074
 
echo "configure:1075: checking for mingw32 environment" >&5
1075
 
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1076
 
  echo $ac_n "(cached) $ac_c" 1>&6
1077
 
else
1078
 
  cat > conftest.$ac_ext <<EOF
1079
 
#line 1080 "configure"
1080
 
#include "confdefs.h"
1081
 
 
1082
 
int main() {
1083
 
return __MINGW32__;
1084
 
; return 0; }
1085
 
EOF
1086
 
if { (eval echo configure:1087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1087
 
  rm -rf conftest*
1088
 
  ac_cv_mingw32=yes
1089
 
else
1090
 
  echo "configure: failed program was:" >&5
1091
 
  cat conftest.$ac_ext >&5
1092
 
  rm -rf conftest*
1093
 
  ac_cv_mingw32=no
1094
 
fi
1095
 
rm -f conftest*
1096
 
rm -f conftest*
1097
 
fi
1098
 
 
1099
 
echo "$ac_t""$ac_cv_mingw32" 1>&6
1100
 
MINGW32=
1101
 
test "$ac_cv_mingw32" = yes && MINGW32=yes
1102
 
 
1103
 
 
1104
 
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1105
 
echo "configure:1106: checking for executable suffix" >&5
1106
 
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1107
 
  echo $ac_n "(cached) $ac_c" 1>&6
1108
 
else
1109
 
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1110
 
  ac_cv_exeext=.exe
1111
 
else
1112
 
  rm -f conftest*
1113
 
  echo 'int main () { return 0; }' > conftest.$ac_ext
1114
 
  ac_cv_exeext=
1115
 
  if { (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1116
 
    for file in conftest.*; do
1117
 
      case $file in
1118
 
      *.c | *.o | *.obj) ;;
1119
 
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1120
 
      esac
1121
 
    done
1122
 
  else
1123
 
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1124
 
  fi
1125
 
  rm -f conftest*
1126
 
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1127
 
fi
1128
 
fi
1129
 
 
1130
 
EXEEXT=""
1131
 
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1132
 
echo "$ac_t""${ac_cv_exeext}" 1>&6
1133
 
ac_exeext=$EXEEXT
 
2646
  echo "$as_me:$LINENO: result: $WHOAMI" >&5
 
2647
echo "${ECHO_T}$WHOAMI" >&6
 
2648
else
 
2649
  echo "$as_me:$LINENO: result: no" >&5
 
2650
echo "${ECHO_T}no" >&6
 
2651
fi
1134
2652
 
1135
2653
 
1136
2654
#--------------------------------------------------------------------
1137
2655
# specific target_os options
1138
2656
#--------------------------------------------------------------------
 
2657
INCLUDE_FLAGS="$CPPFLAGS"
 
2658
LDIR_FLAGS="$LDFLAGS"
 
2659
# This is just for configuring. Later, in config.make, INCLUDE_FLAGS
 
2660
# goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
1139
2661
case "$target_os" in
1140
 
  freebsd*)     CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1141
 
                LIBS="$LIBS -L/usr/local/lib";;
1142
 
 
 
2662
  freebsd* | openbsd* )
 
2663
                CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
2664
                LDFLAGS="$LDFLAGS -L/usr/local/lib";;
 
2665
  netbsd*)      CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
 
2666
                LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
1143
2667
esac
1144
2668
 
1145
2669
#----------------------------------------------------------------
1146
2670
# Find out if nested functions work on this machine
1147
2671
#----------------------------------------------------------------
1148
 
echo $ac_n "checking whether nested functions work""... $ac_c" 1>&6
1149
 
echo "configure:1150: checking whether nested functions work" >&5
 
2672
echo "$as_me:$LINENO: checking whether nested functions work" >&5
 
2673
echo $ECHO_N "checking whether nested functions work... $ECHO_C" >&6
 
2674
 
1150
2675
if test "$cross_compiling" = yes; then
1151
2676
  gcc_nested=1
1152
2677
else
1153
 
  cat > conftest.$ac_ext <<EOF
1154
 
#line 1155 "configure"
1155
 
#include "confdefs.h"
 
2678
  cat >conftest.$ac_ext <<_ACEOF
 
2679
/* confdefs.h.  */
 
2680
_ACEOF
 
2681
cat confdefs.h >>conftest.$ac_ext
 
2682
cat >>conftest.$ac_ext <<_ACEOF
 
2683
/* end confdefs.h.  */
1156
2684
#include "$srcdir/config/config.nested.c"
1157
 
EOF
1158
 
if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1159
 
then
 
2685
_ACEOF
 
2686
rm -f conftest$ac_exeext
 
2687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2688
  (eval $ac_link) 2>&5
 
2689
  ac_status=$?
 
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2691
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2693
  (eval $ac_try) 2>&5
 
2694
  ac_status=$?
 
2695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2696
  (exit $ac_status); }; }; then
1160
2697
  gcc_nested=1
1161
2698
else
1162
 
  echo "configure: failed program was:" >&5
1163
 
  cat conftest.$ac_ext >&5
1164
 
  rm -fr conftest*
1165
 
  gcc_nested=0
1166
 
fi
1167
 
rm -fr conftest*
1168
 
fi
 
2699
  echo "$as_me: program exited with status $ac_status" >&5
 
2700
echo "$as_me: failed program was:" >&5
 
2701
sed 's/^/| /' conftest.$ac_ext >&5
1169
2702
 
 
2703
( exit $ac_status )
 
2704
gcc_nested=0
 
2705
fi
 
2706
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2707
fi
1170
2708
if test $gcc_nested = 0; then
1171
 
  echo "$ac_t""no" 1>&6
1172
 
  cat >> confdefs.h <<\EOF
 
2709
  echo "$as_me:$LINENO: result: no" >&5
 
2710
echo "${ECHO_T}no" >&6
 
2711
 
 
2712
cat >>confdefs.h <<\_ACEOF
1173
2713
#define BROKEN_NESTED_FUNCTIONS 1
1174
 
EOF
 
2714
_ACEOF
1175
2715
 
1176
 
  echo
1177
 
  echo "The GCC 'nested functions' feature does not seem to be working on"
1178
 
  echo "this machine. "
1179
 
  echo "Read the bug-report instructions in the GCC texinfo manual"
1180
 
  echo "and submit a bug report."
1181
 
  echo "The program this configure script used to test nested functions"
1182
 
  echo "can be found in the file 'config/config.nested.c'"
1183
2716
else
1184
 
  echo "$ac_t""yes" 1>&6
 
2717
  echo "$as_me:$LINENO: result: yes" >&5
 
2718
echo "${ECHO_T}yes" >&6
1185
2719
fi
1186
2720
 
1187
2721
#--------------------------------------------------------------------
1188
2722
# Set Apple/Darwin/OSX/NeXT information for other tests
1189
2723
#--------------------------------------------------------------------
1190
2724
OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
1191
 
echo $ac_n "checking the Objective-C runtime""... $ac_c" 1>&6
1192
 
echo "configure:1193: checking the Objective-C runtime" >&5
1193
 
if test "$OBJC_RUNTIME_LIB" = "nx"; then
1194
 
  echo "$ac_t""NeXT" 1>&6
 
2725
echo "$as_me:$LINENO: checking the Objective-C runtime" >&5
 
2726
echo $ECHO_N "checking the Objective-C runtime... $ECHO_C" >&6
 
2727
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
 
2728
  echo "$as_me:$LINENO: result: NeXT" >&5
 
2729
echo "${ECHO_T}NeXT" >&6
1195
2730
  LIBOBJC='-lobjc'
1196
 
  CPPFLAGS="$CPPFLAGS -fnext-runtime -DNeXT_RUNTIME"
 
2731
  OBJCFLAGS="-fnext-runtime -DNeXT_RUNTIME"
1197
2732
else
1198
 
  echo "$ac_t""GNU" 1>&6
 
2733
  echo "$as_me:$LINENO: result: GNU" >&5
 
2734
echo "${ECHO_T}GNU" >&6
1199
2735
  LIBOBJC='-lobjc'
1200
 
  CPPFLAGS="$CPPFLAGS -fgnu-runtime"
 
2736
  OBJCFLAGS="-fgnu-runtime"
1201
2737
fi
1202
2738
 
1203
2739
#--------------------------------------------------------------------
1204
2740
# Miscellaneous flags
1205
2741
#--------------------------------------------------------------------
1206
2742
# Set location of GNUstep dirs for later use
1207
 
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Headers
1208
2743
if test "$GNUSTEP_FLATTENED" = yes; then
1209
 
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries
 
2744
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
 
2745
  GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers
1210
2746
else
1211
 
  clean_target_os=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_os.sh $target_os`
1212
 
  clean_target_cpu=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_cpu.sh $target_cpu`
 
2747
  clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os`
 
2748
  clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
1213
2749
  obj_dir=$clean_target_cpu/$clean_target_os
1214
 
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries/$obj_dir
 
2750
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir
 
2751
  GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers/$LIBRARY_COMBO
1215
2752
fi
1216
2753
 
1217
2754
#
1224
2761
#--------------------------------------------------------------------
1225
2762
# Check if Objective-C is installed
1226
2763
#--------------------------------------------------------------------
1227
 
for ac_hdr in objc/objc.h
1228
 
do
1229
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1230
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1231
 
echo "configure:1232: checking for $ac_hdr" >&5
1232
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1233
 
  echo $ac_n "(cached) $ac_c" 1>&6
1234
 
else
1235
 
  cat > conftest.$ac_ext <<EOF
1236
 
#line 1237 "configure"
1237
 
#include "confdefs.h"
1238
 
#include <$ac_hdr>
1239
 
EOF
1240
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241
 
{ (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243
 
if test -z "$ac_err"; then
1244
 
  rm -rf conftest*
1245
 
  eval "ac_cv_header_$ac_safe=yes"
1246
 
else
1247
 
  echo "$ac_err" >&5
1248
 
  echo "configure: failed program was:" >&5
1249
 
  cat conftest.$ac_ext >&5
1250
 
  rm -rf conftest*
1251
 
  eval "ac_cv_header_$ac_safe=no"
1252
 
fi
1253
 
rm -f conftest*
1254
 
fi
1255
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1256
 
  echo "$ac_t""yes" 1>&6
1257
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1258
 
  cat >> confdefs.h <<EOF
1259
 
#define $ac_tr_hdr 1
1260
 
EOF
1261
 
 
1262
 
else
1263
 
  echo "$ac_t""no" 1>&6
1264
 
fi
 
2764
 
 
2765
echo "$as_me:$LINENO: checking for egrep" >&5
 
2766
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2767
if test "${ac_cv_prog_egrep+set}" = set; then
 
2768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2769
else
 
2770
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2771
    then ac_cv_prog_egrep='grep -E'
 
2772
    else ac_cv_prog_egrep='egrep'
 
2773
    fi
 
2774
fi
 
2775
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2776
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2777
 EGREP=$ac_cv_prog_egrep
 
2778
 
 
2779
 
 
2780
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
2781
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2782
if test "${ac_cv_header_stdc+set}" = set; then
 
2783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2784
else
 
2785
  cat >conftest.$ac_ext <<_ACEOF
 
2786
/* confdefs.h.  */
 
2787
_ACEOF
 
2788
cat confdefs.h >>conftest.$ac_ext
 
2789
cat >>conftest.$ac_ext <<_ACEOF
 
2790
/* end confdefs.h.  */
 
2791
#include <stdlib.h>
 
2792
#include <stdarg.h>
 
2793
#include <string.h>
 
2794
#include <float.h>
 
2795
 
 
2796
int
 
2797
main ()
 
2798
{
 
2799
 
 
2800
  ;
 
2801
  return 0;
 
2802
}
 
2803
_ACEOF
 
2804
rm -f conftest.$ac_objext
 
2805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2806
  (eval $ac_compile) 2>conftest.er1
 
2807
  ac_status=$?
 
2808
  grep -v '^ *+' conftest.er1 >conftest.err
 
2809
  rm -f conftest.er1
 
2810
  cat conftest.err >&5
 
2811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2812
  (exit $ac_status); } &&
 
2813
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2815
  (eval $ac_try) 2>&5
 
2816
  ac_status=$?
 
2817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2818
  (exit $ac_status); }; } &&
 
2819
         { ac_try='test -s conftest.$ac_objext'
 
2820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2821
  (eval $ac_try) 2>&5
 
2822
  ac_status=$?
 
2823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2824
  (exit $ac_status); }; }; then
 
2825
  ac_cv_header_stdc=yes
 
2826
else
 
2827
  echo "$as_me: failed program was:" >&5
 
2828
sed 's/^/| /' conftest.$ac_ext >&5
 
2829
 
 
2830
ac_cv_header_stdc=no
 
2831
fi
 
2832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2833
 
 
2834
if test $ac_cv_header_stdc = yes; then
 
2835
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
2836
  cat >conftest.$ac_ext <<_ACEOF
 
2837
/* confdefs.h.  */
 
2838
_ACEOF
 
2839
cat confdefs.h >>conftest.$ac_ext
 
2840
cat >>conftest.$ac_ext <<_ACEOF
 
2841
/* end confdefs.h.  */
 
2842
#include <string.h>
 
2843
 
 
2844
_ACEOF
 
2845
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2846
  $EGREP "memchr" >/dev/null 2>&1; then
 
2847
  :
 
2848
else
 
2849
  ac_cv_header_stdc=no
 
2850
fi
 
2851
rm -f conftest*
 
2852
 
 
2853
fi
 
2854
 
 
2855
if test $ac_cv_header_stdc = yes; then
 
2856
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
2857
  cat >conftest.$ac_ext <<_ACEOF
 
2858
/* confdefs.h.  */
 
2859
_ACEOF
 
2860
cat confdefs.h >>conftest.$ac_ext
 
2861
cat >>conftest.$ac_ext <<_ACEOF
 
2862
/* end confdefs.h.  */
 
2863
#include <stdlib.h>
 
2864
 
 
2865
_ACEOF
 
2866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2867
  $EGREP "free" >/dev/null 2>&1; then
 
2868
  :
 
2869
else
 
2870
  ac_cv_header_stdc=no
 
2871
fi
 
2872
rm -f conftest*
 
2873
 
 
2874
fi
 
2875
 
 
2876
if test $ac_cv_header_stdc = yes; then
 
2877
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
2878
  if test "$cross_compiling" = yes; then
 
2879
  :
 
2880
else
 
2881
  cat >conftest.$ac_ext <<_ACEOF
 
2882
/* confdefs.h.  */
 
2883
_ACEOF
 
2884
cat confdefs.h >>conftest.$ac_ext
 
2885
cat >>conftest.$ac_ext <<_ACEOF
 
2886
/* end confdefs.h.  */
 
2887
#include <ctype.h>
 
2888
#if ((' ' & 0x0FF) == 0x020)
 
2889
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2890
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2891
#else
 
2892
# define ISLOWER(c) \
 
2893
                   (('a' <= (c) && (c) <= 'i') \
 
2894
                     || ('j' <= (c) && (c) <= 'r') \
 
2895
                     || ('s' <= (c) && (c) <= 'z'))
 
2896
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2897
#endif
 
2898
 
 
2899
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
2900
int
 
2901
main ()
 
2902
{
 
2903
  int i;
 
2904
  for (i = 0; i < 256; i++)
 
2905
    if (XOR (islower (i), ISLOWER (i))
 
2906
        || toupper (i) != TOUPPER (i))
 
2907
      exit(2);
 
2908
  exit (0);
 
2909
}
 
2910
_ACEOF
 
2911
rm -f conftest$ac_exeext
 
2912
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2913
  (eval $ac_link) 2>&5
 
2914
  ac_status=$?
 
2915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2916
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2918
  (eval $ac_try) 2>&5
 
2919
  ac_status=$?
 
2920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2921
  (exit $ac_status); }; }; then
 
2922
  :
 
2923
else
 
2924
  echo "$as_me: program exited with status $ac_status" >&5
 
2925
echo "$as_me: failed program was:" >&5
 
2926
sed 's/^/| /' conftest.$ac_ext >&5
 
2927
 
 
2928
( exit $ac_status )
 
2929
ac_cv_header_stdc=no
 
2930
fi
 
2931
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2932
fi
 
2933
fi
 
2934
fi
 
2935
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
2936
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
2937
if test $ac_cv_header_stdc = yes; then
 
2938
 
 
2939
cat >>confdefs.h <<\_ACEOF
 
2940
#define STDC_HEADERS 1
 
2941
_ACEOF
 
2942
 
 
2943
fi
 
2944
 
 
2945
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
2946
 
 
2947
 
 
2948
 
 
2949
 
 
2950
 
 
2951
 
 
2952
 
 
2953
 
 
2954
 
 
2955
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
2956
                  inttypes.h stdint.h unistd.h
 
2957
do
 
2958
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2959
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2960
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2961
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2963
else
 
2964
  cat >conftest.$ac_ext <<_ACEOF
 
2965
/* confdefs.h.  */
 
2966
_ACEOF
 
2967
cat confdefs.h >>conftest.$ac_ext
 
2968
cat >>conftest.$ac_ext <<_ACEOF
 
2969
/* end confdefs.h.  */
 
2970
$ac_includes_default
 
2971
 
 
2972
#include <$ac_header>
 
2973
_ACEOF
 
2974
rm -f conftest.$ac_objext
 
2975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2976
  (eval $ac_compile) 2>conftest.er1
 
2977
  ac_status=$?
 
2978
  grep -v '^ *+' conftest.er1 >conftest.err
 
2979
  rm -f conftest.er1
 
2980
  cat conftest.err >&5
 
2981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2982
  (exit $ac_status); } &&
 
2983
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2985
  (eval $ac_try) 2>&5
 
2986
  ac_status=$?
 
2987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2988
  (exit $ac_status); }; } &&
 
2989
         { ac_try='test -s conftest.$ac_objext'
 
2990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2991
  (eval $ac_try) 2>&5
 
2992
  ac_status=$?
 
2993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2994
  (exit $ac_status); }; }; then
 
2995
  eval "$as_ac_Header=yes"
 
2996
else
 
2997
  echo "$as_me: failed program was:" >&5
 
2998
sed 's/^/| /' conftest.$ac_ext >&5
 
2999
 
 
3000
eval "$as_ac_Header=no"
 
3001
fi
 
3002
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3003
fi
 
3004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3006
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3007
  cat >>confdefs.h <<_ACEOF
 
3008
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3009
_ACEOF
 
3010
 
 
3011
fi
 
3012
 
 
3013
done
 
3014
 
 
3015
 
 
3016
 
 
3017
for ac_header in objc/objc.h
 
3018
do
 
3019
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3020
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3021
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3022
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3023
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3025
fi
 
3026
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3027
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3028
else
 
3029
  # Is the header compilable?
 
3030
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3031
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3032
cat >conftest.$ac_ext <<_ACEOF
 
3033
/* confdefs.h.  */
 
3034
_ACEOF
 
3035
cat confdefs.h >>conftest.$ac_ext
 
3036
cat >>conftest.$ac_ext <<_ACEOF
 
3037
/* end confdefs.h.  */
 
3038
$ac_includes_default
 
3039
#include <$ac_header>
 
3040
_ACEOF
 
3041
rm -f conftest.$ac_objext
 
3042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3043
  (eval $ac_compile) 2>conftest.er1
 
3044
  ac_status=$?
 
3045
  grep -v '^ *+' conftest.er1 >conftest.err
 
3046
  rm -f conftest.er1
 
3047
  cat conftest.err >&5
 
3048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3049
  (exit $ac_status); } &&
 
3050
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3052
  (eval $ac_try) 2>&5
 
3053
  ac_status=$?
 
3054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3055
  (exit $ac_status); }; } &&
 
3056
         { ac_try='test -s conftest.$ac_objext'
 
3057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3058
  (eval $ac_try) 2>&5
 
3059
  ac_status=$?
 
3060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3061
  (exit $ac_status); }; }; then
 
3062
  ac_header_compiler=yes
 
3063
else
 
3064
  echo "$as_me: failed program was:" >&5
 
3065
sed 's/^/| /' conftest.$ac_ext >&5
 
3066
 
 
3067
ac_header_compiler=no
 
3068
fi
 
3069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3070
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3071
echo "${ECHO_T}$ac_header_compiler" >&6
 
3072
 
 
3073
# Is the header present?
 
3074
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3075
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3076
cat >conftest.$ac_ext <<_ACEOF
 
3077
/* confdefs.h.  */
 
3078
_ACEOF
 
3079
cat confdefs.h >>conftest.$ac_ext
 
3080
cat >>conftest.$ac_ext <<_ACEOF
 
3081
/* end confdefs.h.  */
 
3082
#include <$ac_header>
 
3083
_ACEOF
 
3084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3085
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3086
  ac_status=$?
 
3087
  grep -v '^ *+' conftest.er1 >conftest.err
 
3088
  rm -f conftest.er1
 
3089
  cat conftest.err >&5
 
3090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3091
  (exit $ac_status); } >/dev/null; then
 
3092
  if test -s conftest.err; then
 
3093
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3094
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3095
  else
 
3096
    ac_cpp_err=
 
3097
  fi
 
3098
else
 
3099
  ac_cpp_err=yes
 
3100
fi
 
3101
if test -z "$ac_cpp_err"; then
 
3102
  ac_header_preproc=yes
 
3103
else
 
3104
  echo "$as_me: failed program was:" >&5
 
3105
sed 's/^/| /' conftest.$ac_ext >&5
 
3106
 
 
3107
  ac_header_preproc=no
 
3108
fi
 
3109
rm -f conftest.err conftest.$ac_ext
 
3110
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3111
echo "${ECHO_T}$ac_header_preproc" >&6
 
3112
 
 
3113
# So?  What about this header?
 
3114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3115
  yes:no: )
 
3116
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3118
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3120
    ac_header_preproc=yes
 
3121
    ;;
 
3122
  no:yes:* )
 
3123
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3125
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3126
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3127
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3129
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3130
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3131
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3133
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3135
    (
 
3136
      cat <<\_ASBOX
 
3137
## ------------------------------------------ ##
 
3138
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3139
## ------------------------------------------ ##
 
3140
_ASBOX
 
3141
    ) |
 
3142
      sed "s/^/$as_me: WARNING:     /" >&2
 
3143
    ;;
 
3144
esac
 
3145
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3147
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
else
 
3150
  eval "$as_ac_Header=\$ac_header_preproc"
 
3151
fi
 
3152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3153
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3154
 
 
3155
fi
 
3156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3157
  cat >>confdefs.h <<_ACEOF
 
3158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3159
_ACEOF
 
3160
 
 
3161
fi
 
3162
 
1265
3163
done
1266
3164
 
1267
3165
if test $ac_cv_header_objc_objc_h = no; then
1268
 
  echo "Could not find Objective-C headers"
1269
3166
  echo "Check to make sure you have a full installation of the GCC"
1270
3167
  echo "compiler that includes the Objective-C headers and libraries"
1271
 
  { echo "configure: error: Could not find Objective-C headers" 1>&2; exit 1; }
 
3168
  { { echo "$as_me:$LINENO: error: Could not find Objective-C headers" >&5
 
3169
echo "$as_me: error: Could not find Objective-C headers" >&2;}
 
3170
   { (exit 1); exit 1; }; }
1272
3171
fi
1273
3172
 
1274
3173
#--------------------------------------------------------------------
1275
3174
# Check for strange network stuff used by gdomap
1276
3175
#--------------------------------------------------------------------
1277
 
echo $ac_n "checking for gdomap network details""... $ac_c" 1>&6
1278
 
echo "configure:1279: checking for gdomap network details" >&5
1279
 
echo $ac_n "checking for variable length socket addresses""... $ac_c" 1>&6
1280
 
echo "configure:1281: checking for variable length socket addresses" >&5
1281
 
cat > conftest.$ac_ext <<EOF
1282
 
#line 1283 "configure"
1283
 
#include "confdefs.h"
1284
 
 
1285
 
#include <sys/types.h>
1286
 
#include <sys/socket.h>
1287
 
#include <net/if.h>
1288
 
 
1289
 
int main() {
 
3176
{ echo "$as_me:$LINENO: for gdomap network details" >&5
 
3177
echo "$as_me: for gdomap network details" >&6;}
 
3178
echo "$as_me:$LINENO: checking for variable length socket addresses" >&5
 
3179
echo $ECHO_N "checking for variable length socket addresses... $ECHO_C" >&6
 
3180
cat >conftest.$ac_ext <<_ACEOF
 
3181
/* confdefs.h.  */
 
3182
_ACEOF
 
3183
cat confdefs.h >>conftest.$ac_ext
 
3184
cat >>conftest.$ac_ext <<_ACEOF
 
3185
/* end confdefs.h.  */
 
3186
 
 
3187
  #include <sys/types.h>
 
3188
  #include <sys/socket.h>
 
3189
  #include <net/if.h>
 
3190
 
 
3191
int
 
3192
main ()
 
3193
{
1290
3194
struct ifreq s; s.ifr_addr.sa_len = 0;
1291
 
; return 0; }
1292
 
EOF
1293
 
if { (eval echo configure:1294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294
 
  rm -rf conftest*
 
3195
  ;
 
3196
  return 0;
 
3197
}
 
3198
_ACEOF
 
3199
rm -f conftest.$ac_objext
 
3200
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3201
  (eval $ac_compile) 2>conftest.er1
 
3202
  ac_status=$?
 
3203
  grep -v '^ *+' conftest.er1 >conftest.err
 
3204
  rm -f conftest.er1
 
3205
  cat conftest.err >&5
 
3206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3207
  (exit $ac_status); } &&
 
3208
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3210
  (eval $ac_try) 2>&5
 
3211
  ac_status=$?
 
3212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3213
  (exit $ac_status); }; } &&
 
3214
         { ac_try='test -s conftest.$ac_objext'
 
3215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3216
  (eval $ac_try) 2>&5
 
3217
  ac_status=$?
 
3218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3219
  (exit $ac_status); }; }; then
1295
3220
  sa_len=1
1296
3221
else
1297
 
  echo "configure: failed program was:" >&5
1298
 
  cat conftest.$ac_ext >&5
1299
 
  rm -rf conftest*
1300
 
  sa_len=0
 
3222
  echo "$as_me: failed program was:" >&5
 
3223
sed 's/^/| /' conftest.$ac_ext >&5
 
3224
 
 
3225
sa_len=0
1301
3226
fi
1302
 
rm -f conftest*
 
3227
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1303
3228
if test $sa_len = 1; then
1304
 
  echo "$ac_t""found" 1>&6
1305
 
  cat >> confdefs.h <<\EOF
 
3229
  echo "$as_me:$LINENO: result: found" >&5
 
3230
echo "${ECHO_T}found" >&6
 
3231
 
 
3232
cat >>confdefs.h <<\_ACEOF
1306
3233
#define HAVE_SA_LEN 1
1307
 
EOF
1308
 
 
1309
 
else
1310
 
  echo "$ac_t""not found" 1>&6
 
3234
_ACEOF
 
3235
 
 
3236
else
 
3237
  echo "$as_me:$LINENO: result: not found" >&5
 
3238
echo "${ECHO_T}not found" >&6
 
3239
fi
 
3240
 
 
3241
#--------------------------------------------------------------------
 
3242
# Check if system has buggy SO_REUSEADDR
 
3243
#--------------------------------------------------------------------
 
3244
echo "$as_me:$LINENO: checking whether SO_REUSEADDR is broken" >&5
 
3245
echo $ECHO_N "checking whether SO_REUSEADDR is broken... $ECHO_C" >&6
 
3246
if test "$cross_compiling" = yes; then
 
3247
  reuseaddr_ok=0
 
3248
else
 
3249
  cat >conftest.$ac_ext <<_ACEOF
 
3250
/* confdefs.h.  */
 
3251
_ACEOF
 
3252
cat confdefs.h >>conftest.$ac_ext
 
3253
cat >>conftest.$ac_ext <<_ACEOF
 
3254
/* end confdefs.h.  */
 
3255
#include "$srcdir/config/config.reuseaddr.c"
 
3256
_ACEOF
 
3257
rm -f conftest$ac_exeext
 
3258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3259
  (eval $ac_link) 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3264
  (eval $ac_try) 2>&5
 
3265
  ac_status=$?
 
3266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3267
  (exit $ac_status); }; }; then
 
3268
  reuseaddr_ok=1
 
3269
else
 
3270
  echo "$as_me: program exited with status $ac_status" >&5
 
3271
echo "$as_me: failed program was:" >&5
 
3272
sed 's/^/| /' conftest.$ac_ext >&5
 
3273
 
 
3274
( exit $ac_status )
 
3275
reuseaddr_ok=0
 
3276
fi
 
3277
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3278
fi
 
3279
if test $reuseaddr_ok = 0; then
 
3280
 
 
3281
cat >>confdefs.h <<\_ACEOF
 
3282
#define BROKEN_SO_REUSEADDR 1
 
3283
_ACEOF
 
3284
 
 
3285
  echo
 
3286
  echo "The SO_REUSEADDR socket option for controlling re-use of network"
 
3287
  echo "sockets immediately after shutdown appears to be broken on this"
 
3288
  echo "machine.  Networking code will be built without using this"
 
3289
  echo "feature."
 
3290
  echo "The effect of this lack is that when a network service is shut"
 
3291
  echo "down, it cannot be re-started on the same network port until"
 
3292
  echo "an operating-system timeout has expired."
 
3293
  echo "For servers other than gdomap, GNUstep does not normally need"
 
3294
  echo "a particular network port, so the problem is unlikely to arise."
 
3295
  echo "$as_me:$LINENO: result: yes" >&5
 
3296
echo "${ECHO_T}yes" >&6
 
3297
else
 
3298
  echo "$as_me:$LINENO: result: no" >&5
 
3299
echo "${ECHO_T}no" >&6
1311
3300
fi
1312
3301
 
1313
3302
#--------------------------------------------------------------------
1314
3303
# Check for thread flags for libobjc.
1315
3304
#--------------------------------------------------------------------
1316
3305
#
1317
 
echo $ac_n "checking for objc threading flags""... $ac_c" 1>&6
1318
 
echo "configure:1319: checking for objc threading flags" >&5
 
3306
echo "$as_me:$LINENO: checking for objc threading flags" >&5
 
3307
echo $ECHO_N "checking for objc threading flags... $ECHO_C" >&6
1319
3308
#
1320
3309
# Get them from gnustep-make which contains the real code to get them
1321
3310
#
1322
 
objc_threaded=`grep objc_threaded: $GNUSTEP_SYSTEM_ROOT/Makefiles/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
 
3311
objc_threaded=`grep objc_threaded: $GNUSTEP_MAKEFILES/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
1323
3312
#
1324
 
echo "$ac_t""$objc_threaded" 1>&6
 
3313
echo "$as_me:$LINENO: result: $objc_threaded" >&5
 
3314
echo "${ECHO_T}$objc_threaded" >&6
1325
3315
 
1326
3316
#--------------------------------------------------------------------
1327
3317
# Byte order information needed for foundation headers.
1328
3318
#--------------------------------------------------------------------
1329
 
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1330
 
echo "configure:1331: checking whether byte ordering is bigendian" >&5
1331
 
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1332
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3319
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
3320
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
3321
if test "${ac_cv_c_bigendian+set}" = set; then
 
3322
  echo $ECHO_N "(cached) $ECHO_C" >&6
1333
3323
else
1334
 
  ac_cv_c_bigendian=unknown
1335
 
# See if sys/param.h defines the BYTE_ORDER macro.
1336
 
cat > conftest.$ac_ext <<EOF
1337
 
#line 1338 "configure"
1338
 
#include "confdefs.h"
 
3324
  # See if sys/param.h defines the BYTE_ORDER macro.
 
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.  */
1339
3331
#include <sys/types.h>
1340
3332
#include <sys/param.h>
1341
 
int main() {
1342
3333
 
 
3334
int
 
3335
main ()
 
3336
{
1343
3337
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1344
3338
 bogus endian macros
1345
3339
#endif
1346
 
; return 0; }
1347
 
EOF
1348
 
if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349
 
  rm -rf conftest*
 
3340
 
 
3341
  ;
 
3342
  return 0;
 
3343
}
 
3344
_ACEOF
 
3345
rm -f conftest.$ac_objext
 
3346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3347
  (eval $ac_compile) 2>conftest.er1
 
3348
  ac_status=$?
 
3349
  grep -v '^ *+' conftest.er1 >conftest.err
 
3350
  rm -f conftest.er1
 
3351
  cat conftest.err >&5
 
3352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3353
  (exit $ac_status); } &&
 
3354
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3356
  (eval $ac_try) 2>&5
 
3357
  ac_status=$?
 
3358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3359
  (exit $ac_status); }; } &&
 
3360
         { ac_try='test -s conftest.$ac_objext'
 
3361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3362
  (eval $ac_try) 2>&5
 
3363
  ac_status=$?
 
3364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3365
  (exit $ac_status); }; }; then
1350
3366
  # It does; now see whether it defined to BIG_ENDIAN or not.
1351
 
cat > conftest.$ac_ext <<EOF
1352
 
#line 1353 "configure"
1353
 
#include "confdefs.h"
 
3367
cat >conftest.$ac_ext <<_ACEOF
 
3368
/* confdefs.h.  */
 
3369
_ACEOF
 
3370
cat confdefs.h >>conftest.$ac_ext
 
3371
cat >>conftest.$ac_ext <<_ACEOF
 
3372
/* end confdefs.h.  */
1354
3373
#include <sys/types.h>
1355
3374
#include <sys/param.h>
1356
 
int main() {
1357
3375
 
 
3376
int
 
3377
main ()
 
3378
{
1358
3379
#if BYTE_ORDER != BIG_ENDIAN
1359
3380
 not big endian
1360
3381
#endif
1361
 
; return 0; }
1362
 
EOF
1363
 
if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1364
 
  rm -rf conftest*
 
3382
 
 
3383
  ;
 
3384
  return 0;
 
3385
}
 
3386
_ACEOF
 
3387
rm -f conftest.$ac_objext
 
3388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3389
  (eval $ac_compile) 2>conftest.er1
 
3390
  ac_status=$?
 
3391
  grep -v '^ *+' conftest.er1 >conftest.err
 
3392
  rm -f conftest.er1
 
3393
  cat conftest.err >&5
 
3394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3395
  (exit $ac_status); } &&
 
3396
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3398
  (eval $ac_try) 2>&5
 
3399
  ac_status=$?
 
3400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3401
  (exit $ac_status); }; } &&
 
3402
         { ac_try='test -s conftest.$ac_objext'
 
3403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3404
  (eval $ac_try) 2>&5
 
3405
  ac_status=$?
 
3406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3407
  (exit $ac_status); }; }; then
1365
3408
  ac_cv_c_bigendian=yes
1366
3409
else
1367
 
  echo "configure: failed program was:" >&5
1368
 
  cat conftest.$ac_ext >&5
1369
 
  rm -rf conftest*
1370
 
  ac_cv_c_bigendian=no
 
3410
  echo "$as_me: failed program was:" >&5
 
3411
sed 's/^/| /' conftest.$ac_ext >&5
 
3412
 
 
3413
ac_cv_c_bigendian=no
1371
3414
fi
1372
 
rm -f conftest*
 
3415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1373
3416
else
1374
 
  echo "configure: failed program was:" >&5
1375
 
  cat conftest.$ac_ext >&5
1376
 
fi
1377
 
rm -f conftest*
1378
 
if test $ac_cv_c_bigendian = unknown; then
 
3417
  echo "$as_me: failed program was:" >&5
 
3418
sed 's/^/| /' conftest.$ac_ext >&5
 
3419
 
 
3420
# It does not; compile a test program.
1379
3421
if test "$cross_compiling" = yes; then
1380
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1381
 
else
1382
 
  cat > conftest.$ac_ext <<EOF
1383
 
#line 1384 "configure"
1384
 
#include "confdefs.h"
1385
 
main () {
 
3422
  # try to guess the endianness by grepping values into an object file
 
3423
  ac_cv_c_bigendian=unknown
 
3424
  cat >conftest.$ac_ext <<_ACEOF
 
3425
/* confdefs.h.  */
 
3426
_ACEOF
 
3427
cat confdefs.h >>conftest.$ac_ext
 
3428
cat >>conftest.$ac_ext <<_ACEOF
 
3429
/* end confdefs.h.  */
 
3430
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
3431
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
3432
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
3433
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
3434
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
3435
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
3436
int
 
3437
main ()
 
3438
{
 
3439
 _ascii (); _ebcdic ();
 
3440
  ;
 
3441
  return 0;
 
3442
}
 
3443
_ACEOF
 
3444
rm -f conftest.$ac_objext
 
3445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3446
  (eval $ac_compile) 2>conftest.er1
 
3447
  ac_status=$?
 
3448
  grep -v '^ *+' conftest.er1 >conftest.err
 
3449
  rm -f conftest.er1
 
3450
  cat conftest.err >&5
 
3451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3452
  (exit $ac_status); } &&
 
3453
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3455
  (eval $ac_try) 2>&5
 
3456
  ac_status=$?
 
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3458
  (exit $ac_status); }; } &&
 
3459
         { ac_try='test -s conftest.$ac_objext'
 
3460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3461
  (eval $ac_try) 2>&5
 
3462
  ac_status=$?
 
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3464
  (exit $ac_status); }; }; then
 
3465
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
3466
  ac_cv_c_bigendian=yes
 
3467
fi
 
3468
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
3469
  if test "$ac_cv_c_bigendian" = unknown; then
 
3470
    ac_cv_c_bigendian=no
 
3471
  else
 
3472
    # finding both strings is unlikely to happen, but who knows?
 
3473
    ac_cv_c_bigendian=unknown
 
3474
  fi
 
3475
fi
 
3476
else
 
3477
  echo "$as_me: failed program was:" >&5
 
3478
sed 's/^/| /' conftest.$ac_ext >&5
 
3479
 
 
3480
fi
 
3481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3482
else
 
3483
  cat >conftest.$ac_ext <<_ACEOF
 
3484
/* confdefs.h.  */
 
3485
_ACEOF
 
3486
cat confdefs.h >>conftest.$ac_ext
 
3487
cat >>conftest.$ac_ext <<_ACEOF
 
3488
/* end confdefs.h.  */
 
3489
int
 
3490
main ()
 
3491
{
1386
3492
  /* Are we little or big endian?  From Harbison&Steele.  */
1387
3493
  union
1388
3494
  {
1392
3498
  u.l = 1;
1393
3499
  exit (u.c[sizeof (long) - 1] == 1);
1394
3500
}
1395
 
EOF
1396
 
if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1397
 
then
 
3501
_ACEOF
 
3502
rm -f conftest$ac_exeext
 
3503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3504
  (eval $ac_link) 2>&5
 
3505
  ac_status=$?
 
3506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3507
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3509
  (eval $ac_try) 2>&5
 
3510
  ac_status=$?
 
3511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3512
  (exit $ac_status); }; }; then
1398
3513
  ac_cv_c_bigendian=no
1399
3514
else
1400
 
  echo "configure: failed program was:" >&5
1401
 
  cat conftest.$ac_ext >&5
1402
 
  rm -fr conftest*
1403
 
  ac_cv_c_bigendian=yes
1404
 
fi
1405
 
rm -fr conftest*
1406
 
fi
1407
 
 
1408
 
fi
1409
 
fi
1410
 
 
1411
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1412
 
if test $ac_cv_c_bigendian = yes; then
1413
 
  cat >> confdefs.h <<\EOF
 
3515
  echo "$as_me: program exited with status $ac_status" >&5
 
3516
echo "$as_me: failed program was:" >&5
 
3517
sed 's/^/| /' conftest.$ac_ext >&5
 
3518
 
 
3519
( exit $ac_status )
 
3520
ac_cv_c_bigendian=yes
 
3521
fi
 
3522
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3523
fi
 
3524
fi
 
3525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3526
fi
 
3527
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
3528
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
3529
case $ac_cv_c_bigendian in
 
3530
  yes)
 
3531
 
 
3532
cat >>confdefs.h <<\_ACEOF
1414
3533
#define WORDS_BIGENDIAN 1
1415
 
EOF
1416
 
 
1417
 
fi
 
3534
_ACEOF
 
3535
 ;;
 
3536
  no)
 
3537
     ;;
 
3538
  *)
 
3539
    { { echo "$as_me:$LINENO: error: unknown endianness
 
3540
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
3541
echo "$as_me: error: unknown endianness
 
3542
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
3543
   { (exit 1); exit 1; }; } ;;
 
3544
esac
1418
3545
 
1419
3546
if test $ac_cv_c_bigendian = yes; then
1420
3547
  GS_WORDS_BIGENDIAN=1
1426
3553
#--------------------------------------------------------------------
1427
3554
# Type size information needed for foundation headers.
1428
3555
#--------------------------------------------------------------------
1429
 
echo $ac_n "checking size of void*""... $ac_c" 1>&6
1430
 
echo "configure:1431: checking size of void*" >&5
1431
 
if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
1432
 
  echo $ac_n "(cached) $ac_c" 1>&6
1433
 
else
1434
 
  if test "$cross_compiling" = yes; then
1435
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1436
 
else
1437
 
  cat > conftest.$ac_ext <<EOF
1438
 
#line 1439 "configure"
1439
 
#include "confdefs.h"
 
3556
echo "$as_me:$LINENO: checking for void*" >&5
 
3557
echo $ECHO_N "checking for void*... $ECHO_C" >&6
 
3558
if test "${ac_cv_type_voidp+set}" = set; then
 
3559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3560
else
 
3561
  cat >conftest.$ac_ext <<_ACEOF
 
3562
/* confdefs.h.  */
 
3563
_ACEOF
 
3564
cat confdefs.h >>conftest.$ac_ext
 
3565
cat >>conftest.$ac_ext <<_ACEOF
 
3566
/* end confdefs.h.  */
 
3567
$ac_includes_default
 
3568
int
 
3569
main ()
 
3570
{
 
3571
if ((void* *) 0)
 
3572
  return 0;
 
3573
if (sizeof (void*))
 
3574
  return 0;
 
3575
  ;
 
3576
  return 0;
 
3577
}
 
3578
_ACEOF
 
3579
rm -f conftest.$ac_objext
 
3580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3581
  (eval $ac_compile) 2>conftest.er1
 
3582
  ac_status=$?
 
3583
  grep -v '^ *+' conftest.er1 >conftest.err
 
3584
  rm -f conftest.er1
 
3585
  cat conftest.err >&5
 
3586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3587
  (exit $ac_status); } &&
 
3588
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3590
  (eval $ac_try) 2>&5
 
3591
  ac_status=$?
 
3592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3593
  (exit $ac_status); }; } &&
 
3594
         { ac_try='test -s conftest.$ac_objext'
 
3595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3596
  (eval $ac_try) 2>&5
 
3597
  ac_status=$?
 
3598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3599
  (exit $ac_status); }; }; then
 
3600
  ac_cv_type_voidp=yes
 
3601
else
 
3602
  echo "$as_me: failed program was:" >&5
 
3603
sed 's/^/| /' conftest.$ac_ext >&5
 
3604
 
 
3605
ac_cv_type_voidp=no
 
3606
fi
 
3607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3608
fi
 
3609
echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
 
3610
echo "${ECHO_T}$ac_cv_type_voidp" >&6
 
3611
 
 
3612
echo "$as_me:$LINENO: checking size of void*" >&5
 
3613
echo $ECHO_N "checking size of void*... $ECHO_C" >&6
 
3614
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
3615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3616
else
 
3617
  if test "$ac_cv_type_voidp" = yes; then
 
3618
  # The cast to unsigned long works around a bug in the HP C Compiler
 
3619
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
3620
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
3621
  # This bug is HP SR number 8606223364.
 
3622
  if test "$cross_compiling" = yes; then
 
3623
  # Depending upon the size, compute the lo and hi bounds.
 
3624
cat >conftest.$ac_ext <<_ACEOF
 
3625
/* confdefs.h.  */
 
3626
_ACEOF
 
3627
cat confdefs.h >>conftest.$ac_ext
 
3628
cat >>conftest.$ac_ext <<_ACEOF
 
3629
/* end confdefs.h.  */
 
3630
$ac_includes_default
 
3631
int
 
3632
main ()
 
3633
{
 
3634
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
 
3635
test_array [0] = 0
 
3636
 
 
3637
  ;
 
3638
  return 0;
 
3639
}
 
3640
_ACEOF
 
3641
rm -f conftest.$ac_objext
 
3642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3643
  (eval $ac_compile) 2>conftest.er1
 
3644
  ac_status=$?
 
3645
  grep -v '^ *+' conftest.er1 >conftest.err
 
3646
  rm -f conftest.er1
 
3647
  cat conftest.err >&5
 
3648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3649
  (exit $ac_status); } &&
 
3650
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3652
  (eval $ac_try) 2>&5
 
3653
  ac_status=$?
 
3654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3655
  (exit $ac_status); }; } &&
 
3656
         { ac_try='test -s conftest.$ac_objext'
 
3657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3658
  (eval $ac_try) 2>&5
 
3659
  ac_status=$?
 
3660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3661
  (exit $ac_status); }; }; then
 
3662
  ac_lo=0 ac_mid=0
 
3663
  while :; do
 
3664
    cat >conftest.$ac_ext <<_ACEOF
 
3665
/* confdefs.h.  */
 
3666
_ACEOF
 
3667
cat confdefs.h >>conftest.$ac_ext
 
3668
cat >>conftest.$ac_ext <<_ACEOF
 
3669
/* end confdefs.h.  */
 
3670
$ac_includes_default
 
3671
int
 
3672
main ()
 
3673
{
 
3674
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
3675
test_array [0] = 0
 
3676
 
 
3677
  ;
 
3678
  return 0;
 
3679
}
 
3680
_ACEOF
 
3681
rm -f conftest.$ac_objext
 
3682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3683
  (eval $ac_compile) 2>conftest.er1
 
3684
  ac_status=$?
 
3685
  grep -v '^ *+' conftest.er1 >conftest.err
 
3686
  rm -f conftest.er1
 
3687
  cat conftest.err >&5
 
3688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3689
  (exit $ac_status); } &&
 
3690
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3692
  (eval $ac_try) 2>&5
 
3693
  ac_status=$?
 
3694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3695
  (exit $ac_status); }; } &&
 
3696
         { ac_try='test -s conftest.$ac_objext'
 
3697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3698
  (eval $ac_try) 2>&5
 
3699
  ac_status=$?
 
3700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3701
  (exit $ac_status); }; }; then
 
3702
  ac_hi=$ac_mid; break
 
3703
else
 
3704
  echo "$as_me: failed program was:" >&5
 
3705
sed 's/^/| /' conftest.$ac_ext >&5
 
3706
 
 
3707
ac_lo=`expr $ac_mid + 1`
 
3708
                    if test $ac_lo -le $ac_mid; then
 
3709
                      ac_lo= ac_hi=
 
3710
                      break
 
3711
                    fi
 
3712
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
3713
fi
 
3714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3715
  done
 
3716
else
 
3717
  echo "$as_me: failed program was:" >&5
 
3718
sed 's/^/| /' conftest.$ac_ext >&5
 
3719
 
 
3720
cat >conftest.$ac_ext <<_ACEOF
 
3721
/* confdefs.h.  */
 
3722
_ACEOF
 
3723
cat confdefs.h >>conftest.$ac_ext
 
3724
cat >>conftest.$ac_ext <<_ACEOF
 
3725
/* end confdefs.h.  */
 
3726
$ac_includes_default
 
3727
int
 
3728
main ()
 
3729
{
 
3730
static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
 
3731
test_array [0] = 0
 
3732
 
 
3733
  ;
 
3734
  return 0;
 
3735
}
 
3736
_ACEOF
 
3737
rm -f conftest.$ac_objext
 
3738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3739
  (eval $ac_compile) 2>conftest.er1
 
3740
  ac_status=$?
 
3741
  grep -v '^ *+' conftest.er1 >conftest.err
 
3742
  rm -f conftest.er1
 
3743
  cat conftest.err >&5
 
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3745
  (exit $ac_status); } &&
 
3746
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3748
  (eval $ac_try) 2>&5
 
3749
  ac_status=$?
 
3750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3751
  (exit $ac_status); }; } &&
 
3752
         { ac_try='test -s conftest.$ac_objext'
 
3753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3754
  (eval $ac_try) 2>&5
 
3755
  ac_status=$?
 
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3757
  (exit $ac_status); }; }; then
 
3758
  ac_hi=-1 ac_mid=-1
 
3759
  while :; do
 
3760
    cat >conftest.$ac_ext <<_ACEOF
 
3761
/* confdefs.h.  */
 
3762
_ACEOF
 
3763
cat confdefs.h >>conftest.$ac_ext
 
3764
cat >>conftest.$ac_ext <<_ACEOF
 
3765
/* end confdefs.h.  */
 
3766
$ac_includes_default
 
3767
int
 
3768
main ()
 
3769
{
 
3770
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
 
3771
test_array [0] = 0
 
3772
 
 
3773
  ;
 
3774
  return 0;
 
3775
}
 
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"                   || test ! -s conftest.err'
 
3787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3788
  (eval $ac_try) 2>&5
 
3789
  ac_status=$?
 
3790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3791
  (exit $ac_status); }; } &&
 
3792
         { ac_try='test -s conftest.$ac_objext'
 
3793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3794
  (eval $ac_try) 2>&5
 
3795
  ac_status=$?
 
3796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3797
  (exit $ac_status); }; }; then
 
3798
  ac_lo=$ac_mid; break
 
3799
else
 
3800
  echo "$as_me: failed program was:" >&5
 
3801
sed 's/^/| /' conftest.$ac_ext >&5
 
3802
 
 
3803
ac_hi=`expr '(' $ac_mid ')' - 1`
 
3804
                       if test $ac_mid -le $ac_hi; then
 
3805
                         ac_lo= ac_hi=
 
3806
                         break
 
3807
                       fi
 
3808
                       ac_mid=`expr 2 '*' $ac_mid`
 
3809
fi
 
3810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3811
  done
 
3812
else
 
3813
  echo "$as_me: failed program was:" >&5
 
3814
sed 's/^/| /' conftest.$ac_ext >&5
 
3815
 
 
3816
ac_lo= ac_hi=
 
3817
fi
 
3818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3819
fi
 
3820
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3821
# Binary search between lo and hi bounds.
 
3822
while test "x$ac_lo" != "x$ac_hi"; do
 
3823
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
3824
  cat >conftest.$ac_ext <<_ACEOF
 
3825
/* confdefs.h.  */
 
3826
_ACEOF
 
3827
cat confdefs.h >>conftest.$ac_ext
 
3828
cat >>conftest.$ac_ext <<_ACEOF
 
3829
/* end confdefs.h.  */
 
3830
$ac_includes_default
 
3831
int
 
3832
main ()
 
3833
{
 
3834
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
3835
test_array [0] = 0
 
3836
 
 
3837
  ;
 
3838
  return 0;
 
3839
}
 
3840
_ACEOF
 
3841
rm -f conftest.$ac_objext
 
3842
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3843
  (eval $ac_compile) 2>conftest.er1
 
3844
  ac_status=$?
 
3845
  grep -v '^ *+' conftest.er1 >conftest.err
 
3846
  rm -f conftest.er1
 
3847
  cat conftest.err >&5
 
3848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3849
  (exit $ac_status); } &&
 
3850
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3852
  (eval $ac_try) 2>&5
 
3853
  ac_status=$?
 
3854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3855
  (exit $ac_status); }; } &&
 
3856
         { ac_try='test -s conftest.$ac_objext'
 
3857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3858
  (eval $ac_try) 2>&5
 
3859
  ac_status=$?
 
3860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3861
  (exit $ac_status); }; }; then
 
3862
  ac_hi=$ac_mid
 
3863
else
 
3864
  echo "$as_me: failed program was:" >&5
 
3865
sed 's/^/| /' conftest.$ac_ext >&5
 
3866
 
 
3867
ac_lo=`expr '(' $ac_mid ')' + 1`
 
3868
fi
 
3869
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3870
done
 
3871
case $ac_lo in
 
3872
?*) ac_cv_sizeof_voidp=$ac_lo;;
 
3873
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
3874
See \`config.log' for more details." >&5
 
3875
echo "$as_me: error: cannot compute sizeof (void*), 77
 
3876
See \`config.log' for more details." >&2;}
 
3877
   { (exit 1); exit 1; }; } ;;
 
3878
esac
 
3879
else
 
3880
  if test "$cross_compiling" = yes; then
 
3881
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
3882
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
3883
   { (exit 1); exit 1; }; }
 
3884
else
 
3885
  cat >conftest.$ac_ext <<_ACEOF
 
3886
/* confdefs.h.  */
 
3887
_ACEOF
 
3888
cat confdefs.h >>conftest.$ac_ext
 
3889
cat >>conftest.$ac_ext <<_ACEOF
 
3890
/* end confdefs.h.  */
 
3891
$ac_includes_default
 
3892
long longval () { return (long) (sizeof (void*)); }
 
3893
unsigned long ulongval () { return (long) (sizeof (void*)); }
1440
3894
#include <stdio.h>
1441
 
main()
 
3895
#include <stdlib.h>
 
3896
int
 
3897
main ()
1442
3898
{
1443
 
  FILE *f=fopen("conftestval", "w");
1444
 
  if (!f) exit(1);
1445
 
  fprintf(f, "%d\n", sizeof(void*));
1446
 
  exit(0);
 
3899
 
 
3900
  FILE *f = fopen ("conftest.val", "w");
 
3901
  if (! f)
 
3902
    exit (1);
 
3903
  if (((long) (sizeof (void*))) < 0)
 
3904
    {
 
3905
      long i = longval ();
 
3906
      if (i != ((long) (sizeof (void*))))
 
3907
        exit (1);
 
3908
      fprintf (f, "%ld\n", i);
 
3909
    }
 
3910
  else
 
3911
    {
 
3912
      unsigned long i = ulongval ();
 
3913
      if (i != ((long) (sizeof (void*))))
 
3914
        exit (1);
 
3915
      fprintf (f, "%lu\n", i);
 
3916
    }
 
3917
  exit (ferror (f) || fclose (f) != 0);
 
3918
 
 
3919
  ;
 
3920
  return 0;
1447
3921
}
1448
 
EOF
1449
 
if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1450
 
then
1451
 
  ac_cv_sizeof_voidp=`cat conftestval`
1452
 
else
1453
 
  echo "configure: failed program was:" >&5
1454
 
  cat conftest.$ac_ext >&5
1455
 
  rm -fr conftest*
 
3922
_ACEOF
 
3923
rm -f conftest$ac_exeext
 
3924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3925
  (eval $ac_link) 2>&5
 
3926
  ac_status=$?
 
3927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3928
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3930
  (eval $ac_try) 2>&5
 
3931
  ac_status=$?
 
3932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3933
  (exit $ac_status); }; }; then
 
3934
  ac_cv_sizeof_voidp=`cat conftest.val`
 
3935
else
 
3936
  echo "$as_me: program exited with status $ac_status" >&5
 
3937
echo "$as_me: failed program was:" >&5
 
3938
sed 's/^/| /' conftest.$ac_ext >&5
 
3939
 
 
3940
( exit $ac_status )
 
3941
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
3942
See \`config.log' for more details." >&5
 
3943
echo "$as_me: error: cannot compute sizeof (void*), 77
 
3944
See \`config.log' for more details." >&2;}
 
3945
   { (exit 1); exit 1; }; }
 
3946
fi
 
3947
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3948
fi
 
3949
fi
 
3950
rm -f conftest.val
 
3951
else
1456
3952
  ac_cv_sizeof_voidp=0
1457
3953
fi
1458
 
rm -fr conftest*
1459
 
fi
1460
 
 
1461
 
fi
1462
 
echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
1463
 
cat >> confdefs.h <<EOF
 
3954
fi
 
3955
echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
3956
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
 
3957
cat >>confdefs.h <<_ACEOF
1464
3958
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
1465
 
EOF
 
3959
_ACEOF
1466
3960
 
1467
3961
 
1468
3962
 
1471
3965
 
1472
3966
 
1473
3967
 
1474
 
echo $ac_n "checking size of short""... $ac_c" 1>&6
1475
 
echo "configure:1476: checking size of short" >&5
1476
 
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1477
 
  echo $ac_n "(cached) $ac_c" 1>&6
1478
 
else
1479
 
  if test "$cross_compiling" = yes; then
1480
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1481
 
else
1482
 
  cat > conftest.$ac_ext <<EOF
1483
 
#line 1484 "configure"
1484
 
#include "confdefs.h"
 
3968
echo "$as_me:$LINENO: checking for short" >&5
 
3969
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
3970
if test "${ac_cv_type_short+set}" = set; then
 
3971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3972
else
 
3973
  cat >conftest.$ac_ext <<_ACEOF
 
3974
/* confdefs.h.  */
 
3975
_ACEOF
 
3976
cat confdefs.h >>conftest.$ac_ext
 
3977
cat >>conftest.$ac_ext <<_ACEOF
 
3978
/* end confdefs.h.  */
 
3979
$ac_includes_default
 
3980
int
 
3981
main ()
 
3982
{
 
3983
if ((short *) 0)
 
3984
  return 0;
 
3985
if (sizeof (short))
 
3986
  return 0;
 
3987
  ;
 
3988
  return 0;
 
3989
}
 
3990
_ACEOF
 
3991
rm -f conftest.$ac_objext
 
3992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3993
  (eval $ac_compile) 2>conftest.er1
 
3994
  ac_status=$?
 
3995
  grep -v '^ *+' conftest.er1 >conftest.err
 
3996
  rm -f conftest.er1
 
3997
  cat conftest.err >&5
 
3998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3999
  (exit $ac_status); } &&
 
4000
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4002
  (eval $ac_try) 2>&5
 
4003
  ac_status=$?
 
4004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4005
  (exit $ac_status); }; } &&
 
4006
         { ac_try='test -s conftest.$ac_objext'
 
4007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4008
  (eval $ac_try) 2>&5
 
4009
  ac_status=$?
 
4010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4011
  (exit $ac_status); }; }; then
 
4012
  ac_cv_type_short=yes
 
4013
else
 
4014
  echo "$as_me: failed program was:" >&5
 
4015
sed 's/^/| /' conftest.$ac_ext >&5
 
4016
 
 
4017
ac_cv_type_short=no
 
4018
fi
 
4019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4020
fi
 
4021
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
4022
echo "${ECHO_T}$ac_cv_type_short" >&6
 
4023
 
 
4024
echo "$as_me:$LINENO: checking size of short" >&5
 
4025
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
4026
if test "${ac_cv_sizeof_short+set}" = set; then
 
4027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4028
else
 
4029
  if test "$ac_cv_type_short" = yes; then
 
4030
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4031
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4032
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4033
  # This bug is HP SR number 8606223364.
 
4034
  if test "$cross_compiling" = yes; then
 
4035
  # Depending upon the size, compute the lo and hi bounds.
 
4036
cat >conftest.$ac_ext <<_ACEOF
 
4037
/* confdefs.h.  */
 
4038
_ACEOF
 
4039
cat confdefs.h >>conftest.$ac_ext
 
4040
cat >>conftest.$ac_ext <<_ACEOF
 
4041
/* end confdefs.h.  */
 
4042
$ac_includes_default
 
4043
int
 
4044
main ()
 
4045
{
 
4046
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
4047
test_array [0] = 0
 
4048
 
 
4049
  ;
 
4050
  return 0;
 
4051
}
 
4052
_ACEOF
 
4053
rm -f conftest.$ac_objext
 
4054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4055
  (eval $ac_compile) 2>conftest.er1
 
4056
  ac_status=$?
 
4057
  grep -v '^ *+' conftest.er1 >conftest.err
 
4058
  rm -f conftest.er1
 
4059
  cat conftest.err >&5
 
4060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4061
  (exit $ac_status); } &&
 
4062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4064
  (eval $ac_try) 2>&5
 
4065
  ac_status=$?
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); }; } &&
 
4068
         { ac_try='test -s conftest.$ac_objext'
 
4069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4070
  (eval $ac_try) 2>&5
 
4071
  ac_status=$?
 
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4073
  (exit $ac_status); }; }; then
 
4074
  ac_lo=0 ac_mid=0
 
4075
  while :; do
 
4076
    cat >conftest.$ac_ext <<_ACEOF
 
4077
/* confdefs.h.  */
 
4078
_ACEOF
 
4079
cat confdefs.h >>conftest.$ac_ext
 
4080
cat >>conftest.$ac_ext <<_ACEOF
 
4081
/* end confdefs.h.  */
 
4082
$ac_includes_default
 
4083
int
 
4084
main ()
 
4085
{
 
4086
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
4087
test_array [0] = 0
 
4088
 
 
4089
  ;
 
4090
  return 0;
 
4091
}
 
4092
_ACEOF
 
4093
rm -f conftest.$ac_objext
 
4094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4095
  (eval $ac_compile) 2>conftest.er1
 
4096
  ac_status=$?
 
4097
  grep -v '^ *+' conftest.er1 >conftest.err
 
4098
  rm -f conftest.er1
 
4099
  cat conftest.err >&5
 
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); } &&
 
4102
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4104
  (eval $ac_try) 2>&5
 
4105
  ac_status=$?
 
4106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4107
  (exit $ac_status); }; } &&
 
4108
         { ac_try='test -s conftest.$ac_objext'
 
4109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4110
  (eval $ac_try) 2>&5
 
4111
  ac_status=$?
 
4112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4113
  (exit $ac_status); }; }; then
 
4114
  ac_hi=$ac_mid; break
 
4115
else
 
4116
  echo "$as_me: failed program was:" >&5
 
4117
sed 's/^/| /' conftest.$ac_ext >&5
 
4118
 
 
4119
ac_lo=`expr $ac_mid + 1`
 
4120
                    if test $ac_lo -le $ac_mid; then
 
4121
                      ac_lo= ac_hi=
 
4122
                      break
 
4123
                    fi
 
4124
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4125
fi
 
4126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4127
  done
 
4128
else
 
4129
  echo "$as_me: failed program was:" >&5
 
4130
sed 's/^/| /' conftest.$ac_ext >&5
 
4131
 
 
4132
cat >conftest.$ac_ext <<_ACEOF
 
4133
/* confdefs.h.  */
 
4134
_ACEOF
 
4135
cat confdefs.h >>conftest.$ac_ext
 
4136
cat >>conftest.$ac_ext <<_ACEOF
 
4137
/* end confdefs.h.  */
 
4138
$ac_includes_default
 
4139
int
 
4140
main ()
 
4141
{
 
4142
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
4143
test_array [0] = 0
 
4144
 
 
4145
  ;
 
4146
  return 0;
 
4147
}
 
4148
_ACEOF
 
4149
rm -f conftest.$ac_objext
 
4150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4151
  (eval $ac_compile) 2>conftest.er1
 
4152
  ac_status=$?
 
4153
  grep -v '^ *+' conftest.er1 >conftest.err
 
4154
  rm -f conftest.er1
 
4155
  cat conftest.err >&5
 
4156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4157
  (exit $ac_status); } &&
 
4158
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4160
  (eval $ac_try) 2>&5
 
4161
  ac_status=$?
 
4162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4163
  (exit $ac_status); }; } &&
 
4164
         { ac_try='test -s conftest.$ac_objext'
 
4165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4166
  (eval $ac_try) 2>&5
 
4167
  ac_status=$?
 
4168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4169
  (exit $ac_status); }; }; then
 
4170
  ac_hi=-1 ac_mid=-1
 
4171
  while :; do
 
4172
    cat >conftest.$ac_ext <<_ACEOF
 
4173
/* confdefs.h.  */
 
4174
_ACEOF
 
4175
cat confdefs.h >>conftest.$ac_ext
 
4176
cat >>conftest.$ac_ext <<_ACEOF
 
4177
/* end confdefs.h.  */
 
4178
$ac_includes_default
 
4179
int
 
4180
main ()
 
4181
{
 
4182
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
4183
test_array [0] = 0
 
4184
 
 
4185
  ;
 
4186
  return 0;
 
4187
}
 
4188
_ACEOF
 
4189
rm -f conftest.$ac_objext
 
4190
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4191
  (eval $ac_compile) 2>conftest.er1
 
4192
  ac_status=$?
 
4193
  grep -v '^ *+' conftest.er1 >conftest.err
 
4194
  rm -f conftest.er1
 
4195
  cat conftest.err >&5
 
4196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4197
  (exit $ac_status); } &&
 
4198
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4200
  (eval $ac_try) 2>&5
 
4201
  ac_status=$?
 
4202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4203
  (exit $ac_status); }; } &&
 
4204
         { ac_try='test -s conftest.$ac_objext'
 
4205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4206
  (eval $ac_try) 2>&5
 
4207
  ac_status=$?
 
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4209
  (exit $ac_status); }; }; then
 
4210
  ac_lo=$ac_mid; break
 
4211
else
 
4212
  echo "$as_me: failed program was:" >&5
 
4213
sed 's/^/| /' conftest.$ac_ext >&5
 
4214
 
 
4215
ac_hi=`expr '(' $ac_mid ')' - 1`
 
4216
                       if test $ac_mid -le $ac_hi; then
 
4217
                         ac_lo= ac_hi=
 
4218
                         break
 
4219
                       fi
 
4220
                       ac_mid=`expr 2 '*' $ac_mid`
 
4221
fi
 
4222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4223
  done
 
4224
else
 
4225
  echo "$as_me: failed program was:" >&5
 
4226
sed 's/^/| /' conftest.$ac_ext >&5
 
4227
 
 
4228
ac_lo= ac_hi=
 
4229
fi
 
4230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4231
fi
 
4232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4233
# Binary search between lo and hi bounds.
 
4234
while test "x$ac_lo" != "x$ac_hi"; do
 
4235
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
4236
  cat >conftest.$ac_ext <<_ACEOF
 
4237
/* confdefs.h.  */
 
4238
_ACEOF
 
4239
cat confdefs.h >>conftest.$ac_ext
 
4240
cat >>conftest.$ac_ext <<_ACEOF
 
4241
/* end confdefs.h.  */
 
4242
$ac_includes_default
 
4243
int
 
4244
main ()
 
4245
{
 
4246
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
4247
test_array [0] = 0
 
4248
 
 
4249
  ;
 
4250
  return 0;
 
4251
}
 
4252
_ACEOF
 
4253
rm -f conftest.$ac_objext
 
4254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4255
  (eval $ac_compile) 2>conftest.er1
 
4256
  ac_status=$?
 
4257
  grep -v '^ *+' conftest.er1 >conftest.err
 
4258
  rm -f conftest.er1
 
4259
  cat conftest.err >&5
 
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4261
  (exit $ac_status); } &&
 
4262
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4264
  (eval $ac_try) 2>&5
 
4265
  ac_status=$?
 
4266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4267
  (exit $ac_status); }; } &&
 
4268
         { ac_try='test -s conftest.$ac_objext'
 
4269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4270
  (eval $ac_try) 2>&5
 
4271
  ac_status=$?
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); }; }; then
 
4274
  ac_hi=$ac_mid
 
4275
else
 
4276
  echo "$as_me: failed program was:" >&5
 
4277
sed 's/^/| /' conftest.$ac_ext >&5
 
4278
 
 
4279
ac_lo=`expr '(' $ac_mid ')' + 1`
 
4280
fi
 
4281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4282
done
 
4283
case $ac_lo in
 
4284
?*) ac_cv_sizeof_short=$ac_lo;;
 
4285
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
4286
See \`config.log' for more details." >&5
 
4287
echo "$as_me: error: cannot compute sizeof (short), 77
 
4288
See \`config.log' for more details." >&2;}
 
4289
   { (exit 1); exit 1; }; } ;;
 
4290
esac
 
4291
else
 
4292
  if test "$cross_compiling" = yes; then
 
4293
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
4294
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
4295
   { (exit 1); exit 1; }; }
 
4296
else
 
4297
  cat >conftest.$ac_ext <<_ACEOF
 
4298
/* confdefs.h.  */
 
4299
_ACEOF
 
4300
cat confdefs.h >>conftest.$ac_ext
 
4301
cat >>conftest.$ac_ext <<_ACEOF
 
4302
/* end confdefs.h.  */
 
4303
$ac_includes_default
 
4304
long longval () { return (long) (sizeof (short)); }
 
4305
unsigned long ulongval () { return (long) (sizeof (short)); }
1485
4306
#include <stdio.h>
1486
 
main()
 
4307
#include <stdlib.h>
 
4308
int
 
4309
main ()
1487
4310
{
1488
 
  FILE *f=fopen("conftestval", "w");
1489
 
  if (!f) exit(1);
1490
 
  fprintf(f, "%d\n", sizeof(short));
1491
 
  exit(0);
 
4311
 
 
4312
  FILE *f = fopen ("conftest.val", "w");
 
4313
  if (! f)
 
4314
    exit (1);
 
4315
  if (((long) (sizeof (short))) < 0)
 
4316
    {
 
4317
      long i = longval ();
 
4318
      if (i != ((long) (sizeof (short))))
 
4319
        exit (1);
 
4320
      fprintf (f, "%ld\n", i);
 
4321
    }
 
4322
  else
 
4323
    {
 
4324
      unsigned long i = ulongval ();
 
4325
      if (i != ((long) (sizeof (short))))
 
4326
        exit (1);
 
4327
      fprintf (f, "%lu\n", i);
 
4328
    }
 
4329
  exit (ferror (f) || fclose (f) != 0);
 
4330
 
 
4331
  ;
 
4332
  return 0;
1492
4333
}
1493
 
EOF
1494
 
if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1495
 
then
1496
 
  ac_cv_sizeof_short=`cat conftestval`
1497
 
else
1498
 
  echo "configure: failed program was:" >&5
1499
 
  cat conftest.$ac_ext >&5
1500
 
  rm -fr conftest*
 
4334
_ACEOF
 
4335
rm -f conftest$ac_exeext
 
4336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4337
  (eval $ac_link) 2>&5
 
4338
  ac_status=$?
 
4339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4340
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4342
  (eval $ac_try) 2>&5
 
4343
  ac_status=$?
 
4344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4345
  (exit $ac_status); }; }; then
 
4346
  ac_cv_sizeof_short=`cat conftest.val`
 
4347
else
 
4348
  echo "$as_me: program exited with status $ac_status" >&5
 
4349
echo "$as_me: failed program was:" >&5
 
4350
sed 's/^/| /' conftest.$ac_ext >&5
 
4351
 
 
4352
( exit $ac_status )
 
4353
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
4354
See \`config.log' for more details." >&5
 
4355
echo "$as_me: error: cannot compute sizeof (short), 77
 
4356
See \`config.log' for more details." >&2;}
 
4357
   { (exit 1); exit 1; }; }
 
4358
fi
 
4359
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4360
fi
 
4361
fi
 
4362
rm -f conftest.val
 
4363
else
1501
4364
  ac_cv_sizeof_short=0
1502
4365
fi
1503
 
rm -fr conftest*
1504
 
fi
1505
 
 
1506
 
fi
1507
 
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1508
 
cat >> confdefs.h <<EOF
 
4366
fi
 
4367
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
4368
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
4369
cat >>confdefs.h <<_ACEOF
1509
4370
#define SIZEOF_SHORT $ac_cv_sizeof_short
1510
 
EOF
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
echo $ac_n "checking size of int""... $ac_c" 1>&6
1516
 
echo "configure:1517: checking size of int" >&5
1517
 
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1518
 
  echo $ac_n "(cached) $ac_c" 1>&6
1519
 
else
1520
 
  if test "$cross_compiling" = yes; then
1521
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1522
 
else
1523
 
  cat > conftest.$ac_ext <<EOF
1524
 
#line 1525 "configure"
1525
 
#include "confdefs.h"
 
4371
_ACEOF
 
4372
 
 
4373
 
 
4374
 
 
4375
 
 
4376
echo "$as_me:$LINENO: checking for int" >&5
 
4377
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
4378
if test "${ac_cv_type_int+set}" = set; then
 
4379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4380
else
 
4381
  cat >conftest.$ac_ext <<_ACEOF
 
4382
/* confdefs.h.  */
 
4383
_ACEOF
 
4384
cat confdefs.h >>conftest.$ac_ext
 
4385
cat >>conftest.$ac_ext <<_ACEOF
 
4386
/* end confdefs.h.  */
 
4387
$ac_includes_default
 
4388
int
 
4389
main ()
 
4390
{
 
4391
if ((int *) 0)
 
4392
  return 0;
 
4393
if (sizeof (int))
 
4394
  return 0;
 
4395
  ;
 
4396
  return 0;
 
4397
}
 
4398
_ACEOF
 
4399
rm -f conftest.$ac_objext
 
4400
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4401
  (eval $ac_compile) 2>conftest.er1
 
4402
  ac_status=$?
 
4403
  grep -v '^ *+' conftest.er1 >conftest.err
 
4404
  rm -f conftest.er1
 
4405
  cat conftest.err >&5
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); } &&
 
4408
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4410
  (eval $ac_try) 2>&5
 
4411
  ac_status=$?
 
4412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4413
  (exit $ac_status); }; } &&
 
4414
         { ac_try='test -s conftest.$ac_objext'
 
4415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4416
  (eval $ac_try) 2>&5
 
4417
  ac_status=$?
 
4418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4419
  (exit $ac_status); }; }; then
 
4420
  ac_cv_type_int=yes
 
4421
else
 
4422
  echo "$as_me: failed program was:" >&5
 
4423
sed 's/^/| /' conftest.$ac_ext >&5
 
4424
 
 
4425
ac_cv_type_int=no
 
4426
fi
 
4427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4428
fi
 
4429
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
4430
echo "${ECHO_T}$ac_cv_type_int" >&6
 
4431
 
 
4432
echo "$as_me:$LINENO: checking size of int" >&5
 
4433
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
4434
if test "${ac_cv_sizeof_int+set}" = set; then
 
4435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4436
else
 
4437
  if test "$ac_cv_type_int" = yes; then
 
4438
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4439
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4440
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4441
  # This bug is HP SR number 8606223364.
 
4442
  if test "$cross_compiling" = yes; then
 
4443
  # Depending upon the size, compute the lo and hi bounds.
 
4444
cat >conftest.$ac_ext <<_ACEOF
 
4445
/* confdefs.h.  */
 
4446
_ACEOF
 
4447
cat confdefs.h >>conftest.$ac_ext
 
4448
cat >>conftest.$ac_ext <<_ACEOF
 
4449
/* end confdefs.h.  */
 
4450
$ac_includes_default
 
4451
int
 
4452
main ()
 
4453
{
 
4454
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
4455
test_array [0] = 0
 
4456
 
 
4457
  ;
 
4458
  return 0;
 
4459
}
 
4460
_ACEOF
 
4461
rm -f conftest.$ac_objext
 
4462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4463
  (eval $ac_compile) 2>conftest.er1
 
4464
  ac_status=$?
 
4465
  grep -v '^ *+' conftest.er1 >conftest.err
 
4466
  rm -f conftest.er1
 
4467
  cat conftest.err >&5
 
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4469
  (exit $ac_status); } &&
 
4470
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4472
  (eval $ac_try) 2>&5
 
4473
  ac_status=$?
 
4474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4475
  (exit $ac_status); }; } &&
 
4476
         { ac_try='test -s conftest.$ac_objext'
 
4477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4478
  (eval $ac_try) 2>&5
 
4479
  ac_status=$?
 
4480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4481
  (exit $ac_status); }; }; then
 
4482
  ac_lo=0 ac_mid=0
 
4483
  while :; do
 
4484
    cat >conftest.$ac_ext <<_ACEOF
 
4485
/* confdefs.h.  */
 
4486
_ACEOF
 
4487
cat confdefs.h >>conftest.$ac_ext
 
4488
cat >>conftest.$ac_ext <<_ACEOF
 
4489
/* end confdefs.h.  */
 
4490
$ac_includes_default
 
4491
int
 
4492
main ()
 
4493
{
 
4494
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
4495
test_array [0] = 0
 
4496
 
 
4497
  ;
 
4498
  return 0;
 
4499
}
 
4500
_ACEOF
 
4501
rm -f conftest.$ac_objext
 
4502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4503
  (eval $ac_compile) 2>conftest.er1
 
4504
  ac_status=$?
 
4505
  grep -v '^ *+' conftest.er1 >conftest.err
 
4506
  rm -f conftest.er1
 
4507
  cat conftest.err >&5
 
4508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4509
  (exit $ac_status); } &&
 
4510
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4512
  (eval $ac_try) 2>&5
 
4513
  ac_status=$?
 
4514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4515
  (exit $ac_status); }; } &&
 
4516
         { ac_try='test -s conftest.$ac_objext'
 
4517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4518
  (eval $ac_try) 2>&5
 
4519
  ac_status=$?
 
4520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4521
  (exit $ac_status); }; }; then
 
4522
  ac_hi=$ac_mid; break
 
4523
else
 
4524
  echo "$as_me: failed program was:" >&5
 
4525
sed 's/^/| /' conftest.$ac_ext >&5
 
4526
 
 
4527
ac_lo=`expr $ac_mid + 1`
 
4528
                    if test $ac_lo -le $ac_mid; then
 
4529
                      ac_lo= ac_hi=
 
4530
                      break
 
4531
                    fi
 
4532
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4533
fi
 
4534
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4535
  done
 
4536
else
 
4537
  echo "$as_me: failed program was:" >&5
 
4538
sed 's/^/| /' conftest.$ac_ext >&5
 
4539
 
 
4540
cat >conftest.$ac_ext <<_ACEOF
 
4541
/* confdefs.h.  */
 
4542
_ACEOF
 
4543
cat confdefs.h >>conftest.$ac_ext
 
4544
cat >>conftest.$ac_ext <<_ACEOF
 
4545
/* end confdefs.h.  */
 
4546
$ac_includes_default
 
4547
int
 
4548
main ()
 
4549
{
 
4550
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
4551
test_array [0] = 0
 
4552
 
 
4553
  ;
 
4554
  return 0;
 
4555
}
 
4556
_ACEOF
 
4557
rm -f conftest.$ac_objext
 
4558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4559
  (eval $ac_compile) 2>conftest.er1
 
4560
  ac_status=$?
 
4561
  grep -v '^ *+' conftest.er1 >conftest.err
 
4562
  rm -f conftest.er1
 
4563
  cat conftest.err >&5
 
4564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4565
  (exit $ac_status); } &&
 
4566
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4568
  (eval $ac_try) 2>&5
 
4569
  ac_status=$?
 
4570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4571
  (exit $ac_status); }; } &&
 
4572
         { ac_try='test -s conftest.$ac_objext'
 
4573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4574
  (eval $ac_try) 2>&5
 
4575
  ac_status=$?
 
4576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4577
  (exit $ac_status); }; }; then
 
4578
  ac_hi=-1 ac_mid=-1
 
4579
  while :; do
 
4580
    cat >conftest.$ac_ext <<_ACEOF
 
4581
/* confdefs.h.  */
 
4582
_ACEOF
 
4583
cat confdefs.h >>conftest.$ac_ext
 
4584
cat >>conftest.$ac_ext <<_ACEOF
 
4585
/* end confdefs.h.  */
 
4586
$ac_includes_default
 
4587
int
 
4588
main ()
 
4589
{
 
4590
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
4591
test_array [0] = 0
 
4592
 
 
4593
  ;
 
4594
  return 0;
 
4595
}
 
4596
_ACEOF
 
4597
rm -f conftest.$ac_objext
 
4598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4599
  (eval $ac_compile) 2>conftest.er1
 
4600
  ac_status=$?
 
4601
  grep -v '^ *+' conftest.er1 >conftest.err
 
4602
  rm -f conftest.er1
 
4603
  cat conftest.err >&5
 
4604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4605
  (exit $ac_status); } &&
 
4606
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4608
  (eval $ac_try) 2>&5
 
4609
  ac_status=$?
 
4610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4611
  (exit $ac_status); }; } &&
 
4612
         { ac_try='test -s conftest.$ac_objext'
 
4613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4614
  (eval $ac_try) 2>&5
 
4615
  ac_status=$?
 
4616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4617
  (exit $ac_status); }; }; then
 
4618
  ac_lo=$ac_mid; break
 
4619
else
 
4620
  echo "$as_me: failed program was:" >&5
 
4621
sed 's/^/| /' conftest.$ac_ext >&5
 
4622
 
 
4623
ac_hi=`expr '(' $ac_mid ')' - 1`
 
4624
                       if test $ac_mid -le $ac_hi; then
 
4625
                         ac_lo= ac_hi=
 
4626
                         break
 
4627
                       fi
 
4628
                       ac_mid=`expr 2 '*' $ac_mid`
 
4629
fi
 
4630
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4631
  done
 
4632
else
 
4633
  echo "$as_me: failed program was:" >&5
 
4634
sed 's/^/| /' conftest.$ac_ext >&5
 
4635
 
 
4636
ac_lo= ac_hi=
 
4637
fi
 
4638
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4639
fi
 
4640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4641
# Binary search between lo and hi bounds.
 
4642
while test "x$ac_lo" != "x$ac_hi"; do
 
4643
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
4644
  cat >conftest.$ac_ext <<_ACEOF
 
4645
/* confdefs.h.  */
 
4646
_ACEOF
 
4647
cat confdefs.h >>conftest.$ac_ext
 
4648
cat >>conftest.$ac_ext <<_ACEOF
 
4649
/* end confdefs.h.  */
 
4650
$ac_includes_default
 
4651
int
 
4652
main ()
 
4653
{
 
4654
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
4655
test_array [0] = 0
 
4656
 
 
4657
  ;
 
4658
  return 0;
 
4659
}
 
4660
_ACEOF
 
4661
rm -f conftest.$ac_objext
 
4662
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4663
  (eval $ac_compile) 2>conftest.er1
 
4664
  ac_status=$?
 
4665
  grep -v '^ *+' conftest.er1 >conftest.err
 
4666
  rm -f conftest.er1
 
4667
  cat conftest.err >&5
 
4668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4669
  (exit $ac_status); } &&
 
4670
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4672
  (eval $ac_try) 2>&5
 
4673
  ac_status=$?
 
4674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4675
  (exit $ac_status); }; } &&
 
4676
         { ac_try='test -s conftest.$ac_objext'
 
4677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4678
  (eval $ac_try) 2>&5
 
4679
  ac_status=$?
 
4680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4681
  (exit $ac_status); }; }; then
 
4682
  ac_hi=$ac_mid
 
4683
else
 
4684
  echo "$as_me: failed program was:" >&5
 
4685
sed 's/^/| /' conftest.$ac_ext >&5
 
4686
 
 
4687
ac_lo=`expr '(' $ac_mid ')' + 1`
 
4688
fi
 
4689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4690
done
 
4691
case $ac_lo in
 
4692
?*) ac_cv_sizeof_int=$ac_lo;;
 
4693
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
4694
See \`config.log' for more details." >&5
 
4695
echo "$as_me: error: cannot compute sizeof (int), 77
 
4696
See \`config.log' for more details." >&2;}
 
4697
   { (exit 1); exit 1; }; } ;;
 
4698
esac
 
4699
else
 
4700
  if test "$cross_compiling" = yes; then
 
4701
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
4702
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
4703
   { (exit 1); exit 1; }; }
 
4704
else
 
4705
  cat >conftest.$ac_ext <<_ACEOF
 
4706
/* confdefs.h.  */
 
4707
_ACEOF
 
4708
cat confdefs.h >>conftest.$ac_ext
 
4709
cat >>conftest.$ac_ext <<_ACEOF
 
4710
/* end confdefs.h.  */
 
4711
$ac_includes_default
 
4712
long longval () { return (long) (sizeof (int)); }
 
4713
unsigned long ulongval () { return (long) (sizeof (int)); }
1526
4714
#include <stdio.h>
1527
 
main()
 
4715
#include <stdlib.h>
 
4716
int
 
4717
main ()
1528
4718
{
1529
 
  FILE *f=fopen("conftestval", "w");
1530
 
  if (!f) exit(1);
1531
 
  fprintf(f, "%d\n", sizeof(int));
1532
 
  exit(0);
 
4719
 
 
4720
  FILE *f = fopen ("conftest.val", "w");
 
4721
  if (! f)
 
4722
    exit (1);
 
4723
  if (((long) (sizeof (int))) < 0)
 
4724
    {
 
4725
      long i = longval ();
 
4726
      if (i != ((long) (sizeof (int))))
 
4727
        exit (1);
 
4728
      fprintf (f, "%ld\n", i);
 
4729
    }
 
4730
  else
 
4731
    {
 
4732
      unsigned long i = ulongval ();
 
4733
      if (i != ((long) (sizeof (int))))
 
4734
        exit (1);
 
4735
      fprintf (f, "%lu\n", i);
 
4736
    }
 
4737
  exit (ferror (f) || fclose (f) != 0);
 
4738
 
 
4739
  ;
 
4740
  return 0;
1533
4741
}
1534
 
EOF
1535
 
if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1536
 
then
1537
 
  ac_cv_sizeof_int=`cat conftestval`
1538
 
else
1539
 
  echo "configure: failed program was:" >&5
1540
 
  cat conftest.$ac_ext >&5
1541
 
  rm -fr conftest*
 
4742
_ACEOF
 
4743
rm -f conftest$ac_exeext
 
4744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4745
  (eval $ac_link) 2>&5
 
4746
  ac_status=$?
 
4747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4748
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4750
  (eval $ac_try) 2>&5
 
4751
  ac_status=$?
 
4752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4753
  (exit $ac_status); }; }; then
 
4754
  ac_cv_sizeof_int=`cat conftest.val`
 
4755
else
 
4756
  echo "$as_me: program exited with status $ac_status" >&5
 
4757
echo "$as_me: failed program was:" >&5
 
4758
sed 's/^/| /' conftest.$ac_ext >&5
 
4759
 
 
4760
( exit $ac_status )
 
4761
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
4762
See \`config.log' for more details." >&5
 
4763
echo "$as_me: error: cannot compute sizeof (int), 77
 
4764
See \`config.log' for more details." >&2;}
 
4765
   { (exit 1); exit 1; }; }
 
4766
fi
 
4767
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4768
fi
 
4769
fi
 
4770
rm -f conftest.val
 
4771
else
1542
4772
  ac_cv_sizeof_int=0
1543
4773
fi
1544
 
rm -fr conftest*
1545
 
fi
1546
 
 
1547
 
fi
1548
 
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1549
 
cat >> confdefs.h <<EOF
 
4774
fi
 
4775
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
4776
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
4777
cat >>confdefs.h <<_ACEOF
1550
4778
#define SIZEOF_INT $ac_cv_sizeof_int
1551
 
EOF
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
echo $ac_n "checking size of long""... $ac_c" 1>&6
1557
 
echo "configure:1558: checking size of long" >&5
1558
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1559
 
  echo $ac_n "(cached) $ac_c" 1>&6
1560
 
else
1561
 
  if test "$cross_compiling" = yes; then
1562
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1563
 
else
1564
 
  cat > conftest.$ac_ext <<EOF
1565
 
#line 1566 "configure"
1566
 
#include "confdefs.h"
 
4779
_ACEOF
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
echo "$as_me:$LINENO: checking for long" >&5
 
4785
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
4786
if test "${ac_cv_type_long+set}" = set; then
 
4787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4788
else
 
4789
  cat >conftest.$ac_ext <<_ACEOF
 
4790
/* confdefs.h.  */
 
4791
_ACEOF
 
4792
cat confdefs.h >>conftest.$ac_ext
 
4793
cat >>conftest.$ac_ext <<_ACEOF
 
4794
/* end confdefs.h.  */
 
4795
$ac_includes_default
 
4796
int
 
4797
main ()
 
4798
{
 
4799
if ((long *) 0)
 
4800
  return 0;
 
4801
if (sizeof (long))
 
4802
  return 0;
 
4803
  ;
 
4804
  return 0;
 
4805
}
 
4806
_ACEOF
 
4807
rm -f conftest.$ac_objext
 
4808
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4809
  (eval $ac_compile) 2>conftest.er1
 
4810
  ac_status=$?
 
4811
  grep -v '^ *+' conftest.er1 >conftest.err
 
4812
  rm -f conftest.er1
 
4813
  cat conftest.err >&5
 
4814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4815
  (exit $ac_status); } &&
 
4816
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4818
  (eval $ac_try) 2>&5
 
4819
  ac_status=$?
 
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4821
  (exit $ac_status); }; } &&
 
4822
         { ac_try='test -s conftest.$ac_objext'
 
4823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4824
  (eval $ac_try) 2>&5
 
4825
  ac_status=$?
 
4826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4827
  (exit $ac_status); }; }; then
 
4828
  ac_cv_type_long=yes
 
4829
else
 
4830
  echo "$as_me: failed program was:" >&5
 
4831
sed 's/^/| /' conftest.$ac_ext >&5
 
4832
 
 
4833
ac_cv_type_long=no
 
4834
fi
 
4835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4836
fi
 
4837
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
4838
echo "${ECHO_T}$ac_cv_type_long" >&6
 
4839
 
 
4840
echo "$as_me:$LINENO: checking size of long" >&5
 
4841
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
4842
if test "${ac_cv_sizeof_long+set}" = set; then
 
4843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4844
else
 
4845
  if test "$ac_cv_type_long" = yes; then
 
4846
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4847
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4848
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4849
  # This bug is HP SR number 8606223364.
 
4850
  if test "$cross_compiling" = yes; then
 
4851
  # Depending upon the size, compute the lo and hi bounds.
 
4852
cat >conftest.$ac_ext <<_ACEOF
 
4853
/* confdefs.h.  */
 
4854
_ACEOF
 
4855
cat confdefs.h >>conftest.$ac_ext
 
4856
cat >>conftest.$ac_ext <<_ACEOF
 
4857
/* end confdefs.h.  */
 
4858
$ac_includes_default
 
4859
int
 
4860
main ()
 
4861
{
 
4862
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
4863
test_array [0] = 0
 
4864
 
 
4865
  ;
 
4866
  return 0;
 
4867
}
 
4868
_ACEOF
 
4869
rm -f conftest.$ac_objext
 
4870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4871
  (eval $ac_compile) 2>conftest.er1
 
4872
  ac_status=$?
 
4873
  grep -v '^ *+' conftest.er1 >conftest.err
 
4874
  rm -f conftest.er1
 
4875
  cat conftest.err >&5
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); } &&
 
4878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4880
  (eval $ac_try) 2>&5
 
4881
  ac_status=$?
 
4882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4883
  (exit $ac_status); }; } &&
 
4884
         { ac_try='test -s conftest.$ac_objext'
 
4885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4886
  (eval $ac_try) 2>&5
 
4887
  ac_status=$?
 
4888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4889
  (exit $ac_status); }; }; then
 
4890
  ac_lo=0 ac_mid=0
 
4891
  while :; do
 
4892
    cat >conftest.$ac_ext <<_ACEOF
 
4893
/* confdefs.h.  */
 
4894
_ACEOF
 
4895
cat confdefs.h >>conftest.$ac_ext
 
4896
cat >>conftest.$ac_ext <<_ACEOF
 
4897
/* end confdefs.h.  */
 
4898
$ac_includes_default
 
4899
int
 
4900
main ()
 
4901
{
 
4902
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
4903
test_array [0] = 0
 
4904
 
 
4905
  ;
 
4906
  return 0;
 
4907
}
 
4908
_ACEOF
 
4909
rm -f conftest.$ac_objext
 
4910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4911
  (eval $ac_compile) 2>conftest.er1
 
4912
  ac_status=$?
 
4913
  grep -v '^ *+' conftest.er1 >conftest.err
 
4914
  rm -f conftest.er1
 
4915
  cat conftest.err >&5
 
4916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4917
  (exit $ac_status); } &&
 
4918
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4920
  (eval $ac_try) 2>&5
 
4921
  ac_status=$?
 
4922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4923
  (exit $ac_status); }; } &&
 
4924
         { ac_try='test -s conftest.$ac_objext'
 
4925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4926
  (eval $ac_try) 2>&5
 
4927
  ac_status=$?
 
4928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4929
  (exit $ac_status); }; }; then
 
4930
  ac_hi=$ac_mid; break
 
4931
else
 
4932
  echo "$as_me: failed program was:" >&5
 
4933
sed 's/^/| /' conftest.$ac_ext >&5
 
4934
 
 
4935
ac_lo=`expr $ac_mid + 1`
 
4936
                    if test $ac_lo -le $ac_mid; then
 
4937
                      ac_lo= ac_hi=
 
4938
                      break
 
4939
                    fi
 
4940
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4941
fi
 
4942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4943
  done
 
4944
else
 
4945
  echo "$as_me: failed program was:" >&5
 
4946
sed 's/^/| /' conftest.$ac_ext >&5
 
4947
 
 
4948
cat >conftest.$ac_ext <<_ACEOF
 
4949
/* confdefs.h.  */
 
4950
_ACEOF
 
4951
cat confdefs.h >>conftest.$ac_ext
 
4952
cat >>conftest.$ac_ext <<_ACEOF
 
4953
/* end confdefs.h.  */
 
4954
$ac_includes_default
 
4955
int
 
4956
main ()
 
4957
{
 
4958
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
4959
test_array [0] = 0
 
4960
 
 
4961
  ;
 
4962
  return 0;
 
4963
}
 
4964
_ACEOF
 
4965
rm -f conftest.$ac_objext
 
4966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4967
  (eval $ac_compile) 2>conftest.er1
 
4968
  ac_status=$?
 
4969
  grep -v '^ *+' conftest.er1 >conftest.err
 
4970
  rm -f conftest.er1
 
4971
  cat conftest.err >&5
 
4972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4973
  (exit $ac_status); } &&
 
4974
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4976
  (eval $ac_try) 2>&5
 
4977
  ac_status=$?
 
4978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4979
  (exit $ac_status); }; } &&
 
4980
         { ac_try='test -s conftest.$ac_objext'
 
4981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4982
  (eval $ac_try) 2>&5
 
4983
  ac_status=$?
 
4984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4985
  (exit $ac_status); }; }; then
 
4986
  ac_hi=-1 ac_mid=-1
 
4987
  while :; do
 
4988
    cat >conftest.$ac_ext <<_ACEOF
 
4989
/* confdefs.h.  */
 
4990
_ACEOF
 
4991
cat confdefs.h >>conftest.$ac_ext
 
4992
cat >>conftest.$ac_ext <<_ACEOF
 
4993
/* end confdefs.h.  */
 
4994
$ac_includes_default
 
4995
int
 
4996
main ()
 
4997
{
 
4998
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
4999
test_array [0] = 0
 
5000
 
 
5001
  ;
 
5002
  return 0;
 
5003
}
 
5004
_ACEOF
 
5005
rm -f conftest.$ac_objext
 
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5007
  (eval $ac_compile) 2>conftest.er1
 
5008
  ac_status=$?
 
5009
  grep -v '^ *+' conftest.er1 >conftest.err
 
5010
  rm -f conftest.er1
 
5011
  cat conftest.err >&5
 
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); } &&
 
5014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5016
  (eval $ac_try) 2>&5
 
5017
  ac_status=$?
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); }; } &&
 
5020
         { ac_try='test -s conftest.$ac_objext'
 
5021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5022
  (eval $ac_try) 2>&5
 
5023
  ac_status=$?
 
5024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5025
  (exit $ac_status); }; }; then
 
5026
  ac_lo=$ac_mid; break
 
5027
else
 
5028
  echo "$as_me: failed program was:" >&5
 
5029
sed 's/^/| /' conftest.$ac_ext >&5
 
5030
 
 
5031
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5032
                       if test $ac_mid -le $ac_hi; then
 
5033
                         ac_lo= ac_hi=
 
5034
                         break
 
5035
                       fi
 
5036
                       ac_mid=`expr 2 '*' $ac_mid`
 
5037
fi
 
5038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5039
  done
 
5040
else
 
5041
  echo "$as_me: failed program was:" >&5
 
5042
sed 's/^/| /' conftest.$ac_ext >&5
 
5043
 
 
5044
ac_lo= ac_hi=
 
5045
fi
 
5046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5047
fi
 
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5049
# Binary search between lo and hi bounds.
 
5050
while test "x$ac_lo" != "x$ac_hi"; do
 
5051
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5052
  cat >conftest.$ac_ext <<_ACEOF
 
5053
/* confdefs.h.  */
 
5054
_ACEOF
 
5055
cat confdefs.h >>conftest.$ac_ext
 
5056
cat >>conftest.$ac_ext <<_ACEOF
 
5057
/* end confdefs.h.  */
 
5058
$ac_includes_default
 
5059
int
 
5060
main ()
 
5061
{
 
5062
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
5063
test_array [0] = 0
 
5064
 
 
5065
  ;
 
5066
  return 0;
 
5067
}
 
5068
_ACEOF
 
5069
rm -f conftest.$ac_objext
 
5070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5071
  (eval $ac_compile) 2>conftest.er1
 
5072
  ac_status=$?
 
5073
  grep -v '^ *+' conftest.er1 >conftest.err
 
5074
  rm -f conftest.er1
 
5075
  cat conftest.err >&5
 
5076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5077
  (exit $ac_status); } &&
 
5078
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5080
  (eval $ac_try) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); }; } &&
 
5084
         { ac_try='test -s conftest.$ac_objext'
 
5085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5086
  (eval $ac_try) 2>&5
 
5087
  ac_status=$?
 
5088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5089
  (exit $ac_status); }; }; then
 
5090
  ac_hi=$ac_mid
 
5091
else
 
5092
  echo "$as_me: failed program was:" >&5
 
5093
sed 's/^/| /' conftest.$ac_ext >&5
 
5094
 
 
5095
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5096
fi
 
5097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5098
done
 
5099
case $ac_lo in
 
5100
?*) ac_cv_sizeof_long=$ac_lo;;
 
5101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
5102
See \`config.log' for more details." >&5
 
5103
echo "$as_me: error: cannot compute sizeof (long), 77
 
5104
See \`config.log' for more details." >&2;}
 
5105
   { (exit 1); exit 1; }; } ;;
 
5106
esac
 
5107
else
 
5108
  if test "$cross_compiling" = yes; then
 
5109
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5110
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5111
   { (exit 1); exit 1; }; }
 
5112
else
 
5113
  cat >conftest.$ac_ext <<_ACEOF
 
5114
/* confdefs.h.  */
 
5115
_ACEOF
 
5116
cat confdefs.h >>conftest.$ac_ext
 
5117
cat >>conftest.$ac_ext <<_ACEOF
 
5118
/* end confdefs.h.  */
 
5119
$ac_includes_default
 
5120
long longval () { return (long) (sizeof (long)); }
 
5121
unsigned long ulongval () { return (long) (sizeof (long)); }
1567
5122
#include <stdio.h>
1568
 
main()
 
5123
#include <stdlib.h>
 
5124
int
 
5125
main ()
1569
5126
{
1570
 
  FILE *f=fopen("conftestval", "w");
1571
 
  if (!f) exit(1);
1572
 
  fprintf(f, "%d\n", sizeof(long));
1573
 
  exit(0);
 
5127
 
 
5128
  FILE *f = fopen ("conftest.val", "w");
 
5129
  if (! f)
 
5130
    exit (1);
 
5131
  if (((long) (sizeof (long))) < 0)
 
5132
    {
 
5133
      long i = longval ();
 
5134
      if (i != ((long) (sizeof (long))))
 
5135
        exit (1);
 
5136
      fprintf (f, "%ld\n", i);
 
5137
    }
 
5138
  else
 
5139
    {
 
5140
      unsigned long i = ulongval ();
 
5141
      if (i != ((long) (sizeof (long))))
 
5142
        exit (1);
 
5143
      fprintf (f, "%lu\n", i);
 
5144
    }
 
5145
  exit (ferror (f) || fclose (f) != 0);
 
5146
 
 
5147
  ;
 
5148
  return 0;
1574
5149
}
1575
 
EOF
1576
 
if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1577
 
then
1578
 
  ac_cv_sizeof_long=`cat conftestval`
1579
 
else
1580
 
  echo "configure: failed program was:" >&5
1581
 
  cat conftest.$ac_ext >&5
1582
 
  rm -fr conftest*
 
5150
_ACEOF
 
5151
rm -f conftest$ac_exeext
 
5152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5153
  (eval $ac_link) 2>&5
 
5154
  ac_status=$?
 
5155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5156
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5158
  (eval $ac_try) 2>&5
 
5159
  ac_status=$?
 
5160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5161
  (exit $ac_status); }; }; then
 
5162
  ac_cv_sizeof_long=`cat conftest.val`
 
5163
else
 
5164
  echo "$as_me: program exited with status $ac_status" >&5
 
5165
echo "$as_me: failed program was:" >&5
 
5166
sed 's/^/| /' conftest.$ac_ext >&5
 
5167
 
 
5168
( exit $ac_status )
 
5169
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
5170
See \`config.log' for more details." >&5
 
5171
echo "$as_me: error: cannot compute sizeof (long), 77
 
5172
See \`config.log' for more details." >&2;}
 
5173
   { (exit 1); exit 1; }; }
 
5174
fi
 
5175
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5176
fi
 
5177
fi
 
5178
rm -f conftest.val
 
5179
else
1583
5180
  ac_cv_sizeof_long=0
1584
5181
fi
1585
 
rm -fr conftest*
1586
 
fi
1587
 
 
1588
 
fi
1589
 
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1590
 
cat >> confdefs.h <<EOF
 
5182
fi
 
5183
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
5184
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
5185
cat >>confdefs.h <<_ACEOF
1591
5186
#define SIZEOF_LONG $ac_cv_sizeof_long
1592
 
EOF
1593
 
 
1594
 
 
1595
 
 
1596
 
 
1597
 
echo $ac_n "checking size of long long""... $ac_c" 1>&6
1598
 
echo "configure:1599: checking size of long long" >&5
1599
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1600
 
  echo $ac_n "(cached) $ac_c" 1>&6
1601
 
else
1602
 
  if test "$cross_compiling" = yes; then
1603
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1604
 
else
1605
 
  cat > conftest.$ac_ext <<EOF
1606
 
#line 1607 "configure"
1607
 
#include "confdefs.h"
 
5187
_ACEOF
 
5188
 
 
5189
 
 
5190
 
 
5191
 
 
5192
echo "$as_me:$LINENO: checking for long long" >&5
 
5193
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
5194
if test "${ac_cv_type_long_long+set}" = set; then
 
5195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5196
else
 
5197
  cat >conftest.$ac_ext <<_ACEOF
 
5198
/* confdefs.h.  */
 
5199
_ACEOF
 
5200
cat confdefs.h >>conftest.$ac_ext
 
5201
cat >>conftest.$ac_ext <<_ACEOF
 
5202
/* end confdefs.h.  */
 
5203
$ac_includes_default
 
5204
int
 
5205
main ()
 
5206
{
 
5207
if ((long long *) 0)
 
5208
  return 0;
 
5209
if (sizeof (long long))
 
5210
  return 0;
 
5211
  ;
 
5212
  return 0;
 
5213
}
 
5214
_ACEOF
 
5215
rm -f conftest.$ac_objext
 
5216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5217
  (eval $ac_compile) 2>conftest.er1
 
5218
  ac_status=$?
 
5219
  grep -v '^ *+' conftest.er1 >conftest.err
 
5220
  rm -f conftest.er1
 
5221
  cat conftest.err >&5
 
5222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5223
  (exit $ac_status); } &&
 
5224
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5226
  (eval $ac_try) 2>&5
 
5227
  ac_status=$?
 
5228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5229
  (exit $ac_status); }; } &&
 
5230
         { ac_try='test -s conftest.$ac_objext'
 
5231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5232
  (eval $ac_try) 2>&5
 
5233
  ac_status=$?
 
5234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5235
  (exit $ac_status); }; }; then
 
5236
  ac_cv_type_long_long=yes
 
5237
else
 
5238
  echo "$as_me: failed program was:" >&5
 
5239
sed 's/^/| /' conftest.$ac_ext >&5
 
5240
 
 
5241
ac_cv_type_long_long=no
 
5242
fi
 
5243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5244
fi
 
5245
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
5246
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
5247
 
 
5248
echo "$as_me:$LINENO: checking size of long long" >&5
 
5249
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
5250
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
5251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5252
else
 
5253
  if test "$ac_cv_type_long_long" = yes; then
 
5254
  # The cast to unsigned long works around a bug in the HP C Compiler
 
5255
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5256
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5257
  # This bug is HP SR number 8606223364.
 
5258
  if test "$cross_compiling" = yes; then
 
5259
  # Depending upon the size, compute the lo and hi bounds.
 
5260
cat >conftest.$ac_ext <<_ACEOF
 
5261
/* confdefs.h.  */
 
5262
_ACEOF
 
5263
cat confdefs.h >>conftest.$ac_ext
 
5264
cat >>conftest.$ac_ext <<_ACEOF
 
5265
/* end confdefs.h.  */
 
5266
$ac_includes_default
 
5267
int
 
5268
main ()
 
5269
{
 
5270
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
5271
test_array [0] = 0
 
5272
 
 
5273
  ;
 
5274
  return 0;
 
5275
}
 
5276
_ACEOF
 
5277
rm -f conftest.$ac_objext
 
5278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5279
  (eval $ac_compile) 2>conftest.er1
 
5280
  ac_status=$?
 
5281
  grep -v '^ *+' conftest.er1 >conftest.err
 
5282
  rm -f conftest.er1
 
5283
  cat conftest.err >&5
 
5284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5285
  (exit $ac_status); } &&
 
5286
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5288
  (eval $ac_try) 2>&5
 
5289
  ac_status=$?
 
5290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5291
  (exit $ac_status); }; } &&
 
5292
         { ac_try='test -s conftest.$ac_objext'
 
5293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5294
  (eval $ac_try) 2>&5
 
5295
  ac_status=$?
 
5296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5297
  (exit $ac_status); }; }; then
 
5298
  ac_lo=0 ac_mid=0
 
5299
  while :; do
 
5300
    cat >conftest.$ac_ext <<_ACEOF
 
5301
/* confdefs.h.  */
 
5302
_ACEOF
 
5303
cat confdefs.h >>conftest.$ac_ext
 
5304
cat >>conftest.$ac_ext <<_ACEOF
 
5305
/* end confdefs.h.  */
 
5306
$ac_includes_default
 
5307
int
 
5308
main ()
 
5309
{
 
5310
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
5311
test_array [0] = 0
 
5312
 
 
5313
  ;
 
5314
  return 0;
 
5315
}
 
5316
_ACEOF
 
5317
rm -f conftest.$ac_objext
 
5318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5319
  (eval $ac_compile) 2>conftest.er1
 
5320
  ac_status=$?
 
5321
  grep -v '^ *+' conftest.er1 >conftest.err
 
5322
  rm -f conftest.er1
 
5323
  cat conftest.err >&5
 
5324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5325
  (exit $ac_status); } &&
 
5326
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5328
  (eval $ac_try) 2>&5
 
5329
  ac_status=$?
 
5330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5331
  (exit $ac_status); }; } &&
 
5332
         { ac_try='test -s conftest.$ac_objext'
 
5333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5334
  (eval $ac_try) 2>&5
 
5335
  ac_status=$?
 
5336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5337
  (exit $ac_status); }; }; then
 
5338
  ac_hi=$ac_mid; break
 
5339
else
 
5340
  echo "$as_me: failed program was:" >&5
 
5341
sed 's/^/| /' conftest.$ac_ext >&5
 
5342
 
 
5343
ac_lo=`expr $ac_mid + 1`
 
5344
                    if test $ac_lo -le $ac_mid; then
 
5345
                      ac_lo= ac_hi=
 
5346
                      break
 
5347
                    fi
 
5348
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5349
fi
 
5350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5351
  done
 
5352
else
 
5353
  echo "$as_me: failed program was:" >&5
 
5354
sed 's/^/| /' conftest.$ac_ext >&5
 
5355
 
 
5356
cat >conftest.$ac_ext <<_ACEOF
 
5357
/* confdefs.h.  */
 
5358
_ACEOF
 
5359
cat confdefs.h >>conftest.$ac_ext
 
5360
cat >>conftest.$ac_ext <<_ACEOF
 
5361
/* end confdefs.h.  */
 
5362
$ac_includes_default
 
5363
int
 
5364
main ()
 
5365
{
 
5366
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
5367
test_array [0] = 0
 
5368
 
 
5369
  ;
 
5370
  return 0;
 
5371
}
 
5372
_ACEOF
 
5373
rm -f conftest.$ac_objext
 
5374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5375
  (eval $ac_compile) 2>conftest.er1
 
5376
  ac_status=$?
 
5377
  grep -v '^ *+' conftest.er1 >conftest.err
 
5378
  rm -f conftest.er1
 
5379
  cat conftest.err >&5
 
5380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5381
  (exit $ac_status); } &&
 
5382
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5384
  (eval $ac_try) 2>&5
 
5385
  ac_status=$?
 
5386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5387
  (exit $ac_status); }; } &&
 
5388
         { ac_try='test -s conftest.$ac_objext'
 
5389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5390
  (eval $ac_try) 2>&5
 
5391
  ac_status=$?
 
5392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5393
  (exit $ac_status); }; }; then
 
5394
  ac_hi=-1 ac_mid=-1
 
5395
  while :; do
 
5396
    cat >conftest.$ac_ext <<_ACEOF
 
5397
/* confdefs.h.  */
 
5398
_ACEOF
 
5399
cat confdefs.h >>conftest.$ac_ext
 
5400
cat >>conftest.$ac_ext <<_ACEOF
 
5401
/* end confdefs.h.  */
 
5402
$ac_includes_default
 
5403
int
 
5404
main ()
 
5405
{
 
5406
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
5407
test_array [0] = 0
 
5408
 
 
5409
  ;
 
5410
  return 0;
 
5411
}
 
5412
_ACEOF
 
5413
rm -f conftest.$ac_objext
 
5414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5415
  (eval $ac_compile) 2>conftest.er1
 
5416
  ac_status=$?
 
5417
  grep -v '^ *+' conftest.er1 >conftest.err
 
5418
  rm -f conftest.er1
 
5419
  cat conftest.err >&5
 
5420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5421
  (exit $ac_status); } &&
 
5422
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5424
  (eval $ac_try) 2>&5
 
5425
  ac_status=$?
 
5426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5427
  (exit $ac_status); }; } &&
 
5428
         { ac_try='test -s conftest.$ac_objext'
 
5429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5430
  (eval $ac_try) 2>&5
 
5431
  ac_status=$?
 
5432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5433
  (exit $ac_status); }; }; then
 
5434
  ac_lo=$ac_mid; break
 
5435
else
 
5436
  echo "$as_me: failed program was:" >&5
 
5437
sed 's/^/| /' conftest.$ac_ext >&5
 
5438
 
 
5439
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5440
                       if test $ac_mid -le $ac_hi; then
 
5441
                         ac_lo= ac_hi=
 
5442
                         break
 
5443
                       fi
 
5444
                       ac_mid=`expr 2 '*' $ac_mid`
 
5445
fi
 
5446
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5447
  done
 
5448
else
 
5449
  echo "$as_me: failed program was:" >&5
 
5450
sed 's/^/| /' conftest.$ac_ext >&5
 
5451
 
 
5452
ac_lo= ac_hi=
 
5453
fi
 
5454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5455
fi
 
5456
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5457
# Binary search between lo and hi bounds.
 
5458
while test "x$ac_lo" != "x$ac_hi"; do
 
5459
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5460
  cat >conftest.$ac_ext <<_ACEOF
 
5461
/* confdefs.h.  */
 
5462
_ACEOF
 
5463
cat confdefs.h >>conftest.$ac_ext
 
5464
cat >>conftest.$ac_ext <<_ACEOF
 
5465
/* end confdefs.h.  */
 
5466
$ac_includes_default
 
5467
int
 
5468
main ()
 
5469
{
 
5470
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
5471
test_array [0] = 0
 
5472
 
 
5473
  ;
 
5474
  return 0;
 
5475
}
 
5476
_ACEOF
 
5477
rm -f conftest.$ac_objext
 
5478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5479
  (eval $ac_compile) 2>conftest.er1
 
5480
  ac_status=$?
 
5481
  grep -v '^ *+' conftest.er1 >conftest.err
 
5482
  rm -f conftest.er1
 
5483
  cat conftest.err >&5
 
5484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5485
  (exit $ac_status); } &&
 
5486
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5488
  (eval $ac_try) 2>&5
 
5489
  ac_status=$?
 
5490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5491
  (exit $ac_status); }; } &&
 
5492
         { ac_try='test -s conftest.$ac_objext'
 
5493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5494
  (eval $ac_try) 2>&5
 
5495
  ac_status=$?
 
5496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5497
  (exit $ac_status); }; }; then
 
5498
  ac_hi=$ac_mid
 
5499
else
 
5500
  echo "$as_me: failed program was:" >&5
 
5501
sed 's/^/| /' conftest.$ac_ext >&5
 
5502
 
 
5503
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5504
fi
 
5505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5506
done
 
5507
case $ac_lo in
 
5508
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
5509
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
5510
See \`config.log' for more details." >&5
 
5511
echo "$as_me: error: cannot compute sizeof (long long), 77
 
5512
See \`config.log' for more details." >&2;}
 
5513
   { (exit 1); exit 1; }; } ;;
 
5514
esac
 
5515
else
 
5516
  if test "$cross_compiling" = yes; then
 
5517
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5518
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5519
   { (exit 1); exit 1; }; }
 
5520
else
 
5521
  cat >conftest.$ac_ext <<_ACEOF
 
5522
/* confdefs.h.  */
 
5523
_ACEOF
 
5524
cat confdefs.h >>conftest.$ac_ext
 
5525
cat >>conftest.$ac_ext <<_ACEOF
 
5526
/* end confdefs.h.  */
 
5527
$ac_includes_default
 
5528
long longval () { return (long) (sizeof (long long)); }
 
5529
unsigned long ulongval () { return (long) (sizeof (long long)); }
1608
5530
#include <stdio.h>
1609
 
main()
 
5531
#include <stdlib.h>
 
5532
int
 
5533
main ()
1610
5534
{
1611
 
  FILE *f=fopen("conftestval", "w");
1612
 
  if (!f) exit(1);
1613
 
  fprintf(f, "%d\n", sizeof(long long));
1614
 
  exit(0);
 
5535
 
 
5536
  FILE *f = fopen ("conftest.val", "w");
 
5537
  if (! f)
 
5538
    exit (1);
 
5539
  if (((long) (sizeof (long long))) < 0)
 
5540
    {
 
5541
      long i = longval ();
 
5542
      if (i != ((long) (sizeof (long long))))
 
5543
        exit (1);
 
5544
      fprintf (f, "%ld\n", i);
 
5545
    }
 
5546
  else
 
5547
    {
 
5548
      unsigned long i = ulongval ();
 
5549
      if (i != ((long) (sizeof (long long))))
 
5550
        exit (1);
 
5551
      fprintf (f, "%lu\n", i);
 
5552
    }
 
5553
  exit (ferror (f) || fclose (f) != 0);
 
5554
 
 
5555
  ;
 
5556
  return 0;
1615
5557
}
1616
 
EOF
1617
 
if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1618
 
then
1619
 
  ac_cv_sizeof_long_long=`cat conftestval`
1620
 
else
1621
 
  echo "configure: failed program was:" >&5
1622
 
  cat conftest.$ac_ext >&5
1623
 
  rm -fr conftest*
 
5558
_ACEOF
 
5559
rm -f conftest$ac_exeext
 
5560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5561
  (eval $ac_link) 2>&5
 
5562
  ac_status=$?
 
5563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5564
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5566
  (eval $ac_try) 2>&5
 
5567
  ac_status=$?
 
5568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5569
  (exit $ac_status); }; }; then
 
5570
  ac_cv_sizeof_long_long=`cat conftest.val`
 
5571
else
 
5572
  echo "$as_me: program exited with status $ac_status" >&5
 
5573
echo "$as_me: failed program was:" >&5
 
5574
sed 's/^/| /' conftest.$ac_ext >&5
 
5575
 
 
5576
( exit $ac_status )
 
5577
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
5578
See \`config.log' for more details." >&5
 
5579
echo "$as_me: error: cannot compute sizeof (long long), 77
 
5580
See \`config.log' for more details." >&2;}
 
5581
   { (exit 1); exit 1; }; }
 
5582
fi
 
5583
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5584
fi
 
5585
fi
 
5586
rm -f conftest.val
 
5587
else
1624
5588
  ac_cv_sizeof_long_long=0
1625
5589
fi
1626
 
rm -fr conftest*
1627
 
fi
1628
 
 
1629
 
fi
1630
 
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1631
 
cat >> confdefs.h <<EOF
 
5590
fi
 
5591
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
5592
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
5593
cat >>confdefs.h <<_ACEOF
1632
5594
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1633
 
EOF
1634
 
 
1635
 
 
1636
 
 
1637
 
 
1638
 
echo $ac_n "checking size of float""... $ac_c" 1>&6
1639
 
echo "configure:1640: checking size of float" >&5
1640
 
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1641
 
  echo $ac_n "(cached) $ac_c" 1>&6
1642
 
else
1643
 
  if test "$cross_compiling" = yes; then
1644
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1645
 
else
1646
 
  cat > conftest.$ac_ext <<EOF
1647
 
#line 1648 "configure"
1648
 
#include "confdefs.h"
 
5595
_ACEOF
 
5596
 
 
5597
 
 
5598
 
 
5599
 
 
5600
echo "$as_me:$LINENO: checking for float" >&5
 
5601
echo $ECHO_N "checking for float... $ECHO_C" >&6
 
5602
if test "${ac_cv_type_float+set}" = set; then
 
5603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5604
else
 
5605
  cat >conftest.$ac_ext <<_ACEOF
 
5606
/* confdefs.h.  */
 
5607
_ACEOF
 
5608
cat confdefs.h >>conftest.$ac_ext
 
5609
cat >>conftest.$ac_ext <<_ACEOF
 
5610
/* end confdefs.h.  */
 
5611
$ac_includes_default
 
5612
int
 
5613
main ()
 
5614
{
 
5615
if ((float *) 0)
 
5616
  return 0;
 
5617
if (sizeof (float))
 
5618
  return 0;
 
5619
  ;
 
5620
  return 0;
 
5621
}
 
5622
_ACEOF
 
5623
rm -f conftest.$ac_objext
 
5624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5625
  (eval $ac_compile) 2>conftest.er1
 
5626
  ac_status=$?
 
5627
  grep -v '^ *+' conftest.er1 >conftest.err
 
5628
  rm -f conftest.er1
 
5629
  cat conftest.err >&5
 
5630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5631
  (exit $ac_status); } &&
 
5632
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5634
  (eval $ac_try) 2>&5
 
5635
  ac_status=$?
 
5636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5637
  (exit $ac_status); }; } &&
 
5638
         { ac_try='test -s conftest.$ac_objext'
 
5639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5640
  (eval $ac_try) 2>&5
 
5641
  ac_status=$?
 
5642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5643
  (exit $ac_status); }; }; then
 
5644
  ac_cv_type_float=yes
 
5645
else
 
5646
  echo "$as_me: failed program was:" >&5
 
5647
sed 's/^/| /' conftest.$ac_ext >&5
 
5648
 
 
5649
ac_cv_type_float=no
 
5650
fi
 
5651
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5652
fi
 
5653
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
 
5654
echo "${ECHO_T}$ac_cv_type_float" >&6
 
5655
 
 
5656
echo "$as_me:$LINENO: checking size of float" >&5
 
5657
echo $ECHO_N "checking size of float... $ECHO_C" >&6
 
5658
if test "${ac_cv_sizeof_float+set}" = set; then
 
5659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5660
else
 
5661
  if test "$ac_cv_type_float" = yes; then
 
5662
  # The cast to unsigned long works around a bug in the HP C Compiler
 
5663
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5664
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5665
  # This bug is HP SR number 8606223364.
 
5666
  if test "$cross_compiling" = yes; then
 
5667
  # Depending upon the size, compute the lo and hi bounds.
 
5668
cat >conftest.$ac_ext <<_ACEOF
 
5669
/* confdefs.h.  */
 
5670
_ACEOF
 
5671
cat confdefs.h >>conftest.$ac_ext
 
5672
cat >>conftest.$ac_ext <<_ACEOF
 
5673
/* end confdefs.h.  */
 
5674
$ac_includes_default
 
5675
int
 
5676
main ()
 
5677
{
 
5678
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
 
5679
test_array [0] = 0
 
5680
 
 
5681
  ;
 
5682
  return 0;
 
5683
}
 
5684
_ACEOF
 
5685
rm -f conftest.$ac_objext
 
5686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5687
  (eval $ac_compile) 2>conftest.er1
 
5688
  ac_status=$?
 
5689
  grep -v '^ *+' conftest.er1 >conftest.err
 
5690
  rm -f conftest.er1
 
5691
  cat conftest.err >&5
 
5692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5693
  (exit $ac_status); } &&
 
5694
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5696
  (eval $ac_try) 2>&5
 
5697
  ac_status=$?
 
5698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5699
  (exit $ac_status); }; } &&
 
5700
         { ac_try='test -s conftest.$ac_objext'
 
5701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5702
  (eval $ac_try) 2>&5
 
5703
  ac_status=$?
 
5704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5705
  (exit $ac_status); }; }; then
 
5706
  ac_lo=0 ac_mid=0
 
5707
  while :; do
 
5708
    cat >conftest.$ac_ext <<_ACEOF
 
5709
/* confdefs.h.  */
 
5710
_ACEOF
 
5711
cat confdefs.h >>conftest.$ac_ext
 
5712
cat >>conftest.$ac_ext <<_ACEOF
 
5713
/* end confdefs.h.  */
 
5714
$ac_includes_default
 
5715
int
 
5716
main ()
 
5717
{
 
5718
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
 
5719
test_array [0] = 0
 
5720
 
 
5721
  ;
 
5722
  return 0;
 
5723
}
 
5724
_ACEOF
 
5725
rm -f conftest.$ac_objext
 
5726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5727
  (eval $ac_compile) 2>conftest.er1
 
5728
  ac_status=$?
 
5729
  grep -v '^ *+' conftest.er1 >conftest.err
 
5730
  rm -f conftest.er1
 
5731
  cat conftest.err >&5
 
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5733
  (exit $ac_status); } &&
 
5734
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5736
  (eval $ac_try) 2>&5
 
5737
  ac_status=$?
 
5738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5739
  (exit $ac_status); }; } &&
 
5740
         { ac_try='test -s conftest.$ac_objext'
 
5741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5742
  (eval $ac_try) 2>&5
 
5743
  ac_status=$?
 
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5745
  (exit $ac_status); }; }; then
 
5746
  ac_hi=$ac_mid; break
 
5747
else
 
5748
  echo "$as_me: failed program was:" >&5
 
5749
sed 's/^/| /' conftest.$ac_ext >&5
 
5750
 
 
5751
ac_lo=`expr $ac_mid + 1`
 
5752
                    if test $ac_lo -le $ac_mid; then
 
5753
                      ac_lo= ac_hi=
 
5754
                      break
 
5755
                    fi
 
5756
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5757
fi
 
5758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5759
  done
 
5760
else
 
5761
  echo "$as_me: failed program was:" >&5
 
5762
sed 's/^/| /' conftest.$ac_ext >&5
 
5763
 
 
5764
cat >conftest.$ac_ext <<_ACEOF
 
5765
/* confdefs.h.  */
 
5766
_ACEOF
 
5767
cat confdefs.h >>conftest.$ac_ext
 
5768
cat >>conftest.$ac_ext <<_ACEOF
 
5769
/* end confdefs.h.  */
 
5770
$ac_includes_default
 
5771
int
 
5772
main ()
 
5773
{
 
5774
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
 
5775
test_array [0] = 0
 
5776
 
 
5777
  ;
 
5778
  return 0;
 
5779
}
 
5780
_ACEOF
 
5781
rm -f conftest.$ac_objext
 
5782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5783
  (eval $ac_compile) 2>conftest.er1
 
5784
  ac_status=$?
 
5785
  grep -v '^ *+' conftest.er1 >conftest.err
 
5786
  rm -f conftest.er1
 
5787
  cat conftest.err >&5
 
5788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5789
  (exit $ac_status); } &&
 
5790
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5792
  (eval $ac_try) 2>&5
 
5793
  ac_status=$?
 
5794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5795
  (exit $ac_status); }; } &&
 
5796
         { ac_try='test -s conftest.$ac_objext'
 
5797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5798
  (eval $ac_try) 2>&5
 
5799
  ac_status=$?
 
5800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5801
  (exit $ac_status); }; }; then
 
5802
  ac_hi=-1 ac_mid=-1
 
5803
  while :; do
 
5804
    cat >conftest.$ac_ext <<_ACEOF
 
5805
/* confdefs.h.  */
 
5806
_ACEOF
 
5807
cat confdefs.h >>conftest.$ac_ext
 
5808
cat >>conftest.$ac_ext <<_ACEOF
 
5809
/* end confdefs.h.  */
 
5810
$ac_includes_default
 
5811
int
 
5812
main ()
 
5813
{
 
5814
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
 
5815
test_array [0] = 0
 
5816
 
 
5817
  ;
 
5818
  return 0;
 
5819
}
 
5820
_ACEOF
 
5821
rm -f conftest.$ac_objext
 
5822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5823
  (eval $ac_compile) 2>conftest.er1
 
5824
  ac_status=$?
 
5825
  grep -v '^ *+' conftest.er1 >conftest.err
 
5826
  rm -f conftest.er1
 
5827
  cat conftest.err >&5
 
5828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5829
  (exit $ac_status); } &&
 
5830
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5832
  (eval $ac_try) 2>&5
 
5833
  ac_status=$?
 
5834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5835
  (exit $ac_status); }; } &&
 
5836
         { ac_try='test -s conftest.$ac_objext'
 
5837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5838
  (eval $ac_try) 2>&5
 
5839
  ac_status=$?
 
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); }; }; then
 
5842
  ac_lo=$ac_mid; break
 
5843
else
 
5844
  echo "$as_me: failed program was:" >&5
 
5845
sed 's/^/| /' conftest.$ac_ext >&5
 
5846
 
 
5847
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5848
                       if test $ac_mid -le $ac_hi; then
 
5849
                         ac_lo= ac_hi=
 
5850
                         break
 
5851
                       fi
 
5852
                       ac_mid=`expr 2 '*' $ac_mid`
 
5853
fi
 
5854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5855
  done
 
5856
else
 
5857
  echo "$as_me: failed program was:" >&5
 
5858
sed 's/^/| /' conftest.$ac_ext >&5
 
5859
 
 
5860
ac_lo= ac_hi=
 
5861
fi
 
5862
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5863
fi
 
5864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5865
# Binary search between lo and hi bounds.
 
5866
while test "x$ac_lo" != "x$ac_hi"; do
 
5867
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5868
  cat >conftest.$ac_ext <<_ACEOF
 
5869
/* confdefs.h.  */
 
5870
_ACEOF
 
5871
cat confdefs.h >>conftest.$ac_ext
 
5872
cat >>conftest.$ac_ext <<_ACEOF
 
5873
/* end confdefs.h.  */
 
5874
$ac_includes_default
 
5875
int
 
5876
main ()
 
5877
{
 
5878
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
 
5879
test_array [0] = 0
 
5880
 
 
5881
  ;
 
5882
  return 0;
 
5883
}
 
5884
_ACEOF
 
5885
rm -f conftest.$ac_objext
 
5886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5887
  (eval $ac_compile) 2>conftest.er1
 
5888
  ac_status=$?
 
5889
  grep -v '^ *+' conftest.er1 >conftest.err
 
5890
  rm -f conftest.er1
 
5891
  cat conftest.err >&5
 
5892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5893
  (exit $ac_status); } &&
 
5894
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5896
  (eval $ac_try) 2>&5
 
5897
  ac_status=$?
 
5898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5899
  (exit $ac_status); }; } &&
 
5900
         { ac_try='test -s conftest.$ac_objext'
 
5901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5902
  (eval $ac_try) 2>&5
 
5903
  ac_status=$?
 
5904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5905
  (exit $ac_status); }; }; then
 
5906
  ac_hi=$ac_mid
 
5907
else
 
5908
  echo "$as_me: failed program was:" >&5
 
5909
sed 's/^/| /' conftest.$ac_ext >&5
 
5910
 
 
5911
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5912
fi
 
5913
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5914
done
 
5915
case $ac_lo in
 
5916
?*) ac_cv_sizeof_float=$ac_lo;;
 
5917
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
 
5918
See \`config.log' for more details." >&5
 
5919
echo "$as_me: error: cannot compute sizeof (float), 77
 
5920
See \`config.log' for more details." >&2;}
 
5921
   { (exit 1); exit 1; }; } ;;
 
5922
esac
 
5923
else
 
5924
  if test "$cross_compiling" = yes; then
 
5925
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5926
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5927
   { (exit 1); exit 1; }; }
 
5928
else
 
5929
  cat >conftest.$ac_ext <<_ACEOF
 
5930
/* confdefs.h.  */
 
5931
_ACEOF
 
5932
cat confdefs.h >>conftest.$ac_ext
 
5933
cat >>conftest.$ac_ext <<_ACEOF
 
5934
/* end confdefs.h.  */
 
5935
$ac_includes_default
 
5936
long longval () { return (long) (sizeof (float)); }
 
5937
unsigned long ulongval () { return (long) (sizeof (float)); }
1649
5938
#include <stdio.h>
1650
 
main()
 
5939
#include <stdlib.h>
 
5940
int
 
5941
main ()
1651
5942
{
1652
 
  FILE *f=fopen("conftestval", "w");
1653
 
  if (!f) exit(1);
1654
 
  fprintf(f, "%d\n", sizeof(float));
1655
 
  exit(0);
 
5943
 
 
5944
  FILE *f = fopen ("conftest.val", "w");
 
5945
  if (! f)
 
5946
    exit (1);
 
5947
  if (((long) (sizeof (float))) < 0)
 
5948
    {
 
5949
      long i = longval ();
 
5950
      if (i != ((long) (sizeof (float))))
 
5951
        exit (1);
 
5952
      fprintf (f, "%ld\n", i);
 
5953
    }
 
5954
  else
 
5955
    {
 
5956
      unsigned long i = ulongval ();
 
5957
      if (i != ((long) (sizeof (float))))
 
5958
        exit (1);
 
5959
      fprintf (f, "%lu\n", i);
 
5960
    }
 
5961
  exit (ferror (f) || fclose (f) != 0);
 
5962
 
 
5963
  ;
 
5964
  return 0;
1656
5965
}
1657
 
EOF
1658
 
if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1659
 
then
1660
 
  ac_cv_sizeof_float=`cat conftestval`
1661
 
else
1662
 
  echo "configure: failed program was:" >&5
1663
 
  cat conftest.$ac_ext >&5
1664
 
  rm -fr conftest*
 
5966
_ACEOF
 
5967
rm -f conftest$ac_exeext
 
5968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5969
  (eval $ac_link) 2>&5
 
5970
  ac_status=$?
 
5971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5972
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5974
  (eval $ac_try) 2>&5
 
5975
  ac_status=$?
 
5976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5977
  (exit $ac_status); }; }; then
 
5978
  ac_cv_sizeof_float=`cat conftest.val`
 
5979
else
 
5980
  echo "$as_me: program exited with status $ac_status" >&5
 
5981
echo "$as_me: failed program was:" >&5
 
5982
sed 's/^/| /' conftest.$ac_ext >&5
 
5983
 
 
5984
( exit $ac_status )
 
5985
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
 
5986
See \`config.log' for more details." >&5
 
5987
echo "$as_me: error: cannot compute sizeof (float), 77
 
5988
See \`config.log' for more details." >&2;}
 
5989
   { (exit 1); exit 1; }; }
 
5990
fi
 
5991
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5992
fi
 
5993
fi
 
5994
rm -f conftest.val
 
5995
else
1665
5996
  ac_cv_sizeof_float=0
1666
5997
fi
1667
 
rm -fr conftest*
1668
 
fi
1669
 
 
1670
 
fi
1671
 
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1672
 
cat >> confdefs.h <<EOF
 
5998
fi
 
5999
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
 
6000
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
 
6001
cat >>confdefs.h <<_ACEOF
1673
6002
#define SIZEOF_FLOAT $ac_cv_sizeof_float
1674
 
EOF
1675
 
 
1676
 
 
1677
 
 
1678
 
 
1679
 
echo $ac_n "checking size of double""... $ac_c" 1>&6
1680
 
echo "configure:1681: checking size of double" >&5
1681
 
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1682
 
  echo $ac_n "(cached) $ac_c" 1>&6
1683
 
else
1684
 
  if test "$cross_compiling" = yes; then
1685
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1686
 
else
1687
 
  cat > conftest.$ac_ext <<EOF
1688
 
#line 1689 "configure"
1689
 
#include "confdefs.h"
 
6003
_ACEOF
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
echo "$as_me:$LINENO: checking for double" >&5
 
6009
echo $ECHO_N "checking for double... $ECHO_C" >&6
 
6010
if test "${ac_cv_type_double+set}" = set; then
 
6011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6012
else
 
6013
  cat >conftest.$ac_ext <<_ACEOF
 
6014
/* confdefs.h.  */
 
6015
_ACEOF
 
6016
cat confdefs.h >>conftest.$ac_ext
 
6017
cat >>conftest.$ac_ext <<_ACEOF
 
6018
/* end confdefs.h.  */
 
6019
$ac_includes_default
 
6020
int
 
6021
main ()
 
6022
{
 
6023
if ((double *) 0)
 
6024
  return 0;
 
6025
if (sizeof (double))
 
6026
  return 0;
 
6027
  ;
 
6028
  return 0;
 
6029
}
 
6030
_ACEOF
 
6031
rm -f conftest.$ac_objext
 
6032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6033
  (eval $ac_compile) 2>conftest.er1
 
6034
  ac_status=$?
 
6035
  grep -v '^ *+' conftest.er1 >conftest.err
 
6036
  rm -f conftest.er1
 
6037
  cat conftest.err >&5
 
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6039
  (exit $ac_status); } &&
 
6040
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6042
  (eval $ac_try) 2>&5
 
6043
  ac_status=$?
 
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6045
  (exit $ac_status); }; } &&
 
6046
         { ac_try='test -s conftest.$ac_objext'
 
6047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6048
  (eval $ac_try) 2>&5
 
6049
  ac_status=$?
 
6050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6051
  (exit $ac_status); }; }; then
 
6052
  ac_cv_type_double=yes
 
6053
else
 
6054
  echo "$as_me: failed program was:" >&5
 
6055
sed 's/^/| /' conftest.$ac_ext >&5
 
6056
 
 
6057
ac_cv_type_double=no
 
6058
fi
 
6059
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6060
fi
 
6061
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
6062
echo "${ECHO_T}$ac_cv_type_double" >&6
 
6063
 
 
6064
echo "$as_me:$LINENO: checking size of double" >&5
 
6065
echo $ECHO_N "checking size of double... $ECHO_C" >&6
 
6066
if test "${ac_cv_sizeof_double+set}" = set; then
 
6067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6068
else
 
6069
  if test "$ac_cv_type_double" = yes; then
 
6070
  # The cast to unsigned long works around a bug in the HP C Compiler
 
6071
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6072
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6073
  # This bug is HP SR number 8606223364.
 
6074
  if test "$cross_compiling" = yes; then
 
6075
  # Depending upon the size, compute the lo and hi bounds.
 
6076
cat >conftest.$ac_ext <<_ACEOF
 
6077
/* confdefs.h.  */
 
6078
_ACEOF
 
6079
cat confdefs.h >>conftest.$ac_ext
 
6080
cat >>conftest.$ac_ext <<_ACEOF
 
6081
/* end confdefs.h.  */
 
6082
$ac_includes_default
 
6083
int
 
6084
main ()
 
6085
{
 
6086
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
 
6087
test_array [0] = 0
 
6088
 
 
6089
  ;
 
6090
  return 0;
 
6091
}
 
6092
_ACEOF
 
6093
rm -f conftest.$ac_objext
 
6094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6095
  (eval $ac_compile) 2>conftest.er1
 
6096
  ac_status=$?
 
6097
  grep -v '^ *+' conftest.er1 >conftest.err
 
6098
  rm -f conftest.er1
 
6099
  cat conftest.err >&5
 
6100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6101
  (exit $ac_status); } &&
 
6102
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6104
  (eval $ac_try) 2>&5
 
6105
  ac_status=$?
 
6106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6107
  (exit $ac_status); }; } &&
 
6108
         { ac_try='test -s conftest.$ac_objext'
 
6109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6110
  (eval $ac_try) 2>&5
 
6111
  ac_status=$?
 
6112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6113
  (exit $ac_status); }; }; then
 
6114
  ac_lo=0 ac_mid=0
 
6115
  while :; do
 
6116
    cat >conftest.$ac_ext <<_ACEOF
 
6117
/* confdefs.h.  */
 
6118
_ACEOF
 
6119
cat confdefs.h >>conftest.$ac_ext
 
6120
cat >>conftest.$ac_ext <<_ACEOF
 
6121
/* end confdefs.h.  */
 
6122
$ac_includes_default
 
6123
int
 
6124
main ()
 
6125
{
 
6126
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
6127
test_array [0] = 0
 
6128
 
 
6129
  ;
 
6130
  return 0;
 
6131
}
 
6132
_ACEOF
 
6133
rm -f conftest.$ac_objext
 
6134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6135
  (eval $ac_compile) 2>conftest.er1
 
6136
  ac_status=$?
 
6137
  grep -v '^ *+' conftest.er1 >conftest.err
 
6138
  rm -f conftest.er1
 
6139
  cat conftest.err >&5
 
6140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6141
  (exit $ac_status); } &&
 
6142
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6144
  (eval $ac_try) 2>&5
 
6145
  ac_status=$?
 
6146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6147
  (exit $ac_status); }; } &&
 
6148
         { ac_try='test -s conftest.$ac_objext'
 
6149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6150
  (eval $ac_try) 2>&5
 
6151
  ac_status=$?
 
6152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6153
  (exit $ac_status); }; }; then
 
6154
  ac_hi=$ac_mid; break
 
6155
else
 
6156
  echo "$as_me: failed program was:" >&5
 
6157
sed 's/^/| /' conftest.$ac_ext >&5
 
6158
 
 
6159
ac_lo=`expr $ac_mid + 1`
 
6160
                    if test $ac_lo -le $ac_mid; then
 
6161
                      ac_lo= ac_hi=
 
6162
                      break
 
6163
                    fi
 
6164
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
6165
fi
 
6166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6167
  done
 
6168
else
 
6169
  echo "$as_me: failed program was:" >&5
 
6170
sed 's/^/| /' conftest.$ac_ext >&5
 
6171
 
 
6172
cat >conftest.$ac_ext <<_ACEOF
 
6173
/* confdefs.h.  */
 
6174
_ACEOF
 
6175
cat confdefs.h >>conftest.$ac_ext
 
6176
cat >>conftest.$ac_ext <<_ACEOF
 
6177
/* end confdefs.h.  */
 
6178
$ac_includes_default
 
6179
int
 
6180
main ()
 
6181
{
 
6182
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
 
6183
test_array [0] = 0
 
6184
 
 
6185
  ;
 
6186
  return 0;
 
6187
}
 
6188
_ACEOF
 
6189
rm -f conftest.$ac_objext
 
6190
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6191
  (eval $ac_compile) 2>conftest.er1
 
6192
  ac_status=$?
 
6193
  grep -v '^ *+' conftest.er1 >conftest.err
 
6194
  rm -f conftest.er1
 
6195
  cat conftest.err >&5
 
6196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6197
  (exit $ac_status); } &&
 
6198
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6200
  (eval $ac_try) 2>&5
 
6201
  ac_status=$?
 
6202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6203
  (exit $ac_status); }; } &&
 
6204
         { ac_try='test -s conftest.$ac_objext'
 
6205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6206
  (eval $ac_try) 2>&5
 
6207
  ac_status=$?
 
6208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6209
  (exit $ac_status); }; }; then
 
6210
  ac_hi=-1 ac_mid=-1
 
6211
  while :; do
 
6212
    cat >conftest.$ac_ext <<_ACEOF
 
6213
/* confdefs.h.  */
 
6214
_ACEOF
 
6215
cat confdefs.h >>conftest.$ac_ext
 
6216
cat >>conftest.$ac_ext <<_ACEOF
 
6217
/* end confdefs.h.  */
 
6218
$ac_includes_default
 
6219
int
 
6220
main ()
 
6221
{
 
6222
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
 
6223
test_array [0] = 0
 
6224
 
 
6225
  ;
 
6226
  return 0;
 
6227
}
 
6228
_ACEOF
 
6229
rm -f conftest.$ac_objext
 
6230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6231
  (eval $ac_compile) 2>conftest.er1
 
6232
  ac_status=$?
 
6233
  grep -v '^ *+' conftest.er1 >conftest.err
 
6234
  rm -f conftest.er1
 
6235
  cat conftest.err >&5
 
6236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6237
  (exit $ac_status); } &&
 
6238
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6240
  (eval $ac_try) 2>&5
 
6241
  ac_status=$?
 
6242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6243
  (exit $ac_status); }; } &&
 
6244
         { ac_try='test -s conftest.$ac_objext'
 
6245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6246
  (eval $ac_try) 2>&5
 
6247
  ac_status=$?
 
6248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6249
  (exit $ac_status); }; }; then
 
6250
  ac_lo=$ac_mid; break
 
6251
else
 
6252
  echo "$as_me: failed program was:" >&5
 
6253
sed 's/^/| /' conftest.$ac_ext >&5
 
6254
 
 
6255
ac_hi=`expr '(' $ac_mid ')' - 1`
 
6256
                       if test $ac_mid -le $ac_hi; then
 
6257
                         ac_lo= ac_hi=
 
6258
                         break
 
6259
                       fi
 
6260
                       ac_mid=`expr 2 '*' $ac_mid`
 
6261
fi
 
6262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6263
  done
 
6264
else
 
6265
  echo "$as_me: failed program was:" >&5
 
6266
sed 's/^/| /' conftest.$ac_ext >&5
 
6267
 
 
6268
ac_lo= ac_hi=
 
6269
fi
 
6270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6271
fi
 
6272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6273
# Binary search between lo and hi bounds.
 
6274
while test "x$ac_lo" != "x$ac_hi"; do
 
6275
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
6276
  cat >conftest.$ac_ext <<_ACEOF
 
6277
/* confdefs.h.  */
 
6278
_ACEOF
 
6279
cat confdefs.h >>conftest.$ac_ext
 
6280
cat >>conftest.$ac_ext <<_ACEOF
 
6281
/* end confdefs.h.  */
 
6282
$ac_includes_default
 
6283
int
 
6284
main ()
 
6285
{
 
6286
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
6287
test_array [0] = 0
 
6288
 
 
6289
  ;
 
6290
  return 0;
 
6291
}
 
6292
_ACEOF
 
6293
rm -f conftest.$ac_objext
 
6294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6295
  (eval $ac_compile) 2>conftest.er1
 
6296
  ac_status=$?
 
6297
  grep -v '^ *+' conftest.er1 >conftest.err
 
6298
  rm -f conftest.er1
 
6299
  cat conftest.err >&5
 
6300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6301
  (exit $ac_status); } &&
 
6302
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6304
  (eval $ac_try) 2>&5
 
6305
  ac_status=$?
 
6306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6307
  (exit $ac_status); }; } &&
 
6308
         { ac_try='test -s conftest.$ac_objext'
 
6309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6310
  (eval $ac_try) 2>&5
 
6311
  ac_status=$?
 
6312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6313
  (exit $ac_status); }; }; then
 
6314
  ac_hi=$ac_mid
 
6315
else
 
6316
  echo "$as_me: failed program was:" >&5
 
6317
sed 's/^/| /' conftest.$ac_ext >&5
 
6318
 
 
6319
ac_lo=`expr '(' $ac_mid ')' + 1`
 
6320
fi
 
6321
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6322
done
 
6323
case $ac_lo in
 
6324
?*) ac_cv_sizeof_double=$ac_lo;;
 
6325
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
6326
See \`config.log' for more details." >&5
 
6327
echo "$as_me: error: cannot compute sizeof (double), 77
 
6328
See \`config.log' for more details." >&2;}
 
6329
   { (exit 1); exit 1; }; } ;;
 
6330
esac
 
6331
else
 
6332
  if test "$cross_compiling" = yes; then
 
6333
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
6334
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
6335
   { (exit 1); exit 1; }; }
 
6336
else
 
6337
  cat >conftest.$ac_ext <<_ACEOF
 
6338
/* confdefs.h.  */
 
6339
_ACEOF
 
6340
cat confdefs.h >>conftest.$ac_ext
 
6341
cat >>conftest.$ac_ext <<_ACEOF
 
6342
/* end confdefs.h.  */
 
6343
$ac_includes_default
 
6344
long longval () { return (long) (sizeof (double)); }
 
6345
unsigned long ulongval () { return (long) (sizeof (double)); }
1690
6346
#include <stdio.h>
1691
 
main()
 
6347
#include <stdlib.h>
 
6348
int
 
6349
main ()
1692
6350
{
1693
 
  FILE *f=fopen("conftestval", "w");
1694
 
  if (!f) exit(1);
1695
 
  fprintf(f, "%d\n", sizeof(double));
1696
 
  exit(0);
 
6351
 
 
6352
  FILE *f = fopen ("conftest.val", "w");
 
6353
  if (! f)
 
6354
    exit (1);
 
6355
  if (((long) (sizeof (double))) < 0)
 
6356
    {
 
6357
      long i = longval ();
 
6358
      if (i != ((long) (sizeof (double))))
 
6359
        exit (1);
 
6360
      fprintf (f, "%ld\n", i);
 
6361
    }
 
6362
  else
 
6363
    {
 
6364
      unsigned long i = ulongval ();
 
6365
      if (i != ((long) (sizeof (double))))
 
6366
        exit (1);
 
6367
      fprintf (f, "%lu\n", i);
 
6368
    }
 
6369
  exit (ferror (f) || fclose (f) != 0);
 
6370
 
 
6371
  ;
 
6372
  return 0;
1697
6373
}
1698
 
EOF
1699
 
if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1700
 
then
1701
 
  ac_cv_sizeof_double=`cat conftestval`
1702
 
else
1703
 
  echo "configure: failed program was:" >&5
1704
 
  cat conftest.$ac_ext >&5
1705
 
  rm -fr conftest*
 
6374
_ACEOF
 
6375
rm -f conftest$ac_exeext
 
6376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6377
  (eval $ac_link) 2>&5
 
6378
  ac_status=$?
 
6379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6380
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6382
  (eval $ac_try) 2>&5
 
6383
  ac_status=$?
 
6384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6385
  (exit $ac_status); }; }; then
 
6386
  ac_cv_sizeof_double=`cat conftest.val`
 
6387
else
 
6388
  echo "$as_me: program exited with status $ac_status" >&5
 
6389
echo "$as_me: failed program was:" >&5
 
6390
sed 's/^/| /' conftest.$ac_ext >&5
 
6391
 
 
6392
( exit $ac_status )
 
6393
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
6394
See \`config.log' for more details." >&5
 
6395
echo "$as_me: error: cannot compute sizeof (double), 77
 
6396
See \`config.log' for more details." >&2;}
 
6397
   { (exit 1); exit 1; }; }
 
6398
fi
 
6399
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6400
fi
 
6401
fi
 
6402
rm -f conftest.val
 
6403
else
1706
6404
  ac_cv_sizeof_double=0
1707
6405
fi
1708
 
rm -fr conftest*
1709
 
fi
1710
 
 
1711
 
fi
1712
 
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1713
 
cat >> confdefs.h <<EOF
 
6406
fi
 
6407
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
6408
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
 
6409
cat >>confdefs.h <<_ACEOF
1714
6410
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1715
 
EOF
 
6411
_ACEOF
1716
6412
 
1717
6413
 
1718
6414
 
1727
6423
    if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
1728
6424
      GS_ADDR="unsigned long long"
1729
6425
    else
1730
 
      echo "Unable to find integer of same size as void* - abort configuration"
1731
 
      exit
 
6426
      { { echo "$as_me:$LINENO: error: Unable to find integer of same size as void*" >&5
 
6427
echo "$as_me: error: Unable to find integer of same size as void*" >&2;}
 
6428
   { (exit 1); exit 1; }; }
1732
6429
    fi
1733
6430
  fi
1734
6431
fi
1742
6439
    GS_SINT16="signed int"
1743
6440
    GS_UINT16="unsigned int"
1744
6441
  else
1745
 
    echo "Unable to determine type for 16-bit integer - abort configuration"
1746
 
    exit
 
6442
    { { echo "$as_me:$LINENO: error: Unable to determine type for 16-bit integer" >&5
 
6443
echo "$as_me: error: Unable to determine type for 16-bit integer" >&2;}
 
6444
   { (exit 1); exit 1; }; }
1747
6445
  fi
1748
6446
fi
1749
6447
 
1761
6459
      GS_SINT32="signed short"
1762
6460
      GS_UINT32="unsigned short"
1763
6461
    else
1764
 
      echo "Unable to determine type for 32-bit integer - abort configuration"
1765
 
      exit
 
6462
      { { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit integer" >&5
 
6463
echo "$as_me: error: Unable to determine type for 32-bit integer" >&2;}
 
6464
   { (exit 1); exit 1; }; }
1766
6465
    fi
1767
6466
  fi
1768
6467
fi
1785
6484
#     64-bit ints not supported - but we need a dummy type for byte-swapping
1786
6485
#     of 64-bit values arriving from another system.
1787
6486
      GS_SINT64="struct { gsu8 a8; }"
1788
 
      GS_SINT64="struct { gsu8 a9; }"
 
6487
      GS_UINT64="struct { gsu8 a8; }"
1789
6488
      GS_HAVE_I64=0
1790
6489
    fi
1791
6490
  fi
1817
6516
if test $ac_cv_sizeof_float = 4; then
1818
6517
  GS_FLT32="float"
1819
6518
else
1820
 
  echo "Unable to determine type for 32-bit float - abort configuration"
1821
 
  exit
 
6519
  { { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit float" >&5
 
6520
echo "$as_me: error: Unable to determine type for 32-bit float" >&2;}
 
6521
   { (exit 1); exit 1; }; }
1822
6522
fi
1823
6523
 
1824
6524
 
1825
6525
if test $ac_cv_sizeof_double = 8; then
1826
6526
  GS_FLT64="double"
1827
6527
else
1828
 
  echo "Unable to determine type for 64-bit float - abort configuration"
1829
 
  exit
 
6528
  { { echo "$as_me:$LINENO: error: Unable to determine type for 64-bit float" >&5
 
6529
echo "$as_me: error: Unable to determine type for 64-bit float" >&2;}
 
6530
   { (exit 1); exit 1; }; }
1830
6531
fi
1831
6532
 
1832
6533
 
1884
6585
 
1885
6586
 
1886
6587
#--------------------------------------------------------------------
1887
 
# Setup dynamic linking 
 
6588
# Setup dynamic linking
1888
6589
#--------------------------------------------------------------------
1889
6590
#--------------------------------------------------------------------
1890
6591
# Guess if we are using a object file format that supports automatic
1899
6600
# Makes the following substitutions:
1900
6601
#       Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
1901
6602
#--------------------------------------------------------------------
1902
 
echo $ac_n "checking loading of constructor functions""... $ac_c" 1>&6
1903
 
echo "configure:1904: checking loading of constructor functions" >&5
1904
 
if eval "test \"`echo '$''{'objc_cv_con_autoload'+set}'`\" = set"; then
1905
 
  echo $ac_n "(cached) $ac_c" 1>&6
1906
 
else
1907
 
  cat > conftest.constructor.c <<EOF
1908
 
void cons_functions() __attribute__ ((constructor));
1909
 
void cons_functions() {}
1910
 
int main()
1911
 
{
1912
 
  return 0;
1913
 
}
1914
 
EOF
1915
 
${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.constructor.$ac_ext $LIBS 1>&5
 
6603
echo "$as_me:$LINENO: checking loading of constructor functions" >&5
 
6604
echo $ECHO_N "checking loading of constructor functions... $ECHO_C" >&6
 
6605
if test "${objc_cv_con_autoload+set}" = set; then
 
6606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6607
else
 
6608
  if test "$cross_compiling" = yes; then
 
6609
  objc_cv_con_autoload=no
 
6610
else
 
6611
  cat >conftest.$ac_ext <<_ACEOF
 
6612
/* confdefs.h.  */
 
6613
_ACEOF
 
6614
cat confdefs.h >>conftest.$ac_ext
 
6615
cat >>conftest.$ac_ext <<_ACEOF
 
6616
/* end confdefs.h.  */
 
6617
static int loaded = 0;
 
6618
        void cons_functions() __attribute__ ((constructor));
 
6619
        void cons_functions() { loaded = 1; }
 
6620
        int main()
 
6621
        {
 
6622
          return ( (loaded == 1) ? 0 : 1);
 
6623
        }
 
6624
_ACEOF
 
6625
rm -f conftest$ac_exeext
 
6626
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6627
  (eval $ac_link) 2>&5
 
6628
  ac_status=$?
 
6629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6630
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6632
  (eval $ac_try) 2>&5
 
6633
  ac_status=$?
 
6634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6635
  (exit $ac_status); }; }; then
 
6636
  objc_cv_con_autoload=yes
 
6637
else
 
6638
  echo "$as_me: program exited with status $ac_status" >&5
 
6639
echo "$as_me: failed program was:" >&5
 
6640
sed 's/^/| /' conftest.$ac_ext >&5
 
6641
 
 
6642
( exit $ac_status )
 
6643
objc_cv_con_autoload=no
 
6644
fi
 
6645
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6646
fi
1916
6647
case "$target_os" in
1917
6648
    cygwin*)    objc_cv_con_autoload=yes;;
1918
 
    *)  if test -n "`nm conftest${ac_exeext} | grep global_ctors`"; then 
1919
 
          objc_cv_con_autoload=yes
1920
 
        else
1921
 
          objc_cv_con_autoload=no 
1922
 
        fi ;;
1923
6649
esac
1924
6650
 
1925
6651
fi
1926
6652
 
1927
6653
if test $objc_cv_con_autoload = yes; then
1928
 
  echo "$ac_t""yes" 1>&6
1929
 
  cat >> confdefs.h <<\EOF
 
6654
  echo "$as_me:$LINENO: result: yes" >&5
 
6655
echo "${ECHO_T}yes" >&6
 
6656
 
 
6657
cat >>confdefs.h <<\_ACEOF
1930
6658
#define CON_AUTOLOAD 1
1931
 
EOF
 
6659
_ACEOF
1932
6660
 
1933
6661
else
1934
 
  echo "$ac_t""no" 1>&6
 
6662
  echo "$as_me:$LINENO: result: no" >&5
 
6663
echo "${ECHO_T}no" >&6
1935
6664
fi
1936
6665
 
1937
6666
#--------------------------------------------------------------------
1942
6671
#               in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
1943
6672
#--------------------------------------------------------------------
1944
6673
DYNAMIC_LINKER=null
1945
 
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1946
 
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1947
 
echo "configure:1948: checking for dlfcn.h" >&5
1948
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949
 
  echo $ac_n "(cached) $ac_c" 1>&6
1950
 
else
1951
 
  cat > conftest.$ac_ext <<EOF
1952
 
#line 1953 "configure"
1953
 
#include "confdefs.h"
1954
 
#include <dlfcn.h>
1955
 
EOF
1956
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957
 
{ (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959
 
if test -z "$ac_err"; then
1960
 
  rm -rf conftest*
1961
 
  eval "ac_cv_header_$ac_safe=yes"
1962
 
else
1963
 
  echo "$ac_err" >&5
1964
 
  echo "configure: failed program was:" >&5
1965
 
  cat conftest.$ac_ext >&5
1966
 
  rm -rf conftest*
1967
 
  eval "ac_cv_header_$ac_safe=no"
1968
 
fi
1969
 
rm -f conftest*
1970
 
fi
1971
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972
 
  echo "$ac_t""yes" 1>&6
 
6674
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
6675
  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
6676
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
6677
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
6678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6679
fi
 
6680
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
6681
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
6682
else
 
6683
  # Is the header compilable?
 
6684
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
 
6685
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
 
6686
cat >conftest.$ac_ext <<_ACEOF
 
6687
/* confdefs.h.  */
 
6688
_ACEOF
 
6689
cat confdefs.h >>conftest.$ac_ext
 
6690
cat >>conftest.$ac_ext <<_ACEOF
 
6691
/* end confdefs.h.  */
 
6692
$ac_includes_default
 
6693
#include <dlfcn.h>
 
6694
_ACEOF
 
6695
rm -f conftest.$ac_objext
 
6696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6697
  (eval $ac_compile) 2>conftest.er1
 
6698
  ac_status=$?
 
6699
  grep -v '^ *+' conftest.er1 >conftest.err
 
6700
  rm -f conftest.er1
 
6701
  cat conftest.err >&5
 
6702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6703
  (exit $ac_status); } &&
 
6704
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6706
  (eval $ac_try) 2>&5
 
6707
  ac_status=$?
 
6708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6709
  (exit $ac_status); }; } &&
 
6710
         { ac_try='test -s conftest.$ac_objext'
 
6711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6712
  (eval $ac_try) 2>&5
 
6713
  ac_status=$?
 
6714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6715
  (exit $ac_status); }; }; then
 
6716
  ac_header_compiler=yes
 
6717
else
 
6718
  echo "$as_me: failed program was:" >&5
 
6719
sed 's/^/| /' conftest.$ac_ext >&5
 
6720
 
 
6721
ac_header_compiler=no
 
6722
fi
 
6723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6724
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6725
echo "${ECHO_T}$ac_header_compiler" >&6
 
6726
 
 
6727
# Is the header present?
 
6728
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
 
6729
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
 
6730
cat >conftest.$ac_ext <<_ACEOF
 
6731
/* confdefs.h.  */
 
6732
_ACEOF
 
6733
cat confdefs.h >>conftest.$ac_ext
 
6734
cat >>conftest.$ac_ext <<_ACEOF
 
6735
/* end confdefs.h.  */
 
6736
#include <dlfcn.h>
 
6737
_ACEOF
 
6738
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6739
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6740
  ac_status=$?
 
6741
  grep -v '^ *+' conftest.er1 >conftest.err
 
6742
  rm -f conftest.er1
 
6743
  cat conftest.err >&5
 
6744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6745
  (exit $ac_status); } >/dev/null; then
 
6746
  if test -s conftest.err; then
 
6747
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6748
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6749
  else
 
6750
    ac_cpp_err=
 
6751
  fi
 
6752
else
 
6753
  ac_cpp_err=yes
 
6754
fi
 
6755
if test -z "$ac_cpp_err"; then
 
6756
  ac_header_preproc=yes
 
6757
else
 
6758
  echo "$as_me: failed program was:" >&5
 
6759
sed 's/^/| /' conftest.$ac_ext >&5
 
6760
 
 
6761
  ac_header_preproc=no
 
6762
fi
 
6763
rm -f conftest.err conftest.$ac_ext
 
6764
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6765
echo "${ECHO_T}$ac_header_preproc" >&6
 
6766
 
 
6767
# So?  What about this header?
 
6768
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6769
  yes:no: )
 
6770
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6771
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6772
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
 
6773
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
 
6774
    ac_header_preproc=yes
 
6775
    ;;
 
6776
  no:yes:* )
 
6777
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
 
6778
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
 
6779
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
 
6780
echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
 
6781
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
 
6782
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
 
6783
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6784
echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6785
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
 
6786
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
 
6787
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
 
6788
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
 
6789
    (
 
6790
      cat <<\_ASBOX
 
6791
## ------------------------------------------ ##
 
6792
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6793
## ------------------------------------------ ##
 
6794
_ASBOX
 
6795
    ) |
 
6796
      sed "s/^/$as_me: WARNING:     /" >&2
 
6797
    ;;
 
6798
esac
 
6799
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
6800
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
6801
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
6802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6803
else
 
6804
  ac_cv_header_dlfcn_h=$ac_header_preproc
 
6805
fi
 
6806
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
6807
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
6808
 
 
6809
fi
 
6810
if test $ac_cv_header_dlfcn_h = yes; then
1973
6811
  DYNAMIC_LINKER=simple
1974
 
else
1975
 
  echo "$ac_t""no" 1>&6
1976
6812
fi
1977
6813
 
 
6814
 
1978
6815
if test $DYNAMIC_LINKER = null; then
1979
 
  ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
1980
 
echo $ac_n "checking for dl.h""... $ac_c" 1>&6
1981
 
echo "configure:1982: checking for dl.h" >&5
1982
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1983
 
  echo $ac_n "(cached) $ac_c" 1>&6
1984
 
else
1985
 
  cat > conftest.$ac_ext <<EOF
1986
 
#line 1987 "configure"
1987
 
#include "confdefs.h"
1988
 
#include <dl.h>
1989
 
EOF
1990
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991
 
{ (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993
 
if test -z "$ac_err"; then
1994
 
  rm -rf conftest*
1995
 
  eval "ac_cv_header_$ac_safe=yes"
1996
 
else
1997
 
  echo "$ac_err" >&5
1998
 
  echo "configure: failed program was:" >&5
1999
 
  cat conftest.$ac_ext >&5
2000
 
  rm -rf conftest*
2001
 
  eval "ac_cv_header_$ac_safe=no"
2002
 
fi
2003
 
rm -f conftest*
2004
 
fi
2005
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2006
 
  echo "$ac_t""yes" 1>&6
 
6816
  if test "${ac_cv_header_dl_h+set}" = set; then
 
6817
  echo "$as_me:$LINENO: checking for dl.h" >&5
 
6818
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
 
6819
if test "${ac_cv_header_dl_h+set}" = set; then
 
6820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6821
fi
 
6822
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
 
6823
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
 
6824
else
 
6825
  # Is the header compilable?
 
6826
echo "$as_me:$LINENO: checking dl.h usability" >&5
 
6827
echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
 
6828
cat >conftest.$ac_ext <<_ACEOF
 
6829
/* confdefs.h.  */
 
6830
_ACEOF
 
6831
cat confdefs.h >>conftest.$ac_ext
 
6832
cat >>conftest.$ac_ext <<_ACEOF
 
6833
/* end confdefs.h.  */
 
6834
$ac_includes_default
 
6835
#include <dl.h>
 
6836
_ACEOF
 
6837
rm -f conftest.$ac_objext
 
6838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6839
  (eval $ac_compile) 2>conftest.er1
 
6840
  ac_status=$?
 
6841
  grep -v '^ *+' conftest.er1 >conftest.err
 
6842
  rm -f conftest.er1
 
6843
  cat conftest.err >&5
 
6844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6845
  (exit $ac_status); } &&
 
6846
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6848
  (eval $ac_try) 2>&5
 
6849
  ac_status=$?
 
6850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6851
  (exit $ac_status); }; } &&
 
6852
         { ac_try='test -s conftest.$ac_objext'
 
6853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6854
  (eval $ac_try) 2>&5
 
6855
  ac_status=$?
 
6856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6857
  (exit $ac_status); }; }; then
 
6858
  ac_header_compiler=yes
 
6859
else
 
6860
  echo "$as_me: failed program was:" >&5
 
6861
sed 's/^/| /' conftest.$ac_ext >&5
 
6862
 
 
6863
ac_header_compiler=no
 
6864
fi
 
6865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6866
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6867
echo "${ECHO_T}$ac_header_compiler" >&6
 
6868
 
 
6869
# Is the header present?
 
6870
echo "$as_me:$LINENO: checking dl.h presence" >&5
 
6871
echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
 
6872
cat >conftest.$ac_ext <<_ACEOF
 
6873
/* confdefs.h.  */
 
6874
_ACEOF
 
6875
cat confdefs.h >>conftest.$ac_ext
 
6876
cat >>conftest.$ac_ext <<_ACEOF
 
6877
/* end confdefs.h.  */
 
6878
#include <dl.h>
 
6879
_ACEOF
 
6880
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6881
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6882
  ac_status=$?
 
6883
  grep -v '^ *+' conftest.er1 >conftest.err
 
6884
  rm -f conftest.er1
 
6885
  cat conftest.err >&5
 
6886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6887
  (exit $ac_status); } >/dev/null; then
 
6888
  if test -s conftest.err; then
 
6889
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6890
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6891
  else
 
6892
    ac_cpp_err=
 
6893
  fi
 
6894
else
 
6895
  ac_cpp_err=yes
 
6896
fi
 
6897
if test -z "$ac_cpp_err"; then
 
6898
  ac_header_preproc=yes
 
6899
else
 
6900
  echo "$as_me: failed program was:" >&5
 
6901
sed 's/^/| /' conftest.$ac_ext >&5
 
6902
 
 
6903
  ac_header_preproc=no
 
6904
fi
 
6905
rm -f conftest.err conftest.$ac_ext
 
6906
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6907
echo "${ECHO_T}$ac_header_preproc" >&6
 
6908
 
 
6909
# So?  What about this header?
 
6910
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6911
  yes:no: )
 
6912
    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6913
echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6914
    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
 
6915
echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
 
6916
    ac_header_preproc=yes
 
6917
    ;;
 
6918
  no:yes:* )
 
6919
    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
 
6920
echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
 
6921
    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
 
6922
echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
 
6923
    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
 
6924
echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
 
6925
    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6926
echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6927
    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
 
6928
echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
 
6929
    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
 
6930
echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
 
6931
    (
 
6932
      cat <<\_ASBOX
 
6933
## ------------------------------------------ ##
 
6934
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6935
## ------------------------------------------ ##
 
6936
_ASBOX
 
6937
    ) |
 
6938
      sed "s/^/$as_me: WARNING:     /" >&2
 
6939
    ;;
 
6940
esac
 
6941
echo "$as_me:$LINENO: checking for dl.h" >&5
 
6942
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
 
6943
if test "${ac_cv_header_dl_h+set}" = set; then
 
6944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6945
else
 
6946
  ac_cv_header_dl_h=$ac_header_preproc
 
6947
fi
 
6948
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
 
6949
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
 
6950
 
 
6951
fi
 
6952
if test $ac_cv_header_dl_h = yes; then
2007
6953
  DYNAMIC_LINKER=hpux
2008
 
else
2009
 
  echo "$ac_t""no" 1>&6
2010
6954
fi
 
6955
 
2011
6956
 
2012
6957
fi
2013
6958
if test $DYNAMIC_LINKER = null; then
2014
 
  ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
2015
 
echo $ac_n "checking for windows.h""... $ac_c" 1>&6
2016
 
echo "configure:2017: checking for windows.h" >&5
2017
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018
 
  echo $ac_n "(cached) $ac_c" 1>&6
2019
 
else
2020
 
  cat > conftest.$ac_ext <<EOF
2021
 
#line 2022 "configure"
2022
 
#include "confdefs.h"
2023
 
#include <windows.h>
2024
 
EOF
2025
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026
 
{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028
 
if test -z "$ac_err"; then
2029
 
  rm -rf conftest*
2030
 
  eval "ac_cv_header_$ac_safe=yes"
2031
 
else
2032
 
  echo "$ac_err" >&5
2033
 
  echo "configure: failed program was:" >&5
2034
 
  cat conftest.$ac_ext >&5
2035
 
  rm -rf conftest*
2036
 
  eval "ac_cv_header_$ac_safe=no"
2037
 
fi
2038
 
rm -f conftest*
2039
 
fi
2040
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041
 
  echo "$ac_t""yes" 1>&6
 
6959
  if test "${ac_cv_header_windows_h+set}" = set; then
 
6960
  echo "$as_me:$LINENO: checking for windows.h" >&5
 
6961
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
 
6962
if test "${ac_cv_header_windows_h+set}" = set; then
 
6963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6964
fi
 
6965
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
 
6966
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
 
6967
else
 
6968
  # Is the header compilable?
 
6969
echo "$as_me:$LINENO: checking windows.h usability" >&5
 
6970
echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
 
6971
cat >conftest.$ac_ext <<_ACEOF
 
6972
/* confdefs.h.  */
 
6973
_ACEOF
 
6974
cat confdefs.h >>conftest.$ac_ext
 
6975
cat >>conftest.$ac_ext <<_ACEOF
 
6976
/* end confdefs.h.  */
 
6977
$ac_includes_default
 
6978
#include <windows.h>
 
6979
_ACEOF
 
6980
rm -f conftest.$ac_objext
 
6981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6982
  (eval $ac_compile) 2>conftest.er1
 
6983
  ac_status=$?
 
6984
  grep -v '^ *+' conftest.er1 >conftest.err
 
6985
  rm -f conftest.er1
 
6986
  cat conftest.err >&5
 
6987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6988
  (exit $ac_status); } &&
 
6989
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6991
  (eval $ac_try) 2>&5
 
6992
  ac_status=$?
 
6993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6994
  (exit $ac_status); }; } &&
 
6995
         { ac_try='test -s conftest.$ac_objext'
 
6996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6997
  (eval $ac_try) 2>&5
 
6998
  ac_status=$?
 
6999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7000
  (exit $ac_status); }; }; then
 
7001
  ac_header_compiler=yes
 
7002
else
 
7003
  echo "$as_me: failed program was:" >&5
 
7004
sed 's/^/| /' conftest.$ac_ext >&5
 
7005
 
 
7006
ac_header_compiler=no
 
7007
fi
 
7008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7009
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7010
echo "${ECHO_T}$ac_header_compiler" >&6
 
7011
 
 
7012
# Is the header present?
 
7013
echo "$as_me:$LINENO: checking windows.h presence" >&5
 
7014
echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
 
7015
cat >conftest.$ac_ext <<_ACEOF
 
7016
/* confdefs.h.  */
 
7017
_ACEOF
 
7018
cat confdefs.h >>conftest.$ac_ext
 
7019
cat >>conftest.$ac_ext <<_ACEOF
 
7020
/* end confdefs.h.  */
 
7021
#include <windows.h>
 
7022
_ACEOF
 
7023
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7024
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7025
  ac_status=$?
 
7026
  grep -v '^ *+' conftest.er1 >conftest.err
 
7027
  rm -f conftest.er1
 
7028
  cat conftest.err >&5
 
7029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7030
  (exit $ac_status); } >/dev/null; then
 
7031
  if test -s conftest.err; then
 
7032
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7033
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7034
  else
 
7035
    ac_cpp_err=
 
7036
  fi
 
7037
else
 
7038
  ac_cpp_err=yes
 
7039
fi
 
7040
if test -z "$ac_cpp_err"; then
 
7041
  ac_header_preproc=yes
 
7042
else
 
7043
  echo "$as_me: failed program was:" >&5
 
7044
sed 's/^/| /' conftest.$ac_ext >&5
 
7045
 
 
7046
  ac_header_preproc=no
 
7047
fi
 
7048
rm -f conftest.err conftest.$ac_ext
 
7049
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7050
echo "${ECHO_T}$ac_header_preproc" >&6
 
7051
 
 
7052
# So?  What about this header?
 
7053
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7054
  yes:no: )
 
7055
    { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
7056
echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7057
    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
 
7058
echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
 
7059
    ac_header_preproc=yes
 
7060
    ;;
 
7061
  no:yes:* )
 
7062
    { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
 
7063
echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
 
7064
    { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
 
7065
echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
 
7066
    { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
 
7067
echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
 
7068
    { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
 
7069
echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7070
    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
 
7071
echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
 
7072
    { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
 
7073
echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
 
7074
    (
 
7075
      cat <<\_ASBOX
 
7076
## ------------------------------------------ ##
 
7077
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7078
## ------------------------------------------ ##
 
7079
_ASBOX
 
7080
    ) |
 
7081
      sed "s/^/$as_me: WARNING:     /" >&2
 
7082
    ;;
 
7083
esac
 
7084
echo "$as_me:$LINENO: checking for windows.h" >&5
 
7085
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
 
7086
if test "${ac_cv_header_windows_h+set}" = set; then
 
7087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7088
else
 
7089
  ac_cv_header_windows_h=$ac_header_preproc
 
7090
fi
 
7091
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
 
7092
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
 
7093
 
 
7094
fi
 
7095
if test $ac_cv_header_windows_h = yes; then
2042
7096
  DYNAMIC_LINKER=win32
2043
 
else
2044
 
  echo "$ac_t""no" 1>&6
2045
7097
fi
 
7098
 
2046
7099
 
2047
7100
fi
2048
7101
if test $DYNAMIC_LINKER = null; then
2049
 
  ac_safe=`echo "dld/defs.h" | sed 'y%./+-%__p_%'`
2050
 
echo $ac_n "checking for dld/defs.h""... $ac_c" 1>&6
2051
 
echo "configure:2052: checking for dld/defs.h" >&5
2052
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053
 
  echo $ac_n "(cached) $ac_c" 1>&6
2054
 
else
2055
 
  cat > conftest.$ac_ext <<EOF
2056
 
#line 2057 "configure"
2057
 
#include "confdefs.h"
2058
 
#include <dld/defs.h>
2059
 
EOF
2060
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061
 
{ (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063
 
if test -z "$ac_err"; then
2064
 
  rm -rf conftest*
2065
 
  eval "ac_cv_header_$ac_safe=yes"
2066
 
else
2067
 
  echo "$ac_err" >&5
2068
 
  echo "configure: failed program was:" >&5
2069
 
  cat conftest.$ac_ext >&5
2070
 
  rm -rf conftest*
2071
 
  eval "ac_cv_header_$ac_safe=no"
2072
 
fi
2073
 
rm -f conftest*
2074
 
fi
2075
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076
 
  echo "$ac_t""yes" 1>&6
 
7102
  if test "${ac_cv_header_dld_defs_h+set}" = set; then
 
7103
  echo "$as_me:$LINENO: checking for dld/defs.h" >&5
 
7104
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
 
7105
if test "${ac_cv_header_dld_defs_h+set}" = set; then
 
7106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7107
fi
 
7108
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
 
7109
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
 
7110
else
 
7111
  # Is the header compilable?
 
7112
echo "$as_me:$LINENO: checking dld/defs.h usability" >&5
 
7113
echo $ECHO_N "checking dld/defs.h usability... $ECHO_C" >&6
 
7114
cat >conftest.$ac_ext <<_ACEOF
 
7115
/* confdefs.h.  */
 
7116
_ACEOF
 
7117
cat confdefs.h >>conftest.$ac_ext
 
7118
cat >>conftest.$ac_ext <<_ACEOF
 
7119
/* end confdefs.h.  */
 
7120
$ac_includes_default
 
7121
#include <dld/defs.h>
 
7122
_ACEOF
 
7123
rm -f conftest.$ac_objext
 
7124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7125
  (eval $ac_compile) 2>conftest.er1
 
7126
  ac_status=$?
 
7127
  grep -v '^ *+' conftest.er1 >conftest.err
 
7128
  rm -f conftest.er1
 
7129
  cat conftest.err >&5
 
7130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7131
  (exit $ac_status); } &&
 
7132
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7134
  (eval $ac_try) 2>&5
 
7135
  ac_status=$?
 
7136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7137
  (exit $ac_status); }; } &&
 
7138
         { ac_try='test -s conftest.$ac_objext'
 
7139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7140
  (eval $ac_try) 2>&5
 
7141
  ac_status=$?
 
7142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7143
  (exit $ac_status); }; }; then
 
7144
  ac_header_compiler=yes
 
7145
else
 
7146
  echo "$as_me: failed program was:" >&5
 
7147
sed 's/^/| /' conftest.$ac_ext >&5
 
7148
 
 
7149
ac_header_compiler=no
 
7150
fi
 
7151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7152
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7153
echo "${ECHO_T}$ac_header_compiler" >&6
 
7154
 
 
7155
# Is the header present?
 
7156
echo "$as_me:$LINENO: checking dld/defs.h presence" >&5
 
7157
echo $ECHO_N "checking dld/defs.h presence... $ECHO_C" >&6
 
7158
cat >conftest.$ac_ext <<_ACEOF
 
7159
/* confdefs.h.  */
 
7160
_ACEOF
 
7161
cat confdefs.h >>conftest.$ac_ext
 
7162
cat >>conftest.$ac_ext <<_ACEOF
 
7163
/* end confdefs.h.  */
 
7164
#include <dld/defs.h>
 
7165
_ACEOF
 
7166
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7167
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7168
  ac_status=$?
 
7169
  grep -v '^ *+' conftest.er1 >conftest.err
 
7170
  rm -f conftest.er1
 
7171
  cat conftest.err >&5
 
7172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7173
  (exit $ac_status); } >/dev/null; then
 
7174
  if test -s conftest.err; then
 
7175
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7176
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7177
  else
 
7178
    ac_cpp_err=
 
7179
  fi
 
7180
else
 
7181
  ac_cpp_err=yes
 
7182
fi
 
7183
if test -z "$ac_cpp_err"; then
 
7184
  ac_header_preproc=yes
 
7185
else
 
7186
  echo "$as_me: failed program was:" >&5
 
7187
sed 's/^/| /' conftest.$ac_ext >&5
 
7188
 
 
7189
  ac_header_preproc=no
 
7190
fi
 
7191
rm -f conftest.err conftest.$ac_ext
 
7192
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7193
echo "${ECHO_T}$ac_header_preproc" >&6
 
7194
 
 
7195
# So?  What about this header?
 
7196
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7197
  yes:no: )
 
7198
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
7199
echo "$as_me: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7200
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the compiler's result" >&5
 
7201
echo "$as_me: WARNING: dld/defs.h: proceeding with the compiler's result" >&2;}
 
7202
    ac_header_preproc=yes
 
7203
    ;;
 
7204
  no:yes:* )
 
7205
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: present but cannot be compiled" >&5
 
7206
echo "$as_me: WARNING: dld/defs.h: present but cannot be compiled" >&2;}
 
7207
    { echo "$as_me:$LINENO: WARNING: dld/defs.h:     check for missing prerequisite headers?" >&5
 
7208
echo "$as_me: WARNING: dld/defs.h:     check for missing prerequisite headers?" >&2;}
 
7209
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: see the Autoconf documentation" >&5
 
7210
echo "$as_me: WARNING: dld/defs.h: see the Autoconf documentation" >&2;}
 
7211
    { echo "$as_me:$LINENO: WARNING: dld/defs.h:     section \"Present But Cannot Be Compiled\"" >&5
 
7212
echo "$as_me: WARNING: dld/defs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7213
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&5
 
7214
echo "$as_me: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&2;}
 
7215
    { echo "$as_me:$LINENO: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&5
 
7216
echo "$as_me: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&2;}
 
7217
    (
 
7218
      cat <<\_ASBOX
 
7219
## ------------------------------------------ ##
 
7220
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7221
## ------------------------------------------ ##
 
7222
_ASBOX
 
7223
    ) |
 
7224
      sed "s/^/$as_me: WARNING:     /" >&2
 
7225
    ;;
 
7226
esac
 
7227
echo "$as_me:$LINENO: checking for dld/defs.h" >&5
 
7228
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
 
7229
if test "${ac_cv_header_dld_defs_h+set}" = set; then
 
7230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7231
else
 
7232
  ac_cv_header_dld_defs_h=$ac_header_preproc
 
7233
fi
 
7234
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
 
7235
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
 
7236
 
 
7237
fi
 
7238
if test $ac_cv_header_dld_defs_h = yes; then
2077
7239
  DYNAMIC_LINKER=dld
2078
 
else
2079
 
  echo "$ac_t""no" 1>&6
2080
 
fi
2081
 
 
2082
 
fi
 
7240
fi
 
7241
 
 
7242
 
 
7243
fi
 
7244
 
 
7245
# NB: This is used as follows: in Source/Makefile.postamble we copy
 
7246
# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
 
7247
echo "$as_me:$LINENO: checking for dynamic linker type" >&5
 
7248
echo $ECHO_N "checking for dynamic linker type... $ECHO_C" >&6
 
7249
echo "$as_me:$LINENO: result: $DYNAMIC_LINKER" >&5
 
7250
echo "${ECHO_T}$DYNAMIC_LINKER" >&6
2083
7251
 
2084
7252
if test $DYNAMIC_LINKER = simple; then
2085
 
  cat > conftest.$ac_ext <<EOF
2086
 
#line 2087 "configure"
2087
 
#include "confdefs.h"
2088
 
#include <dlfcn.h>
2089
 
int main() {
2090
 
dladdr(0,0);
2091
 
; return 0; }
2092
 
EOF
2093
 
if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2094
 
  rm -rf conftest*
2095
 
  cat >> confdefs.h <<\EOF
 
7253
 
 
7254
echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
 
7255
echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
 
7256
if test "${ac_cv_lib_dl_dladdr+set}" = set; then
 
7257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7258
else
 
7259
  ac_check_lib_save_LIBS=$LIBS
 
7260
LIBS="-ldl  $LIBS"
 
7261
cat >conftest.$ac_ext <<_ACEOF
 
7262
/* confdefs.h.  */
 
7263
_ACEOF
 
7264
cat confdefs.h >>conftest.$ac_ext
 
7265
cat >>conftest.$ac_ext <<_ACEOF
 
7266
/* end confdefs.h.  */
 
7267
 
 
7268
/* Override any gcc2 internal prototype to avoid an error.  */
 
7269
#ifdef __cplusplus
 
7270
extern "C"
 
7271
#endif
 
7272
/* We use char because int might match the return type of a gcc2
 
7273
   builtin and then its argument prototype would still apply.  */
 
7274
char dladdr ();
 
7275
int
 
7276
main ()
 
7277
{
 
7278
dladdr ();
 
7279
  ;
 
7280
  return 0;
 
7281
}
 
7282
_ACEOF
 
7283
rm -f conftest.$ac_objext conftest$ac_exeext
 
7284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7285
  (eval $ac_link) 2>conftest.er1
 
7286
  ac_status=$?
 
7287
  grep -v '^ *+' conftest.er1 >conftest.err
 
7288
  rm -f conftest.er1
 
7289
  cat conftest.err >&5
 
7290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7291
  (exit $ac_status); } &&
 
7292
         { ac_try='test -z "$ac_c_werror_flag"                   || 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_exeext'
 
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_lib_dl_dladdr=yes
 
7305
else
 
7306
  echo "$as_me: failed program was:" >&5
 
7307
sed 's/^/| /' conftest.$ac_ext >&5
 
7308
 
 
7309
ac_cv_lib_dl_dladdr=no
 
7310
fi
 
7311
rm -f conftest.err conftest.$ac_objext \
 
7312
      conftest$ac_exeext conftest.$ac_ext
 
7313
LIBS=$ac_check_lib_save_LIBS
 
7314
fi
 
7315
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
 
7316
echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
 
7317
if test $ac_cv_lib_dl_dladdr = yes; then
 
7318
  cat >>confdefs.h <<_ACEOF
 
7319
#define HAVE_LIBDL 1
 
7320
_ACEOF
 
7321
 
 
7322
  LIBS="-ldl $LIBS"
 
7323
 
 
7324
fi
 
7325
 
 
7326
fi
 
7327
 
 
7328
 
 
7329
if test x"$ac_cv_lib_dl_dladdr" = xyes; then
 
7330
 
 
7331
cat >>confdefs.h <<\_ACEOF
2096
7332
#define HAVE_DLADDR 1
2097
 
EOF
2098
 
 
2099
 
else
2100
 
  echo "configure: failed program was:" >&5
2101
 
  cat conftest.$ac_ext >&5
2102
 
fi
2103
 
rm -f conftest*
2104
 
fi
2105
 
 
2106
 
 
 
7333
_ACEOF
 
7334
 
 
7335
fi
2107
7336
 
2108
7337
#--------------------------------------------------------------------
2109
7338
# Check whether Objective-C /really/ works
2110
7339
#--------------------------------------------------------------------
2111
 
echo $ac_n "checking whether objc really works""... $ac_c" 1>&6
2112
 
echo "configure:2113: checking whether objc really works" >&5
 
7340
echo "$as_me:$LINENO: checking whether objc really works" >&5
 
7341
echo $ECHO_N "checking whether objc really works... $ECHO_C" >&6
2113
7342
saved_LIBS="$LIBS"
2114
7343
saved_CPPFLAGS="$CPPFLAGS"
2115
7344
LIBS="$LIBS $LIBOBJC"
2116
 
CPPFLAGS="$CPPFLAGS -x objective-c"
 
7345
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
2117
7346
if test x"$objc_threaded" != x""; then
2118
7347
  LIBS="$LIBS $objc_threaded"
2119
7348
fi
2120
7349
LIBS="$LIBS $extra_LIBS"
2121
 
if eval "test \"`echo '$''{'objc_works'+set}'`\" = set"; then
2122
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7350
if test "${objc_works+set}" = set; then
 
7351
  echo $ECHO_N "(cached) $ECHO_C" >&6
2123
7352
else
2124
7353
  if test "$cross_compiling" = yes; then
2125
7354
  objc_works=yes
2126
7355
else
2127
 
  cat > conftest.$ac_ext <<EOF
2128
 
#line 2129 "configure"
2129
 
#include "confdefs.h"
 
7356
  cat >conftest.$ac_ext <<_ACEOF
 
7357
/* confdefs.h.  */
 
7358
_ACEOF
 
7359
cat confdefs.h >>conftest.$ac_ext
 
7360
cat >>conftest.$ac_ext <<_ACEOF
 
7361
/* end confdefs.h.  */
2130
7362
#include "$srcdir/config/config.objc.m"
2131
 
EOF
2132
 
if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2133
 
then
 
7363
_ACEOF
 
7364
rm -f conftest$ac_exeext
 
7365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7366
  (eval $ac_link) 2>&5
 
7367
  ac_status=$?
 
7368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7369
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7371
  (eval $ac_try) 2>&5
 
7372
  ac_status=$?
 
7373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7374
  (exit $ac_status); }; }; then
2134
7375
  objc_works=yes
2135
7376
else
2136
 
  echo "configure: failed program was:" >&5
2137
 
  cat conftest.$ac_ext >&5
2138
 
  rm -fr conftest*
2139
 
  objc_works=no
2140
 
fi
2141
 
rm -fr conftest*
2142
 
fi
 
7377
  echo "$as_me: program exited with status $ac_status" >&5
 
7378
echo "$as_me: failed program was:" >&5
 
7379
sed 's/^/| /' conftest.$ac_ext >&5
2143
7380
 
 
7381
( exit $ac_status )
 
7382
objc_works=no
 
7383
fi
 
7384
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7385
fi
2144
7386
 
2145
7387
fi
2146
7388
 
2147
7389
if test $objc_works = yes; then
2148
 
  echo "$ac_t""yes" 1>&6
 
7390
  echo "$as_me:$LINENO: result: yes" >&5
 
7391
echo "${ECHO_T}yes" >&6
2149
7392
else
2150
 
  echo "$ac_t""no" 1>&6
 
7393
  echo "$as_me:$LINENO: result: no" >&5
 
7394
echo "${ECHO_T}no" >&6
2151
7395
  echo "I don't seem to be able to use your Objective-C compiler to produce"
2152
7396
  echo "working binaries!  Please check your Objective-C compiler installation."
2153
7397
  echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
2154
7398
  echo "can be found by the dynamic linker - usually that requires you to play"
2155
7399
  echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
2156
7400
  echo "Please refer to your compiler installation instructions for more help."
2157
 
  { echo "configure: error: The Objective-C compiler doesn't work or is not installed properly." 1>&2; exit 1; }
 
7401
  { { echo "$as_me:$LINENO: error: The Objective-C compiler does not work or is not installed properly." >&5
 
7402
echo "$as_me: error: The Objective-C compiler does not work or is not installed properly." >&2;}
 
7403
   { (exit 1); exit 1; }; }
2158
7404
fi
2159
7405
 
2160
7406
# Don't revert any Objective-C flags as they are used in the next test
2165
7411
# option.  If that is the case, we change it to NSConstantString.
2166
7412
#---------------------------------------------------------------------
2167
7413
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
2168
 
echo $ac_n "checking if the compiler supports -fconstant-string-class""... $ac_c" 1>&6
2169
 
echo "configure:2170: checking if the compiler supports -fconstant-string-class" >&5
2170
 
if eval "test \"`echo '$''{'objc_compiler_supports_constant_string_class'+set}'`\" = set"; then
2171
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7414
echo "$as_me:$LINENO: checking if the compiler supports -fconstant-string-class" >&5
 
7415
echo $ECHO_N "checking if the compiler supports -fconstant-string-class... $ECHO_C" >&6
 
7416
if test "${objc_compiler_supports_constant_string_class+set}" = set; then
 
7417
  echo $ECHO_N "(cached) $ECHO_C" >&6
2172
7418
else
2173
7419
  if test "$cross_compiling" = yes; then
2174
7420
  objc_compiler_supports_constant_string_class=no
2175
7421
else
2176
 
  cat > conftest.$ac_ext <<EOF
2177
 
#line 2178 "configure"
2178
 
#include "confdefs.h"
 
7422
  cat >conftest.$ac_ext <<_ACEOF
 
7423
/* confdefs.h.  */
 
7424
_ACEOF
 
7425
cat confdefs.h >>conftest.$ac_ext
 
7426
cat >>conftest.$ac_ext <<_ACEOF
 
7427
/* end confdefs.h.  */
2179
7428
#include "$srcdir/config/config.constant-string-class.m"
2180
 
EOF
2181
 
if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2182
 
then
 
7429
_ACEOF
 
7430
rm -f conftest$ac_exeext
 
7431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7432
  (eval $ac_link) 2>&5
 
7433
  ac_status=$?
 
7434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7435
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7437
  (eval $ac_try) 2>&5
 
7438
  ac_status=$?
 
7439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7440
  (exit $ac_status); }; }; then
2183
7441
  objc_compiler_supports_constant_string_class=yes
2184
7442
else
2185
 
  echo "configure: failed program was:" >&5
2186
 
  cat conftest.$ac_ext >&5
2187
 
  rm -fr conftest*
2188
 
  objc_compiler_supports_constant_string_class=no
2189
 
fi
2190
 
rm -fr conftest*
2191
 
fi
 
7443
  echo "$as_me: program exited with status $ac_status" >&5
 
7444
echo "$as_me: failed program was:" >&5
 
7445
sed 's/^/| /' conftest.$ac_ext >&5
2192
7446
 
 
7447
( exit $ac_status )
 
7448
objc_compiler_supports_constant_string_class=no
 
7449
fi
 
7450
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7451
fi
2193
7452
 
2194
7453
fi
2195
7454
 
2196
7455
if test $objc_compiler_supports_constant_string_class = yes; then
2197
 
  NX_CONST_STRING_CPPFLAGS="-fconstant-string-class=NSConstantString"
 
7456
  NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
2198
7457
  NX_CONST_STRING_CLASS=NSConstantString
2199
 
  echo "$ac_t""yes" 1>&6
 
7458
  echo "$as_me:$LINENO: result: yes" >&5
 
7459
echo "${ECHO_T}yes" >&6
2200
7460
else
2201
 
  NX_CONST_STRING_CPPFLAGS=""
 
7461
  NX_CONST_STRING_OBJCFLAGS=""
2202
7462
  NX_CONST_STRING_CLASS=NXConstantString
2203
 
  echo "$ac_t""no" 1>&6
 
7463
  echo "$as_me:$LINENO: result: no" >&5
 
7464
echo "${ECHO_T}no" >&6
2204
7465
fi
2205
7466
 
2206
7467
 
2207
7468
 
2208
7469
 
2209
 
CPPFLAGS="$saved_CPPFLAGS"
2210
 
# Don't revert LIBS, need it for the next test
 
7470
# Don't revert any Objective-C flags as they are used in the next test
2211
7471
 
2212
7472
#---------------------------------------------------------------------
2213
 
# Guess if we are using a compiler which has the (GNU extension) +load 
2214
 
# method which is executed before main.  
 
7473
# Guess if we are using a compiler which has the (GNU extension) +load
 
7474
# method which is executed before main.
2215
7475
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
2216
7476
# Needed by NSProcessInfo.m
2217
7477
#---------------------------------------------------------------------
2218
 
saved_CPPFLAGS="$CPPFLAGS"
2219
 
CPPFLAGS="$CPPFLAGS -x objective-c"
2220
 
echo $ac_n "checking if +load method is executed before main""... $ac_c" 1>&6
2221
 
echo "configure:2222: checking if +load method is executed before main" >&5
2222
 
if eval "test \"`echo '$''{'objc_load_method_worked'+set}'`\" = set"; then
2223
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7478
echo "$as_me:$LINENO: checking if +load method is executed before main" >&5
 
7479
echo $ECHO_N "checking if +load method is executed before main... $ECHO_C" >&6
 
7480
if test "${objc_load_method_worked+set}" = set; then
 
7481
  echo $ECHO_N "(cached) $ECHO_C" >&6
2224
7482
else
2225
7483
  if test "$cross_compiling" = yes; then
2226
7484
  objc_load_method_worked=no
2227
7485
else
2228
 
  cat > conftest.$ac_ext <<EOF
2229
 
#line 2230 "configure"
2230
 
#include "confdefs.h"
 
7486
  cat >conftest.$ac_ext <<_ACEOF
 
7487
/* confdefs.h.  */
 
7488
_ACEOF
 
7489
cat confdefs.h >>conftest.$ac_ext
 
7490
cat >>conftest.$ac_ext <<_ACEOF
 
7491
/* end confdefs.h.  */
2231
7492
#include "$srcdir/config/config.loadtest.m"
2232
 
EOF
2233
 
if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2234
 
then
 
7493
_ACEOF
 
7494
rm -f conftest$ac_exeext
 
7495
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7496
  (eval $ac_link) 2>&5
 
7497
  ac_status=$?
 
7498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7499
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7501
  (eval $ac_try) 2>&5
 
7502
  ac_status=$?
 
7503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7504
  (exit $ac_status); }; }; then
2235
7505
  objc_load_method_worked=yes
2236
7506
else
2237
 
  echo "configure: failed program was:" >&5
2238
 
  cat conftest.$ac_ext >&5
2239
 
  rm -fr conftest*
2240
 
  objc_load_method_worked=no
2241
 
fi
2242
 
rm -fr conftest*
2243
 
fi
 
7507
  echo "$as_me: program exited with status $ac_status" >&5
 
7508
echo "$as_me: failed program was:" >&5
 
7509
sed 's/^/| /' conftest.$ac_ext >&5
2244
7510
 
 
7511
( exit $ac_status )
 
7512
objc_load_method_worked=no
 
7513
fi
 
7514
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7515
fi
2245
7516
 
2246
7517
fi
2247
7518
 
2248
7519
if test $objc_load_method_worked = yes; then
2249
 
  cat >> confdefs.h <<\EOF
 
7520
 
 
7521
cat >>confdefs.h <<\_ACEOF
2250
7522
#define HAVE_LOAD_METHOD 1
2251
 
EOF
 
7523
_ACEOF
2252
7524
 
2253
 
  echo "$ac_t""yes" 1>&6
 
7525
  echo "$as_me:$LINENO: result: yes" >&5
 
7526
echo "${ECHO_T}yes" >&6
2254
7527
else
2255
 
  echo "$ac_t""no" 1>&6
 
7528
  echo "$as_me:$LINENO: result: no" >&5
 
7529
echo "${ECHO_T}no" >&6
2256
7530
fi
2257
7531
 
2258
 
CPPFLAGS="$saved_CPPFLAGS"
2259
 
# Don't revert LIBS, need it for the next test
 
7532
# Don't revert any Objective-C flags as they are used in the next test
2260
7533
 
2261
7534
#--------------------------------------------------------------------
2262
7535
# This function needed by NSLock.m for conditioned wait
2263
7536
# get_uninstalled_dtable used by behavior.m and objc-load.m
2264
7537
# Thread functions used by NSThread
2265
7538
#--------------------------------------------------------------------
 
7539
 
 
7540
 
2266
7541
for ac_func in objc_condition_timedwait objc_thread_add
2267
7542
do
2268
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2269
 
echo "configure:2270: checking for $ac_func" >&5
2270
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7543
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7544
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7545
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7546
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7547
  echo $ECHO_N "(cached) $ECHO_C" >&6
2272
7548
else
2273
 
  cat > conftest.$ac_ext <<EOF
2274
 
#line 2275 "configure"
2275
 
#include "confdefs.h"
 
7549
  cat >conftest.$ac_ext <<_ACEOF
 
7550
/* confdefs.h.  */
 
7551
_ACEOF
 
7552
cat confdefs.h >>conftest.$ac_ext
 
7553
cat >>conftest.$ac_ext <<_ACEOF
 
7554
/* end confdefs.h.  */
 
7555
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
7556
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7557
#define $ac_func innocuous_$ac_func
 
7558
 
2276
7559
/* System header to define __stub macros and hopefully few prototypes,
2277
 
    which can conflict with char $ac_func(); below.  */
2278
 
#include <assert.h>
 
7560
    which can conflict with char $ac_func (); below.
 
7561
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7562
    <limits.h> exists even on freestanding compilers.  */
 
7563
 
 
7564
#ifdef __STDC__
 
7565
# include <limits.h>
 
7566
#else
 
7567
# include <assert.h>
 
7568
#endif
 
7569
 
 
7570
#undef $ac_func
 
7571
 
2279
7572
/* Override any gcc2 internal prototype to avoid an error.  */
 
7573
#ifdef __cplusplus
 
7574
extern "C"
 
7575
{
 
7576
#endif
2280
7577
/* We use char because int might match the return type of a gcc2
2281
 
    builtin and then its argument prototype would still apply.  */
2282
 
char $ac_func();
2283
 
 
2284
 
int main() {
2285
 
 
 
7578
   builtin and then its argument prototype would still apply.  */
 
7579
char $ac_func ();
2286
7580
/* The GNU C library defines this for functions which it implements
2287
7581
    to always fail with ENOSYS.  Some functions are actually named
2288
7582
    something starting with __ and the normal name is an alias.  */
2289
7583
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2290
7584
choke me
2291
7585
#else
2292
 
$ac_func();
2293
 
#endif
2294
 
 
2295
 
; return 0; }
2296
 
EOF
2297
 
if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298
 
  rm -rf conftest*
2299
 
  eval "ac_cv_func_$ac_func=yes"
2300
 
else
2301
 
  echo "configure: failed program was:" >&5
2302
 
  cat conftest.$ac_ext >&5
2303
 
  rm -rf conftest*
2304
 
  eval "ac_cv_func_$ac_func=no"
2305
 
fi
2306
 
rm -f conftest*
2307
 
fi
2308
 
 
2309
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310
 
  echo "$ac_t""yes" 1>&6
2311
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312
 
  cat >> confdefs.h <<EOF
2313
 
#define $ac_tr_func 1
2314
 
EOF
2315
 
 
2316
 
else
2317
 
  echo "$ac_t""no" 1>&6
 
7586
char (*f) () = $ac_func;
 
7587
#endif
 
7588
#ifdef __cplusplus
 
7589
}
 
7590
#endif
 
7591
 
 
7592
int
 
7593
main ()
 
7594
{
 
7595
return f != $ac_func;
 
7596
  ;
 
7597
  return 0;
 
7598
}
 
7599
_ACEOF
 
7600
rm -f conftest.$ac_objext conftest$ac_exeext
 
7601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7602
  (eval $ac_link) 2>conftest.er1
 
7603
  ac_status=$?
 
7604
  grep -v '^ *+' conftest.er1 >conftest.err
 
7605
  rm -f conftest.er1
 
7606
  cat conftest.err >&5
 
7607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7608
  (exit $ac_status); } &&
 
7609
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7611
  (eval $ac_try) 2>&5
 
7612
  ac_status=$?
 
7613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7614
  (exit $ac_status); }; } &&
 
7615
         { ac_try='test -s conftest$ac_exeext'
 
7616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7617
  (eval $ac_try) 2>&5
 
7618
  ac_status=$?
 
7619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7620
  (exit $ac_status); }; }; then
 
7621
  eval "$as_ac_var=yes"
 
7622
else
 
7623
  echo "$as_me: failed program was:" >&5
 
7624
sed 's/^/| /' conftest.$ac_ext >&5
 
7625
 
 
7626
eval "$as_ac_var=no"
 
7627
fi
 
7628
rm -f conftest.err conftest.$ac_objext \
 
7629
      conftest$ac_exeext conftest.$ac_ext
 
7630
fi
 
7631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7632
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7633
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7634
  cat >>confdefs.h <<_ACEOF
 
7635
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7636
_ACEOF
 
7637
 
2318
7638
fi
2319
7639
done
2320
7640
 
2321
7641
 
2322
 
cat > conftest.$ac_ext <<EOF
2323
 
#line 2324 "configure"
2324
 
#include "confdefs.h"
 
7642
cat >conftest.$ac_ext <<_ACEOF
 
7643
/* confdefs.h.  */
 
7644
_ACEOF
 
7645
cat confdefs.h >>conftest.$ac_ext
 
7646
cat >>conftest.$ac_ext <<_ACEOF
 
7647
/* end confdefs.h.  */
2325
7648
#include <objc/objc-api.h>
2326
 
EOF
 
7649
 
 
7650
_ACEOF
2327
7651
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2328
 
  egrep "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
2329
 
  rm -rf conftest*
2330
 
  cat >> confdefs.h <<\EOF
 
7652
  $EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
 
7653
 
 
7654
cat >>confdefs.h <<\_ACEOF
2331
7655
#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
2332
 
EOF
 
7656
_ACEOF
2333
7657
 
2334
7658
fi
2335
7659
rm -f conftest*
2336
7660
 
2337
7661
 
2338
7662
LIBS="$saved_LIBS"
 
7663
CPPFLAGS="$saved_CPPFLAGS"
2339
7664
 
2340
7665
#--------------------------------------------------------------------
2341
7666
# Generic settings needed by NSZone.m
2342
7667
#--------------------------------------------------------------------
2343
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2344
 
echo "configure:2345: checking for ANSI C header files" >&5
2345
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2346
 
  echo $ac_n "(cached) $ac_c" 1>&6
2347
 
else
2348
 
  cat > conftest.$ac_ext <<EOF
2349
 
#line 2350 "configure"
2350
 
#include "confdefs.h"
2351
 
#include <stdlib.h>
2352
 
#include <stdarg.h>
2353
 
#include <string.h>
2354
 
#include <float.h>
2355
 
EOF
2356
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357
 
{ (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359
 
if test -z "$ac_err"; then
2360
 
  rm -rf conftest*
2361
 
  ac_cv_header_stdc=yes
2362
 
else
2363
 
  echo "$ac_err" >&5
2364
 
  echo "configure: failed program was:" >&5
2365
 
  cat conftest.$ac_ext >&5
2366
 
  rm -rf conftest*
2367
 
  ac_cv_header_stdc=no
2368
 
fi
2369
 
rm -f conftest*
2370
 
 
2371
 
if test $ac_cv_header_stdc = yes; then
2372
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2373
 
cat > conftest.$ac_ext <<EOF
2374
 
#line 2375 "configure"
2375
 
#include "confdefs.h"
2376
 
#include <string.h>
2377
 
EOF
2378
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2379
 
  egrep "memchr" >/dev/null 2>&1; then
2380
 
  :
2381
 
else
2382
 
  rm -rf conftest*
2383
 
  ac_cv_header_stdc=no
2384
 
fi
2385
 
rm -f conftest*
2386
 
 
2387
 
fi
2388
 
 
2389
 
if test $ac_cv_header_stdc = yes; then
2390
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2391
 
cat > conftest.$ac_ext <<EOF
2392
 
#line 2393 "configure"
2393
 
#include "confdefs.h"
2394
 
#include <stdlib.h>
2395
 
EOF
2396
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2397
 
  egrep "free" >/dev/null 2>&1; then
2398
 
  :
2399
 
else
2400
 
  rm -rf conftest*
2401
 
  ac_cv_header_stdc=no
2402
 
fi
2403
 
rm -f conftest*
2404
 
 
2405
 
fi
2406
 
 
2407
 
if test $ac_cv_header_stdc = yes; then
2408
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2409
 
if test "$cross_compiling" = yes; then
2410
 
  :
2411
 
else
2412
 
  cat > conftest.$ac_ext <<EOF
2413
 
#line 2414 "configure"
2414
 
#include "confdefs.h"
2415
 
#include <ctype.h>
2416
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2417
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2418
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2419
 
int main () { int i; for (i = 0; i < 256; i++)
2420
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2421
 
exit (0); }
2422
 
 
2423
 
EOF
2424
 
if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2425
 
then
2426
 
  :
2427
 
else
2428
 
  echo "configure: failed program was:" >&5
2429
 
  cat conftest.$ac_ext >&5
2430
 
  rm -fr conftest*
2431
 
  ac_cv_header_stdc=no
2432
 
fi
2433
 
rm -fr conftest*
2434
 
fi
2435
 
 
2436
 
fi
2437
 
fi
2438
 
 
2439
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
2440
 
if test $ac_cv_header_stdc = yes; then
2441
 
  cat >> confdefs.h <<\EOF
2442
 
#define STDC_HEADERS 1
2443
 
EOF
2444
 
 
2445
 
fi
2446
 
 
2447
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2448
 
echo "configure:2449: checking for size_t" >&5
2449
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2450
 
  echo $ac_n "(cached) $ac_c" 1>&6
2451
 
else
2452
 
  cat > conftest.$ac_ext <<EOF
2453
 
#line 2454 "configure"
2454
 
#include "confdefs.h"
2455
 
#include <sys/types.h>
2456
 
#if STDC_HEADERS
2457
 
#include <stdlib.h>
2458
 
#include <stddef.h>
2459
 
#endif
2460
 
EOF
2461
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2462
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2463
 
  rm -rf conftest*
 
7668
echo "$as_me:$LINENO: checking for size_t" >&5
 
7669
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
7670
if test "${ac_cv_type_size_t+set}" = set; then
 
7671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7672
else
 
7673
  cat >conftest.$ac_ext <<_ACEOF
 
7674
/* confdefs.h.  */
 
7675
_ACEOF
 
7676
cat confdefs.h >>conftest.$ac_ext
 
7677
cat >>conftest.$ac_ext <<_ACEOF
 
7678
/* end confdefs.h.  */
 
7679
$ac_includes_default
 
7680
int
 
7681
main ()
 
7682
{
 
7683
if ((size_t *) 0)
 
7684
  return 0;
 
7685
if (sizeof (size_t))
 
7686
  return 0;
 
7687
  ;
 
7688
  return 0;
 
7689
}
 
7690
_ACEOF
 
7691
rm -f conftest.$ac_objext
 
7692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7693
  (eval $ac_compile) 2>conftest.er1
 
7694
  ac_status=$?
 
7695
  grep -v '^ *+' conftest.er1 >conftest.err
 
7696
  rm -f conftest.er1
 
7697
  cat conftest.err >&5
 
7698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7699
  (exit $ac_status); } &&
 
7700
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7702
  (eval $ac_try) 2>&5
 
7703
  ac_status=$?
 
7704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7705
  (exit $ac_status); }; } &&
 
7706
         { ac_try='test -s conftest.$ac_objext'
 
7707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7708
  (eval $ac_try) 2>&5
 
7709
  ac_status=$?
 
7710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7711
  (exit $ac_status); }; }; then
2464
7712
  ac_cv_type_size_t=yes
2465
7713
else
2466
 
  rm -rf conftest*
2467
 
  ac_cv_type_size_t=no
2468
 
fi
2469
 
rm -f conftest*
2470
 
 
2471
 
fi
2472
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2473
 
if test $ac_cv_type_size_t = no; then
2474
 
  cat >> confdefs.h <<\EOF
 
7714
  echo "$as_me: failed program was:" >&5
 
7715
sed 's/^/| /' conftest.$ac_ext >&5
 
7716
 
 
7717
ac_cv_type_size_t=no
 
7718
fi
 
7719
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7720
fi
 
7721
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
7722
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
7723
if test $ac_cv_type_size_t = yes; then
 
7724
  :
 
7725
else
 
7726
 
 
7727
cat >>confdefs.h <<_ACEOF
2475
7728
#define size_t unsigned
2476
 
EOF
 
7729
_ACEOF
2477
7730
 
2478
7731
fi
2479
7732
 
2480
 
echo $ac_n "checking for inline""... $ac_c" 1>&6
2481
 
echo "configure:2482: checking for inline" >&5
2482
 
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2483
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7733
echo "$as_me:$LINENO: checking for inline" >&5
 
7734
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
7735
if test "${ac_cv_c_inline+set}" = set; then
 
7736
  echo $ECHO_N "(cached) $ECHO_C" >&6
2484
7737
else
2485
7738
  ac_cv_c_inline=no
2486
7739
for ac_kw in inline __inline__ __inline; do
2487
 
  cat > conftest.$ac_ext <<EOF
2488
 
#line 2489 "configure"
2489
 
#include "confdefs.h"
 
7740
  cat >conftest.$ac_ext <<_ACEOF
 
7741
/* confdefs.h.  */
 
7742
_ACEOF
 
7743
cat confdefs.h >>conftest.$ac_ext
 
7744
cat >>conftest.$ac_ext <<_ACEOF
 
7745
/* end confdefs.h.  */
 
7746
#ifndef __cplusplus
 
7747
typedef int foo_t;
 
7748
static $ac_kw foo_t static_foo () {return 0; }
 
7749
$ac_kw foo_t foo () {return 0; }
 
7750
#endif
2490
7751
 
2491
 
int main() {
2492
 
} $ac_kw foo() {
2493
 
; return 0; }
2494
 
EOF
2495
 
if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496
 
  rm -rf conftest*
 
7752
_ACEOF
 
7753
rm -f conftest.$ac_objext
 
7754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7755
  (eval $ac_compile) 2>conftest.er1
 
7756
  ac_status=$?
 
7757
  grep -v '^ *+' conftest.er1 >conftest.err
 
7758
  rm -f conftest.er1
 
7759
  cat conftest.err >&5
 
7760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7761
  (exit $ac_status); } &&
 
7762
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7764
  (eval $ac_try) 2>&5
 
7765
  ac_status=$?
 
7766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7767
  (exit $ac_status); }; } &&
 
7768
         { ac_try='test -s conftest.$ac_objext'
 
7769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7770
  (eval $ac_try) 2>&5
 
7771
  ac_status=$?
 
7772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7773
  (exit $ac_status); }; }; then
2497
7774
  ac_cv_c_inline=$ac_kw; break
2498
7775
else
2499
 
  echo "configure: failed program was:" >&5
2500
 
  cat conftest.$ac_ext >&5
 
7776
  echo "$as_me: failed program was:" >&5
 
7777
sed 's/^/| /' conftest.$ac_ext >&5
 
7778
 
2501
7779
fi
2502
 
rm -f conftest*
 
7780
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503
7781
done
2504
7782
 
2505
7783
fi
2506
 
 
2507
 
echo "$ac_t""$ac_cv_c_inline" 1>&6
2508
 
case "$ac_cv_c_inline" in
 
7784
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
7785
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
7786
 
 
7787
 
 
7788
case $ac_cv_c_inline in
2509
7789
  inline | yes) ;;
2510
 
  no) cat >> confdefs.h <<\EOF
2511
 
#define inline 
2512
 
EOF
2513
 
 ;;
2514
 
  *)  cat >> confdefs.h <<EOF
2515
 
#define inline $ac_cv_c_inline
2516
 
EOF
2517
 
 ;;
 
7790
  *)
 
7791
    case $ac_cv_c_inline in
 
7792
      no) ac_val=;;
 
7793
      *) ac_val=$ac_cv_c_inline;;
 
7794
    esac
 
7795
    cat >>confdefs.h <<_ACEOF
 
7796
#ifndef __cplusplus
 
7797
#define inline $ac_val
 
7798
#endif
 
7799
_ACEOF
 
7800
    ;;
2518
7801
esac
2519
7802
 
2520
7803
 
2521
7804
#--------------------------------------------------------------------
2522
7805
# Following header checks needed for bzero in Storage.m and other places
2523
7806
#--------------------------------------------------------------------
2524
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2525
 
echo "configure:2526: checking for ANSI C header files" >&5
2526
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2527
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7807
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7808
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7809
if test "${ac_cv_header_stdc+set}" = set; then
 
7810
  echo $ECHO_N "(cached) $ECHO_C" >&6
2528
7811
else
2529
 
  cat > conftest.$ac_ext <<EOF
2530
 
#line 2531 "configure"
2531
 
#include "confdefs.h"
 
7812
  cat >conftest.$ac_ext <<_ACEOF
 
7813
/* confdefs.h.  */
 
7814
_ACEOF
 
7815
cat confdefs.h >>conftest.$ac_ext
 
7816
cat >>conftest.$ac_ext <<_ACEOF
 
7817
/* end confdefs.h.  */
2532
7818
#include <stdlib.h>
2533
7819
#include <stdarg.h>
2534
7820
#include <string.h>
2535
7821
#include <float.h>
2536
 
EOF
2537
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538
 
{ (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540
 
if test -z "$ac_err"; then
2541
 
  rm -rf conftest*
 
7822
 
 
7823
int
 
7824
main ()
 
7825
{
 
7826
 
 
7827
  ;
 
7828
  return 0;
 
7829
}
 
7830
_ACEOF
 
7831
rm -f conftest.$ac_objext
 
7832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7833
  (eval $ac_compile) 2>conftest.er1
 
7834
  ac_status=$?
 
7835
  grep -v '^ *+' conftest.er1 >conftest.err
 
7836
  rm -f conftest.er1
 
7837
  cat conftest.err >&5
 
7838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7839
  (exit $ac_status); } &&
 
7840
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7842
  (eval $ac_try) 2>&5
 
7843
  ac_status=$?
 
7844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7845
  (exit $ac_status); }; } &&
 
7846
         { ac_try='test -s conftest.$ac_objext'
 
7847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7848
  (eval $ac_try) 2>&5
 
7849
  ac_status=$?
 
7850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7851
  (exit $ac_status); }; }; then
2542
7852
  ac_cv_header_stdc=yes
2543
7853
else
2544
 
  echo "$ac_err" >&5
2545
 
  echo "configure: failed program was:" >&5
2546
 
  cat conftest.$ac_ext >&5
2547
 
  rm -rf conftest*
2548
 
  ac_cv_header_stdc=no
 
7854
  echo "$as_me: failed program was:" >&5
 
7855
sed 's/^/| /' conftest.$ac_ext >&5
 
7856
 
 
7857
ac_cv_header_stdc=no
2549
7858
fi
2550
 
rm -f conftest*
 
7859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551
7860
 
2552
7861
if test $ac_cv_header_stdc = yes; then
2553
7862
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2554
 
cat > conftest.$ac_ext <<EOF
2555
 
#line 2556 "configure"
2556
 
#include "confdefs.h"
 
7863
  cat >conftest.$ac_ext <<_ACEOF
 
7864
/* confdefs.h.  */
 
7865
_ACEOF
 
7866
cat confdefs.h >>conftest.$ac_ext
 
7867
cat >>conftest.$ac_ext <<_ACEOF
 
7868
/* end confdefs.h.  */
2557
7869
#include <string.h>
2558
 
EOF
 
7870
 
 
7871
_ACEOF
2559
7872
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560
 
  egrep "memchr" >/dev/null 2>&1; then
 
7873
  $EGREP "memchr" >/dev/null 2>&1; then
2561
7874
  :
2562
7875
else
2563
 
  rm -rf conftest*
2564
7876
  ac_cv_header_stdc=no
2565
7877
fi
2566
7878
rm -f conftest*
2569
7881
 
2570
7882
if test $ac_cv_header_stdc = yes; then
2571
7883
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2572
 
cat > conftest.$ac_ext <<EOF
2573
 
#line 2574 "configure"
2574
 
#include "confdefs.h"
 
7884
  cat >conftest.$ac_ext <<_ACEOF
 
7885
/* confdefs.h.  */
 
7886
_ACEOF
 
7887
cat confdefs.h >>conftest.$ac_ext
 
7888
cat >>conftest.$ac_ext <<_ACEOF
 
7889
/* end confdefs.h.  */
2575
7890
#include <stdlib.h>
2576
 
EOF
 
7891
 
 
7892
_ACEOF
2577
7893
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578
 
  egrep "free" >/dev/null 2>&1; then
 
7894
  $EGREP "free" >/dev/null 2>&1; then
2579
7895
  :
2580
7896
else
2581
 
  rm -rf conftest*
2582
7897
  ac_cv_header_stdc=no
2583
7898
fi
2584
7899
rm -f conftest*
2587
7902
 
2588
7903
if test $ac_cv_header_stdc = yes; then
2589
7904
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2590
 
if test "$cross_compiling" = yes; then
 
7905
  if test "$cross_compiling" = yes; then
2591
7906
  :
2592
7907
else
2593
 
  cat > conftest.$ac_ext <<EOF
2594
 
#line 2595 "configure"
2595
 
#include "confdefs.h"
 
7908
  cat >conftest.$ac_ext <<_ACEOF
 
7909
/* confdefs.h.  */
 
7910
_ACEOF
 
7911
cat confdefs.h >>conftest.$ac_ext
 
7912
cat >>conftest.$ac_ext <<_ACEOF
 
7913
/* end confdefs.h.  */
2596
7914
#include <ctype.h>
2597
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2598
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7915
#if ((' ' & 0x0FF) == 0x020)
 
7916
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7917
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7918
#else
 
7919
# define ISLOWER(c) \
 
7920
                   (('a' <= (c) && (c) <= 'i') \
 
7921
                     || ('j' <= (c) && (c) <= 'r') \
 
7922
                     || ('s' <= (c) && (c) <= 'z'))
 
7923
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7924
#endif
 
7925
 
2599
7926
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2600
 
int main () { int i; for (i = 0; i < 256; i++)
2601
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2602
 
exit (0); }
2603
 
 
2604
 
EOF
2605
 
if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2606
 
then
 
7927
int
 
7928
main ()
 
7929
{
 
7930
  int i;
 
7931
  for (i = 0; i < 256; i++)
 
7932
    if (XOR (islower (i), ISLOWER (i))
 
7933
        || toupper (i) != TOUPPER (i))
 
7934
      exit(2);
 
7935
  exit (0);
 
7936
}
 
7937
_ACEOF
 
7938
rm -f conftest$ac_exeext
 
7939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7940
  (eval $ac_link) 2>&5
 
7941
  ac_status=$?
 
7942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7943
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7945
  (eval $ac_try) 2>&5
 
7946
  ac_status=$?
 
7947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7948
  (exit $ac_status); }; }; then
2607
7949
  :
2608
7950
else
2609
 
  echo "configure: failed program was:" >&5
2610
 
  cat conftest.$ac_ext >&5
2611
 
  rm -fr conftest*
2612
 
  ac_cv_header_stdc=no
2613
 
fi
2614
 
rm -fr conftest*
2615
 
fi
2616
 
 
2617
 
fi
2618
 
fi
2619
 
 
2620
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
7951
  echo "$as_me: program exited with status $ac_status" >&5
 
7952
echo "$as_me: failed program was:" >&5
 
7953
sed 's/^/| /' conftest.$ac_ext >&5
 
7954
 
 
7955
( exit $ac_status )
 
7956
ac_cv_header_stdc=no
 
7957
fi
 
7958
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7959
fi
 
7960
fi
 
7961
fi
 
7962
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7963
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2621
7964
if test $ac_cv_header_stdc = yes; then
2622
 
  cat >> confdefs.h <<\EOF
 
7965
 
 
7966
cat >>confdefs.h <<\_ACEOF
2623
7967
#define STDC_HEADERS 1
2624
 
EOF
 
7968
_ACEOF
2625
7969
 
2626
7970
fi
2627
7971
 
2628
 
for ac_hdr in string.h memory.h
 
7972
 
 
7973
 
 
7974
for ac_header in string.h memory.h
2629
7975
do
2630
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2631
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2632
 
echo "configure:2633: checking for $ac_hdr" >&5
2633
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2634
 
  echo $ac_n "(cached) $ac_c" 1>&6
2635
 
else
2636
 
  cat > conftest.$ac_ext <<EOF
2637
 
#line 2638 "configure"
2638
 
#include "confdefs.h"
2639
 
#include <$ac_hdr>
2640
 
EOF
2641
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2642
 
{ (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2643
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2644
 
if test -z "$ac_err"; then
2645
 
  rm -rf conftest*
2646
 
  eval "ac_cv_header_$ac_safe=yes"
2647
 
else
2648
 
  echo "$ac_err" >&5
2649
 
  echo "configure: failed program was:" >&5
2650
 
  cat conftest.$ac_ext >&5
2651
 
  rm -rf conftest*
2652
 
  eval "ac_cv_header_$ac_safe=no"
2653
 
fi
2654
 
rm -f conftest*
2655
 
fi
2656
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2657
 
  echo "$ac_t""yes" 1>&6
2658
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2659
 
  cat >> confdefs.h <<EOF
2660
 
#define $ac_tr_hdr 1
2661
 
EOF
2662
 
 
2663
 
else
2664
 
  echo "$ac_t""no" 1>&6
2665
 
fi
 
7976
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7977
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7978
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7979
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7980
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7982
fi
 
7983
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7984
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7985
else
 
7986
  # Is the header compilable?
 
7987
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7988
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7989
cat >conftest.$ac_ext <<_ACEOF
 
7990
/* confdefs.h.  */
 
7991
_ACEOF
 
7992
cat confdefs.h >>conftest.$ac_ext
 
7993
cat >>conftest.$ac_ext <<_ACEOF
 
7994
/* end confdefs.h.  */
 
7995
$ac_includes_default
 
7996
#include <$ac_header>
 
7997
_ACEOF
 
7998
rm -f conftest.$ac_objext
 
7999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8000
  (eval $ac_compile) 2>conftest.er1
 
8001
  ac_status=$?
 
8002
  grep -v '^ *+' conftest.er1 >conftest.err
 
8003
  rm -f conftest.er1
 
8004
  cat conftest.err >&5
 
8005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8006
  (exit $ac_status); } &&
 
8007
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8009
  (eval $ac_try) 2>&5
 
8010
  ac_status=$?
 
8011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8012
  (exit $ac_status); }; } &&
 
8013
         { ac_try='test -s conftest.$ac_objext'
 
8014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8015
  (eval $ac_try) 2>&5
 
8016
  ac_status=$?
 
8017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8018
  (exit $ac_status); }; }; then
 
8019
  ac_header_compiler=yes
 
8020
else
 
8021
  echo "$as_me: failed program was:" >&5
 
8022
sed 's/^/| /' conftest.$ac_ext >&5
 
8023
 
 
8024
ac_header_compiler=no
 
8025
fi
 
8026
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8027
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8028
echo "${ECHO_T}$ac_header_compiler" >&6
 
8029
 
 
8030
# Is the header present?
 
8031
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8032
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8033
cat >conftest.$ac_ext <<_ACEOF
 
8034
/* confdefs.h.  */
 
8035
_ACEOF
 
8036
cat confdefs.h >>conftest.$ac_ext
 
8037
cat >>conftest.$ac_ext <<_ACEOF
 
8038
/* end confdefs.h.  */
 
8039
#include <$ac_header>
 
8040
_ACEOF
 
8041
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8042
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8043
  ac_status=$?
 
8044
  grep -v '^ *+' conftest.er1 >conftest.err
 
8045
  rm -f conftest.er1
 
8046
  cat conftest.err >&5
 
8047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8048
  (exit $ac_status); } >/dev/null; then
 
8049
  if test -s conftest.err; then
 
8050
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8051
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8052
  else
 
8053
    ac_cpp_err=
 
8054
  fi
 
8055
else
 
8056
  ac_cpp_err=yes
 
8057
fi
 
8058
if test -z "$ac_cpp_err"; then
 
8059
  ac_header_preproc=yes
 
8060
else
 
8061
  echo "$as_me: failed program was:" >&5
 
8062
sed 's/^/| /' conftest.$ac_ext >&5
 
8063
 
 
8064
  ac_header_preproc=no
 
8065
fi
 
8066
rm -f conftest.err conftest.$ac_ext
 
8067
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8068
echo "${ECHO_T}$ac_header_preproc" >&6
 
8069
 
 
8070
# So?  What about this header?
 
8071
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8072
  yes:no: )
 
8073
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8074
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8075
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8076
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8077
    ac_header_preproc=yes
 
8078
    ;;
 
8079
  no:yes:* )
 
8080
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8081
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8082
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8083
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8084
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8085
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8086
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8087
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8088
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8089
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8090
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8091
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8092
    (
 
8093
      cat <<\_ASBOX
 
8094
## ------------------------------------------ ##
 
8095
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8096
## ------------------------------------------ ##
 
8097
_ASBOX
 
8098
    ) |
 
8099
      sed "s/^/$as_me: WARNING:     /" >&2
 
8100
    ;;
 
8101
esac
 
8102
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8103
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8104
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8106
else
 
8107
  eval "$as_ac_Header=\$ac_header_preproc"
 
8108
fi
 
8109
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8110
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8111
 
 
8112
fi
 
8113
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8114
  cat >>confdefs.h <<_ACEOF
 
8115
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8116
_ACEOF
 
8117
 
 
8118
fi
 
8119
 
2666
8120
done
2667
8121
 
2668
8122
 
2669
8123
#--------------------------------------------------------------------
2670
8124
# Following header check needed NSConnection.h
2671
8125
#--------------------------------------------------------------------
2672
 
for ac_hdr in float.h
 
8126
 
 
8127
for ac_header in float.h
2673
8128
do
2674
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676
 
echo "configure:2677: checking for $ac_hdr" >&5
2677
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678
 
  echo $ac_n "(cached) $ac_c" 1>&6
2679
 
else
2680
 
  cat > conftest.$ac_ext <<EOF
2681
 
#line 2682 "configure"
2682
 
#include "confdefs.h"
2683
 
#include <$ac_hdr>
2684
 
EOF
2685
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686
 
{ (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688
 
if test -z "$ac_err"; then
2689
 
  rm -rf conftest*
2690
 
  eval "ac_cv_header_$ac_safe=yes"
2691
 
else
2692
 
  echo "$ac_err" >&5
2693
 
  echo "configure: failed program was:" >&5
2694
 
  cat conftest.$ac_ext >&5
2695
 
  rm -rf conftest*
2696
 
  eval "ac_cv_header_$ac_safe=no"
2697
 
fi
2698
 
rm -f conftest*
2699
 
fi
2700
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701
 
  echo "$ac_t""yes" 1>&6
2702
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703
 
  cat >> confdefs.h <<EOF
2704
 
#define $ac_tr_hdr 1
2705
 
EOF
2706
 
 
2707
 
else
2708
 
  echo "$ac_t""no" 1>&6
2709
 
fi
 
8129
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8130
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8131
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8132
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8133
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8135
fi
 
8136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8138
else
 
8139
  # Is the header compilable?
 
8140
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8141
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8142
cat >conftest.$ac_ext <<_ACEOF
 
8143
/* confdefs.h.  */
 
8144
_ACEOF
 
8145
cat confdefs.h >>conftest.$ac_ext
 
8146
cat >>conftest.$ac_ext <<_ACEOF
 
8147
/* end confdefs.h.  */
 
8148
$ac_includes_default
 
8149
#include <$ac_header>
 
8150
_ACEOF
 
8151
rm -f conftest.$ac_objext
 
8152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8153
  (eval $ac_compile) 2>conftest.er1
 
8154
  ac_status=$?
 
8155
  grep -v '^ *+' conftest.er1 >conftest.err
 
8156
  rm -f conftest.er1
 
8157
  cat conftest.err >&5
 
8158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8159
  (exit $ac_status); } &&
 
8160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8162
  (eval $ac_try) 2>&5
 
8163
  ac_status=$?
 
8164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8165
  (exit $ac_status); }; } &&
 
8166
         { ac_try='test -s conftest.$ac_objext'
 
8167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8168
  (eval $ac_try) 2>&5
 
8169
  ac_status=$?
 
8170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8171
  (exit $ac_status); }; }; then
 
8172
  ac_header_compiler=yes
 
8173
else
 
8174
  echo "$as_me: failed program was:" >&5
 
8175
sed 's/^/| /' conftest.$ac_ext >&5
 
8176
 
 
8177
ac_header_compiler=no
 
8178
fi
 
8179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8180
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8181
echo "${ECHO_T}$ac_header_compiler" >&6
 
8182
 
 
8183
# Is the header present?
 
8184
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8185
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8186
cat >conftest.$ac_ext <<_ACEOF
 
8187
/* confdefs.h.  */
 
8188
_ACEOF
 
8189
cat confdefs.h >>conftest.$ac_ext
 
8190
cat >>conftest.$ac_ext <<_ACEOF
 
8191
/* end confdefs.h.  */
 
8192
#include <$ac_header>
 
8193
_ACEOF
 
8194
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8195
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8196
  ac_status=$?
 
8197
  grep -v '^ *+' conftest.er1 >conftest.err
 
8198
  rm -f conftest.er1
 
8199
  cat conftest.err >&5
 
8200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8201
  (exit $ac_status); } >/dev/null; then
 
8202
  if test -s conftest.err; then
 
8203
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8204
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8205
  else
 
8206
    ac_cpp_err=
 
8207
  fi
 
8208
else
 
8209
  ac_cpp_err=yes
 
8210
fi
 
8211
if test -z "$ac_cpp_err"; then
 
8212
  ac_header_preproc=yes
 
8213
else
 
8214
  echo "$as_me: failed program was:" >&5
 
8215
sed 's/^/| /' conftest.$ac_ext >&5
 
8216
 
 
8217
  ac_header_preproc=no
 
8218
fi
 
8219
rm -f conftest.err conftest.$ac_ext
 
8220
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8221
echo "${ECHO_T}$ac_header_preproc" >&6
 
8222
 
 
8223
# So?  What about this header?
 
8224
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8225
  yes:no: )
 
8226
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8227
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8228
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8229
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8230
    ac_header_preproc=yes
 
8231
    ;;
 
8232
  no:yes:* )
 
8233
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8234
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8235
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8236
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8237
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8238
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8239
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8240
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8241
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8242
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8243
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8244
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8245
    (
 
8246
      cat <<\_ASBOX
 
8247
## ------------------------------------------ ##
 
8248
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8249
## ------------------------------------------ ##
 
8250
_ASBOX
 
8251
    ) |
 
8252
      sed "s/^/$as_me: WARNING:     /" >&2
 
8253
    ;;
 
8254
esac
 
8255
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8256
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8257
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8259
else
 
8260
  eval "$as_ac_Header=\$ac_header_preproc"
 
8261
fi
 
8262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8263
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8264
 
 
8265
fi
 
8266
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8267
  cat >>confdefs.h <<_ACEOF
 
8268
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8269
_ACEOF
 
8270
 
 
8271
fi
 
8272
 
2710
8273
done
2711
8274
 
2712
8275
 
2713
8276
#--------------------------------------------------------------------
2714
8277
# Header files and functions for files and filesystems
2715
8278
#--------------------------------------------------------------------
2716
 
for ac_hdr in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
2717
 
do
2718
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2719
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2720
 
echo "configure:2721: checking for $ac_hdr" >&5
2721
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2722
 
  echo $ac_n "(cached) $ac_c" 1>&6
2723
 
else
2724
 
  cat > conftest.$ac_ext <<EOF
2725
 
#line 2726 "configure"
2726
 
#include "confdefs.h"
2727
 
#include <$ac_hdr>
2728
 
EOF
2729
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730
 
{ (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732
 
if test -z "$ac_err"; then
2733
 
  rm -rf conftest*
2734
 
  eval "ac_cv_header_$ac_safe=yes"
2735
 
else
2736
 
  echo "$ac_err" >&5
2737
 
  echo "configure: failed program was:" >&5
2738
 
  cat conftest.$ac_ext >&5
2739
 
  rm -rf conftest*
2740
 
  eval "ac_cv_header_$ac_safe=no"
2741
 
fi
2742
 
rm -f conftest*
2743
 
fi
2744
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2745
 
  echo "$ac_t""yes" 1>&6
2746
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2747
 
  cat >> confdefs.h <<EOF
2748
 
#define $ac_tr_hdr 1
2749
 
EOF
2750
 
 
2751
 
else
2752
 
  echo "$ac_t""no" 1>&6
2753
 
fi
2754
 
done
2755
 
 
2756
 
for ac_hdr in sys/mount.h sys/types.h windows.h locale.h langinfo.h
2757
 
do
2758
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2759
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2760
 
echo "configure:2761: checking for $ac_hdr" >&5
2761
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2762
 
  echo $ac_n "(cached) $ac_c" 1>&6
2763
 
else
2764
 
  cat > conftest.$ac_ext <<EOF
2765
 
#line 2766 "configure"
2766
 
#include "confdefs.h"
2767
 
#include <$ac_hdr>
2768
 
EOF
2769
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770
 
{ (eval echo configure:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772
 
if test -z "$ac_err"; then
2773
 
  rm -rf conftest*
2774
 
  eval "ac_cv_header_$ac_safe=yes"
2775
 
else
2776
 
  echo "$ac_err" >&5
2777
 
  echo "configure: failed program was:" >&5
2778
 
  cat conftest.$ac_ext >&5
2779
 
  rm -rf conftest*
2780
 
  eval "ac_cv_header_$ac_safe=no"
2781
 
fi
2782
 
rm -f conftest*
2783
 
fi
2784
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2785
 
  echo "$ac_t""yes" 1>&6
2786
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2787
 
  cat >> confdefs.h <<EOF
2788
 
#define $ac_tr_hdr 1
2789
 
EOF
2790
 
 
2791
 
else
2792
 
  echo "$ac_t""no" 1>&6
2793
 
fi
 
8279
 
 
8280
 
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
for ac_header in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
 
8286
do
 
8287
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8289
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8290
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8291
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8293
fi
 
8294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8295
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8296
else
 
8297
  # Is the header compilable?
 
8298
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8299
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8300
cat >conftest.$ac_ext <<_ACEOF
 
8301
/* confdefs.h.  */
 
8302
_ACEOF
 
8303
cat confdefs.h >>conftest.$ac_ext
 
8304
cat >>conftest.$ac_ext <<_ACEOF
 
8305
/* end confdefs.h.  */
 
8306
$ac_includes_default
 
8307
#include <$ac_header>
 
8308
_ACEOF
 
8309
rm -f conftest.$ac_objext
 
8310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8311
  (eval $ac_compile) 2>conftest.er1
 
8312
  ac_status=$?
 
8313
  grep -v '^ *+' conftest.er1 >conftest.err
 
8314
  rm -f conftest.er1
 
8315
  cat conftest.err >&5
 
8316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8317
  (exit $ac_status); } &&
 
8318
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8320
  (eval $ac_try) 2>&5
 
8321
  ac_status=$?
 
8322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8323
  (exit $ac_status); }; } &&
 
8324
         { ac_try='test -s conftest.$ac_objext'
 
8325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8326
  (eval $ac_try) 2>&5
 
8327
  ac_status=$?
 
8328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8329
  (exit $ac_status); }; }; then
 
8330
  ac_header_compiler=yes
 
8331
else
 
8332
  echo "$as_me: failed program was:" >&5
 
8333
sed 's/^/| /' conftest.$ac_ext >&5
 
8334
 
 
8335
ac_header_compiler=no
 
8336
fi
 
8337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8338
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8339
echo "${ECHO_T}$ac_header_compiler" >&6
 
8340
 
 
8341
# Is the header present?
 
8342
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8343
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8344
cat >conftest.$ac_ext <<_ACEOF
 
8345
/* confdefs.h.  */
 
8346
_ACEOF
 
8347
cat confdefs.h >>conftest.$ac_ext
 
8348
cat >>conftest.$ac_ext <<_ACEOF
 
8349
/* end confdefs.h.  */
 
8350
#include <$ac_header>
 
8351
_ACEOF
 
8352
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8353
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8354
  ac_status=$?
 
8355
  grep -v '^ *+' conftest.er1 >conftest.err
 
8356
  rm -f conftest.er1
 
8357
  cat conftest.err >&5
 
8358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8359
  (exit $ac_status); } >/dev/null; then
 
8360
  if test -s conftest.err; then
 
8361
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8362
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8363
  else
 
8364
    ac_cpp_err=
 
8365
  fi
 
8366
else
 
8367
  ac_cpp_err=yes
 
8368
fi
 
8369
if test -z "$ac_cpp_err"; then
 
8370
  ac_header_preproc=yes
 
8371
else
 
8372
  echo "$as_me: failed program was:" >&5
 
8373
sed 's/^/| /' conftest.$ac_ext >&5
 
8374
 
 
8375
  ac_header_preproc=no
 
8376
fi
 
8377
rm -f conftest.err conftest.$ac_ext
 
8378
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8379
echo "${ECHO_T}$ac_header_preproc" >&6
 
8380
 
 
8381
# So?  What about this header?
 
8382
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8383
  yes:no: )
 
8384
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8385
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8386
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8387
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8388
    ac_header_preproc=yes
 
8389
    ;;
 
8390
  no:yes:* )
 
8391
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8392
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8393
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8394
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8395
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8396
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8397
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8398
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8399
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8400
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8401
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8402
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8403
    (
 
8404
      cat <<\_ASBOX
 
8405
## ------------------------------------------ ##
 
8406
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8407
## ------------------------------------------ ##
 
8408
_ASBOX
 
8409
    ) |
 
8410
      sed "s/^/$as_me: WARNING:     /" >&2
 
8411
    ;;
 
8412
esac
 
8413
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8415
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8417
else
 
8418
  eval "$as_ac_Header=\$ac_header_preproc"
 
8419
fi
 
8420
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8421
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8422
 
 
8423
fi
 
8424
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8425
  cat >>confdefs.h <<_ACEOF
 
8426
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8427
_ACEOF
 
8428
 
 
8429
fi
 
8430
 
 
8431
done
 
8432
 
 
8433
 
 
8434
 
 
8435
for ac_header in sys/syslimits.h sys/param.h
 
8436
do
 
8437
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8438
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8439
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8440
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8441
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8443
fi
 
8444
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8445
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8446
else
 
8447
  # Is the header compilable?
 
8448
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8449
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8450
cat >conftest.$ac_ext <<_ACEOF
 
8451
/* confdefs.h.  */
 
8452
_ACEOF
 
8453
cat confdefs.h >>conftest.$ac_ext
 
8454
cat >>conftest.$ac_ext <<_ACEOF
 
8455
/* end confdefs.h.  */
 
8456
$ac_includes_default
 
8457
#include <$ac_header>
 
8458
_ACEOF
 
8459
rm -f conftest.$ac_objext
 
8460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8461
  (eval $ac_compile) 2>conftest.er1
 
8462
  ac_status=$?
 
8463
  grep -v '^ *+' conftest.er1 >conftest.err
 
8464
  rm -f conftest.er1
 
8465
  cat conftest.err >&5
 
8466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8467
  (exit $ac_status); } &&
 
8468
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8470
  (eval $ac_try) 2>&5
 
8471
  ac_status=$?
 
8472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8473
  (exit $ac_status); }; } &&
 
8474
         { ac_try='test -s conftest.$ac_objext'
 
8475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8476
  (eval $ac_try) 2>&5
 
8477
  ac_status=$?
 
8478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8479
  (exit $ac_status); }; }; then
 
8480
  ac_header_compiler=yes
 
8481
else
 
8482
  echo "$as_me: failed program was:" >&5
 
8483
sed 's/^/| /' conftest.$ac_ext >&5
 
8484
 
 
8485
ac_header_compiler=no
 
8486
fi
 
8487
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8488
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8489
echo "${ECHO_T}$ac_header_compiler" >&6
 
8490
 
 
8491
# Is the header present?
 
8492
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8493
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8494
cat >conftest.$ac_ext <<_ACEOF
 
8495
/* confdefs.h.  */
 
8496
_ACEOF
 
8497
cat confdefs.h >>conftest.$ac_ext
 
8498
cat >>conftest.$ac_ext <<_ACEOF
 
8499
/* end confdefs.h.  */
 
8500
#include <$ac_header>
 
8501
_ACEOF
 
8502
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8503
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8504
  ac_status=$?
 
8505
  grep -v '^ *+' conftest.er1 >conftest.err
 
8506
  rm -f conftest.er1
 
8507
  cat conftest.err >&5
 
8508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8509
  (exit $ac_status); } >/dev/null; then
 
8510
  if test -s conftest.err; then
 
8511
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8512
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8513
  else
 
8514
    ac_cpp_err=
 
8515
  fi
 
8516
else
 
8517
  ac_cpp_err=yes
 
8518
fi
 
8519
if test -z "$ac_cpp_err"; then
 
8520
  ac_header_preproc=yes
 
8521
else
 
8522
  echo "$as_me: failed program was:" >&5
 
8523
sed 's/^/| /' conftest.$ac_ext >&5
 
8524
 
 
8525
  ac_header_preproc=no
 
8526
fi
 
8527
rm -f conftest.err conftest.$ac_ext
 
8528
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8529
echo "${ECHO_T}$ac_header_preproc" >&6
 
8530
 
 
8531
# So?  What about this header?
 
8532
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8533
  yes:no: )
 
8534
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8535
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8536
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8537
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8538
    ac_header_preproc=yes
 
8539
    ;;
 
8540
  no:yes:* )
 
8541
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8542
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8543
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8544
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8545
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8546
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8547
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8548
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8549
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8550
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8551
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8552
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8553
    (
 
8554
      cat <<\_ASBOX
 
8555
## ------------------------------------------ ##
 
8556
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8557
## ------------------------------------------ ##
 
8558
_ASBOX
 
8559
    ) |
 
8560
      sed "s/^/$as_me: WARNING:     /" >&2
 
8561
    ;;
 
8562
esac
 
8563
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8564
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8565
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8567
else
 
8568
  eval "$as_ac_Header=\$ac_header_preproc"
 
8569
fi
 
8570
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8571
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8572
 
 
8573
fi
 
8574
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8575
  cat >>confdefs.h <<_ACEOF
 
8576
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8577
_ACEOF
 
8578
 
 
8579
fi
 
8580
 
 
8581
done
 
8582
 
 
8583
# Twisted header check for NetBSD
 
8584
 
 
8585
for ac_header in sys/mount.h
 
8586
do
 
8587
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8588
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8589
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8590
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8592
else
 
8593
  cat >conftest.$ac_ext <<_ACEOF
 
8594
/* confdefs.h.  */
 
8595
_ACEOF
 
8596
cat confdefs.h >>conftest.$ac_ext
 
8597
cat >>conftest.$ac_ext <<_ACEOF
 
8598
/* end confdefs.h.  */
 
8599
#if HAVE_SYS_SYSLIMITS_H
 
8600
   #include <sys/syslimits.h>
 
8601
   #endif
 
8602
   #if HAVE_SYS_PARAM_H
 
8603
   #include <sys/param.h>
 
8604
   #endif
 
8605
 
 
8606
 
 
8607
#include <$ac_header>
 
8608
_ACEOF
 
8609
rm -f conftest.$ac_objext
 
8610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8611
  (eval $ac_compile) 2>conftest.er1
 
8612
  ac_status=$?
 
8613
  grep -v '^ *+' conftest.er1 >conftest.err
 
8614
  rm -f conftest.er1
 
8615
  cat conftest.err >&5
 
8616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8617
  (exit $ac_status); } &&
 
8618
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8620
  (eval $ac_try) 2>&5
 
8621
  ac_status=$?
 
8622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8623
  (exit $ac_status); }; } &&
 
8624
         { ac_try='test -s conftest.$ac_objext'
 
8625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8626
  (eval $ac_try) 2>&5
 
8627
  ac_status=$?
 
8628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8629
  (exit $ac_status); }; }; then
 
8630
  eval "$as_ac_Header=yes"
 
8631
else
 
8632
  echo "$as_me: failed program was:" >&5
 
8633
sed 's/^/| /' conftest.$ac_ext >&5
 
8634
 
 
8635
eval "$as_ac_Header=no"
 
8636
fi
 
8637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8638
fi
 
8639
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8640
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8641
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8642
  cat >>confdefs.h <<_ACEOF
 
8643
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8644
_ACEOF
 
8645
 
 
8646
fi
 
8647
 
 
8648
done
 
8649
 
 
8650
 
 
8651
 
 
8652
 
 
8653
 
 
8654
for ac_header in sys/types.h windows.h locale.h langinfo.h
 
8655
do
 
8656
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8657
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8658
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8660
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8662
fi
 
8663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8665
else
 
8666
  # Is the header compilable?
 
8667
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8668
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8669
cat >conftest.$ac_ext <<_ACEOF
 
8670
/* confdefs.h.  */
 
8671
_ACEOF
 
8672
cat confdefs.h >>conftest.$ac_ext
 
8673
cat >>conftest.$ac_ext <<_ACEOF
 
8674
/* end confdefs.h.  */
 
8675
$ac_includes_default
 
8676
#include <$ac_header>
 
8677
_ACEOF
 
8678
rm -f conftest.$ac_objext
 
8679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8680
  (eval $ac_compile) 2>conftest.er1
 
8681
  ac_status=$?
 
8682
  grep -v '^ *+' conftest.er1 >conftest.err
 
8683
  rm -f conftest.er1
 
8684
  cat conftest.err >&5
 
8685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8686
  (exit $ac_status); } &&
 
8687
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8689
  (eval $ac_try) 2>&5
 
8690
  ac_status=$?
 
8691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8692
  (exit $ac_status); }; } &&
 
8693
         { ac_try='test -s conftest.$ac_objext'
 
8694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8695
  (eval $ac_try) 2>&5
 
8696
  ac_status=$?
 
8697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8698
  (exit $ac_status); }; }; then
 
8699
  ac_header_compiler=yes
 
8700
else
 
8701
  echo "$as_me: failed program was:" >&5
 
8702
sed 's/^/| /' conftest.$ac_ext >&5
 
8703
 
 
8704
ac_header_compiler=no
 
8705
fi
 
8706
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8707
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8708
echo "${ECHO_T}$ac_header_compiler" >&6
 
8709
 
 
8710
# Is the header present?
 
8711
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8712
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
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
#include <$ac_header>
 
8720
_ACEOF
 
8721
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8722
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8723
  ac_status=$?
 
8724
  grep -v '^ *+' conftest.er1 >conftest.err
 
8725
  rm -f conftest.er1
 
8726
  cat conftest.err >&5
 
8727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8728
  (exit $ac_status); } >/dev/null; then
 
8729
  if test -s conftest.err; then
 
8730
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8731
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8732
  else
 
8733
    ac_cpp_err=
 
8734
  fi
 
8735
else
 
8736
  ac_cpp_err=yes
 
8737
fi
 
8738
if test -z "$ac_cpp_err"; then
 
8739
  ac_header_preproc=yes
 
8740
else
 
8741
  echo "$as_me: failed program was:" >&5
 
8742
sed 's/^/| /' conftest.$ac_ext >&5
 
8743
 
 
8744
  ac_header_preproc=no
 
8745
fi
 
8746
rm -f conftest.err conftest.$ac_ext
 
8747
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8748
echo "${ECHO_T}$ac_header_preproc" >&6
 
8749
 
 
8750
# So?  What about this header?
 
8751
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8752
  yes:no: )
 
8753
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8754
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8755
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8756
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8757
    ac_header_preproc=yes
 
8758
    ;;
 
8759
  no:yes:* )
 
8760
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8761
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8762
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8763
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8764
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8765
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8766
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8767
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8768
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8769
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8770
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8771
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8772
    (
 
8773
      cat <<\_ASBOX
 
8774
## ------------------------------------------ ##
 
8775
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8776
## ------------------------------------------ ##
 
8777
_ASBOX
 
8778
    ) |
 
8779
      sed "s/^/$as_me: WARNING:     /" >&2
 
8780
    ;;
 
8781
esac
 
8782
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8783
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8784
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8786
else
 
8787
  eval "$as_ac_Header=\$ac_header_preproc"
 
8788
fi
 
8789
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8790
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8791
 
 
8792
fi
 
8793
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8794
  cat >>confdefs.h <<_ACEOF
 
8795
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8796
_ACEOF
 
8797
 
 
8798
fi
 
8799
 
2794
8800
done
2795
8801
 
2796
8802
saved_LIBS="$LIBS"
2797
 
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2798
 
echo "configure:2799: checking for main in -lm" >&5
2799
 
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2800
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8803
 
 
8804
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
8805
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
 
8806
if test "${ac_cv_lib_m_main+set}" = set; then
 
8807
  echo $ECHO_N "(cached) $ECHO_C" >&6
2802
8808
else
2803
 
  ac_save_LIBS="$LIBS"
 
8809
  ac_check_lib_save_LIBS=$LIBS
2804
8810
LIBS="-lm  $LIBS"
2805
 
cat > conftest.$ac_ext <<EOF
2806
 
#line 2807 "configure"
2807
 
#include "confdefs.h"
2808
 
 
2809
 
int main() {
2810
 
main()
2811
 
; return 0; }
2812
 
EOF
2813
 
if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814
 
  rm -rf conftest*
2815
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
8811
cat >conftest.$ac_ext <<_ACEOF
 
8812
/* confdefs.h.  */
 
8813
_ACEOF
 
8814
cat confdefs.h >>conftest.$ac_ext
 
8815
cat >>conftest.$ac_ext <<_ACEOF
 
8816
/* end confdefs.h.  */
 
8817
 
 
8818
 
 
8819
int
 
8820
main ()
 
8821
{
 
8822
main ();
 
8823
  ;
 
8824
  return 0;
 
8825
}
 
8826
_ACEOF
 
8827
rm -f conftest.$ac_objext conftest$ac_exeext
 
8828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8829
  (eval $ac_link) 2>conftest.er1
 
8830
  ac_status=$?
 
8831
  grep -v '^ *+' conftest.er1 >conftest.err
 
8832
  rm -f conftest.er1
 
8833
  cat conftest.err >&5
 
8834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8835
  (exit $ac_status); } &&
 
8836
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8838
  (eval $ac_try) 2>&5
 
8839
  ac_status=$?
 
8840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8841
  (exit $ac_status); }; } &&
 
8842
         { ac_try='test -s conftest$ac_exeext'
 
8843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8844
  (eval $ac_try) 2>&5
 
8845
  ac_status=$?
 
8846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8847
  (exit $ac_status); }; }; then
 
8848
  ac_cv_lib_m_main=yes
2816
8849
else
2817
 
  echo "configure: failed program was:" >&5
2818
 
  cat conftest.$ac_ext >&5
2819
 
  rm -rf conftest*
2820
 
  eval "ac_cv_lib_$ac_lib_var=no"
2821
 
fi
2822
 
rm -f conftest*
2823
 
LIBS="$ac_save_LIBS"
 
8850
  echo "$as_me: failed program was:" >&5
 
8851
sed 's/^/| /' conftest.$ac_ext >&5
2824
8852
 
2825
 
fi
2826
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2827
 
  echo "$ac_t""yes" 1>&6
2828
 
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2829
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2830
 
  cat >> confdefs.h <<EOF
2831
 
#define $ac_tr_lib 1
2832
 
EOF
 
8853
ac_cv_lib_m_main=no
 
8854
fi
 
8855
rm -f conftest.err conftest.$ac_objext \
 
8856
      conftest$ac_exeext conftest.$ac_ext
 
8857
LIBS=$ac_check_lib_save_LIBS
 
8858
fi
 
8859
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
8860
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
 
8861
if test $ac_cv_lib_m_main = yes; then
 
8862
  cat >>confdefs.h <<_ACEOF
 
8863
#define HAVE_LIBM 1
 
8864
_ACEOF
2833
8865
 
2834
8866
  LIBS="-lm $LIBS"
2835
8867
 
2836
 
else
2837
 
  echo "$ac_t""no" 1>&6
2838
8868
fi
2839
8869
 
2840
 
for ac_func in statvfs symlink readlink geteuid getlogin getpwnam getpwuid rint
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
 
 
8875
 
 
8876
 
 
8877
 
 
8878
 
 
8879
 
 
8880
 
 
8881
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
2841
8882
do
2842
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2843
 
echo "configure:2844: checking for $ac_func" >&5
2844
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2845
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8883
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8884
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8885
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
8886
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
8887
  echo $ECHO_N "(cached) $ECHO_C" >&6
2846
8888
else
2847
 
  cat > conftest.$ac_ext <<EOF
2848
 
#line 2849 "configure"
2849
 
#include "confdefs.h"
 
8889
  cat >conftest.$ac_ext <<_ACEOF
 
8890
/* confdefs.h.  */
 
8891
_ACEOF
 
8892
cat confdefs.h >>conftest.$ac_ext
 
8893
cat >>conftest.$ac_ext <<_ACEOF
 
8894
/* end confdefs.h.  */
 
8895
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8896
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8897
#define $ac_func innocuous_$ac_func
 
8898
 
2850
8899
/* System header to define __stub macros and hopefully few prototypes,
2851
 
    which can conflict with char $ac_func(); below.  */
2852
 
#include <assert.h>
 
8900
    which can conflict with char $ac_func (); below.
 
8901
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8902
    <limits.h> exists even on freestanding compilers.  */
 
8903
 
 
8904
#ifdef __STDC__
 
8905
# include <limits.h>
 
8906
#else
 
8907
# include <assert.h>
 
8908
#endif
 
8909
 
 
8910
#undef $ac_func
 
8911
 
2853
8912
/* Override any gcc2 internal prototype to avoid an error.  */
 
8913
#ifdef __cplusplus
 
8914
extern "C"
 
8915
{
 
8916
#endif
2854
8917
/* We use char because int might match the return type of a gcc2
2855
 
    builtin and then its argument prototype would still apply.  */
2856
 
char $ac_func();
2857
 
 
2858
 
int main() {
2859
 
 
 
8918
   builtin and then its argument prototype would still apply.  */
 
8919
char $ac_func ();
2860
8920
/* The GNU C library defines this for functions which it implements
2861
8921
    to always fail with ENOSYS.  Some functions are actually named
2862
8922
    something starting with __ and the normal name is an alias.  */
2863
8923
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2864
8924
choke me
2865
8925
#else
2866
 
$ac_func();
2867
 
#endif
2868
 
 
2869
 
; return 0; }
2870
 
EOF
2871
 
if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2872
 
  rm -rf conftest*
2873
 
  eval "ac_cv_func_$ac_func=yes"
2874
 
else
2875
 
  echo "configure: failed program was:" >&5
2876
 
  cat conftest.$ac_ext >&5
2877
 
  rm -rf conftest*
2878
 
  eval "ac_cv_func_$ac_func=no"
2879
 
fi
2880
 
rm -f conftest*
2881
 
fi
2882
 
 
2883
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2884
 
  echo "$ac_t""yes" 1>&6
2885
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2886
 
  cat >> confdefs.h <<EOF
2887
 
#define $ac_tr_func 1
2888
 
EOF
2889
 
 
2890
 
else
2891
 
  echo "$ac_t""no" 1>&6
 
8926
char (*f) () = $ac_func;
 
8927
#endif
 
8928
#ifdef __cplusplus
 
8929
}
 
8930
#endif
 
8931
 
 
8932
int
 
8933
main ()
 
8934
{
 
8935
return f != $ac_func;
 
8936
  ;
 
8937
  return 0;
 
8938
}
 
8939
_ACEOF
 
8940
rm -f conftest.$ac_objext conftest$ac_exeext
 
8941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8942
  (eval $ac_link) 2>conftest.er1
 
8943
  ac_status=$?
 
8944
  grep -v '^ *+' conftest.er1 >conftest.err
 
8945
  rm -f conftest.er1
 
8946
  cat conftest.err >&5
 
8947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8948
  (exit $ac_status); } &&
 
8949
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8951
  (eval $ac_try) 2>&5
 
8952
  ac_status=$?
 
8953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8954
  (exit $ac_status); }; } &&
 
8955
         { ac_try='test -s conftest$ac_exeext'
 
8956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8957
  (eval $ac_try) 2>&5
 
8958
  ac_status=$?
 
8959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8960
  (exit $ac_status); }; }; then
 
8961
  eval "$as_ac_var=yes"
 
8962
else
 
8963
  echo "$as_me: failed program was:" >&5
 
8964
sed 's/^/| /' conftest.$ac_ext >&5
 
8965
 
 
8966
eval "$as_ac_var=no"
 
8967
fi
 
8968
rm -f conftest.err conftest.$ac_objext \
 
8969
      conftest$ac_exeext conftest.$ac_ext
 
8970
fi
 
8971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
8972
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
8973
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8974
  cat >>confdefs.h <<_ACEOF
 
8975
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8976
_ACEOF
 
8977
 
2892
8978
fi
2893
8979
done
2894
8980
 
2898
8984
# These two headers (functions) needed by Time.m
2899
8985
#--------------------------------------------------------------------
2900
8986
 
2901
 
for ac_hdr in time.h sys/time.h sys/rusage.h ucbinclude/sys/resource.h
 
8987
 
 
8988
 
 
8989
 
 
8990
 
 
8991
 
 
8992
for ac_header in time.h sys/time.h tzfile.h sys/rusage.h ucbinclude/sys/resource.h
2902
8993
do
2903
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2904
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2905
 
echo "configure:2906: checking for $ac_hdr" >&5
2906
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2907
 
  echo $ac_n "(cached) $ac_c" 1>&6
2908
 
else
2909
 
  cat > conftest.$ac_ext <<EOF
2910
 
#line 2911 "configure"
2911
 
#include "confdefs.h"
2912
 
#include <$ac_hdr>
2913
 
EOF
2914
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2915
 
{ (eval echo configure:2916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2916
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2917
 
if test -z "$ac_err"; then
2918
 
  rm -rf conftest*
2919
 
  eval "ac_cv_header_$ac_safe=yes"
2920
 
else
2921
 
  echo "$ac_err" >&5
2922
 
  echo "configure: failed program was:" >&5
2923
 
  cat conftest.$ac_ext >&5
2924
 
  rm -rf conftest*
2925
 
  eval "ac_cv_header_$ac_safe=no"
2926
 
fi
2927
 
rm -f conftest*
2928
 
fi
2929
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2930
 
  echo "$ac_t""yes" 1>&6
2931
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2932
 
  cat >> confdefs.h <<EOF
2933
 
#define $ac_tr_hdr 1
2934
 
EOF
2935
 
 
2936
 
else
2937
 
  echo "$ac_t""no" 1>&6
2938
 
fi
 
8994
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8995
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8996
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8997
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9000
fi
 
9001
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9002
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9003
else
 
9004
  # Is the header compilable?
 
9005
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9006
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9007
cat >conftest.$ac_ext <<_ACEOF
 
9008
/* confdefs.h.  */
 
9009
_ACEOF
 
9010
cat confdefs.h >>conftest.$ac_ext
 
9011
cat >>conftest.$ac_ext <<_ACEOF
 
9012
/* end confdefs.h.  */
 
9013
$ac_includes_default
 
9014
#include <$ac_header>
 
9015
_ACEOF
 
9016
rm -f conftest.$ac_objext
 
9017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9018
  (eval $ac_compile) 2>conftest.er1
 
9019
  ac_status=$?
 
9020
  grep -v '^ *+' conftest.er1 >conftest.err
 
9021
  rm -f conftest.er1
 
9022
  cat conftest.err >&5
 
9023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9024
  (exit $ac_status); } &&
 
9025
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9027
  (eval $ac_try) 2>&5
 
9028
  ac_status=$?
 
9029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9030
  (exit $ac_status); }; } &&
 
9031
         { ac_try='test -s conftest.$ac_objext'
 
9032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9033
  (eval $ac_try) 2>&5
 
9034
  ac_status=$?
 
9035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9036
  (exit $ac_status); }; }; then
 
9037
  ac_header_compiler=yes
 
9038
else
 
9039
  echo "$as_me: failed program was:" >&5
 
9040
sed 's/^/| /' conftest.$ac_ext >&5
 
9041
 
 
9042
ac_header_compiler=no
 
9043
fi
 
9044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9046
echo "${ECHO_T}$ac_header_compiler" >&6
 
9047
 
 
9048
# Is the header present?
 
9049
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9050
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9051
cat >conftest.$ac_ext <<_ACEOF
 
9052
/* confdefs.h.  */
 
9053
_ACEOF
 
9054
cat confdefs.h >>conftest.$ac_ext
 
9055
cat >>conftest.$ac_ext <<_ACEOF
 
9056
/* end confdefs.h.  */
 
9057
#include <$ac_header>
 
9058
_ACEOF
 
9059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9061
  ac_status=$?
 
9062
  grep -v '^ *+' conftest.er1 >conftest.err
 
9063
  rm -f conftest.er1
 
9064
  cat conftest.err >&5
 
9065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9066
  (exit $ac_status); } >/dev/null; then
 
9067
  if test -s conftest.err; then
 
9068
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9069
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9070
  else
 
9071
    ac_cpp_err=
 
9072
  fi
 
9073
else
 
9074
  ac_cpp_err=yes
 
9075
fi
 
9076
if test -z "$ac_cpp_err"; then
 
9077
  ac_header_preproc=yes
 
9078
else
 
9079
  echo "$as_me: failed program was:" >&5
 
9080
sed 's/^/| /' conftest.$ac_ext >&5
 
9081
 
 
9082
  ac_header_preproc=no
 
9083
fi
 
9084
rm -f conftest.err conftest.$ac_ext
 
9085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9086
echo "${ECHO_T}$ac_header_preproc" >&6
 
9087
 
 
9088
# So?  What about this header?
 
9089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9090
  yes:no: )
 
9091
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9092
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9093
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9094
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9095
    ac_header_preproc=yes
 
9096
    ;;
 
9097
  no:yes:* )
 
9098
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9099
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9100
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9101
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9102
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9103
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9104
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9105
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9106
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9107
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9108
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9109
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9110
    (
 
9111
      cat <<\_ASBOX
 
9112
## ------------------------------------------ ##
 
9113
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9114
## ------------------------------------------ ##
 
9115
_ASBOX
 
9116
    ) |
 
9117
      sed "s/^/$as_me: WARNING:     /" >&2
 
9118
    ;;
 
9119
esac
 
9120
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9122
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9124
else
 
9125
  eval "$as_ac_Header=\$ac_header_preproc"
 
9126
fi
 
9127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9129
 
 
9130
fi
 
9131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9132
  cat >>confdefs.h <<_ACEOF
 
9133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9134
_ACEOF
 
9135
 
 
9136
fi
 
9137
 
2939
9138
done
2940
9139
 
2941
 
for ac_func in time ctime
 
9140
 
 
9141
 
 
9142
 
 
9143
for ac_func in time ctime tzset
2942
9144
do
2943
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2944
 
echo "configure:2945: checking for $ac_func" >&5
2945
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2946
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9145
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9146
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9147
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9148
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9149
  echo $ECHO_N "(cached) $ECHO_C" >&6
2947
9150
else
2948
 
  cat > conftest.$ac_ext <<EOF
2949
 
#line 2950 "configure"
2950
 
#include "confdefs.h"
 
9151
  cat >conftest.$ac_ext <<_ACEOF
 
9152
/* confdefs.h.  */
 
9153
_ACEOF
 
9154
cat confdefs.h >>conftest.$ac_ext
 
9155
cat >>conftest.$ac_ext <<_ACEOF
 
9156
/* end confdefs.h.  */
 
9157
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9158
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9159
#define $ac_func innocuous_$ac_func
 
9160
 
2951
9161
/* System header to define __stub macros and hopefully few prototypes,
2952
 
    which can conflict with char $ac_func(); below.  */
2953
 
#include <assert.h>
 
9162
    which can conflict with char $ac_func (); below.
 
9163
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9164
    <limits.h> exists even on freestanding compilers.  */
 
9165
 
 
9166
#ifdef __STDC__
 
9167
# include <limits.h>
 
9168
#else
 
9169
# include <assert.h>
 
9170
#endif
 
9171
 
 
9172
#undef $ac_func
 
9173
 
2954
9174
/* Override any gcc2 internal prototype to avoid an error.  */
 
9175
#ifdef __cplusplus
 
9176
extern "C"
 
9177
{
 
9178
#endif
2955
9179
/* We use char because int might match the return type of a gcc2
2956
 
    builtin and then its argument prototype would still apply.  */
2957
 
char $ac_func();
2958
 
 
2959
 
int main() {
2960
 
 
 
9180
   builtin and then its argument prototype would still apply.  */
 
9181
char $ac_func ();
2961
9182
/* The GNU C library defines this for functions which it implements
2962
9183
    to always fail with ENOSYS.  Some functions are actually named
2963
9184
    something starting with __ and the normal name is an alias.  */
2964
9185
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2965
9186
choke me
2966
9187
#else
2967
 
$ac_func();
 
9188
char (*f) () = $ac_func;
 
9189
#endif
 
9190
#ifdef __cplusplus
 
9191
}
2968
9192
#endif
2969
9193
 
2970
 
; return 0; }
2971
 
EOF
2972
 
if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973
 
  rm -rf conftest*
2974
 
  eval "ac_cv_func_$ac_func=yes"
 
9194
int
 
9195
main ()
 
9196
{
 
9197
return f != $ac_func;
 
9198
  ;
 
9199
  return 0;
 
9200
}
 
9201
_ACEOF
 
9202
rm -f conftest.$ac_objext conftest$ac_exeext
 
9203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9204
  (eval $ac_link) 2>conftest.er1
 
9205
  ac_status=$?
 
9206
  grep -v '^ *+' conftest.er1 >conftest.err
 
9207
  rm -f conftest.er1
 
9208
  cat conftest.err >&5
 
9209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9210
  (exit $ac_status); } &&
 
9211
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9213
  (eval $ac_try) 2>&5
 
9214
  ac_status=$?
 
9215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9216
  (exit $ac_status); }; } &&
 
9217
         { ac_try='test -s conftest$ac_exeext'
 
9218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9219
  (eval $ac_try) 2>&5
 
9220
  ac_status=$?
 
9221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9222
  (exit $ac_status); }; }; then
 
9223
  eval "$as_ac_var=yes"
2975
9224
else
2976
 
  echo "configure: failed program was:" >&5
2977
 
  cat conftest.$ac_ext >&5
2978
 
  rm -rf conftest*
2979
 
  eval "ac_cv_func_$ac_func=no"
 
9225
  echo "$as_me: failed program was:" >&5
 
9226
sed 's/^/| /' conftest.$ac_ext >&5
 
9227
 
 
9228
eval "$as_ac_var=no"
 
9229
fi
 
9230
rm -f conftest.err conftest.$ac_objext \
 
9231
      conftest$ac_exeext conftest.$ac_ext
 
9232
fi
 
9233
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9234
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9235
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9236
  cat >>confdefs.h <<_ACEOF
 
9237
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9238
_ACEOF
 
9239
 
 
9240
fi
 
9241
done
 
9242
 
 
9243
 
 
9244
# Check if tzfile contains the proper definitions
 
9245
if test $ac_cv_header_tzfile_h = yes; then
 
9246
  cat >conftest.$ac_ext <<_ACEOF
 
9247
/* confdefs.h.  */
 
9248
_ACEOF
 
9249
cat confdefs.h >>conftest.$ac_ext
 
9250
cat >>conftest.$ac_ext <<_ACEOF
 
9251
/* end confdefs.h.  */
 
9252
#include <tzfile.h>
 
9253
 
 
9254
_ACEOF
 
9255
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9256
  $EGREP "tzhead" >/dev/null 2>&1; then
 
9257
 
 
9258
cat >>confdefs.h <<\_ACEOF
 
9259
#define HAVE_TZHEAD 1
 
9260
_ACEOF
 
9261
 
2980
9262
fi
2981
9263
rm -f conftest*
2982
 
fi
2983
 
 
2984
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2985
 
  echo "$ac_t""yes" 1>&6
2986
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2987
 
  cat >> confdefs.h <<EOF
2988
 
#define $ac_tr_func 1
2989
 
EOF
2990
 
 
2991
 
else
2992
 
  echo "$ac_t""no" 1>&6
2993
 
fi
2994
 
done
2995
 
 
 
9264
 
 
9265
fi
2996
9266
 
2997
9267
#--------------------------------------------------------------------
2998
9268
# These headers/functions needed by GSTcpPort.m
2999
9269
#--------------------------------------------------------------------
3000
 
for ac_hdr in sys/socket.h netinet/in.h
 
9270
 
 
9271
 
 
9272
for ac_header in sys/socket.h netinet/in.h
3001
9273
do
3002
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3003
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3004
 
echo "configure:3005: checking for $ac_hdr" >&5
3005
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3006
 
  echo $ac_n "(cached) $ac_c" 1>&6
3007
 
else
3008
 
  cat > conftest.$ac_ext <<EOF
3009
 
#line 3010 "configure"
3010
 
#include "confdefs.h"
3011
 
#include <$ac_hdr>
3012
 
EOF
3013
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3014
 
{ (eval echo configure:3015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3015
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3016
 
if test -z "$ac_err"; then
3017
 
  rm -rf conftest*
3018
 
  eval "ac_cv_header_$ac_safe=yes"
3019
 
else
3020
 
  echo "$ac_err" >&5
3021
 
  echo "configure: failed program was:" >&5
3022
 
  cat conftest.$ac_ext >&5
3023
 
  rm -rf conftest*
3024
 
  eval "ac_cv_header_$ac_safe=no"
3025
 
fi
3026
 
rm -f conftest*
3027
 
fi
3028
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3029
 
  echo "$ac_t""yes" 1>&6
3030
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3031
 
  cat >> confdefs.h <<EOF
3032
 
#define $ac_tr_hdr 1
3033
 
EOF
3034
 
 
3035
 
else
3036
 
  echo "$ac_t""no" 1>&6
3037
 
fi
 
9274
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9275
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9276
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9277
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9278
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9280
fi
 
9281
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9283
else
 
9284
  # Is the header compilable?
 
9285
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9286
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9287
cat >conftest.$ac_ext <<_ACEOF
 
9288
/* confdefs.h.  */
 
9289
_ACEOF
 
9290
cat confdefs.h >>conftest.$ac_ext
 
9291
cat >>conftest.$ac_ext <<_ACEOF
 
9292
/* end confdefs.h.  */
 
9293
$ac_includes_default
 
9294
#include <$ac_header>
 
9295
_ACEOF
 
9296
rm -f conftest.$ac_objext
 
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9298
  (eval $ac_compile) 2>conftest.er1
 
9299
  ac_status=$?
 
9300
  grep -v '^ *+' conftest.er1 >conftest.err
 
9301
  rm -f conftest.er1
 
9302
  cat conftest.err >&5
 
9303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9304
  (exit $ac_status); } &&
 
9305
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9307
  (eval $ac_try) 2>&5
 
9308
  ac_status=$?
 
9309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9310
  (exit $ac_status); }; } &&
 
9311
         { ac_try='test -s conftest.$ac_objext'
 
9312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9313
  (eval $ac_try) 2>&5
 
9314
  ac_status=$?
 
9315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9316
  (exit $ac_status); }; }; then
 
9317
  ac_header_compiler=yes
 
9318
else
 
9319
  echo "$as_me: failed program was:" >&5
 
9320
sed 's/^/| /' conftest.$ac_ext >&5
 
9321
 
 
9322
ac_header_compiler=no
 
9323
fi
 
9324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9326
echo "${ECHO_T}$ac_header_compiler" >&6
 
9327
 
 
9328
# Is the header present?
 
9329
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9330
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9331
cat >conftest.$ac_ext <<_ACEOF
 
9332
/* confdefs.h.  */
 
9333
_ACEOF
 
9334
cat confdefs.h >>conftest.$ac_ext
 
9335
cat >>conftest.$ac_ext <<_ACEOF
 
9336
/* end confdefs.h.  */
 
9337
#include <$ac_header>
 
9338
_ACEOF
 
9339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9340
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9341
  ac_status=$?
 
9342
  grep -v '^ *+' conftest.er1 >conftest.err
 
9343
  rm -f conftest.er1
 
9344
  cat conftest.err >&5
 
9345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9346
  (exit $ac_status); } >/dev/null; then
 
9347
  if test -s conftest.err; then
 
9348
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9349
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9350
  else
 
9351
    ac_cpp_err=
 
9352
  fi
 
9353
else
 
9354
  ac_cpp_err=yes
 
9355
fi
 
9356
if test -z "$ac_cpp_err"; then
 
9357
  ac_header_preproc=yes
 
9358
else
 
9359
  echo "$as_me: failed program was:" >&5
 
9360
sed 's/^/| /' conftest.$ac_ext >&5
 
9361
 
 
9362
  ac_header_preproc=no
 
9363
fi
 
9364
rm -f conftest.err conftest.$ac_ext
 
9365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9366
echo "${ECHO_T}$ac_header_preproc" >&6
 
9367
 
 
9368
# So?  What about this header?
 
9369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9370
  yes:no: )
 
9371
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9372
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9373
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9374
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9375
    ac_header_preproc=yes
 
9376
    ;;
 
9377
  no:yes:* )
 
9378
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9379
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9380
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9381
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9382
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9383
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9384
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9385
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9386
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9387
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9388
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9389
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9390
    (
 
9391
      cat <<\_ASBOX
 
9392
## ------------------------------------------ ##
 
9393
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9394
## ------------------------------------------ ##
 
9395
_ASBOX
 
9396
    ) |
 
9397
      sed "s/^/$as_me: WARNING:     /" >&2
 
9398
    ;;
 
9399
esac
 
9400
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9401
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9402
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9404
else
 
9405
  eval "$as_ac_Header=\$ac_header_preproc"
 
9406
fi
 
9407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9408
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9409
 
 
9410
fi
 
9411
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9412
  cat >>confdefs.h <<_ACEOF
 
9413
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9414
_ACEOF
 
9415
 
 
9416
fi
 
9417
 
3038
9418
done
3039
9419
 
3040
9420
 
3041
9421
#--------------------------------------------------------------------
3042
9422
# These headers/functions needed by NSLog.m
3043
9423
#--------------------------------------------------------------------
3044
 
for ac_hdr in syslog.h
 
9424
 
 
9425
for ac_header in syslog.h
3045
9426
do
3046
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3047
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3048
 
echo "configure:3049: checking for $ac_hdr" >&5
3049
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3050
 
  echo $ac_n "(cached) $ac_c" 1>&6
3051
 
else
3052
 
  cat > conftest.$ac_ext <<EOF
3053
 
#line 3054 "configure"
3054
 
#include "confdefs.h"
3055
 
#include <$ac_hdr>
3056
 
EOF
3057
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3058
 
{ (eval echo configure:3059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3059
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3060
 
if test -z "$ac_err"; then
3061
 
  rm -rf conftest*
3062
 
  eval "ac_cv_header_$ac_safe=yes"
3063
 
else
3064
 
  echo "$ac_err" >&5
3065
 
  echo "configure: failed program was:" >&5
3066
 
  cat conftest.$ac_ext >&5
3067
 
  rm -rf conftest*
3068
 
  eval "ac_cv_header_$ac_safe=no"
3069
 
fi
3070
 
rm -f conftest*
3071
 
fi
3072
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3073
 
  echo "$ac_t""yes" 1>&6
3074
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3075
 
  cat >> confdefs.h <<EOF
3076
 
#define $ac_tr_hdr 1
3077
 
EOF
3078
 
 
3079
 
else
3080
 
  echo "$ac_t""no" 1>&6
3081
 
fi
 
9427
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9428
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9429
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9430
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9431
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9433
fi
 
9434
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9435
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9436
else
 
9437
  # Is the header compilable?
 
9438
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9439
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9440
cat >conftest.$ac_ext <<_ACEOF
 
9441
/* confdefs.h.  */
 
9442
_ACEOF
 
9443
cat confdefs.h >>conftest.$ac_ext
 
9444
cat >>conftest.$ac_ext <<_ACEOF
 
9445
/* end confdefs.h.  */
 
9446
$ac_includes_default
 
9447
#include <$ac_header>
 
9448
_ACEOF
 
9449
rm -f conftest.$ac_objext
 
9450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9451
  (eval $ac_compile) 2>conftest.er1
 
9452
  ac_status=$?
 
9453
  grep -v '^ *+' conftest.er1 >conftest.err
 
9454
  rm -f conftest.er1
 
9455
  cat conftest.err >&5
 
9456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9457
  (exit $ac_status); } &&
 
9458
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9460
  (eval $ac_try) 2>&5
 
9461
  ac_status=$?
 
9462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9463
  (exit $ac_status); }; } &&
 
9464
         { ac_try='test -s conftest.$ac_objext'
 
9465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9466
  (eval $ac_try) 2>&5
 
9467
  ac_status=$?
 
9468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9469
  (exit $ac_status); }; }; then
 
9470
  ac_header_compiler=yes
 
9471
else
 
9472
  echo "$as_me: failed program was:" >&5
 
9473
sed 's/^/| /' conftest.$ac_ext >&5
 
9474
 
 
9475
ac_header_compiler=no
 
9476
fi
 
9477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9478
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9479
echo "${ECHO_T}$ac_header_compiler" >&6
 
9480
 
 
9481
# Is the header present?
 
9482
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9483
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9484
cat >conftest.$ac_ext <<_ACEOF
 
9485
/* confdefs.h.  */
 
9486
_ACEOF
 
9487
cat confdefs.h >>conftest.$ac_ext
 
9488
cat >>conftest.$ac_ext <<_ACEOF
 
9489
/* end confdefs.h.  */
 
9490
#include <$ac_header>
 
9491
_ACEOF
 
9492
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9493
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9494
  ac_status=$?
 
9495
  grep -v '^ *+' conftest.er1 >conftest.err
 
9496
  rm -f conftest.er1
 
9497
  cat conftest.err >&5
 
9498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9499
  (exit $ac_status); } >/dev/null; then
 
9500
  if test -s conftest.err; then
 
9501
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9502
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9503
  else
 
9504
    ac_cpp_err=
 
9505
  fi
 
9506
else
 
9507
  ac_cpp_err=yes
 
9508
fi
 
9509
if test -z "$ac_cpp_err"; then
 
9510
  ac_header_preproc=yes
 
9511
else
 
9512
  echo "$as_me: failed program was:" >&5
 
9513
sed 's/^/| /' conftest.$ac_ext >&5
 
9514
 
 
9515
  ac_header_preproc=no
 
9516
fi
 
9517
rm -f conftest.err conftest.$ac_ext
 
9518
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9519
echo "${ECHO_T}$ac_header_preproc" >&6
 
9520
 
 
9521
# So?  What about this header?
 
9522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9523
  yes:no: )
 
9524
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9525
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9526
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9527
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9528
    ac_header_preproc=yes
 
9529
    ;;
 
9530
  no:yes:* )
 
9531
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9532
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9533
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9534
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9535
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9536
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9537
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9538
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9539
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9540
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9541
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9542
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9543
    (
 
9544
      cat <<\_ASBOX
 
9545
## ------------------------------------------ ##
 
9546
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9547
## ------------------------------------------ ##
 
9548
_ASBOX
 
9549
    ) |
 
9550
      sed "s/^/$as_me: WARNING:     /" >&2
 
9551
    ;;
 
9552
esac
 
9553
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9557
else
 
9558
  eval "$as_ac_Header=\$ac_header_preproc"
 
9559
fi
 
9560
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9561
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9562
 
 
9563
fi
 
9564
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9565
  cat >>confdefs.h <<_ACEOF
 
9566
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9567
_ACEOF
 
9568
 
 
9569
fi
 
9570
 
3082
9571
done
3083
9572
 
 
9573
 
3084
9574
for ac_func in syslog
3085
9575
do
3086
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3087
 
echo "configure:3088: checking for $ac_func" >&5
3088
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3089
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9576
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9577
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9578
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9579
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9580
  echo $ECHO_N "(cached) $ECHO_C" >&6
3090
9581
else
3091
 
  cat > conftest.$ac_ext <<EOF
3092
 
#line 3093 "configure"
3093
 
#include "confdefs.h"
 
9582
  cat >conftest.$ac_ext <<_ACEOF
 
9583
/* confdefs.h.  */
 
9584
_ACEOF
 
9585
cat confdefs.h >>conftest.$ac_ext
 
9586
cat >>conftest.$ac_ext <<_ACEOF
 
9587
/* end confdefs.h.  */
 
9588
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9589
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9590
#define $ac_func innocuous_$ac_func
 
9591
 
3094
9592
/* System header to define __stub macros and hopefully few prototypes,
3095
 
    which can conflict with char $ac_func(); below.  */
3096
 
#include <assert.h>
 
9593
    which can conflict with char $ac_func (); below.
 
9594
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9595
    <limits.h> exists even on freestanding compilers.  */
 
9596
 
 
9597
#ifdef __STDC__
 
9598
# include <limits.h>
 
9599
#else
 
9600
# include <assert.h>
 
9601
#endif
 
9602
 
 
9603
#undef $ac_func
 
9604
 
3097
9605
/* Override any gcc2 internal prototype to avoid an error.  */
 
9606
#ifdef __cplusplus
 
9607
extern "C"
 
9608
{
 
9609
#endif
3098
9610
/* We use char because int might match the return type of a gcc2
3099
 
    builtin and then its argument prototype would still apply.  */
3100
 
char $ac_func();
3101
 
 
3102
 
int main() {
3103
 
 
 
9611
   builtin and then its argument prototype would still apply.  */
 
9612
char $ac_func ();
3104
9613
/* The GNU C library defines this for functions which it implements
3105
9614
    to always fail with ENOSYS.  Some functions are actually named
3106
9615
    something starting with __ and the normal name is an alias.  */
3107
9616
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3108
9617
choke me
3109
9618
#else
3110
 
$ac_func();
3111
 
#endif
3112
 
 
3113
 
; return 0; }
3114
 
EOF
3115
 
if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3116
 
  rm -rf conftest*
3117
 
  eval "ac_cv_func_$ac_func=yes"
3118
 
else
3119
 
  echo "configure: failed program was:" >&5
3120
 
  cat conftest.$ac_ext >&5
3121
 
  rm -rf conftest*
3122
 
  eval "ac_cv_func_$ac_func=no"
3123
 
fi
3124
 
rm -f conftest*
3125
 
fi
3126
 
 
3127
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3128
 
  echo "$ac_t""yes" 1>&6
3129
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3130
 
  cat >> confdefs.h <<EOF
3131
 
#define $ac_tr_func 1
3132
 
EOF
3133
 
 
3134
 
else
3135
 
  echo "$ac_t""no" 1>&6
 
9619
char (*f) () = $ac_func;
 
9620
#endif
 
9621
#ifdef __cplusplus
 
9622
}
 
9623
#endif
 
9624
 
 
9625
int
 
9626
main ()
 
9627
{
 
9628
return f != $ac_func;
 
9629
  ;
 
9630
  return 0;
 
9631
}
 
9632
_ACEOF
 
9633
rm -f conftest.$ac_objext conftest$ac_exeext
 
9634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9635
  (eval $ac_link) 2>conftest.er1
 
9636
  ac_status=$?
 
9637
  grep -v '^ *+' conftest.er1 >conftest.err
 
9638
  rm -f conftest.er1
 
9639
  cat conftest.err >&5
 
9640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9641
  (exit $ac_status); } &&
 
9642
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9644
  (eval $ac_try) 2>&5
 
9645
  ac_status=$?
 
9646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9647
  (exit $ac_status); }; } &&
 
9648
         { ac_try='test -s conftest$ac_exeext'
 
9649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9650
  (eval $ac_try) 2>&5
 
9651
  ac_status=$?
 
9652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9653
  (exit $ac_status); }; }; then
 
9654
  eval "$as_ac_var=yes"
 
9655
else
 
9656
  echo "$as_me: failed program was:" >&5
 
9657
sed 's/^/| /' conftest.$ac_ext >&5
 
9658
 
 
9659
eval "$as_ac_var=no"
 
9660
fi
 
9661
rm -f conftest.err conftest.$ac_objext \
 
9662
      conftest$ac_exeext conftest.$ac_ext
 
9663
fi
 
9664
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9665
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9666
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9667
  cat >>confdefs.h <<_ACEOF
 
9668
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9669
_ACEOF
 
9670
 
3136
9671
fi
3137
9672
done
3138
9673
 
3140
9675
#--------------------------------------------------------------------
3141
9676
# These headers/functions needed by NSRunLoop.m
3142
9677
#--------------------------------------------------------------------
3143
 
for ac_hdr in poll.h
 
9678
 
 
9679
for ac_header in poll.h
3144
9680
do
3145
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3146
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3147
 
echo "configure:3148: checking for $ac_hdr" >&5
3148
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3149
 
  echo $ac_n "(cached) $ac_c" 1>&6
3150
 
else
3151
 
  cat > conftest.$ac_ext <<EOF
3152
 
#line 3153 "configure"
3153
 
#include "confdefs.h"
3154
 
#include <$ac_hdr>
3155
 
EOF
3156
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3157
 
{ (eval echo configure:3158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3158
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3159
 
if test -z "$ac_err"; then
3160
 
  rm -rf conftest*
3161
 
  eval "ac_cv_header_$ac_safe=yes"
3162
 
else
3163
 
  echo "$ac_err" >&5
3164
 
  echo "configure: failed program was:" >&5
3165
 
  cat conftest.$ac_ext >&5
3166
 
  rm -rf conftest*
3167
 
  eval "ac_cv_header_$ac_safe=no"
3168
 
fi
3169
 
rm -f conftest*
3170
 
fi
3171
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3172
 
  echo "$ac_t""yes" 1>&6
3173
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3174
 
  cat >> confdefs.h <<EOF
3175
 
#define $ac_tr_hdr 1
3176
 
EOF
3177
 
 
3178
 
else
3179
 
  echo "$ac_t""no" 1>&6
3180
 
fi
 
9681
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9682
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9683
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9684
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9685
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9687
fi
 
9688
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9689
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9690
else
 
9691
  # Is the header compilable?
 
9692
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9693
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9694
cat >conftest.$ac_ext <<_ACEOF
 
9695
/* confdefs.h.  */
 
9696
_ACEOF
 
9697
cat confdefs.h >>conftest.$ac_ext
 
9698
cat >>conftest.$ac_ext <<_ACEOF
 
9699
/* end confdefs.h.  */
 
9700
$ac_includes_default
 
9701
#include <$ac_header>
 
9702
_ACEOF
 
9703
rm -f conftest.$ac_objext
 
9704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9705
  (eval $ac_compile) 2>conftest.er1
 
9706
  ac_status=$?
 
9707
  grep -v '^ *+' conftest.er1 >conftest.err
 
9708
  rm -f conftest.er1
 
9709
  cat conftest.err >&5
 
9710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9711
  (exit $ac_status); } &&
 
9712
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9714
  (eval $ac_try) 2>&5
 
9715
  ac_status=$?
 
9716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9717
  (exit $ac_status); }; } &&
 
9718
         { ac_try='test -s conftest.$ac_objext'
 
9719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9720
  (eval $ac_try) 2>&5
 
9721
  ac_status=$?
 
9722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9723
  (exit $ac_status); }; }; then
 
9724
  ac_header_compiler=yes
 
9725
else
 
9726
  echo "$as_me: failed program was:" >&5
 
9727
sed 's/^/| /' conftest.$ac_ext >&5
 
9728
 
 
9729
ac_header_compiler=no
 
9730
fi
 
9731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9732
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9733
echo "${ECHO_T}$ac_header_compiler" >&6
 
9734
 
 
9735
# Is the header present?
 
9736
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9737
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9738
cat >conftest.$ac_ext <<_ACEOF
 
9739
/* confdefs.h.  */
 
9740
_ACEOF
 
9741
cat confdefs.h >>conftest.$ac_ext
 
9742
cat >>conftest.$ac_ext <<_ACEOF
 
9743
/* end confdefs.h.  */
 
9744
#include <$ac_header>
 
9745
_ACEOF
 
9746
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9747
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9748
  ac_status=$?
 
9749
  grep -v '^ *+' conftest.er1 >conftest.err
 
9750
  rm -f conftest.er1
 
9751
  cat conftest.err >&5
 
9752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9753
  (exit $ac_status); } >/dev/null; then
 
9754
  if test -s conftest.err; then
 
9755
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9756
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9757
  else
 
9758
    ac_cpp_err=
 
9759
  fi
 
9760
else
 
9761
  ac_cpp_err=yes
 
9762
fi
 
9763
if test -z "$ac_cpp_err"; then
 
9764
  ac_header_preproc=yes
 
9765
else
 
9766
  echo "$as_me: failed program was:" >&5
 
9767
sed 's/^/| /' conftest.$ac_ext >&5
 
9768
 
 
9769
  ac_header_preproc=no
 
9770
fi
 
9771
rm -f conftest.err conftest.$ac_ext
 
9772
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9773
echo "${ECHO_T}$ac_header_preproc" >&6
 
9774
 
 
9775
# So?  What about this header?
 
9776
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9777
  yes:no: )
 
9778
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9779
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9780
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9781
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9782
    ac_header_preproc=yes
 
9783
    ;;
 
9784
  no:yes:* )
 
9785
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9786
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9787
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9788
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9789
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9790
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9791
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9792
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9793
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9794
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9795
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9796
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9797
    (
 
9798
      cat <<\_ASBOX
 
9799
## ------------------------------------------ ##
 
9800
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9801
## ------------------------------------------ ##
 
9802
_ASBOX
 
9803
    ) |
 
9804
      sed "s/^/$as_me: WARNING:     /" >&2
 
9805
    ;;
 
9806
esac
 
9807
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9809
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9811
else
 
9812
  eval "$as_ac_Header=\$ac_header_preproc"
 
9813
fi
 
9814
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9815
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9816
 
 
9817
fi
 
9818
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9819
  cat >>confdefs.h <<_ACEOF
 
9820
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9821
_ACEOF
 
9822
 
 
9823
fi
 
9824
 
3181
9825
done
3182
9826
 
 
9827
 
3183
9828
for ac_func in poll
3184
9829
do
3185
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3186
 
echo "configure:3187: checking for $ac_func" >&5
3187
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3188
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9830
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9831
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9832
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9833
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9834
  echo $ECHO_N "(cached) $ECHO_C" >&6
3189
9835
else
3190
 
  cat > conftest.$ac_ext <<EOF
3191
 
#line 3192 "configure"
3192
 
#include "confdefs.h"
 
9836
  cat >conftest.$ac_ext <<_ACEOF
 
9837
/* confdefs.h.  */
 
9838
_ACEOF
 
9839
cat confdefs.h >>conftest.$ac_ext
 
9840
cat >>conftest.$ac_ext <<_ACEOF
 
9841
/* end confdefs.h.  */
 
9842
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9843
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9844
#define $ac_func innocuous_$ac_func
 
9845
 
3193
9846
/* System header to define __stub macros and hopefully few prototypes,
3194
 
    which can conflict with char $ac_func(); below.  */
3195
 
#include <assert.h>
 
9847
    which can conflict with char $ac_func (); below.
 
9848
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9849
    <limits.h> exists even on freestanding compilers.  */
 
9850
 
 
9851
#ifdef __STDC__
 
9852
# include <limits.h>
 
9853
#else
 
9854
# include <assert.h>
 
9855
#endif
 
9856
 
 
9857
#undef $ac_func
 
9858
 
3196
9859
/* Override any gcc2 internal prototype to avoid an error.  */
 
9860
#ifdef __cplusplus
 
9861
extern "C"
 
9862
{
 
9863
#endif
3197
9864
/* We use char because int might match the return type of a gcc2
3198
 
    builtin and then its argument prototype would still apply.  */
3199
 
char $ac_func();
3200
 
 
3201
 
int main() {
3202
 
 
 
9865
   builtin and then its argument prototype would still apply.  */
 
9866
char $ac_func ();
3203
9867
/* The GNU C library defines this for functions which it implements
3204
9868
    to always fail with ENOSYS.  Some functions are actually named
3205
9869
    something starting with __ and the normal name is an alias.  */
3206
9870
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3207
9871
choke me
3208
9872
#else
3209
 
$ac_func();
3210
 
#endif
3211
 
 
3212
 
; return 0; }
3213
 
EOF
3214
 
if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215
 
  rm -rf conftest*
3216
 
  eval "ac_cv_func_$ac_func=yes"
3217
 
else
3218
 
  echo "configure: failed program was:" >&5
3219
 
  cat conftest.$ac_ext >&5
3220
 
  rm -rf conftest*
3221
 
  eval "ac_cv_func_$ac_func=no"
3222
 
fi
3223
 
rm -f conftest*
3224
 
fi
3225
 
 
3226
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3227
 
  echo "$ac_t""yes" 1>&6
3228
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3229
 
  cat >> confdefs.h <<EOF
3230
 
#define $ac_tr_func 1
3231
 
EOF
3232
 
 
3233
 
else
3234
 
  echo "$ac_t""no" 1>&6
 
9873
char (*f) () = $ac_func;
 
9874
#endif
 
9875
#ifdef __cplusplus
 
9876
}
 
9877
#endif
 
9878
 
 
9879
int
 
9880
main ()
 
9881
{
 
9882
return f != $ac_func;
 
9883
  ;
 
9884
  return 0;
 
9885
}
 
9886
_ACEOF
 
9887
rm -f conftest.$ac_objext conftest$ac_exeext
 
9888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9889
  (eval $ac_link) 2>conftest.er1
 
9890
  ac_status=$?
 
9891
  grep -v '^ *+' conftest.er1 >conftest.err
 
9892
  rm -f conftest.er1
 
9893
  cat conftest.err >&5
 
9894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9895
  (exit $ac_status); } &&
 
9896
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9898
  (eval $ac_try) 2>&5
 
9899
  ac_status=$?
 
9900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9901
  (exit $ac_status); }; } &&
 
9902
         { ac_try='test -s conftest$ac_exeext'
 
9903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9904
  (eval $ac_try) 2>&5
 
9905
  ac_status=$?
 
9906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9907
  (exit $ac_status); }; }; then
 
9908
  eval "$as_ac_var=yes"
 
9909
else
 
9910
  echo "$as_me: failed program was:" >&5
 
9911
sed 's/^/| /' conftest.$ac_ext >&5
 
9912
 
 
9913
eval "$as_ac_var=no"
 
9914
fi
 
9915
rm -f conftest.err conftest.$ac_objext \
 
9916
      conftest$ac_exeext conftest.$ac_ext
 
9917
fi
 
9918
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9919
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9920
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9921
  cat >>confdefs.h <<_ACEOF
 
9922
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9923
_ACEOF
 
9924
 
3235
9925
fi
3236
9926
done
3237
9927
 
3240
9930
#--------------------------------------------------------------------
3241
9931
# Check for pthread.h (only when building on Darwin machines)
3242
9932
#--------------------------------------------------------------------
3243
 
for ac_hdr in pthread.h
 
9933
 
 
9934
for ac_header in pthread.h
3244
9935
do
3245
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3246
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3247
 
echo "configure:3248: checking for $ac_hdr" >&5
3248
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3249
 
  echo $ac_n "(cached) $ac_c" 1>&6
3250
 
else
3251
 
  cat > conftest.$ac_ext <<EOF
3252
 
#line 3253 "configure"
3253
 
#include "confdefs.h"
3254
 
#include <$ac_hdr>
3255
 
EOF
3256
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257
 
{ (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259
 
if test -z "$ac_err"; then
3260
 
  rm -rf conftest*
3261
 
  eval "ac_cv_header_$ac_safe=yes"
3262
 
else
3263
 
  echo "$ac_err" >&5
3264
 
  echo "configure: failed program was:" >&5
3265
 
  cat conftest.$ac_ext >&5
3266
 
  rm -rf conftest*
3267
 
  eval "ac_cv_header_$ac_safe=no"
3268
 
fi
3269
 
rm -f conftest*
3270
 
fi
3271
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3272
 
  echo "$ac_t""yes" 1>&6
3273
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3274
 
  cat >> confdefs.h <<EOF
3275
 
#define $ac_tr_hdr 1
3276
 
EOF
3277
 
 
3278
 
else
3279
 
  echo "$ac_t""no" 1>&6
3280
 
fi
 
9936
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9937
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9938
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9939
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9940
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9942
fi
 
9943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9945
else
 
9946
  # Is the header compilable?
 
9947
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9948
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9949
cat >conftest.$ac_ext <<_ACEOF
 
9950
/* confdefs.h.  */
 
9951
_ACEOF
 
9952
cat confdefs.h >>conftest.$ac_ext
 
9953
cat >>conftest.$ac_ext <<_ACEOF
 
9954
/* end confdefs.h.  */
 
9955
$ac_includes_default
 
9956
#include <$ac_header>
 
9957
_ACEOF
 
9958
rm -f conftest.$ac_objext
 
9959
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9960
  (eval $ac_compile) 2>conftest.er1
 
9961
  ac_status=$?
 
9962
  grep -v '^ *+' conftest.er1 >conftest.err
 
9963
  rm -f conftest.er1
 
9964
  cat conftest.err >&5
 
9965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9966
  (exit $ac_status); } &&
 
9967
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9969
  (eval $ac_try) 2>&5
 
9970
  ac_status=$?
 
9971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9972
  (exit $ac_status); }; } &&
 
9973
         { ac_try='test -s conftest.$ac_objext'
 
9974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9975
  (eval $ac_try) 2>&5
 
9976
  ac_status=$?
 
9977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9978
  (exit $ac_status); }; }; then
 
9979
  ac_header_compiler=yes
 
9980
else
 
9981
  echo "$as_me: failed program was:" >&5
 
9982
sed 's/^/| /' conftest.$ac_ext >&5
 
9983
 
 
9984
ac_header_compiler=no
 
9985
fi
 
9986
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9987
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9988
echo "${ECHO_T}$ac_header_compiler" >&6
 
9989
 
 
9990
# Is the header present?
 
9991
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9992
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9993
cat >conftest.$ac_ext <<_ACEOF
 
9994
/* confdefs.h.  */
 
9995
_ACEOF
 
9996
cat confdefs.h >>conftest.$ac_ext
 
9997
cat >>conftest.$ac_ext <<_ACEOF
 
9998
/* end confdefs.h.  */
 
9999
#include <$ac_header>
 
10000
_ACEOF
 
10001
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10002
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10003
  ac_status=$?
 
10004
  grep -v '^ *+' conftest.er1 >conftest.err
 
10005
  rm -f conftest.er1
 
10006
  cat conftest.err >&5
 
10007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10008
  (exit $ac_status); } >/dev/null; then
 
10009
  if test -s conftest.err; then
 
10010
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10011
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10012
  else
 
10013
    ac_cpp_err=
 
10014
  fi
 
10015
else
 
10016
  ac_cpp_err=yes
 
10017
fi
 
10018
if test -z "$ac_cpp_err"; then
 
10019
  ac_header_preproc=yes
 
10020
else
 
10021
  echo "$as_me: failed program was:" >&5
 
10022
sed 's/^/| /' conftest.$ac_ext >&5
 
10023
 
 
10024
  ac_header_preproc=no
 
10025
fi
 
10026
rm -f conftest.err conftest.$ac_ext
 
10027
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10028
echo "${ECHO_T}$ac_header_preproc" >&6
 
10029
 
 
10030
# So?  What about this header?
 
10031
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10032
  yes:no: )
 
10033
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10034
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10035
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10036
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10037
    ac_header_preproc=yes
 
10038
    ;;
 
10039
  no:yes:* )
 
10040
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10041
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10042
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10043
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10044
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10045
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10046
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10047
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10048
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10049
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10050
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10051
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10052
    (
 
10053
      cat <<\_ASBOX
 
10054
## ------------------------------------------ ##
 
10055
## Report this to the AC_PACKAGE_NAME lists.  ##
 
10056
## ------------------------------------------ ##
 
10057
_ASBOX
 
10058
    ) |
 
10059
      sed "s/^/$as_me: WARNING:     /" >&2
 
10060
    ;;
 
10061
esac
 
10062
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10063
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10064
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10066
else
 
10067
  eval "$as_ac_Header=\$ac_header_preproc"
 
10068
fi
 
10069
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10070
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10071
 
 
10072
fi
 
10073
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10074
  cat >>confdefs.h <<_ACEOF
 
10075
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10076
_ACEOF
 
10077
 
 
10078
fi
 
10079
 
3281
10080
done
3282
10081
 
3283
10082
HAVE_PTHREAD_H=no
3289
10088
#--------------------------------------------------------------------
3290
10089
# This function needed by StdioStream.m
3291
10090
#--------------------------------------------------------------------
 
10091
 
 
10092
 
3292
10093
for ac_func in vsprintf vasprintf
3293
10094
do
3294
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3295
 
echo "configure:3296: checking for $ac_func" >&5
3296
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3297
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10095
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10096
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10097
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10098
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10099
  echo $ECHO_N "(cached) $ECHO_C" >&6
3298
10100
else
3299
 
  cat > conftest.$ac_ext <<EOF
3300
 
#line 3301 "configure"
3301
 
#include "confdefs.h"
 
10101
  cat >conftest.$ac_ext <<_ACEOF
 
10102
/* confdefs.h.  */
 
10103
_ACEOF
 
10104
cat confdefs.h >>conftest.$ac_ext
 
10105
cat >>conftest.$ac_ext <<_ACEOF
 
10106
/* end confdefs.h.  */
 
10107
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10108
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10109
#define $ac_func innocuous_$ac_func
 
10110
 
3302
10111
/* System header to define __stub macros and hopefully few prototypes,
3303
 
    which can conflict with char $ac_func(); below.  */
3304
 
#include <assert.h>
 
10112
    which can conflict with char $ac_func (); below.
 
10113
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10114
    <limits.h> exists even on freestanding compilers.  */
 
10115
 
 
10116
#ifdef __STDC__
 
10117
# include <limits.h>
 
10118
#else
 
10119
# include <assert.h>
 
10120
#endif
 
10121
 
 
10122
#undef $ac_func
 
10123
 
3305
10124
/* Override any gcc2 internal prototype to avoid an error.  */
 
10125
#ifdef __cplusplus
 
10126
extern "C"
 
10127
{
 
10128
#endif
3306
10129
/* We use char because int might match the return type of a gcc2
3307
 
    builtin and then its argument prototype would still apply.  */
3308
 
char $ac_func();
3309
 
 
3310
 
int main() {
3311
 
 
 
10130
   builtin and then its argument prototype would still apply.  */
 
10131
char $ac_func ();
3312
10132
/* The GNU C library defines this for functions which it implements
3313
10133
    to always fail with ENOSYS.  Some functions are actually named
3314
10134
    something starting with __ and the normal name is an alias.  */
3315
10135
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3316
10136
choke me
3317
10137
#else
3318
 
$ac_func();
3319
 
#endif
3320
 
 
3321
 
; return 0; }
3322
 
EOF
3323
 
if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324
 
  rm -rf conftest*
3325
 
  eval "ac_cv_func_$ac_func=yes"
3326
 
else
3327
 
  echo "configure: failed program was:" >&5
3328
 
  cat conftest.$ac_ext >&5
3329
 
  rm -rf conftest*
3330
 
  eval "ac_cv_func_$ac_func=no"
3331
 
fi
3332
 
rm -f conftest*
3333
 
fi
3334
 
 
3335
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3336
 
  echo "$ac_t""yes" 1>&6
3337
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3338
 
  cat >> confdefs.h <<EOF
3339
 
#define $ac_tr_func 1
3340
 
EOF
3341
 
 
3342
 
else
3343
 
  echo "$ac_t""no" 1>&6
 
10138
char (*f) () = $ac_func;
 
10139
#endif
 
10140
#ifdef __cplusplus
 
10141
}
 
10142
#endif
 
10143
 
 
10144
int
 
10145
main ()
 
10146
{
 
10147
return f != $ac_func;
 
10148
  ;
 
10149
  return 0;
 
10150
}
 
10151
_ACEOF
 
10152
rm -f conftest.$ac_objext conftest$ac_exeext
 
10153
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10154
  (eval $ac_link) 2>conftest.er1
 
10155
  ac_status=$?
 
10156
  grep -v '^ *+' conftest.er1 >conftest.err
 
10157
  rm -f conftest.er1
 
10158
  cat conftest.err >&5
 
10159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10160
  (exit $ac_status); } &&
 
10161
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10163
  (eval $ac_try) 2>&5
 
10164
  ac_status=$?
 
10165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10166
  (exit $ac_status); }; } &&
 
10167
         { ac_try='test -s conftest$ac_exeext'
 
10168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10169
  (eval $ac_try) 2>&5
 
10170
  ac_status=$?
 
10171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10172
  (exit $ac_status); }; }; then
 
10173
  eval "$as_ac_var=yes"
 
10174
else
 
10175
  echo "$as_me: failed program was:" >&5
 
10176
sed 's/^/| /' conftest.$ac_ext >&5
 
10177
 
 
10178
eval "$as_ac_var=no"
 
10179
fi
 
10180
rm -f conftest.err conftest.$ac_objext \
 
10181
      conftest$ac_exeext conftest.$ac_ext
 
10182
fi
 
10183
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10184
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10185
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10186
  cat >>confdefs.h <<_ACEOF
 
10187
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10188
_ACEOF
 
10189
 
3344
10190
fi
3345
10191
done
3346
10192
 
3348
10194
    if test "$cross_compiling" = yes; then
3349
10195
  VSPRINTF_RETURNS_LENGTH=1
3350
10196
else
3351
 
  cat > conftest.$ac_ext <<EOF
3352
 
#line 3353 "configure"
3353
 
#include "confdefs.h"
 
10197
  cat >conftest.$ac_ext <<_ACEOF
 
10198
/* confdefs.h.  */
 
10199
_ACEOF
 
10200
cat confdefs.h >>conftest.$ac_ext
 
10201
cat >>conftest.$ac_ext <<_ACEOF
 
10202
/* end confdefs.h.  */
3354
10203
#include "$srcdir/config/config.vsprintf.c"
3355
 
EOF
3356
 
if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3357
 
then
 
10204
_ACEOF
 
10205
rm -f conftest$ac_exeext
 
10206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10207
  (eval $ac_link) 2>&5
 
10208
  ac_status=$?
 
10209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10210
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10212
  (eval $ac_try) 2>&5
 
10213
  ac_status=$?
 
10214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10215
  (exit $ac_status); }; }; then
3358
10216
  VSPRINTF_RETURNS_LENGTH=1
3359
10217
else
3360
 
  echo "configure: failed program was:" >&5
3361
 
  cat conftest.$ac_ext >&5
3362
 
  rm -fr conftest*
3363
 
  VSPRINTF_RETURNS_LENGTH=0
3364
 
fi
3365
 
rm -fr conftest*
3366
 
fi
3367
 
 
3368
 
    cat >> confdefs.h <<EOF
 
10218
  echo "$as_me: program exited with status $ac_status" >&5
 
10219
echo "$as_me: failed program was:" >&5
 
10220
sed 's/^/| /' conftest.$ac_ext >&5
 
10221
 
 
10222
( exit $ac_status )
 
10223
VSPRINTF_RETURNS_LENGTH=0
 
10224
fi
 
10225
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10226
fi
 
10227
 
 
10228
cat >>confdefs.h <<_ACEOF
3369
10229
#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
3370
 
EOF
 
10230
_ACEOF
3371
10231
 
3372
10232
fi
3373
10233
if test $ac_cv_func_vasprintf = yes ; then
3374
10234
    if test "$cross_compiling" = yes; then
3375
10235
  VASPRINTF_RETURNS_LENGTH=1
3376
10236
else
3377
 
  cat > conftest.$ac_ext <<EOF
3378
 
#line 3379 "configure"
3379
 
#include "confdefs.h"
 
10237
  cat >conftest.$ac_ext <<_ACEOF
 
10238
/* confdefs.h.  */
 
10239
_ACEOF
 
10240
cat confdefs.h >>conftest.$ac_ext
 
10241
cat >>conftest.$ac_ext <<_ACEOF
 
10242
/* end confdefs.h.  */
3380
10243
#include "$srcdir/config/config.vasprintf.c"
3381
 
EOF
3382
 
if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3383
 
then
 
10244
_ACEOF
 
10245
rm -f conftest$ac_exeext
 
10246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10247
  (eval $ac_link) 2>&5
 
10248
  ac_status=$?
 
10249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10250
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10252
  (eval $ac_try) 2>&5
 
10253
  ac_status=$?
 
10254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10255
  (exit $ac_status); }; }; then
3384
10256
  VASPRINTF_RETURNS_LENGTH=1
3385
10257
else
3386
 
  echo "configure: failed program was:" >&5
3387
 
  cat conftest.$ac_ext >&5
3388
 
  rm -fr conftest*
3389
 
  VASPRINTF_RETURNS_LENGTH=0
3390
 
fi
3391
 
rm -fr conftest*
3392
 
fi
3393
 
 
3394
 
    cat >> confdefs.h <<EOF
 
10258
  echo "$as_me: program exited with status $ac_status" >&5
 
10259
echo "$as_me: failed program was:" >&5
 
10260
sed 's/^/| /' conftest.$ac_ext >&5
 
10261
 
 
10262
( exit $ac_status )
 
10263
VASPRINTF_RETURNS_LENGTH=0
 
10264
fi
 
10265
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10266
fi
 
10267
 
 
10268
cat >>confdefs.h <<_ACEOF
3395
10269
#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
3396
 
EOF
 
10270
_ACEOF
3397
10271
 
3398
10272
fi
3399
10273
 
3400
10274
#--------------------------------------------------------------------
3401
10275
# This function needed by NSFileManager.m
3402
10276
#--------------------------------------------------------------------
 
10277
 
3403
10278
for ac_func in getcwd
3404
10279
do
3405
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406
 
echo "configure:3407: checking for $ac_func" >&5
3407
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10280
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10281
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10282
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10283
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10284
  echo $ECHO_N "(cached) $ECHO_C" >&6
3409
10285
else
3410
 
  cat > conftest.$ac_ext <<EOF
3411
 
#line 3412 "configure"
3412
 
#include "confdefs.h"
 
10286
  cat >conftest.$ac_ext <<_ACEOF
 
10287
/* confdefs.h.  */
 
10288
_ACEOF
 
10289
cat confdefs.h >>conftest.$ac_ext
 
10290
cat >>conftest.$ac_ext <<_ACEOF
 
10291
/* end confdefs.h.  */
 
10292
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10293
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10294
#define $ac_func innocuous_$ac_func
 
10295
 
3413
10296
/* System header to define __stub macros and hopefully few prototypes,
3414
 
    which can conflict with char $ac_func(); below.  */
3415
 
#include <assert.h>
 
10297
    which can conflict with char $ac_func (); below.
 
10298
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10299
    <limits.h> exists even on freestanding compilers.  */
 
10300
 
 
10301
#ifdef __STDC__
 
10302
# include <limits.h>
 
10303
#else
 
10304
# include <assert.h>
 
10305
#endif
 
10306
 
 
10307
#undef $ac_func
 
10308
 
3416
10309
/* Override any gcc2 internal prototype to avoid an error.  */
 
10310
#ifdef __cplusplus
 
10311
extern "C"
 
10312
{
 
10313
#endif
3417
10314
/* We use char because int might match the return type of a gcc2
3418
 
    builtin and then its argument prototype would still apply.  */
3419
 
char $ac_func();
3420
 
 
3421
 
int main() {
3422
 
 
 
10315
   builtin and then its argument prototype would still apply.  */
 
10316
char $ac_func ();
3423
10317
/* The GNU C library defines this for functions which it implements
3424
10318
    to always fail with ENOSYS.  Some functions are actually named
3425
10319
    something starting with __ and the normal name is an alias.  */
3426
10320
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427
10321
choke me
3428
10322
#else
3429
 
$ac_func();
3430
 
#endif
3431
 
 
3432
 
; return 0; }
3433
 
EOF
3434
 
if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435
 
  rm -rf conftest*
3436
 
  eval "ac_cv_func_$ac_func=yes"
3437
 
else
3438
 
  echo "configure: failed program was:" >&5
3439
 
  cat conftest.$ac_ext >&5
3440
 
  rm -rf conftest*
3441
 
  eval "ac_cv_func_$ac_func=no"
3442
 
fi
3443
 
rm -f conftest*
3444
 
fi
3445
 
 
3446
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447
 
  echo "$ac_t""yes" 1>&6
3448
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449
 
  cat >> confdefs.h <<EOF
3450
 
#define $ac_tr_func 1
3451
 
EOF
3452
 
 
3453
 
else
3454
 
  echo "$ac_t""no" 1>&6
 
10323
char (*f) () = $ac_func;
 
10324
#endif
 
10325
#ifdef __cplusplus
 
10326
}
 
10327
#endif
 
10328
 
 
10329
int
 
10330
main ()
 
10331
{
 
10332
return f != $ac_func;
 
10333
  ;
 
10334
  return 0;
 
10335
}
 
10336
_ACEOF
 
10337
rm -f conftest.$ac_objext conftest$ac_exeext
 
10338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10339
  (eval $ac_link) 2>conftest.er1
 
10340
  ac_status=$?
 
10341
  grep -v '^ *+' conftest.er1 >conftest.err
 
10342
  rm -f conftest.er1
 
10343
  cat conftest.err >&5
 
10344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10345
  (exit $ac_status); } &&
 
10346
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10348
  (eval $ac_try) 2>&5
 
10349
  ac_status=$?
 
10350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10351
  (exit $ac_status); }; } &&
 
10352
         { ac_try='test -s conftest$ac_exeext'
 
10353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10354
  (eval $ac_try) 2>&5
 
10355
  ac_status=$?
 
10356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10357
  (exit $ac_status); }; }; then
 
10358
  eval "$as_ac_var=yes"
 
10359
else
 
10360
  echo "$as_me: failed program was:" >&5
 
10361
sed 's/^/| /' conftest.$ac_ext >&5
 
10362
 
 
10363
eval "$as_ac_var=no"
 
10364
fi
 
10365
rm -f conftest.err conftest.$ac_objext \
 
10366
      conftest$ac_exeext conftest.$ac_ext
 
10367
fi
 
10368
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10369
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10370
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10371
  cat >>confdefs.h <<_ACEOF
 
10372
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10373
_ACEOF
 
10374
 
3455
10375
fi
3456
10376
done
3457
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
3458
10383
ac_header_dirent=no
3459
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3460
 
do
3461
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3462
 
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3463
 
echo "configure:3464: checking for $ac_hdr that defines DIR" >&5
3464
 
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3465
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10384
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
10385
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
10386
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
10387
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
10388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10389
  echo $ECHO_N "(cached) $ECHO_C" >&6
3466
10390
else
3467
 
  cat > conftest.$ac_ext <<EOF
3468
 
#line 3469 "configure"
3469
 
#include "confdefs.h"
 
10391
  cat >conftest.$ac_ext <<_ACEOF
 
10392
/* confdefs.h.  */
 
10393
_ACEOF
 
10394
cat confdefs.h >>conftest.$ac_ext
 
10395
cat >>conftest.$ac_ext <<_ACEOF
 
10396
/* end confdefs.h.  */
3470
10397
#include <sys/types.h>
3471
10398
#include <$ac_hdr>
3472
 
int main() {
3473
 
DIR *dirp = 0;
3474
 
; return 0; }
3475
 
EOF
3476
 
if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477
 
  rm -rf conftest*
3478
 
  eval "ac_cv_header_dirent_$ac_safe=yes"
3479
 
else
3480
 
  echo "configure: failed program was:" >&5
3481
 
  cat conftest.$ac_ext >&5
3482
 
  rm -rf conftest*
3483
 
  eval "ac_cv_header_dirent_$ac_safe=no"
3484
 
fi
3485
 
rm -f conftest*
3486
 
fi
3487
 
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3488
 
  echo "$ac_t""yes" 1>&6
3489
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3490
 
  cat >> confdefs.h <<EOF
3491
 
#define $ac_tr_hdr 1
3492
 
EOF
3493
 
 ac_header_dirent=$ac_hdr; break
3494
 
else
3495
 
  echo "$ac_t""no" 1>&6
3496
 
fi
 
10399
 
 
10400
int
 
10401
main ()
 
10402
{
 
10403
if ((DIR *) 0)
 
10404
return 0;
 
10405
  ;
 
10406
  return 0;
 
10407
}
 
10408
_ACEOF
 
10409
rm -f conftest.$ac_objext
 
10410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10411
  (eval $ac_compile) 2>conftest.er1
 
10412
  ac_status=$?
 
10413
  grep -v '^ *+' conftest.er1 >conftest.err
 
10414
  rm -f conftest.er1
 
10415
  cat conftest.err >&5
 
10416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10417
  (exit $ac_status); } &&
 
10418
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10420
  (eval $ac_try) 2>&5
 
10421
  ac_status=$?
 
10422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10423
  (exit $ac_status); }; } &&
 
10424
         { ac_try='test -s conftest.$ac_objext'
 
10425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10426
  (eval $ac_try) 2>&5
 
10427
  ac_status=$?
 
10428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10429
  (exit $ac_status); }; }; then
 
10430
  eval "$as_ac_Header=yes"
 
10431
else
 
10432
  echo "$as_me: failed program was:" >&5
 
10433
sed 's/^/| /' conftest.$ac_ext >&5
 
10434
 
 
10435
eval "$as_ac_Header=no"
 
10436
fi
 
10437
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10438
fi
 
10439
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10440
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10441
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10442
  cat >>confdefs.h <<_ACEOF
 
10443
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
10444
_ACEOF
 
10445
 
 
10446
ac_header_dirent=$ac_hdr; break
 
10447
fi
 
10448
 
3497
10449
done
3498
10450
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3499
10451
if test $ac_header_dirent = dirent.h; then
3500
 
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3501
 
echo "configure:3502: checking for opendir in -ldir" >&5
3502
 
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3503
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3504
 
  echo $ac_n "(cached) $ac_c" 1>&6
3505
 
else
3506
 
  ac_save_LIBS="$LIBS"
3507
 
LIBS="-ldir  $LIBS"
3508
 
cat > conftest.$ac_ext <<EOF
3509
 
#line 3510 "configure"
3510
 
#include "confdefs.h"
3511
 
/* Override any gcc2 internal prototype to avoid an error.  */
3512
 
/* We use char because int might match the return type of a gcc2
3513
 
    builtin and then its argument prototype would still apply.  */
3514
 
char opendir();
3515
 
 
3516
 
int main() {
3517
 
opendir()
3518
 
; return 0; }
3519
 
EOF
3520
 
if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521
 
  rm -rf conftest*
3522
 
  eval "ac_cv_lib_$ac_lib_var=yes"
3523
 
else
3524
 
  echo "configure: failed program was:" >&5
3525
 
  cat conftest.$ac_ext >&5
3526
 
  rm -rf conftest*
3527
 
  eval "ac_cv_lib_$ac_lib_var=no"
3528
 
fi
3529
 
rm -f conftest*
3530
 
LIBS="$ac_save_LIBS"
3531
 
 
3532
 
fi
3533
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3534
 
  echo "$ac_t""yes" 1>&6
3535
 
  LIBS="$LIBS -ldir"
3536
 
else
3537
 
  echo "$ac_t""no" 1>&6
3538
 
fi
3539
 
 
3540
 
else
3541
 
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3542
 
echo "configure:3543: checking for opendir in -lx" >&5
3543
 
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3544
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3545
 
  echo $ac_n "(cached) $ac_c" 1>&6
3546
 
else
3547
 
  ac_save_LIBS="$LIBS"
3548
 
LIBS="-lx  $LIBS"
3549
 
cat > conftest.$ac_ext <<EOF
3550
 
#line 3551 "configure"
3551
 
#include "confdefs.h"
3552
 
/* Override any gcc2 internal prototype to avoid an error.  */
3553
 
/* We use char because int might match the return type of a gcc2
3554
 
    builtin and then its argument prototype would still apply.  */
3555
 
char opendir();
3556
 
 
3557
 
int main() {
3558
 
opendir()
3559
 
; return 0; }
3560
 
EOF
3561
 
if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562
 
  rm -rf conftest*
3563
 
  eval "ac_cv_lib_$ac_lib_var=yes"
3564
 
else
3565
 
  echo "configure: failed program was:" >&5
3566
 
  cat conftest.$ac_ext >&5
3567
 
  rm -rf conftest*
3568
 
  eval "ac_cv_lib_$ac_lib_var=no"
3569
 
fi
3570
 
rm -f conftest*
3571
 
LIBS="$ac_save_LIBS"
3572
 
 
3573
 
fi
3574
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3575
 
  echo "$ac_t""yes" 1>&6
3576
 
  LIBS="$LIBS -lx"
3577
 
else
3578
 
  echo "$ac_t""no" 1>&6
 
10452
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10453
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10454
if test "${ac_cv_search_opendir+set}" = set; then
 
10455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10456
else
 
10457
  ac_func_search_save_LIBS=$LIBS
 
10458
ac_cv_search_opendir=no
 
10459
cat >conftest.$ac_ext <<_ACEOF
 
10460
/* confdefs.h.  */
 
10461
_ACEOF
 
10462
cat confdefs.h >>conftest.$ac_ext
 
10463
cat >>conftest.$ac_ext <<_ACEOF
 
10464
/* end confdefs.h.  */
 
10465
 
 
10466
/* Override any gcc2 internal prototype to avoid an error.  */
 
10467
#ifdef __cplusplus
 
10468
extern "C"
 
10469
#endif
 
10470
/* We use char because int might match the return type of a gcc2
 
10471
   builtin and then its argument prototype would still apply.  */
 
10472
char opendir ();
 
10473
int
 
10474
main ()
 
10475
{
 
10476
opendir ();
 
10477
  ;
 
10478
  return 0;
 
10479
}
 
10480
_ACEOF
 
10481
rm -f conftest.$ac_objext conftest$ac_exeext
 
10482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10483
  (eval $ac_link) 2>conftest.er1
 
10484
  ac_status=$?
 
10485
  grep -v '^ *+' conftest.er1 >conftest.err
 
10486
  rm -f conftest.er1
 
10487
  cat conftest.err >&5
 
10488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10489
  (exit $ac_status); } &&
 
10490
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10492
  (eval $ac_try) 2>&5
 
10493
  ac_status=$?
 
10494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10495
  (exit $ac_status); }; } &&
 
10496
         { ac_try='test -s conftest$ac_exeext'
 
10497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10498
  (eval $ac_try) 2>&5
 
10499
  ac_status=$?
 
10500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10501
  (exit $ac_status); }; }; then
 
10502
  ac_cv_search_opendir="none required"
 
10503
else
 
10504
  echo "$as_me: failed program was:" >&5
 
10505
sed 's/^/| /' conftest.$ac_ext >&5
 
10506
 
 
10507
fi
 
10508
rm -f conftest.err conftest.$ac_objext \
 
10509
      conftest$ac_exeext conftest.$ac_ext
 
10510
if test "$ac_cv_search_opendir" = no; then
 
10511
  for ac_lib in dir; do
 
10512
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10513
    cat >conftest.$ac_ext <<_ACEOF
 
10514
/* confdefs.h.  */
 
10515
_ACEOF
 
10516
cat confdefs.h >>conftest.$ac_ext
 
10517
cat >>conftest.$ac_ext <<_ACEOF
 
10518
/* end confdefs.h.  */
 
10519
 
 
10520
/* Override any gcc2 internal prototype to avoid an error.  */
 
10521
#ifdef __cplusplus
 
10522
extern "C"
 
10523
#endif
 
10524
/* We use char because int might match the return type of a gcc2
 
10525
   builtin and then its argument prototype would still apply.  */
 
10526
char opendir ();
 
10527
int
 
10528
main ()
 
10529
{
 
10530
opendir ();
 
10531
  ;
 
10532
  return 0;
 
10533
}
 
10534
_ACEOF
 
10535
rm -f conftest.$ac_objext conftest$ac_exeext
 
10536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10537
  (eval $ac_link) 2>conftest.er1
 
10538
  ac_status=$?
 
10539
  grep -v '^ *+' conftest.er1 >conftest.err
 
10540
  rm -f conftest.er1
 
10541
  cat conftest.err >&5
 
10542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10543
  (exit $ac_status); } &&
 
10544
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10546
  (eval $ac_try) 2>&5
 
10547
  ac_status=$?
 
10548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10549
  (exit $ac_status); }; } &&
 
10550
         { ac_try='test -s conftest$ac_exeext'
 
10551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10552
  (eval $ac_try) 2>&5
 
10553
  ac_status=$?
 
10554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10555
  (exit $ac_status); }; }; then
 
10556
  ac_cv_search_opendir="-l$ac_lib"
 
10557
break
 
10558
else
 
10559
  echo "$as_me: failed program was:" >&5
 
10560
sed 's/^/| /' conftest.$ac_ext >&5
 
10561
 
 
10562
fi
 
10563
rm -f conftest.err conftest.$ac_objext \
 
10564
      conftest$ac_exeext conftest.$ac_ext
 
10565
  done
 
10566
fi
 
10567
LIBS=$ac_func_search_save_LIBS
 
10568
fi
 
10569
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
10570
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
10571
if test "$ac_cv_search_opendir" != no; then
 
10572
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
10573
 
 
10574
fi
 
10575
 
 
10576
else
 
10577
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10578
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10579
if test "${ac_cv_search_opendir+set}" = set; then
 
10580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10581
else
 
10582
  ac_func_search_save_LIBS=$LIBS
 
10583
ac_cv_search_opendir=no
 
10584
cat >conftest.$ac_ext <<_ACEOF
 
10585
/* confdefs.h.  */
 
10586
_ACEOF
 
10587
cat confdefs.h >>conftest.$ac_ext
 
10588
cat >>conftest.$ac_ext <<_ACEOF
 
10589
/* end confdefs.h.  */
 
10590
 
 
10591
/* Override any gcc2 internal prototype to avoid an error.  */
 
10592
#ifdef __cplusplus
 
10593
extern "C"
 
10594
#endif
 
10595
/* We use char because int might match the return type of a gcc2
 
10596
   builtin and then its argument prototype would still apply.  */
 
10597
char opendir ();
 
10598
int
 
10599
main ()
 
10600
{
 
10601
opendir ();
 
10602
  ;
 
10603
  return 0;
 
10604
}
 
10605
_ACEOF
 
10606
rm -f conftest.$ac_objext conftest$ac_exeext
 
10607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10608
  (eval $ac_link) 2>conftest.er1
 
10609
  ac_status=$?
 
10610
  grep -v '^ *+' conftest.er1 >conftest.err
 
10611
  rm -f conftest.er1
 
10612
  cat conftest.err >&5
 
10613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10614
  (exit $ac_status); } &&
 
10615
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
10621
         { ac_try='test -s conftest$ac_exeext'
 
10622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10623
  (eval $ac_try) 2>&5
 
10624
  ac_status=$?
 
10625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10626
  (exit $ac_status); }; }; then
 
10627
  ac_cv_search_opendir="none required"
 
10628
else
 
10629
  echo "$as_me: failed program was:" >&5
 
10630
sed 's/^/| /' conftest.$ac_ext >&5
 
10631
 
 
10632
fi
 
10633
rm -f conftest.err conftest.$ac_objext \
 
10634
      conftest$ac_exeext conftest.$ac_ext
 
10635
if test "$ac_cv_search_opendir" = no; then
 
10636
  for ac_lib in x; do
 
10637
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10638
    cat >conftest.$ac_ext <<_ACEOF
 
10639
/* confdefs.h.  */
 
10640
_ACEOF
 
10641
cat confdefs.h >>conftest.$ac_ext
 
10642
cat >>conftest.$ac_ext <<_ACEOF
 
10643
/* end confdefs.h.  */
 
10644
 
 
10645
/* Override any gcc2 internal prototype to avoid an error.  */
 
10646
#ifdef __cplusplus
 
10647
extern "C"
 
10648
#endif
 
10649
/* We use char because int might match the return type of a gcc2
 
10650
   builtin and then its argument prototype would still apply.  */
 
10651
char opendir ();
 
10652
int
 
10653
main ()
 
10654
{
 
10655
opendir ();
 
10656
  ;
 
10657
  return 0;
 
10658
}
 
10659
_ACEOF
 
10660
rm -f conftest.$ac_objext conftest$ac_exeext
 
10661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10662
  (eval $ac_link) 2>conftest.er1
 
10663
  ac_status=$?
 
10664
  grep -v '^ *+' conftest.er1 >conftest.err
 
10665
  rm -f conftest.er1
 
10666
  cat conftest.err >&5
 
10667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10668
  (exit $ac_status); } &&
 
10669
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10671
  (eval $ac_try) 2>&5
 
10672
  ac_status=$?
 
10673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10674
  (exit $ac_status); }; } &&
 
10675
         { ac_try='test -s conftest$ac_exeext'
 
10676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10677
  (eval $ac_try) 2>&5
 
10678
  ac_status=$?
 
10679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10680
  (exit $ac_status); }; }; then
 
10681
  ac_cv_search_opendir="-l$ac_lib"
 
10682
break
 
10683
else
 
10684
  echo "$as_me: failed program was:" >&5
 
10685
sed 's/^/| /' conftest.$ac_ext >&5
 
10686
 
 
10687
fi
 
10688
rm -f conftest.err conftest.$ac_objext \
 
10689
      conftest$ac_exeext conftest.$ac_ext
 
10690
  done
 
10691
fi
 
10692
LIBS=$ac_func_search_save_LIBS
 
10693
fi
 
10694
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
10695
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
10696
if test "$ac_cv_search_opendir" != no; then
 
10697
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
10698
 
3579
10699
fi
3580
10700
 
3581
10701
fi
3584
10704
#--------------------------------------------------------------------
3585
10705
# This function needed by gdomap.c
3586
10706
#--------------------------------------------------------------------
3587
 
for ac_hdr in getopt.h
 
10707
 
 
10708
for ac_header in getopt.h
3588
10709
do
3589
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3590
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3591
 
echo "configure:3592: checking for $ac_hdr" >&5
3592
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3593
 
  echo $ac_n "(cached) $ac_c" 1>&6
3594
 
else
3595
 
  cat > conftest.$ac_ext <<EOF
3596
 
#line 3597 "configure"
3597
 
#include "confdefs.h"
3598
 
#include <$ac_hdr>
3599
 
EOF
3600
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601
 
{ (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603
 
if test -z "$ac_err"; then
3604
 
  rm -rf conftest*
3605
 
  eval "ac_cv_header_$ac_safe=yes"
3606
 
else
3607
 
  echo "$ac_err" >&5
3608
 
  echo "configure: failed program was:" >&5
3609
 
  cat conftest.$ac_ext >&5
3610
 
  rm -rf conftest*
3611
 
  eval "ac_cv_header_$ac_safe=no"
3612
 
fi
3613
 
rm -f conftest*
3614
 
fi
3615
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3616
 
  echo "$ac_t""yes" 1>&6
3617
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3618
 
  cat >> confdefs.h <<EOF
3619
 
#define $ac_tr_hdr 1
3620
 
EOF
3621
 
 
3622
 
else
3623
 
  echo "$ac_t""no" 1>&6
3624
 
fi
 
10710
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10711
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10712
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10713
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10714
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10716
fi
 
10717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10719
else
 
10720
  # Is the header compilable?
 
10721
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10722
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10723
cat >conftest.$ac_ext <<_ACEOF
 
10724
/* confdefs.h.  */
 
10725
_ACEOF
 
10726
cat confdefs.h >>conftest.$ac_ext
 
10727
cat >>conftest.$ac_ext <<_ACEOF
 
10728
/* end confdefs.h.  */
 
10729
$ac_includes_default
 
10730
#include <$ac_header>
 
10731
_ACEOF
 
10732
rm -f conftest.$ac_objext
 
10733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10734
  (eval $ac_compile) 2>conftest.er1
 
10735
  ac_status=$?
 
10736
  grep -v '^ *+' conftest.er1 >conftest.err
 
10737
  rm -f conftest.er1
 
10738
  cat conftest.err >&5
 
10739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10740
  (exit $ac_status); } &&
 
10741
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10743
  (eval $ac_try) 2>&5
 
10744
  ac_status=$?
 
10745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10746
  (exit $ac_status); }; } &&
 
10747
         { ac_try='test -s conftest.$ac_objext'
 
10748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10749
  (eval $ac_try) 2>&5
 
10750
  ac_status=$?
 
10751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10752
  (exit $ac_status); }; }; then
 
10753
  ac_header_compiler=yes
 
10754
else
 
10755
  echo "$as_me: failed program was:" >&5
 
10756
sed 's/^/| /' conftest.$ac_ext >&5
 
10757
 
 
10758
ac_header_compiler=no
 
10759
fi
 
10760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10761
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10762
echo "${ECHO_T}$ac_header_compiler" >&6
 
10763
 
 
10764
# Is the header present?
 
10765
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10766
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10767
cat >conftest.$ac_ext <<_ACEOF
 
10768
/* confdefs.h.  */
 
10769
_ACEOF
 
10770
cat confdefs.h >>conftest.$ac_ext
 
10771
cat >>conftest.$ac_ext <<_ACEOF
 
10772
/* end confdefs.h.  */
 
10773
#include <$ac_header>
 
10774
_ACEOF
 
10775
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10776
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10777
  ac_status=$?
 
10778
  grep -v '^ *+' conftest.er1 >conftest.err
 
10779
  rm -f conftest.er1
 
10780
  cat conftest.err >&5
 
10781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10782
  (exit $ac_status); } >/dev/null; then
 
10783
  if test -s conftest.err; then
 
10784
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10785
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10786
  else
 
10787
    ac_cpp_err=
 
10788
  fi
 
10789
else
 
10790
  ac_cpp_err=yes
 
10791
fi
 
10792
if test -z "$ac_cpp_err"; then
 
10793
  ac_header_preproc=yes
 
10794
else
 
10795
  echo "$as_me: failed program was:" >&5
 
10796
sed 's/^/| /' conftest.$ac_ext >&5
 
10797
 
 
10798
  ac_header_preproc=no
 
10799
fi
 
10800
rm -f conftest.err conftest.$ac_ext
 
10801
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10802
echo "${ECHO_T}$ac_header_preproc" >&6
 
10803
 
 
10804
# So?  What about this header?
 
10805
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10806
  yes:no: )
 
10807
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10808
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10809
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10810
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10811
    ac_header_preproc=yes
 
10812
    ;;
 
10813
  no:yes:* )
 
10814
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10815
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10816
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10817
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10818
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10819
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10820
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10821
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10822
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10823
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10824
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10825
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10826
    (
 
10827
      cat <<\_ASBOX
 
10828
## ------------------------------------------ ##
 
10829
## Report this to the AC_PACKAGE_NAME lists.  ##
 
10830
## ------------------------------------------ ##
 
10831
_ASBOX
 
10832
    ) |
 
10833
      sed "s/^/$as_me: WARNING:     /" >&2
 
10834
    ;;
 
10835
esac
 
10836
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10837
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10838
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10840
else
 
10841
  eval "$as_ac_Header=\$ac_header_preproc"
 
10842
fi
 
10843
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10844
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10845
 
 
10846
fi
 
10847
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10848
  cat >>confdefs.h <<_ACEOF
 
10849
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10850
_ACEOF
 
10851
 
 
10852
fi
 
10853
 
3625
10854
done
3626
10855
 
3627
10856
 
3628
10857
#--------------------------------------------------------------------
3629
10858
# This function needed by NSPage.m
3630
10859
#--------------------------------------------------------------------
 
10860
 
3631
10861
for ac_func in valloc
3632
10862
do
3633
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3634
 
echo "configure:3635: checking for $ac_func" >&5
3635
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3636
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10863
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10864
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10865
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10866
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10867
  echo $ECHO_N "(cached) $ECHO_C" >&6
3637
10868
else
3638
 
  cat > conftest.$ac_ext <<EOF
3639
 
#line 3640 "configure"
3640
 
#include "confdefs.h"
 
10869
  cat >conftest.$ac_ext <<_ACEOF
 
10870
/* confdefs.h.  */
 
10871
_ACEOF
 
10872
cat confdefs.h >>conftest.$ac_ext
 
10873
cat >>conftest.$ac_ext <<_ACEOF
 
10874
/* end confdefs.h.  */
 
10875
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10876
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10877
#define $ac_func innocuous_$ac_func
 
10878
 
3641
10879
/* System header to define __stub macros and hopefully few prototypes,
3642
 
    which can conflict with char $ac_func(); below.  */
3643
 
#include <assert.h>
 
10880
    which can conflict with char $ac_func (); below.
 
10881
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10882
    <limits.h> exists even on freestanding compilers.  */
 
10883
 
 
10884
#ifdef __STDC__
 
10885
# include <limits.h>
 
10886
#else
 
10887
# include <assert.h>
 
10888
#endif
 
10889
 
 
10890
#undef $ac_func
 
10891
 
3644
10892
/* Override any gcc2 internal prototype to avoid an error.  */
 
10893
#ifdef __cplusplus
 
10894
extern "C"
 
10895
{
 
10896
#endif
3645
10897
/* We use char because int might match the return type of a gcc2
3646
 
    builtin and then its argument prototype would still apply.  */
3647
 
char $ac_func();
3648
 
 
3649
 
int main() {
3650
 
 
 
10898
   builtin and then its argument prototype would still apply.  */
 
10899
char $ac_func ();
3651
10900
/* The GNU C library defines this for functions which it implements
3652
10901
    to always fail with ENOSYS.  Some functions are actually named
3653
10902
    something starting with __ and the normal name is an alias.  */
3654
10903
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3655
10904
choke me
3656
10905
#else
3657
 
$ac_func();
3658
 
#endif
3659
 
 
3660
 
; return 0; }
3661
 
EOF
3662
 
if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663
 
  rm -rf conftest*
3664
 
  eval "ac_cv_func_$ac_func=yes"
3665
 
else
3666
 
  echo "configure: failed program was:" >&5
3667
 
  cat conftest.$ac_ext >&5
3668
 
  rm -rf conftest*
3669
 
  eval "ac_cv_func_$ac_func=no"
3670
 
fi
3671
 
rm -f conftest*
3672
 
fi
3673
 
 
3674
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3675
 
  echo "$ac_t""yes" 1>&6
3676
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3677
 
  cat >> confdefs.h <<EOF
3678
 
#define $ac_tr_func 1
3679
 
EOF
3680
 
 
3681
 
else
3682
 
  echo "$ac_t""no" 1>&6
 
10906
char (*f) () = $ac_func;
 
10907
#endif
 
10908
#ifdef __cplusplus
 
10909
}
 
10910
#endif
 
10911
 
 
10912
int
 
10913
main ()
 
10914
{
 
10915
return f != $ac_func;
 
10916
  ;
 
10917
  return 0;
 
10918
}
 
10919
_ACEOF
 
10920
rm -f conftest.$ac_objext conftest$ac_exeext
 
10921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10922
  (eval $ac_link) 2>conftest.er1
 
10923
  ac_status=$?
 
10924
  grep -v '^ *+' conftest.er1 >conftest.err
 
10925
  rm -f conftest.er1
 
10926
  cat conftest.err >&5
 
10927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10928
  (exit $ac_status); } &&
 
10929
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10931
  (eval $ac_try) 2>&5
 
10932
  ac_status=$?
 
10933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10934
  (exit $ac_status); }; } &&
 
10935
         { ac_try='test -s conftest$ac_exeext'
 
10936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10937
  (eval $ac_try) 2>&5
 
10938
  ac_status=$?
 
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10940
  (exit $ac_status); }; }; then
 
10941
  eval "$as_ac_var=yes"
 
10942
else
 
10943
  echo "$as_me: failed program was:" >&5
 
10944
sed 's/^/| /' conftest.$ac_ext >&5
 
10945
 
 
10946
eval "$as_ac_var=no"
 
10947
fi
 
10948
rm -f conftest.err conftest.$ac_objext \
 
10949
      conftest$ac_exeext conftest.$ac_ext
 
10950
fi
 
10951
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10952
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10953
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10954
  cat >>confdefs.h <<_ACEOF
 
10955
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10956
_ACEOF
 
10957
 
3683
10958
fi
3684
10959
done
3685
10960
 
3687
10962
#--------------------------------------------------------------------
3688
10963
# This function needed by Time.m
3689
10964
#--------------------------------------------------------------------
 
10965
 
3690
10966
for ac_func in times
3691
10967
do
3692
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3693
 
echo "configure:3694: checking for $ac_func" >&5
3694
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3695
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10968
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10969
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10970
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10971
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10972
  echo $ECHO_N "(cached) $ECHO_C" >&6
3696
10973
else
3697
 
  cat > conftest.$ac_ext <<EOF
3698
 
#line 3699 "configure"
3699
 
#include "confdefs.h"
 
10974
  cat >conftest.$ac_ext <<_ACEOF
 
10975
/* confdefs.h.  */
 
10976
_ACEOF
 
10977
cat confdefs.h >>conftest.$ac_ext
 
10978
cat >>conftest.$ac_ext <<_ACEOF
 
10979
/* end confdefs.h.  */
 
10980
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10981
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10982
#define $ac_func innocuous_$ac_func
 
10983
 
3700
10984
/* System header to define __stub macros and hopefully few prototypes,
3701
 
    which can conflict with char $ac_func(); below.  */
3702
 
#include <assert.h>
 
10985
    which can conflict with char $ac_func (); below.
 
10986
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10987
    <limits.h> exists even on freestanding compilers.  */
 
10988
 
 
10989
#ifdef __STDC__
 
10990
# include <limits.h>
 
10991
#else
 
10992
# include <assert.h>
 
10993
#endif
 
10994
 
 
10995
#undef $ac_func
 
10996
 
3703
10997
/* Override any gcc2 internal prototype to avoid an error.  */
 
10998
#ifdef __cplusplus
 
10999
extern "C"
 
11000
{
 
11001
#endif
3704
11002
/* We use char because int might match the return type of a gcc2
3705
 
    builtin and then its argument prototype would still apply.  */
3706
 
char $ac_func();
3707
 
 
3708
 
int main() {
3709
 
 
 
11003
   builtin and then its argument prototype would still apply.  */
 
11004
char $ac_func ();
3710
11005
/* The GNU C library defines this for functions which it implements
3711
11006
    to always fail with ENOSYS.  Some functions are actually named
3712
11007
    something starting with __ and the normal name is an alias.  */
3713
11008
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3714
11009
choke me
3715
11010
#else
3716
 
$ac_func();
3717
 
#endif
3718
 
 
3719
 
; return 0; }
3720
 
EOF
3721
 
if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722
 
  rm -rf conftest*
3723
 
  eval "ac_cv_func_$ac_func=yes"
3724
 
else
3725
 
  echo "configure: failed program was:" >&5
3726
 
  cat conftest.$ac_ext >&5
3727
 
  rm -rf conftest*
3728
 
  eval "ac_cv_func_$ac_func=no"
3729
 
fi
3730
 
rm -f conftest*
3731
 
fi
3732
 
 
3733
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3734
 
  echo "$ac_t""yes" 1>&6
3735
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3736
 
  cat >> confdefs.h <<EOF
3737
 
#define $ac_tr_func 1
3738
 
EOF
3739
 
 
3740
 
else
3741
 
  echo "$ac_t""no" 1>&6
 
11011
char (*f) () = $ac_func;
 
11012
#endif
 
11013
#ifdef __cplusplus
 
11014
}
 
11015
#endif
 
11016
 
 
11017
int
 
11018
main ()
 
11019
{
 
11020
return f != $ac_func;
 
11021
  ;
 
11022
  return 0;
 
11023
}
 
11024
_ACEOF
 
11025
rm -f conftest.$ac_objext conftest$ac_exeext
 
11026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11027
  (eval $ac_link) 2>conftest.er1
 
11028
  ac_status=$?
 
11029
  grep -v '^ *+' conftest.er1 >conftest.err
 
11030
  rm -f conftest.er1
 
11031
  cat conftest.err >&5
 
11032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11033
  (exit $ac_status); } &&
 
11034
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11036
  (eval $ac_try) 2>&5
 
11037
  ac_status=$?
 
11038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11039
  (exit $ac_status); }; } &&
 
11040
         { ac_try='test -s conftest$ac_exeext'
 
11041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11042
  (eval $ac_try) 2>&5
 
11043
  ac_status=$?
 
11044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11045
  (exit $ac_status); }; }; then
 
11046
  eval "$as_ac_var=yes"
 
11047
else
 
11048
  echo "$as_me: failed program was:" >&5
 
11049
sed 's/^/| /' conftest.$ac_ext >&5
 
11050
 
 
11051
eval "$as_ac_var=no"
 
11052
fi
 
11053
rm -f conftest.err conftest.$ac_objext \
 
11054
      conftest$ac_exeext conftest.$ac_ext
 
11055
fi
 
11056
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11057
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11058
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11059
  cat >>confdefs.h <<_ACEOF
 
11060
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11061
_ACEOF
 
11062
 
3742
11063
fi
3743
11064
done
3744
11065
 
3746
11067
#--------------------------------------------------------------------
3747
11068
# These functions needed by NSData.m
3748
11069
#--------------------------------------------------------------------
 
11070
 
3749
11071
for ac_func in mkstemp
3750
11072
do
3751
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752
 
echo "configure:3753: checking for $ac_func" >&5
3753
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3754
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11073
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11074
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11075
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11076
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11077
  echo $ECHO_N "(cached) $ECHO_C" >&6
3755
11078
else
3756
 
  cat > conftest.$ac_ext <<EOF
3757
 
#line 3758 "configure"
3758
 
#include "confdefs.h"
 
11079
  cat >conftest.$ac_ext <<_ACEOF
 
11080
/* confdefs.h.  */
 
11081
_ACEOF
 
11082
cat confdefs.h >>conftest.$ac_ext
 
11083
cat >>conftest.$ac_ext <<_ACEOF
 
11084
/* end confdefs.h.  */
 
11085
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11086
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11087
#define $ac_func innocuous_$ac_func
 
11088
 
3759
11089
/* System header to define __stub macros and hopefully few prototypes,
3760
 
    which can conflict with char $ac_func(); below.  */
3761
 
#include <assert.h>
 
11090
    which can conflict with char $ac_func (); below.
 
11091
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11092
    <limits.h> exists even on freestanding compilers.  */
 
11093
 
 
11094
#ifdef __STDC__
 
11095
# include <limits.h>
 
11096
#else
 
11097
# include <assert.h>
 
11098
#endif
 
11099
 
 
11100
#undef $ac_func
 
11101
 
3762
11102
/* Override any gcc2 internal prototype to avoid an error.  */
 
11103
#ifdef __cplusplus
 
11104
extern "C"
 
11105
{
 
11106
#endif
3763
11107
/* We use char because int might match the return type of a gcc2
3764
 
    builtin and then its argument prototype would still apply.  */
3765
 
char $ac_func();
3766
 
 
3767
 
int main() {
3768
 
 
 
11108
   builtin and then its argument prototype would still apply.  */
 
11109
char $ac_func ();
3769
11110
/* The GNU C library defines this for functions which it implements
3770
11111
    to always fail with ENOSYS.  Some functions are actually named
3771
11112
    something starting with __ and the normal name is an alias.  */
3772
11113
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773
11114
choke me
3774
11115
#else
3775
 
$ac_func();
3776
 
#endif
3777
 
 
3778
 
; return 0; }
3779
 
EOF
3780
 
if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781
 
  rm -rf conftest*
3782
 
  eval "ac_cv_func_$ac_func=yes"
3783
 
else
3784
 
  echo "configure: failed program was:" >&5
3785
 
  cat conftest.$ac_ext >&5
3786
 
  rm -rf conftest*
3787
 
  eval "ac_cv_func_$ac_func=no"
3788
 
fi
3789
 
rm -f conftest*
3790
 
fi
3791
 
 
3792
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3793
 
  echo "$ac_t""yes" 1>&6
3794
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3795
 
  cat >> confdefs.h <<EOF
3796
 
#define $ac_tr_func 1
3797
 
EOF
3798
 
 
3799
 
else
3800
 
  echo "$ac_t""no" 1>&6
 
11116
char (*f) () = $ac_func;
 
11117
#endif
 
11118
#ifdef __cplusplus
 
11119
}
 
11120
#endif
 
11121
 
 
11122
int
 
11123
main ()
 
11124
{
 
11125
return f != $ac_func;
 
11126
  ;
 
11127
  return 0;
 
11128
}
 
11129
_ACEOF
 
11130
rm -f conftest.$ac_objext conftest$ac_exeext
 
11131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11132
  (eval $ac_link) 2>conftest.er1
 
11133
  ac_status=$?
 
11134
  grep -v '^ *+' conftest.er1 >conftest.err
 
11135
  rm -f conftest.er1
 
11136
  cat conftest.err >&5
 
11137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11138
  (exit $ac_status); } &&
 
11139
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11141
  (eval $ac_try) 2>&5
 
11142
  ac_status=$?
 
11143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11144
  (exit $ac_status); }; } &&
 
11145
         { ac_try='test -s conftest$ac_exeext'
 
11146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11147
  (eval $ac_try) 2>&5
 
11148
  ac_status=$?
 
11149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11150
  (exit $ac_status); }; }; then
 
11151
  eval "$as_ac_var=yes"
 
11152
else
 
11153
  echo "$as_me: failed program was:" >&5
 
11154
sed 's/^/| /' conftest.$ac_ext >&5
 
11155
 
 
11156
eval "$as_ac_var=no"
 
11157
fi
 
11158
rm -f conftest.err conftest.$ac_objext \
 
11159
      conftest$ac_exeext conftest.$ac_ext
 
11160
fi
 
11161
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11162
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11163
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11164
  cat >>confdefs.h <<_ACEOF
 
11165
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11166
_ACEOF
 
11167
 
3801
11168
fi
3802
11169
done
3803
11170
 
 
11171
 
3804
11172
for ac_func in shmctl
3805
11173
do
3806
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3807
 
echo "configure:3808: checking for $ac_func" >&5
3808
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3809
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11174
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11175
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11177
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11178
  echo $ECHO_N "(cached) $ECHO_C" >&6
3810
11179
else
3811
 
  cat > conftest.$ac_ext <<EOF
3812
 
#line 3813 "configure"
3813
 
#include "confdefs.h"
 
11180
  cat >conftest.$ac_ext <<_ACEOF
 
11181
/* confdefs.h.  */
 
11182
_ACEOF
 
11183
cat confdefs.h >>conftest.$ac_ext
 
11184
cat >>conftest.$ac_ext <<_ACEOF
 
11185
/* end confdefs.h.  */
 
11186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11188
#define $ac_func innocuous_$ac_func
 
11189
 
3814
11190
/* System header to define __stub macros and hopefully few prototypes,
3815
 
    which can conflict with char $ac_func(); below.  */
3816
 
#include <assert.h>
 
11191
    which can conflict with char $ac_func (); below.
 
11192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11193
    <limits.h> exists even on freestanding compilers.  */
 
11194
 
 
11195
#ifdef __STDC__
 
11196
# include <limits.h>
 
11197
#else
 
11198
# include <assert.h>
 
11199
#endif
 
11200
 
 
11201
#undef $ac_func
 
11202
 
3817
11203
/* Override any gcc2 internal prototype to avoid an error.  */
 
11204
#ifdef __cplusplus
 
11205
extern "C"
 
11206
{
 
11207
#endif
3818
11208
/* We use char because int might match the return type of a gcc2
3819
 
    builtin and then its argument prototype would still apply.  */
3820
 
char $ac_func();
3821
 
 
3822
 
int main() {
3823
 
 
 
11209
   builtin and then its argument prototype would still apply.  */
 
11210
char $ac_func ();
3824
11211
/* The GNU C library defines this for functions which it implements
3825
11212
    to always fail with ENOSYS.  Some functions are actually named
3826
11213
    something starting with __ and the normal name is an alias.  */
3827
11214
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3828
11215
choke me
3829
11216
#else
3830
 
$ac_func();
3831
 
#endif
3832
 
 
3833
 
; return 0; }
3834
 
EOF
3835
 
if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836
 
  rm -rf conftest*
3837
 
  eval "ac_cv_func_$ac_func=yes"
3838
 
else
3839
 
  echo "configure: failed program was:" >&5
3840
 
  cat conftest.$ac_ext >&5
3841
 
  rm -rf conftest*
3842
 
  eval "ac_cv_func_$ac_func=no"
3843
 
fi
3844
 
rm -f conftest*
3845
 
fi
3846
 
 
3847
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3848
 
  echo "$ac_t""yes" 1>&6
3849
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3850
 
  cat >> confdefs.h <<EOF
3851
 
#define $ac_tr_func 1
3852
 
EOF
3853
 
 
3854
 
else
3855
 
  echo "$ac_t""no" 1>&6
 
11217
char (*f) () = $ac_func;
 
11218
#endif
 
11219
#ifdef __cplusplus
 
11220
}
 
11221
#endif
 
11222
 
 
11223
int
 
11224
main ()
 
11225
{
 
11226
return f != $ac_func;
 
11227
  ;
 
11228
  return 0;
 
11229
}
 
11230
_ACEOF
 
11231
rm -f conftest.$ac_objext conftest$ac_exeext
 
11232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11233
  (eval $ac_link) 2>conftest.er1
 
11234
  ac_status=$?
 
11235
  grep -v '^ *+' conftest.er1 >conftest.err
 
11236
  rm -f conftest.er1
 
11237
  cat conftest.err >&5
 
11238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11239
  (exit $ac_status); } &&
 
11240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11242
  (eval $ac_try) 2>&5
 
11243
  ac_status=$?
 
11244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11245
  (exit $ac_status); }; } &&
 
11246
         { ac_try='test -s conftest$ac_exeext'
 
11247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11248
  (eval $ac_try) 2>&5
 
11249
  ac_status=$?
 
11250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11251
  (exit $ac_status); }; }; then
 
11252
  eval "$as_ac_var=yes"
 
11253
else
 
11254
  echo "$as_me: failed program was:" >&5
 
11255
sed 's/^/| /' conftest.$ac_ext >&5
 
11256
 
 
11257
eval "$as_ac_var=no"
 
11258
fi
 
11259
rm -f conftest.err conftest.$ac_objext \
 
11260
      conftest$ac_exeext conftest.$ac_ext
 
11261
fi
 
11262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11263
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11264
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11265
  cat >>confdefs.h <<_ACEOF
 
11266
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11267
_ACEOF
 
11268
 
3856
11269
fi
3857
11270
done
3858
11271
 
 
11272
 
3859
11273
for ac_func in mmap
3860
11274
do
3861
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3862
 
echo "configure:3863: checking for $ac_func" >&5
3863
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3864
 
  echo $ac_n "(cached) $ac_c" 1>&6
3865
 
else
3866
 
  cat > conftest.$ac_ext <<EOF
3867
 
#line 3868 "configure"
3868
 
#include "confdefs.h"
3869
 
/* System header to define __stub macros and hopefully few prototypes,
3870
 
    which can conflict with char $ac_func(); below.  */
3871
 
#include <assert.h>
3872
 
/* Override any gcc2 internal prototype to avoid an error.  */
3873
 
/* We use char because int might match the return type of a gcc2
3874
 
    builtin and then its argument prototype would still apply.  */
3875
 
char $ac_func();
3876
 
 
3877
 
int main() {
3878
 
 
3879
 
/* The GNU C library defines this for functions which it implements
3880
 
    to always fail with ENOSYS.  Some functions are actually named
3881
 
    something starting with __ and the normal name is an alias.  */
3882
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883
 
choke me
3884
 
#else
3885
 
$ac_func();
3886
 
#endif
3887
 
 
3888
 
; return 0; }
3889
 
EOF
3890
 
if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891
 
  rm -rf conftest*
3892
 
  eval "ac_cv_func_$ac_func=yes"
3893
 
else
3894
 
  echo "configure: failed program was:" >&5
3895
 
  cat conftest.$ac_ext >&5
3896
 
  rm -rf conftest*
3897
 
  eval "ac_cv_func_$ac_func=no"
3898
 
fi
3899
 
rm -f conftest*
3900
 
fi
3901
 
 
3902
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3903
 
  echo "$ac_t""yes" 1>&6
3904
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3905
 
  cat >> confdefs.h <<EOF
3906
 
#define $ac_tr_func 1
3907
 
EOF
3908
 
 
3909
 
else
3910
 
  echo "$ac_t""no" 1>&6
3911
 
fi
3912
 
done
3913
 
 
3914
 
 
3915
 
#--------------------------------------------------------------------
3916
 
# These used by UnixFileHandle.m
3917
 
#--------------------------------------------------------------------
3918
 
for ac_func in inet_aton
3919
 
do
3920
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921
 
echo "configure:3922: checking for $ac_func" >&5
3922
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923
 
  echo $ac_n "(cached) $ac_c" 1>&6
3924
 
else
3925
 
  cat > conftest.$ac_ext <<EOF
3926
 
#line 3927 "configure"
3927
 
#include "confdefs.h"
3928
 
/* System header to define __stub macros and hopefully few prototypes,
3929
 
    which can conflict with char $ac_func(); below.  */
3930
 
#include <assert.h>
3931
 
/* Override any gcc2 internal prototype to avoid an error.  */
3932
 
/* We use char because int might match the return type of a gcc2
3933
 
    builtin and then its argument prototype would still apply.  */
3934
 
char $ac_func();
3935
 
 
3936
 
int main() {
3937
 
 
3938
 
/* The GNU C library defines this for functions which it implements
3939
 
    to always fail with ENOSYS.  Some functions are actually named
3940
 
    something starting with __ and the normal name is an alias.  */
3941
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3942
 
choke me
3943
 
#else
3944
 
$ac_func();
3945
 
#endif
3946
 
 
3947
 
; return 0; }
3948
 
EOF
3949
 
if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950
 
  rm -rf conftest*
3951
 
  eval "ac_cv_func_$ac_func=yes"
3952
 
else
3953
 
  echo "configure: failed program was:" >&5
3954
 
  cat conftest.$ac_ext >&5
3955
 
  rm -rf conftest*
3956
 
  eval "ac_cv_func_$ac_func=no"
3957
 
fi
3958
 
rm -f conftest*
3959
 
fi
3960
 
 
3961
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962
 
  echo "$ac_t""yes" 1>&6
3963
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964
 
  cat >> confdefs.h <<EOF
3965
 
#define $ac_tr_func 1
3966
 
EOF
3967
 
 
3968
 
else
3969
 
  echo "$ac_t""no" 1>&6
3970
 
fi
3971
 
done
3972
 
 
3973
 
HAVE_ZLIB=0
3974
 
for ac_hdr in zlib.h
3975
 
do
3976
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3977
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3978
 
echo "configure:3979: checking for $ac_hdr" >&5
3979
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3980
 
  echo $ac_n "(cached) $ac_c" 1>&6
3981
 
else
3982
 
  cat > conftest.$ac_ext <<EOF
3983
 
#line 3984 "configure"
3984
 
#include "confdefs.h"
3985
 
#include <$ac_hdr>
3986
 
EOF
3987
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3988
 
{ (eval echo configure:3989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3989
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3990
 
if test -z "$ac_err"; then
3991
 
  rm -rf conftest*
3992
 
  eval "ac_cv_header_$ac_safe=yes"
3993
 
else
3994
 
  echo "$ac_err" >&5
3995
 
  echo "configure: failed program was:" >&5
3996
 
  cat conftest.$ac_ext >&5
3997
 
  rm -rf conftest*
3998
 
  eval "ac_cv_header_$ac_safe=no"
3999
 
fi
4000
 
rm -f conftest*
4001
 
fi
4002
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4003
 
  echo "$ac_t""yes" 1>&6
4004
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4005
 
  cat >> confdefs.h <<EOF
4006
 
#define $ac_tr_hdr 1
4007
 
EOF
4008
 
 
4009
 
else
4010
 
  echo "$ac_t""no" 1>&6
4011
 
fi
4012
 
done
4013
 
 
4014
 
if test $ac_cv_header_zlib_h = yes; then
4015
 
  echo $ac_n "checking for gzseek in -lz""... $ac_c" 1>&6
4016
 
echo "configure:4017: checking for gzseek in -lz" >&5
4017
 
ac_lib_var=`echo z'_'gzseek | sed 'y%./+-%__p_%'`
4018
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019
 
  echo $ac_n "(cached) $ac_c" 1>&6
4020
 
else
4021
 
  ac_save_LIBS="$LIBS"
4022
 
LIBS="-lz  $LIBS"
4023
 
cat > conftest.$ac_ext <<EOF
4024
 
#line 4025 "configure"
4025
 
#include "confdefs.h"
4026
 
/* Override any gcc2 internal prototype to avoid an error.  */
4027
 
/* We use char because int might match the return type of a gcc2
4028
 
    builtin and then its argument prototype would still apply.  */
4029
 
char gzseek();
4030
 
 
4031
 
int main() {
4032
 
gzseek()
4033
 
; return 0; }
4034
 
EOF
4035
 
if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036
 
  rm -rf conftest*
4037
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4038
 
else
4039
 
  echo "configure: failed program was:" >&5
4040
 
  cat conftest.$ac_ext >&5
4041
 
  rm -rf conftest*
4042
 
  eval "ac_cv_lib_$ac_lib_var=no"
4043
 
fi
4044
 
rm -f conftest*
4045
 
LIBS="$ac_save_LIBS"
4046
 
 
4047
 
fi
4048
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049
 
  echo "$ac_t""yes" 1>&6
4050
 
  zlib_ok=yes
4051
 
else
4052
 
  echo "$ac_t""no" 1>&6
4053
 
zlib_ok=no
4054
 
fi
4055
 
 
4056
 
  if test "$zlib_ok" = yes; then
4057
 
    base_libs="$LIBS"
4058
 
    LIBS="$LIBS -lz"
4059
 
    HAVE_ZLIB=1
4060
 
  fi
4061
 
fi
 
11275
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11276
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11277
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11278
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11280
else
 
11281
  cat >conftest.$ac_ext <<_ACEOF
 
11282
/* confdefs.h.  */
 
11283
_ACEOF
 
11284
cat confdefs.h >>conftest.$ac_ext
 
11285
cat >>conftest.$ac_ext <<_ACEOF
 
11286
/* end confdefs.h.  */
 
11287
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11288
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11289
#define $ac_func innocuous_$ac_func
 
11290
 
 
11291
/* System header to define __stub macros and hopefully few prototypes,
 
11292
    which can conflict with char $ac_func (); below.
 
11293
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11294
    <limits.h> exists even on freestanding compilers.  */
 
11295
 
 
11296
#ifdef __STDC__
 
11297
# include <limits.h>
 
11298
#else
 
11299
# include <assert.h>
 
11300
#endif
 
11301
 
 
11302
#undef $ac_func
 
11303
 
 
11304
/* Override any gcc2 internal prototype to avoid an error.  */
 
11305
#ifdef __cplusplus
 
11306
extern "C"
 
11307
{
 
11308
#endif
 
11309
/* We use char because int might match the return type of a gcc2
 
11310
   builtin and then its argument prototype would still apply.  */
 
11311
char $ac_func ();
 
11312
/* The GNU C library defines this for functions which it implements
 
11313
    to always fail with ENOSYS.  Some functions are actually named
 
11314
    something starting with __ and the normal name is an alias.  */
 
11315
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11316
choke me
 
11317
#else
 
11318
char (*f) () = $ac_func;
 
11319
#endif
 
11320
#ifdef __cplusplus
 
11321
}
 
11322
#endif
 
11323
 
 
11324
int
 
11325
main ()
 
11326
{
 
11327
return f != $ac_func;
 
11328
  ;
 
11329
  return 0;
 
11330
}
 
11331
_ACEOF
 
11332
rm -f conftest.$ac_objext conftest$ac_exeext
 
11333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11334
  (eval $ac_link) 2>conftest.er1
 
11335
  ac_status=$?
 
11336
  grep -v '^ *+' conftest.er1 >conftest.err
 
11337
  rm -f conftest.er1
 
11338
  cat conftest.err >&5
 
11339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11340
  (exit $ac_status); } &&
 
11341
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11343
  (eval $ac_try) 2>&5
 
11344
  ac_status=$?
 
11345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11346
  (exit $ac_status); }; } &&
 
11347
         { ac_try='test -s conftest$ac_exeext'
 
11348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11349
  (eval $ac_try) 2>&5
 
11350
  ac_status=$?
 
11351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11352
  (exit $ac_status); }; }; then
 
11353
  eval "$as_ac_var=yes"
 
11354
else
 
11355
  echo "$as_me: failed program was:" >&5
 
11356
sed 's/^/| /' conftest.$ac_ext >&5
 
11357
 
 
11358
eval "$as_ac_var=no"
 
11359
fi
 
11360
rm -f conftest.err conftest.$ac_objext \
 
11361
      conftest$ac_exeext conftest.$ac_ext
 
11362
fi
 
11363
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11364
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11365
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11366
  cat >>confdefs.h <<_ACEOF
 
11367
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11368
_ACEOF
 
11369
 
 
11370
fi
 
11371
done
4062
11372
 
4063
11373
 
4064
11374
#--------------------------------------------------------------------
4065
11375
# These functions needed by NSTask.m
4066
11376
#--------------------------------------------------------------------
 
11377
 
 
11378
 
 
11379
 
4067
11380
for ac_func in killpg setpgrp setpgid
4068
11381
do
4069
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4070
 
echo "configure:4071: checking for $ac_func" >&5
4071
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4072
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11382
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11383
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11384
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11385
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11386
  echo $ECHO_N "(cached) $ECHO_C" >&6
4073
11387
else
4074
 
  cat > conftest.$ac_ext <<EOF
4075
 
#line 4076 "configure"
4076
 
#include "confdefs.h"
 
11388
  cat >conftest.$ac_ext <<_ACEOF
 
11389
/* confdefs.h.  */
 
11390
_ACEOF
 
11391
cat confdefs.h >>conftest.$ac_ext
 
11392
cat >>conftest.$ac_ext <<_ACEOF
 
11393
/* end confdefs.h.  */
 
11394
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11395
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11396
#define $ac_func innocuous_$ac_func
 
11397
 
4077
11398
/* System header to define __stub macros and hopefully few prototypes,
4078
 
    which can conflict with char $ac_func(); below.  */
4079
 
#include <assert.h>
 
11399
    which can conflict with char $ac_func (); below.
 
11400
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11401
    <limits.h> exists even on freestanding compilers.  */
 
11402
 
 
11403
#ifdef __STDC__
 
11404
# include <limits.h>
 
11405
#else
 
11406
# include <assert.h>
 
11407
#endif
 
11408
 
 
11409
#undef $ac_func
 
11410
 
4080
11411
/* Override any gcc2 internal prototype to avoid an error.  */
 
11412
#ifdef __cplusplus
 
11413
extern "C"
 
11414
{
 
11415
#endif
4081
11416
/* We use char because int might match the return type of a gcc2
4082
 
    builtin and then its argument prototype would still apply.  */
4083
 
char $ac_func();
4084
 
 
4085
 
int main() {
4086
 
 
 
11417
   builtin and then its argument prototype would still apply.  */
 
11418
char $ac_func ();
4087
11419
/* The GNU C library defines this for functions which it implements
4088
11420
    to always fail with ENOSYS.  Some functions are actually named
4089
11421
    something starting with __ and the normal name is an alias.  */
4090
11422
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4091
11423
choke me
4092
11424
#else
4093
 
$ac_func();
4094
 
#endif
4095
 
 
4096
 
; return 0; }
4097
 
EOF
4098
 
if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099
 
  rm -rf conftest*
4100
 
  eval "ac_cv_func_$ac_func=yes"
4101
 
else
4102
 
  echo "configure: failed program was:" >&5
4103
 
  cat conftest.$ac_ext >&5
4104
 
  rm -rf conftest*
4105
 
  eval "ac_cv_func_$ac_func=no"
4106
 
fi
4107
 
rm -f conftest*
4108
 
fi
4109
 
 
4110
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4111
 
  echo "$ac_t""yes" 1>&6
4112
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4113
 
  cat >> confdefs.h <<EOF
4114
 
#define $ac_tr_func 1
4115
 
EOF
4116
 
 
4117
 
else
4118
 
  echo "$ac_t""no" 1>&6
 
11425
char (*f) () = $ac_func;
 
11426
#endif
 
11427
#ifdef __cplusplus
 
11428
}
 
11429
#endif
 
11430
 
 
11431
int
 
11432
main ()
 
11433
{
 
11434
return f != $ac_func;
 
11435
  ;
 
11436
  return 0;
 
11437
}
 
11438
_ACEOF
 
11439
rm -f conftest.$ac_objext conftest$ac_exeext
 
11440
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11441
  (eval $ac_link) 2>conftest.er1
 
11442
  ac_status=$?
 
11443
  grep -v '^ *+' conftest.er1 >conftest.err
 
11444
  rm -f conftest.er1
 
11445
  cat conftest.err >&5
 
11446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11447
  (exit $ac_status); } &&
 
11448
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11450
  (eval $ac_try) 2>&5
 
11451
  ac_status=$?
 
11452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11453
  (exit $ac_status); }; } &&
 
11454
         { ac_try='test -s conftest$ac_exeext'
 
11455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11456
  (eval $ac_try) 2>&5
 
11457
  ac_status=$?
 
11458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11459
  (exit $ac_status); }; }; then
 
11460
  eval "$as_ac_var=yes"
 
11461
else
 
11462
  echo "$as_me: failed program was:" >&5
 
11463
sed 's/^/| /' conftest.$ac_ext >&5
 
11464
 
 
11465
eval "$as_ac_var=no"
 
11466
fi
 
11467
rm -f conftest.err conftest.$ac_objext \
 
11468
      conftest$ac_exeext conftest.$ac_ext
 
11469
fi
 
11470
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11471
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11472
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11473
  cat >>confdefs.h <<_ACEOF
 
11474
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11475
_ACEOF
 
11476
 
4119
11477
fi
4120
11478
done
4121
11479
 
4122
 
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4123
 
echo "configure:4124: checking whether setpgrp takes no argument" >&5
4124
 
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4125
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11480
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
11481
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
 
11482
if test "${ac_cv_func_setpgrp_void+set}" = set; then
 
11483
  echo $ECHO_N "(cached) $ECHO_C" >&6
4126
11484
else
4127
11485
  if test "$cross_compiling" = yes; then
4128
 
  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
 
11486
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
 
11487
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
 
11488
   { (exit 1); exit 1; }; }
4129
11489
else
4130
 
  cat > conftest.$ac_ext <<EOF
4131
 
#line 4132 "configure"
4132
 
#include "confdefs.h"
4133
 
 
4134
 
#ifdef HAVE_UNISTD_H
4135
 
#include <unistd.h>
 
11490
  cat >conftest.$ac_ext <<_ACEOF
 
11491
/* confdefs.h.  */
 
11492
_ACEOF
 
11493
cat confdefs.h >>conftest.$ac_ext
 
11494
cat >>conftest.$ac_ext <<_ACEOF
 
11495
/* end confdefs.h.  */
 
11496
#if HAVE_UNISTD_H
 
11497
# include <unistd.h>
4136
11498
#endif
4137
11499
 
4138
 
/*
4139
 
 * If this system has a BSD-style setpgrp, which takes arguments, exit
4140
 
 * successfully.
4141
 
 */
4142
 
main()
 
11500
int
 
11501
main ()
4143
11502
{
4144
 
    if (setpgrp(1,1) == -1)
4145
 
        exit(0);
4146
 
    else
4147
 
        exit(1);
 
11503
/* If this system has a BSD-style setpgrp which takes arguments,
 
11504
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
 
11505
  exit successfully. */
 
11506
  exit (setpgrp (1,1) == -1 ? 0 : 1);
 
11507
  ;
 
11508
  return 0;
4148
11509
}
4149
 
 
4150
 
EOF
4151
 
if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4152
 
then
 
11510
_ACEOF
 
11511
rm -f conftest$ac_exeext
 
11512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11513
  (eval $ac_link) 2>&5
 
11514
  ac_status=$?
 
11515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11516
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11518
  (eval $ac_try) 2>&5
 
11519
  ac_status=$?
 
11520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11521
  (exit $ac_status); }; }; then
4153
11522
  ac_cv_func_setpgrp_void=no
4154
11523
else
4155
 
  echo "configure: failed program was:" >&5
4156
 
  cat conftest.$ac_ext >&5
4157
 
  rm -fr conftest*
4158
 
  ac_cv_func_setpgrp_void=yes
4159
 
fi
4160
 
rm -fr conftest*
4161
 
fi
4162
 
 
4163
 
 
4164
 
fi
4165
 
 
4166
 
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
 
11524
  echo "$as_me: program exited with status $ac_status" >&5
 
11525
echo "$as_me: failed program was:" >&5
 
11526
sed 's/^/| /' conftest.$ac_ext >&5
 
11527
 
 
11528
( exit $ac_status )
 
11529
ac_cv_func_setpgrp_void=yes
 
11530
fi
 
11531
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11532
fi
 
11533
fi
 
11534
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
11535
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
4167
11536
if test $ac_cv_func_setpgrp_void = yes; then
4168
 
  cat >> confdefs.h <<\EOF
 
11537
 
 
11538
cat >>confdefs.h <<\_ACEOF
4169
11539
#define SETPGRP_VOID 1
4170
 
EOF
 
11540
_ACEOF
4171
11541
 
4172
11542
fi
4173
11543
 
4178
11548
    HAVE_PTS_STREAM_MODULES=1
4179
11549
    ;;
4180
11550
esac
4181
 
cat >> confdefs.h <<EOF
 
11551
 
 
11552
cat >>confdefs.h <<_ACEOF
4182
11553
#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
4183
 
EOF
4184
 
 
4185
 
 
4186
 
 
4187
 
for ac_hdr in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/param.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
4188
 
do
4189
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191
 
echo "configure:4192: checking for $ac_hdr" >&5
4192
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193
 
  echo $ac_n "(cached) $ac_c" 1>&6
4194
 
else
4195
 
  cat > conftest.$ac_ext <<EOF
4196
 
#line 4197 "configure"
4197
 
#include "confdefs.h"
4198
 
#include <$ac_hdr>
4199
 
EOF
4200
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201
 
{ (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203
 
if test -z "$ac_err"; then
4204
 
  rm -rf conftest*
4205
 
  eval "ac_cv_header_$ac_safe=yes"
4206
 
else
4207
 
  echo "$ac_err" >&5
4208
 
  echo "configure: failed program was:" >&5
4209
 
  cat conftest.$ac_ext >&5
4210
 
  rm -rf conftest*
4211
 
  eval "ac_cv_header_$ac_safe=no"
4212
 
fi
4213
 
rm -f conftest*
4214
 
fi
4215
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216
 
  echo "$ac_t""yes" 1>&6
4217
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218
 
  cat >> confdefs.h <<EOF
4219
 
#define $ac_tr_hdr 1
4220
 
EOF
4221
 
 
4222
 
else
4223
 
  echo "$ac_t""no" 1>&6
4224
 
fi
4225
 
done
4226
 
 
4227
 
 
4228
 
#--------------------------------------------------------------------
4229
 
# This function needed by NSThread.m
4230
 
#--------------------------------------------------------------------
4231
 
for ac_func in usleep
4232
 
do
4233
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4234
 
echo "configure:4235: checking for $ac_func" >&5
4235
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4236
 
  echo $ac_n "(cached) $ac_c" 1>&6
4237
 
else
4238
 
  cat > conftest.$ac_ext <<EOF
4239
 
#line 4240 "configure"
4240
 
#include "confdefs.h"
4241
 
/* System header to define __stub macros and hopefully few prototypes,
4242
 
    which can conflict with char $ac_func(); below.  */
4243
 
#include <assert.h>
4244
 
/* Override any gcc2 internal prototype to avoid an error.  */
4245
 
/* We use char because int might match the return type of a gcc2
4246
 
    builtin and then its argument prototype would still apply.  */
4247
 
char $ac_func();
4248
 
 
4249
 
int main() {
4250
 
 
4251
 
/* The GNU C library defines this for functions which it implements
4252
 
    to always fail with ENOSYS.  Some functions are actually named
4253
 
    something starting with __ and the normal name is an alias.  */
4254
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4255
 
choke me
4256
 
#else
4257
 
$ac_func();
4258
 
#endif
4259
 
 
4260
 
; return 0; }
4261
 
EOF
4262
 
if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263
 
  rm -rf conftest*
4264
 
  eval "ac_cv_func_$ac_func=yes"
4265
 
else
4266
 
  echo "configure: failed program was:" >&5
4267
 
  cat conftest.$ac_ext >&5
4268
 
  rm -rf conftest*
4269
 
  eval "ac_cv_func_$ac_func=no"
4270
 
fi
4271
 
rm -f conftest*
4272
 
fi
4273
 
 
4274
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4275
 
  echo "$ac_t""yes" 1>&6
4276
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4277
 
  cat >> confdefs.h <<EOF
4278
 
#define $ac_tr_func 1
4279
 
EOF
4280
 
 
4281
 
else
4282
 
  echo "$ac_t""no" 1>&6
 
11554
_ACEOF
 
11555
 
 
11556
 
 
11557
 
 
11558
 
 
11559
 
 
11560
 
 
11561
 
 
11562
 
 
11563
 
 
11564
 
 
11565
 
 
11566
 
 
11567
 
 
11568
 
 
11569
 
 
11570
 
 
11571
 
 
11572
 
 
11573
 
 
11574
for ac_header in libc.h limits.h malloc.h memory.h string.h signal.h    sys/signal.h sys/wait.h sys/file.h sys/fcntl.h  sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
 
11575
do
 
11576
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11577
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11578
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11579
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11580
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11582
fi
 
11583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11584
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11585
else
 
11586
  # Is the header compilable?
 
11587
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11588
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11589
cat >conftest.$ac_ext <<_ACEOF
 
11590
/* confdefs.h.  */
 
11591
_ACEOF
 
11592
cat confdefs.h >>conftest.$ac_ext
 
11593
cat >>conftest.$ac_ext <<_ACEOF
 
11594
/* end confdefs.h.  */
 
11595
$ac_includes_default
 
11596
#include <$ac_header>
 
11597
_ACEOF
 
11598
rm -f conftest.$ac_objext
 
11599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11600
  (eval $ac_compile) 2>conftest.er1
 
11601
  ac_status=$?
 
11602
  grep -v '^ *+' conftest.er1 >conftest.err
 
11603
  rm -f conftest.er1
 
11604
  cat conftest.err >&5
 
11605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11606
  (exit $ac_status); } &&
 
11607
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11609
  (eval $ac_try) 2>&5
 
11610
  ac_status=$?
 
11611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11612
  (exit $ac_status); }; } &&
 
11613
         { ac_try='test -s conftest.$ac_objext'
 
11614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11615
  (eval $ac_try) 2>&5
 
11616
  ac_status=$?
 
11617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11618
  (exit $ac_status); }; }; then
 
11619
  ac_header_compiler=yes
 
11620
else
 
11621
  echo "$as_me: failed program was:" >&5
 
11622
sed 's/^/| /' conftest.$ac_ext >&5
 
11623
 
 
11624
ac_header_compiler=no
 
11625
fi
 
11626
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11627
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11628
echo "${ECHO_T}$ac_header_compiler" >&6
 
11629
 
 
11630
# Is the header present?
 
11631
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11632
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11633
cat >conftest.$ac_ext <<_ACEOF
 
11634
/* confdefs.h.  */
 
11635
_ACEOF
 
11636
cat confdefs.h >>conftest.$ac_ext
 
11637
cat >>conftest.$ac_ext <<_ACEOF
 
11638
/* end confdefs.h.  */
 
11639
#include <$ac_header>
 
11640
_ACEOF
 
11641
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11642
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11643
  ac_status=$?
 
11644
  grep -v '^ *+' conftest.er1 >conftest.err
 
11645
  rm -f conftest.er1
 
11646
  cat conftest.err >&5
 
11647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11648
  (exit $ac_status); } >/dev/null; then
 
11649
  if test -s conftest.err; then
 
11650
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11651
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11652
  else
 
11653
    ac_cpp_err=
 
11654
  fi
 
11655
else
 
11656
  ac_cpp_err=yes
 
11657
fi
 
11658
if test -z "$ac_cpp_err"; then
 
11659
  ac_header_preproc=yes
 
11660
else
 
11661
  echo "$as_me: failed program was:" >&5
 
11662
sed 's/^/| /' conftest.$ac_ext >&5
 
11663
 
 
11664
  ac_header_preproc=no
 
11665
fi
 
11666
rm -f conftest.err conftest.$ac_ext
 
11667
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11668
echo "${ECHO_T}$ac_header_preproc" >&6
 
11669
 
 
11670
# So?  What about this header?
 
11671
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11672
  yes:no: )
 
11673
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11674
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11675
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11676
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11677
    ac_header_preproc=yes
 
11678
    ;;
 
11679
  no:yes:* )
 
11680
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11681
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11682
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11683
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11684
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11685
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11686
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11687
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11688
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11689
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11690
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11691
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11692
    (
 
11693
      cat <<\_ASBOX
 
11694
## ------------------------------------------ ##
 
11695
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11696
## ------------------------------------------ ##
 
11697
_ASBOX
 
11698
    ) |
 
11699
      sed "s/^/$as_me: WARNING:     /" >&2
 
11700
    ;;
 
11701
esac
 
11702
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11703
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11704
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11706
else
 
11707
  eval "$as_ac_Header=\$ac_header_preproc"
 
11708
fi
 
11709
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11710
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11711
 
 
11712
fi
 
11713
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11714
  cat >>confdefs.h <<_ACEOF
 
11715
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11716
_ACEOF
 
11717
 
 
11718
fi
 
11719
 
 
11720
done
 
11721
 
 
11722
 
 
11723
if test $ac_cv_header_stdint_h = yes; then
 
11724
INCLUDE_STDINT="#include <stdint.h>"
 
11725
DEFINE_UINT8_T=""
 
11726
DEFINE_INT32_T=""
 
11727
DEFINE_INT64_T=""
 
11728
else
 
11729
INCLUDE_STDINT=""
 
11730
DEFINE_UINT8_T="#define uint8_t gsu8"
 
11731
DEFINE_INT32_T="#define int32_t gss32"
 
11732
DEFINE_INT64_T="#define int64_t gss64"
 
11733
fi
 
11734
 
 
11735
 
 
11736
 
 
11737
 
 
11738
 
 
11739
#--------------------------------------------------------------------
 
11740
# These used by GSFileHandle.m and distributed objects
 
11741
#--------------------------------------------------------------------
 
11742
 
 
11743
 
 
11744
for ac_func in inet_aton sigaction
 
11745
do
 
11746
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11747
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11748
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11749
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11751
else
 
11752
  cat >conftest.$ac_ext <<_ACEOF
 
11753
/* confdefs.h.  */
 
11754
_ACEOF
 
11755
cat confdefs.h >>conftest.$ac_ext
 
11756
cat >>conftest.$ac_ext <<_ACEOF
 
11757
/* end confdefs.h.  */
 
11758
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11759
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11760
#define $ac_func innocuous_$ac_func
 
11761
 
 
11762
/* System header to define __stub macros and hopefully few prototypes,
 
11763
    which can conflict with char $ac_func (); below.
 
11764
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11765
    <limits.h> exists even on freestanding compilers.  */
 
11766
 
 
11767
#ifdef __STDC__
 
11768
# include <limits.h>
 
11769
#else
 
11770
# include <assert.h>
 
11771
#endif
 
11772
 
 
11773
#undef $ac_func
 
11774
 
 
11775
/* Override any gcc2 internal prototype to avoid an error.  */
 
11776
#ifdef __cplusplus
 
11777
extern "C"
 
11778
{
 
11779
#endif
 
11780
/* We use char because int might match the return type of a gcc2
 
11781
   builtin and then its argument prototype would still apply.  */
 
11782
char $ac_func ();
 
11783
/* The GNU C library defines this for functions which it implements
 
11784
    to always fail with ENOSYS.  Some functions are actually named
 
11785
    something starting with __ and the normal name is an alias.  */
 
11786
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11787
choke me
 
11788
#else
 
11789
char (*f) () = $ac_func;
 
11790
#endif
 
11791
#ifdef __cplusplus
 
11792
}
 
11793
#endif
 
11794
 
 
11795
int
 
11796
main ()
 
11797
{
 
11798
return f != $ac_func;
 
11799
  ;
 
11800
  return 0;
 
11801
}
 
11802
_ACEOF
 
11803
rm -f conftest.$ac_objext conftest$ac_exeext
 
11804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11805
  (eval $ac_link) 2>conftest.er1
 
11806
  ac_status=$?
 
11807
  grep -v '^ *+' conftest.er1 >conftest.err
 
11808
  rm -f conftest.er1
 
11809
  cat conftest.err >&5
 
11810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11811
  (exit $ac_status); } &&
 
11812
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11814
  (eval $ac_try) 2>&5
 
11815
  ac_status=$?
 
11816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11817
  (exit $ac_status); }; } &&
 
11818
         { ac_try='test -s conftest$ac_exeext'
 
11819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11820
  (eval $ac_try) 2>&5
 
11821
  ac_status=$?
 
11822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11823
  (exit $ac_status); }; }; then
 
11824
  eval "$as_ac_var=yes"
 
11825
else
 
11826
  echo "$as_me: failed program was:" >&5
 
11827
sed 's/^/| /' conftest.$ac_ext >&5
 
11828
 
 
11829
eval "$as_ac_var=no"
 
11830
fi
 
11831
rm -f conftest.err conftest.$ac_objext \
 
11832
      conftest$ac_exeext conftest.$ac_ext
 
11833
fi
 
11834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11835
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11836
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11837
  cat >>confdefs.h <<_ACEOF
 
11838
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11839
_ACEOF
 
11840
 
 
11841
fi
 
11842
done
 
11843
 
 
11844
USE_ZLIB=0
 
11845
 
 
11846
for ac_header in zlib.h
 
11847
do
 
11848
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11849
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11850
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11851
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11852
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11854
fi
 
11855
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11856
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11857
else
 
11858
  # Is the header compilable?
 
11859
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11860
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11861
cat >conftest.$ac_ext <<_ACEOF
 
11862
/* confdefs.h.  */
 
11863
_ACEOF
 
11864
cat confdefs.h >>conftest.$ac_ext
 
11865
cat >>conftest.$ac_ext <<_ACEOF
 
11866
/* end confdefs.h.  */
 
11867
$ac_includes_default
 
11868
#include <$ac_header>
 
11869
_ACEOF
 
11870
rm -f conftest.$ac_objext
 
11871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11872
  (eval $ac_compile) 2>conftest.er1
 
11873
  ac_status=$?
 
11874
  grep -v '^ *+' conftest.er1 >conftest.err
 
11875
  rm -f conftest.er1
 
11876
  cat conftest.err >&5
 
11877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11878
  (exit $ac_status); } &&
 
11879
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11881
  (eval $ac_try) 2>&5
 
11882
  ac_status=$?
 
11883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11884
  (exit $ac_status); }; } &&
 
11885
         { ac_try='test -s conftest.$ac_objext'
 
11886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11887
  (eval $ac_try) 2>&5
 
11888
  ac_status=$?
 
11889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11890
  (exit $ac_status); }; }; then
 
11891
  ac_header_compiler=yes
 
11892
else
 
11893
  echo "$as_me: failed program was:" >&5
 
11894
sed 's/^/| /' conftest.$ac_ext >&5
 
11895
 
 
11896
ac_header_compiler=no
 
11897
fi
 
11898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11899
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11900
echo "${ECHO_T}$ac_header_compiler" >&6
 
11901
 
 
11902
# Is the header present?
 
11903
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11904
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11905
cat >conftest.$ac_ext <<_ACEOF
 
11906
/* confdefs.h.  */
 
11907
_ACEOF
 
11908
cat confdefs.h >>conftest.$ac_ext
 
11909
cat >>conftest.$ac_ext <<_ACEOF
 
11910
/* end confdefs.h.  */
 
11911
#include <$ac_header>
 
11912
_ACEOF
 
11913
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11914
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11915
  ac_status=$?
 
11916
  grep -v '^ *+' conftest.er1 >conftest.err
 
11917
  rm -f conftest.er1
 
11918
  cat conftest.err >&5
 
11919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11920
  (exit $ac_status); } >/dev/null; then
 
11921
  if test -s conftest.err; then
 
11922
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11923
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11924
  else
 
11925
    ac_cpp_err=
 
11926
  fi
 
11927
else
 
11928
  ac_cpp_err=yes
 
11929
fi
 
11930
if test -z "$ac_cpp_err"; then
 
11931
  ac_header_preproc=yes
 
11932
else
 
11933
  echo "$as_me: failed program was:" >&5
 
11934
sed 's/^/| /' conftest.$ac_ext >&5
 
11935
 
 
11936
  ac_header_preproc=no
 
11937
fi
 
11938
rm -f conftest.err conftest.$ac_ext
 
11939
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11940
echo "${ECHO_T}$ac_header_preproc" >&6
 
11941
 
 
11942
# So?  What about this header?
 
11943
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11944
  yes:no: )
 
11945
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11946
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11947
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11948
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11949
    ac_header_preproc=yes
 
11950
    ;;
 
11951
  no:yes:* )
 
11952
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11953
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11954
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11955
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11956
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11957
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11958
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11959
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11960
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11961
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11962
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11963
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11964
    (
 
11965
      cat <<\_ASBOX
 
11966
## ------------------------------------------ ##
 
11967
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11968
## ------------------------------------------ ##
 
11969
_ASBOX
 
11970
    ) |
 
11971
      sed "s/^/$as_me: WARNING:     /" >&2
 
11972
    ;;
 
11973
esac
 
11974
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11975
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11976
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11978
else
 
11979
  eval "$as_ac_Header=\$ac_header_preproc"
 
11980
fi
 
11981
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11982
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11983
 
 
11984
fi
 
11985
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11986
  cat >>confdefs.h <<_ACEOF
 
11987
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11988
_ACEOF
 
11989
 
 
11990
fi
 
11991
 
 
11992
done
 
11993
 
 
11994
if test $ac_cv_header_zlib_h = yes; then
 
11995
  echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
 
11996
echo $ECHO_N "checking for gzseek in -lz... $ECHO_C" >&6
 
11997
if test "${ac_cv_lib_z_gzseek+set}" = set; then
 
11998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11999
else
 
12000
  ac_check_lib_save_LIBS=$LIBS
 
12001
LIBS="-lz  $LIBS"
 
12002
cat >conftest.$ac_ext <<_ACEOF
 
12003
/* confdefs.h.  */
 
12004
_ACEOF
 
12005
cat confdefs.h >>conftest.$ac_ext
 
12006
cat >>conftest.$ac_ext <<_ACEOF
 
12007
/* end confdefs.h.  */
 
12008
 
 
12009
/* Override any gcc2 internal prototype to avoid an error.  */
 
12010
#ifdef __cplusplus
 
12011
extern "C"
 
12012
#endif
 
12013
/* We use char because int might match the return type of a gcc2
 
12014
   builtin and then its argument prototype would still apply.  */
 
12015
char gzseek ();
 
12016
int
 
12017
main ()
 
12018
{
 
12019
gzseek ();
 
12020
  ;
 
12021
  return 0;
 
12022
}
 
12023
_ACEOF
 
12024
rm -f conftest.$ac_objext conftest$ac_exeext
 
12025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12026
  (eval $ac_link) 2>conftest.er1
 
12027
  ac_status=$?
 
12028
  grep -v '^ *+' conftest.er1 >conftest.err
 
12029
  rm -f conftest.er1
 
12030
  cat conftest.err >&5
 
12031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12032
  (exit $ac_status); } &&
 
12033
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12035
  (eval $ac_try) 2>&5
 
12036
  ac_status=$?
 
12037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12038
  (exit $ac_status); }; } &&
 
12039
         { ac_try='test -s conftest$ac_exeext'
 
12040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12041
  (eval $ac_try) 2>&5
 
12042
  ac_status=$?
 
12043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12044
  (exit $ac_status); }; }; then
 
12045
  ac_cv_lib_z_gzseek=yes
 
12046
else
 
12047
  echo "$as_me: failed program was:" >&5
 
12048
sed 's/^/| /' conftest.$ac_ext >&5
 
12049
 
 
12050
ac_cv_lib_z_gzseek=no
 
12051
fi
 
12052
rm -f conftest.err conftest.$ac_objext \
 
12053
      conftest$ac_exeext conftest.$ac_ext
 
12054
LIBS=$ac_check_lib_save_LIBS
 
12055
fi
 
12056
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
 
12057
echo "${ECHO_T}$ac_cv_lib_z_gzseek" >&6
 
12058
if test $ac_cv_lib_z_gzseek = yes; then
 
12059
  zlib_ok=yes
 
12060
else
 
12061
  zlib_ok=no
 
12062
fi
 
12063
 
 
12064
  if test "$zlib_ok" = yes; then
 
12065
    LIBS="$LIBS -lz"
 
12066
    USE_ZLIB=1
 
12067
  fi
 
12068
fi
 
12069
 
 
12070
 
 
12071
#--------------------------------------------------------------------
 
12072
# One of these function needed by NSThread.m
 
12073
#--------------------------------------------------------------------
 
12074
 
 
12075
 
 
12076
for ac_func in nanosleep usleep
 
12077
do
 
12078
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12079
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12080
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12081
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12083
else
 
12084
  cat >conftest.$ac_ext <<_ACEOF
 
12085
/* confdefs.h.  */
 
12086
_ACEOF
 
12087
cat confdefs.h >>conftest.$ac_ext
 
12088
cat >>conftest.$ac_ext <<_ACEOF
 
12089
/* end confdefs.h.  */
 
12090
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12091
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12092
#define $ac_func innocuous_$ac_func
 
12093
 
 
12094
/* System header to define __stub macros and hopefully few prototypes,
 
12095
    which can conflict with char $ac_func (); below.
 
12096
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12097
    <limits.h> exists even on freestanding compilers.  */
 
12098
 
 
12099
#ifdef __STDC__
 
12100
# include <limits.h>
 
12101
#else
 
12102
# include <assert.h>
 
12103
#endif
 
12104
 
 
12105
#undef $ac_func
 
12106
 
 
12107
/* Override any gcc2 internal prototype to avoid an error.  */
 
12108
#ifdef __cplusplus
 
12109
extern "C"
 
12110
{
 
12111
#endif
 
12112
/* We use char because int might match the return type of a gcc2
 
12113
   builtin and then its argument prototype would still apply.  */
 
12114
char $ac_func ();
 
12115
/* The GNU C library defines this for functions which it implements
 
12116
    to always fail with ENOSYS.  Some functions are actually named
 
12117
    something starting with __ and the normal name is an alias.  */
 
12118
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12119
choke me
 
12120
#else
 
12121
char (*f) () = $ac_func;
 
12122
#endif
 
12123
#ifdef __cplusplus
 
12124
}
 
12125
#endif
 
12126
 
 
12127
int
 
12128
main ()
 
12129
{
 
12130
return f != $ac_func;
 
12131
  ;
 
12132
  return 0;
 
12133
}
 
12134
_ACEOF
 
12135
rm -f conftest.$ac_objext conftest$ac_exeext
 
12136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12137
  (eval $ac_link) 2>conftest.er1
 
12138
  ac_status=$?
 
12139
  grep -v '^ *+' conftest.er1 >conftest.err
 
12140
  rm -f conftest.er1
 
12141
  cat conftest.err >&5
 
12142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12143
  (exit $ac_status); } &&
 
12144
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12146
  (eval $ac_try) 2>&5
 
12147
  ac_status=$?
 
12148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12149
  (exit $ac_status); }; } &&
 
12150
         { ac_try='test -s conftest$ac_exeext'
 
12151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12152
  (eval $ac_try) 2>&5
 
12153
  ac_status=$?
 
12154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12155
  (exit $ac_status); }; }; then
 
12156
  eval "$as_ac_var=yes"
 
12157
else
 
12158
  echo "$as_me: failed program was:" >&5
 
12159
sed 's/^/| /' conftest.$ac_ext >&5
 
12160
 
 
12161
eval "$as_ac_var=no"
 
12162
fi
 
12163
rm -f conftest.err conftest.$ac_objext \
 
12164
      conftest$ac_exeext conftest.$ac_ext
 
12165
fi
 
12166
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12167
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12168
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12169
  cat >>confdefs.h <<_ACEOF
 
12170
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12171
_ACEOF
 
12172
 
4283
12173
fi
4284
12174
done
4285
12175
 
4287
12177
#--------------------------------------------------------------------
4288
12178
# This function needed by NSDebug.m and NSProcessInfo.m
4289
12179
#--------------------------------------------------------------------
 
12180
 
4290
12181
for ac_func in strerror
4291
12182
do
4292
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4293
 
echo "configure:4294: checking for $ac_func" >&5
4294
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4295
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12183
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12184
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12185
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12186
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12187
  echo $ECHO_N "(cached) $ECHO_C" >&6
4296
12188
else
4297
 
  cat > conftest.$ac_ext <<EOF
4298
 
#line 4299 "configure"
4299
 
#include "confdefs.h"
 
12189
  cat >conftest.$ac_ext <<_ACEOF
 
12190
/* confdefs.h.  */
 
12191
_ACEOF
 
12192
cat confdefs.h >>conftest.$ac_ext
 
12193
cat >>conftest.$ac_ext <<_ACEOF
 
12194
/* end confdefs.h.  */
 
12195
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12196
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12197
#define $ac_func innocuous_$ac_func
 
12198
 
4300
12199
/* System header to define __stub macros and hopefully few prototypes,
4301
 
    which can conflict with char $ac_func(); below.  */
4302
 
#include <assert.h>
 
12200
    which can conflict with char $ac_func (); below.
 
12201
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12202
    <limits.h> exists even on freestanding compilers.  */
 
12203
 
 
12204
#ifdef __STDC__
 
12205
# include <limits.h>
 
12206
#else
 
12207
# include <assert.h>
 
12208
#endif
 
12209
 
 
12210
#undef $ac_func
 
12211
 
4303
12212
/* Override any gcc2 internal prototype to avoid an error.  */
 
12213
#ifdef __cplusplus
 
12214
extern "C"
 
12215
{
 
12216
#endif
4304
12217
/* We use char because int might match the return type of a gcc2
4305
 
    builtin and then its argument prototype would still apply.  */
4306
 
char $ac_func();
4307
 
 
4308
 
int main() {
4309
 
 
 
12218
   builtin and then its argument prototype would still apply.  */
 
12219
char $ac_func ();
4310
12220
/* The GNU C library defines this for functions which it implements
4311
12221
    to always fail with ENOSYS.  Some functions are actually named
4312
12222
    something starting with __ and the normal name is an alias.  */
4313
12223
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4314
12224
choke me
4315
12225
#else
4316
 
$ac_func();
4317
 
#endif
4318
 
 
4319
 
; return 0; }
4320
 
EOF
4321
 
if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322
 
  rm -rf conftest*
4323
 
  eval "ac_cv_func_$ac_func=yes"
4324
 
else
4325
 
  echo "configure: failed program was:" >&5
4326
 
  cat conftest.$ac_ext >&5
4327
 
  rm -rf conftest*
4328
 
  eval "ac_cv_func_$ac_func=no"
4329
 
fi
4330
 
rm -f conftest*
4331
 
fi
4332
 
 
4333
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4334
 
  echo "$ac_t""yes" 1>&6
4335
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4336
 
  cat >> confdefs.h <<EOF
4337
 
#define $ac_tr_func 1
4338
 
EOF
4339
 
 
4340
 
else
4341
 
  echo "$ac_t""no" 1>&6
 
12226
char (*f) () = $ac_func;
 
12227
#endif
 
12228
#ifdef __cplusplus
 
12229
}
 
12230
#endif
 
12231
 
 
12232
int
 
12233
main ()
 
12234
{
 
12235
return f != $ac_func;
 
12236
  ;
 
12237
  return 0;
 
12238
}
 
12239
_ACEOF
 
12240
rm -f conftest.$ac_objext conftest$ac_exeext
 
12241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12242
  (eval $ac_link) 2>conftest.er1
 
12243
  ac_status=$?
 
12244
  grep -v '^ *+' conftest.er1 >conftest.err
 
12245
  rm -f conftest.er1
 
12246
  cat conftest.err >&5
 
12247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12248
  (exit $ac_status); } &&
 
12249
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12251
  (eval $ac_try) 2>&5
 
12252
  ac_status=$?
 
12253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12254
  (exit $ac_status); }; } &&
 
12255
         { ac_try='test -s conftest$ac_exeext'
 
12256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12257
  (eval $ac_try) 2>&5
 
12258
  ac_status=$?
 
12259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12260
  (exit $ac_status); }; }; then
 
12261
  eval "$as_ac_var=yes"
 
12262
else
 
12263
  echo "$as_me: failed program was:" >&5
 
12264
sed 's/^/| /' conftest.$ac_ext >&5
 
12265
 
 
12266
eval "$as_ac_var=no"
 
12267
fi
 
12268
rm -f conftest.err conftest.$ac_objext \
 
12269
      conftest$ac_exeext conftest.$ac_ext
 
12270
fi
 
12271
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12272
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12273
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12274
  cat >>confdefs.h <<_ACEOF
 
12275
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12276
_ACEOF
 
12277
 
4342
12278
fi
4343
12279
done
4344
12280
 
4346
12282
#--------------------------------------------------------------------
4347
12283
# This type needed by GSFormat
4348
12284
#--------------------------------------------------------------------
4349
 
echo $ac_n "checking whether stdint.h or inttypes.h defines uintmax_t""... $ac_c" 1>&6
4350
 
echo "configure:4351: checking whether stdint.h or inttypes.h defines uintmax_t" >&5
4351
 
cat > conftest.$ac_ext <<EOF
4352
 
#line 4353 "configure"
4353
 
#include "confdefs.h"
4354
 
#ifdef HAVE_STDINT_H
4355
 
                #include <stdint.h>
4356
 
                #endif
4357
 
                #ifdef HAVE_SYS_INTTYPES_H
4358
 
                #include <sys/inttypes.h>
4359
 
                #endif
4360
 
int main() {
4361
 
int i = sizeof(uintmax_t); 
4362
 
; return 0; }
4363
 
EOF
4364
 
if { (eval echo configure:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4365
 
  rm -rf conftest*
4366
 
  uintmax_t=1
4367
 
else
4368
 
  echo "configure: failed program was:" >&5
4369
 
  cat conftest.$ac_ext >&5
4370
 
  rm -rf conftest*
4371
 
  uintmax_t=0
4372
 
fi
4373
 
rm -f conftest*
4374
 
if test $uintmax_t = 1; then
4375
 
        echo "$ac_t""found" 1>&6
4376
 
    cat >> confdefs.h <<\EOF
 
12285
echo "$as_me:$LINENO: checking for uintmax_t" >&5
 
12286
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
 
12287
if test "${ac_cv_type_uintmax_t+set}" = set; then
 
12288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12289
else
 
12290
  cat >conftest.$ac_ext <<_ACEOF
 
12291
/* confdefs.h.  */
 
12292
_ACEOF
 
12293
cat confdefs.h >>conftest.$ac_ext
 
12294
cat >>conftest.$ac_ext <<_ACEOF
 
12295
/* end confdefs.h.  */
 
12296
$ac_includes_default
 
12297
int
 
12298
main ()
 
12299
{
 
12300
if ((uintmax_t *) 0)
 
12301
  return 0;
 
12302
if (sizeof (uintmax_t))
 
12303
  return 0;
 
12304
  ;
 
12305
  return 0;
 
12306
}
 
12307
_ACEOF
 
12308
rm -f conftest.$ac_objext
 
12309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12310
  (eval $ac_compile) 2>conftest.er1
 
12311
  ac_status=$?
 
12312
  grep -v '^ *+' conftest.er1 >conftest.err
 
12313
  rm -f conftest.er1
 
12314
  cat conftest.err >&5
 
12315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12316
  (exit $ac_status); } &&
 
12317
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12319
  (eval $ac_try) 2>&5
 
12320
  ac_status=$?
 
12321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12322
  (exit $ac_status); }; } &&
 
12323
         { ac_try='test -s conftest.$ac_objext'
 
12324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12325
  (eval $ac_try) 2>&5
 
12326
  ac_status=$?
 
12327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12328
  (exit $ac_status); }; }; then
 
12329
  ac_cv_type_uintmax_t=yes
 
12330
else
 
12331
  echo "$as_me: failed program was:" >&5
 
12332
sed 's/^/| /' conftest.$ac_ext >&5
 
12333
 
 
12334
ac_cv_type_uintmax_t=no
 
12335
fi
 
12336
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12337
fi
 
12338
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
 
12339
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
 
12340
if test $ac_cv_type_uintmax_t = yes; then
 
12341
 
 
12342
cat >>confdefs.h <<_ACEOF
4377
12343
#define HAVE_UINTMAX_T 1
4378
 
EOF
4379
 
 
4380
 
else
4381
 
        echo "$ac_t""not found" 1>&6
 
12344
_ACEOF
 
12345
 
 
12346
 
4382
12347
fi
4383
12348
 
4384
 
echo $ac_n "checking whether precompiler handles LONG_LONG_MAX""... $ac_c" 1>&6
4385
 
echo "configure:4386: checking whether precompiler handles LONG_LONG_MAX" >&5
4386
 
cat > conftest.$ac_ext <<EOF
4387
 
#line 4388 "configure"
4388
 
#include "confdefs.h"
4389
 
#ifdef HAVE_STDINT_H
 
12349
 
 
12350
echo "$as_me:$LINENO: checking whether precompiler handles LONG_LONG_MAX" >&5
 
12351
echo $ECHO_N "checking whether precompiler handles LONG_LONG_MAX... $ECHO_C" >&6
 
12352
# We need to define _GNU_SOURCE for some systems to enable LONG_LONG_MAX
 
12353
cat >conftest.$ac_ext <<_ACEOF
 
12354
/* confdefs.h.  */
 
12355
_ACEOF
 
12356
cat confdefs.h >>conftest.$ac_ext
 
12357
cat >>conftest.$ac_ext <<_ACEOF
 
12358
/* end confdefs.h.  */
 
12359
#ifndef _GNU_SOURCE
 
12360
        #define _GNU_SOURCE
 
12361
        #endif
 
12362
        #ifdef HAVE_STDINT_H
4390
12363
        #include <stdint.h>
4391
12364
        #endif
4392
12365
        #include <limits.h>
4397
12370
        #else
4398
12371
        #error long long max not defined
4399
12372
        #endif
4400
 
        
4401
 
EOF
4402
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4403
 
{ (eval echo configure:4404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4404
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4405
 
if test -z "$ac_err"; then
4406
 
  rm -rf conftest*
 
12373
 
 
12374
_ACEOF
 
12375
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12376
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12377
  ac_status=$?
 
12378
  grep -v '^ *+' conftest.er1 >conftest.err
 
12379
  rm -f conftest.er1
 
12380
  cat conftest.err >&5
 
12381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12382
  (exit $ac_status); } >/dev/null; then
 
12383
  if test -s conftest.err; then
 
12384
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12385
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12386
  else
 
12387
    ac_cpp_err=
 
12388
  fi
 
12389
else
 
12390
  ac_cpp_err=yes
 
12391
fi
 
12392
if test -z "$ac_cpp_err"; then
4407
12393
  llmax=yes
4408
12394
else
4409
 
  echo "$ac_err" >&5
4410
 
  echo "configure: failed program was:" >&5
4411
 
  cat conftest.$ac_ext >&5
4412
 
  rm -rf conftest*
 
12395
  echo "$as_me: failed program was:" >&5
 
12396
sed 's/^/| /' conftest.$ac_ext >&5
 
12397
 
4413
12398
  llmax=no
4414
12399
fi
4415
 
rm -f conftest*
 
12400
rm -f conftest.err conftest.$ac_ext
4416
12401
if test $llmax = yes; then
4417
 
        echo "$ac_t""yes" 1>&6
4418
 
        cat >> confdefs.h <<\EOF
 
12402
        echo "$as_me:$LINENO: result: yes" >&5
 
12403
echo "${ECHO_T}yes" >&6
 
12404
 
 
12405
cat >>confdefs.h <<\_ACEOF
4419
12406
#define HANDLE_LONG_LONG_MAX 1
4420
 
EOF
 
12407
_ACEOF
4421
12408
 
4422
12409
else
4423
 
        echo "$ac_t""no" 1>&6
 
12410
        echo "$as_me:$LINENO: result: no" >&5
 
12411
echo "${ECHO_T}no" >&6
4424
12412
fi
4425
12413
 
4426
12414
#
4427
12415
# Solaris and *BSD use LLONG_MAX instead
4428
12416
#
4429
 
echo $ac_n "checking whether we have LLONG_MAX""... $ac_c" 1>&6
4430
 
echo "configure:4431: checking whether we have LLONG_MAX" >&5
4431
 
 
4432
 
cat > conftest.$ac_ext <<EOF
4433
 
#line 4434 "configure"
4434
 
#include "confdefs.h"
 
12417
echo "$as_me:$LINENO: checking whether we have LLONG_MAX" >&5
 
12418
echo $ECHO_N "checking whether we have LLONG_MAX... $ECHO_C" >&6
 
12419
cat >conftest.$ac_ext <<_ACEOF
 
12420
/* confdefs.h.  */
 
12421
_ACEOF
 
12422
cat confdefs.h >>conftest.$ac_ext
 
12423
cat >>conftest.$ac_ext <<_ACEOF
 
12424
/* end confdefs.h.  */
4435
12425
#include <limits.h>
4436
12426
        #if defined(LLONG_MAX)
4437
12427
        #if LONG_MAX == LLONG_MAX
4440
12430
        #else
4441
12431
        #error llong max not defined
4442
12432
        #endif
4443
 
        
4444
 
EOF
4445
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446
 
{ (eval echo configure:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448
 
if test -z "$ac_err"; then
4449
 
  rm -rf conftest*
 
12433
 
 
12434
_ACEOF
 
12435
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12436
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12437
  ac_status=$?
 
12438
  grep -v '^ *+' conftest.er1 >conftest.err
 
12439
  rm -f conftest.er1
 
12440
  cat conftest.err >&5
 
12441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12442
  (exit $ac_status); } >/dev/null; then
 
12443
  if test -s conftest.err; then
 
12444
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12445
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12446
  else
 
12447
    ac_cpp_err=
 
12448
  fi
 
12449
else
 
12450
  ac_cpp_err=yes
 
12451
fi
 
12452
if test -z "$ac_cpp_err"; then
4450
12453
  llmax=yes
4451
12454
else
4452
 
  echo "$ac_err" >&5
4453
 
  echo "configure: failed program was:" >&5
4454
 
  cat conftest.$ac_ext >&5
4455
 
  rm -rf conftest*
 
12455
  echo "$as_me: failed program was:" >&5
 
12456
sed 's/^/| /' conftest.$ac_ext >&5
 
12457
 
4456
12458
  llmax=no
4457
12459
fi
4458
 
rm -f conftest*
 
12460
rm -f conftest.err conftest.$ac_ext
4459
12461
 
4460
12462
if test $llmax = yes; then
4461
 
  echo "$ac_t""yes" 1>&6
4462
 
  cat >> confdefs.h <<\EOF
 
12463
  echo "$as_me:$LINENO: result: yes" >&5
 
12464
echo "${ECHO_T}yes" >&6
 
12465
 
 
12466
cat >>confdefs.h <<\_ACEOF
4463
12467
#define HANDLE_LLONG_MAX 1
4464
 
EOF
 
12468
_ACEOF
4465
12469
 
4466
12470
else
4467
 
  echo "$ac_t""no" 1>&6
 
12471
  echo "$as_me:$LINENO: result: no" >&5
 
12472
echo "${ECHO_T}no" >&6
4468
12473
fi
4469
 
for ac_hdr in wchar.h
 
12474
 
 
12475
for ac_header in wchar.h
4470
12476
do
4471
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4472
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4473
 
echo "configure:4474: checking for $ac_hdr" >&5
4474
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4475
 
  echo $ac_n "(cached) $ac_c" 1>&6
4476
 
else
4477
 
  cat > conftest.$ac_ext <<EOF
4478
 
#line 4479 "configure"
4479
 
#include "confdefs.h"
4480
 
#include <$ac_hdr>
4481
 
EOF
4482
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4483
 
{ (eval echo configure:4484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4484
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4485
 
if test -z "$ac_err"; then
4486
 
  rm -rf conftest*
4487
 
  eval "ac_cv_header_$ac_safe=yes"
4488
 
else
4489
 
  echo "$ac_err" >&5
4490
 
  echo "configure: failed program was:" >&5
4491
 
  cat conftest.$ac_ext >&5
4492
 
  rm -rf conftest*
4493
 
  eval "ac_cv_header_$ac_safe=no"
4494
 
fi
4495
 
rm -f conftest*
4496
 
fi
4497
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4498
 
  echo "$ac_t""yes" 1>&6
4499
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4500
 
  cat >> confdefs.h <<EOF
4501
 
#define $ac_tr_hdr 1
4502
 
EOF
4503
 
 
4504
 
else
4505
 
  echo "$ac_t""no" 1>&6
4506
 
fi
 
12477
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12478
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12479
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12480
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12481
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12483
fi
 
12484
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12485
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12486
else
 
12487
  # Is the header compilable?
 
12488
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12489
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12490
cat >conftest.$ac_ext <<_ACEOF
 
12491
/* confdefs.h.  */
 
12492
_ACEOF
 
12493
cat confdefs.h >>conftest.$ac_ext
 
12494
cat >>conftest.$ac_ext <<_ACEOF
 
12495
/* end confdefs.h.  */
 
12496
$ac_includes_default
 
12497
#include <$ac_header>
 
12498
_ACEOF
 
12499
rm -f conftest.$ac_objext
 
12500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12501
  (eval $ac_compile) 2>conftest.er1
 
12502
  ac_status=$?
 
12503
  grep -v '^ *+' conftest.er1 >conftest.err
 
12504
  rm -f conftest.er1
 
12505
  cat conftest.err >&5
 
12506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12507
  (exit $ac_status); } &&
 
12508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12510
  (eval $ac_try) 2>&5
 
12511
  ac_status=$?
 
12512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12513
  (exit $ac_status); }; } &&
 
12514
         { ac_try='test -s conftest.$ac_objext'
 
12515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12516
  (eval $ac_try) 2>&5
 
12517
  ac_status=$?
 
12518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12519
  (exit $ac_status); }; }; then
 
12520
  ac_header_compiler=yes
 
12521
else
 
12522
  echo "$as_me: failed program was:" >&5
 
12523
sed 's/^/| /' conftest.$ac_ext >&5
 
12524
 
 
12525
ac_header_compiler=no
 
12526
fi
 
12527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12528
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12529
echo "${ECHO_T}$ac_header_compiler" >&6
 
12530
 
 
12531
# Is the header present?
 
12532
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12533
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12534
cat >conftest.$ac_ext <<_ACEOF
 
12535
/* confdefs.h.  */
 
12536
_ACEOF
 
12537
cat confdefs.h >>conftest.$ac_ext
 
12538
cat >>conftest.$ac_ext <<_ACEOF
 
12539
/* end confdefs.h.  */
 
12540
#include <$ac_header>
 
12541
_ACEOF
 
12542
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12543
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12544
  ac_status=$?
 
12545
  grep -v '^ *+' conftest.er1 >conftest.err
 
12546
  rm -f conftest.er1
 
12547
  cat conftest.err >&5
 
12548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12549
  (exit $ac_status); } >/dev/null; then
 
12550
  if test -s conftest.err; then
 
12551
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12552
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12553
  else
 
12554
    ac_cpp_err=
 
12555
  fi
 
12556
else
 
12557
  ac_cpp_err=yes
 
12558
fi
 
12559
if test -z "$ac_cpp_err"; then
 
12560
  ac_header_preproc=yes
 
12561
else
 
12562
  echo "$as_me: failed program was:" >&5
 
12563
sed 's/^/| /' conftest.$ac_ext >&5
 
12564
 
 
12565
  ac_header_preproc=no
 
12566
fi
 
12567
rm -f conftest.err conftest.$ac_ext
 
12568
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12569
echo "${ECHO_T}$ac_header_preproc" >&6
 
12570
 
 
12571
# So?  What about this header?
 
12572
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12573
  yes:no: )
 
12574
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12575
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12576
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12577
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12578
    ac_header_preproc=yes
 
12579
    ;;
 
12580
  no:yes:* )
 
12581
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12582
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12583
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12584
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12585
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12586
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12587
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12588
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12589
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12590
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12591
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12592
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12593
    (
 
12594
      cat <<\_ASBOX
 
12595
## ------------------------------------------ ##
 
12596
## Report this to the AC_PACKAGE_NAME lists.  ##
 
12597
## ------------------------------------------ ##
 
12598
_ASBOX
 
12599
    ) |
 
12600
      sed "s/^/$as_me: WARNING:     /" >&2
 
12601
    ;;
 
12602
esac
 
12603
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12604
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12605
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12607
else
 
12608
  eval "$as_ac_Header=\$ac_header_preproc"
 
12609
fi
 
12610
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12611
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12612
 
 
12613
fi
 
12614
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12615
  cat >>confdefs.h <<_ACEOF
 
12616
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12617
_ACEOF
 
12618
 
 
12619
fi
 
12620
 
4507
12621
done
4508
12622
 
4509
12623
 
4510
12624
#--------------------------------------------------------------------
 
12625
# Check if short and int values need to be word aligned
 
12626
#--------------------------------------------------------------------
 
12627
echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
 
12628
echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
 
12629
if test "$cross_compiling" = yes; then
 
12630
  NEED_WORD_ALIGNMENT=1
 
12631
else
 
12632
  cat >conftest.$ac_ext <<_ACEOF
 
12633
/* confdefs.h.  */
 
12634
_ACEOF
 
12635
cat confdefs.h >>conftest.$ac_ext
 
12636
cat >>conftest.$ac_ext <<_ACEOF
 
12637
/* end confdefs.h.  */
 
12638
#include "$srcdir/config/config.align.c"
 
12639
_ACEOF
 
12640
rm -f conftest$ac_exeext
 
12641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12642
  (eval $ac_link) 2>&5
 
12643
  ac_status=$?
 
12644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12645
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12647
  (eval $ac_try) 2>&5
 
12648
  ac_status=$?
 
12649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12650
  (exit $ac_status); }; }; then
 
12651
  NEED_WORD_ALIGNMENT=0
 
12652
else
 
12653
  echo "$as_me: program exited with status $ac_status" >&5
 
12654
echo "$as_me: failed program was:" >&5
 
12655
sed 's/^/| /' conftest.$ac_ext >&5
 
12656
 
 
12657
( exit $ac_status )
 
12658
NEED_WORD_ALIGNMENT=1
 
12659
fi
 
12660
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12661
fi
 
12662
 
 
12663
cat >>confdefs.h <<_ACEOF
 
12664
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
 
12665
_ACEOF
 
12666
 
 
12667
if test $NEED_WORD_ALIGNMENT = 1; then
 
12668
  echo "$as_me:$LINENO: result: yes" >&5
 
12669
echo "${ECHO_T}yes" >&6
 
12670
else
 
12671
  echo "$as_me:$LINENO: result: no" >&5
 
12672
echo "${ECHO_T}no" >&6
 
12673
fi
 
12674
 
 
12675
#--------------------------------------------------------------------
4511
12676
# This function needed by NSString for handling of %@ printf directive.
4512
12677
#--------------------------------------------------------------------
4513
 
echo $ac_n "checking for register_printf_function""... $ac_c" 1>&6
4514
 
echo "configure:4515: checking for register_printf_function" >&5
4515
 
if eval "test \"`echo '$''{'ac_cv_func_register_printf_function'+set}'`\" = set"; then
4516
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12678
echo "$as_me:$LINENO: checking for register_printf_function" >&5
 
12679
echo $ECHO_N "checking for register_printf_function... $ECHO_C" >&6
 
12680
if test "${ac_cv_func_register_printf_function+set}" = set; then
 
12681
  echo $ECHO_N "(cached) $ECHO_C" >&6
4517
12682
else
4518
 
  cat > conftest.$ac_ext <<EOF
4519
 
#line 4520 "configure"
4520
 
#include "confdefs.h"
 
12683
  cat >conftest.$ac_ext <<_ACEOF
 
12684
/* confdefs.h.  */
 
12685
_ACEOF
 
12686
cat confdefs.h >>conftest.$ac_ext
 
12687
cat >>conftest.$ac_ext <<_ACEOF
 
12688
/* end confdefs.h.  */
 
12689
/* Define register_printf_function to an innocuous variant, in case <limits.h> declares register_printf_function.
 
12690
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12691
#define register_printf_function innocuous_register_printf_function
 
12692
 
4521
12693
/* System header to define __stub macros and hopefully few prototypes,
4522
 
    which can conflict with char register_printf_function(); below.  */
4523
 
#include <assert.h>
 
12694
    which can conflict with char register_printf_function (); below.
 
12695
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12696
    <limits.h> exists even on freestanding compilers.  */
 
12697
 
 
12698
#ifdef __STDC__
 
12699
# include <limits.h>
 
12700
#else
 
12701
# include <assert.h>
 
12702
#endif
 
12703
 
 
12704
#undef register_printf_function
 
12705
 
4524
12706
/* Override any gcc2 internal prototype to avoid an error.  */
 
12707
#ifdef __cplusplus
 
12708
extern "C"
 
12709
{
 
12710
#endif
4525
12711
/* We use char because int might match the return type of a gcc2
4526
 
    builtin and then its argument prototype would still apply.  */
4527
 
char register_printf_function();
4528
 
 
4529
 
int main() {
4530
 
 
 
12712
   builtin and then its argument prototype would still apply.  */
 
12713
char register_printf_function ();
4531
12714
/* The GNU C library defines this for functions which it implements
4532
12715
    to always fail with ENOSYS.  Some functions are actually named
4533
12716
    something starting with __ and the normal name is an alias.  */
4534
12717
#if defined (__stub_register_printf_function) || defined (__stub___register_printf_function)
4535
12718
choke me
4536
12719
#else
4537
 
register_printf_function();
 
12720
char (*f) () = register_printf_function;
 
12721
#endif
 
12722
#ifdef __cplusplus
 
12723
}
4538
12724
#endif
4539
12725
 
4540
 
; return 0; }
4541
 
EOF
4542
 
if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4543
 
  rm -rf conftest*
4544
 
  eval "ac_cv_func_register_printf_function=yes"
 
12726
int
 
12727
main ()
 
12728
{
 
12729
return f != register_printf_function;
 
12730
  ;
 
12731
  return 0;
 
12732
}
 
12733
_ACEOF
 
12734
rm -f conftest.$ac_objext conftest$ac_exeext
 
12735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12736
  (eval $ac_link) 2>conftest.er1
 
12737
  ac_status=$?
 
12738
  grep -v '^ *+' conftest.er1 >conftest.err
 
12739
  rm -f conftest.er1
 
12740
  cat conftest.err >&5
 
12741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12742
  (exit $ac_status); } &&
 
12743
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12745
  (eval $ac_try) 2>&5
 
12746
  ac_status=$?
 
12747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12748
  (exit $ac_status); }; } &&
 
12749
         { ac_try='test -s conftest$ac_exeext'
 
12750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12751
  (eval $ac_try) 2>&5
 
12752
  ac_status=$?
 
12753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12754
  (exit $ac_status); }; }; then
 
12755
  ac_cv_func_register_printf_function=yes
4545
12756
else
4546
 
  echo "configure: failed program was:" >&5
4547
 
  cat conftest.$ac_ext >&5
4548
 
  rm -rf conftest*
4549
 
  eval "ac_cv_func_register_printf_function=no"
4550
 
fi
4551
 
rm -f conftest*
4552
 
fi
 
12757
  echo "$as_me: failed program was:" >&5
 
12758
sed 's/^/| /' conftest.$ac_ext >&5
4553
12759
 
4554
 
if eval "test \"`echo '$ac_cv_func_'register_printf_function`\" = yes"; then
4555
 
  echo "$ac_t""yes" 1>&6
 
12760
ac_cv_func_register_printf_function=no
 
12761
fi
 
12762
rm -f conftest.err conftest.$ac_objext \
 
12763
      conftest$ac_exeext conftest.$ac_ext
 
12764
fi
 
12765
echo "$as_me:$LINENO: result: $ac_cv_func_register_printf_function" >&5
 
12766
echo "${ECHO_T}$ac_cv_func_register_printf_function" >&6
 
12767
if test $ac_cv_func_register_printf_function = yes; then
4556
12768
  register_printf=1
4557
12769
else
4558
 
  echo "$ac_t""no" 1>&6
4559
 
register_printf=0
 
12770
  register_printf=0
4560
12771
fi
4561
12772
 
4562
12773
if test $register_printf = 1; then
4563
12774
  if test "$cross_compiling" = yes; then
4564
12775
  working_register_printf=1
4565
12776
else
4566
 
  cat > conftest.$ac_ext <<EOF
4567
 
#line 4568 "configure"
4568
 
#include "confdefs.h"
 
12777
  cat >conftest.$ac_ext <<_ACEOF
 
12778
/* confdefs.h.  */
 
12779
_ACEOF
 
12780
cat confdefs.h >>conftest.$ac_ext
 
12781
cat >>conftest.$ac_ext <<_ACEOF
 
12782
/* end confdefs.h.  */
4569
12783
#include "$srcdir/config/config.printf.c"
4570
 
EOF
4571
 
if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4572
 
then
 
12784
_ACEOF
 
12785
rm -f conftest$ac_exeext
 
12786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12787
  (eval $ac_link) 2>&5
 
12788
  ac_status=$?
 
12789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12790
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12792
  (eval $ac_try) 2>&5
 
12793
  ac_status=$?
 
12794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12795
  (exit $ac_status); }; }; then
4573
12796
  working_register_printf=1
4574
12797
else
4575
 
  echo "configure: failed program was:" >&5
4576
 
  cat conftest.$ac_ext >&5
4577
 
  rm -fr conftest*
4578
 
  working_register_printf=0
4579
 
fi
4580
 
rm -fr conftest*
4581
 
fi
 
12798
  echo "$as_me: program exited with status $ac_status" >&5
 
12799
echo "$as_me: failed program was:" >&5
 
12800
sed 's/^/| /' conftest.$ac_ext >&5
4582
12801
 
 
12802
( exit $ac_status )
 
12803
working_register_printf=0
 
12804
fi
 
12805
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12806
fi
4583
12807
  if test $working_register_printf = 1; then
4584
 
    cat >> confdefs.h <<\EOF
 
12808
 
 
12809
cat >>confdefs.h <<\_ACEOF
4585
12810
#define HAVE_REGISTER_PRINTF_FUNCTION 1
4586
 
EOF
 
12811
_ACEOF
4587
12812
 
4588
12813
  fi
4589
12814
fi
4591
12816
#--------------------------------------------------------------------
4592
12817
# This function needed by NSString.
4593
12818
#--------------------------------------------------------------------
 
12819
 
4594
12820
for ac_func in realpath
4595
12821
do
4596
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4597
 
echo "configure:4598: checking for $ac_func" >&5
4598
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4599
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12822
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12823
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12824
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12825
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12826
  echo $ECHO_N "(cached) $ECHO_C" >&6
4600
12827
else
4601
 
  cat > conftest.$ac_ext <<EOF
4602
 
#line 4603 "configure"
4603
 
#include "confdefs.h"
 
12828
  cat >conftest.$ac_ext <<_ACEOF
 
12829
/* confdefs.h.  */
 
12830
_ACEOF
 
12831
cat confdefs.h >>conftest.$ac_ext
 
12832
cat >>conftest.$ac_ext <<_ACEOF
 
12833
/* end confdefs.h.  */
 
12834
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12835
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12836
#define $ac_func innocuous_$ac_func
 
12837
 
4604
12838
/* System header to define __stub macros and hopefully few prototypes,
4605
 
    which can conflict with char $ac_func(); below.  */
4606
 
#include <assert.h>
 
12839
    which can conflict with char $ac_func (); below.
 
12840
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12841
    <limits.h> exists even on freestanding compilers.  */
 
12842
 
 
12843
#ifdef __STDC__
 
12844
# include <limits.h>
 
12845
#else
 
12846
# include <assert.h>
 
12847
#endif
 
12848
 
 
12849
#undef $ac_func
 
12850
 
4607
12851
/* Override any gcc2 internal prototype to avoid an error.  */
 
12852
#ifdef __cplusplus
 
12853
extern "C"
 
12854
{
 
12855
#endif
4608
12856
/* We use char because int might match the return type of a gcc2
4609
 
    builtin and then its argument prototype would still apply.  */
4610
 
char $ac_func();
4611
 
 
4612
 
int main() {
4613
 
 
 
12857
   builtin and then its argument prototype would still apply.  */
 
12858
char $ac_func ();
4614
12859
/* The GNU C library defines this for functions which it implements
4615
12860
    to always fail with ENOSYS.  Some functions are actually named
4616
12861
    something starting with __ and the normal name is an alias.  */
4617
12862
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4618
12863
choke me
4619
12864
#else
4620
 
$ac_func();
4621
 
#endif
4622
 
 
4623
 
; return 0; }
4624
 
EOF
4625
 
if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4626
 
  rm -rf conftest*
4627
 
  eval "ac_cv_func_$ac_func=yes"
4628
 
else
4629
 
  echo "configure: failed program was:" >&5
4630
 
  cat conftest.$ac_ext >&5
4631
 
  rm -rf conftest*
4632
 
  eval "ac_cv_func_$ac_func=no"
4633
 
fi
4634
 
rm -f conftest*
4635
 
fi
4636
 
 
4637
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4638
 
  echo "$ac_t""yes" 1>&6
4639
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4640
 
  cat >> confdefs.h <<EOF
4641
 
#define $ac_tr_func 1
4642
 
EOF
4643
 
 
4644
 
else
4645
 
  echo "$ac_t""no" 1>&6
 
12865
char (*f) () = $ac_func;
 
12866
#endif
 
12867
#ifdef __cplusplus
 
12868
}
 
12869
#endif
 
12870
 
 
12871
int
 
12872
main ()
 
12873
{
 
12874
return f != $ac_func;
 
12875
  ;
 
12876
  return 0;
 
12877
}
 
12878
_ACEOF
 
12879
rm -f conftest.$ac_objext conftest$ac_exeext
 
12880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12881
  (eval $ac_link) 2>conftest.er1
 
12882
  ac_status=$?
 
12883
  grep -v '^ *+' conftest.er1 >conftest.err
 
12884
  rm -f conftest.er1
 
12885
  cat conftest.err >&5
 
12886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12887
  (exit $ac_status); } &&
 
12888
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12890
  (eval $ac_try) 2>&5
 
12891
  ac_status=$?
 
12892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12893
  (exit $ac_status); }; } &&
 
12894
         { ac_try='test -s conftest$ac_exeext'
 
12895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12896
  (eval $ac_try) 2>&5
 
12897
  ac_status=$?
 
12898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12899
  (exit $ac_status); }; }; then
 
12900
  eval "$as_ac_var=yes"
 
12901
else
 
12902
  echo "$as_me: failed program was:" >&5
 
12903
sed 's/^/| /' conftest.$ac_ext >&5
 
12904
 
 
12905
eval "$as_ac_var=no"
 
12906
fi
 
12907
rm -f conftest.err conftest.$ac_objext \
 
12908
      conftest$ac_exeext conftest.$ac_ext
 
12909
fi
 
12910
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12911
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12912
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12913
  cat >>confdefs.h <<_ACEOF
 
12914
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12915
_ACEOF
 
12916
 
4646
12917
fi
4647
12918
done
4648
12919
 
4651
12922
# Check if the C Library defines extern char *program_invocation_name
4652
12923
# Used in critical cases by NSProcessInfo.m
4653
12924
#--------------------------------------------------------------------
4654
 
echo $ac_n "checking program_invocation_name in C Library""... $ac_c" 1>&6
4655
 
echo "configure:4656: checking program_invocation_name in C Library" >&5
4656
 
if eval "test \"`echo '$''{'program_invocation_name_worked'+set}'`\" = set"; then
4657
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12925
echo "$as_me:$LINENO: checking program_invocation_name in C Library" >&5
 
12926
echo $ECHO_N "checking program_invocation_name in C Library... $ECHO_C" >&6
 
12927
if test "${program_invocation_name_worked+set}" = set; then
 
12928
  echo $ECHO_N "(cached) $ECHO_C" >&6
4658
12929
else
4659
12930
  if test "$cross_compiling" = yes; then
4660
12931
  program_invocation_name_worked=no
4661
12932
else
4662
 
  cat > conftest.$ac_ext <<EOF
4663
 
#line 4664 "configure"
4664
 
#include "confdefs.h"
 
12933
  cat >conftest.$ac_ext <<_ACEOF
 
12934
/* confdefs.h.  */
 
12935
_ACEOF
 
12936
cat confdefs.h >>conftest.$ac_ext
 
12937
cat >>conftest.$ac_ext <<_ACEOF
 
12938
/* end confdefs.h.  */
4665
12939
 
4666
12940
#include <string.h>
4667
 
int 
 
12941
int
4668
12942
main (int argc, char *argv[])
4669
12943
{
4670
12944
  extern char *program_invocation_name;
4671
12945
  return (strcmp (program_invocation_name, argv[0]));
4672
12946
}
4673
12947
 
4674
 
EOF
4675
 
if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4676
 
then
 
12948
_ACEOF
 
12949
rm -f conftest$ac_exeext
 
12950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12951
  (eval $ac_link) 2>&5
 
12952
  ac_status=$?
 
12953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12954
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12956
  (eval $ac_try) 2>&5
 
12957
  ac_status=$?
 
12958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12959
  (exit $ac_status); }; }; then
4677
12960
  program_invocation_name_worked=yes
4678
12961
else
4679
 
  echo "configure: failed program was:" >&5
4680
 
  cat conftest.$ac_ext >&5
4681
 
  rm -fr conftest*
4682
 
  program_invocation_name_worked=no
4683
 
fi
4684
 
rm -fr conftest*
4685
 
fi
 
12962
  echo "$as_me: program exited with status $ac_status" >&5
 
12963
echo "$as_me: failed program was:" >&5
 
12964
sed 's/^/| /' conftest.$ac_ext >&5
4686
12965
 
 
12966
( exit $ac_status )
 
12967
program_invocation_name_worked=no
 
12968
fi
 
12969
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12970
fi
4687
12971
fi
4688
12972
 
4689
12973
if test $program_invocation_name_worked = yes; then
4690
 
  cat >> confdefs.h <<\EOF
 
12974
 
 
12975
cat >>confdefs.h <<\_ACEOF
4691
12976
#define HAVE_PROGRAM_INVOCATION_NAME 1
4692
 
EOF
 
12977
_ACEOF
4693
12978
 
4694
 
  echo "$ac_t""yes" 1>&6
 
12979
  echo "$as_me:$LINENO: result: yes" >&5
 
12980
echo "${ECHO_T}yes" >&6
4695
12981
else
4696
 
  echo "$ac_t""no" 1>&6
 
12982
  echo "$as_me:$LINENO: result: no" >&5
 
12983
echo "${ECHO_T}no" >&6
4697
12984
fi
4698
12985
 
4699
12986
#--------------------------------------------------------------------
4700
 
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem. 
4701
 
# Needed by NSProcessInfo.m 
 
12987
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
 
12988
# Needed by NSProcessInfo.m
4702
12989
#--------------------------------------------------------------------
4703
12990
 # Check whether --enable-procfs or --disable-procfs was given.
4704
12991
if test "${enable_procfs+set}" = set; then
4706
12993
  enable_procfs="$enableval"
4707
12994
else
4708
12995
  if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
4709
 
fi
4710
 
 
4711
 
 
4712
 
  echo $ac_n "checking kernel support for /proc filesystem""... $ac_c" 1>&6
4713
 
echo "configure:4714: checking kernel support for /proc filesystem" >&5
4714
 
if eval "test \"`echo '$''{'ac_cv_sys_procfs'+set}'`\" = set"; then
4715
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
12996
fi;
 
12997
 
 
12998
  echo "$as_me:$LINENO: checking kernel support for /proc filesystem" >&5
 
12999
echo $ECHO_N "checking kernel support for /proc filesystem... $ECHO_C" >&6
 
13000
if test "${ac_cv_sys_procfs+set}" = set; then
 
13001
  echo $ECHO_N "(cached) $ECHO_C" >&6
4716
13002
else
4717
13003
  if test "$enable_procfs" = yes; then
4718
 
  # Suggested change for the following line was 
 
13004
  # Suggested change for the following line was
4719
13005
  #  if test -d /proc/0; then
4720
13006
  # but it doesn't work on my linux - /proc/0 does not exist, but /proc
4721
13007
  # works fine
4722
 
    if (grep proc /etc/fstab >/dev/null 2>/dev/null); then 
 
13008
    if (mount | grep 'proc' >/dev/null 2>/dev/null); then
4723
13009
      ac_cv_sys_procfs=yes
4724
 
        # Solaris has proc, but for some reason the dir is not readable
4725
 
        #       elif (grep proc /etc/vfstab >/dev/null 2>/dev/null); then 
4726
 
        # ac_cv_sys_procfs=yes
4727
13010
    else
4728
13011
      ac_cv_sys_procfs=no
4729
13012
    fi
 
13013
    case "$target_os" in
 
13014
      # Solaris has proc, but it is not readable
 
13015
      solaris*)    ac_cv_sys_procfs=no;;
 
13016
      irix*)       ac_cv_sys_procfs=no;;
 
13017
      # Cygwin does have proc, but it does not show with mount
 
13018
      cygwin*)     ac_cv_sys_procfs=yes;;
 
13019
    esac
4730
13020
  elif test "$enable_procfs" = cross; then
4731
 
    echo "configure: warning: Pass --enable-procfs argument to enable use of /proc filesystem." 1>&2
 
13021
    { echo "$as_me:$LINENO: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&5
 
13022
echo "$as_me: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&2;}
4732
13023
  else
4733
13024
    ac_cv_sys_procfs=no
4734
13025
  fi
4735
13026
fi
4736
 
 
4737
 
echo "$ac_t""$ac_cv_sys_procfs" 1>&6
 
13027
echo "$as_me:$LINENO: result: $ac_cv_sys_procfs" >&5
 
13028
echo "${ECHO_T}$ac_cv_sys_procfs" >&6
4738
13029
 
4739
13030
  if test $ac_cv_sys_procfs = yes; then
4740
 
    cat >> confdefs.h <<\EOF
 
13031
 
 
13032
cat >>confdefs.h <<\_ACEOF
4741
13033
#define HAVE_PROCFS 1
4742
 
EOF
 
13034
_ACEOF
4743
13035
 
4744
13036
  fi
4745
13037
 
4746
13038
 
4747
 
 
4748
 
 
4749
 
  echo $ac_n "checking link to exe of process in /proc""... $ac_c" 1>&6
4750
 
echo "configure:4751: checking link to exe of process in /proc" >&5
4751
 
if eval "test \"`echo '$''{'ac_cv_sys_procfs_exe_link'+set}'`\" = set"; then
4752
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
13039
 
 
13040
 
 
13041
  echo "$as_me:$LINENO: checking link to exe of process in /proc" >&5
 
13042
echo $ECHO_N "checking link to exe of process in /proc... $ECHO_C" >&6
 
13043
if test "${ac_cv_sys_procfs_exe_link+set}" = set; then
 
13044
  echo $ECHO_N "(cached) $ECHO_C" >&6
4753
13045
else
4754
13046
  if test "$ac_cv_sys_procfs" = yes; then
4755
13047
      # Linux 2.2.x and up
4765
13057
      ac_cv_sys_procfs_exe_link=no
4766
13058
    fi
4767
13059
fi
4768
 
 
4769
 
echo "$ac_t""$ac_cv_sys_procfs_exe_link" 1>&6
 
13060
echo "$as_me:$LINENO: result: $ac_cv_sys_procfs_exe_link" >&5
 
13061
echo "${ECHO_T}$ac_cv_sys_procfs_exe_link" >&6
4770
13062
 
4771
13063
  if test "$ac_cv_sys_procfs_exe_link" != no; then
4772
 
    cat >> confdefs.h <<EOF
 
13064
 
 
13065
cat >>confdefs.h <<_ACEOF
4773
13066
#define PROCFS_EXE_LINK "$ac_cv_sys_procfs_exe_link"
4774
 
EOF
 
13067
_ACEOF
4775
13068
 
4776
13069
  fi
4777
13070
 
4779
13072
#--------------------------------------------------------------------
4780
13073
# Check if /proc/$$/cmdline terminates the last argument with a nul
4781
13074
#--------------------------------------------------------------------
4782
 
echo $ac_n "checking /proc/$$/cmdline terminated by nul""... $ac_c" 1>&6
4783
 
echo "configure:4784: checking /proc/$$/cmdline terminated by nul" >&5
 
13075
echo "$as_me:$LINENO: checking /proc/$$/cmdline terminated by nul" >&5
 
13076
echo $ECHO_N "checking /proc/$$/cmdline terminated by nul... $ECHO_C" >&6
4784
13077
if test "$cross_compiling" = yes; then
4785
13078
  CMDLINE_TERMINATED=0
4786
13079
else
4787
 
  cat > conftest.$ac_ext <<EOF
4788
 
#line 4789 "configure"
4789
 
#include "confdefs.h"
 
13080
  cat >conftest.$ac_ext <<_ACEOF
 
13081
/* confdefs.h.  */
 
13082
_ACEOF
 
13083
cat confdefs.h >>conftest.$ac_ext
 
13084
cat >>conftest.$ac_ext <<_ACEOF
 
13085
/* end confdefs.h.  */
4790
13086
#include "$srcdir/config/config.proccmd.c"
4791
 
EOF
4792
 
if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4793
 
then
 
13087
_ACEOF
 
13088
rm -f conftest$ac_exeext
 
13089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13090
  (eval $ac_link) 2>&5
 
13091
  ac_status=$?
 
13092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13093
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13095
  (eval $ac_try) 2>&5
 
13096
  ac_status=$?
 
13097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13098
  (exit $ac_status); }; }; then
4794
13099
  CMDLINE_TERMINATED=1
4795
13100
else
4796
 
  echo "configure: failed program was:" >&5
4797
 
  cat conftest.$ac_ext >&5
4798
 
  rm -fr conftest*
4799
 
  CMDLINE_TERMINATED=0
4800
 
fi
4801
 
rm -fr conftest*
4802
 
fi
4803
 
 
4804
 
cat >> confdefs.h <<EOF
 
13101
  echo "$as_me: program exited with status $ac_status" >&5
 
13102
echo "$as_me: failed program was:" >&5
 
13103
sed 's/^/| /' conftest.$ac_ext >&5
 
13104
 
 
13105
( exit $ac_status )
 
13106
CMDLINE_TERMINATED=0
 
13107
fi
 
13108
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13109
fi
 
13110
 
 
13111
cat >>confdefs.h <<_ACEOF
4805
13112
#define CMDLINE_TERMINATED $CMDLINE_TERMINATED
4806
 
EOF
 
13113
_ACEOF
4807
13114
 
4808
13115
if test $CMDLINE_TERMINATED = 1; then
4809
 
  echo "$ac_t""yes" 1>&6
4810
 
else
4811
 
  echo "$ac_t""no" 1>&6
4812
 
fi
4813
 
 
4814
 
#--------------------------------------------------------------------
4815
 
# Check if short and int values need to be word aligned
4816
 
#--------------------------------------------------------------------
4817
 
echo $ac_n "checking short/int needs to be word aligned""... $ac_c" 1>&6
4818
 
echo "configure:4819: checking short/int needs to be word aligned" >&5
4819
 
if test "$cross_compiling" = yes; then
4820
 
  NEED_WORD_ALIGNMENT=1
4821
 
else
4822
 
  cat > conftest.$ac_ext <<EOF
4823
 
#line 4824 "configure"
4824
 
#include "confdefs.h"
4825
 
#include "$srcdir/config/config.align.c"
4826
 
EOF
4827
 
if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4828
 
then
4829
 
  NEED_WORD_ALIGNMENT=0
4830
 
else
4831
 
  echo "configure: failed program was:" >&5
4832
 
  cat conftest.$ac_ext >&5
4833
 
  rm -fr conftest*
4834
 
  NEED_WORD_ALIGNMENT=1
4835
 
fi
4836
 
rm -fr conftest*
4837
 
fi
4838
 
 
4839
 
cat >> confdefs.h <<EOF
4840
 
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
4841
 
EOF
4842
 
 
4843
 
if test $NEED_WORD_ALIGNMENT = 1; then
4844
 
  echo "$ac_t""yes" 1>&6
4845
 
else
4846
 
  echo "$ac_t""no" 1>&6
 
13116
  echo "$as_me:$LINENO: result: yes" >&5
 
13117
echo "${ECHO_T}yes" >&6
 
13118
else
 
13119
  echo "$as_me:$LINENO: result: no" >&5
 
13120
echo "${ECHO_T}no" >&6
 
13121
fi
 
13122
 
 
13123
#--------------------------------------------------------------------
 
13124
# If /proc doesn't work, try kvm (on FreeBSD, for instance)
 
13125
#--------------------------------------------------------------------
 
13126
have_kvm_env=0
 
13127
save_LIBS="$LIBS"
 
13128
 
 
13129
echo "$as_me:$LINENO: checking for kvm_getenvv in -lkvm" >&5
 
13130
echo $ECHO_N "checking for kvm_getenvv in -lkvm... $ECHO_C" >&6
 
13131
if test "${ac_cv_lib_kvm_kvm_getenvv+set}" = set; then
 
13132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13133
else
 
13134
  ac_check_lib_save_LIBS=$LIBS
 
13135
LIBS="-lkvm  $LIBS"
 
13136
cat >conftest.$ac_ext <<_ACEOF
 
13137
/* confdefs.h.  */
 
13138
_ACEOF
 
13139
cat confdefs.h >>conftest.$ac_ext
 
13140
cat >>conftest.$ac_ext <<_ACEOF
 
13141
/* end confdefs.h.  */
 
13142
 
 
13143
/* Override any gcc2 internal prototype to avoid an error.  */
 
13144
#ifdef __cplusplus
 
13145
extern "C"
 
13146
#endif
 
13147
/* We use char because int might match the return type of a gcc2
 
13148
   builtin and then its argument prototype would still apply.  */
 
13149
char kvm_getenvv ();
 
13150
int
 
13151
main ()
 
13152
{
 
13153
kvm_getenvv ();
 
13154
  ;
 
13155
  return 0;
 
13156
}
 
13157
_ACEOF
 
13158
rm -f conftest.$ac_objext conftest$ac_exeext
 
13159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13160
  (eval $ac_link) 2>conftest.er1
 
13161
  ac_status=$?
 
13162
  grep -v '^ *+' conftest.er1 >conftest.err
 
13163
  rm -f conftest.er1
 
13164
  cat conftest.err >&5
 
13165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13166
  (exit $ac_status); } &&
 
13167
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13169
  (eval $ac_try) 2>&5
 
13170
  ac_status=$?
 
13171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13172
  (exit $ac_status); }; } &&
 
13173
         { ac_try='test -s conftest$ac_exeext'
 
13174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13175
  (eval $ac_try) 2>&5
 
13176
  ac_status=$?
 
13177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13178
  (exit $ac_status); }; }; then
 
13179
  ac_cv_lib_kvm_kvm_getenvv=yes
 
13180
else
 
13181
  echo "$as_me: failed program was:" >&5
 
13182
sed 's/^/| /' conftest.$ac_ext >&5
 
13183
 
 
13184
ac_cv_lib_kvm_kvm_getenvv=no
 
13185
fi
 
13186
rm -f conftest.err conftest.$ac_objext \
 
13187
      conftest$ac_exeext conftest.$ac_ext
 
13188
LIBS=$ac_check_lib_save_LIBS
 
13189
fi
 
13190
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
 
13191
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_getenvv" >&6
 
13192
if test $ac_cv_lib_kvm_kvm_getenvv = yes; then
 
13193
  cat >>confdefs.h <<_ACEOF
 
13194
#define HAVE_LIBKVM 1
 
13195
_ACEOF
 
13196
 
 
13197
  LIBS="-lkvm $LIBS"
 
13198
 
 
13199
fi
 
13200
 
 
13201
if test "$ac_cv_lib_kvm_kvm_getenvv" = yes; then
 
13202
  echo "$as_me:$LINENO: checking if we can access kernel memory" >&5
 
13203
echo $ECHO_N "checking if we can access kernel memory... $ECHO_C" >&6
 
13204
  if test "$cross_compiling" = yes; then
 
13205
  have_kvm_env=0
 
13206
else
 
13207
  cat >conftest.$ac_ext <<_ACEOF
 
13208
/* confdefs.h.  */
 
13209
_ACEOF
 
13210
cat confdefs.h >>conftest.$ac_ext
 
13211
cat >>conftest.$ac_ext <<_ACEOF
 
13212
/* end confdefs.h.  */
 
13213
#include "$srcdir/config/config.kvmopen.c"
 
13214
_ACEOF
 
13215
rm -f conftest$ac_exeext
 
13216
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13217
  (eval $ac_link) 2>&5
 
13218
  ac_status=$?
 
13219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13220
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13222
  (eval $ac_try) 2>&5
 
13223
  ac_status=$?
 
13224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13225
  (exit $ac_status); }; }; then
 
13226
  have_kvm_env=1
 
13227
else
 
13228
  echo "$as_me: program exited with status $ac_status" >&5
 
13229
echo "$as_me: failed program was:" >&5
 
13230
sed 's/^/| /' conftest.$ac_ext >&5
 
13231
 
 
13232
( exit $ac_status )
 
13233
have_kvm_env=0
 
13234
fi
 
13235
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13236
fi
 
13237
  if test $have_kvm_env = 1; then
 
13238
    echo "$as_me:$LINENO: result: yes" >&5
 
13239
echo "${ECHO_T}yes" >&6
 
13240
 
 
13241
cat >>confdefs.h <<\_ACEOF
 
13242
#define HAVE_KVM_ENV 1
 
13243
_ACEOF
 
13244
 
 
13245
  else
 
13246
    echo "$as_me:$LINENO: result: no" >&5
 
13247
echo "${ECHO_T}no" >&6
 
13248
    # Reset LIBS since we don't need kvm
 
13249
    LIBS="$save_LIBS"
 
13250
  fi
4847
13251
fi
4848
13252
 
4849
13253
#--------------------------------------------------------------------
4851
13255
# On some systems - force redefinition to be used as the /proc stuff
4852
13256
# doesn't work. Allow NSProcessInfo initialization method also.
4853
13257
#--------------------------------------------------------------------
4854
 
echo $ac_n "checking "use of pass-through arguments"""... $ac_c" 1>&6
4855
 
echo "configure:4856: checking "use of pass-through arguments"" >&5
 
13258
PASS_ARG=no
 
13259
case "$target_os" in
 
13260
  cygwin*)      PASS_ARG=yes;;
 
13261
esac
 
13262
 
 
13263
echo "$as_me:$LINENO: checking \"use of pass-through arguments\"" >&5
 
13264
echo $ECHO_N "checking \"use of pass-through arguments\"... $ECHO_C" >&6
4856
13265
# Check whether --enable-pass-arguments or --disable-pass-arguments was given.
4857
13266
if test "${enable_pass_arguments+set}" = set; then
4858
13267
  enableval="$enable_pass_arguments"
4859
 
  :
 
13268
 
4860
13269
else
4861
 
  enable_pass_arguments=no
4862
 
fi
4863
 
 
4864
 
 
4865
 
case "$target_os" in
4866
 
  cygwin*)      enable_pass_arguments=yes;;
4867
 
esac
 
13270
  enable_pass_arguments=$PASS_ARG
 
13271
fi;
 
13272
 
4868
13273
if test "$enable_pass_arguments" = "yes"; then
4869
13274
  GS_PASS_ARGUMENTS=1
4870
13275
else
4871
13276
  GS_PASS_ARGUMENTS=0
4872
13277
fi
4873
13278
 
4874
 
echo "$ac_t""$enable_pass_arguments" 1>&6
 
13279
echo "$as_me:$LINENO: result: $enable_pass_arguments" >&5
 
13280
echo "${ECHO_T}$enable_pass_arguments" >&6
4875
13281
 
4876
 
echo $ac_n "checking "use of fake-main definition"""... $ac_c" 1>&6
4877
 
echo "configure:4878: checking "use of fake-main definition"" >&5
 
13282
echo "$as_me:$LINENO: checking \"use of fake-main definition\"" >&5
 
13283
echo $ECHO_N "checking \"use of fake-main definition\"... $ECHO_C" >&6
4878
13284
# Check whether --enable-fake-main or --disable-fake-main was given.
4879
13285
if test "${enable_fake_main+set}" = set; then
4880
13286
  enableval="$enable_fake_main"
4881
 
  :
 
13287
 
4882
13288
else
4883
13289
  enable_fake_main=no
4884
 
fi
4885
 
 
 
13290
fi;
4886
13291
 
4887
13292
if test "$enable_pass_arguments" = "no"; then
4888
13293
  case "$target_os" in
4898
13303
if test "$enable_fake_main" = "yes"; then
4899
13304
  GS_FAKE_MAIN=1
4900
13305
elif test "$enable_pass_arguments" = "no"; then
4901
 
  if test "$objc_load_method_worked" = yes -a "$ac_cv_sys_procfs" = yes; then
 
13306
  if test "$objc_load_method_worked" = yes -a \( "$ac_cv_sys_procfs" = yes -o "$have_kvm_env" = 1 \); then
4902
13307
    GS_FAKE_MAIN=0
4903
13308
  else
4904
13309
    GS_FAKE_MAIN=1
4909
13314
    mingw*)     enable_fake_main=no; GS_FAKE_MAIN=0;;
4910
13315
esac
4911
13316
 
4912
 
echo "$ac_t""$enable_fake_main" 1>&6
 
13317
echo "$as_me:$LINENO: result: $enable_fake_main" >&5
 
13318
echo "${ECHO_T}$enable_fake_main" >&6
 
13319
 
 
13320
#--------------------------------------------------------------------
 
13321
# Simple way to add a bunch of paths to the flags
 
13322
#--------------------------------------------------------------------
 
13323
 
 
13324
# Check whether --with-include-flags or --without-include-flags was given.
 
13325
if test "${with_include_flags+set}" = set; then
 
13326
  withval="$with_include_flags"
 
13327
  include_flags="$withval"
 
13328
else
 
13329
  include_flags="no"
 
13330
fi;
 
13331
if test ${include_flags} != "no"; then
 
13332
    CPPFLAGS="$CPPFLAGS ${include_flags}"
 
13333
    INCLUDE_FLAGS="$INCLUDE_FLAGS ${include_flags}"
 
13334
fi
 
13335
 
 
13336
 
 
13337
# Check whether --with-library-flags or --without-library-flags was given.
 
13338
if test "${with_library_flags+set}" = set; then
 
13339
  withval="$with_library_flags"
 
13340
  library_flags="$withval"
 
13341
else
 
13342
  library_flags="no"
 
13343
fi;
 
13344
if test ${library_flags} != "no"; then
 
13345
    LDFLAGS="$LDFLAGS ${library_flags}"
 
13346
    LDIR_FLAGS="$LDIR_FLAGS ${library_flags}"
 
13347
fi
4913
13348
 
4914
13349
#--------------------------------------------------------------------
4915
13350
# Check for FFI interface libraries for invocations
4916
13351
# We enable ffcall by default now.
4917
13352
#--------------------------------------------------------------------
 
13353
do_enable_libffi=no
 
13354
# Enable libffi by default on the following machines
 
13355
case "$target_os" in
 
13356
    darwin*)    do_enable_libffi=yes;;
 
13357
esac
 
13358
 
4918
13359
# Check whether --enable-libffi or --disable-libffi was given.
4919
13360
if test "${enable_libffi+set}" = set; then
4920
13361
  enableval="$enable_libffi"
4921
 
  :
 
13362
 
4922
13363
else
4923
 
  enable_libffi=no
4924
 
fi
4925
 
 
4926
 
if test $enable_libffi = yes; then
4927
 
  echo "configure: warning: libffi support disabled" 1>&2
4928
 
  echo
4929
 
  echo "GNUstep requires more functionality than the ffi library"
4930
 
  echo "currently supports ... please use ffcall instead."
4931
 
  echo "libffi support will be added when the ffi library improves"
4932
 
  enable_libffi=no
4933
 
fi
 
13364
  enable_libffi=$do_enable_libffi
 
13365
fi;
4934
13366
 
4935
13367
# Check whether --enable-ffcall or --disable-ffcall was given.
4936
13368
if test "${enable_ffcall+set}" = set; then
4937
13369
  enableval="$enable_ffcall"
4938
 
  :
 
13370
 
4939
13371
else
4940
13372
  enable_ffcall=yes
4941
 
fi
4942
 
 
4943
 
 
4944
 
ac_safe=`echo "ffi.h" | sed 'y%./+-%__p_%'`
4945
 
echo $ac_n "checking for ffi.h""... $ac_c" 1>&6
4946
 
echo "configure:4947: checking for ffi.h" >&5
4947
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948
 
  echo $ac_n "(cached) $ac_c" 1>&6
4949
 
else
4950
 
  cat > conftest.$ac_ext <<EOF
4951
 
#line 4952 "configure"
4952
 
#include "confdefs.h"
4953
 
#include <ffi.h>
4954
 
EOF
4955
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956
 
{ (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4958
 
if test -z "$ac_err"; then
4959
 
  rm -rf conftest*
4960
 
  eval "ac_cv_header_$ac_safe=yes"
4961
 
else
4962
 
  echo "$ac_err" >&5
4963
 
  echo "configure: failed program was:" >&5
4964
 
  cat conftest.$ac_ext >&5
4965
 
  rm -rf conftest*
4966
 
  eval "ac_cv_header_$ac_safe=no"
4967
 
fi
4968
 
rm -f conftest*
4969
 
fi
4970
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971
 
  echo "$ac_t""yes" 1>&6
4972
 
  :
4973
 
else
4974
 
  echo "$ac_t""no" 1>&6
4975
 
enable_libffi=no
4976
 
fi
4977
 
 
4978
 
 
4979
 
echo $ac_n "checking "for forwarding callback in runtime"""... $ac_c" 1>&6
4980
 
echo "configure:4981: checking "for forwarding callback in runtime"" >&5
4981
 
cat > conftest.$ac_ext <<EOF
4982
 
#line 4983 "configure"
4983
 
#include "confdefs.h"
4984
 
#include <objc/objc-api.h>
4985
 
EOF
4986
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987
 
  egrep "__objc_msg_forward" >/dev/null 2>&1; then
4988
 
  rm -rf conftest*
4989
 
  echo "$ac_t""yes" 1>&6
4990
 
else
4991
 
  rm -rf conftest*
4992
 
  echo "$ac_t""no" 1>&6; enable_ffcall=no
4993
 
fi
4994
 
rm -f conftest*
4995
 
 
4996
 
for ac_hdr in callback.h
 
13373
fi;
 
13374
 
 
13375
# Check whether --enable-do or --disable-do was given.
 
13376
if test "${enable_do+set}" = set; then
 
13377
  enableval="$enable_do"
 
13378
 
 
13379
else
 
13380
  enable_do=yes
 
13381
fi;
 
13382
 
 
13383
# DO isn't used on apple-apple-apple
 
13384
if test $LIBRARY_COMBO = apple-apple-apple; then
 
13385
  enable_do=no
 
13386
fi
 
13387
 
 
13388
 
 
13389
# Check whether --with-ffi-include or --without-ffi-include was given.
 
13390
if test "${with_ffi_include+set}" = set; then
 
13391
  withval="$with_ffi_include"
 
13392
  ffi_incdir="$withval"
 
13393
else
 
13394
  ffi_incdir="no"
 
13395
fi;
 
13396
if test ${ffi_incdir} != "no"; then
 
13397
    CPPFLAGS="$CPPFLAGS -I${ffi_incdir}"
 
13398
    INCLUDE_FLAGS="$INCLUDE_FLAGS -I${ffi_incdir}"
 
13399
fi
 
13400
 
 
13401
 
 
13402
# Check whether --with-ffi-library or --without-ffi-library was given.
 
13403
if test "${with_ffi_library+set}" = set; then
 
13404
  withval="$with_ffi_library"
 
13405
  ffi_libdir="$withval"
 
13406
else
 
13407
  ffi_libdir="no"
 
13408
fi;
 
13409
if test ${ffi_libdir} != "no"; then
 
13410
    LDFLAGS="$LDFLAGS -L${ffi_libdir}"
 
13411
    LDIR_FLAGS="$LDIR_FLAGS -L${ffi_libdir}"
 
13412
fi
 
13413
 
 
13414
if test "${ac_cv_header_ffi_h+set}" = set; then
 
13415
  echo "$as_me:$LINENO: checking for ffi.h" >&5
 
13416
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
 
13417
if test "${ac_cv_header_ffi_h+set}" = set; then
 
13418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13419
fi
 
13420
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
 
13421
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
 
13422
else
 
13423
  # Is the header compilable?
 
13424
echo "$as_me:$LINENO: checking ffi.h usability" >&5
 
13425
echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6
 
13426
cat >conftest.$ac_ext <<_ACEOF
 
13427
/* confdefs.h.  */
 
13428
_ACEOF
 
13429
cat confdefs.h >>conftest.$ac_ext
 
13430
cat >>conftest.$ac_ext <<_ACEOF
 
13431
/* end confdefs.h.  */
 
13432
$ac_includes_default
 
13433
#include <ffi.h>
 
13434
_ACEOF
 
13435
rm -f conftest.$ac_objext
 
13436
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13437
  (eval $ac_compile) 2>conftest.er1
 
13438
  ac_status=$?
 
13439
  grep -v '^ *+' conftest.er1 >conftest.err
 
13440
  rm -f conftest.er1
 
13441
  cat conftest.err >&5
 
13442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13443
  (exit $ac_status); } &&
 
13444
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13446
  (eval $ac_try) 2>&5
 
13447
  ac_status=$?
 
13448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13449
  (exit $ac_status); }; } &&
 
13450
         { ac_try='test -s conftest.$ac_objext'
 
13451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13452
  (eval $ac_try) 2>&5
 
13453
  ac_status=$?
 
13454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13455
  (exit $ac_status); }; }; then
 
13456
  ac_header_compiler=yes
 
13457
else
 
13458
  echo "$as_me: failed program was:" >&5
 
13459
sed 's/^/| /' conftest.$ac_ext >&5
 
13460
 
 
13461
ac_header_compiler=no
 
13462
fi
 
13463
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13464
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13465
echo "${ECHO_T}$ac_header_compiler" >&6
 
13466
 
 
13467
# Is the header present?
 
13468
echo "$as_me:$LINENO: checking ffi.h presence" >&5
 
13469
echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6
 
13470
cat >conftest.$ac_ext <<_ACEOF
 
13471
/* confdefs.h.  */
 
13472
_ACEOF
 
13473
cat confdefs.h >>conftest.$ac_ext
 
13474
cat >>conftest.$ac_ext <<_ACEOF
 
13475
/* end confdefs.h.  */
 
13476
#include <ffi.h>
 
13477
_ACEOF
 
13478
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13479
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13480
  ac_status=$?
 
13481
  grep -v '^ *+' conftest.er1 >conftest.err
 
13482
  rm -f conftest.er1
 
13483
  cat conftest.err >&5
 
13484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13485
  (exit $ac_status); } >/dev/null; then
 
13486
  if test -s conftest.err; then
 
13487
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13488
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13489
  else
 
13490
    ac_cpp_err=
 
13491
  fi
 
13492
else
 
13493
  ac_cpp_err=yes
 
13494
fi
 
13495
if test -z "$ac_cpp_err"; then
 
13496
  ac_header_preproc=yes
 
13497
else
 
13498
  echo "$as_me: failed program was:" >&5
 
13499
sed 's/^/| /' conftest.$ac_ext >&5
 
13500
 
 
13501
  ac_header_preproc=no
 
13502
fi
 
13503
rm -f conftest.err conftest.$ac_ext
 
13504
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13505
echo "${ECHO_T}$ac_header_preproc" >&6
 
13506
 
 
13507
# So?  What about this header?
 
13508
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13509
  yes:no: )
 
13510
    { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
13511
echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13512
    { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
 
13513
echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
 
13514
    ac_header_preproc=yes
 
13515
    ;;
 
13516
  no:yes:* )
 
13517
    { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
 
13518
echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
 
13519
    { echo "$as_me:$LINENO: WARNING: ffi.h:     check for missing prerequisite headers?" >&5
 
13520
echo "$as_me: WARNING: ffi.h:     check for missing prerequisite headers?" >&2;}
 
13521
    { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
 
13522
echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
 
13523
    { echo "$as_me:$LINENO: WARNING: ffi.h:     section \"Present But Cannot Be Compiled\"" >&5
 
13524
echo "$as_me: WARNING: ffi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13525
    { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
 
13526
echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
 
13527
    { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
 
13528
echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
 
13529
    (
 
13530
      cat <<\_ASBOX
 
13531
## ------------------------------------------ ##
 
13532
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13533
## ------------------------------------------ ##
 
13534
_ASBOX
 
13535
    ) |
 
13536
      sed "s/^/$as_me: WARNING:     /" >&2
 
13537
    ;;
 
13538
esac
 
13539
echo "$as_me:$LINENO: checking for ffi.h" >&5
 
13540
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
 
13541
if test "${ac_cv_header_ffi_h+set}" = set; then
 
13542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13543
else
 
13544
  ac_cv_header_ffi_h=$ac_header_preproc
 
13545
fi
 
13546
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
 
13547
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
 
13548
 
 
13549
fi
 
13550
if test $ac_cv_header_ffi_h = yes; then
 
13551
  have_libffi=yes
 
13552
else
 
13553
  have_libffi=no
 
13554
fi
 
13555
 
 
13556
 
 
13557
 
 
13558
for ac_header in callback.h
4997
13559
do
4998
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4999
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5000
 
echo "configure:5001: checking for $ac_hdr" >&5
5001
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5002
 
  echo $ac_n "(cached) $ac_c" 1>&6
5003
 
else
5004
 
  cat > conftest.$ac_ext <<EOF
5005
 
#line 5006 "configure"
5006
 
#include "confdefs.h"
5007
 
#include <$ac_hdr>
5008
 
EOF
5009
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010
 
{ (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012
 
if test -z "$ac_err"; then
5013
 
  rm -rf conftest*
5014
 
  eval "ac_cv_header_$ac_safe=yes"
5015
 
else
5016
 
  echo "$ac_err" >&5
5017
 
  echo "configure: failed program was:" >&5
5018
 
  cat conftest.$ac_ext >&5
5019
 
  rm -rf conftest*
5020
 
  eval "ac_cv_header_$ac_safe=no"
5021
 
fi
5022
 
rm -f conftest*
5023
 
fi
5024
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025
 
  echo "$ac_t""yes" 1>&6
5026
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5027
 
  cat >> confdefs.h <<EOF
5028
 
#define $ac_tr_hdr 1
5029
 
EOF
5030
 
 
5031
 
else
5032
 
  echo "$ac_t""no" 1>&6
5033
 
enable_ffcall=no
5034
 
fi
 
13560
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13561
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13562
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13563
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13564
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13566
fi
 
13567
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13568
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13569
else
 
13570
  # Is the header compilable?
 
13571
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13572
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13573
cat >conftest.$ac_ext <<_ACEOF
 
13574
/* confdefs.h.  */
 
13575
_ACEOF
 
13576
cat confdefs.h >>conftest.$ac_ext
 
13577
cat >>conftest.$ac_ext <<_ACEOF
 
13578
/* end confdefs.h.  */
 
13579
$ac_includes_default
 
13580
#include <$ac_header>
 
13581
_ACEOF
 
13582
rm -f conftest.$ac_objext
 
13583
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13584
  (eval $ac_compile) 2>conftest.er1
 
13585
  ac_status=$?
 
13586
  grep -v '^ *+' conftest.er1 >conftest.err
 
13587
  rm -f conftest.er1
 
13588
  cat conftest.err >&5
 
13589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13590
  (exit $ac_status); } &&
 
13591
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13593
  (eval $ac_try) 2>&5
 
13594
  ac_status=$?
 
13595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13596
  (exit $ac_status); }; } &&
 
13597
         { ac_try='test -s conftest.$ac_objext'
 
13598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13599
  (eval $ac_try) 2>&5
 
13600
  ac_status=$?
 
13601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13602
  (exit $ac_status); }; }; then
 
13603
  ac_header_compiler=yes
 
13604
else
 
13605
  echo "$as_me: failed program was:" >&5
 
13606
sed 's/^/| /' conftest.$ac_ext >&5
 
13607
 
 
13608
ac_header_compiler=no
 
13609
fi
 
13610
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13611
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13612
echo "${ECHO_T}$ac_header_compiler" >&6
 
13613
 
 
13614
# Is the header present?
 
13615
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13616
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13617
cat >conftest.$ac_ext <<_ACEOF
 
13618
/* confdefs.h.  */
 
13619
_ACEOF
 
13620
cat confdefs.h >>conftest.$ac_ext
 
13621
cat >>conftest.$ac_ext <<_ACEOF
 
13622
/* end confdefs.h.  */
 
13623
#include <$ac_header>
 
13624
_ACEOF
 
13625
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13626
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13627
  ac_status=$?
 
13628
  grep -v '^ *+' conftest.er1 >conftest.err
 
13629
  rm -f conftest.er1
 
13630
  cat conftest.err >&5
 
13631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13632
  (exit $ac_status); } >/dev/null; then
 
13633
  if test -s conftest.err; then
 
13634
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13635
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13636
  else
 
13637
    ac_cpp_err=
 
13638
  fi
 
13639
else
 
13640
  ac_cpp_err=yes
 
13641
fi
 
13642
if test -z "$ac_cpp_err"; then
 
13643
  ac_header_preproc=yes
 
13644
else
 
13645
  echo "$as_me: failed program was:" >&5
 
13646
sed 's/^/| /' conftest.$ac_ext >&5
 
13647
 
 
13648
  ac_header_preproc=no
 
13649
fi
 
13650
rm -f conftest.err conftest.$ac_ext
 
13651
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13652
echo "${ECHO_T}$ac_header_preproc" >&6
 
13653
 
 
13654
# So?  What about this header?
 
13655
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13656
  yes:no: )
 
13657
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13658
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13659
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13660
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13661
    ac_header_preproc=yes
 
13662
    ;;
 
13663
  no:yes:* )
 
13664
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13665
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13666
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13667
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13668
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13669
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13670
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13671
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13672
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13673
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13674
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13675
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13676
    (
 
13677
      cat <<\_ASBOX
 
13678
## ------------------------------------------ ##
 
13679
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13680
## ------------------------------------------ ##
 
13681
_ASBOX
 
13682
    ) |
 
13683
      sed "s/^/$as_me: WARNING:     /" >&2
 
13684
    ;;
 
13685
esac
 
13686
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13690
else
 
13691
  eval "$as_ac_Header=\$ac_header_preproc"
 
13692
fi
 
13693
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13694
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13695
 
 
13696
fi
 
13697
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13698
  cat >>confdefs.h <<_ACEOF
 
13699
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13700
_ACEOF
 
13701
 have_ffcall=yes
 
13702
else
 
13703
  have_ffcall=no
 
13704
fi
 
13705
 
5035
13706
done
5036
13707
 
5037
 
 
5038
 
echo $ac_n "checking "FFI library usage"""... $ac_c" 1>&6
5039
 
echo "configure:5040: checking "FFI library usage"" >&5
 
13708
if test $have_ffcall = no; then
 
13709
  enable_ffcall=no
 
13710
  # If we don't have ffcall but do have libffi, use libffi
 
13711
  if test $have_libffi = yes; then
 
13712
    enable_libffi=yes
 
13713
  fi
 
13714
fi
 
13715
if test $have_libffi = no; then
 
13716
  enable_libffi=no
 
13717
fi
 
13718
 
 
13719
have_forward_hook=yes
 
13720
saved_CPPFLAGS="$CPPFLAGS"
 
13721
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
 
13722
echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
 
13723
echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
 
13724
cat >conftest.$ac_ext <<_ACEOF
 
13725
#include "$srcdir/config/config.forward.m"
 
13726
_ACEOF
 
13727
rm -f conftest.$ac_objext
 
13728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13729
  (eval $ac_compile) 2>conftest.er1
 
13730
  ac_status=$?
 
13731
  grep -v '^ *+' conftest.er1 >conftest.err
 
13732
  rm -f conftest.er1
 
13733
  cat conftest.err >&5
 
13734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13735
  (exit $ac_status); } &&
 
13736
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13738
  (eval $ac_try) 2>&5
 
13739
  ac_status=$?
 
13740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13741
  (exit $ac_status); }; } &&
 
13742
         { ac_try='test -s conftest.$ac_objext'
 
13743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13744
  (eval $ac_try) 2>&5
 
13745
  ac_status=$?
 
13746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13747
  (exit $ac_status); }; }; then
 
13748
  have_forward_hook=yes
 
13749
else
 
13750
  echo "$as_me: failed program was:" >&5
 
13751
sed 's/^/| /' conftest.$ac_ext >&5
 
13752
 
 
13753
have_forward_hook=no
 
13754
fi
 
13755
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13756
echo "$as_me:$LINENO: result: $have_forward_hook" >&5
 
13757
echo "${ECHO_T}$have_forward_hook" >&6
 
13758
if test $have_forward_hook = no; then
 
13759
  enable_libffi=no
 
13760
  enable_ffcall=no
 
13761
fi
 
13762
CPPFLAGS="$saved_CPPFLAGS"
 
13763
 
 
13764
echo "$as_me:$LINENO: checking \"FFI library usage\"" >&5
 
13765
echo $ECHO_N "checking \"FFI library usage\"... $ECHO_C" >&6
5040
13766
WITH_FFI=none
5041
13767
if test $enable_libffi = yes; then
5042
 
  cat >> confdefs.h <<\EOF
 
13768
 
 
13769
cat >>confdefs.h <<\_ACEOF
5043
13770
#define USE_LIBFFI 1
5044
 
EOF
 
13771
_ACEOF
5045
13772
 
5046
13773
  WITH_FFI=libffi
5047
 
  LIBS="$LIBS -lffi"
5048
 
  echo "$ac_t""libffi" 1>&6
 
13774
  LIBS="-lffi $LIBS"
 
13775
  cat >conftest.$ac_ext <<_ACEOF
 
13776
/* confdefs.h.  */
 
13777
_ACEOF
 
13778
cat confdefs.h >>conftest.$ac_ext
 
13779
cat >>conftest.$ac_ext <<_ACEOF
 
13780
/* end confdefs.h.  */
 
13781
#include <ffi.h>
 
13782
int
 
13783
main ()
 
13784
{
 
13785
 
 
13786
  ;
 
13787
  return 0;
 
13788
}
 
13789
_ACEOF
 
13790
rm -f conftest.$ac_objext conftest$ac_exeext
 
13791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13792
  (eval $ac_link) 2>conftest.er1
 
13793
  ac_status=$?
 
13794
  grep -v '^ *+' conftest.er1 >conftest.err
 
13795
  rm -f conftest.er1
 
13796
  cat conftest.err >&5
 
13797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13798
  (exit $ac_status); } &&
 
13799
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13801
  (eval $ac_try) 2>&5
 
13802
  ac_status=$?
 
13803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13804
  (exit $ac_status); }; } &&
 
13805
         { ac_try='test -s conftest$ac_exeext'
 
13806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13807
  (eval $ac_try) 2>&5
 
13808
  ac_status=$?
 
13809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13810
  (exit $ac_status); }; }; then
 
13811
  ffi_ok="yes"
 
13812
else
 
13813
  echo "$as_me: failed program was:" >&5
 
13814
sed 's/^/| /' conftest.$ac_ext >&5
 
13815
 
 
13816
ffi_ok="no"
 
13817
fi
 
13818
rm -f conftest.err conftest.$ac_objext \
 
13819
      conftest$ac_exeext conftest.$ac_ext
 
13820
  if test $ffi_ok = yes; then
 
13821
    echo "$as_me:$LINENO: result: libffi" >&5
 
13822
echo "${ECHO_T}libffi" >&6
 
13823
  fi
5049
13824
elif test $enable_ffcall = yes; then
5050
 
  cat >> confdefs.h <<\EOF
 
13825
 
 
13826
cat >>confdefs.h <<\_ACEOF
5051
13827
#define USE_FFCALL 1
5052
 
EOF
 
13828
_ACEOF
5053
13829
 
5054
13830
  WITH_FFI=ffcall
5055
 
  LIBS="$LIBS -lcallback -lavcall"
5056
 
  echo "$ac_t""ffcall" 1>&6
5057
 
else
5058
 
  echo "$ac_t""none" 1>&6
5059
 
  echo "configure: warning: No ffcall interface library found" 1>&2
 
13831
  LIBS="-lcallback -lavcall $LIBS"
 
13832
  cat >conftest.$ac_ext <<_ACEOF
 
13833
/* confdefs.h.  */
 
13834
_ACEOF
 
13835
cat confdefs.h >>conftest.$ac_ext
 
13836
cat >>conftest.$ac_ext <<_ACEOF
 
13837
/* end confdefs.h.  */
 
13838
#include <callback.h>
 
13839
int
 
13840
main ()
 
13841
{
 
13842
 
 
13843
  ;
 
13844
  return 0;
 
13845
}
 
13846
_ACEOF
 
13847
rm -f conftest.$ac_objext conftest$ac_exeext
 
13848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13849
  (eval $ac_link) 2>conftest.er1
 
13850
  ac_status=$?
 
13851
  grep -v '^ *+' conftest.er1 >conftest.err
 
13852
  rm -f conftest.er1
 
13853
  cat conftest.err >&5
 
13854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13855
  (exit $ac_status); } &&
 
13856
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13858
  (eval $ac_try) 2>&5
 
13859
  ac_status=$?
 
13860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13861
  (exit $ac_status); }; } &&
 
13862
         { ac_try='test -s conftest$ac_exeext'
 
13863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13864
  (eval $ac_try) 2>&5
 
13865
  ac_status=$?
 
13866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13867
  (exit $ac_status); }; }; then
 
13868
  ffi_ok="yes"
 
13869
else
 
13870
  echo "$as_me: failed program was:" >&5
 
13871
sed 's/^/| /' conftest.$ac_ext >&5
 
13872
 
 
13873
ffi_ok="no"
 
13874
fi
 
13875
rm -f conftest.err conftest.$ac_objext \
 
13876
      conftest$ac_exeext conftest.$ac_ext
 
13877
  if test $ffi_ok = yes; then
 
13878
    echo "$as_me:$LINENO: result: ffcall" >&5
 
13879
echo "${ECHO_T}ffcall" >&6
 
13880
  fi
 
13881
else
 
13882
  ffi_ok=no
 
13883
fi
 
13884
 
 
13885
if test $ffi_ok = no; then
 
13886
  echo "$as_me:$LINENO: result: none" >&5
 
13887
echo "${ECHO_T}none" >&6
5060
13888
  echo
5061
 
  echo "GNUstep requires the ffcall library to do invocations and DO"
5062
 
  echo "Make sure this library is installed (see installation instructions)"
5063
 
  echo "Otherwise DO will not be compatible with other systems"
5064
 
fi
5065
 
 
 
13889
  if test $have_forward_hook = no; then
 
13890
    echo "You do not have an up-to-date libobjc library installed"
 
13891
  else
 
13892
    echo "You do not have either ffcall or libffi installed, or configure needs"
 
13893
    echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them"
 
13894
  fi
 
13895
  echo "GNUstep requires ffcall or libffi and proper libobjc hooks to do"
 
13896
  echo "invocations and DO."
 
13897
  echo "(This does not apply on apple-apple-apple systems where DO is"
 
13898
  echo "not compatible with other GNUstep systems.)"
 
13899
  if test $enable_do = yes; then
 
13900
    echo
 
13901
    echo "You most likely do not want to build base without DO support. Many"
 
13902
    echo "things, including all applications, won't work at all without DO."
 
13903
    echo "If you really want to build -base without DO support, add --disable-do"
 
13904
    echo "to the configure arguments."
 
13905
    echo "For more information, read the GNUstep build guide, ffcall section:"
 
13906
    echo "http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACES"
 
13907
    { { echo "$as_me:$LINENO: error: Incomplete support for ffi functionality." >&5
 
13908
echo "$as_me: error: Incomplete support for ffi functionality." >&2;}
 
13909
   { (exit 1); exit 1; }; }
 
13910
  fi
 
13911
  { echo "$as_me:$LINENO: WARNING: Incomplete support for ffi funtionality." >&5
 
13912
echo "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
 
13913
fi
 
13914
 
 
13915
 
 
13916
 
 
13917
#--------------------------------------------------------------------
 
13918
# Check for iconv support (for Unicode conversion).
 
13919
#--------------------------------------------------------------------
 
13920
# Do this before checking for xml2,  as xml2 may require iconv.
 
13921
#
 
13922
# We need to find an iconv library that matches the installed iconv.h header
 
13923
# (if any). It is important to check header/library compatibility. It's
 
13924
# fairly common to have iconv support both in libc and from libiconv. In that
 
13925
# case, a naive check that iconv() is in libc will succeed, but if we use
 
13926
# libiconv's iconv.h, it will redefine iconv() to functions that exist
 
13927
# only in libiconv, and we'll get link errors.
 
13928
#
 
13929
# First, check if there's a working iconv in libc (ie. if the test program
 
13930
# compiles and links without any extra flags).
 
13931
echo "$as_me:$LINENO: checking iconv support" >&5
 
13932
echo $ECHO_N "checking iconv support... $ECHO_C" >&6
 
13933
cat >conftest.$ac_ext <<_ACEOF
 
13934
#include <iconv.h>
 
13935
int main(int argc,char **argv) { iconv_open("foo","bar"); }
 
13936
 
 
13937
_ACEOF
 
13938
rm -f conftest.$ac_objext conftest$ac_exeext
 
13939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13940
  (eval $ac_link) 2>conftest.er1
 
13941
  ac_status=$?
 
13942
  grep -v '^ *+' conftest.er1 >conftest.err
 
13943
  rm -f conftest.er1
 
13944
  cat conftest.err >&5
 
13945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13946
  (exit $ac_status); } &&
 
13947
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13949
  (eval $ac_try) 2>&5
 
13950
  ac_status=$?
 
13951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13952
  (exit $ac_status); }; } &&
 
13953
         { ac_try='test -s conftest$ac_exeext'
 
13954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13955
  (eval $ac_try) 2>&5
 
13956
  ac_status=$?
 
13957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13958
  (exit $ac_status); }; }; then
 
13959
  # libc has a working iconv.
 
13960
 
 
13961
cat >>confdefs.h <<\_ACEOF
 
13962
#define HAVE_ICONV 1
 
13963
_ACEOF
 
13964
 
 
13965
  echo "$as_me:$LINENO: result: yes, in libc" >&5
 
13966
echo "${ECHO_T}yes, in libc" >&6
 
13967
  found_iconv=yes
 
13968
 
 
13969
else
 
13970
  echo "$as_me: failed program was:" >&5
 
13971
sed 's/^/| /' conftest.$ac_ext >&5
 
13972
 
 
13973
found_iconv=no
 
13974
 
 
13975
fi
 
13976
rm -f conftest.err conftest.$ac_objext \
 
13977
      conftest$ac_exeext conftest.$ac_ext
 
13978
 
 
13979
if test $found_iconv = no ; then
 
13980
  # libc doesn't have a working iconv. Try adding -liconv and any user
 
13981
  # supplied directory.
 
13982
 
 
13983
# Check whether --with-libiconv-library or --without-libiconv-library was given.
 
13984
if test "${with_libiconv_library+set}" = set; then
 
13985
  withval="$with_libiconv_library"
 
13986
  libiconv_libdir="$withval"
 
13987
else
 
13988
  libiconv_libdir="no"
 
13989
fi;
 
13990
 
 
13991
  if test "$libiconv_libdir" != "no"; then
 
13992
    LDFLAGS="$LDFLAGS -L$libiconv_libdir"
 
13993
    LDIR_FLAGS="$LDIR_FLAGS -L$libiconv_libdir"
 
13994
  fi
 
13995
 
 
13996
  old_LIBS="$LIBS"
 
13997
  LIBS="-liconv $LIBS"
 
13998
  cat >conftest.$ac_ext <<_ACEOF
 
13999
#include <iconv.h>
 
14000
  int main(int argc,char **argv) { iconv_open("foo","bar"); }
 
14001
 
 
14002
_ACEOF
 
14003
rm -f conftest.$ac_objext conftest$ac_exeext
 
14004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14005
  (eval $ac_link) 2>conftest.er1
 
14006
  ac_status=$?
 
14007
  grep -v '^ *+' conftest.er1 >conftest.err
 
14008
  rm -f conftest.er1
 
14009
  cat conftest.err >&5
 
14010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14011
  (exit $ac_status); } &&
 
14012
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14014
  (eval $ac_try) 2>&5
 
14015
  ac_status=$?
 
14016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14017
  (exit $ac_status); }; } &&
 
14018
         { ac_try='test -s conftest$ac_exeext'
 
14019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14020
  (eval $ac_try) 2>&5
 
14021
  ac_status=$?
 
14022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14023
  (exit $ac_status); }; }; then
 
14024
  # -liconv works.
 
14025
 
 
14026
cat >>confdefs.h <<\_ACEOF
 
14027
#define HAVE_ICONV 1
 
14028
_ACEOF
 
14029
 
 
14030
    echo "$as_me:$LINENO: result: yes, -liconv" >&5
 
14031
echo "${ECHO_T}yes, -liconv" >&6
 
14032
    found_iconv=yes
 
14033
 
 
14034
else
 
14035
  echo "$as_me: failed program was:" >&5
 
14036
sed 's/^/| /' conftest.$ac_ext >&5
 
14037
 
 
14038
found_iconv=no
 
14039
    LIBS="$old_LIBS"
 
14040
 
 
14041
fi
 
14042
rm -f conftest.err conftest.$ac_objext \
 
14043
      conftest$ac_exeext conftest.$ac_ext
 
14044
fi
 
14045
 
 
14046
if test $found_iconv = no ; then
 
14047
  # -liconv didn't work. Try giconv.h and -lgiconv.
 
14048
  # BSDs install this lib as libgiconv.
 
14049
  old_LIBS="$LIBS"
 
14050
  LIBS="-lgiconv $LIBS"
 
14051
  cat >conftest.$ac_ext <<_ACEOF
 
14052
#include <giconv.h>
 
14053
  int main(int argc,char **argv) { iconv_open("foo","bar"); }
 
14054
 
 
14055
_ACEOF
 
14056
rm -f conftest.$ac_objext conftest$ac_exeext
 
14057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14058
  (eval $ac_link) 2>conftest.er1
 
14059
  ac_status=$?
 
14060
  grep -v '^ *+' conftest.er1 >conftest.err
 
14061
  rm -f conftest.er1
 
14062
  cat conftest.err >&5
 
14063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14064
  (exit $ac_status); } &&
 
14065
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14067
  (eval $ac_try) 2>&5
 
14068
  ac_status=$?
 
14069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14070
  (exit $ac_status); }; } &&
 
14071
         { ac_try='test -s conftest$ac_exeext'
 
14072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14073
  (eval $ac_try) 2>&5
 
14074
  ac_status=$?
 
14075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14076
  (exit $ac_status); }; }; then
 
14077
 
 
14078
cat >>confdefs.h <<\_ACEOF
 
14079
#define HAVE_ICONV 1
 
14080
_ACEOF
 
14081
 
 
14082
 
 
14083
cat >>confdefs.h <<\_ACEOF
 
14084
#define HAVE_GICONV 1
 
14085
_ACEOF
 
14086
 
 
14087
    echo "$as_me:$LINENO: result: yes, -lgiconv" >&5
 
14088
echo "${ECHO_T}yes, -lgiconv" >&6
 
14089
 
 
14090
else
 
14091
  echo "$as_me: failed program was:" >&5
 
14092
sed 's/^/| /' conftest.$ac_ext >&5
 
14093
 
 
14094
echo "$as_me:$LINENO: result: no" >&5
 
14095
echo "${ECHO_T}no" >&6
 
14096
    LIBS="$old_LIBS"
 
14097
 
 
14098
fi
 
14099
rm -f conftest.err conftest.$ac_objext \
 
14100
      conftest$ac_exeext conftest.$ac_ext
 
14101
fi
5066
14102
 
5067
14103
#--------------------------------------------------------------------
5068
14104
# Check recent libxml for Properytlists, GSXML, GSDoc etc.
5069
14105
#--------------------------------------------------------------------
5070
14106
 
5071
 
# Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
5072
 
# of the success of the macro.
5073
 
saved_LIBS="$LIBS"
5074
 
saved_CFLAGS="$CFLAGS"
 
14107
# Check whether --enable-xml or --disable-xml was given.
 
14108
if test "${enable_xml+set}" = set; then
 
14109
  enableval="$enable_xml"
 
14110
 
 
14111
else
 
14112
  enable_xml=yes
 
14113
fi;
 
14114
 
 
14115
if test $enable_xml = yes; then
 
14116
  # Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
 
14117
  # of the success of the macro.
 
14118
  saved_LIBS="$LIBS"
 
14119
  saved_CFLAGS="$CFLAGS"
 
14120
 
5075
14121
 
5076
14122
 
5077
14123
# Check whether --with-xml-prefix or --without-xml-prefix was given.
5080
14126
  xml_config_prefix="$withval"
5081
14127
else
5082
14128
  xml_config_prefix=""
5083
 
fi
5084
 
 
 
14129
fi;
5085
14130
# Check whether --enable-xmltest or --disable-xmltest was given.
5086
14131
if test "${enable_xmltest+set}" = set; then
5087
14132
  enableval="$enable_xmltest"
5088
 
  :
 
14133
 
5089
14134
else
5090
14135
  enable_xmltest=yes
5091
 
fi
5092
 
 
 
14136
fi;
5093
14137
 
5094
14138
  if test x$xml_config_prefix != x ; then
5095
14139
    xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
5100
14144
 
5101
14145
  # Extract the first word of "xml2-config", so it can be a program name with args.
5102
14146
set dummy xml2-config; ac_word=$2
5103
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5104
 
echo "configure:5105: checking for $ac_word" >&5
5105
 
if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
5106
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
14147
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14148
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14149
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
 
14150
  echo $ECHO_N "(cached) $ECHO_C" >&6
5107
14151
else
5108
 
  case "$XML2_CONFIG" in
5109
 
  /*)
 
14152
  case $XML2_CONFIG in
 
14153
  [\\/]* | ?:[\\/]*)
5110
14154
  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
5111
14155
  ;;
5112
 
  ?:/*)                  
5113
 
  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
5114
 
  ;;
5115
14156
  *)
5116
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5117
 
  ac_dummy="$PATH"
5118
 
  for ac_dir in $ac_dummy; do 
5119
 
    test -z "$ac_dir" && ac_dir=.
5120
 
    if test -f $ac_dir/$ac_word; then
5121
 
      ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
5122
 
      break
5123
 
    fi
5124
 
  done
5125
 
  IFS="$ac_save_ifs"
 
14157
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14158
for as_dir in $PATH
 
14159
do
 
14160
  IFS=$as_save_IFS
 
14161
  test -z "$as_dir" && as_dir=.
 
14162
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14163
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14164
    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14165
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14166
    break 2
 
14167
  fi
 
14168
done
 
14169
done
 
14170
 
5126
14171
  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
5127
14172
  ;;
5128
14173
esac
5129
14174
fi
5130
 
XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
 
14175
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
 
14176
 
5131
14177
if test -n "$XML2_CONFIG"; then
5132
 
  echo "$ac_t""$XML2_CONFIG" 1>&6
 
14178
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
 
14179
echo "${ECHO_T}$XML2_CONFIG" >&6
5133
14180
else
5134
 
  echo "$ac_t""no" 1>&6
 
14181
  echo "$as_me:$LINENO: result: no" >&5
 
14182
echo "${ECHO_T}no" >&6
5135
14183
fi
5136
14184
 
5137
14185
  if test "$XML2_CONFIG" = "no" ; then
5138
14186
    # Extract the first word of "xml-config", so it can be a program name with args.
5139
14187
set dummy xml-config; ac_word=$2
5140
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5141
 
echo "configure:5142: checking for $ac_word" >&5
5142
 
if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
5143
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
14188
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14190
if test "${ac_cv_path_XML_CONFIG+set}" = set; then
 
14191
  echo $ECHO_N "(cached) $ECHO_C" >&6
5144
14192
else
5145
 
  case "$XML_CONFIG" in
5146
 
  /*)
 
14193
  case $XML_CONFIG in
 
14194
  [\\/]* | ?:[\\/]*)
5147
14195
  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
5148
14196
  ;;
5149
 
  ?:/*)                  
5150
 
  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
5151
 
  ;;
5152
14197
  *)
5153
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5154
 
  ac_dummy="$PATH"
5155
 
  for ac_dir in $ac_dummy; do 
5156
 
    test -z "$ac_dir" && ac_dir=.
5157
 
    if test -f $ac_dir/$ac_word; then
5158
 
      ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
5159
 
      break
5160
 
    fi
5161
 
  done
5162
 
  IFS="$ac_save_ifs"
 
14198
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14199
for as_dir in $PATH
 
14200
do
 
14201
  IFS=$as_save_IFS
 
14202
  test -z "$as_dir" && as_dir=.
 
14203
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14204
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14205
    ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14206
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14207
    break 2
 
14208
  fi
 
14209
done
 
14210
done
 
14211
 
5163
14212
  test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
5164
14213
  ;;
5165
14214
esac
5166
14215
fi
5167
 
XML_CONFIG="$ac_cv_path_XML_CONFIG"
 
14216
XML_CONFIG=$ac_cv_path_XML_CONFIG
 
14217
 
5168
14218
if test -n "$XML_CONFIG"; then
5169
 
  echo "$ac_t""$XML_CONFIG" 1>&6
 
14219
  echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
 
14220
echo "${ECHO_T}$XML_CONFIG" >&6
5170
14221
else
5171
 
  echo "$ac_t""no" 1>&6
 
14222
  echo "$as_me:$LINENO: result: no" >&5
 
14223
echo "${ECHO_T}no" >&6
5172
14224
fi
5173
14225
 
5174
14226
  else
5175
14227
    XML_CONFIG=$XML2_CONFIG
5176
14228
  fi
5177
 
  min_xml_version=2.2.3
5178
 
  echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
5179
 
echo "configure:5180: checking for libxml - version >= $min_xml_version" >&5
 
14229
  min_xml_version=2.3.0
 
14230
  echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
 
14231
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
5180
14232
  no_xml=""
5181
14233
  if test "$XML_CONFIG" = "no" ; then
5182
 
    no_xml=yes
 
14234
    XML_CFLAGS=""
 
14235
    XML_LIBS="-lxml2"
 
14236
 
 
14237
    ac_save_CFLAGS="$CFLAGS"
 
14238
    ac_save_LIBS="$LIBS"
 
14239
    CFLAGS="$CFLAGS $XML_CFLAGS"
 
14240
    LIBS="$XML_LIBS $LIBS"
 
14241
    rm -f conf.xmltest
 
14242
    if test "$cross_compiling" = yes; then
 
14243
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
14244
else
 
14245
  cat >conftest.$ac_ext <<_ACEOF
 
14246
/* confdefs.h.  */
 
14247
_ACEOF
 
14248
cat confdefs.h >>conftest.$ac_ext
 
14249
cat >>conftest.$ac_ext <<_ACEOF
 
14250
/* end confdefs.h.  */
 
14251
 
 
14252
#include <stdlib.h>
 
14253
#include <stdio.h>
 
14254
#include <libxml/xmlversion.h>
 
14255
#include <libxml/parser.h>
 
14256
 
 
14257
int
 
14258
main()
 
14259
{
 
14260
  int xml_major_version, xml_minor_version, xml_micro_version;
 
14261
  int major, minor, micro;
 
14262
  char *tmp_version;
 
14263
 
 
14264
  system("touch conf.xmltest");
 
14265
 
 
14266
  tmp_version = xmlStrdup("$min_xml_version");
 
14267
  if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
14268
    printf("%s, bad version string\n", "$min_xml_version");
 
14269
    exit(1);
 
14270
  }
 
14271
 
 
14272
  tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
 
14273
  if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
 
14274
    printf("%s, bad version string\n", "$min_xml_version");
 
14275
    exit(1);
 
14276
  }
 
14277
 
 
14278
  if ((xml_major_version > major) ||
 
14279
      ((xml_major_version == major) && (xml_minor_version > minor)) ||
 
14280
      ((xml_major_version == major) && (xml_minor_version == minor) &&
 
14281
       (xml_micro_version >= micro)))
 
14282
    {
 
14283
      return 0;
 
14284
    }
 
14285
  else
 
14286
    {
 
14287
      printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
 
14288
        xml_major_version, xml_minor_version, xml_micro_version);
 
14289
      printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
 
14290
        major, minor, micro);
 
14291
      printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
 
14292
      printf("***\n");
 
14293
      printf("*** If you have already installed a sufficiently new version, this error\n");
 
14294
      printf("*** probably means that the wrong copy of the xml-config shell script is\n");
 
14295
      printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
14296
      printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
 
14297
      printf("*** correct copy of xml-config. (In this case, you will have to\n");
 
14298
      printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
14299
      printf("*** so that the correct libraries are found at run-time))\n");
 
14300
    }
 
14301
  return 1;
 
14302
}
 
14303
 
 
14304
_ACEOF
 
14305
rm -f conftest$ac_exeext
 
14306
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14307
  (eval $ac_link) 2>&5
 
14308
  ac_status=$?
 
14309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14310
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14312
  (eval $ac_try) 2>&5
 
14313
  ac_status=$?
 
14314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14315
  (exit $ac_status); }; }; then
 
14316
  :
 
14317
else
 
14318
  echo "$as_me: program exited with status $ac_status" >&5
 
14319
echo "$as_me: failed program was:" >&5
 
14320
sed 's/^/| /' conftest.$ac_ext >&5
 
14321
 
 
14322
( exit $ac_status )
 
14323
no_xml=yes
 
14324
fi
 
14325
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14326
fi
 
14327
 
 
14328
    CFLAGS="$ac_save_CFLAGS"
 
14329
    LIBS="$ac_save_LIBS"
5183
14330
  else
5184
14331
    XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
5185
14332
    XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
5189
14336
      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5190
14337
    xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
5191
14338
      sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
14339
    # Strip '-L/usr/lib' off since this is always in the link path.
 
14340
    XML_LIBS=`echo $XML_LIBS | sed -e 's|-L/usr/lib||'`
 
14341
 
5192
14342
    if test "x$enable_xmltest" = "xyes" ; then
5193
14343
      ac_save_CFLAGS="$CFLAGS"
5194
14344
      ac_save_LIBS="$LIBS"
5198
14348
      if test "$cross_compiling" = yes; then
5199
14349
  echo $ac_n "cross compiling; assumed OK... $ac_c"
5200
14350
else
5201
 
  cat > conftest.$ac_ext <<EOF
5202
 
#line 5203 "configure"
5203
 
#include "confdefs.h"
 
14351
  cat >conftest.$ac_ext <<_ACEOF
 
14352
/* confdefs.h.  */
 
14353
_ACEOF
 
14354
cat confdefs.h >>conftest.$ac_ext
 
14355
cat >>conftest.$ac_ext <<_ACEOF
 
14356
/* end confdefs.h.  */
5204
14357
 
5205
14358
#include <stdlib.h>
5206
14359
#include <stdio.h>
5207
 
#include <xmlversion.h>
5208
 
#include <parser.h>
 
14360
#include <libxml/xmlversion.h>
 
14361
#include <libxml/parser.h>
5209
14362
 
5210
14363
int
5211
14364
main()
5232
14385
     (xml_minor_version != $xml_config_minor_version) ||
5233
14386
     (xml_micro_version != $xml_config_micro_version))
5234
14387
    {
5235
 
      printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n", 
 
14388
      printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
5236
14389
             $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
5237
14390
             xml_major_version, xml_minor_version, xml_micro_version);
5238
14391
      printf("*** was found! If xml-config was correct, then it is best\n");
5273
14426
  return 1;
5274
14427
}
5275
14428
 
5276
 
EOF
5277
 
if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5278
 
then
 
14429
_ACEOF
 
14430
rm -f conftest$ac_exeext
 
14431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14432
  (eval $ac_link) 2>&5
 
14433
  ac_status=$?
 
14434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14435
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14437
  (eval $ac_try) 2>&5
 
14438
  ac_status=$?
 
14439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14440
  (exit $ac_status); }; }; then
5279
14441
  :
5280
14442
else
5281
 
  echo "configure: failed program was:" >&5
5282
 
  cat conftest.$ac_ext >&5
5283
 
  rm -fr conftest*
5284
 
  no_xml=yes
5285
 
fi
5286
 
rm -fr conftest*
5287
 
fi
 
14443
  echo "$as_me: program exited with status $ac_status" >&5
 
14444
echo "$as_me: failed program was:" >&5
 
14445
sed 's/^/| /' conftest.$ac_ext >&5
5288
14446
 
 
14447
( exit $ac_status )
 
14448
no_xml=yes
 
14449
fi
 
14450
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14451
fi
5289
14452
 
5290
14453
      CFLAGS="$ac_save_CFLAGS"
5291
14454
      LIBS="$ac_save_LIBS"
5293
14456
  fi
5294
14457
 
5295
14458
  if test "x$no_xml" = x ; then
5296
 
    echo "$ac_t""yes" 1>&6
 
14459
    echo "$as_me:$LINENO: result: yes" >&5
 
14460
echo "${ECHO_T}yes" >&6
5297
14461
    enable_libxml=yes
5298
14462
  else
5299
 
    echo "$ac_t""no" 1>&6
 
14463
    echo "$as_me:$LINENO: result: no" >&5
 
14464
echo "${ECHO_T}no" >&6
5300
14465
    if test "$XML_CONFIG" = "no" ; then
5301
14466
      echo "*** The xml-config script installed by libxml could not be found"
5302
14467
      echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
5316
14481
    XML_LIBS=""
5317
14482
    enable_libxml=no
5318
14483
  fi
5319
 
  
5320
 
  
 
14484
 
 
14485
 
5321
14486
  rm -f conf.xmltest
5322
14487
 
5323
 
if test $enable_libxml = yes; then
5324
 
  CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
5325
 
  LIBS="$LIBS $XML_LIBS"
5326
 
  HAVE_LIBXML=1
5327
 
  cat >> confdefs.h <<\EOF
 
14488
  if test $enable_libxml = yes; then
 
14489
    CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
 
14490
    INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
 
14491
    LIBS="$XML_LIBS $LIBS"
 
14492
    HAVE_LIBXML=1
 
14493
 
 
14494
cat >>confdefs.h <<\_ACEOF
5328
14495
#define HAVE_LIBXML 1
5329
 
EOF
5330
 
 
5331
 
else
 
14496
_ACEOF
 
14497
 
 
14498
 
 
14499
for ac_header in libxml/SAX2.h
 
14500
do
 
14501
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14502
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14503
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14504
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14505
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14507
fi
 
14508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14509
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14510
else
 
14511
  # Is the header compilable?
 
14512
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14513
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14514
cat >conftest.$ac_ext <<_ACEOF
 
14515
/* confdefs.h.  */
 
14516
_ACEOF
 
14517
cat confdefs.h >>conftest.$ac_ext
 
14518
cat >>conftest.$ac_ext <<_ACEOF
 
14519
/* end confdefs.h.  */
 
14520
$ac_includes_default
 
14521
#include <$ac_header>
 
14522
_ACEOF
 
14523
rm -f conftest.$ac_objext
 
14524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14525
  (eval $ac_compile) 2>conftest.er1
 
14526
  ac_status=$?
 
14527
  grep -v '^ *+' conftest.er1 >conftest.err
 
14528
  rm -f conftest.er1
 
14529
  cat conftest.err >&5
 
14530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14531
  (exit $ac_status); } &&
 
14532
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14534
  (eval $ac_try) 2>&5
 
14535
  ac_status=$?
 
14536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14537
  (exit $ac_status); }; } &&
 
14538
         { ac_try='test -s conftest.$ac_objext'
 
14539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14540
  (eval $ac_try) 2>&5
 
14541
  ac_status=$?
 
14542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14543
  (exit $ac_status); }; }; then
 
14544
  ac_header_compiler=yes
 
14545
else
 
14546
  echo "$as_me: failed program was:" >&5
 
14547
sed 's/^/| /' conftest.$ac_ext >&5
 
14548
 
 
14549
ac_header_compiler=no
 
14550
fi
 
14551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14552
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14553
echo "${ECHO_T}$ac_header_compiler" >&6
 
14554
 
 
14555
# Is the header present?
 
14556
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14557
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
14558
cat >conftest.$ac_ext <<_ACEOF
 
14559
/* confdefs.h.  */
 
14560
_ACEOF
 
14561
cat confdefs.h >>conftest.$ac_ext
 
14562
cat >>conftest.$ac_ext <<_ACEOF
 
14563
/* end confdefs.h.  */
 
14564
#include <$ac_header>
 
14565
_ACEOF
 
14566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14567
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14568
  ac_status=$?
 
14569
  grep -v '^ *+' conftest.er1 >conftest.err
 
14570
  rm -f conftest.er1
 
14571
  cat conftest.err >&5
 
14572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14573
  (exit $ac_status); } >/dev/null; then
 
14574
  if test -s conftest.err; then
 
14575
    ac_cpp_err=$ac_c_preproc_warn_flag
 
14576
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
14577
  else
 
14578
    ac_cpp_err=
 
14579
  fi
 
14580
else
 
14581
  ac_cpp_err=yes
 
14582
fi
 
14583
if test -z "$ac_cpp_err"; then
 
14584
  ac_header_preproc=yes
 
14585
else
 
14586
  echo "$as_me: failed program was:" >&5
 
14587
sed 's/^/| /' conftest.$ac_ext >&5
 
14588
 
 
14589
  ac_header_preproc=no
 
14590
fi
 
14591
rm -f conftest.err conftest.$ac_ext
 
14592
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14593
echo "${ECHO_T}$ac_header_preproc" >&6
 
14594
 
 
14595
# So?  What about this header?
 
14596
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14597
  yes:no: )
 
14598
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14599
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14600
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14601
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14602
    ac_header_preproc=yes
 
14603
    ;;
 
14604
  no:yes:* )
 
14605
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14606
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14607
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14608
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14609
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14610
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14611
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14612
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14613
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14614
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14615
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14616
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14617
    (
 
14618
      cat <<\_ASBOX
 
14619
## ------------------------------------------ ##
 
14620
## Report this to the AC_PACKAGE_NAME lists.  ##
 
14621
## ------------------------------------------ ##
 
14622
_ASBOX
 
14623
    ) |
 
14624
      sed "s/^/$as_me: WARNING:     /" >&2
 
14625
    ;;
 
14626
esac
 
14627
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14628
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14629
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14631
else
 
14632
  eval "$as_ac_Header=\$ac_header_preproc"
 
14633
fi
 
14634
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14635
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14636
 
 
14637
fi
 
14638
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
14639
  cat >>confdefs.h <<_ACEOF
 
14640
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14641
_ACEOF
 
14642
 
 
14643
fi
 
14644
 
 
14645
done
 
14646
 
 
14647
    #--------------------------------------------------------------------
 
14648
    # Check for (optional) libxslt
 
14649
    #--------------------------------------------------------------------
 
14650
    # Check whether --enable-xslt or --disable-xslt was given.
 
14651
if test "${enable_xslt+set}" = set; then
 
14652
  enableval="$enable_xslt"
 
14653
 
 
14654
else
 
14655
  enable_xslt=yes
 
14656
fi;
 
14657
 
 
14658
    if test $enable_xslt = yes; then
 
14659
      echo "$as_me:$LINENO: checking for xsltApplyStylesheet in -lxslt" >&5
 
14660
echo $ECHO_N "checking for xsltApplyStylesheet in -lxslt... $ECHO_C" >&6
 
14661
if test "${ac_cv_lib_xslt_xsltApplyStylesheet+set}" = set; then
 
14662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14663
else
 
14664
  ac_check_lib_save_LIBS=$LIBS
 
14665
LIBS="-lxslt  $LIBS"
 
14666
cat >conftest.$ac_ext <<_ACEOF
 
14667
/* confdefs.h.  */
 
14668
_ACEOF
 
14669
cat confdefs.h >>conftest.$ac_ext
 
14670
cat >>conftest.$ac_ext <<_ACEOF
 
14671
/* end confdefs.h.  */
 
14672
 
 
14673
/* Override any gcc2 internal prototype to avoid an error.  */
 
14674
#ifdef __cplusplus
 
14675
extern "C"
 
14676
#endif
 
14677
/* We use char because int might match the return type of a gcc2
 
14678
   builtin and then its argument prototype would still apply.  */
 
14679
char xsltApplyStylesheet ();
 
14680
int
 
14681
main ()
 
14682
{
 
14683
xsltApplyStylesheet ();
 
14684
  ;
 
14685
  return 0;
 
14686
}
 
14687
_ACEOF
 
14688
rm -f conftest.$ac_objext conftest$ac_exeext
 
14689
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14690
  (eval $ac_link) 2>conftest.er1
 
14691
  ac_status=$?
 
14692
  grep -v '^ *+' conftest.er1 >conftest.err
 
14693
  rm -f conftest.er1
 
14694
  cat conftest.err >&5
 
14695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14696
  (exit $ac_status); } &&
 
14697
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14699
  (eval $ac_try) 2>&5
 
14700
  ac_status=$?
 
14701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14702
  (exit $ac_status); }; } &&
 
14703
         { ac_try='test -s conftest$ac_exeext'
 
14704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14705
  (eval $ac_try) 2>&5
 
14706
  ac_status=$?
 
14707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14708
  (exit $ac_status); }; }; then
 
14709
  ac_cv_lib_xslt_xsltApplyStylesheet=yes
 
14710
else
 
14711
  echo "$as_me: failed program was:" >&5
 
14712
sed 's/^/| /' conftest.$ac_ext >&5
 
14713
 
 
14714
ac_cv_lib_xslt_xsltApplyStylesheet=no
 
14715
fi
 
14716
rm -f conftest.err conftest.$ac_objext \
 
14717
      conftest$ac_exeext conftest.$ac_ext
 
14718
LIBS=$ac_check_lib_save_LIBS
 
14719
fi
 
14720
echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
 
14721
echo "${ECHO_T}$ac_cv_lib_xslt_xsltApplyStylesheet" >&6
 
14722
if test $ac_cv_lib_xslt_xsltApplyStylesheet = yes; then
 
14723
  xslt_ok=yes
 
14724
else
 
14725
  xslt_ok=no
 
14726
fi
 
14727
 
 
14728
      if test "$xslt_ok" = "yes"; then
 
14729
        if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
 
14730
  echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
 
14731
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
 
14732
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
 
14733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14734
fi
 
14735
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
 
14736
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
 
14737
else
 
14738
  # Is the header compilable?
 
14739
echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
 
14740
echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
 
14741
cat >conftest.$ac_ext <<_ACEOF
 
14742
/* confdefs.h.  */
 
14743
_ACEOF
 
14744
cat confdefs.h >>conftest.$ac_ext
 
14745
cat >>conftest.$ac_ext <<_ACEOF
 
14746
/* end confdefs.h.  */
 
14747
$ac_includes_default
 
14748
#include <libxslt/xslt.h>
 
14749
_ACEOF
 
14750
rm -f conftest.$ac_objext
 
14751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14752
  (eval $ac_compile) 2>conftest.er1
 
14753
  ac_status=$?
 
14754
  grep -v '^ *+' conftest.er1 >conftest.err
 
14755
  rm -f conftest.er1
 
14756
  cat conftest.err >&5
 
14757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14758
  (exit $ac_status); } &&
 
14759
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14761
  (eval $ac_try) 2>&5
 
14762
  ac_status=$?
 
14763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14764
  (exit $ac_status); }; } &&
 
14765
         { ac_try='test -s conftest.$ac_objext'
 
14766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14767
  (eval $ac_try) 2>&5
 
14768
  ac_status=$?
 
14769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14770
  (exit $ac_status); }; }; then
 
14771
  ac_header_compiler=yes
 
14772
else
 
14773
  echo "$as_me: failed program was:" >&5
 
14774
sed 's/^/| /' conftest.$ac_ext >&5
 
14775
 
 
14776
ac_header_compiler=no
 
14777
fi
 
14778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14779
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14780
echo "${ECHO_T}$ac_header_compiler" >&6
 
14781
 
 
14782
# Is the header present?
 
14783
echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
 
14784
echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
 
14785
cat >conftest.$ac_ext <<_ACEOF
 
14786
/* confdefs.h.  */
 
14787
_ACEOF
 
14788
cat confdefs.h >>conftest.$ac_ext
 
14789
cat >>conftest.$ac_ext <<_ACEOF
 
14790
/* end confdefs.h.  */
 
14791
#include <libxslt/xslt.h>
 
14792
_ACEOF
 
14793
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14794
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14795
  ac_status=$?
 
14796
  grep -v '^ *+' conftest.er1 >conftest.err
 
14797
  rm -f conftest.er1
 
14798
  cat conftest.err >&5
 
14799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14800
  (exit $ac_status); } >/dev/null; then
 
14801
  if test -s conftest.err; then
 
14802
    ac_cpp_err=$ac_c_preproc_warn_flag
 
14803
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
14804
  else
 
14805
    ac_cpp_err=
 
14806
  fi
 
14807
else
 
14808
  ac_cpp_err=yes
 
14809
fi
 
14810
if test -z "$ac_cpp_err"; then
 
14811
  ac_header_preproc=yes
 
14812
else
 
14813
  echo "$as_me: failed program was:" >&5
 
14814
sed 's/^/| /' conftest.$ac_ext >&5
 
14815
 
 
14816
  ac_header_preproc=no
 
14817
fi
 
14818
rm -f conftest.err conftest.$ac_ext
 
14819
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14820
echo "${ECHO_T}$ac_header_preproc" >&6
 
14821
 
 
14822
# So?  What about this header?
 
14823
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14824
  yes:no: )
 
14825
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14826
echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14827
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
 
14828
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
 
14829
    ac_header_preproc=yes
 
14830
    ;;
 
14831
  no:yes:* )
 
14832
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
 
14833
echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
 
14834
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
 
14835
echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
 
14836
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
 
14837
echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
 
14838
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14839
echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14840
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
 
14841
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
 
14842
    { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
 
14843
echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
 
14844
    (
 
14845
      cat <<\_ASBOX
 
14846
## ------------------------------------------ ##
 
14847
## Report this to the AC_PACKAGE_NAME lists.  ##
 
14848
## ------------------------------------------ ##
 
14849
_ASBOX
 
14850
    ) |
 
14851
      sed "s/^/$as_me: WARNING:     /" >&2
 
14852
    ;;
 
14853
esac
 
14854
echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
 
14855
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
 
14856
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
 
14857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14858
else
 
14859
  ac_cv_header_libxslt_xslt_h=$ac_header_preproc
 
14860
fi
 
14861
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
 
14862
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
 
14863
 
 
14864
fi
 
14865
if test $ac_cv_header_libxslt_xslt_h = yes; then
 
14866
  xslthdr_ok=yes
 
14867
else
 
14868
  xslthdr_ok=no
 
14869
fi
 
14870
 
 
14871
 
 
14872
        if test "$xslthdr_ok" = "no"; then
 
14873
          xslt_ok=no
 
14874
        fi
 
14875
      fi
 
14876
      if test "$xslt_ok" = "yes"; then
 
14877
        HAVE_LIBXSLT=1
 
14878
 
 
14879
cat >>confdefs.h <<\_ACEOF
 
14880
#define HAVE_LIBXSLT 1
 
14881
_ACEOF
 
14882
 
 
14883
        LIBS="-lxslt $LIBS"
 
14884
      else
 
14885
        echo
 
14886
        echo "You most likely do not want to build base without XSLT support."
 
14887
        echo "If you really want to build -base without XSLT support,"
 
14888
        echo "add --disable-xslt to the configure arguments."
 
14889
        { echo "$as_me:$LINENO: WARNING: Missing support for XSLT functionality." >&5
 
14890
echo "$as_me: WARNING: Missing support for XSLT functionality." >&2;}
 
14891
      fi
 
14892
    else
 
14893
      HAVE_LIBXSLT=0
 
14894
      { echo "$as_me:$LINENO: WARNING: Disabled support for XSLT funtionality." >&5
 
14895
echo "$as_me: WARNING: Disabled support for XSLT funtionality." >&2;}
 
14896
    fi
 
14897
 
 
14898
  else
 
14899
    HAVE_LIBXML=0
 
14900
    # Restore the CFLAGS and LIBS because AM_PATH_XML messes them
 
14901
    LIBS="$saved_LIBS"
 
14902
    CFLAGS="$saved_CFLAGS"
 
14903
    echo
 
14904
    echo "You most likely do not want to build base without XML support."
 
14905
    echo "For instance, MacOS-X compatible property lists require XML."
 
14906
    echo "If you really want to build -base without XML support,"
 
14907
    echo "add --disable-xml to the configure arguments."
 
14908
    { { echo "$as_me:$LINENO: error: Missing support for XML functionality." >&5
 
14909
echo "$as_me: error: Missing support for XML functionality." >&2;}
 
14910
   { (exit 1); exit 1; }; }
 
14911
  fi
 
14912
else
 
14913
  { echo "$as_me:$LINENO: WARNING: Disabled support for XML funtionality." >&5
 
14914
echo "$as_me: WARNING: Disabled support for XML funtionality." >&2;}
5332
14915
  HAVE_LIBXML=0
5333
 
  # Restore the CFLAGS and LIBS because AM_PATH_XML messes them
5334
 
  LIBS="$saved_LIBS"
5335
 
  CFLAGS="$saved_CFLAGS"
5336
14916
fi
5337
14917
 
5338
14918
 
5339
14919
#--------------------------------------------------------------------
5340
14920
# Check GMP for NSDecimal
5341
14921
#--------------------------------------------------------------------
 
14922
 
5342
14923
# Check whether --with-gmp-include or --without-gmp-include was given.
5343
14924
if test "${with_gmp_include+set}" = set; then
5344
14925
  withval="$with_gmp_include"
5345
14926
  gmp_incdir="$withval"
5346
14927
else
5347
14928
  gmp_incdir="no"
5348
 
fi
 
14929
fi;
5349
14930
 
5350
14931
 
5351
14932
# Check whether --with-gmp-library or --without-gmp-library was given.
5354
14935
  gmp_libdir="$withval"
5355
14936
else
5356
14937
  gmp_libdir="no"
5357
 
fi
5358
 
 
5359
 
 
5360
 
cppflags_temp="$CPPFLAGS"
 
14938
fi;
 
14939
 
5361
14940
libs_temp=$LIBS
5362
14941
 
5363
14942
if test "$gmp_incdir" != "no"; then
5364
14943
  CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
 
14944
  INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
5365
14945
fi
5366
14946
if test "$gmp_libdir" != "no"; then
5367
 
  LIBS="$LIBS -L$gmp_libdir"
 
14947
  LDFLAGS="$LDFLAGS -L$gmp_libdir"
 
14948
  LDIR_FLAGS="$LDIR_FLAGS -L$gmp_libdir"
5368
14949
fi
5369
14950
 
5370
 
HAVE_GMP=0
5371
 
for ac_hdr in gmp.h
 
14951
USE_GMP=0
 
14952
 
 
14953
for ac_header in gmp.h
5372
14954
do
5373
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5374
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5375
 
echo "configure:5376: checking for $ac_hdr" >&5
5376
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5377
 
  echo $ac_n "(cached) $ac_c" 1>&6
5378
 
else
5379
 
  cat > conftest.$ac_ext <<EOF
5380
 
#line 5381 "configure"
5381
 
#include "confdefs.h"
5382
 
#include <$ac_hdr>
5383
 
EOF
5384
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5385
 
{ (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5386
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5387
 
if test -z "$ac_err"; then
5388
 
  rm -rf conftest*
5389
 
  eval "ac_cv_header_$ac_safe=yes"
5390
 
else
5391
 
  echo "$ac_err" >&5
5392
 
  echo "configure: failed program was:" >&5
5393
 
  cat conftest.$ac_ext >&5
5394
 
  rm -rf conftest*
5395
 
  eval "ac_cv_header_$ac_safe=no"
5396
 
fi
5397
 
rm -f conftest*
5398
 
fi
5399
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5400
 
  echo "$ac_t""yes" 1>&6
5401
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5402
 
  cat >> confdefs.h <<EOF
5403
 
#define $ac_tr_hdr 1
5404
 
EOF
5405
 
 
5406
 
else
5407
 
  echo "$ac_t""no" 1>&6
5408
 
fi
 
14955
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14956
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14957
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14958
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
14959
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14961
fi
 
14962
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14963
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14964
else
 
14965
  # Is the header compilable?
 
14966
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14967
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14968
cat >conftest.$ac_ext <<_ACEOF
 
14969
/* confdefs.h.  */
 
14970
_ACEOF
 
14971
cat confdefs.h >>conftest.$ac_ext
 
14972
cat >>conftest.$ac_ext <<_ACEOF
 
14973
/* end confdefs.h.  */
 
14974
$ac_includes_default
 
14975
#include <$ac_header>
 
14976
_ACEOF
 
14977
rm -f conftest.$ac_objext
 
14978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14979
  (eval $ac_compile) 2>conftest.er1
 
14980
  ac_status=$?
 
14981
  grep -v '^ *+' conftest.er1 >conftest.err
 
14982
  rm -f conftest.er1
 
14983
  cat conftest.err >&5
 
14984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14985
  (exit $ac_status); } &&
 
14986
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14988
  (eval $ac_try) 2>&5
 
14989
  ac_status=$?
 
14990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14991
  (exit $ac_status); }; } &&
 
14992
         { ac_try='test -s conftest.$ac_objext'
 
14993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14994
  (eval $ac_try) 2>&5
 
14995
  ac_status=$?
 
14996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14997
  (exit $ac_status); }; }; then
 
14998
  ac_header_compiler=yes
 
14999
else
 
15000
  echo "$as_me: failed program was:" >&5
 
15001
sed 's/^/| /' conftest.$ac_ext >&5
 
15002
 
 
15003
ac_header_compiler=no
 
15004
fi
 
15005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15006
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15007
echo "${ECHO_T}$ac_header_compiler" >&6
 
15008
 
 
15009
# Is the header present?
 
15010
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15011
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15012
cat >conftest.$ac_ext <<_ACEOF
 
15013
/* confdefs.h.  */
 
15014
_ACEOF
 
15015
cat confdefs.h >>conftest.$ac_ext
 
15016
cat >>conftest.$ac_ext <<_ACEOF
 
15017
/* end confdefs.h.  */
 
15018
#include <$ac_header>
 
15019
_ACEOF
 
15020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15021
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15022
  ac_status=$?
 
15023
  grep -v '^ *+' conftest.er1 >conftest.err
 
15024
  rm -f conftest.er1
 
15025
  cat conftest.err >&5
 
15026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15027
  (exit $ac_status); } >/dev/null; then
 
15028
  if test -s conftest.err; then
 
15029
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15030
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15031
  else
 
15032
    ac_cpp_err=
 
15033
  fi
 
15034
else
 
15035
  ac_cpp_err=yes
 
15036
fi
 
15037
if test -z "$ac_cpp_err"; then
 
15038
  ac_header_preproc=yes
 
15039
else
 
15040
  echo "$as_me: failed program was:" >&5
 
15041
sed 's/^/| /' conftest.$ac_ext >&5
 
15042
 
 
15043
  ac_header_preproc=no
 
15044
fi
 
15045
rm -f conftest.err conftest.$ac_ext
 
15046
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15047
echo "${ECHO_T}$ac_header_preproc" >&6
 
15048
 
 
15049
# So?  What about this header?
 
15050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15051
  yes:no: )
 
15052
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15053
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15054
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15055
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15056
    ac_header_preproc=yes
 
15057
    ;;
 
15058
  no:yes:* )
 
15059
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15060
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15061
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15062
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15063
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15064
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15065
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15066
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15067
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15068
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15069
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15070
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15071
    (
 
15072
      cat <<\_ASBOX
 
15073
## ------------------------------------------ ##
 
15074
## Report this to the AC_PACKAGE_NAME lists.  ##
 
15075
## ------------------------------------------ ##
 
15076
_ASBOX
 
15077
    ) |
 
15078
      sed "s/^/$as_me: WARNING:     /" >&2
 
15079
    ;;
 
15080
esac
 
15081
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15082
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15083
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15085
else
 
15086
  eval "$as_ac_Header=\$ac_header_preproc"
 
15087
fi
 
15088
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15089
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15090
 
 
15091
fi
 
15092
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15093
  cat >>confdefs.h <<_ACEOF
 
15094
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15095
_ACEOF
 
15096
 
 
15097
fi
 
15098
 
5409
15099
done
5410
15100
 
5411
15101
if test $ac_cv_header_gmp_h = yes; then
5412
 
  echo $ac_n "checking for mpf_abs in -lgmp""... $ac_c" 1>&6
5413
 
echo "configure:5414: checking for mpf_abs in -lgmp" >&5
5414
 
ac_lib_var=`echo gmp'_'mpf_abs | sed 'y%./+-%__p_%'`
5415
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5416
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
15102
  echo "$as_me:$LINENO: checking for mpf_abs in -lgmp" >&5
 
15103
echo $ECHO_N "checking for mpf_abs in -lgmp... $ECHO_C" >&6
 
15104
if test "${ac_cv_lib_gmp_mpf_abs+set}" = set; then
 
15105
  echo $ECHO_N "(cached) $ECHO_C" >&6
5417
15106
else
5418
 
  ac_save_LIBS="$LIBS"
 
15107
  ac_check_lib_save_LIBS=$LIBS
5419
15108
LIBS="-lgmp  $LIBS"
5420
 
cat > conftest.$ac_ext <<EOF
5421
 
#line 5422 "configure"
5422
 
#include "confdefs.h"
 
15109
cat >conftest.$ac_ext <<_ACEOF
 
15110
/* confdefs.h.  */
 
15111
_ACEOF
 
15112
cat confdefs.h >>conftest.$ac_ext
 
15113
cat >>conftest.$ac_ext <<_ACEOF
 
15114
/* end confdefs.h.  */
 
15115
 
5423
15116
/* Override any gcc2 internal prototype to avoid an error.  */
 
15117
#ifdef __cplusplus
 
15118
extern "C"
 
15119
#endif
5424
15120
/* We use char because int might match the return type of a gcc2
5425
 
    builtin and then its argument prototype would still apply.  */
5426
 
char mpf_abs();
5427
 
 
5428
 
int main() {
5429
 
mpf_abs()
5430
 
; return 0; }
5431
 
EOF
5432
 
if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433
 
  rm -rf conftest*
5434
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
15121
   builtin and then its argument prototype would still apply.  */
 
15122
char mpf_abs ();
 
15123
int
 
15124
main ()
 
15125
{
 
15126
mpf_abs ();
 
15127
  ;
 
15128
  return 0;
 
15129
}
 
15130
_ACEOF
 
15131
rm -f conftest.$ac_objext conftest$ac_exeext
 
15132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15133
  (eval $ac_link) 2>conftest.er1
 
15134
  ac_status=$?
 
15135
  grep -v '^ *+' conftest.er1 >conftest.err
 
15136
  rm -f conftest.er1
 
15137
  cat conftest.err >&5
 
15138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15139
  (exit $ac_status); } &&
 
15140
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15142
  (eval $ac_try) 2>&5
 
15143
  ac_status=$?
 
15144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15145
  (exit $ac_status); }; } &&
 
15146
         { ac_try='test -s conftest$ac_exeext'
 
15147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15148
  (eval $ac_try) 2>&5
 
15149
  ac_status=$?
 
15150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15151
  (exit $ac_status); }; }; then
 
15152
  ac_cv_lib_gmp_mpf_abs=yes
5435
15153
else
5436
 
  echo "configure: failed program was:" >&5
5437
 
  cat conftest.$ac_ext >&5
5438
 
  rm -rf conftest*
5439
 
  eval "ac_cv_lib_$ac_lib_var=no"
5440
 
fi
5441
 
rm -f conftest*
5442
 
LIBS="$ac_save_LIBS"
 
15154
  echo "$as_me: failed program was:" >&5
 
15155
sed 's/^/| /' conftest.$ac_ext >&5
5443
15156
 
5444
 
fi
5445
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5446
 
  echo "$ac_t""yes" 1>&6
 
15157
ac_cv_lib_gmp_mpf_abs=no
 
15158
fi
 
15159
rm -f conftest.err conftest.$ac_objext \
 
15160
      conftest$ac_exeext conftest.$ac_ext
 
15161
LIBS=$ac_check_lib_save_LIBS
 
15162
fi
 
15163
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_abs" >&5
 
15164
echo "${ECHO_T}$ac_cv_lib_gmp_mpf_abs" >&6
 
15165
if test $ac_cv_lib_gmp_mpf_abs = yes; then
5447
15166
  gmp_ok=yes
5448
15167
else
5449
 
  echo "$ac_t""no" 1>&6
5450
 
gmp_ok=no
 
15168
  gmp_ok=no
5451
15169
fi
5452
15170
 
5453
15171
  if test "$gmp_ok" = no; then
5454
 
    echo $ac_n "checking for __gmpf_abs in -lgmp""... $ac_c" 1>&6
5455
 
echo "configure:5456: checking for __gmpf_abs in -lgmp" >&5
5456
 
ac_lib_var=`echo gmp'_'__gmpf_abs | sed 'y%./+-%__p_%'`
5457
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5458
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
15172
    echo "$as_me:$LINENO: checking for __gmpf_abs in -lgmp" >&5
 
15173
echo $ECHO_N "checking for __gmpf_abs in -lgmp... $ECHO_C" >&6
 
15174
if test "${ac_cv_lib_gmp___gmpf_abs+set}" = set; then
 
15175
  echo $ECHO_N "(cached) $ECHO_C" >&6
5459
15176
else
5460
 
  ac_save_LIBS="$LIBS"
 
15177
  ac_check_lib_save_LIBS=$LIBS
5461
15178
LIBS="-lgmp  $LIBS"
5462
 
cat > conftest.$ac_ext <<EOF
5463
 
#line 5464 "configure"
5464
 
#include "confdefs.h"
 
15179
cat >conftest.$ac_ext <<_ACEOF
 
15180
/* confdefs.h.  */
 
15181
_ACEOF
 
15182
cat confdefs.h >>conftest.$ac_ext
 
15183
cat >>conftest.$ac_ext <<_ACEOF
 
15184
/* end confdefs.h.  */
 
15185
 
5465
15186
/* Override any gcc2 internal prototype to avoid an error.  */
 
15187
#ifdef __cplusplus
 
15188
extern "C"
 
15189
#endif
5466
15190
/* We use char because int might match the return type of a gcc2
5467
 
    builtin and then its argument prototype would still apply.  */
5468
 
char __gmpf_abs();
5469
 
 
5470
 
int main() {
5471
 
__gmpf_abs()
5472
 
; return 0; }
5473
 
EOF
5474
 
if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475
 
  rm -rf conftest*
5476
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
15191
   builtin and then its argument prototype would still apply.  */
 
15192
char __gmpf_abs ();
 
15193
int
 
15194
main ()
 
15195
{
 
15196
__gmpf_abs ();
 
15197
  ;
 
15198
  return 0;
 
15199
}
 
15200
_ACEOF
 
15201
rm -f conftest.$ac_objext conftest$ac_exeext
 
15202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15203
  (eval $ac_link) 2>conftest.er1
 
15204
  ac_status=$?
 
15205
  grep -v '^ *+' conftest.er1 >conftest.err
 
15206
  rm -f conftest.er1
 
15207
  cat conftest.err >&5
 
15208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15209
  (exit $ac_status); } &&
 
15210
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15212
  (eval $ac_try) 2>&5
 
15213
  ac_status=$?
 
15214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15215
  (exit $ac_status); }; } &&
 
15216
         { ac_try='test -s conftest$ac_exeext'
 
15217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15218
  (eval $ac_try) 2>&5
 
15219
  ac_status=$?
 
15220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15221
  (exit $ac_status); }; }; then
 
15222
  ac_cv_lib_gmp___gmpf_abs=yes
5477
15223
else
5478
 
  echo "configure: failed program was:" >&5
5479
 
  cat conftest.$ac_ext >&5
5480
 
  rm -rf conftest*
5481
 
  eval "ac_cv_lib_$ac_lib_var=no"
5482
 
fi
5483
 
rm -f conftest*
5484
 
LIBS="$ac_save_LIBS"
 
15224
  echo "$as_me: failed program was:" >&5
 
15225
sed 's/^/| /' conftest.$ac_ext >&5
5485
15226
 
5486
 
fi
5487
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5488
 
  echo "$ac_t""yes" 1>&6
 
15227
ac_cv_lib_gmp___gmpf_abs=no
 
15228
fi
 
15229
rm -f conftest.err conftest.$ac_objext \
 
15230
      conftest$ac_exeext conftest.$ac_ext
 
15231
LIBS=$ac_check_lib_save_LIBS
 
15232
fi
 
15233
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_abs" >&5
 
15234
echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_abs" >&6
 
15235
if test $ac_cv_lib_gmp___gmpf_abs = yes; then
5489
15236
  gmp_ok=yes
5490
15237
else
5491
 
  echo "$ac_t""no" 1>&6
5492
 
gmp_ok=no
 
15238
  gmp_ok=no
5493
15239
fi
5494
15240
 
5495
15241
  fi
5496
15242
  if test "$gmp_ok" = yes; then
5497
 
    base_libs="$LIBS"
5498
 
    LIBS="$LIBS -lgmp"
5499
 
    HAVE_GMP=1
5500
 
  fi
5501
 
fi
5502
 
 
5503
 
if test "$HAVE_GMP" = "0"; then
5504
 
  CPPFLAGS="$cppflags_temp";
5505
 
  LIBS="$libs_temp";
5506
 
fi
5507
 
 
5508
 
 
5509
 
#--------------------------------------------------------------------
5510
 
# Check for iconv support (for Unicode conversion).
5511
 
#--------------------------------------------------------------------
5512
 
# Check in the glibc library
5513
 
for ac_func in iconv
5514
 
do
5515
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5516
 
echo "configure:5517: checking for $ac_func" >&5
5517
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5518
 
  echo $ac_n "(cached) $ac_c" 1>&6
5519
 
else
5520
 
  cat > conftest.$ac_ext <<EOF
5521
 
#line 5522 "configure"
5522
 
#include "confdefs.h"
5523
 
/* System header to define __stub macros and hopefully few prototypes,
5524
 
    which can conflict with char $ac_func(); below.  */
5525
 
#include <assert.h>
5526
 
/* Override any gcc2 internal prototype to avoid an error.  */
5527
 
/* We use char because int might match the return type of a gcc2
5528
 
    builtin and then its argument prototype would still apply.  */
5529
 
char $ac_func();
5530
 
 
5531
 
int main() {
5532
 
 
5533
 
/* The GNU C library defines this for functions which it implements
5534
 
    to always fail with ENOSYS.  Some functions are actually named
5535
 
    something starting with __ and the normal name is an alias.  */
5536
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5537
 
choke me
5538
 
#else
5539
 
$ac_func();
5540
 
#endif
5541
 
 
5542
 
; return 0; }
5543
 
EOF
5544
 
if { (eval echo configure:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5545
 
  rm -rf conftest*
5546
 
  eval "ac_cv_func_$ac_func=yes"
5547
 
else
5548
 
  echo "configure: failed program was:" >&5
5549
 
  cat conftest.$ac_ext >&5
5550
 
  rm -rf conftest*
5551
 
  eval "ac_cv_func_$ac_func=no"
5552
 
fi
5553
 
rm -f conftest*
5554
 
fi
5555
 
 
5556
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5557
 
  echo "$ac_t""yes" 1>&6
5558
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5559
 
  cat >> confdefs.h <<EOF
5560
 
#define $ac_tr_func 1
5561
 
EOF
5562
 
 
5563
 
else
5564
 
  echo "$ac_t""no" 1>&6
5565
 
fi
5566
 
done
5567
 
 
5568
 
if test $ac_cv_func_iconv = no; then
5569
 
  # Check if we have a libiconv library
5570
 
  # Check whether --with-libiconv-library or --without-libiconv-library was given.
5571
 
if test "${with_libiconv_library+set}" = set; then
5572
 
  withval="$with_libiconv_library"
5573
 
  libiconv_libdir="$withval"
5574
 
else
5575
 
  libiconv_libdir="no"
5576
 
fi
5577
 
 
5578
 
  cppflags_temp="$CPPFLAGS"
5579
 
 
5580
 
  if test "$libiconv_libdir" != "no"; then
5581
 
    CPPFLAGS="$CPPFLAGS -L$libiconv_libdir"
5582
 
  fi
5583
 
 
5584
 
  # BSDs install this lib as libgiconv
5585
 
  echo $ac_n "checking for main in -lgiconv""... $ac_c" 1>&6
5586
 
echo "configure:5587: checking for main in -lgiconv" >&5
5587
 
ac_lib_var=`echo giconv'_'main | sed 'y%./+-%__p_%'`
5588
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5589
 
  echo $ac_n "(cached) $ac_c" 1>&6
5590
 
else
5591
 
  ac_save_LIBS="$LIBS"
5592
 
LIBS="-lgiconv  $LIBS"
5593
 
cat > conftest.$ac_ext <<EOF
5594
 
#line 5595 "configure"
5595
 
#include "confdefs.h"
5596
 
 
5597
 
int main() {
5598
 
main()
5599
 
; return 0; }
5600
 
EOF
5601
 
if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602
 
  rm -rf conftest*
5603
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5604
 
else
5605
 
  echo "configure: failed program was:" >&5
5606
 
  cat conftest.$ac_ext >&5
5607
 
  rm -rf conftest*
5608
 
  eval "ac_cv_lib_$ac_lib_var=no"
5609
 
fi
5610
 
rm -f conftest*
5611
 
LIBS="$ac_save_LIBS"
5612
 
 
5613
 
fi
5614
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5615
 
  echo "$ac_t""yes" 1>&6
5616
 
    ac_tr_lib=HAVE_LIB`echo giconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5617
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5618
 
  cat >> confdefs.h <<EOF
5619
 
#define $ac_tr_lib 1
5620
 
EOF
5621
 
 
5622
 
  LIBS="-lgiconv $LIBS"
5623
 
 
5624
 
else
5625
 
  echo "$ac_t""no" 1>&6
5626
 
fi
5627
 
 
5628
 
  if test x"$ac_cv_lib_giconv_main" = xyes; then
5629
 
    cat >> confdefs.h <<\EOF
5630
 
#define HAVE_ICONV 1
5631
 
EOF
5632
 
 
5633
 
    cat >> confdefs.h <<\EOF
5634
 
#define HAVE_GICONV_H 1
5635
 
EOF
5636
 
 
5637
 
  else
5638
 
    echo $ac_n "checking for main in -liconv""... $ac_c" 1>&6
5639
 
echo "configure:5640: checking for main in -liconv" >&5
5640
 
ac_lib_var=`echo iconv'_'main | sed 'y%./+-%__p_%'`
5641
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5642
 
  echo $ac_n "(cached) $ac_c" 1>&6
5643
 
else
5644
 
  ac_save_LIBS="$LIBS"
5645
 
LIBS="-liconv  $LIBS"
5646
 
cat > conftest.$ac_ext <<EOF
5647
 
#line 5648 "configure"
5648
 
#include "confdefs.h"
5649
 
 
5650
 
int main() {
5651
 
main()
5652
 
; return 0; }
5653
 
EOF
5654
 
if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5655
 
  rm -rf conftest*
5656
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5657
 
else
5658
 
  echo "configure: failed program was:" >&5
5659
 
  cat conftest.$ac_ext >&5
5660
 
  rm -rf conftest*
5661
 
  eval "ac_cv_lib_$ac_lib_var=no"
5662
 
fi
5663
 
rm -f conftest*
5664
 
LIBS="$ac_save_LIBS"
5665
 
 
5666
 
fi
5667
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5668
 
  echo "$ac_t""yes" 1>&6
5669
 
    ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5670
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5671
 
  cat >> confdefs.h <<EOF
5672
 
#define $ac_tr_lib 1
5673
 
EOF
5674
 
 
5675
 
  LIBS="-liconv $LIBS"
5676
 
 
5677
 
else
5678
 
  echo "$ac_t""no" 1>&6
5679
 
fi
5680
 
 
5681
 
    if test x"$ac_cv_lib_iconv_main" = xyes; then
5682
 
      cat >> confdefs.h <<\EOF
5683
 
#define HAVE_ICONV 1
5684
 
EOF
5685
 
 
5686
 
    fi
5687
 
  fi
5688
 
  CPPFLAGS="$cppflags_temp"
5689
 
fi
5690
 
 
5691
 
 
5692
 
 
5693
 
subdirs="Source/mframe"
 
15243
    LIBS="-lgmp $LIBS"
 
15244
    USE_GMP=1
 
15245
  fi
 
15246
fi
 
15247
 
 
15248
 
 
15249
 
 
15250
#--------------------------------------------------------------------
 
15251
# Check whether nl_langinfo(CODESET) is supported, needed by Unicode.m.
 
15252
#--------------------------------------------------------------------
 
15253
 
 
15254
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
15255
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
15256
if test "${am_cv_langinfo_codeset+set}" = set; then
 
15257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15258
else
 
15259
  cat >conftest.$ac_ext <<_ACEOF
 
15260
/* confdefs.h.  */
 
15261
_ACEOF
 
15262
cat confdefs.h >>conftest.$ac_ext
 
15263
cat >>conftest.$ac_ext <<_ACEOF
 
15264
/* end confdefs.h.  */
 
15265
#include <langinfo.h>
 
15266
int
 
15267
main ()
 
15268
{
 
15269
char* cs = nl_langinfo(CODESET);
 
15270
  ;
 
15271
  return 0;
 
15272
}
 
15273
_ACEOF
 
15274
rm -f conftest.$ac_objext conftest$ac_exeext
 
15275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15276
  (eval $ac_link) 2>conftest.er1
 
15277
  ac_status=$?
 
15278
  grep -v '^ *+' conftest.er1 >conftest.err
 
15279
  rm -f conftest.er1
 
15280
  cat conftest.err >&5
 
15281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15282
  (exit $ac_status); } &&
 
15283
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15285
  (eval $ac_try) 2>&5
 
15286
  ac_status=$?
 
15287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15288
  (exit $ac_status); }; } &&
 
15289
         { ac_try='test -s conftest$ac_exeext'
 
15290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15291
  (eval $ac_try) 2>&5
 
15292
  ac_status=$?
 
15293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15294
  (exit $ac_status); }; }; then
 
15295
  am_cv_langinfo_codeset=yes
 
15296
else
 
15297
  echo "$as_me: failed program was:" >&5
 
15298
sed 's/^/| /' conftest.$ac_ext >&5
 
15299
 
 
15300
am_cv_langinfo_codeset=no
 
15301
fi
 
15302
rm -f conftest.err conftest.$ac_objext \
 
15303
      conftest$ac_exeext conftest.$ac_ext
 
15304
 
 
15305
fi
 
15306
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
15307
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
 
15308
  if test $am_cv_langinfo_codeset = yes; then
 
15309
 
 
15310
cat >>confdefs.h <<\_ACEOF
 
15311
#define HAVE_LANGINFO_CODESET 1
 
15312
_ACEOF
 
15313
 
 
15314
  fi
 
15315
 
 
15316
 
 
15317
 
 
15318
 
 
15319
 
 
15320
 
 
15321
#--------------------------------------------------------------------
 
15322
# Configure flags from sub-configure runs, so they show up in our
 
15323
# help file.
 
15324
#--------------------------------------------------------------------
 
15325
# Check whether --enable-openssl or --disable-openssl was given.
 
15326
if test "${enable_openssl+set}" = set; then
 
15327
  enableval="$enable_openssl"
 
15328
 
 
15329
else
 
15330
  enable_openssl=yes
 
15331
fi;
 
15332
 
 
15333
# Check whether --with-openssl-include or --without-openssl-include was given.
 
15334
if test "${with_openssl_include+set}" = set; then
 
15335
  withval="$with_openssl_include"
 
15336
  openssl_incdir="$withval"
 
15337
else
 
15338
  openssl_incdir="no"
 
15339
fi;
 
15340
 
 
15341
# Check whether --with-openssl-library or --without-openssl-library was given.
 
15342
if test "${with_openssl_library+set}" = set; then
 
15343
  withval="$with_openssl_library"
 
15344
  openssl_libdir="$withval"
 
15345
else
 
15346
  openssl_libdir="no"
 
15347
fi;
 
15348
 
 
15349
 
 
15350
 
 
15351
subdirs="$subdirs Source/mframe SSL"
5694
15352
 
5695
15353
 
5696
15354
#--------------------------------------------------------------------
5697
15355
# Record the version
5698
15356
#--------------------------------------------------------------------
5699
 
echo $ac_n "checking for the version of gnustep-base we are compiling""... $ac_c" 1>&6
5700
 
echo "configure:5701: checking for the version of gnustep-base we are compiling" >&5
 
15357
echo "$as_me:$LINENO: checking for the version of gnustep-base we are compiling" >&5
 
15358
echo $ECHO_N "checking for the version of gnustep-base we are compiling... $ECHO_C" >&6
5701
15359
if test -f "Version"; then
5702
15360
  . ./Version
5703
15361
fi
5704
 
echo "$ac_t""$VERSION" 1>&6
 
15362
echo "$as_me:$LINENO: result: $VERSION" >&5
 
15363
echo "${ECHO_T}$VERSION" >&6
5705
15364
 
5706
15365
 
5707
15366
 
5711
15370
#--------------------------------------------------------------------
5712
15371
# Write the Makefiles
5713
15372
#--------------------------------------------------------------------
5714
 
trap '' 1 2 15
5715
 
cat > confcache <<\EOF
 
15373
                                        ac_config_files="$ac_config_files config.mak base.make Headers/Additions/GNUstepBase/GSConfig.h Headers/Additions/GNUstepBase/preface.h"
 
15374
 
 
15375
cat >confcache <<\_ACEOF
5716
15376
# This file is a shell script that caches the results of configure
5717
15377
# tests run on this system so they can be shared between configure
5718
 
# scripts and configure runs.  It is not useful on other systems.
5719
 
# If it contains results you don't want to keep, you may remove or edit it.
5720
 
#
5721
 
# By default, configure uses ./config.cache as the cache file,
5722
 
# creating it if it does not exist already.  You can give configure
5723
 
# the --cache-file=FILE option to use a different cache file; that is
5724
 
# what configure does when it calls configure scripts in
5725
 
# subdirectories, so they share the cache.
5726
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
5727
 
# config.status only pays attention to the cache file if you give it the
5728
 
# --recheck option to rerun configure.
5729
 
#
5730
 
EOF
 
15378
# scripts and configure runs, see configure's option --config-cache.
 
15379
# It is not useful on other systems.  If it contains results you don't
 
15380
# want to keep, you may remove or edit it.
 
15381
#
 
15382
# config.status only pays attention to the cache file if you give it
 
15383
# the --recheck option to rerun configure.
 
15384
#
 
15385
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
15386
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
15387
# following values.
 
15388
 
 
15389
_ACEOF
 
15390
 
5731
15391
# The following way of writing the cache mishandles newlines in values,
5732
15392
# but we know of no workaround that is simple, portable, and efficient.
5733
15393
# So, don't put newlines in cache variables' values.
5734
15394
# Ultrix sh set writes to stderr and can't be redirected directly,
5735
15395
# and sets the high bit in the cache file unless we assign to the vars.
5736
 
(set) 2>&1 |
5737
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
5738
 
  *ac_space=\ *)
5739
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
5740
 
    # turns \\\\ into \\, and sed turns \\ into \).
5741
 
    sed -n \
5742
 
      -e "s/'/'\\\\''/g" \
5743
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5744
 
    ;;
5745
 
  *)
5746
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
5747
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5748
 
    ;;
5749
 
  esac >> confcache
5750
 
if cmp -s $cache_file confcache; then
5751
 
  :
5752
 
else
 
15396
{
 
15397
  (set) 2>&1 |
 
15398
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
15399
    *ac_space=\ *)
 
15400
      # `set' does not quote correctly, so add quotes (double-quote
 
15401
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
15402
      sed -n \
 
15403
        "s/'/'\\\\''/g;
 
15404
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
15405
      ;;
 
15406
    *)
 
15407
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
15408
      sed -n \
 
15409
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
15410
      ;;
 
15411
    esac;
 
15412
} |
 
15413
  sed '
 
15414
     t clear
 
15415
     : clear
 
15416
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
15417
     t end
 
15418
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
15419
     : end' >>confcache
 
15420
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5753
15421
  if test -w $cache_file; then
5754
 
    echo "updating cache $cache_file"
5755
 
    cat confcache > $cache_file
 
15422
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
15423
    cat confcache >$cache_file
5756
15424
  else
5757
15425
    echo "not updating unwritable cache $cache_file"
5758
15426
  fi
5759
15427
fi
5760
15428
rm -f confcache
5761
15429
 
5762
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5763
 
 
5764
15430
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5765
15431
# Let make expand exec_prefix.
5766
15432
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5767
15433
 
5768
 
# Any assignment to VPATH causes Sun make to only execute
5769
 
# the first set of double-colon rules, so remove it if not needed.
5770
 
# If there is a colon in the path, we need to keep it.
 
15434
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
15435
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
15436
# trailing colons and then remove the whole line if VPATH becomes empty
 
15437
# (actually we leave an empty line to preserve line numbers).
5771
15438
if test "x$srcdir" = x.; then
5772
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
15439
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
15440
s/:*\$(srcdir):*/:/;
 
15441
s/:*\${srcdir}:*/:/;
 
15442
s/:*@srcdir@:*/:/;
 
15443
s/^\([^=]*=[     ]*\):*/\1/;
 
15444
s/:*$//;
 
15445
s/^[^=]*=[       ]*$//;
 
15446
}'
5773
15447
fi
5774
15448
 
5775
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5776
 
 
5777
15449
DEFS=-DHAVE_CONFIG_H
5778
15450
 
5779
 
# Without the "./", some shells look in PATH for config.status.
 
15451
ac_libobjs=
 
15452
ac_ltlibobjs=
 
15453
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
15454
  # 1. Remove the extension, and $U if already installed.
 
15455
  ac_i=`echo "$ac_i" |
 
15456
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
15457
  # 2. Add them.
 
15458
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
15459
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
15460
done
 
15461
LIBOBJS=$ac_libobjs
 
15462
 
 
15463
LTLIBOBJS=$ac_ltlibobjs
 
15464
 
 
15465
 
 
15466
 
5780
15467
: ${CONFIG_STATUS=./config.status}
5781
 
 
5782
 
echo creating $CONFIG_STATUS
5783
 
rm -f $CONFIG_STATUS
5784
 
cat > $CONFIG_STATUS <<EOF
5785
 
#! /bin/sh
5786
 
# Generated automatically by configure.
 
15468
ac_clean_files_save=$ac_clean_files
 
15469
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
15470
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
15471
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
15472
cat >$CONFIG_STATUS <<_ACEOF
 
15473
#! $SHELL
 
15474
# Generated by $as_me.
5787
15475
# Run this file to recreate the current configuration.
5788
 
# This directory was configured as follows,
5789
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5790
 
#
5791
 
# $0 $ac_configure_args
5792
 
#
5793
15476
# Compiler output produced by configure, useful for debugging
5794
 
# configure, is in ./config.log if it exists.
5795
 
 
5796
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5797
 
for ac_option
5798
 
do
5799
 
  case "\$ac_option" in
 
15477
# configure, is in config.log if it exists.
 
15478
 
 
15479
debug=false
 
15480
ac_cs_recheck=false
 
15481
ac_cs_silent=false
 
15482
SHELL=\${CONFIG_SHELL-$SHELL}
 
15483
_ACEOF
 
15484
 
 
15485
cat >>$CONFIG_STATUS <<\_ACEOF
 
15486
## --------------------- ##
 
15487
## M4sh Initialization.  ##
 
15488
## --------------------- ##
 
15489
 
 
15490
# Be Bourne compatible
 
15491
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15492
  emulate sh
 
15493
  NULLCMD=:
 
15494
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
15495
  # is contrary to our usage.  Disable this feature.
 
15496
  alias -g '${1+"$@"}'='"$@"'
 
15497
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
15498
  set -o posix
 
15499
fi
 
15500
DUALCASE=1; export DUALCASE # for MKS sh
 
15501
 
 
15502
# Support unset when possible.
 
15503
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
15504
  as_unset=unset
 
15505
else
 
15506
  as_unset=false
 
15507
fi
 
15508
 
 
15509
 
 
15510
# Work around bugs in pre-3.0 UWIN ksh.
 
15511
$as_unset ENV MAIL MAILPATH
 
15512
PS1='$ '
 
15513
PS2='> '
 
15514
PS4='+ '
 
15515
 
 
15516
# NLS nuisances.
 
15517
for as_var in \
 
15518
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
15519
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
15520
  LC_TELEPHONE LC_TIME
 
15521
do
 
15522
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
15523
    eval $as_var=C; export $as_var
 
15524
  else
 
15525
    $as_unset $as_var
 
15526
  fi
 
15527
done
 
15528
 
 
15529
# Required to use basename.
 
15530
if expr a : '\(a\)' >/dev/null 2>&1; then
 
15531
  as_expr=expr
 
15532
else
 
15533
  as_expr=false
 
15534
fi
 
15535
 
 
15536
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
15537
  as_basename=basename
 
15538
else
 
15539
  as_basename=false
 
15540
fi
 
15541
 
 
15542
 
 
15543
# Name of the executable.
 
15544
as_me=`$as_basename "$0" ||
 
15545
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
15546
         X"$0" : 'X\(//\)$' \| \
 
15547
         X"$0" : 'X\(/\)$' \| \
 
15548
         .     : '\(.\)' 2>/dev/null ||
 
15549
echo X/"$0" |
 
15550
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
15551
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
15552
          /^X\/\(\/\).*/{ s//\1/; q; }
 
15553
          s/.*/./; q'`
 
15554
 
 
15555
 
 
15556
# PATH needs CR, and LINENO needs CR and PATH.
 
15557
# Avoid depending upon Character Ranges.
 
15558
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
15559
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
15560
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15561
as_cr_digits='0123456789'
 
15562
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
15563
 
 
15564
# The user is always right.
 
15565
if test "${PATH_SEPARATOR+set}" != set; then
 
15566
  echo "#! /bin/sh" >conf$$.sh
 
15567
  echo  "exit 0"   >>conf$$.sh
 
15568
  chmod +x conf$$.sh
 
15569
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
15570
    PATH_SEPARATOR=';'
 
15571
  else
 
15572
    PATH_SEPARATOR=:
 
15573
  fi
 
15574
  rm -f conf$$.sh
 
15575
fi
 
15576
 
 
15577
 
 
15578
  as_lineno_1=$LINENO
 
15579
  as_lineno_2=$LINENO
 
15580
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
15581
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
15582
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
15583
  # Find who we are.  Look in the path if we contain no path at all
 
15584
  # relative or not.
 
15585
  case $0 in
 
15586
    *[\\/]* ) as_myself=$0 ;;
 
15587
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15588
for as_dir in $PATH
 
15589
do
 
15590
  IFS=$as_save_IFS
 
15591
  test -z "$as_dir" && as_dir=.
 
15592
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
15593
done
 
15594
 
 
15595
       ;;
 
15596
  esac
 
15597
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
15598
  # in which case we are not to be found in the path.
 
15599
  if test "x$as_myself" = x; then
 
15600
    as_myself=$0
 
15601
  fi
 
15602
  if test ! -f "$as_myself"; then
 
15603
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
15604
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
15605
   { (exit 1); exit 1; }; }
 
15606
  fi
 
15607
  case $CONFIG_SHELL in
 
15608
  '')
 
15609
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15610
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
15611
do
 
15612
  IFS=$as_save_IFS
 
15613
  test -z "$as_dir" && as_dir=.
 
15614
  for as_base in sh bash ksh sh5; do
 
15615
         case $as_dir in
 
15616
         /*)
 
15617
           if ("$as_dir/$as_base" -c '
 
15618
  as_lineno_1=$LINENO
 
15619
  as_lineno_2=$LINENO
 
15620
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
15621
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
15622
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
15623
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
15624
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
15625
             CONFIG_SHELL=$as_dir/$as_base
 
15626
             export CONFIG_SHELL
 
15627
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
15628
           fi;;
 
15629
         esac
 
15630
       done
 
15631
done
 
15632
;;
 
15633
  esac
 
15634
 
 
15635
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
15636
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
15637
  # line-number line before each line; the second 'sed' does the real
 
15638
  # work.  The second script uses 'N' to pair each line-number line
 
15639
  # with the numbered line, and appends trailing '-' during
 
15640
  # substitution so that $LINENO is not a special case at line end.
 
15641
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
15642
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
15643
  sed '=' <$as_myself |
 
15644
    sed '
 
15645
      N
 
15646
      s,$,-,
 
15647
      : loop
 
15648
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
15649
      t loop
 
15650
      s,-$,,
 
15651
      s,^['$as_cr_digits']*\n,,
 
15652
    ' >$as_me.lineno &&
 
15653
  chmod +x $as_me.lineno ||
 
15654
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
15655
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
15656
   { (exit 1); exit 1; }; }
 
15657
 
 
15658
  # Don't try to exec as it changes $[0], causing all sort of problems
 
15659
  # (the dirname of $[0] is not the place where we might find the
 
15660
  # original and so on.  Autoconf is especially sensible to this).
 
15661
  . ./$as_me.lineno
 
15662
  # Exit status is that of the last command.
 
15663
  exit
 
15664
}
 
15665
 
 
15666
 
 
15667
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
15668
  *c*,-n*) ECHO_N= ECHO_C='
 
15669
' ECHO_T='      ' ;;
 
15670
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
15671
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
15672
esac
 
15673
 
 
15674
if expr a : '\(a\)' >/dev/null 2>&1; then
 
15675
  as_expr=expr
 
15676
else
 
15677
  as_expr=false
 
15678
fi
 
15679
 
 
15680
rm -f conf$$ conf$$.exe conf$$.file
 
15681
echo >conf$$.file
 
15682
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15683
  # We could just check for DJGPP; but this test a) works b) is more generic
 
15684
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
15685
  if test -f conf$$.exe; then
 
15686
    # Don't use ln at all; we don't have any links
 
15687
    as_ln_s='cp -p'
 
15688
  else
 
15689
    as_ln_s='ln -s'
 
15690
  fi
 
15691
elif ln conf$$.file conf$$ 2>/dev/null; then
 
15692
  as_ln_s=ln
 
15693
else
 
15694
  as_ln_s='cp -p'
 
15695
fi
 
15696
rm -f conf$$ conf$$.exe conf$$.file
 
15697
 
 
15698
if mkdir -p . 2>/dev/null; then
 
15699
  as_mkdir_p=:
 
15700
else
 
15701
  test -d ./-p && rmdir ./-p
 
15702
  as_mkdir_p=false
 
15703
fi
 
15704
 
 
15705
as_executable_p="test -f"
 
15706
 
 
15707
# Sed expression to map a string onto a valid CPP name.
 
15708
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
15709
 
 
15710
# Sed expression to map a string onto a valid variable name.
 
15711
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
15712
 
 
15713
 
 
15714
# IFS
 
15715
# We need space, tab and new line, in precisely that order.
 
15716
as_nl='
 
15717
'
 
15718
IFS="   $as_nl"
 
15719
 
 
15720
# CDPATH.
 
15721
$as_unset CDPATH
 
15722
 
 
15723
exec 6>&1
 
15724
 
 
15725
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
15726
# report actual input values of CONFIG_FILES etc. instead of their
 
15727
# values after options handling.  Logging --version etc. is OK.
 
15728
exec 5>>config.log
 
15729
{
 
15730
  echo
 
15731
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15732
## Running $as_me. ##
 
15733
_ASBOX
 
15734
} >&5
 
15735
cat >&5 <<_CSEOF
 
15736
 
 
15737
This file was extended by $as_me, which was
 
15738
generated by GNU Autoconf 2.59.  Invocation command line was
 
15739
 
 
15740
  CONFIG_FILES    = $CONFIG_FILES
 
15741
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
15742
  CONFIG_LINKS    = $CONFIG_LINKS
 
15743
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
15744
  $ $0 $@
 
15745
 
 
15746
_CSEOF
 
15747
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
15748
echo >&5
 
15749
_ACEOF
 
15750
 
 
15751
# Files that config.status was made for.
 
15752
if test -n "$ac_config_files"; then
 
15753
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
15754
fi
 
15755
 
 
15756
if test -n "$ac_config_headers"; then
 
15757
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
15758
fi
 
15759
 
 
15760
if test -n "$ac_config_links"; then
 
15761
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
15762
fi
 
15763
 
 
15764
if test -n "$ac_config_commands"; then
 
15765
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
15766
fi
 
15767
 
 
15768
cat >>$CONFIG_STATUS <<\_ACEOF
 
15769
 
 
15770
ac_cs_usage="\
 
15771
\`$as_me' instantiates files from templates according to the
 
15772
current configuration.
 
15773
 
 
15774
Usage: $0 [OPTIONS] [FILE]...
 
15775
 
 
15776
  -h, --help       print this help, then exit
 
15777
  -V, --version    print version number, then exit
 
15778
  -q, --quiet      do not print progress messages
 
15779
  -d, --debug      don't remove temporary files
 
15780
      --recheck    update $as_me by reconfiguring in the same conditions
 
15781
  --file=FILE[:TEMPLATE]
 
15782
                   instantiate the configuration file FILE
 
15783
  --header=FILE[:TEMPLATE]
 
15784
                   instantiate the configuration header FILE
 
15785
 
 
15786
Configuration files:
 
15787
$config_files
 
15788
 
 
15789
Configuration headers:
 
15790
$config_headers
 
15791
 
 
15792
Report bugs to <bug-autoconf@gnu.org>."
 
15793
_ACEOF
 
15794
 
 
15795
cat >>$CONFIG_STATUS <<_ACEOF
 
15796
ac_cs_version="\\
 
15797
config.status
 
15798
configured by $0, generated by GNU Autoconf 2.59,
 
15799
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
15800
 
 
15801
Copyright (C) 2003 Free Software Foundation, Inc.
 
15802
This config.status script is free software; the Free Software Foundation
 
15803
gives unlimited permission to copy, distribute and modify it."
 
15804
srcdir=$srcdir
 
15805
_ACEOF
 
15806
 
 
15807
cat >>$CONFIG_STATUS <<\_ACEOF
 
15808
# If no file are specified by the user, then we need to provide default
 
15809
# value.  By we need to know if files were specified by the user.
 
15810
ac_need_defaults=:
 
15811
while test $# != 0
 
15812
do
 
15813
  case $1 in
 
15814
  --*=*)
 
15815
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
15816
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
15817
    ac_shift=:
 
15818
    ;;
 
15819
  -*)
 
15820
    ac_option=$1
 
15821
    ac_optarg=$2
 
15822
    ac_shift=shift
 
15823
    ;;
 
15824
  *) # This is not an option, so the user has probably given explicit
 
15825
     # arguments.
 
15826
     ac_option=$1
 
15827
     ac_need_defaults=false;;
 
15828
  esac
 
15829
 
 
15830
  case $ac_option in
 
15831
  # Handling of the options.
 
15832
_ACEOF
 
15833
cat >>$CONFIG_STATUS <<\_ACEOF
5800
15834
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5801
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5802
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5803
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5804
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
5805
 
    exit 0 ;;
5806
 
  -help | --help | --hel | --he | --h)
5807
 
    echo "\$ac_cs_usage"; exit 0 ;;
5808
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
5809
 
  esac
5810
 
done
5811
 
 
5812
 
ac_given_srcdir=$srcdir
5813
 
 
5814
 
trap 'rm -fr `echo "config.mak base.make Headers/gnustep/base/GSConfig.h 
5815
 
          Headers/gnustep/base/preface.h Headers/gnustep/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5816
 
EOF
5817
 
cat >> $CONFIG_STATUS <<EOF
5818
 
 
5819
 
# Protect against being on the right side of a sed subst in config.status.
5820
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5821
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5822
 
$ac_vpsub
 
15835
    ac_cs_recheck=: ;;
 
15836
  --version | --vers* | -V )
 
15837
    echo "$ac_cs_version"; exit 0 ;;
 
15838
  --he | --h)
 
15839
    # Conflict between --help and --header
 
15840
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
15841
Try \`$0 --help' for more information." >&5
 
15842
echo "$as_me: error: ambiguous option: $1
 
15843
Try \`$0 --help' for more information." >&2;}
 
15844
   { (exit 1); exit 1; }; };;
 
15845
  --help | --hel | -h )
 
15846
    echo "$ac_cs_usage"; exit 0 ;;
 
15847
  --debug | --d* | -d )
 
15848
    debug=: ;;
 
15849
  --file | --fil | --fi | --f )
 
15850
    $ac_shift
 
15851
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
15852
    ac_need_defaults=false;;
 
15853
  --header | --heade | --head | --hea )
 
15854
    $ac_shift
 
15855
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
15856
    ac_need_defaults=false;;
 
15857
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15858
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15859
    ac_cs_silent=: ;;
 
15860
 
 
15861
  # This is an error.
 
15862
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
15863
Try \`$0 --help' for more information." >&5
 
15864
echo "$as_me: error: unrecognized option: $1
 
15865
Try \`$0 --help' for more information." >&2;}
 
15866
   { (exit 1); exit 1; }; } ;;
 
15867
 
 
15868
  *) ac_config_targets="$ac_config_targets $1" ;;
 
15869
 
 
15870
  esac
 
15871
  shift
 
15872
done
 
15873
 
 
15874
ac_configure_extra_args=
 
15875
 
 
15876
if $ac_cs_silent; then
 
15877
  exec 6>/dev/null
 
15878
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15879
fi
 
15880
 
 
15881
_ACEOF
 
15882
cat >>$CONFIG_STATUS <<_ACEOF
 
15883
if \$ac_cs_recheck; then
 
15884
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
15885
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15886
fi
 
15887
 
 
15888
_ACEOF
 
15889
 
 
15890
 
 
15891
 
 
15892
 
 
15893
 
 
15894
cat >>$CONFIG_STATUS <<\_ACEOF
 
15895
for ac_config_target in $ac_config_targets
 
15896
do
 
15897
  case "$ac_config_target" in
 
15898
  # Handling of arguments.
 
15899
  "config.mak" ) CONFIG_FILES="$CONFIG_FILES config.mak" ;;
 
15900
  "base.make" ) CONFIG_FILES="$CONFIG_FILES base.make" ;;
 
15901
  "Headers/Additions/GNUstepBase/GSConfig.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/GSConfig.h" ;;
 
15902
  "Headers/Additions/GNUstepBase/preface.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/preface.h" ;;
 
15903
  "Headers/Additions/GNUstepBase/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Headers/Additions/GNUstepBase/config.h" ;;
 
15904
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
15905
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
15906
   { (exit 1); exit 1; }; };;
 
15907
  esac
 
15908
done
 
15909
 
 
15910
# If the user did not use the arguments to specify the items to instantiate,
 
15911
# then the envvar interface is used.  Set only those that are not.
 
15912
# We use the long form for the default assignment because of an extremely
 
15913
# bizarre bug on SunOS 4.1.3.
 
15914
if $ac_need_defaults; then
 
15915
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
15916
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
15917
fi
 
15918
 
 
15919
# Have a temporary directory for convenience.  Make it in the build tree
 
15920
# simply because there is no reason to put it here, and in addition,
 
15921
# creating and moving files from /tmp can sometimes cause problems.
 
15922
# Create a temporary directory, and hook for its removal unless debugging.
 
15923
$debug ||
 
15924
{
 
15925
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
15926
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
15927
}
 
15928
 
 
15929
# Create a (secure) tmp directory for tmp files.
 
15930
 
 
15931
{
 
15932
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
15933
  test -n "$tmp" && test -d "$tmp"
 
15934
}  ||
 
15935
{
 
15936
  tmp=./confstat$$-$RANDOM
 
15937
  (umask 077 && mkdir $tmp)
 
15938
} ||
 
15939
{
 
15940
   echo "$me: cannot create a temporary directory in ." >&2
 
15941
   { (exit 1); exit 1; }
 
15942
}
 
15943
 
 
15944
_ACEOF
 
15945
 
 
15946
cat >>$CONFIG_STATUS <<_ACEOF
 
15947
 
 
15948
#
 
15949
# CONFIG_FILES section.
 
15950
#
 
15951
 
 
15952
# No need to generate the scripts if there are no CONFIG_FILES.
 
15953
# This happens for instance when ./config.status config.h
 
15954
if test -n "\$CONFIG_FILES"; then
 
15955
  # Protect against being on the right side of a sed subst in config.status.
 
15956
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
15957
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
15958
s,@SHELL@,$SHELL,;t t
 
15959
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
15960
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
15961
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
15962
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
15963
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
15964
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
15965
s,@exec_prefix@,$exec_prefix,;t t
 
15966
s,@prefix@,$prefix,;t t
 
15967
s,@program_transform_name@,$program_transform_name,;t t
 
15968
s,@bindir@,$bindir,;t t
 
15969
s,@sbindir@,$sbindir,;t t
 
15970
s,@libexecdir@,$libexecdir,;t t
 
15971
s,@datadir@,$datadir,;t t
 
15972
s,@sysconfdir@,$sysconfdir,;t t
 
15973
s,@sharedstatedir@,$sharedstatedir,;t t
 
15974
s,@localstatedir@,$localstatedir,;t t
 
15975
s,@libdir@,$libdir,;t t
 
15976
s,@includedir@,$includedir,;t t
 
15977
s,@oldincludedir@,$oldincludedir,;t t
 
15978
s,@infodir@,$infodir,;t t
 
15979
s,@mandir@,$mandir,;t t
 
15980
s,@build_alias@,$build_alias,;t t
 
15981
s,@host_alias@,$host_alias,;t t
 
15982
s,@target_alias@,$target_alias,;t t
 
15983
s,@DEFS@,$DEFS,;t t
 
15984
s,@ECHO_C@,$ECHO_C,;t t
 
15985
s,@ECHO_N@,$ECHO_N,;t t
 
15986
s,@ECHO_T@,$ECHO_T,;t t
 
15987
s,@LIBS@,$LIBS,;t t
 
15988
s,@build@,$build,;t t
 
15989
s,@build_cpu@,$build_cpu,;t t
 
15990
s,@build_vendor@,$build_vendor,;t t
 
15991
s,@build_os@,$build_os,;t t
 
15992
s,@host@,$host,;t t
 
15993
s,@host_cpu@,$host_cpu,;t t
 
15994
s,@host_vendor@,$host_vendor,;t t
 
15995
s,@host_os@,$host_os,;t t
 
15996
s,@target@,$target,;t t
 
15997
s,@target_cpu@,$target_cpu,;t t
 
15998
s,@target_vendor@,$target_vendor,;t t
 
15999
s,@target_os@,$target_os,;t t
 
16000
s,@CC@,$CC,;t t
 
16001
s,@CFLAGS@,$CFLAGS,;t t
 
16002
s,@LDFLAGS@,$LDFLAGS,;t t
 
16003
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
16004
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
16005
s,@EXEEXT@,$EXEEXT,;t t
 
16006
s,@OBJEXT@,$OBJEXT,;t t
 
16007
s,@CPP@,$CPP,;t t
 
16008
s,@WHOAMI@,$WHOAMI,;t t
 
16009
s,@EGREP@,$EGREP,;t t
 
16010
s,@GS_WORDS_BIGENDIAN@,$GS_WORDS_BIGENDIAN,;t t
 
16011
s,@GS_SINT8@,$GS_SINT8,;t t
 
16012
s,@GS_UINT8@,$GS_UINT8,;t t
 
16013
s,@ac_cv_sizeof_short@,$ac_cv_sizeof_short,;t t
 
16014
s,@ac_cv_sizeof_int@,$ac_cv_sizeof_int,;t t
 
16015
s,@ac_cv_sizeof_long@,$ac_cv_sizeof_long,;t t
 
16016
s,@ac_cv_sizeof_long_long@,$ac_cv_sizeof_long_long,;t t
 
16017
s,@ac_cv_sizeof_float@,$ac_cv_sizeof_float,;t t
 
16018
s,@ac_cv_sizeof_double@,$ac_cv_sizeof_double,;t t
 
16019
s,@ac_cv_sizeof_voidp@,$ac_cv_sizeof_voidp,;t t
 
16020
s,@GS_ADDR@,$GS_ADDR,;t t
 
16021
s,@GS_SINT16@,$GS_SINT16,;t t
 
16022
s,@GS_UINT16@,$GS_UINT16,;t t
 
16023
s,@GS_SINT32@,$GS_SINT32,;t t
 
16024
s,@GS_UINT32@,$GS_UINT32,;t t
 
16025
s,@GS_SINT64@,$GS_SINT64,;t t
 
16026
s,@GS_UINT64@,$GS_UINT64,;t t
 
16027
s,@GS_HAVE_I64@,$GS_HAVE_I64,;t t
 
16028
s,@GS_SINT128@,$GS_SINT128,;t t
 
16029
s,@GS_UINT128@,$GS_UINT128,;t t
 
16030
s,@GS_HAVE_I128@,$GS_HAVE_I128,;t t
 
16031
s,@GS_FLT32@,$GS_FLT32,;t t
 
16032
s,@GS_FLT64@,$GS_FLT64,;t t
 
16033
s,@_GSC_S_SHT@,$_GSC_S_SHT,;t t
 
16034
s,@_GSC_S_INT@,$_GSC_S_INT,;t t
 
16035
s,@_GSC_S_LNG@,$_GSC_S_LNG,;t t
 
16036
s,@_GSC_S_LNG_LNG@,$_GSC_S_LNG_LNG,;t t
 
16037
s,@DYNAMIC_LINKER@,$DYNAMIC_LINKER,;t t
 
16038
s,@NX_CONST_STRING_OBJCFLAGS@,$NX_CONST_STRING_OBJCFLAGS,;t t
 
16039
s,@NX_CONST_STRING_CLASS@,$NX_CONST_STRING_CLASS,;t t
 
16040
s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
 
16041
s,@HAVE_PTS_STREAM_MODULES@,$HAVE_PTS_STREAM_MODULES,;t t
 
16042
s,@INCLUDE_STDINT@,$INCLUDE_STDINT,;t t
 
16043
s,@DEFINE_UINT8_T@,$DEFINE_UINT8_T,;t t
 
16044
s,@DEFINE_INT32_T@,$DEFINE_INT32_T,;t t
 
16045
s,@DEFINE_INT64_T@,$DEFINE_INT64_T,;t t
 
16046
s,@USE_ZLIB@,$USE_ZLIB,;t t
 
16047
s,@GS_PASS_ARGUMENTS@,$GS_PASS_ARGUMENTS,;t t
 
16048
s,@GS_FAKE_MAIN@,$GS_FAKE_MAIN,;t t
 
16049
s,@WITH_FFI@,$WITH_FFI,;t t
 
16050
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
 
16051
s,@XML_CONFIG@,$XML_CONFIG,;t t
 
16052
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
 
16053
s,@XML_LIBS@,$XML_LIBS,;t t
 
16054
s,@HAVE_LIBXSLT@,$HAVE_LIBXSLT,;t t
 
16055
s,@HAVE_LIBXML@,$HAVE_LIBXML,;t t
 
16056
s,@USE_GMP@,$USE_GMP,;t t
 
16057
s,@INCLUDE_FLAGS@,$INCLUDE_FLAGS,;t t
 
16058
s,@LDIR_FLAGS@,$LDIR_FLAGS,;t t
 
16059
s,@subdirs@,$subdirs,;t t
 
16060
s,@VERSION@,$VERSION,;t t
 
16061
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
 
16062
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
 
16063
s,@SUBMINOR_VERSION@,$SUBMINOR_VERSION,;t t
 
16064
s,@GCC_VERSION@,$GCC_VERSION,;t t
 
16065
s,@LIBOBJS@,$LIBOBJS,;t t
 
16066
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
16067
CEOF
 
16068
 
 
16069
_ACEOF
 
16070
 
 
16071
  cat >>$CONFIG_STATUS <<\_ACEOF
 
16072
  # Split the substitutions into bite-sized pieces for seds with
 
16073
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
16074
  ac_max_sed_lines=48
 
16075
  ac_sed_frag=1 # Number of current file.
 
16076
  ac_beg=1 # First line for current file.
 
16077
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
16078
  ac_more_lines=:
 
16079
  ac_sed_cmds=
 
16080
  while $ac_more_lines; do
 
16081
    if test $ac_beg -gt 1; then
 
16082
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
16083
    else
 
16084
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
16085
    fi
 
16086
    if test ! -s $tmp/subs.frag; then
 
16087
      ac_more_lines=false
 
16088
    else
 
16089
      # The purpose of the label and of the branching condition is to
 
16090
      # speed up the sed processing (if there are no `@' at all, there
 
16091
      # is no need to browse any of the substitutions).
 
16092
      # These are the two extra sed commands mentioned above.
 
16093
      (echo ':t
 
16094
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
16095
      if test -z "$ac_sed_cmds"; then
 
16096
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
16097
      else
 
16098
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
16099
      fi
 
16100
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
16101
      ac_beg=$ac_end
 
16102
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
16103
    fi
 
16104
  done
 
16105
  if test -z "$ac_sed_cmds"; then
 
16106
    ac_sed_cmds=cat
 
16107
  fi
 
16108
fi # test -n "$CONFIG_FILES"
 
16109
 
 
16110
_ACEOF
 
16111
cat >>$CONFIG_STATUS <<\_ACEOF
 
16112
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
16113
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
16114
  case $ac_file in
 
16115
  - | *:- | *:-:* ) # input from stdin
 
16116
        cat >$tmp/stdin
 
16117
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16118
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16119
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16120
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16121
  * )   ac_file_in=$ac_file.in ;;
 
16122
  esac
 
16123
 
 
16124
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
16125
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
16126
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16127
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16128
         X"$ac_file" : 'X\(//\)$' \| \
 
16129
         X"$ac_file" : 'X\(/\)' \| \
 
16130
         .     : '\(.\)' 2>/dev/null ||
 
16131
echo X"$ac_file" |
 
16132
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16133
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16134
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16135
          /^X\(\/\).*/{ s//\1/; q; }
 
16136
          s/.*/./; q'`
 
16137
  { if $as_mkdir_p; then
 
16138
    mkdir -p "$ac_dir"
 
16139
  else
 
16140
    as_dir="$ac_dir"
 
16141
    as_dirs=
 
16142
    while test ! -d "$as_dir"; do
 
16143
      as_dirs="$as_dir $as_dirs"
 
16144
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
16145
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16146
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16147
         X"$as_dir" : 'X\(//\)$' \| \
 
16148
         X"$as_dir" : 'X\(/\)' \| \
 
16149
         .     : '\(.\)' 2>/dev/null ||
 
16150
echo X"$as_dir" |
 
16151
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16152
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16153
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16154
          /^X\(\/\).*/{ s//\1/; q; }
 
16155
          s/.*/./; q'`
 
16156
    done
 
16157
    test ! -n "$as_dirs" || mkdir $as_dirs
 
16158
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
16159
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
16160
   { (exit 1); exit 1; }; }; }
 
16161
 
 
16162
  ac_builddir=.
 
16163
 
 
16164
if test "$ac_dir" != .; then
 
16165
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
16166
  # A "../" for each directory in $ac_dir_suffix.
 
16167
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
16168
else
 
16169
  ac_dir_suffix= ac_top_builddir=
 
16170
fi
 
16171
 
 
16172
case $srcdir in
 
16173
  .)  # No --srcdir option.  We are building in place.
 
16174
    ac_srcdir=.
 
16175
    if test -z "$ac_top_builddir"; then
 
16176
       ac_top_srcdir=.
 
16177
    else
 
16178
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
16179
    fi ;;
 
16180
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
16181
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16182
    ac_top_srcdir=$srcdir ;;
 
16183
  *) # Relative path.
 
16184
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
16185
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
16186
esac
 
16187
 
 
16188
# Do not use `cd foo && pwd` to compute absolute paths, because
 
16189
# the directories may not exist.
 
16190
case `pwd` in
 
16191
.) ac_abs_builddir="$ac_dir";;
 
16192
*)
 
16193
  case "$ac_dir" in
 
16194
  .) ac_abs_builddir=`pwd`;;
 
16195
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
16196
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
16197
  esac;;
 
16198
esac
 
16199
case $ac_abs_builddir in
 
16200
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
16201
*)
 
16202
  case ${ac_top_builddir}. in
 
16203
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
16204
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
16205
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
16206
  esac;;
 
16207
esac
 
16208
case $ac_abs_builddir in
 
16209
.) ac_abs_srcdir=$ac_srcdir;;
 
16210
*)
 
16211
  case $ac_srcdir in
 
16212
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
16213
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
16214
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
16215
  esac;;
 
16216
esac
 
16217
case $ac_abs_builddir in
 
16218
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
16219
*)
 
16220
  case $ac_top_srcdir in
 
16221
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
16222
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
16223
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
16224
  esac;;
 
16225
esac
 
16226
 
 
16227
 
 
16228
 
 
16229
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16230
  # use $as_me), people would be surprised to read:
 
16231
  #    /* config.h.  Generated by config.status.  */
 
16232
  if test x"$ac_file" = x-; then
 
16233
    configure_input=
 
16234
  else
 
16235
    configure_input="$ac_file.  "
 
16236
  fi
 
16237
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
16238
                                     sed 's,.*/,,'` by configure."
 
16239
 
 
16240
  # First look for the input files in the build tree, otherwise in the
 
16241
  # src tree.
 
16242
  ac_file_inputs=`IFS=:
 
16243
    for f in $ac_file_in; do
 
16244
      case $f in
 
16245
      -) echo $tmp/stdin ;;
 
16246
      [\\/$]*)
 
16247
         # Absolute (can't be DOS-style, as IFS=:)
 
16248
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
16249
echo "$as_me: error: cannot find input file: $f" >&2;}
 
16250
   { (exit 1); exit 1; }; }
 
16251
         echo "$f";;
 
16252
      *) # Relative
 
16253
         if test -f "$f"; then
 
16254
           # Build tree
 
16255
           echo "$f"
 
16256
         elif test -f "$srcdir/$f"; then
 
16257
           # Source tree
 
16258
           echo "$srcdir/$f"
 
16259
         else
 
16260
           # /dev/null tree
 
16261
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
16262
echo "$as_me: error: cannot find input file: $f" >&2;}
 
16263
   { (exit 1); exit 1; }; }
 
16264
         fi;;
 
16265
      esac
 
16266
    done` || { (exit 1); exit 1; }
 
16267
 
 
16268
  if test x"$ac_file" != x-; then
 
16269
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
16270
echo "$as_me: creating $ac_file" >&6;}
 
16271
    rm -f "$ac_file"
 
16272
  fi
 
16273
_ACEOF
 
16274
cat >>$CONFIG_STATUS <<_ACEOF
 
16275
  sed "$ac_vpsub
5823
16276
$extrasub
5824
 
s%@SHELL@%$SHELL%g
5825
 
s%@CFLAGS@%$CFLAGS%g
5826
 
s%@CPPFLAGS@%$CPPFLAGS%g
5827
 
s%@CXXFLAGS@%$CXXFLAGS%g
5828
 
s%@FFLAGS@%$FFLAGS%g
5829
 
s%@DEFS@%$DEFS%g
5830
 
s%@LDFLAGS@%$LDFLAGS%g
5831
 
s%@LIBS@%$LIBS%g
5832
 
s%@exec_prefix@%$exec_prefix%g
5833
 
s%@prefix@%$prefix%g
5834
 
s%@program_transform_name@%$program_transform_name%g
5835
 
s%@bindir@%$bindir%g
5836
 
s%@sbindir@%$sbindir%g
5837
 
s%@libexecdir@%$libexecdir%g
5838
 
s%@datadir@%$datadir%g
5839
 
s%@sysconfdir@%$sysconfdir%g
5840
 
s%@sharedstatedir@%$sharedstatedir%g
5841
 
s%@localstatedir@%$localstatedir%g
5842
 
s%@libdir@%$libdir%g
5843
 
s%@includedir@%$includedir%g
5844
 
s%@oldincludedir@%$oldincludedir%g
5845
 
s%@infodir@%$infodir%g
5846
 
s%@mandir@%$mandir%g
5847
 
s%@host@%$host%g
5848
 
s%@host_alias@%$host_alias%g
5849
 
s%@host_cpu@%$host_cpu%g
5850
 
s%@host_vendor@%$host_vendor%g
5851
 
s%@host_os@%$host_os%g
5852
 
s%@target@%$target%g
5853
 
s%@target_alias@%$target_alias%g
5854
 
s%@target_cpu@%$target_cpu%g
5855
 
s%@target_vendor@%$target_vendor%g
5856
 
s%@target_os@%$target_os%g
5857
 
s%@build@%$build%g
5858
 
s%@build_alias@%$build_alias%g
5859
 
s%@build_cpu@%$build_cpu%g
5860
 
s%@build_vendor@%$build_vendor%g
5861
 
s%@build_os@%$build_os%g
5862
 
s%@CC@%$CC%g
5863
 
s%@CPP@%$CPP%g
5864
 
s%@WHOAMI@%$WHOAMI%g
5865
 
s%@EXEEXT@%$EXEEXT%g
5866
 
s%@GS_WORDS_BIGENDIAN@%$GS_WORDS_BIGENDIAN%g
5867
 
s%@GS_SINT8@%$GS_SINT8%g
5868
 
s%@GS_UINT8@%$GS_UINT8%g
5869
 
s%@ac_cv_sizeof_short@%$ac_cv_sizeof_short%g
5870
 
s%@ac_cv_sizeof_int@%$ac_cv_sizeof_int%g
5871
 
s%@ac_cv_sizeof_long@%$ac_cv_sizeof_long%g
5872
 
s%@ac_cv_sizeof_long_long@%$ac_cv_sizeof_long_long%g
5873
 
s%@ac_cv_sizeof_float@%$ac_cv_sizeof_float%g
5874
 
s%@ac_cv_sizeof_double@%$ac_cv_sizeof_double%g
5875
 
s%@ac_cv_sizeof_voidp@%$ac_cv_sizeof_voidp%g
5876
 
s%@GS_ADDR@%$GS_ADDR%g
5877
 
s%@GS_SINT16@%$GS_SINT16%g
5878
 
s%@GS_UINT16@%$GS_UINT16%g
5879
 
s%@GS_SINT32@%$GS_SINT32%g
5880
 
s%@GS_UINT32@%$GS_UINT32%g
5881
 
s%@GS_SINT64@%$GS_SINT64%g
5882
 
s%@GS_UINT64@%$GS_UINT64%g
5883
 
s%@GS_HAVE_I64@%$GS_HAVE_I64%g
5884
 
s%@GS_SINT128@%$GS_SINT128%g
5885
 
s%@GS_UINT128@%$GS_UINT128%g
5886
 
s%@GS_HAVE_I128@%$GS_HAVE_I128%g
5887
 
s%@GS_FLT32@%$GS_FLT32%g
5888
 
s%@GS_FLT64@%$GS_FLT64%g
5889
 
s%@_GSC_S_SHT@%$_GSC_S_SHT%g
5890
 
s%@_GSC_S_INT@%$_GSC_S_INT%g
5891
 
s%@_GSC_S_LNG@%$_GSC_S_LNG%g
5892
 
s%@_GSC_S_LNG_LNG@%$_GSC_S_LNG_LNG%g
5893
 
s%@DYNAMIC_LINKER@%$DYNAMIC_LINKER%g
5894
 
s%@NX_CONST_STRING_CPPFLAGS@%$NX_CONST_STRING_CPPFLAGS%g
5895
 
s%@NX_CONST_STRING_CLASS@%$NX_CONST_STRING_CLASS%g
5896
 
s%@HAVE_PTHREAD_H@%$HAVE_PTHREAD_H%g
5897
 
s%@HAVE_ZLIB@%$HAVE_ZLIB%g
5898
 
s%@HAVE_PTS_STREAM_MODULES@%$HAVE_PTS_STREAM_MODULES%g
5899
 
s%@GS_PASS_ARGUMENTS@%$GS_PASS_ARGUMENTS%g
5900
 
s%@GS_FAKE_MAIN@%$GS_FAKE_MAIN%g
5901
 
s%@WITH_FFI@%$WITH_FFI%g
5902
 
s%@XML2_CONFIG@%$XML2_CONFIG%g
5903
 
s%@XML_CONFIG@%$XML_CONFIG%g
5904
 
s%@XML_CFLAGS@%$XML_CFLAGS%g
5905
 
s%@XML_LIBS@%$XML_LIBS%g
5906
 
s%@HAVE_LIBXML@%$HAVE_LIBXML%g
5907
 
s%@HAVE_GMP@%$HAVE_GMP%g
5908
 
s%@SYSTEM_DEFS@%$SYSTEM_DEFS%g
5909
 
s%@subdirs@%$subdirs%g
5910
 
s%@VERSION@%$VERSION%g
5911
 
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
5912
 
s%@MINOR_VERSION@%$MINOR_VERSION%g
5913
 
s%@SUBMINOR_VERSION@%$SUBMINOR_VERSION%g
5914
 
s%@GCC_VERSION@%$GCC_VERSION%g
5915
 
 
5916
 
CEOF
5917
 
EOF
5918
 
 
5919
 
cat >> $CONFIG_STATUS <<\EOF
5920
 
 
5921
 
# Split the substitutions into bite-sized pieces for seds with
5922
 
# small command number limits, like on Digital OSF/1 and HP-UX.
5923
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5924
 
ac_file=1 # Number of current file.
5925
 
ac_beg=1 # First line for current file.
5926
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5927
 
ac_more_lines=:
5928
 
ac_sed_cmds=""
5929
 
while $ac_more_lines; do
5930
 
  if test $ac_beg -gt 1; then
5931
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5932
 
  else
5933
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5934
 
  fi
5935
 
  if test ! -s conftest.s$ac_file; then
5936
 
    ac_more_lines=false
5937
 
    rm -f conftest.s$ac_file
5938
 
  else
5939
 
    if test -z "$ac_sed_cmds"; then
5940
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
5941
 
    else
5942
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5943
 
    fi
5944
 
    ac_file=`expr $ac_file + 1`
5945
 
    ac_beg=$ac_end
5946
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
5947
 
  fi
 
16277
_ACEOF
 
16278
cat >>$CONFIG_STATUS <<\_ACEOF
 
16279
:t
 
16280
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
16281
s,@configure_input@,$configure_input,;t t
 
16282
s,@srcdir@,$ac_srcdir,;t t
 
16283
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
16284
s,@top_srcdir@,$ac_top_srcdir,;t t
 
16285
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
16286
s,@builddir@,$ac_builddir,;t t
 
16287
s,@abs_builddir@,$ac_abs_builddir,;t t
 
16288
s,@top_builddir@,$ac_top_builddir,;t t
 
16289
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
16290
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
16291
  rm -f $tmp/stdin
 
16292
  if test x"$ac_file" != x-; then
 
16293
    mv $tmp/out $ac_file
 
16294
  else
 
16295
    cat $tmp/out
 
16296
    rm -f $tmp/out
 
16297
  fi
 
16298
 
5948
16299
done
5949
 
if test -z "$ac_sed_cmds"; then
5950
 
  ac_sed_cmds=cat
5951
 
fi
5952
 
EOF
5953
 
 
5954
 
cat >> $CONFIG_STATUS <<EOF
5955
 
 
5956
 
CONFIG_FILES=\${CONFIG_FILES-"config.mak base.make Headers/gnustep/base/GSConfig.h 
5957
 
          Headers/gnustep/base/preface.h"}
5958
 
EOF
5959
 
cat >> $CONFIG_STATUS <<\EOF
5960
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5961
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5962
 
  case "$ac_file" in
5963
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5964
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5965
 
  *) ac_file_in="${ac_file}.in" ;;
5966
 
  esac
5967
 
 
5968
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5969
 
 
5970
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
5971
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5972
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5973
 
    # The file is in a subdirectory.
5974
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
5975
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5976
 
    # A "../" for each directory in $ac_dir_suffix.
5977
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5978
 
  else
5979
 
    ac_dir_suffix= ac_dots=
5980
 
  fi
5981
 
 
5982
 
  case "$ac_given_srcdir" in
5983
 
  .)  srcdir=.
5984
 
      if test -z "$ac_dots"; then top_srcdir=.
5985
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5986
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5987
 
  *) # Relative path.
5988
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5989
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5990
 
  esac
5991
 
 
5992
 
 
5993
 
  echo creating "$ac_file"
5994
 
  rm -f "$ac_file"
5995
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5996
 
  case "$ac_file" in
5997
 
  *Makefile*) ac_comsub="1i\\
5998
 
# $configure_input" ;;
5999
 
  *) ac_comsub= ;;
6000
 
  esac
6001
 
 
6002
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6003
 
  sed -e "$ac_comsub
6004
 
s%@configure_input@%$configure_input%g
6005
 
s%@srcdir@%$srcdir%g
6006
 
s%@top_srcdir@%$top_srcdir%g
6007
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6008
 
fi; done
6009
 
rm -f conftest.s*
 
16300
_ACEOF
 
16301
cat >>$CONFIG_STATUS <<\_ACEOF
 
16302
 
 
16303
#
 
16304
# CONFIG_HEADER section.
 
16305
#
6010
16306
 
6011
16307
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6012
16308
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6013
16309
#
6014
16310
# ac_d sets the value in "#define NAME VALUE" lines.
6015
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6016
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6017
 
ac_dC='\3'
6018
 
ac_dD='%g'
6019
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6020
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6021
 
ac_uB='\([      ]\)%\1#\2define\3'
 
16311
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
16312
ac_dB='[         ].*$,\1#\2'
 
16313
ac_dC=' '
 
16314
ac_dD=',;t'
 
16315
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
16316
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
16317
ac_uB='$,\1#\2define\3'
6022
16318
ac_uC=' '
6023
 
ac_uD='\4%g'
6024
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6025
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6026
 
ac_eB='$%\1#\2define\3'
6027
 
ac_eC=' '
6028
 
ac_eD='%g'
 
16319
ac_uD=',;t'
6029
16320
 
6030
 
if test "${CONFIG_HEADERS+set}" != set; then
6031
 
EOF
6032
 
cat >> $CONFIG_STATUS <<EOF
6033
 
  CONFIG_HEADERS="Headers/gnustep/base/config.h"
6034
 
EOF
6035
 
cat >> $CONFIG_STATUS <<\EOF
6036
 
fi
6037
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
16321
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6038
16322
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6039
 
  case "$ac_file" in
6040
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6041
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6042
 
  *) ac_file_in="${ac_file}.in" ;;
 
16323
  case $ac_file in
 
16324
  - | *:- | *:-:* ) # input from stdin
 
16325
        cat >$tmp/stdin
 
16326
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16327
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16328
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
16329
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
16330
  * )   ac_file_in=$ac_file.in ;;
6043
16331
  esac
6044
16332
 
6045
 
  echo creating $ac_file
6046
 
 
6047
 
  rm -f conftest.frag conftest.in conftest.out
6048
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6049
 
  cat $ac_file_inputs > conftest.in
6050
 
 
6051
 
EOF
6052
 
 
6053
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
6054
 
# the proper values into config.h.in to produce config.h.  And first:
6055
 
# Protect against being on the right side of a sed subst in config.status.
6056
 
# Protect against being in an unquoted here document in config.status.
6057
 
rm -f conftest.vals
6058
 
cat > conftest.hdr <<\EOF
6059
 
s/[\\&%]/\\&/g
6060
 
s%[\\$`]%\\&%g
6061
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6062
 
s%ac_d%ac_u%gp
6063
 
s%ac_u%ac_e%gp
6064
 
EOF
6065
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
6066
 
rm -f conftest.hdr
 
16333
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
16334
echo "$as_me: creating $ac_file" >&6;}
 
16335
 
 
16336
  # First look for the input files in the build tree, otherwise in the
 
16337
  # src tree.
 
16338
  ac_file_inputs=`IFS=:
 
16339
    for f in $ac_file_in; do
 
16340
      case $f in
 
16341
      -) echo $tmp/stdin ;;
 
16342
      [\\/$]*)
 
16343
         # Absolute (can't be DOS-style, as IFS=:)
 
16344
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
16345
echo "$as_me: error: cannot find input file: $f" >&2;}
 
16346
   { (exit 1); exit 1; }; }
 
16347
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
16348
         echo "$f";;
 
16349
      *) # Relative
 
16350
         if test -f "$f"; then
 
16351
           # Build tree
 
16352
           echo "$f"
 
16353
         elif test -f "$srcdir/$f"; then
 
16354
           # Source tree
 
16355
           echo "$srcdir/$f"
 
16356
         else
 
16357
           # /dev/null tree
 
16358
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
16359
echo "$as_me: error: cannot find input file: $f" >&2;}
 
16360
   { (exit 1); exit 1; }; }
 
16361
         fi;;
 
16362
      esac
 
16363
    done` || { (exit 1); exit 1; }
 
16364
  # Remove the trailing spaces.
 
16365
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
16366
 
 
16367
_ACEOF
 
16368
 
 
16369
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
16370
# `conftest.undefs', that substitutes the proper values into
 
16371
# config.h.in to produce config.h.  The first handles `#define'
 
16372
# templates, and the second `#undef' templates.
 
16373
# And first: Protect against being on the right side of a sed subst in
 
16374
# config.status.  Protect against being in an unquoted here document
 
16375
# in config.status.
 
16376
rm -f conftest.defines conftest.undefs
 
16377
# Using a here document instead of a string reduces the quoting nightmare.
 
16378
# Putting comments in sed scripts is not portable.
 
16379
#
 
16380
# `end' is used to avoid that the second main sed command (meant for
 
16381
# 0-ary CPP macros) applies to n-ary macro definitions.
 
16382
# See the Autoconf documentation for `clear'.
 
16383
cat >confdef2sed.sed <<\_ACEOF
 
16384
s/[\\&,]/\\&/g
 
16385
s,[\\$`],\\&,g
 
16386
t clear
 
16387
: clear
 
16388
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
16389
t end
 
16390
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
16391
: end
 
16392
_ACEOF
 
16393
# If some macros were called several times there might be several times
 
16394
# the same #defines, which is useless.  Nevertheless, we may not want to
 
16395
# sort them, since we want the *last* AC-DEFINE to be honored.
 
16396
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
16397
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
16398
rm -f confdef2sed.sed
6067
16399
 
6068
16400
# This sed command replaces #undef with comments.  This is necessary, for
6069
16401
# example, in the case of _POSIX_SOURCE, which is predefined and required
6070
16402
# on some systems where configure will not decide to define it.
6071
 
cat >> conftest.vals <<\EOF
6072
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6073
 
EOF
6074
 
 
6075
 
# Break up conftest.vals because some shells have a limit on
6076
 
# the size of here documents, and old seds have small limits too.
6077
 
 
6078
 
rm -f conftest.tail
6079
 
while :
6080
 
do
6081
 
  ac_lines=`grep -c . conftest.vals`
6082
 
  # grep -c gives empty output for an empty file on some AIX systems.
6083
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6084
 
  # Write a limited-size here document to conftest.frag.
6085
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6086
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6087
 
  echo 'CEOF
6088
 
  sed -f conftest.frag conftest.in > conftest.out
6089
 
  rm -f conftest.in
6090
 
  mv conftest.out conftest.in
6091
 
' >> $CONFIG_STATUS
6092
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6093
 
  rm -f conftest.vals
6094
 
  mv conftest.tail conftest.vals
6095
 
done
6096
 
rm -f conftest.vals
6097
 
 
6098
 
cat >> $CONFIG_STATUS <<\EOF
6099
 
  rm -f conftest.frag conftest.h
6100
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6101
 
  cat conftest.in >> conftest.h
6102
 
  rm -f conftest.in
6103
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
6104
 
    echo "$ac_file is unchanged"
6105
 
    rm -f conftest.h
6106
 
  else
6107
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
6108
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6109
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6110
 
      # The file is in a subdirectory.
6111
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
16403
cat >>conftest.undefs <<\_ACEOF
 
16404
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
16405
_ACEOF
 
16406
 
 
16407
# Break up conftest.defines because some shells have a limit on the size
 
16408
# of here documents, and old seds have small limits too (100 cmds).
 
16409
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
16410
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
16411
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
16412
echo '  :' >>$CONFIG_STATUS
 
16413
rm -f conftest.tail
 
16414
while grep . conftest.defines >/dev/null
 
16415
do
 
16416
  # Write a limited-size here document to $tmp/defines.sed.
 
16417
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
16418
  # Speed up: don't consider the non `#define' lines.
 
16419
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
16420
  # Work around the forget-to-reset-the-flag bug.
 
16421
  echo 't clr' >>$CONFIG_STATUS
 
16422
  echo ': clr' >>$CONFIG_STATUS
 
16423
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
16424
  echo 'CEOF
 
16425
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
16426
  rm -f $tmp/in
 
16427
  mv $tmp/out $tmp/in
 
16428
' >>$CONFIG_STATUS
 
16429
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
16430
  rm -f conftest.defines
 
16431
  mv conftest.tail conftest.defines
 
16432
done
 
16433
rm -f conftest.defines
 
16434
echo '  fi # grep' >>$CONFIG_STATUS
 
16435
echo >>$CONFIG_STATUS
 
16436
 
 
16437
# Break up conftest.undefs because some shells have a limit on the size
 
16438
# of here documents, and old seds have small limits too (100 cmds).
 
16439
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
16440
rm -f conftest.tail
 
16441
while grep . conftest.undefs >/dev/null
 
16442
do
 
16443
  # Write a limited-size here document to $tmp/undefs.sed.
 
16444
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
16445
  # Speed up: don't consider the non `#undef'
 
16446
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
16447
  # Work around the forget-to-reset-the-flag bug.
 
16448
  echo 't clr' >>$CONFIG_STATUS
 
16449
  echo ': clr' >>$CONFIG_STATUS
 
16450
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
16451
  echo 'CEOF
 
16452
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
16453
  rm -f $tmp/in
 
16454
  mv $tmp/out $tmp/in
 
16455
' >>$CONFIG_STATUS
 
16456
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
16457
  rm -f conftest.undefs
 
16458
  mv conftest.tail conftest.undefs
 
16459
done
 
16460
rm -f conftest.undefs
 
16461
 
 
16462
cat >>$CONFIG_STATUS <<\_ACEOF
 
16463
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16464
  # use $as_me), people would be surprised to read:
 
16465
  #    /* config.h.  Generated by config.status.  */
 
16466
  if test x"$ac_file" = x-; then
 
16467
    echo "/* Generated by configure.  */" >$tmp/config.h
 
16468
  else
 
16469
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
16470
  fi
 
16471
  cat $tmp/in >>$tmp/config.h
 
16472
  rm -f $tmp/in
 
16473
  if test x"$ac_file" != x-; then
 
16474
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
16475
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
16476
echo "$as_me: $ac_file is unchanged" >&6;}
 
16477
    else
 
16478
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
16479
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16480
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16481
         X"$ac_file" : 'X\(//\)$' \| \
 
16482
         X"$ac_file" : 'X\(/\)' \| \
 
16483
         .     : '\(.\)' 2>/dev/null ||
 
16484
echo X"$ac_file" |
 
16485
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16486
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16487
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16488
          /^X\(\/\).*/{ s//\1/; q; }
 
16489
          s/.*/./; q'`
 
16490
      { if $as_mkdir_p; then
 
16491
    mkdir -p "$ac_dir"
 
16492
  else
 
16493
    as_dir="$ac_dir"
 
16494
    as_dirs=
 
16495
    while test ! -d "$as_dir"; do
 
16496
      as_dirs="$as_dir $as_dirs"
 
16497
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
16498
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16499
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16500
         X"$as_dir" : 'X\(//\)$' \| \
 
16501
         X"$as_dir" : 'X\(/\)' \| \
 
16502
         .     : '\(.\)' 2>/dev/null ||
 
16503
echo X"$as_dir" |
 
16504
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16505
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16506
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16507
          /^X\(\/\).*/{ s//\1/; q; }
 
16508
          s/.*/./; q'`
 
16509
    done
 
16510
    test ! -n "$as_dirs" || mkdir $as_dirs
 
16511
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
16512
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
16513
   { (exit 1); exit 1; }; }; }
 
16514
 
 
16515
      rm -f $ac_file
 
16516
      mv $tmp/config.h $ac_file
6112
16517
    fi
6113
 
    rm -f $ac_file
6114
 
    mv conftest.h $ac_file
 
16518
  else
 
16519
    cat $tmp/config.h
 
16520
    rm -f $tmp/config.h
6115
16521
  fi
6116
 
fi; done
6117
 
 
6118
 
EOF
6119
 
cat >> $CONFIG_STATUS <<EOF
6120
 
 
6121
 
EOF
6122
 
cat >> $CONFIG_STATUS <<\EOF
6123
 
 
6124
 
exit 0
6125
 
EOF
 
16522
done
 
16523
_ACEOF
 
16524
 
 
16525
cat >>$CONFIG_STATUS <<\_ACEOF
 
16526
 
 
16527
{ (exit 0); exit 0; }
 
16528
_ACEOF
6126
16529
chmod +x $CONFIG_STATUS
6127
 
rm -fr confdefs* $ac_clean_files
6128
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6129
 
 
 
16530
ac_clean_files=$ac_clean_files_save
 
16531
 
 
16532
 
 
16533
# configure is writing to config.log, and then calls config.status.
 
16534
# config.status does its own redirection, appending to config.log.
 
16535
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16536
# by configure, so config.status won't be able to write to it; its
 
16537
# output is simply discarded.  So we exec the FD to /dev/null,
 
16538
# effectively closing config.log, so it can be properly (re)opened and
 
16539
# appended to by config.status.  When coming back to configure, we
 
16540
# need to make the FD available again.
 
16541
if test "$no_create" != yes; then
 
16542
  ac_cs_success=:
 
16543
  ac_config_status_args=
 
16544
  test "$silent" = yes &&
 
16545
    ac_config_status_args="$ac_config_status_args --quiet"
 
16546
  exec 5>/dev/null
 
16547
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16548
  exec 5>>config.log
 
16549
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
16550
  # would make configure fail if this is the last instruction.
 
16551
  $ac_cs_success || { (exit 1); exit 1; }
 
16552
fi
 
16553
 
 
16554
#
 
16555
# CONFIG_SUBDIRS section.
 
16556
#
6130
16557
if test "$no_recursion" != yes; then
6131
16558
 
6132
16559
  # Remove --cache-file and --srcdir arguments so they do not pile up.
6137
16564
      ac_prev=
6138
16565
      continue
6139
16566
    fi
6140
 
    case "$ac_arg" in
 
16567
    case $ac_arg in
6141
16568
    -cache-file | --cache-file | --cache-fil | --cache-fi \
6142
16569
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6143
16570
      ac_prev=cache_file ;;
6144
16571
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6145
 
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
16572
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
16573
    | --c=*)
 
16574
      ;;
 
16575
    --config-cache | -C)
6146
16576
      ;;
6147
16577
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6148
16578
      ac_prev=srcdir ;;
6149
16579
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6150
16580
      ;;
 
16581
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
16582
      ac_prev=prefix ;;
 
16583
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
16584
      ;;
6151
16585
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6152
16586
    esac
6153
16587
  done
6154
16588
 
6155
 
  for ac_config_dir in Source/mframe; do
 
16589
  # Always prepend --prefix to ensure using the same prefix
 
16590
  # in subdir configurations.
 
16591
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
16592
 
 
16593
  ac_popdir=`pwd`
 
16594
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6156
16595
 
6157
16596
    # Do not complain, so a configure script can configure whichever
6158
16597
    # parts of a large source tree are present.
6159
 
    if test ! -d $srcdir/$ac_config_dir; then
6160
 
      continue
6161
 
    fi
6162
 
 
6163
 
    echo configuring in $ac_config_dir
6164
 
 
6165
 
    case "$srcdir" in
6166
 
    .) ;;
6167
 
    *)
6168
 
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6169
 
      else
6170
 
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6171
 
      fi
6172
 
      ;;
6173
 
    esac
6174
 
 
6175
 
    ac_popdir=`pwd`
6176
 
    cd $ac_config_dir
6177
 
 
6178
 
      # A "../" for each directory in /$ac_config_dir.
6179
 
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6180
 
 
6181
 
    case "$srcdir" in
6182
 
    .) # No --srcdir option.  We are building in place.
6183
 
      ac_sub_srcdir=$srcdir ;;
6184
 
    /*) # Absolute path.
6185
 
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6186
 
    *) # Relative path.
6187
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6188
 
    esac
 
16598
    test -d $srcdir/$ac_dir || continue
 
16599
 
 
16600
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
16601
echo "$as_me: configuring in $ac_dir" >&6;}
 
16602
    { if $as_mkdir_p; then
 
16603
    mkdir -p "$ac_dir"
 
16604
  else
 
16605
    as_dir="$ac_dir"
 
16606
    as_dirs=
 
16607
    while test ! -d "$as_dir"; do
 
16608
      as_dirs="$as_dir $as_dirs"
 
16609
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
16610
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16611
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16612
         X"$as_dir" : 'X\(//\)$' \| \
 
16613
         X"$as_dir" : 'X\(/\)' \| \
 
16614
         .     : '\(.\)' 2>/dev/null ||
 
16615
echo X"$as_dir" |
 
16616
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
16617
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
16618
          /^X\(\/\/\)$/{ s//\1/; q; }
 
16619
          /^X\(\/\).*/{ s//\1/; q; }
 
16620
          s/.*/./; q'`
 
16621
    done
 
16622
    test ! -n "$as_dirs" || mkdir $as_dirs
 
16623
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
16624
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
16625
   { (exit 1); exit 1; }; }; }
 
16626
 
 
16627
    ac_builddir=.
 
16628
 
 
16629
if test "$ac_dir" != .; then
 
16630
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
16631
  # A "../" for each directory in $ac_dir_suffix.
 
16632
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
16633
else
 
16634
  ac_dir_suffix= ac_top_builddir=
 
16635
fi
 
16636
 
 
16637
case $srcdir in
 
16638
  .)  # No --srcdir option.  We are building in place.
 
16639
    ac_srcdir=.
 
16640
    if test -z "$ac_top_builddir"; then
 
16641
       ac_top_srcdir=.
 
16642
    else
 
16643
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
16644
    fi ;;
 
16645
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
16646
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16647
    ac_top_srcdir=$srcdir ;;
 
16648
  *) # Relative path.
 
16649
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
16650
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
16651
esac
 
16652
 
 
16653
# Do not use `cd foo && pwd` to compute absolute paths, because
 
16654
# the directories may not exist.
 
16655
case `pwd` in
 
16656
.) ac_abs_builddir="$ac_dir";;
 
16657
*)
 
16658
  case "$ac_dir" in
 
16659
  .) ac_abs_builddir=`pwd`;;
 
16660
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
16661
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
16662
  esac;;
 
16663
esac
 
16664
case $ac_abs_builddir in
 
16665
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
16666
*)
 
16667
  case ${ac_top_builddir}. in
 
16668
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
16669
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
16670
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
16671
  esac;;
 
16672
esac
 
16673
case $ac_abs_builddir in
 
16674
.) ac_abs_srcdir=$ac_srcdir;;
 
16675
*)
 
16676
  case $ac_srcdir in
 
16677
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
16678
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
16679
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
16680
  esac;;
 
16681
esac
 
16682
case $ac_abs_builddir in
 
16683
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
16684
*)
 
16685
  case $ac_top_srcdir in
 
16686
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
16687
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
16688
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
16689
  esac;;
 
16690
esac
 
16691
 
 
16692
 
 
16693
    cd $ac_dir
6189
16694
 
6190
16695
    # Check for guested configure; otherwise get Cygnus style configure.
6191
 
    if test -f $ac_sub_srcdir/configure; then
6192
 
      ac_sub_configure=$ac_sub_srcdir/configure
6193
 
    elif test -f $ac_sub_srcdir/configure.in; then
 
16696
    if test -f $ac_srcdir/configure.gnu; then
 
16697
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
16698
    elif test -f $ac_srcdir/configure; then
 
16699
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
16700
    elif test -f $ac_srcdir/configure.in; then
6194
16701
      ac_sub_configure=$ac_configure
6195
16702
    else
6196
 
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
 
16703
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
16704
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6197
16705
      ac_sub_configure=
6198
16706
    fi
6199
16707
 
6200
16708
    # The recursion is here.
6201
16709
    if test -n "$ac_sub_configure"; then
6202
 
 
6203
16710
      # Make the cache file name correct relative to the subdirectory.
6204
 
      case "$cache_file" in
6205
 
      /*) ac_sub_cache_file=$cache_file ;;
 
16711
      case $cache_file in
 
16712
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6206
16713
      *) # Relative path.
6207
 
        ac_sub_cache_file="$ac_dots$cache_file" ;;
 
16714
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6208
16715
      esac
6209
16716
 
6210
 
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
 
16717
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
16718
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6211
16719
      # The eval makes quoting arguments work.
6212
 
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6213
 
      then :
6214
 
      else
6215
 
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
6216
 
      fi
 
16720
      eval $ac_sub_configure $ac_sub_configure_args \
 
16721
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
16722
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
16723
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
16724
   { (exit 1); exit 1; }; }
6217
16725
    fi
6218
16726
 
6219
 
    cd $ac_popdir
 
16727
    cd "$ac_popdir"
6220
16728
  done
6221
16729
fi
6222
16730
 
6223