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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [configure] - Blame information for rev 258

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3 225 jeremybenn
# Generated by GNU Autoconf 2.59.
4 131 jeremybenn
#
5 225 jeremybenn
# Copyright (C) 2003 Free Software Foundation, Inc.
6 131 jeremybenn
# 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 225 jeremybenn
# Be Bourne compatible
13 131 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16 225 jeremybenn
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 131 jeremybenn
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19 225 jeremybenn
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21 131 jeremybenn
fi
22 225 jeremybenn
DUALCASE=1; export DUALCASE # for MKS sh
23 131 jeremybenn
 
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 225 jeremybenn
$as_unset ENV MAIL MAILPATH
34 131 jeremybenn
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39 225 jeremybenn
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 131 jeremybenn
 
51
# Required to use basename.
52 225 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1; then
53 131 jeremybenn
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58 225 jeremybenn
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 131 jeremybenn
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66 225 jeremybenn
as_me=`$as_basename "$0" ||
67 131 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69 225 jeremybenn
         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 131 jeremybenn
 
77
 
78 225 jeremybenn
# 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 131 jeremybenn
 
86 225 jeremybenn
# 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 131 jeremybenn
fi
98
 
99
 
100 225 jeremybenn
  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 131 jeremybenn
 
117 225 jeremybenn
       ;;
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 131 jeremybenn
    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 225 jeremybenn
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137 131 jeremybenn
         /*)
138 225 jeremybenn
           if ("$as_dir/$as_base" -c '
139 131 jeremybenn
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141 225 jeremybenn
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 131 jeremybenn
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143 225 jeremybenn
  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 131 jeremybenn
 
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 225 jeremybenn
  # 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 131 jeremybenn
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 225 jeremybenn
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165 131 jeremybenn
    sed '
166
      N
167 225 jeremybenn
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 131 jeremybenn
      t loop
171 225 jeremybenn
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173 131 jeremybenn
    ' >$as_me.lineno &&
174 225 jeremybenn
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 131 jeremybenn
   { (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 225 jeremybenn
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182 131 jeremybenn
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187 225 jeremybenn
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 213 jeremybenn
 
194 225 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1; then
195 131 jeremybenn
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201 225 jeremybenn
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 213 jeremybenn
    as_ln_s='ln -s'
210 131 jeremybenn
  fi
211 225 jeremybenn
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213 131 jeremybenn
else
214
  as_ln_s='cp -p'
215
fi
216 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.file
217 131 jeremybenn
 
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 225 jeremybenn
as_executable_p="test -f"
226 131 jeremybenn
 
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 225 jeremybenn
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239 131 jeremybenn
 
240 225 jeremybenn
# CDPATH.
241
$as_unset CDPATH
242 131 jeremybenn
 
243 225 jeremybenn
 
244 131 jeremybenn
# 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 225 jeremybenn
exec 6>&1
250
 
251 131 jeremybenn
#
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 225 jeremybenn
# 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 131 jeremybenn
# Identity of this package.
268
PACKAGE_NAME=
269
PACKAGE_TARNAME=
270
PACKAGE_VERSION=
271
PACKAGE_STRING=
272
PACKAGE_BUGREPORT=
273
 
274
ac_unique_file="main.c"
275 225 jeremybenn
ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 131 jeremybenn
# Factoring default headers for most tests.
277
ac_includes_default="\
278
#include 
279 225 jeremybenn
#if HAVE_SYS_TYPES_H
280 131 jeremybenn
# include 
281
#endif
282 225 jeremybenn
#if HAVE_SYS_STAT_H
283 131 jeremybenn
# include 
284
#endif
285 225 jeremybenn
#if STDC_HEADERS
286 131 jeremybenn
# include 
287
# include 
288
#else
289 225 jeremybenn
# if HAVE_STDLIB_H
290 131 jeremybenn
#  include 
291
# endif
292
#endif
293 225 jeremybenn
#if HAVE_STRING_H
294
# if !STDC_HEADERS && HAVE_MEMORY_H
295 131 jeremybenn
#  include 
296
# endif
297
# include 
298
#endif
299 225 jeremybenn
#if HAVE_STRINGS_H
300 131 jeremybenn
# include 
301
#endif
302 225 jeremybenn
#if HAVE_INTTYPES_H
303 131 jeremybenn
# include 
304 225 jeremybenn
#else
305
# if HAVE_STDINT_H
306
#  include 
307
# endif
308 131 jeremybenn
#endif
309 225 jeremybenn
#if HAVE_UNISTD_H
310 131 jeremybenn
# include 
311
#endif"
312
 
313 225 jeremybenn
ac_subdirs_all="$ac_subdirs_all gdbtk"
314
ac_subdirs_all="$ac_subdirs_all multi-ice"
315
ac_subdirs_all="$ac_subdirs_all gdbserver"
316
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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs TARGET_OBS AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 131 jeremybenn
ac_subst_files='host_makefile_frag'
318
 
319
# Initialize some variables set by options.
320
ac_init_help=
321
ac_init_version=false
322
# The variables have the same names as the options, with
323
# dashes changed to underlines.
324
cache_file=/dev/null
325
exec_prefix=NONE
326
no_create=
327
no_recursion=
328
prefix=NONE
329
program_prefix=NONE
330
program_suffix=NONE
331
program_transform_name=s,x,x,
332
silent=
333
site=
334
srcdir=
335
verbose=
336
x_includes=NONE
337
x_libraries=NONE
338
 
339
# Installation directory options.
340
# These are left unexpanded so users can "make install exec_prefix=/foo"
341
# and all the variables that are supposed to be based on exec_prefix
342
# by default will actually change.
343
# Use braces instead of parens because sh, perl, etc. also accept them.
344
bindir='${exec_prefix}/bin'
345
sbindir='${exec_prefix}/sbin'
346
libexecdir='${exec_prefix}/libexec'
347 225 jeremybenn
datadir='${prefix}/share'
348 131 jeremybenn
sysconfdir='${prefix}/etc'
349
sharedstatedir='${prefix}/com'
350
localstatedir='${prefix}/var'
351 225 jeremybenn
libdir='${exec_prefix}/lib'
352 131 jeremybenn
includedir='${prefix}/include'
353
oldincludedir='/usr/include'
354 225 jeremybenn
infodir='${prefix}/info'
355
mandir='${prefix}/man'
356 131 jeremybenn
 
357
ac_prev=
358
for ac_option
359
do
360
  # If the previous option needs an argument, assign it.
361
  if test -n "$ac_prev"; then
362 225 jeremybenn
    eval "$ac_prev=\$ac_option"
363 131 jeremybenn
    ac_prev=
364
    continue
365
  fi
366
 
367 225 jeremybenn
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 131 jeremybenn
 
369
  # Accept the important Cygnus configure options, so we can diagnose typos.
370
 
371 225 jeremybenn
  case $ac_option in
372 131 jeremybenn
 
373
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374
    ac_prev=bindir ;;
375
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
    bindir=$ac_optarg ;;
377
 
378
  -build | --build | --buil | --bui | --bu)
379
    ac_prev=build_alias ;;
380
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381
    build_alias=$ac_optarg ;;
382
 
383
  -cache-file | --cache-file | --cache-fil | --cache-fi \
384
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385
    ac_prev=cache_file ;;
386
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388
    cache_file=$ac_optarg ;;
389
 
390
  --config-cache | -C)
391
    cache_file=config.cache ;;
392
 
393 225 jeremybenn
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 131 jeremybenn
    ac_prev=datadir ;;
395 225 jeremybenn
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396
  | --da=*)
397 131 jeremybenn
    datadir=$ac_optarg ;;
398
 
399
  -disable-* | --disable-*)
400 225 jeremybenn
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 131 jeremybenn
    # Reject names that are not valid shell variable names.
402 225 jeremybenn
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 131 jeremybenn
   { (exit 1); exit 1; }; }
405 225 jeremybenn
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406
    eval "enable_$ac_feature=no" ;;
407 131 jeremybenn
 
408
  -enable-* | --enable-*)
409 225 jeremybenn
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 131 jeremybenn
    # Reject names that are not valid shell variable names.
411 225 jeremybenn
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 131 jeremybenn
   { (exit 1); exit 1; }; }
414 225 jeremybenn
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415
    case $ac_option in
416
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
      *) ac_optarg=yes ;;
418 131 jeremybenn
    esac
419 225 jeremybenn
    eval "enable_$ac_feature='$ac_optarg'" ;;
420 131 jeremybenn
 
421
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423
  | --exec | --exe | --ex)
424
    ac_prev=exec_prefix ;;
425
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427
  | --exec=* | --exe=* | --ex=*)
428
    exec_prefix=$ac_optarg ;;
429
 
430
  -gas | --gas | --ga | --g)
431
    # Obsolete; use --with-gas.
432
    with_gas=yes ;;
433
 
434
  -help | --help | --hel | --he | -h)
435
    ac_init_help=long ;;
436
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437
    ac_init_help=recursive ;;
438
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439
    ac_init_help=short ;;
440
 
441
  -host | --host | --hos | --ho)
442
    ac_prev=host_alias ;;
443
  -host=* | --host=* | --hos=* | --ho=*)
444
    host_alias=$ac_optarg ;;
445
 
446
  -includedir | --includedir | --includedi | --included | --include \
447
  | --includ | --inclu | --incl | --inc)
448
    ac_prev=includedir ;;
449
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450
  | --includ=* | --inclu=* | --incl=* | --inc=*)
451
    includedir=$ac_optarg ;;
452
 
453
  -infodir | --infodir | --infodi | --infod | --info | --inf)
454
    ac_prev=infodir ;;
455
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456
    infodir=$ac_optarg ;;
457
 
458
  -libdir | --libdir | --libdi | --libd)
459
    ac_prev=libdir ;;
460
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461
    libdir=$ac_optarg ;;
462
 
463
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464
  | --libexe | --libex | --libe)
465
    ac_prev=libexecdir ;;
466
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467
  | --libexe=* | --libex=* | --libe=*)
468
    libexecdir=$ac_optarg ;;
469
 
470
  -localstatedir | --localstatedir | --localstatedi | --localstated \
471 225 jeremybenn
  | --localstate | --localstat | --localsta | --localst \
472
  | --locals | --local | --loca | --loc | --lo)
473 131 jeremybenn
    ac_prev=localstatedir ;;
474
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 225 jeremybenn
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 131 jeremybenn
    localstatedir=$ac_optarg ;;
478
 
479
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480
    ac_prev=mandir ;;
481
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
    mandir=$ac_optarg ;;
483
 
484
  -nfp | --nfp | --nf)
485
    # Obsolete; use --without-fp.
486
    with_fp=no ;;
487
 
488
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489
  | --no-cr | --no-c | -n)
490
    no_create=yes ;;
491
 
492
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494
    no_recursion=yes ;;
495
 
496
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498
  | --oldin | --oldi | --old | --ol | --o)
499
    ac_prev=oldincludedir ;;
500
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503
    oldincludedir=$ac_optarg ;;
504
 
505
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506
    ac_prev=prefix ;;
507
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508
    prefix=$ac_optarg ;;
509
 
510
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
511
  | --program-pre | --program-pr | --program-p)
512
    ac_prev=program_prefix ;;
513
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
514
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515
    program_prefix=$ac_optarg ;;
516
 
517
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
518
  | --program-suf | --program-su | --program-s)
519
    ac_prev=program_suffix ;;
520
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
521
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522
    program_suffix=$ac_optarg ;;
523
 
524
  -program-transform-name | --program-transform-name \
525
  | --program-transform-nam | --program-transform-na \
526
  | --program-transform-n | --program-transform- \
527
  | --program-transform | --program-transfor \
528
  | --program-transfo | --program-transf \
529
  | --program-trans | --program-tran \
530
  | --progr-tra | --program-tr | --program-t)
531
    ac_prev=program_transform_name ;;
532
  -program-transform-name=* | --program-transform-name=* \
533
  | --program-transform-nam=* | --program-transform-na=* \
534
  | --program-transform-n=* | --program-transform-=* \
535
  | --program-transform=* | --program-transfor=* \
536
  | --program-transfo=* | --program-transf=* \
537
  | --program-trans=* | --program-tran=* \
538
  | --progr-tra=* | --program-tr=* | --program-t=*)
539
    program_transform_name=$ac_optarg ;;
540
 
541
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542
  | -silent | --silent | --silen | --sile | --sil)
543
    silent=yes ;;
544
 
545
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546
    ac_prev=sbindir ;;
547
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548
  | --sbi=* | --sb=*)
549
    sbindir=$ac_optarg ;;
550
 
551
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553
  | --sharedst | --shareds | --shared | --share | --shar \
554
  | --sha | --sh)
555
    ac_prev=sharedstatedir ;;
556
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559
  | --sha=* | --sh=*)
560
    sharedstatedir=$ac_optarg ;;
561
 
562
  -site | --site | --sit)
563
    ac_prev=site ;;
564
  -site=* | --site=* | --sit=*)
565
    site=$ac_optarg ;;
566
 
567
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568
    ac_prev=srcdir ;;
569
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570
    srcdir=$ac_optarg ;;
571
 
572
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573
  | --syscon | --sysco | --sysc | --sys | --sy)
574
    ac_prev=sysconfdir ;;
575
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577
    sysconfdir=$ac_optarg ;;
578
 
579
  -target | --target | --targe | --targ | --tar | --ta | --t)
580
    ac_prev=target_alias ;;
581
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582
    target_alias=$ac_optarg ;;
583
 
584
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585
    verbose=yes ;;
586
 
587
  -version | --version | --versio | --versi | --vers | -V)
588
    ac_init_version=: ;;
589
 
590
  -with-* | --with-*)
591 225 jeremybenn
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 131 jeremybenn
    # Reject names that are not valid shell variable names.
593 225 jeremybenn
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594
      { echo "$as_me: error: invalid package name: $ac_package" >&2
595 131 jeremybenn
   { (exit 1); exit 1; }; }
596 225 jeremybenn
    ac_package=`echo $ac_package| sed 's/-/_/g'`
597
    case $ac_option in
598
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
      *) ac_optarg=yes ;;
600 131 jeremybenn
    esac
601 225 jeremybenn
    eval "with_$ac_package='$ac_optarg'" ;;
602 131 jeremybenn
 
603
  -without-* | --without-*)
604 225 jeremybenn
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 131 jeremybenn
    # Reject names that are not valid shell variable names.
606 225 jeremybenn
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607
      { echo "$as_me: error: invalid package name: $ac_package" >&2
608 131 jeremybenn
   { (exit 1); exit 1; }; }
609 225 jeremybenn
    ac_package=`echo $ac_package | sed 's/-/_/g'`
610
    eval "with_$ac_package=no" ;;
611 131 jeremybenn
 
612
  --x)
613
    # Obsolete; use --with-x.
614
    with_x=yes ;;
615
 
616
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617
  | --x-incl | --x-inc | --x-in | --x-i)
618
    ac_prev=x_includes ;;
619
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621
    x_includes=$ac_optarg ;;
622
 
623
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
624
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625
    ac_prev=x_libraries ;;
626
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628
    x_libraries=$ac_optarg ;;
629
 
630 225 jeremybenn
  -*) { echo "$as_me: error: unrecognized option: $ac_option
631 131 jeremybenn
Try \`$0 --help' for more information." >&2
632
   { (exit 1); exit 1; }; }
633
    ;;
634
 
635
  *=*)
636
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637
    # Reject names that are not valid shell variable names.
638
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 225 jeremybenn
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 131 jeremybenn
   { (exit 1); exit 1; }; }
641 225 jeremybenn
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642
    eval "$ac_envvar='$ac_optarg'"
643 131 jeremybenn
    export $ac_envvar ;;
644
 
645
  *)
646
    # FIXME: should be removed in autoconf 3.0.
647 225 jeremybenn
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 131 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 225 jeremybenn
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 131 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
    ;;
652
 
653
  esac
654
done
655
 
656
if test -n "$ac_prev"; then
657
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 225 jeremybenn
  { echo "$as_me: error: missing argument to $ac_option" >&2
659 131 jeremybenn
   { (exit 1); exit 1; }; }
660
fi
661
 
662 225 jeremybenn
# Be sure to have absolute paths.
663
for ac_var in exec_prefix prefix
664
do
665
  eval ac_val=$`echo $ac_var`
666
  case $ac_val in
667
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669
   { (exit 1); exit 1; }; };;
670 131 jeremybenn
  esac
671 225 jeremybenn
done
672 131 jeremybenn
 
673 225 jeremybenn
# Be sure to have absolute paths.
674
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675
              localstatedir libdir includedir oldincludedir infodir mandir
676 131 jeremybenn
do
677 225 jeremybenn
  eval ac_val=$`echo $ac_var`
678 131 jeremybenn
  case $ac_val in
679 225 jeremybenn
    [\\/$]* | ?:[\\/]* ) ;;
680
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681
   { (exit 1); exit 1; }; };;
682 131 jeremybenn
  esac
683
done
684
 
685
# There might be people who depend on the old broken behavior: `$host'
686
# used to hold the argument of --host etc.
687
# FIXME: To remove some day.
688
build=$build_alias
689
host=$host_alias
690
target=$target_alias
691
 
692
# FIXME: To remove some day.
693
if test "x$host_alias" != x; then
694
  if test "x$build_alias" = x; then
695
    cross_compiling=maybe
696 225 jeremybenn
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 131 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
698
  elif test "x$build_alias" != "x$host_alias"; then
699
    cross_compiling=yes
700
  fi
701
fi
702
 
703
ac_tool_prefix=
704
test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
 
706
test "$silent" = yes && exec 6>/dev/null
707
 
708
 
709
# Find the source files, if location was not specified.
710
if test -z "$srcdir"; then
711
  ac_srcdir_defaulted=yes
712 225 jeremybenn
  # Try the directory containing this script, then its parent.
713
  ac_confdir=`(dirname "$0") 2>/dev/null ||
714
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715
         X"$0" : 'X\(//\)[^/]' \| \
716
         X"$0" : 'X\(//\)$' \| \
717
         X"$0" : 'X\(/\)' \| \
718
         .     : '\(.\)' 2>/dev/null ||
719
echo X"$0" |
720
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722
          /^X\(\/\/\)$/{ s//\1/; q; }
723
          /^X\(\/\).*/{ s//\1/; q; }
724
          s/.*/./; q'`
725 131 jeremybenn
  srcdir=$ac_confdir
726 225 jeremybenn
  if test ! -r $srcdir/$ac_unique_file; then
727 131 jeremybenn
    srcdir=..
728
  fi
729
else
730
  ac_srcdir_defaulted=no
731
fi
732 225 jeremybenn
if test ! -r $srcdir/$ac_unique_file; then
733
  if test "$ac_srcdir_defaulted" = yes; then
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 131 jeremybenn
   { (exit 1); exit 1; }; }
736 225 jeremybenn
  else
737
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738
   { (exit 1); exit 1; }; }
739
  fi
740 213 jeremybenn
fi
741 225 jeremybenn
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 131 jeremybenn
   { (exit 1); exit 1; }; }
744 225 jeremybenn
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745
ac_env_build_alias_set=${build_alias+set}
746
ac_env_build_alias_value=$build_alias
747
ac_cv_env_build_alias_set=${build_alias+set}
748
ac_cv_env_build_alias_value=$build_alias
749
ac_env_host_alias_set=${host_alias+set}
750
ac_env_host_alias_value=$host_alias
751
ac_cv_env_host_alias_set=${host_alias+set}
752
ac_cv_env_host_alias_value=$host_alias
753
ac_env_target_alias_set=${target_alias+set}
754
ac_env_target_alias_value=$target_alias
755
ac_cv_env_target_alias_set=${target_alias+set}
756
ac_cv_env_target_alias_value=$target_alias
757
ac_env_CC_set=${CC+set}
758
ac_env_CC_value=$CC
759
ac_cv_env_CC_set=${CC+set}
760
ac_cv_env_CC_value=$CC
761
ac_env_CFLAGS_set=${CFLAGS+set}
762
ac_env_CFLAGS_value=$CFLAGS
763
ac_cv_env_CFLAGS_set=${CFLAGS+set}
764
ac_cv_env_CFLAGS_value=$CFLAGS
765
ac_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_env_LDFLAGS_value=$LDFLAGS
767
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768
ac_cv_env_LDFLAGS_value=$LDFLAGS
769
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_env_CPPFLAGS_value=$CPPFLAGS
771
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773
ac_env_CPP_set=${CPP+set}
774
ac_env_CPP_value=$CPP
775
ac_cv_env_CPP_set=${CPP+set}
776
ac_cv_env_CPP_value=$CPP
777 131 jeremybenn
 
778
#
779
# Report the --help message.
780
#
781
if test "$ac_init_help" = "long"; then
782
  # Omit some internal or obsolete options to make the list less imposing.
783
  # This message is too long to be a string in the A/UX 3.1 sh.
784
  cat <<_ACEOF
785
\`configure' configures this package to adapt to many kinds of systems.
786
 
787
Usage: $0 [OPTION]... [VAR=VALUE]...
788
 
789
To assign environment variables (e.g., CC, CFLAGS...), specify them as
790
VAR=VALUE.  See below for descriptions of some of the useful variables.
791
 
792
Defaults for the options are specified in brackets.
793
 
794
Configuration:
795
  -h, --help              display this help and exit
796
      --help=short        display options specific to this package
797
      --help=recursive    display the short help of all the included packages
798
  -V, --version           display version information and exit
799
  -q, --quiet, --silent   do not print \`checking...' messages
800
      --cache-file=FILE   cache test results in FILE [disabled]
801
  -C, --config-cache      alias for \`--cache-file=config.cache'
802
  -n, --no-create         do not create output files
803
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
804
 
805 225 jeremybenn
_ACEOF
806
 
807
  cat <<_ACEOF
808 131 jeremybenn
Installation directories:
809
  --prefix=PREFIX         install architecture-independent files in PREFIX
810 225 jeremybenn
                          [$ac_default_prefix]
811 131 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
812 225 jeremybenn
                          [PREFIX]
813 131 jeremybenn
 
814
By default, \`make install' will install all the files in
815
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
816
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817
for instance \`--prefix=\$HOME'.
818
 
819
For better control, use the options below.
820
 
821
Fine tuning of the installation directories:
822 225 jeremybenn
  --bindir=DIR           user executables [EPREFIX/bin]
823
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
824
  --libexecdir=DIR       program executables [EPREFIX/libexec]
825
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
826
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
827
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
828
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
829
  --libdir=DIR           object code libraries [EPREFIX/lib]
830
  --includedir=DIR       C header files [PREFIX/include]
831
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
832
  --infodir=DIR          info documentation [PREFIX/info]
833
  --mandir=DIR           man documentation [PREFIX/man]
834 131 jeremybenn
_ACEOF
835
 
836
  cat <<\_ACEOF
837
 
838
Program names:
839
  --program-prefix=PREFIX            prepend PREFIX to installed program names
840
  --program-suffix=SUFFIX            append SUFFIX to installed program names
841
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
842
 
843
X features:
844
  --x-includes=DIR    X include files are in DIR
845
  --x-libraries=DIR   X library files are in DIR
846
 
847
System types:
848
  --build=BUILD     configure for building on BUILD [guessed]
849
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850
  --target=TARGET   configure for building compilers for TARGET [HOST]
851
_ACEOF
852
fi
853
 
854
if test -n "$ac_init_help"; then
855
 
856
  cat <<\_ACEOF
857
 
858
Optional Features:
859
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861
  --enable-maintainer-mode  enable make rules and dependencies not useful
862
                          (and sometimes confusing) to the casual installer
863
  --enable-targets        alternative target configurations
864
  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
865
  --disable-gdbcli        disable command-line interface (CLI)
866
  --disable-gdbmi         disable machine-interface (MI)
867
  --enable-tui            enable full-screen terminal user interface (TUI)
868
  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
869
  --enable-profiling      enable profiling of GDB
870
  --disable-rpath         do not hardcode runtime library paths
871
  --enable-werror    treat compile warnings as errors
872
  --enable-build-warnings Enable build-time compiler warnings if gcc is used
873
  --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
874
  --enable-sim            Link gdb with simulator
875
  --enable-multi-ice      build the multi-ice-gdb-server
876
 
877
Optional Packages:
878
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880
  --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
881
  --with-libunwind            Use libunwind frame unwinding support
882
  --with-system-readline  use installed readline library
883
  --with-expat            include expat support (auto/yes/no)
884
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
885
  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
886
  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
887
  --without-included-regex don't use included regex; this is the default
888
                          on systems with version 2 of the GNU C library
889
                          (use with caution on other system)
890
  --with-sysroot=DIR Search for usr/lib et al within DIR.
891
  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
892
  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
893
  --with-tclinclude=DIR   Directory where tcl private headers are
894
  --with-tkinclude=DIR    Directory where tk private headers are
895
  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
896
  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
897
  --with-x                use the X Window System
898 225 jeremybenn
  --with-or1ksim=ARG      specify the Or1ksim installation directory
899
                          explicitly (otherwise use default search paths)
900 131 jeremybenn
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
901
 
902
Some influential environment variables:
903
  CC          C compiler command
904
  CFLAGS      C compiler flags
905
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
906
              nonstandard directory 
907 225 jeremybenn
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
908
              headers in a nonstandard directory 
909 131 jeremybenn
  CPP         C preprocessor
910
 
911
Use these variables to override the choices made by `configure' or to help
912
it to find libraries and programs with nonstandard names/locations.
913
 
914
_ACEOF
915
fi
916
 
917
if test "$ac_init_help" = "recursive"; then
918
  # If there are subdirs, report their specific --help.
919 225 jeremybenn
  ac_popdir=`pwd`
920 131 jeremybenn
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 225 jeremybenn
    test -d $ac_dir || continue
922 131 jeremybenn
    ac_builddir=.
923
 
924 225 jeremybenn
if test "$ac_dir" != .; then
925
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926
  # A "../" for each directory in $ac_dir_suffix.
927
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928
else
929
  ac_dir_suffix= ac_top_builddir=
930
fi
931 131 jeremybenn
 
932
case $srcdir in
933 225 jeremybenn
  .)  # No --srcdir option.  We are building in place.
934 131 jeremybenn
    ac_srcdir=.
935 225 jeremybenn
    if test -z "$ac_top_builddir"; then
936
       ac_top_srcdir=.
937
    else
938
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939
    fi ;;
940
  [\\/]* | ?:[\\/]* )  # Absolute path.
941 131 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
942 225 jeremybenn
    ac_top_srcdir=$srcdir ;;
943
  *) # Relative path.
944
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 131 jeremybenn
esac
947
 
948 225 jeremybenn
# Do not use `cd foo && pwd` to compute absolute paths, because
949
# the directories may not exist.
950
case `pwd` in
951
.) ac_abs_builddir="$ac_dir";;
952
*)
953
  case "$ac_dir" in
954
  .) ac_abs_builddir=`pwd`;;
955
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
957
  esac;;
958
esac
959
case $ac_abs_builddir in
960
.) ac_abs_top_builddir=${ac_top_builddir}.;;
961
*)
962
  case ${ac_top_builddir}. in
963
  .) ac_abs_top_builddir=$ac_abs_builddir;;
964
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966
  esac;;
967
esac
968
case $ac_abs_builddir in
969
.) ac_abs_srcdir=$ac_srcdir;;
970
*)
971
  case $ac_srcdir in
972
  .) ac_abs_srcdir=$ac_abs_builddir;;
973
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975
  esac;;
976
esac
977
case $ac_abs_builddir in
978
.) ac_abs_top_srcdir=$ac_top_srcdir;;
979
*)
980
  case $ac_top_srcdir in
981
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
982
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984
  esac;;
985
esac
986
 
987
    cd $ac_dir
988
    # Check for guested configure; otherwise get Cygnus style configure.
989
    if test -f $ac_srcdir/configure.gnu; then
990
      echo
991
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
992
    elif test -f $ac_srcdir/configure; then
993
      echo
994
      $SHELL $ac_srcdir/configure  --help=recursive
995
    elif test -f $ac_srcdir/configure.ac ||
996
           test -f $ac_srcdir/configure.in; then
997
      echo
998
      $ac_configure --help
999 131 jeremybenn
    else
1000 225 jeremybenn
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001
    fi
1002
    cd $ac_popdir
1003 131 jeremybenn
  done
1004
fi
1005
 
1006 225 jeremybenn
test -n "$ac_init_help" && exit 0
1007 131 jeremybenn
if $ac_init_version; then
1008
  cat <<\_ACEOF
1009
 
1010 225 jeremybenn
Copyright (C) 2003 Free Software Foundation, Inc.
1011 131 jeremybenn
This configure script is free software; the Free Software Foundation
1012
gives unlimited permission to copy, distribute and modify it.
1013
_ACEOF
1014 225 jeremybenn
  exit 0
1015 131 jeremybenn
fi
1016 225 jeremybenn
exec 5>config.log
1017
cat >&5 <<_ACEOF
1018 131 jeremybenn
This file contains any messages produced by compilers while
1019
running configure, to aid debugging if configure makes a mistake.
1020
 
1021
It was created by $as_me, which was
1022 225 jeremybenn
generated by GNU Autoconf 2.59.  Invocation command line was
1023 131 jeremybenn
 
1024
  $ $0 $@
1025
 
1026
_ACEOF
1027
{
1028
cat <<_ASUNAME
1029
## --------- ##
1030
## Platform. ##
1031
## --------- ##
1032
 
1033
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038
 
1039
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1041
 
1042
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1043
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1044
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 225 jeremybenn
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1046 131 jeremybenn
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1047
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1048
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1049
 
1050
_ASUNAME
1051
 
1052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053
for as_dir in $PATH
1054
do
1055
  IFS=$as_save_IFS
1056
  test -z "$as_dir" && as_dir=.
1057 225 jeremybenn
  echo "PATH: $as_dir"
1058 131 jeremybenn
done
1059
 
1060
} >&5
1061
 
1062
cat >&5 <<_ACEOF
1063
 
1064
 
1065
## ----------- ##
1066
## Core tests. ##
1067
## ----------- ##
1068
 
1069
_ACEOF
1070
 
1071
 
1072
# Keep a trace of the command line.
1073
# Strip out --no-create and --no-recursion so they do not pile up.
1074
# Strip out --silent because we don't want to record it for future runs.
1075
# Also quote any args containing shell meta-characters.
1076
# Make two passes to allow for proper duplicate-argument suppression.
1077
ac_configure_args=
1078
ac_configure_args0=
1079
ac_configure_args1=
1080 225 jeremybenn
ac_sep=
1081 131 jeremybenn
ac_must_keep_next=false
1082
for ac_pass in 1 2
1083
do
1084
  for ac_arg
1085
  do
1086
    case $ac_arg in
1087
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089
    | -silent | --silent | --silen | --sile | --sil)
1090
      continue ;;
1091 225 jeremybenn
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 131 jeremybenn
    esac
1094
    case $ac_pass in
1095
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096
    2)
1097
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098
      if test $ac_must_keep_next = true; then
1099
        ac_must_keep_next=false # Got value, back to normal.
1100
      else
1101
        case $ac_arg in
1102
          *=* | --config-cache | -C | -disable-* | --disable-* \
1103
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105
          | -with-* | --with-* | -without-* | --without-* | --x)
1106
            case "$ac_configure_args0 " in
1107
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108
            esac
1109
            ;;
1110
          -* ) ac_must_keep_next=true ;;
1111
        esac
1112
      fi
1113 225 jeremybenn
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114
      # Get rid of the leading space.
1115
      ac_sep=" "
1116 131 jeremybenn
      ;;
1117
    esac
1118
  done
1119
done
1120
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122
 
1123
# When interrupted or exit'd, cleanup temporary files, and complete
1124
# config.log.  We remove comments because anyway the quotes in there
1125
# would cause problems or look ugly.
1126 225 jeremybenn
# WARNING: Be sure not to use single quotes in there, as some shells,
1127
# such as our DU 5.0 friend, will then `close' the trap.
1128 131 jeremybenn
trap 'exit_status=$?
1129
  # Save into config.log some information that might help in debugging.
1130
  {
1131
    echo
1132
 
1133
    cat <<\_ASBOX
1134
## ---------------- ##
1135
## Cache variables. ##
1136
## ---------------- ##
1137
_ASBOX
1138
    echo
1139
    # The following way of writing the cache mishandles newlines in values,
1140 225 jeremybenn
{
1141 131 jeremybenn
  (set) 2>&1 |
1142 225 jeremybenn
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143
    *ac_space=\ *)
1144 131 jeremybenn
      sed -n \
1145 225 jeremybenn
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147
      ;;
1148 131 jeremybenn
    *)
1149 225 jeremybenn
      sed -n \
1150
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 131 jeremybenn
      ;;
1152 225 jeremybenn
    esac;
1153
}
1154 131 jeremybenn
    echo
1155
 
1156
    cat <<\_ASBOX
1157
## ----------------- ##
1158
## Output variables. ##
1159
## ----------------- ##
1160
_ASBOX
1161
    echo
1162
    for ac_var in $ac_subst_vars
1163
    do
1164 225 jeremybenn
      eval ac_val=$`echo $ac_var`
1165
      echo "$ac_var='"'"'$ac_val'"'"'"
1166 131 jeremybenn
    done | sort
1167
    echo
1168
 
1169
    if test -n "$ac_subst_files"; then
1170
      cat <<\_ASBOX
1171 225 jeremybenn
## ------------- ##
1172
## Output files. ##
1173
## ------------- ##
1174 131 jeremybenn
_ASBOX
1175
      echo
1176
      for ac_var in $ac_subst_files
1177
      do
1178 225 jeremybenn
        eval ac_val=$`echo $ac_var`
1179
        echo "$ac_var='"'"'$ac_val'"'"'"
1180 131 jeremybenn
      done | sort
1181
      echo
1182
    fi
1183
 
1184
    if test -s confdefs.h; then
1185
      cat <<\_ASBOX
1186
## ----------- ##
1187
## confdefs.h. ##
1188
## ----------- ##
1189
_ASBOX
1190
      echo
1191 225 jeremybenn
      sed "/^$/d" confdefs.h | sort
1192 131 jeremybenn
      echo
1193
    fi
1194
    test "$ac_signal" != 0 &&
1195 225 jeremybenn
      echo "$as_me: caught signal $ac_signal"
1196
    echo "$as_me: exit $exit_status"
1197 131 jeremybenn
  } >&5
1198 225 jeremybenn
  rm -f core *.core &&
1199
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200 131 jeremybenn
    exit $exit_status
1201 225 jeremybenn
     ' 0
1202 131 jeremybenn
for ac_signal in 1 2 13 15; do
1203
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204
done
1205
ac_signal=0
1206
 
1207
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 225 jeremybenn
rm -rf conftest* confdefs.h
1209
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210
echo >confdefs.h
1211 131 jeremybenn
 
1212
# Predefined preprocessor variables.
1213
 
1214
cat >>confdefs.h <<_ACEOF
1215
#define PACKAGE_NAME "$PACKAGE_NAME"
1216
_ACEOF
1217
 
1218
 
1219
cat >>confdefs.h <<_ACEOF
1220
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221
_ACEOF
1222
 
1223
 
1224
cat >>confdefs.h <<_ACEOF
1225
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1226
_ACEOF
1227
 
1228
 
1229
cat >>confdefs.h <<_ACEOF
1230
#define PACKAGE_STRING "$PACKAGE_STRING"
1231
_ACEOF
1232
 
1233
 
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236
_ACEOF
1237
 
1238
 
1239
# Let the site file select an alternate cache file if it wants to.
1240 225 jeremybenn
# Prefer explicitly selected file to automatically selected ones.
1241
if test -z "$CONFIG_SITE"; then
1242
  if test "x$prefix" != xNONE; then
1243
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244
  else
1245
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246
  fi
1247 131 jeremybenn
fi
1248 225 jeremybenn
for ac_site_file in $CONFIG_SITE; do
1249 131 jeremybenn
  if test -r "$ac_site_file"; then
1250 225 jeremybenn
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251
echo "$as_me: loading site script $ac_site_file" >&6;}
1252 131 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
1253
    . "$ac_site_file"
1254
  fi
1255
done
1256
 
1257
if test -r "$cache_file"; then
1258
  # Some versions of bash will fail to source /dev/null (special
1259
  # files actually), so we avoid doing that.
1260
  if test -f "$cache_file"; then
1261 225 jeremybenn
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262
echo "$as_me: loading cache $cache_file" >&6;}
1263 131 jeremybenn
    case $cache_file in
1264 225 jeremybenn
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1265
      *)                      . ./$cache_file;;
1266 131 jeremybenn
    esac
1267
  fi
1268
else
1269 225 jeremybenn
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270
echo "$as_me: creating cache $cache_file" >&6;}
1271 131 jeremybenn
  >$cache_file
1272
fi
1273
 
1274
# Check that the precious variables saved in the cache have kept the same
1275
# value.
1276
ac_cache_corrupted=false
1277 225 jeremybenn
for ac_var in `(set) 2>&1 |
1278
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 131 jeremybenn
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280
  eval ac_new_set=\$ac_env_${ac_var}_set
1281 225 jeremybenn
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282
  eval ac_new_val="\$ac_env_${ac_var}_value"
1283 131 jeremybenn
  case $ac_old_set,$ac_new_set in
1284
    set,)
1285 225 jeremybenn
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 131 jeremybenn
      ac_cache_corrupted=: ;;
1288
    ,set)
1289 225 jeremybenn
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 131 jeremybenn
      ac_cache_corrupted=: ;;
1292
    ,);;
1293
    *)
1294
      if test "x$ac_old_val" != "x$ac_new_val"; then
1295 225 jeremybenn
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1298
echo "$as_me:   former value:  $ac_old_val" >&2;}
1299
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1300
echo "$as_me:   current value: $ac_new_val" >&2;}
1301
        ac_cache_corrupted=:
1302 131 jeremybenn
      fi;;
1303
  esac
1304
  # Pass precious variables to config.status.
1305
  if test "$ac_new_set" = set; then
1306
    case $ac_new_val in
1307 225 jeremybenn
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309 131 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
1310
    esac
1311
    case " $ac_configure_args " in
1312
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1313
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314
    esac
1315
  fi
1316
done
1317
if $ac_cache_corrupted; then
1318 225 jeremybenn
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 131 jeremybenn
   { (exit 1); exit 1; }; }
1323
fi
1324
 
1325 225 jeremybenn
ac_ext=c
1326
ac_cpp='$CPP $CPPFLAGS'
1327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 131 jeremybenn
 
1331
 
1332
 
1333
 
1334
 
1335
 
1336
 
1337
 
1338
 
1339
 
1340
 
1341
 
1342
 
1343
 
1344
 
1345
 
1346
 
1347
 
1348
 
1349 225 jeremybenn
          ac_config_headers="$ac_config_headers config.h:config.in"
1350
 
1351
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1352
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1353
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1354 131 jeremybenn
if test "${enable_maintainer_mode+set}" = set; then
1355 225 jeremybenn
  enableval="$enable_maintainer_mode"
1356
  USE_MAINTAINER_MODE=$enableval
1357 131 jeremybenn
else
1358
  USE_MAINTAINER_MODE=no
1359 225 jeremybenn
fi;
1360
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1361
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1362 131 jeremybenn
 
1363
 
1364
if test $USE_MAINTAINER_MODE = yes; then
1365
  MAINTAINER_MODE_TRUE=
1366
  MAINTAINER_MODE_FALSE='#'
1367
else
1368
  MAINTAINER_MODE_TRUE='#'
1369
  MAINTAINER_MODE_FALSE=
1370
fi
1371
 
1372
  MAINT=$MAINTAINER_MODE_TRUE
1373
 
1374
 
1375
 
1376
ac_ext=c
1377
ac_cpp='$CPP $CPPFLAGS'
1378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381
if test -n "$ac_tool_prefix"; then
1382
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1385
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
1387 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1388 131 jeremybenn
else
1389
  if test -n "$CC"; then
1390
  ac_cv_prog_CC="$CC" # Let the user override the test.
1391
else
1392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393
for as_dir in $PATH
1394
do
1395
  IFS=$as_save_IFS
1396
  test -z "$as_dir" && as_dir=.
1397
  for ac_exec_ext in '' $ac_executable_extensions; do
1398 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 131 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 131 jeremybenn
    break 2
1402
  fi
1403
done
1404
done
1405
 
1406
fi
1407
fi
1408
CC=$ac_cv_prog_CC
1409
if test -n "$CC"; then
1410 225 jeremybenn
  echo "$as_me:$LINENO: result: $CC" >&5
1411
echo "${ECHO_T}$CC" >&6
1412 131 jeremybenn
else
1413 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1414
echo "${ECHO_T}no" >&6
1415 131 jeremybenn
fi
1416
 
1417
fi
1418
if test -z "$ac_cv_prog_CC"; then
1419
  ac_ct_CC=$CC
1420
  # Extract the first word of "gcc", so it can be a program name with args.
1421
set dummy gcc; ac_word=$2
1422 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 131 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1426 131 jeremybenn
else
1427
  if test -n "$ac_ct_CC"; then
1428
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429
else
1430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431
for as_dir in $PATH
1432
do
1433
  IFS=$as_save_IFS
1434
  test -z "$as_dir" && as_dir=.
1435
  for ac_exec_ext in '' $ac_executable_extensions; do
1436 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 131 jeremybenn
    ac_cv_prog_ac_ct_CC="gcc"
1438 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 131 jeremybenn
    break 2
1440
  fi
1441
done
1442
done
1443
 
1444
fi
1445
fi
1446
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447
if test -n "$ac_ct_CC"; then
1448 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449
echo "${ECHO_T}$ac_ct_CC" >&6
1450 131 jeremybenn
else
1451 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1452
echo "${ECHO_T}no" >&6
1453 131 jeremybenn
fi
1454
 
1455 225 jeremybenn
  CC=$ac_ct_CC
1456 131 jeremybenn
else
1457
  CC="$ac_cv_prog_CC"
1458
fi
1459
 
1460
if test -z "$CC"; then
1461 225 jeremybenn
  if test -n "$ac_tool_prefix"; then
1462
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 131 jeremybenn
set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1465
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
1467 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1468 131 jeremybenn
else
1469
  if test -n "$CC"; then
1470
  ac_cv_prog_CC="$CC" # Let the user override the test.
1471
else
1472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473
for as_dir in $PATH
1474
do
1475
  IFS=$as_save_IFS
1476
  test -z "$as_dir" && as_dir=.
1477
  for ac_exec_ext in '' $ac_executable_extensions; do
1478 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 131 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 131 jeremybenn
    break 2
1482
  fi
1483
done
1484
done
1485
 
1486
fi
1487
fi
1488
CC=$ac_cv_prog_CC
1489
if test -n "$CC"; then
1490 225 jeremybenn
  echo "$as_me:$LINENO: result: $CC" >&5
1491
echo "${ECHO_T}$CC" >&6
1492 131 jeremybenn
else
1493 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1494
echo "${ECHO_T}no" >&6
1495 131 jeremybenn
fi
1496
 
1497 225 jeremybenn
fi
1498
if test -z "$ac_cv_prog_CC"; then
1499
  ac_ct_CC=$CC
1500
  # Extract the first word of "cc", so it can be a program name with args.
1501
set dummy cc; ac_word=$2
1502
echo "$as_me:$LINENO: checking for $ac_word" >&5
1503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505
  echo $ECHO_N "(cached) $ECHO_C" >&6
1506
else
1507
  if test -n "$ac_ct_CC"; then
1508
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509
else
1510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511
for as_dir in $PATH
1512
do
1513
  IFS=$as_save_IFS
1514
  test -z "$as_dir" && as_dir=.
1515
  for ac_exec_ext in '' $ac_executable_extensions; do
1516
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517
    ac_cv_prog_ac_ct_CC="cc"
1518
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519
    break 2
1520
  fi
1521
done
1522
done
1523 213 jeremybenn
 
1524 131 jeremybenn
fi
1525 225 jeremybenn
fi
1526
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527
if test -n "$ac_ct_CC"; then
1528
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529
echo "${ECHO_T}$ac_ct_CC" >&6
1530
else
1531
  echo "$as_me:$LINENO: result: no" >&5
1532
echo "${ECHO_T}no" >&6
1533
fi
1534
 
1535
  CC=$ac_ct_CC
1536
else
1537
  CC="$ac_cv_prog_CC"
1538
fi
1539
 
1540
fi
1541 131 jeremybenn
if test -z "$CC"; then
1542
  # Extract the first word of "cc", so it can be a program name with args.
1543
set dummy cc; ac_word=$2
1544 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1545
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
1547 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1548 131 jeremybenn
else
1549
  if test -n "$CC"; then
1550
  ac_cv_prog_CC="$CC" # Let the user override the test.
1551
else
1552
  ac_prog_rejected=no
1553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554
for as_dir in $PATH
1555
do
1556
  IFS=$as_save_IFS
1557
  test -z "$as_dir" && as_dir=.
1558
  for ac_exec_ext in '' $ac_executable_extensions; do
1559 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 131 jeremybenn
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561
       ac_prog_rejected=yes
1562
       continue
1563
     fi
1564
    ac_cv_prog_CC="cc"
1565 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 131 jeremybenn
    break 2
1567
  fi
1568
done
1569
done
1570
 
1571
if test $ac_prog_rejected = yes; then
1572
  # We found a bogon in the path, so make sure we never use it.
1573
  set dummy $ac_cv_prog_CC
1574
  shift
1575
  if test $# != 0; then
1576
    # We chose a different compiler from the bogus one.
1577
    # However, it has the same basename, so the bogon will be chosen
1578
    # first if we set CC to just the basename; use the full file name.
1579
    shift
1580
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1581
  fi
1582
fi
1583
fi
1584
fi
1585
CC=$ac_cv_prog_CC
1586
if test -n "$CC"; then
1587 225 jeremybenn
  echo "$as_me:$LINENO: result: $CC" >&5
1588
echo "${ECHO_T}$CC" >&6
1589 131 jeremybenn
else
1590 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1591
echo "${ECHO_T}no" >&6
1592 131 jeremybenn
fi
1593
 
1594
fi
1595
if test -z "$CC"; then
1596
  if test -n "$ac_tool_prefix"; then
1597 225 jeremybenn
  for ac_prog in cl
1598 131 jeremybenn
  do
1599
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1602
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
1604 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1605 131 jeremybenn
else
1606
  if test -n "$CC"; then
1607
  ac_cv_prog_CC="$CC" # Let the user override the test.
1608
else
1609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610
for as_dir in $PATH
1611
do
1612
  IFS=$as_save_IFS
1613
  test -z "$as_dir" && as_dir=.
1614
  for ac_exec_ext in '' $ac_executable_extensions; do
1615 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 131 jeremybenn
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1617 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 131 jeremybenn
    break 2
1619
  fi
1620
done
1621
done
1622
 
1623
fi
1624
fi
1625
CC=$ac_cv_prog_CC
1626
if test -n "$CC"; then
1627 225 jeremybenn
  echo "$as_me:$LINENO: result: $CC" >&5
1628
echo "${ECHO_T}$CC" >&6
1629 131 jeremybenn
else
1630 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1631
echo "${ECHO_T}no" >&6
1632 131 jeremybenn
fi
1633
 
1634
    test -n "$CC" && break
1635
  done
1636
fi
1637
if test -z "$CC"; then
1638
  ac_ct_CC=$CC
1639 225 jeremybenn
  for ac_prog in cl
1640 131 jeremybenn
do
1641
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1642
set dummy $ac_prog; ac_word=$2
1643 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
1644
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 131 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1647 131 jeremybenn
else
1648
  if test -n "$ac_ct_CC"; then
1649
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650
else
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652
for as_dir in $PATH
1653
do
1654
  IFS=$as_save_IFS
1655
  test -z "$as_dir" && as_dir=.
1656
  for ac_exec_ext in '' $ac_executable_extensions; do
1657 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 131 jeremybenn
    ac_cv_prog_ac_ct_CC="$ac_prog"
1659 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 131 jeremybenn
    break 2
1661
  fi
1662
done
1663
done
1664
 
1665
fi
1666
fi
1667
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668
if test -n "$ac_ct_CC"; then
1669 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670
echo "${ECHO_T}$ac_ct_CC" >&6
1671 131 jeremybenn
else
1672 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
1673
echo "${ECHO_T}no" >&6
1674 131 jeremybenn
fi
1675
 
1676
  test -n "$ac_ct_CC" && break
1677
done
1678
 
1679 225 jeremybenn
  CC=$ac_ct_CC
1680 131 jeremybenn
fi
1681
 
1682
fi
1683
 
1684
 
1685 225 jeremybenn
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1686 131 jeremybenn
See \`config.log' for more details." >&5
1687 225 jeremybenn
echo "$as_me: error: no acceptable C compiler found in \$PATH
1688 131 jeremybenn
See \`config.log' for more details." >&2;}
1689 225 jeremybenn
   { (exit 1); exit 1; }; }
1690 131 jeremybenn
 
1691
# Provide some information about the compiler.
1692 225 jeremybenn
echo "$as_me:$LINENO:" \
1693
     "checking for C compiler version" >&5
1694
ac_compiler=`set X $ac_compile; echo $2`
1695
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1696
  (eval $ac_compiler --version &5) 2>&5
1697 131 jeremybenn
  ac_status=$?
1698 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 131 jeremybenn
  (exit $ac_status); }
1700 225 jeremybenn
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1701
  (eval $ac_compiler -v &5) 2>&5
1702 131 jeremybenn
  ac_status=$?
1703 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 131 jeremybenn
  (exit $ac_status); }
1705 225 jeremybenn
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1706
  (eval $ac_compiler -V &5) 2>&5
1707 131 jeremybenn
  ac_status=$?
1708 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 131 jeremybenn
  (exit $ac_status); }
1710
 
1711
cat >conftest.$ac_ext <<_ACEOF
1712
/* confdefs.h.  */
1713
_ACEOF
1714
cat confdefs.h >>conftest.$ac_ext
1715
cat >>conftest.$ac_ext <<_ACEOF
1716
/* end confdefs.h.  */
1717
 
1718
int
1719
main ()
1720
{
1721
 
1722
  ;
1723
  return 0;
1724
}
1725
_ACEOF
1726
ac_clean_files_save=$ac_clean_files
1727 225 jeremybenn
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1728 131 jeremybenn
# Try to create an executable without -o first, disregard a.out.
1729
# It will help us diagnose broken compilers, and finding out an intuition
1730
# of exeext.
1731 225 jeremybenn
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1732
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1733
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1734
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1735
  (eval $ac_link_default) 2>&5
1736 131 jeremybenn
  ac_status=$?
1737 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 131 jeremybenn
  (exit $ac_status); }; then
1739 225 jeremybenn
  # Find the output, starting from the most likely.  This scheme is
1740
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1741
# resort.
1742
 
1743
# Be careful to initialize this variable, since it used to be cached.
1744
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1745
ac_cv_exeext=
1746
# b.out is created by i960 compilers.
1747
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1748 131 jeremybenn
do
1749
  test -f "$ac_file" || continue
1750
  case $ac_file in
1751 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1752 131 jeremybenn
        ;;
1753 225 jeremybenn
    conftest.$ac_ext )
1754
        # This is the source file.
1755
        ;;
1756 131 jeremybenn
    [ab].out )
1757
        # We found the default executable, but exeext='' is most
1758
        # certainly right.
1759
        break;;
1760
    *.* )
1761 225 jeremybenn
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1763
        # but it would be cool to find out if it's true.  Does anybody
1764
        # maintain Libtool? --akim.
1765
        export ac_cv_exeext
1766 131 jeremybenn
        break;;
1767
    * )
1768
        break;;
1769
  esac
1770
done
1771
else
1772 225 jeremybenn
  echo "$as_me: failed program was:" >&5
1773 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
1774
 
1775 225 jeremybenn
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1776 131 jeremybenn
See \`config.log' for more details." >&5
1777 225 jeremybenn
echo "$as_me: error: C compiler cannot create executables
1778 131 jeremybenn
See \`config.log' for more details." >&2;}
1779 225 jeremybenn
   { (exit 77); exit 77; }; }
1780 131 jeremybenn
fi
1781
 
1782
ac_exeext=$ac_cv_exeext
1783 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_file" >&5
1784
echo "${ECHO_T}$ac_file" >&6
1785 131 jeremybenn
 
1786 225 jeremybenn
# Check the compiler produces executables we can run.  If not, either
1787 131 jeremybenn
# the compiler is broken, or we cross compile.
1788 225 jeremybenn
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1789
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1790 131 jeremybenn
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1791
# If not cross compiling, check that we can run a simple program.
1792
if test "$cross_compiling" != yes; then
1793
  if { ac_try='./$ac_file'
1794 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795
  (eval $ac_try) 2>&5
1796 131 jeremybenn
  ac_status=$?
1797 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 131 jeremybenn
  (exit $ac_status); }; }; then
1799
    cross_compiling=no
1800
  else
1801
    if test "$cross_compiling" = maybe; then
1802
        cross_compiling=yes
1803
    else
1804 225 jeremybenn
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1805 131 jeremybenn
If you meant to cross compile, use \`--host'.
1806
See \`config.log' for more details." >&5
1807 225 jeremybenn
echo "$as_me: error: cannot run C compiled programs.
1808 131 jeremybenn
If you meant to cross compile, use \`--host'.
1809
See \`config.log' for more details." >&2;}
1810 225 jeremybenn
   { (exit 1); exit 1; }; }
1811 131 jeremybenn
    fi
1812
  fi
1813
fi
1814 225 jeremybenn
echo "$as_me:$LINENO: result: yes" >&5
1815
echo "${ECHO_T}yes" >&6
1816 131 jeremybenn
 
1817 225 jeremybenn
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1818 131 jeremybenn
ac_clean_files=$ac_clean_files_save
1819 225 jeremybenn
# Check the compiler produces executables we can run.  If not, either
1820 131 jeremybenn
# the compiler is broken, or we cross compile.
1821 225 jeremybenn
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1822
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1823
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1824
echo "${ECHO_T}$cross_compiling" >&6
1825 131 jeremybenn
 
1826 225 jeremybenn
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1827
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1829
  (eval $ac_link) 2>&5
1830 131 jeremybenn
  ac_status=$?
1831 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 131 jeremybenn
  (exit $ac_status); }; then
1833
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1834
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1835
# work properly (i.e., refer to `conftest.exe'), while it won't with
1836
# `rm'.
1837
for ac_file in conftest.exe conftest conftest.*; do
1838
  test -f "$ac_file" || continue
1839
  case $ac_file in
1840 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1841 131 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 225 jeremybenn
          export ac_cv_exeext
1843 131 jeremybenn
          break;;
1844
    * ) break;;
1845
  esac
1846
done
1847
else
1848 225 jeremybenn
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1849 131 jeremybenn
See \`config.log' for more details." >&5
1850 225 jeremybenn
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1851 131 jeremybenn
See \`config.log' for more details." >&2;}
1852 225 jeremybenn
   { (exit 1); exit 1; }; }
1853 131 jeremybenn
fi
1854
 
1855
rm -f conftest$ac_cv_exeext
1856 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1857
echo "${ECHO_T}$ac_cv_exeext" >&6
1858 131 jeremybenn
 
1859
rm -f conftest.$ac_ext
1860
EXEEXT=$ac_cv_exeext
1861
ac_exeext=$EXEEXT
1862 225 jeremybenn
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1863
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1864 131 jeremybenn
if test "${ac_cv_objext+set}" = set; then
1865 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1866 131 jeremybenn
else
1867
  cat >conftest.$ac_ext <<_ACEOF
1868
/* confdefs.h.  */
1869
_ACEOF
1870
cat confdefs.h >>conftest.$ac_ext
1871
cat >>conftest.$ac_ext <<_ACEOF
1872
/* end confdefs.h.  */
1873
 
1874
int
1875
main ()
1876
{
1877
 
1878
  ;
1879
  return 0;
1880
}
1881
_ACEOF
1882
rm -f conftest.o conftest.obj
1883 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884
  (eval $ac_compile) 2>&5
1885 131 jeremybenn
  ac_status=$?
1886 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 131 jeremybenn
  (exit $ac_status); }; then
1888 225 jeremybenn
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1889 131 jeremybenn
  case $ac_file in
1890 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1891 131 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1892
       break;;
1893
  esac
1894
done
1895
else
1896 225 jeremybenn
  echo "$as_me: failed program was:" >&5
1897 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
1898
 
1899 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1900 131 jeremybenn
See \`config.log' for more details." >&5
1901 225 jeremybenn
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1902 131 jeremybenn
See \`config.log' for more details." >&2;}
1903 225 jeremybenn
   { (exit 1); exit 1; }; }
1904 131 jeremybenn
fi
1905
 
1906
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1907
fi
1908 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1909
echo "${ECHO_T}$ac_cv_objext" >&6
1910 131 jeremybenn
OBJEXT=$ac_cv_objext
1911
ac_objext=$OBJEXT
1912 225 jeremybenn
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1913
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1914 131 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1915 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1916 131 jeremybenn
else
1917
  cat >conftest.$ac_ext <<_ACEOF
1918
/* confdefs.h.  */
1919
_ACEOF
1920
cat confdefs.h >>conftest.$ac_ext
1921
cat >>conftest.$ac_ext <<_ACEOF
1922
/* end confdefs.h.  */
1923
 
1924
int
1925
main ()
1926
{
1927
#ifndef __GNUC__
1928
       choke me
1929
#endif
1930
 
1931
  ;
1932
  return 0;
1933
}
1934
_ACEOF
1935
rm -f conftest.$ac_objext
1936 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937
  (eval $ac_compile) 2>conftest.er1
1938 131 jeremybenn
  ac_status=$?
1939
  grep -v '^ *+' conftest.er1 >conftest.err
1940
  rm -f conftest.er1
1941
  cat conftest.err >&5
1942 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943
  (exit $ac_status); } &&
1944
         { ac_try='test -z "$ac_c_werror_flag"
1945
                         || test ! -s conftest.err'
1946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947
  (eval $ac_try) 2>&5
1948
  ac_status=$?
1949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950
  (exit $ac_status); }; } &&
1951
         { ac_try='test -s conftest.$ac_objext'
1952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953
  (eval $ac_try) 2>&5
1954
  ac_status=$?
1955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956
  (exit $ac_status); }; }; then
1957 131 jeremybenn
  ac_compiler_gnu=yes
1958
else
1959 225 jeremybenn
  echo "$as_me: failed program was:" >&5
1960 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
1961
 
1962 225 jeremybenn
ac_compiler_gnu=no
1963 131 jeremybenn
fi
1964 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1965 131 jeremybenn
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1966
 
1967
fi
1968 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1969
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1970
GCC=`test $ac_compiler_gnu = yes && echo yes`
1971 131 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
1972
ac_save_CFLAGS=$CFLAGS
1973 225 jeremybenn
CFLAGS="-g"
1974
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1975
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1976 131 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
1977 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
1978 131 jeremybenn
else
1979 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
1980 131 jeremybenn
/* confdefs.h.  */
1981
_ACEOF
1982
cat confdefs.h >>conftest.$ac_ext
1983
cat >>conftest.$ac_ext <<_ACEOF
1984
/* end confdefs.h.  */
1985
 
1986
int
1987
main ()
1988
{
1989
 
1990
  ;
1991
  return 0;
1992
}
1993
_ACEOF
1994
rm -f conftest.$ac_objext
1995 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996
  (eval $ac_compile) 2>conftest.er1
1997 131 jeremybenn
  ac_status=$?
1998
  grep -v '^ *+' conftest.er1 >conftest.err
1999
  rm -f conftest.er1
2000
  cat conftest.err >&5
2001 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002
  (exit $ac_status); } &&
2003
         { ac_try='test -z "$ac_c_werror_flag"
2004
                         || test ! -s conftest.err'
2005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006
  (eval $ac_try) 2>&5
2007 131 jeremybenn
  ac_status=$?
2008 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009
  (exit $ac_status); }; } &&
2010
         { ac_try='test -s conftest.$ac_objext'
2011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012
  (eval $ac_try) 2>&5
2013 131 jeremybenn
  ac_status=$?
2014 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015
  (exit $ac_status); }; }; then
2016 131 jeremybenn
  ac_cv_prog_cc_g=yes
2017
else
2018 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2019 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2020
 
2021 225 jeremybenn
ac_cv_prog_cc_g=no
2022 131 jeremybenn
fi
2023 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024 131 jeremybenn
fi
2025 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2026
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2027 131 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2028
  CFLAGS=$ac_save_CFLAGS
2029
elif test $ac_cv_prog_cc_g = yes; then
2030
  if test "$GCC" = yes; then
2031
    CFLAGS="-g -O2"
2032
  else
2033
    CFLAGS="-g"
2034
  fi
2035
else
2036
  if test "$GCC" = yes; then
2037
    CFLAGS="-O2"
2038
  else
2039
    CFLAGS=
2040
  fi
2041
fi
2042 225 jeremybenn
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2043
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2044
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2045
  echo $ECHO_N "(cached) $ECHO_C" >&6
2046 131 jeremybenn
else
2047 225 jeremybenn
  ac_cv_prog_cc_stdc=no
2048 131 jeremybenn
ac_save_CC=$CC
2049
cat >conftest.$ac_ext <<_ACEOF
2050
/* confdefs.h.  */
2051
_ACEOF
2052
cat confdefs.h >>conftest.$ac_ext
2053
cat >>conftest.$ac_ext <<_ACEOF
2054
/* end confdefs.h.  */
2055
#include 
2056
#include 
2057
#include 
2058
#include 
2059
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2060
struct buf { int x; };
2061
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062
static char *e (p, i)
2063
     char **p;
2064
     int i;
2065
{
2066
  return p[i];
2067
}
2068
static char *f (char * (*g) (char **, int), char **p, ...)
2069
{
2070
  char *s;
2071
  va_list v;
2072
  va_start (v,p);
2073
  s = g (p, va_arg (v,int));
2074
  va_end (v);
2075
  return s;
2076
}
2077
 
2078
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2079
   function prototypes and stuff, but not '\xHH' hex character constants.
2080
   These don't provoke an error unfortunately, instead are silently treated
2081 225 jeremybenn
   as 'x'.  The following induces an error, until -std1 is added to get
2082 131 jeremybenn
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2083
   array size at least.  It's necessary to write '\x00'==0 to get something
2084 225 jeremybenn
   that's true only with -std1.  */
2085 131 jeremybenn
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2086
 
2087
int test (int i, double x);
2088
struct s1 {int (*f) (int a);};
2089
struct s2 {int (*f) (double a);};
2090
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2091
int argc;
2092
char **argv;
2093
int
2094
main ()
2095
{
2096
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2097
  ;
2098
  return 0;
2099
}
2100
_ACEOF
2101 225 jeremybenn
# Don't try gcc -ansi; that turns off useful extensions and
2102
# breaks some systems' header files.
2103
# AIX                   -qlanglvl=ansi
2104
# Ultrix and OSF/1      -std1
2105
# HP-UX 10.20 and later -Ae
2106
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2107
# SVR4                  -Xc -D__EXTENSIONS__
2108
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2109 131 jeremybenn
do
2110
  CC="$ac_save_CC $ac_arg"
2111
  rm -f conftest.$ac_objext
2112 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113
  (eval $ac_compile) 2>conftest.er1
2114 131 jeremybenn
  ac_status=$?
2115
  grep -v '^ *+' conftest.er1 >conftest.err
2116
  rm -f conftest.er1
2117
  cat conftest.err >&5
2118 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119
  (exit $ac_status); } &&
2120
         { ac_try='test -z "$ac_c_werror_flag"
2121
                         || test ! -s conftest.err'
2122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123
  (eval $ac_try) 2>&5
2124
  ac_status=$?
2125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
  (exit $ac_status); }; } &&
2127
         { ac_try='test -s conftest.$ac_objext'
2128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129
  (eval $ac_try) 2>&5
2130
  ac_status=$?
2131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132
  (exit $ac_status); }; }; then
2133
  ac_cv_prog_cc_stdc=$ac_arg
2134
break
2135 131 jeremybenn
else
2136 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2137 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2138
 
2139
fi
2140 225 jeremybenn
rm -f conftest.err conftest.$ac_objext
2141 131 jeremybenn
done
2142 225 jeremybenn
rm -f conftest.$ac_ext conftest.$ac_objext
2143 131 jeremybenn
CC=$ac_save_CC
2144
 
2145
fi
2146 225 jeremybenn
 
2147
case "x$ac_cv_prog_cc_stdc" in
2148
  x|xno)
2149
    echo "$as_me:$LINENO: result: none needed" >&5
2150
echo "${ECHO_T}none needed" >&6 ;;
2151 131 jeremybenn
  *)
2152 225 jeremybenn
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2153
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2154
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2155 131 jeremybenn
esac
2156
 
2157 225 jeremybenn
# Some people use a C++ compiler to compile C.  Since we use `exit',
2158
# in C++ we need to declare it.  In case someone uses the same compiler
2159
# for both compiling C and C++ we need to have the C++ compiler decide
2160
# the declaration of exit, since it's the most demanding environment.
2161
cat >conftest.$ac_ext <<_ACEOF
2162
#ifndef __cplusplus
2163
  choke me
2164
#endif
2165
_ACEOF
2166
rm -f conftest.$ac_objext
2167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168
  (eval $ac_compile) 2>conftest.er1
2169
  ac_status=$?
2170
  grep -v '^ *+' conftest.er1 >conftest.err
2171
  rm -f conftest.er1
2172
  cat conftest.err >&5
2173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
  (exit $ac_status); } &&
2175
         { ac_try='test -z "$ac_c_werror_flag"
2176
                         || test ! -s conftest.err'
2177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178
  (eval $ac_try) 2>&5
2179
  ac_status=$?
2180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181
  (exit $ac_status); }; } &&
2182
         { ac_try='test -s conftest.$ac_objext'
2183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184
  (eval $ac_try) 2>&5
2185
  ac_status=$?
2186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187
  (exit $ac_status); }; }; then
2188
  for ac_declaration in \
2189
   '' \
2190
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2191
   'extern "C" void std::exit (int); using std::exit;' \
2192
   'extern "C" void exit (int) throw ();' \
2193
   'extern "C" void exit (int);' \
2194
   'void exit (int);'
2195
do
2196
  cat >conftest.$ac_ext <<_ACEOF
2197
/* confdefs.h.  */
2198
_ACEOF
2199
cat confdefs.h >>conftest.$ac_ext
2200
cat >>conftest.$ac_ext <<_ACEOF
2201
/* end confdefs.h.  */
2202
$ac_declaration
2203
#include 
2204
int
2205
main ()
2206
{
2207
exit (42);
2208
  ;
2209
  return 0;
2210
}
2211
_ACEOF
2212
rm -f conftest.$ac_objext
2213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214
  (eval $ac_compile) 2>conftest.er1
2215
  ac_status=$?
2216
  grep -v '^ *+' conftest.er1 >conftest.err
2217
  rm -f conftest.er1
2218
  cat conftest.err >&5
2219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220
  (exit $ac_status); } &&
2221
         { ac_try='test -z "$ac_c_werror_flag"
2222
                         || test ! -s conftest.err'
2223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224
  (eval $ac_try) 2>&5
2225
  ac_status=$?
2226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
  (exit $ac_status); }; } &&
2228
         { ac_try='test -s conftest.$ac_objext'
2229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230
  (eval $ac_try) 2>&5
2231
  ac_status=$?
2232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233
  (exit $ac_status); }; }; then
2234
  :
2235
else
2236
  echo "$as_me: failed program was:" >&5
2237
sed 's/^/| /' conftest.$ac_ext >&5
2238 131 jeremybenn
 
2239 225 jeremybenn
continue
2240
fi
2241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242
  cat >conftest.$ac_ext <<_ACEOF
2243
/* confdefs.h.  */
2244
_ACEOF
2245
cat confdefs.h >>conftest.$ac_ext
2246
cat >>conftest.$ac_ext <<_ACEOF
2247
/* end confdefs.h.  */
2248
$ac_declaration
2249
int
2250
main ()
2251
{
2252
exit (42);
2253
  ;
2254
  return 0;
2255
}
2256
_ACEOF
2257
rm -f conftest.$ac_objext
2258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259
  (eval $ac_compile) 2>conftest.er1
2260
  ac_status=$?
2261
  grep -v '^ *+' conftest.er1 >conftest.err
2262
  rm -f conftest.er1
2263
  cat conftest.err >&5
2264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
  (exit $ac_status); } &&
2266
         { ac_try='test -z "$ac_c_werror_flag"
2267
                         || test ! -s conftest.err'
2268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269
  (eval $ac_try) 2>&5
2270
  ac_status=$?
2271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272
  (exit $ac_status); }; } &&
2273
         { ac_try='test -s conftest.$ac_objext'
2274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275
  (eval $ac_try) 2>&5
2276
  ac_status=$?
2277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278
  (exit $ac_status); }; }; then
2279
  break
2280
else
2281
  echo "$as_me: failed program was:" >&5
2282
sed 's/^/| /' conftest.$ac_ext >&5
2283
 
2284
fi
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286
done
2287
rm -f conftest*
2288
if test -n "$ac_declaration"; then
2289
  echo '#ifdef __cplusplus' >>confdefs.h
2290
  echo $ac_declaration      >>confdefs.h
2291
  echo '#endif'             >>confdefs.h
2292
fi
2293
 
2294
else
2295
  echo "$as_me: failed program was:" >&5
2296
sed 's/^/| /' conftest.$ac_ext >&5
2297
 
2298
fi
2299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 131 jeremybenn
ac_ext=c
2301
ac_cpp='$CPP $CPPFLAGS'
2302
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
 
2306
 
2307 225 jeremybenn
cat >>confdefs.h <<\_ACEOF
2308
#define _GNU_SOURCE 1
2309
_ACEOF
2310
 
2311
 
2312
 
2313 131 jeremybenn
ac_ext=c
2314
ac_cpp='$CPP $CPPFLAGS'
2315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 225 jeremybenn
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2319
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2320 131 jeremybenn
# On Suns, sometimes $CPP names a directory.
2321
if test -n "$CPP" && test -d "$CPP"; then
2322
  CPP=
2323
fi
2324
if test -z "$CPP"; then
2325
  if test "${ac_cv_prog_CPP+set}" = set; then
2326 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
2327 131 jeremybenn
else
2328
      # Double quotes because CPP needs to be expanded
2329
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2330
    do
2331
      ac_preproc_ok=false
2332
for ac_c_preproc_warn_flag in '' yes
2333
do
2334
  # Use a header file that comes with gcc, so configuring glibc
2335
  # with a fresh cross-compiler works.
2336
  # Prefer  to  if __STDC__ is defined, since
2337
  #  exists even on freestanding compilers.
2338
  # On the NeXT, cc -E runs the code through the compiler's parser,
2339
  # not just through cpp. "Syntax error" is here to catch this case.
2340
  cat >conftest.$ac_ext <<_ACEOF
2341
/* confdefs.h.  */
2342
_ACEOF
2343
cat confdefs.h >>conftest.$ac_ext
2344
cat >>conftest.$ac_ext <<_ACEOF
2345
/* end confdefs.h.  */
2346
#ifdef __STDC__
2347
# include 
2348
#else
2349
# include 
2350
#endif
2351
                     Syntax error
2352
_ACEOF
2353 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2355 131 jeremybenn
  ac_status=$?
2356
  grep -v '^ *+' conftest.er1 >conftest.err
2357
  rm -f conftest.er1
2358
  cat conftest.err >&5
2359 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360
  (exit $ac_status); } >/dev/null; then
2361
  if test -s conftest.err; then
2362
    ac_cpp_err=$ac_c_preproc_warn_flag
2363
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2364
  else
2365
    ac_cpp_err=
2366
  fi
2367
else
2368
  ac_cpp_err=yes
2369
fi
2370
if test -z "$ac_cpp_err"; then
2371 131 jeremybenn
  :
2372
else
2373 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2374 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2375
 
2376
  # Broken: fails on valid input.
2377
continue
2378
fi
2379
rm -f conftest.err conftest.$ac_ext
2380
 
2381 225 jeremybenn
  # OK, works on sane cases.  Now check whether non-existent headers
2382 131 jeremybenn
  # can be detected and how.
2383
  cat >conftest.$ac_ext <<_ACEOF
2384
/* confdefs.h.  */
2385
_ACEOF
2386
cat confdefs.h >>conftest.$ac_ext
2387
cat >>conftest.$ac_ext <<_ACEOF
2388
/* end confdefs.h.  */
2389
#include 
2390
_ACEOF
2391 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393 131 jeremybenn
  ac_status=$?
2394
  grep -v '^ *+' conftest.er1 >conftest.err
2395
  rm -f conftest.er1
2396
  cat conftest.err >&5
2397 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398
  (exit $ac_status); } >/dev/null; then
2399
  if test -s conftest.err; then
2400
    ac_cpp_err=$ac_c_preproc_warn_flag
2401
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402
  else
2403
    ac_cpp_err=
2404
  fi
2405
else
2406
  ac_cpp_err=yes
2407
fi
2408
if test -z "$ac_cpp_err"; then
2409 131 jeremybenn
  # Broken: success on invalid input.
2410
continue
2411
else
2412 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2413 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2414
 
2415
  # Passes both tests.
2416
ac_preproc_ok=:
2417
break
2418
fi
2419
rm -f conftest.err conftest.$ac_ext
2420
 
2421
done
2422
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423
rm -f conftest.err conftest.$ac_ext
2424
if $ac_preproc_ok; then
2425
  break
2426
fi
2427
 
2428
    done
2429
    ac_cv_prog_CPP=$CPP
2430
 
2431
fi
2432
  CPP=$ac_cv_prog_CPP
2433
else
2434
  ac_cv_prog_CPP=$CPP
2435
fi
2436 225 jeremybenn
echo "$as_me:$LINENO: result: $CPP" >&5
2437
echo "${ECHO_T}$CPP" >&6
2438 131 jeremybenn
ac_preproc_ok=false
2439
for ac_c_preproc_warn_flag in '' yes
2440
do
2441
  # Use a header file that comes with gcc, so configuring glibc
2442
  # with a fresh cross-compiler works.
2443
  # Prefer  to  if __STDC__ is defined, since
2444
  #  exists even on freestanding compilers.
2445
  # On the NeXT, cc -E runs the code through the compiler's parser,
2446
  # not just through cpp. "Syntax error" is here to catch this case.
2447
  cat >conftest.$ac_ext <<_ACEOF
2448
/* confdefs.h.  */
2449
_ACEOF
2450
cat confdefs.h >>conftest.$ac_ext
2451
cat >>conftest.$ac_ext <<_ACEOF
2452
/* end confdefs.h.  */
2453
#ifdef __STDC__
2454
# include 
2455
#else
2456
# include 
2457
#endif
2458
                     Syntax error
2459
_ACEOF
2460 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 131 jeremybenn
  ac_status=$?
2463
  grep -v '^ *+' conftest.er1 >conftest.err
2464
  rm -f conftest.er1
2465
  cat conftest.err >&5
2466 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467
  (exit $ac_status); } >/dev/null; then
2468
  if test -s conftest.err; then
2469
    ac_cpp_err=$ac_c_preproc_warn_flag
2470
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2471
  else
2472
    ac_cpp_err=
2473
  fi
2474
else
2475
  ac_cpp_err=yes
2476
fi
2477
if test -z "$ac_cpp_err"; then
2478 131 jeremybenn
  :
2479
else
2480 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2481 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2482
 
2483
  # Broken: fails on valid input.
2484
continue
2485
fi
2486
rm -f conftest.err conftest.$ac_ext
2487
 
2488 225 jeremybenn
  # OK, works on sane cases.  Now check whether non-existent headers
2489 131 jeremybenn
  # can be detected and how.
2490
  cat >conftest.$ac_ext <<_ACEOF
2491
/* confdefs.h.  */
2492
_ACEOF
2493
cat confdefs.h >>conftest.$ac_ext
2494
cat >>conftest.$ac_ext <<_ACEOF
2495
/* end confdefs.h.  */
2496
#include 
2497
_ACEOF
2498 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500 131 jeremybenn
  ac_status=$?
2501
  grep -v '^ *+' conftest.er1 >conftest.err
2502
  rm -f conftest.er1
2503
  cat conftest.err >&5
2504 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505
  (exit $ac_status); } >/dev/null; then
2506
  if test -s conftest.err; then
2507
    ac_cpp_err=$ac_c_preproc_warn_flag
2508
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509
  else
2510
    ac_cpp_err=
2511
  fi
2512
else
2513
  ac_cpp_err=yes
2514
fi
2515
if test -z "$ac_cpp_err"; then
2516 131 jeremybenn
  # Broken: success on invalid input.
2517
continue
2518
else
2519 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2520 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2521
 
2522
  # Passes both tests.
2523
ac_preproc_ok=:
2524
break
2525
fi
2526
rm -f conftest.err conftest.$ac_ext
2527
 
2528
done
2529
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2530
rm -f conftest.err conftest.$ac_ext
2531
if $ac_preproc_ok; then
2532
  :
2533
else
2534 225 jeremybenn
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2535 131 jeremybenn
See \`config.log' for more details." >&5
2536 225 jeremybenn
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2537 131 jeremybenn
See \`config.log' for more details." >&2;}
2538 225 jeremybenn
   { (exit 1); exit 1; }; }
2539 131 jeremybenn
fi
2540
 
2541
ac_ext=c
2542
ac_cpp='$CPP $CPPFLAGS'
2543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
 
2547
 
2548 225 jeremybenn
echo "$as_me:$LINENO: checking for egrep" >&5
2549
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2550
if test "${ac_cv_prog_egrep+set}" = set; then
2551
  echo $ECHO_N "(cached) $ECHO_C" >&6
2552 131 jeremybenn
else
2553 225 jeremybenn
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2554
    then ac_cv_prog_egrep='grep -E'
2555
    else ac_cv_prog_egrep='egrep'
2556 131 jeremybenn
    fi
2557
fi
2558 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2559
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2560
 EGREP=$ac_cv_prog_egrep
2561 131 jeremybenn
 
2562
 
2563
 
2564 225 jeremybenn
echo "$as_me:$LINENO: checking for AIX" >&5
2565
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2566
cat >conftest.$ac_ext <<_ACEOF
2567 131 jeremybenn
/* confdefs.h.  */
2568
_ACEOF
2569
cat confdefs.h >>conftest.$ac_ext
2570
cat >>conftest.$ac_ext <<_ACEOF
2571
/* end confdefs.h.  */
2572 225 jeremybenn
#ifdef _AIX
2573
  yes
2574
#endif
2575 131 jeremybenn
 
2576
_ACEOF
2577
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 225 jeremybenn
  $EGREP "yes" >/dev/null 2>&1; then
2579
  echo "$as_me:$LINENO: result: yes" >&5
2580
echo "${ECHO_T}yes" >&6
2581
cat >>confdefs.h <<\_ACEOF
2582
#define _ALL_SOURCE 1
2583 131 jeremybenn
_ACEOF
2584
 
2585
else
2586 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
2587
echo "${ECHO_T}no" >&6
2588 131 jeremybenn
fi
2589
rm -f conftest*
2590
 
2591
 
2592 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2593
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2594
if test "${ac_cv_search_strerror+set}" = set; then
2595
  echo $ECHO_N "(cached) $ECHO_C" >&6
2596 131 jeremybenn
else
2597 225 jeremybenn
  ac_func_search_save_LIBS=$LIBS
2598
ac_cv_search_strerror=no
2599 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2600
/* confdefs.h.  */
2601
_ACEOF
2602
cat confdefs.h >>conftest.$ac_ext
2603
cat >>conftest.$ac_ext <<_ACEOF
2604
/* end confdefs.h.  */
2605
 
2606 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
2607
#ifdef __cplusplus
2608
extern "C"
2609
#endif
2610
/* We use char because int might match the return type of a gcc2
2611
   builtin and then its argument prototype would still apply.  */
2612
char strerror ();
2613 131 jeremybenn
int
2614
main ()
2615
{
2616 225 jeremybenn
strerror ();
2617 131 jeremybenn
  ;
2618
  return 0;
2619
}
2620
_ACEOF
2621 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
2622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623
  (eval $ac_link) 2>conftest.er1
2624 131 jeremybenn
  ac_status=$?
2625
  grep -v '^ *+' conftest.er1 >conftest.err
2626
  rm -f conftest.er1
2627
  cat conftest.err >&5
2628 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
  (exit $ac_status); } &&
2630
         { ac_try='test -z "$ac_c_werror_flag"
2631
                         || test ! -s conftest.err'
2632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633
  (eval $ac_try) 2>&5
2634 131 jeremybenn
  ac_status=$?
2635 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636
  (exit $ac_status); }; } &&
2637
         { ac_try='test -s conftest$ac_exeext'
2638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639
  (eval $ac_try) 2>&5
2640 131 jeremybenn
  ac_status=$?
2641 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642
  (exit $ac_status); }; }; then
2643
  ac_cv_search_strerror="none required"
2644 131 jeremybenn
else
2645 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2646 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2647
 
2648
fi
2649 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
2650
      conftest$ac_exeext conftest.$ac_ext
2651
if test "$ac_cv_search_strerror" = no; then
2652
  for ac_lib in cposix; do
2653
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2654
    cat >conftest.$ac_ext <<_ACEOF
2655 131 jeremybenn
/* confdefs.h.  */
2656
_ACEOF
2657
cat confdefs.h >>conftest.$ac_ext
2658
cat >>conftest.$ac_ext <<_ACEOF
2659
/* end confdefs.h.  */
2660
 
2661 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
2662 131 jeremybenn
#ifdef __cplusplus
2663
extern "C"
2664
#endif
2665 225 jeremybenn
/* We use char because int might match the return type of a gcc2
2666
   builtin and then its argument prototype would still apply.  */
2667 131 jeremybenn
char strerror ();
2668
int
2669
main ()
2670
{
2671 225 jeremybenn
strerror ();
2672 131 jeremybenn
  ;
2673
  return 0;
2674
}
2675
_ACEOF
2676 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
2677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678
  (eval $ac_link) 2>conftest.er1
2679 131 jeremybenn
  ac_status=$?
2680
  grep -v '^ *+' conftest.er1 >conftest.err
2681
  rm -f conftest.er1
2682
  cat conftest.err >&5
2683 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684
  (exit $ac_status); } &&
2685
         { ac_try='test -z "$ac_c_werror_flag"
2686
                         || test ! -s conftest.err'
2687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688
  (eval $ac_try) 2>&5
2689
  ac_status=$?
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
  (exit $ac_status); }; } &&
2692
         { ac_try='test -s conftest$ac_exeext'
2693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694
  (eval $ac_try) 2>&5
2695
  ac_status=$?
2696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
  (exit $ac_status); }; }; then
2698
  ac_cv_search_strerror="-l$ac_lib"
2699
break
2700 131 jeremybenn
else
2701 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2702 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2703
 
2704
fi
2705 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
2706
      conftest$ac_exeext conftest.$ac_ext
2707
  done
2708 131 jeremybenn
fi
2709
LIBS=$ac_func_search_save_LIBS
2710
fi
2711 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2712
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2713
if test "$ac_cv_search_strerror" != no; then
2714
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2715 131 jeremybenn
 
2716
fi
2717
 
2718
 
2719
 
2720
 
2721 225 jeremybenn
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2722
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2723 131 jeremybenn
if test "${am_cv_prog_cc_stdc+set}" = set; then
2724 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
2725 131 jeremybenn
else
2726
  am_cv_prog_cc_stdc=no
2727
ac_save_CC="$CC"
2728
# Don't try gcc -ansi; that turns off useful extensions and
2729
# breaks some systems' header files.
2730
# AIX                   -qlanglvl=ansi
2731
# Ultrix and OSF/1      -std1
2732
# HP-UX 10.20 and later -Ae
2733
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2734
# SVR4                  -Xc -D__EXTENSIONS__
2735
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736
do
2737
  CC="$ac_save_CC $ac_arg"
2738
  cat >conftest.$ac_ext <<_ACEOF
2739
/* confdefs.h.  */
2740
_ACEOF
2741
cat confdefs.h >>conftest.$ac_ext
2742
cat >>conftest.$ac_ext <<_ACEOF
2743
/* end confdefs.h.  */
2744
#include 
2745
#include 
2746
#include 
2747
#include 
2748
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2749
struct buf { int x; };
2750
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751
static char *e (p, i)
2752
     char **p;
2753
     int i;
2754
{
2755
  return p[i];
2756
}
2757
static char *f (char * (*g) (char **, int), char **p, ...)
2758
{
2759
  char *s;
2760
  va_list v;
2761
  va_start (v,p);
2762
  s = g (p, va_arg (v,int));
2763
  va_end (v);
2764
  return s;
2765
}
2766
int test (int i, double x);
2767
struct s1 {int (*f) (int a);};
2768
struct s2 {int (*f) (double a);};
2769
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2770
int argc;
2771
char **argv;
2772
 
2773
int
2774
main ()
2775
{
2776
 
2777
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2778
 
2779
  ;
2780
  return 0;
2781
}
2782
_ACEOF
2783
rm -f conftest.$ac_objext
2784 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785
  (eval $ac_compile) 2>conftest.er1
2786 131 jeremybenn
  ac_status=$?
2787
  grep -v '^ *+' conftest.er1 >conftest.err
2788
  rm -f conftest.er1
2789
  cat conftest.err >&5
2790 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
  (exit $ac_status); } &&
2792
         { ac_try='test -z "$ac_c_werror_flag"
2793
                         || test ! -s conftest.err'
2794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795
  (eval $ac_try) 2>&5
2796
  ac_status=$?
2797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798
  (exit $ac_status); }; } &&
2799
         { ac_try='test -s conftest.$ac_objext'
2800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801
  (eval $ac_try) 2>&5
2802
  ac_status=$?
2803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
  (exit $ac_status); }; }; then
2805 131 jeremybenn
  am_cv_prog_cc_stdc="$ac_arg"; break
2806
else
2807 225 jeremybenn
  echo "$as_me: failed program was:" >&5
2808 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2809
 
2810
fi
2811 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 131 jeremybenn
done
2813
CC="$ac_save_CC"
2814
 
2815
fi
2816
 
2817
if test -z "$am_cv_prog_cc_stdc"; then
2818 225 jeremybenn
  echo "$as_me:$LINENO: result: none needed" >&5
2819
echo "${ECHO_T}none needed" >&6
2820 131 jeremybenn
else
2821 225 jeremybenn
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2822
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2823 131 jeremybenn
fi
2824
case "x$am_cv_prog_cc_stdc" in
2825
  x|xno) ;;
2826
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
2827
esac
2828
 
2829
 
2830
ac_aux_dir=
2831 225 jeremybenn
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2832
  if test -f $ac_dir/install-sh; then
2833 131 jeremybenn
    ac_aux_dir=$ac_dir
2834
    ac_install_sh="$ac_aux_dir/install-sh -c"
2835
    break
2836 225 jeremybenn
  elif test -f $ac_dir/install.sh; then
2837 131 jeremybenn
    ac_aux_dir=$ac_dir
2838
    ac_install_sh="$ac_aux_dir/install.sh -c"
2839
    break
2840 225 jeremybenn
  elif test -f $ac_dir/shtool; then
2841 131 jeremybenn
    ac_aux_dir=$ac_dir
2842
    ac_install_sh="$ac_aux_dir/shtool install -c"
2843
    break
2844
  fi
2845
done
2846
if test -z "$ac_aux_dir"; then
2847 225 jeremybenn
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2848
echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2849 131 jeremybenn
   { (exit 1); exit 1; }; }
2850
fi
2851 225 jeremybenn
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2852
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2853
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2854 131 jeremybenn
 
2855
# Make sure we can run config.sub.
2856 225 jeremybenn
$ac_config_sub sun4 >/dev/null 2>&1 ||
2857
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2858
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2859 131 jeremybenn
   { (exit 1); exit 1; }; }
2860
 
2861 225 jeremybenn
echo "$as_me:$LINENO: checking build system type" >&5
2862
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2863 131 jeremybenn
if test "${ac_cv_build+set}" = set; then
2864 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
2865 131 jeremybenn
else
2866 225 jeremybenn
  ac_cv_build_alias=$build_alias
2867
test -z "$ac_cv_build_alias" &&
2868
  ac_cv_build_alias=`$ac_config_guess`
2869
test -z "$ac_cv_build_alias" &&
2870
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2871
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2872 131 jeremybenn
   { (exit 1); exit 1; }; }
2873 225 jeremybenn
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2874
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2875
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2876 131 jeremybenn
   { (exit 1); exit 1; }; }
2877
 
2878
fi
2879 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2880
echo "${ECHO_T}$ac_cv_build" >&6
2881 131 jeremybenn
build=$ac_cv_build
2882 225 jeremybenn
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2883
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2884
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2885 131 jeremybenn
 
2886
 
2887 225 jeremybenn
echo "$as_me:$LINENO: checking host system type" >&5
2888
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2889 131 jeremybenn
if test "${ac_cv_host+set}" = set; then
2890 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
2891 131 jeremybenn
else
2892 225 jeremybenn
  ac_cv_host_alias=$host_alias
2893
test -z "$ac_cv_host_alias" &&
2894
  ac_cv_host_alias=$ac_cv_build_alias
2895
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2896
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2897
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2898 131 jeremybenn
   { (exit 1); exit 1; }; }
2899
 
2900
fi
2901 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2902
echo "${ECHO_T}$ac_cv_host" >&6
2903 131 jeremybenn
host=$ac_cv_host
2904 225 jeremybenn
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2905
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2906
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2907 131 jeremybenn
 
2908
 
2909 225 jeremybenn
echo "$as_me:$LINENO: checking target system type" >&5
2910
echo $ECHO_N "checking target system type... $ECHO_C" >&6
2911 131 jeremybenn
if test "${ac_cv_target+set}" = set; then
2912 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
2913 131 jeremybenn
else
2914 225 jeremybenn
  ac_cv_target_alias=$target_alias
2915
test "x$ac_cv_target_alias" = "x" &&
2916
  ac_cv_target_alias=$ac_cv_host_alias
2917
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2918
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2919
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2920 131 jeremybenn
   { (exit 1); exit 1; }; }
2921
 
2922
fi
2923 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2924
echo "${ECHO_T}$ac_cv_target" >&6
2925 131 jeremybenn
target=$ac_cv_target
2926 225 jeremybenn
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2927
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2928
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2929 131 jeremybenn
 
2930
 
2931
# The aliases save the names the user supplied, while $host etc.
2932
# will get canonicalized.
2933
test -n "$target_alias" &&
2934
  test "$program_prefix$program_suffix$program_transform_name" = \
2935
    NONENONEs,x,x, &&
2936
  program_prefix=${target_alias}-
2937
 
2938
 
2939
CONFIG_OBS=
2940
CONFIG_DEPS=
2941
CONFIG_SRCS=
2942
ENABLE_CFLAGS=
2943
 
2944
CONFIG_ALL=
2945
CONFIG_CLEAN=
2946
CONFIG_INSTALL=
2947
CONFIG_UNINSTALL=
2948
 
2949
# If we haven't got the data from the intl directory,
2950
# assume NLS is disabled.
2951
USE_NLS=no
2952
LIBINTL=
2953
LIBINTL_DEP=
2954
INCINTL=
2955
XGETTEXT=
2956
GMSGFMT=
2957
POSUB=
2958
 
2959
if test -f  ../intl/config.intl; then
2960
  .  ../intl/config.intl
2961
fi
2962 225 jeremybenn
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2963
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2964 131 jeremybenn
if test x"$USE_NLS" != xyes; then
2965 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
2966
echo "${ECHO_T}no" >&6
2967 131 jeremybenn
else
2968 225 jeremybenn
  echo "$as_me:$LINENO: result: yes" >&5
2969
echo "${ECHO_T}yes" >&6
2970 131 jeremybenn
 
2971
cat >>confdefs.h <<\_ACEOF
2972
#define ENABLE_NLS 1
2973
_ACEOF
2974
 
2975
 
2976 225 jeremybenn
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2977
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2978 131 jeremybenn
  # Look for .po and .gmo files in the source directory.
2979
  CATALOGS=
2980
  XLINGUAS=
2981
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2982
    # If there aren't any .gmo files the shell will give us the
2983
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
2984
    # weeded out.
2985
    case "$cat" in *\**)
2986
      continue;;
2987
    esac
2988
    # The quadruple backslash is collapsed to a double backslash
2989
    # by the backticks, then collapsed again by the double quotes,
2990
    # leaving us with one backslash in the sed expression (right
2991
    # before the dot that mustn't act as a wildcard).
2992
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2993
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2994
    # The user is allowed to set LINGUAS to a list of languages to
2995
    # install catalogs for.  If it's empty that means "all of them."
2996
    if test "x$LINGUAS" = x; then
2997
      CATALOGS="$CATALOGS $cat"
2998
      XLINGUAS="$XLINGUAS $lang"
2999
    else
3000
      case "$LINGUAS" in *$lang*)
3001
        CATALOGS="$CATALOGS $cat"
3002
        XLINGUAS="$XLINGUAS $lang"
3003
        ;;
3004
      esac
3005
    fi
3006
  done
3007
  LINGUAS="$XLINGUAS"
3008 225 jeremybenn
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
3009
echo "${ECHO_T}$LINGUAS" >&6
3010 131 jeremybenn
 
3011
 
3012
    DATADIRNAME=share
3013
 
3014
  INSTOBJEXT=.mo
3015
 
3016
  GENCAT=gencat
3017
 
3018
  CATOBJEXT=.gmo
3019
 
3020
fi
3021
 
3022
localedir='${datadir}/locale'
3023
 
3024
 
3025
if test x"$USE_NLS" = xyes; then
3026
   CONFIG_ALL="$CONFIG_ALL all-po"
3027
   CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3028
   CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3029
   CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3030
fi
3031
 
3032
PACKAGE=gdb
3033
 
3034
cat >>confdefs.h <<_ACEOF
3035
#define PACKAGE "$PACKAGE"
3036
_ACEOF
3037
 
3038
 
3039
 
3040
debugdir=${libdir}/debug
3041
 
3042
 
3043 225 jeremybenn
# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3044 131 jeremybenn
if test "${with_separate_debug_dir+set}" = set; then
3045 225 jeremybenn
  withval="$with_separate_debug_dir"
3046
  debugdir="${withval}"
3047
fi;
3048 131 jeremybenn
 
3049
 
3050
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3051
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3052
  ac_define_dir=`eval echo $debugdir`
3053
  ac_define_dir=`eval echo $ac_define_dir`
3054
 
3055
cat >>confdefs.h <<_ACEOF
3056
#define DEBUGDIR "$ac_define_dir"
3057
_ACEOF
3058
 
3059
 
3060
#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3061
 
3062
if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3063
  if test "x$prefix" = xNONE; then
3064
    test_prefix=/usr/local
3065
  else
3066
    test_prefix=$prefix
3067
  fi
3068
else
3069
  test_prefix=$exec_prefix
3070
fi
3071
case ${debugdir} in
3072
"${test_prefix}"|"${test_prefix}/"*|\
3073
'${exec_prefix}'|'${exec_prefix}/'*)
3074
 
3075
cat >>confdefs.h <<\_ACEOF
3076
#define DEBUGDIR_RELOCATABLE 1
3077
_ACEOF
3078
 
3079
  ;;
3080
esac
3081
 
3082
 
3083
 
3084
subdirs="$subdirs doc testsuite"
3085
 
3086
 
3087
# Check whether to support alternative target configurations
3088 225 jeremybenn
# Check whether --enable-targets or --disable-targets was given.
3089 131 jeremybenn
if test "${enable_targets+set}" = set; then
3090 225 jeremybenn
  enableval="$enable_targets"
3091
  case "${enableval}" in
3092
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3093
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3094 131 jeremybenn
   { (exit 1); exit 1; }; }
3095
            ;;
3096
  no)       enable_targets= ;;
3097
  *)        enable_targets=$enableval ;;
3098
esac
3099 225 jeremybenn
fi;
3100 131 jeremybenn
 
3101
# Check whether to enable 64-bit support on 32-bit hosts
3102 225 jeremybenn
# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3103 131 jeremybenn
if test "${enable_64_bit_bfd+set}" = set; then
3104 225 jeremybenn
  enableval="$enable_64_bit_bfd"
3105
  case "${enableval}" in
3106 131 jeremybenn
  yes)  want64=true  ;;
3107
  no)   want64=false ;;
3108 225 jeremybenn
  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3109
echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3110 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3111
esac
3112
else
3113
  want64=false
3114 225 jeremybenn
fi;
3115 131 jeremybenn
# Provide defaults for some variables set by the per-host and per-target
3116
# configuration.
3117
gdb_host_obs=posix-hdep.o
3118
 
3119
if test "${target}" = "${host}"; then
3120
  gdb_native=yes
3121
else
3122
  gdb_native=no
3123
fi
3124
 
3125
. $srcdir/configure.host
3126
 
3127
# Accumulate some settings from configure.tgt over all enabled targets
3128
 
3129
TARGET_OBS=
3130
all_targets=
3131
 
3132
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
3133
do
3134
  if test "$targ_alias" = "all"; then
3135
    all_targets=true
3136
  else
3137
    # Canonicalize the secondary target names.
3138
    result=`$ac_config_sub $targ_alias 2>/dev/null`
3139
    if test -n "$result"; then
3140
        targ=$result
3141
    else
3142
        targ=$targ_alias
3143
    fi
3144
 
3145
    . ${srcdir}/configure.tgt
3146
 
3147
    # Target-specific object files
3148
    for i in ${gdb_target_obs}; do
3149
        case " $TARGET_OBS " in
3150
        *" ${i} "*) ;;
3151
        *)
3152
          TARGET_OBS="$TARGET_OBS ${i}"
3153
          ;;
3154
        esac
3155
    done
3156
 
3157
    # Check whether this target needs 64-bit CORE_ADDR
3158
    if test x${want64} = xfalse; then
3159
      . ${srcdir}/../bfd/config.bfd
3160
    fi
3161
  fi
3162
done
3163
 
3164
if test x${all_targets} = xtrue; then
3165
 
3166
  # We want all 64-bit targets if we either:
3167
  #  - run on a 64-bit host  or
3168
  #  - already require 64-bit support for some other target  or
3169
  #  - the --enable-64-bit-bfd option was supplied
3170
  # Otherwise we only support all 32-bit targets.
3171
  #
3172
  # NOTE: This test must be in sync with the corresponding
3173
  #       tests in BFD!
3174
 
3175
  if test x${want64} = xfalse; then
3176 225 jeremybenn
    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3177
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3178
if test "${ac_cv_header_stdc+set}" = set; then
3179
  echo $ECHO_N "(cached) $ECHO_C" >&6
3180
else
3181
  cat >conftest.$ac_ext <<_ACEOF
3182
/* confdefs.h.  */
3183
_ACEOF
3184
cat confdefs.h >>conftest.$ac_ext
3185
cat >>conftest.$ac_ext <<_ACEOF
3186
/* end confdefs.h.  */
3187
#include 
3188
#include 
3189
#include 
3190
#include 
3191
 
3192
int
3193
main ()
3194
{
3195
 
3196
  ;
3197
  return 0;
3198
}
3199
_ACEOF
3200
rm -f conftest.$ac_objext
3201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202
  (eval $ac_compile) 2>conftest.er1
3203
  ac_status=$?
3204
  grep -v '^ *+' conftest.er1 >conftest.err
3205
  rm -f conftest.er1
3206
  cat conftest.err >&5
3207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208
  (exit $ac_status); } &&
3209
         { ac_try='test -z "$ac_c_werror_flag"
3210
                         || test ! -s conftest.err'
3211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212
  (eval $ac_try) 2>&5
3213
  ac_status=$?
3214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215
  (exit $ac_status); }; } &&
3216
         { ac_try='test -s conftest.$ac_objext'
3217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218
  (eval $ac_try) 2>&5
3219
  ac_status=$?
3220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221
  (exit $ac_status); }; }; then
3222
  ac_cv_header_stdc=yes
3223
else
3224
  echo "$as_me: failed program was:" >&5
3225
sed 's/^/| /' conftest.$ac_ext >&5
3226
 
3227
ac_cv_header_stdc=no
3228
fi
3229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3230
 
3231
if test $ac_cv_header_stdc = yes; then
3232
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3233
  cat >conftest.$ac_ext <<_ACEOF
3234
/* confdefs.h.  */
3235
_ACEOF
3236
cat confdefs.h >>conftest.$ac_ext
3237
cat >>conftest.$ac_ext <<_ACEOF
3238
/* end confdefs.h.  */
3239
#include 
3240
 
3241
_ACEOF
3242
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243
  $EGREP "memchr" >/dev/null 2>&1; then
3244
  :
3245
else
3246
  ac_cv_header_stdc=no
3247
fi
3248
rm -f conftest*
3249
 
3250
fi
3251
 
3252
if test $ac_cv_header_stdc = yes; then
3253
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3254
  cat >conftest.$ac_ext <<_ACEOF
3255
/* confdefs.h.  */
3256
_ACEOF
3257
cat confdefs.h >>conftest.$ac_ext
3258
cat >>conftest.$ac_ext <<_ACEOF
3259
/* end confdefs.h.  */
3260
#include 
3261
 
3262
_ACEOF
3263
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264
  $EGREP "free" >/dev/null 2>&1; then
3265
  :
3266
else
3267
  ac_cv_header_stdc=no
3268
fi
3269
rm -f conftest*
3270
 
3271
fi
3272
 
3273
if test $ac_cv_header_stdc = yes; then
3274
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3275
  if test "$cross_compiling" = yes; then
3276
  :
3277
else
3278
  cat >conftest.$ac_ext <<_ACEOF
3279
/* confdefs.h.  */
3280
_ACEOF
3281
cat confdefs.h >>conftest.$ac_ext
3282
cat >>conftest.$ac_ext <<_ACEOF
3283
/* end confdefs.h.  */
3284
#include 
3285
#if ((' ' & 0x0FF) == 0x020)
3286
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3287
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3288
#else
3289
# define ISLOWER(c) \
3290
                   (('a' <= (c) && (c) <= 'i') \
3291
                     || ('j' <= (c) && (c) <= 'r') \
3292
                     || ('s' <= (c) && (c) <= 'z'))
3293
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3294
#endif
3295
 
3296
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3297
int
3298
main ()
3299
{
3300
  int i;
3301
  for (i = 0; i < 256; i++)
3302
    if (XOR (islower (i), ISLOWER (i))
3303
        || toupper (i) != TOUPPER (i))
3304
      exit(2);
3305
  exit (0);
3306
}
3307
_ACEOF
3308
rm -f conftest$ac_exeext
3309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310
  (eval $ac_link) 2>&5
3311
  ac_status=$?
3312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315
  (eval $ac_try) 2>&5
3316
  ac_status=$?
3317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318
  (exit $ac_status); }; }; then
3319
  :
3320
else
3321
  echo "$as_me: program exited with status $ac_status" >&5
3322
echo "$as_me: failed program was:" >&5
3323
sed 's/^/| /' conftest.$ac_ext >&5
3324
 
3325
( exit $ac_status )
3326
ac_cv_header_stdc=no
3327
fi
3328
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3329
fi
3330
fi
3331
fi
3332
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3333
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3334
if test $ac_cv_header_stdc = yes; then
3335
 
3336
cat >>confdefs.h <<\_ACEOF
3337
#define STDC_HEADERS 1
3338
_ACEOF
3339
 
3340
fi
3341
 
3342
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3343
 
3344
 
3345
 
3346
 
3347
 
3348
 
3349
 
3350
 
3351
 
3352
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3353
                  inttypes.h stdint.h unistd.h
3354
do
3355
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3356
echo "$as_me:$LINENO: checking for $ac_header" >&5
3357
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3358
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3359
  echo $ECHO_N "(cached) $ECHO_C" >&6
3360
else
3361
  cat >conftest.$ac_ext <<_ACEOF
3362
/* confdefs.h.  */
3363
_ACEOF
3364
cat confdefs.h >>conftest.$ac_ext
3365
cat >>conftest.$ac_ext <<_ACEOF
3366
/* end confdefs.h.  */
3367
$ac_includes_default
3368
 
3369
#include <$ac_header>
3370
_ACEOF
3371
rm -f conftest.$ac_objext
3372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373
  (eval $ac_compile) 2>conftest.er1
3374
  ac_status=$?
3375
  grep -v '^ *+' conftest.er1 >conftest.err
3376
  rm -f conftest.er1
3377
  cat conftest.err >&5
3378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379
  (exit $ac_status); } &&
3380
         { ac_try='test -z "$ac_c_werror_flag"
3381
                         || test ! -s conftest.err'
3382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383
  (eval $ac_try) 2>&5
3384
  ac_status=$?
3385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386
  (exit $ac_status); }; } &&
3387
         { ac_try='test -s conftest.$ac_objext'
3388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389
  (eval $ac_try) 2>&5
3390
  ac_status=$?
3391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392
  (exit $ac_status); }; }; then
3393
  eval "$as_ac_Header=yes"
3394
else
3395
  echo "$as_me: failed program was:" >&5
3396
sed 's/^/| /' conftest.$ac_ext >&5
3397
 
3398
eval "$as_ac_Header=no"
3399
fi
3400
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3401
fi
3402
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3403
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3404
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3405
  cat >>confdefs.h <<_ACEOF
3406
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3407
_ACEOF
3408
 
3409
fi
3410
 
3411
done
3412
 
3413
 
3414
echo "$as_me:$LINENO: checking for long" >&5
3415
echo $ECHO_N "checking for long... $ECHO_C" >&6
3416
if test "${ac_cv_type_long+set}" = set; then
3417
  echo $ECHO_N "(cached) $ECHO_C" >&6
3418
else
3419
  cat >conftest.$ac_ext <<_ACEOF
3420
/* confdefs.h.  */
3421
_ACEOF
3422
cat confdefs.h >>conftest.$ac_ext
3423
cat >>conftest.$ac_ext <<_ACEOF
3424
/* end confdefs.h.  */
3425
$ac_includes_default
3426
int
3427
main ()
3428
{
3429
if ((long *) 0)
3430
  return 0;
3431
if (sizeof (long))
3432
  return 0;
3433
  ;
3434
  return 0;
3435
}
3436
_ACEOF
3437
rm -f conftest.$ac_objext
3438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439
  (eval $ac_compile) 2>conftest.er1
3440
  ac_status=$?
3441
  grep -v '^ *+' conftest.er1 >conftest.err
3442
  rm -f conftest.er1
3443
  cat conftest.err >&5
3444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445
  (exit $ac_status); } &&
3446
         { ac_try='test -z "$ac_c_werror_flag"
3447
                         || test ! -s conftest.err'
3448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449
  (eval $ac_try) 2>&5
3450
  ac_status=$?
3451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452
  (exit $ac_status); }; } &&
3453
         { ac_try='test -s conftest.$ac_objext'
3454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455
  (eval $ac_try) 2>&5
3456
  ac_status=$?
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
  (exit $ac_status); }; }; then
3459
  ac_cv_type_long=yes
3460
else
3461
  echo "$as_me: failed program was:" >&5
3462
sed 's/^/| /' conftest.$ac_ext >&5
3463
 
3464
ac_cv_type_long=no
3465
fi
3466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467
fi
3468
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3469
echo "${ECHO_T}$ac_cv_type_long" >&6
3470
 
3471
echo "$as_me:$LINENO: checking size of long" >&5
3472
echo $ECHO_N "checking size of long... $ECHO_C" >&6
3473 131 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
3474 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
3475 131 jeremybenn
else
3476 225 jeremybenn
  if test "$ac_cv_type_long" = yes; then
3477
  # The cast to unsigned long works around a bug in the HP C Compiler
3478
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3479
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3480
  # This bug is HP SR number 8606223364.
3481 131 jeremybenn
  if test "$cross_compiling" = yes; then
3482
  # Depending upon the size, compute the lo and hi bounds.
3483
cat >conftest.$ac_ext <<_ACEOF
3484
/* confdefs.h.  */
3485
_ACEOF
3486
cat confdefs.h >>conftest.$ac_ext
3487
cat >>conftest.$ac_ext <<_ACEOF
3488
/* end confdefs.h.  */
3489
$ac_includes_default
3490
int
3491
main ()
3492
{
3493 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3494 131 jeremybenn
test_array [0] = 0
3495
 
3496
  ;
3497
  return 0;
3498
}
3499
_ACEOF
3500
rm -f conftest.$ac_objext
3501 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502
  (eval $ac_compile) 2>conftest.er1
3503 131 jeremybenn
  ac_status=$?
3504
  grep -v '^ *+' conftest.er1 >conftest.err
3505
  rm -f conftest.er1
3506
  cat conftest.err >&5
3507 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508
  (exit $ac_status); } &&
3509
         { ac_try='test -z "$ac_c_werror_flag"
3510
                         || test ! -s conftest.err'
3511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512
  (eval $ac_try) 2>&5
3513
  ac_status=$?
3514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
  (exit $ac_status); }; } &&
3516
         { ac_try='test -s conftest.$ac_objext'
3517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518
  (eval $ac_try) 2>&5
3519
  ac_status=$?
3520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
  (exit $ac_status); }; }; then
3522 131 jeremybenn
  ac_lo=0 ac_mid=0
3523
  while :; do
3524
    cat >conftest.$ac_ext <<_ACEOF
3525
/* confdefs.h.  */
3526
_ACEOF
3527
cat confdefs.h >>conftest.$ac_ext
3528
cat >>conftest.$ac_ext <<_ACEOF
3529
/* end confdefs.h.  */
3530
$ac_includes_default
3531
int
3532
main ()
3533
{
3534 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3535 131 jeremybenn
test_array [0] = 0
3536
 
3537
  ;
3538
  return 0;
3539
}
3540
_ACEOF
3541
rm -f conftest.$ac_objext
3542 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543
  (eval $ac_compile) 2>conftest.er1
3544 131 jeremybenn
  ac_status=$?
3545
  grep -v '^ *+' conftest.er1 >conftest.err
3546
  rm -f conftest.er1
3547
  cat conftest.err >&5
3548 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549
  (exit $ac_status); } &&
3550
         { ac_try='test -z "$ac_c_werror_flag"
3551
                         || test ! -s conftest.err'
3552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553
  (eval $ac_try) 2>&5
3554
  ac_status=$?
3555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556
  (exit $ac_status); }; } &&
3557
         { ac_try='test -s conftest.$ac_objext'
3558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559
  (eval $ac_try) 2>&5
3560
  ac_status=$?
3561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
  (exit $ac_status); }; }; then
3563 131 jeremybenn
  ac_hi=$ac_mid; break
3564
else
3565 225 jeremybenn
  echo "$as_me: failed program was:" >&5
3566 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3567
 
3568 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
3569
                    if test $ac_lo -le $ac_mid; then
3570
                      ac_lo= ac_hi=
3571
                      break
3572
                    fi
3573
                    ac_mid=`expr 2 '*' $ac_mid + 1`
3574 131 jeremybenn
fi
3575 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576 131 jeremybenn
  done
3577
else
3578 225 jeremybenn
  echo "$as_me: failed program was:" >&5
3579 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3580
 
3581 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
3582 131 jeremybenn
/* confdefs.h.  */
3583
_ACEOF
3584
cat confdefs.h >>conftest.$ac_ext
3585
cat >>conftest.$ac_ext <<_ACEOF
3586
/* end confdefs.h.  */
3587
$ac_includes_default
3588
int
3589
main ()
3590
{
3591 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3592 131 jeremybenn
test_array [0] = 0
3593
 
3594
  ;
3595
  return 0;
3596
}
3597
_ACEOF
3598
rm -f conftest.$ac_objext
3599 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600
  (eval $ac_compile) 2>conftest.er1
3601 131 jeremybenn
  ac_status=$?
3602
  grep -v '^ *+' conftest.er1 >conftest.err
3603
  rm -f conftest.er1
3604
  cat conftest.err >&5
3605 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606
  (exit $ac_status); } &&
3607
         { ac_try='test -z "$ac_c_werror_flag"
3608
                         || test ! -s conftest.err'
3609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610
  (eval $ac_try) 2>&5
3611
  ac_status=$?
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
  (exit $ac_status); }; } &&
3614
         { ac_try='test -s conftest.$ac_objext'
3615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616
  (eval $ac_try) 2>&5
3617
  ac_status=$?
3618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
  (exit $ac_status); }; }; then
3620 131 jeremybenn
  ac_hi=-1 ac_mid=-1
3621
  while :; do
3622
    cat >conftest.$ac_ext <<_ACEOF
3623
/* confdefs.h.  */
3624
_ACEOF
3625
cat confdefs.h >>conftest.$ac_ext
3626
cat >>conftest.$ac_ext <<_ACEOF
3627
/* end confdefs.h.  */
3628
$ac_includes_default
3629
int
3630
main ()
3631
{
3632 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3633 131 jeremybenn
test_array [0] = 0
3634
 
3635
  ;
3636
  return 0;
3637
}
3638
_ACEOF
3639
rm -f conftest.$ac_objext
3640 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641
  (eval $ac_compile) 2>conftest.er1
3642 131 jeremybenn
  ac_status=$?
3643
  grep -v '^ *+' conftest.er1 >conftest.err
3644
  rm -f conftest.er1
3645
  cat conftest.err >&5
3646 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
  (exit $ac_status); } &&
3648
         { ac_try='test -z "$ac_c_werror_flag"
3649
                         || test ! -s conftest.err'
3650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651
  (eval $ac_try) 2>&5
3652
  ac_status=$?
3653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
  (exit $ac_status); }; } &&
3655
         { ac_try='test -s conftest.$ac_objext'
3656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657
  (eval $ac_try) 2>&5
3658
  ac_status=$?
3659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660
  (exit $ac_status); }; }; then
3661 131 jeremybenn
  ac_lo=$ac_mid; break
3662
else
3663 225 jeremybenn
  echo "$as_me: failed program was:" >&5
3664 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3665
 
3666 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
3667
                       if test $ac_mid -le $ac_hi; then
3668
                         ac_lo= ac_hi=
3669
                         break
3670
                       fi
3671
                       ac_mid=`expr 2 '*' $ac_mid`
3672 131 jeremybenn
fi
3673 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 131 jeremybenn
  done
3675
else
3676 225 jeremybenn
  echo "$as_me: failed program was:" >&5
3677 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3678
 
3679 225 jeremybenn
ac_lo= ac_hi=
3680 131 jeremybenn
fi
3681 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682 131 jeremybenn
fi
3683 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684 131 jeremybenn
# Binary search between lo and hi bounds.
3685
while test "x$ac_lo" != "x$ac_hi"; do
3686
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3687
  cat >conftest.$ac_ext <<_ACEOF
3688
/* confdefs.h.  */
3689
_ACEOF
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h.  */
3693
$ac_includes_default
3694
int
3695
main ()
3696
{
3697 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3698 131 jeremybenn
test_array [0] = 0
3699
 
3700
  ;
3701
  return 0;
3702
}
3703
_ACEOF
3704
rm -f conftest.$ac_objext
3705 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706
  (eval $ac_compile) 2>conftest.er1
3707 131 jeremybenn
  ac_status=$?
3708
  grep -v '^ *+' conftest.er1 >conftest.err
3709
  rm -f conftest.er1
3710
  cat conftest.err >&5
3711 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712
  (exit $ac_status); } &&
3713
         { ac_try='test -z "$ac_c_werror_flag"
3714
                         || test ! -s conftest.err'
3715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716
  (eval $ac_try) 2>&5
3717
  ac_status=$?
3718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
  (exit $ac_status); }; } &&
3720
         { ac_try='test -s conftest.$ac_objext'
3721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722
  (eval $ac_try) 2>&5
3723
  ac_status=$?
3724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725
  (exit $ac_status); }; }; then
3726 131 jeremybenn
  ac_hi=$ac_mid
3727
else
3728 225 jeremybenn
  echo "$as_me: failed program was:" >&5
3729 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3730
 
3731 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
3732 131 jeremybenn
fi
3733 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 131 jeremybenn
done
3735
case $ac_lo in
3736
?*) ac_cv_sizeof_long=$ac_lo;;
3737 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3738 131 jeremybenn
See \`config.log' for more details." >&5
3739 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (long), 77
3740 131 jeremybenn
See \`config.log' for more details." >&2;}
3741 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
3742 131 jeremybenn
esac
3743
else
3744 225 jeremybenn
  if test "$cross_compiling" = yes; then
3745
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3746
See \`config.log' for more details." >&5
3747
echo "$as_me: error: cannot run test program while cross compiling
3748
See \`config.log' for more details." >&2;}
3749
   { (exit 1); exit 1; }; }
3750
else
3751 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3752
/* confdefs.h.  */
3753
_ACEOF
3754
cat confdefs.h >>conftest.$ac_ext
3755
cat >>conftest.$ac_ext <<_ACEOF
3756
/* end confdefs.h.  */
3757
$ac_includes_default
3758 225 jeremybenn
long longval () { return (long) (sizeof (long)); }
3759
unsigned long ulongval () { return (long) (sizeof (long)); }
3760 131 jeremybenn
#include 
3761
#include 
3762
int
3763
main ()
3764
{
3765
 
3766
  FILE *f = fopen ("conftest.val", "w");
3767
  if (! f)
3768 225 jeremybenn
    exit (1);
3769
  if (((long) (sizeof (long))) < 0)
3770 131 jeremybenn
    {
3771 225 jeremybenn
      long i = longval ();
3772
      if (i != ((long) (sizeof (long))))
3773
        exit (1);
3774
      fprintf (f, "%ld\n", i);
3775 131 jeremybenn
    }
3776
  else
3777
    {
3778 225 jeremybenn
      unsigned long i = ulongval ();
3779
      if (i != ((long) (sizeof (long))))
3780
        exit (1);
3781
      fprintf (f, "%lu\n", i);
3782 131 jeremybenn
    }
3783 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
3784 131 jeremybenn
 
3785
  ;
3786
  return 0;
3787
}
3788
_ACEOF
3789
rm -f conftest$ac_exeext
3790 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791
  (eval $ac_link) 2>&5
3792 131 jeremybenn
  ac_status=$?
3793 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3795 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796
  (eval $ac_try) 2>&5
3797 131 jeremybenn
  ac_status=$?
3798 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 131 jeremybenn
  (exit $ac_status); }; }; then
3800
  ac_cv_sizeof_long=`cat conftest.val`
3801
else
3802 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
3803
echo "$as_me: failed program was:" >&5
3804 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3805
 
3806
( exit $ac_status )
3807 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3808 131 jeremybenn
See \`config.log' for more details." >&5
3809 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (long), 77
3810 131 jeremybenn
See \`config.log' for more details." >&2;}
3811 225 jeremybenn
   { (exit 1); exit 1; }; }
3812 131 jeremybenn
fi
3813 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3814 131 jeremybenn
fi
3815 225 jeremybenn
fi
3816 131 jeremybenn
rm -f conftest.val
3817 225 jeremybenn
else
3818
  ac_cv_sizeof_long=0
3819 131 jeremybenn
fi
3820 225 jeremybenn
fi
3821
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3822
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3823 131 jeremybenn
cat >>confdefs.h <<_ACEOF
3824
#define SIZEOF_LONG $ac_cv_sizeof_long
3825
_ACEOF
3826
 
3827
 
3828
    if test "x${ac_cv_sizeof_long}" = "x8"; then
3829
      want64=true
3830
    fi
3831
  fi
3832
  if test x${want64} = xtrue; then
3833
    TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
3834
  else
3835
    TARGET_OBS='$(ALL_TARGET_OBS)'
3836
  fi
3837
fi
3838
 
3839
 
3840
 
3841
# For other settings, only the main target counts.
3842
gdb_sim=
3843
gdb_osabi=
3844
build_gdbserver=
3845
targ=$target; . ${srcdir}/configure.tgt
3846
 
3847
# Fetch the default architecture and default target vector from BFD.
3848
targ=$target; . $srcdir/../bfd/config.bfd
3849
 
3850
# We only want the first architecture, so strip off the others if
3851
# there is more than one.
3852
targ_archs=`echo $targ_archs | sed 's/ .*//'`
3853
 
3854
if test "x$targ_archs" != x; then
3855
 
3856
cat >>confdefs.h <<_ACEOF
3857
#define DEFAULT_BFD_ARCH $targ_archs
3858
_ACEOF
3859
 
3860
fi
3861
if test "x$targ_defvec" != x; then
3862
 
3863
cat >>confdefs.h <<_ACEOF
3864
#define DEFAULT_BFD_VEC $targ_defvec
3865
_ACEOF
3866
 
3867
fi
3868
 
3869
test "$program_prefix" != NONE &&
3870 225 jeremybenn
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3871 131 jeremybenn
# Use a double $ so make ignores it.
3872
test "$program_suffix" != NONE &&
3873 225 jeremybenn
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3874
# Double any \ or $.  echo might interpret backslashes.
3875 131 jeremybenn
# By default was `s,x,x', remove it if useless.
3876 225 jeremybenn
cat <<\_ACEOF >conftest.sed
3877
s/[\\$]/&&/g;s/;s,x,x,$//
3878
_ACEOF
3879
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3880
rm conftest.sed
3881 131 jeremybenn
 
3882
 
3883
# The CLI cannot be disabled yet, but may be in the future.
3884
 
3885
# Enable CLI.
3886 225 jeremybenn
# Check whether --enable-gdbcli or --disable-gdbcli was given.
3887 131 jeremybenn
if test "${enable_gdbcli+set}" = set; then
3888 225 jeremybenn
  enableval="$enable_gdbcli"
3889
  case $enableval in
3890 131 jeremybenn
    yes)
3891
      ;;
3892
    no)
3893 225 jeremybenn
      { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3894
echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3895 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3896
    *)
3897 225 jeremybenn
      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3898
echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3899 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3900
  esac
3901
else
3902
  enable_gdbcli=yes
3903 225 jeremybenn
fi;
3904 131 jeremybenn
if test x"$enable_gdbcli" = xyes; then
3905
  if test -d $srcdir/cli; then
3906
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3907
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3908
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3909
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3910
  fi
3911
fi
3912
 
3913
# Enable MI.
3914 225 jeremybenn
# Check whether --enable-gdbmi or --disable-gdbmi was given.
3915 131 jeremybenn
if test "${enable_gdbmi+set}" = set; then
3916 225 jeremybenn
  enableval="$enable_gdbmi"
3917
  case $enableval in
3918 131 jeremybenn
    yes | no)
3919
      ;;
3920
    *)
3921 225 jeremybenn
      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3922
echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3923 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3924
  esac
3925
else
3926
  enable_gdbmi=yes
3927 225 jeremybenn
fi;
3928 131 jeremybenn
if test x"$enable_gdbmi" = xyes; then
3929
  if test -d $srcdir/mi; then
3930
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3931
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3932
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3933
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3934
  fi
3935
fi
3936
 
3937
# Enable TUI.
3938 225 jeremybenn
# Check whether --enable-tui or --disable-tui was given.
3939 131 jeremybenn
if test "${enable_tui+set}" = set; then
3940 225 jeremybenn
  enableval="$enable_tui"
3941
  case $enableval in
3942 131 jeremybenn
    yes | no)
3943
      ;;
3944
    *)
3945 225 jeremybenn
      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3946
echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3947 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3948
  esac
3949
else
3950
  enable_tui=yes
3951 225 jeremybenn
fi;
3952 131 jeremybenn
 
3953
# Enable gdbtk.
3954 225 jeremybenn
# Check whether --enable-gdbtk or --disable-gdbtk was given.
3955 131 jeremybenn
if test "${enable_gdbtk+set}" = set; then
3956 225 jeremybenn
  enableval="$enable_gdbtk"
3957
  case $enableval in
3958 131 jeremybenn
    yes | no)
3959
      ;;
3960
    *)
3961 225 jeremybenn
      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3962
echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3963 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3964
  esac
3965
else
3966
  if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3967
    enable_gdbtk=yes
3968
  else
3969
    enable_gdbtk=no
3970
  fi
3971 225 jeremybenn
fi;
3972 131 jeremybenn
# We unconditionally disable gdbtk tests on selected platforms.
3973
case $host_os in
3974
  go32* | windows*)
3975 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3976
echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3977 131 jeremybenn
    enable_gdbtk=no ;;
3978
esac
3979
 
3980
# Libunwind support.
3981
 
3982 225 jeremybenn
# Check whether --with-libunwind or --without-libunwind was given.
3983 131 jeremybenn
if test "${with_libunwind+set}" = set; then
3984 225 jeremybenn
  withval="$with_libunwind"
3985
  case "${withval}" in
3986 131 jeremybenn
  yes)  enable_libunwind=yes ;;
3987
  no)   enable_libunwind=no ;;
3988 225 jeremybenn
  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3989
echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3990 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
3991
esac
3992
else
3993
 
3994
 
3995
for ac_header in libunwind.h
3996
do
3997 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3999
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4001
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002
  echo $ECHO_N "(cached) $ECHO_C" >&6
4003 131 jeremybenn
fi
4004 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4006 131 jeremybenn
else
4007
  # Is the header compilable?
4008 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4009
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4010 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4011
/* confdefs.h.  */
4012
_ACEOF
4013
cat confdefs.h >>conftest.$ac_ext
4014
cat >>conftest.$ac_ext <<_ACEOF
4015
/* end confdefs.h.  */
4016
$ac_includes_default
4017
#include <$ac_header>
4018
_ACEOF
4019
rm -f conftest.$ac_objext
4020 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021
  (eval $ac_compile) 2>conftest.er1
4022 131 jeremybenn
  ac_status=$?
4023
  grep -v '^ *+' conftest.er1 >conftest.err
4024
  rm -f conftest.er1
4025
  cat conftest.err >&5
4026 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
  (exit $ac_status); } &&
4028
         { ac_try='test -z "$ac_c_werror_flag"
4029
                         || test ! -s conftest.err'
4030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031
  (eval $ac_try) 2>&5
4032
  ac_status=$?
4033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034
  (exit $ac_status); }; } &&
4035
         { ac_try='test -s conftest.$ac_objext'
4036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037
  (eval $ac_try) 2>&5
4038
  ac_status=$?
4039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040
  (exit $ac_status); }; }; then
4041 131 jeremybenn
  ac_header_compiler=yes
4042
else
4043 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4044 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4045
 
4046 225 jeremybenn
ac_header_compiler=no
4047 131 jeremybenn
fi
4048 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4050
echo "${ECHO_T}$ac_header_compiler" >&6
4051 131 jeremybenn
 
4052
# Is the header present?
4053 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4055 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4056
/* confdefs.h.  */
4057
_ACEOF
4058
cat confdefs.h >>conftest.$ac_ext
4059
cat >>conftest.$ac_ext <<_ACEOF
4060
/* end confdefs.h.  */
4061
#include <$ac_header>
4062
_ACEOF
4063 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4064
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4065 131 jeremybenn
  ac_status=$?
4066
  grep -v '^ *+' conftest.er1 >conftest.err
4067
  rm -f conftest.er1
4068
  cat conftest.err >&5
4069 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070
  (exit $ac_status); } >/dev/null; then
4071
  if test -s conftest.err; then
4072
    ac_cpp_err=$ac_c_preproc_warn_flag
4073
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4074
  else
4075
    ac_cpp_err=
4076
  fi
4077
else
4078
  ac_cpp_err=yes
4079
fi
4080
if test -z "$ac_cpp_err"; then
4081 131 jeremybenn
  ac_header_preproc=yes
4082
else
4083 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4084 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4085
 
4086
  ac_header_preproc=no
4087
fi
4088
rm -f conftest.err conftest.$ac_ext
4089 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4090
echo "${ECHO_T}$ac_header_preproc" >&6
4091 131 jeremybenn
 
4092
# So?  What about this header?
4093
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4094
  yes:no: )
4095 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4096
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4097
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4098
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4099 131 jeremybenn
    ac_header_preproc=yes
4100
    ;;
4101
  no:yes:* )
4102 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4103
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4104
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4105
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4106
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4107
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4108
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4109
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4110
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4111
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4112
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4113
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4114
    (
4115
      cat <<\_ASBOX
4116
## ------------------------------------------ ##
4117
## Report this to the AC_PACKAGE_NAME lists.  ##
4118
## ------------------------------------------ ##
4119
_ASBOX
4120
    ) |
4121
      sed "s/^/$as_me: WARNING:     /" >&2
4122 131 jeremybenn
    ;;
4123
esac
4124 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
4125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4127
  echo $ECHO_N "(cached) $ECHO_C" >&6
4128 131 jeremybenn
else
4129
  eval "$as_ac_Header=\$ac_header_preproc"
4130
fi
4131 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4133 131 jeremybenn
 
4134
fi
4135 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4136 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
4137 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138 131 jeremybenn
_ACEOF
4139
 
4140
fi
4141
 
4142
done
4143
 
4144
 
4145
for ac_header in libunwind-ia64.h
4146
do
4147 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4148
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4149
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4151
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4152
  echo $ECHO_N "(cached) $ECHO_C" >&6
4153 131 jeremybenn
fi
4154 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4155
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4156 131 jeremybenn
else
4157
  # Is the header compilable?
4158 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4159
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4160 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4161
/* confdefs.h.  */
4162
_ACEOF
4163
cat confdefs.h >>conftest.$ac_ext
4164
cat >>conftest.$ac_ext <<_ACEOF
4165
/* end confdefs.h.  */
4166
$ac_includes_default
4167
#include <$ac_header>
4168
_ACEOF
4169
rm -f conftest.$ac_objext
4170 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171
  (eval $ac_compile) 2>conftest.er1
4172 131 jeremybenn
  ac_status=$?
4173
  grep -v '^ *+' conftest.er1 >conftest.err
4174
  rm -f conftest.er1
4175
  cat conftest.err >&5
4176 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
  (exit $ac_status); } &&
4178
         { ac_try='test -z "$ac_c_werror_flag"
4179
                         || test ! -s conftest.err'
4180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181
  (eval $ac_try) 2>&5
4182
  ac_status=$?
4183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184
  (exit $ac_status); }; } &&
4185
         { ac_try='test -s conftest.$ac_objext'
4186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187
  (eval $ac_try) 2>&5
4188
  ac_status=$?
4189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190
  (exit $ac_status); }; }; then
4191 131 jeremybenn
  ac_header_compiler=yes
4192
else
4193 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4194 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4195
 
4196 225 jeremybenn
ac_header_compiler=no
4197 131 jeremybenn
fi
4198 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4200
echo "${ECHO_T}$ac_header_compiler" >&6
4201 131 jeremybenn
 
4202
# Is the header present?
4203 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4204
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4205 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4206
/* confdefs.h.  */
4207
_ACEOF
4208
cat confdefs.h >>conftest.$ac_ext
4209
cat >>conftest.$ac_ext <<_ACEOF
4210
/* end confdefs.h.  */
4211
#include <$ac_header>
4212
_ACEOF
4213 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 131 jeremybenn
  ac_status=$?
4216
  grep -v '^ *+' conftest.er1 >conftest.err
4217
  rm -f conftest.er1
4218
  cat conftest.err >&5
4219 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
  (exit $ac_status); } >/dev/null; then
4221
  if test -s conftest.err; then
4222
    ac_cpp_err=$ac_c_preproc_warn_flag
4223
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224
  else
4225
    ac_cpp_err=
4226
  fi
4227
else
4228
  ac_cpp_err=yes
4229
fi
4230
if test -z "$ac_cpp_err"; then
4231 131 jeremybenn
  ac_header_preproc=yes
4232
else
4233 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4234 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4235
 
4236
  ac_header_preproc=no
4237
fi
4238
rm -f conftest.err conftest.$ac_ext
4239 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4240
echo "${ECHO_T}$ac_header_preproc" >&6
4241 131 jeremybenn
 
4242
# So?  What about this header?
4243
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4244
  yes:no: )
4245 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4246
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4247
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4248
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4249 131 jeremybenn
    ac_header_preproc=yes
4250
    ;;
4251
  no:yes:* )
4252 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4253
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4254
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4255
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4256
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4257
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4258
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4259
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4260
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4261
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4262
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4263
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4264
    (
4265
      cat <<\_ASBOX
4266
## ------------------------------------------ ##
4267
## Report this to the AC_PACKAGE_NAME lists.  ##
4268
## ------------------------------------------ ##
4269
_ASBOX
4270
    ) |
4271
      sed "s/^/$as_me: WARNING:     /" >&2
4272 131 jeremybenn
    ;;
4273
esac
4274 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
4275
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4276
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4277
  echo $ECHO_N "(cached) $ECHO_C" >&6
4278 131 jeremybenn
else
4279
  eval "$as_ac_Header=\$ac_header_preproc"
4280
fi
4281 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 131 jeremybenn
 
4284
fi
4285 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4286 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
4287 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4288 131 jeremybenn
_ACEOF
4289
 
4290
fi
4291
 
4292
done
4293
 
4294
  if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
4295
    enable_libunwind=yes;
4296
  fi
4297
 
4298 225 jeremybenn
fi;
4299 131 jeremybenn
 
4300
if test x"$enable_libunwind" = xyes; then
4301
 
4302
for ac_header in libunwind.h
4303
do
4304 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4307
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309
  echo $ECHO_N "(cached) $ECHO_C" >&6
4310 131 jeremybenn
fi
4311 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313 131 jeremybenn
else
4314
  # Is the header compilable?
4315 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4316
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4317 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4318
/* confdefs.h.  */
4319
_ACEOF
4320
cat confdefs.h >>conftest.$ac_ext
4321
cat >>conftest.$ac_ext <<_ACEOF
4322
/* end confdefs.h.  */
4323
$ac_includes_default
4324
#include <$ac_header>
4325
_ACEOF
4326
rm -f conftest.$ac_objext
4327 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328
  (eval $ac_compile) 2>conftest.er1
4329 131 jeremybenn
  ac_status=$?
4330
  grep -v '^ *+' conftest.er1 >conftest.err
4331
  rm -f conftest.er1
4332
  cat conftest.err >&5
4333 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334
  (exit $ac_status); } &&
4335
         { ac_try='test -z "$ac_c_werror_flag"
4336
                         || test ! -s conftest.err'
4337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338
  (eval $ac_try) 2>&5
4339
  ac_status=$?
4340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341
  (exit $ac_status); }; } &&
4342
         { ac_try='test -s conftest.$ac_objext'
4343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
  (eval $ac_try) 2>&5
4345
  ac_status=$?
4346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347
  (exit $ac_status); }; }; then
4348 131 jeremybenn
  ac_header_compiler=yes
4349
else
4350 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4351 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4352
 
4353 225 jeremybenn
ac_header_compiler=no
4354 131 jeremybenn
fi
4355 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4357
echo "${ECHO_T}$ac_header_compiler" >&6
4358 131 jeremybenn
 
4359
# Is the header present?
4360 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4361
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4362 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4363
/* confdefs.h.  */
4364
_ACEOF
4365
cat confdefs.h >>conftest.$ac_ext
4366
cat >>conftest.$ac_ext <<_ACEOF
4367
/* end confdefs.h.  */
4368
#include <$ac_header>
4369
_ACEOF
4370 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4371
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4372 131 jeremybenn
  ac_status=$?
4373
  grep -v '^ *+' conftest.er1 >conftest.err
4374
  rm -f conftest.er1
4375
  cat conftest.err >&5
4376 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
  (exit $ac_status); } >/dev/null; then
4378
  if test -s conftest.err; then
4379
    ac_cpp_err=$ac_c_preproc_warn_flag
4380
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4381
  else
4382
    ac_cpp_err=
4383
  fi
4384
else
4385
  ac_cpp_err=yes
4386
fi
4387
if test -z "$ac_cpp_err"; then
4388 131 jeremybenn
  ac_header_preproc=yes
4389
else
4390 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4391 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4392
 
4393
  ac_header_preproc=no
4394
fi
4395
rm -f conftest.err conftest.$ac_ext
4396 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4397
echo "${ECHO_T}$ac_header_preproc" >&6
4398 131 jeremybenn
 
4399
# So?  What about this header?
4400
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4401
  yes:no: )
4402 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4403
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4404
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4405
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4406 131 jeremybenn
    ac_header_preproc=yes
4407
    ;;
4408
  no:yes:* )
4409 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4410
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4411
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4412
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4413
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4414
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4415
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4416
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4417
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4418
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4419
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4420
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4421
    (
4422
      cat <<\_ASBOX
4423
## ------------------------------------------ ##
4424
## Report this to the AC_PACKAGE_NAME lists.  ##
4425
## ------------------------------------------ ##
4426
_ASBOX
4427
    ) |
4428
      sed "s/^/$as_me: WARNING:     /" >&2
4429 131 jeremybenn
    ;;
4430
esac
4431 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
4432
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4433
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4434
  echo $ECHO_N "(cached) $ECHO_C" >&6
4435 131 jeremybenn
else
4436
  eval "$as_ac_Header=\$ac_header_preproc"
4437
fi
4438 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440 131 jeremybenn
 
4441
fi
4442 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4443 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
4444 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4445 131 jeremybenn
_ACEOF
4446
 
4447
fi
4448
 
4449
done
4450
 
4451
 
4452
for ac_header in libunwind-ia64.h
4453
do
4454 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4457
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459
  echo $ECHO_N "(cached) $ECHO_C" >&6
4460 131 jeremybenn
fi
4461 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 131 jeremybenn
else
4464
  # Is the header compilable?
4465 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4467 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4468
/* confdefs.h.  */
4469
_ACEOF
4470
cat confdefs.h >>conftest.$ac_ext
4471
cat >>conftest.$ac_ext <<_ACEOF
4472
/* end confdefs.h.  */
4473
$ac_includes_default
4474
#include <$ac_header>
4475
_ACEOF
4476
rm -f conftest.$ac_objext
4477 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478
  (eval $ac_compile) 2>conftest.er1
4479 131 jeremybenn
  ac_status=$?
4480
  grep -v '^ *+' conftest.er1 >conftest.err
4481
  rm -f conftest.er1
4482
  cat conftest.err >&5
4483 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484
  (exit $ac_status); } &&
4485
         { ac_try='test -z "$ac_c_werror_flag"
4486
                         || test ! -s conftest.err'
4487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488
  (eval $ac_try) 2>&5
4489
  ac_status=$?
4490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491
  (exit $ac_status); }; } &&
4492
         { ac_try='test -s conftest.$ac_objext'
4493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494
  (eval $ac_try) 2>&5
4495
  ac_status=$?
4496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497
  (exit $ac_status); }; }; then
4498 131 jeremybenn
  ac_header_compiler=yes
4499
else
4500 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4501 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4502
 
4503 225 jeremybenn
ac_header_compiler=no
4504 131 jeremybenn
fi
4505 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4507
echo "${ECHO_T}$ac_header_compiler" >&6
4508 131 jeremybenn
 
4509
# Is the header present?
4510 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4511
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4512 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
4513
/* confdefs.h.  */
4514
_ACEOF
4515
cat confdefs.h >>conftest.$ac_ext
4516
cat >>conftest.$ac_ext <<_ACEOF
4517
/* end confdefs.h.  */
4518
#include <$ac_header>
4519
_ACEOF
4520 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4521
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4522 131 jeremybenn
  ac_status=$?
4523
  grep -v '^ *+' conftest.er1 >conftest.err
4524
  rm -f conftest.er1
4525
  cat conftest.err >&5
4526 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527
  (exit $ac_status); } >/dev/null; then
4528
  if test -s conftest.err; then
4529
    ac_cpp_err=$ac_c_preproc_warn_flag
4530
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4531
  else
4532
    ac_cpp_err=
4533
  fi
4534
else
4535
  ac_cpp_err=yes
4536
fi
4537
if test -z "$ac_cpp_err"; then
4538 131 jeremybenn
  ac_header_preproc=yes
4539
else
4540 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4541 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4542
 
4543
  ac_header_preproc=no
4544
fi
4545
rm -f conftest.err conftest.$ac_ext
4546 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4547
echo "${ECHO_T}$ac_header_preproc" >&6
4548 131 jeremybenn
 
4549
# So?  What about this header?
4550
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4551
  yes:no: )
4552 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4553
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4554
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4555
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4556 131 jeremybenn
    ac_header_preproc=yes
4557
    ;;
4558
  no:yes:* )
4559 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4560
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4561
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4562
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4563
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4564
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4565
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4566
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4567
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4568
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4569
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4570
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4571
    (
4572
      cat <<\_ASBOX
4573
## ------------------------------------------ ##
4574
## Report this to the AC_PACKAGE_NAME lists.  ##
4575
## ------------------------------------------ ##
4576
_ASBOX
4577
    ) |
4578
      sed "s/^/$as_me: WARNING:     /" >&2
4579 131 jeremybenn
    ;;
4580
esac
4581 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
4582
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584
  echo $ECHO_N "(cached) $ECHO_C" >&6
4585 131 jeremybenn
else
4586
  eval "$as_ac_Header=\$ac_header_preproc"
4587
fi
4588 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 131 jeremybenn
 
4591
fi
4592 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
4594 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 131 jeremybenn
_ACEOF
4596
 
4597
fi
4598
 
4599
done
4600
 
4601
 
4602
cat >>confdefs.h <<\_ACEOF
4603
#define HAVE_LIBUNWIND 1
4604
_ACEOF
4605
 
4606
  CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4607
  CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4608
  CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4609
fi
4610
 
4611
# Profiling support.
4612 225 jeremybenn
# Check whether --enable-profiling or --disable-profiling was given.
4613 131 jeremybenn
if test "${enable_profiling+set}" = set; then
4614 225 jeremybenn
  enableval="$enable_profiling"
4615
  case $enableval in
4616 131 jeremybenn
    yes | no)
4617
      ;;
4618
    *)
4619 225 jeremybenn
      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4620
echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4621 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
4622
  esac
4623
else
4624
  enable_profiling=no
4625 225 jeremybenn
fi;
4626 131 jeremybenn
 
4627
 
4628
 
4629
for ac_func in monstartup _mcleanup
4630
do
4631 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4632
echo "$as_me:$LINENO: checking for $ac_func" >&5
4633
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4634
if eval "test \"\${$as_ac_var+set}\" = set"; then
4635
  echo $ECHO_N "(cached) $ECHO_C" >&6
4636 131 jeremybenn
else
4637
  cat >conftest.$ac_ext <<_ACEOF
4638
/* confdefs.h.  */
4639
_ACEOF
4640
cat confdefs.h >>conftest.$ac_ext
4641
cat >>conftest.$ac_ext <<_ACEOF
4642
/* end confdefs.h.  */
4643
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
4644
   For example, HP-UX 11i  declares gettimeofday.  */
4645
#define $ac_func innocuous_$ac_func
4646
 
4647
/* System header to define __stub macros and hopefully few prototypes,
4648
    which can conflict with char $ac_func (); below.
4649
    Prefer  to  if __STDC__ is defined, since
4650
     exists even on freestanding compilers.  */
4651
 
4652
#ifdef __STDC__
4653
# include 
4654
#else
4655
# include 
4656
#endif
4657
 
4658
#undef $ac_func
4659
 
4660 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
4661 131 jeremybenn
#ifdef __cplusplus
4662
extern "C"
4663 225 jeremybenn
{
4664 131 jeremybenn
#endif
4665 225 jeremybenn
/* We use char because int might match the return type of a gcc2
4666
   builtin and then its argument prototype would still apply.  */
4667 131 jeremybenn
char $ac_func ();
4668
/* The GNU C library defines this for functions which it implements
4669
    to always fail with ENOSYS.  Some functions are actually named
4670
    something starting with __ and the normal name is an alias.  */
4671 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4672 131 jeremybenn
choke me
4673 225 jeremybenn
#else
4674
char (*f) () = $ac_func;
4675 131 jeremybenn
#endif
4676 225 jeremybenn
#ifdef __cplusplus
4677
}
4678
#endif
4679 131 jeremybenn
 
4680
int
4681
main ()
4682
{
4683 225 jeremybenn
return f != $ac_func;
4684 131 jeremybenn
  ;
4685
  return 0;
4686
}
4687
_ACEOF
4688
rm -f conftest.$ac_objext conftest$ac_exeext
4689 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690
  (eval $ac_link) 2>conftest.er1
4691 131 jeremybenn
  ac_status=$?
4692
  grep -v '^ *+' conftest.er1 >conftest.err
4693
  rm -f conftest.er1
4694
  cat conftest.err >&5
4695 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696
  (exit $ac_status); } &&
4697
         { ac_try='test -z "$ac_c_werror_flag"
4698
                         || test ! -s conftest.err'
4699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700
  (eval $ac_try) 2>&5
4701
  ac_status=$?
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
  (exit $ac_status); }; } &&
4704
         { ac_try='test -s conftest$ac_exeext'
4705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706
  (eval $ac_try) 2>&5
4707
  ac_status=$?
4708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709
  (exit $ac_status); }; }; then
4710 131 jeremybenn
  eval "$as_ac_var=yes"
4711
else
4712 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4713 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4714
 
4715 225 jeremybenn
eval "$as_ac_var=no"
4716 131 jeremybenn
fi
4717 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
4718 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
4719
fi
4720 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4721
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4722
if test `eval echo '${'$as_ac_var'}'` = yes; then
4723 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
4724 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4725 131 jeremybenn
_ACEOF
4726
 
4727
fi
4728
done
4729
 
4730 225 jeremybenn
echo "$as_me:$LINENO: checking for _etext" >&5
4731
echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4732 131 jeremybenn
if test "${ac_cv_var__etext+set}" = set; then
4733 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
4734 131 jeremybenn
else
4735
  cat >conftest.$ac_ext <<_ACEOF
4736
/* confdefs.h.  */
4737
_ACEOF
4738
cat confdefs.h >>conftest.$ac_ext
4739
cat >>conftest.$ac_ext <<_ACEOF
4740
/* end confdefs.h.  */
4741
#include 
4742
extern char _etext;
4743
 
4744
int
4745
main ()
4746
{
4747
free (&_etext);
4748
  ;
4749
  return 0;
4750
}
4751
_ACEOF
4752
rm -f conftest.$ac_objext conftest$ac_exeext
4753 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754
  (eval $ac_link) 2>conftest.er1
4755 131 jeremybenn
  ac_status=$?
4756
  grep -v '^ *+' conftest.er1 >conftest.err
4757
  rm -f conftest.er1
4758
  cat conftest.err >&5
4759 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
  (exit $ac_status); } &&
4761
         { ac_try='test -z "$ac_c_werror_flag"
4762
                         || test ! -s conftest.err'
4763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764
  (eval $ac_try) 2>&5
4765
  ac_status=$?
4766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767
  (exit $ac_status); }; } &&
4768
         { ac_try='test -s conftest$ac_exeext'
4769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770
  (eval $ac_try) 2>&5
4771
  ac_status=$?
4772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773
  (exit $ac_status); }; }; then
4774 131 jeremybenn
  ac_cv_var__etext=yes
4775
else
4776 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4777 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4778
 
4779 225 jeremybenn
ac_cv_var__etext=no
4780 131 jeremybenn
fi
4781 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
4782 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
4783
fi
4784 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4785
echo "${ECHO_T}$ac_cv_var__etext" >&6
4786 131 jeremybenn
if test $ac_cv_var__etext = yes; then
4787
 
4788
cat >>confdefs.h <<\_ACEOF
4789
#define HAVE__ETEXT 1
4790
_ACEOF
4791
 
4792
fi
4793 225 jeremybenn
echo "$as_me:$LINENO: checking for etext" >&5
4794
echo $ECHO_N "checking for etext... $ECHO_C" >&6
4795 131 jeremybenn
if test "${ac_cv_var_etext+set}" = set; then
4796 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
4797 131 jeremybenn
else
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
#include 
4805
extern char etext;
4806
 
4807
int
4808
main ()
4809
{
4810
free (&etext);
4811
  ;
4812
  return 0;
4813
}
4814
_ACEOF
4815
rm -f conftest.$ac_objext conftest$ac_exeext
4816 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817
  (eval $ac_link) 2>conftest.er1
4818 131 jeremybenn
  ac_status=$?
4819
  grep -v '^ *+' conftest.er1 >conftest.err
4820
  rm -f conftest.er1
4821
  cat conftest.err >&5
4822 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823
  (exit $ac_status); } &&
4824
         { ac_try='test -z "$ac_c_werror_flag"
4825
                         || test ! -s conftest.err'
4826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827
  (eval $ac_try) 2>&5
4828
  ac_status=$?
4829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
  (exit $ac_status); }; } &&
4831
         { ac_try='test -s conftest$ac_exeext'
4832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833
  (eval $ac_try) 2>&5
4834
  ac_status=$?
4835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
  (exit $ac_status); }; }; then
4837 131 jeremybenn
  ac_cv_var_etext=yes
4838
else
4839 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4840 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4841
 
4842 225 jeremybenn
ac_cv_var_etext=no
4843 131 jeremybenn
fi
4844 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
4845 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
4846
fi
4847 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4848
echo "${ECHO_T}$ac_cv_var_etext" >&6
4849 131 jeremybenn
if test $ac_cv_var_etext = yes; then
4850
 
4851
cat >>confdefs.h <<\_ACEOF
4852
#define HAVE_ETEXT 1
4853
_ACEOF
4854
 
4855
fi
4856
if test "$enable_profiling" = yes ; then
4857
  if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4858 225 jeremybenn
    { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4859
echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4860 131 jeremybenn
   { (exit 1); exit 1; }; }
4861
  fi
4862
  PROFILE_CFLAGS=-pg
4863
  OLD_CFLAGS="$CFLAGS"
4864
  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4865
 
4866 225 jeremybenn
  echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4867
echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4868 131 jeremybenn
if test "${ac_cv_cc_supports_pg+set}" = set; then
4869 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
4870 131 jeremybenn
else
4871
  cat >conftest.$ac_ext <<_ACEOF
4872
/* confdefs.h.  */
4873
_ACEOF
4874
cat confdefs.h >>conftest.$ac_ext
4875
cat >>conftest.$ac_ext <<_ACEOF
4876
/* end confdefs.h.  */
4877
 
4878
int
4879
main ()
4880
{
4881
int x;
4882
  ;
4883
  return 0;
4884
}
4885
_ACEOF
4886
rm -f conftest.$ac_objext
4887 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888
  (eval $ac_compile) 2>conftest.er1
4889 131 jeremybenn
  ac_status=$?
4890
  grep -v '^ *+' conftest.er1 >conftest.err
4891
  rm -f conftest.er1
4892
  cat conftest.err >&5
4893 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894
  (exit $ac_status); } &&
4895
         { ac_try='test -z "$ac_c_werror_flag"
4896
                         || test ! -s conftest.err'
4897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898
  (eval $ac_try) 2>&5
4899
  ac_status=$?
4900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901
  (exit $ac_status); }; } &&
4902
         { ac_try='test -s conftest.$ac_objext'
4903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904
  (eval $ac_try) 2>&5
4905
  ac_status=$?
4906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907
  (exit $ac_status); }; }; then
4908 131 jeremybenn
  ac_cv_cc_supports_pg=yes
4909
else
4910 225 jeremybenn
  echo "$as_me: failed program was:" >&5
4911 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4912
 
4913 225 jeremybenn
ac_cv_cc_supports_pg=no
4914 131 jeremybenn
fi
4915 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916 131 jeremybenn
fi
4917 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4918
echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4919 131 jeremybenn
 
4920
  if test $ac_cv_cc_supports_pg = no; then
4921 225 jeremybenn
    { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4922
echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4923 131 jeremybenn
   { (exit 1); exit 1; }; }
4924
  fi
4925
 
4926
  CFLAGS="$OLD_CFLAGS"
4927
fi
4928
 
4929
# --------------------- #
4930
# Checks for programs.  #
4931
# --------------------- #
4932
 
4933
for ac_prog in gawk mawk nawk awk
4934
do
4935
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4936
set dummy $ac_prog; ac_word=$2
4937 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
4938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 131 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
4940 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
4941 131 jeremybenn
else
4942
  if test -n "$AWK"; then
4943
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4944
else
4945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946
for as_dir in $PATH
4947
do
4948
  IFS=$as_save_IFS
4949
  test -z "$as_dir" && as_dir=.
4950
  for ac_exec_ext in '' $ac_executable_extensions; do
4951 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 131 jeremybenn
    ac_cv_prog_AWK="$ac_prog"
4953 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 131 jeremybenn
    break 2
4955
  fi
4956
done
4957
done
4958
 
4959
fi
4960
fi
4961
AWK=$ac_cv_prog_AWK
4962
if test -n "$AWK"; then
4963 225 jeremybenn
  echo "$as_me:$LINENO: result: $AWK" >&5
4964
echo "${ECHO_T}$AWK" >&6
4965 131 jeremybenn
else
4966 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
4967
echo "${ECHO_T}no" >&6
4968 131 jeremybenn
fi
4969
 
4970
  test -n "$AWK" && break
4971
done
4972
 
4973
# Find a good install program.  We prefer a C program (faster),
4974
# so one script is as good as another.  But avoid the broken or
4975
# incompatible versions:
4976
# SysV /etc/install, /usr/sbin/install
4977
# SunOS /usr/etc/install
4978
# IRIX /sbin/install
4979
# AIX /bin/install
4980
# AmigaOS /C/install, which installs bootblocks on floppy discs
4981
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4982
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4983
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4984
# OS/2's system install, which has a completely different semantic
4985
# ./install, which can be erroneously created by make from ./install.sh.
4986 225 jeremybenn
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4987
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4988 131 jeremybenn
if test -z "$INSTALL"; then
4989
if test "${ac_cv_path_install+set}" = set; then
4990 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
4991 131 jeremybenn
else
4992
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993
for as_dir in $PATH
4994
do
4995
  IFS=$as_save_IFS
4996
  test -z "$as_dir" && as_dir=.
4997
  # Account for people who put trailing slashes in PATH elements.
4998
case $as_dir/ in
4999
  ./ | .// | /cC/* | \
5000
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5001
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5002
  /usr/ucb/* ) ;;
5003
  *)
5004
    # OSF1 and SCO ODT 3.0 have their own names for install.
5005
    # Don't use installbsd from OSF since it installs stuff as root
5006
    # by default.
5007
    for ac_prog in ginstall scoinst install; do
5008
      for ac_exec_ext in '' $ac_executable_extensions; do
5009 225 jeremybenn
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5010 131 jeremybenn
          if test $ac_prog = install &&
5011
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5012
            # AIX install.  It has an incompatible calling convention.
5013
            :
5014
          elif test $ac_prog = install &&
5015
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5016
            # program-specific install script used by HP pwplus--don't use.
5017
            :
5018
          else
5019 225 jeremybenn
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5020
            break 3
5021 131 jeremybenn
          fi
5022
        fi
5023
      done
5024
    done
5025
    ;;
5026
esac
5027
done
5028
 
5029
 
5030
fi
5031
  if test "${ac_cv_path_install+set}" = set; then
5032
    INSTALL=$ac_cv_path_install
5033
  else
5034 225 jeremybenn
    # As a last resort, use the slow shell script.  We don't cache a
5035
    # path for INSTALL within a source directory, because that will
5036 131 jeremybenn
    # break other packages using the cache if that directory is
5037 225 jeremybenn
    # removed, or if the path is relative.
5038 131 jeremybenn
    INSTALL=$ac_install_sh
5039
  fi
5040
fi
5041 225 jeremybenn
echo "$as_me:$LINENO: result: $INSTALL" >&5
5042
echo "${ECHO_T}$INSTALL" >&6
5043 131 jeremybenn
 
5044
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5045
# It thinks the first close brace ends the variable substitution.
5046
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5047
 
5048
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5049
 
5050
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5051
 
5052 225 jeremybenn
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5053
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5054 131 jeremybenn
LN_S=$as_ln_s
5055
if test "$LN_S" = "ln -s"; then
5056 225 jeremybenn
  echo "$as_me:$LINENO: result: yes" >&5
5057
echo "${ECHO_T}yes" >&6
5058 131 jeremybenn
else
5059 225 jeremybenn
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5060
echo "${ECHO_T}no, using $LN_S" >&6
5061 131 jeremybenn
fi
5062
 
5063
if test -n "$ac_tool_prefix"; then
5064
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068 131 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5070 131 jeremybenn
else
5071
  if test -n "$RANLIB"; then
5072
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073
else
5074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075
for as_dir in $PATH
5076
do
5077
  IFS=$as_save_IFS
5078
  test -z "$as_dir" && as_dir=.
5079
  for ac_exec_ext in '' $ac_executable_extensions; do
5080 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 131 jeremybenn
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 131 jeremybenn
    break 2
5084
  fi
5085
done
5086
done
5087
 
5088
fi
5089
fi
5090
RANLIB=$ac_cv_prog_RANLIB
5091
if test -n "$RANLIB"; then
5092 225 jeremybenn
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5093
echo "${ECHO_T}$RANLIB" >&6
5094 131 jeremybenn
else
5095 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5096
echo "${ECHO_T}no" >&6
5097 131 jeremybenn
fi
5098
 
5099
fi
5100
if test -z "$ac_cv_prog_RANLIB"; then
5101
  ac_ct_RANLIB=$RANLIB
5102
  # Extract the first word of "ranlib", so it can be a program name with args.
5103
set dummy ranlib; ac_word=$2
5104 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5105
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106 131 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5107 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5108 131 jeremybenn
else
5109
  if test -n "$ac_ct_RANLIB"; then
5110
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5111
else
5112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113
for as_dir in $PATH
5114
do
5115
  IFS=$as_save_IFS
5116
  test -z "$as_dir" && as_dir=.
5117
  for ac_exec_ext in '' $ac_executable_extensions; do
5118 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 131 jeremybenn
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5120 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 131 jeremybenn
    break 2
5122
  fi
5123
done
5124
done
5125
 
5126 225 jeremybenn
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5127 131 jeremybenn
fi
5128
fi
5129
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5130
if test -n "$ac_ct_RANLIB"; then
5131 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5132
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5133 131 jeremybenn
else
5134 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5135
echo "${ECHO_T}no" >&6
5136 131 jeremybenn
fi
5137
 
5138 225 jeremybenn
  RANLIB=$ac_ct_RANLIB
5139 131 jeremybenn
else
5140
  RANLIB="$ac_cv_prog_RANLIB"
5141
fi
5142
 
5143
for ac_prog in 'bison -y' byacc
5144
do
5145
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5146
set dummy $ac_prog; ac_word=$2
5147 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5148
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149 131 jeremybenn
if test "${ac_cv_prog_YACC+set}" = set; then
5150 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5151 131 jeremybenn
else
5152
  if test -n "$YACC"; then
5153
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5154
else
5155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156
for as_dir in $PATH
5157
do
5158
  IFS=$as_save_IFS
5159
  test -z "$as_dir" && as_dir=.
5160
  for ac_exec_ext in '' $ac_executable_extensions; do
5161 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 131 jeremybenn
    ac_cv_prog_YACC="$ac_prog"
5163 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 131 jeremybenn
    break 2
5165
  fi
5166
done
5167
done
5168
 
5169
fi
5170
fi
5171
YACC=$ac_cv_prog_YACC
5172
if test -n "$YACC"; then
5173 225 jeremybenn
  echo "$as_me:$LINENO: result: $YACC" >&5
5174
echo "${ECHO_T}$YACC" >&6
5175 131 jeremybenn
else
5176 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5177
echo "${ECHO_T}no" >&6
5178 131 jeremybenn
fi
5179
 
5180
  test -n "$YACC" && break
5181
done
5182
test -n "$YACC" || YACC="yacc"
5183
 
5184
 
5185
if test -n "$ac_tool_prefix"; then
5186
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5187
set dummy ${ac_tool_prefix}ar; ac_word=$2
5188 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 131 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
5191 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5192 131 jeremybenn
else
5193
  if test -n "$AR"; then
5194
  ac_cv_prog_AR="$AR" # Let the user override the test.
5195
else
5196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197
for as_dir in $PATH
5198
do
5199
  IFS=$as_save_IFS
5200
  test -z "$as_dir" && as_dir=.
5201
  for ac_exec_ext in '' $ac_executable_extensions; do
5202 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 131 jeremybenn
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5204 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 131 jeremybenn
    break 2
5206
  fi
5207
done
5208
done
5209
 
5210
fi
5211
fi
5212
AR=$ac_cv_prog_AR
5213
if test -n "$AR"; then
5214 225 jeremybenn
  echo "$as_me:$LINENO: result: $AR" >&5
5215
echo "${ECHO_T}$AR" >&6
5216 131 jeremybenn
else
5217 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5218
echo "${ECHO_T}no" >&6
5219 131 jeremybenn
fi
5220
 
5221
fi
5222
if test -z "$ac_cv_prog_AR"; then
5223
  ac_ct_AR=$AR
5224
  # Extract the first word of "ar", so it can be a program name with args.
5225
set dummy ar; ac_word=$2
5226 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 131 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5229 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5230 131 jeremybenn
else
5231
  if test -n "$ac_ct_AR"; then
5232
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5233
else
5234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235
for as_dir in $PATH
5236
do
5237
  IFS=$as_save_IFS
5238
  test -z "$as_dir" && as_dir=.
5239
  for ac_exec_ext in '' $ac_executable_extensions; do
5240 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 131 jeremybenn
    ac_cv_prog_ac_ct_AR="ar"
5242 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 131 jeremybenn
    break 2
5244
  fi
5245
done
5246
done
5247
 
5248
fi
5249
fi
5250
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251
if test -n "$ac_ct_AR"; then
5252 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5253
echo "${ECHO_T}$ac_ct_AR" >&6
5254 131 jeremybenn
else
5255 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5256
echo "${ECHO_T}no" >&6
5257 131 jeremybenn
fi
5258
 
5259 225 jeremybenn
  AR=$ac_ct_AR
5260 131 jeremybenn
else
5261
  AR="$ac_cv_prog_AR"
5262
fi
5263
 
5264
if test -n "$ac_tool_prefix"; then
5265
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5266
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5267 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5268
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 131 jeremybenn
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5270 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5271 131 jeremybenn
else
5272
  if test -n "$DLLTOOL"; then
5273
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5274
else
5275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276
for as_dir in $PATH
5277
do
5278
  IFS=$as_save_IFS
5279
  test -z "$as_dir" && as_dir=.
5280
  for ac_exec_ext in '' $ac_executable_extensions; do
5281 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 131 jeremybenn
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5283 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 131 jeremybenn
    break 2
5285
  fi
5286
done
5287
done
5288
 
5289
fi
5290
fi
5291
DLLTOOL=$ac_cv_prog_DLLTOOL
5292
if test -n "$DLLTOOL"; then
5293 225 jeremybenn
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5294
echo "${ECHO_T}$DLLTOOL" >&6
5295 131 jeremybenn
else
5296 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5297
echo "${ECHO_T}no" >&6
5298 131 jeremybenn
fi
5299
 
5300
fi
5301
if test -z "$ac_cv_prog_DLLTOOL"; then
5302
  ac_ct_DLLTOOL=$DLLTOOL
5303
  # Extract the first word of "dlltool", so it can be a program name with args.
5304
set dummy dlltool; ac_word=$2
5305 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307 131 jeremybenn
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5308 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5309 131 jeremybenn
else
5310
  if test -n "$ac_ct_DLLTOOL"; then
5311
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5312
else
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314
for as_dir in $PATH
5315
do
5316
  IFS=$as_save_IFS
5317
  test -z "$as_dir" && as_dir=.
5318
  for ac_exec_ext in '' $ac_executable_extensions; do
5319 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 131 jeremybenn
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5321 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 131 jeremybenn
    break 2
5323
  fi
5324
done
5325
done
5326
 
5327
fi
5328
fi
5329
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5330
if test -n "$ac_ct_DLLTOOL"; then
5331 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5332
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5333 131 jeremybenn
else
5334 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5335
echo "${ECHO_T}no" >&6
5336 131 jeremybenn
fi
5337
 
5338 225 jeremybenn
  DLLTOOL=$ac_ct_DLLTOOL
5339 131 jeremybenn
else
5340
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5341
fi
5342
 
5343
if test -n "$ac_tool_prefix"; then
5344
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5345
set dummy ${ac_tool_prefix}windres; ac_word=$2
5346 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 131 jeremybenn
if test "${ac_cv_prog_WINDRES+set}" = set; then
5349 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5350 131 jeremybenn
else
5351
  if test -n "$WINDRES"; then
5352
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5353
else
5354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355
for as_dir in $PATH
5356
do
5357
  IFS=$as_save_IFS
5358
  test -z "$as_dir" && as_dir=.
5359
  for ac_exec_ext in '' $ac_executable_extensions; do
5360 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 131 jeremybenn
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5362 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 131 jeremybenn
    break 2
5364
  fi
5365
done
5366
done
5367
 
5368
fi
5369
fi
5370
WINDRES=$ac_cv_prog_WINDRES
5371
if test -n "$WINDRES"; then
5372 225 jeremybenn
  echo "$as_me:$LINENO: result: $WINDRES" >&5
5373
echo "${ECHO_T}$WINDRES" >&6
5374 131 jeremybenn
else
5375 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5376
echo "${ECHO_T}no" >&6
5377 131 jeremybenn
fi
5378
 
5379
fi
5380
if test -z "$ac_cv_prog_WINDRES"; then
5381
  ac_ct_WINDRES=$WINDRES
5382
  # Extract the first word of "windres", so it can be a program name with args.
5383
set dummy windres; ac_word=$2
5384 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5385
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 131 jeremybenn
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5387 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5388 131 jeremybenn
else
5389
  if test -n "$ac_ct_WINDRES"; then
5390
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5391
else
5392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393
for as_dir in $PATH
5394
do
5395
  IFS=$as_save_IFS
5396
  test -z "$as_dir" && as_dir=.
5397
  for ac_exec_ext in '' $ac_executable_extensions; do
5398 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 131 jeremybenn
    ac_cv_prog_ac_ct_WINDRES="windres"
5400 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 131 jeremybenn
    break 2
5402
  fi
5403
done
5404
done
5405
 
5406
fi
5407
fi
5408
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5409
if test -n "$ac_ct_WINDRES"; then
5410 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5411
echo "${ECHO_T}$ac_ct_WINDRES" >&6
5412 131 jeremybenn
else
5413 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5414
echo "${ECHO_T}no" >&6
5415 131 jeremybenn
fi
5416
 
5417 225 jeremybenn
  WINDRES=$ac_ct_WINDRES
5418 131 jeremybenn
else
5419
  WINDRES="$ac_cv_prog_WINDRES"
5420
fi
5421
 
5422
 
5423
# Needed for GNU/Hurd.
5424
if test -n "$ac_tool_prefix"; then
5425
  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5426
set dummy ${ac_tool_prefix}mig; ac_word=$2
5427 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 131 jeremybenn
if test "${ac_cv_prog_MIG+set}" = set; then
5430 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5431 131 jeremybenn
else
5432
  if test -n "$MIG"; then
5433
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
5434
else
5435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436
for as_dir in $PATH
5437
do
5438
  IFS=$as_save_IFS
5439
  test -z "$as_dir" && as_dir=.
5440
  for ac_exec_ext in '' $ac_executable_extensions; do
5441 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 131 jeremybenn
    ac_cv_prog_MIG="${ac_tool_prefix}mig"
5443 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 131 jeremybenn
    break 2
5445
  fi
5446
done
5447
done
5448
 
5449
fi
5450
fi
5451
MIG=$ac_cv_prog_MIG
5452
if test -n "$MIG"; then
5453 225 jeremybenn
  echo "$as_me:$LINENO: result: $MIG" >&5
5454
echo "${ECHO_T}$MIG" >&6
5455 131 jeremybenn
else
5456 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5457
echo "${ECHO_T}no" >&6
5458 131 jeremybenn
fi
5459
 
5460
fi
5461
if test -z "$ac_cv_prog_MIG"; then
5462
  ac_ct_MIG=$MIG
5463
  # Extract the first word of "mig", so it can be a program name with args.
5464
set dummy mig; ac_word=$2
5465 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_word" >&5
5466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 131 jeremybenn
if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
5468 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5469 131 jeremybenn
else
5470
  if test -n "$ac_ct_MIG"; then
5471
  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
5472
else
5473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474
for as_dir in $PATH
5475
do
5476
  IFS=$as_save_IFS
5477
  test -z "$as_dir" && as_dir=.
5478
  for ac_exec_ext in '' $ac_executable_extensions; do
5479 225 jeremybenn
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 131 jeremybenn
    ac_cv_prog_ac_ct_MIG="mig"
5481 225 jeremybenn
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 131 jeremybenn
    break 2
5483
  fi
5484
done
5485
done
5486
 
5487
fi
5488
fi
5489
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
5490
if test -n "$ac_ct_MIG"; then
5491 225 jeremybenn
  echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
5492
echo "${ECHO_T}$ac_ct_MIG" >&6
5493 131 jeremybenn
else
5494 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
5495
echo "${ECHO_T}no" >&6
5496 131 jeremybenn
fi
5497
 
5498 225 jeremybenn
  MIG=$ac_ct_MIG
5499 131 jeremybenn
else
5500
  MIG="$ac_cv_prog_MIG"
5501
fi
5502
 
5503
 
5504
# ---------------------- #
5505
# Checks for libraries.  #
5506
# ---------------------- #
5507
 
5508
# We might need to link with -lm; most simulators need it.
5509
 
5510 225 jeremybenn
echo "$as_me:$LINENO: checking for main in -lm" >&5
5511
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5512 131 jeremybenn
if test "${ac_cv_lib_m_main+set}" = set; then
5513 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5514 131 jeremybenn
else
5515
  ac_check_lib_save_LIBS=$LIBS
5516
LIBS="-lm  $LIBS"
5517
cat >conftest.$ac_ext <<_ACEOF
5518
/* confdefs.h.  */
5519
_ACEOF
5520
cat confdefs.h >>conftest.$ac_ext
5521
cat >>conftest.$ac_ext <<_ACEOF
5522
/* end confdefs.h.  */
5523
 
5524
 
5525
int
5526
main ()
5527
{
5528 225 jeremybenn
main ();
5529 131 jeremybenn
  ;
5530
  return 0;
5531
}
5532
_ACEOF
5533
rm -f conftest.$ac_objext conftest$ac_exeext
5534 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535
  (eval $ac_link) 2>conftest.er1
5536 131 jeremybenn
  ac_status=$?
5537
  grep -v '^ *+' conftest.er1 >conftest.err
5538
  rm -f conftest.er1
5539
  cat conftest.err >&5
5540 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541
  (exit $ac_status); } &&
5542
         { ac_try='test -z "$ac_c_werror_flag"
5543
                         || test ! -s conftest.err'
5544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545
  (eval $ac_try) 2>&5
5546
  ac_status=$?
5547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548
  (exit $ac_status); }; } &&
5549
         { ac_try='test -s conftest$ac_exeext'
5550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551
  (eval $ac_try) 2>&5
5552
  ac_status=$?
5553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554
  (exit $ac_status); }; }; then
5555 131 jeremybenn
  ac_cv_lib_m_main=yes
5556
else
5557 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5558 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5559
 
5560 225 jeremybenn
ac_cv_lib_m_main=no
5561 131 jeremybenn
fi
5562 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5563 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5564
LIBS=$ac_check_lib_save_LIBS
5565
fi
5566 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5567
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5568
if test $ac_cv_lib_m_main = yes; then
5569 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5570
#define HAVE_LIBM 1
5571
_ACEOF
5572
 
5573
  LIBS="-lm $LIBS"
5574
 
5575
fi
5576
 
5577
 
5578
# We need to link with -lw to get `wctype' on Solaris before Solaris
5579
# 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
5580
# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5581
# is known to have this problem).  Therefore we avoid libw if we can.
5582 225 jeremybenn
echo "$as_me:$LINENO: checking for wctype" >&5
5583
echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5584 131 jeremybenn
if test "${ac_cv_func_wctype+set}" = set; then
5585 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5586 131 jeremybenn
else
5587
  cat >conftest.$ac_ext <<_ACEOF
5588
/* confdefs.h.  */
5589
_ACEOF
5590
cat confdefs.h >>conftest.$ac_ext
5591
cat >>conftest.$ac_ext <<_ACEOF
5592
/* end confdefs.h.  */
5593
/* Define wctype to an innocuous variant, in case  declares wctype.
5594
   For example, HP-UX 11i  declares gettimeofday.  */
5595
#define wctype innocuous_wctype
5596
 
5597
/* System header to define __stub macros and hopefully few prototypes,
5598
    which can conflict with char wctype (); below.
5599
    Prefer  to  if __STDC__ is defined, since
5600
     exists even on freestanding compilers.  */
5601
 
5602
#ifdef __STDC__
5603
# include 
5604
#else
5605
# include 
5606
#endif
5607
 
5608
#undef wctype
5609
 
5610 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5611 131 jeremybenn
#ifdef __cplusplus
5612
extern "C"
5613 225 jeremybenn
{
5614 131 jeremybenn
#endif
5615 225 jeremybenn
/* We use char because int might match the return type of a gcc2
5616
   builtin and then its argument prototype would still apply.  */
5617 131 jeremybenn
char wctype ();
5618
/* The GNU C library defines this for functions which it implements
5619
    to always fail with ENOSYS.  Some functions are actually named
5620
    something starting with __ and the normal name is an alias.  */
5621 225 jeremybenn
#if defined (__stub_wctype) || defined (__stub___wctype)
5622 131 jeremybenn
choke me
5623 225 jeremybenn
#else
5624
char (*f) () = wctype;
5625 131 jeremybenn
#endif
5626 225 jeremybenn
#ifdef __cplusplus
5627
}
5628
#endif
5629 131 jeremybenn
 
5630
int
5631
main ()
5632
{
5633 225 jeremybenn
return f != wctype;
5634 131 jeremybenn
  ;
5635
  return 0;
5636
}
5637
_ACEOF
5638
rm -f conftest.$ac_objext conftest$ac_exeext
5639 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640
  (eval $ac_link) 2>conftest.er1
5641 131 jeremybenn
  ac_status=$?
5642
  grep -v '^ *+' conftest.er1 >conftest.err
5643
  rm -f conftest.er1
5644
  cat conftest.err >&5
5645 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646
  (exit $ac_status); } &&
5647
         { ac_try='test -z "$ac_c_werror_flag"
5648
                         || test ! -s conftest.err'
5649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650
  (eval $ac_try) 2>&5
5651
  ac_status=$?
5652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653
  (exit $ac_status); }; } &&
5654
         { ac_try='test -s conftest$ac_exeext'
5655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656
  (eval $ac_try) 2>&5
5657
  ac_status=$?
5658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
  (exit $ac_status); }; }; then
5660 131 jeremybenn
  ac_cv_func_wctype=yes
5661
else
5662 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5663 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5664
 
5665 225 jeremybenn
ac_cv_func_wctype=no
5666 131 jeremybenn
fi
5667 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5668 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5669
fi
5670 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5671
echo "${ECHO_T}$ac_cv_func_wctype" >&6
5672
if test $ac_cv_func_wctype = yes; then
5673 131 jeremybenn
  :
5674
else
5675
 
5676 225 jeremybenn
echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5677
echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5678 131 jeremybenn
if test "${ac_cv_lib_w_wctype+set}" = set; then
5679 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5680 131 jeremybenn
else
5681
  ac_check_lib_save_LIBS=$LIBS
5682
LIBS="-lw  $LIBS"
5683
cat >conftest.$ac_ext <<_ACEOF
5684
/* confdefs.h.  */
5685
_ACEOF
5686
cat confdefs.h >>conftest.$ac_ext
5687
cat >>conftest.$ac_ext <<_ACEOF
5688
/* end confdefs.h.  */
5689
 
5690 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5691 131 jeremybenn
#ifdef __cplusplus
5692
extern "C"
5693
#endif
5694 225 jeremybenn
/* We use char because int might match the return type of a gcc2
5695
   builtin and then its argument prototype would still apply.  */
5696 131 jeremybenn
char wctype ();
5697
int
5698
main ()
5699
{
5700 225 jeremybenn
wctype ();
5701 131 jeremybenn
  ;
5702
  return 0;
5703
}
5704
_ACEOF
5705
rm -f conftest.$ac_objext conftest$ac_exeext
5706 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707
  (eval $ac_link) 2>conftest.er1
5708 131 jeremybenn
  ac_status=$?
5709
  grep -v '^ *+' conftest.er1 >conftest.err
5710
  rm -f conftest.er1
5711
  cat conftest.err >&5
5712 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713
  (exit $ac_status); } &&
5714
         { ac_try='test -z "$ac_c_werror_flag"
5715
                         || test ! -s conftest.err'
5716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717
  (eval $ac_try) 2>&5
5718
  ac_status=$?
5719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720
  (exit $ac_status); }; } &&
5721
         { ac_try='test -s conftest$ac_exeext'
5722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723
  (eval $ac_try) 2>&5
5724
  ac_status=$?
5725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726
  (exit $ac_status); }; }; then
5727 131 jeremybenn
  ac_cv_lib_w_wctype=yes
5728
else
5729 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5730 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5731
 
5732 225 jeremybenn
ac_cv_lib_w_wctype=no
5733 131 jeremybenn
fi
5734 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5735 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5736
LIBS=$ac_check_lib_save_LIBS
5737
fi
5738 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5739
echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5740
if test $ac_cv_lib_w_wctype = yes; then
5741 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5742
#define HAVE_LIBW 1
5743
_ACEOF
5744
 
5745
  LIBS="-lw $LIBS"
5746
 
5747
fi
5748
 
5749
fi
5750
 
5751
 
5752
# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5753 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5754
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5755 131 jeremybenn
if test "${ac_cv_search_gethostbyname+set}" = set; then
5756 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5757 131 jeremybenn
else
5758
  ac_func_search_save_LIBS=$LIBS
5759 225 jeremybenn
ac_cv_search_gethostbyname=no
5760 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5761
/* confdefs.h.  */
5762
_ACEOF
5763
cat confdefs.h >>conftest.$ac_ext
5764
cat >>conftest.$ac_ext <<_ACEOF
5765
/* end confdefs.h.  */
5766
 
5767 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5768 131 jeremybenn
#ifdef __cplusplus
5769
extern "C"
5770
#endif
5771 225 jeremybenn
/* We use char because int might match the return type of a gcc2
5772
   builtin and then its argument prototype would still apply.  */
5773 131 jeremybenn
char gethostbyname ();
5774
int
5775
main ()
5776
{
5777 225 jeremybenn
gethostbyname ();
5778 131 jeremybenn
  ;
5779
  return 0;
5780
}
5781
_ACEOF
5782 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784
  (eval $ac_link) 2>conftest.er1
5785 131 jeremybenn
  ac_status=$?
5786
  grep -v '^ *+' conftest.er1 >conftest.err
5787
  rm -f conftest.er1
5788
  cat conftest.err >&5
5789 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
  (exit $ac_status); } &&
5791
         { ac_try='test -z "$ac_c_werror_flag"
5792
                         || test ! -s conftest.err'
5793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
  (eval $ac_try) 2>&5
5795
  ac_status=$?
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
  (exit $ac_status); }; } &&
5798
         { ac_try='test -s conftest$ac_exeext'
5799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800
  (eval $ac_try) 2>&5
5801
  ac_status=$?
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803
  (exit $ac_status); }; }; then
5804
  ac_cv_search_gethostbyname="none required"
5805 131 jeremybenn
else
5806 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5807 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5808
 
5809
fi
5810 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5811
      conftest$ac_exeext conftest.$ac_ext
5812
if test "$ac_cv_search_gethostbyname" = no; then
5813
  for ac_lib in nsl; do
5814
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5815
    cat >conftest.$ac_ext <<_ACEOF
5816
/* confdefs.h.  */
5817
_ACEOF
5818
cat confdefs.h >>conftest.$ac_ext
5819
cat >>conftest.$ac_ext <<_ACEOF
5820
/* end confdefs.h.  */
5821 131 jeremybenn
 
5822 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5823
#ifdef __cplusplus
5824
extern "C"
5825
#endif
5826
/* We use char because int might match the return type of a gcc2
5827
   builtin and then its argument prototype would still apply.  */
5828
char gethostbyname ();
5829
int
5830
main ()
5831
{
5832
gethostbyname ();
5833
  ;
5834
  return 0;
5835
}
5836
_ACEOF
5837
rm -f conftest.$ac_objext conftest$ac_exeext
5838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839
  (eval $ac_link) 2>conftest.er1
5840
  ac_status=$?
5841
  grep -v '^ *+' conftest.er1 >conftest.err
5842
  rm -f conftest.er1
5843
  cat conftest.err >&5
5844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845
  (exit $ac_status); } &&
5846
         { ac_try='test -z "$ac_c_werror_flag"
5847
                         || test ! -s conftest.err'
5848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849
  (eval $ac_try) 2>&5
5850
  ac_status=$?
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852
  (exit $ac_status); }; } &&
5853
         { ac_try='test -s conftest$ac_exeext'
5854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855
  (eval $ac_try) 2>&5
5856
  ac_status=$?
5857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858
  (exit $ac_status); }; }; then
5859
  ac_cv_search_gethostbyname="-l$ac_lib"
5860
break
5861 131 jeremybenn
else
5862 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5863
sed 's/^/| /' conftest.$ac_ext >&5
5864
 
5865 131 jeremybenn
fi
5866 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5867
      conftest$ac_exeext conftest.$ac_ext
5868
  done
5869
fi
5870 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
5871
fi
5872 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5873
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5874
if test "$ac_cv_search_gethostbyname" != no; then
5875
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5876 131 jeremybenn
 
5877
fi
5878
 
5879
 
5880
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5881 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5882
echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5883 131 jeremybenn
if test "${ac_cv_search_socketpair+set}" = set; then
5884 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
5885 131 jeremybenn
else
5886
  ac_func_search_save_LIBS=$LIBS
5887 225 jeremybenn
ac_cv_search_socketpair=no
5888 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5889
/* confdefs.h.  */
5890
_ACEOF
5891
cat confdefs.h >>conftest.$ac_ext
5892
cat >>conftest.$ac_ext <<_ACEOF
5893
/* end confdefs.h.  */
5894
 
5895 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5896 131 jeremybenn
#ifdef __cplusplus
5897
extern "C"
5898
#endif
5899 225 jeremybenn
/* We use char because int might match the return type of a gcc2
5900
   builtin and then its argument prototype would still apply.  */
5901 131 jeremybenn
char socketpair ();
5902
int
5903
main ()
5904
{
5905 225 jeremybenn
socketpair ();
5906 131 jeremybenn
  ;
5907
  return 0;
5908
}
5909
_ACEOF
5910 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5912
  (eval $ac_link) 2>conftest.er1
5913 131 jeremybenn
  ac_status=$?
5914
  grep -v '^ *+' conftest.er1 >conftest.err
5915
  rm -f conftest.er1
5916
  cat conftest.err >&5
5917 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918
  (exit $ac_status); } &&
5919
         { ac_try='test -z "$ac_c_werror_flag"
5920
                         || test ! -s conftest.err'
5921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922
  (eval $ac_try) 2>&5
5923
  ac_status=$?
5924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925
  (exit $ac_status); }; } &&
5926
         { ac_try='test -s conftest$ac_exeext'
5927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928
  (eval $ac_try) 2>&5
5929
  ac_status=$?
5930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931
  (exit $ac_status); }; }; then
5932
  ac_cv_search_socketpair="none required"
5933 131 jeremybenn
else
5934 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5935 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5936
 
5937
fi
5938 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5939
      conftest$ac_exeext conftest.$ac_ext
5940
if test "$ac_cv_search_socketpair" = no; then
5941
  for ac_lib in socket; do
5942
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5943
    cat >conftest.$ac_ext <<_ACEOF
5944
/* confdefs.h.  */
5945
_ACEOF
5946
cat confdefs.h >>conftest.$ac_ext
5947
cat >>conftest.$ac_ext <<_ACEOF
5948
/* end confdefs.h.  */
5949 131 jeremybenn
 
5950 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
5951
#ifdef __cplusplus
5952
extern "C"
5953
#endif
5954
/* We use char because int might match the return type of a gcc2
5955
   builtin and then its argument prototype would still apply.  */
5956
char socketpair ();
5957
int
5958
main ()
5959
{
5960
socketpair ();
5961
  ;
5962
  return 0;
5963
}
5964
_ACEOF
5965
rm -f conftest.$ac_objext conftest$ac_exeext
5966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967
  (eval $ac_link) 2>conftest.er1
5968
  ac_status=$?
5969
  grep -v '^ *+' conftest.er1 >conftest.err
5970
  rm -f conftest.er1
5971
  cat conftest.err >&5
5972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973
  (exit $ac_status); } &&
5974
         { ac_try='test -z "$ac_c_werror_flag"
5975
                         || test ! -s conftest.err'
5976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977
  (eval $ac_try) 2>&5
5978
  ac_status=$?
5979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
  (exit $ac_status); }; } &&
5981
         { ac_try='test -s conftest$ac_exeext'
5982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983
  (eval $ac_try) 2>&5
5984
  ac_status=$?
5985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986
  (exit $ac_status); }; }; then
5987
  ac_cv_search_socketpair="-l$ac_lib"
5988
break
5989 131 jeremybenn
else
5990 225 jeremybenn
  echo "$as_me: failed program was:" >&5
5991
sed 's/^/| /' conftest.$ac_ext >&5
5992
 
5993 131 jeremybenn
fi
5994 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
5995
      conftest$ac_exeext conftest.$ac_ext
5996
  done
5997
fi
5998 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
5999
fi
6000 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
6001
echo "${ECHO_T}$ac_cv_search_socketpair" >&6
6002
if test "$ac_cv_search_socketpair" != no; then
6003
  test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
6004 131 jeremybenn
 
6005
fi
6006
 
6007
 
6008
# For the TUI, we need enhanced curses functionality.
6009
#
6010
# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6011
# curses library because the latter might not provide all the
6012
# functionality we need.  However, this leads to problems on systems
6013
# where the linker searches /usr/local/lib, but the compiler doesn't
6014
# search /usr/local/include, if ncurses is installed in /usr/local.  A
6015
# default installation of ncurses on alpha*-dec-osf* will lead to such
6016
# a situation.
6017 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing waddstr" >&5
6018
echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
6019 131 jeremybenn
if test "${ac_cv_search_waddstr+set}" = set; then
6020 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6021 131 jeremybenn
else
6022
  ac_func_search_save_LIBS=$LIBS
6023 225 jeremybenn
ac_cv_search_waddstr=no
6024 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
6025
/* confdefs.h.  */
6026
_ACEOF
6027
cat confdefs.h >>conftest.$ac_ext
6028
cat >>conftest.$ac_ext <<_ACEOF
6029
/* end confdefs.h.  */
6030
 
6031 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6032 131 jeremybenn
#ifdef __cplusplus
6033
extern "C"
6034
#endif
6035 225 jeremybenn
/* We use char because int might match the return type of a gcc2
6036
   builtin and then its argument prototype would still apply.  */
6037 131 jeremybenn
char waddstr ();
6038
int
6039
main ()
6040
{
6041 225 jeremybenn
waddstr ();
6042 131 jeremybenn
  ;
6043
  return 0;
6044
}
6045
_ACEOF
6046 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048
  (eval $ac_link) 2>conftest.er1
6049 131 jeremybenn
  ac_status=$?
6050
  grep -v '^ *+' conftest.er1 >conftest.err
6051
  rm -f conftest.er1
6052
  cat conftest.err >&5
6053 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
  (exit $ac_status); } &&
6055
         { ac_try='test -z "$ac_c_werror_flag"
6056
                         || test ! -s conftest.err'
6057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058
  (eval $ac_try) 2>&5
6059
  ac_status=$?
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061
  (exit $ac_status); }; } &&
6062
         { ac_try='test -s conftest$ac_exeext'
6063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064
  (eval $ac_try) 2>&5
6065
  ac_status=$?
6066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
  (exit $ac_status); }; }; then
6068
  ac_cv_search_waddstr="none required"
6069 131 jeremybenn
else
6070 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6071 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6072
 
6073
fi
6074 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6075
      conftest$ac_exeext conftest.$ac_ext
6076
if test "$ac_cv_search_waddstr" = no; then
6077
  for ac_lib in ncurses cursesX curses; do
6078
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6079
    cat >conftest.$ac_ext <<_ACEOF
6080
/* confdefs.h.  */
6081
_ACEOF
6082
cat confdefs.h >>conftest.$ac_ext
6083
cat >>conftest.$ac_ext <<_ACEOF
6084
/* end confdefs.h.  */
6085 131 jeremybenn
 
6086 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6087
#ifdef __cplusplus
6088
extern "C"
6089
#endif
6090
/* We use char because int might match the return type of a gcc2
6091
   builtin and then its argument prototype would still apply.  */
6092
char waddstr ();
6093
int
6094
main ()
6095
{
6096
waddstr ();
6097
  ;
6098
  return 0;
6099
}
6100
_ACEOF
6101
rm -f conftest.$ac_objext conftest$ac_exeext
6102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103
  (eval $ac_link) 2>conftest.er1
6104
  ac_status=$?
6105
  grep -v '^ *+' conftest.er1 >conftest.err
6106
  rm -f conftest.er1
6107
  cat conftest.err >&5
6108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109
  (exit $ac_status); } &&
6110
         { ac_try='test -z "$ac_c_werror_flag"
6111
                         || test ! -s conftest.err'
6112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113
  (eval $ac_try) 2>&5
6114
  ac_status=$?
6115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116
  (exit $ac_status); }; } &&
6117
         { ac_try='test -s conftest$ac_exeext'
6118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119
  (eval $ac_try) 2>&5
6120
  ac_status=$?
6121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122
  (exit $ac_status); }; }; then
6123
  ac_cv_search_waddstr="-l$ac_lib"
6124
break
6125 131 jeremybenn
else
6126 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6127
sed 's/^/| /' conftest.$ac_ext >&5
6128
 
6129 131 jeremybenn
fi
6130 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6131
      conftest$ac_exeext conftest.$ac_ext
6132
  done
6133
fi
6134 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
6135
fi
6136 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
6137
echo "${ECHO_T}$ac_cv_search_waddstr" >&6
6138
if test "$ac_cv_search_waddstr" != no; then
6139
  test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
6140 131 jeremybenn
 
6141
fi
6142
 
6143
 
6144
# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6145 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
6146
echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
6147 131 jeremybenn
if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
6148 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6149 131 jeremybenn
else
6150
  ac_func_search_save_LIBS=$LIBS
6151 225 jeremybenn
ac_cv_search_dlgetmodinfo=no
6152 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
6153
/* confdefs.h.  */
6154
_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h.  */
6158
 
6159 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6160 131 jeremybenn
#ifdef __cplusplus
6161
extern "C"
6162
#endif
6163 225 jeremybenn
/* We use char because int might match the return type of a gcc2
6164
   builtin and then its argument prototype would still apply.  */
6165 131 jeremybenn
char dlgetmodinfo ();
6166
int
6167
main ()
6168
{
6169 225 jeremybenn
dlgetmodinfo ();
6170 131 jeremybenn
  ;
6171
  return 0;
6172
}
6173
_ACEOF
6174 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176
  (eval $ac_link) 2>conftest.er1
6177 131 jeremybenn
  ac_status=$?
6178
  grep -v '^ *+' conftest.er1 >conftest.err
6179
  rm -f conftest.er1
6180
  cat conftest.err >&5
6181 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
  (exit $ac_status); } &&
6183
         { ac_try='test -z "$ac_c_werror_flag"
6184
                         || test ! -s conftest.err'
6185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186
  (eval $ac_try) 2>&5
6187
  ac_status=$?
6188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189
  (exit $ac_status); }; } &&
6190
         { ac_try='test -s conftest$ac_exeext'
6191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192
  (eval $ac_try) 2>&5
6193
  ac_status=$?
6194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195
  (exit $ac_status); }; }; then
6196
  ac_cv_search_dlgetmodinfo="none required"
6197 131 jeremybenn
else
6198 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6199 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6200
 
6201
fi
6202 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6203
      conftest$ac_exeext conftest.$ac_ext
6204
if test "$ac_cv_search_dlgetmodinfo" = no; then
6205
  for ac_lib in dl xpdl; do
6206
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6207
    cat >conftest.$ac_ext <<_ACEOF
6208
/* confdefs.h.  */
6209
_ACEOF
6210
cat confdefs.h >>conftest.$ac_ext
6211
cat >>conftest.$ac_ext <<_ACEOF
6212
/* end confdefs.h.  */
6213 131 jeremybenn
 
6214 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6215
#ifdef __cplusplus
6216
extern "C"
6217
#endif
6218
/* We use char because int might match the return type of a gcc2
6219
   builtin and then its argument prototype would still apply.  */
6220
char dlgetmodinfo ();
6221
int
6222
main ()
6223
{
6224
dlgetmodinfo ();
6225
  ;
6226
  return 0;
6227
}
6228
_ACEOF
6229
rm -f conftest.$ac_objext conftest$ac_exeext
6230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231
  (eval $ac_link) 2>conftest.er1
6232
  ac_status=$?
6233
  grep -v '^ *+' conftest.er1 >conftest.err
6234
  rm -f conftest.er1
6235
  cat conftest.err >&5
6236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237
  (exit $ac_status); } &&
6238
         { ac_try='test -z "$ac_c_werror_flag"
6239
                         || test ! -s conftest.err'
6240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241
  (eval $ac_try) 2>&5
6242
  ac_status=$?
6243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244
  (exit $ac_status); }; } &&
6245
         { ac_try='test -s conftest$ac_exeext'
6246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247
  (eval $ac_try) 2>&5
6248
  ac_status=$?
6249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
  (exit $ac_status); }; }; then
6251
  ac_cv_search_dlgetmodinfo="-l$ac_lib"
6252
break
6253 131 jeremybenn
else
6254 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6255
sed 's/^/| /' conftest.$ac_ext >&5
6256
 
6257 131 jeremybenn
fi
6258 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6259
      conftest$ac_exeext conftest.$ac_ext
6260
  done
6261
fi
6262 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
6263
fi
6264 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
6265
echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
6266
if test "$ac_cv_search_dlgetmodinfo" != no; then
6267
  test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
6268 131 jeremybenn
 
6269
fi
6270
 
6271
 
6272
# Since GDB uses Readline, we need termcap functionality.  In many
6273
# cases this will be provided by the curses library, but some systems
6274
# have a seperate termcap library, or no curses library at all.
6275
 
6276
case $host_os in
6277
  cygwin*)
6278
    if test -d $srcdir/libtermcap; then
6279
      LIBS="../libtermcap/libtermcap.a $LIBS"
6280
      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6281
    fi ;;
6282
  go32* | *djgpp*)
6283
    ac_cv_search_tgetent="none required"
6284
    ;;
6285
  *mingw32*)
6286
    ac_cv_search_tgetent="none required"
6287
    CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
6288
    ;;
6289
esac
6290
 
6291
# These are the libraries checked by Readline.
6292 225 jeremybenn
echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6293
echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
6294 131 jeremybenn
if test "${ac_cv_search_tgetent+set}" = set; then
6295 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6296 131 jeremybenn
else
6297
  ac_func_search_save_LIBS=$LIBS
6298 225 jeremybenn
ac_cv_search_tgetent=no
6299 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
6300
/* confdefs.h.  */
6301
_ACEOF
6302
cat confdefs.h >>conftest.$ac_ext
6303
cat >>conftest.$ac_ext <<_ACEOF
6304
/* end confdefs.h.  */
6305
 
6306 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6307 131 jeremybenn
#ifdef __cplusplus
6308
extern "C"
6309
#endif
6310 225 jeremybenn
/* We use char because int might match the return type of a gcc2
6311
   builtin and then its argument prototype would still apply.  */
6312 131 jeremybenn
char tgetent ();
6313
int
6314
main ()
6315
{
6316 225 jeremybenn
tgetent ();
6317 131 jeremybenn
  ;
6318
  return 0;
6319
}
6320
_ACEOF
6321 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323
  (eval $ac_link) 2>conftest.er1
6324 131 jeremybenn
  ac_status=$?
6325
  grep -v '^ *+' conftest.er1 >conftest.err
6326
  rm -f conftest.er1
6327
  cat conftest.err >&5
6328 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329
  (exit $ac_status); } &&
6330
         { ac_try='test -z "$ac_c_werror_flag"
6331
                         || test ! -s conftest.err'
6332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333
  (eval $ac_try) 2>&5
6334
  ac_status=$?
6335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336
  (exit $ac_status); }; } &&
6337
         { ac_try='test -s conftest$ac_exeext'
6338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339
  (eval $ac_try) 2>&5
6340
  ac_status=$?
6341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342
  (exit $ac_status); }; }; then
6343
  ac_cv_search_tgetent="none required"
6344 131 jeremybenn
else
6345 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6346 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6347
 
6348
fi
6349 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6350
      conftest$ac_exeext conftest.$ac_ext
6351
if test "$ac_cv_search_tgetent" = no; then
6352
  for ac_lib in termcap tinfo curses ncurses; do
6353
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6354
    cat >conftest.$ac_ext <<_ACEOF
6355
/* confdefs.h.  */
6356
_ACEOF
6357
cat confdefs.h >>conftest.$ac_ext
6358
cat >>conftest.$ac_ext <<_ACEOF
6359
/* end confdefs.h.  */
6360 131 jeremybenn
 
6361 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6362
#ifdef __cplusplus
6363
extern "C"
6364
#endif
6365
/* We use char because int might match the return type of a gcc2
6366
   builtin and then its argument prototype would still apply.  */
6367
char tgetent ();
6368
int
6369
main ()
6370
{
6371
tgetent ();
6372
  ;
6373
  return 0;
6374
}
6375
_ACEOF
6376
rm -f conftest.$ac_objext conftest$ac_exeext
6377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378
  (eval $ac_link) 2>conftest.er1
6379
  ac_status=$?
6380
  grep -v '^ *+' conftest.er1 >conftest.err
6381
  rm -f conftest.er1
6382
  cat conftest.err >&5
6383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384
  (exit $ac_status); } &&
6385
         { ac_try='test -z "$ac_c_werror_flag"
6386
                         || test ! -s conftest.err'
6387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388
  (eval $ac_try) 2>&5
6389
  ac_status=$?
6390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391
  (exit $ac_status); }; } &&
6392
         { ac_try='test -s conftest$ac_exeext'
6393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394
  (eval $ac_try) 2>&5
6395
  ac_status=$?
6396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397
  (exit $ac_status); }; }; then
6398
  ac_cv_search_tgetent="-l$ac_lib"
6399
break
6400 131 jeremybenn
else
6401 225 jeremybenn
  echo "$as_me: failed program was:" >&5
6402
sed 's/^/| /' conftest.$ac_ext >&5
6403
 
6404 131 jeremybenn
fi
6405 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
6406
      conftest$ac_exeext conftest.$ac_ext
6407
  done
6408
fi
6409 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
6410
fi
6411 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6412
echo "${ECHO_T}$ac_cv_search_tgetent" >&6
6413
if test "$ac_cv_search_tgetent" != no; then
6414
  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
6415 131 jeremybenn
 
6416
fi
6417
 
6418
 
6419
if test "$ac_cv_search_tgetent" = no; then
6420 225 jeremybenn
  { { echo "$as_me:$LINENO: error: no termcap library found" >&5
6421
echo "$as_me: error: no termcap library found" >&2;}
6422 131 jeremybenn
   { (exit 1); exit 1; }; }
6423
fi
6424
 
6425
 
6426 225 jeremybenn
# Check whether --with-system-readline or --without-system-readline was given.
6427 131 jeremybenn
if test "${with_system_readline+set}" = set; then
6428 225 jeremybenn
  withval="$with_system_readline"
6429 131 jeremybenn
 
6430 225 jeremybenn
fi;
6431 131 jeremybenn
 
6432
if test "$with_system_readline" = yes; then
6433
  READLINE=-lreadline
6434
  READLINE_DEPS=
6435
  READLINE_CFLAGS=
6436
else
6437
  READLINE='$(READLINE_DIR)/libreadline.a'
6438
  READLINE_DEPS='$(READLINE)'
6439
  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
6440
fi
6441
 
6442
 
6443
 
6444
 
6445 225 jeremybenn
# Added from binutils 2.20.1/bfd
6446
#Link in zlib if we can.  This allows us to read compressed debug sections.
6447
# This is used only by compress.c.
6448
echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
6449
echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
6450
if test "${ac_cv_search_zlibVersion+set}" = set; then
6451
  echo $ECHO_N "(cached) $ECHO_C" >&6
6452
else
6453
  ac_func_search_save_LIBS=$LIBS
6454
ac_cv_search_zlibVersion=no
6455
cat >conftest.$ac_ext <<_ACEOF
6456
/* confdefs.h.  */
6457
_ACEOF
6458
cat confdefs.h >>conftest.$ac_ext
6459
cat >>conftest.$ac_ext <<_ACEOF
6460
/* end confdefs.h.  */
6461 131 jeremybenn
 
6462 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
6463
#ifdef __cplusplus
6464
extern "C"
6465
#endif
6466
/* We use char because int might match the return type of a gcc2
6467
   builtin and then its argument prototype would still apply.  */
6468
char zlibVersion ();
6469
int
6470
main ()
6471
{
6472
zlibVersion ();
6473
  ;
6474
  return 0;
6475
}
6476
_ACEOF
6477
rm -f conftest.$ac_objext conftest$ac_exeext
6478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479
  (eval $ac_link) 2>conftest.er1
6480
  ac_status=$?
6481
  grep -v '^ *+' conftest.er1 >conftest.err
6482
  rm -f conftest.er1
6483
  cat conftest.err >&5
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
  (exit $ac_status); } &&
6486
         { ac_try='test -z "$ac_c_werror_flag"
6487
                         || test ! -s conftest.err'
6488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489
  (eval $ac_try) 2>&5
6490
  ac_status=$?
6491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
  (exit $ac_status); }; } &&
6493
         { ac_try='test -s conftest$ac_exeext'
6494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495
  (eval $ac_try) 2>&5
6496
  ac_status=$?
6497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
  (exit $ac_status); }; }; then
6499
  ac_cv_search_zlibVersion="none required"
6500
else
6501
  echo "$as_me: failed program was:" >&5
6502
sed 's/^/| /' conftest.$ac_ext >&5
6503
 
6504
fi
6505
rm -f conftest.err conftest.$ac_objext \
6506
      conftest$ac_exeext conftest.$ac_ext
6507
if test "$ac_cv_search_zlibVersion" = no; then
6508
  for ac_lib in z; do
6509
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6510
    cat >conftest.$ac_ext <<_ACEOF
6511
/* confdefs.h.  */
6512
_ACEOF
6513
cat confdefs.h >>conftest.$ac_ext
6514
cat >>conftest.$ac_ext <<_ACEOF
6515
/* end confdefs.h.  */
6516
 
6517
/* Override any gcc2 internal prototype to avoid an error.  */
6518
#ifdef __cplusplus
6519
extern "C"
6520
#endif
6521
/* We use char because int might match the return type of a gcc2
6522
   builtin and then its argument prototype would still apply.  */
6523
char zlibVersion ();
6524
int
6525
main ()
6526
{
6527
zlibVersion ();
6528
  ;
6529
  return 0;
6530
}
6531
_ACEOF
6532
rm -f conftest.$ac_objext conftest$ac_exeext
6533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534
  (eval $ac_link) 2>conftest.er1
6535
  ac_status=$?
6536
  grep -v '^ *+' conftest.er1 >conftest.err
6537
  rm -f conftest.er1
6538
  cat conftest.err >&5
6539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540
  (exit $ac_status); } &&
6541
         { ac_try='test -z "$ac_c_werror_flag"
6542
                         || test ! -s conftest.err'
6543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544
  (eval $ac_try) 2>&5
6545
  ac_status=$?
6546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547
  (exit $ac_status); }; } &&
6548
         { ac_try='test -s conftest$ac_exeext'
6549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550
  (eval $ac_try) 2>&5
6551
  ac_status=$?
6552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553
  (exit $ac_status); }; }; then
6554
  ac_cv_search_zlibVersion="-l$ac_lib"
6555
break
6556
else
6557
  echo "$as_me: failed program was:" >&5
6558
sed 's/^/| /' conftest.$ac_ext >&5
6559
 
6560
fi
6561
rm -f conftest.err conftest.$ac_objext \
6562
      conftest$ac_exeext conftest.$ac_ext
6563
  done
6564
fi
6565
LIBS=$ac_func_search_save_LIBS
6566
fi
6567
echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
6568
echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
6569
if test "$ac_cv_search_zlibVersion" != no; then
6570
  test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
6571
 
6572
for ac_header in zlib.h
6573
do
6574
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6575
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6577
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6579
  echo $ECHO_N "(cached) $ECHO_C" >&6
6580
fi
6581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583
else
6584
  # Is the header compilable?
6585
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6586
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6587
cat >conftest.$ac_ext <<_ACEOF
6588
/* confdefs.h.  */
6589
_ACEOF
6590
cat confdefs.h >>conftest.$ac_ext
6591
cat >>conftest.$ac_ext <<_ACEOF
6592
/* end confdefs.h.  */
6593
$ac_includes_default
6594
#include <$ac_header>
6595
_ACEOF
6596
rm -f conftest.$ac_objext
6597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598
  (eval $ac_compile) 2>conftest.er1
6599
  ac_status=$?
6600
  grep -v '^ *+' conftest.er1 >conftest.err
6601
  rm -f conftest.er1
6602
  cat conftest.err >&5
6603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604
  (exit $ac_status); } &&
6605
         { ac_try='test -z "$ac_c_werror_flag"
6606
                         || test ! -s conftest.err'
6607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608
  (eval $ac_try) 2>&5
6609
  ac_status=$?
6610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611
  (exit $ac_status); }; } &&
6612
         { ac_try='test -s conftest.$ac_objext'
6613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614
  (eval $ac_try) 2>&5
6615
  ac_status=$?
6616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617
  (exit $ac_status); }; }; then
6618
  ac_header_compiler=yes
6619
else
6620
  echo "$as_me: failed program was:" >&5
6621
sed 's/^/| /' conftest.$ac_ext >&5
6622
 
6623
ac_header_compiler=no
6624
fi
6625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6627
echo "${ECHO_T}$ac_header_compiler" >&6
6628
 
6629
# Is the header present?
6630
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6631
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6632
cat >conftest.$ac_ext <<_ACEOF
6633
/* confdefs.h.  */
6634
_ACEOF
6635
cat confdefs.h >>conftest.$ac_ext
6636
cat >>conftest.$ac_ext <<_ACEOF
6637
/* end confdefs.h.  */
6638
#include <$ac_header>
6639
_ACEOF
6640
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6641
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6642
  ac_status=$?
6643
  grep -v '^ *+' conftest.er1 >conftest.err
6644
  rm -f conftest.er1
6645
  cat conftest.err >&5
6646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
  (exit $ac_status); } >/dev/null; then
6648
  if test -s conftest.err; then
6649
    ac_cpp_err=$ac_c_preproc_warn_flag
6650
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6651
  else
6652
    ac_cpp_err=
6653
  fi
6654
else
6655
  ac_cpp_err=yes
6656
fi
6657
if test -z "$ac_cpp_err"; then
6658
  ac_header_preproc=yes
6659
else
6660
  echo "$as_me: failed program was:" >&5
6661
sed 's/^/| /' conftest.$ac_ext >&5
6662
 
6663
  ac_header_preproc=no
6664
fi
6665
rm -f conftest.err conftest.$ac_ext
6666
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667
echo "${ECHO_T}$ac_header_preproc" >&6
6668
 
6669
# So?  What about this header?
6670
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6671
  yes:no: )
6672
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6673
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6675
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6676
    ac_header_preproc=yes
6677
    ;;
6678
  no:yes:* )
6679
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6680
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6681
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6682
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6683
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6684
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6685
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6686
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6687
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6689
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6690
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6691
    (
6692
      cat <<\_ASBOX
6693
## ------------------------------------------ ##
6694
## Report this to the AC_PACKAGE_NAME lists.  ##
6695
## ------------------------------------------ ##
6696
_ASBOX
6697
    ) |
6698
      sed "s/^/$as_me: WARNING:     /" >&2
6699
    ;;
6700
esac
6701
echo "$as_me:$LINENO: checking for $ac_header" >&5
6702
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704
  echo $ECHO_N "(cached) $ECHO_C" >&6
6705
else
6706
  eval "$as_ac_Header=\$ac_header_preproc"
6707
fi
6708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6709
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6710
 
6711
fi
6712
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6713
  cat >>confdefs.h <<_ACEOF
6714
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715
_ACEOF
6716
 
6717
fi
6718
 
6719
done
6720
 
6721
fi
6722
 
6723
 
6724
 
6725
# Check whether --with-expat or --without-expat was given.
6726 131 jeremybenn
if test "${with_expat+set}" = set; then
6727 225 jeremybenn
  withval="$with_expat"
6728
 
6729 131 jeremybenn
else
6730
  with_expat=auto
6731 225 jeremybenn
fi;
6732
echo "$as_me:$LINENO: checking whether to use expat" >&5
6733
echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
6734
echo "$as_me:$LINENO: result: $with_expat" >&5
6735
echo "${ECHO_T}$with_expat" >&6
6736 131 jeremybenn
 
6737
if test "${with_expat}" = no; then
6738 225 jeremybenn
  { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
6739
echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
6740 131 jeremybenn
  HAVE_LIBEXPAT=no
6741
else
6742
 
6743
      if test "X$prefix" = "XNONE"; then
6744
    acl_final_prefix="$ac_default_prefix"
6745
  else
6746
    acl_final_prefix="$prefix"
6747
  fi
6748
  if test "X$exec_prefix" = "XNONE"; then
6749
    acl_final_exec_prefix='${prefix}'
6750
  else
6751
    acl_final_exec_prefix="$exec_prefix"
6752
  fi
6753
  acl_save_prefix="$prefix"
6754
  prefix="$acl_final_prefix"
6755
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6756
  prefix="$acl_save_prefix"
6757
 
6758
 
6759 225 jeremybenn
# Check whether --with-gnu-ld or --without-gnu-ld was given.
6760 131 jeremybenn
if test "${with_gnu_ld+set}" = set; then
6761 225 jeremybenn
  withval="$with_gnu_ld"
6762
  test "$withval" = no || with_gnu_ld=yes
6763 131 jeremybenn
else
6764
  with_gnu_ld=no
6765 225 jeremybenn
fi;
6766 131 jeremybenn
# Prepare PATH_SEPARATOR.
6767
# The user is always right.
6768
if test "${PATH_SEPARATOR+set}" != set; then
6769
  echo "#! /bin/sh" >conf$$.sh
6770
  echo  "exit 0"   >>conf$$.sh
6771
  chmod +x conf$$.sh
6772
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6773
    PATH_SEPARATOR=';'
6774
  else
6775
    PATH_SEPARATOR=:
6776
  fi
6777
  rm -f conf$$.sh
6778
fi
6779
ac_prog=ld
6780
if test "$GCC" = yes; then
6781
  # Check if gcc -print-prog-name=ld gives a path.
6782 225 jeremybenn
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6783
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6784 131 jeremybenn
  case $host in
6785
  *-*-mingw*)
6786
    # gcc leaves a trailing carriage return which upsets mingw
6787
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6788
  *)
6789
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6790
  esac
6791
  case $ac_prog in
6792
    # Accept absolute paths.
6793
    [\\/]* | [A-Za-z]:[\\/]*)
6794
      re_direlt='/[^/][^/]*/\.\./'
6795
      # Canonicalize the path of ld
6796
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6797
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6798
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6799
      done
6800
      test -z "$LD" && LD="$ac_prog"
6801
      ;;
6802
  "")
6803
    # If it fails, then pretend we aren't using GCC.
6804
    ac_prog=ld
6805
    ;;
6806
  *)
6807
    # If it is relative, then search for the first ld in PATH.
6808
    with_gnu_ld=unknown
6809
    ;;
6810
  esac
6811
elif test "$with_gnu_ld" = yes; then
6812 225 jeremybenn
  echo "$as_me:$LINENO: checking for GNU ld" >&5
6813
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6814 131 jeremybenn
else
6815 225 jeremybenn
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6816
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6817 131 jeremybenn
fi
6818
if test "${acl_cv_path_LD+set}" = set; then
6819 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6820 131 jeremybenn
else
6821
  if test -z "$LD"; then
6822
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6823
  for ac_dir in $PATH; do
6824
    test -z "$ac_dir" && ac_dir=.
6825
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6826
      acl_cv_path_LD="$ac_dir/$ac_prog"
6827
      # Check to see if the program is GNU ld.  I'd rather use --version,
6828
      # but apparently some GNU ld's only accept -v.
6829
      # Break only if it was the GNU/non-GNU ld that we prefer.
6830
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6831
        test "$with_gnu_ld" != no && break
6832
      else
6833
        test "$with_gnu_ld" != yes && break
6834
      fi
6835
    fi
6836
  done
6837
  IFS="$ac_save_ifs"
6838
else
6839
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6840
fi
6841
fi
6842
 
6843
LD="$acl_cv_path_LD"
6844
if test -n "$LD"; then
6845 225 jeremybenn
  echo "$as_me:$LINENO: result: $LD" >&5
6846
echo "${ECHO_T}$LD" >&6
6847 131 jeremybenn
else
6848 225 jeremybenn
  echo "$as_me:$LINENO: result: no" >&5
6849
echo "${ECHO_T}no" >&6
6850 131 jeremybenn
fi
6851 225 jeremybenn
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6852
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6853 131 jeremybenn
   { (exit 1); exit 1; }; }
6854 225 jeremybenn
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6855
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6856 131 jeremybenn
if test "${acl_cv_prog_gnu_ld+set}" = set; then
6857 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6858 131 jeremybenn
else
6859
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6860
if $LD -v 2>&1 &5; then
6861
  acl_cv_prog_gnu_ld=yes
6862
else
6863
  acl_cv_prog_gnu_ld=no
6864
fi
6865
fi
6866 225 jeremybenn
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6867
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6868 131 jeremybenn
with_gnu_ld=$acl_cv_prog_gnu_ld
6869
 
6870
 
6871
 
6872 225 jeremybenn
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6873
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6874 131 jeremybenn
if test "${acl_cv_rpath+set}" = set; then
6875 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
6876 131 jeremybenn
else
6877
 
6878
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6879
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6880
    . ./conftest.sh
6881
    rm -f ./conftest.sh
6882
    acl_cv_rpath=done
6883
 
6884
fi
6885 225 jeremybenn
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6886
echo "${ECHO_T}$acl_cv_rpath" >&6
6887 131 jeremybenn
  wl="$acl_cv_wl"
6888
  libext="$acl_cv_libext"
6889
  shlibext="$acl_cv_shlibext"
6890
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6891
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6892
  hardcode_direct="$acl_cv_hardcode_direct"
6893
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6894 225 jeremybenn
    # Check whether --enable-rpath or --disable-rpath was given.
6895 131 jeremybenn
if test "${enable_rpath+set}" = set; then
6896 225 jeremybenn
  enableval="$enable_rpath"
6897
  :
6898 131 jeremybenn
else
6899
  enable_rpath=yes
6900 225 jeremybenn
fi;
6901 131 jeremybenn
 
6902
 
6903
 
6904
 
6905
 
6906
 
6907
 
6908
 
6909
 
6910
    use_additional=yes
6911
 
6912
  acl_save_prefix="$prefix"
6913
  prefix="$acl_final_prefix"
6914
  acl_save_exec_prefix="$exec_prefix"
6915
  exec_prefix="$acl_final_exec_prefix"
6916
 
6917
    eval additional_includedir=\"$includedir\"
6918
    eval additional_libdir=\"$libdir\"
6919
 
6920
  exec_prefix="$acl_save_exec_prefix"
6921
  prefix="$acl_save_prefix"
6922
 
6923
 
6924 225 jeremybenn
# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6925 131 jeremybenn
if test "${with_libexpat_prefix+set}" = set; then
6926 225 jeremybenn
  withval="$with_libexpat_prefix"
6927
 
6928 131 jeremybenn
    if test "X$withval" = "Xno"; then
6929
      use_additional=no
6930
    else
6931
      if test "X$withval" = "X"; then
6932
 
6933
  acl_save_prefix="$prefix"
6934
  prefix="$acl_final_prefix"
6935
  acl_save_exec_prefix="$exec_prefix"
6936
  exec_prefix="$acl_final_exec_prefix"
6937
 
6938
          eval additional_includedir=\"$includedir\"
6939
          eval additional_libdir=\"$libdir\"
6940
 
6941
  exec_prefix="$acl_save_exec_prefix"
6942
  prefix="$acl_save_prefix"
6943
 
6944
      else
6945
        additional_includedir="$withval/include"
6946
        additional_libdir="$withval/lib"
6947
      fi
6948
    fi
6949
 
6950 225 jeremybenn
fi;
6951 131 jeremybenn
      LIBEXPAT=
6952
  LTLIBEXPAT=
6953
  INCEXPAT=
6954
  rpathdirs=
6955
  ltrpathdirs=
6956
  names_already_handled=
6957
  names_next_round='expat '
6958
  while test -n "$names_next_round"; do
6959
    names_this_round="$names_next_round"
6960
    names_next_round=
6961
    for name in $names_this_round; do
6962
      already_handled=
6963
      for n in $names_already_handled; do
6964
        if test "$n" = "$name"; then
6965
          already_handled=yes
6966
          break
6967
        fi
6968
      done
6969
      if test -z "$already_handled"; then
6970
        names_already_handled="$names_already_handled $name"
6971
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6972
        eval value=\"\$HAVE_LIB$uppername\"
6973
        if test -n "$value"; then
6974
          if test "$value" = yes; then
6975
            eval value=\"\$LIB$uppername\"
6976
            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6977
            eval value=\"\$LTLIB$uppername\"
6978
            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6979
          else
6980
                                    :
6981
          fi
6982
        else
6983
                              found_dir=
6984
          found_la=
6985
          found_so=
6986
          found_a=
6987
          if test $use_additional = yes; then
6988
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6989
              found_dir="$additional_libdir"
6990
              found_so="$additional_libdir/lib$name.$shlibext"
6991
              if test -f "$additional_libdir/lib$name.la"; then
6992
                found_la="$additional_libdir/lib$name.la"
6993
              fi
6994
            else
6995
              if test -f "$additional_libdir/lib$name.$libext"; then
6996
                found_dir="$additional_libdir"
6997
                found_a="$additional_libdir/lib$name.$libext"
6998
                if test -f "$additional_libdir/lib$name.la"; then
6999
                  found_la="$additional_libdir/lib$name.la"
7000
                fi
7001
              fi
7002
            fi
7003
          fi
7004
          if test "X$found_dir" = "X"; then
7005
            for x in $LDFLAGS $LTLIBEXPAT; do
7006
 
7007
  acl_save_prefix="$prefix"
7008
  prefix="$acl_final_prefix"
7009
  acl_save_exec_prefix="$exec_prefix"
7010
  exec_prefix="$acl_final_exec_prefix"
7011
  eval x=\"$x\"
7012
  exec_prefix="$acl_save_exec_prefix"
7013
  prefix="$acl_save_prefix"
7014
 
7015
              case "$x" in
7016
                -L*)
7017
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7018
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7019
                    found_dir="$dir"
7020
                    found_so="$dir/lib$name.$shlibext"
7021
                    if test -f "$dir/lib$name.la"; then
7022
                      found_la="$dir/lib$name.la"
7023
                    fi
7024
                  else
7025
                    if test -f "$dir/lib$name.$libext"; then
7026
                      found_dir="$dir"
7027
                      found_a="$dir/lib$name.$libext"
7028
                      if test -f "$dir/lib$name.la"; then
7029
                        found_la="$dir/lib$name.la"
7030
                      fi
7031
                    fi
7032
                  fi
7033
                  ;;
7034
              esac
7035
              if test "X$found_dir" != "X"; then
7036
                break
7037
              fi
7038
            done
7039
          fi
7040
          if test "X$found_dir" != "X"; then
7041
                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7042
            if test "X$found_so" != "X"; then
7043
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7044
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7045
              else
7046
                                                                                haveit=
7047
                for x in $ltrpathdirs; do
7048
                  if test "X$x" = "X$found_dir"; then
7049
                    haveit=yes
7050
                    break
7051
                  fi
7052
                done
7053
                if test -z "$haveit"; then
7054
                  ltrpathdirs="$ltrpathdirs $found_dir"
7055
                fi
7056
                                if test "$hardcode_direct" = yes; then
7057
                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7058
                else
7059
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7060
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7061
                                                            haveit=
7062
                    for x in $rpathdirs; do
7063
                      if test "X$x" = "X$found_dir"; then
7064
                        haveit=yes
7065
                        break
7066
                      fi
7067
                    done
7068
                    if test -z "$haveit"; then
7069
                      rpathdirs="$rpathdirs $found_dir"
7070
                    fi
7071
                  else
7072
                                                                                haveit=
7073
                    for x in $LDFLAGS $LIBEXPAT; do
7074
 
7075
  acl_save_prefix="$prefix"
7076
  prefix="$acl_final_prefix"
7077
  acl_save_exec_prefix="$exec_prefix"
7078
  exec_prefix="$acl_final_exec_prefix"
7079
  eval x=\"$x\"
7080
  exec_prefix="$acl_save_exec_prefix"
7081
  prefix="$acl_save_prefix"
7082
 
7083
                      if test "X$x" = "X-L$found_dir"; then
7084
                        haveit=yes
7085
                        break
7086
                      fi
7087
                    done
7088
                    if test -z "$haveit"; then
7089
                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7090
                    fi
7091
                    if test "$hardcode_minus_L" != no; then
7092
                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7093
                    else
7094
                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7095
                    fi
7096
                  fi
7097
                fi
7098
              fi
7099
            else
7100
              if test "X$found_a" != "X"; then
7101
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7102
              else
7103
                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7104
              fi
7105
            fi
7106
                        additional_includedir=
7107
            case "$found_dir" in
7108
              */lib | */lib/)
7109
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7110
                additional_includedir="$basedir/include"
7111
                ;;
7112
            esac
7113
            if test "X$additional_includedir" != "X"; then
7114
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7115
                haveit=
7116
                if test "X$additional_includedir" = "X/usr/local/include"; then
7117
                  if test -n "$GCC"; then
7118
                    case $host_os in
7119
                      linux*) haveit=yes;;
7120
                    esac
7121
                  fi
7122
                fi
7123
                if test -z "$haveit"; then
7124
                  for x in $CPPFLAGS $INCEXPAT; do
7125
 
7126
  acl_save_prefix="$prefix"
7127
  prefix="$acl_final_prefix"
7128
  acl_save_exec_prefix="$exec_prefix"
7129
  exec_prefix="$acl_final_exec_prefix"
7130
  eval x=\"$x\"
7131
  exec_prefix="$acl_save_exec_prefix"
7132
  prefix="$acl_save_prefix"
7133
 
7134
                    if test "X$x" = "X-I$additional_includedir"; then
7135
                      haveit=yes
7136
                      break
7137
                    fi
7138
                  done
7139
                  if test -z "$haveit"; then
7140
                    if test -d "$additional_includedir"; then
7141
                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7142
                    fi
7143
                  fi
7144
                fi
7145
              fi
7146
            fi
7147
                        if test -n "$found_la"; then
7148
                                                        save_libdir="$libdir"
7149
              case "$found_la" in
7150
                */* | *\\*) . "$found_la" ;;
7151
                *) . "./$found_la" ;;
7152
              esac
7153
              libdir="$save_libdir"
7154
                            for dep in $dependency_libs; do
7155
                case "$dep" in
7156
                  -L*)
7157
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7158
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7159
                      haveit=
7160
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7161
                        if test -n "$GCC"; then
7162
                          case $host_os in
7163
                            linux*) haveit=yes;;
7164
                          esac
7165
                        fi
7166
                      fi
7167
                      if test -z "$haveit"; then
7168
                        haveit=
7169
                        for x in $LDFLAGS $LIBEXPAT; do
7170
 
7171
  acl_save_prefix="$prefix"
7172
  prefix="$acl_final_prefix"
7173
  acl_save_exec_prefix="$exec_prefix"
7174
  exec_prefix="$acl_final_exec_prefix"
7175
  eval x=\"$x\"
7176
  exec_prefix="$acl_save_exec_prefix"
7177
  prefix="$acl_save_prefix"
7178
 
7179
                          if test "X$x" = "X-L$additional_libdir"; then
7180
                            haveit=yes
7181
                            break
7182
                          fi
7183
                        done
7184
                        if test -z "$haveit"; then
7185
                          if test -d "$additional_libdir"; then
7186
                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7187
                          fi
7188
                        fi
7189
                        haveit=
7190
                        for x in $LDFLAGS $LTLIBEXPAT; do
7191
 
7192
  acl_save_prefix="$prefix"
7193
  prefix="$acl_final_prefix"
7194
  acl_save_exec_prefix="$exec_prefix"
7195
  exec_prefix="$acl_final_exec_prefix"
7196
  eval x=\"$x\"
7197
  exec_prefix="$acl_save_exec_prefix"
7198
  prefix="$acl_save_prefix"
7199
 
7200
                          if test "X$x" = "X-L$additional_libdir"; then
7201
                            haveit=yes
7202
                            break
7203
                          fi
7204
                        done
7205
                        if test -z "$haveit"; then
7206
                          if test -d "$additional_libdir"; then
7207
                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7208
                          fi
7209
                        fi
7210
                      fi
7211
                    fi
7212
                    ;;
7213
                  -R*)
7214
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7215
                    if test "$enable_rpath" != no; then
7216
                                                                  haveit=
7217
                      for x in $rpathdirs; do
7218
                        if test "X$x" = "X$dir"; then
7219
                          haveit=yes
7220
                          break
7221
                        fi
7222
                      done
7223
                      if test -z "$haveit"; then
7224
                        rpathdirs="$rpathdirs $dir"
7225
                      fi
7226
                                                                  haveit=
7227
                      for x in $ltrpathdirs; do
7228
                        if test "X$x" = "X$dir"; then
7229
                          haveit=yes
7230
                          break
7231
                        fi
7232
                      done
7233
                      if test -z "$haveit"; then
7234
                        ltrpathdirs="$ltrpathdirs $dir"
7235
                      fi
7236
                    fi
7237
                    ;;
7238
                  -l*)
7239
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7240
                    ;;
7241
                  *.la)
7242
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7243
                    ;;
7244
                  *)
7245
                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7246
                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7247
                    ;;
7248
                esac
7249
              done
7250
            fi
7251
          else
7252
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7253
            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7254
          fi
7255
        fi
7256
      fi
7257
    done
7258
  done
7259
  if test "X$rpathdirs" != "X"; then
7260
    if test -n "$hardcode_libdir_separator"; then
7261
                        alldirs=
7262
      for found_dir in $rpathdirs; do
7263
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7264
      done
7265
            acl_save_libdir="$libdir"
7266
      libdir="$alldirs"
7267
      eval flag=\"$hardcode_libdir_flag_spec\"
7268
      libdir="$acl_save_libdir"
7269
      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7270
    else
7271
            for found_dir in $rpathdirs; do
7272
        acl_save_libdir="$libdir"
7273
        libdir="$found_dir"
7274
        eval flag=\"$hardcode_libdir_flag_spec\"
7275
        libdir="$acl_save_libdir"
7276
        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7277
      done
7278
    fi
7279
  fi
7280
  if test "X$ltrpathdirs" != "X"; then
7281
            for found_dir in $ltrpathdirs; do
7282
      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7283
    done
7284
  fi
7285
 
7286
 
7287
        ac_save_CPPFLAGS="$CPPFLAGS"
7288
 
7289
  for element in $INCEXPAT; do
7290
    haveit=
7291
    for x in $CPPFLAGS; do
7292
 
7293
  acl_save_prefix="$prefix"
7294
  prefix="$acl_final_prefix"
7295
  acl_save_exec_prefix="$exec_prefix"
7296
  exec_prefix="$acl_final_exec_prefix"
7297
  eval x=\"$x\"
7298
  exec_prefix="$acl_save_exec_prefix"
7299
  prefix="$acl_save_prefix"
7300
 
7301
      if test "X$x" = "X$element"; then
7302
        haveit=yes
7303
        break
7304
      fi
7305
    done
7306
    if test -z "$haveit"; then
7307
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7308
    fi
7309
  done
7310
 
7311
 
7312 225 jeremybenn
  echo "$as_me:$LINENO: checking for libexpat" >&5
7313
echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
7314 131 jeremybenn
if test "${ac_cv_libexpat+set}" = set; then
7315 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
7316 131 jeremybenn
else
7317
 
7318
    ac_save_LIBS="$LIBS"
7319
    LIBS="$LIBS $LIBEXPAT"
7320
    cat >conftest.$ac_ext <<_ACEOF
7321
/* confdefs.h.  */
7322
_ACEOF
7323
cat confdefs.h >>conftest.$ac_ext
7324
cat >>conftest.$ac_ext <<_ACEOF
7325
/* end confdefs.h.  */
7326
#include "expat.h"
7327
int
7328
main ()
7329
{
7330
XML_Parser p = XML_ParserCreate (0);
7331
  ;
7332
  return 0;
7333
}
7334
_ACEOF
7335
rm -f conftest.$ac_objext conftest$ac_exeext
7336 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337
  (eval $ac_link) 2>conftest.er1
7338 131 jeremybenn
  ac_status=$?
7339
  grep -v '^ *+' conftest.er1 >conftest.err
7340
  rm -f conftest.er1
7341
  cat conftest.err >&5
7342 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343
  (exit $ac_status); } &&
7344
         { ac_try='test -z "$ac_c_werror_flag"
7345
                         || test ! -s conftest.err'
7346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347
  (eval $ac_try) 2>&5
7348
  ac_status=$?
7349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350
  (exit $ac_status); }; } &&
7351
         { ac_try='test -s conftest$ac_exeext'
7352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353
  (eval $ac_try) 2>&5
7354
  ac_status=$?
7355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356
  (exit $ac_status); }; }; then
7357 131 jeremybenn
  ac_cv_libexpat=yes
7358
else
7359 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7360 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7361
 
7362 225 jeremybenn
ac_cv_libexpat=no
7363 131 jeremybenn
fi
7364 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7365 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
7366
    LIBS="$ac_save_LIBS"
7367
 
7368
fi
7369 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
7370
echo "${ECHO_T}$ac_cv_libexpat" >&6
7371 131 jeremybenn
  if test "$ac_cv_libexpat" = yes; then
7372
    HAVE_LIBEXPAT=yes
7373
 
7374
cat >>confdefs.h <<\_ACEOF
7375
#define HAVE_LIBEXPAT 1
7376
_ACEOF
7377
 
7378 225 jeremybenn
    echo "$as_me:$LINENO: checking how to link with libexpat" >&5
7379
echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
7380
    echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
7381
echo "${ECHO_T}$LIBEXPAT" >&6
7382 131 jeremybenn
  else
7383
    HAVE_LIBEXPAT=no
7384
            CPPFLAGS="$ac_save_CPPFLAGS"
7385
    LIBEXPAT=
7386
    LTLIBEXPAT=
7387
  fi
7388
 
7389
 
7390
 
7391
 
7392
 
7393
 
7394
  if test "$HAVE_LIBEXPAT" != yes; then
7395
    if test "$with_expat" = yes; then
7396 225 jeremybenn
      { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
7397
echo "$as_me: error: expat is missing or unusable" >&2;}
7398 131 jeremybenn
   { (exit 1); exit 1; }; }
7399
    else
7400 225 jeremybenn
      { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7401
echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7402 131 jeremybenn
    fi
7403
  else
7404
    save_LIBS=$LIBS
7405
    LIBS="$LIBS $LIBEXPAT"
7406
 
7407
for ac_func in XML_StopParser
7408
do
7409 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7410
echo "$as_me:$LINENO: checking for $ac_func" >&5
7411
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7412
if eval "test \"\${$as_ac_var+set}\" = set"; then
7413
  echo $ECHO_N "(cached) $ECHO_C" >&6
7414 131 jeremybenn
else
7415
  cat >conftest.$ac_ext <<_ACEOF
7416
/* confdefs.h.  */
7417
_ACEOF
7418
cat confdefs.h >>conftest.$ac_ext
7419
cat >>conftest.$ac_ext <<_ACEOF
7420
/* end confdefs.h.  */
7421
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
7422
   For example, HP-UX 11i  declares gettimeofday.  */
7423
#define $ac_func innocuous_$ac_func
7424
 
7425
/* System header to define __stub macros and hopefully few prototypes,
7426
    which can conflict with char $ac_func (); below.
7427
    Prefer  to  if __STDC__ is defined, since
7428
     exists even on freestanding compilers.  */
7429
 
7430
#ifdef __STDC__
7431
# include 
7432
#else
7433
# include 
7434
#endif
7435
 
7436
#undef $ac_func
7437
 
7438 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
7439 131 jeremybenn
#ifdef __cplusplus
7440
extern "C"
7441 225 jeremybenn
{
7442 131 jeremybenn
#endif
7443 225 jeremybenn
/* We use char because int might match the return type of a gcc2
7444
   builtin and then its argument prototype would still apply.  */
7445 131 jeremybenn
char $ac_func ();
7446
/* The GNU C library defines this for functions which it implements
7447
    to always fail with ENOSYS.  Some functions are actually named
7448
    something starting with __ and the normal name is an alias.  */
7449 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7450 131 jeremybenn
choke me
7451 225 jeremybenn
#else
7452
char (*f) () = $ac_func;
7453 131 jeremybenn
#endif
7454 225 jeremybenn
#ifdef __cplusplus
7455
}
7456
#endif
7457 131 jeremybenn
 
7458
int
7459
main ()
7460
{
7461 225 jeremybenn
return f != $ac_func;
7462 131 jeremybenn
  ;
7463
  return 0;
7464
}
7465
_ACEOF
7466
rm -f conftest.$ac_objext conftest$ac_exeext
7467 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468
  (eval $ac_link) 2>conftest.er1
7469 131 jeremybenn
  ac_status=$?
7470
  grep -v '^ *+' conftest.er1 >conftest.err
7471
  rm -f conftest.er1
7472
  cat conftest.err >&5
7473 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474
  (exit $ac_status); } &&
7475
         { ac_try='test -z "$ac_c_werror_flag"
7476
                         || test ! -s conftest.err'
7477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478
  (eval $ac_try) 2>&5
7479
  ac_status=$?
7480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481
  (exit $ac_status); }; } &&
7482
         { ac_try='test -s conftest$ac_exeext'
7483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484
  (eval $ac_try) 2>&5
7485
  ac_status=$?
7486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487
  (exit $ac_status); }; }; then
7488 131 jeremybenn
  eval "$as_ac_var=yes"
7489
else
7490 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7491 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7492
 
7493 225 jeremybenn
eval "$as_ac_var=no"
7494 131 jeremybenn
fi
7495 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7496 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
7497
fi
7498 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7499
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7500
if test `eval echo '${'$as_ac_var'}'` = yes; then
7501 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
7502 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7503 131 jeremybenn
_ACEOF
7504
 
7505
fi
7506
done
7507
 
7508
    LIBS=$save_LIBS
7509
  fi
7510
fi
7511
 
7512 225 jeremybenn
# ------------------------- #
7513
# Checks for header files.  #
7514
# ------------------------- #
7515
 
7516
 
7517
 
7518
 
7519
 
7520
 
7521
ac_header_dirent=no
7522
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7523
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7524
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7525
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7526
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7527
  echo $ECHO_N "(cached) $ECHO_C" >&6
7528 131 jeremybenn
else
7529 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
7530 131 jeremybenn
/* confdefs.h.  */
7531
_ACEOF
7532
cat confdefs.h >>conftest.$ac_ext
7533
cat >>conftest.$ac_ext <<_ACEOF
7534
/* end confdefs.h.  */
7535 225 jeremybenn
#include 
7536
#include <$ac_hdr>
7537 131 jeremybenn
 
7538
int
7539
main ()
7540
{
7541 225 jeremybenn
if ((DIR *) 0)
7542
return 0;
7543 131 jeremybenn
  ;
7544
  return 0;
7545
}
7546
_ACEOF
7547 225 jeremybenn
rm -f conftest.$ac_objext
7548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7549
  (eval $ac_compile) 2>conftest.er1
7550 131 jeremybenn
  ac_status=$?
7551
  grep -v '^ *+' conftest.er1 >conftest.err
7552
  rm -f conftest.er1
7553
  cat conftest.err >&5
7554 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555
  (exit $ac_status); } &&
7556
         { ac_try='test -z "$ac_c_werror_flag"
7557
                         || test ! -s conftest.err'
7558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559
  (eval $ac_try) 2>&5
7560
  ac_status=$?
7561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562
  (exit $ac_status); }; } &&
7563
         { ac_try='test -s conftest.$ac_objext'
7564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565
  (eval $ac_try) 2>&5
7566
  ac_status=$?
7567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568
  (exit $ac_status); }; }; then
7569
  eval "$as_ac_Header=yes"
7570 131 jeremybenn
else
7571 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7572 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7573
 
7574 225 jeremybenn
eval "$as_ac_Header=no"
7575
fi
7576
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7577
fi
7578
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581
  cat >>confdefs.h <<_ACEOF
7582
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7583
_ACEOF
7584 213 jeremybenn
 
7585 225 jeremybenn
ac_header_dirent=$ac_hdr; break
7586 131 jeremybenn
fi
7587
 
7588
done
7589 225 jeremybenn
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7590
if test $ac_header_dirent = dirent.h; then
7591
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
7592
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7593
if test "${ac_cv_search_opendir+set}" = set; then
7594
  echo $ECHO_N "(cached) $ECHO_C" >&6
7595 131 jeremybenn
else
7596 225 jeremybenn
  ac_func_search_save_LIBS=$LIBS
7597
ac_cv_search_opendir=no
7598 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
7599
/* confdefs.h.  */
7600
_ACEOF
7601
cat confdefs.h >>conftest.$ac_ext
7602
cat >>conftest.$ac_ext <<_ACEOF
7603
/* end confdefs.h.  */
7604 225 jeremybenn
 
7605
/* Override any gcc2 internal prototype to avoid an error.  */
7606
#ifdef __cplusplus
7607
extern "C"
7608
#endif
7609
/* We use char because int might match the return type of a gcc2
7610
   builtin and then its argument prototype would still apply.  */
7611
char opendir ();
7612
int
7613
main ()
7614
{
7615
opendir ();
7616
  ;
7617
  return 0;
7618
}
7619 213 jeremybenn
_ACEOF
7620 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
7621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622
  (eval $ac_link) 2>conftest.er1
7623 213 jeremybenn
  ac_status=$?
7624
  grep -v '^ *+' conftest.er1 >conftest.err
7625
  rm -f conftest.er1
7626
  cat conftest.err >&5
7627 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628
  (exit $ac_status); } &&
7629
         { ac_try='test -z "$ac_c_werror_flag"
7630
                         || test ! -s conftest.err'
7631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632
  (eval $ac_try) 2>&5
7633 131 jeremybenn
  ac_status=$?
7634 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635
  (exit $ac_status); }; } &&
7636
         { ac_try='test -s conftest$ac_exeext'
7637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638
  (eval $ac_try) 2>&5
7639
  ac_status=$?
7640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641
  (exit $ac_status); }; }; then
7642
  ac_cv_search_opendir="none required"
7643 131 jeremybenn
else
7644 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7645 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7646
 
7647
fi
7648 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7649
      conftest$ac_exeext conftest.$ac_ext
7650
if test "$ac_cv_search_opendir" = no; then
7651
  for ac_lib in dir; do
7652
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7653
    cat >conftest.$ac_ext <<_ACEOF
7654 131 jeremybenn
/* confdefs.h.  */
7655
_ACEOF
7656
cat confdefs.h >>conftest.$ac_ext
7657
cat >>conftest.$ac_ext <<_ACEOF
7658
/* end confdefs.h.  */
7659
 
7660 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
7661
#ifdef __cplusplus
7662
extern "C"
7663
#endif
7664
/* We use char because int might match the return type of a gcc2
7665
   builtin and then its argument prototype would still apply.  */
7666
char opendir ();
7667 131 jeremybenn
int
7668
main ()
7669
{
7670 225 jeremybenn
opendir ();
7671 131 jeremybenn
  ;
7672
  return 0;
7673
}
7674
_ACEOF
7675 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
7676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7677
  (eval $ac_link) 2>conftest.er1
7678 131 jeremybenn
  ac_status=$?
7679
  grep -v '^ *+' conftest.er1 >conftest.err
7680
  rm -f conftest.er1
7681
  cat conftest.err >&5
7682 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683
  (exit $ac_status); } &&
7684
         { ac_try='test -z "$ac_c_werror_flag"
7685
                         || test ! -s conftest.err'
7686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687
  (eval $ac_try) 2>&5
7688
  ac_status=$?
7689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690
  (exit $ac_status); }; } &&
7691
         { ac_try='test -s conftest$ac_exeext'
7692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693
  (eval $ac_try) 2>&5
7694
  ac_status=$?
7695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696
  (exit $ac_status); }; }; then
7697
  ac_cv_search_opendir="-l$ac_lib"
7698
break
7699 131 jeremybenn
else
7700 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7701 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7702
 
7703
fi
7704 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7705
      conftest$ac_exeext conftest.$ac_ext
7706
  done
7707 131 jeremybenn
fi
7708 225 jeremybenn
LIBS=$ac_func_search_save_LIBS
7709
fi
7710
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7711
echo "${ECHO_T}$ac_cv_search_opendir" >&6
7712
if test "$ac_cv_search_opendir" != no; then
7713
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7714 131 jeremybenn
 
7715
fi
7716
 
7717 225 jeremybenn
else
7718
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
7719
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7720 131 jeremybenn
if test "${ac_cv_search_opendir+set}" = set; then
7721 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
7722 131 jeremybenn
else
7723
  ac_func_search_save_LIBS=$LIBS
7724 225 jeremybenn
ac_cv_search_opendir=no
7725 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
7726
/* confdefs.h.  */
7727
_ACEOF
7728
cat confdefs.h >>conftest.$ac_ext
7729
cat >>conftest.$ac_ext <<_ACEOF
7730
/* end confdefs.h.  */
7731
 
7732 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
7733 131 jeremybenn
#ifdef __cplusplus
7734
extern "C"
7735
#endif
7736 225 jeremybenn
/* We use char because int might match the return type of a gcc2
7737
   builtin and then its argument prototype would still apply.  */
7738 131 jeremybenn
char opendir ();
7739
int
7740
main ()
7741
{
7742 225 jeremybenn
opendir ();
7743 131 jeremybenn
  ;
7744
  return 0;
7745
}
7746
_ACEOF
7747 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
7748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749
  (eval $ac_link) 2>conftest.er1
7750 131 jeremybenn
  ac_status=$?
7751
  grep -v '^ *+' conftest.er1 >conftest.err
7752
  rm -f conftest.er1
7753
  cat conftest.err >&5
7754 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755
  (exit $ac_status); } &&
7756
         { ac_try='test -z "$ac_c_werror_flag"
7757
                         || test ! -s conftest.err'
7758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759
  (eval $ac_try) 2>&5
7760
  ac_status=$?
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
  (exit $ac_status); }; } &&
7763
         { ac_try='test -s conftest$ac_exeext'
7764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765
  (eval $ac_try) 2>&5
7766
  ac_status=$?
7767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768
  (exit $ac_status); }; }; then
7769
  ac_cv_search_opendir="none required"
7770 131 jeremybenn
else
7771 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7772 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7773
 
7774
fi
7775 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7776
      conftest$ac_exeext conftest.$ac_ext
7777
if test "$ac_cv_search_opendir" = no; then
7778
  for ac_lib in x; do
7779
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7780
    cat >conftest.$ac_ext <<_ACEOF
7781 131 jeremybenn
/* confdefs.h.  */
7782
_ACEOF
7783
cat confdefs.h >>conftest.$ac_ext
7784
cat >>conftest.$ac_ext <<_ACEOF
7785
/* end confdefs.h.  */
7786
 
7787 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
7788 131 jeremybenn
#ifdef __cplusplus
7789
extern "C"
7790
#endif
7791 225 jeremybenn
/* We use char because int might match the return type of a gcc2
7792
   builtin and then its argument prototype would still apply.  */
7793 131 jeremybenn
char opendir ();
7794
int
7795
main ()
7796
{
7797 225 jeremybenn
opendir ();
7798 131 jeremybenn
  ;
7799
  return 0;
7800
}
7801
_ACEOF
7802 225 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
7803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804
  (eval $ac_link) 2>conftest.er1
7805 131 jeremybenn
  ac_status=$?
7806
  grep -v '^ *+' conftest.er1 >conftest.err
7807
  rm -f conftest.er1
7808
  cat conftest.err >&5
7809 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810
  (exit $ac_status); } &&
7811
         { ac_try='test -z "$ac_c_werror_flag"
7812
                         || test ! -s conftest.err'
7813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814
  (eval $ac_try) 2>&5
7815
  ac_status=$?
7816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817
  (exit $ac_status); }; } &&
7818
         { ac_try='test -s conftest$ac_exeext'
7819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820
  (eval $ac_try) 2>&5
7821
  ac_status=$?
7822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823
  (exit $ac_status); }; }; then
7824
  ac_cv_search_opendir="-l$ac_lib"
7825
break
7826 131 jeremybenn
else
7827 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7828 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7829
 
7830
fi
7831 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
7832
      conftest$ac_exeext conftest.$ac_ext
7833
  done
7834 131 jeremybenn
fi
7835
LIBS=$ac_func_search_save_LIBS
7836
fi
7837 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7838
echo "${ECHO_T}$ac_cv_search_opendir" >&6
7839
if test "$ac_cv_search_opendir" != no; then
7840
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7841 131 jeremybenn
 
7842
fi
7843
 
7844
fi
7845
 
7846 225 jeremybenn
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7847
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7848 131 jeremybenn
if test "${ac_cv_header_stat_broken+set}" = set; then
7849 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
7850 131 jeremybenn
else
7851
  cat >conftest.$ac_ext <<_ACEOF
7852
/* confdefs.h.  */
7853
_ACEOF
7854
cat confdefs.h >>conftest.$ac_ext
7855
cat >>conftest.$ac_ext <<_ACEOF
7856
/* end confdefs.h.  */
7857
#include 
7858
#include 
7859
 
7860 225 jeremybenn
#if defined(S_ISBLK) && defined(S_IFDIR)
7861
# if S_ISBLK (S_IFDIR)
7862
You lose.
7863
# endif
7864 131 jeremybenn
#endif
7865
 
7866 225 jeremybenn
#if defined(S_ISBLK) && defined(S_IFCHR)
7867
# if S_ISBLK (S_IFCHR)
7868
You lose.
7869
# endif
7870 131 jeremybenn
#endif
7871
 
7872 225 jeremybenn
#if defined(S_ISLNK) && defined(S_IFREG)
7873
# if S_ISLNK (S_IFREG)
7874
You lose.
7875
# endif
7876 131 jeremybenn
#endif
7877
 
7878 225 jeremybenn
#if defined(S_ISSOCK) && defined(S_IFREG)
7879
# if S_ISSOCK (S_IFREG)
7880
You lose.
7881
# endif
7882 131 jeremybenn
#endif
7883
 
7884
_ACEOF
7885 225 jeremybenn
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7886
  $EGREP "You lose" >/dev/null 2>&1; then
7887
  ac_cv_header_stat_broken=yes
7888
else
7889 213 jeremybenn
  ac_cv_header_stat_broken=no
7890 131 jeremybenn
fi
7891 225 jeremybenn
rm -f conftest*
7892 131 jeremybenn
 
7893
fi
7894 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7895
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7896 131 jeremybenn
if test $ac_cv_header_stat_broken = yes; then
7897
 
7898
cat >>confdefs.h <<\_ACEOF
7899
#define STAT_MACROS_BROKEN 1
7900
_ACEOF
7901
 
7902
fi
7903
 
7904 225 jeremybenn
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7905
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7906 131 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
7907 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
7908 131 jeremybenn
else
7909
  cat >conftest.$ac_ext <<_ACEOF
7910
/* confdefs.h.  */
7911
_ACEOF
7912
cat confdefs.h >>conftest.$ac_ext
7913
cat >>conftest.$ac_ext <<_ACEOF
7914
/* end confdefs.h.  */
7915
#include 
7916
#include 
7917
#include 
7918
#include 
7919
 
7920
int
7921
main ()
7922
{
7923
 
7924
  ;
7925
  return 0;
7926
}
7927
_ACEOF
7928
rm -f conftest.$ac_objext
7929 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930
  (eval $ac_compile) 2>conftest.er1
7931 131 jeremybenn
  ac_status=$?
7932
  grep -v '^ *+' conftest.er1 >conftest.err
7933
  rm -f conftest.er1
7934
  cat conftest.err >&5
7935 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936
  (exit $ac_status); } &&
7937
         { ac_try='test -z "$ac_c_werror_flag"
7938
                         || test ! -s conftest.err'
7939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940
  (eval $ac_try) 2>&5
7941
  ac_status=$?
7942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943
  (exit $ac_status); }; } &&
7944
         { ac_try='test -s conftest.$ac_objext'
7945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946
  (eval $ac_try) 2>&5
7947
  ac_status=$?
7948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949
  (exit $ac_status); }; }; then
7950 131 jeremybenn
  ac_cv_header_stdc=yes
7951
else
7952 225 jeremybenn
  echo "$as_me: failed program was:" >&5
7953 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7954
 
7955 225 jeremybenn
ac_cv_header_stdc=no
7956 131 jeremybenn
fi
7957 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958 131 jeremybenn
 
7959
if test $ac_cv_header_stdc = yes; then
7960
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7961
  cat >conftest.$ac_ext <<_ACEOF
7962
/* confdefs.h.  */
7963
_ACEOF
7964
cat confdefs.h >>conftest.$ac_ext
7965
cat >>conftest.$ac_ext <<_ACEOF
7966
/* end confdefs.h.  */
7967
#include 
7968
 
7969
_ACEOF
7970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971
  $EGREP "memchr" >/dev/null 2>&1; then
7972
  :
7973
else
7974
  ac_cv_header_stdc=no
7975
fi
7976
rm -f conftest*
7977
 
7978
fi
7979
 
7980
if test $ac_cv_header_stdc = yes; then
7981
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7982
  cat >conftest.$ac_ext <<_ACEOF
7983
/* confdefs.h.  */
7984
_ACEOF
7985
cat confdefs.h >>conftest.$ac_ext
7986
cat >>conftest.$ac_ext <<_ACEOF
7987
/* end confdefs.h.  */
7988
#include 
7989
 
7990
_ACEOF
7991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7992
  $EGREP "free" >/dev/null 2>&1; then
7993
  :
7994
else
7995
  ac_cv_header_stdc=no
7996
fi
7997
rm -f conftest*
7998
 
7999
fi
8000
 
8001
if test $ac_cv_header_stdc = yes; then
8002
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003
  if test "$cross_compiling" = yes; then
8004
  :
8005
else
8006
  cat >conftest.$ac_ext <<_ACEOF
8007
/* confdefs.h.  */
8008
_ACEOF
8009
cat confdefs.h >>conftest.$ac_ext
8010
cat >>conftest.$ac_ext <<_ACEOF
8011
/* end confdefs.h.  */
8012
#include 
8013
#if ((' ' & 0x0FF) == 0x020)
8014
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8016
#else
8017
# define ISLOWER(c) \
8018
                   (('a' <= (c) && (c) <= 'i') \
8019
                     || ('j' <= (c) && (c) <= 'r') \
8020
                     || ('s' <= (c) && (c) <= 'z'))
8021
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8022
#endif
8023
 
8024
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8025
int
8026
main ()
8027
{
8028
  int i;
8029
  for (i = 0; i < 256; i++)
8030
    if (XOR (islower (i), ISLOWER (i))
8031
        || toupper (i) != TOUPPER (i))
8032 225 jeremybenn
      exit(2);
8033
  exit (0);
8034 131 jeremybenn
}
8035
_ACEOF
8036
rm -f conftest$ac_exeext
8037 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038
  (eval $ac_link) 2>&5
8039 131 jeremybenn
  ac_status=$?
8040 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8042 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043
  (eval $ac_try) 2>&5
8044 131 jeremybenn
  ac_status=$?
8045 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 131 jeremybenn
  (exit $ac_status); }; }; then
8047
  :
8048
else
8049 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
8050
echo "$as_me: failed program was:" >&5
8051 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8052
 
8053
( exit $ac_status )
8054
ac_cv_header_stdc=no
8055
fi
8056 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8057 131 jeremybenn
fi
8058
fi
8059
fi
8060 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8061
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8062 131 jeremybenn
if test $ac_cv_header_stdc = yes; then
8063
 
8064
cat >>confdefs.h <<\_ACEOF
8065
#define STDC_HEADERS 1
8066
_ACEOF
8067
 
8068
fi
8069
 
8070
 
8071
for ac_header in nlist.h
8072
do
8073 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8076
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078
  echo $ECHO_N "(cached) $ECHO_C" >&6
8079 131 jeremybenn
fi
8080 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082 131 jeremybenn
else
8083
  # Is the header compilable?
8084 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8086 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8087
/* confdefs.h.  */
8088
_ACEOF
8089
cat confdefs.h >>conftest.$ac_ext
8090
cat >>conftest.$ac_ext <<_ACEOF
8091
/* end confdefs.h.  */
8092
$ac_includes_default
8093
#include <$ac_header>
8094
_ACEOF
8095
rm -f conftest.$ac_objext
8096 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097
  (eval $ac_compile) 2>conftest.er1
8098 131 jeremybenn
  ac_status=$?
8099
  grep -v '^ *+' conftest.er1 >conftest.err
8100
  rm -f conftest.er1
8101
  cat conftest.err >&5
8102 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103
  (exit $ac_status); } &&
8104
         { ac_try='test -z "$ac_c_werror_flag"
8105
                         || test ! -s conftest.err'
8106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107
  (eval $ac_try) 2>&5
8108
  ac_status=$?
8109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110
  (exit $ac_status); }; } &&
8111
         { ac_try='test -s conftest.$ac_objext'
8112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113
  (eval $ac_try) 2>&5
8114
  ac_status=$?
8115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116
  (exit $ac_status); }; }; then
8117 131 jeremybenn
  ac_header_compiler=yes
8118
else
8119 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8120 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8121
 
8122 225 jeremybenn
ac_header_compiler=no
8123 131 jeremybenn
fi
8124 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8125
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8126
echo "${ECHO_T}$ac_header_compiler" >&6
8127 131 jeremybenn
 
8128
# Is the header present?
8129 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8130
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8131 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8132
/* confdefs.h.  */
8133
_ACEOF
8134
cat confdefs.h >>conftest.$ac_ext
8135
cat >>conftest.$ac_ext <<_ACEOF
8136
/* end confdefs.h.  */
8137
#include <$ac_header>
8138
_ACEOF
8139 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8140
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8141 131 jeremybenn
  ac_status=$?
8142
  grep -v '^ *+' conftest.er1 >conftest.err
8143
  rm -f conftest.er1
8144
  cat conftest.err >&5
8145 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146
  (exit $ac_status); } >/dev/null; then
8147
  if test -s conftest.err; then
8148
    ac_cpp_err=$ac_c_preproc_warn_flag
8149
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8150
  else
8151
    ac_cpp_err=
8152
  fi
8153
else
8154
  ac_cpp_err=yes
8155
fi
8156
if test -z "$ac_cpp_err"; then
8157 131 jeremybenn
  ac_header_preproc=yes
8158
else
8159 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8160 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8161
 
8162
  ac_header_preproc=no
8163
fi
8164
rm -f conftest.err conftest.$ac_ext
8165 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8166
echo "${ECHO_T}$ac_header_preproc" >&6
8167 131 jeremybenn
 
8168
# So?  What about this header?
8169
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8170
  yes:no: )
8171 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8172
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8173
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8174
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8175 131 jeremybenn
    ac_header_preproc=yes
8176
    ;;
8177
  no:yes:* )
8178 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8179
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8180
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8181
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8182
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8183
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8184
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8185
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8186
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8187
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8188
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8189
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8190
    (
8191
      cat <<\_ASBOX
8192
## ------------------------------------------ ##
8193
## Report this to the AC_PACKAGE_NAME lists.  ##
8194
## ------------------------------------------ ##
8195
_ASBOX
8196
    ) |
8197
      sed "s/^/$as_me: WARNING:     /" >&2
8198 131 jeremybenn
    ;;
8199
esac
8200 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
8201
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8202
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8203
  echo $ECHO_N "(cached) $ECHO_C" >&6
8204 131 jeremybenn
else
8205
  eval "$as_ac_Header=\$ac_header_preproc"
8206
fi
8207 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8208
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8209 131 jeremybenn
 
8210
fi
8211 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8213 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 131 jeremybenn
_ACEOF
8215
 
8216
fi
8217
 
8218
done
8219
 
8220
 
8221
for ac_header in link.h
8222
do
8223 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224
echo "$as_me:$LINENO: checking for $ac_header" >&5
8225
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8226
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227
  echo $ECHO_N "(cached) $ECHO_C" >&6
8228 131 jeremybenn
else
8229
  cat >conftest.$ac_ext <<_ACEOF
8230
/* confdefs.h.  */
8231
_ACEOF
8232
cat confdefs.h >>conftest.$ac_ext
8233
cat >>conftest.$ac_ext <<_ACEOF
8234
/* end confdefs.h.  */
8235
#if HAVE_SYS_TYPES_H
8236
# include 
8237
#endif
8238
#if HAVE_NLIST_H
8239
# include 
8240
#endif
8241
 
8242
 
8243
#include <$ac_header>
8244
_ACEOF
8245
rm -f conftest.$ac_objext
8246 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247
  (eval $ac_compile) 2>conftest.er1
8248 131 jeremybenn
  ac_status=$?
8249
  grep -v '^ *+' conftest.er1 >conftest.err
8250
  rm -f conftest.er1
8251
  cat conftest.err >&5
8252 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253
  (exit $ac_status); } &&
8254
         { ac_try='test -z "$ac_c_werror_flag"
8255
                         || test ! -s conftest.err'
8256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257
  (eval $ac_try) 2>&5
8258
  ac_status=$?
8259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
  (exit $ac_status); }; } &&
8261
         { ac_try='test -s conftest.$ac_objext'
8262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263
  (eval $ac_try) 2>&5
8264
  ac_status=$?
8265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
  (exit $ac_status); }; }; then
8267 131 jeremybenn
  eval "$as_ac_Header=yes"
8268
else
8269 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8270 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8271
 
8272 225 jeremybenn
eval "$as_ac_Header=no"
8273 131 jeremybenn
fi
8274 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 131 jeremybenn
fi
8276 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8277
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8278
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8279 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8280 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281 131 jeremybenn
_ACEOF
8282
 
8283
fi
8284
 
8285
done
8286
 
8287
 
8288
for ac_header in machine/reg.h
8289
do
8290 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8291
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8292
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8293
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8294
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8295
  echo $ECHO_N "(cached) $ECHO_C" >&6
8296 131 jeremybenn
fi
8297 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8298
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8299 131 jeremybenn
else
8300
  # Is the header compilable?
8301 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8302
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8303 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8304
/* confdefs.h.  */
8305
_ACEOF
8306
cat confdefs.h >>conftest.$ac_ext
8307
cat >>conftest.$ac_ext <<_ACEOF
8308
/* end confdefs.h.  */
8309
$ac_includes_default
8310
#include <$ac_header>
8311
_ACEOF
8312
rm -f conftest.$ac_objext
8313 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314
  (eval $ac_compile) 2>conftest.er1
8315 131 jeremybenn
  ac_status=$?
8316
  grep -v '^ *+' conftest.er1 >conftest.err
8317
  rm -f conftest.er1
8318
  cat conftest.err >&5
8319 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320
  (exit $ac_status); } &&
8321
         { ac_try='test -z "$ac_c_werror_flag"
8322
                         || test ! -s conftest.err'
8323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324
  (eval $ac_try) 2>&5
8325
  ac_status=$?
8326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327
  (exit $ac_status); }; } &&
8328
         { ac_try='test -s conftest.$ac_objext'
8329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330
  (eval $ac_try) 2>&5
8331
  ac_status=$?
8332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333
  (exit $ac_status); }; }; then
8334 131 jeremybenn
  ac_header_compiler=yes
8335
else
8336 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8337 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8338
 
8339 225 jeremybenn
ac_header_compiler=no
8340 131 jeremybenn
fi
8341 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8342
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8343
echo "${ECHO_T}$ac_header_compiler" >&6
8344 131 jeremybenn
 
8345
# Is the header present?
8346 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8347
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8348 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8349
/* confdefs.h.  */
8350
_ACEOF
8351
cat confdefs.h >>conftest.$ac_ext
8352
cat >>conftest.$ac_ext <<_ACEOF
8353
/* end confdefs.h.  */
8354
#include <$ac_header>
8355
_ACEOF
8356 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8357
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8358 131 jeremybenn
  ac_status=$?
8359
  grep -v '^ *+' conftest.er1 >conftest.err
8360
  rm -f conftest.er1
8361
  cat conftest.err >&5
8362 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
  (exit $ac_status); } >/dev/null; then
8364
  if test -s conftest.err; then
8365
    ac_cpp_err=$ac_c_preproc_warn_flag
8366
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8367
  else
8368
    ac_cpp_err=
8369
  fi
8370
else
8371
  ac_cpp_err=yes
8372
fi
8373
if test -z "$ac_cpp_err"; then
8374 131 jeremybenn
  ac_header_preproc=yes
8375
else
8376 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8377 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8378
 
8379
  ac_header_preproc=no
8380
fi
8381
rm -f conftest.err conftest.$ac_ext
8382 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8383
echo "${ECHO_T}$ac_header_preproc" >&6
8384 131 jeremybenn
 
8385
# So?  What about this header?
8386
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8387
  yes:no: )
8388 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8389
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8390
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8391
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8392 131 jeremybenn
    ac_header_preproc=yes
8393
    ;;
8394
  no:yes:* )
8395 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8396
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8397
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8398
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8399
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8400
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8401
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8402
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8403
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8404
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8405
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8406
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8407
    (
8408
      cat <<\_ASBOX
8409
## ------------------------------------------ ##
8410
## Report this to the AC_PACKAGE_NAME lists.  ##
8411
## ------------------------------------------ ##
8412
_ASBOX
8413
    ) |
8414
      sed "s/^/$as_me: WARNING:     /" >&2
8415 131 jeremybenn
    ;;
8416
esac
8417 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
8418
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8419
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420
  echo $ECHO_N "(cached) $ECHO_C" >&6
8421 131 jeremybenn
else
8422
  eval "$as_ac_Header=\$ac_header_preproc"
8423
fi
8424 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8426 131 jeremybenn
 
8427
fi
8428 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8429 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8430 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8431 131 jeremybenn
_ACEOF
8432
 
8433
fi
8434
 
8435
done
8436
 
8437
 
8438
 
8439
for ac_header in poll.h sys/poll.h
8440
do
8441 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8443
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8444
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446
  echo $ECHO_N "(cached) $ECHO_C" >&6
8447 131 jeremybenn
fi
8448 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8449
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8450 131 jeremybenn
else
8451
  # Is the header compilable?
8452 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8453
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8454 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8455
/* confdefs.h.  */
8456
_ACEOF
8457
cat confdefs.h >>conftest.$ac_ext
8458
cat >>conftest.$ac_ext <<_ACEOF
8459
/* end confdefs.h.  */
8460
$ac_includes_default
8461
#include <$ac_header>
8462
_ACEOF
8463
rm -f conftest.$ac_objext
8464 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465
  (eval $ac_compile) 2>conftest.er1
8466 131 jeremybenn
  ac_status=$?
8467
  grep -v '^ *+' conftest.er1 >conftest.err
8468
  rm -f conftest.er1
8469
  cat conftest.err >&5
8470 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471
  (exit $ac_status); } &&
8472
         { ac_try='test -z "$ac_c_werror_flag"
8473
                         || test ! -s conftest.err'
8474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475
  (eval $ac_try) 2>&5
8476
  ac_status=$?
8477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478
  (exit $ac_status); }; } &&
8479
         { ac_try='test -s conftest.$ac_objext'
8480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481
  (eval $ac_try) 2>&5
8482
  ac_status=$?
8483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
  (exit $ac_status); }; }; then
8485 131 jeremybenn
  ac_header_compiler=yes
8486
else
8487 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8488 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8489
 
8490 225 jeremybenn
ac_header_compiler=no
8491 131 jeremybenn
fi
8492 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494
echo "${ECHO_T}$ac_header_compiler" >&6
8495 131 jeremybenn
 
8496
# Is the header present?
8497 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8500
/* confdefs.h.  */
8501
_ACEOF
8502
cat confdefs.h >>conftest.$ac_ext
8503
cat >>conftest.$ac_ext <<_ACEOF
8504
/* end confdefs.h.  */
8505
#include <$ac_header>
8506
_ACEOF
8507 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8508
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8509 131 jeremybenn
  ac_status=$?
8510
  grep -v '^ *+' conftest.er1 >conftest.err
8511
  rm -f conftest.er1
8512
  cat conftest.err >&5
8513 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
  (exit $ac_status); } >/dev/null; then
8515
  if test -s conftest.err; then
8516
    ac_cpp_err=$ac_c_preproc_warn_flag
8517
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8518
  else
8519
    ac_cpp_err=
8520
  fi
8521
else
8522
  ac_cpp_err=yes
8523
fi
8524
if test -z "$ac_cpp_err"; then
8525 131 jeremybenn
  ac_header_preproc=yes
8526
else
8527 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8528 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8529
 
8530
  ac_header_preproc=no
8531
fi
8532
rm -f conftest.err conftest.$ac_ext
8533 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534
echo "${ECHO_T}$ac_header_preproc" >&6
8535 131 jeremybenn
 
8536
# So?  What about this header?
8537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8538
  yes:no: )
8539 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8542
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8543 131 jeremybenn
    ac_header_preproc=yes
8544
    ;;
8545
  no:yes:* )
8546 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8547
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8548
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8549
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8550
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8551
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8552
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8553
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8554
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8555
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8556
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8557
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8558
    (
8559
      cat <<\_ASBOX
8560
## ------------------------------------------ ##
8561
## Report this to the AC_PACKAGE_NAME lists.  ##
8562
## ------------------------------------------ ##
8563
_ASBOX
8564
    ) |
8565
      sed "s/^/$as_me: WARNING:     /" >&2
8566 131 jeremybenn
    ;;
8567
esac
8568 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
8569
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8570
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571
  echo $ECHO_N "(cached) $ECHO_C" >&6
8572 131 jeremybenn
else
8573
  eval "$as_ac_Header=\$ac_header_preproc"
8574
fi
8575 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8576
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8577 131 jeremybenn
 
8578
fi
8579 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8580 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8581 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8582 131 jeremybenn
_ACEOF
8583
 
8584
fi
8585
 
8586
done
8587
 
8588
 
8589
 
8590
 
8591
for ac_header in proc_service.h thread_db.h gnu/libc-version.h
8592
do
8593 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8596
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598
  echo $ECHO_N "(cached) $ECHO_C" >&6
8599 131 jeremybenn
fi
8600 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 131 jeremybenn
else
8603
  # Is the header compilable?
8604 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8605
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8606 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8607
/* confdefs.h.  */
8608
_ACEOF
8609
cat confdefs.h >>conftest.$ac_ext
8610
cat >>conftest.$ac_ext <<_ACEOF
8611
/* end confdefs.h.  */
8612
$ac_includes_default
8613
#include <$ac_header>
8614
_ACEOF
8615
rm -f conftest.$ac_objext
8616 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617
  (eval $ac_compile) 2>conftest.er1
8618 131 jeremybenn
  ac_status=$?
8619
  grep -v '^ *+' conftest.er1 >conftest.err
8620
  rm -f conftest.er1
8621
  cat conftest.err >&5
8622 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623
  (exit $ac_status); } &&
8624
         { ac_try='test -z "$ac_c_werror_flag"
8625
                         || test ! -s conftest.err'
8626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627
  (eval $ac_try) 2>&5
8628
  ac_status=$?
8629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630
  (exit $ac_status); }; } &&
8631
         { ac_try='test -s conftest.$ac_objext'
8632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633
  (eval $ac_try) 2>&5
8634
  ac_status=$?
8635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636
  (exit $ac_status); }; }; then
8637 131 jeremybenn
  ac_header_compiler=yes
8638
else
8639 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8640 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8641
 
8642 225 jeremybenn
ac_header_compiler=no
8643 131 jeremybenn
fi
8644 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8646
echo "${ECHO_T}$ac_header_compiler" >&6
8647 131 jeremybenn
 
8648
# Is the header present?
8649 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8650
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8651 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8652
/* confdefs.h.  */
8653
_ACEOF
8654
cat confdefs.h >>conftest.$ac_ext
8655
cat >>conftest.$ac_ext <<_ACEOF
8656
/* end confdefs.h.  */
8657
#include <$ac_header>
8658
_ACEOF
8659 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8660
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8661 131 jeremybenn
  ac_status=$?
8662
  grep -v '^ *+' conftest.er1 >conftest.err
8663
  rm -f conftest.er1
8664
  cat conftest.err >&5
8665 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666
  (exit $ac_status); } >/dev/null; then
8667
  if test -s conftest.err; then
8668
    ac_cpp_err=$ac_c_preproc_warn_flag
8669
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8670
  else
8671
    ac_cpp_err=
8672
  fi
8673
else
8674
  ac_cpp_err=yes
8675
fi
8676
if test -z "$ac_cpp_err"; then
8677 131 jeremybenn
  ac_header_preproc=yes
8678
else
8679 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8680 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8681
 
8682
  ac_header_preproc=no
8683
fi
8684
rm -f conftest.err conftest.$ac_ext
8685 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686
echo "${ECHO_T}$ac_header_preproc" >&6
8687 131 jeremybenn
 
8688
# So?  What about this header?
8689
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8690
  yes:no: )
8691 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8692
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8694
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8695 131 jeremybenn
    ac_header_preproc=yes
8696
    ;;
8697
  no:yes:* )
8698 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8699
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8700
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8701
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8702
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8703
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8704
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8705
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8706
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8707
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8708
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8709
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8710
    (
8711
      cat <<\_ASBOX
8712
## ------------------------------------------ ##
8713
## Report this to the AC_PACKAGE_NAME lists.  ##
8714
## ------------------------------------------ ##
8715
_ASBOX
8716
    ) |
8717
      sed "s/^/$as_me: WARNING:     /" >&2
8718 131 jeremybenn
    ;;
8719
esac
8720 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
8721
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8722
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723
  echo $ECHO_N "(cached) $ECHO_C" >&6
8724 131 jeremybenn
else
8725
  eval "$as_ac_Header=\$ac_header_preproc"
8726
fi
8727 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8728
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8729 131 jeremybenn
 
8730
fi
8731 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8732 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8733 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8734 131 jeremybenn
_ACEOF
8735
 
8736
fi
8737
 
8738
done
8739
 
8740
 
8741
for ac_header in signal.h
8742
do
8743 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8744
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8746
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748
  echo $ECHO_N "(cached) $ECHO_C" >&6
8749 131 jeremybenn
fi
8750 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752 131 jeremybenn
else
8753
  # Is the header compilable?
8754 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8755
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8756 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8757
/* confdefs.h.  */
8758
_ACEOF
8759
cat confdefs.h >>conftest.$ac_ext
8760
cat >>conftest.$ac_ext <<_ACEOF
8761
/* end confdefs.h.  */
8762
$ac_includes_default
8763
#include <$ac_header>
8764
_ACEOF
8765
rm -f conftest.$ac_objext
8766 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767
  (eval $ac_compile) 2>conftest.er1
8768 131 jeremybenn
  ac_status=$?
8769
  grep -v '^ *+' conftest.er1 >conftest.err
8770
  rm -f conftest.er1
8771
  cat conftest.err >&5
8772 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773
  (exit $ac_status); } &&
8774
         { ac_try='test -z "$ac_c_werror_flag"
8775
                         || test ! -s conftest.err'
8776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777
  (eval $ac_try) 2>&5
8778
  ac_status=$?
8779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780
  (exit $ac_status); }; } &&
8781
         { ac_try='test -s conftest.$ac_objext'
8782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783
  (eval $ac_try) 2>&5
8784
  ac_status=$?
8785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786
  (exit $ac_status); }; }; then
8787 131 jeremybenn
  ac_header_compiler=yes
8788
else
8789 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8790 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8791
 
8792 225 jeremybenn
ac_header_compiler=no
8793 131 jeremybenn
fi
8794 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796
echo "${ECHO_T}$ac_header_compiler" >&6
8797 131 jeremybenn
 
8798
# Is the header present?
8799 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8802
/* confdefs.h.  */
8803
_ACEOF
8804
cat confdefs.h >>conftest.$ac_ext
8805
cat >>conftest.$ac_ext <<_ACEOF
8806
/* end confdefs.h.  */
8807
#include <$ac_header>
8808
_ACEOF
8809 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8810
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8811 131 jeremybenn
  ac_status=$?
8812
  grep -v '^ *+' conftest.er1 >conftest.err
8813
  rm -f conftest.er1
8814
  cat conftest.err >&5
8815 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
  (exit $ac_status); } >/dev/null; then
8817
  if test -s conftest.err; then
8818
    ac_cpp_err=$ac_c_preproc_warn_flag
8819
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8820
  else
8821
    ac_cpp_err=
8822
  fi
8823
else
8824
  ac_cpp_err=yes
8825
fi
8826
if test -z "$ac_cpp_err"; then
8827 131 jeremybenn
  ac_header_preproc=yes
8828
else
8829 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8830 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8831
 
8832
  ac_header_preproc=no
8833
fi
8834
rm -f conftest.err conftest.$ac_ext
8835 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836
echo "${ECHO_T}$ac_header_preproc" >&6
8837 131 jeremybenn
 
8838
# So?  What about this header?
8839
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840
  yes:no: )
8841 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 131 jeremybenn
    ac_header_preproc=yes
8846
    ;;
8847
  no:yes:* )
8848 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8851
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8852
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8855
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8856
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8860
    (
8861
      cat <<\_ASBOX
8862
## ------------------------------------------ ##
8863
## Report this to the AC_PACKAGE_NAME lists.  ##
8864
## ------------------------------------------ ##
8865
_ASBOX
8866
    ) |
8867
      sed "s/^/$as_me: WARNING:     /" >&2
8868 131 jeremybenn
    ;;
8869
esac
8870 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
8871
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873
  echo $ECHO_N "(cached) $ECHO_C" >&6
8874 131 jeremybenn
else
8875
  eval "$as_ac_Header=\$ac_header_preproc"
8876
fi
8877 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8879 131 jeremybenn
 
8880
fi
8881 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8883 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 131 jeremybenn
_ACEOF
8885
 
8886
fi
8887
 
8888
done
8889
 
8890
 
8891
for ac_header in stddef.h
8892
do
8893 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8896
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8897
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8898
  echo $ECHO_N "(cached) $ECHO_C" >&6
8899 131 jeremybenn
fi
8900 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902 131 jeremybenn
else
8903
  # Is the header compilable?
8904 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8905
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8906 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8907
/* confdefs.h.  */
8908
_ACEOF
8909
cat confdefs.h >>conftest.$ac_ext
8910
cat >>conftest.$ac_ext <<_ACEOF
8911
/* end confdefs.h.  */
8912
$ac_includes_default
8913
#include <$ac_header>
8914
_ACEOF
8915
rm -f conftest.$ac_objext
8916 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917
  (eval $ac_compile) 2>conftest.er1
8918 131 jeremybenn
  ac_status=$?
8919
  grep -v '^ *+' conftest.er1 >conftest.err
8920
  rm -f conftest.er1
8921
  cat conftest.err >&5
8922 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
  (exit $ac_status); } &&
8924
         { ac_try='test -z "$ac_c_werror_flag"
8925
                         || test ! -s conftest.err'
8926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927
  (eval $ac_try) 2>&5
8928
  ac_status=$?
8929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930
  (exit $ac_status); }; } &&
8931
         { ac_try='test -s conftest.$ac_objext'
8932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933
  (eval $ac_try) 2>&5
8934
  ac_status=$?
8935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
  (exit $ac_status); }; }; then
8937 131 jeremybenn
  ac_header_compiler=yes
8938
else
8939 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8940 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8941
 
8942 225 jeremybenn
ac_header_compiler=no
8943 131 jeremybenn
fi
8944 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946
echo "${ECHO_T}$ac_header_compiler" >&6
8947 131 jeremybenn
 
8948
# Is the header present?
8949 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8951 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8952
/* confdefs.h.  */
8953
_ACEOF
8954
cat confdefs.h >>conftest.$ac_ext
8955
cat >>conftest.$ac_ext <<_ACEOF
8956
/* end confdefs.h.  */
8957
#include <$ac_header>
8958
_ACEOF
8959 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8960
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8961 131 jeremybenn
  ac_status=$?
8962
  grep -v '^ *+' conftest.er1 >conftest.err
8963
  rm -f conftest.er1
8964
  cat conftest.err >&5
8965 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966
  (exit $ac_status); } >/dev/null; then
8967
  if test -s conftest.err; then
8968
    ac_cpp_err=$ac_c_preproc_warn_flag
8969
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8970
  else
8971
    ac_cpp_err=
8972
  fi
8973
else
8974
  ac_cpp_err=yes
8975
fi
8976
if test -z "$ac_cpp_err"; then
8977 131 jeremybenn
  ac_header_preproc=yes
8978
else
8979 225 jeremybenn
  echo "$as_me: failed program was:" >&5
8980 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8981
 
8982
  ac_header_preproc=no
8983
fi
8984
rm -f conftest.err conftest.$ac_ext
8985 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986
echo "${ECHO_T}$ac_header_preproc" >&6
8987 131 jeremybenn
 
8988
# So?  What about this header?
8989
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8990
  yes:no: )
8991 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8994
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8995 131 jeremybenn
    ac_header_preproc=yes
8996
    ;;
8997
  no:yes:* )
8998 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8999
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9000
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9001
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9002
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9003
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9004
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9005
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9006
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9007
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9008
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9009
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9010
    (
9011
      cat <<\_ASBOX
9012
## ------------------------------------------ ##
9013
## Report this to the AC_PACKAGE_NAME lists.  ##
9014
## ------------------------------------------ ##
9015
_ASBOX
9016
    ) |
9017
      sed "s/^/$as_me: WARNING:     /" >&2
9018 131 jeremybenn
    ;;
9019
esac
9020 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9021
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023
  echo $ECHO_N "(cached) $ECHO_C" >&6
9024 131 jeremybenn
else
9025
  eval "$as_ac_Header=\$ac_header_preproc"
9026
fi
9027 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9029 131 jeremybenn
 
9030
fi
9031 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9032 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9033 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9034 131 jeremybenn
_ACEOF
9035
 
9036
fi
9037
 
9038
done
9039
 
9040
 
9041
for ac_header in stdlib.h
9042
do
9043 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9044
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9046
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048
  echo $ECHO_N "(cached) $ECHO_C" >&6
9049 131 jeremybenn
fi
9050 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052 131 jeremybenn
else
9053
  # Is the header compilable?
9054 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9055
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9056 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9057
/* confdefs.h.  */
9058
_ACEOF
9059
cat confdefs.h >>conftest.$ac_ext
9060
cat >>conftest.$ac_ext <<_ACEOF
9061
/* end confdefs.h.  */
9062
$ac_includes_default
9063
#include <$ac_header>
9064
_ACEOF
9065
rm -f conftest.$ac_objext
9066 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067
  (eval $ac_compile) 2>conftest.er1
9068 131 jeremybenn
  ac_status=$?
9069
  grep -v '^ *+' conftest.er1 >conftest.err
9070
  rm -f conftest.er1
9071
  cat conftest.err >&5
9072 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
  (exit $ac_status); } &&
9074
         { ac_try='test -z "$ac_c_werror_flag"
9075
                         || test ! -s conftest.err'
9076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077
  (eval $ac_try) 2>&5
9078
  ac_status=$?
9079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080
  (exit $ac_status); }; } &&
9081
         { ac_try='test -s conftest.$ac_objext'
9082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083
  (eval $ac_try) 2>&5
9084
  ac_status=$?
9085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086
  (exit $ac_status); }; }; then
9087 131 jeremybenn
  ac_header_compiler=yes
9088
else
9089 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9090 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9091
 
9092 225 jeremybenn
ac_header_compiler=no
9093 131 jeremybenn
fi
9094 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9096
echo "${ECHO_T}$ac_header_compiler" >&6
9097 131 jeremybenn
 
9098
# Is the header present?
9099 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9100
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9101 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9102
/* confdefs.h.  */
9103
_ACEOF
9104
cat confdefs.h >>conftest.$ac_ext
9105
cat >>conftest.$ac_ext <<_ACEOF
9106
/* end confdefs.h.  */
9107
#include <$ac_header>
9108
_ACEOF
9109 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9110
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9111 131 jeremybenn
  ac_status=$?
9112
  grep -v '^ *+' conftest.er1 >conftest.err
9113
  rm -f conftest.er1
9114
  cat conftest.err >&5
9115 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116
  (exit $ac_status); } >/dev/null; then
9117
  if test -s conftest.err; then
9118
    ac_cpp_err=$ac_c_preproc_warn_flag
9119
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120
  else
9121
    ac_cpp_err=
9122
  fi
9123
else
9124
  ac_cpp_err=yes
9125
fi
9126
if test -z "$ac_cpp_err"; then
9127 131 jeremybenn
  ac_header_preproc=yes
9128
else
9129 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9130 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9131
 
9132
  ac_header_preproc=no
9133
fi
9134
rm -f conftest.err conftest.$ac_ext
9135 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9136
echo "${ECHO_T}$ac_header_preproc" >&6
9137 131 jeremybenn
 
9138
# So?  What about this header?
9139
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9140
  yes:no: )
9141 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9142
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9143
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9144
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9145 131 jeremybenn
    ac_header_preproc=yes
9146
    ;;
9147
  no:yes:* )
9148 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9149
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9150
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9151
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9152
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9153
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9154
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9155
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9156
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9157
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9158
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9159
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9160
    (
9161
      cat <<\_ASBOX
9162
## ------------------------------------------ ##
9163
## Report this to the AC_PACKAGE_NAME lists.  ##
9164
## ------------------------------------------ ##
9165
_ASBOX
9166
    ) |
9167
      sed "s/^/$as_me: WARNING:     /" >&2
9168 131 jeremybenn
    ;;
9169
esac
9170 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9171
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173
  echo $ECHO_N "(cached) $ECHO_C" >&6
9174 131 jeremybenn
else
9175
  eval "$as_ac_Header=\$ac_header_preproc"
9176
fi
9177 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 131 jeremybenn
 
9180
fi
9181 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9183 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 131 jeremybenn
_ACEOF
9185
 
9186
fi
9187
 
9188
done
9189
 
9190
 
9191
for ac_header in stdint.h
9192
do
9193 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9196
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198
  echo $ECHO_N "(cached) $ECHO_C" >&6
9199 131 jeremybenn
fi
9200 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9201
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202 131 jeremybenn
else
9203
  # Is the header compilable?
9204 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9205
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9206 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9207
/* confdefs.h.  */
9208
_ACEOF
9209
cat confdefs.h >>conftest.$ac_ext
9210
cat >>conftest.$ac_ext <<_ACEOF
9211
/* end confdefs.h.  */
9212
$ac_includes_default
9213
#include <$ac_header>
9214
_ACEOF
9215
rm -f conftest.$ac_objext
9216 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217
  (eval $ac_compile) 2>conftest.er1
9218 131 jeremybenn
  ac_status=$?
9219
  grep -v '^ *+' conftest.er1 >conftest.err
9220
  rm -f conftest.er1
9221
  cat conftest.err >&5
9222 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223
  (exit $ac_status); } &&
9224
         { ac_try='test -z "$ac_c_werror_flag"
9225
                         || test ! -s conftest.err'
9226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227
  (eval $ac_try) 2>&5
9228
  ac_status=$?
9229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230
  (exit $ac_status); }; } &&
9231
         { ac_try='test -s conftest.$ac_objext'
9232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233
  (eval $ac_try) 2>&5
9234
  ac_status=$?
9235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236
  (exit $ac_status); }; }; then
9237 131 jeremybenn
  ac_header_compiler=yes
9238
else
9239 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9240 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9241
 
9242 225 jeremybenn
ac_header_compiler=no
9243 131 jeremybenn
fi
9244 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246
echo "${ECHO_T}$ac_header_compiler" >&6
9247 131 jeremybenn
 
9248
# Is the header present?
9249 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9251 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9252
/* confdefs.h.  */
9253
_ACEOF
9254
cat confdefs.h >>conftest.$ac_ext
9255
cat >>conftest.$ac_ext <<_ACEOF
9256
/* end confdefs.h.  */
9257
#include <$ac_header>
9258
_ACEOF
9259 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9260
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9261 131 jeremybenn
  ac_status=$?
9262
  grep -v '^ *+' conftest.er1 >conftest.err
9263
  rm -f conftest.er1
9264
  cat conftest.err >&5
9265 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266
  (exit $ac_status); } >/dev/null; then
9267
  if test -s conftest.err; then
9268
    ac_cpp_err=$ac_c_preproc_warn_flag
9269
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9270
  else
9271
    ac_cpp_err=
9272
  fi
9273
else
9274
  ac_cpp_err=yes
9275
fi
9276
if test -z "$ac_cpp_err"; then
9277 131 jeremybenn
  ac_header_preproc=yes
9278
else
9279 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9280 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9281
 
9282
  ac_header_preproc=no
9283
fi
9284
rm -f conftest.err conftest.$ac_ext
9285 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286
echo "${ECHO_T}$ac_header_preproc" >&6
9287 131 jeremybenn
 
9288
# So?  What about this header?
9289
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9290
  yes:no: )
9291 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9294
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9295 131 jeremybenn
    ac_header_preproc=yes
9296
    ;;
9297
  no:yes:* )
9298 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9299
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9300
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9301
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9302
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9303
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9304
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9305
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9306
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9308
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9309
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9310
    (
9311
      cat <<\_ASBOX
9312
## ------------------------------------------ ##
9313
## Report this to the AC_PACKAGE_NAME lists.  ##
9314
## ------------------------------------------ ##
9315
_ASBOX
9316
    ) |
9317
      sed "s/^/$as_me: WARNING:     /" >&2
9318 131 jeremybenn
    ;;
9319
esac
9320 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9321
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9322
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9323
  echo $ECHO_N "(cached) $ECHO_C" >&6
9324 131 jeremybenn
else
9325
  eval "$as_ac_Header=\$ac_header_preproc"
9326
fi
9327 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9328
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9329 131 jeremybenn
 
9330
fi
9331 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9332 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9333 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 131 jeremybenn
_ACEOF
9335
 
9336
fi
9337
 
9338
done
9339
 
9340
 
9341
 
9342
 
9343
for ac_header in string.h memory.h strings.h
9344
do
9345 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9348
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9349
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350
  echo $ECHO_N "(cached) $ECHO_C" >&6
9351 131 jeremybenn
fi
9352 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9354 131 jeremybenn
else
9355
  # Is the header compilable?
9356 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9357
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9358 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9359
/* confdefs.h.  */
9360
_ACEOF
9361
cat confdefs.h >>conftest.$ac_ext
9362
cat >>conftest.$ac_ext <<_ACEOF
9363
/* end confdefs.h.  */
9364
$ac_includes_default
9365
#include <$ac_header>
9366
_ACEOF
9367
rm -f conftest.$ac_objext
9368 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369
  (eval $ac_compile) 2>conftest.er1
9370 131 jeremybenn
  ac_status=$?
9371
  grep -v '^ *+' conftest.er1 >conftest.err
9372
  rm -f conftest.er1
9373
  cat conftest.err >&5
9374 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375
  (exit $ac_status); } &&
9376
         { ac_try='test -z "$ac_c_werror_flag"
9377
                         || test ! -s conftest.err'
9378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379
  (eval $ac_try) 2>&5
9380
  ac_status=$?
9381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
  (exit $ac_status); }; } &&
9383
         { ac_try='test -s conftest.$ac_objext'
9384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385
  (eval $ac_try) 2>&5
9386
  ac_status=$?
9387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388
  (exit $ac_status); }; }; then
9389 131 jeremybenn
  ac_header_compiler=yes
9390
else
9391 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9392 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9393
 
9394 225 jeremybenn
ac_header_compiler=no
9395 131 jeremybenn
fi
9396 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9397
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398
echo "${ECHO_T}$ac_header_compiler" >&6
9399 131 jeremybenn
 
9400
# Is the header present?
9401 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9402
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9403 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9404
/* confdefs.h.  */
9405
_ACEOF
9406
cat confdefs.h >>conftest.$ac_ext
9407
cat >>conftest.$ac_ext <<_ACEOF
9408
/* end confdefs.h.  */
9409
#include <$ac_header>
9410
_ACEOF
9411 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9412
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9413 131 jeremybenn
  ac_status=$?
9414
  grep -v '^ *+' conftest.er1 >conftest.err
9415
  rm -f conftest.er1
9416
  cat conftest.err >&5
9417 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418
  (exit $ac_status); } >/dev/null; then
9419
  if test -s conftest.err; then
9420
    ac_cpp_err=$ac_c_preproc_warn_flag
9421
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422
  else
9423
    ac_cpp_err=
9424
  fi
9425
else
9426
  ac_cpp_err=yes
9427
fi
9428
if test -z "$ac_cpp_err"; then
9429 131 jeremybenn
  ac_header_preproc=yes
9430
else
9431 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9432 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9433
 
9434
  ac_header_preproc=no
9435
fi
9436
rm -f conftest.err conftest.$ac_ext
9437 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9438
echo "${ECHO_T}$ac_header_preproc" >&6
9439 131 jeremybenn
 
9440
# So?  What about this header?
9441
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9442
  yes:no: )
9443 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9444
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9445
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9446
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9447 131 jeremybenn
    ac_header_preproc=yes
9448
    ;;
9449
  no:yes:* )
9450 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9451
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9452
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9453
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9454
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9455
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9456
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9457
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9458
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9459
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9460
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9461
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9462
    (
9463
      cat <<\_ASBOX
9464
## ------------------------------------------ ##
9465
## Report this to the AC_PACKAGE_NAME lists.  ##
9466
## ------------------------------------------ ##
9467
_ASBOX
9468
    ) |
9469
      sed "s/^/$as_me: WARNING:     /" >&2
9470 131 jeremybenn
    ;;
9471
esac
9472 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9473
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9474
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475
  echo $ECHO_N "(cached) $ECHO_C" >&6
9476 131 jeremybenn
else
9477
  eval "$as_ac_Header=\$ac_header_preproc"
9478
fi
9479 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9480
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9481 131 jeremybenn
 
9482
fi
9483 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9485 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486 131 jeremybenn
_ACEOF
9487
 
9488
fi
9489
 
9490
done
9491
 
9492
 
9493
for ac_header in sys/fault.h
9494
do
9495 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9496
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9498
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500
  echo $ECHO_N "(cached) $ECHO_C" >&6
9501 131 jeremybenn
fi
9502 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9504 131 jeremybenn
else
9505
  # Is the header compilable?
9506 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9508 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9509
/* confdefs.h.  */
9510
_ACEOF
9511
cat confdefs.h >>conftest.$ac_ext
9512
cat >>conftest.$ac_ext <<_ACEOF
9513
/* end confdefs.h.  */
9514
$ac_includes_default
9515
#include <$ac_header>
9516
_ACEOF
9517
rm -f conftest.$ac_objext
9518 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9519
  (eval $ac_compile) 2>conftest.er1
9520 131 jeremybenn
  ac_status=$?
9521
  grep -v '^ *+' conftest.er1 >conftest.err
9522
  rm -f conftest.er1
9523
  cat conftest.err >&5
9524 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525
  (exit $ac_status); } &&
9526
         { ac_try='test -z "$ac_c_werror_flag"
9527
                         || test ! -s conftest.err'
9528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529
  (eval $ac_try) 2>&5
9530
  ac_status=$?
9531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532
  (exit $ac_status); }; } &&
9533
         { ac_try='test -s conftest.$ac_objext'
9534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535
  (eval $ac_try) 2>&5
9536
  ac_status=$?
9537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538
  (exit $ac_status); }; }; then
9539 131 jeremybenn
  ac_header_compiler=yes
9540
else
9541 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9542 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9543
 
9544 225 jeremybenn
ac_header_compiler=no
9545 131 jeremybenn
fi
9546 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9548
echo "${ECHO_T}$ac_header_compiler" >&6
9549 131 jeremybenn
 
9550
# Is the header present?
9551 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9552
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9553 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9554
/* confdefs.h.  */
9555
_ACEOF
9556
cat confdefs.h >>conftest.$ac_ext
9557
cat >>conftest.$ac_ext <<_ACEOF
9558
/* end confdefs.h.  */
9559
#include <$ac_header>
9560
_ACEOF
9561 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9562
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9563 131 jeremybenn
  ac_status=$?
9564
  grep -v '^ *+' conftest.er1 >conftest.err
9565
  rm -f conftest.er1
9566
  cat conftest.err >&5
9567 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568
  (exit $ac_status); } >/dev/null; then
9569
  if test -s conftest.err; then
9570
    ac_cpp_err=$ac_c_preproc_warn_flag
9571
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9572
  else
9573
    ac_cpp_err=
9574
  fi
9575
else
9576
  ac_cpp_err=yes
9577
fi
9578
if test -z "$ac_cpp_err"; then
9579 131 jeremybenn
  ac_header_preproc=yes
9580
else
9581 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9582 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9583
 
9584
  ac_header_preproc=no
9585
fi
9586
rm -f conftest.err conftest.$ac_ext
9587 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9588
echo "${ECHO_T}$ac_header_preproc" >&6
9589 131 jeremybenn
 
9590
# So?  What about this header?
9591
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9592
  yes:no: )
9593 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9594
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9595
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9596
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9597 131 jeremybenn
    ac_header_preproc=yes
9598
    ;;
9599
  no:yes:* )
9600 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9601
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9602
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9603
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9604
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9605
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9606
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9607
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9608
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9611
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9612
    (
9613
      cat <<\_ASBOX
9614
## ------------------------------------------ ##
9615
## Report this to the AC_PACKAGE_NAME lists.  ##
9616
## ------------------------------------------ ##
9617
_ASBOX
9618
    ) |
9619
      sed "s/^/$as_me: WARNING:     /" >&2
9620 131 jeremybenn
    ;;
9621
esac
9622 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9623
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625
  echo $ECHO_N "(cached) $ECHO_C" >&6
9626 131 jeremybenn
else
9627
  eval "$as_ac_Header=\$ac_header_preproc"
9628
fi
9629 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9630
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9631 131 jeremybenn
 
9632
fi
9633 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9634 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9635 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9636 131 jeremybenn
_ACEOF
9637
 
9638
fi
9639
 
9640
done
9641
 
9642
 
9643
for ac_header in sys/file.h
9644
do
9645 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9648
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650
  echo $ECHO_N "(cached) $ECHO_C" >&6
9651 131 jeremybenn
fi
9652 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9653
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9654 131 jeremybenn
else
9655
  # Is the header compilable?
9656 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9658 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9659
/* confdefs.h.  */
9660
_ACEOF
9661
cat confdefs.h >>conftest.$ac_ext
9662
cat >>conftest.$ac_ext <<_ACEOF
9663
/* end confdefs.h.  */
9664
$ac_includes_default
9665
#include <$ac_header>
9666
_ACEOF
9667
rm -f conftest.$ac_objext
9668 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669
  (eval $ac_compile) 2>conftest.er1
9670 131 jeremybenn
  ac_status=$?
9671
  grep -v '^ *+' conftest.er1 >conftest.err
9672
  rm -f conftest.er1
9673
  cat conftest.err >&5
9674 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
  (exit $ac_status); } &&
9676
         { ac_try='test -z "$ac_c_werror_flag"
9677
                         || test ! -s conftest.err'
9678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679
  (eval $ac_try) 2>&5
9680
  ac_status=$?
9681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
  (exit $ac_status); }; } &&
9683
         { ac_try='test -s conftest.$ac_objext'
9684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685
  (eval $ac_try) 2>&5
9686
  ac_status=$?
9687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688
  (exit $ac_status); }; }; then
9689 131 jeremybenn
  ac_header_compiler=yes
9690
else
9691 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9692 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9693
 
9694 225 jeremybenn
ac_header_compiler=no
9695 131 jeremybenn
fi
9696 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698
echo "${ECHO_T}$ac_header_compiler" >&6
9699 131 jeremybenn
 
9700
# Is the header present?
9701 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9702
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9703 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9704
/* confdefs.h.  */
9705
_ACEOF
9706
cat confdefs.h >>conftest.$ac_ext
9707
cat >>conftest.$ac_ext <<_ACEOF
9708
/* end confdefs.h.  */
9709
#include <$ac_header>
9710
_ACEOF
9711 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9712
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9713 131 jeremybenn
  ac_status=$?
9714
  grep -v '^ *+' conftest.er1 >conftest.err
9715
  rm -f conftest.er1
9716
  cat conftest.err >&5
9717 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718
  (exit $ac_status); } >/dev/null; then
9719
  if test -s conftest.err; then
9720
    ac_cpp_err=$ac_c_preproc_warn_flag
9721
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9722
  else
9723
    ac_cpp_err=
9724
  fi
9725
else
9726
  ac_cpp_err=yes
9727
fi
9728
if test -z "$ac_cpp_err"; then
9729 131 jeremybenn
  ac_header_preproc=yes
9730
else
9731 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9732 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9733
 
9734
  ac_header_preproc=no
9735
fi
9736
rm -f conftest.err conftest.$ac_ext
9737 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738
echo "${ECHO_T}$ac_header_preproc" >&6
9739 131 jeremybenn
 
9740
# So?  What about this header?
9741
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9742
  yes:no: )
9743 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 131 jeremybenn
    ac_header_preproc=yes
9748
    ;;
9749
  no:yes:* )
9750 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9753
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9754
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9757
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9758
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9762
    (
9763
      cat <<\_ASBOX
9764
## ------------------------------------------ ##
9765
## Report this to the AC_PACKAGE_NAME lists.  ##
9766
## ------------------------------------------ ##
9767
_ASBOX
9768
    ) |
9769
      sed "s/^/$as_me: WARNING:     /" >&2
9770 131 jeremybenn
    ;;
9771
esac
9772 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9773
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9774
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775
  echo $ECHO_N "(cached) $ECHO_C" >&6
9776 131 jeremybenn
else
9777
  eval "$as_ac_Header=\$ac_header_preproc"
9778
fi
9779 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9781 131 jeremybenn
 
9782
fi
9783 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9784 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9785 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9786 131 jeremybenn
_ACEOF
9787
 
9788
fi
9789
 
9790
done
9791
 
9792
 
9793
for ac_header in sys/filio.h
9794
do
9795 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9798
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800
  echo $ECHO_N "(cached) $ECHO_C" >&6
9801 131 jeremybenn
fi
9802 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 131 jeremybenn
else
9805
  # Is the header compilable?
9806 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9807
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9808 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9809
/* confdefs.h.  */
9810
_ACEOF
9811
cat confdefs.h >>conftest.$ac_ext
9812
cat >>conftest.$ac_ext <<_ACEOF
9813
/* end confdefs.h.  */
9814
$ac_includes_default
9815
#include <$ac_header>
9816
_ACEOF
9817
rm -f conftest.$ac_objext
9818 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819
  (eval $ac_compile) 2>conftest.er1
9820 131 jeremybenn
  ac_status=$?
9821
  grep -v '^ *+' conftest.er1 >conftest.err
9822
  rm -f conftest.er1
9823
  cat conftest.err >&5
9824 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825
  (exit $ac_status); } &&
9826
         { ac_try='test -z "$ac_c_werror_flag"
9827
                         || test ! -s conftest.err'
9828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829
  (eval $ac_try) 2>&5
9830
  ac_status=$?
9831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832
  (exit $ac_status); }; } &&
9833
         { ac_try='test -s conftest.$ac_objext'
9834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835
  (eval $ac_try) 2>&5
9836
  ac_status=$?
9837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838
  (exit $ac_status); }; }; then
9839 131 jeremybenn
  ac_header_compiler=yes
9840
else
9841 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9842 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9843
 
9844 225 jeremybenn
ac_header_compiler=no
9845 131 jeremybenn
fi
9846 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848
echo "${ECHO_T}$ac_header_compiler" >&6
9849 131 jeremybenn
 
9850
# Is the header present?
9851 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9854
/* confdefs.h.  */
9855
_ACEOF
9856
cat confdefs.h >>conftest.$ac_ext
9857
cat >>conftest.$ac_ext <<_ACEOF
9858
/* end confdefs.h.  */
9859
#include <$ac_header>
9860
_ACEOF
9861 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9862
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9863 131 jeremybenn
  ac_status=$?
9864
  grep -v '^ *+' conftest.er1 >conftest.err
9865
  rm -f conftest.er1
9866
  cat conftest.err >&5
9867 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868
  (exit $ac_status); } >/dev/null; then
9869
  if test -s conftest.err; then
9870
    ac_cpp_err=$ac_c_preproc_warn_flag
9871
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9872
  else
9873
    ac_cpp_err=
9874
  fi
9875
else
9876
  ac_cpp_err=yes
9877
fi
9878
if test -z "$ac_cpp_err"; then
9879 131 jeremybenn
  ac_header_preproc=yes
9880
else
9881 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9882 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9883
 
9884
  ac_header_preproc=no
9885
fi
9886
rm -f conftest.err conftest.$ac_ext
9887 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9888
echo "${ECHO_T}$ac_header_preproc" >&6
9889 131 jeremybenn
 
9890
# So?  What about this header?
9891
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9892
  yes:no: )
9893 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9894
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9895
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9896
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9897 131 jeremybenn
    ac_header_preproc=yes
9898
    ;;
9899
  no:yes:* )
9900 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9901
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9902
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9903
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9904
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9905
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9906
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9907
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9908
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9909
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9910
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9911
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9912
    (
9913
      cat <<\_ASBOX
9914
## ------------------------------------------ ##
9915
## Report this to the AC_PACKAGE_NAME lists.  ##
9916
## ------------------------------------------ ##
9917
_ASBOX
9918
    ) |
9919
      sed "s/^/$as_me: WARNING:     /" >&2
9920 131 jeremybenn
    ;;
9921
esac
9922 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
9923
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925
  echo $ECHO_N "(cached) $ECHO_C" >&6
9926 131 jeremybenn
else
9927
  eval "$as_ac_Header=\$ac_header_preproc"
9928
fi
9929 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931 131 jeremybenn
 
9932
fi
9933 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9935 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936 131 jeremybenn
_ACEOF
9937
 
9938
fi
9939
 
9940
done
9941
 
9942
 
9943
for ac_header in sys/ioctl.h
9944
do
9945 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9948
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950
  echo $ECHO_N "(cached) $ECHO_C" >&6
9951 131 jeremybenn
fi
9952 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 131 jeremybenn
else
9955
  # Is the header compilable?
9956 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9959
/* confdefs.h.  */
9960
_ACEOF
9961
cat confdefs.h >>conftest.$ac_ext
9962
cat >>conftest.$ac_ext <<_ACEOF
9963
/* end confdefs.h.  */
9964
$ac_includes_default
9965
#include <$ac_header>
9966
_ACEOF
9967
rm -f conftest.$ac_objext
9968 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969
  (eval $ac_compile) 2>conftest.er1
9970 131 jeremybenn
  ac_status=$?
9971
  grep -v '^ *+' conftest.er1 >conftest.err
9972
  rm -f conftest.er1
9973
  cat conftest.err >&5
9974 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975
  (exit $ac_status); } &&
9976
         { ac_try='test -z "$ac_c_werror_flag"
9977
                         || test ! -s conftest.err'
9978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979
  (eval $ac_try) 2>&5
9980
  ac_status=$?
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
  (exit $ac_status); }; } &&
9983
         { ac_try='test -s conftest.$ac_objext'
9984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985
  (eval $ac_try) 2>&5
9986
  ac_status=$?
9987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988
  (exit $ac_status); }; }; then
9989 131 jeremybenn
  ac_header_compiler=yes
9990
else
9991 225 jeremybenn
  echo "$as_me: failed program was:" >&5
9992 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9993
 
9994 225 jeremybenn
ac_header_compiler=no
9995 131 jeremybenn
fi
9996 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9998
echo "${ECHO_T}$ac_header_compiler" >&6
9999 131 jeremybenn
 
10000
# Is the header present?
10001 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10002
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10003 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10004
/* confdefs.h.  */
10005
_ACEOF
10006
cat confdefs.h >>conftest.$ac_ext
10007
cat >>conftest.$ac_ext <<_ACEOF
10008
/* end confdefs.h.  */
10009
#include <$ac_header>
10010
_ACEOF
10011 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10012
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10013 131 jeremybenn
  ac_status=$?
10014
  grep -v '^ *+' conftest.er1 >conftest.err
10015
  rm -f conftest.er1
10016
  cat conftest.err >&5
10017 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018
  (exit $ac_status); } >/dev/null; then
10019
  if test -s conftest.err; then
10020
    ac_cpp_err=$ac_c_preproc_warn_flag
10021
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10022
  else
10023
    ac_cpp_err=
10024
  fi
10025
else
10026
  ac_cpp_err=yes
10027
fi
10028
if test -z "$ac_cpp_err"; then
10029 131 jeremybenn
  ac_header_preproc=yes
10030
else
10031 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10032 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10033
 
10034
  ac_header_preproc=no
10035
fi
10036
rm -f conftest.err conftest.$ac_ext
10037 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038
echo "${ECHO_T}$ac_header_preproc" >&6
10039 131 jeremybenn
 
10040
# So?  What about this header?
10041
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10042
  yes:no: )
10043 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 131 jeremybenn
    ac_header_preproc=yes
10048
    ;;
10049
  no:yes:* )
10050 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10053
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10054
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10057
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10058
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10062
    (
10063
      cat <<\_ASBOX
10064
## ------------------------------------------ ##
10065
## Report this to the AC_PACKAGE_NAME lists.  ##
10066
## ------------------------------------------ ##
10067
_ASBOX
10068
    ) |
10069
      sed "s/^/$as_me: WARNING:     /" >&2
10070 131 jeremybenn
    ;;
10071
esac
10072 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075
  echo $ECHO_N "(cached) $ECHO_C" >&6
10076 131 jeremybenn
else
10077
  eval "$as_ac_Header=\$ac_header_preproc"
10078
fi
10079 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10081 131 jeremybenn
 
10082
fi
10083 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10085 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 131 jeremybenn
_ACEOF
10087
 
10088
fi
10089
 
10090
done
10091
 
10092
 
10093
for ac_header in sys/param.h
10094
do
10095 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10096
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100
  echo $ECHO_N "(cached) $ECHO_C" >&6
10101 131 jeremybenn
fi
10102 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10103
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104 131 jeremybenn
else
10105
  # Is the header compilable?
10106 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10108 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10109
/* confdefs.h.  */
10110
_ACEOF
10111
cat confdefs.h >>conftest.$ac_ext
10112
cat >>conftest.$ac_ext <<_ACEOF
10113
/* end confdefs.h.  */
10114
$ac_includes_default
10115
#include <$ac_header>
10116
_ACEOF
10117
rm -f conftest.$ac_objext
10118 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119
  (eval $ac_compile) 2>conftest.er1
10120 131 jeremybenn
  ac_status=$?
10121
  grep -v '^ *+' conftest.er1 >conftest.err
10122
  rm -f conftest.er1
10123
  cat conftest.err >&5
10124 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125
  (exit $ac_status); } &&
10126
         { ac_try='test -z "$ac_c_werror_flag"
10127
                         || test ! -s conftest.err'
10128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129
  (eval $ac_try) 2>&5
10130
  ac_status=$?
10131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132
  (exit $ac_status); }; } &&
10133
         { ac_try='test -s conftest.$ac_objext'
10134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135
  (eval $ac_try) 2>&5
10136
  ac_status=$?
10137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138
  (exit $ac_status); }; }; then
10139 131 jeremybenn
  ac_header_compiler=yes
10140
else
10141 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10142 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10143
 
10144 225 jeremybenn
ac_header_compiler=no
10145 131 jeremybenn
fi
10146 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10147
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10148
echo "${ECHO_T}$ac_header_compiler" >&6
10149 131 jeremybenn
 
10150
# Is the header present?
10151 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10152
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10153 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10154
/* confdefs.h.  */
10155
_ACEOF
10156
cat confdefs.h >>conftest.$ac_ext
10157
cat >>conftest.$ac_ext <<_ACEOF
10158
/* end confdefs.h.  */
10159
#include <$ac_header>
10160
_ACEOF
10161 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10162
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10163 131 jeremybenn
  ac_status=$?
10164
  grep -v '^ *+' conftest.er1 >conftest.err
10165
  rm -f conftest.er1
10166
  cat conftest.err >&5
10167 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168
  (exit $ac_status); } >/dev/null; then
10169
  if test -s conftest.err; then
10170
    ac_cpp_err=$ac_c_preproc_warn_flag
10171
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10172
  else
10173
    ac_cpp_err=
10174
  fi
10175
else
10176
  ac_cpp_err=yes
10177
fi
10178
if test -z "$ac_cpp_err"; then
10179 131 jeremybenn
  ac_header_preproc=yes
10180
else
10181 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10182 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10183
 
10184
  ac_header_preproc=no
10185
fi
10186
rm -f conftest.err conftest.$ac_ext
10187 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10188
echo "${ECHO_T}$ac_header_preproc" >&6
10189 131 jeremybenn
 
10190
# So?  What about this header?
10191
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10192
  yes:no: )
10193 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10194
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10195
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10196
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10197 131 jeremybenn
    ac_header_preproc=yes
10198
    ;;
10199
  no:yes:* )
10200 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10201
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10202
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10203
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10204
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10205
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10206
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10207
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10208
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10209
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10210
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10211
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10212
    (
10213
      cat <<\_ASBOX
10214
## ------------------------------------------ ##
10215
## Report this to the AC_PACKAGE_NAME lists.  ##
10216
## ------------------------------------------ ##
10217
_ASBOX
10218
    ) |
10219
      sed "s/^/$as_me: WARNING:     /" >&2
10220 131 jeremybenn
    ;;
10221
esac
10222 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10225
  echo $ECHO_N "(cached) $ECHO_C" >&6
10226 131 jeremybenn
else
10227
  eval "$as_ac_Header=\$ac_header_preproc"
10228
fi
10229 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10230
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10231 131 jeremybenn
 
10232
fi
10233 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10234 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10235 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10236 131 jeremybenn
_ACEOF
10237
 
10238
fi
10239
 
10240
done
10241
 
10242
 
10243
for ac_header in sys/resource.h
10244
do
10245 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10246
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10248
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250
  echo $ECHO_N "(cached) $ECHO_C" >&6
10251 131 jeremybenn
fi
10252 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10253
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10254 131 jeremybenn
else
10255
  # Is the header compilable?
10256 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10257
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10258 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10259
/* confdefs.h.  */
10260
_ACEOF
10261
cat confdefs.h >>conftest.$ac_ext
10262
cat >>conftest.$ac_ext <<_ACEOF
10263
/* end confdefs.h.  */
10264
$ac_includes_default
10265
#include <$ac_header>
10266
_ACEOF
10267
rm -f conftest.$ac_objext
10268 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269
  (eval $ac_compile) 2>conftest.er1
10270 131 jeremybenn
  ac_status=$?
10271
  grep -v '^ *+' conftest.er1 >conftest.err
10272
  rm -f conftest.er1
10273
  cat conftest.err >&5
10274 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275
  (exit $ac_status); } &&
10276
         { ac_try='test -z "$ac_c_werror_flag"
10277
                         || test ! -s conftest.err'
10278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279
  (eval $ac_try) 2>&5
10280
  ac_status=$?
10281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282
  (exit $ac_status); }; } &&
10283
         { ac_try='test -s conftest.$ac_objext'
10284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285
  (eval $ac_try) 2>&5
10286
  ac_status=$?
10287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288
  (exit $ac_status); }; }; then
10289 131 jeremybenn
  ac_header_compiler=yes
10290
else
10291 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10292 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10293
 
10294 225 jeremybenn
ac_header_compiler=no
10295 131 jeremybenn
fi
10296 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10297
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10298
echo "${ECHO_T}$ac_header_compiler" >&6
10299 131 jeremybenn
 
10300
# Is the header present?
10301 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10302
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10303 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10304
/* confdefs.h.  */
10305
_ACEOF
10306
cat confdefs.h >>conftest.$ac_ext
10307
cat >>conftest.$ac_ext <<_ACEOF
10308
/* end confdefs.h.  */
10309
#include <$ac_header>
10310
_ACEOF
10311 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10312
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10313 131 jeremybenn
  ac_status=$?
10314
  grep -v '^ *+' conftest.er1 >conftest.err
10315
  rm -f conftest.er1
10316
  cat conftest.err >&5
10317 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318
  (exit $ac_status); } >/dev/null; then
10319
  if test -s conftest.err; then
10320
    ac_cpp_err=$ac_c_preproc_warn_flag
10321
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10322
  else
10323
    ac_cpp_err=
10324
  fi
10325
else
10326
  ac_cpp_err=yes
10327
fi
10328
if test -z "$ac_cpp_err"; then
10329 131 jeremybenn
  ac_header_preproc=yes
10330
else
10331 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10332 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10333
 
10334
  ac_header_preproc=no
10335
fi
10336
rm -f conftest.err conftest.$ac_ext
10337 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10338
echo "${ECHO_T}$ac_header_preproc" >&6
10339 131 jeremybenn
 
10340
# So?  What about this header?
10341
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342
  yes:no: )
10343 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10344
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10345
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10346
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10347 131 jeremybenn
    ac_header_preproc=yes
10348
    ;;
10349
  no:yes:* )
10350 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10351
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10352
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10353
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10354
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10355
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10356
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10357
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10358
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10360
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10361
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362
    (
10363
      cat <<\_ASBOX
10364
## ------------------------------------------ ##
10365
## Report this to the AC_PACKAGE_NAME lists.  ##
10366
## ------------------------------------------ ##
10367
_ASBOX
10368
    ) |
10369
      sed "s/^/$as_me: WARNING:     /" >&2
10370 131 jeremybenn
    ;;
10371
esac
10372 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10373
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10374
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10375
  echo $ECHO_N "(cached) $ECHO_C" >&6
10376 131 jeremybenn
else
10377
  eval "$as_ac_Header=\$ac_header_preproc"
10378
fi
10379 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10380
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10381 131 jeremybenn
 
10382
fi
10383 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10384 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10385 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386 131 jeremybenn
_ACEOF
10387
 
10388
fi
10389
 
10390
done
10391
 
10392
 
10393
for ac_header in sys/proc.h
10394
do
10395 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10396
echo "$as_me:$LINENO: checking for $ac_header" >&5
10397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399
  echo $ECHO_N "(cached) $ECHO_C" >&6
10400 131 jeremybenn
else
10401
  cat >conftest.$ac_ext <<_ACEOF
10402
/* confdefs.h.  */
10403
_ACEOF
10404
cat confdefs.h >>conftest.$ac_ext
10405
cat >>conftest.$ac_ext <<_ACEOF
10406
/* end confdefs.h.  */
10407
#if HAVE_SYS_PARAM_H
10408
# include 
10409
#endif
10410
 
10411
 
10412
#include <$ac_header>
10413
_ACEOF
10414
rm -f conftest.$ac_objext
10415 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416
  (eval $ac_compile) 2>conftest.er1
10417 131 jeremybenn
  ac_status=$?
10418
  grep -v '^ *+' conftest.er1 >conftest.err
10419
  rm -f conftest.er1
10420
  cat conftest.err >&5
10421 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422
  (exit $ac_status); } &&
10423
         { ac_try='test -z "$ac_c_werror_flag"
10424
                         || test ! -s conftest.err'
10425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426
  (eval $ac_try) 2>&5
10427
  ac_status=$?
10428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
  (exit $ac_status); }; } &&
10430
         { ac_try='test -s conftest.$ac_objext'
10431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432
  (eval $ac_try) 2>&5
10433
  ac_status=$?
10434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435
  (exit $ac_status); }; }; then
10436 131 jeremybenn
  eval "$as_ac_Header=yes"
10437
else
10438 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10439 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10440
 
10441 225 jeremybenn
eval "$as_ac_Header=no"
10442 131 jeremybenn
fi
10443 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10444 131 jeremybenn
fi
10445 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10446
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10448 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10449 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10450 131 jeremybenn
_ACEOF
10451
 
10452
fi
10453
 
10454
done
10455
 
10456
 
10457
for ac_header in sys/procfs.h
10458
do
10459 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10460
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10462
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10463
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464
  echo $ECHO_N "(cached) $ECHO_C" >&6
10465 131 jeremybenn
fi
10466 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10467
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10468 131 jeremybenn
else
10469
  # Is the header compilable?
10470 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10471
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10472 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10473
/* confdefs.h.  */
10474
_ACEOF
10475
cat confdefs.h >>conftest.$ac_ext
10476
cat >>conftest.$ac_ext <<_ACEOF
10477
/* end confdefs.h.  */
10478
$ac_includes_default
10479
#include <$ac_header>
10480
_ACEOF
10481
rm -f conftest.$ac_objext
10482 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483
  (eval $ac_compile) 2>conftest.er1
10484 131 jeremybenn
  ac_status=$?
10485
  grep -v '^ *+' conftest.er1 >conftest.err
10486
  rm -f conftest.er1
10487
  cat conftest.err >&5
10488 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489
  (exit $ac_status); } &&
10490
         { ac_try='test -z "$ac_c_werror_flag"
10491
                         || test ! -s conftest.err'
10492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493
  (eval $ac_try) 2>&5
10494
  ac_status=$?
10495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496
  (exit $ac_status); }; } &&
10497
         { ac_try='test -s conftest.$ac_objext'
10498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499
  (eval $ac_try) 2>&5
10500
  ac_status=$?
10501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502
  (exit $ac_status); }; }; then
10503 131 jeremybenn
  ac_header_compiler=yes
10504
else
10505 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10506 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10507
 
10508 225 jeremybenn
ac_header_compiler=no
10509 131 jeremybenn
fi
10510 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10511
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10512
echo "${ECHO_T}$ac_header_compiler" >&6
10513 131 jeremybenn
 
10514
# Is the header present?
10515 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10516
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10517 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10518
/* confdefs.h.  */
10519
_ACEOF
10520
cat confdefs.h >>conftest.$ac_ext
10521
cat >>conftest.$ac_ext <<_ACEOF
10522
/* end confdefs.h.  */
10523
#include <$ac_header>
10524
_ACEOF
10525 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10526
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527 131 jeremybenn
  ac_status=$?
10528
  grep -v '^ *+' conftest.er1 >conftest.err
10529
  rm -f conftest.er1
10530
  cat conftest.err >&5
10531 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532
  (exit $ac_status); } >/dev/null; then
10533
  if test -s conftest.err; then
10534
    ac_cpp_err=$ac_c_preproc_warn_flag
10535
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10536
  else
10537
    ac_cpp_err=
10538
  fi
10539
else
10540
  ac_cpp_err=yes
10541
fi
10542
if test -z "$ac_cpp_err"; then
10543 131 jeremybenn
  ac_header_preproc=yes
10544
else
10545 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10546 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10547
 
10548
  ac_header_preproc=no
10549
fi
10550
rm -f conftest.err conftest.$ac_ext
10551 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10552
echo "${ECHO_T}$ac_header_preproc" >&6
10553 131 jeremybenn
 
10554
# So?  What about this header?
10555
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10556
  yes:no: )
10557 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10558
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10559
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10560
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10561 131 jeremybenn
    ac_header_preproc=yes
10562
    ;;
10563
  no:yes:* )
10564 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10565
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10566
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10567
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10568
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10569
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10570
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10571
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10572
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10573
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10574
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10575
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10576
    (
10577
      cat <<\_ASBOX
10578
## ------------------------------------------ ##
10579
## Report this to the AC_PACKAGE_NAME lists.  ##
10580
## ------------------------------------------ ##
10581
_ASBOX
10582
    ) |
10583
      sed "s/^/$as_me: WARNING:     /" >&2
10584 131 jeremybenn
    ;;
10585
esac
10586 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10587
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10588
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10589
  echo $ECHO_N "(cached) $ECHO_C" >&6
10590 131 jeremybenn
else
10591
  eval "$as_ac_Header=\$ac_header_preproc"
10592
fi
10593 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10594
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10595 131 jeremybenn
 
10596
fi
10597 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10598 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10599 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10600 131 jeremybenn
_ACEOF
10601
 
10602
fi
10603
 
10604
done
10605
 
10606
 
10607
 
10608
for ac_header in sys/ptrace.h ptrace.h
10609
do
10610 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10611
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10612
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10613
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10614
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10615
  echo $ECHO_N "(cached) $ECHO_C" >&6
10616 131 jeremybenn
fi
10617 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10618
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10619 131 jeremybenn
else
10620
  # Is the header compilable?
10621 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10622
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10623 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10624
/* confdefs.h.  */
10625
_ACEOF
10626
cat confdefs.h >>conftest.$ac_ext
10627
cat >>conftest.$ac_ext <<_ACEOF
10628
/* end confdefs.h.  */
10629
$ac_includes_default
10630
#include <$ac_header>
10631
_ACEOF
10632
rm -f conftest.$ac_objext
10633 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634
  (eval $ac_compile) 2>conftest.er1
10635 131 jeremybenn
  ac_status=$?
10636
  grep -v '^ *+' conftest.er1 >conftest.err
10637
  rm -f conftest.er1
10638
  cat conftest.err >&5
10639 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640
  (exit $ac_status); } &&
10641
         { ac_try='test -z "$ac_c_werror_flag"
10642
                         || test ! -s conftest.err'
10643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644
  (eval $ac_try) 2>&5
10645
  ac_status=$?
10646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647
  (exit $ac_status); }; } &&
10648
         { ac_try='test -s conftest.$ac_objext'
10649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650
  (eval $ac_try) 2>&5
10651
  ac_status=$?
10652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653
  (exit $ac_status); }; }; then
10654 131 jeremybenn
  ac_header_compiler=yes
10655
else
10656 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10657 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10658
 
10659 225 jeremybenn
ac_header_compiler=no
10660 131 jeremybenn
fi
10661 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10662
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10663
echo "${ECHO_T}$ac_header_compiler" >&6
10664 131 jeremybenn
 
10665
# Is the header present?
10666 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10667
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10668 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10669
/* confdefs.h.  */
10670
_ACEOF
10671
cat confdefs.h >>conftest.$ac_ext
10672
cat >>conftest.$ac_ext <<_ACEOF
10673
/* end confdefs.h.  */
10674
#include <$ac_header>
10675
_ACEOF
10676 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10677
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10678 131 jeremybenn
  ac_status=$?
10679
  grep -v '^ *+' conftest.er1 >conftest.err
10680
  rm -f conftest.er1
10681
  cat conftest.err >&5
10682 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
  (exit $ac_status); } >/dev/null; then
10684
  if test -s conftest.err; then
10685
    ac_cpp_err=$ac_c_preproc_warn_flag
10686
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10687
  else
10688
    ac_cpp_err=
10689
  fi
10690
else
10691
  ac_cpp_err=yes
10692
fi
10693
if test -z "$ac_cpp_err"; then
10694 131 jeremybenn
  ac_header_preproc=yes
10695
else
10696 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10697 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10698
 
10699
  ac_header_preproc=no
10700
fi
10701
rm -f conftest.err conftest.$ac_ext
10702 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10703
echo "${ECHO_T}$ac_header_preproc" >&6
10704 131 jeremybenn
 
10705
# So?  What about this header?
10706
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10707
  yes:no: )
10708 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10709
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10710
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10711
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10712 131 jeremybenn
    ac_header_preproc=yes
10713
    ;;
10714
  no:yes:* )
10715 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10716
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10717
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10718
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10719
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10720
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10721
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10722
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10723
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10724
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10725
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10726
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10727
    (
10728
      cat <<\_ASBOX
10729
## ------------------------------------------ ##
10730
## Report this to the AC_PACKAGE_NAME lists.  ##
10731
## ------------------------------------------ ##
10732
_ASBOX
10733
    ) |
10734
      sed "s/^/$as_me: WARNING:     /" >&2
10735 131 jeremybenn
    ;;
10736
esac
10737 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10738
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10739
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10740
  echo $ECHO_N "(cached) $ECHO_C" >&6
10741 131 jeremybenn
else
10742
  eval "$as_ac_Header=\$ac_header_preproc"
10743
fi
10744 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10745
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10746 131 jeremybenn
 
10747
fi
10748 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10749 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10750 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10751 131 jeremybenn
_ACEOF
10752
 
10753
fi
10754
 
10755
done
10756
 
10757
 
10758
 
10759
for ac_header in sys/reg.h sys/debugreg.h
10760
do
10761 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10762
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10763
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10764
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10765
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10766
  echo $ECHO_N "(cached) $ECHO_C" >&6
10767 131 jeremybenn
fi
10768 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10769
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10770 131 jeremybenn
else
10771
  # Is the header compilable?
10772 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10774 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10775
/* confdefs.h.  */
10776
_ACEOF
10777
cat confdefs.h >>conftest.$ac_ext
10778
cat >>conftest.$ac_ext <<_ACEOF
10779
/* end confdefs.h.  */
10780
$ac_includes_default
10781
#include <$ac_header>
10782
_ACEOF
10783
rm -f conftest.$ac_objext
10784 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785
  (eval $ac_compile) 2>conftest.er1
10786 131 jeremybenn
  ac_status=$?
10787
  grep -v '^ *+' conftest.er1 >conftest.err
10788
  rm -f conftest.er1
10789
  cat conftest.err >&5
10790 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791
  (exit $ac_status); } &&
10792
         { ac_try='test -z "$ac_c_werror_flag"
10793
                         || test ! -s conftest.err'
10794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795
  (eval $ac_try) 2>&5
10796
  ac_status=$?
10797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
  (exit $ac_status); }; } &&
10799
         { ac_try='test -s conftest.$ac_objext'
10800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801
  (eval $ac_try) 2>&5
10802
  ac_status=$?
10803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804
  (exit $ac_status); }; }; then
10805 131 jeremybenn
  ac_header_compiler=yes
10806
else
10807 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10808 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10809
 
10810 225 jeremybenn
ac_header_compiler=no
10811 131 jeremybenn
fi
10812 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10813
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10814
echo "${ECHO_T}$ac_header_compiler" >&6
10815 131 jeremybenn
 
10816
# Is the header present?
10817 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10818
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10819 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10820
/* confdefs.h.  */
10821
_ACEOF
10822
cat confdefs.h >>conftest.$ac_ext
10823
cat >>conftest.$ac_ext <<_ACEOF
10824
/* end confdefs.h.  */
10825
#include <$ac_header>
10826
_ACEOF
10827 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10828
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10829 131 jeremybenn
  ac_status=$?
10830
  grep -v '^ *+' conftest.er1 >conftest.err
10831
  rm -f conftest.er1
10832
  cat conftest.err >&5
10833 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834
  (exit $ac_status); } >/dev/null; then
10835
  if test -s conftest.err; then
10836
    ac_cpp_err=$ac_c_preproc_warn_flag
10837
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10838
  else
10839
    ac_cpp_err=
10840
  fi
10841
else
10842
  ac_cpp_err=yes
10843
fi
10844
if test -z "$ac_cpp_err"; then
10845 131 jeremybenn
  ac_header_preproc=yes
10846
else
10847 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10848 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10849
 
10850
  ac_header_preproc=no
10851
fi
10852
rm -f conftest.err conftest.$ac_ext
10853 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854
echo "${ECHO_T}$ac_header_preproc" >&6
10855 131 jeremybenn
 
10856
# So?  What about this header?
10857
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858
  yes:no: )
10859 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 131 jeremybenn
    ac_header_preproc=yes
10864
    ;;
10865
  no:yes:* )
10866 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10869
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10870
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10873
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10874
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10878
    (
10879
      cat <<\_ASBOX
10880
## ------------------------------------------ ##
10881
## Report this to the AC_PACKAGE_NAME lists.  ##
10882
## ------------------------------------------ ##
10883
_ASBOX
10884
    ) |
10885
      sed "s/^/$as_me: WARNING:     /" >&2
10886 131 jeremybenn
    ;;
10887
esac
10888 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
10889
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10890
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10891
  echo $ECHO_N "(cached) $ECHO_C" >&6
10892 131 jeremybenn
else
10893
  eval "$as_ac_Header=\$ac_header_preproc"
10894
fi
10895 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10896
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10897 131 jeremybenn
 
10898
fi
10899 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10900 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10901 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10902 131 jeremybenn
_ACEOF
10903
 
10904
fi
10905
 
10906
done
10907
 
10908
 
10909
for ac_header in sys/select.h
10910
do
10911 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10912
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10913
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10914
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916
  echo $ECHO_N "(cached) $ECHO_C" >&6
10917 131 jeremybenn
fi
10918 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10919
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10920 131 jeremybenn
else
10921
  # Is the header compilable?
10922 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10923
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10924 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10925
/* confdefs.h.  */
10926
_ACEOF
10927
cat confdefs.h >>conftest.$ac_ext
10928
cat >>conftest.$ac_ext <<_ACEOF
10929
/* end confdefs.h.  */
10930
$ac_includes_default
10931
#include <$ac_header>
10932
_ACEOF
10933
rm -f conftest.$ac_objext
10934 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935
  (eval $ac_compile) 2>conftest.er1
10936 131 jeremybenn
  ac_status=$?
10937
  grep -v '^ *+' conftest.er1 >conftest.err
10938
  rm -f conftest.er1
10939
  cat conftest.err >&5
10940 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941
  (exit $ac_status); } &&
10942
         { ac_try='test -z "$ac_c_werror_flag"
10943
                         || test ! -s conftest.err'
10944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945
  (eval $ac_try) 2>&5
10946
  ac_status=$?
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948
  (exit $ac_status); }; } &&
10949
         { ac_try='test -s conftest.$ac_objext'
10950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951
  (eval $ac_try) 2>&5
10952
  ac_status=$?
10953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
  (exit $ac_status); }; }; then
10955 131 jeremybenn
  ac_header_compiler=yes
10956
else
10957 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10958 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10959
 
10960 225 jeremybenn
ac_header_compiler=no
10961 131 jeremybenn
fi
10962 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10963
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10964
echo "${ECHO_T}$ac_header_compiler" >&6
10965 131 jeremybenn
 
10966
# Is the header present?
10967 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10968
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10969 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10970
/* confdefs.h.  */
10971
_ACEOF
10972
cat confdefs.h >>conftest.$ac_ext
10973
cat >>conftest.$ac_ext <<_ACEOF
10974
/* end confdefs.h.  */
10975
#include <$ac_header>
10976
_ACEOF
10977 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10979 131 jeremybenn
  ac_status=$?
10980
  grep -v '^ *+' conftest.er1 >conftest.err
10981
  rm -f conftest.er1
10982
  cat conftest.err >&5
10983 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984
  (exit $ac_status); } >/dev/null; then
10985
  if test -s conftest.err; then
10986
    ac_cpp_err=$ac_c_preproc_warn_flag
10987
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10988
  else
10989
    ac_cpp_err=
10990
  fi
10991
else
10992
  ac_cpp_err=yes
10993
fi
10994
if test -z "$ac_cpp_err"; then
10995 131 jeremybenn
  ac_header_preproc=yes
10996
else
10997 225 jeremybenn
  echo "$as_me: failed program was:" >&5
10998 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10999
 
11000
  ac_header_preproc=no
11001
fi
11002
rm -f conftest.err conftest.$ac_ext
11003 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11004
echo "${ECHO_T}$ac_header_preproc" >&6
11005 131 jeremybenn
 
11006
# So?  What about this header?
11007
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11008
  yes:no: )
11009 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11010
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11011
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11012
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11013 131 jeremybenn
    ac_header_preproc=yes
11014
    ;;
11015
  no:yes:* )
11016 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11017
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11018
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11019
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11020
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11021
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11022
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11023
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11024
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11025
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11026
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11027
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11028
    (
11029
      cat <<\_ASBOX
11030
## ------------------------------------------ ##
11031
## Report this to the AC_PACKAGE_NAME lists.  ##
11032
## ------------------------------------------ ##
11033
_ASBOX
11034
    ) |
11035
      sed "s/^/$as_me: WARNING:     /" >&2
11036 131 jeremybenn
    ;;
11037
esac
11038 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11039
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11040
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11041
  echo $ECHO_N "(cached) $ECHO_C" >&6
11042 131 jeremybenn
else
11043
  eval "$as_ac_Header=\$ac_header_preproc"
11044
fi
11045 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11046
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11047 131 jeremybenn
 
11048
fi
11049 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11050 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11051 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11052 131 jeremybenn
_ACEOF
11053
 
11054
fi
11055
 
11056
done
11057
 
11058
 
11059
for ac_header in sys/syscall.h
11060
do
11061 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11062
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11064
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11065
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066
  echo $ECHO_N "(cached) $ECHO_C" >&6
11067 131 jeremybenn
fi
11068 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11070 131 jeremybenn
else
11071
  # Is the header compilable?
11072 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11074 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11075
/* confdefs.h.  */
11076
_ACEOF
11077
cat confdefs.h >>conftest.$ac_ext
11078
cat >>conftest.$ac_ext <<_ACEOF
11079
/* end confdefs.h.  */
11080
$ac_includes_default
11081
#include <$ac_header>
11082
_ACEOF
11083
rm -f conftest.$ac_objext
11084 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085
  (eval $ac_compile) 2>conftest.er1
11086 131 jeremybenn
  ac_status=$?
11087
  grep -v '^ *+' conftest.er1 >conftest.err
11088
  rm -f conftest.er1
11089
  cat conftest.err >&5
11090 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091
  (exit $ac_status); } &&
11092
         { ac_try='test -z "$ac_c_werror_flag"
11093
                         || test ! -s conftest.err'
11094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095
  (eval $ac_try) 2>&5
11096
  ac_status=$?
11097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098
  (exit $ac_status); }; } &&
11099
         { ac_try='test -s conftest.$ac_objext'
11100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101
  (eval $ac_try) 2>&5
11102
  ac_status=$?
11103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104
  (exit $ac_status); }; }; then
11105 131 jeremybenn
  ac_header_compiler=yes
11106
else
11107 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11108 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11109
 
11110 225 jeremybenn
ac_header_compiler=no
11111 131 jeremybenn
fi
11112 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114
echo "${ECHO_T}$ac_header_compiler" >&6
11115 131 jeremybenn
 
11116
# Is the header present?
11117 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11119 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11120
/* confdefs.h.  */
11121
_ACEOF
11122
cat confdefs.h >>conftest.$ac_ext
11123
cat >>conftest.$ac_ext <<_ACEOF
11124
/* end confdefs.h.  */
11125
#include <$ac_header>
11126
_ACEOF
11127 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11128
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11129 131 jeremybenn
  ac_status=$?
11130
  grep -v '^ *+' conftest.er1 >conftest.err
11131
  rm -f conftest.er1
11132
  cat conftest.err >&5
11133 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134
  (exit $ac_status); } >/dev/null; then
11135
  if test -s conftest.err; then
11136
    ac_cpp_err=$ac_c_preproc_warn_flag
11137
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11138
  else
11139
    ac_cpp_err=
11140
  fi
11141
else
11142
  ac_cpp_err=yes
11143
fi
11144
if test -z "$ac_cpp_err"; then
11145 131 jeremybenn
  ac_header_preproc=yes
11146
else
11147 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11148 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11149
 
11150
  ac_header_preproc=no
11151
fi
11152
rm -f conftest.err conftest.$ac_ext
11153 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154
echo "${ECHO_T}$ac_header_preproc" >&6
11155 131 jeremybenn
 
11156
# So?  What about this header?
11157
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11158
  yes:no: )
11159 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 131 jeremybenn
    ac_header_preproc=yes
11164
    ;;
11165
  no:yes:* )
11166 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11169
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11170
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11173
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11174
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11178
    (
11179
      cat <<\_ASBOX
11180
## ------------------------------------------ ##
11181
## Report this to the AC_PACKAGE_NAME lists.  ##
11182
## ------------------------------------------ ##
11183
_ASBOX
11184
    ) |
11185
      sed "s/^/$as_me: WARNING:     /" >&2
11186 131 jeremybenn
    ;;
11187
esac
11188 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11189
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191
  echo $ECHO_N "(cached) $ECHO_C" >&6
11192 131 jeremybenn
else
11193
  eval "$as_ac_Header=\$ac_header_preproc"
11194
fi
11195 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11197 131 jeremybenn
 
11198
fi
11199 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11201 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11202 131 jeremybenn
_ACEOF
11203
 
11204
fi
11205
 
11206
done
11207
 
11208
 
11209
for ac_header in sys/types.h
11210
do
11211 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11213
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11214
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11215
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11216
  echo $ECHO_N "(cached) $ECHO_C" >&6
11217 131 jeremybenn
fi
11218 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11219
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11220 131 jeremybenn
else
11221
  # Is the header compilable?
11222 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11223
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11224 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11225
/* confdefs.h.  */
11226
_ACEOF
11227
cat confdefs.h >>conftest.$ac_ext
11228
cat >>conftest.$ac_ext <<_ACEOF
11229
/* end confdefs.h.  */
11230
$ac_includes_default
11231
#include <$ac_header>
11232
_ACEOF
11233
rm -f conftest.$ac_objext
11234 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11235
  (eval $ac_compile) 2>conftest.er1
11236 131 jeremybenn
  ac_status=$?
11237
  grep -v '^ *+' conftest.er1 >conftest.err
11238
  rm -f conftest.er1
11239
  cat conftest.err >&5
11240 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241
  (exit $ac_status); } &&
11242
         { ac_try='test -z "$ac_c_werror_flag"
11243
                         || test ! -s conftest.err'
11244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245
  (eval $ac_try) 2>&5
11246
  ac_status=$?
11247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248
  (exit $ac_status); }; } &&
11249
         { ac_try='test -s conftest.$ac_objext'
11250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251
  (eval $ac_try) 2>&5
11252
  ac_status=$?
11253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254
  (exit $ac_status); }; }; then
11255 131 jeremybenn
  ac_header_compiler=yes
11256
else
11257 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11258 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11259
 
11260 225 jeremybenn
ac_header_compiler=no
11261 131 jeremybenn
fi
11262 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264
echo "${ECHO_T}$ac_header_compiler" >&6
11265 131 jeremybenn
 
11266
# Is the header present?
11267 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11268
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11269 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11270
/* confdefs.h.  */
11271
_ACEOF
11272
cat confdefs.h >>conftest.$ac_ext
11273
cat >>conftest.$ac_ext <<_ACEOF
11274
/* end confdefs.h.  */
11275
#include <$ac_header>
11276
_ACEOF
11277 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11278
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11279 131 jeremybenn
  ac_status=$?
11280
  grep -v '^ *+' conftest.er1 >conftest.err
11281
  rm -f conftest.er1
11282
  cat conftest.err >&5
11283 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284
  (exit $ac_status); } >/dev/null; then
11285
  if test -s conftest.err; then
11286
    ac_cpp_err=$ac_c_preproc_warn_flag
11287
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11288
  else
11289
    ac_cpp_err=
11290
  fi
11291
else
11292
  ac_cpp_err=yes
11293
fi
11294
if test -z "$ac_cpp_err"; then
11295 131 jeremybenn
  ac_header_preproc=yes
11296
else
11297 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11298 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11299
 
11300
  ac_header_preproc=no
11301
fi
11302
rm -f conftest.err conftest.$ac_ext
11303 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11304
echo "${ECHO_T}$ac_header_preproc" >&6
11305 131 jeremybenn
 
11306
# So?  What about this header?
11307
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308
  yes:no: )
11309 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11310
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11311
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11312
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11313 131 jeremybenn
    ac_header_preproc=yes
11314
    ;;
11315
  no:yes:* )
11316 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11317
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11318
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11319
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11320
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11321
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11322
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11323
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11324
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11325
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11326
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11327
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328
    (
11329
      cat <<\_ASBOX
11330
## ------------------------------------------ ##
11331
## Report this to the AC_PACKAGE_NAME lists.  ##
11332
## ------------------------------------------ ##
11333
_ASBOX
11334
    ) |
11335
      sed "s/^/$as_me: WARNING:     /" >&2
11336 131 jeremybenn
    ;;
11337
esac
11338 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11339
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11340
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11341
  echo $ECHO_N "(cached) $ECHO_C" >&6
11342 131 jeremybenn
else
11343
  eval "$as_ac_Header=\$ac_header_preproc"
11344
fi
11345 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11347 131 jeremybenn
 
11348
fi
11349 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11350 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11351 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11352 131 jeremybenn
_ACEOF
11353
 
11354
fi
11355
 
11356
done
11357
 
11358
 
11359
for ac_header in sys/user.h
11360
do
11361 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11362
echo "$as_me:$LINENO: checking for $ac_header" >&5
11363
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11364
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365
  echo $ECHO_N "(cached) $ECHO_C" >&6
11366 131 jeremybenn
else
11367
  cat >conftest.$ac_ext <<_ACEOF
11368
/* confdefs.h.  */
11369
_ACEOF
11370
cat confdefs.h >>conftest.$ac_ext
11371
cat >>conftest.$ac_ext <<_ACEOF
11372
/* end confdefs.h.  */
11373
#if HAVE_SYS_PARAM_H
11374
# include 
11375
#endif
11376
 
11377
 
11378
#include <$ac_header>
11379
_ACEOF
11380
rm -f conftest.$ac_objext
11381 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382
  (eval $ac_compile) 2>conftest.er1
11383 131 jeremybenn
  ac_status=$?
11384
  grep -v '^ *+' conftest.er1 >conftest.err
11385
  rm -f conftest.er1
11386
  cat conftest.err >&5
11387 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388
  (exit $ac_status); } &&
11389
         { ac_try='test -z "$ac_c_werror_flag"
11390
                         || test ! -s conftest.err'
11391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392
  (eval $ac_try) 2>&5
11393
  ac_status=$?
11394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395
  (exit $ac_status); }; } &&
11396
         { ac_try='test -s conftest.$ac_objext'
11397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398
  (eval $ac_try) 2>&5
11399
  ac_status=$?
11400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401
  (exit $ac_status); }; }; then
11402 131 jeremybenn
  eval "$as_ac_Header=yes"
11403
else
11404 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11405 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11406
 
11407 225 jeremybenn
eval "$as_ac_Header=no"
11408 131 jeremybenn
fi
11409 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11410 131 jeremybenn
fi
11411 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11412
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11413
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11414 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11415 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11416 131 jeremybenn
_ACEOF
11417
 
11418
fi
11419
 
11420
done
11421
 
11422
 
11423
 
11424
for ac_header in sys/wait.h wait.h
11425
do
11426 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11427
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11428
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11430
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431
  echo $ECHO_N "(cached) $ECHO_C" >&6
11432 131 jeremybenn
fi
11433 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11434
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11435 131 jeremybenn
else
11436
  # Is the header compilable?
11437 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11439 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11440
/* confdefs.h.  */
11441
_ACEOF
11442
cat confdefs.h >>conftest.$ac_ext
11443
cat >>conftest.$ac_ext <<_ACEOF
11444
/* end confdefs.h.  */
11445
$ac_includes_default
11446
#include <$ac_header>
11447
_ACEOF
11448
rm -f conftest.$ac_objext
11449 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450
  (eval $ac_compile) 2>conftest.er1
11451 131 jeremybenn
  ac_status=$?
11452
  grep -v '^ *+' conftest.er1 >conftest.err
11453
  rm -f conftest.er1
11454
  cat conftest.err >&5
11455 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456
  (exit $ac_status); } &&
11457
         { ac_try='test -z "$ac_c_werror_flag"
11458
                         || test ! -s conftest.err'
11459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460
  (eval $ac_try) 2>&5
11461
  ac_status=$?
11462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463
  (exit $ac_status); }; } &&
11464
         { ac_try='test -s conftest.$ac_objext'
11465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466
  (eval $ac_try) 2>&5
11467
  ac_status=$?
11468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469
  (exit $ac_status); }; }; then
11470 131 jeremybenn
  ac_header_compiler=yes
11471
else
11472 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11473 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11474
 
11475 225 jeremybenn
ac_header_compiler=no
11476 131 jeremybenn
fi
11477 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479
echo "${ECHO_T}$ac_header_compiler" >&6
11480 131 jeremybenn
 
11481
# Is the header present?
11482 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11484 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11485
/* confdefs.h.  */
11486
_ACEOF
11487
cat confdefs.h >>conftest.$ac_ext
11488
cat >>conftest.$ac_ext <<_ACEOF
11489
/* end confdefs.h.  */
11490
#include <$ac_header>
11491
_ACEOF
11492 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11493
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11494 131 jeremybenn
  ac_status=$?
11495
  grep -v '^ *+' conftest.er1 >conftest.err
11496
  rm -f conftest.er1
11497
  cat conftest.err >&5
11498 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499
  (exit $ac_status); } >/dev/null; then
11500
  if test -s conftest.err; then
11501
    ac_cpp_err=$ac_c_preproc_warn_flag
11502
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503
  else
11504
    ac_cpp_err=
11505
  fi
11506
else
11507
  ac_cpp_err=yes
11508
fi
11509
if test -z "$ac_cpp_err"; then
11510 131 jeremybenn
  ac_header_preproc=yes
11511
else
11512 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11513 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11514
 
11515
  ac_header_preproc=no
11516
fi
11517
rm -f conftest.err conftest.$ac_ext
11518 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519
echo "${ECHO_T}$ac_header_preproc" >&6
11520 131 jeremybenn
 
11521
# So?  What about this header?
11522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523
  yes:no: )
11524 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 131 jeremybenn
    ac_header_preproc=yes
11529
    ;;
11530
  no:yes:* )
11531 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11534
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11535
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11538
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11539
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543
    (
11544
      cat <<\_ASBOX
11545
## ------------------------------------------ ##
11546
## Report this to the AC_PACKAGE_NAME lists.  ##
11547
## ------------------------------------------ ##
11548
_ASBOX
11549
    ) |
11550
      sed "s/^/$as_me: WARNING:     /" >&2
11551 131 jeremybenn
    ;;
11552
esac
11553 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11556
  echo $ECHO_N "(cached) $ECHO_C" >&6
11557 131 jeremybenn
else
11558
  eval "$as_ac_Header=\$ac_header_preproc"
11559
fi
11560 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11561
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11562 131 jeremybenn
 
11563
fi
11564 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11566 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 131 jeremybenn
_ACEOF
11568
 
11569
fi
11570
 
11571
done
11572
 
11573
 
11574
 
11575
 
11576
for ac_header in termios.h termio.h sgtty.h
11577
do
11578 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11579
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11580
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11581
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11582
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11583
  echo $ECHO_N "(cached) $ECHO_C" >&6
11584 131 jeremybenn
fi
11585 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11586
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11587 131 jeremybenn
else
11588
  # Is the header compilable?
11589 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11591 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11592
/* confdefs.h.  */
11593
_ACEOF
11594
cat confdefs.h >>conftest.$ac_ext
11595
cat >>conftest.$ac_ext <<_ACEOF
11596
/* end confdefs.h.  */
11597
$ac_includes_default
11598
#include <$ac_header>
11599
_ACEOF
11600
rm -f conftest.$ac_objext
11601 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602
  (eval $ac_compile) 2>conftest.er1
11603 131 jeremybenn
  ac_status=$?
11604
  grep -v '^ *+' conftest.er1 >conftest.err
11605
  rm -f conftest.er1
11606
  cat conftest.err >&5
11607 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608
  (exit $ac_status); } &&
11609
         { ac_try='test -z "$ac_c_werror_flag"
11610
                         || test ! -s conftest.err'
11611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612
  (eval $ac_try) 2>&5
11613
  ac_status=$?
11614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615
  (exit $ac_status); }; } &&
11616
         { ac_try='test -s conftest.$ac_objext'
11617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618
  (eval $ac_try) 2>&5
11619
  ac_status=$?
11620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621
  (exit $ac_status); }; }; then
11622 131 jeremybenn
  ac_header_compiler=yes
11623
else
11624 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11625 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11626
 
11627 225 jeremybenn
ac_header_compiler=no
11628 131 jeremybenn
fi
11629 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11631
echo "${ECHO_T}$ac_header_compiler" >&6
11632 131 jeremybenn
 
11633
# Is the header present?
11634 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11635
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11636 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11637
/* confdefs.h.  */
11638
_ACEOF
11639
cat confdefs.h >>conftest.$ac_ext
11640
cat >>conftest.$ac_ext <<_ACEOF
11641
/* end confdefs.h.  */
11642
#include <$ac_header>
11643
_ACEOF
11644 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11645
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11646 131 jeremybenn
  ac_status=$?
11647
  grep -v '^ *+' conftest.er1 >conftest.err
11648
  rm -f conftest.er1
11649
  cat conftest.err >&5
11650 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651
  (exit $ac_status); } >/dev/null; then
11652
  if test -s conftest.err; then
11653
    ac_cpp_err=$ac_c_preproc_warn_flag
11654
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11655
  else
11656
    ac_cpp_err=
11657
  fi
11658
else
11659
  ac_cpp_err=yes
11660
fi
11661
if test -z "$ac_cpp_err"; then
11662 131 jeremybenn
  ac_header_preproc=yes
11663
else
11664 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11665 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11666
 
11667
  ac_header_preproc=no
11668
fi
11669
rm -f conftest.err conftest.$ac_ext
11670 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11671
echo "${ECHO_T}$ac_header_preproc" >&6
11672 131 jeremybenn
 
11673
# So?  What about this header?
11674
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11675
  yes:no: )
11676 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11677
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11678
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11679
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11680 131 jeremybenn
    ac_header_preproc=yes
11681
    ;;
11682
  no:yes:* )
11683 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11684
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11685
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11686
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11687
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11688
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11689
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11690
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11691
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11692
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11693
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11694
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11695
    (
11696
      cat <<\_ASBOX
11697
## ------------------------------------------ ##
11698
## Report this to the AC_PACKAGE_NAME lists.  ##
11699
## ------------------------------------------ ##
11700
_ASBOX
11701
    ) |
11702
      sed "s/^/$as_me: WARNING:     /" >&2
11703 131 jeremybenn
    ;;
11704
esac
11705 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11706
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708
  echo $ECHO_N "(cached) $ECHO_C" >&6
11709 131 jeremybenn
else
11710
  eval "$as_ac_Header=\$ac_header_preproc"
11711
fi
11712 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11714 131 jeremybenn
 
11715
fi
11716 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11717 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11718 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11719 131 jeremybenn
_ACEOF
11720
 
11721
fi
11722
 
11723
done
11724
 
11725
 
11726
for ac_header in unistd.h
11727
do
11728 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11731
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733
  echo $ECHO_N "(cached) $ECHO_C" >&6
11734 131 jeremybenn
fi
11735 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737 131 jeremybenn
else
11738
  # Is the header compilable?
11739 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11742
/* confdefs.h.  */
11743
_ACEOF
11744
cat confdefs.h >>conftest.$ac_ext
11745
cat >>conftest.$ac_ext <<_ACEOF
11746
/* end confdefs.h.  */
11747
$ac_includes_default
11748
#include <$ac_header>
11749
_ACEOF
11750
rm -f conftest.$ac_objext
11751 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752
  (eval $ac_compile) 2>conftest.er1
11753 131 jeremybenn
  ac_status=$?
11754
  grep -v '^ *+' conftest.er1 >conftest.err
11755
  rm -f conftest.er1
11756
  cat conftest.err >&5
11757 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758
  (exit $ac_status); } &&
11759
         { ac_try='test -z "$ac_c_werror_flag"
11760
                         || test ! -s conftest.err'
11761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762
  (eval $ac_try) 2>&5
11763
  ac_status=$?
11764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765
  (exit $ac_status); }; } &&
11766
         { ac_try='test -s conftest.$ac_objext'
11767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768
  (eval $ac_try) 2>&5
11769
  ac_status=$?
11770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771
  (exit $ac_status); }; }; then
11772 131 jeremybenn
  ac_header_compiler=yes
11773
else
11774 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11775 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11776
 
11777 225 jeremybenn
ac_header_compiler=no
11778 131 jeremybenn
fi
11779 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781
echo "${ECHO_T}$ac_header_compiler" >&6
11782 131 jeremybenn
 
11783
# Is the header present?
11784 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11787
/* confdefs.h.  */
11788
_ACEOF
11789
cat confdefs.h >>conftest.$ac_ext
11790
cat >>conftest.$ac_ext <<_ACEOF
11791
/* end confdefs.h.  */
11792
#include <$ac_header>
11793
_ACEOF
11794 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 131 jeremybenn
  ac_status=$?
11797
  grep -v '^ *+' conftest.er1 >conftest.err
11798
  rm -f conftest.er1
11799
  cat conftest.err >&5
11800 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801
  (exit $ac_status); } >/dev/null; then
11802
  if test -s conftest.err; then
11803
    ac_cpp_err=$ac_c_preproc_warn_flag
11804
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805
  else
11806
    ac_cpp_err=
11807
  fi
11808
else
11809
  ac_cpp_err=yes
11810
fi
11811
if test -z "$ac_cpp_err"; then
11812 131 jeremybenn
  ac_header_preproc=yes
11813
else
11814 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11815 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11816
 
11817
  ac_header_preproc=no
11818
fi
11819
rm -f conftest.err conftest.$ac_ext
11820 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821
echo "${ECHO_T}$ac_header_preproc" >&6
11822 131 jeremybenn
 
11823
# So?  What about this header?
11824
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825
  yes:no: )
11826 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 131 jeremybenn
    ac_header_preproc=yes
11831
    ;;
11832
  no:yes:* )
11833 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11836
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11837
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11840
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11841
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845
    (
11846
      cat <<\_ASBOX
11847
## ------------------------------------------ ##
11848
## Report this to the AC_PACKAGE_NAME lists.  ##
11849
## ------------------------------------------ ##
11850
_ASBOX
11851
    ) |
11852
      sed "s/^/$as_me: WARNING:     /" >&2
11853 131 jeremybenn
    ;;
11854
esac
11855 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
11856
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858
  echo $ECHO_N "(cached) $ECHO_C" >&6
11859 131 jeremybenn
else
11860
  eval "$as_ac_Header=\$ac_header_preproc"
11861
fi
11862 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864 131 jeremybenn
 
11865
fi
11866 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11868 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869 131 jeremybenn
_ACEOF
11870
 
11871
fi
11872
 
11873
done
11874
 
11875
 
11876
# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11877
# between  and  that would cause AC_CHECK_HEADERS to
11878
# think that we don't have  if we're using GCC.
11879
case $host_os in
11880
  solaris2.[789])
11881
    if test "$GCC" = yes; then
11882
 
11883
cat >>confdefs.h <<\_ACEOF
11884
#define _MSE_INT_H 1
11885
_ACEOF
11886
 
11887
    fi ;;
11888
esac
11889
 
11890
 
11891
 
11892
 
11893
for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
11894
do
11895 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11898
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11899
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11900
  echo $ECHO_N "(cached) $ECHO_C" >&6
11901 131 jeremybenn
fi
11902 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11903
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11904 131 jeremybenn
else
11905
  # Is the header compilable?
11906 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11907
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11908 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11909
/* confdefs.h.  */
11910
_ACEOF
11911
cat confdefs.h >>conftest.$ac_ext
11912
cat >>conftest.$ac_ext <<_ACEOF
11913
/* end confdefs.h.  */
11914
$ac_includes_default
11915
#include <$ac_header>
11916
_ACEOF
11917
rm -f conftest.$ac_objext
11918 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11919
  (eval $ac_compile) 2>conftest.er1
11920 131 jeremybenn
  ac_status=$?
11921
  grep -v '^ *+' conftest.er1 >conftest.err
11922
  rm -f conftest.er1
11923
  cat conftest.err >&5
11924 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925
  (exit $ac_status); } &&
11926
         { ac_try='test -z "$ac_c_werror_flag"
11927
                         || test ! -s conftest.err'
11928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929
  (eval $ac_try) 2>&5
11930
  ac_status=$?
11931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932
  (exit $ac_status); }; } &&
11933
         { ac_try='test -s conftest.$ac_objext'
11934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935
  (eval $ac_try) 2>&5
11936
  ac_status=$?
11937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938
  (exit $ac_status); }; }; then
11939 131 jeremybenn
  ac_header_compiler=yes
11940
else
11941 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11942 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11943
 
11944 225 jeremybenn
ac_header_compiler=no
11945 131 jeremybenn
fi
11946 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11948
echo "${ECHO_T}$ac_header_compiler" >&6
11949 131 jeremybenn
 
11950
# Is the header present?
11951 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11952
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11953 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11954
/* confdefs.h.  */
11955
_ACEOF
11956
cat confdefs.h >>conftest.$ac_ext
11957
cat >>conftest.$ac_ext <<_ACEOF
11958
/* end confdefs.h.  */
11959
#include <$ac_header>
11960
_ACEOF
11961 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11962
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11963 131 jeremybenn
  ac_status=$?
11964
  grep -v '^ *+' conftest.er1 >conftest.err
11965
  rm -f conftest.er1
11966
  cat conftest.err >&5
11967 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968
  (exit $ac_status); } >/dev/null; then
11969
  if test -s conftest.err; then
11970
    ac_cpp_err=$ac_c_preproc_warn_flag
11971
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11972
  else
11973
    ac_cpp_err=
11974
  fi
11975
else
11976
  ac_cpp_err=yes
11977
fi
11978
if test -z "$ac_cpp_err"; then
11979 131 jeremybenn
  ac_header_preproc=yes
11980
else
11981 225 jeremybenn
  echo "$as_me: failed program was:" >&5
11982 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11983
 
11984
  ac_header_preproc=no
11985
fi
11986
rm -f conftest.err conftest.$ac_ext
11987 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11988
echo "${ECHO_T}$ac_header_preproc" >&6
11989 131 jeremybenn
 
11990
# So?  What about this header?
11991
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11992
  yes:no: )
11993 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11994
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11995
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11996
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11997 131 jeremybenn
    ac_header_preproc=yes
11998
    ;;
11999
  no:yes:* )
12000 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12001
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12002
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12003
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12004
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12005
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12006
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12007
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12008
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12009
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12010
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12011
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12012
    (
12013
      cat <<\_ASBOX
12014
## ------------------------------------------ ##
12015
## Report this to the AC_PACKAGE_NAME lists.  ##
12016
## ------------------------------------------ ##
12017
_ASBOX
12018
    ) |
12019
      sed "s/^/$as_me: WARNING:     /" >&2
12020 131 jeremybenn
    ;;
12021
esac
12022 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
12023
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12024
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12025
  echo $ECHO_N "(cached) $ECHO_C" >&6
12026 131 jeremybenn
else
12027
  eval "$as_ac_Header=\$ac_header_preproc"
12028
fi
12029 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12030
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12031 131 jeremybenn
 
12032
fi
12033 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12034 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12035 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12036 131 jeremybenn
_ACEOF
12037
 
12038
fi
12039
 
12040
done
12041
 
12042
 
12043
for ac_header in ncurses/term.h
12044
do
12045 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12046
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12047
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12048
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12049
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12050
  echo $ECHO_N "(cached) $ECHO_C" >&6
12051 131 jeremybenn
fi
12052 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12053
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12054 131 jeremybenn
else
12055
  # Is the header compilable?
12056 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12057
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12058 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12059
/* confdefs.h.  */
12060
_ACEOF
12061
cat confdefs.h >>conftest.$ac_ext
12062
cat >>conftest.$ac_ext <<_ACEOF
12063
/* end confdefs.h.  */
12064
$ac_includes_default
12065
#include <$ac_header>
12066
_ACEOF
12067
rm -f conftest.$ac_objext
12068 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069
  (eval $ac_compile) 2>conftest.er1
12070 131 jeremybenn
  ac_status=$?
12071
  grep -v '^ *+' conftest.er1 >conftest.err
12072
  rm -f conftest.er1
12073
  cat conftest.err >&5
12074 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075
  (exit $ac_status); } &&
12076
         { ac_try='test -z "$ac_c_werror_flag"
12077
                         || test ! -s conftest.err'
12078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079
  (eval $ac_try) 2>&5
12080
  ac_status=$?
12081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
  (exit $ac_status); }; } &&
12083
         { ac_try='test -s conftest.$ac_objext'
12084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085
  (eval $ac_try) 2>&5
12086
  ac_status=$?
12087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088
  (exit $ac_status); }; }; then
12089 131 jeremybenn
  ac_header_compiler=yes
12090
else
12091 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12092 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12093
 
12094 225 jeremybenn
ac_header_compiler=no
12095 131 jeremybenn
fi
12096 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12098
echo "${ECHO_T}$ac_header_compiler" >&6
12099 131 jeremybenn
 
12100
# Is the header present?
12101 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12102
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12103 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12104
/* confdefs.h.  */
12105
_ACEOF
12106
cat confdefs.h >>conftest.$ac_ext
12107
cat >>conftest.$ac_ext <<_ACEOF
12108
/* end confdefs.h.  */
12109
#include <$ac_header>
12110
_ACEOF
12111 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12112
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12113 131 jeremybenn
  ac_status=$?
12114
  grep -v '^ *+' conftest.er1 >conftest.err
12115
  rm -f conftest.er1
12116
  cat conftest.err >&5
12117 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118
  (exit $ac_status); } >/dev/null; then
12119
  if test -s conftest.err; then
12120
    ac_cpp_err=$ac_c_preproc_warn_flag
12121
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12122
  else
12123
    ac_cpp_err=
12124
  fi
12125
else
12126
  ac_cpp_err=yes
12127
fi
12128
if test -z "$ac_cpp_err"; then
12129 131 jeremybenn
  ac_header_preproc=yes
12130
else
12131 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12132 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12133
 
12134
  ac_header_preproc=no
12135
fi
12136
rm -f conftest.err conftest.$ac_ext
12137 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12138
echo "${ECHO_T}$ac_header_preproc" >&6
12139 131 jeremybenn
 
12140
# So?  What about this header?
12141
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12142
  yes:no: )
12143 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12144
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12145
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12146
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12147 131 jeremybenn
    ac_header_preproc=yes
12148
    ;;
12149
  no:yes:* )
12150 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12151
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12152
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12153
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12154
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12155
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12156
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12157
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12158
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12159
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12160
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12161
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12162
    (
12163
      cat <<\_ASBOX
12164
## ------------------------------------------ ##
12165
## Report this to the AC_PACKAGE_NAME lists.  ##
12166
## ------------------------------------------ ##
12167
_ASBOX
12168
    ) |
12169
      sed "s/^/$as_me: WARNING:     /" >&2
12170 131 jeremybenn
    ;;
12171
esac
12172 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
12173
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12174
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12175
  echo $ECHO_N "(cached) $ECHO_C" >&6
12176 131 jeremybenn
else
12177
  eval "$as_ac_Header=\$ac_header_preproc"
12178
fi
12179 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12180
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12181 131 jeremybenn
 
12182
fi
12183 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12184 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12185 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12186 131 jeremybenn
_ACEOF
12187
 
12188
fi
12189
 
12190
done
12191
 
12192
 
12193
for ac_header in term.h
12194
do
12195 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12196
echo "$as_me:$LINENO: checking for $ac_header" >&5
12197
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12198
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12199
  echo $ECHO_N "(cached) $ECHO_C" >&6
12200 131 jeremybenn
else
12201
  cat >conftest.$ac_ext <<_ACEOF
12202
/* confdefs.h.  */
12203
_ACEOF
12204
cat confdefs.h >>conftest.$ac_ext
12205
cat >>conftest.$ac_ext <<_ACEOF
12206
/* end confdefs.h.  */
12207
#if HAVE_CURSES_H
12208
# include 
12209
#endif
12210
 
12211
 
12212
#include <$ac_header>
12213
_ACEOF
12214
rm -f conftest.$ac_objext
12215 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216
  (eval $ac_compile) 2>conftest.er1
12217 131 jeremybenn
  ac_status=$?
12218
  grep -v '^ *+' conftest.er1 >conftest.err
12219
  rm -f conftest.er1
12220
  cat conftest.err >&5
12221 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222
  (exit $ac_status); } &&
12223
         { ac_try='test -z "$ac_c_werror_flag"
12224
                         || test ! -s conftest.err'
12225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226
  (eval $ac_try) 2>&5
12227
  ac_status=$?
12228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229
  (exit $ac_status); }; } &&
12230
         { ac_try='test -s conftest.$ac_objext'
12231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232
  (eval $ac_try) 2>&5
12233
  ac_status=$?
12234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235
  (exit $ac_status); }; }; then
12236 131 jeremybenn
  eval "$as_ac_Header=yes"
12237
else
12238 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12239 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12240
 
12241 225 jeremybenn
eval "$as_ac_Header=no"
12242 131 jeremybenn
fi
12243 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12244 131 jeremybenn
fi
12245 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12246
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12247
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12248 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12249 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12250 131 jeremybenn
_ACEOF
12251
 
12252
fi
12253
 
12254
done
12255
 
12256
 
12257
# Check for HP/UX 64-bit shared library support
12258
 
12259
for ac_header in elf_hp.h
12260
do
12261 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12264
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12265
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12266
  echo $ECHO_N "(cached) $ECHO_C" >&6
12267 131 jeremybenn
fi
12268 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12270 131 jeremybenn
else
12271
  # Is the header compilable?
12272 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12273
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12274 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12275
/* confdefs.h.  */
12276
_ACEOF
12277
cat confdefs.h >>conftest.$ac_ext
12278
cat >>conftest.$ac_ext <<_ACEOF
12279
/* end confdefs.h.  */
12280
$ac_includes_default
12281
#include <$ac_header>
12282
_ACEOF
12283
rm -f conftest.$ac_objext
12284 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285
  (eval $ac_compile) 2>conftest.er1
12286 131 jeremybenn
  ac_status=$?
12287
  grep -v '^ *+' conftest.er1 >conftest.err
12288
  rm -f conftest.er1
12289
  cat conftest.err >&5
12290 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291
  (exit $ac_status); } &&
12292
         { ac_try='test -z "$ac_c_werror_flag"
12293
                         || test ! -s conftest.err'
12294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295
  (eval $ac_try) 2>&5
12296
  ac_status=$?
12297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298
  (exit $ac_status); }; } &&
12299
         { ac_try='test -s conftest.$ac_objext'
12300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301
  (eval $ac_try) 2>&5
12302
  ac_status=$?
12303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304
  (exit $ac_status); }; }; then
12305 131 jeremybenn
  ac_header_compiler=yes
12306
else
12307 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12308 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12309
 
12310 225 jeremybenn
ac_header_compiler=no
12311 131 jeremybenn
fi
12312 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12314
echo "${ECHO_T}$ac_header_compiler" >&6
12315 131 jeremybenn
 
12316
# Is the header present?
12317 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12318
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12319 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12320
/* confdefs.h.  */
12321
_ACEOF
12322
cat confdefs.h >>conftest.$ac_ext
12323
cat >>conftest.$ac_ext <<_ACEOF
12324
/* end confdefs.h.  */
12325
#include <$ac_header>
12326
_ACEOF
12327 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12328
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12329 131 jeremybenn
  ac_status=$?
12330
  grep -v '^ *+' conftest.er1 >conftest.err
12331
  rm -f conftest.er1
12332
  cat conftest.err >&5
12333 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
  (exit $ac_status); } >/dev/null; then
12335
  if test -s conftest.err; then
12336
    ac_cpp_err=$ac_c_preproc_warn_flag
12337
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12338
  else
12339
    ac_cpp_err=
12340
  fi
12341
else
12342
  ac_cpp_err=yes
12343
fi
12344
if test -z "$ac_cpp_err"; then
12345 131 jeremybenn
  ac_header_preproc=yes
12346
else
12347 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12348 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12349
 
12350
  ac_header_preproc=no
12351
fi
12352
rm -f conftest.err conftest.$ac_ext
12353 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12354
echo "${ECHO_T}$ac_header_preproc" >&6
12355 131 jeremybenn
 
12356
# So?  What about this header?
12357
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12358
  yes:no: )
12359 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12360
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12361
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12362
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12363 131 jeremybenn
    ac_header_preproc=yes
12364
    ;;
12365
  no:yes:* )
12366 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12367
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12368
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12369
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12370
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12371
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12372
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12373
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12374
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12375
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12376
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12377
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12378
    (
12379
      cat <<\_ASBOX
12380
## ------------------------------------------ ##
12381
## Report this to the AC_PACKAGE_NAME lists.  ##
12382
## ------------------------------------------ ##
12383
_ASBOX
12384
    ) |
12385
      sed "s/^/$as_me: WARNING:     /" >&2
12386 131 jeremybenn
    ;;
12387
esac
12388 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
12389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12390
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12391
  echo $ECHO_N "(cached) $ECHO_C" >&6
12392 131 jeremybenn
else
12393
  eval "$as_ac_Header=\$ac_header_preproc"
12394
fi
12395 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12396
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397 131 jeremybenn
 
12398
fi
12399 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12400 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12401 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12402 131 jeremybenn
_ACEOF
12403
 
12404
fi
12405
 
12406
done
12407
 
12408
 
12409
# FIXME: kettenis/20030102: In most cases we include these
12410
# unconditionally, so what's the point in checking these?
12411
 
12412
 
12413
for ac_header in ctype.h time.h
12414
do
12415 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12416
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12417
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12418
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12419
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12420
  echo $ECHO_N "(cached) $ECHO_C" >&6
12421 131 jeremybenn
fi
12422 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12423
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12424 131 jeremybenn
else
12425
  # Is the header compilable?
12426 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12427
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12428 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12429
/* confdefs.h.  */
12430
_ACEOF
12431
cat confdefs.h >>conftest.$ac_ext
12432
cat >>conftest.$ac_ext <<_ACEOF
12433
/* end confdefs.h.  */
12434
$ac_includes_default
12435
#include <$ac_header>
12436
_ACEOF
12437
rm -f conftest.$ac_objext
12438 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439
  (eval $ac_compile) 2>conftest.er1
12440 131 jeremybenn
  ac_status=$?
12441
  grep -v '^ *+' conftest.er1 >conftest.err
12442
  rm -f conftest.er1
12443
  cat conftest.err >&5
12444 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445
  (exit $ac_status); } &&
12446
         { ac_try='test -z "$ac_c_werror_flag"
12447
                         || test ! -s conftest.err'
12448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449
  (eval $ac_try) 2>&5
12450
  ac_status=$?
12451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
  (exit $ac_status); }; } &&
12453
         { ac_try='test -s conftest.$ac_objext'
12454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455
  (eval $ac_try) 2>&5
12456
  ac_status=$?
12457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458
  (exit $ac_status); }; }; then
12459 131 jeremybenn
  ac_header_compiler=yes
12460
else
12461 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12462 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12463
 
12464 225 jeremybenn
ac_header_compiler=no
12465 131 jeremybenn
fi
12466 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12468
echo "${ECHO_T}$ac_header_compiler" >&6
12469 131 jeremybenn
 
12470
# Is the header present?
12471 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12472
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12473 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12474
/* confdefs.h.  */
12475
_ACEOF
12476
cat confdefs.h >>conftest.$ac_ext
12477
cat >>conftest.$ac_ext <<_ACEOF
12478
/* end confdefs.h.  */
12479
#include <$ac_header>
12480
_ACEOF
12481 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12482
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12483 131 jeremybenn
  ac_status=$?
12484
  grep -v '^ *+' conftest.er1 >conftest.err
12485
  rm -f conftest.er1
12486
  cat conftest.err >&5
12487 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488
  (exit $ac_status); } >/dev/null; then
12489
  if test -s conftest.err; then
12490
    ac_cpp_err=$ac_c_preproc_warn_flag
12491
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12492
  else
12493
    ac_cpp_err=
12494
  fi
12495
else
12496
  ac_cpp_err=yes
12497
fi
12498
if test -z "$ac_cpp_err"; then
12499 131 jeremybenn
  ac_header_preproc=yes
12500
else
12501 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12502 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12503
 
12504
  ac_header_preproc=no
12505
fi
12506
rm -f conftest.err conftest.$ac_ext
12507 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12508
echo "${ECHO_T}$ac_header_preproc" >&6
12509 131 jeremybenn
 
12510
# So?  What about this header?
12511
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12512
  yes:no: )
12513 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12514
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12515
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12516
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12517 131 jeremybenn
    ac_header_preproc=yes
12518
    ;;
12519
  no:yes:* )
12520 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12521
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12522
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12523
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12524
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12525
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12526
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12527
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12528
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12529
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12530
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12531
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12532
    (
12533
      cat <<\_ASBOX
12534
## ------------------------------------------ ##
12535
## Report this to the AC_PACKAGE_NAME lists.  ##
12536
## ------------------------------------------ ##
12537
_ASBOX
12538
    ) |
12539
      sed "s/^/$as_me: WARNING:     /" >&2
12540 131 jeremybenn
    ;;
12541
esac
12542 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
12543
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12544
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545
  echo $ECHO_N "(cached) $ECHO_C" >&6
12546 131 jeremybenn
else
12547
  eval "$as_ac_Header=\$ac_header_preproc"
12548
fi
12549 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12550
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12551 131 jeremybenn
 
12552
fi
12553 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12554 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12555 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12556 131 jeremybenn
_ACEOF
12557
 
12558
fi
12559
 
12560
done
12561
 
12562
 
12563
# Create a header we can use portably to get the standard integer types.
12564
 
12565
 
12566
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12567
 
12568
acx_cv_header_stdint=stddef.h
12569
acx_cv_header_stdint_kind="(already complete)"
12570
for i in stdint.h $inttype_headers; do
12571
  unset ac_cv_type_uintptr_t
12572
  unset ac_cv_type_uintmax_t
12573
  unset ac_cv_type_int_least32_t
12574
  unset ac_cv_type_int_fast32_t
12575
  unset ac_cv_type_uint64_t
12576 225 jeremybenn
  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12577
  echo "$as_me:$LINENO: checking for uintmax_t" >&5
12578
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12579 131 jeremybenn
if test "${ac_cv_type_uintmax_t+set}" = set; then
12580 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12581 131 jeremybenn
else
12582 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12583 131 jeremybenn
/* confdefs.h.  */
12584
_ACEOF
12585
cat confdefs.h >>conftest.$ac_ext
12586
cat >>conftest.$ac_ext <<_ACEOF
12587
/* end confdefs.h.  */
12588
#include 
12589
#include <$i>
12590
 
12591
int
12592
main ()
12593
{
12594 225 jeremybenn
if ((uintmax_t *) 0)
12595
  return 0;
12596 131 jeremybenn
if (sizeof (uintmax_t))
12597 225 jeremybenn
  return 0;
12598 213 jeremybenn
  ;
12599 131 jeremybenn
  return 0;
12600 213 jeremybenn
}
12601
_ACEOF
12602
rm -f conftest.$ac_objext
12603 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604
  (eval $ac_compile) 2>conftest.er1
12605 213 jeremybenn
  ac_status=$?
12606
  grep -v '^ *+' conftest.er1 >conftest.err
12607
  rm -f conftest.er1
12608
  cat conftest.err >&5
12609 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610
  (exit $ac_status); } &&
12611
         { ac_try='test -z "$ac_c_werror_flag"
12612
                         || test ! -s conftest.err'
12613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614
  (eval $ac_try) 2>&5
12615 131 jeremybenn
  ac_status=$?
12616 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617
  (exit $ac_status); }; } &&
12618
         { ac_try='test -s conftest.$ac_objext'
12619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620
  (eval $ac_try) 2>&5
12621
  ac_status=$?
12622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623
  (exit $ac_status); }; }; then
12624
  ac_cv_type_uintmax_t=yes
12625 131 jeremybenn
else
12626 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12627 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12628
 
12629 225 jeremybenn
ac_cv_type_uintmax_t=no
12630 131 jeremybenn
fi
12631 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 131 jeremybenn
fi
12633 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12634
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12635
if test $ac_cv_type_uintmax_t = yes; then
12636 131 jeremybenn
  acx_cv_header_stdint=$i
12637
else
12638
  continue
12639
fi
12640
 
12641 225 jeremybenn
  echo "$as_me:$LINENO: checking for uintptr_t" >&5
12642
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12643 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
12644 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12645 131 jeremybenn
else
12646 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12647 131 jeremybenn
/* confdefs.h.  */
12648
_ACEOF
12649
cat confdefs.h >>conftest.$ac_ext
12650
cat >>conftest.$ac_ext <<_ACEOF
12651
/* end confdefs.h.  */
12652
#include 
12653
#include <$i>
12654
 
12655
int
12656
main ()
12657
{
12658 225 jeremybenn
if ((uintptr_t *) 0)
12659
  return 0;
12660 131 jeremybenn
if (sizeof (uintptr_t))
12661 225 jeremybenn
  return 0;
12662 213 jeremybenn
  ;
12663 131 jeremybenn
  return 0;
12664 213 jeremybenn
}
12665
_ACEOF
12666
rm -f conftest.$ac_objext
12667 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668
  (eval $ac_compile) 2>conftest.er1
12669 213 jeremybenn
  ac_status=$?
12670
  grep -v '^ *+' conftest.er1 >conftest.err
12671
  rm -f conftest.er1
12672
  cat conftest.err >&5
12673 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674
  (exit $ac_status); } &&
12675
         { ac_try='test -z "$ac_c_werror_flag"
12676
                         || test ! -s conftest.err'
12677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678
  (eval $ac_try) 2>&5
12679 131 jeremybenn
  ac_status=$?
12680 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681
  (exit $ac_status); }; } &&
12682
         { ac_try='test -s conftest.$ac_objext'
12683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684
  (eval $ac_try) 2>&5
12685
  ac_status=$?
12686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687
  (exit $ac_status); }; }; then
12688
  ac_cv_type_uintptr_t=yes
12689 131 jeremybenn
else
12690 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12691 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12692
 
12693 225 jeremybenn
ac_cv_type_uintptr_t=no
12694 131 jeremybenn
fi
12695 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12696 131 jeremybenn
fi
12697 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12698
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12699
if test $ac_cv_type_uintptr_t = yes; then
12700 131 jeremybenn
  :
12701
else
12702
  acx_cv_header_stdint_kind="(mostly complete)"
12703
fi
12704
 
12705 225 jeremybenn
  echo "$as_me:$LINENO: checking for int_least32_t" >&5
12706
echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12707 131 jeremybenn
if test "${ac_cv_type_int_least32_t+set}" = set; then
12708 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12709 131 jeremybenn
else
12710 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12711 131 jeremybenn
/* confdefs.h.  */
12712
_ACEOF
12713
cat confdefs.h >>conftest.$ac_ext
12714
cat >>conftest.$ac_ext <<_ACEOF
12715
/* end confdefs.h.  */
12716
#include 
12717
#include <$i>
12718
 
12719
int
12720
main ()
12721
{
12722 225 jeremybenn
if ((int_least32_t *) 0)
12723
  return 0;
12724 131 jeremybenn
if (sizeof (int_least32_t))
12725 225 jeremybenn
  return 0;
12726 213 jeremybenn
  ;
12727 131 jeremybenn
  return 0;
12728 213 jeremybenn
}
12729
_ACEOF
12730
rm -f conftest.$ac_objext
12731 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732
  (eval $ac_compile) 2>conftest.er1
12733 213 jeremybenn
  ac_status=$?
12734
  grep -v '^ *+' conftest.er1 >conftest.err
12735
  rm -f conftest.er1
12736
  cat conftest.err >&5
12737 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738
  (exit $ac_status); } &&
12739
         { ac_try='test -z "$ac_c_werror_flag"
12740
                         || test ! -s conftest.err'
12741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742
  (eval $ac_try) 2>&5
12743 131 jeremybenn
  ac_status=$?
12744 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745
  (exit $ac_status); }; } &&
12746
         { ac_try='test -s conftest.$ac_objext'
12747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748
  (eval $ac_try) 2>&5
12749
  ac_status=$?
12750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751
  (exit $ac_status); }; }; then
12752
  ac_cv_type_int_least32_t=yes
12753 131 jeremybenn
else
12754 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12755 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12756
 
12757 225 jeremybenn
ac_cv_type_int_least32_t=no
12758 131 jeremybenn
fi
12759 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 131 jeremybenn
fi
12761 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12762
echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12763
if test $ac_cv_type_int_least32_t = yes; then
12764 131 jeremybenn
  :
12765
else
12766
  acx_cv_header_stdint_kind="(mostly complete)"
12767
fi
12768
 
12769 225 jeremybenn
  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12770
echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12771 131 jeremybenn
if test "${ac_cv_type_int_fast32_t+set}" = set; then
12772 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12773 131 jeremybenn
else
12774 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12775 131 jeremybenn
/* confdefs.h.  */
12776
_ACEOF
12777
cat confdefs.h >>conftest.$ac_ext
12778
cat >>conftest.$ac_ext <<_ACEOF
12779
/* end confdefs.h.  */
12780
#include 
12781
#include <$i>
12782
 
12783
int
12784
main ()
12785
{
12786 225 jeremybenn
if ((int_fast32_t *) 0)
12787
  return 0;
12788 131 jeremybenn
if (sizeof (int_fast32_t))
12789 225 jeremybenn
  return 0;
12790 213 jeremybenn
  ;
12791 131 jeremybenn
  return 0;
12792 213 jeremybenn
}
12793
_ACEOF
12794
rm -f conftest.$ac_objext
12795 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796
  (eval $ac_compile) 2>conftest.er1
12797 213 jeremybenn
  ac_status=$?
12798
  grep -v '^ *+' conftest.er1 >conftest.err
12799
  rm -f conftest.er1
12800
  cat conftest.err >&5
12801 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802
  (exit $ac_status); } &&
12803
         { ac_try='test -z "$ac_c_werror_flag"
12804
                         || test ! -s conftest.err'
12805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806
  (eval $ac_try) 2>&5
12807 131 jeremybenn
  ac_status=$?
12808 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809
  (exit $ac_status); }; } &&
12810
         { ac_try='test -s conftest.$ac_objext'
12811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812
  (eval $ac_try) 2>&5
12813
  ac_status=$?
12814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815
  (exit $ac_status); }; }; then
12816
  ac_cv_type_int_fast32_t=yes
12817 131 jeremybenn
else
12818 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12819 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12820
 
12821 225 jeremybenn
ac_cv_type_int_fast32_t=no
12822 131 jeremybenn
fi
12823 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12824 131 jeremybenn
fi
12825 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12826
echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12827
if test $ac_cv_type_int_fast32_t = yes; then
12828 131 jeremybenn
  :
12829
else
12830
  acx_cv_header_stdint_kind="(mostly complete)"
12831
fi
12832
 
12833 225 jeremybenn
  echo "$as_me:$LINENO: checking for uint64_t" >&5
12834
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12835 131 jeremybenn
if test "${ac_cv_type_uint64_t+set}" = set; then
12836 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12837 131 jeremybenn
else
12838 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12839 131 jeremybenn
/* confdefs.h.  */
12840
_ACEOF
12841
cat confdefs.h >>conftest.$ac_ext
12842
cat >>conftest.$ac_ext <<_ACEOF
12843
/* end confdefs.h.  */
12844
#include 
12845
#include <$i>
12846
 
12847
int
12848
main ()
12849
{
12850 225 jeremybenn
if ((uint64_t *) 0)
12851
  return 0;
12852 131 jeremybenn
if (sizeof (uint64_t))
12853 225 jeremybenn
  return 0;
12854 213 jeremybenn
  ;
12855 131 jeremybenn
  return 0;
12856 213 jeremybenn
}
12857
_ACEOF
12858
rm -f conftest.$ac_objext
12859 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860
  (eval $ac_compile) 2>conftest.er1
12861 213 jeremybenn
  ac_status=$?
12862
  grep -v '^ *+' conftest.er1 >conftest.err
12863
  rm -f conftest.er1
12864
  cat conftest.err >&5
12865 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866
  (exit $ac_status); } &&
12867
         { ac_try='test -z "$ac_c_werror_flag"
12868
                         || test ! -s conftest.err'
12869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870
  (eval $ac_try) 2>&5
12871 131 jeremybenn
  ac_status=$?
12872 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873
  (exit $ac_status); }; } &&
12874
         { ac_try='test -s conftest.$ac_objext'
12875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876
  (eval $ac_try) 2>&5
12877
  ac_status=$?
12878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879
  (exit $ac_status); }; }; then
12880
  ac_cv_type_uint64_t=yes
12881 131 jeremybenn
else
12882 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12883 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12884
 
12885 225 jeremybenn
ac_cv_type_uint64_t=no
12886 131 jeremybenn
fi
12887 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12888 131 jeremybenn
fi
12889 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12890
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12891
if test $ac_cv_type_uint64_t = yes; then
12892 131 jeremybenn
  :
12893
else
12894
  acx_cv_header_stdint_kind="(lacks uint64_t)"
12895
fi
12896
 
12897
  break
12898
done
12899
if test "$acx_cv_header_stdint" = stddef.h; then
12900
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
12901
  for i in stdint.h $inttype_headers; do
12902
    unset ac_cv_type_uintptr_t
12903
    unset ac_cv_type_uint32_t
12904
    unset ac_cv_type_uint64_t
12905 225 jeremybenn
    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12906
    echo "$as_me:$LINENO: checking for uint32_t" >&5
12907
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12908 131 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
12909 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12910 131 jeremybenn
else
12911 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12912 131 jeremybenn
/* confdefs.h.  */
12913
_ACEOF
12914
cat confdefs.h >>conftest.$ac_ext
12915
cat >>conftest.$ac_ext <<_ACEOF
12916
/* end confdefs.h.  */
12917
#include 
12918
#include <$i>
12919
 
12920
int
12921
main ()
12922
{
12923 225 jeremybenn
if ((uint32_t *) 0)
12924
  return 0;
12925 131 jeremybenn
if (sizeof (uint32_t))
12926 225 jeremybenn
  return 0;
12927 213 jeremybenn
  ;
12928 131 jeremybenn
  return 0;
12929 213 jeremybenn
}
12930
_ACEOF
12931
rm -f conftest.$ac_objext
12932 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933
  (eval $ac_compile) 2>conftest.er1
12934 213 jeremybenn
  ac_status=$?
12935
  grep -v '^ *+' conftest.er1 >conftest.err
12936
  rm -f conftest.er1
12937
  cat conftest.err >&5
12938 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939
  (exit $ac_status); } &&
12940
         { ac_try='test -z "$ac_c_werror_flag"
12941
                         || test ! -s conftest.err'
12942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943
  (eval $ac_try) 2>&5
12944 131 jeremybenn
  ac_status=$?
12945 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946
  (exit $ac_status); }; } &&
12947
         { ac_try='test -s conftest.$ac_objext'
12948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949
  (eval $ac_try) 2>&5
12950
  ac_status=$?
12951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952
  (exit $ac_status); }; }; then
12953
  ac_cv_type_uint32_t=yes
12954 131 jeremybenn
else
12955 225 jeremybenn
  echo "$as_me: failed program was:" >&5
12956 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12957
 
12958 225 jeremybenn
ac_cv_type_uint32_t=no
12959 131 jeremybenn
fi
12960 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12961 131 jeremybenn
fi
12962 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12963
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12964
if test $ac_cv_type_uint32_t = yes; then
12965 131 jeremybenn
  acx_cv_header_stdint=$i
12966
else
12967
  continue
12968
fi
12969
 
12970 225 jeremybenn
    echo "$as_me:$LINENO: checking for uint64_t" >&5
12971
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12972 131 jeremybenn
if test "${ac_cv_type_uint64_t+set}" = set; then
12973 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
12974 131 jeremybenn
else
12975 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12976 131 jeremybenn
/* confdefs.h.  */
12977
_ACEOF
12978
cat confdefs.h >>conftest.$ac_ext
12979
cat >>conftest.$ac_ext <<_ACEOF
12980
/* end confdefs.h.  */
12981
#include 
12982
#include <$i>
12983
 
12984
int
12985
main ()
12986
{
12987 225 jeremybenn
if ((uint64_t *) 0)
12988
  return 0;
12989 131 jeremybenn
if (sizeof (uint64_t))
12990 225 jeremybenn
  return 0;
12991 213 jeremybenn
  ;
12992 131 jeremybenn
  return 0;
12993 213 jeremybenn
}
12994
_ACEOF
12995
rm -f conftest.$ac_objext
12996 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997
  (eval $ac_compile) 2>conftest.er1
12998 213 jeremybenn
  ac_status=$?
12999
  grep -v '^ *+' conftest.er1 >conftest.err
13000
  rm -f conftest.er1
13001
  cat conftest.err >&5
13002 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003
  (exit $ac_status); } &&
13004
         { ac_try='test -z "$ac_c_werror_flag"
13005
                         || test ! -s conftest.err'
13006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007
  (eval $ac_try) 2>&5
13008 131 jeremybenn
  ac_status=$?
13009 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010
  (exit $ac_status); }; } &&
13011
         { ac_try='test -s conftest.$ac_objext'
13012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013
  (eval $ac_try) 2>&5
13014
  ac_status=$?
13015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016
  (exit $ac_status); }; }; then
13017
  ac_cv_type_uint64_t=yes
13018 131 jeremybenn
else
13019 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13020 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13021
 
13022 225 jeremybenn
ac_cv_type_uint64_t=no
13023 131 jeremybenn
fi
13024 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025 131 jeremybenn
fi
13026 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13027
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13028 131 jeremybenn
 
13029 225 jeremybenn
    echo "$as_me:$LINENO: checking for uintptr_t" >&5
13030
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13031 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
13032 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
13033 131 jeremybenn
else
13034 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13035 131 jeremybenn
/* confdefs.h.  */
13036
_ACEOF
13037
cat confdefs.h >>conftest.$ac_ext
13038
cat >>conftest.$ac_ext <<_ACEOF
13039
/* end confdefs.h.  */
13040
#include 
13041
#include <$i>
13042
 
13043
int
13044
main ()
13045
{
13046 225 jeremybenn
if ((uintptr_t *) 0)
13047
  return 0;
13048 131 jeremybenn
if (sizeof (uintptr_t))
13049 225 jeremybenn
  return 0;
13050 213 jeremybenn
  ;
13051 131 jeremybenn
  return 0;
13052 213 jeremybenn
}
13053
_ACEOF
13054
rm -f conftest.$ac_objext
13055 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056
  (eval $ac_compile) 2>conftest.er1
13057 213 jeremybenn
  ac_status=$?
13058
  grep -v '^ *+' conftest.er1 >conftest.err
13059
  rm -f conftest.er1
13060
  cat conftest.err >&5
13061 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062
  (exit $ac_status); } &&
13063
         { ac_try='test -z "$ac_c_werror_flag"
13064
                         || test ! -s conftest.err'
13065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066
  (eval $ac_try) 2>&5
13067 131 jeremybenn
  ac_status=$?
13068 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069
  (exit $ac_status); }; } &&
13070
         { ac_try='test -s conftest.$ac_objext'
13071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072
  (eval $ac_try) 2>&5
13073
  ac_status=$?
13074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075
  (exit $ac_status); }; }; then
13076
  ac_cv_type_uintptr_t=yes
13077 131 jeremybenn
else
13078 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13079 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13080
 
13081 225 jeremybenn
ac_cv_type_uintptr_t=no
13082 131 jeremybenn
fi
13083 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084 131 jeremybenn
fi
13085 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13086
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13087 131 jeremybenn
 
13088
    break
13089
  done
13090
fi
13091
if test "$acx_cv_header_stdint" = stddef.h; then
13092
  acx_cv_header_stdint_kind="(u_intXX_t style)"
13093
  for i in sys/types.h $inttype_headers; do
13094
    unset ac_cv_type_u_int32_t
13095
    unset ac_cv_type_u_int64_t
13096 225 jeremybenn
    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13097
    echo "$as_me:$LINENO: checking for u_int32_t" >&5
13098
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13099 131 jeremybenn
if test "${ac_cv_type_u_int32_t+set}" = set; then
13100 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
13101 131 jeremybenn
else
13102 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13103 131 jeremybenn
/* confdefs.h.  */
13104
_ACEOF
13105
cat confdefs.h >>conftest.$ac_ext
13106
cat >>conftest.$ac_ext <<_ACEOF
13107
/* end confdefs.h.  */
13108
#include 
13109
#include <$i>
13110
 
13111
int
13112
main ()
13113
{
13114 225 jeremybenn
if ((u_int32_t *) 0)
13115
  return 0;
13116 131 jeremybenn
if (sizeof (u_int32_t))
13117 225 jeremybenn
  return 0;
13118 213 jeremybenn
  ;
13119 131 jeremybenn
  return 0;
13120 213 jeremybenn
}
13121
_ACEOF
13122
rm -f conftest.$ac_objext
13123 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124
  (eval $ac_compile) 2>conftest.er1
13125 213 jeremybenn
  ac_status=$?
13126
  grep -v '^ *+' conftest.er1 >conftest.err
13127
  rm -f conftest.er1
13128
  cat conftest.err >&5
13129 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130
  (exit $ac_status); } &&
13131
         { ac_try='test -z "$ac_c_werror_flag"
13132
                         || test ! -s conftest.err'
13133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134
  (eval $ac_try) 2>&5
13135 131 jeremybenn
  ac_status=$?
13136 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137
  (exit $ac_status); }; } &&
13138
         { ac_try='test -s conftest.$ac_objext'
13139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140
  (eval $ac_try) 2>&5
13141
  ac_status=$?
13142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143
  (exit $ac_status); }; }; then
13144
  ac_cv_type_u_int32_t=yes
13145 131 jeremybenn
else
13146 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13147 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13148
 
13149 225 jeremybenn
ac_cv_type_u_int32_t=no
13150 131 jeremybenn
fi
13151 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152 131 jeremybenn
fi
13153 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13154
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13155
if test $ac_cv_type_u_int32_t = yes; then
13156 131 jeremybenn
  acx_cv_header_stdint=$i
13157
else
13158
  continue
13159
fi
13160
 
13161 225 jeremybenn
    echo "$as_me:$LINENO: checking for u_int64_t" >&5
13162
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13163 131 jeremybenn
if test "${ac_cv_type_u_int64_t+set}" = set; then
13164 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
13165 131 jeremybenn
else
13166 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13167 131 jeremybenn
/* confdefs.h.  */
13168
_ACEOF
13169
cat confdefs.h >>conftest.$ac_ext
13170
cat >>conftest.$ac_ext <<_ACEOF
13171
/* end confdefs.h.  */
13172
#include 
13173
#include <$i>
13174
 
13175
int
13176
main ()
13177
{
13178 225 jeremybenn
if ((u_int64_t *) 0)
13179
  return 0;
13180 131 jeremybenn
if (sizeof (u_int64_t))
13181 225 jeremybenn
  return 0;
13182 213 jeremybenn
  ;
13183 131 jeremybenn
  return 0;
13184 213 jeremybenn
}
13185
_ACEOF
13186
rm -f conftest.$ac_objext
13187 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188
  (eval $ac_compile) 2>conftest.er1
13189 213 jeremybenn
  ac_status=$?
13190
  grep -v '^ *+' conftest.er1 >conftest.err
13191
  rm -f conftest.er1
13192
  cat conftest.err >&5
13193 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194
  (exit $ac_status); } &&
13195
         { ac_try='test -z "$ac_c_werror_flag"
13196
                         || test ! -s conftest.err'
13197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198
  (eval $ac_try) 2>&5
13199 131 jeremybenn
  ac_status=$?
13200 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201
  (exit $ac_status); }; } &&
13202
         { ac_try='test -s conftest.$ac_objext'
13203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204
  (eval $ac_try) 2>&5
13205
  ac_status=$?
13206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207
  (exit $ac_status); }; }; then
13208
  ac_cv_type_u_int64_t=yes
13209 131 jeremybenn
else
13210 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13211 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13212
 
13213 225 jeremybenn
ac_cv_type_u_int64_t=no
13214 131 jeremybenn
fi
13215 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 131 jeremybenn
fi
13217 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13218
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13219 131 jeremybenn
 
13220
    break
13221
  done
13222
fi
13223
if test "$acx_cv_header_stdint" = stddef.h; then
13224
  acx_cv_header_stdint_kind="(using manual detection)"
13225
fi
13226
 
13227
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13228
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13229
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13230
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13231
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13232
 
13233
# ----------------- Summarize what we found so far
13234
 
13235 225 jeremybenn
echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13236
echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
13237 131 jeremybenn
 
13238 225 jeremybenn
case `$as_basename gdb_stdint.h ||
13239 131 jeremybenn
$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13240
         Xgdb_stdint.h : 'X\(//\)$' \| \
13241 225 jeremybenn
         Xgdb_stdint.h : 'X\(/\)$' \| \
13242
         .     : '\(.\)' 2>/dev/null ||
13243
echo X/gdb_stdint.h |
13244
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13245
          /^X\/\(\/\/\)$/{ s//\1/; q; }
13246
          /^X\/\(\/\).*/{ s//\1/; q; }
13247
          s/.*/./; q'` in
13248
  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13249
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13250
  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13251
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13252 131 jeremybenn
  *) ;;
13253
esac
13254
 
13255 225 jeremybenn
echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13256
echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13257 131 jeremybenn
 
13258
# ----------------- done included file, check C basic types --------
13259
 
13260
# Lacking an uintptr_t?  Test size of void *
13261
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13262 225 jeremybenn
  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13263
echo $ECHO_N "checking for void *... $ECHO_C" >&6
13264
if test "${ac_cv_type_void_p+set}" = set; then
13265
  echo $ECHO_N "(cached) $ECHO_C" >&6
13266
else
13267
  cat >conftest.$ac_ext <<_ACEOF
13268
/* confdefs.h.  */
13269
_ACEOF
13270
cat confdefs.h >>conftest.$ac_ext
13271
cat >>conftest.$ac_ext <<_ACEOF
13272
/* end confdefs.h.  */
13273
$ac_includes_default
13274
int
13275
main ()
13276
{
13277
if ((void * *) 0)
13278
  return 0;
13279
if (sizeof (void *))
13280
  return 0;
13281
  ;
13282
  return 0;
13283
}
13284
_ACEOF
13285
rm -f conftest.$ac_objext
13286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287
  (eval $ac_compile) 2>conftest.er1
13288
  ac_status=$?
13289
  grep -v '^ *+' conftest.er1 >conftest.err
13290
  rm -f conftest.er1
13291
  cat conftest.err >&5
13292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293
  (exit $ac_status); } &&
13294
         { ac_try='test -z "$ac_c_werror_flag"
13295
                         || test ! -s conftest.err'
13296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297
  (eval $ac_try) 2>&5
13298
  ac_status=$?
13299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300
  (exit $ac_status); }; } &&
13301
         { ac_try='test -s conftest.$ac_objext'
13302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303
  (eval $ac_try) 2>&5
13304
  ac_status=$?
13305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306
  (exit $ac_status); }; }; then
13307
  ac_cv_type_void_p=yes
13308
else
13309
  echo "$as_me: failed program was:" >&5
13310
sed 's/^/| /' conftest.$ac_ext >&5
13311
 
13312
ac_cv_type_void_p=no
13313
fi
13314
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315
fi
13316
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13317
echo "${ECHO_T}$ac_cv_type_void_p" >&6
13318
 
13319
echo "$as_me:$LINENO: checking size of void *" >&5
13320
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13321 131 jeremybenn
if test "${ac_cv_sizeof_void_p+set}" = set; then
13322 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
13323 131 jeremybenn
else
13324 225 jeremybenn
  if test "$ac_cv_type_void_p" = yes; then
13325
  # The cast to unsigned long works around a bug in the HP C Compiler
13326
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13327
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13328
  # This bug is HP SR number 8606223364.
13329 131 jeremybenn
  if test "$cross_compiling" = yes; then
13330
  # Depending upon the size, compute the lo and hi bounds.
13331
cat >conftest.$ac_ext <<_ACEOF
13332
/* confdefs.h.  */
13333
_ACEOF
13334
cat confdefs.h >>conftest.$ac_ext
13335
cat >>conftest.$ac_ext <<_ACEOF
13336
/* end confdefs.h.  */
13337
$ac_includes_default
13338
int
13339
main ()
13340
{
13341 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13342 131 jeremybenn
test_array [0] = 0
13343
 
13344
  ;
13345
  return 0;
13346
}
13347
_ACEOF
13348
rm -f conftest.$ac_objext
13349 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350
  (eval $ac_compile) 2>conftest.er1
13351 131 jeremybenn
  ac_status=$?
13352
  grep -v '^ *+' conftest.er1 >conftest.err
13353
  rm -f conftest.er1
13354
  cat conftest.err >&5
13355 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356
  (exit $ac_status); } &&
13357
         { ac_try='test -z "$ac_c_werror_flag"
13358
                         || test ! -s conftest.err'
13359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360
  (eval $ac_try) 2>&5
13361
  ac_status=$?
13362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363
  (exit $ac_status); }; } &&
13364
         { ac_try='test -s conftest.$ac_objext'
13365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366
  (eval $ac_try) 2>&5
13367
  ac_status=$?
13368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369
  (exit $ac_status); }; }; then
13370 131 jeremybenn
  ac_lo=0 ac_mid=0
13371
  while :; do
13372
    cat >conftest.$ac_ext <<_ACEOF
13373
/* confdefs.h.  */
13374
_ACEOF
13375
cat confdefs.h >>conftest.$ac_ext
13376
cat >>conftest.$ac_ext <<_ACEOF
13377
/* end confdefs.h.  */
13378
$ac_includes_default
13379
int
13380
main ()
13381
{
13382 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13383 131 jeremybenn
test_array [0] = 0
13384
 
13385
  ;
13386
  return 0;
13387
}
13388
_ACEOF
13389
rm -f conftest.$ac_objext
13390 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391
  (eval $ac_compile) 2>conftest.er1
13392 131 jeremybenn
  ac_status=$?
13393
  grep -v '^ *+' conftest.er1 >conftest.err
13394
  rm -f conftest.er1
13395
  cat conftest.err >&5
13396 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397
  (exit $ac_status); } &&
13398
         { ac_try='test -z "$ac_c_werror_flag"
13399
                         || test ! -s conftest.err'
13400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401
  (eval $ac_try) 2>&5
13402
  ac_status=$?
13403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404
  (exit $ac_status); }; } &&
13405
         { ac_try='test -s conftest.$ac_objext'
13406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407
  (eval $ac_try) 2>&5
13408
  ac_status=$?
13409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410
  (exit $ac_status); }; }; then
13411 131 jeremybenn
  ac_hi=$ac_mid; break
13412
else
13413 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13414 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13415
 
13416 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
13417
                    if test $ac_lo -le $ac_mid; then
13418
                      ac_lo= ac_hi=
13419
                      break
13420
                    fi
13421
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13422 131 jeremybenn
fi
13423 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 131 jeremybenn
  done
13425
else
13426 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13427 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13428
 
13429 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13430 131 jeremybenn
/* confdefs.h.  */
13431
_ACEOF
13432
cat confdefs.h >>conftest.$ac_ext
13433
cat >>conftest.$ac_ext <<_ACEOF
13434
/* end confdefs.h.  */
13435
$ac_includes_default
13436
int
13437
main ()
13438
{
13439 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13440 131 jeremybenn
test_array [0] = 0
13441
 
13442
  ;
13443
  return 0;
13444
}
13445
_ACEOF
13446
rm -f conftest.$ac_objext
13447 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448
  (eval $ac_compile) 2>conftest.er1
13449 131 jeremybenn
  ac_status=$?
13450
  grep -v '^ *+' conftest.er1 >conftest.err
13451
  rm -f conftest.er1
13452
  cat conftest.err >&5
13453 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454
  (exit $ac_status); } &&
13455
         { ac_try='test -z "$ac_c_werror_flag"
13456
                         || test ! -s conftest.err'
13457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458
  (eval $ac_try) 2>&5
13459
  ac_status=$?
13460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461
  (exit $ac_status); }; } &&
13462
         { ac_try='test -s conftest.$ac_objext'
13463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464
  (eval $ac_try) 2>&5
13465
  ac_status=$?
13466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467
  (exit $ac_status); }; }; then
13468 131 jeremybenn
  ac_hi=-1 ac_mid=-1
13469
  while :; do
13470
    cat >conftest.$ac_ext <<_ACEOF
13471
/* confdefs.h.  */
13472
_ACEOF
13473
cat confdefs.h >>conftest.$ac_ext
13474
cat >>conftest.$ac_ext <<_ACEOF
13475
/* end confdefs.h.  */
13476
$ac_includes_default
13477
int
13478
main ()
13479
{
13480 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13481 131 jeremybenn
test_array [0] = 0
13482
 
13483
  ;
13484
  return 0;
13485
}
13486
_ACEOF
13487
rm -f conftest.$ac_objext
13488 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489
  (eval $ac_compile) 2>conftest.er1
13490 131 jeremybenn
  ac_status=$?
13491
  grep -v '^ *+' conftest.er1 >conftest.err
13492
  rm -f conftest.er1
13493
  cat conftest.err >&5
13494 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495
  (exit $ac_status); } &&
13496
         { ac_try='test -z "$ac_c_werror_flag"
13497
                         || test ! -s conftest.err'
13498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499
  (eval $ac_try) 2>&5
13500
  ac_status=$?
13501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502
  (exit $ac_status); }; } &&
13503
         { ac_try='test -s conftest.$ac_objext'
13504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505
  (eval $ac_try) 2>&5
13506
  ac_status=$?
13507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508
  (exit $ac_status); }; }; then
13509 131 jeremybenn
  ac_lo=$ac_mid; break
13510
else
13511 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13512 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13513
 
13514 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
13515
                       if test $ac_mid -le $ac_hi; then
13516
                         ac_lo= ac_hi=
13517
                         break
13518
                       fi
13519
                       ac_mid=`expr 2 '*' $ac_mid`
13520 131 jeremybenn
fi
13521 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13522 131 jeremybenn
  done
13523
else
13524 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13525 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13526
 
13527 225 jeremybenn
ac_lo= ac_hi=
13528 131 jeremybenn
fi
13529 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13530 131 jeremybenn
fi
13531 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13532 131 jeremybenn
# Binary search between lo and hi bounds.
13533
while test "x$ac_lo" != "x$ac_hi"; do
13534
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13535
  cat >conftest.$ac_ext <<_ACEOF
13536
/* confdefs.h.  */
13537
_ACEOF
13538
cat confdefs.h >>conftest.$ac_ext
13539
cat >>conftest.$ac_ext <<_ACEOF
13540
/* end confdefs.h.  */
13541
$ac_includes_default
13542
int
13543
main ()
13544
{
13545 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13546 131 jeremybenn
test_array [0] = 0
13547
 
13548
  ;
13549
  return 0;
13550
}
13551
_ACEOF
13552
rm -f conftest.$ac_objext
13553 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
  (eval $ac_compile) 2>conftest.er1
13555 131 jeremybenn
  ac_status=$?
13556
  grep -v '^ *+' conftest.er1 >conftest.err
13557
  rm -f conftest.er1
13558
  cat conftest.err >&5
13559 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560
  (exit $ac_status); } &&
13561
         { ac_try='test -z "$ac_c_werror_flag"
13562
                         || test ! -s conftest.err'
13563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564
  (eval $ac_try) 2>&5
13565
  ac_status=$?
13566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567
  (exit $ac_status); }; } &&
13568
         { ac_try='test -s conftest.$ac_objext'
13569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570
  (eval $ac_try) 2>&5
13571
  ac_status=$?
13572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573
  (exit $ac_status); }; }; then
13574 131 jeremybenn
  ac_hi=$ac_mid
13575
else
13576 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13577 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13578
 
13579 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
13580 131 jeremybenn
fi
13581 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13582 131 jeremybenn
done
13583
case $ac_lo in
13584
?*) ac_cv_sizeof_void_p=$ac_lo;;
13585 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13586 131 jeremybenn
See \`config.log' for more details." >&5
13587 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (void *), 77
13588 131 jeremybenn
See \`config.log' for more details." >&2;}
13589 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
13590 131 jeremybenn
esac
13591
else
13592 225 jeremybenn
  if test "$cross_compiling" = yes; then
13593
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13594
See \`config.log' for more details." >&5
13595
echo "$as_me: error: cannot run test program while cross compiling
13596
See \`config.log' for more details." >&2;}
13597
   { (exit 1); exit 1; }; }
13598
else
13599 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13600
/* confdefs.h.  */
13601
_ACEOF
13602
cat confdefs.h >>conftest.$ac_ext
13603
cat >>conftest.$ac_ext <<_ACEOF
13604
/* end confdefs.h.  */
13605
$ac_includes_default
13606 225 jeremybenn
long longval () { return (long) (sizeof (void *)); }
13607
unsigned long ulongval () { return (long) (sizeof (void *)); }
13608 131 jeremybenn
#include 
13609
#include 
13610
int
13611
main ()
13612
{
13613
 
13614
  FILE *f = fopen ("conftest.val", "w");
13615
  if (! f)
13616 225 jeremybenn
    exit (1);
13617
  if (((long) (sizeof (void *))) < 0)
13618 131 jeremybenn
    {
13619 225 jeremybenn
      long i = longval ();
13620
      if (i != ((long) (sizeof (void *))))
13621
        exit (1);
13622
      fprintf (f, "%ld\n", i);
13623 131 jeremybenn
    }
13624
  else
13625
    {
13626 225 jeremybenn
      unsigned long i = ulongval ();
13627
      if (i != ((long) (sizeof (void *))))
13628
        exit (1);
13629
      fprintf (f, "%lu\n", i);
13630 131 jeremybenn
    }
13631 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
13632 131 jeremybenn
 
13633
  ;
13634
  return 0;
13635
}
13636
_ACEOF
13637
rm -f conftest$ac_exeext
13638 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13639
  (eval $ac_link) 2>&5
13640 131 jeremybenn
  ac_status=$?
13641 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13643 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644
  (eval $ac_try) 2>&5
13645 131 jeremybenn
  ac_status=$?
13646 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 131 jeremybenn
  (exit $ac_status); }; }; then
13648
  ac_cv_sizeof_void_p=`cat conftest.val`
13649
else
13650 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
13651
echo "$as_me: failed program was:" >&5
13652 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13653
 
13654
( exit $ac_status )
13655 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13656 131 jeremybenn
See \`config.log' for more details." >&5
13657 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (void *), 77
13658 131 jeremybenn
See \`config.log' for more details." >&2;}
13659 225 jeremybenn
   { (exit 1); exit 1; }; }
13660 131 jeremybenn
fi
13661 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13662 131 jeremybenn
fi
13663 225 jeremybenn
fi
13664 131 jeremybenn
rm -f conftest.val
13665 225 jeremybenn
else
13666
  ac_cv_sizeof_void_p=0
13667 131 jeremybenn
fi
13668 225 jeremybenn
fi
13669
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13670
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13671 131 jeremybenn
cat >>confdefs.h <<_ACEOF
13672
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13673
_ACEOF
13674
 
13675
 ;;
13676
esac
13677
 
13678
# Lacking an uint64_t?  Test size of long
13679
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13680 225 jeremybenn
  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13681
echo $ECHO_N "checking for long... $ECHO_C" >&6
13682
if test "${ac_cv_type_long+set}" = set; then
13683
  echo $ECHO_N "(cached) $ECHO_C" >&6
13684
else
13685
  cat >conftest.$ac_ext <<_ACEOF
13686
/* confdefs.h.  */
13687
_ACEOF
13688
cat confdefs.h >>conftest.$ac_ext
13689
cat >>conftest.$ac_ext <<_ACEOF
13690
/* end confdefs.h.  */
13691
$ac_includes_default
13692
int
13693
main ()
13694
{
13695
if ((long *) 0)
13696
  return 0;
13697
if (sizeof (long))
13698
  return 0;
13699
  ;
13700
  return 0;
13701
}
13702
_ACEOF
13703
rm -f conftest.$ac_objext
13704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705
  (eval $ac_compile) 2>conftest.er1
13706
  ac_status=$?
13707
  grep -v '^ *+' conftest.er1 >conftest.err
13708
  rm -f conftest.er1
13709
  cat conftest.err >&5
13710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711
  (exit $ac_status); } &&
13712
         { ac_try='test -z "$ac_c_werror_flag"
13713
                         || test ! -s conftest.err'
13714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715
  (eval $ac_try) 2>&5
13716
  ac_status=$?
13717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
  (exit $ac_status); }; } &&
13719
         { ac_try='test -s conftest.$ac_objext'
13720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721
  (eval $ac_try) 2>&5
13722
  ac_status=$?
13723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724
  (exit $ac_status); }; }; then
13725
  ac_cv_type_long=yes
13726
else
13727
  echo "$as_me: failed program was:" >&5
13728
sed 's/^/| /' conftest.$ac_ext >&5
13729
 
13730
ac_cv_type_long=no
13731
fi
13732
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733
fi
13734
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13735
echo "${ECHO_T}$ac_cv_type_long" >&6
13736
 
13737
echo "$as_me:$LINENO: checking size of long" >&5
13738
echo $ECHO_N "checking size of long... $ECHO_C" >&6
13739 131 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
13740 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
13741 131 jeremybenn
else
13742 225 jeremybenn
  if test "$ac_cv_type_long" = yes; then
13743
  # The cast to unsigned long works around a bug in the HP C Compiler
13744
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13745
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13746
  # This bug is HP SR number 8606223364.
13747 131 jeremybenn
  if test "$cross_compiling" = yes; then
13748
  # Depending upon the size, compute the lo and hi bounds.
13749
cat >conftest.$ac_ext <<_ACEOF
13750
/* confdefs.h.  */
13751
_ACEOF
13752
cat confdefs.h >>conftest.$ac_ext
13753
cat >>conftest.$ac_ext <<_ACEOF
13754
/* end confdefs.h.  */
13755
$ac_includes_default
13756
int
13757
main ()
13758
{
13759 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13760 131 jeremybenn
test_array [0] = 0
13761
 
13762
  ;
13763
  return 0;
13764
}
13765
_ACEOF
13766
rm -f conftest.$ac_objext
13767 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768
  (eval $ac_compile) 2>conftest.er1
13769 131 jeremybenn
  ac_status=$?
13770
  grep -v '^ *+' conftest.er1 >conftest.err
13771
  rm -f conftest.er1
13772
  cat conftest.err >&5
13773 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774
  (exit $ac_status); } &&
13775
         { ac_try='test -z "$ac_c_werror_flag"
13776
                         || test ! -s conftest.err'
13777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778
  (eval $ac_try) 2>&5
13779
  ac_status=$?
13780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781
  (exit $ac_status); }; } &&
13782
         { ac_try='test -s conftest.$ac_objext'
13783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784
  (eval $ac_try) 2>&5
13785
  ac_status=$?
13786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787
  (exit $ac_status); }; }; then
13788 131 jeremybenn
  ac_lo=0 ac_mid=0
13789
  while :; do
13790
    cat >conftest.$ac_ext <<_ACEOF
13791
/* confdefs.h.  */
13792
_ACEOF
13793
cat confdefs.h >>conftest.$ac_ext
13794
cat >>conftest.$ac_ext <<_ACEOF
13795
/* end confdefs.h.  */
13796
$ac_includes_default
13797
int
13798
main ()
13799
{
13800 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13801 131 jeremybenn
test_array [0] = 0
13802
 
13803
  ;
13804
  return 0;
13805
}
13806
_ACEOF
13807
rm -f conftest.$ac_objext
13808 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809
  (eval $ac_compile) 2>conftest.er1
13810 131 jeremybenn
  ac_status=$?
13811
  grep -v '^ *+' conftest.er1 >conftest.err
13812
  rm -f conftest.er1
13813
  cat conftest.err >&5
13814 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815
  (exit $ac_status); } &&
13816
         { ac_try='test -z "$ac_c_werror_flag"
13817
                         || test ! -s conftest.err'
13818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819
  (eval $ac_try) 2>&5
13820
  ac_status=$?
13821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822
  (exit $ac_status); }; } &&
13823
         { ac_try='test -s conftest.$ac_objext'
13824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825
  (eval $ac_try) 2>&5
13826
  ac_status=$?
13827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828
  (exit $ac_status); }; }; then
13829 131 jeremybenn
  ac_hi=$ac_mid; break
13830
else
13831 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13832 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13833
 
13834 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
13835
                    if test $ac_lo -le $ac_mid; then
13836
                      ac_lo= ac_hi=
13837
                      break
13838
                    fi
13839
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13840 131 jeremybenn
fi
13841 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13842 131 jeremybenn
  done
13843
else
13844 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13845 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13846
 
13847 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13848 131 jeremybenn
/* confdefs.h.  */
13849
_ACEOF
13850
cat confdefs.h >>conftest.$ac_ext
13851
cat >>conftest.$ac_ext <<_ACEOF
13852
/* end confdefs.h.  */
13853
$ac_includes_default
13854
int
13855
main ()
13856
{
13857 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13858 131 jeremybenn
test_array [0] = 0
13859
 
13860
  ;
13861
  return 0;
13862
}
13863
_ACEOF
13864
rm -f conftest.$ac_objext
13865 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866
  (eval $ac_compile) 2>conftest.er1
13867 131 jeremybenn
  ac_status=$?
13868
  grep -v '^ *+' conftest.er1 >conftest.err
13869
  rm -f conftest.er1
13870
  cat conftest.err >&5
13871 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872
  (exit $ac_status); } &&
13873
         { ac_try='test -z "$ac_c_werror_flag"
13874
                         || test ! -s conftest.err'
13875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876
  (eval $ac_try) 2>&5
13877
  ac_status=$?
13878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
  (exit $ac_status); }; } &&
13880
         { ac_try='test -s conftest.$ac_objext'
13881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882
  (eval $ac_try) 2>&5
13883
  ac_status=$?
13884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885
  (exit $ac_status); }; }; then
13886 131 jeremybenn
  ac_hi=-1 ac_mid=-1
13887
  while :; do
13888
    cat >conftest.$ac_ext <<_ACEOF
13889
/* confdefs.h.  */
13890
_ACEOF
13891
cat confdefs.h >>conftest.$ac_ext
13892
cat >>conftest.$ac_ext <<_ACEOF
13893
/* end confdefs.h.  */
13894
$ac_includes_default
13895
int
13896
main ()
13897
{
13898 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13899 131 jeremybenn
test_array [0] = 0
13900
 
13901
  ;
13902
  return 0;
13903
}
13904
_ACEOF
13905
rm -f conftest.$ac_objext
13906 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907
  (eval $ac_compile) 2>conftest.er1
13908 131 jeremybenn
  ac_status=$?
13909
  grep -v '^ *+' conftest.er1 >conftest.err
13910
  rm -f conftest.er1
13911
  cat conftest.err >&5
13912 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913
  (exit $ac_status); } &&
13914
         { ac_try='test -z "$ac_c_werror_flag"
13915
                         || test ! -s conftest.err'
13916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917
  (eval $ac_try) 2>&5
13918
  ac_status=$?
13919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920
  (exit $ac_status); }; } &&
13921
         { ac_try='test -s conftest.$ac_objext'
13922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923
  (eval $ac_try) 2>&5
13924
  ac_status=$?
13925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926
  (exit $ac_status); }; }; then
13927 131 jeremybenn
  ac_lo=$ac_mid; break
13928
else
13929 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13930 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13931
 
13932 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
13933
                       if test $ac_mid -le $ac_hi; then
13934
                         ac_lo= ac_hi=
13935
                         break
13936
                       fi
13937
                       ac_mid=`expr 2 '*' $ac_mid`
13938 131 jeremybenn
fi
13939 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13940 131 jeremybenn
  done
13941
else
13942 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13943 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13944
 
13945 225 jeremybenn
ac_lo= ac_hi=
13946 131 jeremybenn
fi
13947 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13948 131 jeremybenn
fi
13949 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13950 131 jeremybenn
# Binary search between lo and hi bounds.
13951
while test "x$ac_lo" != "x$ac_hi"; do
13952
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13953
  cat >conftest.$ac_ext <<_ACEOF
13954
/* confdefs.h.  */
13955
_ACEOF
13956
cat confdefs.h >>conftest.$ac_ext
13957
cat >>conftest.$ac_ext <<_ACEOF
13958
/* end confdefs.h.  */
13959
$ac_includes_default
13960
int
13961
main ()
13962
{
13963 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13964 131 jeremybenn
test_array [0] = 0
13965
 
13966
  ;
13967
  return 0;
13968
}
13969
_ACEOF
13970
rm -f conftest.$ac_objext
13971 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13972
  (eval $ac_compile) 2>conftest.er1
13973 131 jeremybenn
  ac_status=$?
13974
  grep -v '^ *+' conftest.er1 >conftest.err
13975
  rm -f conftest.er1
13976
  cat conftest.err >&5
13977 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978
  (exit $ac_status); } &&
13979
         { ac_try='test -z "$ac_c_werror_flag"
13980
                         || test ! -s conftest.err'
13981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982
  (eval $ac_try) 2>&5
13983
  ac_status=$?
13984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985
  (exit $ac_status); }; } &&
13986
         { ac_try='test -s conftest.$ac_objext'
13987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988
  (eval $ac_try) 2>&5
13989
  ac_status=$?
13990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991
  (exit $ac_status); }; }; then
13992 131 jeremybenn
  ac_hi=$ac_mid
13993
else
13994 225 jeremybenn
  echo "$as_me: failed program was:" >&5
13995 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13996
 
13997 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
13998 131 jeremybenn
fi
13999 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14000 131 jeremybenn
done
14001
case $ac_lo in
14002
?*) ac_cv_sizeof_long=$ac_lo;;
14003 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14004 131 jeremybenn
See \`config.log' for more details." >&5
14005 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (long), 77
14006 131 jeremybenn
See \`config.log' for more details." >&2;}
14007 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
14008 131 jeremybenn
esac
14009
else
14010 225 jeremybenn
  if test "$cross_compiling" = yes; then
14011
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14012
See \`config.log' for more details." >&5
14013
echo "$as_me: error: cannot run test program while cross compiling
14014
See \`config.log' for more details." >&2;}
14015
   { (exit 1); exit 1; }; }
14016
else
14017 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14018
/* confdefs.h.  */
14019
_ACEOF
14020
cat confdefs.h >>conftest.$ac_ext
14021
cat >>conftest.$ac_ext <<_ACEOF
14022
/* end confdefs.h.  */
14023
$ac_includes_default
14024 225 jeremybenn
long longval () { return (long) (sizeof (long)); }
14025
unsigned long ulongval () { return (long) (sizeof (long)); }
14026 131 jeremybenn
#include 
14027
#include 
14028
int
14029
main ()
14030
{
14031
 
14032
  FILE *f = fopen ("conftest.val", "w");
14033
  if (! f)
14034 225 jeremybenn
    exit (1);
14035
  if (((long) (sizeof (long))) < 0)
14036 131 jeremybenn
    {
14037 225 jeremybenn
      long i = longval ();
14038
      if (i != ((long) (sizeof (long))))
14039
        exit (1);
14040
      fprintf (f, "%ld\n", i);
14041 131 jeremybenn
    }
14042
  else
14043
    {
14044 225 jeremybenn
      unsigned long i = ulongval ();
14045
      if (i != ((long) (sizeof (long))))
14046
        exit (1);
14047
      fprintf (f, "%lu\n", i);
14048 131 jeremybenn
    }
14049 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
14050 131 jeremybenn
 
14051
  ;
14052
  return 0;
14053
}
14054
_ACEOF
14055
rm -f conftest$ac_exeext
14056 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057
  (eval $ac_link) 2>&5
14058 131 jeremybenn
  ac_status=$?
14059 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14061 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062
  (eval $ac_try) 2>&5
14063 131 jeremybenn
  ac_status=$?
14064 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 131 jeremybenn
  (exit $ac_status); }; }; then
14066
  ac_cv_sizeof_long=`cat conftest.val`
14067
else
14068 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
14069
echo "$as_me: failed program was:" >&5
14070 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14071
 
14072
( exit $ac_status )
14073 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14074 131 jeremybenn
See \`config.log' for more details." >&5
14075 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (long), 77
14076 131 jeremybenn
See \`config.log' for more details." >&2;}
14077 225 jeremybenn
   { (exit 1); exit 1; }; }
14078 131 jeremybenn
fi
14079 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14080 131 jeremybenn
fi
14081 225 jeremybenn
fi
14082 131 jeremybenn
rm -f conftest.val
14083 225 jeremybenn
else
14084
  ac_cv_sizeof_long=0
14085 131 jeremybenn
fi
14086 225 jeremybenn
fi
14087
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14088
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14089 131 jeremybenn
cat >>confdefs.h <<_ACEOF
14090
#define SIZEOF_LONG $ac_cv_sizeof_long
14091
_ACEOF
14092
 
14093
 ;;
14094
esac
14095
 
14096
if test $acx_cv_header_stdint = stddef.h; then
14097
  # Lacking a good header?  Test size of everything and deduce all types.
14098 225 jeremybenn
  echo "$as_me:$LINENO: checking for int" >&5
14099
echo $ECHO_N "checking for int... $ECHO_C" >&6
14100
if test "${ac_cv_type_int+set}" = set; then
14101
  echo $ECHO_N "(cached) $ECHO_C" >&6
14102
else
14103
  cat >conftest.$ac_ext <<_ACEOF
14104
/* confdefs.h.  */
14105
_ACEOF
14106
cat confdefs.h >>conftest.$ac_ext
14107
cat >>conftest.$ac_ext <<_ACEOF
14108
/* end confdefs.h.  */
14109
$ac_includes_default
14110
int
14111
main ()
14112
{
14113
if ((int *) 0)
14114
  return 0;
14115
if (sizeof (int))
14116
  return 0;
14117
  ;
14118
  return 0;
14119
}
14120
_ACEOF
14121
rm -f conftest.$ac_objext
14122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123
  (eval $ac_compile) 2>conftest.er1
14124
  ac_status=$?
14125
  grep -v '^ *+' conftest.er1 >conftest.err
14126
  rm -f conftest.er1
14127
  cat conftest.err >&5
14128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129
  (exit $ac_status); } &&
14130
         { ac_try='test -z "$ac_c_werror_flag"
14131
                         || test ! -s conftest.err'
14132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133
  (eval $ac_try) 2>&5
14134
  ac_status=$?
14135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136
  (exit $ac_status); }; } &&
14137
         { ac_try='test -s conftest.$ac_objext'
14138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139
  (eval $ac_try) 2>&5
14140
  ac_status=$?
14141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142
  (exit $ac_status); }; }; then
14143
  ac_cv_type_int=yes
14144
else
14145
  echo "$as_me: failed program was:" >&5
14146
sed 's/^/| /' conftest.$ac_ext >&5
14147
 
14148
ac_cv_type_int=no
14149
fi
14150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14151
fi
14152
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14153
echo "${ECHO_T}$ac_cv_type_int" >&6
14154
 
14155
echo "$as_me:$LINENO: checking size of int" >&5
14156
echo $ECHO_N "checking size of int... $ECHO_C" >&6
14157 131 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
14158 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
14159 131 jeremybenn
else
14160 225 jeremybenn
  if test "$ac_cv_type_int" = yes; then
14161
  # The cast to unsigned long works around a bug in the HP C Compiler
14162
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14163
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14164
  # This bug is HP SR number 8606223364.
14165 131 jeremybenn
  if test "$cross_compiling" = yes; then
14166
  # Depending upon the size, compute the lo and hi bounds.
14167
cat >conftest.$ac_ext <<_ACEOF
14168
/* confdefs.h.  */
14169
_ACEOF
14170
cat confdefs.h >>conftest.$ac_ext
14171
cat >>conftest.$ac_ext <<_ACEOF
14172
/* end confdefs.h.  */
14173
$ac_includes_default
14174
int
14175
main ()
14176
{
14177 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14178 131 jeremybenn
test_array [0] = 0
14179
 
14180
  ;
14181
  return 0;
14182
}
14183
_ACEOF
14184
rm -f conftest.$ac_objext
14185 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186
  (eval $ac_compile) 2>conftest.er1
14187 131 jeremybenn
  ac_status=$?
14188
  grep -v '^ *+' conftest.er1 >conftest.err
14189
  rm -f conftest.er1
14190
  cat conftest.err >&5
14191 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192
  (exit $ac_status); } &&
14193
         { ac_try='test -z "$ac_c_werror_flag"
14194
                         || test ! -s conftest.err'
14195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196
  (eval $ac_try) 2>&5
14197
  ac_status=$?
14198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199
  (exit $ac_status); }; } &&
14200
         { ac_try='test -s conftest.$ac_objext'
14201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202
  (eval $ac_try) 2>&5
14203
  ac_status=$?
14204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205
  (exit $ac_status); }; }; then
14206 131 jeremybenn
  ac_lo=0 ac_mid=0
14207
  while :; do
14208
    cat >conftest.$ac_ext <<_ACEOF
14209
/* confdefs.h.  */
14210
_ACEOF
14211
cat confdefs.h >>conftest.$ac_ext
14212
cat >>conftest.$ac_ext <<_ACEOF
14213
/* end confdefs.h.  */
14214
$ac_includes_default
14215
int
14216
main ()
14217
{
14218 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14219 131 jeremybenn
test_array [0] = 0
14220
 
14221
  ;
14222
  return 0;
14223
}
14224
_ACEOF
14225
rm -f conftest.$ac_objext
14226 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227
  (eval $ac_compile) 2>conftest.er1
14228 131 jeremybenn
  ac_status=$?
14229
  grep -v '^ *+' conftest.er1 >conftest.err
14230
  rm -f conftest.er1
14231
  cat conftest.err >&5
14232 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233
  (exit $ac_status); } &&
14234
         { ac_try='test -z "$ac_c_werror_flag"
14235
                         || test ! -s conftest.err'
14236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237
  (eval $ac_try) 2>&5
14238
  ac_status=$?
14239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240
  (exit $ac_status); }; } &&
14241
         { ac_try='test -s conftest.$ac_objext'
14242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243
  (eval $ac_try) 2>&5
14244
  ac_status=$?
14245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246
  (exit $ac_status); }; }; then
14247 131 jeremybenn
  ac_hi=$ac_mid; break
14248
else
14249 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14250 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14251
 
14252 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
14253
                    if test $ac_lo -le $ac_mid; then
14254
                      ac_lo= ac_hi=
14255
                      break
14256
                    fi
14257
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14258 131 jeremybenn
fi
14259 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14260 131 jeremybenn
  done
14261
else
14262 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14263 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14264
 
14265 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14266 131 jeremybenn
/* confdefs.h.  */
14267
_ACEOF
14268
cat confdefs.h >>conftest.$ac_ext
14269
cat >>conftest.$ac_ext <<_ACEOF
14270
/* end confdefs.h.  */
14271
$ac_includes_default
14272
int
14273
main ()
14274
{
14275 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14276 131 jeremybenn
test_array [0] = 0
14277
 
14278
  ;
14279
  return 0;
14280
}
14281
_ACEOF
14282
rm -f conftest.$ac_objext
14283 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284
  (eval $ac_compile) 2>conftest.er1
14285 131 jeremybenn
  ac_status=$?
14286
  grep -v '^ *+' conftest.er1 >conftest.err
14287
  rm -f conftest.er1
14288
  cat conftest.err >&5
14289 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290
  (exit $ac_status); } &&
14291
         { ac_try='test -z "$ac_c_werror_flag"
14292
                         || test ! -s conftest.err'
14293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294
  (eval $ac_try) 2>&5
14295
  ac_status=$?
14296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297
  (exit $ac_status); }; } &&
14298
         { ac_try='test -s conftest.$ac_objext'
14299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300
  (eval $ac_try) 2>&5
14301
  ac_status=$?
14302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303
  (exit $ac_status); }; }; then
14304 131 jeremybenn
  ac_hi=-1 ac_mid=-1
14305
  while :; do
14306
    cat >conftest.$ac_ext <<_ACEOF
14307
/* confdefs.h.  */
14308
_ACEOF
14309
cat confdefs.h >>conftest.$ac_ext
14310
cat >>conftest.$ac_ext <<_ACEOF
14311
/* end confdefs.h.  */
14312
$ac_includes_default
14313
int
14314
main ()
14315
{
14316 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14317 131 jeremybenn
test_array [0] = 0
14318
 
14319
  ;
14320
  return 0;
14321
}
14322
_ACEOF
14323
rm -f conftest.$ac_objext
14324 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325
  (eval $ac_compile) 2>conftest.er1
14326 131 jeremybenn
  ac_status=$?
14327
  grep -v '^ *+' conftest.er1 >conftest.err
14328
  rm -f conftest.er1
14329
  cat conftest.err >&5
14330 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331
  (exit $ac_status); } &&
14332
         { ac_try='test -z "$ac_c_werror_flag"
14333
                         || test ! -s conftest.err'
14334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335
  (eval $ac_try) 2>&5
14336
  ac_status=$?
14337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338
  (exit $ac_status); }; } &&
14339
         { ac_try='test -s conftest.$ac_objext'
14340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341
  (eval $ac_try) 2>&5
14342
  ac_status=$?
14343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344
  (exit $ac_status); }; }; then
14345 131 jeremybenn
  ac_lo=$ac_mid; break
14346
else
14347 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14348 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14349
 
14350 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
14351
                       if test $ac_mid -le $ac_hi; then
14352
                         ac_lo= ac_hi=
14353
                         break
14354
                       fi
14355
                       ac_mid=`expr 2 '*' $ac_mid`
14356 131 jeremybenn
fi
14357 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358 131 jeremybenn
  done
14359
else
14360 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14361 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14362
 
14363 225 jeremybenn
ac_lo= ac_hi=
14364 131 jeremybenn
fi
14365 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366 131 jeremybenn
fi
14367 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14368 131 jeremybenn
# Binary search between lo and hi bounds.
14369
while test "x$ac_lo" != "x$ac_hi"; do
14370
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14371
  cat >conftest.$ac_ext <<_ACEOF
14372
/* confdefs.h.  */
14373
_ACEOF
14374
cat confdefs.h >>conftest.$ac_ext
14375
cat >>conftest.$ac_ext <<_ACEOF
14376
/* end confdefs.h.  */
14377
$ac_includes_default
14378
int
14379
main ()
14380
{
14381 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14382 131 jeremybenn
test_array [0] = 0
14383
 
14384
  ;
14385
  return 0;
14386
}
14387
_ACEOF
14388
rm -f conftest.$ac_objext
14389 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390
  (eval $ac_compile) 2>conftest.er1
14391 131 jeremybenn
  ac_status=$?
14392
  grep -v '^ *+' conftest.er1 >conftest.err
14393
  rm -f conftest.er1
14394
  cat conftest.err >&5
14395 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396
  (exit $ac_status); } &&
14397
         { ac_try='test -z "$ac_c_werror_flag"
14398
                         || test ! -s conftest.err'
14399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400
  (eval $ac_try) 2>&5
14401
  ac_status=$?
14402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403
  (exit $ac_status); }; } &&
14404
         { ac_try='test -s conftest.$ac_objext'
14405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406
  (eval $ac_try) 2>&5
14407
  ac_status=$?
14408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409
  (exit $ac_status); }; }; then
14410 131 jeremybenn
  ac_hi=$ac_mid
14411
else
14412 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14413 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14414
 
14415 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
14416 131 jeremybenn
fi
14417 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 131 jeremybenn
done
14419
case $ac_lo in
14420
?*) ac_cv_sizeof_int=$ac_lo;;
14421 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14422 131 jeremybenn
See \`config.log' for more details." >&5
14423 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (int), 77
14424 131 jeremybenn
See \`config.log' for more details." >&2;}
14425 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
14426 131 jeremybenn
esac
14427
else
14428 225 jeremybenn
  if test "$cross_compiling" = yes; then
14429
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14430
See \`config.log' for more details." >&5
14431
echo "$as_me: error: cannot run test program while cross compiling
14432
See \`config.log' for more details." >&2;}
14433
   { (exit 1); exit 1; }; }
14434
else
14435 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14436
/* confdefs.h.  */
14437
_ACEOF
14438
cat confdefs.h >>conftest.$ac_ext
14439
cat >>conftest.$ac_ext <<_ACEOF
14440
/* end confdefs.h.  */
14441
$ac_includes_default
14442 225 jeremybenn
long longval () { return (long) (sizeof (int)); }
14443
unsigned long ulongval () { return (long) (sizeof (int)); }
14444 131 jeremybenn
#include 
14445
#include 
14446
int
14447
main ()
14448
{
14449
 
14450
  FILE *f = fopen ("conftest.val", "w");
14451
  if (! f)
14452 225 jeremybenn
    exit (1);
14453
  if (((long) (sizeof (int))) < 0)
14454 131 jeremybenn
    {
14455 225 jeremybenn
      long i = longval ();
14456
      if (i != ((long) (sizeof (int))))
14457
        exit (1);
14458
      fprintf (f, "%ld\n", i);
14459 131 jeremybenn
    }
14460
  else
14461
    {
14462 225 jeremybenn
      unsigned long i = ulongval ();
14463
      if (i != ((long) (sizeof (int))))
14464
        exit (1);
14465
      fprintf (f, "%lu\n", i);
14466 131 jeremybenn
    }
14467 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
14468 131 jeremybenn
 
14469
  ;
14470
  return 0;
14471
}
14472
_ACEOF
14473
rm -f conftest$ac_exeext
14474 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475
  (eval $ac_link) 2>&5
14476 131 jeremybenn
  ac_status=$?
14477 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14479 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480
  (eval $ac_try) 2>&5
14481 131 jeremybenn
  ac_status=$?
14482 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 131 jeremybenn
  (exit $ac_status); }; }; then
14484
  ac_cv_sizeof_int=`cat conftest.val`
14485
else
14486 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
14487
echo "$as_me: failed program was:" >&5
14488 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14489
 
14490
( exit $ac_status )
14491 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14492 131 jeremybenn
See \`config.log' for more details." >&5
14493 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (int), 77
14494 131 jeremybenn
See \`config.log' for more details." >&2;}
14495 225 jeremybenn
   { (exit 1); exit 1; }; }
14496 131 jeremybenn
fi
14497 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14498 131 jeremybenn
fi
14499 225 jeremybenn
fi
14500 131 jeremybenn
rm -f conftest.val
14501 225 jeremybenn
else
14502
  ac_cv_sizeof_int=0
14503 131 jeremybenn
fi
14504 225 jeremybenn
fi
14505
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14506
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14507 131 jeremybenn
cat >>confdefs.h <<_ACEOF
14508
#define SIZEOF_INT $ac_cv_sizeof_int
14509
_ACEOF
14510
 
14511
 
14512 225 jeremybenn
  echo "$as_me:$LINENO: checking for short" >&5
14513
echo $ECHO_N "checking for short... $ECHO_C" >&6
14514
if test "${ac_cv_type_short+set}" = set; then
14515
  echo $ECHO_N "(cached) $ECHO_C" >&6
14516
else
14517
  cat >conftest.$ac_ext <<_ACEOF
14518
/* confdefs.h.  */
14519
_ACEOF
14520
cat confdefs.h >>conftest.$ac_ext
14521
cat >>conftest.$ac_ext <<_ACEOF
14522
/* end confdefs.h.  */
14523
$ac_includes_default
14524
int
14525
main ()
14526
{
14527
if ((short *) 0)
14528
  return 0;
14529
if (sizeof (short))
14530
  return 0;
14531
  ;
14532
  return 0;
14533
}
14534
_ACEOF
14535
rm -f conftest.$ac_objext
14536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537
  (eval $ac_compile) 2>conftest.er1
14538
  ac_status=$?
14539
  grep -v '^ *+' conftest.er1 >conftest.err
14540
  rm -f conftest.er1
14541
  cat conftest.err >&5
14542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543
  (exit $ac_status); } &&
14544
         { ac_try='test -z "$ac_c_werror_flag"
14545
                         || test ! -s conftest.err'
14546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547
  (eval $ac_try) 2>&5
14548
  ac_status=$?
14549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550
  (exit $ac_status); }; } &&
14551
         { ac_try='test -s conftest.$ac_objext'
14552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553
  (eval $ac_try) 2>&5
14554
  ac_status=$?
14555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556
  (exit $ac_status); }; }; then
14557
  ac_cv_type_short=yes
14558
else
14559
  echo "$as_me: failed program was:" >&5
14560
sed 's/^/| /' conftest.$ac_ext >&5
14561
 
14562
ac_cv_type_short=no
14563
fi
14564
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14565
fi
14566
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14567
echo "${ECHO_T}$ac_cv_type_short" >&6
14568
 
14569
echo "$as_me:$LINENO: checking size of short" >&5
14570
echo $ECHO_N "checking size of short... $ECHO_C" >&6
14571 131 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
14572 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
14573 131 jeremybenn
else
14574 225 jeremybenn
  if test "$ac_cv_type_short" = yes; then
14575
  # The cast to unsigned long works around a bug in the HP C Compiler
14576
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14577
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14578
  # This bug is HP SR number 8606223364.
14579 131 jeremybenn
  if test "$cross_compiling" = yes; then
14580
  # Depending upon the size, compute the lo and hi bounds.
14581
cat >conftest.$ac_ext <<_ACEOF
14582
/* confdefs.h.  */
14583
_ACEOF
14584
cat confdefs.h >>conftest.$ac_ext
14585
cat >>conftest.$ac_ext <<_ACEOF
14586
/* end confdefs.h.  */
14587
$ac_includes_default
14588
int
14589
main ()
14590
{
14591 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14592 131 jeremybenn
test_array [0] = 0
14593
 
14594
  ;
14595
  return 0;
14596
}
14597
_ACEOF
14598
rm -f conftest.$ac_objext
14599 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14600
  (eval $ac_compile) 2>conftest.er1
14601 131 jeremybenn
  ac_status=$?
14602
  grep -v '^ *+' conftest.er1 >conftest.err
14603
  rm -f conftest.er1
14604
  cat conftest.err >&5
14605 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606
  (exit $ac_status); } &&
14607
         { ac_try='test -z "$ac_c_werror_flag"
14608
                         || test ! -s conftest.err'
14609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610
  (eval $ac_try) 2>&5
14611
  ac_status=$?
14612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613
  (exit $ac_status); }; } &&
14614
         { ac_try='test -s conftest.$ac_objext'
14615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616
  (eval $ac_try) 2>&5
14617
  ac_status=$?
14618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619
  (exit $ac_status); }; }; then
14620 131 jeremybenn
  ac_lo=0 ac_mid=0
14621
  while :; do
14622
    cat >conftest.$ac_ext <<_ACEOF
14623
/* confdefs.h.  */
14624
_ACEOF
14625
cat confdefs.h >>conftest.$ac_ext
14626
cat >>conftest.$ac_ext <<_ACEOF
14627
/* end confdefs.h.  */
14628
$ac_includes_default
14629
int
14630
main ()
14631
{
14632 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14633 131 jeremybenn
test_array [0] = 0
14634
 
14635
  ;
14636
  return 0;
14637
}
14638
_ACEOF
14639
rm -f conftest.$ac_objext
14640 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641
  (eval $ac_compile) 2>conftest.er1
14642 131 jeremybenn
  ac_status=$?
14643
  grep -v '^ *+' conftest.er1 >conftest.err
14644
  rm -f conftest.er1
14645
  cat conftest.err >&5
14646 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647
  (exit $ac_status); } &&
14648
         { ac_try='test -z "$ac_c_werror_flag"
14649
                         || test ! -s conftest.err'
14650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651
  (eval $ac_try) 2>&5
14652
  ac_status=$?
14653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654
  (exit $ac_status); }; } &&
14655
         { ac_try='test -s conftest.$ac_objext'
14656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657
  (eval $ac_try) 2>&5
14658
  ac_status=$?
14659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660
  (exit $ac_status); }; }; then
14661 131 jeremybenn
  ac_hi=$ac_mid; break
14662
else
14663 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14664 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14665
 
14666 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
14667
                    if test $ac_lo -le $ac_mid; then
14668
                      ac_lo= ac_hi=
14669
                      break
14670
                    fi
14671
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14672 131 jeremybenn
fi
14673 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674 131 jeremybenn
  done
14675
else
14676 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14677 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14678
 
14679 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14680 131 jeremybenn
/* confdefs.h.  */
14681
_ACEOF
14682
cat confdefs.h >>conftest.$ac_ext
14683
cat >>conftest.$ac_ext <<_ACEOF
14684
/* end confdefs.h.  */
14685
$ac_includes_default
14686
int
14687
main ()
14688
{
14689 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14690 131 jeremybenn
test_array [0] = 0
14691
 
14692
  ;
14693
  return 0;
14694
}
14695
_ACEOF
14696
rm -f conftest.$ac_objext
14697 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14698
  (eval $ac_compile) 2>conftest.er1
14699 131 jeremybenn
  ac_status=$?
14700
  grep -v '^ *+' conftest.er1 >conftest.err
14701
  rm -f conftest.er1
14702
  cat conftest.err >&5
14703 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704
  (exit $ac_status); } &&
14705
         { ac_try='test -z "$ac_c_werror_flag"
14706
                         || test ! -s conftest.err'
14707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708
  (eval $ac_try) 2>&5
14709
  ac_status=$?
14710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711
  (exit $ac_status); }; } &&
14712
         { ac_try='test -s conftest.$ac_objext'
14713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714
  (eval $ac_try) 2>&5
14715
  ac_status=$?
14716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717
  (exit $ac_status); }; }; then
14718 131 jeremybenn
  ac_hi=-1 ac_mid=-1
14719
  while :; do
14720
    cat >conftest.$ac_ext <<_ACEOF
14721
/* confdefs.h.  */
14722
_ACEOF
14723
cat confdefs.h >>conftest.$ac_ext
14724
cat >>conftest.$ac_ext <<_ACEOF
14725
/* end confdefs.h.  */
14726
$ac_includes_default
14727
int
14728
main ()
14729
{
14730 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14731 131 jeremybenn
test_array [0] = 0
14732
 
14733
  ;
14734
  return 0;
14735
}
14736
_ACEOF
14737
rm -f conftest.$ac_objext
14738 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739
  (eval $ac_compile) 2>conftest.er1
14740 131 jeremybenn
  ac_status=$?
14741
  grep -v '^ *+' conftest.er1 >conftest.err
14742
  rm -f conftest.er1
14743
  cat conftest.err >&5
14744 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745
  (exit $ac_status); } &&
14746
         { ac_try='test -z "$ac_c_werror_flag"
14747
                         || test ! -s conftest.err'
14748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749
  (eval $ac_try) 2>&5
14750
  ac_status=$?
14751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752
  (exit $ac_status); }; } &&
14753
         { ac_try='test -s conftest.$ac_objext'
14754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755
  (eval $ac_try) 2>&5
14756
  ac_status=$?
14757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758
  (exit $ac_status); }; }; then
14759 131 jeremybenn
  ac_lo=$ac_mid; break
14760
else
14761 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14762 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14763
 
14764 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
14765
                       if test $ac_mid -le $ac_hi; then
14766
                         ac_lo= ac_hi=
14767
                         break
14768
                       fi
14769
                       ac_mid=`expr 2 '*' $ac_mid`
14770 131 jeremybenn
fi
14771 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 131 jeremybenn
  done
14773
else
14774 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14775 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14776
 
14777 225 jeremybenn
ac_lo= ac_hi=
14778 131 jeremybenn
fi
14779 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14780 131 jeremybenn
fi
14781 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14782 131 jeremybenn
# Binary search between lo and hi bounds.
14783
while test "x$ac_lo" != "x$ac_hi"; do
14784
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14785
  cat >conftest.$ac_ext <<_ACEOF
14786
/* confdefs.h.  */
14787
_ACEOF
14788
cat confdefs.h >>conftest.$ac_ext
14789
cat >>conftest.$ac_ext <<_ACEOF
14790
/* end confdefs.h.  */
14791
$ac_includes_default
14792
int
14793
main ()
14794
{
14795 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14796 131 jeremybenn
test_array [0] = 0
14797
 
14798
  ;
14799
  return 0;
14800
}
14801
_ACEOF
14802
rm -f conftest.$ac_objext
14803 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804
  (eval $ac_compile) 2>conftest.er1
14805 131 jeremybenn
  ac_status=$?
14806
  grep -v '^ *+' conftest.er1 >conftest.err
14807
  rm -f conftest.er1
14808
  cat conftest.err >&5
14809 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810
  (exit $ac_status); } &&
14811
         { ac_try='test -z "$ac_c_werror_flag"
14812
                         || test ! -s conftest.err'
14813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814
  (eval $ac_try) 2>&5
14815
  ac_status=$?
14816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817
  (exit $ac_status); }; } &&
14818
         { ac_try='test -s conftest.$ac_objext'
14819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820
  (eval $ac_try) 2>&5
14821
  ac_status=$?
14822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823
  (exit $ac_status); }; }; then
14824 131 jeremybenn
  ac_hi=$ac_mid
14825
else
14826 225 jeremybenn
  echo "$as_me: failed program was:" >&5
14827 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14828
 
14829 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
14830 131 jeremybenn
fi
14831 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14832 131 jeremybenn
done
14833
case $ac_lo in
14834
?*) ac_cv_sizeof_short=$ac_lo;;
14835 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14836 131 jeremybenn
See \`config.log' for more details." >&5
14837 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (short), 77
14838 131 jeremybenn
See \`config.log' for more details." >&2;}
14839 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
14840 131 jeremybenn
esac
14841
else
14842 225 jeremybenn
  if test "$cross_compiling" = yes; then
14843
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14844
See \`config.log' for more details." >&5
14845
echo "$as_me: error: cannot run test program while cross compiling
14846
See \`config.log' for more details." >&2;}
14847
   { (exit 1); exit 1; }; }
14848
else
14849 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14850
/* confdefs.h.  */
14851
_ACEOF
14852
cat confdefs.h >>conftest.$ac_ext
14853
cat >>conftest.$ac_ext <<_ACEOF
14854
/* end confdefs.h.  */
14855
$ac_includes_default
14856 225 jeremybenn
long longval () { return (long) (sizeof (short)); }
14857
unsigned long ulongval () { return (long) (sizeof (short)); }
14858 131 jeremybenn
#include 
14859
#include 
14860
int
14861
main ()
14862
{
14863
 
14864
  FILE *f = fopen ("conftest.val", "w");
14865
  if (! f)
14866 225 jeremybenn
    exit (1);
14867
  if (((long) (sizeof (short))) < 0)
14868 131 jeremybenn
    {
14869 225 jeremybenn
      long i = longval ();
14870
      if (i != ((long) (sizeof (short))))
14871
        exit (1);
14872
      fprintf (f, "%ld\n", i);
14873 131 jeremybenn
    }
14874
  else
14875
    {
14876 225 jeremybenn
      unsigned long i = ulongval ();
14877
      if (i != ((long) (sizeof (short))))
14878
        exit (1);
14879
      fprintf (f, "%lu\n", i);
14880 131 jeremybenn
    }
14881 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
14882 131 jeremybenn
 
14883
  ;
14884
  return 0;
14885
}
14886
_ACEOF
14887
rm -f conftest$ac_exeext
14888 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889
  (eval $ac_link) 2>&5
14890 131 jeremybenn
  ac_status=$?
14891 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14893 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894
  (eval $ac_try) 2>&5
14895 131 jeremybenn
  ac_status=$?
14896 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 131 jeremybenn
  (exit $ac_status); }; }; then
14898
  ac_cv_sizeof_short=`cat conftest.val`
14899
else
14900 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
14901
echo "$as_me: failed program was:" >&5
14902 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14903
 
14904
( exit $ac_status )
14905 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14906 131 jeremybenn
See \`config.log' for more details." >&5
14907 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (short), 77
14908 131 jeremybenn
See \`config.log' for more details." >&2;}
14909 225 jeremybenn
   { (exit 1); exit 1; }; }
14910 131 jeremybenn
fi
14911 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14912 131 jeremybenn
fi
14913 225 jeremybenn
fi
14914 131 jeremybenn
rm -f conftest.val
14915 225 jeremybenn
else
14916
  ac_cv_sizeof_short=0
14917 131 jeremybenn
fi
14918 225 jeremybenn
fi
14919
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14920
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14921 131 jeremybenn
cat >>confdefs.h <<_ACEOF
14922
#define SIZEOF_SHORT $ac_cv_sizeof_short
14923
_ACEOF
14924
 
14925
 
14926 225 jeremybenn
  echo "$as_me:$LINENO: checking for char" >&5
14927
echo $ECHO_N "checking for char... $ECHO_C" >&6
14928
if test "${ac_cv_type_char+set}" = set; then
14929
  echo $ECHO_N "(cached) $ECHO_C" >&6
14930
else
14931
  cat >conftest.$ac_ext <<_ACEOF
14932
/* confdefs.h.  */
14933
_ACEOF
14934
cat confdefs.h >>conftest.$ac_ext
14935
cat >>conftest.$ac_ext <<_ACEOF
14936
/* end confdefs.h.  */
14937
$ac_includes_default
14938
int
14939
main ()
14940
{
14941
if ((char *) 0)
14942
  return 0;
14943
if (sizeof (char))
14944
  return 0;
14945
  ;
14946
  return 0;
14947
}
14948
_ACEOF
14949
rm -f conftest.$ac_objext
14950
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951
  (eval $ac_compile) 2>conftest.er1
14952
  ac_status=$?
14953
  grep -v '^ *+' conftest.er1 >conftest.err
14954
  rm -f conftest.er1
14955
  cat conftest.err >&5
14956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957
  (exit $ac_status); } &&
14958
         { ac_try='test -z "$ac_c_werror_flag"
14959
                         || test ! -s conftest.err'
14960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961
  (eval $ac_try) 2>&5
14962
  ac_status=$?
14963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964
  (exit $ac_status); }; } &&
14965
         { ac_try='test -s conftest.$ac_objext'
14966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967
  (eval $ac_try) 2>&5
14968
  ac_status=$?
14969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970
  (exit $ac_status); }; }; then
14971
  ac_cv_type_char=yes
14972
else
14973
  echo "$as_me: failed program was:" >&5
14974
sed 's/^/| /' conftest.$ac_ext >&5
14975
 
14976
ac_cv_type_char=no
14977
fi
14978
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979
fi
14980
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14981
echo "${ECHO_T}$ac_cv_type_char" >&6
14982
 
14983
echo "$as_me:$LINENO: checking size of char" >&5
14984
echo $ECHO_N "checking size of char... $ECHO_C" >&6
14985 131 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
14986 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
14987 131 jeremybenn
else
14988 225 jeremybenn
  if test "$ac_cv_type_char" = yes; then
14989
  # The cast to unsigned long works around a bug in the HP C Compiler
14990
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14991
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14992
  # This bug is HP SR number 8606223364.
14993 131 jeremybenn
  if test "$cross_compiling" = yes; then
14994
  # Depending upon the size, compute the lo and hi bounds.
14995
cat >conftest.$ac_ext <<_ACEOF
14996
/* confdefs.h.  */
14997
_ACEOF
14998
cat confdefs.h >>conftest.$ac_ext
14999
cat >>conftest.$ac_ext <<_ACEOF
15000
/* end confdefs.h.  */
15001
$ac_includes_default
15002
int
15003
main ()
15004
{
15005 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15006 131 jeremybenn
test_array [0] = 0
15007
 
15008
  ;
15009
  return 0;
15010
}
15011
_ACEOF
15012
rm -f conftest.$ac_objext
15013 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15014
  (eval $ac_compile) 2>conftest.er1
15015 131 jeremybenn
  ac_status=$?
15016
  grep -v '^ *+' conftest.er1 >conftest.err
15017
  rm -f conftest.er1
15018
  cat conftest.err >&5
15019 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020
  (exit $ac_status); } &&
15021
         { ac_try='test -z "$ac_c_werror_flag"
15022
                         || test ! -s conftest.err'
15023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024
  (eval $ac_try) 2>&5
15025
  ac_status=$?
15026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027
  (exit $ac_status); }; } &&
15028
         { ac_try='test -s conftest.$ac_objext'
15029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030
  (eval $ac_try) 2>&5
15031
  ac_status=$?
15032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033
  (exit $ac_status); }; }; then
15034 131 jeremybenn
  ac_lo=0 ac_mid=0
15035
  while :; do
15036
    cat >conftest.$ac_ext <<_ACEOF
15037
/* confdefs.h.  */
15038
_ACEOF
15039
cat confdefs.h >>conftest.$ac_ext
15040
cat >>conftest.$ac_ext <<_ACEOF
15041
/* end confdefs.h.  */
15042
$ac_includes_default
15043
int
15044
main ()
15045
{
15046 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15047 131 jeremybenn
test_array [0] = 0
15048
 
15049
  ;
15050
  return 0;
15051
}
15052
_ACEOF
15053
rm -f conftest.$ac_objext
15054 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055
  (eval $ac_compile) 2>conftest.er1
15056 131 jeremybenn
  ac_status=$?
15057
  grep -v '^ *+' conftest.er1 >conftest.err
15058
  rm -f conftest.er1
15059
  cat conftest.err >&5
15060 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061
  (exit $ac_status); } &&
15062
         { ac_try='test -z "$ac_c_werror_flag"
15063
                         || test ! -s conftest.err'
15064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065
  (eval $ac_try) 2>&5
15066
  ac_status=$?
15067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068
  (exit $ac_status); }; } &&
15069
         { ac_try='test -s conftest.$ac_objext'
15070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071
  (eval $ac_try) 2>&5
15072
  ac_status=$?
15073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
  (exit $ac_status); }; }; then
15075 131 jeremybenn
  ac_hi=$ac_mid; break
15076
else
15077 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15078 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15079
 
15080 225 jeremybenn
ac_lo=`expr $ac_mid + 1`
15081
                    if test $ac_lo -le $ac_mid; then
15082
                      ac_lo= ac_hi=
15083
                      break
15084
                    fi
15085
                    ac_mid=`expr 2 '*' $ac_mid + 1`
15086 131 jeremybenn
fi
15087 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15088 131 jeremybenn
  done
15089
else
15090 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15091 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15092
 
15093 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
15094 131 jeremybenn
/* confdefs.h.  */
15095
_ACEOF
15096
cat confdefs.h >>conftest.$ac_ext
15097
cat >>conftest.$ac_ext <<_ACEOF
15098
/* end confdefs.h.  */
15099
$ac_includes_default
15100
int
15101
main ()
15102
{
15103 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15104 131 jeremybenn
test_array [0] = 0
15105
 
15106
  ;
15107
  return 0;
15108
}
15109
_ACEOF
15110
rm -f conftest.$ac_objext
15111 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112
  (eval $ac_compile) 2>conftest.er1
15113 131 jeremybenn
  ac_status=$?
15114
  grep -v '^ *+' conftest.er1 >conftest.err
15115
  rm -f conftest.er1
15116
  cat conftest.err >&5
15117 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118
  (exit $ac_status); } &&
15119
         { ac_try='test -z "$ac_c_werror_flag"
15120
                         || test ! -s conftest.err'
15121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122
  (eval $ac_try) 2>&5
15123
  ac_status=$?
15124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125
  (exit $ac_status); }; } &&
15126
         { ac_try='test -s conftest.$ac_objext'
15127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128
  (eval $ac_try) 2>&5
15129
  ac_status=$?
15130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131
  (exit $ac_status); }; }; then
15132 131 jeremybenn
  ac_hi=-1 ac_mid=-1
15133
  while :; do
15134
    cat >conftest.$ac_ext <<_ACEOF
15135
/* confdefs.h.  */
15136
_ACEOF
15137
cat confdefs.h >>conftest.$ac_ext
15138
cat >>conftest.$ac_ext <<_ACEOF
15139
/* end confdefs.h.  */
15140
$ac_includes_default
15141
int
15142
main ()
15143
{
15144 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15145 131 jeremybenn
test_array [0] = 0
15146
 
15147
  ;
15148
  return 0;
15149
}
15150
_ACEOF
15151
rm -f conftest.$ac_objext
15152 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15153
  (eval $ac_compile) 2>conftest.er1
15154 131 jeremybenn
  ac_status=$?
15155
  grep -v '^ *+' conftest.er1 >conftest.err
15156
  rm -f conftest.er1
15157
  cat conftest.err >&5
15158 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159
  (exit $ac_status); } &&
15160
         { ac_try='test -z "$ac_c_werror_flag"
15161
                         || test ! -s conftest.err'
15162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163
  (eval $ac_try) 2>&5
15164
  ac_status=$?
15165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166
  (exit $ac_status); }; } &&
15167
         { ac_try='test -s conftest.$ac_objext'
15168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169
  (eval $ac_try) 2>&5
15170
  ac_status=$?
15171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172
  (exit $ac_status); }; }; then
15173 131 jeremybenn
  ac_lo=$ac_mid; break
15174
else
15175 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15176 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15177
 
15178 225 jeremybenn
ac_hi=`expr '(' $ac_mid ')' - 1`
15179
                       if test $ac_mid -le $ac_hi; then
15180
                         ac_lo= ac_hi=
15181
                         break
15182
                       fi
15183
                       ac_mid=`expr 2 '*' $ac_mid`
15184 131 jeremybenn
fi
15185 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15186 131 jeremybenn
  done
15187
else
15188 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15189 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15190
 
15191 225 jeremybenn
ac_lo= ac_hi=
15192 131 jeremybenn
fi
15193 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15194 131 jeremybenn
fi
15195 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15196 131 jeremybenn
# Binary search between lo and hi bounds.
15197
while test "x$ac_lo" != "x$ac_hi"; do
15198
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15199
  cat >conftest.$ac_ext <<_ACEOF
15200
/* confdefs.h.  */
15201
_ACEOF
15202
cat confdefs.h >>conftest.$ac_ext
15203
cat >>conftest.$ac_ext <<_ACEOF
15204
/* end confdefs.h.  */
15205
$ac_includes_default
15206
int
15207
main ()
15208
{
15209 225 jeremybenn
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15210 131 jeremybenn
test_array [0] = 0
15211
 
15212
  ;
15213
  return 0;
15214
}
15215
_ACEOF
15216
rm -f conftest.$ac_objext
15217 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15218
  (eval $ac_compile) 2>conftest.er1
15219 131 jeremybenn
  ac_status=$?
15220
  grep -v '^ *+' conftest.er1 >conftest.err
15221
  rm -f conftest.er1
15222
  cat conftest.err >&5
15223 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224
  (exit $ac_status); } &&
15225
         { ac_try='test -z "$ac_c_werror_flag"
15226
                         || test ! -s conftest.err'
15227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228
  (eval $ac_try) 2>&5
15229
  ac_status=$?
15230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231
  (exit $ac_status); }; } &&
15232
         { ac_try='test -s conftest.$ac_objext'
15233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234
  (eval $ac_try) 2>&5
15235
  ac_status=$?
15236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237
  (exit $ac_status); }; }; then
15238 131 jeremybenn
  ac_hi=$ac_mid
15239
else
15240 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15241 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15242
 
15243 225 jeremybenn
ac_lo=`expr '(' $ac_mid ')' + 1`
15244 131 jeremybenn
fi
15245 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 131 jeremybenn
done
15247
case $ac_lo in
15248
?*) ac_cv_sizeof_char=$ac_lo;;
15249 225 jeremybenn
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15250 131 jeremybenn
See \`config.log' for more details." >&5
15251 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (char), 77
15252 131 jeremybenn
See \`config.log' for more details." >&2;}
15253 225 jeremybenn
   { (exit 1); exit 1; }; } ;;
15254 131 jeremybenn
esac
15255
else
15256 225 jeremybenn
  if test "$cross_compiling" = yes; then
15257
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15258
See \`config.log' for more details." >&5
15259
echo "$as_me: error: cannot run test program while cross compiling
15260
See \`config.log' for more details." >&2;}
15261
   { (exit 1); exit 1; }; }
15262
else
15263 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15264
/* confdefs.h.  */
15265
_ACEOF
15266
cat confdefs.h >>conftest.$ac_ext
15267
cat >>conftest.$ac_ext <<_ACEOF
15268
/* end confdefs.h.  */
15269
$ac_includes_default
15270 225 jeremybenn
long longval () { return (long) (sizeof (char)); }
15271
unsigned long ulongval () { return (long) (sizeof (char)); }
15272 131 jeremybenn
#include 
15273
#include 
15274
int
15275
main ()
15276
{
15277
 
15278
  FILE *f = fopen ("conftest.val", "w");
15279
  if (! f)
15280 225 jeremybenn
    exit (1);
15281
  if (((long) (sizeof (char))) < 0)
15282 131 jeremybenn
    {
15283 225 jeremybenn
      long i = longval ();
15284
      if (i != ((long) (sizeof (char))))
15285
        exit (1);
15286
      fprintf (f, "%ld\n", i);
15287 131 jeremybenn
    }
15288
  else
15289
    {
15290 225 jeremybenn
      unsigned long i = ulongval ();
15291
      if (i != ((long) (sizeof (char))))
15292
        exit (1);
15293
      fprintf (f, "%lu\n", i);
15294 131 jeremybenn
    }
15295 225 jeremybenn
  exit (ferror (f) || fclose (f) != 0);
15296 131 jeremybenn
 
15297
  ;
15298
  return 0;
15299
}
15300
_ACEOF
15301
rm -f conftest$ac_exeext
15302 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15303
  (eval $ac_link) 2>&5
15304 131 jeremybenn
  ac_status=$?
15305 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15307 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308
  (eval $ac_try) 2>&5
15309 131 jeremybenn
  ac_status=$?
15310 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 131 jeremybenn
  (exit $ac_status); }; }; then
15312
  ac_cv_sizeof_char=`cat conftest.val`
15313
else
15314 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
15315
echo "$as_me: failed program was:" >&5
15316 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15317
 
15318
( exit $ac_status )
15319 225 jeremybenn
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15320 131 jeremybenn
See \`config.log' for more details." >&5
15321 225 jeremybenn
echo "$as_me: error: cannot compute sizeof (char), 77
15322 131 jeremybenn
See \`config.log' for more details." >&2;}
15323 225 jeremybenn
   { (exit 1); exit 1; }; }
15324 131 jeremybenn
fi
15325 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15326 131 jeremybenn
fi
15327 225 jeremybenn
fi
15328 131 jeremybenn
rm -f conftest.val
15329 225 jeremybenn
else
15330
  ac_cv_sizeof_char=0
15331 131 jeremybenn
fi
15332 225 jeremybenn
fi
15333
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15334
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15335 131 jeremybenn
cat >>confdefs.h <<_ACEOF
15336
#define SIZEOF_CHAR $ac_cv_sizeof_char
15337
_ACEOF
15338
 
15339
 
15340
 
15341 225 jeremybenn
  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15342
echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15343 131 jeremybenn
  case "$ac_cv_sizeof_char" in
15344
    1) acx_cv_type_int8_t=char ;;
15345 225 jeremybenn
    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15346
echo "$as_me: error: no 8-bit type" >&2;}
15347 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
15348
  esac
15349 225 jeremybenn
  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15350
echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15351 131 jeremybenn
 
15352 225 jeremybenn
  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15353
echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15354 131 jeremybenn
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15355
    2:*) acx_cv_type_int16_t=int ;;
15356
    *:2) acx_cv_type_int16_t=short ;;
15357 225 jeremybenn
    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15358
echo "$as_me: error: no 16-bit type" >&2;}
15359 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
15360
  esac
15361 225 jeremybenn
  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15362
echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15363 131 jeremybenn
 
15364 225 jeremybenn
  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15365
echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15366 131 jeremybenn
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15367
    4:*) acx_cv_type_int32_t=int ;;
15368
    *:4) acx_cv_type_int32_t=long ;;
15369 225 jeremybenn
    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15370
echo "$as_me: error: no 32-bit type" >&2;}
15371 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
15372
  esac
15373 225 jeremybenn
  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15374
echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15375 131 jeremybenn
fi
15376
 
15377
# These tests are here to make the output prettier
15378
 
15379
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15380
  case "$ac_cv_sizeof_long" in
15381
    8) acx_cv_type_int64_t=long ;;
15382
  esac
15383 225 jeremybenn
  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15384
echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15385
  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15386
echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15387 131 jeremybenn
fi
15388
 
15389
# Now we can use the above types
15390
 
15391
if test "$ac_cv_type_uintptr_t" != yes; then
15392 225 jeremybenn
  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15393
echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15394 131 jeremybenn
  case $ac_cv_sizeof_void_p in
15395
    2) acx_cv_type_intptr_t=int16_t ;;
15396
    4) acx_cv_type_intptr_t=int32_t ;;
15397
    8) acx_cv_type_intptr_t=int64_t ;;
15398 225 jeremybenn
    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15399
echo "$as_me: error: no equivalent for intptr_t" >&2;}
15400 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
15401
  esac
15402 225 jeremybenn
  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15403
echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15404 131 jeremybenn
fi
15405
 
15406
# ----------------- done all checks, emit header -------------
15407 225 jeremybenn
          ac_config_commands="$ac_config_commands gdb_stdint.h"
15408 131 jeremybenn
 
15409
 
15410
 
15411
 
15412
# ------------------------- #
15413
# Checks for declarations.  #
15414
# ------------------------- #
15415
 
15416 225 jeremybenn
echo "$as_me:$LINENO: checking whether free is declared" >&5
15417
echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
15418 131 jeremybenn
if test "${ac_cv_have_decl_free+set}" = set; then
15419 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15420 131 jeremybenn
else
15421
  cat >conftest.$ac_ext <<_ACEOF
15422
/* confdefs.h.  */
15423
_ACEOF
15424
cat confdefs.h >>conftest.$ac_ext
15425
cat >>conftest.$ac_ext <<_ACEOF
15426
/* end confdefs.h.  */
15427
$ac_includes_default
15428
int
15429
main ()
15430
{
15431
#ifndef free
15432 225 jeremybenn
  char *p = (char *) free;
15433 131 jeremybenn
#endif
15434
 
15435
  ;
15436
  return 0;
15437
}
15438
_ACEOF
15439
rm -f conftest.$ac_objext
15440 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441
  (eval $ac_compile) 2>conftest.er1
15442 131 jeremybenn
  ac_status=$?
15443
  grep -v '^ *+' conftest.er1 >conftest.err
15444
  rm -f conftest.er1
15445
  cat conftest.err >&5
15446 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447
  (exit $ac_status); } &&
15448
         { ac_try='test -z "$ac_c_werror_flag"
15449
                         || test ! -s conftest.err'
15450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451
  (eval $ac_try) 2>&5
15452
  ac_status=$?
15453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454
  (exit $ac_status); }; } &&
15455
         { ac_try='test -s conftest.$ac_objext'
15456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457
  (eval $ac_try) 2>&5
15458
  ac_status=$?
15459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460
  (exit $ac_status); }; }; then
15461 131 jeremybenn
  ac_cv_have_decl_free=yes
15462
else
15463 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15464 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15465
 
15466 225 jeremybenn
ac_cv_have_decl_free=no
15467 131 jeremybenn
fi
15468 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15469 131 jeremybenn
fi
15470 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15471
echo "${ECHO_T}$ac_cv_have_decl_free" >&6
15472
if test $ac_cv_have_decl_free = yes; then
15473 131 jeremybenn
 
15474
cat >>confdefs.h <<_ACEOF
15475
#define HAVE_DECL_FREE 1
15476
_ACEOF
15477
 
15478
 
15479
else
15480
  cat >>confdefs.h <<_ACEOF
15481
#define HAVE_DECL_FREE 0
15482
_ACEOF
15483
 
15484
 
15485
fi
15486 225 jeremybenn
echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15487
echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
15488 131 jeremybenn
if test "${ac_cv_have_decl_malloc+set}" = set; then
15489 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15490 131 jeremybenn
else
15491
  cat >conftest.$ac_ext <<_ACEOF
15492
/* confdefs.h.  */
15493
_ACEOF
15494
cat confdefs.h >>conftest.$ac_ext
15495
cat >>conftest.$ac_ext <<_ACEOF
15496
/* end confdefs.h.  */
15497
$ac_includes_default
15498
int
15499
main ()
15500
{
15501
#ifndef malloc
15502 225 jeremybenn
  char *p = (char *) malloc;
15503 131 jeremybenn
#endif
15504
 
15505
  ;
15506
  return 0;
15507
}
15508
_ACEOF
15509
rm -f conftest.$ac_objext
15510 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511
  (eval $ac_compile) 2>conftest.er1
15512 131 jeremybenn
  ac_status=$?
15513
  grep -v '^ *+' conftest.er1 >conftest.err
15514
  rm -f conftest.er1
15515
  cat conftest.err >&5
15516 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517
  (exit $ac_status); } &&
15518
         { ac_try='test -z "$ac_c_werror_flag"
15519
                         || test ! -s conftest.err'
15520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521
  (eval $ac_try) 2>&5
15522
  ac_status=$?
15523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524
  (exit $ac_status); }; } &&
15525
         { ac_try='test -s conftest.$ac_objext'
15526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527
  (eval $ac_try) 2>&5
15528
  ac_status=$?
15529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530
  (exit $ac_status); }; }; then
15531 131 jeremybenn
  ac_cv_have_decl_malloc=yes
15532
else
15533 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15534 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15535
 
15536 225 jeremybenn
ac_cv_have_decl_malloc=no
15537 131 jeremybenn
fi
15538 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539 131 jeremybenn
fi
15540 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15541
echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
15542
if test $ac_cv_have_decl_malloc = yes; then
15543 131 jeremybenn
 
15544
cat >>confdefs.h <<_ACEOF
15545
#define HAVE_DECL_MALLOC 1
15546
_ACEOF
15547
 
15548
 
15549
else
15550
  cat >>confdefs.h <<_ACEOF
15551
#define HAVE_DECL_MALLOC 0
15552
_ACEOF
15553
 
15554
 
15555
fi
15556 225 jeremybenn
echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15557
echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
15558 131 jeremybenn
if test "${ac_cv_have_decl_realloc+set}" = set; then
15559 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15560 131 jeremybenn
else
15561
  cat >conftest.$ac_ext <<_ACEOF
15562
/* confdefs.h.  */
15563
_ACEOF
15564
cat confdefs.h >>conftest.$ac_ext
15565
cat >>conftest.$ac_ext <<_ACEOF
15566
/* end confdefs.h.  */
15567
$ac_includes_default
15568
int
15569
main ()
15570
{
15571
#ifndef realloc
15572 225 jeremybenn
  char *p = (char *) realloc;
15573 131 jeremybenn
#endif
15574
 
15575
  ;
15576
  return 0;
15577
}
15578
_ACEOF
15579
rm -f conftest.$ac_objext
15580 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581
  (eval $ac_compile) 2>conftest.er1
15582 131 jeremybenn
  ac_status=$?
15583
  grep -v '^ *+' conftest.er1 >conftest.err
15584
  rm -f conftest.er1
15585
  cat conftest.err >&5
15586 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587
  (exit $ac_status); } &&
15588
         { ac_try='test -z "$ac_c_werror_flag"
15589
                         || test ! -s conftest.err'
15590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591
  (eval $ac_try) 2>&5
15592
  ac_status=$?
15593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594
  (exit $ac_status); }; } &&
15595
         { ac_try='test -s conftest.$ac_objext'
15596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597
  (eval $ac_try) 2>&5
15598
  ac_status=$?
15599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600
  (exit $ac_status); }; }; then
15601 131 jeremybenn
  ac_cv_have_decl_realloc=yes
15602
else
15603 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15604 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15605
 
15606 225 jeremybenn
ac_cv_have_decl_realloc=no
15607 131 jeremybenn
fi
15608 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15609 131 jeremybenn
fi
15610 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15611
echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
15612
if test $ac_cv_have_decl_realloc = yes; then
15613 131 jeremybenn
 
15614
cat >>confdefs.h <<_ACEOF
15615
#define HAVE_DECL_REALLOC 1
15616
_ACEOF
15617
 
15618
 
15619
else
15620
  cat >>confdefs.h <<_ACEOF
15621
#define HAVE_DECL_REALLOC 0
15622
_ACEOF
15623
 
15624
 
15625
fi
15626
 
15627
 
15628 225 jeremybenn
echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15629
echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
15630 131 jeremybenn
if test "${ac_cv_have_decl_strerror+set}" = set; then
15631 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15632 131 jeremybenn
else
15633
  cat >conftest.$ac_ext <<_ACEOF
15634
/* confdefs.h.  */
15635
_ACEOF
15636
cat confdefs.h >>conftest.$ac_ext
15637
cat >>conftest.$ac_ext <<_ACEOF
15638
/* end confdefs.h.  */
15639
$ac_includes_default
15640
int
15641
main ()
15642
{
15643
#ifndef strerror
15644 225 jeremybenn
  char *p = (char *) strerror;
15645 131 jeremybenn
#endif
15646
 
15647
  ;
15648
  return 0;
15649
}
15650
_ACEOF
15651
rm -f conftest.$ac_objext
15652 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653
  (eval $ac_compile) 2>conftest.er1
15654 131 jeremybenn
  ac_status=$?
15655
  grep -v '^ *+' conftest.er1 >conftest.err
15656
  rm -f conftest.er1
15657
  cat conftest.err >&5
15658 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659
  (exit $ac_status); } &&
15660
         { ac_try='test -z "$ac_c_werror_flag"
15661
                         || test ! -s conftest.err'
15662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663
  (eval $ac_try) 2>&5
15664
  ac_status=$?
15665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666
  (exit $ac_status); }; } &&
15667
         { ac_try='test -s conftest.$ac_objext'
15668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669
  (eval $ac_try) 2>&5
15670
  ac_status=$?
15671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672
  (exit $ac_status); }; }; then
15673 131 jeremybenn
  ac_cv_have_decl_strerror=yes
15674
else
15675 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15676 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15677
 
15678 225 jeremybenn
ac_cv_have_decl_strerror=no
15679 131 jeremybenn
fi
15680 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15681 131 jeremybenn
fi
15682 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
15683
echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
15684
if test $ac_cv_have_decl_strerror = yes; then
15685 131 jeremybenn
 
15686
cat >>confdefs.h <<_ACEOF
15687
#define HAVE_DECL_STRERROR 1
15688
_ACEOF
15689
 
15690
 
15691
else
15692
  cat >>confdefs.h <<_ACEOF
15693
#define HAVE_DECL_STRERROR 0
15694
_ACEOF
15695
 
15696
 
15697
fi
15698 225 jeremybenn
echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15699
echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
15700 131 jeremybenn
if test "${ac_cv_have_decl_strstr+set}" = set; then
15701 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15702 131 jeremybenn
else
15703
  cat >conftest.$ac_ext <<_ACEOF
15704
/* confdefs.h.  */
15705
_ACEOF
15706
cat confdefs.h >>conftest.$ac_ext
15707
cat >>conftest.$ac_ext <<_ACEOF
15708
/* end confdefs.h.  */
15709
$ac_includes_default
15710
int
15711
main ()
15712
{
15713
#ifndef strstr
15714 225 jeremybenn
  char *p = (char *) strstr;
15715 131 jeremybenn
#endif
15716
 
15717
  ;
15718
  return 0;
15719
}
15720
_ACEOF
15721
rm -f conftest.$ac_objext
15722 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15723
  (eval $ac_compile) 2>conftest.er1
15724 131 jeremybenn
  ac_status=$?
15725
  grep -v '^ *+' conftest.er1 >conftest.err
15726
  rm -f conftest.er1
15727
  cat conftest.err >&5
15728 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729
  (exit $ac_status); } &&
15730
         { ac_try='test -z "$ac_c_werror_flag"
15731
                         || test ! -s conftest.err'
15732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733
  (eval $ac_try) 2>&5
15734
  ac_status=$?
15735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736
  (exit $ac_status); }; } &&
15737
         { ac_try='test -s conftest.$ac_objext'
15738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739
  (eval $ac_try) 2>&5
15740
  ac_status=$?
15741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742
  (exit $ac_status); }; }; then
15743 131 jeremybenn
  ac_cv_have_decl_strstr=yes
15744
else
15745 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15746 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15747
 
15748 225 jeremybenn
ac_cv_have_decl_strstr=no
15749 131 jeremybenn
fi
15750 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15751 131 jeremybenn
fi
15752 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
15753
echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
15754
if test $ac_cv_have_decl_strstr = yes; then
15755 131 jeremybenn
 
15756
cat >>confdefs.h <<_ACEOF
15757
#define HAVE_DECL_STRSTR 1
15758
_ACEOF
15759
 
15760
 
15761
else
15762
  cat >>confdefs.h <<_ACEOF
15763
#define HAVE_DECL_STRSTR 0
15764
_ACEOF
15765
 
15766
 
15767
fi
15768
 
15769
 
15770 225 jeremybenn
echo "$as_me:$LINENO: checking whether getopt is declared" >&5
15771
echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
15772 131 jeremybenn
if test "${ac_cv_have_decl_getopt+set}" = set; then
15773 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15774 131 jeremybenn
else
15775
  cat >conftest.$ac_ext <<_ACEOF
15776
/* confdefs.h.  */
15777
_ACEOF
15778
cat confdefs.h >>conftest.$ac_ext
15779
cat >>conftest.$ac_ext <<_ACEOF
15780
/* end confdefs.h.  */
15781
$ac_includes_default
15782
int
15783
main ()
15784
{
15785
#ifndef getopt
15786 225 jeremybenn
  char *p = (char *) getopt;
15787 131 jeremybenn
#endif
15788
 
15789
  ;
15790
  return 0;
15791
}
15792
_ACEOF
15793
rm -f conftest.$ac_objext
15794 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795
  (eval $ac_compile) 2>conftest.er1
15796 131 jeremybenn
  ac_status=$?
15797
  grep -v '^ *+' conftest.er1 >conftest.err
15798
  rm -f conftest.er1
15799
  cat conftest.err >&5
15800 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801
  (exit $ac_status); } &&
15802
         { ac_try='test -z "$ac_c_werror_flag"
15803
                         || test ! -s conftest.err'
15804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805
  (eval $ac_try) 2>&5
15806
  ac_status=$?
15807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808
  (exit $ac_status); }; } &&
15809
         { ac_try='test -s conftest.$ac_objext'
15810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811
  (eval $ac_try) 2>&5
15812
  ac_status=$?
15813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814
  (exit $ac_status); }; }; then
15815 131 jeremybenn
  ac_cv_have_decl_getopt=yes
15816
else
15817 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15818 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15819
 
15820 225 jeremybenn
ac_cv_have_decl_getopt=no
15821 131 jeremybenn
fi
15822 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823 131 jeremybenn
fi
15824 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15825
echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
15826
if test $ac_cv_have_decl_getopt = yes; then
15827 131 jeremybenn
 
15828
cat >>confdefs.h <<_ACEOF
15829
#define HAVE_DECL_GETOPT 1
15830
_ACEOF
15831
 
15832
 
15833
else
15834
  cat >>confdefs.h <<_ACEOF
15835
#define HAVE_DECL_GETOPT 0
15836
_ACEOF
15837
 
15838
 
15839
fi
15840 225 jeremybenn
echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15841
echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15842 131 jeremybenn
if test "${ac_cv_have_decl_snprintf+set}" = set; then
15843 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15844 131 jeremybenn
else
15845
  cat >conftest.$ac_ext <<_ACEOF
15846
/* confdefs.h.  */
15847
_ACEOF
15848
cat confdefs.h >>conftest.$ac_ext
15849
cat >>conftest.$ac_ext <<_ACEOF
15850
/* end confdefs.h.  */
15851
$ac_includes_default
15852
int
15853
main ()
15854
{
15855
#ifndef snprintf
15856 225 jeremybenn
  char *p = (char *) snprintf;
15857 131 jeremybenn
#endif
15858
 
15859
  ;
15860
  return 0;
15861
}
15862
_ACEOF
15863
rm -f conftest.$ac_objext
15864 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15865
  (eval $ac_compile) 2>conftest.er1
15866 131 jeremybenn
  ac_status=$?
15867
  grep -v '^ *+' conftest.er1 >conftest.err
15868
  rm -f conftest.er1
15869
  cat conftest.err >&5
15870 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871
  (exit $ac_status); } &&
15872
         { ac_try='test -z "$ac_c_werror_flag"
15873
                         || test ! -s conftest.err'
15874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875
  (eval $ac_try) 2>&5
15876
  ac_status=$?
15877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878
  (exit $ac_status); }; } &&
15879
         { ac_try='test -s conftest.$ac_objext'
15880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881
  (eval $ac_try) 2>&5
15882
  ac_status=$?
15883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884
  (exit $ac_status); }; }; then
15885 131 jeremybenn
  ac_cv_have_decl_snprintf=yes
15886
else
15887 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15888 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15889
 
15890 225 jeremybenn
ac_cv_have_decl_snprintf=no
15891 131 jeremybenn
fi
15892 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 131 jeremybenn
fi
15894 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15895
echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15896
if test $ac_cv_have_decl_snprintf = yes; then
15897 131 jeremybenn
 
15898
cat >>confdefs.h <<_ACEOF
15899
#define HAVE_DECL_SNPRINTF 1
15900
_ACEOF
15901
 
15902
 
15903
else
15904
  cat >>confdefs.h <<_ACEOF
15905
#define HAVE_DECL_SNPRINTF 0
15906
_ACEOF
15907
 
15908
 
15909
fi
15910 225 jeremybenn
echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15911
echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15912 131 jeremybenn
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15913 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15914 131 jeremybenn
else
15915
  cat >conftest.$ac_ext <<_ACEOF
15916
/* confdefs.h.  */
15917
_ACEOF
15918
cat confdefs.h >>conftest.$ac_ext
15919
cat >>conftest.$ac_ext <<_ACEOF
15920
/* end confdefs.h.  */
15921
$ac_includes_default
15922
int
15923
main ()
15924
{
15925
#ifndef vsnprintf
15926 225 jeremybenn
  char *p = (char *) vsnprintf;
15927 131 jeremybenn
#endif
15928
 
15929
  ;
15930
  return 0;
15931
}
15932
_ACEOF
15933
rm -f conftest.$ac_objext
15934 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935
  (eval $ac_compile) 2>conftest.er1
15936 131 jeremybenn
  ac_status=$?
15937
  grep -v '^ *+' conftest.er1 >conftest.err
15938
  rm -f conftest.er1
15939
  cat conftest.err >&5
15940 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941
  (exit $ac_status); } &&
15942
         { ac_try='test -z "$ac_c_werror_flag"
15943
                         || test ! -s conftest.err'
15944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945
  (eval $ac_try) 2>&5
15946
  ac_status=$?
15947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948
  (exit $ac_status); }; } &&
15949
         { ac_try='test -s conftest.$ac_objext'
15950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951
  (eval $ac_try) 2>&5
15952
  ac_status=$?
15953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954
  (exit $ac_status); }; }; then
15955 131 jeremybenn
  ac_cv_have_decl_vsnprintf=yes
15956
else
15957 225 jeremybenn
  echo "$as_me: failed program was:" >&5
15958 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15959
 
15960 225 jeremybenn
ac_cv_have_decl_vsnprintf=no
15961 131 jeremybenn
fi
15962 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15963 131 jeremybenn
fi
15964 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15965
echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15966
if test $ac_cv_have_decl_vsnprintf = yes; then
15967 131 jeremybenn
 
15968
cat >>confdefs.h <<_ACEOF
15969
#define HAVE_DECL_VSNPRINTF 1
15970
_ACEOF
15971
 
15972
 
15973
else
15974
  cat >>confdefs.h <<_ACEOF
15975
#define HAVE_DECL_VSNPRINTF 0
15976
_ACEOF
15977
 
15978
 
15979
fi
15980
 
15981
 
15982
 
15983
# ----------------------- #
15984
# Checks for structures.  #
15985
# ----------------------- #
15986
 
15987 225 jeremybenn
echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15988
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
15989 131 jeremybenn
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15990 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
15991 131 jeremybenn
else
15992
  cat >conftest.$ac_ext <<_ACEOF
15993
/* confdefs.h.  */
15994
_ACEOF
15995
cat confdefs.h >>conftest.$ac_ext
15996
cat >>conftest.$ac_ext <<_ACEOF
15997
/* end confdefs.h.  */
15998
$ac_includes_default
15999
int
16000
main ()
16001
{
16002
static struct stat ac_aggr;
16003
if (ac_aggr.st_blocks)
16004
return 0;
16005
  ;
16006
  return 0;
16007
}
16008
_ACEOF
16009
rm -f conftest.$ac_objext
16010 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011
  (eval $ac_compile) 2>conftest.er1
16012 131 jeremybenn
  ac_status=$?
16013
  grep -v '^ *+' conftest.er1 >conftest.err
16014
  rm -f conftest.er1
16015
  cat conftest.err >&5
16016 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017
  (exit $ac_status); } &&
16018
         { ac_try='test -z "$ac_c_werror_flag"
16019
                         || test ! -s conftest.err'
16020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021
  (eval $ac_try) 2>&5
16022
  ac_status=$?
16023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024
  (exit $ac_status); }; } &&
16025
         { ac_try='test -s conftest.$ac_objext'
16026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027
  (eval $ac_try) 2>&5
16028
  ac_status=$?
16029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030
  (exit $ac_status); }; }; then
16031 131 jeremybenn
  ac_cv_member_struct_stat_st_blocks=yes
16032
else
16033 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16034 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16035
 
16036 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
16037 131 jeremybenn
/* confdefs.h.  */
16038
_ACEOF
16039
cat confdefs.h >>conftest.$ac_ext
16040
cat >>conftest.$ac_ext <<_ACEOF
16041
/* end confdefs.h.  */
16042
$ac_includes_default
16043
int
16044
main ()
16045
{
16046
static struct stat ac_aggr;
16047
if (sizeof ac_aggr.st_blocks)
16048
return 0;
16049
  ;
16050
  return 0;
16051
}
16052
_ACEOF
16053
rm -f conftest.$ac_objext
16054 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16055
  (eval $ac_compile) 2>conftest.er1
16056 131 jeremybenn
  ac_status=$?
16057
  grep -v '^ *+' conftest.er1 >conftest.err
16058
  rm -f conftest.er1
16059
  cat conftest.err >&5
16060 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061
  (exit $ac_status); } &&
16062
         { ac_try='test -z "$ac_c_werror_flag"
16063
                         || test ! -s conftest.err'
16064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065
  (eval $ac_try) 2>&5
16066
  ac_status=$?
16067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068
  (exit $ac_status); }; } &&
16069
         { ac_try='test -s conftest.$ac_objext'
16070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071
  (eval $ac_try) 2>&5
16072
  ac_status=$?
16073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074
  (exit $ac_status); }; }; then
16075 131 jeremybenn
  ac_cv_member_struct_stat_st_blocks=yes
16076
else
16077 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16078 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16079
 
16080 225 jeremybenn
ac_cv_member_struct_stat_st_blocks=no
16081 131 jeremybenn
fi
16082 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16083 131 jeremybenn
fi
16084 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085 131 jeremybenn
fi
16086 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16087
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16088
if test $ac_cv_member_struct_stat_st_blocks = yes; then
16089 131 jeremybenn
 
16090
cat >>confdefs.h <<_ACEOF
16091
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16092
_ACEOF
16093
 
16094
 
16095
fi
16096
 
16097 225 jeremybenn
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16098
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16099 131 jeremybenn
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16100 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16101 131 jeremybenn
else
16102
  cat >conftest.$ac_ext <<_ACEOF
16103
/* confdefs.h.  */
16104
_ACEOF
16105
cat confdefs.h >>conftest.$ac_ext
16106
cat >>conftest.$ac_ext <<_ACEOF
16107
/* end confdefs.h.  */
16108
$ac_includes_default
16109
int
16110
main ()
16111
{
16112
static struct stat ac_aggr;
16113
if (ac_aggr.st_blksize)
16114
return 0;
16115
  ;
16116
  return 0;
16117
}
16118
_ACEOF
16119
rm -f conftest.$ac_objext
16120 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121
  (eval $ac_compile) 2>conftest.er1
16122 131 jeremybenn
  ac_status=$?
16123
  grep -v '^ *+' conftest.er1 >conftest.err
16124
  rm -f conftest.er1
16125
  cat conftest.err >&5
16126 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127
  (exit $ac_status); } &&
16128
         { ac_try='test -z "$ac_c_werror_flag"
16129
                         || test ! -s conftest.err'
16130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131
  (eval $ac_try) 2>&5
16132
  ac_status=$?
16133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134
  (exit $ac_status); }; } &&
16135
         { ac_try='test -s conftest.$ac_objext'
16136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137
  (eval $ac_try) 2>&5
16138
  ac_status=$?
16139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140
  (exit $ac_status); }; }; then
16141 131 jeremybenn
  ac_cv_member_struct_stat_st_blksize=yes
16142
else
16143 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16144 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16145
 
16146 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
16147 131 jeremybenn
/* confdefs.h.  */
16148
_ACEOF
16149
cat confdefs.h >>conftest.$ac_ext
16150
cat >>conftest.$ac_ext <<_ACEOF
16151
/* end confdefs.h.  */
16152
$ac_includes_default
16153
int
16154
main ()
16155
{
16156
static struct stat ac_aggr;
16157
if (sizeof ac_aggr.st_blksize)
16158
return 0;
16159
  ;
16160
  return 0;
16161
}
16162
_ACEOF
16163
rm -f conftest.$ac_objext
16164 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165
  (eval $ac_compile) 2>conftest.er1
16166 131 jeremybenn
  ac_status=$?
16167
  grep -v '^ *+' conftest.er1 >conftest.err
16168
  rm -f conftest.er1
16169
  cat conftest.err >&5
16170 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171
  (exit $ac_status); } &&
16172
         { ac_try='test -z "$ac_c_werror_flag"
16173
                         || test ! -s conftest.err'
16174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175
  (eval $ac_try) 2>&5
16176
  ac_status=$?
16177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178
  (exit $ac_status); }; } &&
16179
         { ac_try='test -s conftest.$ac_objext'
16180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181
  (eval $ac_try) 2>&5
16182
  ac_status=$?
16183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184
  (exit $ac_status); }; }; then
16185 131 jeremybenn
  ac_cv_member_struct_stat_st_blksize=yes
16186
else
16187 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16188 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16189
 
16190 225 jeremybenn
ac_cv_member_struct_stat_st_blksize=no
16191 131 jeremybenn
fi
16192 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16193 131 jeremybenn
fi
16194 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195 131 jeremybenn
fi
16196 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16197
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16198
if test $ac_cv_member_struct_stat_st_blksize = yes; then
16199 131 jeremybenn
 
16200
cat >>confdefs.h <<_ACEOF
16201
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16202
_ACEOF
16203
 
16204
 
16205
fi
16206
 
16207
 
16208
# ------------------ #
16209
# Checks for types.  #
16210
# ------------------ #
16211
 
16212 225 jeremybenn
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16213
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16214 131 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
16215 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16216 131 jeremybenn
else
16217
  cat >conftest.$ac_ext <<_ACEOF
16218
/* confdefs.h.  */
16219
_ACEOF
16220
cat confdefs.h >>conftest.$ac_ext
16221
cat >>conftest.$ac_ext <<_ACEOF
16222
/* end confdefs.h.  */
16223
#include 
16224
#include 
16225 225 jeremybenn
#ifdef signal
16226
# undef signal
16227
#endif
16228
#ifdef __cplusplus
16229
extern "C" void (*signal (int, void (*)(int)))(int);
16230
#else
16231
void (*signal ()) ();
16232
#endif
16233 131 jeremybenn
 
16234
int
16235
main ()
16236
{
16237 225 jeremybenn
int i;
16238 131 jeremybenn
  ;
16239
  return 0;
16240
}
16241
_ACEOF
16242
rm -f conftest.$ac_objext
16243 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244
  (eval $ac_compile) 2>conftest.er1
16245 131 jeremybenn
  ac_status=$?
16246
  grep -v '^ *+' conftest.er1 >conftest.err
16247
  rm -f conftest.er1
16248
  cat conftest.err >&5
16249 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250
  (exit $ac_status); } &&
16251
         { ac_try='test -z "$ac_c_werror_flag"
16252
                         || test ! -s conftest.err'
16253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254
  (eval $ac_try) 2>&5
16255
  ac_status=$?
16256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257
  (exit $ac_status); }; } &&
16258
         { ac_try='test -s conftest.$ac_objext'
16259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260
  (eval $ac_try) 2>&5
16261
  ac_status=$?
16262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
  (exit $ac_status); }; }; then
16264
  ac_cv_type_signal=void
16265 131 jeremybenn
else
16266 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16267 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16268
 
16269 225 jeremybenn
ac_cv_type_signal=int
16270 131 jeremybenn
fi
16271 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 131 jeremybenn
fi
16273 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16274
echo "${ECHO_T}$ac_cv_type_signal" >&6
16275 131 jeremybenn
 
16276
cat >>confdefs.h <<_ACEOF
16277
#define RETSIGTYPE $ac_cv_type_signal
16278
_ACEOF
16279
 
16280
 
16281 225 jeremybenn
echo "$as_me:$LINENO: checking for socklen_t" >&5
16282
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16283 131 jeremybenn
if test "${ac_cv_type_socklen_t+set}" = set; then
16284 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16285 131 jeremybenn
else
16286 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
16287 131 jeremybenn
/* confdefs.h.  */
16288
_ACEOF
16289
cat confdefs.h >>conftest.$ac_ext
16290
cat >>conftest.$ac_ext <<_ACEOF
16291
/* end confdefs.h.  */
16292
#include 
16293
#include 
16294
 
16295
 
16296
int
16297
main ()
16298
{
16299 225 jeremybenn
if ((socklen_t *) 0)
16300
  return 0;
16301 131 jeremybenn
if (sizeof (socklen_t))
16302 225 jeremybenn
  return 0;
16303 213 jeremybenn
  ;
16304 131 jeremybenn
  return 0;
16305 213 jeremybenn
}
16306
_ACEOF
16307
rm -f conftest.$ac_objext
16308 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309
  (eval $ac_compile) 2>conftest.er1
16310 213 jeremybenn
  ac_status=$?
16311
  grep -v '^ *+' conftest.er1 >conftest.err
16312
  rm -f conftest.er1
16313
  cat conftest.err >&5
16314 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315
  (exit $ac_status); } &&
16316
         { ac_try='test -z "$ac_c_werror_flag"
16317
                         || test ! -s conftest.err'
16318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319
  (eval $ac_try) 2>&5
16320 131 jeremybenn
  ac_status=$?
16321 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322
  (exit $ac_status); }; } &&
16323
         { ac_try='test -s conftest.$ac_objext'
16324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325
  (eval $ac_try) 2>&5
16326
  ac_status=$?
16327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328
  (exit $ac_status); }; }; then
16329
  ac_cv_type_socklen_t=yes
16330 131 jeremybenn
else
16331 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16332 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16333
 
16334 225 jeremybenn
ac_cv_type_socklen_t=no
16335 131 jeremybenn
fi
16336 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16337 131 jeremybenn
fi
16338 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16339
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16340
if test $ac_cv_type_socklen_t = yes; then
16341 131 jeremybenn
 
16342
cat >>confdefs.h <<_ACEOF
16343
#define HAVE_SOCKLEN_T 1
16344
_ACEOF
16345
 
16346
 
16347
fi
16348
 
16349 225 jeremybenn
echo "$as_me:$LINENO: checking for uintptr_t" >&5
16350
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16351 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
16352 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16353 131 jeremybenn
else
16354 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
16355 131 jeremybenn
/* confdefs.h.  */
16356
_ACEOF
16357
cat confdefs.h >>conftest.$ac_ext
16358
cat >>conftest.$ac_ext <<_ACEOF
16359
/* end confdefs.h.  */
16360
#include 
16361
 
16362
int
16363
main ()
16364
{
16365 225 jeremybenn
if ((uintptr_t *) 0)
16366
  return 0;
16367 131 jeremybenn
if (sizeof (uintptr_t))
16368 225 jeremybenn
  return 0;
16369 213 jeremybenn
  ;
16370 131 jeremybenn
  return 0;
16371 213 jeremybenn
}
16372
_ACEOF
16373
rm -f conftest.$ac_objext
16374 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375
  (eval $ac_compile) 2>conftest.er1
16376 213 jeremybenn
  ac_status=$?
16377
  grep -v '^ *+' conftest.er1 >conftest.err
16378
  rm -f conftest.er1
16379
  cat conftest.err >&5
16380 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381
  (exit $ac_status); } &&
16382
         { ac_try='test -z "$ac_c_werror_flag"
16383
                         || test ! -s conftest.err'
16384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385
  (eval $ac_try) 2>&5
16386 131 jeremybenn
  ac_status=$?
16387 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388
  (exit $ac_status); }; } &&
16389
         { ac_try='test -s conftest.$ac_objext'
16390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391
  (eval $ac_try) 2>&5
16392
  ac_status=$?
16393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394
  (exit $ac_status); }; }; then
16395
  ac_cv_type_uintptr_t=yes
16396 131 jeremybenn
else
16397 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16398 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16399
 
16400 225 jeremybenn
ac_cv_type_uintptr_t=no
16401 131 jeremybenn
fi
16402 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16403 131 jeremybenn
fi
16404 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16405
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16406
if test $ac_cv_type_uintptr_t = yes; then
16407 131 jeremybenn
 
16408
cat >>confdefs.h <<_ACEOF
16409
#define HAVE_UINTPTR_T 1
16410
_ACEOF
16411
 
16412
 
16413
fi
16414
 
16415
 
16416
# ------------------------------------- #
16417
# Checks for compiler characteristics.  #
16418
# ------------------------------------- #
16419
 
16420 225 jeremybenn
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16421
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16422 131 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
16423 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16424 131 jeremybenn
else
16425
  cat >conftest.$ac_ext <<_ACEOF
16426
/* confdefs.h.  */
16427
_ACEOF
16428
cat confdefs.h >>conftest.$ac_ext
16429
cat >>conftest.$ac_ext <<_ACEOF
16430
/* end confdefs.h.  */
16431
 
16432
int
16433
main ()
16434
{
16435
/* FIXME: Include the comments suggested by Paul. */
16436
#ifndef __cplusplus
16437
  /* Ultrix mips cc rejects this.  */
16438
  typedef int charset[2];
16439 225 jeremybenn
  const charset x;
16440 131 jeremybenn
  /* SunOS 4.1.1 cc rejects this.  */
16441 225 jeremybenn
  char const *const *ccp;
16442
  char **p;
16443 131 jeremybenn
  /* NEC SVR4.0.2 mips cc rejects this.  */
16444
  struct point {int x, y;};
16445
  static struct point const zero = {0,0};
16446
  /* AIX XL C 1.02.0.0 rejects this.
16447
     It does not let you subtract one const X* pointer from another in
16448
     an arm of an if-expression whose if-part is not a constant
16449
     expression */
16450
  const char *g = "string";
16451 225 jeremybenn
  ccp = &g + (g ? g-g : 0);
16452 131 jeremybenn
  /* HPUX 7.0 cc rejects these. */
16453 225 jeremybenn
  ++ccp;
16454
  p = (char**) ccp;
16455
  ccp = (char const *const *) p;
16456 131 jeremybenn
  { /* SCO 3.2v4 cc rejects this.  */
16457
    char *t;
16458
    char const *s = 0 ? (char *) 0 : (char const *) 0;
16459
 
16460
    *t++ = 0;
16461
  }
16462
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16463
    int x[] = {25, 17};
16464
    const int *foo = &x[0];
16465
    ++foo;
16466
  }
16467
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16468
    typedef const int *iptr;
16469
    iptr p = 0;
16470
    ++p;
16471
  }
16472
  { /* AIX XL C 1.02.0.0 rejects this saying
16473
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16474
    struct s { int j; const int *ap[3]; };
16475
    struct s *b; b->j = 5;
16476
  }
16477
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16478
    const int foo = 10;
16479
  }
16480
#endif
16481
 
16482
  ;
16483
  return 0;
16484
}
16485
_ACEOF
16486
rm -f conftest.$ac_objext
16487 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488
  (eval $ac_compile) 2>conftest.er1
16489 131 jeremybenn
  ac_status=$?
16490
  grep -v '^ *+' conftest.er1 >conftest.err
16491
  rm -f conftest.er1
16492
  cat conftest.err >&5
16493 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494
  (exit $ac_status); } &&
16495
         { ac_try='test -z "$ac_c_werror_flag"
16496
                         || test ! -s conftest.err'
16497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498
  (eval $ac_try) 2>&5
16499
  ac_status=$?
16500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501
  (exit $ac_status); }; } &&
16502
         { ac_try='test -s conftest.$ac_objext'
16503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504
  (eval $ac_try) 2>&5
16505
  ac_status=$?
16506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507
  (exit $ac_status); }; }; then
16508 131 jeremybenn
  ac_cv_c_const=yes
16509
else
16510 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16511 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16512
 
16513 225 jeremybenn
ac_cv_c_const=no
16514 131 jeremybenn
fi
16515 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 131 jeremybenn
fi
16517 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16518
echo "${ECHO_T}$ac_cv_c_const" >&6
16519 131 jeremybenn
if test $ac_cv_c_const = no; then
16520
 
16521
cat >>confdefs.h <<\_ACEOF
16522 225 jeremybenn
#define const
16523 131 jeremybenn
_ACEOF
16524
 
16525
fi
16526
 
16527 225 jeremybenn
echo "$as_me:$LINENO: checking for inline" >&5
16528
echo $ECHO_N "checking for inline... $ECHO_C" >&6
16529 131 jeremybenn
if test "${ac_cv_c_inline+set}" = set; then
16530 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16531 131 jeremybenn
else
16532
  ac_cv_c_inline=no
16533
for ac_kw in inline __inline__ __inline; do
16534
  cat >conftest.$ac_ext <<_ACEOF
16535
/* confdefs.h.  */
16536
_ACEOF
16537
cat confdefs.h >>conftest.$ac_ext
16538
cat >>conftest.$ac_ext <<_ACEOF
16539
/* end confdefs.h.  */
16540
#ifndef __cplusplus
16541
typedef int foo_t;
16542
static $ac_kw foo_t static_foo () {return 0; }
16543
$ac_kw foo_t foo () {return 0; }
16544
#endif
16545
 
16546
_ACEOF
16547
rm -f conftest.$ac_objext
16548 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16549
  (eval $ac_compile) 2>conftest.er1
16550 131 jeremybenn
  ac_status=$?
16551
  grep -v '^ *+' conftest.er1 >conftest.err
16552
  rm -f conftest.er1
16553
  cat conftest.err >&5
16554 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555
  (exit $ac_status); } &&
16556
         { ac_try='test -z "$ac_c_werror_flag"
16557
                         || test ! -s conftest.err'
16558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559
  (eval $ac_try) 2>&5
16560
  ac_status=$?
16561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562
  (exit $ac_status); }; } &&
16563
         { ac_try='test -s conftest.$ac_objext'
16564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565
  (eval $ac_try) 2>&5
16566
  ac_status=$?
16567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568
  (exit $ac_status); }; }; then
16569
  ac_cv_c_inline=$ac_kw; break
16570 131 jeremybenn
else
16571 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16572 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16573
 
16574
fi
16575 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16576 131 jeremybenn
done
16577
 
16578
fi
16579 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16580
echo "${ECHO_T}$ac_cv_c_inline" >&6
16581 131 jeremybenn
 
16582
 
16583
case $ac_cv_c_inline in
16584
  inline | yes) ;;
16585
  *)
16586
    case $ac_cv_c_inline in
16587
      no) ac_val=;;
16588
      *) ac_val=$ac_cv_c_inline;;
16589
    esac
16590
    cat >>confdefs.h <<_ACEOF
16591
#ifndef __cplusplus
16592
#define inline $ac_val
16593
#endif
16594
_ACEOF
16595
    ;;
16596
esac
16597
 
16598 225 jeremybenn
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16599
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16600 131 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
16601 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16602 131 jeremybenn
else
16603 225 jeremybenn
  # See if sys/param.h defines the BYTE_ORDER macro.
16604
cat >conftest.$ac_ext <<_ACEOF
16605 131 jeremybenn
/* confdefs.h.  */
16606
_ACEOF
16607
cat confdefs.h >>conftest.$ac_ext
16608
cat >>conftest.$ac_ext <<_ACEOF
16609
/* end confdefs.h.  */
16610
#include 
16611 225 jeremybenn
#include 
16612 131 jeremybenn
 
16613
int
16614
main ()
16615
{
16616 225 jeremybenn
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16617
 bogus endian macros
16618
#endif
16619 131 jeremybenn
 
16620
  ;
16621
  return 0;
16622
}
16623
_ACEOF
16624
rm -f conftest.$ac_objext
16625 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626
  (eval $ac_compile) 2>conftest.er1
16627 131 jeremybenn
  ac_status=$?
16628
  grep -v '^ *+' conftest.er1 >conftest.err
16629
  rm -f conftest.er1
16630
  cat conftest.err >&5
16631 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632
  (exit $ac_status); } &&
16633
         { ac_try='test -z "$ac_c_werror_flag"
16634
                         || test ! -s conftest.err'
16635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636
  (eval $ac_try) 2>&5
16637
  ac_status=$?
16638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639
  (exit $ac_status); }; } &&
16640
         { ac_try='test -s conftest.$ac_objext'
16641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642
  (eval $ac_try) 2>&5
16643
  ac_status=$?
16644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645
  (exit $ac_status); }; }; then
16646 131 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
16647 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
16648 131 jeremybenn
/* confdefs.h.  */
16649
_ACEOF
16650
cat confdefs.h >>conftest.$ac_ext
16651
cat >>conftest.$ac_ext <<_ACEOF
16652
/* end confdefs.h.  */
16653
#include 
16654 225 jeremybenn
#include 
16655 131 jeremybenn
 
16656
int
16657
main ()
16658
{
16659
#if BYTE_ORDER != BIG_ENDIAN
16660 225 jeremybenn
 not big endian
16661
#endif
16662 131 jeremybenn
 
16663
  ;
16664
  return 0;
16665
}
16666
_ACEOF
16667
rm -f conftest.$ac_objext
16668 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669
  (eval $ac_compile) 2>conftest.er1
16670 131 jeremybenn
  ac_status=$?
16671
  grep -v '^ *+' conftest.er1 >conftest.err
16672
  rm -f conftest.er1
16673
  cat conftest.err >&5
16674 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675
  (exit $ac_status); } &&
16676
         { ac_try='test -z "$ac_c_werror_flag"
16677
                         || test ! -s conftest.err'
16678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679
  (eval $ac_try) 2>&5
16680
  ac_status=$?
16681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682
  (exit $ac_status); }; } &&
16683
         { ac_try='test -s conftest.$ac_objext'
16684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685
  (eval $ac_try) 2>&5
16686
  ac_status=$?
16687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688
  (exit $ac_status); }; }; then
16689 131 jeremybenn
  ac_cv_c_bigendian=yes
16690
else
16691 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16692 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16693
 
16694 225 jeremybenn
ac_cv_c_bigendian=no
16695 131 jeremybenn
fi
16696 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16697 131 jeremybenn
else
16698 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16699 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16700
 
16701 225 jeremybenn
# It does not; compile a test program.
16702
if test "$cross_compiling" = yes; then
16703
  # try to guess the endianness by grepping values into an object file
16704
  ac_cv_c_bigendian=unknown
16705
  cat >conftest.$ac_ext <<_ACEOF
16706 131 jeremybenn
/* confdefs.h.  */
16707
_ACEOF
16708
cat confdefs.h >>conftest.$ac_ext
16709
cat >>conftest.$ac_ext <<_ACEOF
16710
/* end confdefs.h.  */
16711 225 jeremybenn
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16712
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16713
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16714
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16715
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16716
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16717 131 jeremybenn
int
16718
main ()
16719
{
16720 225 jeremybenn
 _ascii (); _ebcdic ();
16721 131 jeremybenn
  ;
16722
  return 0;
16723
}
16724
_ACEOF
16725
rm -f conftest.$ac_objext
16726 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727
  (eval $ac_compile) 2>conftest.er1
16728 131 jeremybenn
  ac_status=$?
16729
  grep -v '^ *+' conftest.er1 >conftest.err
16730
  rm -f conftest.er1
16731
  cat conftest.err >&5
16732 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733
  (exit $ac_status); } &&
16734
         { ac_try='test -z "$ac_c_werror_flag"
16735
                         || test ! -s conftest.err'
16736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737
  (eval $ac_try) 2>&5
16738 131 jeremybenn
  ac_status=$?
16739 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740
  (exit $ac_status); }; } &&
16741
         { ac_try='test -s conftest.$ac_objext'
16742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743
  (eval $ac_try) 2>&5
16744
  ac_status=$?
16745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746
  (exit $ac_status); }; }; then
16747
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
16748 131 jeremybenn
  ac_cv_c_bigendian=yes
16749
fi
16750 225 jeremybenn
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16751
  if test "$ac_cv_c_bigendian" = unknown; then
16752
    ac_cv_c_bigendian=no
16753
  else
16754
    # finding both strings is unlikely to happen, but who knows?
16755
    ac_cv_c_bigendian=unknown
16756
  fi
16757 131 jeremybenn
fi
16758
else
16759 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16760 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16761
 
16762
fi
16763 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16764 131 jeremybenn
else
16765
  cat >conftest.$ac_ext <<_ACEOF
16766
/* confdefs.h.  */
16767
_ACEOF
16768
cat confdefs.h >>conftest.$ac_ext
16769
cat >>conftest.$ac_ext <<_ACEOF
16770
/* end confdefs.h.  */
16771
int
16772
main ()
16773
{
16774 225 jeremybenn
  /* Are we little or big endian?  From Harbison&Steele.  */
16775
  union
16776
  {
16777
    long l;
16778
    char c[sizeof (long)];
16779
  } u;
16780
  u.l = 1;
16781
  exit (u.c[sizeof (long) - 1] == 1);
16782 131 jeremybenn
}
16783
_ACEOF
16784
rm -f conftest$ac_exeext
16785 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16786
  (eval $ac_link) 2>&5
16787 131 jeremybenn
  ac_status=$?
16788 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16790 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791
  (eval $ac_try) 2>&5
16792 131 jeremybenn
  ac_status=$?
16793 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 131 jeremybenn
  (exit $ac_status); }; }; then
16795
  ac_cv_c_bigendian=no
16796
else
16797 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
16798
echo "$as_me: failed program was:" >&5
16799 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16800
 
16801
( exit $ac_status )
16802
ac_cv_c_bigendian=yes
16803
fi
16804 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16805 131 jeremybenn
fi
16806
fi
16807 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16808
fi
16809
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16810
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16811
case $ac_cv_c_bigendian in
16812
  yes)
16813 131 jeremybenn
 
16814
cat >>confdefs.h <<\_ACEOF
16815 225 jeremybenn
#define WORDS_BIGENDIAN 1
16816 131 jeremybenn
_ACEOF
16817 225 jeremybenn
 ;;
16818
  no)
16819
     ;;
16820
  *)
16821
    { { echo "$as_me:$LINENO: error: unknown endianness
16822
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16823
echo "$as_me: error: unknown endianness
16824
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16825 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
16826 225 jeremybenn
esac
16827 131 jeremybenn
 
16828
 
16829
# ------------------------------ #
16830
# Checks for library functions.  #
16831
# ------------------------------ #
16832
 
16833
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16834
# for constant arguments.  Useless!
16835 225 jeremybenn
echo "$as_me:$LINENO: checking for working alloca.h" >&5
16836
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16837 131 jeremybenn
if test "${ac_cv_working_alloca_h+set}" = set; then
16838 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16839 131 jeremybenn
else
16840
  cat >conftest.$ac_ext <<_ACEOF
16841
/* confdefs.h.  */
16842
_ACEOF
16843
cat confdefs.h >>conftest.$ac_ext
16844
cat >>conftest.$ac_ext <<_ACEOF
16845
/* end confdefs.h.  */
16846
#include 
16847
int
16848
main ()
16849
{
16850
char *p = (char *) alloca (2 * sizeof (int));
16851
  ;
16852
  return 0;
16853
}
16854
_ACEOF
16855
rm -f conftest.$ac_objext conftest$ac_exeext
16856 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857
  (eval $ac_link) 2>conftest.er1
16858 131 jeremybenn
  ac_status=$?
16859
  grep -v '^ *+' conftest.er1 >conftest.err
16860
  rm -f conftest.er1
16861
  cat conftest.err >&5
16862 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863
  (exit $ac_status); } &&
16864
         { ac_try='test -z "$ac_c_werror_flag"
16865
                         || test ! -s conftest.err'
16866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867
  (eval $ac_try) 2>&5
16868
  ac_status=$?
16869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870
  (exit $ac_status); }; } &&
16871
         { ac_try='test -s conftest$ac_exeext'
16872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873
  (eval $ac_try) 2>&5
16874
  ac_status=$?
16875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876
  (exit $ac_status); }; }; then
16877 131 jeremybenn
  ac_cv_working_alloca_h=yes
16878
else
16879 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16880 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16881
 
16882 225 jeremybenn
ac_cv_working_alloca_h=no
16883 131 jeremybenn
fi
16884 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
16885 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
16886
fi
16887 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16888
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16889 131 jeremybenn
if test $ac_cv_working_alloca_h = yes; then
16890
 
16891
cat >>confdefs.h <<\_ACEOF
16892
#define HAVE_ALLOCA_H 1
16893
_ACEOF
16894
 
16895
fi
16896
 
16897 225 jeremybenn
echo "$as_me:$LINENO: checking for alloca" >&5
16898
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16899 131 jeremybenn
if test "${ac_cv_func_alloca_works+set}" = set; then
16900 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16901 131 jeremybenn
else
16902
  cat >conftest.$ac_ext <<_ACEOF
16903
/* confdefs.h.  */
16904
_ACEOF
16905
cat confdefs.h >>conftest.$ac_ext
16906
cat >>conftest.$ac_ext <<_ACEOF
16907
/* end confdefs.h.  */
16908
#ifdef __GNUC__
16909
# define alloca __builtin_alloca
16910
#else
16911
# ifdef _MSC_VER
16912
#  include 
16913
#  define alloca _alloca
16914
# else
16915 225 jeremybenn
#  if HAVE_ALLOCA_H
16916 131 jeremybenn
#   include 
16917
#  else
16918
#   ifdef _AIX
16919
 #pragma alloca
16920
#   else
16921
#    ifndef alloca /* predefined by HP cc +Olibcalls */
16922
char *alloca ();
16923
#    endif
16924
#   endif
16925
#  endif
16926
# endif
16927
#endif
16928
 
16929
int
16930
main ()
16931
{
16932
char *p = (char *) alloca (1);
16933
  ;
16934
  return 0;
16935
}
16936
_ACEOF
16937
rm -f conftest.$ac_objext conftest$ac_exeext
16938 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939
  (eval $ac_link) 2>conftest.er1
16940 131 jeremybenn
  ac_status=$?
16941
  grep -v '^ *+' conftest.er1 >conftest.err
16942
  rm -f conftest.er1
16943
  cat conftest.err >&5
16944 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945
  (exit $ac_status); } &&
16946
         { ac_try='test -z "$ac_c_werror_flag"
16947
                         || test ! -s conftest.err'
16948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949
  (eval $ac_try) 2>&5
16950
  ac_status=$?
16951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952
  (exit $ac_status); }; } &&
16953
         { ac_try='test -s conftest$ac_exeext'
16954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955
  (eval $ac_try) 2>&5
16956
  ac_status=$?
16957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958
  (exit $ac_status); }; }; then
16959 131 jeremybenn
  ac_cv_func_alloca_works=yes
16960
else
16961 225 jeremybenn
  echo "$as_me: failed program was:" >&5
16962 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16963
 
16964 225 jeremybenn
ac_cv_func_alloca_works=no
16965 131 jeremybenn
fi
16966 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
16967 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
16968
fi
16969 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16970
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16971 131 jeremybenn
 
16972
if test $ac_cv_func_alloca_works = yes; then
16973
 
16974
cat >>confdefs.h <<\_ACEOF
16975
#define HAVE_ALLOCA 1
16976
_ACEOF
16977
 
16978
else
16979
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16980
# that cause trouble.  Some versions do not even contain alloca or
16981
# contain a buggy version.  If you still want to use their alloca,
16982
# use ar to extract alloca.o from them instead of compiling alloca.c.
16983
 
16984 225 jeremybenn
ALLOCA=alloca.$ac_objext
16985 131 jeremybenn
 
16986
cat >>confdefs.h <<\_ACEOF
16987
#define C_ALLOCA 1
16988
_ACEOF
16989
 
16990
 
16991 225 jeremybenn
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16992
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16993 131 jeremybenn
if test "${ac_cv_os_cray+set}" = set; then
16994 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
16995 131 jeremybenn
else
16996
  cat >conftest.$ac_ext <<_ACEOF
16997
/* confdefs.h.  */
16998
_ACEOF
16999
cat confdefs.h >>conftest.$ac_ext
17000
cat >>conftest.$ac_ext <<_ACEOF
17001
/* end confdefs.h.  */
17002 225 jeremybenn
#if defined(CRAY) && ! defined(CRAY2)
17003 131 jeremybenn
webecray
17004
#else
17005
wenotbecray
17006
#endif
17007
 
17008
_ACEOF
17009
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17010
  $EGREP "webecray" >/dev/null 2>&1; then
17011
  ac_cv_os_cray=yes
17012
else
17013
  ac_cv_os_cray=no
17014
fi
17015
rm -f conftest*
17016
 
17017
fi
17018 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17019
echo "${ECHO_T}$ac_cv_os_cray" >&6
17020 131 jeremybenn
if test $ac_cv_os_cray = yes; then
17021
  for ac_func in _getb67 GETB67 getb67; do
17022 225 jeremybenn
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17023
echo "$as_me:$LINENO: checking for $ac_func" >&5
17024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17025
if eval "test \"\${$as_ac_var+set}\" = set"; then
17026
  echo $ECHO_N "(cached) $ECHO_C" >&6
17027 131 jeremybenn
else
17028
  cat >conftest.$ac_ext <<_ACEOF
17029
/* confdefs.h.  */
17030
_ACEOF
17031
cat confdefs.h >>conftest.$ac_ext
17032
cat >>conftest.$ac_ext <<_ACEOF
17033
/* end confdefs.h.  */
17034
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
17035
   For example, HP-UX 11i  declares gettimeofday.  */
17036
#define $ac_func innocuous_$ac_func
17037
 
17038
/* System header to define __stub macros and hopefully few prototypes,
17039
    which can conflict with char $ac_func (); below.
17040
    Prefer  to  if __STDC__ is defined, since
17041
     exists even on freestanding compilers.  */
17042
 
17043
#ifdef __STDC__
17044
# include 
17045
#else
17046
# include 
17047
#endif
17048
 
17049
#undef $ac_func
17050
 
17051 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
17052 131 jeremybenn
#ifdef __cplusplus
17053
extern "C"
17054 225 jeremybenn
{
17055 131 jeremybenn
#endif
17056 225 jeremybenn
/* We use char because int might match the return type of a gcc2
17057
   builtin and then its argument prototype would still apply.  */
17058 131 jeremybenn
char $ac_func ();
17059
/* The GNU C library defines this for functions which it implements
17060
    to always fail with ENOSYS.  Some functions are actually named
17061
    something starting with __ and the normal name is an alias.  */
17062 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17063 131 jeremybenn
choke me
17064 225 jeremybenn
#else
17065
char (*f) () = $ac_func;
17066 131 jeremybenn
#endif
17067 225 jeremybenn
#ifdef __cplusplus
17068
}
17069
#endif
17070 131 jeremybenn
 
17071
int
17072
main ()
17073
{
17074 225 jeremybenn
return f != $ac_func;
17075 131 jeremybenn
  ;
17076
  return 0;
17077
}
17078
_ACEOF
17079
rm -f conftest.$ac_objext conftest$ac_exeext
17080 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17081
  (eval $ac_link) 2>conftest.er1
17082 131 jeremybenn
  ac_status=$?
17083
  grep -v '^ *+' conftest.er1 >conftest.err
17084
  rm -f conftest.er1
17085
  cat conftest.err >&5
17086 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087
  (exit $ac_status); } &&
17088
         { ac_try='test -z "$ac_c_werror_flag"
17089
                         || test ! -s conftest.err'
17090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091
  (eval $ac_try) 2>&5
17092
  ac_status=$?
17093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094
  (exit $ac_status); }; } &&
17095
         { ac_try='test -s conftest$ac_exeext'
17096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097
  (eval $ac_try) 2>&5
17098
  ac_status=$?
17099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100
  (exit $ac_status); }; }; then
17101 131 jeremybenn
  eval "$as_ac_var=yes"
17102
else
17103 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17104 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17105
 
17106 225 jeremybenn
eval "$as_ac_var=no"
17107 131 jeremybenn
fi
17108 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
17109 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
17110
fi
17111 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17112
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17113
if test `eval echo '${'$as_ac_var'}'` = yes; then
17114 131 jeremybenn
 
17115
cat >>confdefs.h <<_ACEOF
17116
#define CRAY_STACKSEG_END $ac_func
17117
_ACEOF
17118
 
17119
    break
17120
fi
17121
 
17122
  done
17123
fi
17124
 
17125 225 jeremybenn
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17126
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17127 131 jeremybenn
if test "${ac_cv_c_stack_direction+set}" = set; then
17128 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
17129 131 jeremybenn
else
17130
  if test "$cross_compiling" = yes; then
17131
  ac_cv_c_stack_direction=0
17132
else
17133
  cat >conftest.$ac_ext <<_ACEOF
17134
/* confdefs.h.  */
17135
_ACEOF
17136
cat confdefs.h >>conftest.$ac_ext
17137
cat >>conftest.$ac_ext <<_ACEOF
17138
/* end confdefs.h.  */
17139
int
17140
find_stack_direction ()
17141
{
17142
  static char *addr = 0;
17143
  auto char dummy;
17144
  if (addr == 0)
17145
    {
17146
      addr = &dummy;
17147
      return find_stack_direction ();
17148
    }
17149
  else
17150
    return (&dummy > addr) ? 1 : -1;
17151
}
17152
 
17153
int
17154
main ()
17155
{
17156 225 jeremybenn
  exit (find_stack_direction () < 0);
17157 131 jeremybenn
}
17158
_ACEOF
17159
rm -f conftest$ac_exeext
17160 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17161
  (eval $ac_link) 2>&5
17162 131 jeremybenn
  ac_status=$?
17163 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17165 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166
  (eval $ac_try) 2>&5
17167 131 jeremybenn
  ac_status=$?
17168 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 131 jeremybenn
  (exit $ac_status); }; }; then
17170
  ac_cv_c_stack_direction=1
17171
else
17172 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
17173
echo "$as_me: failed program was:" >&5
17174 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17175
 
17176
( exit $ac_status )
17177
ac_cv_c_stack_direction=-1
17178
fi
17179 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17180 131 jeremybenn
fi
17181
fi
17182 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17183
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17184 131 jeremybenn
 
17185
cat >>confdefs.h <<_ACEOF
17186
#define STACK_DIRECTION $ac_cv_c_stack_direction
17187
_ACEOF
17188
 
17189
 
17190
fi
17191
 
17192
 
17193
 
17194
for ac_header in stdlib.h unistd.h
17195
do
17196 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17197
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17198
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17199
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17200
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17201
  echo $ECHO_N "(cached) $ECHO_C" >&6
17202 131 jeremybenn
fi
17203 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17204
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17205 131 jeremybenn
else
17206
  # Is the header compilable?
17207 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17208
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17209 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17210
/* confdefs.h.  */
17211
_ACEOF
17212
cat confdefs.h >>conftest.$ac_ext
17213
cat >>conftest.$ac_ext <<_ACEOF
17214
/* end confdefs.h.  */
17215
$ac_includes_default
17216
#include <$ac_header>
17217
_ACEOF
17218
rm -f conftest.$ac_objext
17219 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17220
  (eval $ac_compile) 2>conftest.er1
17221 131 jeremybenn
  ac_status=$?
17222
  grep -v '^ *+' conftest.er1 >conftest.err
17223
  rm -f conftest.er1
17224
  cat conftest.err >&5
17225 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226
  (exit $ac_status); } &&
17227
         { ac_try='test -z "$ac_c_werror_flag"
17228
                         || test ! -s conftest.err'
17229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230
  (eval $ac_try) 2>&5
17231
  ac_status=$?
17232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233
  (exit $ac_status); }; } &&
17234
         { ac_try='test -s conftest.$ac_objext'
17235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236
  (eval $ac_try) 2>&5
17237
  ac_status=$?
17238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239
  (exit $ac_status); }; }; then
17240 131 jeremybenn
  ac_header_compiler=yes
17241
else
17242 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17243 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17244
 
17245 225 jeremybenn
ac_header_compiler=no
17246 131 jeremybenn
fi
17247 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17248
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17249
echo "${ECHO_T}$ac_header_compiler" >&6
17250 131 jeremybenn
 
17251
# Is the header present?
17252 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
17253
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17254 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17255
/* confdefs.h.  */
17256
_ACEOF
17257
cat confdefs.h >>conftest.$ac_ext
17258
cat >>conftest.$ac_ext <<_ACEOF
17259
/* end confdefs.h.  */
17260
#include <$ac_header>
17261
_ACEOF
17262 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17263
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17264 131 jeremybenn
  ac_status=$?
17265
  grep -v '^ *+' conftest.er1 >conftest.err
17266
  rm -f conftest.er1
17267
  cat conftest.err >&5
17268 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269
  (exit $ac_status); } >/dev/null; then
17270
  if test -s conftest.err; then
17271
    ac_cpp_err=$ac_c_preproc_warn_flag
17272
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17273
  else
17274
    ac_cpp_err=
17275
  fi
17276
else
17277
  ac_cpp_err=yes
17278
fi
17279
if test -z "$ac_cpp_err"; then
17280 131 jeremybenn
  ac_header_preproc=yes
17281
else
17282 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17283 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17284
 
17285
  ac_header_preproc=no
17286
fi
17287
rm -f conftest.err conftest.$ac_ext
17288 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17289
echo "${ECHO_T}$ac_header_preproc" >&6
17290 131 jeremybenn
 
17291
# So?  What about this header?
17292
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17293
  yes:no: )
17294 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17295
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17296
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17297
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17298 131 jeremybenn
    ac_header_preproc=yes
17299
    ;;
17300
  no:yes:* )
17301 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17302
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17303
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17304
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17305
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17306
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17307
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17308
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17309
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17310
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17311
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17312
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17313
    (
17314
      cat <<\_ASBOX
17315
## ------------------------------------------ ##
17316
## Report this to the AC_PACKAGE_NAME lists.  ##
17317
## ------------------------------------------ ##
17318
_ASBOX
17319
    ) |
17320
      sed "s/^/$as_me: WARNING:     /" >&2
17321 131 jeremybenn
    ;;
17322
esac
17323 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
17324
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17325
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17326
  echo $ECHO_N "(cached) $ECHO_C" >&6
17327 131 jeremybenn
else
17328
  eval "$as_ac_Header=\$ac_header_preproc"
17329
fi
17330 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17331
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17332 131 jeremybenn
 
17333
fi
17334 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17335 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
17336 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17337 131 jeremybenn
_ACEOF
17338
 
17339
fi
17340
 
17341
done
17342
 
17343
 
17344
for ac_func in getpagesize
17345
do
17346 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17347
echo "$as_me:$LINENO: checking for $ac_func" >&5
17348
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17349
if eval "test \"\${$as_ac_var+set}\" = set"; then
17350
  echo $ECHO_N "(cached) $ECHO_C" >&6
17351 131 jeremybenn
else
17352
  cat >conftest.$ac_ext <<_ACEOF
17353
/* confdefs.h.  */
17354
_ACEOF
17355
cat confdefs.h >>conftest.$ac_ext
17356
cat >>conftest.$ac_ext <<_ACEOF
17357
/* end confdefs.h.  */
17358
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
17359
   For example, HP-UX 11i  declares gettimeofday.  */
17360
#define $ac_func innocuous_$ac_func
17361
 
17362
/* System header to define __stub macros and hopefully few prototypes,
17363
    which can conflict with char $ac_func (); below.
17364
    Prefer  to  if __STDC__ is defined, since
17365
     exists even on freestanding compilers.  */
17366
 
17367
#ifdef __STDC__
17368
# include 
17369
#else
17370
# include 
17371
#endif
17372
 
17373
#undef $ac_func
17374
 
17375 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
17376 131 jeremybenn
#ifdef __cplusplus
17377
extern "C"
17378 225 jeremybenn
{
17379 131 jeremybenn
#endif
17380 225 jeremybenn
/* We use char because int might match the return type of a gcc2
17381
   builtin and then its argument prototype would still apply.  */
17382 131 jeremybenn
char $ac_func ();
17383
/* The GNU C library defines this for functions which it implements
17384
    to always fail with ENOSYS.  Some functions are actually named
17385
    something starting with __ and the normal name is an alias.  */
17386 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17387 131 jeremybenn
choke me
17388 225 jeremybenn
#else
17389
char (*f) () = $ac_func;
17390 131 jeremybenn
#endif
17391 225 jeremybenn
#ifdef __cplusplus
17392
}
17393
#endif
17394 131 jeremybenn
 
17395
int
17396
main ()
17397
{
17398 225 jeremybenn
return f != $ac_func;
17399 131 jeremybenn
  ;
17400
  return 0;
17401
}
17402
_ACEOF
17403
rm -f conftest.$ac_objext conftest$ac_exeext
17404 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405
  (eval $ac_link) 2>conftest.er1
17406 131 jeremybenn
  ac_status=$?
17407
  grep -v '^ *+' conftest.er1 >conftest.err
17408
  rm -f conftest.er1
17409
  cat conftest.err >&5
17410 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411
  (exit $ac_status); } &&
17412
         { ac_try='test -z "$ac_c_werror_flag"
17413
                         || test ! -s conftest.err'
17414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415
  (eval $ac_try) 2>&5
17416
  ac_status=$?
17417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418
  (exit $ac_status); }; } &&
17419
         { ac_try='test -s conftest$ac_exeext'
17420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421
  (eval $ac_try) 2>&5
17422
  ac_status=$?
17423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424
  (exit $ac_status); }; }; then
17425 131 jeremybenn
  eval "$as_ac_var=yes"
17426
else
17427 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17428 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17429
 
17430 225 jeremybenn
eval "$as_ac_var=no"
17431 131 jeremybenn
fi
17432 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
17433 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
17434
fi
17435 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17436
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17437
if test `eval echo '${'$as_ac_var'}'` = yes; then
17438 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
17439 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17440 131 jeremybenn
_ACEOF
17441
 
17442
fi
17443
done
17444
 
17445 225 jeremybenn
echo "$as_me:$LINENO: checking for working mmap" >&5
17446
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
17447 131 jeremybenn
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17448 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
17449 131 jeremybenn
else
17450
  if test "$cross_compiling" = yes; then
17451
  ac_cv_func_mmap_fixed_mapped=no
17452
else
17453
  cat >conftest.$ac_ext <<_ACEOF
17454
/* confdefs.h.  */
17455
_ACEOF
17456
cat confdefs.h >>conftest.$ac_ext
17457
cat >>conftest.$ac_ext <<_ACEOF
17458
/* end confdefs.h.  */
17459
$ac_includes_default
17460
/* malloc might have been renamed as rpl_malloc. */
17461
#undef malloc
17462
 
17463
/* Thanks to Mike Haertel and Jim Avera for this test.
17464
   Here is a matrix of mmap possibilities:
17465
        mmap private not fixed
17466
        mmap private fixed at somewhere currently unmapped
17467
        mmap private fixed at somewhere already mapped
17468
        mmap shared not fixed
17469
        mmap shared fixed at somewhere currently unmapped
17470
        mmap shared fixed at somewhere already mapped
17471
   For private mappings, we should verify that changes cannot be read()
17472
   back from the file, nor mmap's back from the file at a different
17473
   address.  (There have been systems where private was not correctly
17474
   implemented like the infamous i386 svr4.0, and systems where the
17475
   VM page cache was not coherent with the file system buffer cache
17476
   like early versions of FreeBSD and possibly contemporary NetBSD.)
17477
   For shared mappings, we should conversely verify that changes get
17478
   propagated back to all the places they're supposed to be.
17479
 
17480
   Grep wants private fixed already mapped.
17481
   The main things grep needs to know about mmap are:
17482
   * does it exist and is it safe to write into the mmap'd area
17483
   * how to use it (BSD variants)  */
17484
 
17485
#include 
17486
#include 
17487
 
17488 225 jeremybenn
#if !STDC_HEADERS && !HAVE_STDLIB_H
17489 131 jeremybenn
char *malloc ();
17490
#endif
17491
 
17492
/* This mess was copied from the GNU getpagesize.h.  */
17493 225 jeremybenn
#if !HAVE_GETPAGESIZE
17494 131 jeremybenn
/* Assume that all systems that can run configure have sys/param.h.  */
17495 225 jeremybenn
# if !HAVE_SYS_PARAM_H
17496 131 jeremybenn
#  define HAVE_SYS_PARAM_H 1
17497
# endif
17498
 
17499
# ifdef _SC_PAGESIZE
17500
#  define getpagesize() sysconf(_SC_PAGESIZE)
17501
# else /* no _SC_PAGESIZE */
17502 225 jeremybenn
#  if HAVE_SYS_PARAM_H
17503 131 jeremybenn
#   include 
17504
#   ifdef EXEC_PAGESIZE
17505
#    define getpagesize() EXEC_PAGESIZE
17506
#   else /* no EXEC_PAGESIZE */
17507
#    ifdef NBPG
17508
#     define getpagesize() NBPG * CLSIZE
17509
#     ifndef CLSIZE
17510
#      define CLSIZE 1
17511
#     endif /* no CLSIZE */
17512
#    else /* no NBPG */
17513
#     ifdef NBPC
17514
#      define getpagesize() NBPC
17515
#     else /* no NBPC */
17516
#      ifdef PAGESIZE
17517
#       define getpagesize() PAGESIZE
17518
#      endif /* PAGESIZE */
17519
#     endif /* no NBPC */
17520
#    endif /* no NBPG */
17521
#   endif /* no EXEC_PAGESIZE */
17522
#  else /* no HAVE_SYS_PARAM_H */
17523
#   define getpagesize() 8192   /* punt totally */
17524
#  endif /* no HAVE_SYS_PARAM_H */
17525
# endif /* no _SC_PAGESIZE */
17526
 
17527
#endif /* no HAVE_GETPAGESIZE */
17528
 
17529
int
17530
main ()
17531
{
17532
  char *data, *data2, *data3;
17533
  int i, pagesize;
17534
  int fd;
17535
 
17536
  pagesize = getpagesize ();
17537
 
17538
  /* First, make a file with some known garbage in it. */
17539
  data = (char *) malloc (pagesize);
17540
  if (!data)
17541 225 jeremybenn
    exit (1);
17542 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
17543
    *(data + i) = rand ();
17544
  umask (0);
17545
  fd = creat ("conftest.mmap", 0600);
17546
  if (fd < 0)
17547 225 jeremybenn
    exit (1);
17548 131 jeremybenn
  if (write (fd, data, pagesize) != pagesize)
17549 225 jeremybenn
    exit (1);
17550 131 jeremybenn
  close (fd);
17551
 
17552
  /* Next, try to mmap the file at a fixed address which already has
17553
     something else allocated at it.  If we can, also make sure that
17554
     we see the same garbage.  */
17555
  fd = open ("conftest.mmap", O_RDWR);
17556
  if (fd < 0)
17557 225 jeremybenn
    exit (1);
17558 131 jeremybenn
  data2 = (char *) malloc (2 * pagesize);
17559
  if (!data2)
17560 225 jeremybenn
    exit (1);
17561
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
17562 131 jeremybenn
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17563
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
17564 225 jeremybenn
    exit (1);
17565 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
17566
    if (*(data + i) != *(data2 + i))
17567 225 jeremybenn
      exit (1);
17568 131 jeremybenn
 
17569
  /* Finally, make sure that changes to the mapped area do not
17570
     percolate back to the file as seen by read().  (This is a bug on
17571
     some variants of i386 svr4.0.)  */
17572
  for (i = 0; i < pagesize; ++i)
17573
    *(data2 + i) = *(data2 + i) + 1;
17574
  data3 = (char *) malloc (pagesize);
17575
  if (!data3)
17576 225 jeremybenn
    exit (1);
17577 131 jeremybenn
  if (read (fd, data3, pagesize) != pagesize)
17578 225 jeremybenn
    exit (1);
17579 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
17580
    if (*(data + i) != *(data3 + i))
17581 225 jeremybenn
      exit (1);
17582 131 jeremybenn
  close (fd);
17583 225 jeremybenn
  exit (0);
17584 131 jeremybenn
}
17585
_ACEOF
17586
rm -f conftest$ac_exeext
17587 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588
  (eval $ac_link) 2>&5
17589 131 jeremybenn
  ac_status=$?
17590 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17592 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593
  (eval $ac_try) 2>&5
17594 131 jeremybenn
  ac_status=$?
17595 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 131 jeremybenn
  (exit $ac_status); }; }; then
17597
  ac_cv_func_mmap_fixed_mapped=yes
17598
else
17599 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
17600
echo "$as_me: failed program was:" >&5
17601 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17602
 
17603
( exit $ac_status )
17604
ac_cv_func_mmap_fixed_mapped=no
17605
fi
17606 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17607 131 jeremybenn
fi
17608
fi
17609 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17610
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
17611 131 jeremybenn
if test $ac_cv_func_mmap_fixed_mapped = yes; then
17612
 
17613
cat >>confdefs.h <<\_ACEOF
17614
#define HAVE_MMAP 1
17615
_ACEOF
17616
 
17617
fi
17618
rm -f conftest.mmap
17619
 
17620 225 jeremybenn
echo "$as_me:$LINENO: checking for pid_t" >&5
17621
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17622 131 jeremybenn
if test "${ac_cv_type_pid_t+set}" = set; then
17623 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
17624 131 jeremybenn
else
17625 225 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
17626 131 jeremybenn
/* confdefs.h.  */
17627
_ACEOF
17628
cat confdefs.h >>conftest.$ac_ext
17629
cat >>conftest.$ac_ext <<_ACEOF
17630
/* end confdefs.h.  */
17631
$ac_includes_default
17632
int
17633
main ()
17634
{
17635 225 jeremybenn
if ((pid_t *) 0)
17636
  return 0;
17637 131 jeremybenn
if (sizeof (pid_t))
17638 225 jeremybenn
  return 0;
17639 213 jeremybenn
  ;
17640 131 jeremybenn
  return 0;
17641 213 jeremybenn
}
17642
_ACEOF
17643
rm -f conftest.$ac_objext
17644 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645
  (eval $ac_compile) 2>conftest.er1
17646 213 jeremybenn
  ac_status=$?
17647
  grep -v '^ *+' conftest.er1 >conftest.err
17648
  rm -f conftest.er1
17649
  cat conftest.err >&5
17650 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651
  (exit $ac_status); } &&
17652
         { ac_try='test -z "$ac_c_werror_flag"
17653
                         || test ! -s conftest.err'
17654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655
  (eval $ac_try) 2>&5
17656 131 jeremybenn
  ac_status=$?
17657 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658
  (exit $ac_status); }; } &&
17659
         { ac_try='test -s conftest.$ac_objext'
17660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661
  (eval $ac_try) 2>&5
17662
  ac_status=$?
17663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664
  (exit $ac_status); }; }; then
17665
  ac_cv_type_pid_t=yes
17666 131 jeremybenn
else
17667 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17668 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17669
 
17670 225 jeremybenn
ac_cv_type_pid_t=no
17671 131 jeremybenn
fi
17672 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673 131 jeremybenn
fi
17674 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17675
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17676
if test $ac_cv_type_pid_t = yes; then
17677 131 jeremybenn
  :
17678
else
17679
 
17680
cat >>confdefs.h <<_ACEOF
17681
#define pid_t int
17682
_ACEOF
17683
 
17684
fi
17685
 
17686
 
17687 225 jeremybenn
 
17688
for ac_header in unistd.h vfork.h
17689 131 jeremybenn
do
17690 225 jeremybenn
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17692
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17693
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17694
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17695
  echo $ECHO_N "(cached) $ECHO_C" >&6
17696 131 jeremybenn
fi
17697 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17698
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17699 131 jeremybenn
else
17700
  # Is the header compilable?
17701 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17702
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17703 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17704
/* confdefs.h.  */
17705
_ACEOF
17706
cat confdefs.h >>conftest.$ac_ext
17707
cat >>conftest.$ac_ext <<_ACEOF
17708
/* end confdefs.h.  */
17709
$ac_includes_default
17710
#include <$ac_header>
17711
_ACEOF
17712
rm -f conftest.$ac_objext
17713 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714
  (eval $ac_compile) 2>conftest.er1
17715 131 jeremybenn
  ac_status=$?
17716
  grep -v '^ *+' conftest.er1 >conftest.err
17717
  rm -f conftest.er1
17718
  cat conftest.err >&5
17719 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720
  (exit $ac_status); } &&
17721
         { ac_try='test -z "$ac_c_werror_flag"
17722
                         || test ! -s conftest.err'
17723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724
  (eval $ac_try) 2>&5
17725
  ac_status=$?
17726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727
  (exit $ac_status); }; } &&
17728
         { ac_try='test -s conftest.$ac_objext'
17729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730
  (eval $ac_try) 2>&5
17731
  ac_status=$?
17732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733
  (exit $ac_status); }; }; then
17734 131 jeremybenn
  ac_header_compiler=yes
17735
else
17736 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17737 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17738
 
17739 225 jeremybenn
ac_header_compiler=no
17740 131 jeremybenn
fi
17741 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17742
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17743
echo "${ECHO_T}$ac_header_compiler" >&6
17744 131 jeremybenn
 
17745
# Is the header present?
17746 225 jeremybenn
echo "$as_me:$LINENO: checking $ac_header presence" >&5
17747
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17748 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17749
/* confdefs.h.  */
17750
_ACEOF
17751
cat confdefs.h >>conftest.$ac_ext
17752
cat >>conftest.$ac_ext <<_ACEOF
17753
/* end confdefs.h.  */
17754
#include <$ac_header>
17755
_ACEOF
17756 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17757
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17758 131 jeremybenn
  ac_status=$?
17759
  grep -v '^ *+' conftest.er1 >conftest.err
17760
  rm -f conftest.er1
17761
  cat conftest.err >&5
17762 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763
  (exit $ac_status); } >/dev/null; then
17764
  if test -s conftest.err; then
17765
    ac_cpp_err=$ac_c_preproc_warn_flag
17766
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17767
  else
17768
    ac_cpp_err=
17769
  fi
17770
else
17771
  ac_cpp_err=yes
17772
fi
17773
if test -z "$ac_cpp_err"; then
17774 131 jeremybenn
  ac_header_preproc=yes
17775
else
17776 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17777 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17778
 
17779
  ac_header_preproc=no
17780
fi
17781
rm -f conftest.err conftest.$ac_ext
17782 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17783
echo "${ECHO_T}$ac_header_preproc" >&6
17784 131 jeremybenn
 
17785
# So?  What about this header?
17786
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17787
  yes:no: )
17788 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17789
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17790
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17791
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17792 131 jeremybenn
    ac_header_preproc=yes
17793
    ;;
17794
  no:yes:* )
17795 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17796
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17797
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17798
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17799
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17800
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17801
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17802
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17803
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17804
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17805
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17806
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17807
    (
17808
      cat <<\_ASBOX
17809
## ------------------------------------------ ##
17810
## Report this to the AC_PACKAGE_NAME lists.  ##
17811
## ------------------------------------------ ##
17812
_ASBOX
17813
    ) |
17814
      sed "s/^/$as_me: WARNING:     /" >&2
17815 131 jeremybenn
    ;;
17816
esac
17817 225 jeremybenn
echo "$as_me:$LINENO: checking for $ac_header" >&5
17818
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17819
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17820
  echo $ECHO_N "(cached) $ECHO_C" >&6
17821 131 jeremybenn
else
17822
  eval "$as_ac_Header=\$ac_header_preproc"
17823
fi
17824 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17825
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17826 131 jeremybenn
 
17827
fi
17828 225 jeremybenn
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17829 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
17830 225 jeremybenn
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17831 131 jeremybenn
_ACEOF
17832
 
17833
fi
17834
 
17835
done
17836
 
17837
 
17838
 
17839
for ac_func in fork vfork
17840
do
17841 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842
echo "$as_me:$LINENO: checking for $ac_func" >&5
17843
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17844
if eval "test \"\${$as_ac_var+set}\" = set"; then
17845
  echo $ECHO_N "(cached) $ECHO_C" >&6
17846 131 jeremybenn
else
17847
  cat >conftest.$ac_ext <<_ACEOF
17848
/* confdefs.h.  */
17849
_ACEOF
17850
cat confdefs.h >>conftest.$ac_ext
17851
cat >>conftest.$ac_ext <<_ACEOF
17852
/* end confdefs.h.  */
17853
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
17854
   For example, HP-UX 11i  declares gettimeofday.  */
17855
#define $ac_func innocuous_$ac_func
17856
 
17857
/* System header to define __stub macros and hopefully few prototypes,
17858
    which can conflict with char $ac_func (); below.
17859
    Prefer  to  if __STDC__ is defined, since
17860
     exists even on freestanding compilers.  */
17861
 
17862
#ifdef __STDC__
17863
# include 
17864
#else
17865
# include 
17866
#endif
17867
 
17868
#undef $ac_func
17869
 
17870 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
17871 131 jeremybenn
#ifdef __cplusplus
17872
extern "C"
17873 225 jeremybenn
{
17874 131 jeremybenn
#endif
17875 225 jeremybenn
/* We use char because int might match the return type of a gcc2
17876
   builtin and then its argument prototype would still apply.  */
17877 131 jeremybenn
char $ac_func ();
17878
/* The GNU C library defines this for functions which it implements
17879
    to always fail with ENOSYS.  Some functions are actually named
17880
    something starting with __ and the normal name is an alias.  */
17881 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17882 131 jeremybenn
choke me
17883 225 jeremybenn
#else
17884
char (*f) () = $ac_func;
17885 131 jeremybenn
#endif
17886 225 jeremybenn
#ifdef __cplusplus
17887
}
17888
#endif
17889 131 jeremybenn
 
17890
int
17891
main ()
17892
{
17893 225 jeremybenn
return f != $ac_func;
17894 131 jeremybenn
  ;
17895
  return 0;
17896
}
17897
_ACEOF
17898
rm -f conftest.$ac_objext conftest$ac_exeext
17899 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900
  (eval $ac_link) 2>conftest.er1
17901 131 jeremybenn
  ac_status=$?
17902
  grep -v '^ *+' conftest.er1 >conftest.err
17903
  rm -f conftest.er1
17904
  cat conftest.err >&5
17905 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906
  (exit $ac_status); } &&
17907
         { ac_try='test -z "$ac_c_werror_flag"
17908
                         || test ! -s conftest.err'
17909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910
  (eval $ac_try) 2>&5
17911
  ac_status=$?
17912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913
  (exit $ac_status); }; } &&
17914
         { ac_try='test -s conftest$ac_exeext'
17915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916
  (eval $ac_try) 2>&5
17917
  ac_status=$?
17918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919
  (exit $ac_status); }; }; then
17920 131 jeremybenn
  eval "$as_ac_var=yes"
17921
else
17922 225 jeremybenn
  echo "$as_me: failed program was:" >&5
17923 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17924
 
17925 225 jeremybenn
eval "$as_ac_var=no"
17926 131 jeremybenn
fi
17927 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
17928 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
17929
fi
17930 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17931
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17932
if test `eval echo '${'$as_ac_var'}'` = yes; then
17933 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
17934 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17935 131 jeremybenn
_ACEOF
17936
 
17937
fi
17938
done
17939
 
17940
if test "x$ac_cv_func_fork" = xyes; then
17941 225 jeremybenn
  echo "$as_me:$LINENO: checking for working fork" >&5
17942
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17943 131 jeremybenn
if test "${ac_cv_func_fork_works+set}" = set; then
17944 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
17945 131 jeremybenn
else
17946
  if test "$cross_compiling" = yes; then
17947
  ac_cv_func_fork_works=cross
17948
else
17949
  cat >conftest.$ac_ext <<_ACEOF
17950 225 jeremybenn
/* By Ruediger Kuhlmann. */
17951
      #include 
17952
      #if HAVE_UNISTD_H
17953
      # include 
17954
      #endif
17955
      /* Some systems only have a dummy stub for fork() */
17956
      int main ()
17957
      {
17958
        if (fork() < 0)
17959
          exit (1);
17960
        exit (0);
17961
      }
17962 131 jeremybenn
_ACEOF
17963
rm -f conftest$ac_exeext
17964 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965
  (eval $ac_link) 2>&5
17966 131 jeremybenn
  ac_status=$?
17967 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17969 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970
  (eval $ac_try) 2>&5
17971 131 jeremybenn
  ac_status=$?
17972 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 131 jeremybenn
  (exit $ac_status); }; }; then
17974
  ac_cv_func_fork_works=yes
17975
else
17976 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
17977
echo "$as_me: failed program was:" >&5
17978 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17979
 
17980
( exit $ac_status )
17981
ac_cv_func_fork_works=no
17982
fi
17983 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17984 131 jeremybenn
fi
17985
fi
17986 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17987
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17988 131 jeremybenn
 
17989
else
17990
  ac_cv_func_fork_works=$ac_cv_func_fork
17991
fi
17992
if test "x$ac_cv_func_fork_works" = xcross; then
17993
  case $host in
17994
    *-*-amigaos* | *-*-msdosdjgpp*)
17995
      # Override, as these systems have only a dummy fork() stub
17996
      ac_cv_func_fork_works=no
17997
      ;;
17998
    *)
17999
      ac_cv_func_fork_works=yes
18000
      ;;
18001
  esac
18002 225 jeremybenn
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18003
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18004 131 jeremybenn
fi
18005
ac_cv_func_vfork_works=$ac_cv_func_vfork
18006
if test "x$ac_cv_func_vfork" = xyes; then
18007 225 jeremybenn
  echo "$as_me:$LINENO: checking for working vfork" >&5
18008
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18009 131 jeremybenn
if test "${ac_cv_func_vfork_works+set}" = set; then
18010 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
18011 131 jeremybenn
else
18012
  if test "$cross_compiling" = yes; then
18013
  ac_cv_func_vfork_works=cross
18014
else
18015
  cat >conftest.$ac_ext <<_ACEOF
18016
/* confdefs.h.  */
18017
_ACEOF
18018
cat confdefs.h >>conftest.$ac_ext
18019
cat >>conftest.$ac_ext <<_ACEOF
18020
/* end confdefs.h.  */
18021
/* Thanks to Paul Eggert for this test.  */
18022 225 jeremybenn
#include 
18023
#include 
18024
#include 
18025
#include 
18026 131 jeremybenn
#include 
18027 225 jeremybenn
#if HAVE_UNISTD_H
18028
# include 
18029
#endif
18030
#if HAVE_VFORK_H
18031 131 jeremybenn
# include 
18032
#endif
18033
/* On some sparc systems, changes by the child to local and incoming
18034
   argument registers are propagated back to the parent.  The compiler
18035
   is told about this with #include , but some compilers
18036
   (e.g. gcc -O) don't grok .  Test for this by using a
18037
   static variable whose address is put into a register that is
18038
   clobbered by the vfork.  */
18039
static void
18040
#ifdef __cplusplus
18041
sparc_address_test (int arg)
18042
# else
18043
sparc_address_test (arg) int arg;
18044
#endif
18045
{
18046
  static pid_t child;
18047
  if (!child) {
18048
    child = vfork ();
18049
    if (child < 0) {
18050
      perror ("vfork");
18051
      _exit(2);
18052
    }
18053
    if (!child) {
18054
      arg = getpid();
18055
      write(-1, "", 0);
18056
      _exit (arg);
18057
    }
18058
  }
18059
}
18060
 
18061
int
18062
main ()
18063
{
18064
  pid_t parent = getpid ();
18065
  pid_t child;
18066
 
18067
  sparc_address_test (0);
18068
 
18069
  child = vfork ();
18070
 
18071
  if (child == 0) {
18072
    /* Here is another test for sparc vfork register problems.  This
18073
       test uses lots of local variables, at least as many local
18074
       variables as main has allocated so far including compiler
18075
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18076
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18077
       reuse the register of parent for one of the local variables,
18078
       since it will think that parent can't possibly be used any more
18079
       in this routine.  Assigning to the local variable will thus
18080
       munge parent in the parent process.  */
18081
    pid_t
18082
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18083
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18084
    /* Convince the compiler that p..p7 are live; otherwise, it might
18085
       use the same hardware register for all 8 local variables.  */
18086
    if (p != p1 || p != p2 || p != p3 || p != p4
18087
        || p != p5 || p != p6 || p != p7)
18088
      _exit(1);
18089
 
18090
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18091
       from child file descriptors.  If the child closes a descriptor
18092
       before it execs or exits, this munges the parent's descriptor
18093
       as well.  Test for this by closing stdout in the child.  */
18094
    _exit(close(fileno(stdout)) != 0);
18095
  } else {
18096
    int status;
18097
    struct stat st;
18098
 
18099
    while (wait(&status) != child)
18100
      ;
18101 225 jeremybenn
    exit(
18102 131 jeremybenn
         /* Was there some problem with vforking?  */
18103
         child < 0
18104
 
18105
         /* Did the child fail?  (This shouldn't happen.)  */
18106
         || status
18107
 
18108
         /* Did the vfork/compiler bug occur?  */
18109
         || parent != getpid()
18110
 
18111
         /* Did the file descriptor bug occur?  */
18112
         || fstat(fileno(stdout), &st) != 0
18113
         );
18114
  }
18115
}
18116
_ACEOF
18117
rm -f conftest$ac_exeext
18118 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119
  (eval $ac_link) 2>&5
18120 131 jeremybenn
  ac_status=$?
18121 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124
  (eval $ac_try) 2>&5
18125 131 jeremybenn
  ac_status=$?
18126 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 131 jeremybenn
  (exit $ac_status); }; }; then
18128
  ac_cv_func_vfork_works=yes
18129
else
18130 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
18131
echo "$as_me: failed program was:" >&5
18132 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18133
 
18134
( exit $ac_status )
18135
ac_cv_func_vfork_works=no
18136
fi
18137 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18138 131 jeremybenn
fi
18139
fi
18140 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18141
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18142 131 jeremybenn
 
18143
fi;
18144
if test "x$ac_cv_func_fork_works" = xcross; then
18145
  ac_cv_func_vfork_works=$ac_cv_func_vfork
18146 225 jeremybenn
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18147
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18148 131 jeremybenn
fi
18149
 
18150
if test "x$ac_cv_func_vfork_works" = xyes; then
18151
 
18152
cat >>confdefs.h <<\_ACEOF
18153
#define HAVE_WORKING_VFORK 1
18154
_ACEOF
18155
 
18156
else
18157
 
18158
cat >>confdefs.h <<\_ACEOF
18159
#define vfork fork
18160
_ACEOF
18161
 
18162
fi
18163
if test "x$ac_cv_func_fork_works" = xyes; then
18164
 
18165
cat >>confdefs.h <<\_ACEOF
18166
#define HAVE_WORKING_FORK 1
18167
_ACEOF
18168
 
18169
fi
18170
 
18171
 
18172
 
18173
for ac_func in canonicalize_file_name realpath
18174
do
18175 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176
echo "$as_me:$LINENO: checking for $ac_func" >&5
18177
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18178
if eval "test \"\${$as_ac_var+set}\" = set"; then
18179
  echo $ECHO_N "(cached) $ECHO_C" >&6
18180 131 jeremybenn
else
18181
  cat >conftest.$ac_ext <<_ACEOF
18182
/* confdefs.h.  */
18183
_ACEOF
18184
cat confdefs.h >>conftest.$ac_ext
18185
cat >>conftest.$ac_ext <<_ACEOF
18186
/* end confdefs.h.  */
18187
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18188
   For example, HP-UX 11i  declares gettimeofday.  */
18189
#define $ac_func innocuous_$ac_func
18190
 
18191
/* System header to define __stub macros and hopefully few prototypes,
18192
    which can conflict with char $ac_func (); below.
18193
    Prefer  to  if __STDC__ is defined, since
18194
     exists even on freestanding compilers.  */
18195
 
18196
#ifdef __STDC__
18197
# include 
18198
#else
18199
# include 
18200
#endif
18201
 
18202
#undef $ac_func
18203
 
18204 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18205 131 jeremybenn
#ifdef __cplusplus
18206
extern "C"
18207 225 jeremybenn
{
18208 131 jeremybenn
#endif
18209 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18210
   builtin and then its argument prototype would still apply.  */
18211 131 jeremybenn
char $ac_func ();
18212
/* The GNU C library defines this for functions which it implements
18213
    to always fail with ENOSYS.  Some functions are actually named
18214
    something starting with __ and the normal name is an alias.  */
18215 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18216 131 jeremybenn
choke me
18217 225 jeremybenn
#else
18218
char (*f) () = $ac_func;
18219 131 jeremybenn
#endif
18220 225 jeremybenn
#ifdef __cplusplus
18221
}
18222
#endif
18223 131 jeremybenn
 
18224
int
18225
main ()
18226
{
18227 225 jeremybenn
return f != $ac_func;
18228 131 jeremybenn
  ;
18229
  return 0;
18230
}
18231
_ACEOF
18232
rm -f conftest.$ac_objext conftest$ac_exeext
18233 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234
  (eval $ac_link) 2>conftest.er1
18235 131 jeremybenn
  ac_status=$?
18236
  grep -v '^ *+' conftest.er1 >conftest.err
18237
  rm -f conftest.er1
18238
  cat conftest.err >&5
18239 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240
  (exit $ac_status); } &&
18241
         { ac_try='test -z "$ac_c_werror_flag"
18242
                         || test ! -s conftest.err'
18243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244
  (eval $ac_try) 2>&5
18245
  ac_status=$?
18246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247
  (exit $ac_status); }; } &&
18248
         { ac_try='test -s conftest$ac_exeext'
18249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250
  (eval $ac_try) 2>&5
18251
  ac_status=$?
18252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253
  (exit $ac_status); }; }; then
18254 131 jeremybenn
  eval "$as_ac_var=yes"
18255
else
18256 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18257 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18258
 
18259 225 jeremybenn
eval "$as_ac_var=no"
18260 131 jeremybenn
fi
18261 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18262 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18263
fi
18264 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18265
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18266
if test `eval echo '${'$as_ac_var'}'` = yes; then
18267 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18268 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 131 jeremybenn
_ACEOF
18270
 
18271
fi
18272
done
18273
 
18274
 
18275
for ac_func in getrusage
18276
do
18277 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278
echo "$as_me:$LINENO: checking for $ac_func" >&5
18279
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18280
if eval "test \"\${$as_ac_var+set}\" = set"; then
18281
  echo $ECHO_N "(cached) $ECHO_C" >&6
18282 131 jeremybenn
else
18283
  cat >conftest.$ac_ext <<_ACEOF
18284
/* confdefs.h.  */
18285
_ACEOF
18286
cat confdefs.h >>conftest.$ac_ext
18287
cat >>conftest.$ac_ext <<_ACEOF
18288
/* end confdefs.h.  */
18289
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18290
   For example, HP-UX 11i  declares gettimeofday.  */
18291
#define $ac_func innocuous_$ac_func
18292
 
18293
/* System header to define __stub macros and hopefully few prototypes,
18294
    which can conflict with char $ac_func (); below.
18295
    Prefer  to  if __STDC__ is defined, since
18296
     exists even on freestanding compilers.  */
18297
 
18298
#ifdef __STDC__
18299
# include 
18300
#else
18301
# include 
18302
#endif
18303
 
18304
#undef $ac_func
18305
 
18306 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18307 131 jeremybenn
#ifdef __cplusplus
18308
extern "C"
18309 225 jeremybenn
{
18310 131 jeremybenn
#endif
18311 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18312
   builtin and then its argument prototype would still apply.  */
18313 131 jeremybenn
char $ac_func ();
18314
/* The GNU C library defines this for functions which it implements
18315
    to always fail with ENOSYS.  Some functions are actually named
18316
    something starting with __ and the normal name is an alias.  */
18317 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18318 131 jeremybenn
choke me
18319 225 jeremybenn
#else
18320
char (*f) () = $ac_func;
18321 131 jeremybenn
#endif
18322 225 jeremybenn
#ifdef __cplusplus
18323
}
18324
#endif
18325 131 jeremybenn
 
18326
int
18327
main ()
18328
{
18329 225 jeremybenn
return f != $ac_func;
18330 131 jeremybenn
  ;
18331
  return 0;
18332
}
18333
_ACEOF
18334
rm -f conftest.$ac_objext conftest$ac_exeext
18335 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336
  (eval $ac_link) 2>conftest.er1
18337 131 jeremybenn
  ac_status=$?
18338
  grep -v '^ *+' conftest.er1 >conftest.err
18339
  rm -f conftest.er1
18340
  cat conftest.err >&5
18341 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342
  (exit $ac_status); } &&
18343
         { ac_try='test -z "$ac_c_werror_flag"
18344
                         || test ! -s conftest.err'
18345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346
  (eval $ac_try) 2>&5
18347
  ac_status=$?
18348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349
  (exit $ac_status); }; } &&
18350
         { ac_try='test -s conftest$ac_exeext'
18351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352
  (eval $ac_try) 2>&5
18353
  ac_status=$?
18354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355
  (exit $ac_status); }; }; then
18356 131 jeremybenn
  eval "$as_ac_var=yes"
18357
else
18358 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18359 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18360
 
18361 225 jeremybenn
eval "$as_ac_var=no"
18362 131 jeremybenn
fi
18363 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18364 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18365
fi
18366 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18367
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18368
if test `eval echo '${'$as_ac_var'}'` = yes; then
18369 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18370 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18371 131 jeremybenn
_ACEOF
18372
 
18373
fi
18374
done
18375
 
18376
 
18377
 
18378
for ac_func in getuid getgid
18379
do
18380 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381
echo "$as_me:$LINENO: checking for $ac_func" >&5
18382
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18383
if eval "test \"\${$as_ac_var+set}\" = set"; then
18384
  echo $ECHO_N "(cached) $ECHO_C" >&6
18385 131 jeremybenn
else
18386
  cat >conftest.$ac_ext <<_ACEOF
18387
/* confdefs.h.  */
18388
_ACEOF
18389
cat confdefs.h >>conftest.$ac_ext
18390
cat >>conftest.$ac_ext <<_ACEOF
18391
/* end confdefs.h.  */
18392
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18393
   For example, HP-UX 11i  declares gettimeofday.  */
18394
#define $ac_func innocuous_$ac_func
18395
 
18396
/* System header to define __stub macros and hopefully few prototypes,
18397
    which can conflict with char $ac_func (); below.
18398
    Prefer  to  if __STDC__ is defined, since
18399
     exists even on freestanding compilers.  */
18400
 
18401
#ifdef __STDC__
18402
# include 
18403
#else
18404
# include 
18405
#endif
18406
 
18407
#undef $ac_func
18408
 
18409 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18410 131 jeremybenn
#ifdef __cplusplus
18411
extern "C"
18412 225 jeremybenn
{
18413 131 jeremybenn
#endif
18414 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18415
   builtin and then its argument prototype would still apply.  */
18416 131 jeremybenn
char $ac_func ();
18417
/* The GNU C library defines this for functions which it implements
18418
    to always fail with ENOSYS.  Some functions are actually named
18419
    something starting with __ and the normal name is an alias.  */
18420 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18421 131 jeremybenn
choke me
18422 225 jeremybenn
#else
18423
char (*f) () = $ac_func;
18424 131 jeremybenn
#endif
18425 225 jeremybenn
#ifdef __cplusplus
18426
}
18427
#endif
18428 131 jeremybenn
 
18429
int
18430
main ()
18431
{
18432 225 jeremybenn
return f != $ac_func;
18433 131 jeremybenn
  ;
18434
  return 0;
18435
}
18436
_ACEOF
18437
rm -f conftest.$ac_objext conftest$ac_exeext
18438 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439
  (eval $ac_link) 2>conftest.er1
18440 131 jeremybenn
  ac_status=$?
18441
  grep -v '^ *+' conftest.er1 >conftest.err
18442
  rm -f conftest.er1
18443
  cat conftest.err >&5
18444 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445
  (exit $ac_status); } &&
18446
         { ac_try='test -z "$ac_c_werror_flag"
18447
                         || test ! -s conftest.err'
18448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449
  (eval $ac_try) 2>&5
18450
  ac_status=$?
18451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452
  (exit $ac_status); }; } &&
18453
         { ac_try='test -s conftest$ac_exeext'
18454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455
  (eval $ac_try) 2>&5
18456
  ac_status=$?
18457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458
  (exit $ac_status); }; }; then
18459 131 jeremybenn
  eval "$as_ac_var=yes"
18460
else
18461 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18462 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18463
 
18464 225 jeremybenn
eval "$as_ac_var=no"
18465 131 jeremybenn
fi
18466 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18467 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18468
fi
18469 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18470
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18471
if test `eval echo '${'$as_ac_var'}'` = yes; then
18472 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18473 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474 131 jeremybenn
_ACEOF
18475
 
18476
fi
18477
done
18478
 
18479
 
18480
for ac_func in poll
18481
do
18482 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18483
echo "$as_me:$LINENO: checking for $ac_func" >&5
18484
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18485
if eval "test \"\${$as_ac_var+set}\" = set"; then
18486
  echo $ECHO_N "(cached) $ECHO_C" >&6
18487 131 jeremybenn
else
18488
  cat >conftest.$ac_ext <<_ACEOF
18489
/* confdefs.h.  */
18490
_ACEOF
18491
cat confdefs.h >>conftest.$ac_ext
18492
cat >>conftest.$ac_ext <<_ACEOF
18493
/* end confdefs.h.  */
18494
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18495
   For example, HP-UX 11i  declares gettimeofday.  */
18496
#define $ac_func innocuous_$ac_func
18497
 
18498
/* System header to define __stub macros and hopefully few prototypes,
18499
    which can conflict with char $ac_func (); below.
18500
    Prefer  to  if __STDC__ is defined, since
18501
     exists even on freestanding compilers.  */
18502
 
18503
#ifdef __STDC__
18504
# include 
18505
#else
18506
# include 
18507
#endif
18508
 
18509
#undef $ac_func
18510
 
18511 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18512 131 jeremybenn
#ifdef __cplusplus
18513
extern "C"
18514 225 jeremybenn
{
18515 131 jeremybenn
#endif
18516 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18517
   builtin and then its argument prototype would still apply.  */
18518 131 jeremybenn
char $ac_func ();
18519
/* The GNU C library defines this for functions which it implements
18520
    to always fail with ENOSYS.  Some functions are actually named
18521
    something starting with __ and the normal name is an alias.  */
18522 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18523 131 jeremybenn
choke me
18524 225 jeremybenn
#else
18525
char (*f) () = $ac_func;
18526 131 jeremybenn
#endif
18527 225 jeremybenn
#ifdef __cplusplus
18528
}
18529
#endif
18530 131 jeremybenn
 
18531
int
18532
main ()
18533
{
18534 225 jeremybenn
return f != $ac_func;
18535 131 jeremybenn
  ;
18536
  return 0;
18537
}
18538
_ACEOF
18539
rm -f conftest.$ac_objext conftest$ac_exeext
18540 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541
  (eval $ac_link) 2>conftest.er1
18542 131 jeremybenn
  ac_status=$?
18543
  grep -v '^ *+' conftest.er1 >conftest.err
18544
  rm -f conftest.er1
18545
  cat conftest.err >&5
18546 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547
  (exit $ac_status); } &&
18548
         { ac_try='test -z "$ac_c_werror_flag"
18549
                         || test ! -s conftest.err'
18550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551
  (eval $ac_try) 2>&5
18552
  ac_status=$?
18553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554
  (exit $ac_status); }; } &&
18555
         { ac_try='test -s conftest$ac_exeext'
18556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557
  (eval $ac_try) 2>&5
18558
  ac_status=$?
18559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560
  (exit $ac_status); }; }; then
18561 131 jeremybenn
  eval "$as_ac_var=yes"
18562
else
18563 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18564 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18565
 
18566 225 jeremybenn
eval "$as_ac_var=no"
18567 131 jeremybenn
fi
18568 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18569 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18570
fi
18571 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18572
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18573
if test `eval echo '${'$as_ac_var'}'` = yes; then
18574 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18575 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18576 131 jeremybenn
_ACEOF
18577
 
18578
fi
18579
done
18580
 
18581
 
18582
for ac_func in pread64
18583
do
18584 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18585
echo "$as_me:$LINENO: checking for $ac_func" >&5
18586
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18587
if eval "test \"\${$as_ac_var+set}\" = set"; then
18588
  echo $ECHO_N "(cached) $ECHO_C" >&6
18589 131 jeremybenn
else
18590
  cat >conftest.$ac_ext <<_ACEOF
18591
/* confdefs.h.  */
18592
_ACEOF
18593
cat confdefs.h >>conftest.$ac_ext
18594
cat >>conftest.$ac_ext <<_ACEOF
18595
/* end confdefs.h.  */
18596
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18597
   For example, HP-UX 11i  declares gettimeofday.  */
18598
#define $ac_func innocuous_$ac_func
18599
 
18600
/* System header to define __stub macros and hopefully few prototypes,
18601
    which can conflict with char $ac_func (); below.
18602
    Prefer  to  if __STDC__ is defined, since
18603
     exists even on freestanding compilers.  */
18604
 
18605
#ifdef __STDC__
18606
# include 
18607
#else
18608
# include 
18609
#endif
18610
 
18611
#undef $ac_func
18612
 
18613 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18614 131 jeremybenn
#ifdef __cplusplus
18615
extern "C"
18616 225 jeremybenn
{
18617 131 jeremybenn
#endif
18618 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18619
   builtin and then its argument prototype would still apply.  */
18620 131 jeremybenn
char $ac_func ();
18621
/* The GNU C library defines this for functions which it implements
18622
    to always fail with ENOSYS.  Some functions are actually named
18623
    something starting with __ and the normal name is an alias.  */
18624 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18625 131 jeremybenn
choke me
18626 225 jeremybenn
#else
18627
char (*f) () = $ac_func;
18628 131 jeremybenn
#endif
18629 225 jeremybenn
#ifdef __cplusplus
18630
}
18631
#endif
18632 131 jeremybenn
 
18633
int
18634
main ()
18635
{
18636 225 jeremybenn
return f != $ac_func;
18637 131 jeremybenn
  ;
18638
  return 0;
18639
}
18640
_ACEOF
18641
rm -f conftest.$ac_objext conftest$ac_exeext
18642 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18643
  (eval $ac_link) 2>conftest.er1
18644 131 jeremybenn
  ac_status=$?
18645
  grep -v '^ *+' conftest.er1 >conftest.err
18646
  rm -f conftest.er1
18647
  cat conftest.err >&5
18648 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649
  (exit $ac_status); } &&
18650
         { ac_try='test -z "$ac_c_werror_flag"
18651
                         || test ! -s conftest.err'
18652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653
  (eval $ac_try) 2>&5
18654
  ac_status=$?
18655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656
  (exit $ac_status); }; } &&
18657
         { ac_try='test -s conftest$ac_exeext'
18658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659
  (eval $ac_try) 2>&5
18660
  ac_status=$?
18661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662
  (exit $ac_status); }; }; then
18663 131 jeremybenn
  eval "$as_ac_var=yes"
18664
else
18665 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18666 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18667
 
18668 225 jeremybenn
eval "$as_ac_var=no"
18669 131 jeremybenn
fi
18670 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18671 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18672
fi
18673 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18674
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18675
if test `eval echo '${'$as_ac_var'}'` = yes; then
18676 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18677 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18678 131 jeremybenn
_ACEOF
18679
 
18680
fi
18681
done
18682
 
18683
 
18684
for ac_func in sbrk
18685
do
18686 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687
echo "$as_me:$LINENO: checking for $ac_func" >&5
18688
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18689
if eval "test \"\${$as_ac_var+set}\" = set"; then
18690
  echo $ECHO_N "(cached) $ECHO_C" >&6
18691 131 jeremybenn
else
18692
  cat >conftest.$ac_ext <<_ACEOF
18693
/* confdefs.h.  */
18694
_ACEOF
18695
cat confdefs.h >>conftest.$ac_ext
18696
cat >>conftest.$ac_ext <<_ACEOF
18697
/* end confdefs.h.  */
18698
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18699
   For example, HP-UX 11i  declares gettimeofday.  */
18700
#define $ac_func innocuous_$ac_func
18701
 
18702
/* System header to define __stub macros and hopefully few prototypes,
18703
    which can conflict with char $ac_func (); below.
18704
    Prefer  to  if __STDC__ is defined, since
18705
     exists even on freestanding compilers.  */
18706
 
18707
#ifdef __STDC__
18708
# include 
18709
#else
18710
# include 
18711
#endif
18712
 
18713
#undef $ac_func
18714
 
18715 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18716 131 jeremybenn
#ifdef __cplusplus
18717
extern "C"
18718 225 jeremybenn
{
18719 131 jeremybenn
#endif
18720 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18721
   builtin and then its argument prototype would still apply.  */
18722 131 jeremybenn
char $ac_func ();
18723
/* The GNU C library defines this for functions which it implements
18724
    to always fail with ENOSYS.  Some functions are actually named
18725
    something starting with __ and the normal name is an alias.  */
18726 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18727 131 jeremybenn
choke me
18728 225 jeremybenn
#else
18729
char (*f) () = $ac_func;
18730 131 jeremybenn
#endif
18731 225 jeremybenn
#ifdef __cplusplus
18732
}
18733
#endif
18734 131 jeremybenn
 
18735
int
18736
main ()
18737
{
18738 225 jeremybenn
return f != $ac_func;
18739 131 jeremybenn
  ;
18740
  return 0;
18741
}
18742
_ACEOF
18743
rm -f conftest.$ac_objext conftest$ac_exeext
18744 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745
  (eval $ac_link) 2>conftest.er1
18746 131 jeremybenn
  ac_status=$?
18747
  grep -v '^ *+' conftest.er1 >conftest.err
18748
  rm -f conftest.er1
18749
  cat conftest.err >&5
18750 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751
  (exit $ac_status); } &&
18752
         { ac_try='test -z "$ac_c_werror_flag"
18753
                         || test ! -s conftest.err'
18754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755
  (eval $ac_try) 2>&5
18756
  ac_status=$?
18757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758
  (exit $ac_status); }; } &&
18759
         { ac_try='test -s conftest$ac_exeext'
18760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761
  (eval $ac_try) 2>&5
18762
  ac_status=$?
18763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764
  (exit $ac_status); }; }; then
18765 131 jeremybenn
  eval "$as_ac_var=yes"
18766
else
18767 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18768 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18769
 
18770 225 jeremybenn
eval "$as_ac_var=no"
18771 131 jeremybenn
fi
18772 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18773 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18774
fi
18775 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18776
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18777
if test `eval echo '${'$as_ac_var'}'` = yes; then
18778 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18779 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18780 131 jeremybenn
_ACEOF
18781
 
18782
fi
18783
done
18784
 
18785
 
18786
 
18787
for ac_func in setpgid setpgrp
18788
do
18789 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18790
echo "$as_me:$LINENO: checking for $ac_func" >&5
18791
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18792
if eval "test \"\${$as_ac_var+set}\" = set"; then
18793
  echo $ECHO_N "(cached) $ECHO_C" >&6
18794 131 jeremybenn
else
18795
  cat >conftest.$ac_ext <<_ACEOF
18796
/* confdefs.h.  */
18797
_ACEOF
18798
cat confdefs.h >>conftest.$ac_ext
18799
cat >>conftest.$ac_ext <<_ACEOF
18800
/* end confdefs.h.  */
18801
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18802
   For example, HP-UX 11i  declares gettimeofday.  */
18803
#define $ac_func innocuous_$ac_func
18804
 
18805
/* System header to define __stub macros and hopefully few prototypes,
18806
    which can conflict with char $ac_func (); below.
18807
    Prefer  to  if __STDC__ is defined, since
18808
     exists even on freestanding compilers.  */
18809
 
18810
#ifdef __STDC__
18811
# include 
18812
#else
18813
# include 
18814
#endif
18815
 
18816
#undef $ac_func
18817
 
18818 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18819 131 jeremybenn
#ifdef __cplusplus
18820
extern "C"
18821 225 jeremybenn
{
18822 131 jeremybenn
#endif
18823 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18824
   builtin and then its argument prototype would still apply.  */
18825 131 jeremybenn
char $ac_func ();
18826
/* The GNU C library defines this for functions which it implements
18827
    to always fail with ENOSYS.  Some functions are actually named
18828
    something starting with __ and the normal name is an alias.  */
18829 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18830 131 jeremybenn
choke me
18831 225 jeremybenn
#else
18832
char (*f) () = $ac_func;
18833 131 jeremybenn
#endif
18834 225 jeremybenn
#ifdef __cplusplus
18835
}
18836
#endif
18837 131 jeremybenn
 
18838
int
18839
main ()
18840
{
18841 225 jeremybenn
return f != $ac_func;
18842 131 jeremybenn
  ;
18843
  return 0;
18844
}
18845
_ACEOF
18846
rm -f conftest.$ac_objext conftest$ac_exeext
18847 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848
  (eval $ac_link) 2>conftest.er1
18849 131 jeremybenn
  ac_status=$?
18850
  grep -v '^ *+' conftest.er1 >conftest.err
18851
  rm -f conftest.er1
18852
  cat conftest.err >&5
18853 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854
  (exit $ac_status); } &&
18855
         { ac_try='test -z "$ac_c_werror_flag"
18856
                         || test ! -s conftest.err'
18857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858
  (eval $ac_try) 2>&5
18859
  ac_status=$?
18860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861
  (exit $ac_status); }; } &&
18862
         { ac_try='test -s conftest$ac_exeext'
18863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864
  (eval $ac_try) 2>&5
18865
  ac_status=$?
18866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867
  (exit $ac_status); }; }; then
18868 131 jeremybenn
  eval "$as_ac_var=yes"
18869
else
18870 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18871 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18872
 
18873 225 jeremybenn
eval "$as_ac_var=no"
18874 131 jeremybenn
fi
18875 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18876 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18877
fi
18878 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18879
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18880
if test `eval echo '${'$as_ac_var'}'` = yes; then
18881 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18882 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18883 131 jeremybenn
_ACEOF
18884
 
18885
fi
18886
done
18887
 
18888
 
18889
 
18890
 
18891
for ac_func in sigaction sigprocmask sigsetmask
18892
do
18893 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18894
echo "$as_me:$LINENO: checking for $ac_func" >&5
18895
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18896
if eval "test \"\${$as_ac_var+set}\" = set"; then
18897
  echo $ECHO_N "(cached) $ECHO_C" >&6
18898 131 jeremybenn
else
18899
  cat >conftest.$ac_ext <<_ACEOF
18900
/* confdefs.h.  */
18901
_ACEOF
18902
cat confdefs.h >>conftest.$ac_ext
18903
cat >>conftest.$ac_ext <<_ACEOF
18904
/* end confdefs.h.  */
18905
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18906
   For example, HP-UX 11i  declares gettimeofday.  */
18907
#define $ac_func innocuous_$ac_func
18908
 
18909
/* System header to define __stub macros and hopefully few prototypes,
18910
    which can conflict with char $ac_func (); below.
18911
    Prefer  to  if __STDC__ is defined, since
18912
     exists even on freestanding compilers.  */
18913
 
18914
#ifdef __STDC__
18915
# include 
18916
#else
18917
# include 
18918
#endif
18919
 
18920
#undef $ac_func
18921
 
18922 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
18923 131 jeremybenn
#ifdef __cplusplus
18924
extern "C"
18925 225 jeremybenn
{
18926 131 jeremybenn
#endif
18927 225 jeremybenn
/* We use char because int might match the return type of a gcc2
18928
   builtin and then its argument prototype would still apply.  */
18929 131 jeremybenn
char $ac_func ();
18930
/* The GNU C library defines this for functions which it implements
18931
    to always fail with ENOSYS.  Some functions are actually named
18932
    something starting with __ and the normal name is an alias.  */
18933 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18934 131 jeremybenn
choke me
18935 225 jeremybenn
#else
18936
char (*f) () = $ac_func;
18937 131 jeremybenn
#endif
18938 225 jeremybenn
#ifdef __cplusplus
18939
}
18940
#endif
18941 131 jeremybenn
 
18942
int
18943
main ()
18944
{
18945 225 jeremybenn
return f != $ac_func;
18946 131 jeremybenn
  ;
18947
  return 0;
18948
}
18949
_ACEOF
18950
rm -f conftest.$ac_objext conftest$ac_exeext
18951 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18952
  (eval $ac_link) 2>conftest.er1
18953 131 jeremybenn
  ac_status=$?
18954
  grep -v '^ *+' conftest.er1 >conftest.err
18955
  rm -f conftest.er1
18956
  cat conftest.err >&5
18957 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958
  (exit $ac_status); } &&
18959
         { ac_try='test -z "$ac_c_werror_flag"
18960
                         || test ! -s conftest.err'
18961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962
  (eval $ac_try) 2>&5
18963
  ac_status=$?
18964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965
  (exit $ac_status); }; } &&
18966
         { ac_try='test -s conftest$ac_exeext'
18967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968
  (eval $ac_try) 2>&5
18969
  ac_status=$?
18970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971
  (exit $ac_status); }; }; then
18972 131 jeremybenn
  eval "$as_ac_var=yes"
18973
else
18974 225 jeremybenn
  echo "$as_me: failed program was:" >&5
18975 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18976
 
18977 225 jeremybenn
eval "$as_ac_var=no"
18978 131 jeremybenn
fi
18979 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
18980 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18981
fi
18982 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18983
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18984
if test `eval echo '${'$as_ac_var'}'` = yes; then
18985 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18986 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18987 131 jeremybenn
_ACEOF
18988
 
18989
fi
18990
done
18991
 
18992
 
18993
for ac_func in socketpair
18994
do
18995 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18996
echo "$as_me:$LINENO: checking for $ac_func" >&5
18997
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18998
if eval "test \"\${$as_ac_var+set}\" = set"; then
18999
  echo $ECHO_N "(cached) $ECHO_C" >&6
19000 131 jeremybenn
else
19001
  cat >conftest.$ac_ext <<_ACEOF
19002
/* confdefs.h.  */
19003
_ACEOF
19004
cat confdefs.h >>conftest.$ac_ext
19005
cat >>conftest.$ac_ext <<_ACEOF
19006
/* end confdefs.h.  */
19007
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19008
   For example, HP-UX 11i  declares gettimeofday.  */
19009
#define $ac_func innocuous_$ac_func
19010
 
19011
/* System header to define __stub macros and hopefully few prototypes,
19012
    which can conflict with char $ac_func (); below.
19013
    Prefer  to  if __STDC__ is defined, since
19014
     exists even on freestanding compilers.  */
19015
 
19016
#ifdef __STDC__
19017
# include 
19018
#else
19019
# include 
19020
#endif
19021
 
19022
#undef $ac_func
19023
 
19024 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
19025 131 jeremybenn
#ifdef __cplusplus
19026
extern "C"
19027 225 jeremybenn
{
19028 131 jeremybenn
#endif
19029 225 jeremybenn
/* We use char because int might match the return type of a gcc2
19030
   builtin and then its argument prototype would still apply.  */
19031 131 jeremybenn
char $ac_func ();
19032
/* The GNU C library defines this for functions which it implements
19033
    to always fail with ENOSYS.  Some functions are actually named
19034
    something starting with __ and the normal name is an alias.  */
19035 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19036 131 jeremybenn
choke me
19037 225 jeremybenn
#else
19038
char (*f) () = $ac_func;
19039 131 jeremybenn
#endif
19040 225 jeremybenn
#ifdef __cplusplus
19041
}
19042
#endif
19043 131 jeremybenn
 
19044
int
19045
main ()
19046
{
19047 225 jeremybenn
return f != $ac_func;
19048 131 jeremybenn
  ;
19049
  return 0;
19050
}
19051
_ACEOF
19052
rm -f conftest.$ac_objext conftest$ac_exeext
19053 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054
  (eval $ac_link) 2>conftest.er1
19055 131 jeremybenn
  ac_status=$?
19056
  grep -v '^ *+' conftest.er1 >conftest.err
19057
  rm -f conftest.er1
19058
  cat conftest.err >&5
19059 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060
  (exit $ac_status); } &&
19061
         { ac_try='test -z "$ac_c_werror_flag"
19062
                         || test ! -s conftest.err'
19063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064
  (eval $ac_try) 2>&5
19065
  ac_status=$?
19066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067
  (exit $ac_status); }; } &&
19068
         { ac_try='test -s conftest$ac_exeext'
19069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070
  (eval $ac_try) 2>&5
19071
  ac_status=$?
19072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073
  (exit $ac_status); }; }; then
19074 131 jeremybenn
  eval "$as_ac_var=yes"
19075
else
19076 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19077 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19078
 
19079 225 jeremybenn
eval "$as_ac_var=no"
19080 131 jeremybenn
fi
19081 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
19082 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19083
fi
19084 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19085
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19086
if test `eval echo '${'$as_ac_var'}'` = yes; then
19087 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19088 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089 131 jeremybenn
_ACEOF
19090
 
19091
fi
19092
done
19093
 
19094
 
19095
for ac_func in syscall
19096
do
19097 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19098
echo "$as_me:$LINENO: checking for $ac_func" >&5
19099
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19100
if eval "test \"\${$as_ac_var+set}\" = set"; then
19101
  echo $ECHO_N "(cached) $ECHO_C" >&6
19102 131 jeremybenn
else
19103
  cat >conftest.$ac_ext <<_ACEOF
19104
/* confdefs.h.  */
19105
_ACEOF
19106
cat confdefs.h >>conftest.$ac_ext
19107
cat >>conftest.$ac_ext <<_ACEOF
19108
/* end confdefs.h.  */
19109
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19110
   For example, HP-UX 11i  declares gettimeofday.  */
19111
#define $ac_func innocuous_$ac_func
19112
 
19113
/* System header to define __stub macros and hopefully few prototypes,
19114
    which can conflict with char $ac_func (); below.
19115
    Prefer  to  if __STDC__ is defined, since
19116
     exists even on freestanding compilers.  */
19117
 
19118
#ifdef __STDC__
19119
# include 
19120
#else
19121
# include 
19122
#endif
19123
 
19124
#undef $ac_func
19125
 
19126 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
19127 131 jeremybenn
#ifdef __cplusplus
19128
extern "C"
19129 225 jeremybenn
{
19130 131 jeremybenn
#endif
19131 225 jeremybenn
/* We use char because int might match the return type of a gcc2
19132
   builtin and then its argument prototype would still apply.  */
19133 131 jeremybenn
char $ac_func ();
19134
/* The GNU C library defines this for functions which it implements
19135
    to always fail with ENOSYS.  Some functions are actually named
19136
    something starting with __ and the normal name is an alias.  */
19137 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19138 131 jeremybenn
choke me
19139 225 jeremybenn
#else
19140
char (*f) () = $ac_func;
19141 131 jeremybenn
#endif
19142 225 jeremybenn
#ifdef __cplusplus
19143
}
19144
#endif
19145 131 jeremybenn
 
19146
int
19147
main ()
19148
{
19149 225 jeremybenn
return f != $ac_func;
19150 131 jeremybenn
  ;
19151
  return 0;
19152
}
19153
_ACEOF
19154
rm -f conftest.$ac_objext conftest$ac_exeext
19155 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19156
  (eval $ac_link) 2>conftest.er1
19157 131 jeremybenn
  ac_status=$?
19158
  grep -v '^ *+' conftest.er1 >conftest.err
19159
  rm -f conftest.er1
19160
  cat conftest.err >&5
19161 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162
  (exit $ac_status); } &&
19163
         { ac_try='test -z "$ac_c_werror_flag"
19164
                         || test ! -s conftest.err'
19165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166
  (eval $ac_try) 2>&5
19167
  ac_status=$?
19168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169
  (exit $ac_status); }; } &&
19170
         { ac_try='test -s conftest$ac_exeext'
19171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172
  (eval $ac_try) 2>&5
19173
  ac_status=$?
19174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175
  (exit $ac_status); }; }; then
19176 131 jeremybenn
  eval "$as_ac_var=yes"
19177
else
19178 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19179 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19180
 
19181 225 jeremybenn
eval "$as_ac_var=no"
19182 131 jeremybenn
fi
19183 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
19184 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19185
fi
19186 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19187
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19188
if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19190 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191 131 jeremybenn
_ACEOF
19192
 
19193
fi
19194
done
19195
 
19196
 
19197
for ac_func in ttrace
19198
do
19199 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19200
echo "$as_me:$LINENO: checking for $ac_func" >&5
19201
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19202
if eval "test \"\${$as_ac_var+set}\" = set"; then
19203
  echo $ECHO_N "(cached) $ECHO_C" >&6
19204 131 jeremybenn
else
19205
  cat >conftest.$ac_ext <<_ACEOF
19206
/* confdefs.h.  */
19207
_ACEOF
19208
cat confdefs.h >>conftest.$ac_ext
19209
cat >>conftest.$ac_ext <<_ACEOF
19210
/* end confdefs.h.  */
19211
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19212
   For example, HP-UX 11i  declares gettimeofday.  */
19213
#define $ac_func innocuous_$ac_func
19214
 
19215
/* System header to define __stub macros and hopefully few prototypes,
19216
    which can conflict with char $ac_func (); below.
19217
    Prefer  to  if __STDC__ is defined, since
19218
     exists even on freestanding compilers.  */
19219
 
19220
#ifdef __STDC__
19221
# include 
19222
#else
19223
# include 
19224
#endif
19225
 
19226
#undef $ac_func
19227
 
19228 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
19229 131 jeremybenn
#ifdef __cplusplus
19230
extern "C"
19231 225 jeremybenn
{
19232 131 jeremybenn
#endif
19233 225 jeremybenn
/* We use char because int might match the return type of a gcc2
19234
   builtin and then its argument prototype would still apply.  */
19235 131 jeremybenn
char $ac_func ();
19236
/* The GNU C library defines this for functions which it implements
19237
    to always fail with ENOSYS.  Some functions are actually named
19238
    something starting with __ and the normal name is an alias.  */
19239 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19240 131 jeremybenn
choke me
19241 225 jeremybenn
#else
19242
char (*f) () = $ac_func;
19243 131 jeremybenn
#endif
19244 225 jeremybenn
#ifdef __cplusplus
19245
}
19246
#endif
19247 131 jeremybenn
 
19248
int
19249
main ()
19250
{
19251 225 jeremybenn
return f != $ac_func;
19252 131 jeremybenn
  ;
19253
  return 0;
19254
}
19255
_ACEOF
19256
rm -f conftest.$ac_objext conftest$ac_exeext
19257 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258
  (eval $ac_link) 2>conftest.er1
19259 131 jeremybenn
  ac_status=$?
19260
  grep -v '^ *+' conftest.er1 >conftest.err
19261
  rm -f conftest.er1
19262
  cat conftest.err >&5
19263 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264
  (exit $ac_status); } &&
19265
         { ac_try='test -z "$ac_c_werror_flag"
19266
                         || test ! -s conftest.err'
19267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268
  (eval $ac_try) 2>&5
19269
  ac_status=$?
19270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271
  (exit $ac_status); }; } &&
19272
         { ac_try='test -s conftest$ac_exeext'
19273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274
  (eval $ac_try) 2>&5
19275
  ac_status=$?
19276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277
  (exit $ac_status); }; }; then
19278 131 jeremybenn
  eval "$as_ac_var=yes"
19279
else
19280 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19281 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19282
 
19283 225 jeremybenn
eval "$as_ac_var=no"
19284 131 jeremybenn
fi
19285 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
19286 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19287
fi
19288 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19289
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19290
if test `eval echo '${'$as_ac_var'}'` = yes; then
19291 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19292 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19293 131 jeremybenn
_ACEOF
19294
 
19295
fi
19296
done
19297
 
19298
 
19299
for ac_func in wborder
19300
do
19301 225 jeremybenn
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19302
echo "$as_me:$LINENO: checking for $ac_func" >&5
19303
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19304
if eval "test \"\${$as_ac_var+set}\" = set"; then
19305
  echo $ECHO_N "(cached) $ECHO_C" >&6
19306 131 jeremybenn
else
19307
  cat >conftest.$ac_ext <<_ACEOF
19308
/* confdefs.h.  */
19309
_ACEOF
19310
cat confdefs.h >>conftest.$ac_ext
19311
cat >>conftest.$ac_ext <<_ACEOF
19312
/* end confdefs.h.  */
19313
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19314
   For example, HP-UX 11i  declares gettimeofday.  */
19315
#define $ac_func innocuous_$ac_func
19316
 
19317
/* System header to define __stub macros and hopefully few prototypes,
19318
    which can conflict with char $ac_func (); below.
19319
    Prefer  to  if __STDC__ is defined, since
19320
     exists even on freestanding compilers.  */
19321
 
19322
#ifdef __STDC__
19323
# include 
19324
#else
19325
# include 
19326
#endif
19327
 
19328
#undef $ac_func
19329
 
19330 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
19331 131 jeremybenn
#ifdef __cplusplus
19332
extern "C"
19333 225 jeremybenn
{
19334 131 jeremybenn
#endif
19335 225 jeremybenn
/* We use char because int might match the return type of a gcc2
19336
   builtin and then its argument prototype would still apply.  */
19337 131 jeremybenn
char $ac_func ();
19338
/* The GNU C library defines this for functions which it implements
19339
    to always fail with ENOSYS.  Some functions are actually named
19340
    something starting with __ and the normal name is an alias.  */
19341 225 jeremybenn
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19342 131 jeremybenn
choke me
19343 225 jeremybenn
#else
19344
char (*f) () = $ac_func;
19345 131 jeremybenn
#endif
19346 225 jeremybenn
#ifdef __cplusplus
19347
}
19348
#endif
19349 131 jeremybenn
 
19350
int
19351
main ()
19352
{
19353 225 jeremybenn
return f != $ac_func;
19354 131 jeremybenn
  ;
19355
  return 0;
19356
}
19357
_ACEOF
19358
rm -f conftest.$ac_objext conftest$ac_exeext
19359 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360
  (eval $ac_link) 2>conftest.er1
19361 131 jeremybenn
  ac_status=$?
19362
  grep -v '^ *+' conftest.er1 >conftest.err
19363
  rm -f conftest.er1
19364
  cat conftest.err >&5
19365 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366
  (exit $ac_status); } &&
19367
         { ac_try='test -z "$ac_c_werror_flag"
19368
                         || test ! -s conftest.err'
19369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370
  (eval $ac_try) 2>&5
19371
  ac_status=$?
19372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373
  (exit $ac_status); }; } &&
19374
         { ac_try='test -s conftest$ac_exeext'
19375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376
  (eval $ac_try) 2>&5
19377
  ac_status=$?
19378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379
  (exit $ac_status); }; }; then
19380 131 jeremybenn
  eval "$as_ac_var=yes"
19381
else
19382 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19383 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19384
 
19385 225 jeremybenn
eval "$as_ac_var=no"
19386 131 jeremybenn
fi
19387 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
19388 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19389
fi
19390 225 jeremybenn
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19391
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19392
if test `eval echo '${'$as_ac_var'}'` = yes; then
19393 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19394 225 jeremybenn
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19395 131 jeremybenn
_ACEOF
19396
 
19397
fi
19398
done
19399
 
19400
 
19401
# Check the return and argument types of ptrace.  No canned test for
19402
# this, so roll our own.
19403
gdb_ptrace_headers='
19404
#if HAVE_SYS_TYPES_H
19405
# include 
19406
#endif
19407
#if HAVE_SYS_PTRACE_H
19408
# include 
19409
#endif
19410
#if HAVE_UNISTD_H
19411
# include 
19412
#endif
19413
'
19414
# There is no point in checking if we don't have a prototype.
19415 225 jeremybenn
echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19416
echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
19417 131 jeremybenn
if test "${ac_cv_have_decl_ptrace+set}" = set; then
19418 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19419 131 jeremybenn
else
19420
  cat >conftest.$ac_ext <<_ACEOF
19421
/* confdefs.h.  */
19422
_ACEOF
19423
cat confdefs.h >>conftest.$ac_ext
19424
cat >>conftest.$ac_ext <<_ACEOF
19425
/* end confdefs.h.  */
19426
$gdb_ptrace_headers
19427
 
19428
int
19429
main ()
19430
{
19431
#ifndef ptrace
19432 225 jeremybenn
  char *p = (char *) ptrace;
19433 131 jeremybenn
#endif
19434
 
19435
  ;
19436
  return 0;
19437
}
19438
_ACEOF
19439
rm -f conftest.$ac_objext
19440 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441
  (eval $ac_compile) 2>conftest.er1
19442 131 jeremybenn
  ac_status=$?
19443
  grep -v '^ *+' conftest.er1 >conftest.err
19444
  rm -f conftest.er1
19445
  cat conftest.err >&5
19446 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447
  (exit $ac_status); } &&
19448
         { ac_try='test -z "$ac_c_werror_flag"
19449
                         || test ! -s conftest.err'
19450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451
  (eval $ac_try) 2>&5
19452
  ac_status=$?
19453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454
  (exit $ac_status); }; } &&
19455
         { ac_try='test -s conftest.$ac_objext'
19456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457
  (eval $ac_try) 2>&5
19458
  ac_status=$?
19459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460
  (exit $ac_status); }; }; then
19461 131 jeremybenn
  ac_cv_have_decl_ptrace=yes
19462
else
19463 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19464 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19465
 
19466 225 jeremybenn
ac_cv_have_decl_ptrace=no
19467 131 jeremybenn
fi
19468 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 131 jeremybenn
fi
19470 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19471
echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
19472
if test $ac_cv_have_decl_ptrace = yes; then
19473 131 jeremybenn
 
19474
cat >>confdefs.h <<_ACEOF
19475
#define HAVE_DECL_PTRACE 1
19476
_ACEOF
19477
 
19478
 
19479
else
19480
  cat >>confdefs.h <<_ACEOF
19481
#define HAVE_DECL_PTRACE 0
19482
_ACEOF
19483
 
19484
 
19485
  : ${gdb_cv_func_ptrace_ret='int'}
19486
  : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19487
 
19488
fi
19489
 
19490
 
19491
# Check return type.
19492 225 jeremybenn
echo "$as_me:$LINENO: checking return type of ptrace" >&5
19493
echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
19494 131 jeremybenn
if test "${gdb_cv_func_ptrace_ret+set}" = set; then
19495 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19496 131 jeremybenn
else
19497
  cat >conftest.$ac_ext <<_ACEOF
19498
/* confdefs.h.  */
19499
_ACEOF
19500
cat confdefs.h >>conftest.$ac_ext
19501
cat >>conftest.$ac_ext <<_ACEOF
19502
/* end confdefs.h.  */
19503
$gdb_ptrace_headers
19504
int
19505
main ()
19506
{
19507
extern int ptrace ();
19508
  ;
19509
  return 0;
19510
}
19511
_ACEOF
19512
rm -f conftest.$ac_objext
19513 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514
  (eval $ac_compile) 2>conftest.er1
19515 131 jeremybenn
  ac_status=$?
19516
  grep -v '^ *+' conftest.er1 >conftest.err
19517
  rm -f conftest.er1
19518
  cat conftest.err >&5
19519 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520
  (exit $ac_status); } &&
19521
         { ac_try='test -z "$ac_c_werror_flag"
19522
                         || test ! -s conftest.err'
19523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524
  (eval $ac_try) 2>&5
19525
  ac_status=$?
19526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527
  (exit $ac_status); }; } &&
19528
         { ac_try='test -s conftest.$ac_objext'
19529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530
  (eval $ac_try) 2>&5
19531
  ac_status=$?
19532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533
  (exit $ac_status); }; }; then
19534 131 jeremybenn
  gdb_cv_func_ptrace_ret='int'
19535
else
19536 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19537 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19538
 
19539 225 jeremybenn
gdb_cv_func_ptrace_ret='long'
19540 131 jeremybenn
fi
19541 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 131 jeremybenn
fi
19543 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19544
echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
19545 131 jeremybenn
 
19546
cat >>confdefs.h <<_ACEOF
19547
#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
19548
_ACEOF
19549
 
19550
# Check argument types.
19551 225 jeremybenn
echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19552
echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
19553 131 jeremybenn
if test "${gdb_cv_func_ptrace_args+set}" = set; then
19554 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19555 131 jeremybenn
else
19556
 
19557
for gdb_arg1 in 'int' 'long'; do
19558
 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19559
  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
19560
   for gdb_arg4 in 'int' 'long'; do
19561
     cat >conftest.$ac_ext <<_ACEOF
19562
/* confdefs.h.  */
19563
_ACEOF
19564
cat confdefs.h >>conftest.$ac_ext
19565
cat >>conftest.$ac_ext <<_ACEOF
19566
/* end confdefs.h.  */
19567
$gdb_ptrace_headers
19568
int
19569
main ()
19570
{
19571
 
19572
extern $gdb_cv_func_ptrace_ret
19573
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19574
 
19575
  ;
19576
  return 0;
19577
}
19578
_ACEOF
19579
rm -f conftest.$ac_objext
19580 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19581
  (eval $ac_compile) 2>conftest.er1
19582 131 jeremybenn
  ac_status=$?
19583
  grep -v '^ *+' conftest.er1 >conftest.err
19584
  rm -f conftest.er1
19585
  cat conftest.err >&5
19586 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
  (exit $ac_status); } &&
19588
         { ac_try='test -z "$ac_c_werror_flag"
19589
                         || test ! -s conftest.err'
19590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591
  (eval $ac_try) 2>&5
19592
  ac_status=$?
19593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594
  (exit $ac_status); }; } &&
19595
         { ac_try='test -s conftest.$ac_objext'
19596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597
  (eval $ac_try) 2>&5
19598
  ac_status=$?
19599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600
  (exit $ac_status); }; }; then
19601 131 jeremybenn
  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19602
    break 4;
19603
else
19604 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19605 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19606
 
19607
fi
19608 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19609 131 jeremybenn
    for gdb_arg5 in 'int *' 'int' 'long'; do
19610
     cat >conftest.$ac_ext <<_ACEOF
19611
/* confdefs.h.  */
19612
_ACEOF
19613
cat confdefs.h >>conftest.$ac_ext
19614
cat >>conftest.$ac_ext <<_ACEOF
19615
/* end confdefs.h.  */
19616
$gdb_ptrace_headers
19617
int
19618
main ()
19619
{
19620
 
19621
extern $gdb_cv_func_ptrace_ret
19622
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19623
 
19624
  ;
19625
  return 0;
19626
}
19627
_ACEOF
19628
rm -f conftest.$ac_objext
19629 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630
  (eval $ac_compile) 2>conftest.er1
19631 131 jeremybenn
  ac_status=$?
19632
  grep -v '^ *+' conftest.er1 >conftest.err
19633
  rm -f conftest.er1
19634
  cat conftest.err >&5
19635 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636
  (exit $ac_status); } &&
19637
         { ac_try='test -z "$ac_c_werror_flag"
19638
                         || test ! -s conftest.err'
19639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640
  (eval $ac_try) 2>&5
19641
  ac_status=$?
19642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643
  (exit $ac_status); }; } &&
19644
         { ac_try='test -s conftest.$ac_objext'
19645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646
  (eval $ac_try) 2>&5
19647
  ac_status=$?
19648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649
  (exit $ac_status); }; }; then
19650 131 jeremybenn
 
19651
gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19652
    break 5;
19653
else
19654 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19655 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19656
 
19657
fi
19658 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19659 131 jeremybenn
    done
19660
   done
19661
  done
19662
 done
19663
done
19664
# Provide a safe default value.
19665
: ${gdb_cv_func_ptrace_args='int,int,long,long'}
19666
 
19667
fi
19668 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19669
echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
19670 131 jeremybenn
ac_save_IFS=$IFS; IFS=','
19671
set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19672
IFS=$ac_save_IFS
19673
shift
19674
 
19675
cat >>confdefs.h <<_ACEOF
19676
#define PTRACE_TYPE_ARG3 $3
19677
_ACEOF
19678
 
19679
if test -n "$5"; then
19680
 
19681
cat >>confdefs.h <<_ACEOF
19682
#define PTRACE_TYPE_ARG5 $5
19683
_ACEOF
19684
 
19685
fi
19686
 
19687
if test "$cross_compiling" = no; then
19688 225 jeremybenn
  echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19689
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19690 131 jeremybenn
if test "${ac_cv_func_setpgrp_void+set}" = set; then
19691 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19692 131 jeremybenn
else
19693
  if test "$cross_compiling" = yes; then
19694 225 jeremybenn
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19695
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19696 131 jeremybenn
   { (exit 1); exit 1; }; }
19697
else
19698
  cat >conftest.$ac_ext <<_ACEOF
19699
/* confdefs.h.  */
19700
_ACEOF
19701
cat confdefs.h >>conftest.$ac_ext
19702
cat >>conftest.$ac_ext <<_ACEOF
19703
/* end confdefs.h.  */
19704 225 jeremybenn
#if HAVE_UNISTD_H
19705
# include 
19706
#endif
19707
 
19708 131 jeremybenn
int
19709
main ()
19710
{
19711
/* If this system has a BSD-style setpgrp which takes arguments,
19712
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19713
  exit successfully. */
19714 225 jeremybenn
  exit (setpgrp (1,1) == -1 ? 0 : 1);
19715 131 jeremybenn
  ;
19716
  return 0;
19717
}
19718
_ACEOF
19719
rm -f conftest$ac_exeext
19720 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721
  (eval $ac_link) 2>&5
19722 131 jeremybenn
  ac_status=$?
19723 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19725 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726
  (eval $ac_try) 2>&5
19727 131 jeremybenn
  ac_status=$?
19728 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 131 jeremybenn
  (exit $ac_status); }; }; then
19730
  ac_cv_func_setpgrp_void=no
19731
else
19732 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
19733
echo "$as_me: failed program was:" >&5
19734 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19735
 
19736
( exit $ac_status )
19737
ac_cv_func_setpgrp_void=yes
19738
fi
19739 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19740 131 jeremybenn
fi
19741
fi
19742 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19743
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19744 131 jeremybenn
if test $ac_cv_func_setpgrp_void = yes; then
19745
 
19746
cat >>confdefs.h <<\_ACEOF
19747
#define SETPGRP_VOID 1
19748
_ACEOF
19749
 
19750
fi
19751
 
19752
else
19753 225 jeremybenn
  echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19754
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19755 131 jeremybenn
if test "${ac_cv_func_setpgrp_void+set}" = set; then
19756 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19757 131 jeremybenn
else
19758
  cat >conftest.$ac_ext <<_ACEOF
19759
/* confdefs.h.  */
19760
_ACEOF
19761
cat confdefs.h >>conftest.$ac_ext
19762
cat >>conftest.$ac_ext <<_ACEOF
19763
/* end confdefs.h.  */
19764
 
19765
#include 
19766
 
19767
int
19768
main ()
19769
{
19770
 
19771
  if (setpgrp(1,1) == -1)
19772
    exit (0);
19773
  else
19774
    exit (1);
19775
 
19776
  ;
19777
  return 0;
19778
}
19779
_ACEOF
19780
rm -f conftest.$ac_objext
19781 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19782
  (eval $ac_compile) 2>conftest.er1
19783 131 jeremybenn
  ac_status=$?
19784
  grep -v '^ *+' conftest.er1 >conftest.err
19785
  rm -f conftest.er1
19786
  cat conftest.err >&5
19787 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788
  (exit $ac_status); } &&
19789
         { ac_try='test -z "$ac_c_werror_flag"
19790
                         || test ! -s conftest.err'
19791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792
  (eval $ac_try) 2>&5
19793
  ac_status=$?
19794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795
  (exit $ac_status); }; } &&
19796
         { ac_try='test -s conftest.$ac_objext'
19797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798
  (eval $ac_try) 2>&5
19799
  ac_status=$?
19800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801
  (exit $ac_status); }; }; then
19802 131 jeremybenn
  ac_cv_func_setpgrp_void=no
19803
else
19804 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19805 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19806
 
19807 225 jeremybenn
ac_cv_func_setpgrp_void=yes
19808 131 jeremybenn
fi
19809 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810 131 jeremybenn
fi
19811 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19812
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19813 131 jeremybenn
if test $ac_cv_func_setpgrp_void = yes; then
19814
  cat >>confdefs.h <<\_ACEOF
19815
#define SETPGRP_VOID 1
19816
_ACEOF
19817
 
19818
fi
19819
fi
19820
 
19821
# Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
19822
# since sigsetjmp might only be defined as a macro.
19823 225 jeremybenn
echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19824
echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
19825 131 jeremybenn
if test "${gdb_cv_func_sigsetjmp+set}" = set; then
19826 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19827 131 jeremybenn
else
19828
  cat >conftest.$ac_ext <<_ACEOF
19829
/* confdefs.h.  */
19830
_ACEOF
19831
cat confdefs.h >>conftest.$ac_ext
19832
cat >>conftest.$ac_ext <<_ACEOF
19833
/* end confdefs.h.  */
19834
 
19835
#include 
19836
 
19837
int
19838
main ()
19839
{
19840
sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19841
  ;
19842
  return 0;
19843
}
19844
_ACEOF
19845
rm -f conftest.$ac_objext
19846 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19847
  (eval $ac_compile) 2>conftest.er1
19848 131 jeremybenn
  ac_status=$?
19849
  grep -v '^ *+' conftest.er1 >conftest.err
19850
  rm -f conftest.er1
19851
  cat conftest.err >&5
19852 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853
  (exit $ac_status); } &&
19854
         { ac_try='test -z "$ac_c_werror_flag"
19855
                         || test ! -s conftest.err'
19856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857
  (eval $ac_try) 2>&5
19858
  ac_status=$?
19859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860
  (exit $ac_status); }; } &&
19861
         { ac_try='test -s conftest.$ac_objext'
19862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863
  (eval $ac_try) 2>&5
19864
  ac_status=$?
19865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866
  (exit $ac_status); }; }; then
19867 131 jeremybenn
  gdb_cv_func_sigsetjmp=yes
19868
else
19869 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19870 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19871
 
19872 225 jeremybenn
gdb_cv_func_sigsetjmp=no
19873 131 jeremybenn
fi
19874 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19875 131 jeremybenn
fi
19876 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19877
echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
19878 131 jeremybenn
if test $gdb_cv_func_sigsetjmp = yes; then
19879
 
19880
cat >>confdefs.h <<\_ACEOF
19881
#define HAVE_SIGSETJMP 1
19882
_ACEOF
19883
 
19884
fi
19885
 
19886
# Assume we'll default to using the included libiberty regex.
19887
gdb_use_included_regex=yes
19888
 
19889
# However, if the system regex is GNU regex, then default to *not*
19890
# using the included regex.
19891 225 jeremybenn
echo "$as_me:$LINENO: checking for GNU regex" >&5
19892
echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
19893 131 jeremybenn
if test "${gdb_cv_have_gnu_regex+set}" = set; then
19894 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19895 131 jeremybenn
else
19896
  cat >conftest.$ac_ext <<_ACEOF
19897
/* confdefs.h.  */
19898
_ACEOF
19899
cat confdefs.h >>conftest.$ac_ext
19900
cat >>conftest.$ac_ext <<_ACEOF
19901
/* end confdefs.h.  */
19902
#include 
19903
int
19904
main ()
19905
{
19906
#define REGEX_INTERFACE_VERSION 1
19907
#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19908
# error "Version mismatch"
19909
#endif
19910
  ;
19911
  return 0;
19912
}
19913
_ACEOF
19914
rm -f conftest.$ac_objext
19915 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916
  (eval $ac_compile) 2>conftest.er1
19917 131 jeremybenn
  ac_status=$?
19918
  grep -v '^ *+' conftest.er1 >conftest.err
19919
  rm -f conftest.er1
19920
  cat conftest.err >&5
19921 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922
  (exit $ac_status); } &&
19923
         { ac_try='test -z "$ac_c_werror_flag"
19924
                         || test ! -s conftest.err'
19925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926
  (eval $ac_try) 2>&5
19927
  ac_status=$?
19928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929
  (exit $ac_status); }; } &&
19930
         { ac_try='test -s conftest.$ac_objext'
19931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932
  (eval $ac_try) 2>&5
19933
  ac_status=$?
19934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935
  (exit $ac_status); }; }; then
19936 131 jeremybenn
  gdb_cv_have_gnu_regex=yes
19937
else
19938 225 jeremybenn
  echo "$as_me: failed program was:" >&5
19939 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19940
 
19941 225 jeremybenn
gdb_cv_have_gnu_regex=no
19942 131 jeremybenn
fi
19943 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19944 131 jeremybenn
fi
19945 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19946
echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
19947 131 jeremybenn
if test $gdb_cv_have_gnu_regex = yes; then
19948
  gdb_use_included_regex=no
19949
fi
19950
 
19951
 
19952 225 jeremybenn
# Check whether --with-included-regex or --without-included-regex was given.
19953 131 jeremybenn
if test "${with_included_regex+set}" = set; then
19954 225 jeremybenn
  withval="$with_included_regex"
19955
  gdb_with_regex=$withval
19956 131 jeremybenn
else
19957
  gdb_with_regex=$gdb_use_included_regex
19958 225 jeremybenn
fi;
19959 131 jeremybenn
if test "$gdb_with_regex" = yes; then
19960
 
19961
cat >>confdefs.h <<\_ACEOF
19962
#define USE_INCLUDED_REGEX 1
19963
_ACEOF
19964
 
19965
fi
19966
 
19967
# Check if  defines `struct thread' with a td_pcb member.
19968 225 jeremybenn
echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19969
echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
19970 131 jeremybenn
if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
19971 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
19972 131 jeremybenn
else
19973
  cat >conftest.$ac_ext <<_ACEOF
19974
/* confdefs.h.  */
19975
_ACEOF
19976
cat confdefs.h >>conftest.$ac_ext
19977
cat >>conftest.$ac_ext <<_ACEOF
19978
/* end confdefs.h.  */
19979
#include 
19980
#include 
19981
 
19982
 
19983
int
19984
main ()
19985
{
19986
static struct thread ac_aggr;
19987
if (ac_aggr.td_pcb)
19988
return 0;
19989
  ;
19990
  return 0;
19991
}
19992
_ACEOF
19993
rm -f conftest.$ac_objext
19994 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995
  (eval $ac_compile) 2>conftest.er1
19996 131 jeremybenn
  ac_status=$?
19997
  grep -v '^ *+' conftest.er1 >conftest.err
19998
  rm -f conftest.er1
19999
  cat conftest.err >&5
20000 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001
  (exit $ac_status); } &&
20002
         { ac_try='test -z "$ac_c_werror_flag"
20003
                         || test ! -s conftest.err'
20004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005
  (eval $ac_try) 2>&5
20006
  ac_status=$?
20007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008
  (exit $ac_status); }; } &&
20009
         { ac_try='test -s conftest.$ac_objext'
20010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011
  (eval $ac_try) 2>&5
20012
  ac_status=$?
20013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014
  (exit $ac_status); }; }; then
20015 131 jeremybenn
  ac_cv_member_struct_thread_td_pcb=yes
20016
else
20017 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20018 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20019
 
20020 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
20021 131 jeremybenn
/* confdefs.h.  */
20022
_ACEOF
20023
cat confdefs.h >>conftest.$ac_ext
20024
cat >>conftest.$ac_ext <<_ACEOF
20025
/* end confdefs.h.  */
20026
#include 
20027
#include 
20028
 
20029
 
20030
int
20031
main ()
20032
{
20033
static struct thread ac_aggr;
20034
if (sizeof ac_aggr.td_pcb)
20035
return 0;
20036
  ;
20037
  return 0;
20038
}
20039
_ACEOF
20040
rm -f conftest.$ac_objext
20041 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042
  (eval $ac_compile) 2>conftest.er1
20043 131 jeremybenn
  ac_status=$?
20044
  grep -v '^ *+' conftest.er1 >conftest.err
20045
  rm -f conftest.er1
20046
  cat conftest.err >&5
20047 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048
  (exit $ac_status); } &&
20049
         { ac_try='test -z "$ac_c_werror_flag"
20050
                         || test ! -s conftest.err'
20051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052
  (eval $ac_try) 2>&5
20053
  ac_status=$?
20054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055
  (exit $ac_status); }; } &&
20056
         { ac_try='test -s conftest.$ac_objext'
20057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058
  (eval $ac_try) 2>&5
20059
  ac_status=$?
20060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061
  (exit $ac_status); }; }; then
20062 131 jeremybenn
  ac_cv_member_struct_thread_td_pcb=yes
20063
else
20064 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20065 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20066
 
20067 225 jeremybenn
ac_cv_member_struct_thread_td_pcb=no
20068 131 jeremybenn
fi
20069 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070 131 jeremybenn
fi
20071 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072 131 jeremybenn
fi
20073 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20074
echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20075
if test $ac_cv_member_struct_thread_td_pcb = yes; then
20076 131 jeremybenn
 
20077
cat >>confdefs.h <<_ACEOF
20078
#define HAVE_STRUCT_THREAD_TD_PCB 1
20079
_ACEOF
20080
 
20081
 
20082
fi
20083
 
20084
 
20085
# See if  defines `struct lwp`.
20086 225 jeremybenn
echo "$as_me:$LINENO: checking for struct lwp" >&5
20087
echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20088 131 jeremybenn
if test "${gdb_cv_struct_lwp+set}" = set; then
20089 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20090 131 jeremybenn
else
20091
  cat >conftest.$ac_ext <<_ACEOF
20092
/* confdefs.h.  */
20093
_ACEOF
20094
cat confdefs.h >>conftest.$ac_ext
20095
cat >>conftest.$ac_ext <<_ACEOF
20096
/* end confdefs.h.  */
20097
#include 
20098
#include 
20099
int
20100
main ()
20101
{
20102
struct lwp l;
20103
  ;
20104
  return 0;
20105
}
20106
_ACEOF
20107
rm -f conftest.$ac_objext
20108 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109
  (eval $ac_compile) 2>conftest.er1
20110 131 jeremybenn
  ac_status=$?
20111
  grep -v '^ *+' conftest.er1 >conftest.err
20112
  rm -f conftest.er1
20113
  cat conftest.err >&5
20114 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115
  (exit $ac_status); } &&
20116
         { ac_try='test -z "$ac_c_werror_flag"
20117
                         || test ! -s conftest.err'
20118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119
  (eval $ac_try) 2>&5
20120
  ac_status=$?
20121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122
  (exit $ac_status); }; } &&
20123
         { ac_try='test -s conftest.$ac_objext'
20124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125
  (eval $ac_try) 2>&5
20126
  ac_status=$?
20127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128
  (exit $ac_status); }; }; then
20129 131 jeremybenn
  gdb_cv_struct_lwp=yes
20130
else
20131 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20132 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20133
 
20134 225 jeremybenn
gdb_cv_struct_lwp=no
20135 131 jeremybenn
fi
20136 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20137 131 jeremybenn
fi
20138 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20139
echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20140 131 jeremybenn
if test $gdb_cv_struct_lwp = yes; then
20141
 
20142
cat >>confdefs.h <<\_ACEOF
20143
#define HAVE_STRUCT_LWP 1
20144
_ACEOF
20145
 
20146
fi
20147
 
20148
# See if  degines `struct reg'.
20149 225 jeremybenn
echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20150
echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20151 131 jeremybenn
if test "${gdb_cv_struct_reg+set}" = set; then
20152 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20153 131 jeremybenn
else
20154
  cat >conftest.$ac_ext <<_ACEOF
20155
/* confdefs.h.  */
20156
_ACEOF
20157
cat confdefs.h >>conftest.$ac_ext
20158
cat >>conftest.$ac_ext <<_ACEOF
20159
/* end confdefs.h.  */
20160
#include 
20161
#include 
20162
int
20163
main ()
20164
{
20165
struct reg r;
20166
  ;
20167
  return 0;
20168
}
20169
_ACEOF
20170
rm -f conftest.$ac_objext
20171 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172
  (eval $ac_compile) 2>conftest.er1
20173 131 jeremybenn
  ac_status=$?
20174
  grep -v '^ *+' conftest.er1 >conftest.err
20175
  rm -f conftest.er1
20176
  cat conftest.err >&5
20177 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178
  (exit $ac_status); } &&
20179
         { ac_try='test -z "$ac_c_werror_flag"
20180
                         || test ! -s conftest.err'
20181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182
  (eval $ac_try) 2>&5
20183
  ac_status=$?
20184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185
  (exit $ac_status); }; } &&
20186
         { ac_try='test -s conftest.$ac_objext'
20187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188
  (eval $ac_try) 2>&5
20189
  ac_status=$?
20190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191
  (exit $ac_status); }; }; then
20192 131 jeremybenn
  gdb_cv_struct_reg=yes
20193
else
20194 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20195 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20196
 
20197 225 jeremybenn
gdb_cv_struct_reg=no
20198 131 jeremybenn
fi
20199 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20200 131 jeremybenn
fi
20201 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20202
echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20203 131 jeremybenn
if test $gdb_cv_struct_reg = yes; then
20204
 
20205
cat >>confdefs.h <<\_ACEOF
20206
#define HAVE_STRUCT_REG 1
20207
_ACEOF
20208
 
20209
fi
20210
 
20211
# See if  supports the %fs and %gs i386 segment registers.
20212
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20213 225 jeremybenn
echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20214
echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20215 131 jeremybenn
if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20216 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20217 131 jeremybenn
else
20218
  cat >conftest.$ac_ext <<_ACEOF
20219
/* confdefs.h.  */
20220
_ACEOF
20221
cat confdefs.h >>conftest.$ac_ext
20222
cat >>conftest.$ac_ext <<_ACEOF
20223
/* end confdefs.h.  */
20224
#include 
20225
 
20226
int
20227
main ()
20228
{
20229
static struct reg ac_aggr;
20230
if (ac_aggr.r_fs)
20231
return 0;
20232
  ;
20233
  return 0;
20234
}
20235
_ACEOF
20236
rm -f conftest.$ac_objext
20237 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238
  (eval $ac_compile) 2>conftest.er1
20239 131 jeremybenn
  ac_status=$?
20240
  grep -v '^ *+' conftest.er1 >conftest.err
20241
  rm -f conftest.er1
20242
  cat conftest.err >&5
20243 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244
  (exit $ac_status); } &&
20245
         { ac_try='test -z "$ac_c_werror_flag"
20246
                         || test ! -s conftest.err'
20247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248
  (eval $ac_try) 2>&5
20249
  ac_status=$?
20250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251
  (exit $ac_status); }; } &&
20252
         { ac_try='test -s conftest.$ac_objext'
20253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254
  (eval $ac_try) 2>&5
20255
  ac_status=$?
20256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257
  (exit $ac_status); }; }; then
20258 131 jeremybenn
  ac_cv_member_struct_reg_r_fs=yes
20259
else
20260 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20261 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20262
 
20263 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
20264 131 jeremybenn
/* confdefs.h.  */
20265
_ACEOF
20266
cat confdefs.h >>conftest.$ac_ext
20267
cat >>conftest.$ac_ext <<_ACEOF
20268
/* end confdefs.h.  */
20269
#include 
20270
 
20271
int
20272
main ()
20273
{
20274
static struct reg ac_aggr;
20275
if (sizeof ac_aggr.r_fs)
20276
return 0;
20277
  ;
20278
  return 0;
20279
}
20280
_ACEOF
20281
rm -f conftest.$ac_objext
20282 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20283
  (eval $ac_compile) 2>conftest.er1
20284 131 jeremybenn
  ac_status=$?
20285
  grep -v '^ *+' conftest.er1 >conftest.err
20286
  rm -f conftest.er1
20287
  cat conftest.err >&5
20288 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289
  (exit $ac_status); } &&
20290
         { ac_try='test -z "$ac_c_werror_flag"
20291
                         || test ! -s conftest.err'
20292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293
  (eval $ac_try) 2>&5
20294
  ac_status=$?
20295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296
  (exit $ac_status); }; } &&
20297
         { ac_try='test -s conftest.$ac_objext'
20298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299
  (eval $ac_try) 2>&5
20300
  ac_status=$?
20301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
  (exit $ac_status); }; }; then
20303 131 jeremybenn
  ac_cv_member_struct_reg_r_fs=yes
20304
else
20305 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20306 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20307
 
20308 225 jeremybenn
ac_cv_member_struct_reg_r_fs=no
20309 131 jeremybenn
fi
20310 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20311 131 jeremybenn
fi
20312 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 131 jeremybenn
fi
20314 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20315
echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
20316
if test $ac_cv_member_struct_reg_r_fs = yes; then
20317 131 jeremybenn
 
20318
cat >>confdefs.h <<_ACEOF
20319
#define HAVE_STRUCT_REG_R_FS 1
20320
_ACEOF
20321
 
20322
 
20323
fi
20324 225 jeremybenn
echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20325
echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
20326 131 jeremybenn
if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20327 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20328 131 jeremybenn
else
20329
  cat >conftest.$ac_ext <<_ACEOF
20330
/* confdefs.h.  */
20331
_ACEOF
20332
cat confdefs.h >>conftest.$ac_ext
20333
cat >>conftest.$ac_ext <<_ACEOF
20334
/* end confdefs.h.  */
20335
#include 
20336
 
20337
int
20338
main ()
20339
{
20340
static struct reg ac_aggr;
20341
if (ac_aggr.r_gs)
20342
return 0;
20343
  ;
20344
  return 0;
20345
}
20346
_ACEOF
20347
rm -f conftest.$ac_objext
20348 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349
  (eval $ac_compile) 2>conftest.er1
20350 131 jeremybenn
  ac_status=$?
20351
  grep -v '^ *+' conftest.er1 >conftest.err
20352
  rm -f conftest.er1
20353
  cat conftest.err >&5
20354 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355
  (exit $ac_status); } &&
20356
         { ac_try='test -z "$ac_c_werror_flag"
20357
                         || test ! -s conftest.err'
20358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359
  (eval $ac_try) 2>&5
20360
  ac_status=$?
20361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362
  (exit $ac_status); }; } &&
20363
         { ac_try='test -s conftest.$ac_objext'
20364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365
  (eval $ac_try) 2>&5
20366
  ac_status=$?
20367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368
  (exit $ac_status); }; }; then
20369 131 jeremybenn
  ac_cv_member_struct_reg_r_gs=yes
20370
else
20371 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20372 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20373
 
20374 225 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
20375 131 jeremybenn
/* confdefs.h.  */
20376
_ACEOF
20377
cat confdefs.h >>conftest.$ac_ext
20378
cat >>conftest.$ac_ext <<_ACEOF
20379
/* end confdefs.h.  */
20380
#include 
20381
 
20382
int
20383
main ()
20384
{
20385
static struct reg ac_aggr;
20386
if (sizeof ac_aggr.r_gs)
20387
return 0;
20388
  ;
20389
  return 0;
20390
}
20391
_ACEOF
20392
rm -f conftest.$ac_objext
20393 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394
  (eval $ac_compile) 2>conftest.er1
20395 131 jeremybenn
  ac_status=$?
20396
  grep -v '^ *+' conftest.er1 >conftest.err
20397
  rm -f conftest.er1
20398
  cat conftest.err >&5
20399 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400
  (exit $ac_status); } &&
20401
         { ac_try='test -z "$ac_c_werror_flag"
20402
                         || test ! -s conftest.err'
20403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404
  (eval $ac_try) 2>&5
20405
  ac_status=$?
20406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407
  (exit $ac_status); }; } &&
20408
         { ac_try='test -s conftest.$ac_objext'
20409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410
  (eval $ac_try) 2>&5
20411
  ac_status=$?
20412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413
  (exit $ac_status); }; }; then
20414 131 jeremybenn
  ac_cv_member_struct_reg_r_gs=yes
20415
else
20416 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20417 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20418
 
20419 225 jeremybenn
ac_cv_member_struct_reg_r_gs=no
20420 131 jeremybenn
fi
20421 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422 131 jeremybenn
fi
20423 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20424 131 jeremybenn
fi
20425 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20426
echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
20427
if test $ac_cv_member_struct_reg_r_gs = yes; then
20428 131 jeremybenn
 
20429
cat >>confdefs.h <<_ACEOF
20430
#define HAVE_STRUCT_REG_R_GS 1
20431
_ACEOF
20432
 
20433
 
20434
fi
20435
 
20436
 
20437
# See if  provides the PTRACE_GETREGS request.
20438 225 jeremybenn
echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20439
echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
20440 131 jeremybenn
if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
20441 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20442 131 jeremybenn
else
20443
  cat >conftest.$ac_ext <<_ACEOF
20444
/* confdefs.h.  */
20445
_ACEOF
20446
cat confdefs.h >>conftest.$ac_ext
20447
cat >>conftest.$ac_ext <<_ACEOF
20448
/* end confdefs.h.  */
20449
#include 
20450
int
20451
main ()
20452
{
20453
PTRACE_GETREGS;
20454
  ;
20455
  return 0;
20456
}
20457
_ACEOF
20458
rm -f conftest.$ac_objext
20459 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460
  (eval $ac_compile) 2>conftest.er1
20461 131 jeremybenn
  ac_status=$?
20462
  grep -v '^ *+' conftest.er1 >conftest.err
20463
  rm -f conftest.er1
20464
  cat conftest.err >&5
20465 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466
  (exit $ac_status); } &&
20467
         { ac_try='test -z "$ac_c_werror_flag"
20468
                         || test ! -s conftest.err'
20469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470
  (eval $ac_try) 2>&5
20471
  ac_status=$?
20472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473
  (exit $ac_status); }; } &&
20474
         { ac_try='test -s conftest.$ac_objext'
20475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476
  (eval $ac_try) 2>&5
20477
  ac_status=$?
20478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479
  (exit $ac_status); }; }; then
20480 131 jeremybenn
  gdb_cv_have_ptrace_getregs=yes
20481
else
20482 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20483 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20484
 
20485 225 jeremybenn
gdb_cv_have_ptrace_getregs=no
20486 131 jeremybenn
fi
20487 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20488 131 jeremybenn
fi
20489
 
20490 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20491
echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
20492 131 jeremybenn
if test $gdb_cv_have_ptrace_getregs = yes; then
20493
 
20494
cat >>confdefs.h <<\_ACEOF
20495
#define HAVE_PTRACE_GETREGS 1
20496
_ACEOF
20497
 
20498
fi
20499
 
20500
# See if  provides the PTRACE_GETFPXREGS request.
20501 225 jeremybenn
echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20502
echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
20503 131 jeremybenn
if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
20504 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20505 131 jeremybenn
else
20506
  cat >conftest.$ac_ext <<_ACEOF
20507
/* confdefs.h.  */
20508
_ACEOF
20509
cat confdefs.h >>conftest.$ac_ext
20510
cat >>conftest.$ac_ext <<_ACEOF
20511
/* end confdefs.h.  */
20512
#include 
20513
int
20514
main ()
20515
{
20516
PTRACE_GETFPXREGS;
20517
  ;
20518
  return 0;
20519
}
20520
_ACEOF
20521
rm -f conftest.$ac_objext
20522 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523
  (eval $ac_compile) 2>conftest.er1
20524 131 jeremybenn
  ac_status=$?
20525
  grep -v '^ *+' conftest.er1 >conftest.err
20526
  rm -f conftest.er1
20527
  cat conftest.err >&5
20528 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529
  (exit $ac_status); } &&
20530
         { ac_try='test -z "$ac_c_werror_flag"
20531
                         || test ! -s conftest.err'
20532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533
  (eval $ac_try) 2>&5
20534
  ac_status=$?
20535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
  (exit $ac_status); }; } &&
20537
         { ac_try='test -s conftest.$ac_objext'
20538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539
  (eval $ac_try) 2>&5
20540
  ac_status=$?
20541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542
  (exit $ac_status); }; }; then
20543 131 jeremybenn
  gdb_cv_have_ptrace_getfpxregs=yes
20544
else
20545 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20546 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20547
 
20548 225 jeremybenn
gdb_cv_have_ptrace_getfpxregs=no
20549 131 jeremybenn
fi
20550 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20551 131 jeremybenn
fi
20552
 
20553 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20554
echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
20555 131 jeremybenn
if test $gdb_cv_have_ptrace_getfpxregs = yes; then
20556
 
20557
cat >>confdefs.h <<\_ACEOF
20558
#define HAVE_PTRACE_GETFPXREGS 1
20559
_ACEOF
20560
 
20561
fi
20562
 
20563
# See if  provides the PT_GETDBREGS request.
20564 225 jeremybenn
echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20565
echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
20566 131 jeremybenn
if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
20567 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20568 131 jeremybenn
else
20569
  cat >conftest.$ac_ext <<_ACEOF
20570
/* confdefs.h.  */
20571
_ACEOF
20572
cat confdefs.h >>conftest.$ac_ext
20573
cat >>conftest.$ac_ext <<_ACEOF
20574
/* end confdefs.h.  */
20575
#include 
20576
#include 
20577
int
20578
main ()
20579
{
20580
PT_GETDBREGS;
20581
  ;
20582
  return 0;
20583
}
20584
_ACEOF
20585
rm -f conftest.$ac_objext
20586 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587
  (eval $ac_compile) 2>conftest.er1
20588 131 jeremybenn
  ac_status=$?
20589
  grep -v '^ *+' conftest.er1 >conftest.err
20590
  rm -f conftest.er1
20591
  cat conftest.err >&5
20592 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593
  (exit $ac_status); } &&
20594
         { ac_try='test -z "$ac_c_werror_flag"
20595
                         || test ! -s conftest.err'
20596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597
  (eval $ac_try) 2>&5
20598
  ac_status=$?
20599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600
  (exit $ac_status); }; } &&
20601
         { ac_try='test -s conftest.$ac_objext'
20602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603
  (eval $ac_try) 2>&5
20604
  ac_status=$?
20605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606
  (exit $ac_status); }; }; then
20607 131 jeremybenn
  gdb_cv_have_pt_getdbregs=yes
20608
else
20609 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20610 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20611
 
20612 225 jeremybenn
gdb_cv_have_pt_getdbregs=no
20613 131 jeremybenn
fi
20614 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 131 jeremybenn
fi
20616
 
20617 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20618
echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
20619 131 jeremybenn
if test $gdb_cv_have_pt_getdbregs = yes; then
20620
 
20621
cat >>confdefs.h <<\_ACEOF
20622
#define HAVE_PT_GETDBREGS 1
20623
_ACEOF
20624
 
20625
fi
20626
 
20627
# See if  provides the PT_GETXMMREGS request.
20628 225 jeremybenn
echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20629
echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
20630 131 jeremybenn
if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
20631 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20632 131 jeremybenn
else
20633
  cat >conftest.$ac_ext <<_ACEOF
20634
/* confdefs.h.  */
20635
_ACEOF
20636
cat confdefs.h >>conftest.$ac_ext
20637
cat >>conftest.$ac_ext <<_ACEOF
20638
/* end confdefs.h.  */
20639
#include 
20640
#include 
20641
int
20642
main ()
20643
{
20644
PT_GETXMMREGS;
20645
  ;
20646
  return 0;
20647
}
20648
_ACEOF
20649
rm -f conftest.$ac_objext
20650 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651
  (eval $ac_compile) 2>conftest.er1
20652 131 jeremybenn
  ac_status=$?
20653
  grep -v '^ *+' conftest.er1 >conftest.err
20654
  rm -f conftest.er1
20655
  cat conftest.err >&5
20656 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657
  (exit $ac_status); } &&
20658
         { ac_try='test -z "$ac_c_werror_flag"
20659
                         || test ! -s conftest.err'
20660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661
  (eval $ac_try) 2>&5
20662
  ac_status=$?
20663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664
  (exit $ac_status); }; } &&
20665
         { ac_try='test -s conftest.$ac_objext'
20666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667
  (eval $ac_try) 2>&5
20668
  ac_status=$?
20669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670
  (exit $ac_status); }; }; then
20671 131 jeremybenn
  gdb_cv_have_pt_getxmmregs=yes
20672
else
20673 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20674 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20675
 
20676 225 jeremybenn
gdb_cv_have_pt_getxmmregs=no
20677 131 jeremybenn
fi
20678 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 131 jeremybenn
fi
20680
 
20681 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20682
echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
20683 131 jeremybenn
if test $gdb_cv_have_pt_getxmmregs = yes; then
20684
 
20685
cat >>confdefs.h <<\_ACEOF
20686
#define HAVE_PT_GETXMMREGS 1
20687
_ACEOF
20688
 
20689
fi
20690
 
20691
# Detect which type of /proc is in use, such as for Unixware or Solaris.
20692
 
20693
if test "${target}" = "${host}"; then
20694
  case "${host}" in
20695
  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
20696
 
20697
cat >>confdefs.h <<\_ACEOF
20698
#define NEW_PROC_API 1
20699
_ACEOF
20700
 
20701
      ;;
20702
  *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
20703
 
20704
cat >>confdefs.h <<\_ACEOF
20705
#define NEW_PROC_API 1
20706
_ACEOF
20707
 
20708
      ;;
20709
  mips-sgi-irix5*)
20710
      # Work around  needing _KMEMUSER problem on IRIX 5.
20711
 
20712
cat >>confdefs.h <<\_ACEOF
20713
#define _KMEMUSER 1
20714
_ACEOF
20715
 
20716
      ;;
20717
  esac
20718
fi
20719
 
20720
if test "$ac_cv_header_sys_procfs_h" = yes; then
20721 225 jeremybenn
  echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
20722
echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
20723 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
20724 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20725 131 jeremybenn
else
20726
  cat >conftest.$ac_ext <<_ACEOF
20727
/* confdefs.h.  */
20728
_ACEOF
20729
cat confdefs.h >>conftest.$ac_ext
20730
cat >>conftest.$ac_ext <<_ACEOF
20731
/* end confdefs.h.  */
20732
 
20733
#define _SYSCALL32
20734
#include 
20735
int
20736
main ()
20737
{
20738
pstatus_t avar
20739
  ;
20740
  return 0;
20741
}
20742
_ACEOF
20743
rm -f conftest.$ac_objext
20744 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745
  (eval $ac_compile) 2>conftest.er1
20746 131 jeremybenn
  ac_status=$?
20747
  grep -v '^ *+' conftest.er1 >conftest.err
20748
  rm -f conftest.er1
20749
  cat conftest.err >&5
20750 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751
  (exit $ac_status); } &&
20752
         { ac_try='test -z "$ac_c_werror_flag"
20753
                         || test ! -s conftest.err'
20754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755
  (eval $ac_try) 2>&5
20756
  ac_status=$?
20757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758
  (exit $ac_status); }; } &&
20759
         { ac_try='test -s conftest.$ac_objext'
20760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761
  (eval $ac_try) 2>&5
20762
  ac_status=$?
20763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764
  (exit $ac_status); }; }; then
20765 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
20766
else
20767 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20768 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20769
 
20770 225 jeremybenn
bfd_cv_have_sys_procfs_type_pstatus_t=no
20771 131 jeremybenn
 
20772
fi
20773 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20774 131 jeremybenn
fi
20775
 
20776
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
20777
 
20778
cat >>confdefs.h <<\_ACEOF
20779
#define HAVE_PSTATUS_T 1
20780
_ACEOF
20781
 
20782
 fi
20783 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20784
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
20785 131 jeremybenn
 
20786 225 jeremybenn
  echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
20787
echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
20788 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20789 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20790 131 jeremybenn
else
20791
  cat >conftest.$ac_ext <<_ACEOF
20792
/* confdefs.h.  */
20793
_ACEOF
20794
cat confdefs.h >>conftest.$ac_ext
20795
cat >>conftest.$ac_ext <<_ACEOF
20796
/* end confdefs.h.  */
20797
 
20798
#define _SYSCALL32
20799
#include 
20800
int
20801
main ()
20802
{
20803
prrun_t avar
20804
  ;
20805
  return 0;
20806
}
20807
_ACEOF
20808
rm -f conftest.$ac_objext
20809 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810
  (eval $ac_compile) 2>conftest.er1
20811 131 jeremybenn
  ac_status=$?
20812
  grep -v '^ *+' conftest.er1 >conftest.err
20813
  rm -f conftest.er1
20814
  cat conftest.err >&5
20815 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816
  (exit $ac_status); } &&
20817
         { ac_try='test -z "$ac_c_werror_flag"
20818
                         || test ! -s conftest.err'
20819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820
  (eval $ac_try) 2>&5
20821
  ac_status=$?
20822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823
  (exit $ac_status); }; } &&
20824
         { ac_try='test -s conftest.$ac_objext'
20825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826
  (eval $ac_try) 2>&5
20827
  ac_status=$?
20828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829
  (exit $ac_status); }; }; then
20830 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prrun_t=yes
20831
else
20832 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20833 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20834
 
20835 225 jeremybenn
bfd_cv_have_sys_procfs_type_prrun_t=no
20836 131 jeremybenn
 
20837
fi
20838 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839 131 jeremybenn
fi
20840
 
20841
 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
20842
 
20843
cat >>confdefs.h <<\_ACEOF
20844
#define HAVE_PRRUN_T 1
20845
_ACEOF
20846
 
20847
 fi
20848 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20849
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
20850 131 jeremybenn
 
20851 225 jeremybenn
  echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20852
echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
20853 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20854 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20855 131 jeremybenn
else
20856
  cat >conftest.$ac_ext <<_ACEOF
20857
/* confdefs.h.  */
20858
_ACEOF
20859
cat confdefs.h >>conftest.$ac_ext
20860
cat >>conftest.$ac_ext <<_ACEOF
20861
/* end confdefs.h.  */
20862
 
20863
#define _SYSCALL32
20864
#include 
20865
int
20866
main ()
20867
{
20868
gregset_t avar
20869
  ;
20870
  return 0;
20871
}
20872
_ACEOF
20873
rm -f conftest.$ac_objext
20874 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875
  (eval $ac_compile) 2>conftest.er1
20876 131 jeremybenn
  ac_status=$?
20877
  grep -v '^ *+' conftest.er1 >conftest.err
20878
  rm -f conftest.er1
20879
  cat conftest.err >&5
20880 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881
  (exit $ac_status); } &&
20882
         { ac_try='test -z "$ac_c_werror_flag"
20883
                         || test ! -s conftest.err'
20884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885
  (eval $ac_try) 2>&5
20886
  ac_status=$?
20887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888
  (exit $ac_status); }; } &&
20889
         { ac_try='test -s conftest.$ac_objext'
20890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891
  (eval $ac_try) 2>&5
20892
  ac_status=$?
20893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894
  (exit $ac_status); }; }; then
20895 131 jeremybenn
  bfd_cv_have_sys_procfs_type_gregset_t=yes
20896
else
20897 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20898 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20899
 
20900 225 jeremybenn
bfd_cv_have_sys_procfs_type_gregset_t=no
20901 131 jeremybenn
 
20902
fi
20903 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20904 131 jeremybenn
fi
20905
 
20906
 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
20907
 
20908
cat >>confdefs.h <<\_ACEOF
20909
#define HAVE_GREGSET_T 1
20910
_ACEOF
20911
 
20912
 fi
20913 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20914
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
20915 131 jeremybenn
 
20916 225 jeremybenn
  echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20917
echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
20918 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20919 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20920 131 jeremybenn
else
20921
  cat >conftest.$ac_ext <<_ACEOF
20922
/* confdefs.h.  */
20923
_ACEOF
20924
cat confdefs.h >>conftest.$ac_ext
20925
cat >>conftest.$ac_ext <<_ACEOF
20926
/* end confdefs.h.  */
20927
 
20928
#define _SYSCALL32
20929
#include 
20930
int
20931
main ()
20932
{
20933
fpregset_t avar
20934
  ;
20935
  return 0;
20936
}
20937
_ACEOF
20938
rm -f conftest.$ac_objext
20939 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940
  (eval $ac_compile) 2>conftest.er1
20941 131 jeremybenn
  ac_status=$?
20942
  grep -v '^ *+' conftest.er1 >conftest.err
20943
  rm -f conftest.er1
20944
  cat conftest.err >&5
20945 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946
  (exit $ac_status); } &&
20947
         { ac_try='test -z "$ac_c_werror_flag"
20948
                         || test ! -s conftest.err'
20949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950
  (eval $ac_try) 2>&5
20951
  ac_status=$?
20952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953
  (exit $ac_status); }; } &&
20954
         { ac_try='test -s conftest.$ac_objext'
20955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956
  (eval $ac_try) 2>&5
20957
  ac_status=$?
20958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959
  (exit $ac_status); }; }; then
20960 131 jeremybenn
  bfd_cv_have_sys_procfs_type_fpregset_t=yes
20961
else
20962 225 jeremybenn
  echo "$as_me: failed program was:" >&5
20963 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20964
 
20965 225 jeremybenn
bfd_cv_have_sys_procfs_type_fpregset_t=no
20966 131 jeremybenn
 
20967
fi
20968 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20969 131 jeremybenn
fi
20970
 
20971
 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
20972
 
20973
cat >>confdefs.h <<\_ACEOF
20974
#define HAVE_FPREGSET_T 1
20975
_ACEOF
20976
 
20977
 fi
20978 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20979
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
20980 131 jeremybenn
 
20981 225 jeremybenn
  echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20982
echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
20983 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20984 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
20985 131 jeremybenn
else
20986
  cat >conftest.$ac_ext <<_ACEOF
20987
/* confdefs.h.  */
20988
_ACEOF
20989
cat confdefs.h >>conftest.$ac_ext
20990
cat >>conftest.$ac_ext <<_ACEOF
20991
/* end confdefs.h.  */
20992
 
20993
#define _SYSCALL32
20994
#include 
20995
int
20996
main ()
20997
{
20998
prgregset_t avar
20999
  ;
21000
  return 0;
21001
}
21002
_ACEOF
21003
rm -f conftest.$ac_objext
21004 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005
  (eval $ac_compile) 2>conftest.er1
21006 131 jeremybenn
  ac_status=$?
21007
  grep -v '^ *+' conftest.er1 >conftest.err
21008
  rm -f conftest.er1
21009
  cat conftest.err >&5
21010 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011
  (exit $ac_status); } &&
21012
         { ac_try='test -z "$ac_c_werror_flag"
21013
                         || test ! -s conftest.err'
21014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015
  (eval $ac_try) 2>&5
21016
  ac_status=$?
21017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018
  (exit $ac_status); }; } &&
21019
         { ac_try='test -s conftest.$ac_objext'
21020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021
  (eval $ac_try) 2>&5
21022
  ac_status=$?
21023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024
  (exit $ac_status); }; }; then
21025 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prgregset_t=yes
21026
else
21027 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21028 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21029
 
21030 225 jeremybenn
bfd_cv_have_sys_procfs_type_prgregset_t=no
21031 131 jeremybenn
 
21032
fi
21033 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034 131 jeremybenn
fi
21035
 
21036
 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21037
 
21038
cat >>confdefs.h <<\_ACEOF
21039
#define HAVE_PRGREGSET_T 1
21040
_ACEOF
21041
 
21042
 fi
21043 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21044
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21045 131 jeremybenn
 
21046 225 jeremybenn
  echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21047
echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21048 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21049 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21050 131 jeremybenn
else
21051
  cat >conftest.$ac_ext <<_ACEOF
21052
/* confdefs.h.  */
21053
_ACEOF
21054
cat confdefs.h >>conftest.$ac_ext
21055
cat >>conftest.$ac_ext <<_ACEOF
21056
/* end confdefs.h.  */
21057
 
21058
#define _SYSCALL32
21059
#include 
21060
int
21061
main ()
21062
{
21063
prfpregset_t avar
21064
  ;
21065
  return 0;
21066
}
21067
_ACEOF
21068
rm -f conftest.$ac_objext
21069 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21070
  (eval $ac_compile) 2>conftest.er1
21071 131 jeremybenn
  ac_status=$?
21072
  grep -v '^ *+' conftest.er1 >conftest.err
21073
  rm -f conftest.er1
21074
  cat conftest.err >&5
21075 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076
  (exit $ac_status); } &&
21077
         { ac_try='test -z "$ac_c_werror_flag"
21078
                         || test ! -s conftest.err'
21079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080
  (eval $ac_try) 2>&5
21081
  ac_status=$?
21082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083
  (exit $ac_status); }; } &&
21084
         { ac_try='test -s conftest.$ac_objext'
21085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086
  (eval $ac_try) 2>&5
21087
  ac_status=$?
21088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089
  (exit $ac_status); }; }; then
21090 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21091
else
21092 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21093 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21094
 
21095 225 jeremybenn
bfd_cv_have_sys_procfs_type_prfpregset_t=no
21096 131 jeremybenn
 
21097
fi
21098 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21099 131 jeremybenn
fi
21100
 
21101
 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21102
 
21103
cat >>confdefs.h <<\_ACEOF
21104
#define HAVE_PRFPREGSET_T 1
21105
_ACEOF
21106
 
21107
 fi
21108 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21109
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21110 131 jeremybenn
 
21111 225 jeremybenn
  echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21112
echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21113 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21114 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21115 131 jeremybenn
else
21116
  cat >conftest.$ac_ext <<_ACEOF
21117
/* confdefs.h.  */
21118
_ACEOF
21119
cat confdefs.h >>conftest.$ac_ext
21120
cat >>conftest.$ac_ext <<_ACEOF
21121
/* end confdefs.h.  */
21122
 
21123
#define _SYSCALL32
21124
#include 
21125
int
21126
main ()
21127
{
21128
prgregset32_t avar
21129
  ;
21130
  return 0;
21131
}
21132
_ACEOF
21133
rm -f conftest.$ac_objext
21134 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21135
  (eval $ac_compile) 2>conftest.er1
21136 131 jeremybenn
  ac_status=$?
21137
  grep -v '^ *+' conftest.er1 >conftest.err
21138
  rm -f conftest.er1
21139
  cat conftest.err >&5
21140 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141
  (exit $ac_status); } &&
21142
         { ac_try='test -z "$ac_c_werror_flag"
21143
                         || test ! -s conftest.err'
21144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145
  (eval $ac_try) 2>&5
21146
  ac_status=$?
21147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148
  (exit $ac_status); }; } &&
21149
         { ac_try='test -s conftest.$ac_objext'
21150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151
  (eval $ac_try) 2>&5
21152
  ac_status=$?
21153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154
  (exit $ac_status); }; }; then
21155 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21156
else
21157 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21158 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21159
 
21160 225 jeremybenn
bfd_cv_have_sys_procfs_type_prgregset32_t=no
21161 131 jeremybenn
 
21162
fi
21163 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21164 131 jeremybenn
fi
21165
 
21166
 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21167
 
21168
cat >>confdefs.h <<\_ACEOF
21169
#define HAVE_PRGREGSET32_T 1
21170
_ACEOF
21171
 
21172
 fi
21173 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21174
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21175 131 jeremybenn
 
21176 225 jeremybenn
  echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21177
echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21178 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21179 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21180 131 jeremybenn
else
21181
  cat >conftest.$ac_ext <<_ACEOF
21182
/* confdefs.h.  */
21183
_ACEOF
21184
cat confdefs.h >>conftest.$ac_ext
21185
cat >>conftest.$ac_ext <<_ACEOF
21186
/* end confdefs.h.  */
21187
 
21188
#define _SYSCALL32
21189
#include 
21190
int
21191
main ()
21192
{
21193
prfpregset32_t avar
21194
  ;
21195
  return 0;
21196
}
21197
_ACEOF
21198
rm -f conftest.$ac_objext
21199 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200
  (eval $ac_compile) 2>conftest.er1
21201 131 jeremybenn
  ac_status=$?
21202
  grep -v '^ *+' conftest.er1 >conftest.err
21203
  rm -f conftest.er1
21204
  cat conftest.err >&5
21205 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206
  (exit $ac_status); } &&
21207
         { ac_try='test -z "$ac_c_werror_flag"
21208
                         || test ! -s conftest.err'
21209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210
  (eval $ac_try) 2>&5
21211
  ac_status=$?
21212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213
  (exit $ac_status); }; } &&
21214
         { ac_try='test -s conftest.$ac_objext'
21215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216
  (eval $ac_try) 2>&5
21217
  ac_status=$?
21218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219
  (exit $ac_status); }; }; then
21220 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21221
else
21222 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21223 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21224
 
21225 225 jeremybenn
bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21226 131 jeremybenn
 
21227
fi
21228 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 131 jeremybenn
fi
21230
 
21231
 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21232
 
21233
cat >>confdefs.h <<\_ACEOF
21234
#define HAVE_PRFPREGSET32_T 1
21235
_ACEOF
21236
 
21237
 fi
21238 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21239
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21240 131 jeremybenn
 
21241 225 jeremybenn
  echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21242
echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21243 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21244 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21245 131 jeremybenn
else
21246
  cat >conftest.$ac_ext <<_ACEOF
21247
/* confdefs.h.  */
21248
_ACEOF
21249
cat confdefs.h >>conftest.$ac_ext
21250
cat >>conftest.$ac_ext <<_ACEOF
21251
/* end confdefs.h.  */
21252
 
21253
#define _SYSCALL32
21254
#include 
21255
int
21256
main ()
21257
{
21258
lwpid_t avar
21259
  ;
21260
  return 0;
21261
}
21262
_ACEOF
21263
rm -f conftest.$ac_objext
21264 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265
  (eval $ac_compile) 2>conftest.er1
21266 131 jeremybenn
  ac_status=$?
21267
  grep -v '^ *+' conftest.er1 >conftest.err
21268
  rm -f conftest.er1
21269
  cat conftest.err >&5
21270 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271
  (exit $ac_status); } &&
21272
         { ac_try='test -z "$ac_c_werror_flag"
21273
                         || test ! -s conftest.err'
21274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275
  (eval $ac_try) 2>&5
21276
  ac_status=$?
21277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278
  (exit $ac_status); }; } &&
21279
         { ac_try='test -s conftest.$ac_objext'
21280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281
  (eval $ac_try) 2>&5
21282
  ac_status=$?
21283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284
  (exit $ac_status); }; }; then
21285 131 jeremybenn
  bfd_cv_have_sys_procfs_type_lwpid_t=yes
21286
else
21287 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21288 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21289
 
21290 225 jeremybenn
bfd_cv_have_sys_procfs_type_lwpid_t=no
21291 131 jeremybenn
 
21292
fi
21293 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21294 131 jeremybenn
fi
21295
 
21296
 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21297
 
21298
cat >>confdefs.h <<\_ACEOF
21299
#define HAVE_LWPID_T 1
21300
_ACEOF
21301
 
21302
 fi
21303 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21304
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
21305 131 jeremybenn
 
21306 225 jeremybenn
  echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21307
echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
21308 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21309 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21310 131 jeremybenn
else
21311
  cat >conftest.$ac_ext <<_ACEOF
21312
/* confdefs.h.  */
21313
_ACEOF
21314
cat confdefs.h >>conftest.$ac_ext
21315
cat >>conftest.$ac_ext <<_ACEOF
21316
/* end confdefs.h.  */
21317
 
21318
#define _SYSCALL32
21319
#include 
21320
int
21321
main ()
21322
{
21323
psaddr_t avar
21324
  ;
21325
  return 0;
21326
}
21327
_ACEOF
21328
rm -f conftest.$ac_objext
21329 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21330
  (eval $ac_compile) 2>conftest.er1
21331 131 jeremybenn
  ac_status=$?
21332
  grep -v '^ *+' conftest.er1 >conftest.err
21333
  rm -f conftest.er1
21334
  cat conftest.err >&5
21335 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336
  (exit $ac_status); } &&
21337
         { ac_try='test -z "$ac_c_werror_flag"
21338
                         || test ! -s conftest.err'
21339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340
  (eval $ac_try) 2>&5
21341
  ac_status=$?
21342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343
  (exit $ac_status); }; } &&
21344
         { ac_try='test -s conftest.$ac_objext'
21345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346
  (eval $ac_try) 2>&5
21347
  ac_status=$?
21348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349
  (exit $ac_status); }; }; then
21350 131 jeremybenn
  bfd_cv_have_sys_procfs_type_psaddr_t=yes
21351
else
21352 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21353 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21354
 
21355 225 jeremybenn
bfd_cv_have_sys_procfs_type_psaddr_t=no
21356 131 jeremybenn
 
21357
fi
21358 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359 131 jeremybenn
fi
21360
 
21361
 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21362
 
21363
cat >>confdefs.h <<\_ACEOF
21364
#define HAVE_PSADDR_T 1
21365
_ACEOF
21366
 
21367
 fi
21368 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21369
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
21370 131 jeremybenn
 
21371 225 jeremybenn
  echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21372
echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
21373 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21374 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21375 131 jeremybenn
else
21376
  cat >conftest.$ac_ext <<_ACEOF
21377
/* confdefs.h.  */
21378
_ACEOF
21379
cat confdefs.h >>conftest.$ac_ext
21380
cat >>conftest.$ac_ext <<_ACEOF
21381
/* end confdefs.h.  */
21382
 
21383
#define _SYSCALL32
21384
#include 
21385
int
21386
main ()
21387
{
21388
prsysent_t avar
21389
  ;
21390
  return 0;
21391
}
21392
_ACEOF
21393
rm -f conftest.$ac_objext
21394 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21395
  (eval $ac_compile) 2>conftest.er1
21396 131 jeremybenn
  ac_status=$?
21397
  grep -v '^ *+' conftest.er1 >conftest.err
21398
  rm -f conftest.er1
21399
  cat conftest.err >&5
21400 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401
  (exit $ac_status); } &&
21402
         { ac_try='test -z "$ac_c_werror_flag"
21403
                         || test ! -s conftest.err'
21404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405
  (eval $ac_try) 2>&5
21406
  ac_status=$?
21407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408
  (exit $ac_status); }; } &&
21409
         { ac_try='test -s conftest.$ac_objext'
21410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411
  (eval $ac_try) 2>&5
21412
  ac_status=$?
21413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414
  (exit $ac_status); }; }; then
21415 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prsysent_t=yes
21416
else
21417 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21418 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21419
 
21420 225 jeremybenn
bfd_cv_have_sys_procfs_type_prsysent_t=no
21421 131 jeremybenn
 
21422
fi
21423 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21424 131 jeremybenn
fi
21425
 
21426
 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
21427
 
21428
cat >>confdefs.h <<\_ACEOF
21429
#define HAVE_PRSYSENT_T 1
21430
_ACEOF
21431
 
21432
 fi
21433 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21434
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
21435 131 jeremybenn
 
21436 225 jeremybenn
  echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21437
echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
21438 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21439 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21440 131 jeremybenn
else
21441
  cat >conftest.$ac_ext <<_ACEOF
21442
/* confdefs.h.  */
21443
_ACEOF
21444
cat confdefs.h >>conftest.$ac_ext
21445
cat >>conftest.$ac_ext <<_ACEOF
21446
/* end confdefs.h.  */
21447
 
21448
#define _SYSCALL32
21449
#include 
21450
int
21451
main ()
21452
{
21453
pr_sigset_t avar
21454
  ;
21455
  return 0;
21456
}
21457
_ACEOF
21458
rm -f conftest.$ac_objext
21459 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21460
  (eval $ac_compile) 2>conftest.er1
21461 131 jeremybenn
  ac_status=$?
21462
  grep -v '^ *+' conftest.er1 >conftest.err
21463
  rm -f conftest.er1
21464
  cat conftest.err >&5
21465 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466
  (exit $ac_status); } &&
21467
         { ac_try='test -z "$ac_c_werror_flag"
21468
                         || test ! -s conftest.err'
21469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470
  (eval $ac_try) 2>&5
21471
  ac_status=$?
21472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473
  (exit $ac_status); }; } &&
21474
         { ac_try='test -s conftest.$ac_objext'
21475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476
  (eval $ac_try) 2>&5
21477
  ac_status=$?
21478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479
  (exit $ac_status); }; }; then
21480 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
21481
else
21482 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21483 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21484
 
21485 225 jeremybenn
bfd_cv_have_sys_procfs_type_pr_sigset_t=no
21486 131 jeremybenn
 
21487
fi
21488 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 131 jeremybenn
fi
21490
 
21491
 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
21492
 
21493
cat >>confdefs.h <<\_ACEOF
21494
#define HAVE_PR_SIGSET_T 1
21495
_ACEOF
21496
 
21497
 fi
21498 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21499
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
21500 131 jeremybenn
 
21501 225 jeremybenn
  echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21502
echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
21503 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21504 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21505 131 jeremybenn
else
21506
  cat >conftest.$ac_ext <<_ACEOF
21507
/* confdefs.h.  */
21508
_ACEOF
21509
cat confdefs.h >>conftest.$ac_ext
21510
cat >>conftest.$ac_ext <<_ACEOF
21511
/* end confdefs.h.  */
21512
 
21513
#define _SYSCALL32
21514
#include 
21515
int
21516
main ()
21517
{
21518
pr_sigaction64_t avar
21519
  ;
21520
  return 0;
21521
}
21522
_ACEOF
21523
rm -f conftest.$ac_objext
21524 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525
  (eval $ac_compile) 2>conftest.er1
21526 131 jeremybenn
  ac_status=$?
21527
  grep -v '^ *+' conftest.er1 >conftest.err
21528
  rm -f conftest.er1
21529
  cat conftest.err >&5
21530 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531
  (exit $ac_status); } &&
21532
         { ac_try='test -z "$ac_c_werror_flag"
21533
                         || test ! -s conftest.err'
21534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535
  (eval $ac_try) 2>&5
21536
  ac_status=$?
21537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538
  (exit $ac_status); }; } &&
21539
         { ac_try='test -s conftest.$ac_objext'
21540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541
  (eval $ac_try) 2>&5
21542
  ac_status=$?
21543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544
  (exit $ac_status); }; }; then
21545 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
21546
else
21547 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21548 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21549
 
21550 225 jeremybenn
bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
21551 131 jeremybenn
 
21552
fi
21553 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21554 131 jeremybenn
fi
21555
 
21556
 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
21557
 
21558
cat >>confdefs.h <<\_ACEOF
21559
#define HAVE_PR_SIGACTION64_T 1
21560
_ACEOF
21561
 
21562
 fi
21563 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21564
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
21565 131 jeremybenn
 
21566 225 jeremybenn
  echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21567
echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
21568 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21569 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21570 131 jeremybenn
else
21571
  cat >conftest.$ac_ext <<_ACEOF
21572
/* confdefs.h.  */
21573
_ACEOF
21574
cat confdefs.h >>conftest.$ac_ext
21575
cat >>conftest.$ac_ext <<_ACEOF
21576
/* end confdefs.h.  */
21577
 
21578
#define _SYSCALL32
21579
#include 
21580
int
21581
main ()
21582
{
21583
pr_siginfo64_t avar
21584
  ;
21585
  return 0;
21586
}
21587
_ACEOF
21588
rm -f conftest.$ac_objext
21589 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590
  (eval $ac_compile) 2>conftest.er1
21591 131 jeremybenn
  ac_status=$?
21592
  grep -v '^ *+' conftest.er1 >conftest.err
21593
  rm -f conftest.er1
21594
  cat conftest.err >&5
21595 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596
  (exit $ac_status); } &&
21597
         { ac_try='test -z "$ac_c_werror_flag"
21598
                         || test ! -s conftest.err'
21599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600
  (eval $ac_try) 2>&5
21601
  ac_status=$?
21602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603
  (exit $ac_status); }; } &&
21604
         { ac_try='test -s conftest.$ac_objext'
21605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606
  (eval $ac_try) 2>&5
21607
  ac_status=$?
21608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609
  (exit $ac_status); }; }; then
21610 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21611
else
21612 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21613 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21614
 
21615 225 jeremybenn
bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
21616 131 jeremybenn
 
21617
fi
21618 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21619 131 jeremybenn
fi
21620
 
21621
 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
21622
 
21623
cat >>confdefs.h <<\_ACEOF
21624
#define HAVE_PR_SIGINFO64_T 1
21625
_ACEOF
21626
 
21627
 fi
21628 225 jeremybenn
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21629
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
21630 131 jeremybenn
 
21631
 
21632
 
21633
 
21634
 
21635
  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21636 225 jeremybenn
    echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21637
echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
21638 131 jeremybenn
    if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21639 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21640 131 jeremybenn
else
21641
  if test "$cross_compiling" = yes; then
21642
  gdb_cv_prfpregset_t_broken=yes
21643
else
21644
  cat >conftest.$ac_ext <<_ACEOF
21645
/* confdefs.h.  */
21646
_ACEOF
21647
cat confdefs.h >>conftest.$ac_ext
21648
cat >>conftest.$ac_ext <<_ACEOF
21649
/* end confdefs.h.  */
21650
#include 
21651
       int main ()
21652
       {
21653
         if (sizeof (prfpregset_t) == sizeof (void *))
21654
           return 1;
21655
         return 0;
21656
       }
21657
_ACEOF
21658
rm -f conftest$ac_exeext
21659 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660
  (eval $ac_link) 2>&5
21661 131 jeremybenn
  ac_status=$?
21662 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21664 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665
  (eval $ac_try) 2>&5
21666 131 jeremybenn
  ac_status=$?
21667 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 131 jeremybenn
  (exit $ac_status); }; }; then
21669
  gdb_cv_prfpregset_t_broken=no
21670
else
21671 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
21672
echo "$as_me: failed program was:" >&5
21673 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21674
 
21675
( exit $ac_status )
21676
gdb_cv_prfpregset_t_broken=yes
21677
fi
21678 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 131 jeremybenn
fi
21680
fi
21681
 
21682 225 jeremybenn
    echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21683
echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
21684 131 jeremybenn
    if test $gdb_cv_prfpregset_t_broken = yes; then
21685
 
21686
cat >>confdefs.h <<\_ACEOF
21687
#define PRFPREGSET_T_BROKEN 1
21688
_ACEOF
21689
 
21690
    fi
21691
  fi
21692
 
21693
 
21694 225 jeremybenn
  echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21695
echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
21696 131 jeremybenn
  if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21697 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21698 131 jeremybenn
else
21699
  cat >conftest.$ac_ext <<_ACEOF
21700
/* confdefs.h.  */
21701
_ACEOF
21702
cat confdefs.h >>conftest.$ac_ext
21703
cat >>conftest.$ac_ext <<_ACEOF
21704
/* end confdefs.h.  */
21705
#include 
21706
#include 
21707
#include 
21708
 
21709
int
21710
main ()
21711
{
21712
 
21713
    int dummy;;
21714
    dummy = ioctl(0, PIOCSET, &dummy);
21715
 
21716
  ;
21717
  return 0;
21718
}
21719
_ACEOF
21720
rm -f conftest.$ac_objext
21721 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21722
  (eval $ac_compile) 2>conftest.er1
21723 131 jeremybenn
  ac_status=$?
21724
  grep -v '^ *+' conftest.er1 >conftest.err
21725
  rm -f conftest.er1
21726
  cat conftest.err >&5
21727 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728
  (exit $ac_status); } &&
21729
         { ac_try='test -z "$ac_c_werror_flag"
21730
                         || test ! -s conftest.err'
21731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732
  (eval $ac_try) 2>&5
21733
  ac_status=$?
21734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735
  (exit $ac_status); }; } &&
21736
         { ac_try='test -s conftest.$ac_objext'
21737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738
  (eval $ac_try) 2>&5
21739
  ac_status=$?
21740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741
  (exit $ac_status); }; }; then
21742 131 jeremybenn
  gdb_cv_have_procfs_piocset=yes
21743
else
21744 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21745 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21746
 
21747 225 jeremybenn
gdb_cv_have_procfs_piocset=no
21748 131 jeremybenn
fi
21749 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21750 131 jeremybenn
fi
21751
 
21752 225 jeremybenn
  echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
21753
echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
21754 131 jeremybenn
  if test $gdb_cv_have_procfs_piocset = yes; then
21755
 
21756
cat >>confdefs.h <<\_ACEOF
21757
#define HAVE_PROCFS_PIOCSET 1
21758
_ACEOF
21759
 
21760
  fi
21761
fi
21762
 
21763
if test ${host} = ${target} ; then
21764
 
21765 225 jeremybenn
  echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
21766
echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
21767 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
21768 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21769 131 jeremybenn
else
21770
  cat >conftest.$ac_ext <<_ACEOF
21771
/* confdefs.h.  */
21772
_ACEOF
21773
cat confdefs.h >>conftest.$ac_ext
21774
cat >>conftest.$ac_ext <<_ACEOF
21775
/* end confdefs.h.  */
21776
#include 
21777
int
21778
main ()
21779
{
21780
struct link_map lm; (void) lm.l_addr;
21781
  ;
21782
  return 0;
21783
}
21784
_ACEOF
21785
rm -f conftest.$ac_objext
21786 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21787
  (eval $ac_compile) 2>conftest.er1
21788 131 jeremybenn
  ac_status=$?
21789
  grep -v '^ *+' conftest.er1 >conftest.err
21790
  rm -f conftest.er1
21791
  cat conftest.err >&5
21792 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793
  (exit $ac_status); } &&
21794
         { ac_try='test -z "$ac_c_werror_flag"
21795
                         || test ! -s conftest.err'
21796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797
  (eval $ac_try) 2>&5
21798
  ac_status=$?
21799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800
  (exit $ac_status); }; } &&
21801
         { ac_try='test -s conftest.$ac_objext'
21802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803
  (eval $ac_try) 2>&5
21804
  ac_status=$?
21805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806
  (exit $ac_status); }; }; then
21807 131 jeremybenn
  gdb_cv_have_struct_link_map_with_l_members=yes
21808
else
21809 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21810 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21811
 
21812 225 jeremybenn
gdb_cv_have_struct_link_map_with_l_members=no
21813 131 jeremybenn
fi
21814 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21815 131 jeremybenn
fi
21816
 
21817 225 jeremybenn
  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21818
echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
21819 131 jeremybenn
  if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
21820
 
21821
cat >>confdefs.h <<\_ACEOF
21822
#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
21823
_ACEOF
21824
 
21825
  fi
21826
 
21827
 
21828 225 jeremybenn
  echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21829
echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
21830 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21831 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21832 131 jeremybenn
else
21833
  cat >conftest.$ac_ext <<_ACEOF
21834
/* confdefs.h.  */
21835
_ACEOF
21836
cat confdefs.h >>conftest.$ac_ext
21837
cat >>conftest.$ac_ext <<_ACEOF
21838
/* end confdefs.h.  */
21839
#include 
21840
#include 
21841
int
21842
main ()
21843
{
21844
struct link_map lm; (void) lm.lm_addr;
21845
  ;
21846
  return 0;
21847
}
21848
_ACEOF
21849
rm -f conftest.$ac_objext
21850 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21851
  (eval $ac_compile) 2>conftest.er1
21852 131 jeremybenn
  ac_status=$?
21853
  grep -v '^ *+' conftest.er1 >conftest.err
21854
  rm -f conftest.er1
21855
  cat conftest.err >&5
21856 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857
  (exit $ac_status); } &&
21858
         { ac_try='test -z "$ac_c_werror_flag"
21859
                         || test ! -s conftest.err'
21860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861
  (eval $ac_try) 2>&5
21862
  ac_status=$?
21863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864
  (exit $ac_status); }; } &&
21865
         { ac_try='test -s conftest.$ac_objext'
21866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867
  (eval $ac_try) 2>&5
21868
  ac_status=$?
21869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870
  (exit $ac_status); }; }; then
21871 131 jeremybenn
  gdb_cv_have_struct_link_map_with_lm_members=yes
21872
else
21873 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21874 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21875
 
21876 225 jeremybenn
gdb_cv_have_struct_link_map_with_lm_members=no
21877 131 jeremybenn
fi
21878 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21879 131 jeremybenn
fi
21880
 
21881 225 jeremybenn
  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21882
echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
21883 131 jeremybenn
  if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
21884
 
21885
cat >>confdefs.h <<\_ACEOF
21886
#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
21887
_ACEOF
21888
 
21889
  fi
21890
 
21891
 
21892 225 jeremybenn
  echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21893
echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
21894 131 jeremybenn
  if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21895 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21896 131 jeremybenn
else
21897
  cat >conftest.$ac_ext <<_ACEOF
21898
/* confdefs.h.  */
21899
_ACEOF
21900
cat confdefs.h >>conftest.$ac_ext
21901
cat >>conftest.$ac_ext <<_ACEOF
21902
/* end confdefs.h.  */
21903
#include 
21904
#ifdef HAVE_NLIST_H
21905
#include 
21906
#endif
21907
#include 
21908
int
21909
main ()
21910
{
21911
struct so_map lm; (void) lm.som_addr;
21912
  ;
21913
  return 0;
21914
}
21915
_ACEOF
21916
rm -f conftest.$ac_objext
21917 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918
  (eval $ac_compile) 2>conftest.er1
21919 131 jeremybenn
  ac_status=$?
21920
  grep -v '^ *+' conftest.er1 >conftest.err
21921
  rm -f conftest.er1
21922
  cat conftest.err >&5
21923 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924
  (exit $ac_status); } &&
21925
         { ac_try='test -z "$ac_c_werror_flag"
21926
                         || test ! -s conftest.err'
21927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928
  (eval $ac_try) 2>&5
21929
  ac_status=$?
21930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931
  (exit $ac_status); }; } &&
21932
         { ac_try='test -s conftest.$ac_objext'
21933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934
  (eval $ac_try) 2>&5
21935
  ac_status=$?
21936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937
  (exit $ac_status); }; }; then
21938 131 jeremybenn
  gdb_cv_have_struct_so_map_with_som_members=yes
21939
else
21940 225 jeremybenn
  echo "$as_me: failed program was:" >&5
21941 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21942
 
21943 225 jeremybenn
gdb_cv_have_struct_so_map_with_som_members=no
21944 131 jeremybenn
fi
21945 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21946 131 jeremybenn
fi
21947
 
21948 225 jeremybenn
  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21949
echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
21950 131 jeremybenn
  if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
21951
 
21952
cat >>confdefs.h <<\_ACEOF
21953
#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
21954
_ACEOF
21955
 
21956
  fi
21957
 
21958
 
21959 225 jeremybenn
  echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21960
echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
21961 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21962 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
21963 131 jeremybenn
else
21964
  cat >conftest.$ac_ext <<_ACEOF
21965
/* confdefs.h.  */
21966
_ACEOF
21967
cat confdefs.h >>conftest.$ac_ext
21968
cat >>conftest.$ac_ext <<_ACEOF
21969
/* end confdefs.h.  */
21970
#define _SYSCALL32
21971
#include 
21972
int
21973
main ()
21974
{
21975
struct link_map32 l;
21976
  ;
21977
  return 0;
21978
}
21979
_ACEOF
21980
rm -f conftest.$ac_objext
21981 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982
  (eval $ac_compile) 2>conftest.er1
21983 131 jeremybenn
  ac_status=$?
21984
  grep -v '^ *+' conftest.er1 >conftest.err
21985
  rm -f conftest.er1
21986
  cat conftest.err >&5
21987 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988
  (exit $ac_status); } &&
21989
         { ac_try='test -z "$ac_c_werror_flag"
21990
                         || test ! -s conftest.err'
21991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992
  (eval $ac_try) 2>&5
21993
  ac_status=$?
21994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995
  (exit $ac_status); }; } &&
21996
         { ac_try='test -s conftest.$ac_objext'
21997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998
  (eval $ac_try) 2>&5
21999
  ac_status=$?
22000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001
  (exit $ac_status); }; }; then
22002 131 jeremybenn
  gdb_cv_have_struct_link_map32=yes
22003
else
22004 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22005 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22006
 
22007 225 jeremybenn
gdb_cv_have_struct_link_map32=no
22008 131 jeremybenn
fi
22009 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22010 131 jeremybenn
fi
22011
 
22012 225 jeremybenn
  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22013
echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22014 131 jeremybenn
  if test $gdb_cv_have_struct_link_map32 = yes; then
22015
 
22016
cat >>confdefs.h <<\_ACEOF
22017
#define HAVE_STRUCT_LINK_MAP32 1
22018
_ACEOF
22019
 
22020
 
22021
cat >>confdefs.h <<\_ACEOF
22022
#define _SYSCALL32 1
22023
_ACEOF
22024
 
22025
  fi
22026
fi
22027
 
22028
# Check if the compiler supports the `long long' type.
22029
 
22030 225 jeremybenn
echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22031
echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22032 131 jeremybenn
if test "${gdb_cv_c_long_long+set}" = set; then
22033 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22034 131 jeremybenn
else
22035
  cat >conftest.$ac_ext <<_ACEOF
22036
/* confdefs.h.  */
22037
_ACEOF
22038
cat confdefs.h >>conftest.$ac_ext
22039
cat >>conftest.$ac_ext <<_ACEOF
22040
/* end confdefs.h.  */
22041
extern long long foo;
22042
int
22043
main ()
22044
{
22045
switch (foo & 2) { case 0: return 1; }
22046
  ;
22047
  return 0;
22048
}
22049
_ACEOF
22050
rm -f conftest.$ac_objext
22051 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22052
  (eval $ac_compile) 2>conftest.er1
22053 131 jeremybenn
  ac_status=$?
22054
  grep -v '^ *+' conftest.er1 >conftest.err
22055
  rm -f conftest.er1
22056
  cat conftest.err >&5
22057 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058
  (exit $ac_status); } &&
22059
         { ac_try='test -z "$ac_c_werror_flag"
22060
                         || test ! -s conftest.err'
22061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062
  (eval $ac_try) 2>&5
22063
  ac_status=$?
22064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065
  (exit $ac_status); }; } &&
22066
         { ac_try='test -s conftest.$ac_objext'
22067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068
  (eval $ac_try) 2>&5
22069
  ac_status=$?
22070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071
  (exit $ac_status); }; }; then
22072 131 jeremybenn
  gdb_cv_c_long_long=yes
22073
else
22074 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22075 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22076
 
22077 225 jeremybenn
gdb_cv_c_long_long=no
22078 131 jeremybenn
fi
22079 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22080 131 jeremybenn
fi
22081 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22082
echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22083 131 jeremybenn
if test $gdb_cv_c_long_long = yes; then
22084
 
22085
cat >>confdefs.h <<\_ACEOF
22086
#define CC_HAS_LONG_LONG 1
22087
_ACEOF
22088
 
22089
fi
22090
 
22091
# Check if the compiler and runtime support printing long longs.
22092
 
22093 225 jeremybenn
echo "$as_me:$LINENO: checking for long long support in printf" >&5
22094
echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22095 131 jeremybenn
if test "${gdb_cv_printf_has_long_long+set}" = set; then
22096 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22097 131 jeremybenn
else
22098
  if test "$cross_compiling" = yes; then
22099
  gdb_cv_printf_has_long_long=no
22100
else
22101
  cat >conftest.$ac_ext <<_ACEOF
22102
/* confdefs.h.  */
22103
_ACEOF
22104
cat confdefs.h >>conftest.$ac_ext
22105
cat >>conftest.$ac_ext <<_ACEOF
22106
/* end confdefs.h.  */
22107
$ac_includes_default
22108
int
22109
main ()
22110
{
22111
char buf[32];
22112
  long long l = 0;
22113
  l = (l << 16) + 0x0123;
22114
  l = (l << 16) + 0x4567;
22115
  l = (l << 16) + 0x89ab;
22116
  l = (l << 16) + 0xcdef;
22117
  sprintf (buf, "0x%016llx", l);
22118
  return (strcmp ("0x0123456789abcdef", buf));
22119
  ;
22120
  return 0;
22121
}
22122
_ACEOF
22123
rm -f conftest$ac_exeext
22124 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22125
  (eval $ac_link) 2>&5
22126 131 jeremybenn
  ac_status=$?
22127 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22129 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130
  (eval $ac_try) 2>&5
22131 131 jeremybenn
  ac_status=$?
22132 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 131 jeremybenn
  (exit $ac_status); }; }; then
22134
  gdb_cv_printf_has_long_long=yes
22135
else
22136 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
22137
echo "$as_me: failed program was:" >&5
22138 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22139
 
22140
( exit $ac_status )
22141
gdb_cv_printf_has_long_long=no
22142
fi
22143 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22144 131 jeremybenn
fi
22145
fi
22146 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22147
echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22148 131 jeremybenn
if test $gdb_cv_printf_has_long_long = yes; then
22149
 
22150
cat >>confdefs.h <<\_ACEOF
22151
#define PRINTF_HAS_LONG_LONG 1
22152
_ACEOF
22153
 
22154
fi
22155
 
22156
# Check if the compiler and runtime support printing decfloats.
22157
 
22158 225 jeremybenn
echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22159
echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22160 131 jeremybenn
if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22161 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22162 131 jeremybenn
else
22163
  if test "$cross_compiling" = yes; then
22164
  gdb_cv_printf_has_decfloat=no
22165
else
22166
  cat >conftest.$ac_ext <<_ACEOF
22167
/* confdefs.h.  */
22168
_ACEOF
22169
cat confdefs.h >>conftest.$ac_ext
22170
cat >>conftest.$ac_ext <<_ACEOF
22171
/* end confdefs.h.  */
22172
$ac_includes_default
22173
int
22174
main ()
22175
{
22176
char buf[64];
22177
  _Decimal32 d32 = 1.2345df;
22178
  _Decimal64 d64 = 1.2345dd;
22179
  _Decimal128 d128 = 1.2345dl;
22180
  sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22181
  return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22182
  ;
22183
  return 0;
22184
}
22185
_ACEOF
22186
rm -f conftest$ac_exeext
22187 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22188
  (eval $ac_link) 2>&5
22189 131 jeremybenn
  ac_status=$?
22190 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22192 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193
  (eval $ac_try) 2>&5
22194 131 jeremybenn
  ac_status=$?
22195 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 131 jeremybenn
  (exit $ac_status); }; }; then
22197
  gdb_cv_printf_has_decfloat=yes
22198
else
22199 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
22200
echo "$as_me: failed program was:" >&5
22201 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22202
 
22203
( exit $ac_status )
22204
gdb_cv_printf_has_decfloat=no
22205
fi
22206 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22207 131 jeremybenn
fi
22208
fi
22209 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22210
echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22211 131 jeremybenn
if test $gdb_cv_printf_has_decfloat = yes; then
22212
 
22213
cat >>confdefs.h <<\_ACEOF
22214
#define PRINTF_HAS_DECFLOAT 1
22215
_ACEOF
22216
 
22217
fi
22218
 
22219
# Check if the compiler supports the `long double' type.  We can't use
22220
# AC_C_LONG_DOUBLE because that one does additional checks on the
22221
# constants defined in  that fail on some systems,
22222
# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22223
 
22224 225 jeremybenn
echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22225
echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22226 131 jeremybenn
if test "${gdb_cv_c_long_double+set}" = set; then
22227 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22228 131 jeremybenn
else
22229
  cat >conftest.$ac_ext <<_ACEOF
22230
/* confdefs.h.  */
22231
_ACEOF
22232
cat confdefs.h >>conftest.$ac_ext
22233
cat >>conftest.$ac_ext <<_ACEOF
22234
/* end confdefs.h.  */
22235
long double foo;
22236
_ACEOF
22237
rm -f conftest.$ac_objext
22238 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239
  (eval $ac_compile) 2>conftest.er1
22240 131 jeremybenn
  ac_status=$?
22241
  grep -v '^ *+' conftest.er1 >conftest.err
22242
  rm -f conftest.er1
22243
  cat conftest.err >&5
22244 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245
  (exit $ac_status); } &&
22246
         { ac_try='test -z "$ac_c_werror_flag"
22247
                         || test ! -s conftest.err'
22248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249
  (eval $ac_try) 2>&5
22250
  ac_status=$?
22251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252
  (exit $ac_status); }; } &&
22253
         { ac_try='test -s conftest.$ac_objext'
22254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255
  (eval $ac_try) 2>&5
22256
  ac_status=$?
22257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258
  (exit $ac_status); }; }; then
22259 131 jeremybenn
  gdb_cv_c_long_double=yes
22260
else
22261 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22262 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22263
 
22264 225 jeremybenn
gdb_cv_c_long_double=no
22265 131 jeremybenn
fi
22266 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 131 jeremybenn
fi
22268 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22269
echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22270 131 jeremybenn
if test $gdb_cv_c_long_double = yes; then
22271
 
22272
cat >>confdefs.h <<\_ACEOF
22273
#define HAVE_LONG_DOUBLE 1
22274
_ACEOF
22275
 
22276
fi
22277
 
22278
# Check if the compiler and runtime support printing long doubles.
22279
 
22280 225 jeremybenn
echo "$as_me:$LINENO: checking for long double support in printf" >&5
22281
echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22282 131 jeremybenn
if test "${gdb_cv_printf_has_long_double+set}" = set; then
22283 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22284 131 jeremybenn
else
22285
  if test "$cross_compiling" = yes; then
22286
  gdb_cv_printf_has_long_double=no
22287
else
22288
  cat >conftest.$ac_ext <<_ACEOF
22289
/* confdefs.h.  */
22290
_ACEOF
22291
cat confdefs.h >>conftest.$ac_ext
22292
cat >>conftest.$ac_ext <<_ACEOF
22293
/* end confdefs.h.  */
22294
$ac_includes_default
22295
int
22296
main ()
22297
{
22298
char buf[16];
22299
  long double f = 3.141592653;
22300
  sprintf (buf, "%Lg", f);
22301
  return (strncmp ("3.14159", buf, 7));
22302
  ;
22303
  return 0;
22304
}
22305
_ACEOF
22306
rm -f conftest$ac_exeext
22307 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308
  (eval $ac_link) 2>&5
22309 131 jeremybenn
  ac_status=$?
22310 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22312 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313
  (eval $ac_try) 2>&5
22314 131 jeremybenn
  ac_status=$?
22315 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 131 jeremybenn
  (exit $ac_status); }; }; then
22317
  gdb_cv_printf_has_long_double=yes
22318
else
22319 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
22320
echo "$as_me: failed program was:" >&5
22321 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22322
 
22323
( exit $ac_status )
22324
gdb_cv_printf_has_long_double=no
22325
fi
22326 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22327 131 jeremybenn
fi
22328
fi
22329 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22330
echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
22331 131 jeremybenn
if test $gdb_cv_printf_has_long_double = yes; then
22332
 
22333
cat >>confdefs.h <<\_ACEOF
22334
#define PRINTF_HAS_LONG_DOUBLE 1
22335
_ACEOF
22336
 
22337
fi
22338
 
22339
# Check if the compiler and runtime support scanning long doubles.
22340
 
22341 225 jeremybenn
echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22342
echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
22343 131 jeremybenn
if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22344 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22345 131 jeremybenn
else
22346
  if test "$cross_compiling" = yes; then
22347
  gdb_cv_scanf_has_long_double=no
22348
else
22349
  cat >conftest.$ac_ext <<_ACEOF
22350
/* confdefs.h.  */
22351
_ACEOF
22352
cat confdefs.h >>conftest.$ac_ext
22353
cat >>conftest.$ac_ext <<_ACEOF
22354
/* end confdefs.h.  */
22355
#include 
22356
int
22357
main ()
22358
{
22359
char *buf = "3.141592653";
22360
  long double f = 0;
22361
  sscanf (buf, "%Lg", &f);
22362
  return !(f > 3.14159 && f < 3.14160);
22363
  ;
22364
  return 0;
22365
}
22366
_ACEOF
22367
rm -f conftest$ac_exeext
22368 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369
  (eval $ac_link) 2>&5
22370 131 jeremybenn
  ac_status=$?
22371 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22373 225 jeremybenn
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374
  (eval $ac_try) 2>&5
22375 131 jeremybenn
  ac_status=$?
22376 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 131 jeremybenn
  (exit $ac_status); }; }; then
22378
  gdb_cv_scanf_has_long_double=yes
22379
else
22380 225 jeremybenn
  echo "$as_me: program exited with status $ac_status" >&5
22381
echo "$as_me: failed program was:" >&5
22382 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22383
 
22384
( exit $ac_status )
22385
gdb_cv_scanf_has_long_double=no
22386
fi
22387 225 jeremybenn
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22388 131 jeremybenn
fi
22389
fi
22390 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22391
echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
22392 131 jeremybenn
if test $gdb_cv_scanf_has_long_double = yes; then
22393
 
22394
cat >>confdefs.h <<\_ACEOF
22395
#define SCANF_HAS_LONG_DOUBLE 1
22396
_ACEOF
22397
 
22398
fi
22399
 
22400
case ${host_os} in
22401
aix*)
22402 225 jeremybenn
  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22403
echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
22404 131 jeremybenn
if test "${gdb_cv_bigtoc+set}" = set; then
22405 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22406 131 jeremybenn
else
22407
 
22408
    SAVE_LDFLAGS=$LDFLAGS
22409
 
22410
    case $GCC in
22411
    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22412
    *) gdb_cv_bigtoc=-bbigtoc ;;
22413
    esac
22414
 
22415
    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
22416
    cat >conftest.$ac_ext <<_ACEOF
22417
/* confdefs.h.  */
22418
_ACEOF
22419
cat confdefs.h >>conftest.$ac_ext
22420
cat >>conftest.$ac_ext <<_ACEOF
22421
/* end confdefs.h.  */
22422
 
22423
int
22424
main ()
22425
{
22426
int i;
22427
  ;
22428
  return 0;
22429
}
22430
_ACEOF
22431
rm -f conftest.$ac_objext conftest$ac_exeext
22432 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22433
  (eval $ac_link) 2>conftest.er1
22434 131 jeremybenn
  ac_status=$?
22435
  grep -v '^ *+' conftest.er1 >conftest.err
22436
  rm -f conftest.er1
22437
  cat conftest.err >&5
22438 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439
  (exit $ac_status); } &&
22440
         { ac_try='test -z "$ac_c_werror_flag"
22441
                         || test ! -s conftest.err'
22442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443
  (eval $ac_try) 2>&5
22444
  ac_status=$?
22445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446
  (exit $ac_status); }; } &&
22447
         { ac_try='test -s conftest$ac_exeext'
22448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449
  (eval $ac_try) 2>&5
22450
  ac_status=$?
22451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452
  (exit $ac_status); }; }; then
22453 131 jeremybenn
  :
22454
else
22455 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22456 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22457
 
22458 225 jeremybenn
gdb_cv_bigtoc=
22459 131 jeremybenn
fi
22460 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
22461 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
22462
    LDFLAGS="${SAVE_LDFLAGS}"
22463
 
22464
fi
22465 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22466
echo "${ECHO_T}$gdb_cv_bigtoc" >&6
22467 131 jeremybenn
  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22468
  ;;
22469
esac
22470
 
22471
 
22472
if test ${build} = ${host} -a ${host} = ${target} ; then
22473
   case ${host_os} in
22474
   hpux*)
22475 225 jeremybenn
      echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22476
echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
22477 131 jeremybenn
      if test -f /usr/include/dce/cma_config.h ; then
22478
         if test "$GCC" = "yes" ; then
22479 225 jeremybenn
            echo "$as_me:$LINENO: result: yes" >&5
22480
echo "${ECHO_T}yes" >&6
22481 131 jeremybenn
 
22482
cat >>confdefs.h <<\_ACEOF
22483
#define HAVE_HPUX_THREAD_SUPPORT 1
22484
_ACEOF
22485
 
22486
            CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
22487
            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22488
         else
22489 225 jeremybenn
            echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22490
echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
22491 131 jeremybenn
         fi
22492
      else
22493 225 jeremybenn
         echo "$as_me:$LINENO: result: no" >&5
22494
echo "${ECHO_T}no" >&6
22495 131 jeremybenn
      fi
22496
      ;;
22497
   solaris*)
22498
      # See if thread_db library is around for Solaris thread debugging.
22499
      # Note that we must explicitly test for version 1 of the library
22500
      # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22501
      # the same API.
22502 225 jeremybenn
      echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22503
echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
22504 131 jeremybenn
      if test -f /usr/lib/libthread_db.so.1 ; then
22505 225 jeremybenn
         echo "$as_me:$LINENO: result: yes" >&5
22506
echo "${ECHO_T}yes" >&6
22507 131 jeremybenn
 
22508
cat >>confdefs.h <<\_ACEOF
22509
#define HAVE_THREAD_DB_LIB 1
22510
_ACEOF
22511
 
22512
         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
22513
         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
22514
 
22515 225 jeremybenn
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22516
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22517 131 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22518 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22519 131 jeremybenn
else
22520
  ac_check_lib_save_LIBS=$LIBS
22521
LIBS="-ldl  $LIBS"
22522
cat >conftest.$ac_ext <<_ACEOF
22523
/* confdefs.h.  */
22524
_ACEOF
22525
cat confdefs.h >>conftest.$ac_ext
22526
cat >>conftest.$ac_ext <<_ACEOF
22527
/* end confdefs.h.  */
22528
 
22529 225 jeremybenn
/* Override any gcc2 internal prototype to avoid an error.  */
22530 131 jeremybenn
#ifdef __cplusplus
22531
extern "C"
22532
#endif
22533 225 jeremybenn
/* We use char because int might match the return type of a gcc2
22534
   builtin and then its argument prototype would still apply.  */
22535 131 jeremybenn
char dlopen ();
22536
int
22537
main ()
22538
{
22539 225 jeremybenn
dlopen ();
22540 131 jeremybenn
  ;
22541
  return 0;
22542
}
22543
_ACEOF
22544
rm -f conftest.$ac_objext conftest$ac_exeext
22545 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22546
  (eval $ac_link) 2>conftest.er1
22547 131 jeremybenn
  ac_status=$?
22548
  grep -v '^ *+' conftest.er1 >conftest.err
22549
  rm -f conftest.er1
22550
  cat conftest.err >&5
22551 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552
  (exit $ac_status); } &&
22553
         { ac_try='test -z "$ac_c_werror_flag"
22554
                         || test ! -s conftest.err'
22555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556
  (eval $ac_try) 2>&5
22557
  ac_status=$?
22558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559
  (exit $ac_status); }; } &&
22560
         { ac_try='test -s conftest$ac_exeext'
22561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562
  (eval $ac_try) 2>&5
22563
  ac_status=$?
22564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565
  (exit $ac_status); }; }; then
22566 131 jeremybenn
  ac_cv_lib_dl_dlopen=yes
22567
else
22568 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22569 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22570
 
22571 225 jeremybenn
ac_cv_lib_dl_dlopen=no
22572 131 jeremybenn
fi
22573 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
22574 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
22575
LIBS=$ac_check_lib_save_LIBS
22576
fi
22577 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22578
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22579
if test $ac_cv_lib_dl_dlopen = yes; then
22580 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
22581
#define HAVE_LIBDL 1
22582
_ACEOF
22583
 
22584
  LIBS="-ldl $LIBS"
22585
 
22586
fi
22587
 
22588
         if test "$GCC" = "yes" ; then
22589
            # The GNU linker requires the -export-dynamic option to make
22590
            # all symbols visible in the dynamic symbol table.
22591
            hold_ldflags=$LDFLAGS
22592 225 jeremybenn
            echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22593
echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
22594 131 jeremybenn
            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
22595
            cat >conftest.$ac_ext <<_ACEOF
22596
/* confdefs.h.  */
22597
_ACEOF
22598
cat confdefs.h >>conftest.$ac_ext
22599
cat >>conftest.$ac_ext <<_ACEOF
22600
/* end confdefs.h.  */
22601
 
22602
int
22603
main ()
22604
{
22605
int i;
22606
  ;
22607
  return 0;
22608
}
22609
_ACEOF
22610
rm -f conftest.$ac_objext conftest$ac_exeext
22611 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612
  (eval $ac_link) 2>conftest.er1
22613 131 jeremybenn
  ac_status=$?
22614
  grep -v '^ *+' conftest.er1 >conftest.err
22615
  rm -f conftest.er1
22616
  cat conftest.err >&5
22617 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618
  (exit $ac_status); } &&
22619
         { ac_try='test -z "$ac_c_werror_flag"
22620
                         || test ! -s conftest.err'
22621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622
  (eval $ac_try) 2>&5
22623
  ac_status=$?
22624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625
  (exit $ac_status); }; } &&
22626
         { ac_try='test -s conftest$ac_exeext'
22627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628
  (eval $ac_try) 2>&5
22629
  ac_status=$?
22630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631
  (exit $ac_status); }; }; then
22632 131 jeremybenn
  found=yes
22633
else
22634 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22635 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22636
 
22637 225 jeremybenn
found=no
22638 131 jeremybenn
fi
22639 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
22640 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
22641
            LDFLAGS=$hold_ldflags
22642 225 jeremybenn
            echo "$as_me:$LINENO: result: $found" >&5
22643
echo "${ECHO_T}$found" >&6
22644 131 jeremybenn
            if test $found = yes; then
22645
               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22646
            fi
22647
         fi
22648
         # Sun randomly tweaked the prototypes in 
22649
         # at one point.
22650 225 jeremybenn
         echo "$as_me:$LINENO: checking if  is old" >&5
22651
echo $ECHO_N "checking if  is old... $ECHO_C" >&6
22652 131 jeremybenn
         if test "${gdb_cv_proc_service_is_old+set}" = set; then
22653 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22654 131 jeremybenn
else
22655
 
22656
            cat >conftest.$ac_ext <<_ACEOF
22657
/* confdefs.h.  */
22658
_ACEOF
22659
cat confdefs.h >>conftest.$ac_ext
22660
cat >>conftest.$ac_ext <<_ACEOF
22661
/* end confdefs.h.  */
22662
 
22663
                #include 
22664
                ps_err_e ps_pdwrite
22665
                    (struct ps_prochandle*, psaddr_t, const void*, size_t);
22666
 
22667
int
22668
main ()
22669
{
22670
 
22671
  ;
22672
  return 0;
22673
}
22674
_ACEOF
22675
rm -f conftest.$ac_objext
22676 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677
  (eval $ac_compile) 2>conftest.er1
22678 131 jeremybenn
  ac_status=$?
22679
  grep -v '^ *+' conftest.er1 >conftest.err
22680
  rm -f conftest.er1
22681
  cat conftest.err >&5
22682 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683
  (exit $ac_status); } &&
22684
         { ac_try='test -z "$ac_c_werror_flag"
22685
                         || test ! -s conftest.err'
22686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687
  (eval $ac_try) 2>&5
22688
  ac_status=$?
22689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690
  (exit $ac_status); }; } &&
22691
         { ac_try='test -s conftest.$ac_objext'
22692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693
  (eval $ac_try) 2>&5
22694
  ac_status=$?
22695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696
  (exit $ac_status); }; }; then
22697 131 jeremybenn
  gdb_cv_proc_service_is_old=no
22698
else
22699 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22700 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22701
 
22702 225 jeremybenn
gdb_cv_proc_service_is_old=yes
22703 131 jeremybenn
fi
22704 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22705 131 jeremybenn
 
22706
fi
22707
 
22708 225 jeremybenn
         echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22709
echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
22710 131 jeremybenn
         if test $gdb_cv_proc_service_is_old = yes; then
22711
 
22712
cat >>confdefs.h <<\_ACEOF
22713
#define PROC_SERVICE_IS_OLD 1
22714
_ACEOF
22715
 
22716
         fi
22717
      else
22718 225 jeremybenn
         echo "$as_me:$LINENO: result: no" >&5
22719
echo "${ECHO_T}no" >&6
22720 131 jeremybenn
      fi
22721
      ;;
22722
   aix*)
22723 225 jeremybenn
      echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22724
echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
22725 131 jeremybenn
      if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22726 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22727 131 jeremybenn
else
22728
  cat >conftest.$ac_ext <<_ACEOF
22729
/* confdefs.h.  */
22730
_ACEOF
22731
cat confdefs.h >>conftest.$ac_ext
22732
cat >>conftest.$ac_ext <<_ACEOF
22733
/* end confdefs.h.  */
22734
#include 
22735
int
22736
main ()
22737
{
22738
#ifndef PTHDB_VERSION_3
22739
                                    #error
22740
                                    #endif
22741
  ;
22742
  return 0;
22743
}
22744
_ACEOF
22745
rm -f conftest.$ac_objext
22746 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22747
  (eval $ac_compile) 2>conftest.er1
22748 131 jeremybenn
  ac_status=$?
22749
  grep -v '^ *+' conftest.er1 >conftest.err
22750
  rm -f conftest.er1
22751
  cat conftest.err >&5
22752 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753
  (exit $ac_status); } &&
22754
         { ac_try='test -z "$ac_c_werror_flag"
22755
                         || test ! -s conftest.err'
22756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757
  (eval $ac_try) 2>&5
22758
  ac_status=$?
22759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760
  (exit $ac_status); }; } &&
22761
         { ac_try='test -s conftest.$ac_objext'
22762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763
  (eval $ac_try) 2>&5
22764
  ac_status=$?
22765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766
  (exit $ac_status); }; }; then
22767 131 jeremybenn
  gdb_cv_have_aix_thread_debug=yes
22768
else
22769 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22770 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22771
 
22772 225 jeremybenn
gdb_cv_have_aix_thread_debug=no
22773 131 jeremybenn
fi
22774 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775 131 jeremybenn
fi
22776
 
22777 225 jeremybenn
      echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
22778
echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
22779 131 jeremybenn
      if test $gdb_cv_have_aix_thread_debug = yes; then
22780
         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
22781
         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
22782
         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
22783
      fi
22784
      ;;
22785
   esac
22786
 
22787
fi
22788
 
22789
if test "x$ac_cv_header_thread_db_h" = "xyes"; then
22790 225 jeremybenn
   echo "$as_me:$LINENO: checking whether  has TD_NOTALLOC" >&5
22791
echo $ECHO_N "checking whether  has TD_NOTALLOC... $ECHO_C" >&6
22792 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22793 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22794 131 jeremybenn
else
22795
  cat >conftest.$ac_ext <<_ACEOF
22796
/* confdefs.h.  */
22797
_ACEOF
22798
cat confdefs.h >>conftest.$ac_ext
22799
cat >>conftest.$ac_ext <<_ACEOF
22800
/* end confdefs.h.  */
22801
#include 
22802
int
22803
main ()
22804
{
22805
int i = TD_NOTALLOC;
22806
  ;
22807
  return 0;
22808
}
22809
_ACEOF
22810
rm -f conftest.$ac_objext
22811 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812
  (eval $ac_compile) 2>conftest.er1
22813 131 jeremybenn
  ac_status=$?
22814
  grep -v '^ *+' conftest.er1 >conftest.err
22815
  rm -f conftest.er1
22816
  cat conftest.err >&5
22817 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818
  (exit $ac_status); } &&
22819
         { ac_try='test -z "$ac_c_werror_flag"
22820
                         || test ! -s conftest.err'
22821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822
  (eval $ac_try) 2>&5
22823
  ac_status=$?
22824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825
  (exit $ac_status); }; } &&
22826
         { ac_try='test -s conftest.$ac_objext'
22827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828
  (eval $ac_try) 2>&5
22829
  ac_status=$?
22830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831
  (exit $ac_status); }; }; then
22832 131 jeremybenn
  gdb_cv_thread_db_h_has_td_notalloc=yes
22833
else
22834 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22835 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22836
 
22837 225 jeremybenn
gdb_cv_thread_db_h_has_td_notalloc=no
22838 131 jeremybenn
 
22839
fi
22840 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22841 131 jeremybenn
 
22842
fi
22843 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22844
echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
22845
   echo "$as_me:$LINENO: checking whether  has TD_VERSION" >&5
22846
echo $ECHO_N "checking whether  has TD_VERSION... $ECHO_C" >&6
22847 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22848 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22849 131 jeremybenn
else
22850
  cat >conftest.$ac_ext <<_ACEOF
22851
/* confdefs.h.  */
22852
_ACEOF
22853
cat confdefs.h >>conftest.$ac_ext
22854
cat >>conftest.$ac_ext <<_ACEOF
22855
/* end confdefs.h.  */
22856
#include 
22857
int
22858
main ()
22859
{
22860
int i = TD_VERSION;
22861
  ;
22862
  return 0;
22863
}
22864
_ACEOF
22865
rm -f conftest.$ac_objext
22866 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22867
  (eval $ac_compile) 2>conftest.er1
22868 131 jeremybenn
  ac_status=$?
22869
  grep -v '^ *+' conftest.er1 >conftest.err
22870
  rm -f conftest.er1
22871
  cat conftest.err >&5
22872 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873
  (exit $ac_status); } &&
22874
         { ac_try='test -z "$ac_c_werror_flag"
22875
                         || test ! -s conftest.err'
22876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877
  (eval $ac_try) 2>&5
22878
  ac_status=$?
22879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880
  (exit $ac_status); }; } &&
22881
         { ac_try='test -s conftest.$ac_objext'
22882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883
  (eval $ac_try) 2>&5
22884
  ac_status=$?
22885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886
  (exit $ac_status); }; }; then
22887 131 jeremybenn
  gdb_cv_thread_db_h_has_td_version=yes
22888
else
22889 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22890 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22891
 
22892 225 jeremybenn
gdb_cv_thread_db_h_has_td_version=no
22893 131 jeremybenn
 
22894
fi
22895 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22896 131 jeremybenn
 
22897
fi
22898 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22899
echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22900
   echo "$as_me:$LINENO: checking whether  has TD_NOTLS" >&5
22901
echo $ECHO_N "checking whether  has TD_NOTLS... $ECHO_C" >&6
22902 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22903 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22904 131 jeremybenn
else
22905
  cat >conftest.$ac_ext <<_ACEOF
22906
/* confdefs.h.  */
22907
_ACEOF
22908
cat confdefs.h >>conftest.$ac_ext
22909
cat >>conftest.$ac_ext <<_ACEOF
22910
/* end confdefs.h.  */
22911
#include 
22912
int
22913
main ()
22914
{
22915
int i = TD_NOTLS;
22916
  ;
22917
  return 0;
22918
}
22919
_ACEOF
22920
rm -f conftest.$ac_objext
22921 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22922
  (eval $ac_compile) 2>conftest.er1
22923 131 jeremybenn
  ac_status=$?
22924
  grep -v '^ *+' conftest.er1 >conftest.err
22925
  rm -f conftest.er1
22926
  cat conftest.err >&5
22927 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928
  (exit $ac_status); } &&
22929
         { ac_try='test -z "$ac_c_werror_flag"
22930
                         || test ! -s conftest.err'
22931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932
  (eval $ac_try) 2>&5
22933
  ac_status=$?
22934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935
  (exit $ac_status); }; } &&
22936
         { ac_try='test -s conftest.$ac_objext'
22937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938
  (eval $ac_try) 2>&5
22939
  ac_status=$?
22940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941
  (exit $ac_status); }; }; then
22942 131 jeremybenn
  gdb_cv_thread_db_h_has_td_notls=yes
22943
else
22944 225 jeremybenn
  echo "$as_me: failed program was:" >&5
22945 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22946
 
22947 225 jeremybenn
gdb_cv_thread_db_h_has_td_notls=no
22948 131 jeremybenn
 
22949
fi
22950 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22951 131 jeremybenn
 
22952
fi
22953 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22954
echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
22955 131 jeremybenn
fi
22956
if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
22957
 
22958
cat >>confdefs.h <<\_ACEOF
22959
#define THREAD_DB_HAS_TD_NOTALLOC 1
22960
_ACEOF
22961
 
22962
fi
22963
if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22964
 
22965
cat >>confdefs.h <<\_ACEOF
22966
#define THREAD_DB_HAS_TD_VERSION 1
22967
_ACEOF
22968
 
22969
fi
22970
if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22971
 
22972
cat >>confdefs.h <<\_ACEOF
22973
#define THREAD_DB_HAS_TD_NOTLS 1
22974
_ACEOF
22975
 
22976
fi
22977
 
22978
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
22979 225 jeremybenn
   echo "$as_me:$LINENO: checking whether  has __NR_tkill" >&5
22980
echo $ECHO_N "checking whether  has __NR_tkill... $ECHO_C" >&6
22981 131 jeremybenn
if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22982 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
22983 131 jeremybenn
else
22984
  cat >conftest.$ac_ext <<_ACEOF
22985
/* confdefs.h.  */
22986
_ACEOF
22987
cat confdefs.h >>conftest.$ac_ext
22988
cat >>conftest.$ac_ext <<_ACEOF
22989
/* end confdefs.h.  */
22990
#include 
22991
int
22992
main ()
22993
{
22994
int i = __NR_tkill;
22995
  ;
22996
  return 0;
22997
}
22998
_ACEOF
22999
rm -f conftest.$ac_objext
23000 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001
  (eval $ac_compile) 2>conftest.er1
23002 131 jeremybenn
  ac_status=$?
23003
  grep -v '^ *+' conftest.er1 >conftest.err
23004
  rm -f conftest.er1
23005
  cat conftest.err >&5
23006 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007
  (exit $ac_status); } &&
23008
         { ac_try='test -z "$ac_c_werror_flag"
23009
                         || test ! -s conftest.err'
23010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011
  (eval $ac_try) 2>&5
23012
  ac_status=$?
23013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014
  (exit $ac_status); }; } &&
23015
         { ac_try='test -s conftest.$ac_objext'
23016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017
  (eval $ac_try) 2>&5
23018
  ac_status=$?
23019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020
  (exit $ac_status); }; }; then
23021 131 jeremybenn
  gdb_cv_sys_syscall_h_has_tkill=yes
23022
else
23023 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23024 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23025
 
23026 225 jeremybenn
gdb_cv_sys_syscall_h_has_tkill=no
23027 131 jeremybenn
 
23028
fi
23029 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23030 131 jeremybenn
 
23031
fi
23032 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23033
echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23034 131 jeremybenn
fi
23035
if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23036
 
23037
cat >>confdefs.h <<\_ACEOF
23038
#define HAVE_TKILL_SYSCALL 1
23039
_ACEOF
23040
 
23041
fi
23042
 
23043
 
23044
 
23045 225 jeremybenn
# Check whether --with-sysroot or --without-sysroot was given.
23046 131 jeremybenn
if test "${with_sysroot+set}" = set; then
23047 225 jeremybenn
  withval="$with_sysroot"
23048
 
23049 131 jeremybenn
 case ${with_sysroot} in
23050
 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23051
 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23052
 esac
23053
 
23054
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23055
 
23056
 if test "x$prefix" = xNONE; then
23057
  test_prefix=/usr/local
23058
 else
23059
  test_prefix=$prefix
23060
 fi
23061
 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23062
  test_exec_prefix=$test_prefix
23063
 else
23064
  test_exec_prefix=$exec_prefix
23065
 fi
23066
 case ${TARGET_SYSTEM_ROOT} in
23067
 "${test_prefix}"|"${test_prefix}/"*|\
23068
 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23069
 '${prefix}'|'${prefix}/'*|\
23070
 '${exec_prefix}'|'${exec_prefix}/'*)
23071
   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23072
   TARGET_SYSTEM_ROOT_DEFINE="$t"
23073
   ;;
23074
 esac
23075
 
23076
else
23077
 
23078
 TARGET_SYSTEM_ROOT=
23079
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23080
 
23081 225 jeremybenn
fi;
23082 131 jeremybenn
 
23083
 
23084
 
23085 225 jeremybenn
# Check whether --enable-werror or --disable-werror was given.
23086 131 jeremybenn
if test "${enable_werror+set}" = set; then
23087 225 jeremybenn
  enableval="$enable_werror"
23088
  case "${enableval}" in
23089 131 jeremybenn
     yes | y) ERROR_ON_WARNING="yes" ;;
23090
     no | n)  ERROR_ON_WARNING="no" ;;
23091 225 jeremybenn
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23092
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23093 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
23094
   esac
23095 225 jeremybenn
fi;
23096 131 jeremybenn
 
23097
# Enable -Werror by default when using gcc
23098
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23099
    ERROR_ON_WARNING=yes
23100
fi
23101
 
23102
WERROR_CFLAGS=""
23103
if test "${ERROR_ON_WARNING}" = yes ; then
23104
    WERROR_CFLAGS="-Werror"
23105
fi
23106
 
23107
# The entries after -Wno-pointer-sign are disabled warnings which may
23108
# be enabled in the future, which can not currently be used to build
23109
# GDB.
23110
# NOTE: If you change this list, remember to update
23111
# gdb/doc/gdbint.texinfo.
23112
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23113
-Wformat-nonliteral -Wno-pointer-sign \
23114
-Wno-unused -Wno-switch -Wno-char-subscripts"
23115
 
23116 225 jeremybenn
# Check whether --enable-build-warnings or --disable-build-warnings was given.
23117 131 jeremybenn
if test "${enable_build_warnings+set}" = set; then
23118 225 jeremybenn
  enableval="$enable_build_warnings"
23119
  case "${enableval}" in
23120 131 jeremybenn
  yes)  ;;
23121
  no)   build_warnings="-w";;
23122
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23123
        build_warnings="${build_warnings} ${t}";;
23124
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23125
        build_warnings="${t} ${build_warnings}";;
23126
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23127
esac
23128
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23129
  echo "Setting compiler warning flags = $build_warnings" 6>&1
23130
fi
23131 225 jeremybenn
fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
23132 131 jeremybenn
if test "${enable_gdb_build_warnings+set}" = set; then
23133 225 jeremybenn
  enableval="$enable_gdb_build_warnings"
23134
  case "${enableval}" in
23135 131 jeremybenn
  yes)  ;;
23136
  no)   build_warnings="-w";;
23137
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23138
        build_warnings="${build_warnings} ${t}";;
23139
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
23140
        build_warnings="${t} ${build_warnings}";;
23141
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23142
esac
23143
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23144
  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23145
fi
23146 225 jeremybenn
fi; WARN_CFLAGS=""
23147 131 jeremybenn
if test "x${build_warnings}" != x -a "x$GCC" = xyes
23148
then
23149 225 jeremybenn
    echo "$as_me:$LINENO: checking compiler warning flags" >&5
23150
echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
23151 131 jeremybenn
    # Separate out the -Werror flag as some files just cannot be
23152
    # compiled with it enabled.
23153
    for w in ${build_warnings}; do
23154
        case $w in
23155
        -Werr*) WERROR_CFLAGS=-Werror ;;
23156
        *) # Check that GCC accepts it
23157
            saved_CFLAGS="$CFLAGS"
23158
            CFLAGS="$CFLAGS $w"
23159
            cat >conftest.$ac_ext <<_ACEOF
23160
/* confdefs.h.  */
23161
_ACEOF
23162
cat confdefs.h >>conftest.$ac_ext
23163
cat >>conftest.$ac_ext <<_ACEOF
23164
/* end confdefs.h.  */
23165
 
23166
int
23167
main ()
23168
{
23169
 
23170
  ;
23171
  return 0;
23172
}
23173
_ACEOF
23174
rm -f conftest.$ac_objext
23175 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176
  (eval $ac_compile) 2>conftest.er1
23177 131 jeremybenn
  ac_status=$?
23178
  grep -v '^ *+' conftest.er1 >conftest.err
23179
  rm -f conftest.er1
23180
  cat conftest.err >&5
23181 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182
  (exit $ac_status); } &&
23183
         { ac_try='test -z "$ac_c_werror_flag"
23184
                         || test ! -s conftest.err'
23185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186
  (eval $ac_try) 2>&5
23187
  ac_status=$?
23188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189
  (exit $ac_status); }; } &&
23190
         { ac_try='test -s conftest.$ac_objext'
23191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192
  (eval $ac_try) 2>&5
23193
  ac_status=$?
23194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195
  (exit $ac_status); }; }; then
23196 131 jeremybenn
  WARN_CFLAGS="${WARN_CFLAGS} $w"
23197
else
23198 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23199 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23200
 
23201
fi
23202 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203 131 jeremybenn
            CFLAGS="$saved_CFLAGS"
23204
        esac
23205
    done
23206 225 jeremybenn
    echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
23207
echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
23208 131 jeremybenn
fi
23209
 
23210
 
23211
 
23212
# In the Cygwin environment, we need some additional flags.
23213 225 jeremybenn
echo "$as_me:$LINENO: checking for cygwin" >&5
23214
echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
23215 131 jeremybenn
if test "${gdb_cv_os_cygwin+set}" = set; then
23216 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23217 131 jeremybenn
else
23218
  cat >conftest.$ac_ext <<_ACEOF
23219
/* confdefs.h.  */
23220
_ACEOF
23221
cat confdefs.h >>conftest.$ac_ext
23222
cat >>conftest.$ac_ext <<_ACEOF
23223
/* end confdefs.h.  */
23224
 
23225
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
23226
lose
23227
#endif
23228
_ACEOF
23229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23230
  $EGREP "lose" >/dev/null 2>&1; then
23231
  gdb_cv_os_cygwin=yes
23232
else
23233
  gdb_cv_os_cygwin=no
23234
fi
23235
rm -f conftest*
23236
 
23237
fi
23238 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23239
echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
23240 131 jeremybenn
 
23241
 
23242
SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23243
case ${host} in
23244
  *go32* ) SER_HARDWIRE=ser-go32.o ;;
23245
  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23246
  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23247
esac
23248
 
23249
 
23250
# libreadline needs libuser32.a in a cygwin environment
23251
WIN32LIBS=
23252
if test x$gdb_cv_os_cygwin = xyes; then
23253
    WIN32LIBS="-luser32"
23254
    case "${target}" in
23255
        *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23256
        ;;
23257
    esac
23258
fi
23259
 
23260
# The ser-tcp.c module requires sockets.
23261
case ${host} in
23262
  *mingw32*)
23263
 
23264
cat >>confdefs.h <<\_ACEOF
23265
#define USE_WIN32API 1
23266
_ACEOF
23267
 
23268
    WIN32LIBS="$WIN32LIBS -lws2_32"
23269
    ;;
23270
esac
23271
 
23272
 
23273
# Add ELF support to GDB, but only if BFD includes ELF support.
23274
OLD_CFLAGS=$CFLAGS
23275
OLD_LDFLAGS=$LDFLAGS
23276
OLD_LIBS=$LIBS
23277
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
23278
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
23279
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
23280
LIBS="$LIBS -lbfd -liberty $intl"
23281 225 jeremybenn
echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
23282
echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
23283 131 jeremybenn
if test "${gdb_cv_var_elf+set}" = set; then
23284 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23285 131 jeremybenn
else
23286
  cat >conftest.$ac_ext <<_ACEOF
23287
/* confdefs.h.  */
23288
_ACEOF
23289
cat confdefs.h >>conftest.$ac_ext
23290
cat >>conftest.$ac_ext <<_ACEOF
23291
/* end confdefs.h.  */
23292
#include 
23293
#include "bfd.h"
23294
#include "elf-bfd.h"
23295
 
23296
int
23297
main ()
23298
{
23299
bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
23300
  ;
23301
  return 0;
23302
}
23303
_ACEOF
23304
rm -f conftest.$ac_objext conftest$ac_exeext
23305 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306
  (eval $ac_link) 2>conftest.er1
23307 131 jeremybenn
  ac_status=$?
23308
  grep -v '^ *+' conftest.er1 >conftest.err
23309
  rm -f conftest.er1
23310
  cat conftest.err >&5
23311 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312
  (exit $ac_status); } &&
23313
         { ac_try='test -z "$ac_c_werror_flag"
23314
                         || test ! -s conftest.err'
23315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316
  (eval $ac_try) 2>&5
23317
  ac_status=$?
23318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319
  (exit $ac_status); }; } &&
23320
         { ac_try='test -s conftest$ac_exeext'
23321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322
  (eval $ac_try) 2>&5
23323
  ac_status=$?
23324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325
  (exit $ac_status); }; }; then
23326 131 jeremybenn
  gdb_cv_var_elf=yes
23327
else
23328 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23329 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23330
 
23331 225 jeremybenn
gdb_cv_var_elf=no
23332 131 jeremybenn
fi
23333 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
23334 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
23335
fi
23336 225 jeremybenn
echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
23337
echo "${ECHO_T}$gdb_cv_var_elf" >&6
23338 131 jeremybenn
if test $gdb_cv_var_elf = yes; then
23339
  CONFIG_OBS="$CONFIG_OBS elfread.o"
23340
 
23341
cat >>confdefs.h <<\_ACEOF
23342
#define HAVE_ELF 1
23343
_ACEOF
23344
 
23345
fi
23346
CFLAGS=$OLD_CFLAGS
23347
LDFLAGS=$OLD_LDFLAGS
23348
LIBS=$OLD_LIBS
23349
 
23350
# Add any host-specific objects to GDB.
23351
CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23352
 
23353
LIBGUI="../libgui/src/libgui.a"
23354
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23355
 
23356
 
23357
 
23358
WIN32LDAPP=
23359
 
23360
 
23361
 
23362
case "${host}" in
23363
*-*-cygwin*)
23364
    configdir="win"
23365
    ;;
23366
*)
23367
    configdir="unix"
23368
    ;;
23369
esac
23370
 
23371
GDBTKLIBS=
23372
if test "${enable_gdbtk}" = "yes"; then
23373
 
23374
    # Gdbtk must have an absolute path to srcdir in order to run
23375
    # properly when not installed.
23376
    here=`pwd`
23377
    cd ${srcdir}
23378
    GDBTK_SRC_DIR=`pwd`
23379
    cd $here
23380
 
23381
 
23382
#
23383
# Ok, lets find the tcl configuration
23384
# First, look for one uninstalled.
23385
# the alternative search directory is invoked by --with-tclconfig
23386
#
23387
 
23388
if test x"${no_tcl}" = x ; then
23389
  # we reset no_tcl in case something fails here
23390
  no_tcl=true
23391
 
23392 225 jeremybenn
# Check whether --with-tclconfig or --without-tclconfig was given.
23393 131 jeremybenn
if test "${with_tclconfig+set}" = set; then
23394 225 jeremybenn
  withval="$with_tclconfig"
23395
  with_tclconfig=${withval}
23396
fi;
23397
  echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23398
echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
23399 131 jeremybenn
  if test "${ac_cv_c_tclconfig+set}" = set; then
23400 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23401 131 jeremybenn
else
23402
 
23403
 
23404
  # First check to see if --with-tclconfig was specified.
23405
  if test x"${with_tclconfig}" != x ; then
23406
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
23407
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23408
    else
23409 225 jeremybenn
      { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23410
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23411 131 jeremybenn
   { (exit 1); exit 1; }; }
23412
    fi
23413
  fi
23414
 
23415
  # then check for a private Tcl installation
23416
  if test x"${ac_cv_c_tclconfig}" = x ; then
23417
    for i in \
23418
                ../tcl \
23419
                `ls -dr ../tcl[7-9]* 2>/dev/null` \
23420
                ../../tcl \
23421
                `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23422
                ../../../tcl \
23423
                `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23424
      if test -f "$i/${configdir}/tclConfig.sh" ; then
23425
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23426
        break
23427
      fi
23428
    done
23429
  fi
23430
  # check in a few common install locations
23431
  if test x"${ac_cv_c_tclconfig}" = x ; then
23432
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23433
      if test -f "$i/tclConfig.sh" ; then
23434
        ac_cv_c_tclconfig=`(cd $i; pwd)`
23435
        break
23436
      fi
23437
    done
23438
  fi
23439
  # check in a few other private locations
23440
  if test x"${ac_cv_c_tclconfig}" = x ; then
23441
    for i in \
23442
                ${srcdir}/../tcl \
23443
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23444
      if test -f "$i/${configdir}/tclConfig.sh" ; then
23445
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23446
        break
23447
      fi
23448
    done
23449
  fi
23450
 
23451
fi
23452
 
23453
  if test x"${ac_cv_c_tclconfig}" = x ; then
23454
    TCLCONFIG="# no Tcl configs found"
23455 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23456
echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
23457 131 jeremybenn
  else
23458
    no_tcl=
23459
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
23460 225 jeremybenn
    echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23461
echo "${ECHO_T}found $TCLCONFIG" >&6
23462 131 jeremybenn
  fi
23463
fi
23464
 
23465
    if test -z "${no_tcl}"; then
23466
 
23467
    . $TCLCONFIG
23468
 
23469
 
23470
 
23471
 
23472
 
23473
 
23474
 
23475
 
23476
 
23477
 
23478
 
23479
 
23480
 
23481
 
23482
 
23483
 
23484
 
23485
 
23486
 
23487
 
23488
 
23489
 
23490
 
23491
 
23492
 
23493
 
23494
 
23495
#
23496
# Ok, lets find the tk configuration
23497
# First, look for one uninstalled.
23498
# the alternative search directory is invoked by --with-tkconfig
23499
#
23500
 
23501
if test x"${no_tk}" = x ; then
23502
  # we reset no_tk in case something fails here
23503
  no_tk=true
23504
 
23505 225 jeremybenn
# Check whether --with-tkconfig or --without-tkconfig was given.
23506 131 jeremybenn
if test "${with_tkconfig+set}" = set; then
23507 225 jeremybenn
  withval="$with_tkconfig"
23508
  with_tkconfig=${withval}
23509
fi;
23510
  echo "$as_me:$LINENO: checking for Tk configuration" >&5
23511
echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
23512 131 jeremybenn
  if test "${ac_cv_c_tkconfig+set}" = set; then
23513 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23514 131 jeremybenn
else
23515
 
23516
 
23517
  # First check to see if --with-tkconfig was specified.
23518
  if test x"${with_tkconfig}" != x ; then
23519
    if test -f "${with_tkconfig}/tkConfig.sh" ; then
23520
      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23521
    else
23522 225 jeremybenn
      { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23523
echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23524 131 jeremybenn
   { (exit 1); exit 1; }; }
23525
    fi
23526
  fi
23527
 
23528
  # then check for a private Tk library
23529
  if test x"${ac_cv_c_tkconfig}" = x ; then
23530
    for i in \
23531
                ../tk \
23532
                `ls -dr ../tk[4-9]* 2>/dev/null` \
23533
                ../../tk \
23534
                `ls -dr ../../tk[4-9]* 2>/dev/null` \
23535
                ../../../tk \
23536
                `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23537
      if test -f "$i/${configdir}/tkConfig.sh" ; then
23538
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23539
        break
23540
      fi
23541
    done
23542
  fi
23543
  # check in a few common install locations
23544
  if test x"${ac_cv_c_tkconfig}" = x ; then
23545
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23546
      if test -f "$i/tkConfig.sh" ; then
23547
        ac_cv_c_tkconfig=`(cd $i; pwd)`
23548
        break
23549
      fi
23550
    done
23551
  fi
23552
  # check in a few other private locations
23553
  if test x"${ac_cv_c_tkconfig}" = x ; then
23554
    for i in \
23555
                ${srcdir}/../tk \
23556
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23557
      if test -f "$i/${configdir}/tkConfig.sh" ; then
23558
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23559
        break
23560
      fi
23561
    done
23562
  fi
23563
 
23564
fi
23565
 
23566
  if test x"${ac_cv_c_tkconfig}" = x ; then
23567
    TKCONFIG="# no Tk configs found"
23568 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23569
echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
23570 131 jeremybenn
  else
23571
    no_tk=
23572
    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
23573 225 jeremybenn
    echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23574
echo "${ECHO_T}found $TKCONFIG" >&6
23575 131 jeremybenn
  fi
23576
fi
23577
 
23578
 
23579
 
23580
        # now look for Tcl library stuff
23581
 
23582
        tcldir="../tcl/${configdir}/"
23583
 
23584
        TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23585
 
23586
        # If $no_tk is nonempty, then we can't do Tk, and there is no
23587
        # point to doing Tcl.
23588
        if test -z "${no_tk}"; then
23589
 
23590
    if test -f "$TKCONFIG" ; then
23591
      . $TKCONFIG
23592
    fi
23593
 
23594
 
23595
 
23596
 
23597
 
23598
 
23599
 
23600
 
23601
 
23602
 
23603
 
23604
 
23605
 
23606
 
23607
#
23608
# Ok, lets find the tcl source trees so we can use the headers
23609
# Warning: transition of version 9 to 10 will break this algorithm
23610
# because 10 sorts before 9. We also look for just tcl. We have to
23611
# be careful that we don't match stuff like tclX by accident.
23612
# the alternative search directory is involked by --with-tclinclude
23613
#
23614
 
23615
no_tcl=true
23616 225 jeremybenn
echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23617
echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
23618 131 jeremybenn
 
23619 225 jeremybenn
# Check whether --with-tclinclude or --without-tclinclude was given.
23620 131 jeremybenn
if test "${with_tclinclude+set}" = set; then
23621 225 jeremybenn
  withval="$with_tclinclude"
23622
  with_tclinclude=${withval}
23623
fi;
23624 131 jeremybenn
if test "${ac_cv_c_tclh+set}" = set; then
23625 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23626 131 jeremybenn
else
23627
 
23628
# first check to see if --with-tclinclude was specified
23629
if test x"${with_tclinclude}" != x ; then
23630
  if test -f ${with_tclinclude}/tclInt.h ; then
23631
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23632
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23633
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23634
  else
23635 225 jeremybenn
    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23636
echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23637 131 jeremybenn
   { (exit 1); exit 1; }; }
23638
  fi
23639
fi
23640
 
23641
# next check if it came with Tcl configuration file
23642
if test x"${ac_cv_c_tclconfig}" = x ; then
23643
  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23644
    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23645
  fi
23646
fi
23647
 
23648
# next check in private source directory
23649
#
23650
# since ls returns lowest version numbers first, reverse its output
23651
if test x"${ac_cv_c_tclh}" = x ; then
23652
  for i in \
23653
                ${srcdir}/../tcl \
23654
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23655
                ${srcdir}/../../tcl \
23656
                `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23657
                ${srcdir}/../../../tcl \
23658
                `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23659
    if test -f $i/generic/tclInt.h ; then
23660
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
23661
      break
23662
    fi
23663
  done
23664
fi
23665
# finally check in a few common install locations
23666
#
23667
# since ls returns lowest version numbers first, reverse its output
23668
if test x"${ac_cv_c_tclh}" = x ; then
23669
  for i in \
23670
                `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23671
                `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23672
                /usr/local/src/tcl \
23673
                /usr/local/lib/tcl \
23674
                ${prefix}/include ; do
23675
    if test -f $i/generic/tclInt.h ; then
23676
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
23677
      break
23678
    fi
23679
  done
23680
fi
23681
# see if one is installed
23682
if test x"${ac_cv_c_tclh}" = x ; then
23683
   if test "${ac_cv_header_tclInt_h+set}" = set; then
23684 225 jeremybenn
  echo "$as_me:$LINENO: checking for tclInt.h" >&5
23685
echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23686 131 jeremybenn
if test "${ac_cv_header_tclInt_h+set}" = set; then
23687 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23688 131 jeremybenn
fi
23689 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23690
echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23691 131 jeremybenn
else
23692
  # Is the header compilable?
23693 225 jeremybenn
echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23694
echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
23695 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
23696
/* confdefs.h.  */
23697
_ACEOF
23698
cat confdefs.h >>conftest.$ac_ext
23699
cat >>conftest.$ac_ext <<_ACEOF
23700
/* end confdefs.h.  */
23701
$ac_includes_default
23702
#include 
23703
_ACEOF
23704
rm -f conftest.$ac_objext
23705 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706
  (eval $ac_compile) 2>conftest.er1
23707 131 jeremybenn
  ac_status=$?
23708
  grep -v '^ *+' conftest.er1 >conftest.err
23709
  rm -f conftest.er1
23710
  cat conftest.err >&5
23711 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712
  (exit $ac_status); } &&
23713
         { ac_try='test -z "$ac_c_werror_flag"
23714
                         || test ! -s conftest.err'
23715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716
  (eval $ac_try) 2>&5
23717
  ac_status=$?
23718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719
  (exit $ac_status); }; } &&
23720
         { ac_try='test -s conftest.$ac_objext'
23721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722
  (eval $ac_try) 2>&5
23723
  ac_status=$?
23724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725
  (exit $ac_status); }; }; then
23726 131 jeremybenn
  ac_header_compiler=yes
23727
else
23728 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23729 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23730
 
23731 225 jeremybenn
ac_header_compiler=no
23732 131 jeremybenn
fi
23733 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23734
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23735
echo "${ECHO_T}$ac_header_compiler" >&6
23736 131 jeremybenn
 
23737
# Is the header present?
23738 225 jeremybenn
echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23739
echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
23740 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
23741
/* confdefs.h.  */
23742
_ACEOF
23743
cat confdefs.h >>conftest.$ac_ext
23744
cat >>conftest.$ac_ext <<_ACEOF
23745
/* end confdefs.h.  */
23746
#include 
23747
_ACEOF
23748 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23749
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23750 131 jeremybenn
  ac_status=$?
23751
  grep -v '^ *+' conftest.er1 >conftest.err
23752
  rm -f conftest.er1
23753
  cat conftest.err >&5
23754 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755
  (exit $ac_status); } >/dev/null; then
23756
  if test -s conftest.err; then
23757
    ac_cpp_err=$ac_c_preproc_warn_flag
23758
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23759
  else
23760
    ac_cpp_err=
23761
  fi
23762
else
23763
  ac_cpp_err=yes
23764
fi
23765
if test -z "$ac_cpp_err"; then
23766 131 jeremybenn
  ac_header_preproc=yes
23767
else
23768 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23769 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23770
 
23771
  ac_header_preproc=no
23772
fi
23773
rm -f conftest.err conftest.$ac_ext
23774 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23775
echo "${ECHO_T}$ac_header_preproc" >&6
23776 131 jeremybenn
 
23777
# So?  What about this header?
23778
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23779
  yes:no: )
23780 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23781
echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23782
    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23783
echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23784 131 jeremybenn
    ac_header_preproc=yes
23785
    ;;
23786
  no:yes:* )
23787 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23788
echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23789
    { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
23790
echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
23791
    { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23792
echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23793
    { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
23794
echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23795
    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23796
echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23797
    { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23798
echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23799
    (
23800
      cat <<\_ASBOX
23801
## ------------------------------------------ ##
23802
## Report this to the AC_PACKAGE_NAME lists.  ##
23803
## ------------------------------------------ ##
23804
_ASBOX
23805
    ) |
23806
      sed "s/^/$as_me: WARNING:     /" >&2
23807 131 jeremybenn
    ;;
23808
esac
23809 225 jeremybenn
echo "$as_me:$LINENO: checking for tclInt.h" >&5
23810
echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23811 131 jeremybenn
if test "${ac_cv_header_tclInt_h+set}" = set; then
23812 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23813 131 jeremybenn
else
23814
  ac_cv_header_tclInt_h=$ac_header_preproc
23815
fi
23816 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23817
echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23818 131 jeremybenn
 
23819
fi
23820 225 jeremybenn
if test $ac_cv_header_tclInt_h = yes; then
23821 131 jeremybenn
  ac_cv_c_tclh=installed
23822
else
23823
  ac_cv_c_tclh=""
23824
fi
23825
 
23826
 
23827
fi
23828
 
23829
fi
23830
 
23831
if test x"${ac_cv_c_tclh}" = x ; then
23832
  TCLHDIR="# no Tcl private headers found"
23833 225 jeremybenn
  { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23834
echo "$as_me: error: Can't find Tcl private headers" >&2;}
23835 131 jeremybenn
   { (exit 1); exit 1; }; }
23836
fi
23837
if test x"${ac_cv_c_tclh}" != x ; then
23838
  no_tcl=""
23839
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
23840 225 jeremybenn
    echo "$as_me:$LINENO: result: is installed" >&5
23841
echo "${ECHO_T}is installed" >&6
23842 131 jeremybenn
    TCLHDIR=""
23843
  else
23844 225 jeremybenn
    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23845
echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
23846 131 jeremybenn
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23847
    TCLHDIR="-I${ac_cv_c_tclh}"
23848
  fi
23849
fi
23850
 
23851
 
23852
 
23853
 
23854
#
23855
# Ok, lets find the tk source trees so we can use the headers
23856
# If the directory (presumably symlink) named "tk" exists, use that one
23857
# in preference to any others.  Same logic is used when choosing library
23858
# and again with Tcl. The search order is the best place to look first, then in
23859
# decreasing significance. The loop breaks if the trigger file is found.
23860
# Note the gross little conversion here of srcdir by cd'ing to the found
23861
# directory. This converts the path from a relative to an absolute, so
23862
# recursive cache variables for the path will work right. We check all
23863
# the possible paths in one loop rather than many seperate loops to speed
23864
# things up.
23865
# the alternative search directory is involked by --with-tkinclude
23866
#
23867
no_tk=true
23868 225 jeremybenn
echo "$as_me:$LINENO: checking for Tk private headers" >&5
23869
echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
23870 131 jeremybenn
 
23871 225 jeremybenn
# Check whether --with-tkinclude or --without-tkinclude was given.
23872 131 jeremybenn
if test "${with_tkinclude+set}" = set; then
23873 225 jeremybenn
  withval="$with_tkinclude"
23874
  with_tkinclude=${withval}
23875
fi;
23876 131 jeremybenn
if test "${ac_cv_c_tkh+set}" = set; then
23877 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23878 131 jeremybenn
else
23879
 
23880
# first check to see if --with-tkinclude was specified
23881
if test x"${with_tkinclude}" != x ; then
23882
  if test -f ${with_tkinclude}/tk.h ; then
23883
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23884
  elif test -f ${with_tkinclude}/generic/tk.h ; then
23885
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23886
  else
23887 225 jeremybenn
    { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23888
echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23889 131 jeremybenn
   { (exit 1); exit 1; }; }
23890
  fi
23891
fi
23892
 
23893
# next check if it came with Tk configuration file
23894
if test x"${ac_cv_c_tkconfig}" = x ; then
23895
  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23896
    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23897
  fi
23898
fi
23899
 
23900
# next check in private source directory
23901
#
23902
# since ls returns lowest version numbers first, reverse its output
23903
if test x"${ac_cv_c_tkh}" = x ; then
23904
  for i in \
23905
                ${srcdir}/../tk \
23906
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23907
                ${srcdir}/../../tk \
23908
                `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23909
                ${srcdir}/../../../tk \
23910
                `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23911
    if test -f $i/generic/tk.h ; then
23912
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
23913
      break
23914
    fi
23915
  done
23916
fi
23917
# finally check in a few common install locations
23918
#
23919
# since ls returns lowest version numbers first, reverse its output
23920
if test x"${ac_cv_c_tkh}" = x ; then
23921
  for i in \
23922
                `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23923
                `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23924
                /usr/local/src/tk \
23925
                /usr/local/lib/tk \
23926
                ${prefix}/include ; do
23927
    if test -f $i/generic/tk.h ; then
23928
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
23929
      break
23930
    fi
23931
  done
23932
fi
23933
# see if one is installed
23934
if test x"${ac_cv_c_tkh}" = x ; then
23935
   if test "${ac_cv_header_tk_h+set}" = set; then
23936 225 jeremybenn
  echo "$as_me:$LINENO: checking for tk.h" >&5
23937
echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23938 131 jeremybenn
if test "${ac_cv_header_tk_h+set}" = set; then
23939 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
23940 131 jeremybenn
fi
23941 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23942
echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23943 131 jeremybenn
else
23944
  # Is the header compilable?
23945 225 jeremybenn
echo "$as_me:$LINENO: checking tk.h usability" >&5
23946
echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
23947 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
23948
/* confdefs.h.  */
23949
_ACEOF
23950
cat confdefs.h >>conftest.$ac_ext
23951
cat >>conftest.$ac_ext <<_ACEOF
23952
/* end confdefs.h.  */
23953
$ac_includes_default
23954
#include 
23955
_ACEOF
23956
rm -f conftest.$ac_objext
23957 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23958
  (eval $ac_compile) 2>conftest.er1
23959 131 jeremybenn
  ac_status=$?
23960
  grep -v '^ *+' conftest.er1 >conftest.err
23961
  rm -f conftest.er1
23962
  cat conftest.err >&5
23963 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964
  (exit $ac_status); } &&
23965
         { ac_try='test -z "$ac_c_werror_flag"
23966
                         || test ! -s conftest.err'
23967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968
  (eval $ac_try) 2>&5
23969
  ac_status=$?
23970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971
  (exit $ac_status); }; } &&
23972
         { ac_try='test -s conftest.$ac_objext'
23973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974
  (eval $ac_try) 2>&5
23975
  ac_status=$?
23976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977
  (exit $ac_status); }; }; then
23978 131 jeremybenn
  ac_header_compiler=yes
23979
else
23980 225 jeremybenn
  echo "$as_me: failed program was:" >&5
23981 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23982
 
23983 225 jeremybenn
ac_header_compiler=no
23984 131 jeremybenn
fi
23985 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23986
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23987
echo "${ECHO_T}$ac_header_compiler" >&6
23988 131 jeremybenn
 
23989
# Is the header present?
23990 225 jeremybenn
echo "$as_me:$LINENO: checking tk.h presence" >&5
23991
echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
23992 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
23993
/* confdefs.h.  */
23994
_ACEOF
23995
cat confdefs.h >>conftest.$ac_ext
23996
cat >>conftest.$ac_ext <<_ACEOF
23997
/* end confdefs.h.  */
23998
#include 
23999
_ACEOF
24000 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24001
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24002 131 jeremybenn
  ac_status=$?
24003
  grep -v '^ *+' conftest.er1 >conftest.err
24004
  rm -f conftest.er1
24005
  cat conftest.err >&5
24006 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007
  (exit $ac_status); } >/dev/null; then
24008
  if test -s conftest.err; then
24009
    ac_cpp_err=$ac_c_preproc_warn_flag
24010
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24011
  else
24012
    ac_cpp_err=
24013
  fi
24014
else
24015
  ac_cpp_err=yes
24016
fi
24017
if test -z "$ac_cpp_err"; then
24018 131 jeremybenn
  ac_header_preproc=yes
24019
else
24020 225 jeremybenn
  echo "$as_me: failed program was:" >&5
24021 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24022
 
24023
  ac_header_preproc=no
24024
fi
24025
rm -f conftest.err conftest.$ac_ext
24026 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24027
echo "${ECHO_T}$ac_header_preproc" >&6
24028 131 jeremybenn
 
24029
# So?  What about this header?
24030
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24031
  yes:no: )
24032 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24033
echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24034
    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24035
echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24036 131 jeremybenn
    ac_header_preproc=yes
24037
    ;;
24038
  no:yes:* )
24039 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24040
echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24041
    { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
24042
echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
24043
    { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24044
echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24045
    { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
24046
echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24047
    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24048
echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24049
    { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24050
echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24051
    (
24052
      cat <<\_ASBOX
24053
## ------------------------------------------ ##
24054
## Report this to the AC_PACKAGE_NAME lists.  ##
24055
## ------------------------------------------ ##
24056
_ASBOX
24057
    ) |
24058
      sed "s/^/$as_me: WARNING:     /" >&2
24059 131 jeremybenn
    ;;
24060
esac
24061 225 jeremybenn
echo "$as_me:$LINENO: checking for tk.h" >&5
24062
echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24063 131 jeremybenn
if test "${ac_cv_header_tk_h+set}" = set; then
24064 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
24065 131 jeremybenn
else
24066
  ac_cv_header_tk_h=$ac_header_preproc
24067
fi
24068 225 jeremybenn
echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24069
echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24070 131 jeremybenn
 
24071
fi
24072 225 jeremybenn
if test $ac_cv_header_tk_h = yes; then
24073 131 jeremybenn
  ac_cv_c_tkh=installed
24074
else
24075
  ac_cv_c_tkh=""
24076
fi
24077
 
24078
 
24079
fi
24080
 
24081
fi
24082
 
24083
if test x"${ac_cv_c_tkh}" != x ; then
24084
  no_tk=""
24085
  if test x"${ac_cv_c_tkh}" = x"installed" ; then
24086 225 jeremybenn
    echo "$as_me:$LINENO: result: is installed" >&5
24087
echo "${ECHO_T}is installed" >&6
24088 131 jeremybenn
    TKHDIR=""
24089
  else
24090 225 jeremybenn
    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24091
echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
24092 131 jeremybenn
    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24093
    TKHDIR="-I${ac_cv_c_tkh}"
24094
  fi
24095
else
24096
  TKHDIR="# no Tk directory found"
24097 225 jeremybenn
  { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24098
echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24099 131 jeremybenn
  no_tk=true
24100
fi
24101
 
24102
 
24103
 
24104
 
24105 225 jeremybenn
echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24106
echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
24107 131 jeremybenn
if test x"${ac_cv_c_itclh}" = x ; then
24108
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24109
    if test -f $i/generic/itcl.h ; then
24110
      ac_cv_c_itclh=`(cd $i/generic; pwd)`
24111
      break
24112
    fi
24113
  done
24114
fi
24115
if test x"${ac_cv_c_itclh}" = x ; then
24116
  ITCLHDIR="# no Itcl private headers found"
24117 225 jeremybenn
  { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24118
echo "$as_me: error: Can't find Itcl private headers" >&2;}
24119 131 jeremybenn
   { (exit 1); exit 1; }; }
24120
fi
24121
if test x"${ac_cv_c_itclh}" != x ; then
24122
     ITCLHDIR="-I${ac_cv_c_itclh}"
24123
fi
24124
# should always be here
24125
#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
24126
 
24127
#AC_SUBST(ITCLLIB)
24128
 
24129
 
24130 225 jeremybenn
echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24131
echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
24132 131 jeremybenn
if test x"${ac_cv_c_itkh}" = x ; then
24133
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24134
    if test -f $i/generic/itk.h ; then
24135
      ac_cv_c_itkh=`(cd $i/generic; pwd)`
24136
      break
24137
    fi
24138
  done
24139
fi
24140
if test x"${ac_cv_c_itkh}" = x ; then
24141
  ITKHDIR="# no Itk private headers found"
24142 225 jeremybenn
  { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24143
echo "$as_me: error: Can't find Itk private headers" >&2;}
24144 131 jeremybenn
   { (exit 1); exit 1; }; }
24145
fi
24146
if test x"${ac_cv_c_itkh}" != x ; then
24147
     ITKHDIR="-I${ac_cv_c_itkh}"
24148
fi
24149
# should always be here
24150
#     ITKLIB="../itcl/itk/unix/libitk.a"
24151
 
24152
#AC_SUBST(ITKLIB)
24153
 
24154
 
24155
 
24156
           # now look for Tk library stuff
24157
 
24158
           tkdir="../tk/${configdir}/"
24159
 
24160
           TK_DEPS="${tkdir}${TK_LIB_FILE}"
24161
 
24162
           # now look for Itcl library stuff
24163
 
24164
 
24165
#
24166
# Ok, lets find the itcl configuration
24167
# First, look for one uninstalled.
24168
# the alternative search directory is invoked by --with-itclconfig
24169
#
24170
 
24171
if test x"${no_itcl}" = x ; then
24172
  # we reset no_itcl in case something fails here
24173
  no_itcl=true
24174
 
24175 225 jeremybenn
# Check whether --with-itclconfig or --without-itclconfig was given.
24176 131 jeremybenn
if test "${with_itclconfig+set}" = set; then
24177 225 jeremybenn
  withval="$with_itclconfig"
24178
  with_itclconfig=${withval}
24179
fi;
24180
  echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24181
echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
24182 131 jeremybenn
  if test "${ac_cv_c_itclconfig+set}" = set; then
24183 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
24184 131 jeremybenn
else
24185
 
24186
 
24187
  # First check to see if --with-itclconfig was specified.
24188
  if test x"${with_itclconfig}" != x ; then
24189
    if test -f "${with_itclconfig}/itclConfig.sh" ; then
24190
      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24191
    else
24192 225 jeremybenn
      { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24193
echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24194 131 jeremybenn
   { (exit 1); exit 1; }; }
24195
    fi
24196
  fi
24197
 
24198
  # then check for a private Itcl library
24199
  if test x"${ac_cv_c_itclconfig}" = x ; then
24200
    for i in \
24201
                ../itcl/itcl \
24202
                `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24203
                ../../itcl \
24204
                `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24205
                ../../../itcl \
24206
                `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24207
      if test -f "$i/itclConfig.sh" ; then
24208
        ac_cv_c_itclconfig=`(cd $i; pwd)`
24209
        break
24210
      fi
24211
    done
24212
  fi
24213
  # check in a few common install locations
24214
  if test x"${ac_cv_c_itclconfig}" = x ; then
24215
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24216
      if test -f "$i/itclConfig.sh" ; then
24217
        ac_cv_c_itclconfig=`(cd $i; pwd)`
24218
        break
24219
      fi
24220
    done
24221
  fi
24222
  # check in a few other private locations
24223
  if test x"${ac_cv_c_itclconfig}" = x ; then
24224
    for i in \
24225
                ${srcdir}/../itcl/itcl \
24226
                `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24227
      if test -f "$i/itclConfig.sh" ; then
24228
        ac_cv_c_itclconfig=`(cd $i; pwd)`
24229
        break
24230
      fi
24231
    done
24232
  fi
24233
 
24234
fi
24235
 
24236
  if test x"${ac_cv_c_itclconfig}" = x ; then
24237
    ITCLCONFIG="# no Itcl configs found"
24238 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24239
echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
24240 131 jeremybenn
  else
24241
    no_itcl=
24242
    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24243 225 jeremybenn
    echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24244
echo "${ECHO_T}found $ITCLCONFIG" >&6
24245 131 jeremybenn
  fi
24246
fi
24247
 
24248
           if test -z "${no_itcl}"; then
24249
 
24250
    if test -f "$ITCLCONFIG" ; then
24251
      . $ITCLCONFIG
24252
    fi
24253
 
24254
 
24255
 
24256
 
24257
 
24258
 
24259
 
24260
 
24261
 
24262
 
24263
 
24264
 
24265
             ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24266
             ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24267
           fi
24268
 
24269
 
24270
           # now look for Itk library stuff
24271
 
24272
#
24273
# Ok, lets find the itk configuration
24274
# First, look for one uninstalled.
24275
# the alternative search directory is invoked by --with-itkconfig
24276
#
24277
 
24278
if test x"${no_itk}" = x ; then
24279
  # we reset no_itk in case something fails here
24280
  no_itk=true
24281
 
24282 225 jeremybenn
# Check whether --with-itkconfig or --without-itkconfig was given.
24283 131 jeremybenn
if test "${with_itkconfig+set}" = set; then
24284 225 jeremybenn
  withval="$with_itkconfig"
24285
  with_itkconfig=${withval}
24286
fi;
24287
  echo "$as_me:$LINENO: checking for Itk configuration" >&5
24288
echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
24289 131 jeremybenn
  if test "${ac_cv_c_itkconfig+set}" = set; then
24290 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
24291 131 jeremybenn
else
24292
 
24293
 
24294
  # First check to see if --with-itkconfig was specified.
24295
  if test x"${with_itkconfig}" != x ; then
24296
    if test -f "${with_itkconfig}/itkConfig.sh" ; then
24297
      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24298
    else
24299 225 jeremybenn
      { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24300
echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24301 131 jeremybenn
   { (exit 1); exit 1; }; }
24302
    fi
24303
  fi
24304
 
24305
  # then check for a private Itk library
24306
  if test x"${ac_cv_c_itkconfig}" = x ; then
24307
    for i in \
24308
                ../itcl/itk \
24309
                `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24310
                ../../itk \
24311
                `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24312
                ../../../itk \
24313
                `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24314
      if test -f "$i/itkConfig.sh" ; then
24315
        ac_cv_c_itkconfig=`(cd $i; pwd)`
24316
        break
24317
      fi
24318
    done
24319
  fi
24320
  # check in a few common install locations
24321
  if test x"${ac_cv_c_itkconfig}" = x ; then
24322
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24323
      if test -f "$i/itkConfig.sh" ; then
24324
        ac_cv_c_itkconfig=`(cd $i; pwd)`
24325
        break
24326
      fi
24327
    done
24328
  fi
24329
  # check in a few other private locations
24330
  if test x"${ac_cv_c_itkconfig}" = x ; then
24331
    for i in \
24332
                ${srcdir}/../itcl/itk \
24333
                `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24334
      if test -f "$i/itkConfig.sh" ; then
24335
        ac_cv_c_itkconfig=`(cd $i; pwd)`
24336
        break
24337
      fi
24338
    done
24339
  fi
24340
 
24341
fi
24342
 
24343
  if test x"${ac_cv_c_itkconfig}" = x ; then
24344
    ITKCONFIG="# no Itk configs found"
24345 225 jeremybenn
    { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24346
echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24347 131 jeremybenn
  else
24348
    no_itk=
24349
    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24350 225 jeremybenn
    echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24351
echo "${ECHO_T}found $ITKCONFIG" >&6
24352 131 jeremybenn
  fi
24353
fi
24354
 
24355
 
24356
           if test -z "${no_itcl}"; then
24357
 
24358
    if test -f "$ITKCONFIG" ; then
24359
      . $ITKCONFIG
24360
    fi
24361
 
24362
 
24363
 
24364
 
24365
 
24366
 
24367
 
24368
 
24369
 
24370
 
24371
 
24372
 
24373
             ITKLIB="${ITK_BUILD_LIB_SPEC}"
24374
             ITK_DEPS="${ITK_LIB_FULL_PATH}"
24375
           fi
24376
 
24377
           ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24378
 
24379
           # Include some libraries that Tcl and Tk want.
24380
           TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24381
           # Yes, the ordering seems wrong here.  But it isn't.
24382
           # TK_LIBS is the list of libraries that need to be linked
24383
           # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
24384
           # were in LIBS then any link tests after this point would
24385
           # try to include things like `$(LIBGUI)', which wouldn't work.
24386
           GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24387
 
24388
           CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24389
           CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24390
           CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24391
           CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24392
           CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24393
           CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24394
           CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24395
 
24396
           if test x$gdb_cv_os_cygwin = xyes; then
24397
              WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24398
              WIN32LDAPP="-Wl,--subsystem,console"
24399
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24400
           fi
24401
        fi
24402
    fi
24403
 
24404
 
24405 225 jeremybenn
 
24406
subdirs="$subdirs gdbtk"
24407
 
24408 131 jeremybenn
fi
24409
 
24410
 
24411
 
24412
 
24413
 
24414
 
24415
 
24416
 
24417
 
24418
 
24419
 
24420
 
24421
 
24422
 
24423 225 jeremybenn
echo "$as_me:$LINENO: checking for X" >&5
24424
echo $ECHO_N "checking for X... $ECHO_C" >&6
24425 131 jeremybenn
 
24426
 
24427 225 jeremybenn
# Check whether --with-x or --without-x was given.
24428 131 jeremybenn
if test "${with_x+set}" = set; then
24429 225 jeremybenn
  withval="$with_x"
24430 131 jeremybenn
 
24431 225 jeremybenn
fi;
24432 131 jeremybenn
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24433
if test "x$with_x" = xno; then
24434
  # The user explicitly disabled X.
24435
  have_x=disabled
24436
else
24437 225 jeremybenn
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24438
    # Both variables are already set.
24439
    have_x=yes
24440
  else
24441
    if test "${ac_cv_have_x+set}" = set; then
24442
  echo $ECHO_N "(cached) $ECHO_C" >&6
24443 131 jeremybenn
else
24444
  # One or both of the vars are not set, and there is no cached value.
24445
ac_x_includes=no ac_x_libraries=no
24446 225 jeremybenn
rm -fr conftest.dir
24447 131 jeremybenn
if mkdir conftest.dir; then
24448
  cd conftest.dir
24449 225 jeremybenn
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24450 131 jeremybenn
  cat >Imakefile <<'_ACEOF'
24451 225 jeremybenn
acfindx:
24452
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24453 131 jeremybenn
_ACEOF
24454 225 jeremybenn
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24455 131 jeremybenn
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24456 225 jeremybenn
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24457 131 jeremybenn
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24458 225 jeremybenn
    for ac_extension in a so sl; do
24459
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24460
         test -f $ac_im_libdir/libX11.$ac_extension; then
24461 131 jeremybenn
        ac_im_usrlibdir=$ac_im_libdir; break
24462
      fi
24463
    done
24464
    # Screen out bogus values from the imake configuration.  They are
24465
    # bogus both because they are the default anyway, and because
24466
    # using them would break gcc on systems where it needs fixed includes.
24467
    case $ac_im_incroot in
24468 225 jeremybenn
        /usr/include) ;;
24469 131 jeremybenn
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24470
    esac
24471
    case $ac_im_usrlibdir in
24472 225 jeremybenn
        /usr/lib | /lib) ;;
24473 131 jeremybenn
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24474
    esac
24475
  fi
24476
  cd ..
24477 225 jeremybenn
  rm -fr conftest.dir
24478 131 jeremybenn
fi
24479
 
24480
# Standard set of common directories for X headers.
24481
# Check X11 before X11Rn because it is often a symlink to the current release.
24482
ac_x_header_dirs='
24483
/usr/X11/include
24484
/usr/X11R6/include
24485
/usr/X11R5/include
24486
/usr/X11R4/include
24487
 
24488
/usr/include/X11
24489
/usr/include/X11R6
24490
/usr/include/X11R5
24491
/usr/include/X11R4
24492
 
24493
/usr/local/X11/include
24494
/usr/local/X11R6/include
24495
/usr/local/X11R5/include
24496
/usr/local/X11R4/include
24497
 
24498
/usr/local/include/X11
24499
/usr/local/include/X11R6
24500
/usr/local/include/X11R5
24501
/usr/local/include/X11R4
24502
 
24503
/usr/X386/include
24504
/usr/x386/include
24505
/usr/XFree86/include/X11
24506
 
24507
/usr/include
24508
/usr/local/include
24509
/usr/unsupported/include
24510
/usr/athena/include
24511
/usr/local/x11r5/include
24512
/usr/lpp/Xamples/include
24513
 
24514
/usr/openwin/include
24515
/usr/openwin/share/include'
24516
 
24517
if test "$ac_x_includes" = no; then
24518 225 jeremybenn
  # Guess where to find include files, by looking for Intrinsic.h.
24519 131 jeremybenn
  # First, try using that file with no special directory specified.
24520
  cat >conftest.$ac_ext <<_ACEOF
24521
/* confdefs.h.  */
24522
_ACEOF
24523
cat confdefs.h >>conftest.$ac_ext
24524
cat >>conftest.$ac_ext <<_ACEOF
24525
/* end confdefs.h.  */
24526 225 jeremybenn
#include 
24527 131 jeremybenn
_ACEOF
24528 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24529
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24530 131 jeremybenn
  ac_status=$?
24531
  grep -v '^ *+' conftest.er1 >conftest.err
24532
  rm -f conftest.er1
24533
  cat conftest.err >&5
24534 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535
  (exit $ac_status); } >/dev/null; then
24536
  if test -s conftest.err; then
24537
    ac_cpp_err=$ac_c_preproc_warn_flag
24538
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24539
  else
24540
    ac_cpp_err=
24541
  fi
24542
else
24543
  ac_cpp_err=yes
24544
fi
24545
if test -z "$ac_cpp_err"; then
24546 131 jeremybenn
  # We can compile using X headers with no special include directory.
24547
ac_x_includes=
24548
else
24549 225 jeremybenn
  echo "$as_me: failed program was:" >&5
24550 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24551
 
24552
  for ac_dir in $ac_x_header_dirs; do
24553 225 jeremybenn
  if test -r "$ac_dir/X11/Intrinsic.h"; then
24554 131 jeremybenn
    ac_x_includes=$ac_dir
24555
    break
24556
  fi
24557
done
24558
fi
24559
rm -f conftest.err conftest.$ac_ext
24560
fi # $ac_x_includes = no
24561
 
24562
if test "$ac_x_libraries" = no; then
24563
  # Check for the libraries.
24564
  # See if we find them without any special options.
24565
  # Don't add to $LIBS permanently.
24566
  ac_save_LIBS=$LIBS
24567 225 jeremybenn
  LIBS="-lXt $LIBS"
24568 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
24569
/* confdefs.h.  */
24570
_ACEOF
24571
cat confdefs.h >>conftest.$ac_ext
24572
cat >>conftest.$ac_ext <<_ACEOF
24573
/* end confdefs.h.  */
24574 225 jeremybenn
#include 
24575 131 jeremybenn
int
24576
main ()
24577
{
24578 225 jeremybenn
XtMalloc (0)
24579 131 jeremybenn
  ;
24580
  return 0;
24581
}
24582
_ACEOF
24583
rm -f conftest.$ac_objext conftest$ac_exeext
24584 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585
  (eval $ac_link) 2>conftest.er1
24586 131 jeremybenn
  ac_status=$?
24587
  grep -v '^ *+' conftest.er1 >conftest.err
24588
  rm -f conftest.er1
24589
  cat conftest.err >&5
24590 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591
  (exit $ac_status); } &&
24592
         { ac_try='test -z "$ac_c_werror_flag"
24593
                         || test ! -s conftest.err'
24594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595
  (eval $ac_try) 2>&5
24596
  ac_status=$?
24597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598
  (exit $ac_status); }; } &&
24599
         { ac_try='test -s conftest$ac_exeext'
24600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601
  (eval $ac_try) 2>&5
24602
  ac_status=$?
24603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604
  (exit $ac_status); }; }; then
24605 131 jeremybenn
  LIBS=$ac_save_LIBS
24606
# We can link X programs with no special library path.
24607
ac_x_libraries=
24608
else
24609 225 jeremybenn
  echo "$as_me: failed program was:" >&5
24610 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24611
 
24612 225 jeremybenn
LIBS=$ac_save_LIBS
24613
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24614 131 jeremybenn
do
24615
  # Don't even attempt the hair of trying to link an X program!
24616 225 jeremybenn
  for ac_extension in a so sl; do
24617
    if test -r $ac_dir/libXt.$ac_extension; then
24618 131 jeremybenn
      ac_x_libraries=$ac_dir
24619
      break 2
24620
    fi
24621
  done
24622
done
24623
fi
24624 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
24625 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
24626
fi # $ac_x_libraries = no
24627
 
24628 225 jeremybenn
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24629
  # Didn't find X anywhere.  Cache the known absence of X.
24630
  ac_cv_have_x="have_x=no"
24631
else
24632
  # Record where we found X for the cache.
24633
  ac_cv_have_x="have_x=yes \
24634
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24635 131 jeremybenn
fi
24636 225 jeremybenn
fi
24637
 
24638
  fi
24639 131 jeremybenn
  eval "$ac_cv_have_x"
24640
fi # $with_x != no
24641
 
24642
if test "$have_x" != yes; then
24643 225 jeremybenn
  echo "$as_me:$LINENO: result: $have_x" >&5
24644
echo "${ECHO_T}$have_x" >&6
24645 131 jeremybenn
  no_x=yes
24646
else
24647
  # If each of the values was on the command line, it overrides each guess.
24648
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24649
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24650
  # Update the cache value to reflect the command line values.
24651 225 jeremybenn
  ac_cv_have_x="have_x=yes \
24652
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24653
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24654
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24655 131 jeremybenn
fi
24656
 
24657
 
24658
# Check whether we should enable the TUI, but only do so if we really
24659
# can.
24660
if test x"$enable_tui" = xyes; then
24661
  if test -d $srcdir/tui; then
24662
    if test "$ac_cv_search_waddstr" != no; then
24663
      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24664
      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24665
      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24666
      CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24667
      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24668
      CONFIG_ALL="${CONFIG_ALL} all-tui"
24669
      CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24670
      CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24671
      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24672
    else
24673 225 jeremybenn
      { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24674
echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
24675 131 jeremybenn
    fi
24676
  fi
24677
fi
24678
 
24679
# Unlike the sim directory, whether a simulator is linked is controlled by
24680
# presence of a gdb_sim definition in the target configure.tgt entry.
24681
# This code just checks for a few cases where we'd like to ignore those
24682
# definitions, even when they're present in the '.mt' file.  These cases
24683
# are when --disable-sim is specified, or if the simulator directory is
24684
# not part of the source tree.
24685
#
24686 225 jeremybenn
# Check whether --enable-sim or --disable-sim was given.
24687 131 jeremybenn
if test "${enable_sim+set}" = set; then
24688 225 jeremybenn
  enableval="$enable_sim"
24689
  echo "enable_sim = $enable_sim";
24690 131 jeremybenn
 echo "enableval = ${enableval}";
24691
 case "${enableval}" in
24692
  yes) ignore_sim=false ;;
24693
  no)  ignore_sim=true ;;
24694
  *)   ignore_sim=false ;;
24695
 esac
24696
else
24697
  ignore_sim=false
24698 225 jeremybenn
fi;
24699 131 jeremybenn
 
24700
if test ! -d "${srcdir}/../sim"; then
24701
  ignore_sim=true
24702
fi
24703
 
24704
SIM=
24705
SIM_OBS=
24706
if test "${ignore_sim}" = "false"; then
24707
  if test x"${gdb_sim}" != x ; then
24708
    SIM="${gdb_sim}"
24709
    SIM_OBS="remote-sim.o"
24710
 
24711
cat >>confdefs.h <<\_ACEOF
24712
#define WITH_SIM 1
24713
_ACEOF
24714
 
24715
  fi
24716
fi
24717
 
24718
 
24719
 
24720 225 jeremybenn
# Option to explicitly specify the location of the Or1ksim installation
24721 131 jeremybenn
 
24722 225 jeremybenn
# Check whether --with-or1ksim or --without-or1ksim was given.
24723
if test "${with_or1ksim+set}" = set; then
24724
  withval="$with_or1ksim"
24725 131 jeremybenn
 
24726 225 jeremybenn
fi;
24727
if test x"$with_or1ksim" != x
24728
then
24729
    CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-rpath -Wl,$with_or1ksim/lib -L$with_or1ksim/lib -lsim"
24730 131 jeremybenn
 
24731 225 jeremybenn
fi
24732 131 jeremybenn
 
24733
 
24734
 
24735
 
24736
 
24737
 
24738
 
24739
 
24740 225 jeremybenn
 
24741
 
24742
 
24743
 
24744 131 jeremybenn
# List of host floatformats.
24745
 
24746
cat >>confdefs.h <<_ACEOF
24747
#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
24748
_ACEOF
24749
 
24750
 
24751
cat >>confdefs.h <<_ACEOF
24752
#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
24753
_ACEOF
24754
 
24755
 
24756
cat >>confdefs.h <<_ACEOF
24757
#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
24758
_ACEOF
24759
 
24760
 
24761
# target_subdir is used by the testsuite to find the target libraries.
24762
target_subdir=
24763
if test "${host}" != "${target}"; then
24764
    target_subdir="${target_alias}/"
24765
fi
24766
 
24767
 
24768
frags=
24769
if test "${gdb_native}" = "yes"; then
24770
  host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24771
  if test ! -f ${host_makefile_frag}; then
24772 225 jeremybenn
    { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24773
echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24774 131 jeremybenn
   { (exit 1); exit 1; }; }
24775
  fi
24776
  frags="$frags $host_makefile_frag"
24777
else
24778
  host_makefile_frag=/dev/null
24779
fi
24780
 
24781
 
24782
 
24783
 
24784
if test "${gdb_native}" = "yes"; then
24785
# We pick this up from the host configuration file (.mh) because we
24786
# do not have a native configuration Makefile fragment.
24787
nativefile=`sed -n '
24788
s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
24789
' ${host_makefile_frag}`
24790
fi
24791
 
24792
 
24793
if test x"${gdb_osabi}" != x ; then
24794
 
24795
cat >>confdefs.h <<_ACEOF
24796
#define GDB_OSABI_DEFAULT $gdb_osabi
24797
_ACEOF
24798
 
24799
fi
24800
 
24801
# Enable multi-ice-gdb-server.
24802 225 jeremybenn
# Check whether --enable-multi-ice or --disable-multi-ice was given.
24803 131 jeremybenn
if test "${enable_multi_ice+set}" = set; then
24804 225 jeremybenn
  enableval="$enable_multi_ice"
24805
  case $enableval in
24806 131 jeremybenn
    yes | no)
24807
      ;;
24808 225 jeremybenn
    *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24809
echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24810 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
24811
  esac
24812 225 jeremybenn
fi;
24813 131 jeremybenn
if test "x$enable_multi_ice" = xyes; then
24814
 
24815 225 jeremybenn
 
24816
subdirs="$subdirs multi-ice"
24817
 
24818 131 jeremybenn
fi
24819
 
24820
# We only build gdbserver automatically in a native configuration.
24821
if test "$gdb_native" = "yes"; then
24822 225 jeremybenn
  echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24823
echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
24824 131 jeremybenn
  if test "x$build_gdbserver" = xyes; then
24825 225 jeremybenn
    echo "$as_me:$LINENO: result: yes" >&5
24826
echo "${ECHO_T}yes" >&6
24827 131 jeremybenn
 
24828 225 jeremybenn
 
24829
subdirs="$subdirs gdbserver"
24830
 
24831 131 jeremybenn
  else
24832 225 jeremybenn
    echo "$as_me:$LINENO: result: no" >&5
24833
echo "${ECHO_T}no" >&6
24834 131 jeremybenn
  fi
24835
fi
24836
 
24837
# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24838
# to an empty version.
24839
 
24840
files=
24841
links=
24842
 
24843
rm -f nm.h
24844
nm_h=""
24845
if test "${nativefile}" != ""; then
24846
    nm_h=nm.h
24847
    case "${nativefile}" in
24848
      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24849
      * ) GDB_NM_FILE="${nativefile}"
24850
    esac
24851
    files="${files} ${GDB_NM_FILE}"
24852
    links="${links} nm.h"
24853
 
24854
cat >>confdefs.h <<_ACEOF
24855
#define GDB_NM_FILE "${GDB_NM_FILE}"
24856
_ACEOF
24857
 
24858
fi
24859
 
24860
 
24861
ac_sources="$files"
24862
ac_dests="$links"
24863
while test -n "$ac_sources"; do
24864
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24865
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
24866
  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24867
done
24868 225 jeremybenn
          ac_config_links="$ac_config_links $ac_config_links_1"
24869 131 jeremybenn
 
24870
 
24871
 
24872
 
24873
 
24874
 
24875
cat >>confdefs.h <<\_ACEOF
24876
#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24877
_ACEOF
24878
 
24879
 
24880
 
24881
 
24882
 
24883 225 jeremybenn
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24884 131 jeremybenn
if test "${with_libiconv_prefix+set}" = set; then
24885 225 jeremybenn
  withval="$with_libiconv_prefix"
24886
 
24887 131 jeremybenn
    for dir in `echo "$withval" | tr : ' '`; do
24888
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24889
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24890
    done
24891
 
24892 225 jeremybenn
fi;
24893 131 jeremybenn
 
24894 225 jeremybenn
  echo "$as_me:$LINENO: checking for iconv" >&5
24895
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24896 131 jeremybenn
if test "${am_cv_func_iconv+set}" = set; then
24897 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
24898 131 jeremybenn
else
24899
 
24900
    am_cv_func_iconv="no, consider installing GNU libiconv"
24901
    am_cv_lib_iconv=no
24902
    cat >conftest.$ac_ext <<_ACEOF
24903
/* confdefs.h.  */
24904
_ACEOF
24905
cat confdefs.h >>conftest.$ac_ext
24906
cat >>conftest.$ac_ext <<_ACEOF
24907
/* end confdefs.h.  */
24908
#include 
24909
#include 
24910
int
24911
main ()
24912
{
24913
iconv_t cd = iconv_open("","");
24914
       iconv(cd,NULL,NULL,NULL,NULL);
24915
       iconv_close(cd);
24916
  ;
24917
  return 0;
24918
}
24919
_ACEOF
24920
rm -f conftest.$ac_objext conftest$ac_exeext
24921 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24922
  (eval $ac_link) 2>conftest.er1
24923 131 jeremybenn
  ac_status=$?
24924
  grep -v '^ *+' conftest.er1 >conftest.err
24925
  rm -f conftest.er1
24926
  cat conftest.err >&5
24927 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928
  (exit $ac_status); } &&
24929
         { ac_try='test -z "$ac_c_werror_flag"
24930
                         || test ! -s conftest.err'
24931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932
  (eval $ac_try) 2>&5
24933
  ac_status=$?
24934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935
  (exit $ac_status); }; } &&
24936
         { ac_try='test -s conftest$ac_exeext'
24937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938
  (eval $ac_try) 2>&5
24939
  ac_status=$?
24940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941
  (exit $ac_status); }; }; then
24942 131 jeremybenn
  am_cv_func_iconv=yes
24943
else
24944 225 jeremybenn
  echo "$as_me: failed program was:" >&5
24945 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24946
 
24947
fi
24948 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
24949 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
24950
    if test "$am_cv_func_iconv" != yes; then
24951
      am_save_LIBS="$LIBS"
24952
      LIBS="$LIBS -liconv"
24953
      cat >conftest.$ac_ext <<_ACEOF
24954
/* confdefs.h.  */
24955
_ACEOF
24956
cat confdefs.h >>conftest.$ac_ext
24957
cat >>conftest.$ac_ext <<_ACEOF
24958
/* end confdefs.h.  */
24959
#include 
24960
#include 
24961
int
24962
main ()
24963
{
24964
iconv_t cd = iconv_open("","");
24965
         iconv(cd,NULL,NULL,NULL,NULL);
24966
         iconv_close(cd);
24967
  ;
24968
  return 0;
24969
}
24970
_ACEOF
24971
rm -f conftest.$ac_objext conftest$ac_exeext
24972 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973
  (eval $ac_link) 2>conftest.er1
24974 131 jeremybenn
  ac_status=$?
24975
  grep -v '^ *+' conftest.er1 >conftest.err
24976
  rm -f conftest.er1
24977
  cat conftest.err >&5
24978 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979
  (exit $ac_status); } &&
24980
         { ac_try='test -z "$ac_c_werror_flag"
24981
                         || test ! -s conftest.err'
24982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983
  (eval $ac_try) 2>&5
24984
  ac_status=$?
24985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986
  (exit $ac_status); }; } &&
24987
         { ac_try='test -s conftest$ac_exeext'
24988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989
  (eval $ac_try) 2>&5
24990
  ac_status=$?
24991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992
  (exit $ac_status); }; }; then
24993 131 jeremybenn
  am_cv_lib_iconv=yes
24994
        am_cv_func_iconv=yes
24995
else
24996 225 jeremybenn
  echo "$as_me: failed program was:" >&5
24997 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24998
 
24999
fi
25000 225 jeremybenn
rm -f conftest.err conftest.$ac_objext \
25001 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
25002
      LIBS="$am_save_LIBS"
25003
    fi
25004
 
25005
fi
25006 225 jeremybenn
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25007
echo "${ECHO_T}$am_cv_func_iconv" >&6
25008 131 jeremybenn
  if test "$am_cv_func_iconv" = yes; then
25009
 
25010
cat >>confdefs.h <<\_ACEOF
25011
#define HAVE_ICONV 1
25012
_ACEOF
25013
 
25014 225 jeremybenn
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
25015
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25016 131 jeremybenn
    if test "${am_cv_proto_iconv+set}" = set; then
25017 225 jeremybenn
  echo $ECHO_N "(cached) $ECHO_C" >&6
25018 131 jeremybenn
else
25019
 
25020
      cat >conftest.$ac_ext <<_ACEOF
25021
/* confdefs.h.  */
25022
_ACEOF
25023
cat confdefs.h >>conftest.$ac_ext
25024
cat >>conftest.$ac_ext <<_ACEOF
25025
/* end confdefs.h.  */
25026
 
25027
#include 
25028
#include 
25029
extern
25030
#ifdef __cplusplus
25031
"C"
25032
#endif
25033
#if defined(__STDC__) || defined(__cplusplus)
25034
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25035
#else
25036
size_t iconv();
25037
#endif
25038
 
25039
int
25040
main ()
25041
{
25042
 
25043
  ;
25044
  return 0;
25045
}
25046
_ACEOF
25047
rm -f conftest.$ac_objext
25048 225 jeremybenn
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25049
  (eval $ac_compile) 2>conftest.er1
25050 131 jeremybenn
  ac_status=$?
25051
  grep -v '^ *+' conftest.er1 >conftest.err
25052
  rm -f conftest.er1
25053
  cat conftest.err >&5
25054 225 jeremybenn
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055
  (exit $ac_status); } &&
25056
         { ac_try='test -z "$ac_c_werror_flag"
25057
                         || test ! -s conftest.err'
25058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059
  (eval $ac_try) 2>&5
25060
  ac_status=$?
25061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062
  (exit $ac_status); }; } &&
25063
         { ac_try='test -s conftest.$ac_objext'
25064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065
  (eval $ac_try) 2>&5
25066
  ac_status=$?
25067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068
  (exit $ac_status); }; }; then
25069 131 jeremybenn
  am_cv_proto_iconv_arg1=""
25070
else
25071 225 jeremybenn
  echo "$as_me: failed program was:" >&5
25072 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
25073
 
25074 225 jeremybenn
am_cv_proto_iconv_arg1="const"
25075 131 jeremybenn
fi
25076 225 jeremybenn
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25077 131 jeremybenn
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
25078
fi
25079
 
25080
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25081 225 jeremybenn
    echo "$as_me:$LINENO: result: ${ac_t:-
25082 131 jeremybenn
         }$am_cv_proto_iconv" >&5
25083 225 jeremybenn
echo "${ECHO_T}${ac_t:-
25084
         }$am_cv_proto_iconv" >&6
25085 131 jeremybenn
 
25086
cat >>confdefs.h <<_ACEOF
25087
#define ICONV_CONST $am_cv_proto_iconv_arg1
25088
_ACEOF
25089
 
25090
  fi
25091
  LIBICONV=
25092
  if test "$am_cv_lib_iconv" = yes; then
25093
    LIBICONV="-liconv"
25094
  fi
25095
 
25096
 
25097
 
25098 225 jeremybenn
                    ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
25099
          ac_config_commands="$ac_config_commands default"
25100 131 jeremybenn
cat >confcache <<\_ACEOF
25101
# This file is a shell script that caches the results of configure
25102
# tests run on this system so they can be shared between configure
25103
# scripts and configure runs, see configure's option --config-cache.
25104
# It is not useful on other systems.  If it contains results you don't
25105
# want to keep, you may remove or edit it.
25106
#
25107
# config.status only pays attention to the cache file if you give it
25108
# the --recheck option to rerun configure.
25109
#
25110
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25111
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25112
# following values.
25113
 
25114
_ACEOF
25115
 
25116
# The following way of writing the cache mishandles newlines in values,
25117
# but we know of no workaround that is simple, portable, and efficient.
25118 225 jeremybenn
# So, don't put newlines in cache variables' values.
25119 131 jeremybenn
# Ultrix sh set writes to stderr and can't be redirected directly,
25120
# and sets the high bit in the cache file unless we assign to the vars.
25121 225 jeremybenn
{
25122 131 jeremybenn
  (set) 2>&1 |
25123 225 jeremybenn
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25124
    *ac_space=\ *)
25125 131 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
25126
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25127
      sed -n \
25128
        "s/'/'\\\\''/g;
25129
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25130 225 jeremybenn
      ;;
25131 131 jeremybenn
    *)
25132
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25133 225 jeremybenn
      sed -n \
25134
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25135 131 jeremybenn
      ;;
25136 225 jeremybenn
    esac;
25137
} |
25138 131 jeremybenn
  sed '
25139
     t clear
25140 225 jeremybenn
     : clear
25141 131 jeremybenn
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25142
     t end
25143 225 jeremybenn
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25144
     : end' >>confcache
25145
if diff $cache_file confcache >/dev/null 2>&1; then :; else
25146
  if test -w $cache_file; then
25147
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25148 131 jeremybenn
    cat confcache >$cache_file
25149
  else
25150 225 jeremybenn
    echo "not updating unwritable cache $cache_file"
25151 131 jeremybenn
  fi
25152
fi
25153
rm -f confcache
25154
 
25155
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25156
# Let make expand exec_prefix.
25157
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25158
 
25159 225 jeremybenn
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25160
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25161
# trailing colons and then remove the whole line if VPATH becomes empty
25162
# (actually we leave an empty line to preserve line numbers).
25163
if test "x$srcdir" = x.; then
25164
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
25165
s/:*\$(srcdir):*/:/;
25166
s/:*\${srcdir}:*/:/;
25167
s/:*@srcdir@:*/:/;
25168
s/^\([^=]*=[     ]*\):*/\1/;
25169
s/:*$//;
25170
s/^[^=]*=[       ]*$//;
25171
}'
25172
fi
25173
 
25174 131 jeremybenn
DEFS=-DHAVE_CONFIG_H
25175
 
25176
ac_libobjs=
25177
ac_ltlibobjs=
25178
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25179
  # 1. Remove the extension, and $U if already installed.
25180 225 jeremybenn
  ac_i=`echo "$ac_i" |
25181
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25182
  # 2. Add them.
25183
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25184
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25185 131 jeremybenn
done
25186
LIBOBJS=$ac_libobjs
25187
 
25188
LTLIBOBJS=$ac_ltlibobjs
25189
 
25190
 
25191
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25192 225 jeremybenn
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25193 131 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
25194 225 jeremybenn
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25195 131 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
25196
   { (exit 1); exit 1; }; }
25197
fi
25198
 
25199
: ${CONFIG_STATUS=./config.status}
25200
ac_clean_files_save=$ac_clean_files
25201
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25202 225 jeremybenn
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25203
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25204
cat >$CONFIG_STATUS <<_ACEOF
25205 131 jeremybenn
#! $SHELL
25206
# Generated by $as_me.
25207
# Run this file to recreate the current configuration.
25208
# Compiler output produced by configure, useful for debugging
25209
# configure, is in config.log if it exists.
25210
 
25211
debug=false
25212
ac_cs_recheck=false
25213
ac_cs_silent=false
25214
SHELL=\${CONFIG_SHELL-$SHELL}
25215
_ACEOF
25216
 
25217 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
25218 131 jeremybenn
## --------------------- ##
25219
## M4sh Initialization.  ##
25220
## --------------------- ##
25221
 
25222 225 jeremybenn
# Be Bourne compatible
25223 131 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25224
  emulate sh
25225
  NULLCMD=:
25226 225 jeremybenn
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25227 131 jeremybenn
  # is contrary to our usage.  Disable this feature.
25228
  alias -g '${1+"$@"}'='"$@"'
25229 225 jeremybenn
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25230
  set -o posix
25231 131 jeremybenn
fi
25232 225 jeremybenn
DUALCASE=1; export DUALCASE # for MKS sh
25233 131 jeremybenn
 
25234
# Support unset when possible.
25235
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25236
  as_unset=unset
25237
else
25238
  as_unset=false
25239
fi
25240
 
25241
 
25242
# Work around bugs in pre-3.0 UWIN ksh.
25243 225 jeremybenn
$as_unset ENV MAIL MAILPATH
25244 131 jeremybenn
PS1='$ '
25245
PS2='> '
25246
PS4='+ '
25247
 
25248
# NLS nuisances.
25249 225 jeremybenn
for as_var in \
25250
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25251
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25252
  LC_TELEPHONE LC_TIME
25253
do
25254
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25255
    eval $as_var=C; export $as_var
25256
  else
25257
    $as_unset $as_var
25258
  fi
25259
done
25260 131 jeremybenn
 
25261
# Required to use basename.
25262 225 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1; then
25263 131 jeremybenn
  as_expr=expr
25264
else
25265
  as_expr=false
25266
fi
25267
 
25268 225 jeremybenn
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25269 131 jeremybenn
  as_basename=basename
25270
else
25271
  as_basename=false
25272
fi
25273
 
25274
 
25275
# Name of the executable.
25276 225 jeremybenn
as_me=`$as_basename "$0" ||
25277 131 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25278
         X"$0" : 'X\(//\)$' \| \
25279 225 jeremybenn
         X"$0" : 'X\(/\)$' \| \
25280
         .     : '\(.\)' 2>/dev/null ||
25281
echo X/"$0" |
25282
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25283
          /^X\/\(\/\/\)$/{ s//\1/; q; }
25284
          /^X\/\(\/\).*/{ s//\1/; q; }
25285
          s/.*/./; q'`
25286 131 jeremybenn
 
25287
 
25288 225 jeremybenn
# PATH needs CR, and LINENO needs CR and PATH.
25289
# Avoid depending upon Character Ranges.
25290
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25291
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25292
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25293
as_cr_digits='0123456789'
25294
as_cr_alnum=$as_cr_Letters$as_cr_digits
25295 131 jeremybenn
 
25296 225 jeremybenn
# The user is always right.
25297
if test "${PATH_SEPARATOR+set}" != set; then
25298
  echo "#! /bin/sh" >conf$$.sh
25299
  echo  "exit 0"   >>conf$$.sh
25300
  chmod +x conf$$.sh
25301
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25302
    PATH_SEPARATOR=';'
25303
  else
25304
    PATH_SEPARATOR=:
25305
  fi
25306
  rm -f conf$$.sh
25307
fi
25308 131 jeremybenn
 
25309 225 jeremybenn
 
25310 131 jeremybenn
  as_lineno_1=$LINENO
25311
  as_lineno_2=$LINENO
25312 225 jeremybenn
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25313 131 jeremybenn
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25314 225 jeremybenn
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25315
  # Find who we are.  Look in the path if we contain no path at all
25316
  # relative or not.
25317
  case $0 in
25318
    *[\\/]* ) as_myself=$0 ;;
25319
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25320
for as_dir in $PATH
25321
do
25322
  IFS=$as_save_IFS
25323
  test -z "$as_dir" && as_dir=.
25324
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25325
done
25326 131 jeremybenn
 
25327 225 jeremybenn
       ;;
25328
  esac
25329
  # We did not find ourselves, most probably we were run as `sh COMMAND'
25330
  # in which case we are not to be found in the path.
25331
  if test "x$as_myself" = x; then
25332
    as_myself=$0
25333
  fi
25334
  if test ! -f "$as_myself"; then
25335
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25336
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25337
   { (exit 1); exit 1; }; }
25338
  fi
25339
  case $CONFIG_SHELL in
25340
  '')
25341
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25342
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25343
do
25344
  IFS=$as_save_IFS
25345
  test -z "$as_dir" && as_dir=.
25346
  for as_base in sh bash ksh sh5; do
25347
         case $as_dir in
25348
         /*)
25349
           if ("$as_dir/$as_base" -c '
25350
  as_lineno_1=$LINENO
25351
  as_lineno_2=$LINENO
25352
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25353
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25354
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25355
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25356
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25357
             CONFIG_SHELL=$as_dir/$as_base
25358
             export CONFIG_SHELL
25359
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25360
           fi;;
25361
         esac
25362
       done
25363
done
25364
;;
25365
  esac
25366
 
25367 131 jeremybenn
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25368
  # uniformly replaced by the line number.  The first 'sed' inserts a
25369 225 jeremybenn
  # line-number line before each line; the second 'sed' does the real
25370
  # work.  The second script uses 'N' to pair each line-number line
25371
  # with the numbered line, and appends trailing '-' during
25372
  # substitution so that $LINENO is not a special case at line end.
25373 131 jeremybenn
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25374 225 jeremybenn
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25375
  sed '=' <$as_myself |
25376 131 jeremybenn
    sed '
25377
      N
25378 225 jeremybenn
      s,$,-,
25379
      : loop
25380
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25381 131 jeremybenn
      t loop
25382 225 jeremybenn
      s,-$,,
25383
      s,^['$as_cr_digits']*\n,,
25384 131 jeremybenn
    ' >$as_me.lineno &&
25385 225 jeremybenn
  chmod +x $as_me.lineno ||
25386
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25387
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25388 131 jeremybenn
   { (exit 1); exit 1; }; }
25389
 
25390
  # Don't try to exec as it changes $[0], causing all sort of problems
25391
  # (the dirname of $[0] is not the place where we might find the
25392 225 jeremybenn
  # original and so on.  Autoconf is especially sensible to this).
25393
  . ./$as_me.lineno
25394 131 jeremybenn
  # Exit status is that of the last command.
25395
  exit
25396
}
25397
 
25398
 
25399 225 jeremybenn
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25400
  *c*,-n*) ECHO_N= ECHO_C='
25401
' ECHO_T='      ' ;;
25402
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25403
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25404
esac
25405 213 jeremybenn
 
25406 225 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1; then
25407 131 jeremybenn
  as_expr=expr
25408
else
25409
  as_expr=false
25410
fi
25411
 
25412
rm -f conf$$ conf$$.exe conf$$.file
25413 225 jeremybenn
echo >conf$$.file
25414
if ln -s conf$$.file conf$$ 2>/dev/null; then
25415
  # We could just check for DJGPP; but this test a) works b) is more generic
25416
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25417
  if test -f conf$$.exe; then
25418
    # Don't use ln at all; we don't have any links
25419
    as_ln_s='cp -p'
25420
  else
25421 213 jeremybenn
    as_ln_s='ln -s'
25422 131 jeremybenn
  fi
25423 225 jeremybenn
elif ln conf$$.file conf$$ 2>/dev/null; then
25424
  as_ln_s=ln
25425 131 jeremybenn
else
25426
  as_ln_s='cp -p'
25427
fi
25428 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.file
25429 131 jeremybenn
 
25430
if mkdir -p . 2>/dev/null; then
25431
  as_mkdir_p=:
25432
else
25433
  test -d ./-p && rmdir ./-p
25434
  as_mkdir_p=false
25435
fi
25436
 
25437 225 jeremybenn
as_executable_p="test -f"
25438 131 jeremybenn
 
25439
# Sed expression to map a string onto a valid CPP name.
25440
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25441
 
25442
# Sed expression to map a string onto a valid variable name.
25443
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25444
 
25445
 
25446 225 jeremybenn
# IFS
25447
# We need space, tab and new line, in precisely that order.
25448
as_nl='
25449
'
25450
IFS="   $as_nl"
25451
 
25452
# CDPATH.
25453
$as_unset CDPATH
25454
 
25455 131 jeremybenn
exec 6>&1
25456
 
25457 225 jeremybenn
# Open the log real soon, to keep \$[0] and so on meaningful, and to
25458 131 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
25459 225 jeremybenn
# values after options handling.  Logging --version etc. is OK.
25460
exec 5>>config.log
25461
{
25462
  echo
25463
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25464
## Running $as_me. ##
25465
_ASBOX
25466
} >&5
25467
cat >&5 <<_CSEOF
25468
 
25469 131 jeremybenn
This file was extended by $as_me, which was
25470 225 jeremybenn
generated by GNU Autoconf 2.59.  Invocation command line was
25471 131 jeremybenn
 
25472
  CONFIG_FILES    = $CONFIG_FILES
25473
  CONFIG_HEADERS  = $CONFIG_HEADERS
25474
  CONFIG_LINKS    = $CONFIG_LINKS
25475
  CONFIG_COMMANDS = $CONFIG_COMMANDS
25476
  $ $0 $@
25477
 
25478 225 jeremybenn
_CSEOF
25479
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25480
echo >&5
25481 131 jeremybenn
_ACEOF
25482
 
25483 225 jeremybenn
# Files that config.status was made for.
25484
if test -n "$ac_config_files"; then
25485
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25486
fi
25487 131 jeremybenn
 
25488 225 jeremybenn
if test -n "$ac_config_headers"; then
25489
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25490
fi
25491 131 jeremybenn
 
25492 225 jeremybenn
if test -n "$ac_config_links"; then
25493
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25494
fi
25495 131 jeremybenn
 
25496 225 jeremybenn
if test -n "$ac_config_commands"; then
25497
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25498
fi
25499 131 jeremybenn
 
25500 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
25501 131 jeremybenn
 
25502
ac_cs_usage="\
25503
\`$as_me' instantiates files from templates according to the
25504
current configuration.
25505
 
25506 225 jeremybenn
Usage: $0 [OPTIONS] [FILE]...
25507 131 jeremybenn
 
25508
  -h, --help       print this help, then exit
25509 225 jeremybenn
  -V, --version    print version number, then exit
25510
  -q, --quiet      do not print progress messages
25511 131 jeremybenn
  -d, --debug      don't remove temporary files
25512
      --recheck    update $as_me by reconfiguring in the same conditions
25513 225 jeremybenn
  --file=FILE[:TEMPLATE]
25514
                   instantiate the configuration file FILE
25515
  --header=FILE[:TEMPLATE]
25516
                   instantiate the configuration header FILE
25517 131 jeremybenn
 
25518
Configuration files:
25519
$config_files
25520
 
25521
Configuration headers:
25522
$config_headers
25523
 
25524
Configuration links:
25525
$config_links
25526
 
25527
Configuration commands:
25528
$config_commands
25529
 
25530
Report bugs to ."
25531 225 jeremybenn
_ACEOF
25532 213 jeremybenn
 
25533 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
25534 131 jeremybenn
ac_cs_version="\\
25535
config.status
25536 225 jeremybenn
configured by $0, generated by GNU Autoconf 2.59,
25537
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25538 131 jeremybenn
 
25539 225 jeremybenn
Copyright (C) 2003 Free Software Foundation, Inc.
25540 131 jeremybenn
This config.status script is free software; the Free Software Foundation
25541
gives unlimited permission to copy, distribute and modify it."
25542 225 jeremybenn
srcdir=$srcdir
25543
INSTALL="$INSTALL"
25544 131 jeremybenn
_ACEOF
25545
 
25546 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
25547
# If no file are specified by the user, then we need to provide default
25548
# value.  By we need to know if files were specified by the user.
25549 131 jeremybenn
ac_need_defaults=:
25550
while test $# != 0
25551
do
25552
  case $1 in
25553
  --*=*)
25554 225 jeremybenn
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
25555
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25556 131 jeremybenn
    ac_shift=:
25557
    ;;
25558 225 jeremybenn
  -*)
25559 131 jeremybenn
    ac_option=$1
25560
    ac_optarg=$2
25561
    ac_shift=shift
25562
    ;;
25563 225 jeremybenn
  *) # This is not an option, so the user has probably given explicit
25564
     # arguments.
25565
     ac_option=$1
25566
     ac_need_defaults=false;;
25567 131 jeremybenn
  esac
25568
 
25569
  case $ac_option in
25570
  # Handling of the options.
25571 225 jeremybenn
_ACEOF
25572
cat >>$CONFIG_STATUS <<\_ACEOF
25573 131 jeremybenn
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25574
    ac_cs_recheck=: ;;
25575 225 jeremybenn
  --version | --vers* | -V )
25576
    echo "$ac_cs_version"; exit 0 ;;
25577
  --he | --h)
25578
    # Conflict between --help and --header
25579
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
25580
Try \`$0 --help' for more information." >&5
25581
echo "$as_me: error: ambiguous option: $1
25582
Try \`$0 --help' for more information." >&2;}
25583
   { (exit 1); exit 1; }; };;
25584
  --help | --hel | -h )
25585
    echo "$ac_cs_usage"; exit 0 ;;
25586
  --debug | --d* | -d )
25587 131 jeremybenn
    debug=: ;;
25588
  --file | --fil | --fi | --f )
25589
    $ac_shift
25590 225 jeremybenn
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25591 131 jeremybenn
    ac_need_defaults=false;;
25592
  --header | --heade | --head | --hea )
25593
    $ac_shift
25594 225 jeremybenn
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25595 131 jeremybenn
    ac_need_defaults=false;;
25596
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25597
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25598
    ac_cs_silent=: ;;
25599
 
25600
  # This is an error.
25601 225 jeremybenn
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25602
Try \`$0 --help' for more information." >&5
25603
echo "$as_me: error: unrecognized option: $1
25604
Try \`$0 --help' for more information." >&2;}
25605 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
25606
 
25607 225 jeremybenn
  *) ac_config_targets="$ac_config_targets $1" ;;
25608 131 jeremybenn
 
25609
  esac
25610
  shift
25611
done
25612
 
25613
ac_configure_extra_args=
25614
 
25615
if $ac_cs_silent; then
25616
  exec 6>/dev/null
25617
  ac_configure_extra_args="$ac_configure_extra_args --silent"
25618
fi
25619
 
25620
_ACEOF
25621 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
25622 131 jeremybenn
if \$ac_cs_recheck; then
25623 225 jeremybenn
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25624
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25625 131 jeremybenn
fi
25626
 
25627
_ACEOF
25628
 
25629 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
25630 131 jeremybenn
#
25631 225 jeremybenn
# INIT-COMMANDS section.
25632 131 jeremybenn
#
25633
 
25634 225 jeremybenn
 
25635 131 jeremybenn
GCC="$GCC"
25636
CC="$CC"
25637
acx_cv_header_stdint="$acx_cv_header_stdint"
25638
acx_cv_type_int8_t="$acx_cv_type_int8_t"
25639
acx_cv_type_int16_t="$acx_cv_type_int16_t"
25640
acx_cv_type_int32_t="$acx_cv_type_int32_t"
25641
acx_cv_type_int64_t="$acx_cv_type_int64_t"
25642
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25643
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25644
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25645
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25646
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25647
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25648
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25649
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25650
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25651
 
25652
 
25653
gdb_host_cpu=$gdb_host_cpu
25654
nativefile=$nativefile
25655
 
25656
 
25657
_ACEOF
25658
 
25659
 
25660 225 jeremybenn
 
25661
cat >>$CONFIG_STATUS <<\_ACEOF
25662 131 jeremybenn
for ac_config_target in $ac_config_targets
25663
do
25664 225 jeremybenn
  case "$ac_config_target" in
25665
  # Handling of arguments.
25666
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25667
  ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25668
  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25669
  "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25670
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25671
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25672
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25673
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25674 131 jeremybenn
   { (exit 1); exit 1; }; };;
25675
  esac
25676
done
25677
 
25678
# If the user did not use the arguments to specify the items to instantiate,
25679
# then the envvar interface is used.  Set only those that are not.
25680
# We use the long form for the default assignment because of an extremely
25681
# bizarre bug on SunOS 4.1.3.
25682
if $ac_need_defaults; then
25683
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25684
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25685
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25686
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25687
fi
25688
 
25689
# Have a temporary directory for convenience.  Make it in the build tree
25690 225 jeremybenn
# simply because there is no reason to put it here, and in addition,
25691 131 jeremybenn
# creating and moving files from /tmp can sometimes cause problems.
25692 225 jeremybenn
# Create a temporary directory, and hook for its removal unless debugging.
25693 131 jeremybenn
$debug ||
25694
{
25695 225 jeremybenn
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25696 131 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
25697
}
25698 225 jeremybenn
 
25699 131 jeremybenn
# Create a (secure) tmp directory for tmp files.
25700
 
25701
{
25702 225 jeremybenn
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25703 131 jeremybenn
  test -n "$tmp" && test -d "$tmp"
25704
}  ||
25705
{
25706 225 jeremybenn
  tmp=./confstat$$-$RANDOM
25707
  (umask 077 && mkdir $tmp)
25708 131 jeremybenn
} ||
25709
{
25710 225 jeremybenn
   echo "$me: cannot create a temporary directory in ." >&2
25711 131 jeremybenn
   { (exit 1); exit 1; }
25712
}
25713
 
25714 225 jeremybenn
_ACEOF
25715 131 jeremybenn
 
25716 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
25717
 
25718
#
25719
# CONFIG_FILES section.
25720
#
25721
 
25722
# No need to generate the scripts if there are no CONFIG_FILES.
25723
# This happens for instance when ./config.status config.h
25724
if test -n "\$CONFIG_FILES"; then
25725
  # Protect against being on the right side of a sed subst in config.status.
25726
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25727
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25728
s,@SHELL@,$SHELL,;t t
25729
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25730
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25731
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25732
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25733
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25734
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25735
s,@exec_prefix@,$exec_prefix,;t t
25736
s,@prefix@,$prefix,;t t
25737
s,@program_transform_name@,$program_transform_name,;t t
25738
s,@bindir@,$bindir,;t t
25739
s,@sbindir@,$sbindir,;t t
25740
s,@libexecdir@,$libexecdir,;t t
25741
s,@datadir@,$datadir,;t t
25742
s,@sysconfdir@,$sysconfdir,;t t
25743
s,@sharedstatedir@,$sharedstatedir,;t t
25744
s,@localstatedir@,$localstatedir,;t t
25745
s,@libdir@,$libdir,;t t
25746
s,@includedir@,$includedir,;t t
25747
s,@oldincludedir@,$oldincludedir,;t t
25748
s,@infodir@,$infodir,;t t
25749
s,@mandir@,$mandir,;t t
25750
s,@build_alias@,$build_alias,;t t
25751
s,@host_alias@,$host_alias,;t t
25752
s,@target_alias@,$target_alias,;t t
25753
s,@DEFS@,$DEFS,;t t
25754
s,@ECHO_C@,$ECHO_C,;t t
25755
s,@ECHO_N@,$ECHO_N,;t t
25756
s,@ECHO_T@,$ECHO_T,;t t
25757
s,@LIBS@,$LIBS,;t t
25758
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25759
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25760
s,@MAINT@,$MAINT,;t t
25761
s,@CC@,$CC,;t t
25762
s,@CFLAGS@,$CFLAGS,;t t
25763
s,@LDFLAGS@,$LDFLAGS,;t t
25764
s,@CPPFLAGS@,$CPPFLAGS,;t t
25765
s,@ac_ct_CC@,$ac_ct_CC,;t t
25766
s,@EXEEXT@,$EXEEXT,;t t
25767
s,@OBJEXT@,$OBJEXT,;t t
25768
s,@CPP@,$CPP,;t t
25769
s,@EGREP@,$EGREP,;t t
25770
s,@build@,$build,;t t
25771
s,@build_cpu@,$build_cpu,;t t
25772
s,@build_vendor@,$build_vendor,;t t
25773
s,@build_os@,$build_os,;t t
25774
s,@host@,$host,;t t
25775
s,@host_cpu@,$host_cpu,;t t
25776
s,@host_vendor@,$host_vendor,;t t
25777
s,@host_os@,$host_os,;t t
25778
s,@target@,$target,;t t
25779
s,@target_cpu@,$target_cpu,;t t
25780
s,@target_vendor@,$target_vendor,;t t
25781
s,@target_os@,$target_os,;t t
25782
s,@USE_NLS@,$USE_NLS,;t t
25783
s,@LIBINTL@,$LIBINTL,;t t
25784
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25785
s,@INCINTL@,$INCINTL,;t t
25786
s,@XGETTEXT@,$XGETTEXT,;t t
25787
s,@GMSGFMT@,$GMSGFMT,;t t
25788
s,@POSUB@,$POSUB,;t t
25789
s,@CATALOGS@,$CATALOGS,;t t
25790
s,@DATADIRNAME@,$DATADIRNAME,;t t
25791
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25792
s,@GENCAT@,$GENCAT,;t t
25793
s,@CATOBJEXT@,$CATOBJEXT,;t t
25794
s,@localedir@,$localedir,;t t
25795
s,@PACKAGE@,$PACKAGE,;t t
25796
s,@subdirs@,$subdirs,;t t
25797
s,@TARGET_OBS@,$TARGET_OBS,;t t
25798
s,@AWK@,$AWK,;t t
25799
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25800
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25801
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25802
s,@LN_S@,$LN_S,;t t
25803
s,@RANLIB@,$RANLIB,;t t
25804
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25805
s,@YACC@,$YACC,;t t
25806
s,@AR@,$AR,;t t
25807
s,@ac_ct_AR@,$ac_ct_AR,;t t
25808
s,@DLLTOOL@,$DLLTOOL,;t t
25809
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25810
s,@WINDRES@,$WINDRES,;t t
25811
s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25812
s,@MIG@,$MIG,;t t
25813
s,@ac_ct_MIG@,$ac_ct_MIG,;t t
25814
s,@READLINE@,$READLINE,;t t
25815
s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25816
s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
25817
s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25818
s,@LIBEXPAT@,$LIBEXPAT,;t t
25819
s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
25820
s,@ALLOCA@,$ALLOCA,;t t
25821
s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25822
s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25823
s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25824
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25825
s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25826
s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25827
s,@WIN32LIBS@,$WIN32LIBS,;t t
25828
s,@LIBGUI@,$LIBGUI,;t t
25829
s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25830
s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25831
s,@TCL_VERSION@,$TCL_VERSION,;t t
25832
s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25833
s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25834
s,@TCL_CC@,$TCL_CC,;t t
25835
s,@TCL_DEFS@,$TCL_DEFS,;t t
25836
s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25837
s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25838
s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25839
s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25840
s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25841
s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25842
s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25843
s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25844
s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25845
s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25846
s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25847
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25848
s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25849
s,@TK_VERSION@,$TK_VERSION,;t t
25850
s,@TK_DEFS@,$TK_DEFS,;t t
25851
s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25852
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25853
s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25854
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25855
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25856
s,@TCLHDIR@,$TCLHDIR,;t t
25857
s,@TKHDIR@,$TKHDIR,;t t
25858
s,@ITCLHDIR@,$ITCLHDIR,;t t
25859
s,@ITKHDIR@,$ITKHDIR,;t t
25860
s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25861
s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25862
s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25863
s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25864
s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25865
s,@ITK_VERSION@,$ITK_VERSION,;t t
25866
s,@ITK_DEFS@,$ITK_DEFS,;t t
25867
s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25868
s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25869
s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25870
s,@X_CFLAGS@,$X_CFLAGS,;t t
25871
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25872
s,@X_LIBS@,$X_LIBS,;t t
25873
s,@TCL_DEPS@,$TCL_DEPS,;t t
25874
s,@TK_DEPS@,$TK_DEPS,;t t
25875
s,@ITCLLIB@,$ITCLLIB,;t t
25876
s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25877
s,@ITKLIB@,$ITKLIB,;t t
25878
s,@ITK_DEPS@,$ITK_DEPS,;t t
25879
s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25880
s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25881
s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
25882
s,@SIM@,$SIM,;t t
25883
s,@SIM_OBS@,$SIM_OBS,;t t
25884
s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25885
s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25886
s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25887
s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25888
s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25889
s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25890
s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25891
s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25892
s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25893
s,@target_subdir@,$target_subdir,;t t
25894
s,@frags@,$frags,;t t
25895
s,@nm_h@,$nm_h,;t t
25896
s,@LIBICONV@,$LIBICONV,;t t
25897
s,@LIBOBJS@,$LIBOBJS,;t t
25898
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25899
/@host_makefile_frag@/r $host_makefile_frag
25900
s,@host_makefile_frag@,,;t t
25901
CEOF
25902
 
25903
_ACEOF
25904
 
25905
  cat >>$CONFIG_STATUS <<\_ACEOF
25906
  # Split the substitutions into bite-sized pieces for seds with
25907
  # small command number limits, like on Digital OSF/1 and HP-UX.
25908
  ac_max_sed_lines=48
25909
  ac_sed_frag=1 # Number of current file.
25910
  ac_beg=1 # First line for current file.
25911
  ac_end=$ac_max_sed_lines # Line after last line for current file.
25912
  ac_more_lines=:
25913
  ac_sed_cmds=
25914
  while $ac_more_lines; do
25915
    if test $ac_beg -gt 1; then
25916
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25917
    else
25918
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25919
    fi
25920
    if test ! -s $tmp/subs.frag; then
25921
      ac_more_lines=false
25922
    else
25923
      # The purpose of the label and of the branching condition is to
25924
      # speed up the sed processing (if there are no `@' at all, there
25925
      # is no need to browse any of the substitutions).
25926
      # These are the two extra sed commands mentioned above.
25927
      (echo ':t
25928
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25929
      if test -z "$ac_sed_cmds"; then
25930
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25931
      else
25932
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25933
      fi
25934
      ac_sed_frag=`expr $ac_sed_frag + 1`
25935
      ac_beg=$ac_end
25936
      ac_end=`expr $ac_end + $ac_max_sed_lines`
25937
    fi
25938
  done
25939
  if test -z "$ac_sed_cmds"; then
25940
    ac_sed_cmds=cat
25941
  fi
25942
fi # test -n "$CONFIG_FILES"
25943
 
25944
_ACEOF
25945
cat >>$CONFIG_STATUS <<\_ACEOF
25946
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25947
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25948
  case $ac_file in
25949
  - | *:- | *:-:* ) # input from stdin
25950
        cat >$tmp/stdin
25951
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25952
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25953
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25954
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25955
  * )   ac_file_in=$ac_file.in ;;
25956
  esac
25957
 
25958
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25959
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25960
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25961
         X"$ac_file" : 'X\(//\)[^/]' \| \
25962
         X"$ac_file" : 'X\(//\)$' \| \
25963
         X"$ac_file" : 'X\(/\)' \| \
25964
         .     : '\(.\)' 2>/dev/null ||
25965
echo X"$ac_file" |
25966
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25967
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25968
          /^X\(\/\/\)$/{ s//\1/; q; }
25969
          /^X\(\/\).*/{ s//\1/; q; }
25970
          s/.*/./; q'`
25971
  { if $as_mkdir_p; then
25972
    mkdir -p "$ac_dir"
25973
  else
25974
    as_dir="$ac_dir"
25975
    as_dirs=
25976
    while test ! -d "$as_dir"; do
25977
      as_dirs="$as_dir $as_dirs"
25978
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25979
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25980
         X"$as_dir" : 'X\(//\)[^/]' \| \
25981
         X"$as_dir" : 'X\(//\)$' \| \
25982
         X"$as_dir" : 'X\(/\)' \| \
25983
         .     : '\(.\)' 2>/dev/null ||
25984
echo X"$as_dir" |
25985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25986
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25987
          /^X\(\/\/\)$/{ s//\1/; q; }
25988
          /^X\(\/\).*/{ s//\1/; q; }
25989
          s/.*/./; q'`
25990
    done
25991
    test ! -n "$as_dirs" || mkdir $as_dirs
25992
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25993
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25994
   { (exit 1); exit 1; }; }; }
25995
 
25996
  ac_builddir=.
25997
 
25998
if test "$ac_dir" != .; then
25999
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26000
  # A "../" for each directory in $ac_dir_suffix.
26001
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26002 131 jeremybenn
else
26003 225 jeremybenn
  ac_dir_suffix= ac_top_builddir=
26004 131 jeremybenn
fi
26005
 
26006 225 jeremybenn
case $srcdir in
26007
  .)  # No --srcdir option.  We are building in place.
26008
    ac_srcdir=.
26009
    if test -z "$ac_top_builddir"; then
26010
       ac_top_srcdir=.
26011
    else
26012
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26013
    fi ;;
26014
  [\\/]* | ?:[\\/]* )  # Absolute path.
26015
    ac_srcdir=$srcdir$ac_dir_suffix;
26016
    ac_top_srcdir=$srcdir ;;
26017
  *) # Relative path.
26018
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26019
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26020
esac
26021 131 jeremybenn
 
26022 225 jeremybenn
# Do not use `cd foo && pwd` to compute absolute paths, because
26023
# the directories may not exist.
26024
case `pwd` in
26025
.) ac_abs_builddir="$ac_dir";;
26026
*)
26027
  case "$ac_dir" in
26028
  .) ac_abs_builddir=`pwd`;;
26029
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26030
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
26031
  esac;;
26032
esac
26033
case $ac_abs_builddir in
26034
.) ac_abs_top_builddir=${ac_top_builddir}.;;
26035
*)
26036
  case ${ac_top_builddir}. in
26037
  .) ac_abs_top_builddir=$ac_abs_builddir;;
26038
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26039
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26040
  esac;;
26041
esac
26042
case $ac_abs_builddir in
26043
.) ac_abs_srcdir=$ac_srcdir;;
26044
*)
26045
  case $ac_srcdir in
26046
  .) ac_abs_srcdir=$ac_abs_builddir;;
26047
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26048
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26049
  esac;;
26050
esac
26051
case $ac_abs_builddir in
26052
.) ac_abs_top_srcdir=$ac_top_srcdir;;
26053
*)
26054
  case $ac_top_srcdir in
26055
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
26056
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26057
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26058
  esac;;
26059
esac
26060 131 jeremybenn
 
26061
 
26062 225 jeremybenn
  case $INSTALL in
26063
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26064
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26065
  esac
26066
 
26067
  if test x"$ac_file" != x-; then
26068
    { echo "$as_me:$LINENO: creating $ac_file" >&5
26069
echo "$as_me: creating $ac_file" >&6;}
26070
    rm -f "$ac_file"
26071
  fi
26072
  # Let's still pretend it is `configure' which instantiates (i.e., don't
26073
  # use $as_me), people would be surprised to read:
26074
  #    /* config.h.  Generated by config.status.  */
26075
  if test x"$ac_file" = x-; then
26076
    configure_input=
26077 131 jeremybenn
  else
26078 225 jeremybenn
    configure_input="$ac_file.  "
26079 131 jeremybenn
  fi
26080 225 jeremybenn
  configure_input=$configure_input"Generated from `echo $ac_file_in |
26081
                                     sed 's,.*/,,'` by configure."
26082 131 jeremybenn
 
26083 225 jeremybenn
  # First look for the input files in the build tree, otherwise in the
26084
  # src tree.
26085
  ac_file_inputs=`IFS=:
26086
    for f in $ac_file_in; do
26087
      case $f in
26088
      -) echo $tmp/stdin ;;
26089
      [\\/$]*)
26090
         # Absolute (can't be DOS-style, as IFS=:)
26091
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26092
echo "$as_me: error: cannot find input file: $f" >&2;}
26093
   { (exit 1); exit 1; }; }
26094
         echo "$f";;
26095
      *) # Relative
26096
         if test -f "$f"; then
26097
           # Build tree
26098
           echo "$f"
26099
         elif test -f "$srcdir/$f"; then
26100
           # Source tree
26101
           echo "$srcdir/$f"
26102
         else
26103
           # /dev/null tree
26104
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26105
echo "$as_me: error: cannot find input file: $f" >&2;}
26106
   { (exit 1); exit 1; }; }
26107
         fi;;
26108
      esac
26109
    done` || { (exit 1); exit 1; }
26110 131 jeremybenn
_ACEOF
26111 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF
26112
  sed "$ac_vpsub
26113
$extrasub
26114 131 jeremybenn
_ACEOF
26115 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26116
:t
26117
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26118
s,@configure_input@,$configure_input,;t t
26119
s,@srcdir@,$ac_srcdir,;t t
26120
s,@abs_srcdir@,$ac_abs_srcdir,;t t
26121
s,@top_srcdir@,$ac_top_srcdir,;t t
26122
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26123
s,@builddir@,$ac_builddir,;t t
26124
s,@abs_builddir@,$ac_abs_builddir,;t t
26125
s,@top_builddir@,$ac_top_builddir,;t t
26126
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26127
s,@INSTALL@,$ac_INSTALL,;t t
26128
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26129
  rm -f $tmp/stdin
26130
  if test x"$ac_file" != x-; then
26131
    mv $tmp/out $ac_file
26132
  else
26133
    cat $tmp/out
26134
    rm -f $tmp/out
26135
  fi
26136
 
26137
done
26138 131 jeremybenn
_ACEOF
26139 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26140 131 jeremybenn
 
26141 225 jeremybenn
#
26142
# CONFIG_HEADER section.
26143
#
26144 131 jeremybenn
 
26145 225 jeremybenn
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26146
# NAME is the cpp macro being defined and VALUE is the value it is being given.
26147
#
26148
# ac_d sets the value in "#define NAME VALUE" lines.
26149
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26150
ac_dB='[         ].*$,\1#\2'
26151
ac_dC=' '
26152
ac_dD=',;t'
26153
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26154
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26155
ac_uB='$,\1#\2define\3'
26156
ac_uC=' '
26157
ac_uD=',;t'
26158 131 jeremybenn
 
26159 225 jeremybenn
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26160
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26161
  case $ac_file in
26162
  - | *:- | *:-:* ) # input from stdin
26163
        cat >$tmp/stdin
26164
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26165
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26166
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26167
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26168
  * )   ac_file_in=$ac_file.in ;;
26169
  esac
26170 131 jeremybenn
 
26171 225 jeremybenn
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26172
echo "$as_me: creating $ac_file" >&6;}
26173 131 jeremybenn
 
26174 225 jeremybenn
  # First look for the input files in the build tree, otherwise in the
26175
  # src tree.
26176
  ac_file_inputs=`IFS=:
26177
    for f in $ac_file_in; do
26178
      case $f in
26179
      -) echo $tmp/stdin ;;
26180
      [\\/$]*)
26181
         # Absolute (can't be DOS-style, as IFS=:)
26182
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26183
echo "$as_me: error: cannot find input file: $f" >&2;}
26184 131 jeremybenn
   { (exit 1); exit 1; }; }
26185 225 jeremybenn
         # Do quote $f, to prevent DOS paths from being IFS'd.
26186
         echo "$f";;
26187
      *) # Relative
26188
         if test -f "$f"; then
26189
           # Build tree
26190
           echo "$f"
26191
         elif test -f "$srcdir/$f"; then
26192
           # Source tree
26193
           echo "$srcdir/$f"
26194
         else
26195
           # /dev/null tree
26196
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26197
echo "$as_me: error: cannot find input file: $f" >&2;}
26198
   { (exit 1); exit 1; }; }
26199
         fi;;
26200
      esac
26201
    done` || { (exit 1); exit 1; }
26202
  # Remove the trailing spaces.
26203
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26204 131 jeremybenn
 
26205 225 jeremybenn
_ACEOF
26206 131 jeremybenn
 
26207 225 jeremybenn
# Transform confdefs.h into two sed scripts, `conftest.defines' and
26208
# `conftest.undefs', that substitutes the proper values into
26209
# config.h.in to produce config.h.  The first handles `#define'
26210
# templates, and the second `#undef' templates.
26211
# And first: Protect against being on the right side of a sed subst in
26212
# config.status.  Protect against being in an unquoted here document
26213
# in config.status.
26214
rm -f conftest.defines conftest.undefs
26215
# Using a here document instead of a string reduces the quoting nightmare.
26216
# Putting comments in sed scripts is not portable.
26217
#
26218
# `end' is used to avoid that the second main sed command (meant for
26219
# 0-ary CPP macros) applies to n-ary macro definitions.
26220
# See the Autoconf documentation for `clear'.
26221
cat >confdef2sed.sed <<\_ACEOF
26222
s/[\\&,]/\\&/g
26223
s,[\\$`],\\&,g
26224 131 jeremybenn
t clear
26225 225 jeremybenn
: clear
26226
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26227
t end
26228
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26229
: end
26230
_ACEOF
26231
# If some macros were called several times there might be several times
26232
# the same #defines, which is useless.  Nevertheless, we may not want to
26233
# sort them, since we want the *last* AC-DEFINE to be honored.
26234
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26235
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26236
rm -f confdef2sed.sed
26237 131 jeremybenn
 
26238 225 jeremybenn
# This sed command replaces #undef with comments.  This is necessary, for
26239
# example, in the case of _POSIX_SOURCE, which is predefined and required
26240
# on some systems where configure will not decide to define it.
26241
cat >>conftest.undefs <<\_ACEOF
26242
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26243 131 jeremybenn
_ACEOF
26244
 
26245 225 jeremybenn
# Break up conftest.defines because some shells have a limit on the size
26246
# of here documents, and old seds have small limits too (100 cmds).
26247
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26248
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26249
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26250
echo '  :' >>$CONFIG_STATUS
26251
rm -f conftest.tail
26252
while grep . conftest.defines >/dev/null
26253
do
26254
  # Write a limited-size here document to $tmp/defines.sed.
26255
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
26256
  # Speed up: don't consider the non `#define' lines.
26257
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26258
  # Work around the forget-to-reset-the-flag bug.
26259
  echo 't clr' >>$CONFIG_STATUS
26260
  echo ': clr' >>$CONFIG_STATUS
26261
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26262
  echo 'CEOF
26263
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
26264
  rm -f $tmp/in
26265
  mv $tmp/out $tmp/in
26266
' >>$CONFIG_STATUS
26267
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26268
  rm -f conftest.defines
26269
  mv conftest.tail conftest.defines
26270
done
26271
rm -f conftest.defines
26272
echo '  fi # grep' >>$CONFIG_STATUS
26273
echo >>$CONFIG_STATUS
26274 131 jeremybenn
 
26275 225 jeremybenn
# Break up conftest.undefs because some shells have a limit on the size
26276
# of here documents, and old seds have small limits too (100 cmds).
26277
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26278
rm -f conftest.tail
26279
while grep . conftest.undefs >/dev/null
26280 131 jeremybenn
do
26281 225 jeremybenn
  # Write a limited-size here document to $tmp/undefs.sed.
26282
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
26283
  # Speed up: don't consider the non `#undef'
26284
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26285
  # Work around the forget-to-reset-the-flag bug.
26286
  echo 't clr' >>$CONFIG_STATUS
26287
  echo ': clr' >>$CONFIG_STATUS
26288
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26289
  echo 'CEOF
26290
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26291
  rm -f $tmp/in
26292
  mv $tmp/out $tmp/in
26293
' >>$CONFIG_STATUS
26294
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26295
  rm -f conftest.undefs
26296
  mv conftest.tail conftest.undefs
26297
done
26298
rm -f conftest.undefs
26299 131 jeremybenn
 
26300 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26301
  # Let's still pretend it is `configure' which instantiates (i.e., don't
26302
  # use $as_me), people would be surprised to read:
26303
  #    /* config.h.  Generated by config.status.  */
26304
  if test x"$ac_file" = x-; then
26305
    echo "/* Generated by configure.  */" >$tmp/config.h
26306
  else
26307
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26308
  fi
26309
  cat $tmp/in >>$tmp/config.h
26310
  rm -f $tmp/in
26311
  if test x"$ac_file" != x-; then
26312
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26313
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26314
echo "$as_me: $ac_file is unchanged" >&6;}
26315
    else
26316
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26317
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26318
         X"$ac_file" : 'X\(//\)[^/]' \| \
26319
         X"$ac_file" : 'X\(//\)$' \| \
26320
         X"$ac_file" : 'X\(/\)' \| \
26321
         .     : '\(.\)' 2>/dev/null ||
26322
echo X"$ac_file" |
26323
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26324
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26325
          /^X\(\/\/\)$/{ s//\1/; q; }
26326
          /^X\(\/\).*/{ s//\1/; q; }
26327
          s/.*/./; q'`
26328
      { if $as_mkdir_p; then
26329
    mkdir -p "$ac_dir"
26330
  else
26331
    as_dir="$ac_dir"
26332
    as_dirs=
26333
    while test ! -d "$as_dir"; do
26334
      as_dirs="$as_dir $as_dirs"
26335
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26336
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26337
         X"$as_dir" : 'X\(//\)[^/]' \| \
26338
         X"$as_dir" : 'X\(//\)$' \| \
26339
         X"$as_dir" : 'X\(/\)' \| \
26340
         .     : '\(.\)' 2>/dev/null ||
26341
echo X"$as_dir" |
26342
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26343
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26344
          /^X\(\/\/\)$/{ s//\1/; q; }
26345
          /^X\(\/\).*/{ s//\1/; q; }
26346
          s/.*/./; q'`
26347 131 jeremybenn
    done
26348 225 jeremybenn
    test ! -n "$as_dirs" || mkdir $as_dirs
26349
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26350
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26351
   { (exit 1); exit 1; }; }; }
26352 131 jeremybenn
 
26353 225 jeremybenn
      rm -f $ac_file
26354
      mv $tmp/config.h $ac_file
26355 131 jeremybenn
    fi
26356 225 jeremybenn
  else
26357
    cat $tmp/config.h
26358
    rm -f $tmp/config.h
26359
  fi
26360
done
26361
_ACEOF
26362
cat >>$CONFIG_STATUS <<\_ACEOF
26363 131 jeremybenn
 
26364 225 jeremybenn
#
26365
# CONFIG_LINKS section.
26366
#
26367 131 jeremybenn
 
26368 225 jeremybenn
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26369
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26370
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26371
 
26372
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26373
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26374
 
26375
  if test ! -r $srcdir/$ac_source; then
26376
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26377
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26378
   { (exit 1); exit 1; }; }
26379
  fi
26380
  rm -f $ac_dest
26381
 
26382
  # Make relative symlinks.
26383
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26384
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26385
         X"$ac_dest" : 'X\(//\)[^/]' \| \
26386
         X"$ac_dest" : 'X\(//\)$' \| \
26387
         X"$ac_dest" : 'X\(/\)' \| \
26388
         .     : '\(.\)' 2>/dev/null ||
26389
echo X"$ac_dest" |
26390
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26391
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26392
          /^X\(\/\/\)$/{ s//\1/; q; }
26393
          /^X\(\/\).*/{ s//\1/; q; }
26394
          s/.*/./; q'`
26395
  { if $as_mkdir_p; then
26396
    mkdir -p "$ac_dest_dir"
26397
  else
26398
    as_dir="$ac_dest_dir"
26399 131 jeremybenn
    as_dirs=
26400 225 jeremybenn
    while test ! -d "$as_dir"; do
26401
      as_dirs="$as_dir $as_dirs"
26402
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26403 131 jeremybenn
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26404
         X"$as_dir" : 'X\(//\)[^/]' \| \
26405
         X"$as_dir" : 'X\(//\)$' \| \
26406 225 jeremybenn
         X"$as_dir" : 'X\(/\)' \| \
26407
         .     : '\(.\)' 2>/dev/null ||
26408
echo X"$as_dir" |
26409
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26410
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26411
          /^X\(\/\/\)$/{ s//\1/; q; }
26412
          /^X\(\/\).*/{ s//\1/; q; }
26413
          s/.*/./; q'`
26414 131 jeremybenn
    done
26415 225 jeremybenn
    test ! -n "$as_dirs" || mkdir $as_dirs
26416
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26417
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26418 131 jeremybenn
   { (exit 1); exit 1; }; }; }
26419 225 jeremybenn
 
26420 131 jeremybenn
  ac_builddir=.
26421
 
26422 225 jeremybenn
if test "$ac_dest_dir" != .; then
26423
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26424
  # A "../" for each directory in $ac_dir_suffix.
26425
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26426
else
26427
  ac_dir_suffix= ac_top_builddir=
26428
fi
26429 131 jeremybenn
 
26430
case $srcdir in
26431 225 jeremybenn
  .)  # No --srcdir option.  We are building in place.
26432 131 jeremybenn
    ac_srcdir=.
26433 225 jeremybenn
    if test -z "$ac_top_builddir"; then
26434
       ac_top_srcdir=.
26435
    else
26436
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26437
    fi ;;
26438
  [\\/]* | ?:[\\/]* )  # Absolute path.
26439 131 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
26440 225 jeremybenn
    ac_top_srcdir=$srcdir ;;
26441
  *) # Relative path.
26442
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26443
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26444 131 jeremybenn
esac
26445
 
26446 225 jeremybenn
# Do not use `cd foo && pwd` to compute absolute paths, because
26447
# the directories may not exist.
26448
case `pwd` in
26449
.) ac_abs_builddir="$ac_dest_dir";;
26450
*)
26451
  case "$ac_dest_dir" in
26452
  .) ac_abs_builddir=`pwd`;;
26453
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26454
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26455
  esac;;
26456
esac
26457
case $ac_abs_builddir in
26458
.) ac_abs_top_builddir=${ac_top_builddir}.;;
26459
*)
26460
  case ${ac_top_builddir}. in
26461
  .) ac_abs_top_builddir=$ac_abs_builddir;;
26462
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26463
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26464
  esac;;
26465
esac
26466
case $ac_abs_builddir in
26467
.) ac_abs_srcdir=$ac_srcdir;;
26468
*)
26469
  case $ac_srcdir in
26470
  .) ac_abs_srcdir=$ac_abs_builddir;;
26471
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26472
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26473
  esac;;
26474
esac
26475
case $ac_abs_builddir in
26476
.) ac_abs_top_srcdir=$ac_top_srcdir;;
26477
*)
26478
  case $ac_top_srcdir in
26479
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
26480
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26481
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26482
  esac;;
26483
esac
26484 131 jeremybenn
 
26485
 
26486 225 jeremybenn
  case $srcdir in
26487
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26488
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26489 131 jeremybenn
  esac
26490 225 jeremybenn
 
26491
  # Try a symlink, then a hard link, then a copy.
26492
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26493
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26494
    cp -p $srcdir/$ac_source $ac_dest ||
26495
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26496
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26497
   { (exit 1); exit 1; }; }
26498
done
26499 131 jeremybenn
_ACEOF
26500 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26501 131 jeremybenn
 
26502 225 jeremybenn
#
26503
# CONFIG_COMMANDS section.
26504
#
26505
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26506
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26507
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26508
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26509
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26510
         X"$ac_dest" : 'X\(//\)[^/]' \| \
26511
         X"$ac_dest" : 'X\(//\)$' \| \
26512
         X"$ac_dest" : 'X\(/\)' \| \
26513
         .     : '\(.\)' 2>/dev/null ||
26514
echo X"$ac_dest" |
26515
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26516
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26517
          /^X\(\/\/\)$/{ s//\1/; q; }
26518
          /^X\(\/\).*/{ s//\1/; q; }
26519
          s/.*/./; q'`
26520
  { if $as_mkdir_p; then
26521
    mkdir -p "$ac_dir"
26522
  else
26523
    as_dir="$ac_dir"
26524
    as_dirs=
26525
    while test ! -d "$as_dir"; do
26526
      as_dirs="$as_dir $as_dirs"
26527
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26528
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26529
         X"$as_dir" : 'X\(//\)[^/]' \| \
26530
         X"$as_dir" : 'X\(//\)$' \| \
26531
         X"$as_dir" : 'X\(/\)' \| \
26532
         .     : '\(.\)' 2>/dev/null ||
26533
echo X"$as_dir" |
26534
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26535
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26536
          /^X\(\/\/\)$/{ s//\1/; q; }
26537
          /^X\(\/\).*/{ s//\1/; q; }
26538
          s/.*/./; q'`
26539
    done
26540
    test ! -n "$as_dirs" || mkdir $as_dirs
26541
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26542
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26543
   { (exit 1); exit 1; }; }; }
26544 131 jeremybenn
 
26545 225 jeremybenn
  ac_builddir=.
26546 131 jeremybenn
 
26547 225 jeremybenn
if test "$ac_dir" != .; then
26548
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26549
  # A "../" for each directory in $ac_dir_suffix.
26550
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26551 131 jeremybenn
else
26552 225 jeremybenn
  ac_dir_suffix= ac_top_builddir=
26553
fi
26554 131 jeremybenn
 
26555 225 jeremybenn
case $srcdir in
26556
  .)  # No --srcdir option.  We are building in place.
26557
    ac_srcdir=.
26558
    if test -z "$ac_top_builddir"; then
26559
       ac_top_srcdir=.
26560 131 jeremybenn
    else
26561 225 jeremybenn
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26562
    fi ;;
26563
  [\\/]* | ?:[\\/]* )  # Absolute path.
26564
    ac_srcdir=$srcdir$ac_dir_suffix;
26565
    ac_top_srcdir=$srcdir ;;
26566
  *) # Relative path.
26567
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26568
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26569
esac
26570 131 jeremybenn
 
26571 225 jeremybenn
# Do not use `cd foo && pwd` to compute absolute paths, because
26572
# the directories may not exist.
26573
case `pwd` in
26574
.) ac_abs_builddir="$ac_dir";;
26575
*)
26576
  case "$ac_dir" in
26577
  .) ac_abs_builddir=`pwd`;;
26578
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26579
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
26580
  esac;;
26581
esac
26582
case $ac_abs_builddir in
26583
.) ac_abs_top_builddir=${ac_top_builddir}.;;
26584
*)
26585
  case ${ac_top_builddir}. in
26586
  .) ac_abs_top_builddir=$ac_abs_builddir;;
26587
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26588
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26589
  esac;;
26590
esac
26591
case $ac_abs_builddir in
26592
.) ac_abs_srcdir=$ac_srcdir;;
26593
*)
26594
  case $ac_srcdir in
26595
  .) ac_abs_srcdir=$ac_abs_builddir;;
26596
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26597
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26598
  esac;;
26599
esac
26600
case $ac_abs_builddir in
26601
.) ac_abs_top_srcdir=$ac_top_srcdir;;
26602
*)
26603
  case $ac_top_srcdir in
26604
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
26605
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26606
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26607
  esac;;
26608
esac
26609 131 jeremybenn
 
26610
 
26611 225 jeremybenn
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26612
echo "$as_me: executing $ac_dest commands" >&6;}
26613
  case $ac_dest in
26614
    gdb_stdint.h )
26615 131 jeremybenn
if test "$GCC" = yes; then
26616
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26617
else
26618
  echo "/* generated for $CC */" > tmp-stdint.h
26619
fi
26620
 
26621
sed 's/^ *//' >> tmp-stdint.h <
26622
 
26623
  #ifndef GCC_GENERATED_STDINT_H
26624
  #define GCC_GENERATED_STDINT_H 1
26625
 
26626
  #include 
26627
EOF
26628
 
26629
if test "$acx_cv_header_stdint" != stdint.h; then
26630
  echo "#include " >> tmp-stdint.h
26631
fi
26632
if test "$acx_cv_header_stdint" != stddef.h; then
26633
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26634
fi
26635
 
26636
sed 's/^ *//' >> tmp-stdint.h <
26637
  /* glibc uses these symbols as guards to prevent redefinitions.  */
26638
  #ifdef __int8_t_defined
26639
  #define _INT8_T
26640
  #define _INT16_T
26641
  #define _INT32_T
26642
  #endif
26643
  #ifdef __uint32_t_defined
26644
  #define _UINT32_T
26645
  #endif
26646
 
26647
EOF
26648
 
26649
# ----------------- done header, emit basic int types -------------
26650
if test "$acx_cv_header_stdint" = stddef.h; then
26651
  sed 's/^ *//' >> tmp-stdint.h <
26652
 
26653
    #ifndef _UINT8_T
26654
    #define _UINT8_T
26655
    #ifndef __uint8_t_defined
26656
    #define __uint8_t_defined
26657
    typedef unsigned $acx_cv_type_int8_t uint8_t;
26658
    #endif
26659
    #endif
26660
 
26661
    #ifndef _UINT16_T
26662
    #define _UINT16_T
26663
    #ifndef __uint16_t_defined
26664
    #define __uint16_t_defined
26665
    typedef unsigned $acx_cv_type_int16_t uint16_t;
26666
    #endif
26667
    #endif
26668
 
26669
    #ifndef _UINT32_T
26670
    #define _UINT32_T
26671
    #ifndef __uint32_t_defined
26672
    #define __uint32_t_defined
26673
    typedef unsigned $acx_cv_type_int32_t uint32_t;
26674
    #endif
26675
    #endif
26676
 
26677
    #ifndef _INT8_T
26678
    #define _INT8_T
26679
    #ifndef __int8_t_defined
26680
    #define __int8_t_defined
26681
    typedef $acx_cv_type_int8_t int8_t;
26682
    #endif
26683
    #endif
26684
 
26685
    #ifndef _INT16_T
26686
    #define _INT16_T
26687
    #ifndef __int16_t_defined
26688
    #define __int16_t_defined
26689
    typedef $acx_cv_type_int16_t int16_t;
26690
    #endif
26691
    #endif
26692
 
26693
    #ifndef _INT32_T
26694
    #define _INT32_T
26695
    #ifndef __int32_t_defined
26696
    #define __int32_t_defined
26697
    typedef $acx_cv_type_int32_t int32_t;
26698
    #endif
26699
    #endif
26700
EOF
26701
elif test "$ac_cv_type_u_int32_t" = yes; then
26702
  sed 's/^ *//' >> tmp-stdint.h <
26703
 
26704
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26705
    #ifndef _INT8_T
26706
    #define _INT8_T
26707
    #endif
26708
    #ifndef _INT16_T
26709
    #define _INT16_T
26710
    #endif
26711
    #ifndef _INT32_T
26712
    #define _INT32_T
26713
    #endif
26714
 
26715
    #ifndef _UINT8_T
26716
    #define _UINT8_T
26717
    #ifndef __uint8_t_defined
26718
    #define __uint8_t_defined
26719
    typedef u_int8_t uint8_t;
26720
    #endif
26721
    #endif
26722
 
26723
    #ifndef _UINT16_T
26724
    #define _UINT16_T
26725
    #ifndef __uint16_t_defined
26726
    #define __uint16_t_defined
26727
    typedef u_int16_t uint16_t;
26728
    #endif
26729
    #endif
26730
 
26731
    #ifndef _UINT32_T
26732
    #define _UINT32_T
26733
    #ifndef __uint32_t_defined
26734
    #define __uint32_t_defined
26735
    typedef u_int32_t uint32_t;
26736
    #endif
26737
    #endif
26738
EOF
26739
else
26740
  sed 's/^ *//' >> tmp-stdint.h <
26741
 
26742
    /* Some systems have guard macros to prevent redefinitions, define them.  */
26743
    #ifndef _INT8_T
26744
    #define _INT8_T
26745
    #endif
26746
    #ifndef _INT16_T
26747
    #define _INT16_T
26748
    #endif
26749
    #ifndef _INT32_T
26750
    #define _INT32_T
26751
    #endif
26752
    #ifndef _UINT8_T
26753
    #define _UINT8_T
26754
    #endif
26755
    #ifndef _UINT16_T
26756
    #define _UINT16_T
26757
    #endif
26758
    #ifndef _UINT32_T
26759
    #define _UINT32_T
26760
    #endif
26761
EOF
26762
fi
26763
 
26764
# ------------- done basic int types, emit int64_t types ------------
26765
if test "$ac_cv_type_uint64_t" = yes; then
26766
  sed 's/^ *//' >> tmp-stdint.h <
26767
 
26768
    /* system headers have good uint64_t and int64_t */
26769
    #ifndef _INT64_T
26770
    #define _INT64_T
26771
    #endif
26772
    #ifndef _UINT64_T
26773
    #define _UINT64_T
26774
    #endif
26775
EOF
26776
elif test "$ac_cv_type_u_int64_t" = yes; then
26777
  sed 's/^ *//' >> tmp-stdint.h <
26778
 
26779
    /* system headers have an u_int64_t (and int64_t) */
26780
    #ifndef _INT64_T
26781
    #define _INT64_T
26782
    #endif
26783
    #ifndef _UINT64_T
26784
    #define _UINT64_T
26785
    #ifndef __uint64_t_defined
26786
    #define __uint64_t_defined
26787
    typedef u_int64_t uint64_t;
26788
    #endif
26789
    #endif
26790
EOF
26791
elif test -n "$acx_cv_type_int64_t"; then
26792
  sed 's/^ *//' >> tmp-stdint.h <
26793
 
26794
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26795
    #ifndef _INT64_T
26796
    #define _INT64_T
26797
    typedef $acx_cv_type_int64_t int64_t;
26798
    #endif
26799
    #ifndef _UINT64_T
26800
    #define _UINT64_T
26801
    #ifndef __uint64_t_defined
26802
    #define __uint64_t_defined
26803
    typedef unsigned $acx_cv_type_int64_t uint64_t;
26804
    #endif
26805
    #endif
26806
EOF
26807
else
26808
  sed 's/^ *//' >> tmp-stdint.h <
26809
 
26810
    /* some common heuristics for int64_t, using compiler-specific tests */
26811
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26812
    #ifndef _INT64_T
26813
    #define _INT64_T
26814
    #ifndef __int64_t_defined
26815
    typedef long long int64_t;
26816
    #endif
26817
    #endif
26818
    #ifndef _UINT64_T
26819
    #define _UINT64_T
26820
    typedef unsigned long long uint64_t;
26821
    #endif
26822
 
26823
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26824
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26825
       does not implement __extension__.  But that compiler doesn't define
26826
       __GNUC_MINOR__.  */
26827
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26828
    # define __extension__
26829
    # endif
26830
 
26831
    # ifndef _INT64_T
26832
    # define _INT64_T
26833
    __extension__ typedef long long int64_t;
26834
    # endif
26835
    # ifndef _UINT64_T
26836
    # define _UINT64_T
26837
    __extension__ typedef unsigned long long uint64_t;
26838
    # endif
26839
 
26840
    #elif !defined __STRICT_ANSI__
26841
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26842
 
26843
    #  ifndef _INT64_T
26844
    #  define _INT64_T
26845
    typedef __int64 int64_t;
26846
    #  endif
26847
    #  ifndef _UINT64_T
26848
    #  define _UINT64_T
26849
    typedef unsigned __int64 uint64_t;
26850
    #  endif
26851
    # endif /* compiler */
26852
 
26853
    #endif /* ANSI version */
26854
EOF
26855
fi
26856
 
26857
# ------------- done int64_t types, emit intptr types ------------
26858
if test "$ac_cv_type_uintptr_t" != yes; then
26859
  sed 's/^ *//' >> tmp-stdint.h <
26860
 
26861
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26862
    #ifndef __uintptr_t_defined
26863
    typedef u$acx_cv_type_intptr_t uintptr_t;
26864
    #endif
26865
    #ifndef __intptr_t_defined
26866
    typedef $acx_cv_type_intptr_t  intptr_t;
26867
    #endif
26868
EOF
26869
fi
26870
 
26871
# ------------- done intptr types, emit int_least types ------------
26872
if test "$ac_cv_type_int_least32_t" != yes; then
26873
  sed 's/^ *//' >> tmp-stdint.h <
26874
 
26875
    /* Define int_least types */
26876
    typedef int8_t     int_least8_t;
26877
    typedef int16_t    int_least16_t;
26878
    typedef int32_t    int_least32_t;
26879
    #ifdef _INT64_T
26880
    typedef int64_t    int_least64_t;
26881
    #endif
26882
 
26883
    typedef uint8_t    uint_least8_t;
26884
    typedef uint16_t   uint_least16_t;
26885
    typedef uint32_t   uint_least32_t;
26886
    #ifdef _UINT64_T
26887
    typedef uint64_t   uint_least64_t;
26888
    #endif
26889
EOF
26890
fi
26891
 
26892
# ------------- done intptr types, emit int_fast types ------------
26893
if test "$ac_cv_type_int_fast32_t" != yes; then
26894
      sed 's/^ *//' >> tmp-stdint.h <
26895
 
26896
    /* Define int_fast types.  short is often slow */
26897
    typedef int8_t       int_fast8_t;
26898
    typedef int          int_fast16_t;
26899
    typedef int32_t      int_fast32_t;
26900
    #ifdef _INT64_T
26901
    typedef int64_t      int_fast64_t;
26902
    #endif
26903
 
26904
    typedef uint8_t      uint_fast8_t;
26905
    typedef unsigned int uint_fast16_t;
26906
    typedef uint32_t     uint_fast32_t;
26907
    #ifdef _UINT64_T
26908
    typedef uint64_t     uint_fast64_t;
26909
    #endif
26910
EOF
26911
fi
26912
 
26913
if test "$ac_cv_type_uintmax_t" != yes; then
26914
  sed 's/^ *//' >> tmp-stdint.h <
26915
 
26916
    /* Define intmax based on what we found */
26917
    #ifdef _INT64_T
26918
    typedef int64_t       intmax_t;
26919
    #else
26920
    typedef long          intmax_t;
26921
    #endif
26922
    #ifdef _UINT64_T
26923
    typedef uint64_t      uintmax_t;
26924
    #else
26925
    typedef unsigned long uintmax_t;
26926
    #endif
26927
EOF
26928
fi
26929
 
26930
sed 's/^ *//' >> tmp-stdint.h <
26931
 
26932
  #endif /* GCC_GENERATED_STDINT_H */
26933
EOF
26934
 
26935
if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26936
  rm -f tmp-stdint.h
26937
else
26938
  mv -f tmp-stdint.h gdb_stdint.h
26939
fi
26940
 
26941
 ;;
26942 225 jeremybenn
    default )
26943 131 jeremybenn
 
26944
sed -e '/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' Makefile.tmp
26945
mv -f Makefile.tmp Makefile
26946
 
26947
 
26948
case x$CONFIG_HEADERS in
26949
xconfig.h:config.in)
26950
echo > stamp-h ;;
26951
esac
26952
 ;;
26953
  esac
26954 225 jeremybenn
done
26955
_ACEOF
26956 131 jeremybenn
 
26957 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF
26958 131 jeremybenn
 
26959
{ (exit 0); exit 0; }
26960
_ACEOF
26961
chmod +x $CONFIG_STATUS
26962
ac_clean_files=$ac_clean_files_save
26963
 
26964
 
26965
# configure is writing to config.log, and then calls config.status.
26966
# config.status does its own redirection, appending to config.log.
26967
# Unfortunately, on DOS this fails, as config.log is still kept open
26968
# by configure, so config.status won't be able to write to it; its
26969
# output is simply discarded.  So we exec the FD to /dev/null,
26970
# effectively closing config.log, so it can be properly (re)opened and
26971
# appended to by config.status.  When coming back to configure, we
26972
# need to make the FD available again.
26973
if test "$no_create" != yes; then
26974
  ac_cs_success=:
26975
  ac_config_status_args=
26976
  test "$silent" = yes &&
26977
    ac_config_status_args="$ac_config_status_args --quiet"
26978
  exec 5>/dev/null
26979
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26980
  exec 5>>config.log
26981
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26982
  # would make configure fail if this is the last instruction.
26983
  $ac_cs_success || { (exit 1); exit 1; }
26984
fi
26985
 
26986
#
26987
# CONFIG_SUBDIRS section.
26988
#
26989
if test "$no_recursion" != yes; then
26990
 
26991 225 jeremybenn
  # Remove --cache-file and --srcdir arguments so they do not pile up.
26992 131 jeremybenn
  ac_sub_configure_args=
26993
  ac_prev=
26994 225 jeremybenn
  for ac_arg in $ac_configure_args; do
26995 131 jeremybenn
    if test -n "$ac_prev"; then
26996
      ac_prev=
26997
      continue
26998
    fi
26999
    case $ac_arg in
27000
    -cache-file | --cache-file | --cache-fil | --cache-fi \
27001
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27002
      ac_prev=cache_file ;;
27003
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27004
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27005
    | --c=*)
27006
      ;;
27007
    --config-cache | -C)
27008
      ;;
27009
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27010
      ac_prev=srcdir ;;
27011
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27012
      ;;
27013
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27014
      ac_prev=prefix ;;
27015
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27016
      ;;
27017 225 jeremybenn
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27018 131 jeremybenn
    esac
27019
  done
27020
 
27021
  # Always prepend --prefix to ensure using the same prefix
27022
  # in subdir configurations.
27023 225 jeremybenn
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27024 131 jeremybenn
 
27025
  ac_popdir=`pwd`
27026
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27027
 
27028
    # Do not complain, so a configure script can configure whichever
27029
    # parts of a large source tree are present.
27030 225 jeremybenn
    test -d $srcdir/$ac_dir || continue
27031 131 jeremybenn
 
27032 225 jeremybenn
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27033
echo "$as_me: configuring in $ac_dir" >&6;}
27034
    { if $as_mkdir_p; then
27035
    mkdir -p "$ac_dir"
27036
  else
27037
    as_dir="$ac_dir"
27038 131 jeremybenn
    as_dirs=
27039 225 jeremybenn
    while test ! -d "$as_dir"; do
27040
      as_dirs="$as_dir $as_dirs"
27041
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27042 131 jeremybenn
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27043
         X"$as_dir" : 'X\(//\)[^/]' \| \
27044
         X"$as_dir" : 'X\(//\)$' \| \
27045 225 jeremybenn
         X"$as_dir" : 'X\(/\)' \| \
27046
         .     : '\(.\)' 2>/dev/null ||
27047
echo X"$as_dir" |
27048
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27049
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27050
          /^X\(\/\/\)$/{ s//\1/; q; }
27051
          /^X\(\/\).*/{ s//\1/; q; }
27052
          s/.*/./; q'`
27053 131 jeremybenn
    done
27054 225 jeremybenn
    test ! -n "$as_dirs" || mkdir $as_dirs
27055
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27056
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27057 131 jeremybenn
   { (exit 1); exit 1; }; }; }
27058 225 jeremybenn
 
27059 131 jeremybenn
    ac_builddir=.
27060
 
27061 225 jeremybenn
if test "$ac_dir" != .; then
27062
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27063
  # A "../" for each directory in $ac_dir_suffix.
27064
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27065
else
27066
  ac_dir_suffix= ac_top_builddir=
27067
fi
27068 131 jeremybenn
 
27069
case $srcdir in
27070 225 jeremybenn
  .)  # No --srcdir option.  We are building in place.
27071 131 jeremybenn
    ac_srcdir=.
27072 225 jeremybenn
    if test -z "$ac_top_builddir"; then
27073
       ac_top_srcdir=.
27074
    else
27075
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27076
    fi ;;
27077
  [\\/]* | ?:[\\/]* )  # Absolute path.
27078 131 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
27079 225 jeremybenn
    ac_top_srcdir=$srcdir ;;
27080
  *) # Relative path.
27081
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27082
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27083 131 jeremybenn
esac
27084
 
27085 225 jeremybenn
# Do not use `cd foo && pwd` to compute absolute paths, because
27086
# the directories may not exist.
27087
case `pwd` in
27088
.) ac_abs_builddir="$ac_dir";;
27089
*)
27090
  case "$ac_dir" in
27091
  .) ac_abs_builddir=`pwd`;;
27092
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27093
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27094
  esac;;
27095
esac
27096
case $ac_abs_builddir in
27097
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27098
*)
27099
  case ${ac_top_builddir}. in
27100
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27101
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27102
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27103
  esac;;
27104
esac
27105
case $ac_abs_builddir in
27106
.) ac_abs_srcdir=$ac_srcdir;;
27107
*)
27108
  case $ac_srcdir in
27109
  .) ac_abs_srcdir=$ac_abs_builddir;;
27110
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27111
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27112
  esac;;
27113
esac
27114
case $ac_abs_builddir in
27115
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27116
*)
27117
  case $ac_top_srcdir in
27118
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27119
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27120
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27121
  esac;;
27122
esac
27123 131 jeremybenn
 
27124
 
27125 225 jeremybenn
    cd $ac_dir
27126
 
27127 131 jeremybenn
    # Check for guested configure; otherwise get Cygnus style configure.
27128 225 jeremybenn
    if test -f $ac_srcdir/configure.gnu; then
27129
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27130
    elif test -f $ac_srcdir/configure; then
27131
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27132
    elif test -f $ac_srcdir/configure.in; then
27133
      ac_sub_configure=$ac_configure
27134 131 jeremybenn
    else
27135 225 jeremybenn
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27136
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27137 131 jeremybenn
      ac_sub_configure=
27138
    fi
27139
 
27140
    # The recursion is here.
27141
    if test -n "$ac_sub_configure"; then
27142
      # Make the cache file name correct relative to the subdirectory.
27143
      case $cache_file in
27144
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27145 225 jeremybenn
      *) # Relative path.
27146
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27147 131 jeremybenn
      esac
27148
 
27149 225 jeremybenn
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27150
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27151 131 jeremybenn
      # The eval makes quoting arguments work.
27152 225 jeremybenn
      eval $ac_sub_configure $ac_sub_configure_args \
27153
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27154
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27155
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27156 131 jeremybenn
   { (exit 1); exit 1; }; }
27157
    fi
27158
 
27159 225 jeremybenn
    cd $ac_popdir
27160 131 jeremybenn
  done
27161
fi
27162
 
27163
 
27164
exit 0

powered by: WebSVN 2.1.0

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