~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/test_server/src/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
 
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${CONFIG_SHELL-/bin/sh}
 
261
 
 
262
# Maximum number of lines to put in a shell here document.
 
263
# This variable seems obsolete.  It should probably be removed, and
 
264
# only ac_max_sed_lines should be used.
 
265
: ${ac_max_here_lines=38}
 
266
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="conf_vars.in"
 
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_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEBUG_FLAGS CPP EGREP SHLIB_LD SHLIB_LDFLAGS SHLIB_LDLIBS SHLIB_CFLAGS SHLIB_SUFFIX SHLIB_EXTRACT_ALL EI_CFLAGS ERTS_CFLAGS ERTS_LIBS HCC LD obj exe CROSSLDFLAGS SSLEAY_ROOT JAVAC make_command test_c_compiler LIBOBJS LTLIBOBJS'
 
313
ac_subst_files=''
 
314
 
 
315
# Initialize some variables set by options.
 
316
ac_init_help=
 
317
ac_init_version=false
 
318
# The variables have the same names as the options, with
 
319
# dashes changed to underlines.
 
320
cache_file=/dev/null
 
321
exec_prefix=NONE
 
322
no_create=
 
323
no_recursion=
 
324
prefix=NONE
 
325
program_prefix=NONE
 
326
program_suffix=NONE
 
327
program_transform_name=s,x,x,
 
328
silent=
 
329
site=
 
330
srcdir=
 
331
verbose=
 
332
x_includes=NONE
 
333
x_libraries=NONE
 
334
 
 
335
# Installation directory options.
 
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
337
# and all the variables that are supposed to be based on exec_prefix
 
338
# by default will actually change.
 
339
# Use braces instead of parens because sh, perl, etc. also accept them.
 
340
bindir='${exec_prefix}/bin'
 
341
sbindir='${exec_prefix}/sbin'
 
342
libexecdir='${exec_prefix}/libexec'
 
343
datadir='${prefix}/share'
 
344
sysconfdir='${prefix}/etc'
 
345
sharedstatedir='${prefix}/com'
 
346
localstatedir='${prefix}/var'
 
347
libdir='${exec_prefix}/lib'
 
348
includedir='${prefix}/include'
 
349
oldincludedir='/usr/include'
 
350
infodir='${prefix}/info'
 
351
mandir='${prefix}/man'
 
352
 
 
353
ac_prev=
 
354
for ac_option
 
355
do
 
356
  # If the previous option needs an argument, assign it.
 
357
  if test -n "$ac_prev"; then
 
358
    eval "$ac_prev=\$ac_option"
 
359
    ac_prev=
 
360
    continue
 
361
  fi
 
362
 
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
364
 
 
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
366
 
 
367
  case $ac_option in
 
368
 
 
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
370
    ac_prev=bindir ;;
 
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
372
    bindir=$ac_optarg ;;
 
373
 
 
374
  -build | --build | --buil | --bui | --bu)
 
375
    ac_prev=build_alias ;;
 
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
377
    build_alias=$ac_optarg ;;
 
378
 
 
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
381
    ac_prev=cache_file ;;
 
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
384
    cache_file=$ac_optarg ;;
 
385
 
 
386
  --config-cache | -C)
 
387
    cache_file=config.cache ;;
 
388
 
 
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
390
    ac_prev=datadir ;;
 
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
392
  | --da=*)
 
393
    datadir=$ac_optarg ;;
 
394
 
 
395
  -disable-* | --disable-*)
 
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
397
    # Reject names that are not valid shell variable names.
 
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
400
   { (exit 1); exit 1; }; }
 
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
402
    eval "enable_$ac_feature=no" ;;
 
403
 
 
404
  -enable-* | --enable-*)
 
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
406
    # Reject names that are not valid shell variable names.
 
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
409
   { (exit 1); exit 1; }; }
 
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
411
    case $ac_option in
 
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
413
      *) ac_optarg=yes ;;
 
414
    esac
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
416
 
 
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
419
  | --exec | --exe | --ex)
 
420
    ac_prev=exec_prefix ;;
 
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
423
  | --exec=* | --exe=* | --ex=*)
 
424
    exec_prefix=$ac_optarg ;;
 
425
 
 
426
  -gas | --gas | --ga | --g)
 
427
    # Obsolete; use --with-gas.
 
428
    with_gas=yes ;;
 
429
 
 
430
  -help | --help | --hel | --he | -h)
 
431
    ac_init_help=long ;;
 
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
433
    ac_init_help=recursive ;;
 
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
435
    ac_init_help=short ;;
 
436
 
 
437
  -host | --host | --hos | --ho)
 
438
    ac_prev=host_alias ;;
 
439
  -host=* | --host=* | --hos=* | --ho=*)
 
440
    host_alias=$ac_optarg ;;
 
441
 
 
442
  -includedir | --includedir | --includedi | --included | --include \
 
443
  | --includ | --inclu | --incl | --inc)
 
444
    ac_prev=includedir ;;
 
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
447
    includedir=$ac_optarg ;;
 
448
 
 
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
450
    ac_prev=infodir ;;
 
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
452
    infodir=$ac_optarg ;;
 
453
 
 
454
  -libdir | --libdir | --libdi | --libd)
 
455
    ac_prev=libdir ;;
 
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
457
    libdir=$ac_optarg ;;
 
458
 
 
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
460
  | --libexe | --libex | --libe)
 
461
    ac_prev=libexecdir ;;
 
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
463
  | --libexe=* | --libex=* | --libe=*)
 
464
    libexecdir=$ac_optarg ;;
 
465
 
 
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
467
  | --localstate | --localstat | --localsta | --localst \
 
468
  | --locals | --local | --loca | --loc | --lo)
 
469
    ac_prev=localstatedir ;;
 
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
473
    localstatedir=$ac_optarg ;;
 
474
 
 
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
476
    ac_prev=mandir ;;
 
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
478
    mandir=$ac_optarg ;;
 
479
 
 
480
  -nfp | --nfp | --nf)
 
481
    # Obsolete; use --without-fp.
 
482
    with_fp=no ;;
 
483
 
 
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
485
  | --no-cr | --no-c | -n)
 
486
    no_create=yes ;;
 
487
 
 
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
489
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
490
    no_recursion=yes ;;
 
491
 
 
492
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
493
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
494
  | --oldin | --oldi | --old | --ol | --o)
 
495
    ac_prev=oldincludedir ;;
 
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
499
    oldincludedir=$ac_optarg ;;
 
500
 
 
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
502
    ac_prev=prefix ;;
 
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
504
    prefix=$ac_optarg ;;
 
505
 
 
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
507
  | --program-pre | --program-pr | --program-p)
 
508
    ac_prev=program_prefix ;;
 
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
511
    program_prefix=$ac_optarg ;;
 
512
 
 
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
514
  | --program-suf | --program-su | --program-s)
 
515
    ac_prev=program_suffix ;;
 
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
518
    program_suffix=$ac_optarg ;;
 
519
 
 
520
  -program-transform-name | --program-transform-name \
 
521
  | --program-transform-nam | --program-transform-na \
 
522
  | --program-transform-n | --program-transform- \
 
523
  | --program-transform | --program-transfor \
 
524
  | --program-transfo | --program-transf \
 
525
  | --program-trans | --program-tran \
 
526
  | --progr-tra | --program-tr | --program-t)
 
527
    ac_prev=program_transform_name ;;
 
528
  -program-transform-name=* | --program-transform-name=* \
 
529
  | --program-transform-nam=* | --program-transform-na=* \
 
530
  | --program-transform-n=* | --program-transform-=* \
 
531
  | --program-transform=* | --program-transfor=* \
 
532
  | --program-transfo=* | --program-transf=* \
 
533
  | --program-trans=* | --program-tran=* \
 
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
535
    program_transform_name=$ac_optarg ;;
 
536
 
 
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
538
  | -silent | --silent | --silen | --sile | --sil)
 
539
    silent=yes ;;
 
540
 
 
541
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
542
    ac_prev=sbindir ;;
 
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
544
  | --sbi=* | --sb=*)
 
545
    sbindir=$ac_optarg ;;
 
546
 
 
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
549
  | --sharedst | --shareds | --shared | --share | --shar \
 
550
  | --sha | --sh)
 
551
    ac_prev=sharedstatedir ;;
 
552
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
555
  | --sha=* | --sh=*)
 
556
    sharedstatedir=$ac_optarg ;;
 
557
 
 
558
  -site | --site | --sit)
 
559
    ac_prev=site ;;
 
560
  -site=* | --site=* | --sit=*)
 
561
    site=$ac_optarg ;;
 
562
 
 
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
564
    ac_prev=srcdir ;;
 
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
566
    srcdir=$ac_optarg ;;
 
567
 
 
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
569
  | --syscon | --sysco | --sysc | --sys | --sy)
 
570
    ac_prev=sysconfdir ;;
 
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
573
    sysconfdir=$ac_optarg ;;
 
574
 
 
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
576
    ac_prev=target_alias ;;
 
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
578
    target_alias=$ac_optarg ;;
 
579
 
 
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
581
    verbose=yes ;;
 
582
 
 
583
  -version | --version | --versio | --versi | --vers | -V)
 
584
    ac_init_version=: ;;
 
585
 
 
586
  -with-* | --with-*)
 
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
588
    # Reject names that are not valid shell variable names.
 
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
591
   { (exit 1); exit 1; }; }
 
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
595
      *) ac_optarg=yes ;;
 
596
    esac
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
 
598
 
 
599
  -without-* | --without-*)
 
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
601
    # Reject names that are not valid shell variable names.
 
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
604
   { (exit 1); exit 1; }; }
 
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
606
    eval "with_$ac_package=no" ;;
 
607
 
 
608
  --x)
 
609
    # Obsolete; use --with-x.
 
610
    with_x=yes ;;
 
611
 
 
612
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
613
  | --x-incl | --x-inc | --x-in | --x-i)
 
614
    ac_prev=x_includes ;;
 
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
617
    x_includes=$ac_optarg ;;
 
618
 
 
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
621
    ac_prev=x_libraries ;;
 
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
624
    x_libraries=$ac_optarg ;;
 
625
 
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
627
Try \`$0 --help' for more information." >&2
 
628
   { (exit 1); exit 1; }; }
 
629
    ;;
 
630
 
 
631
  *=*)
 
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
633
    # Reject names that are not valid shell variable names.
 
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
636
   { (exit 1); exit 1; }; }
 
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
638
    eval "$ac_envvar='$ac_optarg'"
 
639
    export $ac_envvar ;;
 
640
 
 
641
  *)
 
642
    # FIXME: should be removed in autoconf 3.0.
 
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
647
    ;;
 
648
 
 
649
  esac
 
650
done
 
651
 
 
652
if test -n "$ac_prev"; then
 
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
655
   { (exit 1); exit 1; }; }
 
656
fi
 
657
 
 
658
# Be sure to have absolute paths.
 
659
for ac_var in exec_prefix prefix
 
660
do
 
661
  eval ac_val=$`echo $ac_var`
 
662
  case $ac_val in
 
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
665
   { (exit 1); exit 1; }; };;
 
666
  esac
 
667
done
 
668
 
 
669
# Be sure to have absolute paths.
 
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
671
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
do
 
673
  eval ac_val=$`echo $ac_var`
 
674
  case $ac_val in
 
675
    [\\/$]* | ?:[\\/]* ) ;;
 
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
677
   { (exit 1); exit 1; }; };;
 
678
  esac
 
679
done
 
680
 
 
681
# There might be people who depend on the old broken behavior: `$host'
 
682
# used to hold the argument of --host etc.
 
683
# FIXME: To remove some day.
 
684
build=$build_alias
 
685
host=$host_alias
 
686
target=$target_alias
 
687
 
 
688
# FIXME: To remove some day.
 
689
if test "x$host_alias" != x; then
 
690
  if test "x$build_alias" = x; then
 
691
    cross_compiling=maybe
 
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
693
    If a cross compiler is detected then cross compile mode will be used." >&2
 
694
  elif test "x$build_alias" != "x$host_alias"; then
 
695
    cross_compiling=yes
 
696
  fi
 
697
fi
 
698
 
 
699
ac_tool_prefix=
 
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
701
 
 
702
test "$silent" = yes && exec 6>/dev/null
 
703
 
 
704
 
 
705
# Find the source files, if location was not specified.
 
706
if test -z "$srcdir"; then
 
707
  ac_srcdir_defaulted=yes
 
708
  # Try the directory containing this script, then its parent.
 
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
711
         X"$0" : 'X\(//\)[^/]' \| \
 
712
         X"$0" : 'X\(//\)$' \| \
 
713
         X"$0" : 'X\(/\)' \| \
 
714
         .     : '\(.\)' 2>/dev/null ||
 
715
echo X"$0" |
 
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
718
          /^X\(\/\/\)$/{ s//\1/; q; }
 
719
          /^X\(\/\).*/{ s//\1/; q; }
 
720
          s/.*/./; q'`
 
721
  srcdir=$ac_confdir
 
722
  if test ! -r $srcdir/$ac_unique_file; then
 
723
    srcdir=..
 
724
  fi
 
725
else
 
726
  ac_srcdir_defaulted=no
 
727
fi
 
728
if test ! -r $srcdir/$ac_unique_file; then
 
729
  if test "$ac_srcdir_defaulted" = yes; then
 
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
731
   { (exit 1); exit 1; }; }
 
732
  else
 
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
734
   { (exit 1); exit 1; }; }
 
735
  fi
 
736
fi
 
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
739
   { (exit 1); exit 1; }; }
 
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
741
ac_env_build_alias_set=${build_alias+set}
 
742
ac_env_build_alias_value=$build_alias
 
743
ac_cv_env_build_alias_set=${build_alias+set}
 
744
ac_cv_env_build_alias_value=$build_alias
 
745
ac_env_host_alias_set=${host_alias+set}
 
746
ac_env_host_alias_value=$host_alias
 
747
ac_cv_env_host_alias_set=${host_alias+set}
 
748
ac_cv_env_host_alias_value=$host_alias
 
749
ac_env_target_alias_set=${target_alias+set}
 
750
ac_env_target_alias_value=$target_alias
 
751
ac_cv_env_target_alias_set=${target_alias+set}
 
752
ac_cv_env_target_alias_value=$target_alias
 
753
ac_env_CC_set=${CC+set}
 
754
ac_env_CC_value=$CC
 
755
ac_cv_env_CC_set=${CC+set}
 
756
ac_cv_env_CC_value=$CC
 
757
ac_env_CFLAGS_set=${CFLAGS+set}
 
758
ac_env_CFLAGS_value=$CFLAGS
 
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_cv_env_CFLAGS_value=$CFLAGS
 
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
762
ac_env_LDFLAGS_value=$LDFLAGS
 
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
766
ac_env_CPPFLAGS_value=$CPPFLAGS
 
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_env_CPP_set=${CPP+set}
 
770
ac_env_CPP_value=$CPP
 
771
ac_cv_env_CPP_set=${CPP+set}
 
772
ac_cv_env_CPP_value=$CPP
 
773
 
 
774
#
 
775
# Report the --help message.
 
776
#
 
777
if test "$ac_init_help" = "long"; then
 
778
  # Omit some internal or obsolete options to make the list less imposing.
 
779
  # This message is too long to be a string in the A/UX 3.1 sh.
 
780
  cat <<_ACEOF
 
781
\`configure' configures this package to adapt to many kinds of systems.
 
782
 
 
783
Usage: $0 [OPTION]... [VAR=VALUE]...
 
784
 
 
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
786
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
787
 
 
788
Defaults for the options are specified in brackets.
 
789
 
 
790
Configuration:
 
791
  -h, --help              display this help and exit
 
792
      --help=short        display options specific to this package
 
793
      --help=recursive    display the short help of all the included packages
 
794
  -V, --version           display version information and exit
 
795
  -q, --quiet, --silent   do not print \`checking...' messages
 
796
      --cache-file=FILE   cache test results in FILE [disabled]
 
797
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
798
  -n, --no-create         do not create output files
 
799
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
800
 
 
801
_ACEOF
 
802
 
 
803
  cat <<_ACEOF
 
804
Installation directories:
 
805
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
806
                          [$ac_default_prefix]
 
807
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
808
                          [PREFIX]
 
809
 
 
810
By default, \`make install' will install all the files in
 
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
813
for instance \`--prefix=\$HOME'.
 
814
 
 
815
For better control, use the options below.
 
816
 
 
817
Fine tuning of the installation directories:
 
818
  --bindir=DIR           user executables [EPREFIX/bin]
 
819
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
820
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
821
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
822
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
823
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
824
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
825
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
826
  --includedir=DIR       C header files [PREFIX/include]
 
827
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
828
  --infodir=DIR          info documentation [PREFIX/info]
 
829
  --mandir=DIR           man documentation [PREFIX/man]
 
830
_ACEOF
 
831
 
 
832
  cat <<\_ACEOF
 
833
 
 
834
System types:
 
835
  --build=BUILD     configure for building on BUILD [guessed]
 
836
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
837
_ACEOF
 
838
fi
 
839
 
 
840
if test -n "$ac_init_help"; then
 
841
 
 
842
  cat <<\_ACEOF
 
843
 
 
844
Optional Features:
 
845
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
846
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
847
  --enable-debug-mode           enable debug mode
 
848
  --enable-shlib-thread-safety  enable thread safety for build shared libraries
 
849
 
 
850
Some influential environment variables:
 
851
  CC          C compiler command
 
852
  CFLAGS      C compiler flags
 
853
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
854
              nonstandard directory <lib dir>
 
855
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
856
              headers in a nonstandard directory <include dir>
 
857
  CPP         C preprocessor
 
858
 
 
859
Use these variables to override the choices made by `configure' or to help
 
860
it to find libraries and programs with nonstandard names/locations.
 
861
 
 
862
_ACEOF
 
863
fi
 
864
 
 
865
if test "$ac_init_help" = "recursive"; then
 
866
  # If there are subdirs, report their specific --help.
 
867
  ac_popdir=`pwd`
 
868
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
869
    test -d $ac_dir || continue
 
870
    ac_builddir=.
 
871
 
 
872
if test "$ac_dir" != .; then
 
873
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
874
  # A "../" for each directory in $ac_dir_suffix.
 
875
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
876
else
 
877
  ac_dir_suffix= ac_top_builddir=
 
878
fi
 
879
 
 
880
case $srcdir in
 
881
  .)  # No --srcdir option.  We are building in place.
 
882
    ac_srcdir=.
 
883
    if test -z "$ac_top_builddir"; then
 
884
       ac_top_srcdir=.
 
885
    else
 
886
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
887
    fi ;;
 
888
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
889
    ac_srcdir=$srcdir$ac_dir_suffix;
 
890
    ac_top_srcdir=$srcdir ;;
 
891
  *) # Relative path.
 
892
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
893
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
894
esac
 
895
 
 
896
# Do not use `cd foo && pwd` to compute absolute paths, because
 
897
# the directories may not exist.
 
898
case `pwd` in
 
899
.) ac_abs_builddir="$ac_dir";;
 
900
*)
 
901
  case "$ac_dir" in
 
902
  .) ac_abs_builddir=`pwd`;;
 
903
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
904
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
905
  esac;;
 
906
esac
 
907
case $ac_abs_builddir in
 
908
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
909
*)
 
910
  case ${ac_top_builddir}. in
 
911
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
912
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
913
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
914
  esac;;
 
915
esac
 
916
case $ac_abs_builddir in
 
917
.) ac_abs_srcdir=$ac_srcdir;;
 
918
*)
 
919
  case $ac_srcdir in
 
920
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
921
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
922
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
923
  esac;;
 
924
esac
 
925
case $ac_abs_builddir in
 
926
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
927
*)
 
928
  case $ac_top_srcdir in
 
929
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
930
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
931
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
932
  esac;;
 
933
esac
 
934
 
 
935
    cd $ac_dir
 
936
    # Check for guested configure; otherwise get Cygnus style configure.
 
937
    if test -f $ac_srcdir/configure.gnu; then
 
938
      echo
 
939
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
940
    elif test -f $ac_srcdir/configure; then
 
941
      echo
 
942
      $SHELL $ac_srcdir/configure  --help=recursive
 
943
    elif test -f $ac_srcdir/configure.ac ||
 
944
           test -f $ac_srcdir/configure.in; then
 
945
      echo
 
946
      $ac_configure --help
 
947
    else
 
948
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
949
    fi
 
950
    cd $ac_popdir
 
951
  done
 
952
fi
 
953
 
 
954
test -n "$ac_init_help" && exit 0
 
955
if $ac_init_version; then
 
956
  cat <<\_ACEOF
 
957
 
 
958
Copyright (C) 2003 Free Software Foundation, Inc.
 
959
This configure script is free software; the Free Software Foundation
 
960
gives unlimited permission to copy, distribute and modify it.
 
961
_ACEOF
 
962
  exit 0
 
963
fi
 
964
exec 5>config.log
 
965
cat >&5 <<_ACEOF
 
966
This file contains any messages produced by compilers while
 
967
running configure, to aid debugging if configure makes a mistake.
 
968
 
 
969
It was created by $as_me, which was
 
970
generated by GNU Autoconf 2.59.  Invocation command line was
 
971
 
 
972
  $ $0 $@
 
973
 
 
974
_ACEOF
 
975
{
 
976
cat <<_ASUNAME
 
977
## --------- ##
 
978
## Platform. ##
 
979
## --------- ##
 
980
 
 
981
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
982
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
983
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
984
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
985
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
986
 
 
987
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
988
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
989
 
 
990
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
991
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
992
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
993
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
994
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
995
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
996
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
997
 
 
998
_ASUNAME
 
999
 
 
1000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1001
for as_dir in $PATH
 
1002
do
 
1003
  IFS=$as_save_IFS
 
1004
  test -z "$as_dir" && as_dir=.
 
1005
  echo "PATH: $as_dir"
 
1006
done
 
1007
 
 
1008
} >&5
 
1009
 
 
1010
cat >&5 <<_ACEOF
 
1011
 
 
1012
 
 
1013
## ----------- ##
 
1014
## Core tests. ##
 
1015
## ----------- ##
 
1016
 
 
1017
_ACEOF
 
1018
 
 
1019
 
 
1020
# Keep a trace of the command line.
 
1021
# Strip out --no-create and --no-recursion so they do not pile up.
 
1022
# Strip out --silent because we don't want to record it for future runs.
 
1023
# Also quote any args containing shell meta-characters.
 
1024
# Make two passes to allow for proper duplicate-argument suppression.
 
1025
ac_configure_args=
 
1026
ac_configure_args0=
 
1027
ac_configure_args1=
 
1028
ac_sep=
 
1029
ac_must_keep_next=false
 
1030
for ac_pass in 1 2
 
1031
do
 
1032
  for ac_arg
 
1033
  do
 
1034
    case $ac_arg in
 
1035
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1036
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1037
    | -silent | --silent | --silen | --sile | --sil)
 
1038
      continue ;;
 
1039
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1040
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1041
    esac
 
1042
    case $ac_pass in
 
1043
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1044
    2)
 
1045
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1046
      if test $ac_must_keep_next = true; then
 
1047
        ac_must_keep_next=false # Got value, back to normal.
 
1048
      else
 
1049
        case $ac_arg in
 
1050
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1051
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1052
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1053
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1054
            case "$ac_configure_args0 " in
 
1055
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1056
            esac
 
1057
            ;;
 
1058
          -* ) ac_must_keep_next=true ;;
 
1059
        esac
 
1060
      fi
 
1061
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1062
      # Get rid of the leading space.
 
1063
      ac_sep=" "
 
1064
      ;;
 
1065
    esac
 
1066
  done
 
1067
done
 
1068
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1069
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1070
 
 
1071
# When interrupted or exit'd, cleanup temporary files, and complete
 
1072
# config.log.  We remove comments because anyway the quotes in there
 
1073
# would cause problems or look ugly.
 
1074
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1075
# such as our DU 5.0 friend, will then `close' the trap.
 
1076
trap 'exit_status=$?
 
1077
  # Save into config.log some information that might help in debugging.
 
1078
  {
 
1079
    echo
 
1080
 
 
1081
    cat <<\_ASBOX
 
1082
## ---------------- ##
 
1083
## Cache variables. ##
 
1084
## ---------------- ##
 
1085
_ASBOX
 
1086
    echo
 
1087
    # The following way of writing the cache mishandles newlines in values,
 
1088
{
 
1089
  (set) 2>&1 |
 
1090
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1091
    *ac_space=\ *)
 
1092
      sed -n \
 
1093
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1094
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1095
      ;;
 
1096
    *)
 
1097
      sed -n \
 
1098
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1099
      ;;
 
1100
    esac;
 
1101
}
 
1102
    echo
 
1103
 
 
1104
    cat <<\_ASBOX
 
1105
## ----------------- ##
 
1106
## Output variables. ##
 
1107
## ----------------- ##
 
1108
_ASBOX
 
1109
    echo
 
1110
    for ac_var in $ac_subst_vars
 
1111
    do
 
1112
      eval ac_val=$`echo $ac_var`
 
1113
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1114
    done | sort
 
1115
    echo
 
1116
 
 
1117
    if test -n "$ac_subst_files"; then
 
1118
      cat <<\_ASBOX
 
1119
## ------------- ##
 
1120
## Output files. ##
 
1121
## ------------- ##
 
1122
_ASBOX
 
1123
      echo
 
1124
      for ac_var in $ac_subst_files
 
1125
      do
 
1126
        eval ac_val=$`echo $ac_var`
 
1127
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1128
      done | sort
 
1129
      echo
 
1130
    fi
 
1131
 
 
1132
    if test -s confdefs.h; then
 
1133
      cat <<\_ASBOX
 
1134
## ----------- ##
 
1135
## confdefs.h. ##
 
1136
## ----------- ##
 
1137
_ASBOX
 
1138
      echo
 
1139
      sed "/^$/d" confdefs.h | sort
 
1140
      echo
 
1141
    fi
 
1142
    test "$ac_signal" != 0 &&
 
1143
      echo "$as_me: caught signal $ac_signal"
 
1144
    echo "$as_me: exit $exit_status"
 
1145
  } >&5
 
1146
  rm -f core *.core &&
 
1147
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1148
    exit $exit_status
 
1149
     ' 0
 
1150
for ac_signal in 1 2 13 15; do
 
1151
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1152
done
 
1153
ac_signal=0
 
1154
 
 
1155
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1156
rm -rf conftest* confdefs.h
 
1157
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1158
echo >confdefs.h
 
1159
 
 
1160
# Predefined preprocessor variables.
 
1161
 
 
1162
cat >>confdefs.h <<_ACEOF
 
1163
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1164
_ACEOF
 
1165
 
 
1166
 
 
1167
cat >>confdefs.h <<_ACEOF
 
1168
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1169
_ACEOF
 
1170
 
 
1171
 
 
1172
cat >>confdefs.h <<_ACEOF
 
1173
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1174
_ACEOF
 
1175
 
 
1176
 
 
1177
cat >>confdefs.h <<_ACEOF
 
1178
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1179
_ACEOF
 
1180
 
 
1181
 
 
1182
cat >>confdefs.h <<_ACEOF
 
1183
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1184
_ACEOF
 
1185
 
 
1186
 
 
1187
# Let the site file select an alternate cache file if it wants to.
 
1188
# Prefer explicitly selected file to automatically selected ones.
 
1189
if test -z "$CONFIG_SITE"; then
 
1190
  if test "x$prefix" != xNONE; then
 
1191
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1192
  else
 
1193
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1194
  fi
 
1195
fi
 
1196
for ac_site_file in $CONFIG_SITE; do
 
1197
  if test -r "$ac_site_file"; then
 
1198
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1199
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1200
    sed 's/^/| /' "$ac_site_file" >&5
 
1201
    . "$ac_site_file"
 
1202
  fi
 
1203
done
 
1204
 
 
1205
if test -r "$cache_file"; then
 
1206
  # Some versions of bash will fail to source /dev/null (special
 
1207
  # files actually), so we avoid doing that.
 
1208
  if test -f "$cache_file"; then
 
1209
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1210
echo "$as_me: loading cache $cache_file" >&6;}
 
1211
    case $cache_file in
 
1212
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1213
      *)                      . ./$cache_file;;
 
1214
    esac
 
1215
  fi
 
1216
else
 
1217
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1218
echo "$as_me: creating cache $cache_file" >&6;}
 
1219
  >$cache_file
 
1220
fi
 
1221
 
 
1222
# Check that the precious variables saved in the cache have kept the same
 
1223
# value.
 
1224
ac_cache_corrupted=false
 
1225
for ac_var in `(set) 2>&1 |
 
1226
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1227
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1228
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1229
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1230
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1231
  case $ac_old_set,$ac_new_set in
 
1232
    set,)
 
1233
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1234
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1235
      ac_cache_corrupted=: ;;
 
1236
    ,set)
 
1237
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1238
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1239
      ac_cache_corrupted=: ;;
 
1240
    ,);;
 
1241
    *)
 
1242
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1243
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1244
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1245
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1246
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1247
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1248
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1249
        ac_cache_corrupted=:
 
1250
      fi;;
 
1251
  esac
 
1252
  # Pass precious variables to config.status.
 
1253
  if test "$ac_new_set" = set; then
 
1254
    case $ac_new_val in
 
1255
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1256
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1257
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1258
    esac
 
1259
    case " $ac_configure_args " in
 
1260
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1261
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1262
    esac
 
1263
  fi
 
1264
done
 
1265
if $ac_cache_corrupted; then
 
1266
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1267
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1268
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1269
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1270
   { (exit 1); exit 1; }; }
 
1271
fi
 
1272
 
 
1273
ac_ext=c
 
1274
ac_cpp='$CPP $CPPFLAGS'
 
1275
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1276
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1277
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
 
1284
 
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
ac_aux_dir=
 
1299
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1300
  if test -f $ac_dir/install-sh; then
 
1301
    ac_aux_dir=$ac_dir
 
1302
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1303
    break
 
1304
  elif test -f $ac_dir/install.sh; then
 
1305
    ac_aux_dir=$ac_dir
 
1306
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1307
    break
 
1308
  elif test -f $ac_dir/shtool; then
 
1309
    ac_aux_dir=$ac_dir
 
1310
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1311
    break
 
1312
  fi
 
1313
done
 
1314
if test -z "$ac_aux_dir"; then
 
1315
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1316
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1317
   { (exit 1); exit 1; }; }
 
1318
fi
 
1319
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1320
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1321
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1322
 
 
1323
# Make sure we can run config.sub.
 
1324
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1325
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1326
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1327
   { (exit 1); exit 1; }; }
 
1328
 
 
1329
echo "$as_me:$LINENO: checking build system type" >&5
 
1330
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1331
if test "${ac_cv_build+set}" = set; then
 
1332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1333
else
 
1334
  ac_cv_build_alias=$build_alias
 
1335
test -z "$ac_cv_build_alias" &&
 
1336
  ac_cv_build_alias=`$ac_config_guess`
 
1337
test -z "$ac_cv_build_alias" &&
 
1338
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1339
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1340
   { (exit 1); exit 1; }; }
 
1341
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1342
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1343
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1344
   { (exit 1); exit 1; }; }
 
1345
 
 
1346
fi
 
1347
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1348
echo "${ECHO_T}$ac_cv_build" >&6
 
1349
build=$ac_cv_build
 
1350
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1351
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1352
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1353
 
 
1354
 
 
1355
echo "$as_me:$LINENO: checking host system type" >&5
 
1356
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1357
if test "${ac_cv_host+set}" = set; then
 
1358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1359
else
 
1360
  ac_cv_host_alias=$host_alias
 
1361
test -z "$ac_cv_host_alias" &&
 
1362
  ac_cv_host_alias=$ac_cv_build_alias
 
1363
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1364
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1365
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1366
   { (exit 1); exit 1; }; }
 
1367
 
 
1368
fi
 
1369
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1370
echo "${ECHO_T}$ac_cv_host" >&6
 
1371
host=$ac_cv_host
 
1372
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1373
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1374
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1375
 
 
1376
 
 
1377
 
 
1378
ac_ext=c
 
1379
ac_cpp='$CPP $CPPFLAGS'
 
1380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1383
if test -n "$ac_tool_prefix"; then
 
1384
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1385
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1386
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1388
if test "${ac_cv_prog_CC+set}" = set; then
 
1389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1390
else
 
1391
  if test -n "$CC"; then
 
1392
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1393
else
 
1394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1395
for as_dir in $PATH
 
1396
do
 
1397
  IFS=$as_save_IFS
 
1398
  test -z "$as_dir" && as_dir=.
 
1399
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1400
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1401
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1402
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1403
    break 2
 
1404
  fi
 
1405
done
 
1406
done
 
1407
 
 
1408
fi
 
1409
fi
 
1410
CC=$ac_cv_prog_CC
 
1411
if test -n "$CC"; then
 
1412
  echo "$as_me:$LINENO: result: $CC" >&5
 
1413
echo "${ECHO_T}$CC" >&6
 
1414
else
 
1415
  echo "$as_me:$LINENO: result: no" >&5
 
1416
echo "${ECHO_T}no" >&6
 
1417
fi
 
1418
 
 
1419
fi
 
1420
if test -z "$ac_cv_prog_CC"; then
 
1421
  ac_ct_CC=$CC
 
1422
  # Extract the first word of "gcc", so it can be a program name with args.
 
1423
set dummy gcc; ac_word=$2
 
1424
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1426
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1428
else
 
1429
  if test -n "$ac_ct_CC"; then
 
1430
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1431
else
 
1432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1433
for as_dir in $PATH
 
1434
do
 
1435
  IFS=$as_save_IFS
 
1436
  test -z "$as_dir" && as_dir=.
 
1437
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1438
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1439
    ac_cv_prog_ac_ct_CC="gcc"
 
1440
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1441
    break 2
 
1442
  fi
 
1443
done
 
1444
done
 
1445
 
 
1446
fi
 
1447
fi
 
1448
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1449
if test -n "$ac_ct_CC"; then
 
1450
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1451
echo "${ECHO_T}$ac_ct_CC" >&6
 
1452
else
 
1453
  echo "$as_me:$LINENO: result: no" >&5
 
1454
echo "${ECHO_T}no" >&6
 
1455
fi
 
1456
 
 
1457
  CC=$ac_ct_CC
 
1458
else
 
1459
  CC="$ac_cv_prog_CC"
 
1460
fi
 
1461
 
 
1462
if test -z "$CC"; then
 
1463
  if test -n "$ac_tool_prefix"; then
 
1464
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1465
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1466
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1468
if test "${ac_cv_prog_CC+set}" = set; then
 
1469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1470
else
 
1471
  if test -n "$CC"; then
 
1472
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1473
else
 
1474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1475
for as_dir in $PATH
 
1476
do
 
1477
  IFS=$as_save_IFS
 
1478
  test -z "$as_dir" && as_dir=.
 
1479
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1480
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1481
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1482
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1483
    break 2
 
1484
  fi
 
1485
done
 
1486
done
 
1487
 
 
1488
fi
 
1489
fi
 
1490
CC=$ac_cv_prog_CC
 
1491
if test -n "$CC"; then
 
1492
  echo "$as_me:$LINENO: result: $CC" >&5
 
1493
echo "${ECHO_T}$CC" >&6
 
1494
else
 
1495
  echo "$as_me:$LINENO: result: no" >&5
 
1496
echo "${ECHO_T}no" >&6
 
1497
fi
 
1498
 
 
1499
fi
 
1500
if test -z "$ac_cv_prog_CC"; then
 
1501
  ac_ct_CC=$CC
 
1502
  # Extract the first word of "cc", so it can be a program name with args.
 
1503
set dummy cc; ac_word=$2
 
1504
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1506
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1508
else
 
1509
  if test -n "$ac_ct_CC"; then
 
1510
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1511
else
 
1512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1513
for as_dir in $PATH
 
1514
do
 
1515
  IFS=$as_save_IFS
 
1516
  test -z "$as_dir" && as_dir=.
 
1517
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1518
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1519
    ac_cv_prog_ac_ct_CC="cc"
 
1520
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1521
    break 2
 
1522
  fi
 
1523
done
 
1524
done
 
1525
 
 
1526
fi
 
1527
fi
 
1528
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1529
if test -n "$ac_ct_CC"; then
 
1530
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1531
echo "${ECHO_T}$ac_ct_CC" >&6
 
1532
else
 
1533
  echo "$as_me:$LINENO: result: no" >&5
 
1534
echo "${ECHO_T}no" >&6
 
1535
fi
 
1536
 
 
1537
  CC=$ac_ct_CC
 
1538
else
 
1539
  CC="$ac_cv_prog_CC"
 
1540
fi
 
1541
 
 
1542
fi
 
1543
if test -z "$CC"; then
 
1544
  # Extract the first word of "cc", so it can be a program name with args.
 
1545
set dummy cc; ac_word=$2
 
1546
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1548
if test "${ac_cv_prog_CC+set}" = set; then
 
1549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1550
else
 
1551
  if test -n "$CC"; then
 
1552
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1553
else
 
1554
  ac_prog_rejected=no
 
1555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1556
for as_dir in $PATH
 
1557
do
 
1558
  IFS=$as_save_IFS
 
1559
  test -z "$as_dir" && as_dir=.
 
1560
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1561
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1562
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1563
       ac_prog_rejected=yes
 
1564
       continue
 
1565
     fi
 
1566
    ac_cv_prog_CC="cc"
 
1567
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1568
    break 2
 
1569
  fi
 
1570
done
 
1571
done
 
1572
 
 
1573
if test $ac_prog_rejected = yes; then
 
1574
  # We found a bogon in the path, so make sure we never use it.
 
1575
  set dummy $ac_cv_prog_CC
 
1576
  shift
 
1577
  if test $# != 0; then
 
1578
    # We chose a different compiler from the bogus one.
 
1579
    # However, it has the same basename, so the bogon will be chosen
 
1580
    # first if we set CC to just the basename; use the full file name.
 
1581
    shift
 
1582
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1583
  fi
 
1584
fi
 
1585
fi
 
1586
fi
 
1587
CC=$ac_cv_prog_CC
 
1588
if test -n "$CC"; then
 
1589
  echo "$as_me:$LINENO: result: $CC" >&5
 
1590
echo "${ECHO_T}$CC" >&6
 
1591
else
 
1592
  echo "$as_me:$LINENO: result: no" >&5
 
1593
echo "${ECHO_T}no" >&6
 
1594
fi
 
1595
 
 
1596
fi
 
1597
if test -z "$CC"; then
 
1598
  if test -n "$ac_tool_prefix"; then
 
1599
  for ac_prog in cl
 
1600
  do
 
1601
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1602
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1603
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1605
if test "${ac_cv_prog_CC+set}" = set; then
 
1606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1607
else
 
1608
  if test -n "$CC"; then
 
1609
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1610
else
 
1611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1612
for as_dir in $PATH
 
1613
do
 
1614
  IFS=$as_save_IFS
 
1615
  test -z "$as_dir" && as_dir=.
 
1616
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1617
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1618
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1619
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1620
    break 2
 
1621
  fi
 
1622
done
 
1623
done
 
1624
 
 
1625
fi
 
1626
fi
 
1627
CC=$ac_cv_prog_CC
 
1628
if test -n "$CC"; then
 
1629
  echo "$as_me:$LINENO: result: $CC" >&5
 
1630
echo "${ECHO_T}$CC" >&6
 
1631
else
 
1632
  echo "$as_me:$LINENO: result: no" >&5
 
1633
echo "${ECHO_T}no" >&6
 
1634
fi
 
1635
 
 
1636
    test -n "$CC" && break
 
1637
  done
 
1638
fi
 
1639
if test -z "$CC"; then
 
1640
  ac_ct_CC=$CC
 
1641
  for ac_prog in cl
 
1642
do
 
1643
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1644
set dummy $ac_prog; ac_word=$2
 
1645
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1647
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1649
else
 
1650
  if test -n "$ac_ct_CC"; then
 
1651
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1652
else
 
1653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1654
for as_dir in $PATH
 
1655
do
 
1656
  IFS=$as_save_IFS
 
1657
  test -z "$as_dir" && as_dir=.
 
1658
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1659
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1660
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1661
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1662
    break 2
 
1663
  fi
 
1664
done
 
1665
done
 
1666
 
 
1667
fi
 
1668
fi
 
1669
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1670
if test -n "$ac_ct_CC"; then
 
1671
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1672
echo "${ECHO_T}$ac_ct_CC" >&6
 
1673
else
 
1674
  echo "$as_me:$LINENO: result: no" >&5
 
1675
echo "${ECHO_T}no" >&6
 
1676
fi
 
1677
 
 
1678
  test -n "$ac_ct_CC" && break
 
1679
done
 
1680
 
 
1681
  CC=$ac_ct_CC
 
1682
fi
 
1683
 
 
1684
fi
 
1685
 
 
1686
 
 
1687
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1688
See \`config.log' for more details." >&5
 
1689
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1690
See \`config.log' for more details." >&2;}
 
1691
   { (exit 1); exit 1; }; }
 
1692
 
 
1693
# Provide some information about the compiler.
 
1694
echo "$as_me:$LINENO:" \
 
1695
     "checking for C compiler version" >&5
 
1696
ac_compiler=`set X $ac_compile; echo $2`
 
1697
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1698
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1699
  ac_status=$?
 
1700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1701
  (exit $ac_status); }
 
1702
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1703
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1704
  ac_status=$?
 
1705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1706
  (exit $ac_status); }
 
1707
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1708
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1709
  ac_status=$?
 
1710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1711
  (exit $ac_status); }
 
1712
 
 
1713
cat >conftest.$ac_ext <<_ACEOF
 
1714
/* confdefs.h.  */
 
1715
_ACEOF
 
1716
cat confdefs.h >>conftest.$ac_ext
 
1717
cat >>conftest.$ac_ext <<_ACEOF
 
1718
/* end confdefs.h.  */
 
1719
 
 
1720
int
 
1721
main ()
 
1722
{
 
1723
 
 
1724
  ;
 
1725
  return 0;
 
1726
}
 
1727
_ACEOF
 
1728
ac_clean_files_save=$ac_clean_files
 
1729
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1730
# Try to create an executable without -o first, disregard a.out.
 
1731
# It will help us diagnose broken compilers, and finding out an intuition
 
1732
# of exeext.
 
1733
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1734
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1735
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1736
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1737
  (eval $ac_link_default) 2>&5
 
1738
  ac_status=$?
 
1739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1740
  (exit $ac_status); }; then
 
1741
  # Find the output, starting from the most likely.  This scheme is
 
1742
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1743
# resort.
 
1744
 
 
1745
# Be careful to initialize this variable, since it used to be cached.
 
1746
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1747
ac_cv_exeext=
 
1748
# b.out is created by i960 compilers.
 
1749
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1750
do
 
1751
  test -f "$ac_file" || continue
 
1752
  case $ac_file in
 
1753
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1754
        ;;
 
1755
    conftest.$ac_ext )
 
1756
        # This is the source file.
 
1757
        ;;
 
1758
    [ab].out )
 
1759
        # We found the default executable, but exeext='' is most
 
1760
        # certainly right.
 
1761
        break;;
 
1762
    *.* )
 
1763
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1764
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1765
        # but it would be cool to find out if it's true.  Does anybody
 
1766
        # maintain Libtool? --akim.
 
1767
        export ac_cv_exeext
 
1768
        break;;
 
1769
    * )
 
1770
        break;;
 
1771
  esac
 
1772
done
 
1773
else
 
1774
  echo "$as_me: failed program was:" >&5
 
1775
sed 's/^/| /' conftest.$ac_ext >&5
 
1776
 
 
1777
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1778
See \`config.log' for more details." >&5
 
1779
echo "$as_me: error: C compiler cannot create executables
 
1780
See \`config.log' for more details." >&2;}
 
1781
   { (exit 77); exit 77; }; }
 
1782
fi
 
1783
 
 
1784
ac_exeext=$ac_cv_exeext
 
1785
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1786
echo "${ECHO_T}$ac_file" >&6
 
1787
 
 
1788
# Check the compiler produces executables we can run.  If not, either
 
1789
# the compiler is broken, or we cross compile.
 
1790
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1791
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1792
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1793
# If not cross compiling, check that we can run a simple program.
 
1794
if test "$cross_compiling" != yes; then
 
1795
  if { ac_try='./$ac_file'
 
1796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1797
  (eval $ac_try) 2>&5
 
1798
  ac_status=$?
 
1799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1800
  (exit $ac_status); }; }; then
 
1801
    cross_compiling=no
 
1802
  else
 
1803
    if test "$cross_compiling" = maybe; then
 
1804
        cross_compiling=yes
 
1805
    else
 
1806
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1807
If you meant to cross compile, use \`--host'.
 
1808
See \`config.log' for more details." >&5
 
1809
echo "$as_me: error: cannot run C compiled programs.
 
1810
If you meant to cross compile, use \`--host'.
 
1811
See \`config.log' for more details." >&2;}
 
1812
   { (exit 1); exit 1; }; }
 
1813
    fi
 
1814
  fi
 
1815
fi
 
1816
echo "$as_me:$LINENO: result: yes" >&5
 
1817
echo "${ECHO_T}yes" >&6
 
1818
 
 
1819
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1820
ac_clean_files=$ac_clean_files_save
 
1821
# Check the compiler produces executables we can run.  If not, either
 
1822
# the compiler is broken, or we cross compile.
 
1823
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1824
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1825
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1826
echo "${ECHO_T}$cross_compiling" >&6
 
1827
 
 
1828
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1829
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1831
  (eval $ac_link) 2>&5
 
1832
  ac_status=$?
 
1833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1834
  (exit $ac_status); }; then
 
1835
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1836
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1837
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1838
# `rm'.
 
1839
for ac_file in conftest.exe conftest conftest.*; do
 
1840
  test -f "$ac_file" || continue
 
1841
  case $ac_file in
 
1842
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1843
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1844
          export ac_cv_exeext
 
1845
          break;;
 
1846
    * ) break;;
 
1847
  esac
 
1848
done
 
1849
else
 
1850
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1851
See \`config.log' for more details." >&5
 
1852
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1853
See \`config.log' for more details." >&2;}
 
1854
   { (exit 1); exit 1; }; }
 
1855
fi
 
1856
 
 
1857
rm -f conftest$ac_cv_exeext
 
1858
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1859
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1860
 
 
1861
rm -f conftest.$ac_ext
 
1862
EXEEXT=$ac_cv_exeext
 
1863
ac_exeext=$EXEEXT
 
1864
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1865
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1866
if test "${ac_cv_objext+set}" = set; then
 
1867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1868
else
 
1869
  cat >conftest.$ac_ext <<_ACEOF
 
1870
/* confdefs.h.  */
 
1871
_ACEOF
 
1872
cat confdefs.h >>conftest.$ac_ext
 
1873
cat >>conftest.$ac_ext <<_ACEOF
 
1874
/* end confdefs.h.  */
 
1875
 
 
1876
int
 
1877
main ()
 
1878
{
 
1879
 
 
1880
  ;
 
1881
  return 0;
 
1882
}
 
1883
_ACEOF
 
1884
rm -f conftest.o conftest.obj
 
1885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1886
  (eval $ac_compile) 2>&5
 
1887
  ac_status=$?
 
1888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1889
  (exit $ac_status); }; then
 
1890
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1891
  case $ac_file in
 
1892
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1893
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1894
       break;;
 
1895
  esac
 
1896
done
 
1897
else
 
1898
  echo "$as_me: failed program was:" >&5
 
1899
sed 's/^/| /' conftest.$ac_ext >&5
 
1900
 
 
1901
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1902
See \`config.log' for more details." >&5
 
1903
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1904
See \`config.log' for more details." >&2;}
 
1905
   { (exit 1); exit 1; }; }
 
1906
fi
 
1907
 
 
1908
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1909
fi
 
1910
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1911
echo "${ECHO_T}$ac_cv_objext" >&6
 
1912
OBJEXT=$ac_cv_objext
 
1913
ac_objext=$OBJEXT
 
1914
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1915
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1916
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1918
else
 
1919
  cat >conftest.$ac_ext <<_ACEOF
 
1920
/* confdefs.h.  */
 
1921
_ACEOF
 
1922
cat confdefs.h >>conftest.$ac_ext
 
1923
cat >>conftest.$ac_ext <<_ACEOF
 
1924
/* end confdefs.h.  */
 
1925
 
 
1926
int
 
1927
main ()
 
1928
{
 
1929
#ifndef __GNUC__
 
1930
       choke me
 
1931
#endif
 
1932
 
 
1933
  ;
 
1934
  return 0;
 
1935
}
 
1936
_ACEOF
 
1937
rm -f conftest.$ac_objext
 
1938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1939
  (eval $ac_compile) 2>conftest.er1
 
1940
  ac_status=$?
 
1941
  grep -v '^ *+' conftest.er1 >conftest.err
 
1942
  rm -f conftest.er1
 
1943
  cat conftest.err >&5
 
1944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1945
  (exit $ac_status); } &&
 
1946
         { ac_try='test -z "$ac_c_werror_flag"
 
1947
                         || test ! -s conftest.err'
 
1948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1949
  (eval $ac_try) 2>&5
 
1950
  ac_status=$?
 
1951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1952
  (exit $ac_status); }; } &&
 
1953
         { ac_try='test -s conftest.$ac_objext'
 
1954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1955
  (eval $ac_try) 2>&5
 
1956
  ac_status=$?
 
1957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1958
  (exit $ac_status); }; }; then
 
1959
  ac_compiler_gnu=yes
 
1960
else
 
1961
  echo "$as_me: failed program was:" >&5
 
1962
sed 's/^/| /' conftest.$ac_ext >&5
 
1963
 
 
1964
ac_compiler_gnu=no
 
1965
fi
 
1966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1967
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1968
 
 
1969
fi
 
1970
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
1971
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
1972
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
1973
ac_test_CFLAGS=${CFLAGS+set}
 
1974
ac_save_CFLAGS=$CFLAGS
 
1975
CFLAGS="-g"
 
1976
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
1977
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
1978
if test "${ac_cv_prog_cc_g+set}" = set; then
 
1979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1980
else
 
1981
  cat >conftest.$ac_ext <<_ACEOF
 
1982
/* confdefs.h.  */
 
1983
_ACEOF
 
1984
cat confdefs.h >>conftest.$ac_ext
 
1985
cat >>conftest.$ac_ext <<_ACEOF
 
1986
/* end confdefs.h.  */
 
1987
 
 
1988
int
 
1989
main ()
 
1990
{
 
1991
 
 
1992
  ;
 
1993
  return 0;
 
1994
}
 
1995
_ACEOF
 
1996
rm -f conftest.$ac_objext
 
1997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1998
  (eval $ac_compile) 2>conftest.er1
 
1999
  ac_status=$?
 
2000
  grep -v '^ *+' conftest.er1 >conftest.err
 
2001
  rm -f conftest.er1
 
2002
  cat conftest.err >&5
 
2003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2004
  (exit $ac_status); } &&
 
2005
         { ac_try='test -z "$ac_c_werror_flag"
 
2006
                         || test ! -s conftest.err'
 
2007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2008
  (eval $ac_try) 2>&5
 
2009
  ac_status=$?
 
2010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2011
  (exit $ac_status); }; } &&
 
2012
         { ac_try='test -s conftest.$ac_objext'
 
2013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2014
  (eval $ac_try) 2>&5
 
2015
  ac_status=$?
 
2016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2017
  (exit $ac_status); }; }; then
 
2018
  ac_cv_prog_cc_g=yes
 
2019
else
 
2020
  echo "$as_me: failed program was:" >&5
 
2021
sed 's/^/| /' conftest.$ac_ext >&5
 
2022
 
 
2023
ac_cv_prog_cc_g=no
 
2024
fi
 
2025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2026
fi
 
2027
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2028
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2029
if test "$ac_test_CFLAGS" = set; then
 
2030
  CFLAGS=$ac_save_CFLAGS
 
2031
elif test $ac_cv_prog_cc_g = yes; then
 
2032
  if test "$GCC" = yes; then
 
2033
    CFLAGS="-g -O2"
 
2034
  else
 
2035
    CFLAGS="-g"
 
2036
  fi
 
2037
else
 
2038
  if test "$GCC" = yes; then
 
2039
    CFLAGS="-O2"
 
2040
  else
 
2041
    CFLAGS=
 
2042
  fi
 
2043
fi
 
2044
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2045
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2046
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2048
else
 
2049
  ac_cv_prog_cc_stdc=no
 
2050
ac_save_CC=$CC
 
2051
cat >conftest.$ac_ext <<_ACEOF
 
2052
/* confdefs.h.  */
 
2053
_ACEOF
 
2054
cat confdefs.h >>conftest.$ac_ext
 
2055
cat >>conftest.$ac_ext <<_ACEOF
 
2056
/* end confdefs.h.  */
 
2057
#include <stdarg.h>
 
2058
#include <stdio.h>
 
2059
#include <sys/types.h>
 
2060
#include <sys/stat.h>
 
2061
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2062
struct buf { int x; };
 
2063
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2064
static char *e (p, i)
 
2065
     char **p;
 
2066
     int i;
 
2067
{
 
2068
  return p[i];
 
2069
}
 
2070
static char *f (char * (*g) (char **, int), char **p, ...)
 
2071
{
 
2072
  char *s;
 
2073
  va_list v;
 
2074
  va_start (v,p);
 
2075
  s = g (p, va_arg (v,int));
 
2076
  va_end (v);
 
2077
  return s;
 
2078
}
 
2079
 
 
2080
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2081
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2082
   These don't provoke an error unfortunately, instead are silently treated
 
2083
   as 'x'.  The following induces an error, until -std1 is added to get
 
2084
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2085
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2086
   that's true only with -std1.  */
 
2087
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2088
 
 
2089
int test (int i, double x);
 
2090
struct s1 {int (*f) (int a);};
 
2091
struct s2 {int (*f) (double a);};
 
2092
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2093
int argc;
 
2094
char **argv;
 
2095
int
 
2096
main ()
 
2097
{
 
2098
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2099
  ;
 
2100
  return 0;
 
2101
}
 
2102
_ACEOF
 
2103
# Don't try gcc -ansi; that turns off useful extensions and
 
2104
# breaks some systems' header files.
 
2105
# AIX                   -qlanglvl=ansi
 
2106
# Ultrix and OSF/1      -std1
 
2107
# HP-UX 10.20 and later -Ae
 
2108
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2109
# SVR4                  -Xc -D__EXTENSIONS__
 
2110
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2111
do
 
2112
  CC="$ac_save_CC $ac_arg"
 
2113
  rm -f conftest.$ac_objext
 
2114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2115
  (eval $ac_compile) 2>conftest.er1
 
2116
  ac_status=$?
 
2117
  grep -v '^ *+' conftest.er1 >conftest.err
 
2118
  rm -f conftest.er1
 
2119
  cat conftest.err >&5
 
2120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2121
  (exit $ac_status); } &&
 
2122
         { ac_try='test -z "$ac_c_werror_flag"
 
2123
                         || test ! -s conftest.err'
 
2124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2125
  (eval $ac_try) 2>&5
 
2126
  ac_status=$?
 
2127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2128
  (exit $ac_status); }; } &&
 
2129
         { ac_try='test -s conftest.$ac_objext'
 
2130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2131
  (eval $ac_try) 2>&5
 
2132
  ac_status=$?
 
2133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2134
  (exit $ac_status); }; }; then
 
2135
  ac_cv_prog_cc_stdc=$ac_arg
 
2136
break
 
2137
else
 
2138
  echo "$as_me: failed program was:" >&5
 
2139
sed 's/^/| /' conftest.$ac_ext >&5
 
2140
 
 
2141
fi
 
2142
rm -f conftest.err conftest.$ac_objext
 
2143
done
 
2144
rm -f conftest.$ac_ext conftest.$ac_objext
 
2145
CC=$ac_save_CC
 
2146
 
 
2147
fi
 
2148
 
 
2149
case "x$ac_cv_prog_cc_stdc" in
 
2150
  x|xno)
 
2151
    echo "$as_me:$LINENO: result: none needed" >&5
 
2152
echo "${ECHO_T}none needed" >&6 ;;
 
2153
  *)
 
2154
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2155
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2156
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2157
esac
 
2158
 
 
2159
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2160
# in C++ we need to declare it.  In case someone uses the same compiler
 
2161
# for both compiling C and C++ we need to have the C++ compiler decide
 
2162
# the declaration of exit, since it's the most demanding environment.
 
2163
cat >conftest.$ac_ext <<_ACEOF
 
2164
#ifndef __cplusplus
 
2165
  choke me
 
2166
#endif
 
2167
_ACEOF
 
2168
rm -f conftest.$ac_objext
 
2169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2170
  (eval $ac_compile) 2>conftest.er1
 
2171
  ac_status=$?
 
2172
  grep -v '^ *+' conftest.er1 >conftest.err
 
2173
  rm -f conftest.er1
 
2174
  cat conftest.err >&5
 
2175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2176
  (exit $ac_status); } &&
 
2177
         { ac_try='test -z "$ac_c_werror_flag"
 
2178
                         || test ! -s conftest.err'
 
2179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2180
  (eval $ac_try) 2>&5
 
2181
  ac_status=$?
 
2182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2183
  (exit $ac_status); }; } &&
 
2184
         { ac_try='test -s conftest.$ac_objext'
 
2185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2186
  (eval $ac_try) 2>&5
 
2187
  ac_status=$?
 
2188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2189
  (exit $ac_status); }; }; then
 
2190
  for ac_declaration in \
 
2191
   '' \
 
2192
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2193
   'extern "C" void std::exit (int); using std::exit;' \
 
2194
   'extern "C" void exit (int) throw ();' \
 
2195
   'extern "C" void exit (int);' \
 
2196
   'void exit (int);'
 
2197
do
 
2198
  cat >conftest.$ac_ext <<_ACEOF
 
2199
/* confdefs.h.  */
 
2200
_ACEOF
 
2201
cat confdefs.h >>conftest.$ac_ext
 
2202
cat >>conftest.$ac_ext <<_ACEOF
 
2203
/* end confdefs.h.  */
 
2204
$ac_declaration
 
2205
#include <stdlib.h>
 
2206
int
 
2207
main ()
 
2208
{
 
2209
exit (42);
 
2210
  ;
 
2211
  return 0;
 
2212
}
 
2213
_ACEOF
 
2214
rm -f conftest.$ac_objext
 
2215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2216
  (eval $ac_compile) 2>conftest.er1
 
2217
  ac_status=$?
 
2218
  grep -v '^ *+' conftest.er1 >conftest.err
 
2219
  rm -f conftest.er1
 
2220
  cat conftest.err >&5
 
2221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2222
  (exit $ac_status); } &&
 
2223
         { ac_try='test -z "$ac_c_werror_flag"
 
2224
                         || test ! -s conftest.err'
 
2225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2226
  (eval $ac_try) 2>&5
 
2227
  ac_status=$?
 
2228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2229
  (exit $ac_status); }; } &&
 
2230
         { ac_try='test -s conftest.$ac_objext'
 
2231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2232
  (eval $ac_try) 2>&5
 
2233
  ac_status=$?
 
2234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2235
  (exit $ac_status); }; }; then
 
2236
  :
 
2237
else
 
2238
  echo "$as_me: failed program was:" >&5
 
2239
sed 's/^/| /' conftest.$ac_ext >&5
 
2240
 
 
2241
continue
 
2242
fi
 
2243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2244
  cat >conftest.$ac_ext <<_ACEOF
 
2245
/* confdefs.h.  */
 
2246
_ACEOF
 
2247
cat confdefs.h >>conftest.$ac_ext
 
2248
cat >>conftest.$ac_ext <<_ACEOF
 
2249
/* end confdefs.h.  */
 
2250
$ac_declaration
 
2251
int
 
2252
main ()
 
2253
{
 
2254
exit (42);
 
2255
  ;
 
2256
  return 0;
 
2257
}
 
2258
_ACEOF
 
2259
rm -f conftest.$ac_objext
 
2260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2261
  (eval $ac_compile) 2>conftest.er1
 
2262
  ac_status=$?
 
2263
  grep -v '^ *+' conftest.er1 >conftest.err
 
2264
  rm -f conftest.er1
 
2265
  cat conftest.err >&5
 
2266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2267
  (exit $ac_status); } &&
 
2268
         { ac_try='test -z "$ac_c_werror_flag"
 
2269
                         || test ! -s conftest.err'
 
2270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2271
  (eval $ac_try) 2>&5
 
2272
  ac_status=$?
 
2273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2274
  (exit $ac_status); }; } &&
 
2275
         { ac_try='test -s conftest.$ac_objext'
 
2276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2277
  (eval $ac_try) 2>&5
 
2278
  ac_status=$?
 
2279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2280
  (exit $ac_status); }; }; then
 
2281
  break
 
2282
else
 
2283
  echo "$as_me: failed program was:" >&5
 
2284
sed 's/^/| /' conftest.$ac_ext >&5
 
2285
 
 
2286
fi
 
2287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2288
done
 
2289
rm -f conftest*
 
2290
if test -n "$ac_declaration"; then
 
2291
  echo '#ifdef __cplusplus' >>confdefs.h
 
2292
  echo $ac_declaration      >>confdefs.h
 
2293
  echo '#endif'             >>confdefs.h
 
2294
fi
 
2295
 
 
2296
else
 
2297
  echo "$as_me: failed program was:" >&5
 
2298
sed 's/^/| /' conftest.$ac_ext >&5
 
2299
 
 
2300
fi
 
2301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2302
ac_ext=c
 
2303
ac_cpp='$CPP $CPPFLAGS'
 
2304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2307
 
 
2308
 
 
2309
DEBUG_FLAGS="-g -DDEBUG"
 
2310
if test "$GCC" = yes; then
 
2311
        DEBUG_FLAGS="$DEBUG_FLAGS -Wall $CFLAGS"
 
2312
fi
 
2313
 
 
2314
 
 
2315
# Check whether --enable-debug-mode or --disable-debug-mode was given.
 
2316
if test "${enable_debug_mode+set}" = set; then
 
2317
  enableval="$enable_debug_mode"
 
2318
   case "$enableval" in
 
2319
    no) ;;
 
2320
    *)  CFLAGS=$DEBUG_FLAGS ;;
 
2321
  esac
 
2322
fi;
 
2323
 
 
2324
 
 
2325
 
 
2326
echo "$as_me:$LINENO: checking for sin in -lm" >&5
 
2327
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
 
2328
if test "${ac_cv_lib_m_sin+set}" = set; then
 
2329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2330
else
 
2331
  ac_check_lib_save_LIBS=$LIBS
 
2332
LIBS="-lm  $LIBS"
 
2333
cat >conftest.$ac_ext <<_ACEOF
 
2334
/* confdefs.h.  */
 
2335
_ACEOF
 
2336
cat confdefs.h >>conftest.$ac_ext
 
2337
cat >>conftest.$ac_ext <<_ACEOF
 
2338
/* end confdefs.h.  */
 
2339
 
 
2340
/* Override any gcc2 internal prototype to avoid an error.  */
 
2341
#ifdef __cplusplus
 
2342
extern "C"
 
2343
#endif
 
2344
/* We use char because int might match the return type of a gcc2
 
2345
   builtin and then its argument prototype would still apply.  */
 
2346
char sin ();
 
2347
int
 
2348
main ()
 
2349
{
 
2350
sin ();
 
2351
  ;
 
2352
  return 0;
 
2353
}
 
2354
_ACEOF
 
2355
rm -f conftest.$ac_objext conftest$ac_exeext
 
2356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2357
  (eval $ac_link) 2>conftest.er1
 
2358
  ac_status=$?
 
2359
  grep -v '^ *+' conftest.er1 >conftest.err
 
2360
  rm -f conftest.er1
 
2361
  cat conftest.err >&5
 
2362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2363
  (exit $ac_status); } &&
 
2364
         { ac_try='test -z "$ac_c_werror_flag"
 
2365
                         || test ! -s conftest.err'
 
2366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2367
  (eval $ac_try) 2>&5
 
2368
  ac_status=$?
 
2369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2370
  (exit $ac_status); }; } &&
 
2371
         { ac_try='test -s conftest$ac_exeext'
 
2372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2373
  (eval $ac_try) 2>&5
 
2374
  ac_status=$?
 
2375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2376
  (exit $ac_status); }; }; then
 
2377
  ac_cv_lib_m_sin=yes
 
2378
else
 
2379
  echo "$as_me: failed program was:" >&5
 
2380
sed 's/^/| /' conftest.$ac_ext >&5
 
2381
 
 
2382
ac_cv_lib_m_sin=no
 
2383
fi
 
2384
rm -f conftest.err conftest.$ac_objext \
 
2385
      conftest$ac_exeext conftest.$ac_ext
 
2386
LIBS=$ac_check_lib_save_LIBS
 
2387
fi
 
2388
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
 
2389
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
 
2390
if test $ac_cv_lib_m_sin = yes; then
 
2391
  cat >>confdefs.h <<_ACEOF
 
2392
#define HAVE_LIBM 1
 
2393
_ACEOF
 
2394
 
 
2395
  LIBS="-lm $LIBS"
 
2396
 
 
2397
fi
 
2398
 
 
2399
 
 
2400
#--------------------------------------------------------------------
 
2401
#       Interactive UNIX requires -linet instead of -lsocket, plus it
 
2402
#       needs net/errno.h to define the socket-related error codes.
 
2403
#--------------------------------------------------------------------
 
2404
 
 
2405
echo "$as_me:$LINENO: checking for main in -linet" >&5
 
2406
echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
 
2407
if test "${ac_cv_lib_inet_main+set}" = set; then
 
2408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2409
else
 
2410
  ac_check_lib_save_LIBS=$LIBS
 
2411
LIBS="-linet  $LIBS"
 
2412
cat >conftest.$ac_ext <<_ACEOF
 
2413
/* confdefs.h.  */
 
2414
_ACEOF
 
2415
cat confdefs.h >>conftest.$ac_ext
 
2416
cat >>conftest.$ac_ext <<_ACEOF
 
2417
/* end confdefs.h.  */
 
2418
 
 
2419
 
 
2420
int
 
2421
main ()
 
2422
{
 
2423
main ();
 
2424
  ;
 
2425
  return 0;
 
2426
}
 
2427
_ACEOF
 
2428
rm -f conftest.$ac_objext conftest$ac_exeext
 
2429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2430
  (eval $ac_link) 2>conftest.er1
 
2431
  ac_status=$?
 
2432
  grep -v '^ *+' conftest.er1 >conftest.err
 
2433
  rm -f conftest.er1
 
2434
  cat conftest.err >&5
 
2435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2436
  (exit $ac_status); } &&
 
2437
         { ac_try='test -z "$ac_c_werror_flag"
 
2438
                         || test ! -s conftest.err'
 
2439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2440
  (eval $ac_try) 2>&5
 
2441
  ac_status=$?
 
2442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2443
  (exit $ac_status); }; } &&
 
2444
         { ac_try='test -s conftest$ac_exeext'
 
2445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2446
  (eval $ac_try) 2>&5
 
2447
  ac_status=$?
 
2448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2449
  (exit $ac_status); }; }; then
 
2450
  ac_cv_lib_inet_main=yes
 
2451
else
 
2452
  echo "$as_me: failed program was:" >&5
 
2453
sed 's/^/| /' conftest.$ac_ext >&5
 
2454
 
 
2455
ac_cv_lib_inet_main=no
 
2456
fi
 
2457
rm -f conftest.err conftest.$ac_objext \
 
2458
      conftest$ac_exeext conftest.$ac_ext
 
2459
LIBS=$ac_check_lib_save_LIBS
 
2460
fi
 
2461
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
 
2462
echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
 
2463
if test $ac_cv_lib_inet_main = yes; then
 
2464
  LIBS="$LIBS -linet"
 
2465
fi
 
2466
 
 
2467
ac_ext=c
 
2468
ac_cpp='$CPP $CPPFLAGS'
 
2469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2472
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2473
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2474
# On Suns, sometimes $CPP names a directory.
 
2475
if test -n "$CPP" && test -d "$CPP"; then
 
2476
  CPP=
 
2477
fi
 
2478
if test -z "$CPP"; then
 
2479
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2481
else
 
2482
      # Double quotes because CPP needs to be expanded
 
2483
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2484
    do
 
2485
      ac_preproc_ok=false
 
2486
for ac_c_preproc_warn_flag in '' yes
 
2487
do
 
2488
  # Use a header file that comes with gcc, so configuring glibc
 
2489
  # with a fresh cross-compiler works.
 
2490
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2491
  # <limits.h> exists even on freestanding compilers.
 
2492
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2493
  # not just through cpp. "Syntax error" is here to catch this case.
 
2494
  cat >conftest.$ac_ext <<_ACEOF
 
2495
/* confdefs.h.  */
 
2496
_ACEOF
 
2497
cat confdefs.h >>conftest.$ac_ext
 
2498
cat >>conftest.$ac_ext <<_ACEOF
 
2499
/* end confdefs.h.  */
 
2500
#ifdef __STDC__
 
2501
# include <limits.h>
 
2502
#else
 
2503
# include <assert.h>
 
2504
#endif
 
2505
                     Syntax error
 
2506
_ACEOF
 
2507
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2508
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2509
  ac_status=$?
 
2510
  grep -v '^ *+' conftest.er1 >conftest.err
 
2511
  rm -f conftest.er1
 
2512
  cat conftest.err >&5
 
2513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2514
  (exit $ac_status); } >/dev/null; then
 
2515
  if test -s conftest.err; then
 
2516
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2517
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2518
  else
 
2519
    ac_cpp_err=
 
2520
  fi
 
2521
else
 
2522
  ac_cpp_err=yes
 
2523
fi
 
2524
if test -z "$ac_cpp_err"; then
 
2525
  :
 
2526
else
 
2527
  echo "$as_me: failed program was:" >&5
 
2528
sed 's/^/| /' conftest.$ac_ext >&5
 
2529
 
 
2530
  # Broken: fails on valid input.
 
2531
continue
 
2532
fi
 
2533
rm -f conftest.err conftest.$ac_ext
 
2534
 
 
2535
  # OK, works on sane cases.  Now check whether non-existent headers
 
2536
  # can be detected and how.
 
2537
  cat >conftest.$ac_ext <<_ACEOF
 
2538
/* confdefs.h.  */
 
2539
_ACEOF
 
2540
cat confdefs.h >>conftest.$ac_ext
 
2541
cat >>conftest.$ac_ext <<_ACEOF
 
2542
/* end confdefs.h.  */
 
2543
#include <ac_nonexistent.h>
 
2544
_ACEOF
 
2545
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2546
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2547
  ac_status=$?
 
2548
  grep -v '^ *+' conftest.er1 >conftest.err
 
2549
  rm -f conftest.er1
 
2550
  cat conftest.err >&5
 
2551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2552
  (exit $ac_status); } >/dev/null; then
 
2553
  if test -s conftest.err; then
 
2554
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2555
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2556
  else
 
2557
    ac_cpp_err=
 
2558
  fi
 
2559
else
 
2560
  ac_cpp_err=yes
 
2561
fi
 
2562
if test -z "$ac_cpp_err"; then
 
2563
  # Broken: success on invalid input.
 
2564
continue
 
2565
else
 
2566
  echo "$as_me: failed program was:" >&5
 
2567
sed 's/^/| /' conftest.$ac_ext >&5
 
2568
 
 
2569
  # Passes both tests.
 
2570
ac_preproc_ok=:
 
2571
break
 
2572
fi
 
2573
rm -f conftest.err conftest.$ac_ext
 
2574
 
 
2575
done
 
2576
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2577
rm -f conftest.err conftest.$ac_ext
 
2578
if $ac_preproc_ok; then
 
2579
  break
 
2580
fi
 
2581
 
 
2582
    done
 
2583
    ac_cv_prog_CPP=$CPP
 
2584
 
 
2585
fi
 
2586
  CPP=$ac_cv_prog_CPP
 
2587
else
 
2588
  ac_cv_prog_CPP=$CPP
 
2589
fi
 
2590
echo "$as_me:$LINENO: result: $CPP" >&5
 
2591
echo "${ECHO_T}$CPP" >&6
 
2592
ac_preproc_ok=false
 
2593
for ac_c_preproc_warn_flag in '' yes
 
2594
do
 
2595
  # Use a header file that comes with gcc, so configuring glibc
 
2596
  # with a fresh cross-compiler works.
 
2597
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2598
  # <limits.h> exists even on freestanding compilers.
 
2599
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2600
  # not just through cpp. "Syntax error" is here to catch this case.
 
2601
  cat >conftest.$ac_ext <<_ACEOF
 
2602
/* confdefs.h.  */
 
2603
_ACEOF
 
2604
cat confdefs.h >>conftest.$ac_ext
 
2605
cat >>conftest.$ac_ext <<_ACEOF
 
2606
/* end confdefs.h.  */
 
2607
#ifdef __STDC__
 
2608
# include <limits.h>
 
2609
#else
 
2610
# include <assert.h>
 
2611
#endif
 
2612
                     Syntax error
 
2613
_ACEOF
 
2614
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2615
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2616
  ac_status=$?
 
2617
  grep -v '^ *+' conftest.er1 >conftest.err
 
2618
  rm -f conftest.er1
 
2619
  cat conftest.err >&5
 
2620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2621
  (exit $ac_status); } >/dev/null; then
 
2622
  if test -s conftest.err; then
 
2623
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2624
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2625
  else
 
2626
    ac_cpp_err=
 
2627
  fi
 
2628
else
 
2629
  ac_cpp_err=yes
 
2630
fi
 
2631
if test -z "$ac_cpp_err"; then
 
2632
  :
 
2633
else
 
2634
  echo "$as_me: failed program was:" >&5
 
2635
sed 's/^/| /' conftest.$ac_ext >&5
 
2636
 
 
2637
  # Broken: fails on valid input.
 
2638
continue
 
2639
fi
 
2640
rm -f conftest.err conftest.$ac_ext
 
2641
 
 
2642
  # OK, works on sane cases.  Now check whether non-existent headers
 
2643
  # can be detected and how.
 
2644
  cat >conftest.$ac_ext <<_ACEOF
 
2645
/* confdefs.h.  */
 
2646
_ACEOF
 
2647
cat confdefs.h >>conftest.$ac_ext
 
2648
cat >>conftest.$ac_ext <<_ACEOF
 
2649
/* end confdefs.h.  */
 
2650
#include <ac_nonexistent.h>
 
2651
_ACEOF
 
2652
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2653
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2654
  ac_status=$?
 
2655
  grep -v '^ *+' conftest.er1 >conftest.err
 
2656
  rm -f conftest.er1
 
2657
  cat conftest.err >&5
 
2658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2659
  (exit $ac_status); } >/dev/null; then
 
2660
  if test -s conftest.err; then
 
2661
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2662
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2663
  else
 
2664
    ac_cpp_err=
 
2665
  fi
 
2666
else
 
2667
  ac_cpp_err=yes
 
2668
fi
 
2669
if test -z "$ac_cpp_err"; then
 
2670
  # Broken: success on invalid input.
 
2671
continue
 
2672
else
 
2673
  echo "$as_me: failed program was:" >&5
 
2674
sed 's/^/| /' conftest.$ac_ext >&5
 
2675
 
 
2676
  # Passes both tests.
 
2677
ac_preproc_ok=:
 
2678
break
 
2679
fi
 
2680
rm -f conftest.err conftest.$ac_ext
 
2681
 
 
2682
done
 
2683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2684
rm -f conftest.err conftest.$ac_ext
 
2685
if $ac_preproc_ok; then
 
2686
  :
 
2687
else
 
2688
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2689
See \`config.log' for more details." >&5
 
2690
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2691
See \`config.log' for more details." >&2;}
 
2692
   { (exit 1); exit 1; }; }
 
2693
fi
 
2694
 
 
2695
ac_ext=c
 
2696
ac_cpp='$CPP $CPPFLAGS'
 
2697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2700
 
 
2701
 
 
2702
echo "$as_me:$LINENO: checking for egrep" >&5
 
2703
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2704
if test "${ac_cv_prog_egrep+set}" = set; then
 
2705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2706
else
 
2707
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2708
    then ac_cv_prog_egrep='grep -E'
 
2709
    else ac_cv_prog_egrep='egrep'
 
2710
    fi
 
2711
fi
 
2712
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2713
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2714
 EGREP=$ac_cv_prog_egrep
 
2715
 
 
2716
 
 
2717
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
2718
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2719
if test "${ac_cv_header_stdc+set}" = set; then
 
2720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2721
else
 
2722
  cat >conftest.$ac_ext <<_ACEOF
 
2723
/* confdefs.h.  */
 
2724
_ACEOF
 
2725
cat confdefs.h >>conftest.$ac_ext
 
2726
cat >>conftest.$ac_ext <<_ACEOF
 
2727
/* end confdefs.h.  */
 
2728
#include <stdlib.h>
 
2729
#include <stdarg.h>
 
2730
#include <string.h>
 
2731
#include <float.h>
 
2732
 
 
2733
int
 
2734
main ()
 
2735
{
 
2736
 
 
2737
  ;
 
2738
  return 0;
 
2739
}
 
2740
_ACEOF
 
2741
rm -f conftest.$ac_objext
 
2742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2743
  (eval $ac_compile) 2>conftest.er1
 
2744
  ac_status=$?
 
2745
  grep -v '^ *+' conftest.er1 >conftest.err
 
2746
  rm -f conftest.er1
 
2747
  cat conftest.err >&5
 
2748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2749
  (exit $ac_status); } &&
 
2750
         { ac_try='test -z "$ac_c_werror_flag"
 
2751
                         || test ! -s conftest.err'
 
2752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2753
  (eval $ac_try) 2>&5
 
2754
  ac_status=$?
 
2755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2756
  (exit $ac_status); }; } &&
 
2757
         { ac_try='test -s conftest.$ac_objext'
 
2758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2759
  (eval $ac_try) 2>&5
 
2760
  ac_status=$?
 
2761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2762
  (exit $ac_status); }; }; then
 
2763
  ac_cv_header_stdc=yes
 
2764
else
 
2765
  echo "$as_me: failed program was:" >&5
 
2766
sed 's/^/| /' conftest.$ac_ext >&5
 
2767
 
 
2768
ac_cv_header_stdc=no
 
2769
fi
 
2770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2771
 
 
2772
if test $ac_cv_header_stdc = yes; then
 
2773
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
2774
  cat >conftest.$ac_ext <<_ACEOF
 
2775
/* confdefs.h.  */
 
2776
_ACEOF
 
2777
cat confdefs.h >>conftest.$ac_ext
 
2778
cat >>conftest.$ac_ext <<_ACEOF
 
2779
/* end confdefs.h.  */
 
2780
#include <string.h>
 
2781
 
 
2782
_ACEOF
 
2783
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2784
  $EGREP "memchr" >/dev/null 2>&1; then
 
2785
  :
 
2786
else
 
2787
  ac_cv_header_stdc=no
 
2788
fi
 
2789
rm -f conftest*
 
2790
 
 
2791
fi
 
2792
 
 
2793
if test $ac_cv_header_stdc = yes; then
 
2794
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
2795
  cat >conftest.$ac_ext <<_ACEOF
 
2796
/* confdefs.h.  */
 
2797
_ACEOF
 
2798
cat confdefs.h >>conftest.$ac_ext
 
2799
cat >>conftest.$ac_ext <<_ACEOF
 
2800
/* end confdefs.h.  */
 
2801
#include <stdlib.h>
 
2802
 
 
2803
_ACEOF
 
2804
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2805
  $EGREP "free" >/dev/null 2>&1; then
 
2806
  :
 
2807
else
 
2808
  ac_cv_header_stdc=no
 
2809
fi
 
2810
rm -f conftest*
 
2811
 
 
2812
fi
 
2813
 
 
2814
if test $ac_cv_header_stdc = yes; then
 
2815
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
2816
  if test "$cross_compiling" = yes; then
 
2817
  :
 
2818
else
 
2819
  cat >conftest.$ac_ext <<_ACEOF
 
2820
/* confdefs.h.  */
 
2821
_ACEOF
 
2822
cat confdefs.h >>conftest.$ac_ext
 
2823
cat >>conftest.$ac_ext <<_ACEOF
 
2824
/* end confdefs.h.  */
 
2825
#include <ctype.h>
 
2826
#if ((' ' & 0x0FF) == 0x020)
 
2827
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2828
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2829
#else
 
2830
# define ISLOWER(c) \
 
2831
                   (('a' <= (c) && (c) <= 'i') \
 
2832
                     || ('j' <= (c) && (c) <= 'r') \
 
2833
                     || ('s' <= (c) && (c) <= 'z'))
 
2834
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2835
#endif
 
2836
 
 
2837
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
2838
int
 
2839
main ()
 
2840
{
 
2841
  int i;
 
2842
  for (i = 0; i < 256; i++)
 
2843
    if (XOR (islower (i), ISLOWER (i))
 
2844
        || toupper (i) != TOUPPER (i))
 
2845
      exit(2);
 
2846
  exit (0);
 
2847
}
 
2848
_ACEOF
 
2849
rm -f conftest$ac_exeext
 
2850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2851
  (eval $ac_link) 2>&5
 
2852
  ac_status=$?
 
2853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2854
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2856
  (eval $ac_try) 2>&5
 
2857
  ac_status=$?
 
2858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2859
  (exit $ac_status); }; }; then
 
2860
  :
 
2861
else
 
2862
  echo "$as_me: program exited with status $ac_status" >&5
 
2863
echo "$as_me: failed program was:" >&5
 
2864
sed 's/^/| /' conftest.$ac_ext >&5
 
2865
 
 
2866
( exit $ac_status )
 
2867
ac_cv_header_stdc=no
 
2868
fi
 
2869
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2870
fi
 
2871
fi
 
2872
fi
 
2873
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
2874
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
2875
if test $ac_cv_header_stdc = yes; then
 
2876
 
 
2877
cat >>confdefs.h <<\_ACEOF
 
2878
#define STDC_HEADERS 1
 
2879
_ACEOF
 
2880
 
 
2881
fi
 
2882
 
 
2883
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
2884
 
 
2885
 
 
2886
 
 
2887
 
 
2888
 
 
2889
 
 
2890
 
 
2891
 
 
2892
 
 
2893
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
2894
                  inttypes.h stdint.h unistd.h
 
2895
do
 
2896
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2897
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2898
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2899
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2901
else
 
2902
  cat >conftest.$ac_ext <<_ACEOF
 
2903
/* confdefs.h.  */
 
2904
_ACEOF
 
2905
cat confdefs.h >>conftest.$ac_ext
 
2906
cat >>conftest.$ac_ext <<_ACEOF
 
2907
/* end confdefs.h.  */
 
2908
$ac_includes_default
 
2909
 
 
2910
#include <$ac_header>
 
2911
_ACEOF
 
2912
rm -f conftest.$ac_objext
 
2913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2914
  (eval $ac_compile) 2>conftest.er1
 
2915
  ac_status=$?
 
2916
  grep -v '^ *+' conftest.er1 >conftest.err
 
2917
  rm -f conftest.er1
 
2918
  cat conftest.err >&5
 
2919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2920
  (exit $ac_status); } &&
 
2921
         { ac_try='test -z "$ac_c_werror_flag"
 
2922
                         || test ! -s conftest.err'
 
2923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2924
  (eval $ac_try) 2>&5
 
2925
  ac_status=$?
 
2926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2927
  (exit $ac_status); }; } &&
 
2928
         { ac_try='test -s conftest.$ac_objext'
 
2929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2930
  (eval $ac_try) 2>&5
 
2931
  ac_status=$?
 
2932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2933
  (exit $ac_status); }; }; then
 
2934
  eval "$as_ac_Header=yes"
 
2935
else
 
2936
  echo "$as_me: failed program was:" >&5
 
2937
sed 's/^/| /' conftest.$ac_ext >&5
 
2938
 
 
2939
eval "$as_ac_Header=no"
 
2940
fi
 
2941
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2942
fi
 
2943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
2946
  cat >>confdefs.h <<_ACEOF
 
2947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
2948
_ACEOF
 
2949
 
 
2950
fi
 
2951
 
 
2952
done
 
2953
 
 
2954
 
 
2955
if test "${ac_cv_header_net_errno_h+set}" = set; then
 
2956
  echo "$as_me:$LINENO: checking for net/errno.h" >&5
 
2957
echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
 
2958
if test "${ac_cv_header_net_errno_h+set}" = set; then
 
2959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2960
fi
 
2961
echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
 
2962
echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
 
2963
else
 
2964
  # Is the header compilable?
 
2965
echo "$as_me:$LINENO: checking net/errno.h usability" >&5
 
2966
echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6
 
2967
cat >conftest.$ac_ext <<_ACEOF
 
2968
/* confdefs.h.  */
 
2969
_ACEOF
 
2970
cat confdefs.h >>conftest.$ac_ext
 
2971
cat >>conftest.$ac_ext <<_ACEOF
 
2972
/* end confdefs.h.  */
 
2973
$ac_includes_default
 
2974
#include <net/errno.h>
 
2975
_ACEOF
 
2976
rm -f conftest.$ac_objext
 
2977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2978
  (eval $ac_compile) 2>conftest.er1
 
2979
  ac_status=$?
 
2980
  grep -v '^ *+' conftest.er1 >conftest.err
 
2981
  rm -f conftest.er1
 
2982
  cat conftest.err >&5
 
2983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2984
  (exit $ac_status); } &&
 
2985
         { ac_try='test -z "$ac_c_werror_flag"
 
2986
                         || test ! -s conftest.err'
 
2987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2988
  (eval $ac_try) 2>&5
 
2989
  ac_status=$?
 
2990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2991
  (exit $ac_status); }; } &&
 
2992
         { ac_try='test -s conftest.$ac_objext'
 
2993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2994
  (eval $ac_try) 2>&5
 
2995
  ac_status=$?
 
2996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2997
  (exit $ac_status); }; }; then
 
2998
  ac_header_compiler=yes
 
2999
else
 
3000
  echo "$as_me: failed program was:" >&5
 
3001
sed 's/^/| /' conftest.$ac_ext >&5
 
3002
 
 
3003
ac_header_compiler=no
 
3004
fi
 
3005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3006
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3007
echo "${ECHO_T}$ac_header_compiler" >&6
 
3008
 
 
3009
# Is the header present?
 
3010
echo "$as_me:$LINENO: checking net/errno.h presence" >&5
 
3011
echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6
 
3012
cat >conftest.$ac_ext <<_ACEOF
 
3013
/* confdefs.h.  */
 
3014
_ACEOF
 
3015
cat confdefs.h >>conftest.$ac_ext
 
3016
cat >>conftest.$ac_ext <<_ACEOF
 
3017
/* end confdefs.h.  */
 
3018
#include <net/errno.h>
 
3019
_ACEOF
 
3020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3021
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3022
  ac_status=$?
 
3023
  grep -v '^ *+' conftest.er1 >conftest.err
 
3024
  rm -f conftest.er1
 
3025
  cat conftest.err >&5
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); } >/dev/null; then
 
3028
  if test -s conftest.err; then
 
3029
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3030
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3031
  else
 
3032
    ac_cpp_err=
 
3033
  fi
 
3034
else
 
3035
  ac_cpp_err=yes
 
3036
fi
 
3037
if test -z "$ac_cpp_err"; then
 
3038
  ac_header_preproc=yes
 
3039
else
 
3040
  echo "$as_me: failed program was:" >&5
 
3041
sed 's/^/| /' conftest.$ac_ext >&5
 
3042
 
 
3043
  ac_header_preproc=no
 
3044
fi
 
3045
rm -f conftest.err conftest.$ac_ext
 
3046
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3047
echo "${ECHO_T}$ac_header_preproc" >&6
 
3048
 
 
3049
# So?  What about this header?
 
3050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3051
  yes:no: )
 
3052
    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3053
echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3054
    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
 
3055
echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
 
3056
    ac_header_preproc=yes
 
3057
    ;;
 
3058
  no:yes:* )
 
3059
    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
 
3060
echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
 
3061
    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
 
3062
echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
 
3063
    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
 
3064
echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
 
3065
    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3066
echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3067
    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
 
3068
echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
 
3069
    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
 
3070
echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
 
3071
    (
 
3072
      cat <<\_ASBOX
 
3073
## ------------------------------------------ ##
 
3074
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3075
## ------------------------------------------ ##
 
3076
_ASBOX
 
3077
    ) |
 
3078
      sed "s/^/$as_me: WARNING:     /" >&2
 
3079
    ;;
 
3080
esac
 
3081
echo "$as_me:$LINENO: checking for net/errno.h" >&5
 
3082
echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
 
3083
if test "${ac_cv_header_net_errno_h+set}" = set; then
 
3084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3085
else
 
3086
  ac_cv_header_net_errno_h=$ac_header_preproc
 
3087
fi
 
3088
echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
 
3089
echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
 
3090
 
 
3091
fi
 
3092
if test $ac_cv_header_net_errno_h = yes; then
 
3093
  cat >>confdefs.h <<\_ACEOF
 
3094
#define HAVE_NET_ERRNO_H 1
 
3095
_ACEOF
 
3096
 
 
3097
fi
 
3098
 
 
3099
 
 
3100
 
 
3101
#--------------------------------------------------------------------
 
3102
# Linux/tcp.h may be needed for sockopt test in kernel
 
3103
#--------------------------------------------------------------------
 
3104
 
 
3105
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
 
3106
  echo "$as_me:$LINENO: checking for linux/tcp.h" >&5
 
3107
echo $ECHO_N "checking for linux/tcp.h... $ECHO_C" >&6
 
3108
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
 
3109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3110
fi
 
3111
echo "$as_me:$LINENO: result: $ac_cv_header_linux_tcp_h" >&5
 
3112
echo "${ECHO_T}$ac_cv_header_linux_tcp_h" >&6
 
3113
else
 
3114
  # Is the header compilable?
 
3115
echo "$as_me:$LINENO: checking linux/tcp.h usability" >&5
 
3116
echo $ECHO_N "checking linux/tcp.h usability... $ECHO_C" >&6
 
3117
cat >conftest.$ac_ext <<_ACEOF
 
3118
/* confdefs.h.  */
 
3119
_ACEOF
 
3120
cat confdefs.h >>conftest.$ac_ext
 
3121
cat >>conftest.$ac_ext <<_ACEOF
 
3122
/* end confdefs.h.  */
 
3123
$ac_includes_default
 
3124
#include <linux/tcp.h>
 
3125
_ACEOF
 
3126
rm -f conftest.$ac_objext
 
3127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3128
  (eval $ac_compile) 2>conftest.er1
 
3129
  ac_status=$?
 
3130
  grep -v '^ *+' conftest.er1 >conftest.err
 
3131
  rm -f conftest.er1
 
3132
  cat conftest.err >&5
 
3133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3134
  (exit $ac_status); } &&
 
3135
         { ac_try='test -z "$ac_c_werror_flag"
 
3136
                         || test ! -s conftest.err'
 
3137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3138
  (eval $ac_try) 2>&5
 
3139
  ac_status=$?
 
3140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3141
  (exit $ac_status); }; } &&
 
3142
         { ac_try='test -s conftest.$ac_objext'
 
3143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3144
  (eval $ac_try) 2>&5
 
3145
  ac_status=$?
 
3146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3147
  (exit $ac_status); }; }; then
 
3148
  ac_header_compiler=yes
 
3149
else
 
3150
  echo "$as_me: failed program was:" >&5
 
3151
sed 's/^/| /' conftest.$ac_ext >&5
 
3152
 
 
3153
ac_header_compiler=no
 
3154
fi
 
3155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3156
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3157
echo "${ECHO_T}$ac_header_compiler" >&6
 
3158
 
 
3159
# Is the header present?
 
3160
echo "$as_me:$LINENO: checking linux/tcp.h presence" >&5
 
3161
echo $ECHO_N "checking linux/tcp.h presence... $ECHO_C" >&6
 
3162
cat >conftest.$ac_ext <<_ACEOF
 
3163
/* confdefs.h.  */
 
3164
_ACEOF
 
3165
cat confdefs.h >>conftest.$ac_ext
 
3166
cat >>conftest.$ac_ext <<_ACEOF
 
3167
/* end confdefs.h.  */
 
3168
#include <linux/tcp.h>
 
3169
_ACEOF
 
3170
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3171
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3172
  ac_status=$?
 
3173
  grep -v '^ *+' conftest.er1 >conftest.err
 
3174
  rm -f conftest.er1
 
3175
  cat conftest.err >&5
 
3176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3177
  (exit $ac_status); } >/dev/null; then
 
3178
  if test -s conftest.err; then
 
3179
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3180
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3181
  else
 
3182
    ac_cpp_err=
 
3183
  fi
 
3184
else
 
3185
  ac_cpp_err=yes
 
3186
fi
 
3187
if test -z "$ac_cpp_err"; then
 
3188
  ac_header_preproc=yes
 
3189
else
 
3190
  echo "$as_me: failed program was:" >&5
 
3191
sed 's/^/| /' conftest.$ac_ext >&5
 
3192
 
 
3193
  ac_header_preproc=no
 
3194
fi
 
3195
rm -f conftest.err conftest.$ac_ext
 
3196
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3197
echo "${ECHO_T}$ac_header_preproc" >&6
 
3198
 
 
3199
# So?  What about this header?
 
3200
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3201
  yes:no: )
 
3202
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3203
echo "$as_me: WARNING: linux/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3204
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: proceeding with the compiler's result" >&5
 
3205
echo "$as_me: WARNING: linux/tcp.h: proceeding with the compiler's result" >&2;}
 
3206
    ac_header_preproc=yes
 
3207
    ;;
 
3208
  no:yes:* )
 
3209
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: present but cannot be compiled" >&5
 
3210
echo "$as_me: WARNING: linux/tcp.h: present but cannot be compiled" >&2;}
 
3211
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h:     check for missing prerequisite headers?" >&5
 
3212
echo "$as_me: WARNING: linux/tcp.h:     check for missing prerequisite headers?" >&2;}
 
3213
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: see the Autoconf documentation" >&5
 
3214
echo "$as_me: WARNING: linux/tcp.h: see the Autoconf documentation" >&2;}
 
3215
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3216
echo "$as_me: WARNING: linux/tcp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3217
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: proceeding with the preprocessor's result" >&5
 
3218
echo "$as_me: WARNING: linux/tcp.h: proceeding with the preprocessor's result" >&2;}
 
3219
    { echo "$as_me:$LINENO: WARNING: linux/tcp.h: in the future, the compiler will take precedence" >&5
 
3220
echo "$as_me: WARNING: linux/tcp.h: in the future, the compiler will take precedence" >&2;}
 
3221
    (
 
3222
      cat <<\_ASBOX
 
3223
## ------------------------------------------ ##
 
3224
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3225
## ------------------------------------------ ##
 
3226
_ASBOX
 
3227
    ) |
 
3228
      sed "s/^/$as_me: WARNING:     /" >&2
 
3229
    ;;
 
3230
esac
 
3231
echo "$as_me:$LINENO: checking for linux/tcp.h" >&5
 
3232
echo $ECHO_N "checking for linux/tcp.h... $ECHO_C" >&6
 
3233
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
 
3234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3235
else
 
3236
  ac_cv_header_linux_tcp_h=$ac_header_preproc
 
3237
fi
 
3238
echo "$as_me:$LINENO: result: $ac_cv_header_linux_tcp_h" >&5
 
3239
echo "${ECHO_T}$ac_cv_header_linux_tcp_h" >&6
 
3240
 
 
3241
fi
 
3242
if test $ac_cv_header_linux_tcp_h = yes; then
 
3243
  cat >>confdefs.h <<\_ACEOF
 
3244
#define HAVE_LINUX_TCP_H 1
 
3245
_ACEOF
 
3246
 
 
3247
fi
 
3248
 
 
3249
 
 
3250
echo "$as_me:$LINENO: checking for sane linux/tcp.h" >&5
 
3251
echo $ECHO_N "checking for sane linux/tcp.h... $ECHO_C" >&6
 
3252
cat >conftest.$ac_ext <<_ACEOF
 
3253
/* confdefs.h.  */
 
3254
_ACEOF
 
3255
cat confdefs.h >>conftest.$ac_ext
 
3256
cat >>conftest.$ac_ext <<_ACEOF
 
3257
/* end confdefs.h.  */
 
3258
#include <stdio.h>
 
3259
                #include <stdlib.h>
 
3260
                #include <string.h>
 
3261
                #include <unistd.h>
 
3262
                #include <stdarg.h>
 
3263
                #include <sys/types.h>
 
3264
                #include <sys/socket.h>
 
3265
                #include <sys/wait.h>
 
3266
                #include <linux/tcp.h>
 
3267
                #include <netinet/in.h>
 
3268
                #include <netdb.h>
 
3269
int
 
3270
main ()
 
3271
{
 
3272
return 0;
 
3273
  ;
 
3274
  return 0;
 
3275
}
 
3276
_ACEOF
 
3277
rm -f conftest.$ac_objext
 
3278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3279
  (eval $ac_compile) 2>conftest.er1
 
3280
  ac_status=$?
 
3281
  grep -v '^ *+' conftest.er1 >conftest.err
 
3282
  rm -f conftest.er1
 
3283
  cat conftest.err >&5
 
3284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3285
  (exit $ac_status); } &&
 
3286
         { ac_try='test -z "$ac_c_werror_flag"
 
3287
                         || test ! -s conftest.err'
 
3288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3289
  (eval $ac_try) 2>&5
 
3290
  ac_status=$?
 
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3292
  (exit $ac_status); }; } &&
 
3293
         { ac_try='test -s conftest.$ac_objext'
 
3294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3295
  (eval $ac_try) 2>&5
 
3296
  ac_status=$?
 
3297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3298
  (exit $ac_status); }; }; then
 
3299
  have_sane_linux_tcp_h=yes
 
3300
else
 
3301
  echo "$as_me: failed program was:" >&5
 
3302
sed 's/^/| /' conftest.$ac_ext >&5
 
3303
 
 
3304
have_sane_linux_tcp_h=no
 
3305
fi
 
3306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3307
 
 
3308
if test $have_sane_linux_tcp_h = yes; then
 
3309
 
 
3310
cat >>confdefs.h <<\_ACEOF
 
3311
#define HAVE_SANE_LINUX_TCP_H 1
 
3312
_ACEOF
 
3313
 
 
3314
        echo "$as_me:$LINENO: result: yes" >&5
 
3315
echo "${ECHO_T}yes" >&6
 
3316
else
 
3317
        echo "$as_me:$LINENO: result: no" >&5
 
3318
echo "${ECHO_T}no" >&6
 
3319
fi
 
3320
 
 
3321
 
 
3322
 
 
3323
#--------------------------------------------------------------------
 
3324
#       Linux requires sys/socketio.h instead of sys/sockio.h
 
3325
#--------------------------------------------------------------------
 
3326
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
 
3327
  echo "$as_me:$LINENO: checking for sys/socketio.h" >&5
 
3328
echo $ECHO_N "checking for sys/socketio.h... $ECHO_C" >&6
 
3329
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
 
3330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3331
fi
 
3332
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socketio_h" >&5
 
3333
echo "${ECHO_T}$ac_cv_header_sys_socketio_h" >&6
 
3334
else
 
3335
  # Is the header compilable?
 
3336
echo "$as_me:$LINENO: checking sys/socketio.h usability" >&5
 
3337
echo $ECHO_N "checking sys/socketio.h usability... $ECHO_C" >&6
 
3338
cat >conftest.$ac_ext <<_ACEOF
 
3339
/* confdefs.h.  */
 
3340
_ACEOF
 
3341
cat confdefs.h >>conftest.$ac_ext
 
3342
cat >>conftest.$ac_ext <<_ACEOF
 
3343
/* end confdefs.h.  */
 
3344
$ac_includes_default
 
3345
#include <sys/socketio.h>
 
3346
_ACEOF
 
3347
rm -f conftest.$ac_objext
 
3348
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3349
  (eval $ac_compile) 2>conftest.er1
 
3350
  ac_status=$?
 
3351
  grep -v '^ *+' conftest.er1 >conftest.err
 
3352
  rm -f conftest.er1
 
3353
  cat conftest.err >&5
 
3354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3355
  (exit $ac_status); } &&
 
3356
         { ac_try='test -z "$ac_c_werror_flag"
 
3357
                         || test ! -s conftest.err'
 
3358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3359
  (eval $ac_try) 2>&5
 
3360
  ac_status=$?
 
3361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3362
  (exit $ac_status); }; } &&
 
3363
         { ac_try='test -s conftest.$ac_objext'
 
3364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3365
  (eval $ac_try) 2>&5
 
3366
  ac_status=$?
 
3367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3368
  (exit $ac_status); }; }; then
 
3369
  ac_header_compiler=yes
 
3370
else
 
3371
  echo "$as_me: failed program was:" >&5
 
3372
sed 's/^/| /' conftest.$ac_ext >&5
 
3373
 
 
3374
ac_header_compiler=no
 
3375
fi
 
3376
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3377
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3378
echo "${ECHO_T}$ac_header_compiler" >&6
 
3379
 
 
3380
# Is the header present?
 
3381
echo "$as_me:$LINENO: checking sys/socketio.h presence" >&5
 
3382
echo $ECHO_N "checking sys/socketio.h presence... $ECHO_C" >&6
 
3383
cat >conftest.$ac_ext <<_ACEOF
 
3384
/* confdefs.h.  */
 
3385
_ACEOF
 
3386
cat confdefs.h >>conftest.$ac_ext
 
3387
cat >>conftest.$ac_ext <<_ACEOF
 
3388
/* end confdefs.h.  */
 
3389
#include <sys/socketio.h>
 
3390
_ACEOF
 
3391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3392
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3393
  ac_status=$?
 
3394
  grep -v '^ *+' conftest.er1 >conftest.err
 
3395
  rm -f conftest.er1
 
3396
  cat conftest.err >&5
 
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3398
  (exit $ac_status); } >/dev/null; then
 
3399
  if test -s conftest.err; then
 
3400
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3401
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3402
  else
 
3403
    ac_cpp_err=
 
3404
  fi
 
3405
else
 
3406
  ac_cpp_err=yes
 
3407
fi
 
3408
if test -z "$ac_cpp_err"; then
 
3409
  ac_header_preproc=yes
 
3410
else
 
3411
  echo "$as_me: failed program was:" >&5
 
3412
sed 's/^/| /' conftest.$ac_ext >&5
 
3413
 
 
3414
  ac_header_preproc=no
 
3415
fi
 
3416
rm -f conftest.err conftest.$ac_ext
 
3417
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3418
echo "${ECHO_T}$ac_header_preproc" >&6
 
3419
 
 
3420
# So?  What about this header?
 
3421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3422
  yes:no: )
 
3423
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3424
echo "$as_me: WARNING: sys/socketio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3425
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: proceeding with the compiler's result" >&5
 
3426
echo "$as_me: WARNING: sys/socketio.h: proceeding with the compiler's result" >&2;}
 
3427
    ac_header_preproc=yes
 
3428
    ;;
 
3429
  no:yes:* )
 
3430
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: present but cannot be compiled" >&5
 
3431
echo "$as_me: WARNING: sys/socketio.h: present but cannot be compiled" >&2;}
 
3432
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h:     check for missing prerequisite headers?" >&5
 
3433
echo "$as_me: WARNING: sys/socketio.h:     check for missing prerequisite headers?" >&2;}
 
3434
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: see the Autoconf documentation" >&5
 
3435
echo "$as_me: WARNING: sys/socketio.h: see the Autoconf documentation" >&2;}
 
3436
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3437
echo "$as_me: WARNING: sys/socketio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3438
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: proceeding with the preprocessor's result" >&5
 
3439
echo "$as_me: WARNING: sys/socketio.h: proceeding with the preprocessor's result" >&2;}
 
3440
    { echo "$as_me:$LINENO: WARNING: sys/socketio.h: in the future, the compiler will take precedence" >&5
 
3441
echo "$as_me: WARNING: sys/socketio.h: in the future, the compiler will take precedence" >&2;}
 
3442
    (
 
3443
      cat <<\_ASBOX
 
3444
## ------------------------------------------ ##
 
3445
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3446
## ------------------------------------------ ##
 
3447
_ASBOX
 
3448
    ) |
 
3449
      sed "s/^/$as_me: WARNING:     /" >&2
 
3450
    ;;
 
3451
esac
 
3452
echo "$as_me:$LINENO: checking for sys/socketio.h" >&5
 
3453
echo $ECHO_N "checking for sys/socketio.h... $ECHO_C" >&6
 
3454
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
 
3455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3456
else
 
3457
  ac_cv_header_sys_socketio_h=$ac_header_preproc
 
3458
fi
 
3459
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socketio_h" >&5
 
3460
echo "${ECHO_T}$ac_cv_header_sys_socketio_h" >&6
 
3461
 
 
3462
fi
 
3463
if test $ac_cv_header_sys_socketio_h = yes; then
 
3464
  cat >>confdefs.h <<\_ACEOF
 
3465
#define HAVE_SOCKETIO_H 1
 
3466
_ACEOF
 
3467
 
 
3468
fi
 
3469
 
 
3470
 
 
3471
 
 
3472
 
 
3473
#--------------------------------------------------------------------
 
3474
#       Misc
 
3475
#--------------------------------------------------------------------
 
3476
if test "${ac_cv_header_poll_h+set}" = set; then
 
3477
  echo "$as_me:$LINENO: checking for poll.h" >&5
 
3478
echo $ECHO_N "checking for poll.h... $ECHO_C" >&6
 
3479
if test "${ac_cv_header_poll_h+set}" = set; then
 
3480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3481
fi
 
3482
echo "$as_me:$LINENO: result: $ac_cv_header_poll_h" >&5
 
3483
echo "${ECHO_T}$ac_cv_header_poll_h" >&6
 
3484
else
 
3485
  # Is the header compilable?
 
3486
echo "$as_me:$LINENO: checking poll.h usability" >&5
 
3487
echo $ECHO_N "checking poll.h usability... $ECHO_C" >&6
 
3488
cat >conftest.$ac_ext <<_ACEOF
 
3489
/* confdefs.h.  */
 
3490
_ACEOF
 
3491
cat confdefs.h >>conftest.$ac_ext
 
3492
cat >>conftest.$ac_ext <<_ACEOF
 
3493
/* end confdefs.h.  */
 
3494
$ac_includes_default
 
3495
#include <poll.h>
 
3496
_ACEOF
 
3497
rm -f conftest.$ac_objext
 
3498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3499
  (eval $ac_compile) 2>conftest.er1
 
3500
  ac_status=$?
 
3501
  grep -v '^ *+' conftest.er1 >conftest.err
 
3502
  rm -f conftest.er1
 
3503
  cat conftest.err >&5
 
3504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3505
  (exit $ac_status); } &&
 
3506
         { ac_try='test -z "$ac_c_werror_flag"
 
3507
                         || test ! -s conftest.err'
 
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); }; } &&
 
3513
         { ac_try='test -s conftest.$ac_objext'
 
3514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3515
  (eval $ac_try) 2>&5
 
3516
  ac_status=$?
 
3517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3518
  (exit $ac_status); }; }; then
 
3519
  ac_header_compiler=yes
 
3520
else
 
3521
  echo "$as_me: failed program was:" >&5
 
3522
sed 's/^/| /' conftest.$ac_ext >&5
 
3523
 
 
3524
ac_header_compiler=no
 
3525
fi
 
3526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3527
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3528
echo "${ECHO_T}$ac_header_compiler" >&6
 
3529
 
 
3530
# Is the header present?
 
3531
echo "$as_me:$LINENO: checking poll.h presence" >&5
 
3532
echo $ECHO_N "checking poll.h presence... $ECHO_C" >&6
 
3533
cat >conftest.$ac_ext <<_ACEOF
 
3534
/* confdefs.h.  */
 
3535
_ACEOF
 
3536
cat confdefs.h >>conftest.$ac_ext
 
3537
cat >>conftest.$ac_ext <<_ACEOF
 
3538
/* end confdefs.h.  */
 
3539
#include <poll.h>
 
3540
_ACEOF
 
3541
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3542
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3543
  ac_status=$?
 
3544
  grep -v '^ *+' conftest.er1 >conftest.err
 
3545
  rm -f conftest.er1
 
3546
  cat conftest.err >&5
 
3547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3548
  (exit $ac_status); } >/dev/null; then
 
3549
  if test -s conftest.err; then
 
3550
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3551
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3552
  else
 
3553
    ac_cpp_err=
 
3554
  fi
 
3555
else
 
3556
  ac_cpp_err=yes
 
3557
fi
 
3558
if test -z "$ac_cpp_err"; then
 
3559
  ac_header_preproc=yes
 
3560
else
 
3561
  echo "$as_me: failed program was:" >&5
 
3562
sed 's/^/| /' conftest.$ac_ext >&5
 
3563
 
 
3564
  ac_header_preproc=no
 
3565
fi
 
3566
rm -f conftest.err conftest.$ac_ext
 
3567
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3568
echo "${ECHO_T}$ac_header_preproc" >&6
 
3569
 
 
3570
# So?  What about this header?
 
3571
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3572
  yes:no: )
 
3573
    { echo "$as_me:$LINENO: WARNING: poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3574
echo "$as_me: WARNING: poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3575
    { echo "$as_me:$LINENO: WARNING: poll.h: proceeding with the compiler's result" >&5
 
3576
echo "$as_me: WARNING: poll.h: proceeding with the compiler's result" >&2;}
 
3577
    ac_header_preproc=yes
 
3578
    ;;
 
3579
  no:yes:* )
 
3580
    { echo "$as_me:$LINENO: WARNING: poll.h: present but cannot be compiled" >&5
 
3581
echo "$as_me: WARNING: poll.h: present but cannot be compiled" >&2;}
 
3582
    { echo "$as_me:$LINENO: WARNING: poll.h:     check for missing prerequisite headers?" >&5
 
3583
echo "$as_me: WARNING: poll.h:     check for missing prerequisite headers?" >&2;}
 
3584
    { echo "$as_me:$LINENO: WARNING: poll.h: see the Autoconf documentation" >&5
 
3585
echo "$as_me: WARNING: poll.h: see the Autoconf documentation" >&2;}
 
3586
    { echo "$as_me:$LINENO: WARNING: poll.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3587
echo "$as_me: WARNING: poll.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3588
    { echo "$as_me:$LINENO: WARNING: poll.h: proceeding with the preprocessor's result" >&5
 
3589
echo "$as_me: WARNING: poll.h: proceeding with the preprocessor's result" >&2;}
 
3590
    { echo "$as_me:$LINENO: WARNING: poll.h: in the future, the compiler will take precedence" >&5
 
3591
echo "$as_me: WARNING: poll.h: in the future, the compiler will take precedence" >&2;}
 
3592
    (
 
3593
      cat <<\_ASBOX
 
3594
## ------------------------------------------ ##
 
3595
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3596
## ------------------------------------------ ##
 
3597
_ASBOX
 
3598
    ) |
 
3599
      sed "s/^/$as_me: WARNING:     /" >&2
 
3600
    ;;
 
3601
esac
 
3602
echo "$as_me:$LINENO: checking for poll.h" >&5
 
3603
echo $ECHO_N "checking for poll.h... $ECHO_C" >&6
 
3604
if test "${ac_cv_header_poll_h+set}" = set; then
 
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3606
else
 
3607
  ac_cv_header_poll_h=$ac_header_preproc
 
3608
fi
 
3609
echo "$as_me:$LINENO: result: $ac_cv_header_poll_h" >&5
 
3610
echo "${ECHO_T}$ac_cv_header_poll_h" >&6
 
3611
 
 
3612
fi
 
3613
if test $ac_cv_header_poll_h = yes; then
 
3614
  cat >>confdefs.h <<\_ACEOF
 
3615
#define HAVE_POLL_H 1
 
3616
_ACEOF
 
3617
 
 
3618
fi
 
3619
 
 
3620
 
 
3621
 
 
3622
#--------------------------------------------------------------------
 
3623
#       The statements below define a collection of symbols related to
 
3624
#       dynamic loading and shared libraries:
 
3625
#
 
3626
#       SHLIB_CFLAGS -  Flags to pass to cc when compiling the components
 
3627
#                       of a shared library (may request position-independent
 
3628
#                       code, among other things).
 
3629
#       SHLIB_LD -      Base command to use for combining object files
 
3630
#                       into a shared library.
 
3631
#       SHLIB_SUFFIX -  Suffix to use for the names of dynamically loadable
 
3632
#                       extensions.  An empty string means we don't know how
 
3633
#                       to use shared libraries on this platform.
 
3634
#--------------------------------------------------------------------
 
3635
 
 
3636
# Step 1: set the variable "system" to hold the name and version number
 
3637
# for the system.
 
3638
 
 
3639
echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
 
3640
echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
 
3641
system=`uname -s`-`uname -r`
 
3642
echo "$as_me:$LINENO: result: $system" >&5
 
3643
echo "${ECHO_T}$system" >&6
 
3644
 
 
3645
# Step 2: check for existence of -ldl library.  This is needed because
 
3646
# Linux can use either -ldl or -ldld for dynamic loading.
 
3647
 
 
3648
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
3649
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
3650
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
3651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3652
else
 
3653
  ac_check_lib_save_LIBS=$LIBS
 
3654
LIBS="-ldl  $LIBS"
 
3655
cat >conftest.$ac_ext <<_ACEOF
 
3656
/* confdefs.h.  */
 
3657
_ACEOF
 
3658
cat confdefs.h >>conftest.$ac_ext
 
3659
cat >>conftest.$ac_ext <<_ACEOF
 
3660
/* end confdefs.h.  */
 
3661
 
 
3662
/* Override any gcc2 internal prototype to avoid an error.  */
 
3663
#ifdef __cplusplus
 
3664
extern "C"
 
3665
#endif
 
3666
/* We use char because int might match the return type of a gcc2
 
3667
   builtin and then its argument prototype would still apply.  */
 
3668
char dlopen ();
 
3669
int
 
3670
main ()
 
3671
{
 
3672
dlopen ();
 
3673
  ;
 
3674
  return 0;
 
3675
}
 
3676
_ACEOF
 
3677
rm -f conftest.$ac_objext conftest$ac_exeext
 
3678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3679
  (eval $ac_link) 2>conftest.er1
 
3680
  ac_status=$?
 
3681
  grep -v '^ *+' conftest.er1 >conftest.err
 
3682
  rm -f conftest.er1
 
3683
  cat conftest.err >&5
 
3684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3685
  (exit $ac_status); } &&
 
3686
         { ac_try='test -z "$ac_c_werror_flag"
 
3687
                         || test ! -s conftest.err'
 
3688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3689
  (eval $ac_try) 2>&5
 
3690
  ac_status=$?
 
3691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3692
  (exit $ac_status); }; } &&
 
3693
         { ac_try='test -s conftest$ac_exeext'
 
3694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3695
  (eval $ac_try) 2>&5
 
3696
  ac_status=$?
 
3697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3698
  (exit $ac_status); }; }; then
 
3699
  ac_cv_lib_dl_dlopen=yes
 
3700
else
 
3701
  echo "$as_me: failed program was:" >&5
 
3702
sed 's/^/| /' conftest.$ac_ext >&5
 
3703
 
 
3704
ac_cv_lib_dl_dlopen=no
 
3705
fi
 
3706
rm -f conftest.err conftest.$ac_objext \
 
3707
      conftest$ac_exeext conftest.$ac_ext
 
3708
LIBS=$ac_check_lib_save_LIBS
 
3709
fi
 
3710
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
3711
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
3712
if test $ac_cv_lib_dl_dlopen = yes; then
 
3713
  have_dl=yes
 
3714
else
 
3715
  have_dl=no
 
3716
fi
 
3717
 
 
3718
 
 
3719
# Step 3: set configuration options based on system name and version.
 
3720
 
 
3721
SHLIB_LDLIBS=
 
3722
 
 
3723
fullSrcDir=`cd $srcdir; pwd`
 
3724
case $system in
 
3725
    Linux*)
 
3726
        SHLIB_CFLAGS="-fPIC"
 
3727
        SHLIB_SUFFIX=".so"
 
3728
        if test "$have_dl" = yes; then
 
3729
            SHLIB_LD="${CC}"
 
3730
            SHLIB_LDFLAGS="$LDFLAGS -shared"
 
3731
            LD_FLAGS="-rdynamic"
 
3732
        else
 
3733
            if test "${ac_cv_header_dld_h+set}" = set; then
 
3734
  echo "$as_me:$LINENO: checking for dld.h" >&5
 
3735
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
 
3736
if test "${ac_cv_header_dld_h+set}" = set; then
 
3737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3738
fi
 
3739
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
 
3740
echo "${ECHO_T}$ac_cv_header_dld_h" >&6
 
3741
else
 
3742
  # Is the header compilable?
 
3743
echo "$as_me:$LINENO: checking dld.h usability" >&5
 
3744
echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6
 
3745
cat >conftest.$ac_ext <<_ACEOF
 
3746
/* confdefs.h.  */
 
3747
_ACEOF
 
3748
cat confdefs.h >>conftest.$ac_ext
 
3749
cat >>conftest.$ac_ext <<_ACEOF
 
3750
/* end confdefs.h.  */
 
3751
$ac_includes_default
 
3752
#include <dld.h>
 
3753
_ACEOF
 
3754
rm -f conftest.$ac_objext
 
3755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3756
  (eval $ac_compile) 2>conftest.er1
 
3757
  ac_status=$?
 
3758
  grep -v '^ *+' conftest.er1 >conftest.err
 
3759
  rm -f conftest.er1
 
3760
  cat conftest.err >&5
 
3761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3762
  (exit $ac_status); } &&
 
3763
         { ac_try='test -z "$ac_c_werror_flag"
 
3764
                         || test ! -s conftest.err'
 
3765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3766
  (eval $ac_try) 2>&5
 
3767
  ac_status=$?
 
3768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3769
  (exit $ac_status); }; } &&
 
3770
         { ac_try='test -s conftest.$ac_objext'
 
3771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3772
  (eval $ac_try) 2>&5
 
3773
  ac_status=$?
 
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3775
  (exit $ac_status); }; }; then
 
3776
  ac_header_compiler=yes
 
3777
else
 
3778
  echo "$as_me: failed program was:" >&5
 
3779
sed 's/^/| /' conftest.$ac_ext >&5
 
3780
 
 
3781
ac_header_compiler=no
 
3782
fi
 
3783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3784
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3785
echo "${ECHO_T}$ac_header_compiler" >&6
 
3786
 
 
3787
# Is the header present?
 
3788
echo "$as_me:$LINENO: checking dld.h presence" >&5
 
3789
echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6
 
3790
cat >conftest.$ac_ext <<_ACEOF
 
3791
/* confdefs.h.  */
 
3792
_ACEOF
 
3793
cat confdefs.h >>conftest.$ac_ext
 
3794
cat >>conftest.$ac_ext <<_ACEOF
 
3795
/* end confdefs.h.  */
 
3796
#include <dld.h>
 
3797
_ACEOF
 
3798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3799
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3800
  ac_status=$?
 
3801
  grep -v '^ *+' conftest.er1 >conftest.err
 
3802
  rm -f conftest.er1
 
3803
  cat conftest.err >&5
 
3804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3805
  (exit $ac_status); } >/dev/null; then
 
3806
  if test -s conftest.err; then
 
3807
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3808
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3809
  else
 
3810
    ac_cpp_err=
 
3811
  fi
 
3812
else
 
3813
  ac_cpp_err=yes
 
3814
fi
 
3815
if test -z "$ac_cpp_err"; then
 
3816
  ac_header_preproc=yes
 
3817
else
 
3818
  echo "$as_me: failed program was:" >&5
 
3819
sed 's/^/| /' conftest.$ac_ext >&5
 
3820
 
 
3821
  ac_header_preproc=no
 
3822
fi
 
3823
rm -f conftest.err conftest.$ac_ext
 
3824
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3825
echo "${ECHO_T}$ac_header_preproc" >&6
 
3826
 
 
3827
# So?  What about this header?
 
3828
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3829
  yes:no: )
 
3830
    { echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3831
echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3832
    { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
 
3833
echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
 
3834
    ac_header_preproc=yes
 
3835
    ;;
 
3836
  no:yes:* )
 
3837
    { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
 
3838
echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
 
3839
    { echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
 
3840
echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
 
3841
    { echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
 
3842
echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
 
3843
    { echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3844
echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3845
    { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
 
3846
echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
 
3847
    { echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
 
3848
echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
 
3849
    (
 
3850
      cat <<\_ASBOX
 
3851
## ------------------------------------------ ##
 
3852
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3853
## ------------------------------------------ ##
 
3854
_ASBOX
 
3855
    ) |
 
3856
      sed "s/^/$as_me: WARNING:     /" >&2
 
3857
    ;;
 
3858
esac
 
3859
echo "$as_me:$LINENO: checking for dld.h" >&5
 
3860
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
 
3861
if test "${ac_cv_header_dld_h+set}" = set; then
 
3862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3863
else
 
3864
  ac_cv_header_dld_h=$ac_header_preproc
 
3865
fi
 
3866
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
 
3867
echo "${ECHO_T}$ac_cv_header_dld_h" >&6
 
3868
 
 
3869
fi
 
3870
if test $ac_cv_header_dld_h = yes; then
 
3871
 
 
3872
                SHLIB_LD="ld"
 
3873
                SHLIB_LDFLAGS="-shared"
 
3874
fi
 
3875
 
 
3876
 
 
3877
        fi
 
3878
        SHLIB_EXTRACT_ALL=""
 
3879
        ;;
 
3880
    NetBSD-*|FreeBSD-*|OpenBSD-*)
 
3881
        # Not available on all versions:  check for include file.
 
3882
        if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
3883
  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
3884
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
3885
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
3886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3887
fi
 
3888
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
3889
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
3890
else
 
3891
  # Is the header compilable?
 
3892
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
 
3893
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
 
3894
cat >conftest.$ac_ext <<_ACEOF
 
3895
/* confdefs.h.  */
 
3896
_ACEOF
 
3897
cat confdefs.h >>conftest.$ac_ext
 
3898
cat >>conftest.$ac_ext <<_ACEOF
 
3899
/* end confdefs.h.  */
 
3900
$ac_includes_default
 
3901
#include <dlfcn.h>
 
3902
_ACEOF
 
3903
rm -f conftest.$ac_objext
 
3904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3905
  (eval $ac_compile) 2>conftest.er1
 
3906
  ac_status=$?
 
3907
  grep -v '^ *+' conftest.er1 >conftest.err
 
3908
  rm -f conftest.er1
 
3909
  cat conftest.err >&5
 
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3911
  (exit $ac_status); } &&
 
3912
         { ac_try='test -z "$ac_c_werror_flag"
 
3913
                         || test ! -s conftest.err'
 
3914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3915
  (eval $ac_try) 2>&5
 
3916
  ac_status=$?
 
3917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3918
  (exit $ac_status); }; } &&
 
3919
         { ac_try='test -s conftest.$ac_objext'
 
3920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3921
  (eval $ac_try) 2>&5
 
3922
  ac_status=$?
 
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3924
  (exit $ac_status); }; }; then
 
3925
  ac_header_compiler=yes
 
3926
else
 
3927
  echo "$as_me: failed program was:" >&5
 
3928
sed 's/^/| /' conftest.$ac_ext >&5
 
3929
 
 
3930
ac_header_compiler=no
 
3931
fi
 
3932
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3933
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3934
echo "${ECHO_T}$ac_header_compiler" >&6
 
3935
 
 
3936
# Is the header present?
 
3937
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
 
3938
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
 
3939
cat >conftest.$ac_ext <<_ACEOF
 
3940
/* confdefs.h.  */
 
3941
_ACEOF
 
3942
cat confdefs.h >>conftest.$ac_ext
 
3943
cat >>conftest.$ac_ext <<_ACEOF
 
3944
/* end confdefs.h.  */
 
3945
#include <dlfcn.h>
 
3946
_ACEOF
 
3947
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3948
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3949
  ac_status=$?
 
3950
  grep -v '^ *+' conftest.er1 >conftest.err
 
3951
  rm -f conftest.er1
 
3952
  cat conftest.err >&5
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } >/dev/null; then
 
3955
  if test -s conftest.err; then
 
3956
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3957
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3958
  else
 
3959
    ac_cpp_err=
 
3960
  fi
 
3961
else
 
3962
  ac_cpp_err=yes
 
3963
fi
 
3964
if test -z "$ac_cpp_err"; then
 
3965
  ac_header_preproc=yes
 
3966
else
 
3967
  echo "$as_me: failed program was:" >&5
 
3968
sed 's/^/| /' conftest.$ac_ext >&5
 
3969
 
 
3970
  ac_header_preproc=no
 
3971
fi
 
3972
rm -f conftest.err conftest.$ac_ext
 
3973
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3974
echo "${ECHO_T}$ac_header_preproc" >&6
 
3975
 
 
3976
# So?  What about this header?
 
3977
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3978
  yes:no: )
 
3979
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3980
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3981
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
 
3982
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
 
3983
    ac_header_preproc=yes
 
3984
    ;;
 
3985
  no:yes:* )
 
3986
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
 
3987
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
 
3988
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
 
3989
echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
 
3990
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
 
3991
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
 
3992
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3993
echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3994
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
 
3995
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
 
3996
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
 
3997
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
 
3998
    (
 
3999
      cat <<\_ASBOX
 
4000
## ------------------------------------------ ##
 
4001
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4002
## ------------------------------------------ ##
 
4003
_ASBOX
 
4004
    ) |
 
4005
      sed "s/^/$as_me: WARNING:     /" >&2
 
4006
    ;;
 
4007
esac
 
4008
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
4009
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
4010
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
4011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4012
else
 
4013
  ac_cv_header_dlfcn_h=$ac_header_preproc
 
4014
fi
 
4015
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
4016
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
4017
 
 
4018
fi
 
4019
if test $ac_cv_header_dlfcn_h = yes; then
 
4020
 
 
4021
            SHLIB_CFLAGS="-fpic"
 
4022
            SHLIB_LD="ld"
 
4023
            SHLIB_LDFLAGS="$LDFLAGS -Bshareable -x"
 
4024
            SHLIB_SUFFIX=".so"
 
4025
 
 
4026
else
 
4027
 
 
4028
            # No dynamic loading.
 
4029
            SHLIB_CFLAGS=""
 
4030
            SHLIB_LD="ld"
 
4031
            SHLIB_LDFLAGS="$LDFLAGS"
 
4032
            SHLIB_SUFFIX=""
 
4033
            { { echo "$as_me:$LINENO: error: don't know how to compile and link dynamic drivers" >&5
 
4034
echo "$as_me: error: don't know how to compile and link dynamic drivers" >&2;}
 
4035
   { (exit 1); exit 1; }; }
 
4036
 
 
4037
fi
 
4038
 
 
4039
 
 
4040
        SHLIB_EXTRACT_ALL=""
 
4041
        ;;
 
4042
    SunOS-4*)
 
4043
        SHLIB_CFLAGS="-PIC"
 
4044
        SHLIB_LD="ld"
 
4045
        SHLIB_LDFLAGS="$LDFLAGS"
 
4046
        SHLIB_SUFFIX=".so"
 
4047
        SHLIB_EXTRACT_ALL=""
 
4048
        ;;
 
4049
    SunOS-5*|UNIX_SV-4.2*)
 
4050
        SHLIB_CFLAGS="-KPIC"
 
4051
        SHLIB_LD="/usr/ccs/bin/ld"
 
4052
        SHLIB_LDFLAGS="$LDFLAGS -G -z text"
 
4053
        SHLIB_SUFFIX=".so"
 
4054
        SHLIB_EXTRACT_ALL="-z allextract"
 
4055
        ;;
 
4056
    Darwin*)
 
4057
        SHLIB_CFLAGS="-fno-common"
 
4058
        SHLIB_LD="cc"
 
4059
        SHLIB_LDFLAGS="$LDFLAGS -bundle -flat_namespace -undefined suppress"
 
4060
        SHLIB_SUFFIX=".so"
 
4061
        SHLIB_EXTRACT_ALL=""
 
4062
        ;;
 
4063
    OSF1*)
 
4064
        SHLIB_CFLAGS="-fPIC"
 
4065
        SHLIB_LD="ld"
 
4066
        SHLIB_LDFLAGS="$LDFLAGS -shared"
 
4067
        SHLIB_SUFFIX=".so"
 
4068
        SHLIB_EXTRACT_ALL=""
 
4069
        ;;
 
4070
    *osf5*)
 
4071
        SHLIB_CFLAGS="-fPIC"
 
4072
        SHLIB_LD="${CC} -shared"
 
4073
        SHLIB_LDFLAGS="$LDFLAGS"
 
4074
        SHLIB_SUFFIX=".so"
 
4075
        SHLIB_EXTRACT_ALL=""
 
4076
        ;;
 
4077
    *)
 
4078
        # No dynamic loading.
 
4079
        SHLIB_CFLAGS=""
 
4080
        SHLIB_LD="ld"
 
4081
        SHLIB_LDFLAGS=""
 
4082
        SHLIB_LDLIBS=""
 
4083
        SHLIB_SUFFIX=""
 
4084
        SHLIB_EXTRACT_ALL=""
 
4085
        { { echo "$as_me:$LINENO: error: don't know how to compile and link dynamic drivers" >&5
 
4086
echo "$as_me: error: don't know how to compile and link dynamic drivers" >&2;}
 
4087
   { (exit 1); exit 1; }; }
 
4088
        ;;
 
4089
esac
 
4090
 
 
4091
# If we're running gcc, then change the C flags for compiling shared
 
4092
# libraries to the right flags for gcc, instead of those for the
 
4093
# standard manufacturer compiler.
 
4094
 
 
4095
if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
 
4096
        case $system in
 
4097
            AIX-*)
 
4098
                ;;
 
4099
            BSD/OS*)
 
4100
                ;;
 
4101
            IRIX*)
 
4102
                ;;
 
4103
            NetBSD-*|FreeBSD-*|OpenBSD-*)
 
4104
                ;;
 
4105
            RISCos-*)
 
4106
                ;;
 
4107
            ULTRIX-4.*)
 
4108
                ;;
 
4109
            Darwin*)
 
4110
                ;;
 
4111
            *)
 
4112
                SHLIB_CFLAGS="-fPIC"
 
4113
                ;;
 
4114
        esac
 
4115
fi
 
4116
 
 
4117
# Make it possible for erl_interface to use it's own compiler options
 
4118
EI_CFLAGS="$CFLAGS"
 
4119
 
 
4120
# Add thread-safety flags if requested
 
4121
# Check whether --enable-shlib-thread-safety or --disable-shlib-thread-safety was given.
 
4122
if test "${enable_shlib_thread_safety+set}" = set; then
 
4123
  enableval="$enable_shlib_thread_safety"
 
4124
   case "$enableval" in
 
4125
    no) ;;
 
4126
    *)  SHLIB_CFLAGS="$SHLIB_CFLAGS -D_THREAD_SAFE -D_REENTRANT"
 
4127
        CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT"
 
4128
        ;;
 
4129
  esac
 
4130
fi;
 
4131
 
 
4132
SHLIB_CFLAGS="$SHLIB_CFLAGS $CFLAGS"
 
4133
 
 
4134
 
 
4135
 
 
4136
 
 
4137
 
 
4138
 
 
4139
 
 
4140
 
 
4141
 
 
4142
 
 
4143
 
 
4144
#--------------------------------------------------------------------
 
4145
#       Check for the existence of the -lsocket and -lnsl libraries.
 
4146
#       The order here is important, so that they end up in the right
 
4147
#       order in the command line generated by make.  Here are some
 
4148
#       special considerations:
 
4149
#       1. Use "connect" and "accept" to check for -lsocket, and
 
4150
#          "gethostbyname" to check for -lnsl.
 
4151
#       2. Use each function name only once:  can't redo a check because
 
4152
#          autoconf caches the results of the last check and won't redo it.
 
4153
#       3. Use -lnsl and -lsocket only if they supply procedures that
 
4154
#          aren't already present in the normal libraries.  This is because
 
4155
#          IRIX 5.2 has libraries, but they aren't needed and they're
 
4156
#          bogus:  they goof up name resolution if used.
 
4157
#       4. On some SVR4 systems, can't use -lsocket without -lnsl too.
 
4158
#          To get around this problem, check for both libraries together
 
4159
#          if -lsocket doesn't work by itself.
 
4160
#--------------------------------------------------------------------
 
4161
 
 
4162
erl_checkBoth=0
 
4163
echo "$as_me:$LINENO: checking for connect" >&5
 
4164
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
4165
if test "${ac_cv_func_connect+set}" = set; then
 
4166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4167
else
 
4168
  cat >conftest.$ac_ext <<_ACEOF
 
4169
/* confdefs.h.  */
 
4170
_ACEOF
 
4171
cat confdefs.h >>conftest.$ac_ext
 
4172
cat >>conftest.$ac_ext <<_ACEOF
 
4173
/* end confdefs.h.  */
 
4174
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
4175
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4176
#define connect innocuous_connect
 
4177
 
 
4178
/* System header to define __stub macros and hopefully few prototypes,
 
4179
    which can conflict with char connect (); below.
 
4180
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4181
    <limits.h> exists even on freestanding compilers.  */
 
4182
 
 
4183
#ifdef __STDC__
 
4184
# include <limits.h>
 
4185
#else
 
4186
# include <assert.h>
 
4187
#endif
 
4188
 
 
4189
#undef connect
 
4190
 
 
4191
/* Override any gcc2 internal prototype to avoid an error.  */
 
4192
#ifdef __cplusplus
 
4193
extern "C"
 
4194
{
 
4195
#endif
 
4196
/* We use char because int might match the return type of a gcc2
 
4197
   builtin and then its argument prototype would still apply.  */
 
4198
char connect ();
 
4199
/* The GNU C library defines this for functions which it implements
 
4200
    to always fail with ENOSYS.  Some functions are actually named
 
4201
    something starting with __ and the normal name is an alias.  */
 
4202
#if defined (__stub_connect) || defined (__stub___connect)
 
4203
choke me
 
4204
#else
 
4205
char (*f) () = connect;
 
4206
#endif
 
4207
#ifdef __cplusplus
 
4208
}
 
4209
#endif
 
4210
 
 
4211
int
 
4212
main ()
 
4213
{
 
4214
return f != connect;
 
4215
  ;
 
4216
  return 0;
 
4217
}
 
4218
_ACEOF
 
4219
rm -f conftest.$ac_objext conftest$ac_exeext
 
4220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4221
  (eval $ac_link) 2>conftest.er1
 
4222
  ac_status=$?
 
4223
  grep -v '^ *+' conftest.er1 >conftest.err
 
4224
  rm -f conftest.er1
 
4225
  cat conftest.err >&5
 
4226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4227
  (exit $ac_status); } &&
 
4228
         { ac_try='test -z "$ac_c_werror_flag"
 
4229
                         || test ! -s conftest.err'
 
4230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4231
  (eval $ac_try) 2>&5
 
4232
  ac_status=$?
 
4233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4234
  (exit $ac_status); }; } &&
 
4235
         { ac_try='test -s conftest$ac_exeext'
 
4236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4237
  (eval $ac_try) 2>&5
 
4238
  ac_status=$?
 
4239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4240
  (exit $ac_status); }; }; then
 
4241
  ac_cv_func_connect=yes
 
4242
else
 
4243
  echo "$as_me: failed program was:" >&5
 
4244
sed 's/^/| /' conftest.$ac_ext >&5
 
4245
 
 
4246
ac_cv_func_connect=no
 
4247
fi
 
4248
rm -f conftest.err conftest.$ac_objext \
 
4249
      conftest$ac_exeext conftest.$ac_ext
 
4250
fi
 
4251
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
4252
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
4253
if test $ac_cv_func_connect = yes; then
 
4254
  erl_checkSocket=0
 
4255
else
 
4256
  erl_checkSocket=1
 
4257
fi
 
4258
 
 
4259
if test "$erl_checkSocket" = 1; then
 
4260
    echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
4261
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
4262
if test "${ac_cv_lib_socket_main+set}" = set; then
 
4263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4264
else
 
4265
  ac_check_lib_save_LIBS=$LIBS
 
4266
LIBS="-lsocket  $LIBS"
 
4267
cat >conftest.$ac_ext <<_ACEOF
 
4268
/* confdefs.h.  */
 
4269
_ACEOF
 
4270
cat confdefs.h >>conftest.$ac_ext
 
4271
cat >>conftest.$ac_ext <<_ACEOF
 
4272
/* end confdefs.h.  */
 
4273
 
 
4274
 
 
4275
int
 
4276
main ()
 
4277
{
 
4278
main ();
 
4279
  ;
 
4280
  return 0;
 
4281
}
 
4282
_ACEOF
 
4283
rm -f conftest.$ac_objext conftest$ac_exeext
 
4284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4285
  (eval $ac_link) 2>conftest.er1
 
4286
  ac_status=$?
 
4287
  grep -v '^ *+' conftest.er1 >conftest.err
 
4288
  rm -f conftest.er1
 
4289
  cat conftest.err >&5
 
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4291
  (exit $ac_status); } &&
 
4292
         { ac_try='test -z "$ac_c_werror_flag"
 
4293
                         || test ! -s conftest.err'
 
4294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4295
  (eval $ac_try) 2>&5
 
4296
  ac_status=$?
 
4297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4298
  (exit $ac_status); }; } &&
 
4299
         { ac_try='test -s conftest$ac_exeext'
 
4300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4301
  (eval $ac_try) 2>&5
 
4302
  ac_status=$?
 
4303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4304
  (exit $ac_status); }; }; then
 
4305
  ac_cv_lib_socket_main=yes
 
4306
else
 
4307
  echo "$as_me: failed program was:" >&5
 
4308
sed 's/^/| /' conftest.$ac_ext >&5
 
4309
 
 
4310
ac_cv_lib_socket_main=no
 
4311
fi
 
4312
rm -f conftest.err conftest.$ac_objext \
 
4313
      conftest$ac_exeext conftest.$ac_ext
 
4314
LIBS=$ac_check_lib_save_LIBS
 
4315
fi
 
4316
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
4317
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
4318
if test $ac_cv_lib_socket_main = yes; then
 
4319
  LIBS="$LIBS -lsocket"
 
4320
else
 
4321
  erl_checkBoth=1
 
4322
fi
 
4323
 
 
4324
fi
 
4325
if test "$erl_checkBoth" = 1; then
 
4326
    tk_oldLibs=$LIBS
 
4327
    LIBS="$LIBS -lsocket -lnsl"
 
4328
    echo "$as_me:$LINENO: checking for accept" >&5
 
4329
echo $ECHO_N "checking for accept... $ECHO_C" >&6
 
4330
if test "${ac_cv_func_accept+set}" = set; then
 
4331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4332
else
 
4333
  cat >conftest.$ac_ext <<_ACEOF
 
4334
/* confdefs.h.  */
 
4335
_ACEOF
 
4336
cat confdefs.h >>conftest.$ac_ext
 
4337
cat >>conftest.$ac_ext <<_ACEOF
 
4338
/* end confdefs.h.  */
 
4339
/* Define accept to an innocuous variant, in case <limits.h> declares accept.
 
4340
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4341
#define accept innocuous_accept
 
4342
 
 
4343
/* System header to define __stub macros and hopefully few prototypes,
 
4344
    which can conflict with char accept (); below.
 
4345
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4346
    <limits.h> exists even on freestanding compilers.  */
 
4347
 
 
4348
#ifdef __STDC__
 
4349
# include <limits.h>
 
4350
#else
 
4351
# include <assert.h>
 
4352
#endif
 
4353
 
 
4354
#undef accept
 
4355
 
 
4356
/* Override any gcc2 internal prototype to avoid an error.  */
 
4357
#ifdef __cplusplus
 
4358
extern "C"
 
4359
{
 
4360
#endif
 
4361
/* We use char because int might match the return type of a gcc2
 
4362
   builtin and then its argument prototype would still apply.  */
 
4363
char accept ();
 
4364
/* The GNU C library defines this for functions which it implements
 
4365
    to always fail with ENOSYS.  Some functions are actually named
 
4366
    something starting with __ and the normal name is an alias.  */
 
4367
#if defined (__stub_accept) || defined (__stub___accept)
 
4368
choke me
 
4369
#else
 
4370
char (*f) () = accept;
 
4371
#endif
 
4372
#ifdef __cplusplus
 
4373
}
 
4374
#endif
 
4375
 
 
4376
int
 
4377
main ()
 
4378
{
 
4379
return f != accept;
 
4380
  ;
 
4381
  return 0;
 
4382
}
 
4383
_ACEOF
 
4384
rm -f conftest.$ac_objext conftest$ac_exeext
 
4385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4386
  (eval $ac_link) 2>conftest.er1
 
4387
  ac_status=$?
 
4388
  grep -v '^ *+' conftest.er1 >conftest.err
 
4389
  rm -f conftest.er1
 
4390
  cat conftest.err >&5
 
4391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4392
  (exit $ac_status); } &&
 
4393
         { ac_try='test -z "$ac_c_werror_flag"
 
4394
                         || test ! -s conftest.err'
 
4395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4396
  (eval $ac_try) 2>&5
 
4397
  ac_status=$?
 
4398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4399
  (exit $ac_status); }; } &&
 
4400
         { ac_try='test -s conftest$ac_exeext'
 
4401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4402
  (eval $ac_try) 2>&5
 
4403
  ac_status=$?
 
4404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4405
  (exit $ac_status); }; }; then
 
4406
  ac_cv_func_accept=yes
 
4407
else
 
4408
  echo "$as_me: failed program was:" >&5
 
4409
sed 's/^/| /' conftest.$ac_ext >&5
 
4410
 
 
4411
ac_cv_func_accept=no
 
4412
fi
 
4413
rm -f conftest.err conftest.$ac_objext \
 
4414
      conftest$ac_exeext conftest.$ac_ext
 
4415
fi
 
4416
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
 
4417
echo "${ECHO_T}$ac_cv_func_accept" >&6
 
4418
if test $ac_cv_func_accept = yes; then
 
4419
  erl_checkNsl=0
 
4420
else
 
4421
  LIBS=$tk_oldLibs
 
4422
fi
 
4423
 
 
4424
fi
 
4425
echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
4426
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
4427
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
4428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4429
else
 
4430
  cat >conftest.$ac_ext <<_ACEOF
 
4431
/* confdefs.h.  */
 
4432
_ACEOF
 
4433
cat confdefs.h >>conftest.$ac_ext
 
4434
cat >>conftest.$ac_ext <<_ACEOF
 
4435
/* end confdefs.h.  */
 
4436
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
4437
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4438
#define gethostbyname innocuous_gethostbyname
 
4439
 
 
4440
/* System header to define __stub macros and hopefully few prototypes,
 
4441
    which can conflict with char gethostbyname (); below.
 
4442
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4443
    <limits.h> exists even on freestanding compilers.  */
 
4444
 
 
4445
#ifdef __STDC__
 
4446
# include <limits.h>
 
4447
#else
 
4448
# include <assert.h>
 
4449
#endif
 
4450
 
 
4451
#undef gethostbyname
 
4452
 
 
4453
/* Override any gcc2 internal prototype to avoid an error.  */
 
4454
#ifdef __cplusplus
 
4455
extern "C"
 
4456
{
 
4457
#endif
 
4458
/* We use char because int might match the return type of a gcc2
 
4459
   builtin and then its argument prototype would still apply.  */
 
4460
char gethostbyname ();
 
4461
/* The GNU C library defines this for functions which it implements
 
4462
    to always fail with ENOSYS.  Some functions are actually named
 
4463
    something starting with __ and the normal name is an alias.  */
 
4464
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
4465
choke me
 
4466
#else
 
4467
char (*f) () = gethostbyname;
 
4468
#endif
 
4469
#ifdef __cplusplus
 
4470
}
 
4471
#endif
 
4472
 
 
4473
int
 
4474
main ()
 
4475
{
 
4476
return f != gethostbyname;
 
4477
  ;
 
4478
  return 0;
 
4479
}
 
4480
_ACEOF
 
4481
rm -f conftest.$ac_objext conftest$ac_exeext
 
4482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4483
  (eval $ac_link) 2>conftest.er1
 
4484
  ac_status=$?
 
4485
  grep -v '^ *+' conftest.er1 >conftest.err
 
4486
  rm -f conftest.er1
 
4487
  cat conftest.err >&5
 
4488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4489
  (exit $ac_status); } &&
 
4490
         { ac_try='test -z "$ac_c_werror_flag"
 
4491
                         || test ! -s conftest.err'
 
4492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4493
  (eval $ac_try) 2>&5
 
4494
  ac_status=$?
 
4495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4496
  (exit $ac_status); }; } &&
 
4497
         { ac_try='test -s conftest$ac_exeext'
 
4498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4499
  (eval $ac_try) 2>&5
 
4500
  ac_status=$?
 
4501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4502
  (exit $ac_status); }; }; then
 
4503
  ac_cv_func_gethostbyname=yes
 
4504
else
 
4505
  echo "$as_me: failed program was:" >&5
 
4506
sed 's/^/| /' conftest.$ac_ext >&5
 
4507
 
 
4508
ac_cv_func_gethostbyname=no
 
4509
fi
 
4510
rm -f conftest.err conftest.$ac_objext \
 
4511
      conftest$ac_exeext conftest.$ac_ext
 
4512
fi
 
4513
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
4514
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
4515
if test $ac_cv_func_gethostbyname = yes; then
 
4516
  :
 
4517
else
 
4518
  echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
4519
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
4520
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
4521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4522
else
 
4523
  ac_check_lib_save_LIBS=$LIBS
 
4524
LIBS="-lnsl  $LIBS"
 
4525
cat >conftest.$ac_ext <<_ACEOF
 
4526
/* confdefs.h.  */
 
4527
_ACEOF
 
4528
cat confdefs.h >>conftest.$ac_ext
 
4529
cat >>conftest.$ac_ext <<_ACEOF
 
4530
/* end confdefs.h.  */
 
4531
 
 
4532
 
 
4533
int
 
4534
main ()
 
4535
{
 
4536
main ();
 
4537
  ;
 
4538
  return 0;
 
4539
}
 
4540
_ACEOF
 
4541
rm -f conftest.$ac_objext conftest$ac_exeext
 
4542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4543
  (eval $ac_link) 2>conftest.er1
 
4544
  ac_status=$?
 
4545
  grep -v '^ *+' conftest.er1 >conftest.err
 
4546
  rm -f conftest.er1
 
4547
  cat conftest.err >&5
 
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); } &&
 
4550
         { ac_try='test -z "$ac_c_werror_flag"
 
4551
                         || test ! -s conftest.err'
 
4552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4553
  (eval $ac_try) 2>&5
 
4554
  ac_status=$?
 
4555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4556
  (exit $ac_status); }; } &&
 
4557
         { ac_try='test -s conftest$ac_exeext'
 
4558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4559
  (eval $ac_try) 2>&5
 
4560
  ac_status=$?
 
4561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4562
  (exit $ac_status); }; }; then
 
4563
  ac_cv_lib_nsl_main=yes
 
4564
else
 
4565
  echo "$as_me: failed program was:" >&5
 
4566
sed 's/^/| /' conftest.$ac_ext >&5
 
4567
 
 
4568
ac_cv_lib_nsl_main=no
 
4569
fi
 
4570
rm -f conftest.err conftest.$ac_objext \
 
4571
      conftest$ac_exeext conftest.$ac_ext
 
4572
LIBS=$ac_check_lib_save_LIBS
 
4573
fi
 
4574
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
4575
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
4576
if test $ac_cv_lib_nsl_main = yes; then
 
4577
  LIBS="$LIBS -lnsl"
 
4578
fi
 
4579
 
 
4580
fi
 
4581
 
 
4582
 
 
4583
 
 
4584
for ac_func in strerror
 
4585
do
 
4586
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4587
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4588
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4589
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4591
else
 
4592
  cat >conftest.$ac_ext <<_ACEOF
 
4593
/* confdefs.h.  */
 
4594
_ACEOF
 
4595
cat confdefs.h >>conftest.$ac_ext
 
4596
cat >>conftest.$ac_ext <<_ACEOF
 
4597
/* end confdefs.h.  */
 
4598
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4599
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4600
#define $ac_func innocuous_$ac_func
 
4601
 
 
4602
/* System header to define __stub macros and hopefully few prototypes,
 
4603
    which can conflict with char $ac_func (); below.
 
4604
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4605
    <limits.h> exists even on freestanding compilers.  */
 
4606
 
 
4607
#ifdef __STDC__
 
4608
# include <limits.h>
 
4609
#else
 
4610
# include <assert.h>
 
4611
#endif
 
4612
 
 
4613
#undef $ac_func
 
4614
 
 
4615
/* Override any gcc2 internal prototype to avoid an error.  */
 
4616
#ifdef __cplusplus
 
4617
extern "C"
 
4618
{
 
4619
#endif
 
4620
/* We use char because int might match the return type of a gcc2
 
4621
   builtin and then its argument prototype would still apply.  */
 
4622
char $ac_func ();
 
4623
/* The GNU C library defines this for functions which it implements
 
4624
    to always fail with ENOSYS.  Some functions are actually named
 
4625
    something starting with __ and the normal name is an alias.  */
 
4626
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4627
choke me
 
4628
#else
 
4629
char (*f) () = $ac_func;
 
4630
#endif
 
4631
#ifdef __cplusplus
 
4632
}
 
4633
#endif
 
4634
 
 
4635
int
 
4636
main ()
 
4637
{
 
4638
return f != $ac_func;
 
4639
  ;
 
4640
  return 0;
 
4641
}
 
4642
_ACEOF
 
4643
rm -f conftest.$ac_objext conftest$ac_exeext
 
4644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4645
  (eval $ac_link) 2>conftest.er1
 
4646
  ac_status=$?
 
4647
  grep -v '^ *+' conftest.er1 >conftest.err
 
4648
  rm -f conftest.er1
 
4649
  cat conftest.err >&5
 
4650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4651
  (exit $ac_status); } &&
 
4652
         { ac_try='test -z "$ac_c_werror_flag"
 
4653
                         || test ! -s conftest.err'
 
4654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4655
  (eval $ac_try) 2>&5
 
4656
  ac_status=$?
 
4657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4658
  (exit $ac_status); }; } &&
 
4659
         { ac_try='test -s conftest$ac_exeext'
 
4660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4661
  (eval $ac_try) 2>&5
 
4662
  ac_status=$?
 
4663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4664
  (exit $ac_status); }; }; then
 
4665
  eval "$as_ac_var=yes"
 
4666
else
 
4667
  echo "$as_me: failed program was:" >&5
 
4668
sed 's/^/| /' conftest.$ac_ext >&5
 
4669
 
 
4670
eval "$as_ac_var=no"
 
4671
fi
 
4672
rm -f conftest.err conftest.$ac_objext \
 
4673
      conftest$ac_exeext conftest.$ac_ext
 
4674
fi
 
4675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4676
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4677
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4678
  cat >>confdefs.h <<_ACEOF
 
4679
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4680
_ACEOF
 
4681
 
 
4682
fi
 
4683
done
 
4684
 
 
4685
 
 
4686
for ac_func in vsnprintf
 
4687
do
 
4688
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4689
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4690
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4691
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4693
else
 
4694
  cat >conftest.$ac_ext <<_ACEOF
 
4695
/* confdefs.h.  */
 
4696
_ACEOF
 
4697
cat confdefs.h >>conftest.$ac_ext
 
4698
cat >>conftest.$ac_ext <<_ACEOF
 
4699
/* end confdefs.h.  */
 
4700
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4701
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4702
#define $ac_func innocuous_$ac_func
 
4703
 
 
4704
/* System header to define __stub macros and hopefully few prototypes,
 
4705
    which can conflict with char $ac_func (); below.
 
4706
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4707
    <limits.h> exists even on freestanding compilers.  */
 
4708
 
 
4709
#ifdef __STDC__
 
4710
# include <limits.h>
 
4711
#else
 
4712
# include <assert.h>
 
4713
#endif
 
4714
 
 
4715
#undef $ac_func
 
4716
 
 
4717
/* Override any gcc2 internal prototype to avoid an error.  */
 
4718
#ifdef __cplusplus
 
4719
extern "C"
 
4720
{
 
4721
#endif
 
4722
/* We use char because int might match the return type of a gcc2
 
4723
   builtin and then its argument prototype would still apply.  */
 
4724
char $ac_func ();
 
4725
/* The GNU C library defines this for functions which it implements
 
4726
    to always fail with ENOSYS.  Some functions are actually named
 
4727
    something starting with __ and the normal name is an alias.  */
 
4728
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4729
choke me
 
4730
#else
 
4731
char (*f) () = $ac_func;
 
4732
#endif
 
4733
#ifdef __cplusplus
 
4734
}
 
4735
#endif
 
4736
 
 
4737
int
 
4738
main ()
 
4739
{
 
4740
return f != $ac_func;
 
4741
  ;
 
4742
  return 0;
 
4743
}
 
4744
_ACEOF
 
4745
rm -f conftest.$ac_objext conftest$ac_exeext
 
4746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4747
  (eval $ac_link) 2>conftest.er1
 
4748
  ac_status=$?
 
4749
  grep -v '^ *+' conftest.er1 >conftest.err
 
4750
  rm -f conftest.er1
 
4751
  cat conftest.err >&5
 
4752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4753
  (exit $ac_status); } &&
 
4754
         { ac_try='test -z "$ac_c_werror_flag"
 
4755
                         || test ! -s conftest.err'
 
4756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4757
  (eval $ac_try) 2>&5
 
4758
  ac_status=$?
 
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4760
  (exit $ac_status); }; } &&
 
4761
         { ac_try='test -s conftest$ac_exeext'
 
4762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4763
  (eval $ac_try) 2>&5
 
4764
  ac_status=$?
 
4765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4766
  (exit $ac_status); }; }; then
 
4767
  eval "$as_ac_var=yes"
 
4768
else
 
4769
  echo "$as_me: failed program was:" >&5
 
4770
sed 's/^/| /' conftest.$ac_ext >&5
 
4771
 
 
4772
eval "$as_ac_var=no"
 
4773
fi
 
4774
rm -f conftest.err conftest.$ac_objext \
 
4775
      conftest$ac_exeext conftest.$ac_ext
 
4776
fi
 
4777
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4778
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4779
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4780
  cat >>confdefs.h <<_ACEOF
 
4781
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4782
_ACEOF
 
4783
 
 
4784
fi
 
4785
done
 
4786
 
 
4787
 
 
4788
# First check if the library is available, then if we can choose between
 
4789
# two versions of gethostbyname
 
4790
 
 
4791
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
 
4792
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
 
4793
if test "${ac_cv_lib_resolv_main+set}" = set; then
 
4794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4795
else
 
4796
  ac_check_lib_save_LIBS=$LIBS
 
4797
LIBS="-lresolv  $LIBS"
 
4798
cat >conftest.$ac_ext <<_ACEOF
 
4799
/* confdefs.h.  */
 
4800
_ACEOF
 
4801
cat confdefs.h >>conftest.$ac_ext
 
4802
cat >>conftest.$ac_ext <<_ACEOF
 
4803
/* end confdefs.h.  */
 
4804
 
 
4805
 
 
4806
int
 
4807
main ()
 
4808
{
 
4809
main ();
 
4810
  ;
 
4811
  return 0;
 
4812
}
 
4813
_ACEOF
 
4814
rm -f conftest.$ac_objext conftest$ac_exeext
 
4815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4816
  (eval $ac_link) 2>conftest.er1
 
4817
  ac_status=$?
 
4818
  grep -v '^ *+' conftest.er1 >conftest.err
 
4819
  rm -f conftest.er1
 
4820
  cat conftest.err >&5
 
4821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4822
  (exit $ac_status); } &&
 
4823
         { ac_try='test -z "$ac_c_werror_flag"
 
4824
                         || test ! -s conftest.err'
 
4825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4826
  (eval $ac_try) 2>&5
 
4827
  ac_status=$?
 
4828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4829
  (exit $ac_status); }; } &&
 
4830
         { ac_try='test -s conftest$ac_exeext'
 
4831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4832
  (eval $ac_try) 2>&5
 
4833
  ac_status=$?
 
4834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4835
  (exit $ac_status); }; }; then
 
4836
  ac_cv_lib_resolv_main=yes
 
4837
else
 
4838
  echo "$as_me: failed program was:" >&5
 
4839
sed 's/^/| /' conftest.$ac_ext >&5
 
4840
 
 
4841
ac_cv_lib_resolv_main=no
 
4842
fi
 
4843
rm -f conftest.err conftest.$ac_objext \
 
4844
      conftest$ac_exeext conftest.$ac_ext
 
4845
LIBS=$ac_check_lib_save_LIBS
 
4846
fi
 
4847
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
 
4848
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
 
4849
if test $ac_cv_lib_resolv_main = yes; then
 
4850
  cat >>confdefs.h <<_ACEOF
 
4851
#define HAVE_LIBRESOLV 1
 
4852
_ACEOF
 
4853
 
 
4854
  LIBS="-lresolv $LIBS"
 
4855
 
 
4856
fi
 
4857
ac_cv_lib_resolv=ac_cv_lib_resolv_main
 
4858
 
 
4859
echo "$as_me:$LINENO: checking for res_gethostbyname in -lresolv" >&5
 
4860
echo $ECHO_N "checking for res_gethostbyname in -lresolv... $ECHO_C" >&6
 
4861
if test "${ac_cv_lib_resolv_res_gethostbyname+set}" = set; then
 
4862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4863
else
 
4864
  ac_check_lib_save_LIBS=$LIBS
 
4865
LIBS="-lresolv  $LIBS"
 
4866
cat >conftest.$ac_ext <<_ACEOF
 
4867
/* confdefs.h.  */
 
4868
_ACEOF
 
4869
cat confdefs.h >>conftest.$ac_ext
 
4870
cat >>conftest.$ac_ext <<_ACEOF
 
4871
/* end confdefs.h.  */
 
4872
 
 
4873
/* Override any gcc2 internal prototype to avoid an error.  */
 
4874
#ifdef __cplusplus
 
4875
extern "C"
 
4876
#endif
 
4877
/* We use char because int might match the return type of a gcc2
 
4878
   builtin and then its argument prototype would still apply.  */
 
4879
char res_gethostbyname ();
 
4880
int
 
4881
main ()
 
4882
{
 
4883
res_gethostbyname ();
 
4884
  ;
 
4885
  return 0;
 
4886
}
 
4887
_ACEOF
 
4888
rm -f conftest.$ac_objext conftest$ac_exeext
 
4889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4890
  (eval $ac_link) 2>conftest.er1
 
4891
  ac_status=$?
 
4892
  grep -v '^ *+' conftest.er1 >conftest.err
 
4893
  rm -f conftest.er1
 
4894
  cat conftest.err >&5
 
4895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4896
  (exit $ac_status); } &&
 
4897
         { ac_try='test -z "$ac_c_werror_flag"
 
4898
                         || test ! -s conftest.err'
 
4899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4900
  (eval $ac_try) 2>&5
 
4901
  ac_status=$?
 
4902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4903
  (exit $ac_status); }; } &&
 
4904
         { ac_try='test -s conftest$ac_exeext'
 
4905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4906
  (eval $ac_try) 2>&5
 
4907
  ac_status=$?
 
4908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4909
  (exit $ac_status); }; }; then
 
4910
  ac_cv_lib_resolv_res_gethostbyname=yes
 
4911
else
 
4912
  echo "$as_me: failed program was:" >&5
 
4913
sed 's/^/| /' conftest.$ac_ext >&5
 
4914
 
 
4915
ac_cv_lib_resolv_res_gethostbyname=no
 
4916
fi
 
4917
rm -f conftest.err conftest.$ac_objext \
 
4918
      conftest$ac_exeext conftest.$ac_ext
 
4919
LIBS=$ac_check_lib_save_LIBS
 
4920
fi
 
4921
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_gethostbyname" >&5
 
4922
echo "${ECHO_T}$ac_cv_lib_resolv_res_gethostbyname" >&6
 
4923
if test $ac_cv_lib_resolv_res_gethostbyname = yes; then
 
4924
  DEFS="$DEFS -DHAVE_RES_GETHOSTBYNAME=1"
 
4925
fi
 
4926
 
 
4927
 
 
4928
#--------------------------------------------------------------------
 
4929
# Emulator compatible flags (for drivers)
 
4930
#--------------------------------------------------------------------
 
4931
 
 
4932
ERTS_CFLAGS=$CFLAGS
 
4933
 
 
4934
 
 
4935
ERTS_LIBS=$LIBS
 
4936
 
 
4937
 
 
4938
#--------------------------------------------------------------------
 
4939
# Special compiler macro to handle cross compiling
 
4940
# (HCC) is used to compile tools run in the HOST environment
 
4941
#--------------------------------------------------------------------
 
4942
HCC='$(CC)'
 
4943
 
 
4944
 
 
4945
#--------------------------------------------------------------------
 
4946
# ld is used for linking on vxworks
 
4947
#--------------------------------------------------------------------
 
4948
LD='$(CC) $(CFLAGS)'
 
4949
 
 
4950
 
 
4951
#--------------------------------------------------------------------
 
4952
# object file suffix
 
4953
#--------------------------------------------------------------------
 
4954
obj='.o'
 
4955
 
 
4956
 
 
4957
#--------------------------------------------------------------------
 
4958
# executable file suffix
 
4959
#--------------------------------------------------------------------
 
4960
exe=''
 
4961
 
 
4962
 
 
4963
#--------------------------------------------------------------------
 
4964
# flags when linking for cross platform targets (yet 'tis useful with
 
4965
# native builds)
 
4966
#--------------------------------------------------------------------
 
4967
CROSSLDFLAGS=''
 
4968
 
 
4969
 
 
4970
 
 
4971
 
 
4972
TARGET=$host
 
4973
 
 
4974
# We search for SSL. First in the OTP team ClearCase standard location,
 
4975
# then in the common OS standard locations
 
4976
# No we do not.
 
4977
SSL_APP=ssl
 
4978
CRYPTO_APP=crypto
 
4979
SSLEAY_ROOT=$TARGET
 
4980
#for dir in /usr /usr/pkg /usr/local /usr/local/ssl /usr/lib/ssl /usr/ssl; do
 
4981
#         AC_CHECK_HEADER($dir/include/openssl/opensslv.h,
 
4982
#               ac_cv_openssl=yes, ac_cv_openssl=no)
 
4983
#        if test $ac_cv_openssl = yes ; then
 
4984
#                SSLEAY_ROOT="$dir"
 
4985
#               ssl_found=yes
 
4986
#               break
 
4987
#        fi
 
4988
#done
 
4989
 
 
4990
# Find a usable java compiler
 
4991
#
 
4992
# WARNING this code is copied from ERTS configure.in, and should be
 
4993
# updated if that code changes. I hate duplicating code, but what
 
4994
# can I do.
 
4995
#
 
4996
 
 
4997
for ac_prog in javac guavac gcj jikes bock
 
4998
do
 
4999
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5000
set dummy $ac_prog; ac_word=$2
 
5001
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5002
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5003
if test "${ac_cv_prog_JAVAC+set}" = set; then
 
5004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5005
else
 
5006
  if test -n "$JAVAC"; then
 
5007
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
 
5008
else
 
5009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5010
for as_dir in $PATH
 
5011
do
 
5012
  IFS=$as_save_IFS
 
5013
  test -z "$as_dir" && as_dir=.
 
5014
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5015
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5016
    ac_cv_prog_JAVAC="$ac_prog"
 
5017
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5018
    break 2
 
5019
  fi
 
5020
done
 
5021
done
 
5022
 
 
5023
fi
 
5024
fi
 
5025
JAVAC=$ac_cv_prog_JAVAC
 
5026
if test -n "$JAVAC"; then
 
5027
  echo "$as_me:$LINENO: result: $JAVAC" >&5
 
5028
echo "${ECHO_T}$JAVAC" >&6
 
5029
else
 
5030
  echo "$as_me:$LINENO: result: no" >&5
 
5031
echo "${ECHO_T}no" >&6
 
5032
fi
 
5033
 
 
5034
  test -n "$JAVAC" && break
 
5035
done
 
5036
 
 
5037
if test -n "$JAVAC"; then
 
5038
    echo "$as_me:$LINENO: checking for JDK version 1.5" >&5
 
5039
echo $ECHO_N "checking for JDK version 1.5... $ECHO_C" >&6
 
5040
if test "${ac_cv_prog_javac_ver_1_5+set}" = set; then
 
5041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5042
else
 
5043
  java_link='$JAVAC conftest.java 1>&5'
 
5044
cat > conftest.java <<EOF
 
5045
 
 
5046
class conftest { public static void main(String[] args) {
 
5047
   for (String i : args);
 
5048
   ; return; }}
 
5049
EOF
 
5050
if { (eval echo "$as_me:$LINENO: \"$java_link\"") >&5
 
5051
  (eval $java_link) 2>&5
 
5052
  ac_status=$?
 
5053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5054
  (exit $ac_status); } && test -s conftest.class; then
 
5055
   rm -rf conftest*
 
5056
   ac_cv_prog_javac_ver_1_5=yes
 
5057
else
 
5058
   echo "configure: failed program was:" 1>&5
 
5059
   cat conftest.java 1>&5
 
5060
   echo "configure: PATH was $PATH" 1>&5
 
5061
  rm -rf conftest*
 
5062
  ac_cv_prog_javac_ver_1_5=no
 
5063
fi
 
5064
rm -f conftest*
 
5065
fi
 
5066
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_ver_1_5" >&5
 
5067
echo "${ECHO_T}$ac_cv_prog_javac_ver_1_5" >&6
 
5068
  if test $ac_cv_prog_javac_ver_1_5 = no; then
 
5069
    unset -v JAVAC
 
5070
  fi
 
5071
fi
 
5072
if test -n "$JAVAC"; then
 
5073
 
 
5074
  :
 
5075
fi
 
5076
 
 
5077
for ac_prog in make gmake
 
5078
do
 
5079
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5080
set dummy $ac_prog; ac_word=$2
 
5081
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5082
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5083
if test "${ac_cv_prog_make_command+set}" = set; then
 
5084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5085
else
 
5086
  if test -n "$make_command"; then
 
5087
  ac_cv_prog_make_command="$make_command" # Let the user override the test.
 
5088
else
 
5089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5090
for as_dir in $PATH
 
5091
do
 
5092
  IFS=$as_save_IFS
 
5093
  test -z "$as_dir" && as_dir=.
 
5094
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5095
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5096
    ac_cv_prog_make_command="$ac_prog"
 
5097
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5098
    break 2
 
5099
  fi
 
5100
done
 
5101
done
 
5102
 
 
5103
fi
 
5104
fi
 
5105
make_command=$ac_cv_prog_make_command
 
5106
if test -n "$make_command"; then
 
5107
  echo "$as_me:$LINENO: result: $make_command" >&5
 
5108
echo "${ECHO_T}$make_command" >&6
 
5109
else
 
5110
  echo "$as_me:$LINENO: result: no" >&5
 
5111
echo "${ECHO_T}no" >&6
 
5112
fi
 
5113
 
 
5114
  test -n "$make_command" && break
 
5115
done
 
5116
test -n "$make_command" || make_command="false"
 
5117
 
 
5118
 
 
5119
 
 
5120
if test "$GCC" = yes; then
 
5121
  test_c_compiler="{gnuc, undefined}"
 
5122
else
 
5123
  test_c_compiler="undefined"
 
5124
fi
 
5125
 
 
5126
 
 
5127
          ac_config_files="$ac_config_files conf_vars"
 
5128
cat >confcache <<\_ACEOF
 
5129
# This file is a shell script that caches the results of configure
 
5130
# tests run on this system so they can be shared between configure
 
5131
# scripts and configure runs, see configure's option --config-cache.
 
5132
# It is not useful on other systems.  If it contains results you don't
 
5133
# want to keep, you may remove or edit it.
 
5134
#
 
5135
# config.status only pays attention to the cache file if you give it
 
5136
# the --recheck option to rerun configure.
 
5137
#
 
5138
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
5139
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
5140
# following values.
 
5141
 
 
5142
_ACEOF
 
5143
 
 
5144
# The following way of writing the cache mishandles newlines in values,
 
5145
# but we know of no workaround that is simple, portable, and efficient.
 
5146
# So, don't put newlines in cache variables' values.
 
5147
# Ultrix sh set writes to stderr and can't be redirected directly,
 
5148
# and sets the high bit in the cache file unless we assign to the vars.
 
5149
{
 
5150
  (set) 2>&1 |
 
5151
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
5152
    *ac_space=\ *)
 
5153
      # `set' does not quote correctly, so add quotes (double-quote
 
5154
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
5155
      sed -n \
 
5156
        "s/'/'\\\\''/g;
 
5157
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
5158
      ;;
 
5159
    *)
 
5160
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
5161
      sed -n \
 
5162
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
5163
      ;;
 
5164
    esac;
 
5165
} |
 
5166
  sed '
 
5167
     t clear
 
5168
     : clear
 
5169
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
5170
     t end
 
5171
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
5172
     : end' >>confcache
 
5173
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
5174
  if test -w $cache_file; then
 
5175
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
5176
    cat confcache >$cache_file
 
5177
  else
 
5178
    echo "not updating unwritable cache $cache_file"
 
5179
  fi
 
5180
fi
 
5181
rm -f confcache
 
5182
 
 
5183
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
5184
# Let make expand exec_prefix.
 
5185
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
5186
 
 
5187
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
5188
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
5189
# trailing colons and then remove the whole line if VPATH becomes empty
 
5190
# (actually we leave an empty line to preserve line numbers).
 
5191
if test "x$srcdir" = x.; then
 
5192
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
5193
s/:*\$(srcdir):*/:/;
 
5194
s/:*\${srcdir}:*/:/;
 
5195
s/:*@srcdir@:*/:/;
 
5196
s/^\([^=]*=[     ]*\):*/\1/;
 
5197
s/:*$//;
 
5198
s/^[^=]*=[       ]*$//;
 
5199
}'
 
5200
fi
 
5201
 
 
5202
# Transform confdefs.h into DEFS.
 
5203
# Protect against shell expansion while executing Makefile rules.
 
5204
# Protect against Makefile macro expansion.
 
5205
#
 
5206
# If the first sed substitution is executed (which looks for macros that
 
5207
# take arguments), then we branch to the quote section.  Otherwise,
 
5208
# look for a macro that doesn't take arguments.
 
5209
cat >confdef2opt.sed <<\_ACEOF
 
5210
t clear
 
5211
: clear
 
5212
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
5213
t quote
 
5214
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
5215
t quote
 
5216
d
 
5217
: quote
 
5218
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
5219
s,\[,\\&,g
 
5220
s,\],\\&,g
 
5221
s,\$,$$,g
 
5222
p
 
5223
_ACEOF
 
5224
# We use echo to avoid assuming a particular line-breaking character.
 
5225
# The extra dot is to prevent the shell from consuming trailing
 
5226
# line-breaks from the sub-command output.  A line-break within
 
5227
# single-quotes doesn't work because, if this script is created in a
 
5228
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
5229
# would break.
 
5230
ac_LF_and_DOT=`echo; echo .`
 
5231
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
5232
rm -f confdef2opt.sed
 
5233
 
 
5234
 
 
5235
ac_libobjs=
 
5236
ac_ltlibobjs=
 
5237
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
5238
  # 1. Remove the extension, and $U if already installed.
 
5239
  ac_i=`echo "$ac_i" |
 
5240
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
5241
  # 2. Add them.
 
5242
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
5243
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
5244
done
 
5245
LIBOBJS=$ac_libobjs
 
5246
 
 
5247
LTLIBOBJS=$ac_ltlibobjs
 
5248
 
 
5249
 
 
5250
 
 
5251
: ${CONFIG_STATUS=./config.status}
 
5252
ac_clean_files_save=$ac_clean_files
 
5253
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
5254
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
5255
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
5256
cat >$CONFIG_STATUS <<_ACEOF
 
5257
#! $SHELL
 
5258
# Generated by $as_me.
 
5259
# Run this file to recreate the current configuration.
 
5260
# Compiler output produced by configure, useful for debugging
 
5261
# configure, is in config.log if it exists.
 
5262
 
 
5263
debug=false
 
5264
ac_cs_recheck=false
 
5265
ac_cs_silent=false
 
5266
SHELL=\${CONFIG_SHELL-$SHELL}
 
5267
_ACEOF
 
5268
 
 
5269
cat >>$CONFIG_STATUS <<\_ACEOF
 
5270
## --------------------- ##
 
5271
## M4sh Initialization.  ##
 
5272
## --------------------- ##
 
5273
 
 
5274
# Be Bourne compatible
 
5275
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
5276
  emulate sh
 
5277
  NULLCMD=:
 
5278
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
5279
  # is contrary to our usage.  Disable this feature.
 
5280
  alias -g '${1+"$@"}'='"$@"'
 
5281
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
5282
  set -o posix
 
5283
fi
 
5284
DUALCASE=1; export DUALCASE # for MKS sh
 
5285
 
 
5286
# Support unset when possible.
 
5287
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5288
  as_unset=unset
 
5289
else
 
5290
  as_unset=false
 
5291
fi
 
5292
 
 
5293
 
 
5294
# Work around bugs in pre-3.0 UWIN ksh.
 
5295
$as_unset ENV MAIL MAILPATH
 
5296
PS1='$ '
 
5297
PS2='> '
 
5298
PS4='+ '
 
5299
 
 
5300
# NLS nuisances.
 
5301
for as_var in \
 
5302
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
5303
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
5304
  LC_TELEPHONE LC_TIME
 
5305
do
 
5306
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
5307
    eval $as_var=C; export $as_var
 
5308
  else
 
5309
    $as_unset $as_var
 
5310
  fi
 
5311
done
 
5312
 
 
5313
# Required to use basename.
 
5314
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5315
  as_expr=expr
 
5316
else
 
5317
  as_expr=false
 
5318
fi
 
5319
 
 
5320
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
5321
  as_basename=basename
 
5322
else
 
5323
  as_basename=false
 
5324
fi
 
5325
 
 
5326
 
 
5327
# Name of the executable.
 
5328
as_me=`$as_basename "$0" ||
 
5329
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
5330
         X"$0" : 'X\(//\)$' \| \
 
5331
         X"$0" : 'X\(/\)$' \| \
 
5332
         .     : '\(.\)' 2>/dev/null ||
 
5333
echo X/"$0" |
 
5334
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
5335
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
5336
          /^X\/\(\/\).*/{ s//\1/; q; }
 
5337
          s/.*/./; q'`
 
5338
 
 
5339
 
 
5340
# PATH needs CR, and LINENO needs CR and PATH.
 
5341
# Avoid depending upon Character Ranges.
 
5342
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
5343
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
5344
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
5345
as_cr_digits='0123456789'
 
5346
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
5347
 
 
5348
# The user is always right.
 
5349
if test "${PATH_SEPARATOR+set}" != set; then
 
5350
  echo "#! /bin/sh" >conf$$.sh
 
5351
  echo  "exit 0"   >>conf$$.sh
 
5352
  chmod +x conf$$.sh
 
5353
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
5354
    PATH_SEPARATOR=';'
 
5355
  else
 
5356
    PATH_SEPARATOR=:
 
5357
  fi
 
5358
  rm -f conf$$.sh
 
5359
fi
 
5360
 
 
5361
 
 
5362
  as_lineno_1=$LINENO
 
5363
  as_lineno_2=$LINENO
 
5364
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
5365
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
5366
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
5367
  # Find who we are.  Look in the path if we contain no path at all
 
5368
  # relative or not.
 
5369
  case $0 in
 
5370
    *[\\/]* ) as_myself=$0 ;;
 
5371
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5372
for as_dir in $PATH
 
5373
do
 
5374
  IFS=$as_save_IFS
 
5375
  test -z "$as_dir" && as_dir=.
 
5376
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
5377
done
 
5378
 
 
5379
       ;;
 
5380
  esac
 
5381
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
5382
  # in which case we are not to be found in the path.
 
5383
  if test "x$as_myself" = x; then
 
5384
    as_myself=$0
 
5385
  fi
 
5386
  if test ! -f "$as_myself"; then
 
5387
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
5388
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
5389
   { (exit 1); exit 1; }; }
 
5390
  fi
 
5391
  case $CONFIG_SHELL in
 
5392
  '')
 
5393
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5394
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
5395
do
 
5396
  IFS=$as_save_IFS
 
5397
  test -z "$as_dir" && as_dir=.
 
5398
  for as_base in sh bash ksh sh5; do
 
5399
         case $as_dir in
 
5400
         /*)
 
5401
           if ("$as_dir/$as_base" -c '
 
5402
  as_lineno_1=$LINENO
 
5403
  as_lineno_2=$LINENO
 
5404
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
5405
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
5406
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
5407
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
5408
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
5409
             CONFIG_SHELL=$as_dir/$as_base
 
5410
             export CONFIG_SHELL
 
5411
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
5412
           fi;;
 
5413
         esac
 
5414
       done
 
5415
done
 
5416
;;
 
5417
  esac
 
5418
 
 
5419
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
5420
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
5421
  # line-number line before each line; the second 'sed' does the real
 
5422
  # work.  The second script uses 'N' to pair each line-number line
 
5423
  # with the numbered line, and appends trailing '-' during
 
5424
  # substitution so that $LINENO is not a special case at line end.
 
5425
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
5426
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
5427
  sed '=' <$as_myself |
 
5428
    sed '
 
5429
      N
 
5430
      s,$,-,
 
5431
      : loop
 
5432
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
5433
      t loop
 
5434
      s,-$,,
 
5435
      s,^['$as_cr_digits']*\n,,
 
5436
    ' >$as_me.lineno &&
 
5437
  chmod +x $as_me.lineno ||
 
5438
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
5439
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
5440
   { (exit 1); exit 1; }; }
 
5441
 
 
5442
  # Don't try to exec as it changes $[0], causing all sort of problems
 
5443
  # (the dirname of $[0] is not the place where we might find the
 
5444
  # original and so on.  Autoconf is especially sensible to this).
 
5445
  . ./$as_me.lineno
 
5446
  # Exit status is that of the last command.
 
5447
  exit
 
5448
}
 
5449
 
 
5450
 
 
5451
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
5452
  *c*,-n*) ECHO_N= ECHO_C='
 
5453
' ECHO_T='      ' ;;
 
5454
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
5455
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
5456
esac
 
5457
 
 
5458
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5459
  as_expr=expr
 
5460
else
 
5461
  as_expr=false
 
5462
fi
 
5463
 
 
5464
rm -f conf$$ conf$$.exe conf$$.file
 
5465
echo >conf$$.file
 
5466
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
5467
  # We could just check for DJGPP; but this test a) works b) is more generic
 
5468
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
5469
  if test -f conf$$.exe; then
 
5470
    # Don't use ln at all; we don't have any links
 
5471
    as_ln_s='cp -p'
 
5472
  else
 
5473
    as_ln_s='ln -s'
 
5474
  fi
 
5475
elif ln conf$$.file conf$$ 2>/dev/null; then
 
5476
  as_ln_s=ln
 
5477
else
 
5478
  as_ln_s='cp -p'
 
5479
fi
 
5480
rm -f conf$$ conf$$.exe conf$$.file
 
5481
 
 
5482
if mkdir -p . 2>/dev/null; then
 
5483
  as_mkdir_p=:
 
5484
else
 
5485
  test -d ./-p && rmdir ./-p
 
5486
  as_mkdir_p=false
 
5487
fi
 
5488
 
 
5489
as_executable_p="test -f"
 
5490
 
 
5491
# Sed expression to map a string onto a valid CPP name.
 
5492
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
5493
 
 
5494
# Sed expression to map a string onto a valid variable name.
 
5495
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
5496
 
 
5497
 
 
5498
# IFS
 
5499
# We need space, tab and new line, in precisely that order.
 
5500
as_nl='
 
5501
'
 
5502
IFS="   $as_nl"
 
5503
 
 
5504
# CDPATH.
 
5505
$as_unset CDPATH
 
5506
 
 
5507
exec 6>&1
 
5508
 
 
5509
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
5510
# report actual input values of CONFIG_FILES etc. instead of their
 
5511
# values after options handling.  Logging --version etc. is OK.
 
5512
exec 5>>config.log
 
5513
{
 
5514
  echo
 
5515
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
5516
## Running $as_me. ##
 
5517
_ASBOX
 
5518
} >&5
 
5519
cat >&5 <<_CSEOF
 
5520
 
 
5521
This file was extended by $as_me, which was
 
5522
generated by GNU Autoconf 2.59.  Invocation command line was
 
5523
 
 
5524
  CONFIG_FILES    = $CONFIG_FILES
 
5525
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
5526
  CONFIG_LINKS    = $CONFIG_LINKS
 
5527
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
5528
  $ $0 $@
 
5529
 
 
5530
_CSEOF
 
5531
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
5532
echo >&5
 
5533
_ACEOF
 
5534
 
 
5535
# Files that config.status was made for.
 
5536
if test -n "$ac_config_files"; then
 
5537
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
5538
fi
 
5539
 
 
5540
if test -n "$ac_config_headers"; then
 
5541
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
5542
fi
 
5543
 
 
5544
if test -n "$ac_config_links"; then
 
5545
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
5546
fi
 
5547
 
 
5548
if test -n "$ac_config_commands"; then
 
5549
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
5550
fi
 
5551
 
 
5552
cat >>$CONFIG_STATUS <<\_ACEOF
 
5553
 
 
5554
ac_cs_usage="\
 
5555
\`$as_me' instantiates files from templates according to the
 
5556
current configuration.
 
5557
 
 
5558
Usage: $0 [OPTIONS] [FILE]...
 
5559
 
 
5560
  -h, --help       print this help, then exit
 
5561
  -V, --version    print version number, then exit
 
5562
  -q, --quiet      do not print progress messages
 
5563
  -d, --debug      don't remove temporary files
 
5564
      --recheck    update $as_me by reconfiguring in the same conditions
 
5565
  --file=FILE[:TEMPLATE]
 
5566
                   instantiate the configuration file FILE
 
5567
 
 
5568
Configuration files:
 
5569
$config_files
 
5570
 
 
5571
Report bugs to <bug-autoconf@gnu.org>."
 
5572
_ACEOF
 
5573
 
 
5574
cat >>$CONFIG_STATUS <<_ACEOF
 
5575
ac_cs_version="\\
 
5576
config.status
 
5577
configured by $0, generated by GNU Autoconf 2.59,
 
5578
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
5579
 
 
5580
Copyright (C) 2003 Free Software Foundation, Inc.
 
5581
This config.status script is free software; the Free Software Foundation
 
5582
gives unlimited permission to copy, distribute and modify it."
 
5583
srcdir=$srcdir
 
5584
_ACEOF
 
5585
 
 
5586
cat >>$CONFIG_STATUS <<\_ACEOF
 
5587
# If no file are specified by the user, then we need to provide default
 
5588
# value.  By we need to know if files were specified by the user.
 
5589
ac_need_defaults=:
 
5590
while test $# != 0
 
5591
do
 
5592
  case $1 in
 
5593
  --*=*)
 
5594
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
5595
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
5596
    ac_shift=:
 
5597
    ;;
 
5598
  -*)
 
5599
    ac_option=$1
 
5600
    ac_optarg=$2
 
5601
    ac_shift=shift
 
5602
    ;;
 
5603
  *) # This is not an option, so the user has probably given explicit
 
5604
     # arguments.
 
5605
     ac_option=$1
 
5606
     ac_need_defaults=false;;
 
5607
  esac
 
5608
 
 
5609
  case $ac_option in
 
5610
  # Handling of the options.
 
5611
_ACEOF
 
5612
cat >>$CONFIG_STATUS <<\_ACEOF
 
5613
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
5614
    ac_cs_recheck=: ;;
 
5615
  --version | --vers* | -V )
 
5616
    echo "$ac_cs_version"; exit 0 ;;
 
5617
  --he | --h)
 
5618
    # Conflict between --help and --header
 
5619
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
5620
Try \`$0 --help' for more information." >&5
 
5621
echo "$as_me: error: ambiguous option: $1
 
5622
Try \`$0 --help' for more information." >&2;}
 
5623
   { (exit 1); exit 1; }; };;
 
5624
  --help | --hel | -h )
 
5625
    echo "$ac_cs_usage"; exit 0 ;;
 
5626
  --debug | --d* | -d )
 
5627
    debug=: ;;
 
5628
  --file | --fil | --fi | --f )
 
5629
    $ac_shift
 
5630
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
5631
    ac_need_defaults=false;;
 
5632
  --header | --heade | --head | --hea )
 
5633
    $ac_shift
 
5634
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
5635
    ac_need_defaults=false;;
 
5636
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
5637
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
5638
    ac_cs_silent=: ;;
 
5639
 
 
5640
  # This is an error.
 
5641
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
5642
Try \`$0 --help' for more information." >&5
 
5643
echo "$as_me: error: unrecognized option: $1
 
5644
Try \`$0 --help' for more information." >&2;}
 
5645
   { (exit 1); exit 1; }; } ;;
 
5646
 
 
5647
  *) ac_config_targets="$ac_config_targets $1" ;;
 
5648
 
 
5649
  esac
 
5650
  shift
 
5651
done
 
5652
 
 
5653
ac_configure_extra_args=
 
5654
 
 
5655
if $ac_cs_silent; then
 
5656
  exec 6>/dev/null
 
5657
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
5658
fi
 
5659
 
 
5660
_ACEOF
 
5661
cat >>$CONFIG_STATUS <<_ACEOF
 
5662
if \$ac_cs_recheck; then
 
5663
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
5664
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5665
fi
 
5666
 
 
5667
_ACEOF
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
 
 
5673
cat >>$CONFIG_STATUS <<\_ACEOF
 
5674
for ac_config_target in $ac_config_targets
 
5675
do
 
5676
  case "$ac_config_target" in
 
5677
  # Handling of arguments.
 
5678
  "conf_vars" ) CONFIG_FILES="$CONFIG_FILES conf_vars" ;;
 
5679
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
5680
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
5681
   { (exit 1); exit 1; }; };;
 
5682
  esac
 
5683
done
 
5684
 
 
5685
# If the user did not use the arguments to specify the items to instantiate,
 
5686
# then the envvar interface is used.  Set only those that are not.
 
5687
# We use the long form for the default assignment because of an extremely
 
5688
# bizarre bug on SunOS 4.1.3.
 
5689
if $ac_need_defaults; then
 
5690
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
5691
fi
 
5692
 
 
5693
# Have a temporary directory for convenience.  Make it in the build tree
 
5694
# simply because there is no reason to put it here, and in addition,
 
5695
# creating and moving files from /tmp can sometimes cause problems.
 
5696
# Create a temporary directory, and hook for its removal unless debugging.
 
5697
$debug ||
 
5698
{
 
5699
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
5700
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
5701
}
 
5702
 
 
5703
# Create a (secure) tmp directory for tmp files.
 
5704
 
 
5705
{
 
5706
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
5707
  test -n "$tmp" && test -d "$tmp"
 
5708
}  ||
 
5709
{
 
5710
  tmp=./confstat$$-$RANDOM
 
5711
  (umask 077 && mkdir $tmp)
 
5712
} ||
 
5713
{
 
5714
   echo "$me: cannot create a temporary directory in ." >&2
 
5715
   { (exit 1); exit 1; }
 
5716
}
 
5717
 
 
5718
_ACEOF
 
5719
 
 
5720
cat >>$CONFIG_STATUS <<_ACEOF
 
5721
 
 
5722
#
 
5723
# CONFIG_FILES section.
 
5724
#
 
5725
 
 
5726
# No need to generate the scripts if there are no CONFIG_FILES.
 
5727
# This happens for instance when ./config.status config.h
 
5728
if test -n "\$CONFIG_FILES"; then
 
5729
  # Protect against being on the right side of a sed subst in config.status.
 
5730
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
5731
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
5732
s,@SHELL@,$SHELL,;t t
 
5733
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
5734
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
5735
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
5736
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
5737
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
5738
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
5739
s,@exec_prefix@,$exec_prefix,;t t
 
5740
s,@prefix@,$prefix,;t t
 
5741
s,@program_transform_name@,$program_transform_name,;t t
 
5742
s,@bindir@,$bindir,;t t
 
5743
s,@sbindir@,$sbindir,;t t
 
5744
s,@libexecdir@,$libexecdir,;t t
 
5745
s,@datadir@,$datadir,;t t
 
5746
s,@sysconfdir@,$sysconfdir,;t t
 
5747
s,@sharedstatedir@,$sharedstatedir,;t t
 
5748
s,@localstatedir@,$localstatedir,;t t
 
5749
s,@libdir@,$libdir,;t t
 
5750
s,@includedir@,$includedir,;t t
 
5751
s,@oldincludedir@,$oldincludedir,;t t
 
5752
s,@infodir@,$infodir,;t t
 
5753
s,@mandir@,$mandir,;t t
 
5754
s,@build_alias@,$build_alias,;t t
 
5755
s,@host_alias@,$host_alias,;t t
 
5756
s,@target_alias@,$target_alias,;t t
 
5757
s,@DEFS@,$DEFS,;t t
 
5758
s,@ECHO_C@,$ECHO_C,;t t
 
5759
s,@ECHO_N@,$ECHO_N,;t t
 
5760
s,@ECHO_T@,$ECHO_T,;t t
 
5761
s,@LIBS@,$LIBS,;t t
 
5762
s,@build@,$build,;t t
 
5763
s,@build_cpu@,$build_cpu,;t t
 
5764
s,@build_vendor@,$build_vendor,;t t
 
5765
s,@build_os@,$build_os,;t t
 
5766
s,@host@,$host,;t t
 
5767
s,@host_cpu@,$host_cpu,;t t
 
5768
s,@host_vendor@,$host_vendor,;t t
 
5769
s,@host_os@,$host_os,;t t
 
5770
s,@CC@,$CC,;t t
 
5771
s,@CFLAGS@,$CFLAGS,;t t
 
5772
s,@LDFLAGS@,$LDFLAGS,;t t
 
5773
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
5774
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
5775
s,@EXEEXT@,$EXEEXT,;t t
 
5776
s,@OBJEXT@,$OBJEXT,;t t
 
5777
s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
 
5778
s,@CPP@,$CPP,;t t
 
5779
s,@EGREP@,$EGREP,;t t
 
5780
s,@SHLIB_LD@,$SHLIB_LD,;t t
 
5781
s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
 
5782
s,@SHLIB_LDLIBS@,$SHLIB_LDLIBS,;t t
 
5783
s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
 
5784
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
 
5785
s,@SHLIB_EXTRACT_ALL@,$SHLIB_EXTRACT_ALL,;t t
 
5786
s,@EI_CFLAGS@,$EI_CFLAGS,;t t
 
5787
s,@ERTS_CFLAGS@,$ERTS_CFLAGS,;t t
 
5788
s,@ERTS_LIBS@,$ERTS_LIBS,;t t
 
5789
s,@HCC@,$HCC,;t t
 
5790
s,@LD@,$LD,;t t
 
5791
s,@obj@,$obj,;t t
 
5792
s,@exe@,$exe,;t t
 
5793
s,@CROSSLDFLAGS@,$CROSSLDFLAGS,;t t
 
5794
s,@SSLEAY_ROOT@,$SSLEAY_ROOT,;t t
 
5795
s,@JAVAC@,$JAVAC,;t t
 
5796
s,@make_command@,$make_command,;t t
 
5797
s,@test_c_compiler@,$test_c_compiler,;t t
 
5798
s,@LIBOBJS@,$LIBOBJS,;t t
 
5799
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
5800
CEOF
 
5801
 
 
5802
_ACEOF
 
5803
 
 
5804
  cat >>$CONFIG_STATUS <<\_ACEOF
 
5805
  # Split the substitutions into bite-sized pieces for seds with
 
5806
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
5807
  ac_max_sed_lines=48
 
5808
  ac_sed_frag=1 # Number of current file.
 
5809
  ac_beg=1 # First line for current file.
 
5810
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
5811
  ac_more_lines=:
 
5812
  ac_sed_cmds=
 
5813
  while $ac_more_lines; do
 
5814
    if test $ac_beg -gt 1; then
 
5815
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
5816
    else
 
5817
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
5818
    fi
 
5819
    if test ! -s $tmp/subs.frag; then
 
5820
      ac_more_lines=false
 
5821
    else
 
5822
      # The purpose of the label and of the branching condition is to
 
5823
      # speed up the sed processing (if there are no `@' at all, there
 
5824
      # is no need to browse any of the substitutions).
 
5825
      # These are the two extra sed commands mentioned above.
 
5826
      (echo ':t
 
5827
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
5828
      if test -z "$ac_sed_cmds"; then
 
5829
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
5830
      else
 
5831
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
5832
      fi
 
5833
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
5834
      ac_beg=$ac_end
 
5835
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
5836
    fi
 
5837
  done
 
5838
  if test -z "$ac_sed_cmds"; then
 
5839
    ac_sed_cmds=cat
 
5840
  fi
 
5841
fi # test -n "$CONFIG_FILES"
 
5842
 
 
5843
_ACEOF
 
5844
cat >>$CONFIG_STATUS <<\_ACEOF
 
5845
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
5846
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
5847
  case $ac_file in
 
5848
  - | *:- | *:-:* ) # input from stdin
 
5849
        cat >$tmp/stdin
 
5850
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
5851
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5852
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
5853
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5854
  * )   ac_file_in=$ac_file.in ;;
 
5855
  esac
 
5856
 
 
5857
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
5858
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
5859
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5860
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
5861
         X"$ac_file" : 'X\(//\)$' \| \
 
5862
         X"$ac_file" : 'X\(/\)' \| \
 
5863
         .     : '\(.\)' 2>/dev/null ||
 
5864
echo X"$ac_file" |
 
5865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5867
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5868
          /^X\(\/\).*/{ s//\1/; q; }
 
5869
          s/.*/./; q'`
 
5870
  { if $as_mkdir_p; then
 
5871
    mkdir -p "$ac_dir"
 
5872
  else
 
5873
    as_dir="$ac_dir"
 
5874
    as_dirs=
 
5875
    while test ! -d "$as_dir"; do
 
5876
      as_dirs="$as_dir $as_dirs"
 
5877
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
5878
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5879
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
5880
         X"$as_dir" : 'X\(//\)$' \| \
 
5881
         X"$as_dir" : 'X\(/\)' \| \
 
5882
         .     : '\(.\)' 2>/dev/null ||
 
5883
echo X"$as_dir" |
 
5884
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5885
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5886
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5887
          /^X\(\/\).*/{ s//\1/; q; }
 
5888
          s/.*/./; q'`
 
5889
    done
 
5890
    test ! -n "$as_dirs" || mkdir $as_dirs
 
5891
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
5892
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
5893
   { (exit 1); exit 1; }; }; }
 
5894
 
 
5895
  ac_builddir=.
 
5896
 
 
5897
if test "$ac_dir" != .; then
 
5898
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
5899
  # A "../" for each directory in $ac_dir_suffix.
 
5900
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
5901
else
 
5902
  ac_dir_suffix= ac_top_builddir=
 
5903
fi
 
5904
 
 
5905
case $srcdir in
 
5906
  .)  # No --srcdir option.  We are building in place.
 
5907
    ac_srcdir=.
 
5908
    if test -z "$ac_top_builddir"; then
 
5909
       ac_top_srcdir=.
 
5910
    else
 
5911
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
5912
    fi ;;
 
5913
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
5914
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5915
    ac_top_srcdir=$srcdir ;;
 
5916
  *) # Relative path.
 
5917
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
5918
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
5919
esac
 
5920
 
 
5921
# Do not use `cd foo && pwd` to compute absolute paths, because
 
5922
# the directories may not exist.
 
5923
case `pwd` in
 
5924
.) ac_abs_builddir="$ac_dir";;
 
5925
*)
 
5926
  case "$ac_dir" in
 
5927
  .) ac_abs_builddir=`pwd`;;
 
5928
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
5929
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
5930
  esac;;
 
5931
esac
 
5932
case $ac_abs_builddir in
 
5933
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5934
*)
 
5935
  case ${ac_top_builddir}. in
 
5936
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
5937
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5938
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
5939
  esac;;
 
5940
esac
 
5941
case $ac_abs_builddir in
 
5942
.) ac_abs_srcdir=$ac_srcdir;;
 
5943
*)
 
5944
  case $ac_srcdir in
 
5945
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
5946
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
5947
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
5948
  esac;;
 
5949
esac
 
5950
case $ac_abs_builddir in
 
5951
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
5952
*)
 
5953
  case $ac_top_srcdir in
 
5954
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
5955
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
5956
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
5957
  esac;;
 
5958
esac
 
5959
 
 
5960
 
 
5961
 
 
5962
  if test x"$ac_file" != x-; then
 
5963
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
5964
echo "$as_me: creating $ac_file" >&6;}
 
5965
    rm -f "$ac_file"
 
5966
  fi
 
5967
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
5968
  # use $as_me), people would be surprised to read:
 
5969
  #    /* config.h.  Generated by config.status.  */
 
5970
  if test x"$ac_file" = x-; then
 
5971
    configure_input=
 
5972
  else
 
5973
    configure_input="$ac_file.  "
 
5974
  fi
 
5975
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
5976
                                     sed 's,.*/,,'` by configure."
 
5977
 
 
5978
  # First look for the input files in the build tree, otherwise in the
 
5979
  # src tree.
 
5980
  ac_file_inputs=`IFS=:
 
5981
    for f in $ac_file_in; do
 
5982
      case $f in
 
5983
      -) echo $tmp/stdin ;;
 
5984
      [\\/$]*)
 
5985
         # Absolute (can't be DOS-style, as IFS=:)
 
5986
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
5987
echo "$as_me: error: cannot find input file: $f" >&2;}
 
5988
   { (exit 1); exit 1; }; }
 
5989
         echo "$f";;
 
5990
      *) # Relative
 
5991
         if test -f "$f"; then
 
5992
           # Build tree
 
5993
           echo "$f"
 
5994
         elif test -f "$srcdir/$f"; then
 
5995
           # Source tree
 
5996
           echo "$srcdir/$f"
 
5997
         else
 
5998
           # /dev/null tree
 
5999
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6000
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6001
   { (exit 1); exit 1; }; }
 
6002
         fi;;
 
6003
      esac
 
6004
    done` || { (exit 1); exit 1; }
 
6005
_ACEOF
 
6006
cat >>$CONFIG_STATUS <<_ACEOF
 
6007
  sed "$ac_vpsub
 
6008
$extrasub
 
6009
_ACEOF
 
6010
cat >>$CONFIG_STATUS <<\_ACEOF
 
6011
:t
 
6012
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
6013
s,@configure_input@,$configure_input,;t t
 
6014
s,@srcdir@,$ac_srcdir,;t t
 
6015
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
6016
s,@top_srcdir@,$ac_top_srcdir,;t t
 
6017
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
6018
s,@builddir@,$ac_builddir,;t t
 
6019
s,@abs_builddir@,$ac_abs_builddir,;t t
 
6020
s,@top_builddir@,$ac_top_builddir,;t t
 
6021
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
6022
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
6023
  rm -f $tmp/stdin
 
6024
  if test x"$ac_file" != x-; then
 
6025
    mv $tmp/out $ac_file
 
6026
  else
 
6027
    cat $tmp/out
 
6028
    rm -f $tmp/out
 
6029
  fi
 
6030
 
 
6031
done
 
6032
_ACEOF
 
6033
 
 
6034
cat >>$CONFIG_STATUS <<\_ACEOF
 
6035
 
 
6036
{ (exit 0); exit 0; }
 
6037
_ACEOF
 
6038
chmod +x $CONFIG_STATUS
 
6039
ac_clean_files=$ac_clean_files_save
 
6040
 
 
6041
 
 
6042
# configure is writing to config.log, and then calls config.status.
 
6043
# config.status does its own redirection, appending to config.log.
 
6044
# Unfortunately, on DOS this fails, as config.log is still kept open
 
6045
# by configure, so config.status won't be able to write to it; its
 
6046
# output is simply discarded.  So we exec the FD to /dev/null,
 
6047
# effectively closing config.log, so it can be properly (re)opened and
 
6048
# appended to by config.status.  When coming back to configure, we
 
6049
# need to make the FD available again.
 
6050
if test "$no_create" != yes; then
 
6051
  ac_cs_success=:
 
6052
  ac_config_status_args=
 
6053
  test "$silent" = yes &&
 
6054
    ac_config_status_args="$ac_config_status_args --quiet"
 
6055
  exec 5>/dev/null
 
6056
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
6057
  exec 5>>config.log
 
6058
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
6059
  # would make configure fail if this is the last instruction.
 
6060
  $ac_cs_success || { (exit 1); exit 1; }
 
6061
fi
 
6062