OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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 213 jeremybenn
# Generated by GNU Autoconf 2.63.
4 131 jeremybenn
#
5 213 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 131 jeremybenn
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13 213 jeremybenn
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15 131 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18 213 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 131 jeremybenn
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21 213 jeremybenn
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27 131 jeremybenn
fi
28
 
29 213 jeremybenn
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81 131 jeremybenn
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89 213 jeremybenn
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120 131 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
121 213 jeremybenn
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124 131 jeremybenn
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129 213 jeremybenn
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133 131 jeremybenn
 
134
# Required to use basename.
135 213 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 131 jeremybenn
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142 213 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 131 jeremybenn
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150 213 jeremybenn
as_me=`$as_basename -- "$0" ||
151 131 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153 213 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168 131 jeremybenn
 
169 213 jeremybenn
# CDPATH.
170
$as_unset CDPATH
171 131 jeremybenn
 
172
 
173 213 jeremybenn
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178 131 jeremybenn
fi
179
 
180 213 jeremybenn
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196 131 jeremybenn
 
197 213 jeremybenn
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204 131 jeremybenn
 
205 213 jeremybenn
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240 131 jeremybenn
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245 213 jeremybenn
  case $as_dir in
246 131 jeremybenn
         /*)
247 213 jeremybenn
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347 131 jeremybenn
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350 213 jeremybenn
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351 131 jeremybenn
 
352 213 jeremybenn
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448 131 jeremybenn
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450 213 jeremybenn
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455 131 jeremybenn
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 213 jeremybenn
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462 131 jeremybenn
    sed '
463 213 jeremybenn
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467 131 jeremybenn
      N
468 213 jeremybenn
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 131 jeremybenn
      t loop
471 213 jeremybenn
      s/-\n.*//
472 131 jeremybenn
    ' >$as_me.lineno &&
473 213 jeremybenn
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 131 jeremybenn
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479 213 jeremybenn
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481 131 jeremybenn
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486 213 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501 131 jeremybenn
esac
502 213 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 131 jeremybenn
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510 213 jeremybenn
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528 131 jeremybenn
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533 213 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535 131 jeremybenn
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543 213 jeremybenn
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565 131 jeremybenn
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574 213 jeremybenn
exec 7<&0 &1
575 131 jeremybenn
 
576
# Name of the host.
577
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578
# so uname gets run too.
579
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
 
581
#
582
# Initializations.
583
#
584
ac_default_prefix=/usr/local
585 213 jeremybenn
ac_clean_files=
586 131 jeremybenn
ac_config_libobj_dir=.
587 213 jeremybenn
LIBOBJS=
588 131 jeremybenn
cross_compiling=no
589
subdirs=
590
MFLAGS=
591
MAKEFLAGS=
592
SHELL=${CONFIG_SHELL-/bin/sh}
593
 
594
# Identity of this package.
595
PACKAGE_NAME=
596
PACKAGE_TARNAME=
597
PACKAGE_VERSION=
598
PACKAGE_STRING=
599
PACKAGE_BUGREPORT=
600
 
601
ac_unique_file="main.c"
602
# Factoring default headers for most tests.
603
ac_includes_default="\
604
#include 
605 213 jeremybenn
#ifdef HAVE_SYS_TYPES_H
606 131 jeremybenn
# include 
607
#endif
608 213 jeremybenn
#ifdef HAVE_SYS_STAT_H
609 131 jeremybenn
# include 
610
#endif
611 213 jeremybenn
#ifdef STDC_HEADERS
612 131 jeremybenn
# include 
613
# include 
614
#else
615 213 jeremybenn
# ifdef HAVE_STDLIB_H
616 131 jeremybenn
#  include 
617
# endif
618
#endif
619 213 jeremybenn
#ifdef HAVE_STRING_H
620
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 131 jeremybenn
#  include 
622
# endif
623
# include 
624
#endif
625 213 jeremybenn
#ifdef HAVE_STRINGS_H
626 131 jeremybenn
# include 
627
#endif
628 213 jeremybenn
#ifdef HAVE_INTTYPES_H
629 131 jeremybenn
# include 
630
#endif
631 213 jeremybenn
#ifdef HAVE_STDINT_H
632
# include 
633
#endif
634
#ifdef HAVE_UNISTD_H
635 131 jeremybenn
# include 
636
#endif"
637
 
638 213 jeremybenn
enable_option_checking=no
639
ac_subst_vars='LTLIBOBJS
640
LIBOBJS
641
LIBICONV
642
nm_h
643
frags
644
target_subdir
645
CONFIG_UNINSTALL
646
CONFIG_INSTALL
647
CONFIG_CLEAN
648
CONFIG_ALL
649
CONFIG_SRCS
650
CONFIG_DEPS
651
CONFIG_OBS
652
PROFILE_CFLAGS
653
ENABLE_CFLAGS
654
SIM_OBS
655
SIM
656
XMKMF
657
GDBTK_SRC_DIR
658
GDBTK_CFLAGS
659
GDBTKLIBS
660
ITK_DEPS
661
ITKLIB
662
ITCL_DEPS
663
ITCLLIB
664
TK_DEPS
665
TCL_DEPS
666
X_LIBS
667
X_LDFLAGS
668
X_CFLAGS
669
ITK_LIB_SPEC
670
ITK_BUILD_LIB_SPEC
671
ITK_BUILD_INCLUDES
672
ITK_DEFS
673
ITK_VERSION
674
ITCL_LIB_SPEC
675
ITCL_BUILD_LIB_SPEC
676
ITCL_BUILD_INCLUDES
677
ITCL_DEFS
678
ITCL_VERSION
679
ITKHDIR
680
ITCLHDIR
681
TKHDIR
682
TCLHDIR
683
TK_LIB_SPEC
684
TK_BUILD_LIB_SPEC
685
TK_XLIBSW
686
TK_XINCLUDES
687
TK_BUILD_INCLUDES
688
TK_DEFS
689
TK_VERSION
690
TCL_LIB_VERSIONS_OK
691
TCL_LIB_SPEC
692
TCL_BUILD_LIB_SPEC
693
TCL_RANLIB
694
TCL_COMPAT_OBJS
695
TCL_CC_SEARCH_FLAGS
696
TCL_LD_SEARCH_FLAGS
697
TCL_LD_FLAGS
698
TCL_DL_LIBS
699
TCL_SHLIB_SUFFIX
700
TCL_SHLIB_LD_LIBS
701
TCL_SHLIB_LD
702
TCL_SHLIB_CFLAGS
703
TCL_DEFS
704
TCL_CC
705
TCL_MINOR_VERSION
706
TCL_MAJOR_VERSION
707
TCL_VERSION
708
WIN32LDAPP
709
GUI_CFLAGS_X
710
LIBGUI
711
WIN32LIBS
712
SER_HARDWIRE
713
WERROR_CFLAGS
714
WARN_CFLAGS
715
TARGET_SYSTEM_ROOT_DEFINE
716
TARGET_SYSTEM_ROOT
717
CONFIG_LDFLAGS
718
ALLOCA
719
LTLIBEXPAT
720
LIBEXPAT
721
HAVE_LIBEXPAT
722
READLINE_CFLAGS
723
READLINE_DEPS
724
READLINE
725
MIG
726
WINDRES
727
DLLTOOL
728
AR
729
YFLAGS
730
YACC
731
RANLIB
732
LN_S
733
INSTALL_DATA
734
INSTALL_SCRIPT
735
INSTALL_PROGRAM
736
AWK
737
TARGET_OBS
738
subdirs
739
PACKAGE
740
CATOBJEXT
741
GENCAT
742
INSTOBJEXT
743
DATADIRNAME
744
CATALOGS
745
POSUB
746
GMSGFMT
747
XGETTEXT
748
INCINTL
749
LIBINTL_DEP
750
LIBINTL
751
USE_NLS
752
target_os
753
target_vendor
754
target_cpu
755
target
756
host_os
757
host_vendor
758
host_cpu
759
host
760
build_os
761
build_vendor
762
build_cpu
763
build
764
EGREP
765
GREP
766
CPP
767
OBJEXT
768
EXEEXT
769
ac_ct_CC
770
CPPFLAGS
771
LDFLAGS
772
CFLAGS
773
CC
774
MAINT
775
MAINTAINER_MODE_FALSE
776
MAINTAINER_MODE_TRUE
777
target_alias
778
host_alias
779
build_alias
780
LIBS
781
ECHO_T
782
ECHO_N
783
ECHO_C
784
DEFS
785
mandir
786
localedir
787
libdir
788
psdir
789
pdfdir
790
dvidir
791
htmldir
792
infodir
793
docdir
794
oldincludedir
795
includedir
796
localstatedir
797
sharedstatedir
798
sysconfdir
799
datadir
800
datarootdir
801
libexecdir
802
sbindir
803
bindir
804
program_transform_name
805
prefix
806
exec_prefix
807
PACKAGE_BUGREPORT
808
PACKAGE_STRING
809
PACKAGE_VERSION
810
PACKAGE_TARNAME
811
PACKAGE_NAME
812
PATH_SEPARATOR
813
SHELL'
814 131 jeremybenn
ac_subst_files='host_makefile_frag'
815 213 jeremybenn
ac_user_opts='
816
enable_option_checking
817
enable_maintainer_mode
818
with_separate_debug_dir
819
enable_targets
820
enable_64_bit_bfd
821
enable_gdbcli
822
enable_gdbmi
823
enable_tui
824
enable_gdbtk
825
with_libunwind
826
enable_profiling
827
with_system_readline
828
with_expat
829
with_gnu_ld
830
enable_rpath
831
with_libexpat_prefix
832
with_included_regex
833
with_sysroot
834
enable_werror
835
enable_build_warnings
836
enable_gdb_build_warnings
837
with_tclconfig
838
with_tkconfig
839
with_tclinclude
840
with_tkinclude
841
with_itclconfig
842
with_itkconfig
843
with_x
844
enable_sim
845
enable_multi_ice
846
with_libiconv_prefix
847
'
848
      ac_precious_vars='build_alias
849
host_alias
850
target_alias
851
CC
852
CFLAGS
853
LDFLAGS
854
LIBS
855
CPPFLAGS
856
CPP
857
YACC
858
YFLAGS
859
XMKMF'
860
ac_subdirs_all='doc testsuite
861
gdbtk
862
multi-ice
863
gdbserver'
864 131 jeremybenn
 
865
# Initialize some variables set by options.
866
ac_init_help=
867
ac_init_version=false
868 213 jeremybenn
ac_unrecognized_opts=
869
ac_unrecognized_sep=
870 131 jeremybenn
# The variables have the same names as the options, with
871
# dashes changed to underlines.
872
cache_file=/dev/null
873
exec_prefix=NONE
874
no_create=
875
no_recursion=
876
prefix=NONE
877
program_prefix=NONE
878
program_suffix=NONE
879
program_transform_name=s,x,x,
880
silent=
881
site=
882
srcdir=
883
verbose=
884
x_includes=NONE
885
x_libraries=NONE
886
 
887
# Installation directory options.
888
# These are left unexpanded so users can "make install exec_prefix=/foo"
889
# and all the variables that are supposed to be based on exec_prefix
890
# by default will actually change.
891
# Use braces instead of parens because sh, perl, etc. also accept them.
892 213 jeremybenn
# (The list follows the same order as the GNU Coding Standards.)
893 131 jeremybenn
bindir='${exec_prefix}/bin'
894
sbindir='${exec_prefix}/sbin'
895
libexecdir='${exec_prefix}/libexec'
896 213 jeremybenn
datarootdir='${prefix}/share'
897
datadir='${datarootdir}'
898 131 jeremybenn
sysconfdir='${prefix}/etc'
899
sharedstatedir='${prefix}/com'
900
localstatedir='${prefix}/var'
901
includedir='${prefix}/include'
902
oldincludedir='/usr/include'
903 213 jeremybenn
docdir='${datarootdir}/doc/${PACKAGE}'
904
infodir='${datarootdir}/info'
905
htmldir='${docdir}'
906
dvidir='${docdir}'
907
pdfdir='${docdir}'
908
psdir='${docdir}'
909
libdir='${exec_prefix}/lib'
910
localedir='${datarootdir}/locale'
911
mandir='${datarootdir}/man'
912 131 jeremybenn
 
913
ac_prev=
914 213 jeremybenn
ac_dashdash=
915 131 jeremybenn
for ac_option
916
do
917
  # If the previous option needs an argument, assign it.
918
  if test -n "$ac_prev"; then
919 213 jeremybenn
    eval $ac_prev=\$ac_option
920 131 jeremybenn
    ac_prev=
921
    continue
922
  fi
923
 
924 213 jeremybenn
  case $ac_option in
925
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926
  *)    ac_optarg=yes ;;
927
  esac
928 131 jeremybenn
 
929
  # Accept the important Cygnus configure options, so we can diagnose typos.
930
 
931 213 jeremybenn
  case $ac_dashdash$ac_option in
932
  --)
933
    ac_dashdash=yes ;;
934 131 jeremybenn
 
935
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936
    ac_prev=bindir ;;
937
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938
    bindir=$ac_optarg ;;
939
 
940
  -build | --build | --buil | --bui | --bu)
941
    ac_prev=build_alias ;;
942
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943
    build_alias=$ac_optarg ;;
944
 
945
  -cache-file | --cache-file | --cache-fil | --cache-fi \
946
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947
    ac_prev=cache_file ;;
948
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950
    cache_file=$ac_optarg ;;
951
 
952
  --config-cache | -C)
953
    cache_file=config.cache ;;
954
 
955 213 jeremybenn
  -datadir | --datadir | --datadi | --datad)
956 131 jeremybenn
    ac_prev=datadir ;;
957 213 jeremybenn
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 131 jeremybenn
    datadir=$ac_optarg ;;
959
 
960 213 jeremybenn
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961
  | --dataroo | --dataro | --datar)
962
    ac_prev=datarootdir ;;
963
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965
    datarootdir=$ac_optarg ;;
966
 
967 131 jeremybenn
  -disable-* | --disable-*)
968 213 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 131 jeremybenn
    # Reject names that are not valid shell variable names.
970 213 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 131 jeremybenn
   { (exit 1); exit 1; }; }
973 213 jeremybenn
    ac_useropt_orig=$ac_useropt
974
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975
    case $ac_user_opts in
976
      *"
977
"enable_$ac_useropt"
978
"*) ;;
979
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980
         ac_unrecognized_sep=', ';;
981
    esac
982
    eval enable_$ac_useropt=no ;;
983 131 jeremybenn
 
984 213 jeremybenn
  -docdir | --docdir | --docdi | --doc | --do)
985
    ac_prev=docdir ;;
986
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987
    docdir=$ac_optarg ;;
988
 
989
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990
    ac_prev=dvidir ;;
991
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992
    dvidir=$ac_optarg ;;
993
 
994 131 jeremybenn
  -enable-* | --enable-*)
995 213 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 131 jeremybenn
    # Reject names that are not valid shell variable names.
997 213 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 131 jeremybenn
   { (exit 1); exit 1; }; }
1000 213 jeremybenn
    ac_useropt_orig=$ac_useropt
1001
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002
    case $ac_user_opts in
1003
      *"
1004
"enable_$ac_useropt"
1005
"*) ;;
1006
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007
         ac_unrecognized_sep=', ';;
1008 131 jeremybenn
    esac
1009 213 jeremybenn
    eval enable_$ac_useropt=\$ac_optarg ;;
1010 131 jeremybenn
 
1011
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013
  | --exec | --exe | --ex)
1014
    ac_prev=exec_prefix ;;
1015
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017
  | --exec=* | --exe=* | --ex=*)
1018
    exec_prefix=$ac_optarg ;;
1019
 
1020
  -gas | --gas | --ga | --g)
1021
    # Obsolete; use --with-gas.
1022
    with_gas=yes ;;
1023
 
1024
  -help | --help | --hel | --he | -h)
1025
    ac_init_help=long ;;
1026
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027
    ac_init_help=recursive ;;
1028
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029
    ac_init_help=short ;;
1030
 
1031
  -host | --host | --hos | --ho)
1032
    ac_prev=host_alias ;;
1033
  -host=* | --host=* | --hos=* | --ho=*)
1034
    host_alias=$ac_optarg ;;
1035
 
1036 213 jeremybenn
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037
    ac_prev=htmldir ;;
1038
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039
  | --ht=*)
1040
    htmldir=$ac_optarg ;;
1041
 
1042 131 jeremybenn
  -includedir | --includedir | --includedi | --included | --include \
1043
  | --includ | --inclu | --incl | --inc)
1044
    ac_prev=includedir ;;
1045
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1047
    includedir=$ac_optarg ;;
1048
 
1049
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1050
    ac_prev=infodir ;;
1051
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052
    infodir=$ac_optarg ;;
1053
 
1054
  -libdir | --libdir | --libdi | --libd)
1055
    ac_prev=libdir ;;
1056
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057
    libdir=$ac_optarg ;;
1058
 
1059
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060
  | --libexe | --libex | --libe)
1061
    ac_prev=libexecdir ;;
1062
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063
  | --libexe=* | --libex=* | --libe=*)
1064
    libexecdir=$ac_optarg ;;
1065
 
1066 213 jeremybenn
  -localedir | --localedir | --localedi | --localed | --locale)
1067
    ac_prev=localedir ;;
1068
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069
    localedir=$ac_optarg ;;
1070
 
1071 131 jeremybenn
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 213 jeremybenn
  | --localstate | --localstat | --localsta | --localst | --locals)
1073 131 jeremybenn
    ac_prev=localstatedir ;;
1074
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 213 jeremybenn
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 131 jeremybenn
    localstatedir=$ac_optarg ;;
1077
 
1078
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079
    ac_prev=mandir ;;
1080
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081
    mandir=$ac_optarg ;;
1082
 
1083
  -nfp | --nfp | --nf)
1084
    # Obsolete; use --without-fp.
1085
    with_fp=no ;;
1086
 
1087
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088
  | --no-cr | --no-c | -n)
1089
    no_create=yes ;;
1090
 
1091
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093
    no_recursion=yes ;;
1094
 
1095
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097
  | --oldin | --oldi | --old | --ol | --o)
1098
    ac_prev=oldincludedir ;;
1099
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102
    oldincludedir=$ac_optarg ;;
1103
 
1104
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105
    ac_prev=prefix ;;
1106
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107
    prefix=$ac_optarg ;;
1108
 
1109
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110
  | --program-pre | --program-pr | --program-p)
1111
    ac_prev=program_prefix ;;
1112
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114
    program_prefix=$ac_optarg ;;
1115
 
1116
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117
  | --program-suf | --program-su | --program-s)
1118
    ac_prev=program_suffix ;;
1119
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121
    program_suffix=$ac_optarg ;;
1122
 
1123
  -program-transform-name | --program-transform-name \
1124
  | --program-transform-nam | --program-transform-na \
1125
  | --program-transform-n | --program-transform- \
1126
  | --program-transform | --program-transfor \
1127
  | --program-transfo | --program-transf \
1128
  | --program-trans | --program-tran \
1129
  | --progr-tra | --program-tr | --program-t)
1130
    ac_prev=program_transform_name ;;
1131
  -program-transform-name=* | --program-transform-name=* \
1132
  | --program-transform-nam=* | --program-transform-na=* \
1133
  | --program-transform-n=* | --program-transform-=* \
1134
  | --program-transform=* | --program-transfor=* \
1135
  | --program-transfo=* | --program-transf=* \
1136
  | --program-trans=* | --program-tran=* \
1137
  | --progr-tra=* | --program-tr=* | --program-t=*)
1138
    program_transform_name=$ac_optarg ;;
1139
 
1140 213 jeremybenn
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141
    ac_prev=pdfdir ;;
1142
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143
    pdfdir=$ac_optarg ;;
1144
 
1145
  -psdir | --psdir | --psdi | --psd | --ps)
1146
    ac_prev=psdir ;;
1147
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148
    psdir=$ac_optarg ;;
1149
 
1150 131 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151
  | -silent | --silent | --silen | --sile | --sil)
1152
    silent=yes ;;
1153
 
1154
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155
    ac_prev=sbindir ;;
1156
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157
  | --sbi=* | --sb=*)
1158
    sbindir=$ac_optarg ;;
1159
 
1160
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162
  | --sharedst | --shareds | --shared | --share | --shar \
1163
  | --sha | --sh)
1164
    ac_prev=sharedstatedir ;;
1165
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168
  | --sha=* | --sh=*)
1169
    sharedstatedir=$ac_optarg ;;
1170
 
1171
  -site | --site | --sit)
1172
    ac_prev=site ;;
1173
  -site=* | --site=* | --sit=*)
1174
    site=$ac_optarg ;;
1175
 
1176
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177
    ac_prev=srcdir ;;
1178
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179
    srcdir=$ac_optarg ;;
1180
 
1181
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182
  | --syscon | --sysco | --sysc | --sys | --sy)
1183
    ac_prev=sysconfdir ;;
1184
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186
    sysconfdir=$ac_optarg ;;
1187
 
1188
  -target | --target | --targe | --targ | --tar | --ta | --t)
1189
    ac_prev=target_alias ;;
1190
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191
    target_alias=$ac_optarg ;;
1192
 
1193
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194
    verbose=yes ;;
1195
 
1196
  -version | --version | --versio | --versi | --vers | -V)
1197
    ac_init_version=: ;;
1198
 
1199
  -with-* | --with-*)
1200 213 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 131 jeremybenn
    # Reject names that are not valid shell variable names.
1202 213 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 131 jeremybenn
   { (exit 1); exit 1; }; }
1205 213 jeremybenn
    ac_useropt_orig=$ac_useropt
1206
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207
    case $ac_user_opts in
1208
      *"
1209
"with_$ac_useropt"
1210
"*) ;;
1211
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212
         ac_unrecognized_sep=', ';;
1213 131 jeremybenn
    esac
1214 213 jeremybenn
    eval with_$ac_useropt=\$ac_optarg ;;
1215 131 jeremybenn
 
1216
  -without-* | --without-*)
1217 213 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 131 jeremybenn
    # Reject names that are not valid shell variable names.
1219 213 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 131 jeremybenn
   { (exit 1); exit 1; }; }
1222 213 jeremybenn
    ac_useropt_orig=$ac_useropt
1223
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
    case $ac_user_opts in
1225
      *"
1226
"with_$ac_useropt"
1227
"*) ;;
1228
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229
         ac_unrecognized_sep=', ';;
1230
    esac
1231
    eval with_$ac_useropt=no ;;
1232 131 jeremybenn
 
1233
  --x)
1234
    # Obsolete; use --with-x.
1235
    with_x=yes ;;
1236
 
1237
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238
  | --x-incl | --x-inc | --x-in | --x-i)
1239
    ac_prev=x_includes ;;
1240
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242
    x_includes=$ac_optarg ;;
1243
 
1244
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246
    ac_prev=x_libraries ;;
1247
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249
    x_libraries=$ac_optarg ;;
1250
 
1251 213 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 131 jeremybenn
Try \`$0 --help' for more information." >&2
1253
   { (exit 1); exit 1; }; }
1254
    ;;
1255
 
1256
  *=*)
1257
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258
    # Reject names that are not valid shell variable names.
1259
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 213 jeremybenn
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 131 jeremybenn
   { (exit 1); exit 1; }; }
1262 213 jeremybenn
    eval $ac_envvar=\$ac_optarg
1263 131 jeremybenn
    export $ac_envvar ;;
1264
 
1265
  *)
1266
    # FIXME: should be removed in autoconf 3.0.
1267 213 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 131 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 213 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 131 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271
    ;;
1272
 
1273
  esac
1274
done
1275
 
1276
if test -n "$ac_prev"; then
1277
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 213 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 131 jeremybenn
   { (exit 1); exit 1; }; }
1280
fi
1281
 
1282 213 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1283
  case $enable_option_checking in
1284
    no) ;;
1285
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286
   { (exit 1); exit 1; }; } ;;
1287
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 131 jeremybenn
  esac
1289 213 jeremybenn
fi
1290 131 jeremybenn
 
1291 213 jeremybenn
# Check all directory arguments for consistency.
1292
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293
                datadir sysconfdir sharedstatedir localstatedir includedir \
1294
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295
                libdir localedir mandir
1296 131 jeremybenn
do
1297 213 jeremybenn
  eval ac_val=\$$ac_var
1298
  # Remove trailing slashes.
1299 131 jeremybenn
  case $ac_val in
1300 213 jeremybenn
    */ )
1301
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302
      eval $ac_var=\$ac_val;;
1303 131 jeremybenn
  esac
1304 213 jeremybenn
  # Be sure to have absolute directory names.
1305
  case $ac_val in
1306
    [\\/$]* | ?:[\\/]* )  continue;;
1307
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308
  esac
1309
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310
   { (exit 1); exit 1; }; }
1311 131 jeremybenn
done
1312
 
1313
# There might be people who depend on the old broken behavior: `$host'
1314
# used to hold the argument of --host etc.
1315
# FIXME: To remove some day.
1316
build=$build_alias
1317
host=$host_alias
1318
target=$target_alias
1319
 
1320
# FIXME: To remove some day.
1321
if test "x$host_alias" != x; then
1322
  if test "x$build_alias" = x; then
1323
    cross_compiling=maybe
1324 213 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 131 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1326
  elif test "x$build_alias" != "x$host_alias"; then
1327
    cross_compiling=yes
1328
  fi
1329
fi
1330
 
1331
ac_tool_prefix=
1332
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
 
1334
test "$silent" = yes && exec 6>/dev/null
1335
 
1336
 
1337 213 jeremybenn
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338
ac_ls_di=`ls -di .` &&
1339
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341
   { (exit 1); exit 1; }; }
1342
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344
   { (exit 1); exit 1; }; }
1345
 
1346
 
1347 131 jeremybenn
# Find the source files, if location was not specified.
1348
if test -z "$srcdir"; then
1349
  ac_srcdir_defaulted=yes
1350 213 jeremybenn
  # Try the directory containing this script, then the parent directory.
1351
  ac_confdir=`$as_dirname -- "$as_myself" ||
1352
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353
         X"$as_myself" : 'X\(//\)[^/]' \| \
1354
         X"$as_myself" : 'X\(//\)$' \| \
1355
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356
$as_echo X"$as_myself" |
1357
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358
            s//\1/
1359
            q
1360
          }
1361
          /^X\(\/\/\)[^/].*/{
1362
            s//\1/
1363
            q
1364
          }
1365
          /^X\(\/\/\)$/{
1366
            s//\1/
1367
            q
1368
          }
1369
          /^X\(\/\).*/{
1370
            s//\1/
1371
            q
1372
          }
1373
          s/.*/./; q'`
1374 131 jeremybenn
  srcdir=$ac_confdir
1375 213 jeremybenn
  if test ! -r "$srcdir/$ac_unique_file"; then
1376 131 jeremybenn
    srcdir=..
1377
  fi
1378
else
1379
  ac_srcdir_defaulted=no
1380
fi
1381 213 jeremybenn
if test ! -r "$srcdir/$ac_unique_file"; then
1382
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 131 jeremybenn
   { (exit 1); exit 1; }; }
1385 213 jeremybenn
fi
1386
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387
ac_abs_confdir=`(
1388
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 131 jeremybenn
   { (exit 1); exit 1; }; }
1390 213 jeremybenn
        pwd)`
1391
# When building in place, set srcdir=.
1392
if test "$ac_abs_confdir" = "$ac_pwd"; then
1393
  srcdir=.
1394 131 jeremybenn
fi
1395 213 jeremybenn
# Remove unnecessary trailing slashes from srcdir.
1396
# Double slashes in file names in object file debugging info
1397
# mess up M-x gdb in Emacs.
1398
case $srcdir in
1399
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400
esac
1401
for ac_var in $ac_precious_vars; do
1402
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403
  eval ac_env_${ac_var}_value=\$${ac_var}
1404
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406
done
1407 131 jeremybenn
 
1408
#
1409
# Report the --help message.
1410
#
1411
if test "$ac_init_help" = "long"; then
1412
  # Omit some internal or obsolete options to make the list less imposing.
1413
  # This message is too long to be a string in the A/UX 3.1 sh.
1414
  cat <<_ACEOF
1415
\`configure' configures this package to adapt to many kinds of systems.
1416
 
1417
Usage: $0 [OPTION]... [VAR=VALUE]...
1418
 
1419
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420
VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
 
1422
Defaults for the options are specified in brackets.
1423
 
1424
Configuration:
1425
  -h, --help              display this help and exit
1426
      --help=short        display options specific to this package
1427
      --help=recursive    display the short help of all the included packages
1428
  -V, --version           display version information and exit
1429
  -q, --quiet, --silent   do not print \`checking...' messages
1430
      --cache-file=FILE   cache test results in FILE [disabled]
1431
  -C, --config-cache      alias for \`--cache-file=config.cache'
1432
  -n, --no-create         do not create output files
1433
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
 
1435
Installation directories:
1436
  --prefix=PREFIX         install architecture-independent files in PREFIX
1437 213 jeremybenn
                          [$ac_default_prefix]
1438 131 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439 213 jeremybenn
                          [PREFIX]
1440 131 jeremybenn
 
1441
By default, \`make install' will install all the files in
1442
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444
for instance \`--prefix=\$HOME'.
1445
 
1446
For better control, use the options below.
1447
 
1448
Fine tuning of the installation directories:
1449 213 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1450
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1452
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455
  --libdir=DIR            object code libraries [EPREFIX/lib]
1456
  --includedir=DIR        C header files [PREFIX/include]
1457
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1461
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1463
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1464
  --htmldir=DIR           html documentation [DOCDIR]
1465
  --dvidir=DIR            dvi documentation [DOCDIR]
1466
  --pdfdir=DIR            pdf documentation [DOCDIR]
1467
  --psdir=DIR             ps documentation [DOCDIR]
1468 131 jeremybenn
_ACEOF
1469
 
1470
  cat <<\_ACEOF
1471
 
1472
Program names:
1473
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1474
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1475
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
 
1477
X features:
1478
  --x-includes=DIR    X include files are in DIR
1479
  --x-libraries=DIR   X library files are in DIR
1480
 
1481
System types:
1482
  --build=BUILD     configure for building on BUILD [guessed]
1483
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484
  --target=TARGET   configure for building compilers for TARGET [HOST]
1485
_ACEOF
1486
fi
1487
 
1488
if test -n "$ac_init_help"; then
1489
 
1490
  cat <<\_ACEOF
1491
 
1492
Optional Features:
1493 213 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1494 131 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496
  --enable-maintainer-mode  enable make rules and dependencies not useful
1497
                          (and sometimes confusing) to the casual installer
1498
  --enable-targets        alternative target configurations
1499
  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1500
  --disable-gdbcli        disable command-line interface (CLI)
1501
  --disable-gdbmi         disable machine-interface (MI)
1502
  --enable-tui            enable full-screen terminal user interface (TUI)
1503
  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1504
  --enable-profiling      enable profiling of GDB
1505
  --disable-rpath         do not hardcode runtime library paths
1506
  --enable-werror    treat compile warnings as errors
1507
  --enable-build-warnings Enable build-time compiler warnings if gcc is used
1508
  --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
1509
  --enable-sim            Link gdb with simulator
1510
  --enable-multi-ice      build the multi-ice-gdb-server
1511
 
1512
Optional Packages:
1513
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515
  --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
1516
  --with-libunwind            Use libunwind frame unwinding support
1517
  --with-system-readline  use installed readline library
1518
  --with-expat            include expat support (auto/yes/no)
1519
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1520
  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1521
  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1522
  --without-included-regex don't use included regex; this is the default
1523
                          on systems with version 2 of the GNU C library
1524
                          (use with caution on other system)
1525
  --with-sysroot=DIR Search for usr/lib et al within DIR.
1526
  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
1527
  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
1528
  --with-tclinclude=DIR   Directory where tcl private headers are
1529
  --with-tkinclude=DIR    Directory where tk private headers are
1530
  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
1531
  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
1532
  --with-x                use the X Window System
1533
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1534
 
1535
Some influential environment variables:
1536
  CC          C compiler command
1537
  CFLAGS      C compiler flags
1538
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1539
              nonstandard directory 
1540 213 jeremybenn
  LIBS        libraries to pass to the linker, e.g. -l
1541
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1542
              you have headers in a nonstandard directory 
1543 131 jeremybenn
  CPP         C preprocessor
1544 213 jeremybenn
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1545
              the first program found out of: `bison -y', `byacc', `yacc'.
1546
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1547
              This script will default YFLAGS to the empty string to avoid a
1548
              default value of `-d' given by some make applications.
1549
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1550 131 jeremybenn
 
1551
Use these variables to override the choices made by `configure' or to help
1552
it to find libraries and programs with nonstandard names/locations.
1553
 
1554
_ACEOF
1555 213 jeremybenn
ac_status=$?
1556 131 jeremybenn
fi
1557
 
1558
if test "$ac_init_help" = "recursive"; then
1559
  # If there are subdirs, report their specific --help.
1560
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 213 jeremybenn
    test -d "$ac_dir" ||
1562
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563
      continue
1564 131 jeremybenn
    ac_builddir=.
1565
 
1566 213 jeremybenn
case "$ac_dir" in
1567
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568
*)
1569
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570
  # A ".." for each directory in $ac_dir_suffix.
1571
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572
  case $ac_top_builddir_sub in
1573
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575
  esac ;;
1576
esac
1577
ac_abs_top_builddir=$ac_pwd
1578
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579
# for backward compatibility:
1580
ac_top_builddir=$ac_top_build_prefix
1581 131 jeremybenn
 
1582
case $srcdir in
1583 213 jeremybenn
  .)  # We are building in place.
1584 131 jeremybenn
    ac_srcdir=.
1585 213 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
1586
    ac_abs_top_srcdir=$ac_pwd ;;
1587
  [\\/]* | ?:[\\/]* )  # Absolute name.
1588 131 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
1589 213 jeremybenn
    ac_top_srcdir=$srcdir
1590
    ac_abs_top_srcdir=$srcdir ;;
1591
  *) # Relative name.
1592
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1594
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 131 jeremybenn
esac
1596 213 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 131 jeremybenn
 
1598 213 jeremybenn
    cd "$ac_dir" || { ac_status=$?; continue; }
1599
    # Check for guested configure.
1600
    if test -f "$ac_srcdir/configure.gnu"; then
1601
      echo &&
1602
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603
    elif test -f "$ac_srcdir/configure"; then
1604
      echo &&
1605
      $SHELL "$ac_srcdir/configure" --help=recursive
1606 131 jeremybenn
    else
1607 213 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608
    fi || ac_status=$?
1609
    cd "$ac_pwd" || { ac_status=$?; break; }
1610 131 jeremybenn
  done
1611
fi
1612
 
1613 213 jeremybenn
test -n "$ac_init_help" && exit $ac_status
1614 131 jeremybenn
if $ac_init_version; then
1615
  cat <<\_ACEOF
1616 213 jeremybenn
configure
1617
generated by GNU Autoconf 2.63
1618 131 jeremybenn
 
1619 213 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1621 131 jeremybenn
This configure script is free software; the Free Software Foundation
1622
gives unlimited permission to copy, distribute and modify it.
1623
_ACEOF
1624 213 jeremybenn
  exit
1625 131 jeremybenn
fi
1626 213 jeremybenn
cat >config.log <<_ACEOF
1627 131 jeremybenn
This file contains any messages produced by compilers while
1628
running configure, to aid debugging if configure makes a mistake.
1629
 
1630
It was created by $as_me, which was
1631 213 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1632 131 jeremybenn
 
1633
  $ $0 $@
1634
 
1635
_ACEOF
1636 213 jeremybenn
exec 5>>config.log
1637 131 jeremybenn
{
1638
cat <<_ASUNAME
1639
## --------- ##
1640
## Platform. ##
1641
## --------- ##
1642
 
1643
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
 
1649
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
 
1652
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 213 jeremybenn
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 131 jeremybenn
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
 
1660
_ASUNAME
1661
 
1662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663
for as_dir in $PATH
1664
do
1665
  IFS=$as_save_IFS
1666
  test -z "$as_dir" && as_dir=.
1667 213 jeremybenn
  $as_echo "PATH: $as_dir"
1668 131 jeremybenn
done
1669 213 jeremybenn
IFS=$as_save_IFS
1670 131 jeremybenn
 
1671
} >&5
1672
 
1673
cat >&5 <<_ACEOF
1674
 
1675
 
1676
## ----------- ##
1677
## Core tests. ##
1678
## ----------- ##
1679
 
1680
_ACEOF
1681
 
1682
 
1683
# Keep a trace of the command line.
1684
# Strip out --no-create and --no-recursion so they do not pile up.
1685
# Strip out --silent because we don't want to record it for future runs.
1686
# Also quote any args containing shell meta-characters.
1687
# Make two passes to allow for proper duplicate-argument suppression.
1688
ac_configure_args=
1689
ac_configure_args0=
1690
ac_configure_args1=
1691
ac_must_keep_next=false
1692
for ac_pass in 1 2
1693
do
1694
  for ac_arg
1695
  do
1696
    case $ac_arg in
1697
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699
    | -silent | --silent | --silen | --sile | --sil)
1700
      continue ;;
1701 213 jeremybenn
    *\'*)
1702
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 131 jeremybenn
    esac
1704
    case $ac_pass in
1705
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706
    2)
1707
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708
      if test $ac_must_keep_next = true; then
1709
        ac_must_keep_next=false # Got value, back to normal.
1710
      else
1711
        case $ac_arg in
1712
          *=* | --config-cache | -C | -disable-* | --disable-* \
1713
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715
          | -with-* | --with-* | -without-* | --without-* | --x)
1716
            case "$ac_configure_args0 " in
1717
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718
            esac
1719
            ;;
1720
          -* ) ac_must_keep_next=true ;;
1721
        esac
1722
      fi
1723 213 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1724 131 jeremybenn
      ;;
1725
    esac
1726
  done
1727
done
1728
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
 
1731
# When interrupted or exit'd, cleanup temporary files, and complete
1732
# config.log.  We remove comments because anyway the quotes in there
1733
# would cause problems or look ugly.
1734 213 jeremybenn
# WARNING: Use '\'' to represent an apostrophe within the trap.
1735
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 131 jeremybenn
trap 'exit_status=$?
1737
  # Save into config.log some information that might help in debugging.
1738
  {
1739
    echo
1740
 
1741
    cat <<\_ASBOX
1742
## ---------------- ##
1743
## Cache variables. ##
1744
## ---------------- ##
1745
_ASBOX
1746
    echo
1747
    # The following way of writing the cache mishandles newlines in values,
1748 213 jeremybenn
(
1749
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750
    eval ac_val=\$$ac_var
1751
    case $ac_val in #(
1752
    *${as_nl}*)
1753
      case $ac_var in #(
1754
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1755
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1756
      esac
1757
      case $ac_var in #(
1758
      _ | IFS | as_nl) ;; #(
1759
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1760
      *) $as_unset $ac_var ;;
1761
      esac ;;
1762
    esac
1763
  done
1764 131 jeremybenn
  (set) 2>&1 |
1765 213 jeremybenn
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766
    *${as_nl}ac_space=\ *)
1767 131 jeremybenn
      sed -n \
1768 213 jeremybenn
        "s/'\''/'\''\\\\'\'''\''/g;
1769
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770
      ;; #(
1771 131 jeremybenn
    *)
1772 213 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1773 131 jeremybenn
      ;;
1774 213 jeremybenn
    esac |
1775
    sort
1776
)
1777 131 jeremybenn
    echo
1778
 
1779
    cat <<\_ASBOX
1780
## ----------------- ##
1781
## Output variables. ##
1782
## ----------------- ##
1783
_ASBOX
1784
    echo
1785
    for ac_var in $ac_subst_vars
1786
    do
1787 213 jeremybenn
      eval ac_val=\$$ac_var
1788
      case $ac_val in
1789
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790
      esac
1791
      $as_echo "$ac_var='\''$ac_val'\''"
1792 131 jeremybenn
    done | sort
1793
    echo
1794
 
1795
    if test -n "$ac_subst_files"; then
1796
      cat <<\_ASBOX
1797 213 jeremybenn
## ------------------- ##
1798
## File substitutions. ##
1799
## ------------------- ##
1800 131 jeremybenn
_ASBOX
1801
      echo
1802
      for ac_var in $ac_subst_files
1803
      do
1804 213 jeremybenn
        eval ac_val=\$$ac_var
1805
        case $ac_val in
1806
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807
        esac
1808
        $as_echo "$ac_var='\''$ac_val'\''"
1809 131 jeremybenn
      done | sort
1810
      echo
1811
    fi
1812
 
1813
    if test -s confdefs.h; then
1814
      cat <<\_ASBOX
1815
## ----------- ##
1816
## confdefs.h. ##
1817
## ----------- ##
1818
_ASBOX
1819
      echo
1820 213 jeremybenn
      cat confdefs.h
1821 131 jeremybenn
      echo
1822
    fi
1823
    test "$ac_signal" != 0 &&
1824 213 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1825
    $as_echo "$as_me: exit $exit_status"
1826 131 jeremybenn
  } >&5
1827 213 jeremybenn
  rm -f core *.core core.conftest.* &&
1828
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 131 jeremybenn
    exit $exit_status
1830 213 jeremybenn
' 0
1831 131 jeremybenn
for ac_signal in 1 2 13 15; do
1832
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833
done
1834
ac_signal=0
1835
 
1836
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 213 jeremybenn
rm -f -r conftest* confdefs.h
1838 131 jeremybenn
 
1839
# Predefined preprocessor variables.
1840
 
1841
cat >>confdefs.h <<_ACEOF
1842
#define PACKAGE_NAME "$PACKAGE_NAME"
1843
_ACEOF
1844
 
1845
 
1846
cat >>confdefs.h <<_ACEOF
1847
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848
_ACEOF
1849
 
1850
 
1851
cat >>confdefs.h <<_ACEOF
1852
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1853
_ACEOF
1854
 
1855
 
1856
cat >>confdefs.h <<_ACEOF
1857
#define PACKAGE_STRING "$PACKAGE_STRING"
1858
_ACEOF
1859
 
1860
 
1861
cat >>confdefs.h <<_ACEOF
1862
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863
_ACEOF
1864
 
1865
 
1866
# Let the site file select an alternate cache file if it wants to.
1867 213 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1868
ac_site_file1=NONE
1869
ac_site_file2=NONE
1870
if test -n "$CONFIG_SITE"; then
1871
  ac_site_file1=$CONFIG_SITE
1872
elif test "x$prefix" != xNONE; then
1873
  ac_site_file1=$prefix/share/config.site
1874
  ac_site_file2=$prefix/etc/config.site
1875
else
1876
  ac_site_file1=$ac_default_prefix/share/config.site
1877
  ac_site_file2=$ac_default_prefix/etc/config.site
1878 131 jeremybenn
fi
1879 213 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1880
do
1881
  test "x$ac_site_file" = xNONE && continue
1882 131 jeremybenn
  if test -r "$ac_site_file"; then
1883 213 jeremybenn
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1885 131 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
1886
    . "$ac_site_file"
1887
  fi
1888
done
1889
 
1890
if test -r "$cache_file"; then
1891
  # Some versions of bash will fail to source /dev/null (special
1892
  # files actually), so we avoid doing that.
1893
  if test -f "$cache_file"; then
1894 213 jeremybenn
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895
$as_echo "$as_me: loading cache $cache_file" >&6;}
1896 131 jeremybenn
    case $cache_file in
1897 213 jeremybenn
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898
      *)                      . "./$cache_file";;
1899 131 jeremybenn
    esac
1900
  fi
1901
else
1902 213 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903
$as_echo "$as_me: creating cache $cache_file" >&6;}
1904 131 jeremybenn
  >$cache_file
1905
fi
1906
 
1907
# Check that the precious variables saved in the cache have kept the same
1908
# value.
1909
ac_cache_corrupted=false
1910 213 jeremybenn
for ac_var in $ac_precious_vars; do
1911 131 jeremybenn
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912
  eval ac_new_set=\$ac_env_${ac_var}_set
1913 213 jeremybenn
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914
  eval ac_new_val=\$ac_env_${ac_var}_value
1915 131 jeremybenn
  case $ac_old_set,$ac_new_set in
1916
    set,)
1917 213 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919 131 jeremybenn
      ac_cache_corrupted=: ;;
1920
    ,set)
1921 213 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923 131 jeremybenn
      ac_cache_corrupted=: ;;
1924
    ,);;
1925
    *)
1926
      if test "x$ac_old_val" != "x$ac_new_val"; then
1927 213 jeremybenn
        # differences in whitespace do not lead to failure.
1928
        ac_old_val_w=`echo x $ac_old_val`
1929
        ac_new_val_w=`echo x $ac_new_val`
1930
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1931
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933
          ac_cache_corrupted=:
1934
        else
1935
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1936
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1937
          eval $ac_var=\$ac_old_val
1938
        fi
1939
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1940
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1941
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1942
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1943 131 jeremybenn
      fi;;
1944
  esac
1945
  # Pass precious variables to config.status.
1946
  if test "$ac_new_set" = set; then
1947
    case $ac_new_val in
1948 213 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 131 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
1950
    esac
1951
    case " $ac_configure_args " in
1952
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1953
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1954
    esac
1955
  fi
1956
done
1957
if $ac_cache_corrupted; then
1958 213 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1959
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1960
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 131 jeremybenn
   { (exit 1); exit 1; }; }
1965
fi
1966
 
1967
 
1968
 
1969
 
1970
 
1971
 
1972
 
1973
 
1974
 
1975
 
1976
 
1977
 
1978
 
1979
 
1980
 
1981
 
1982
 
1983 213 jeremybenn
ac_ext=c
1984
ac_cpp='$CPP $CPPFLAGS'
1985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 131 jeremybenn
 
1989
 
1990 213 jeremybenn
ac_config_headers="$ac_config_headers config.h:config.in"
1991 131 jeremybenn
 
1992 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1994
    # Check whether --enable-maintainer-mode was given.
1995 131 jeremybenn
if test "${enable_maintainer_mode+set}" = set; then
1996 213 jeremybenn
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1997 131 jeremybenn
else
1998
  USE_MAINTAINER_MODE=no
1999 213 jeremybenn
fi
2000 131 jeremybenn
 
2001 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2003 131 jeremybenn
 
2004 213 jeremybenn
 
2005 131 jeremybenn
if test $USE_MAINTAINER_MODE = yes; then
2006
  MAINTAINER_MODE_TRUE=
2007
  MAINTAINER_MODE_FALSE='#'
2008
else
2009
  MAINTAINER_MODE_TRUE='#'
2010
  MAINTAINER_MODE_FALSE=
2011
fi
2012
 
2013
  MAINT=$MAINTAINER_MODE_TRUE
2014
 
2015
 
2016
 
2017
ac_ext=c
2018
ac_cpp='$CPP $CPPFLAGS'
2019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
if test -n "$ac_tool_prefix"; then
2023
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2024
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2025 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2026
$as_echo_n "checking for $ac_word... " >&6; }
2027 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2028 213 jeremybenn
  $as_echo_n "(cached) " >&6
2029 131 jeremybenn
else
2030
  if test -n "$CC"; then
2031
  ac_cv_prog_CC="$CC" # Let the user override the test.
2032
else
2033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034
for as_dir in $PATH
2035
do
2036
  IFS=$as_save_IFS
2037
  test -z "$as_dir" && as_dir=.
2038
  for ac_exec_ext in '' $ac_executable_extensions; do
2039 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 131 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2041 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 131 jeremybenn
    break 2
2043
  fi
2044
done
2045
done
2046 213 jeremybenn
IFS=$as_save_IFS
2047 131 jeremybenn
 
2048
fi
2049
fi
2050
CC=$ac_cv_prog_CC
2051
if test -n "$CC"; then
2052 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2053
$as_echo "$CC" >&6; }
2054 131 jeremybenn
else
2055 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2056
$as_echo "no" >&6; }
2057 131 jeremybenn
fi
2058
 
2059 213 jeremybenn
 
2060 131 jeremybenn
fi
2061
if test -z "$ac_cv_prog_CC"; then
2062
  ac_ct_CC=$CC
2063
  # Extract the first word of "gcc", so it can be a program name with args.
2064
set dummy gcc; ac_word=$2
2065 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2066
$as_echo_n "checking for $ac_word... " >&6; }
2067 131 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068 213 jeremybenn
  $as_echo_n "(cached) " >&6
2069 131 jeremybenn
else
2070
  if test -n "$ac_ct_CC"; then
2071
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072
else
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074
for as_dir in $PATH
2075
do
2076
  IFS=$as_save_IFS
2077
  test -z "$as_dir" && as_dir=.
2078
  for ac_exec_ext in '' $ac_executable_extensions; do
2079 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 131 jeremybenn
    ac_cv_prog_ac_ct_CC="gcc"
2081 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 131 jeremybenn
    break 2
2083
  fi
2084
done
2085
done
2086 213 jeremybenn
IFS=$as_save_IFS
2087 131 jeremybenn
 
2088
fi
2089
fi
2090
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091
if test -n "$ac_ct_CC"; then
2092 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093
$as_echo "$ac_ct_CC" >&6; }
2094 131 jeremybenn
else
2095 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2096
$as_echo "no" >&6; }
2097 131 jeremybenn
fi
2098
 
2099 213 jeremybenn
  if test "x$ac_ct_CC" = x; then
2100
    CC=""
2101
  else
2102
    case $cross_compiling:$ac_tool_warned in
2103
yes:)
2104
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2105
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2106
ac_tool_warned=yes ;;
2107
esac
2108
    CC=$ac_ct_CC
2109
  fi
2110 131 jeremybenn
else
2111
  CC="$ac_cv_prog_CC"
2112
fi
2113
 
2114
if test -z "$CC"; then
2115 213 jeremybenn
          if test -n "$ac_tool_prefix"; then
2116
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2117 131 jeremybenn
set dummy ${ac_tool_prefix}cc; ac_word=$2
2118 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2119
$as_echo_n "checking for $ac_word... " >&6; }
2120 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2121 213 jeremybenn
  $as_echo_n "(cached) " >&6
2122 131 jeremybenn
else
2123
  if test -n "$CC"; then
2124
  ac_cv_prog_CC="$CC" # Let the user override the test.
2125
else
2126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127
for as_dir in $PATH
2128
do
2129
  IFS=$as_save_IFS
2130
  test -z "$as_dir" && as_dir=.
2131
  for ac_exec_ext in '' $ac_executable_extensions; do
2132 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 131 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2134 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 131 jeremybenn
    break 2
2136
  fi
2137
done
2138
done
2139 213 jeremybenn
IFS=$as_save_IFS
2140 131 jeremybenn
 
2141
fi
2142
fi
2143
CC=$ac_cv_prog_CC
2144
if test -n "$CC"; then
2145 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2146
$as_echo "$CC" >&6; }
2147 131 jeremybenn
else
2148 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2149
$as_echo "no" >&6; }
2150 131 jeremybenn
fi
2151
 
2152 213 jeremybenn
 
2153 131 jeremybenn
  fi
2154
fi
2155
if test -z "$CC"; then
2156
  # Extract the first word of "cc", so it can be a program name with args.
2157
set dummy cc; ac_word=$2
2158 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2159
$as_echo_n "checking for $ac_word... " >&6; }
2160 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2161 213 jeremybenn
  $as_echo_n "(cached) " >&6
2162 131 jeremybenn
else
2163
  if test -n "$CC"; then
2164
  ac_cv_prog_CC="$CC" # Let the user override the test.
2165
else
2166
  ac_prog_rejected=no
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168
for as_dir in $PATH
2169
do
2170
  IFS=$as_save_IFS
2171
  test -z "$as_dir" && as_dir=.
2172
  for ac_exec_ext in '' $ac_executable_extensions; do
2173 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 131 jeremybenn
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175
       ac_prog_rejected=yes
2176
       continue
2177
     fi
2178
    ac_cv_prog_CC="cc"
2179 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 131 jeremybenn
    break 2
2181
  fi
2182
done
2183
done
2184 213 jeremybenn
IFS=$as_save_IFS
2185 131 jeremybenn
 
2186
if test $ac_prog_rejected = yes; then
2187
  # We found a bogon in the path, so make sure we never use it.
2188
  set dummy $ac_cv_prog_CC
2189
  shift
2190
  if test $# != 0; then
2191
    # We chose a different compiler from the bogus one.
2192
    # However, it has the same basename, so the bogon will be chosen
2193
    # first if we set CC to just the basename; use the full file name.
2194
    shift
2195
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2196
  fi
2197
fi
2198
fi
2199
fi
2200
CC=$ac_cv_prog_CC
2201
if test -n "$CC"; then
2202 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2203
$as_echo "$CC" >&6; }
2204 131 jeremybenn
else
2205 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2206
$as_echo "no" >&6; }
2207 131 jeremybenn
fi
2208
 
2209 213 jeremybenn
 
2210 131 jeremybenn
fi
2211
if test -z "$CC"; then
2212
  if test -n "$ac_tool_prefix"; then
2213 213 jeremybenn
  for ac_prog in cl.exe
2214 131 jeremybenn
  do
2215
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218
$as_echo_n "checking for $ac_word... " >&6; }
2219 131 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2220 213 jeremybenn
  $as_echo_n "(cached) " >&6
2221 131 jeremybenn
else
2222
  if test -n "$CC"; then
2223
  ac_cv_prog_CC="$CC" # Let the user override the test.
2224
else
2225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226
for as_dir in $PATH
2227
do
2228
  IFS=$as_save_IFS
2229
  test -z "$as_dir" && as_dir=.
2230
  for ac_exec_ext in '' $ac_executable_extensions; do
2231 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 131 jeremybenn
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 131 jeremybenn
    break 2
2235
  fi
2236
done
2237
done
2238 213 jeremybenn
IFS=$as_save_IFS
2239 131 jeremybenn
 
2240
fi
2241
fi
2242
CC=$ac_cv_prog_CC
2243
if test -n "$CC"; then
2244 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2245
$as_echo "$CC" >&6; }
2246 131 jeremybenn
else
2247 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2248
$as_echo "no" >&6; }
2249 131 jeremybenn
fi
2250
 
2251 213 jeremybenn
 
2252 131 jeremybenn
    test -n "$CC" && break
2253
  done
2254
fi
2255
if test -z "$CC"; then
2256
  ac_ct_CC=$CC
2257 213 jeremybenn
  for ac_prog in cl.exe
2258 131 jeremybenn
do
2259
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2260
set dummy $ac_prog; ac_word=$2
2261 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262
$as_echo_n "checking for $ac_word... " >&6; }
2263 131 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 213 jeremybenn
  $as_echo_n "(cached) " >&6
2265 131 jeremybenn
else
2266
  if test -n "$ac_ct_CC"; then
2267
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268
else
2269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270
for as_dir in $PATH
2271
do
2272
  IFS=$as_save_IFS
2273
  test -z "$as_dir" && as_dir=.
2274
  for ac_exec_ext in '' $ac_executable_extensions; do
2275 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 131 jeremybenn
    ac_cv_prog_ac_ct_CC="$ac_prog"
2277 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 131 jeremybenn
    break 2
2279
  fi
2280
done
2281
done
2282 213 jeremybenn
IFS=$as_save_IFS
2283 131 jeremybenn
 
2284
fi
2285
fi
2286
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287
if test -n "$ac_ct_CC"; then
2288 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289
$as_echo "$ac_ct_CC" >&6; }
2290 131 jeremybenn
else
2291 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2292
$as_echo "no" >&6; }
2293 131 jeremybenn
fi
2294
 
2295 213 jeremybenn
 
2296 131 jeremybenn
  test -n "$ac_ct_CC" && break
2297
done
2298
 
2299 213 jeremybenn
  if test "x$ac_ct_CC" = x; then
2300
    CC=""
2301
  else
2302
    case $cross_compiling:$ac_tool_warned in
2303
yes:)
2304
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2305
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2306
ac_tool_warned=yes ;;
2307
esac
2308
    CC=$ac_ct_CC
2309
  fi
2310 131 jeremybenn
fi
2311
 
2312
fi
2313
 
2314
 
2315 213 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2316
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2318 131 jeremybenn
See \`config.log' for more details." >&5
2319 213 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2320 131 jeremybenn
See \`config.log' for more details." >&2;}
2321 213 jeremybenn
   { (exit 1); exit 1; }; }; }
2322 131 jeremybenn
 
2323
# Provide some information about the compiler.
2324 213 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2325
set X $ac_compile
2326
ac_compiler=$2
2327
{ (ac_try="$ac_compiler --version >&5"
2328
case "(($ac_try" in
2329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330
  *) ac_try_echo=$ac_try;;
2331
esac
2332
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333
$as_echo "$ac_try_echo") >&5
2334
  (eval "$ac_compiler --version >&5") 2>&5
2335 131 jeremybenn
  ac_status=$?
2336 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 131 jeremybenn
  (exit $ac_status); }
2338 213 jeremybenn
{ (ac_try="$ac_compiler -v >&5"
2339
case "(($ac_try" in
2340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341
  *) ac_try_echo=$ac_try;;
2342
esac
2343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344
$as_echo "$ac_try_echo") >&5
2345
  (eval "$ac_compiler -v >&5") 2>&5
2346 131 jeremybenn
  ac_status=$?
2347 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 131 jeremybenn
  (exit $ac_status); }
2349 213 jeremybenn
{ (ac_try="$ac_compiler -V >&5"
2350
case "(($ac_try" in
2351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352
  *) ac_try_echo=$ac_try;;
2353
esac
2354
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2355
$as_echo "$ac_try_echo") >&5
2356
  (eval "$ac_compiler -V >&5") 2>&5
2357 131 jeremybenn
  ac_status=$?
2358 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 131 jeremybenn
  (exit $ac_status); }
2360
 
2361
cat >conftest.$ac_ext <<_ACEOF
2362
/* confdefs.h.  */
2363
_ACEOF
2364
cat confdefs.h >>conftest.$ac_ext
2365
cat >>conftest.$ac_ext <<_ACEOF
2366
/* end confdefs.h.  */
2367
 
2368
int
2369
main ()
2370
{
2371
 
2372
  ;
2373
  return 0;
2374
}
2375
_ACEOF
2376
ac_clean_files_save=$ac_clean_files
2377 213 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2378 131 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2379
# It will help us diagnose broken compilers, and finding out an intuition
2380
# of exeext.
2381 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2382
$as_echo_n "checking for C compiler default output file name... " >&6; }
2383
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2384
 
2385
# The possible output files:
2386
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2387
 
2388
ac_rmfiles=
2389
for ac_file in $ac_files
2390
do
2391
  case $ac_file in
2392
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2393
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2394
  esac
2395
done
2396
rm -f $ac_rmfiles
2397
 
2398
if { (ac_try="$ac_link_default"
2399
case "(($ac_try" in
2400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401
  *) ac_try_echo=$ac_try;;
2402
esac
2403
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2404
$as_echo "$ac_try_echo") >&5
2405
  (eval "$ac_link_default") 2>&5
2406 131 jeremybenn
  ac_status=$?
2407 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 131 jeremybenn
  (exit $ac_status); }; then
2409 213 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2410
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2411
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2412
# so that the user can short-circuit this test for compilers unknown to
2413
# Autoconf.
2414
for ac_file in $ac_files ''
2415 131 jeremybenn
do
2416
  test -f "$ac_file" || continue
2417
  case $ac_file in
2418 213 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2419 131 jeremybenn
        ;;
2420
    [ab].out )
2421
        # We found the default executable, but exeext='' is most
2422
        # certainly right.
2423
        break;;
2424
    *.* )
2425 213 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2426
        then :; else
2427
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428
        fi
2429
        # We set ac_cv_exeext here because the later test for it is not
2430
        # safe: cross compilers may not add the suffix if given an `-o'
2431
        # argument, so we may need to know it at that point already.
2432
        # Even if this section looks crufty: it has the advantage of
2433
        # actually working.
2434 131 jeremybenn
        break;;
2435
    * )
2436
        break;;
2437
  esac
2438
done
2439 213 jeremybenn
test "$ac_cv_exeext" = no && ac_cv_exeext=
2440
 
2441 131 jeremybenn
else
2442 213 jeremybenn
  ac_file=''
2443
fi
2444
 
2445
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2446
$as_echo "$ac_file" >&6; }
2447
if test -z "$ac_file"; then
2448
  $as_echo "$as_me: failed program was:" >&5
2449 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2450
 
2451 213 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 131 jeremybenn
See \`config.log' for more details." >&5
2455 213 jeremybenn
$as_echo "$as_me: error: C compiler cannot create executables
2456 131 jeremybenn
See \`config.log' for more details." >&2;}
2457 213 jeremybenn
   { (exit 77); exit 77; }; }; }
2458 131 jeremybenn
fi
2459
 
2460
ac_exeext=$ac_cv_exeext
2461
 
2462 213 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2463 131 jeremybenn
# the compiler is broken, or we cross compile.
2464 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465
$as_echo_n "checking whether the C compiler works... " >&6; }
2466 131 jeremybenn
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467
# If not cross compiling, check that we can run a simple program.
2468
if test "$cross_compiling" != yes; then
2469
  if { ac_try='./$ac_file'
2470 213 jeremybenn
  { (case "(($ac_try" in
2471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472
  *) ac_try_echo=$ac_try;;
2473
esac
2474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2475
$as_echo "$ac_try_echo") >&5
2476
  (eval "$ac_try") 2>&5
2477 131 jeremybenn
  ac_status=$?
2478 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 131 jeremybenn
  (exit $ac_status); }; }; then
2480
    cross_compiling=no
2481
  else
2482
    if test "$cross_compiling" = maybe; then
2483
        cross_compiling=yes
2484
    else
2485 213 jeremybenn
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2486
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2488 131 jeremybenn
If you meant to cross compile, use \`--host'.
2489
See \`config.log' for more details." >&5
2490 213 jeremybenn
$as_echo "$as_me: error: cannot run C compiled programs.
2491 131 jeremybenn
If you meant to cross compile, use \`--host'.
2492
See \`config.log' for more details." >&2;}
2493 213 jeremybenn
   { (exit 1); exit 1; }; }; }
2494 131 jeremybenn
    fi
2495
  fi
2496
fi
2497 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2498
$as_echo "yes" >&6; }
2499 131 jeremybenn
 
2500 213 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2501 131 jeremybenn
ac_clean_files=$ac_clean_files_save
2502 213 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2503 131 jeremybenn
# the compiler is broken, or we cross compile.
2504 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2505
$as_echo_n "checking whether we are cross compiling... " >&6; }
2506
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2507
$as_echo "$cross_compiling" >&6; }
2508 131 jeremybenn
 
2509 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2510
$as_echo_n "checking for suffix of executables... " >&6; }
2511
if { (ac_try="$ac_link"
2512
case "(($ac_try" in
2513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514
  *) ac_try_echo=$ac_try;;
2515
esac
2516
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517
$as_echo "$ac_try_echo") >&5
2518
  (eval "$ac_link") 2>&5
2519 131 jeremybenn
  ac_status=$?
2520 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 131 jeremybenn
  (exit $ac_status); }; then
2522
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2523
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2524
# work properly (i.e., refer to `conftest.exe'), while it won't with
2525
# `rm'.
2526
for ac_file in conftest.exe conftest conftest.*; do
2527
  test -f "$ac_file" || continue
2528
  case $ac_file in
2529 213 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2530 131 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531
          break;;
2532
    * ) break;;
2533
  esac
2534
done
2535
else
2536 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2537
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539 131 jeremybenn
See \`config.log' for more details." >&5
2540 213 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541 131 jeremybenn
See \`config.log' for more details." >&2;}
2542 213 jeremybenn
   { (exit 1); exit 1; }; }; }
2543 131 jeremybenn
fi
2544
 
2545
rm -f conftest$ac_cv_exeext
2546 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547
$as_echo "$ac_cv_exeext" >&6; }
2548 131 jeremybenn
 
2549
rm -f conftest.$ac_ext
2550
EXEEXT=$ac_cv_exeext
2551
ac_exeext=$EXEEXT
2552 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553
$as_echo_n "checking for suffix of object files... " >&6; }
2554 131 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2555 213 jeremybenn
  $as_echo_n "(cached) " >&6
2556 131 jeremybenn
else
2557
  cat >conftest.$ac_ext <<_ACEOF
2558
/* confdefs.h.  */
2559
_ACEOF
2560
cat confdefs.h >>conftest.$ac_ext
2561
cat >>conftest.$ac_ext <<_ACEOF
2562
/* end confdefs.h.  */
2563
 
2564
int
2565
main ()
2566
{
2567
 
2568
  ;
2569
  return 0;
2570
}
2571
_ACEOF
2572
rm -f conftest.o conftest.obj
2573 213 jeremybenn
if { (ac_try="$ac_compile"
2574
case "(($ac_try" in
2575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576
  *) ac_try_echo=$ac_try;;
2577
esac
2578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2579
$as_echo "$ac_try_echo") >&5
2580
  (eval "$ac_compile") 2>&5
2581 131 jeremybenn
  ac_status=$?
2582 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 131 jeremybenn
  (exit $ac_status); }; then
2584 213 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2585
  test -f "$ac_file" || continue;
2586 131 jeremybenn
  case $ac_file in
2587 213 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2588 131 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2589
       break;;
2590
  esac
2591
done
2592
else
2593 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2594 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2595
 
2596 213 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2599 131 jeremybenn
See \`config.log' for more details." >&5
2600 213 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2601 131 jeremybenn
See \`config.log' for more details." >&2;}
2602 213 jeremybenn
   { (exit 1); exit 1; }; }; }
2603 131 jeremybenn
fi
2604
 
2605
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2606
fi
2607 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2608
$as_echo "$ac_cv_objext" >&6; }
2609 131 jeremybenn
OBJEXT=$ac_cv_objext
2610
ac_objext=$OBJEXT
2611 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2612
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2613 131 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2614 213 jeremybenn
  $as_echo_n "(cached) " >&6
2615 131 jeremybenn
else
2616
  cat >conftest.$ac_ext <<_ACEOF
2617
/* confdefs.h.  */
2618
_ACEOF
2619
cat confdefs.h >>conftest.$ac_ext
2620
cat >>conftest.$ac_ext <<_ACEOF
2621
/* end confdefs.h.  */
2622
 
2623
int
2624
main ()
2625
{
2626
#ifndef __GNUC__
2627
       choke me
2628
#endif
2629
 
2630
  ;
2631
  return 0;
2632
}
2633
_ACEOF
2634
rm -f conftest.$ac_objext
2635 213 jeremybenn
if { (ac_try="$ac_compile"
2636
case "(($ac_try" in
2637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638
  *) ac_try_echo=$ac_try;;
2639
esac
2640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2641
$as_echo "$ac_try_echo") >&5
2642
  (eval "$ac_compile") 2>conftest.er1
2643 131 jeremybenn
  ac_status=$?
2644
  grep -v '^ *+' conftest.er1 >conftest.err
2645
  rm -f conftest.er1
2646
  cat conftest.err >&5
2647 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648
  (exit $ac_status); } && {
2649
         test -z "$ac_c_werror_flag" ||
2650
         test ! -s conftest.err
2651
       } && test -s conftest.$ac_objext; then
2652 131 jeremybenn
  ac_compiler_gnu=yes
2653
else
2654 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2655 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2656
 
2657 213 jeremybenn
        ac_compiler_gnu=no
2658 131 jeremybenn
fi
2659 213 jeremybenn
 
2660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 131 jeremybenn
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662
 
2663
fi
2664 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2666
if test $ac_compiler_gnu = yes; then
2667
  GCC=yes
2668
else
2669
  GCC=
2670
fi
2671 131 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2672
ac_save_CFLAGS=$CFLAGS
2673 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2675 131 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2676 213 jeremybenn
  $as_echo_n "(cached) " >&6
2677 131 jeremybenn
else
2678 213 jeremybenn
  ac_save_c_werror_flag=$ac_c_werror_flag
2679
   ac_c_werror_flag=yes
2680
   ac_cv_prog_cc_g=no
2681
   CFLAGS="-g"
2682
   cat >conftest.$ac_ext <<_ACEOF
2683 131 jeremybenn
/* confdefs.h.  */
2684
_ACEOF
2685
cat confdefs.h >>conftest.$ac_ext
2686
cat >>conftest.$ac_ext <<_ACEOF
2687
/* end confdefs.h.  */
2688
 
2689
int
2690
main ()
2691
{
2692
 
2693
  ;
2694
  return 0;
2695
}
2696
_ACEOF
2697
rm -f conftest.$ac_objext
2698 213 jeremybenn
if { (ac_try="$ac_compile"
2699
case "(($ac_try" in
2700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701
  *) ac_try_echo=$ac_try;;
2702
esac
2703
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704
$as_echo "$ac_try_echo") >&5
2705
  (eval "$ac_compile") 2>conftest.er1
2706 131 jeremybenn
  ac_status=$?
2707
  grep -v '^ *+' conftest.er1 >conftest.err
2708
  rm -f conftest.er1
2709
  cat conftest.err >&5
2710 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711
  (exit $ac_status); } && {
2712
         test -z "$ac_c_werror_flag" ||
2713
         test ! -s conftest.err
2714
       } && test -s conftest.$ac_objext; then
2715
  ac_cv_prog_cc_g=yes
2716
else
2717
  $as_echo "$as_me: failed program was:" >&5
2718
sed 's/^/| /' conftest.$ac_ext >&5
2719
 
2720
        CFLAGS=""
2721
      cat >conftest.$ac_ext <<_ACEOF
2722
/* confdefs.h.  */
2723
_ACEOF
2724
cat confdefs.h >>conftest.$ac_ext
2725
cat >>conftest.$ac_ext <<_ACEOF
2726
/* end confdefs.h.  */
2727
 
2728
int
2729
main ()
2730
{
2731
 
2732
  ;
2733
  return 0;
2734
}
2735
_ACEOF
2736
rm -f conftest.$ac_objext
2737
if { (ac_try="$ac_compile"
2738
case "(($ac_try" in
2739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740
  *) ac_try_echo=$ac_try;;
2741
esac
2742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743
$as_echo "$ac_try_echo") >&5
2744
  (eval "$ac_compile") 2>conftest.er1
2745 131 jeremybenn
  ac_status=$?
2746 213 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
2747
  rm -f conftest.er1
2748
  cat conftest.err >&5
2749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
  (exit $ac_status); } && {
2751
         test -z "$ac_c_werror_flag" ||
2752
         test ! -s conftest.err
2753
       } && test -s conftest.$ac_objext; then
2754
  :
2755
else
2756
  $as_echo "$as_me: failed program was:" >&5
2757
sed 's/^/| /' conftest.$ac_ext >&5
2758
 
2759
        ac_c_werror_flag=$ac_save_c_werror_flag
2760
         CFLAGS="-g"
2761
         cat >conftest.$ac_ext <<_ACEOF
2762
/* confdefs.h.  */
2763
_ACEOF
2764
cat confdefs.h >>conftest.$ac_ext
2765
cat >>conftest.$ac_ext <<_ACEOF
2766
/* end confdefs.h.  */
2767
 
2768
int
2769
main ()
2770
{
2771
 
2772
  ;
2773
  return 0;
2774
}
2775
_ACEOF
2776
rm -f conftest.$ac_objext
2777
if { (ac_try="$ac_compile"
2778
case "(($ac_try" in
2779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780
  *) ac_try_echo=$ac_try;;
2781
esac
2782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2783
$as_echo "$ac_try_echo") >&5
2784
  (eval "$ac_compile") 2>conftest.er1
2785 131 jeremybenn
  ac_status=$?
2786 213 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
2787
  rm -f conftest.er1
2788
  cat conftest.err >&5
2789
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
  (exit $ac_status); } && {
2791
         test -z "$ac_c_werror_flag" ||
2792
         test ! -s conftest.err
2793
       } && test -s conftest.$ac_objext; then
2794 131 jeremybenn
  ac_cv_prog_cc_g=yes
2795
else
2796 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2797 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2798
 
2799 213 jeremybenn
 
2800 131 jeremybenn
fi
2801 213 jeremybenn
 
2802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 131 jeremybenn
fi
2804 213 jeremybenn
 
2805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806
fi
2807
 
2808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809
   ac_c_werror_flag=$ac_save_c_werror_flag
2810
fi
2811
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812
$as_echo "$ac_cv_prog_cc_g" >&6; }
2813 131 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2814
  CFLAGS=$ac_save_CFLAGS
2815
elif test $ac_cv_prog_cc_g = yes; then
2816
  if test "$GCC" = yes; then
2817
    CFLAGS="-g -O2"
2818
  else
2819
    CFLAGS="-g"
2820
  fi
2821
else
2822
  if test "$GCC" = yes; then
2823
    CFLAGS="-O2"
2824
  else
2825
    CFLAGS=
2826
  fi
2827
fi
2828 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2830
if test "${ac_cv_prog_cc_c89+set}" = set; then
2831
  $as_echo_n "(cached) " >&6
2832 131 jeremybenn
else
2833 213 jeremybenn
  ac_cv_prog_cc_c89=no
2834 131 jeremybenn
ac_save_CC=$CC
2835
cat >conftest.$ac_ext <<_ACEOF
2836
/* confdefs.h.  */
2837
_ACEOF
2838
cat confdefs.h >>conftest.$ac_ext
2839
cat >>conftest.$ac_ext <<_ACEOF
2840
/* end confdefs.h.  */
2841
#include 
2842
#include 
2843
#include 
2844
#include 
2845
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2846
struct buf { int x; };
2847
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848
static char *e (p, i)
2849
     char **p;
2850
     int i;
2851
{
2852
  return p[i];
2853
}
2854
static char *f (char * (*g) (char **, int), char **p, ...)
2855
{
2856
  char *s;
2857
  va_list v;
2858
  va_start (v,p);
2859
  s = g (p, va_arg (v,int));
2860
  va_end (v);
2861
  return s;
2862
}
2863
 
2864
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2865
   function prototypes and stuff, but not '\xHH' hex character constants.
2866
   These don't provoke an error unfortunately, instead are silently treated
2867 213 jeremybenn
   as 'x'.  The following induces an error, until -std is added to get
2868 131 jeremybenn
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2869
   array size at least.  It's necessary to write '\x00'==0 to get something
2870 213 jeremybenn
   that's true only with -std.  */
2871 131 jeremybenn
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872
 
2873 213 jeremybenn
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874
   inside strings and character constants.  */
2875
#define FOO(x) 'x'
2876
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877
 
2878 131 jeremybenn
int test (int i, double x);
2879
struct s1 {int (*f) (int a);};
2880
struct s2 {int (*f) (double a);};
2881
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882
int argc;
2883
char **argv;
2884
int
2885
main ()
2886
{
2887
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2888
  ;
2889
  return 0;
2890
}
2891
_ACEOF
2892 213 jeremybenn
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 131 jeremybenn
do
2895
  CC="$ac_save_CC $ac_arg"
2896
  rm -f conftest.$ac_objext
2897 213 jeremybenn
if { (ac_try="$ac_compile"
2898
case "(($ac_try" in
2899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900
  *) ac_try_echo=$ac_try;;
2901
esac
2902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2903
$as_echo "$ac_try_echo") >&5
2904
  (eval "$ac_compile") 2>conftest.er1
2905 131 jeremybenn
  ac_status=$?
2906
  grep -v '^ *+' conftest.er1 >conftest.err
2907
  rm -f conftest.er1
2908
  cat conftest.err >&5
2909 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
  (exit $ac_status); } && {
2911
         test -z "$ac_c_werror_flag" ||
2912
         test ! -s conftest.err
2913
       } && test -s conftest.$ac_objext; then
2914
  ac_cv_prog_cc_c89=$ac_arg
2915 131 jeremybenn
else
2916 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2917 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2918
 
2919 213 jeremybenn
 
2920 131 jeremybenn
fi
2921 213 jeremybenn
 
2922
rm -f core conftest.err conftest.$ac_objext
2923
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2924 131 jeremybenn
done
2925 213 jeremybenn
rm -f conftest.$ac_ext
2926 131 jeremybenn
CC=$ac_save_CC
2927
 
2928
fi
2929 213 jeremybenn
# AC_CACHE_VAL
2930
case "x$ac_cv_prog_cc_c89" in
2931
  x)
2932
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2933
$as_echo "none needed" >&6; } ;;
2934
  xno)
2935
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2936
$as_echo "unsupported" >&6; } ;;
2937 131 jeremybenn
  *)
2938 213 jeremybenn
    CC="$CC $ac_cv_prog_cc_c89"
2939
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2940
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2941 131 jeremybenn
esac
2942
 
2943
 
2944
ac_ext=c
2945
ac_cpp='$CPP $CPPFLAGS'
2946
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
 
2950
 
2951
ac_ext=c
2952
ac_cpp='$CPP $CPPFLAGS'
2953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2958 131 jeremybenn
# On Suns, sometimes $CPP names a directory.
2959
if test -n "$CPP" && test -d "$CPP"; then
2960
  CPP=
2961
fi
2962
if test -z "$CPP"; then
2963
  if test "${ac_cv_prog_CPP+set}" = set; then
2964 213 jeremybenn
  $as_echo_n "(cached) " >&6
2965 131 jeremybenn
else
2966
      # Double quotes because CPP needs to be expanded
2967
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968
    do
2969
      ac_preproc_ok=false
2970
for ac_c_preproc_warn_flag in '' yes
2971
do
2972
  # Use a header file that comes with gcc, so configuring glibc
2973
  # with a fresh cross-compiler works.
2974
  # Prefer  to  if __STDC__ is defined, since
2975
  #  exists even on freestanding compilers.
2976
  # On the NeXT, cc -E runs the code through the compiler's parser,
2977
  # not just through cpp. "Syntax error" is here to catch this case.
2978
  cat >conftest.$ac_ext <<_ACEOF
2979
/* confdefs.h.  */
2980
_ACEOF
2981
cat confdefs.h >>conftest.$ac_ext
2982
cat >>conftest.$ac_ext <<_ACEOF
2983
/* end confdefs.h.  */
2984
#ifdef __STDC__
2985
# include 
2986
#else
2987
# include 
2988
#endif
2989
                     Syntax error
2990
_ACEOF
2991 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
2992
case "(($ac_try" in
2993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994
  *) ac_try_echo=$ac_try;;
2995
esac
2996
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2997
$as_echo "$ac_try_echo") >&5
2998
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2999 131 jeremybenn
  ac_status=$?
3000
  grep -v '^ *+' conftest.er1 >conftest.err
3001
  rm -f conftest.er1
3002
  cat conftest.err >&5
3003 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004
  (exit $ac_status); } >/dev/null && {
3005
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3006
         test ! -s conftest.err
3007
       }; then
3008 131 jeremybenn
  :
3009
else
3010 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3011 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3012
 
3013
  # Broken: fails on valid input.
3014
continue
3015
fi
3016 213 jeremybenn
 
3017 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
3018
 
3019 213 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3020 131 jeremybenn
  # can be detected and how.
3021
  cat >conftest.$ac_ext <<_ACEOF
3022
/* confdefs.h.  */
3023
_ACEOF
3024
cat confdefs.h >>conftest.$ac_ext
3025
cat >>conftest.$ac_ext <<_ACEOF
3026
/* end confdefs.h.  */
3027
#include 
3028
_ACEOF
3029 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3030
case "(($ac_try" in
3031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
  *) ac_try_echo=$ac_try;;
3033
esac
3034
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3035
$as_echo "$ac_try_echo") >&5
3036
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3037 131 jeremybenn
  ac_status=$?
3038
  grep -v '^ *+' conftest.er1 >conftest.err
3039
  rm -f conftest.er1
3040
  cat conftest.err >&5
3041 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
  (exit $ac_status); } >/dev/null && {
3043
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3044
         test ! -s conftest.err
3045
       }; then
3046 131 jeremybenn
  # Broken: success on invalid input.
3047
continue
3048
else
3049 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3050 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3051
 
3052
  # Passes both tests.
3053
ac_preproc_ok=:
3054
break
3055
fi
3056 213 jeremybenn
 
3057 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
3058
 
3059
done
3060
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061
rm -f conftest.err conftest.$ac_ext
3062
if $ac_preproc_ok; then
3063
  break
3064
fi
3065
 
3066
    done
3067
    ac_cv_prog_CPP=$CPP
3068
 
3069
fi
3070
  CPP=$ac_cv_prog_CPP
3071
else
3072
  ac_cv_prog_CPP=$CPP
3073
fi
3074 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3075
$as_echo "$CPP" >&6; }
3076 131 jeremybenn
ac_preproc_ok=false
3077
for ac_c_preproc_warn_flag in '' yes
3078
do
3079
  # Use a header file that comes with gcc, so configuring glibc
3080
  # with a fresh cross-compiler works.
3081
  # Prefer  to  if __STDC__ is defined, since
3082
  #  exists even on freestanding compilers.
3083
  # On the NeXT, cc -E runs the code through the compiler's parser,
3084
  # not just through cpp. "Syntax error" is here to catch this case.
3085
  cat >conftest.$ac_ext <<_ACEOF
3086
/* confdefs.h.  */
3087
_ACEOF
3088
cat confdefs.h >>conftest.$ac_ext
3089
cat >>conftest.$ac_ext <<_ACEOF
3090
/* end confdefs.h.  */
3091
#ifdef __STDC__
3092
# include 
3093
#else
3094
# include 
3095
#endif
3096
                     Syntax error
3097
_ACEOF
3098 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3099
case "(($ac_try" in
3100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101
  *) ac_try_echo=$ac_try;;
3102
esac
3103
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3104
$as_echo "$ac_try_echo") >&5
3105
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3106 131 jeremybenn
  ac_status=$?
3107
  grep -v '^ *+' conftest.er1 >conftest.err
3108
  rm -f conftest.er1
3109
  cat conftest.err >&5
3110 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111
  (exit $ac_status); } >/dev/null && {
3112
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3113
         test ! -s conftest.err
3114
       }; then
3115 131 jeremybenn
  :
3116
else
3117 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3118 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3119
 
3120
  # Broken: fails on valid input.
3121
continue
3122
fi
3123 213 jeremybenn
 
3124 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
3125
 
3126 213 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3127 131 jeremybenn
  # can be detected and how.
3128
  cat >conftest.$ac_ext <<_ACEOF
3129
/* confdefs.h.  */
3130
_ACEOF
3131
cat confdefs.h >>conftest.$ac_ext
3132
cat >>conftest.$ac_ext <<_ACEOF
3133
/* end confdefs.h.  */
3134
#include 
3135
_ACEOF
3136 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3137
case "(($ac_try" in
3138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139
  *) ac_try_echo=$ac_try;;
3140
esac
3141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142
$as_echo "$ac_try_echo") >&5
3143
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3144 131 jeremybenn
  ac_status=$?
3145
  grep -v '^ *+' conftest.er1 >conftest.err
3146
  rm -f conftest.er1
3147
  cat conftest.err >&5
3148 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149
  (exit $ac_status); } >/dev/null && {
3150
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3151
         test ! -s conftest.err
3152
       }; then
3153 131 jeremybenn
  # Broken: success on invalid input.
3154
continue
3155
else
3156 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3157 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3158
 
3159
  # Passes both tests.
3160
ac_preproc_ok=:
3161
break
3162
fi
3163 213 jeremybenn
 
3164 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
3165
 
3166
done
3167
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168
rm -f conftest.err conftest.$ac_ext
3169
if $ac_preproc_ok; then
3170
  :
3171
else
3172 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3173
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3175 131 jeremybenn
See \`config.log' for more details." >&5
3176 213 jeremybenn
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3177 131 jeremybenn
See \`config.log' for more details." >&2;}
3178 213 jeremybenn
   { (exit 1); exit 1; }; }; }
3179 131 jeremybenn
fi
3180
 
3181
ac_ext=c
3182
ac_cpp='$CPP $CPPFLAGS'
3183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
 
3187
 
3188 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3189
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3190
if test "${ac_cv_path_GREP+set}" = set; then
3191
  $as_echo_n "(cached) " >&6
3192 131 jeremybenn
else
3193 213 jeremybenn
  if test -z "$GREP"; then
3194
  ac_path_GREP_found=false
3195
  # Loop through the user's path and test for each of PROGNAME-LIST
3196
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3198
do
3199
  IFS=$as_save_IFS
3200
  test -z "$as_dir" && as_dir=.
3201
  for ac_prog in grep ggrep; do
3202
    for ac_exec_ext in '' $ac_executable_extensions; do
3203
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3204
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3205
# Check for GNU ac_path_GREP and select it if it is found.
3206
  # Check for GNU $ac_path_GREP
3207
case `"$ac_path_GREP" --version 2>&1` in
3208
*GNU*)
3209
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3210
*)
3211
  ac_count=0
3212
  $as_echo_n 0123456789 >"conftest.in"
3213
  while :
3214
  do
3215
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3216
    mv "conftest.tmp" "conftest.in"
3217
    cp "conftest.in" "conftest.nl"
3218
    $as_echo 'GREP' >> "conftest.nl"
3219
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221
    ac_count=`expr $ac_count + 1`
3222
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3223
      # Best one so far, save it but keep looking for a better one
3224
      ac_cv_path_GREP="$ac_path_GREP"
3225
      ac_path_GREP_max=$ac_count
3226 131 jeremybenn
    fi
3227 213 jeremybenn
    # 10*(2^10) chars as input seems more than enough
3228
    test $ac_count -gt 10 && break
3229
  done
3230
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231
esac
3232
 
3233
      $ac_path_GREP_found && break 3
3234
    done
3235
  done
3236
done
3237
IFS=$as_save_IFS
3238
  if test -z "$ac_cv_path_GREP"; then
3239
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3240
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3241
   { (exit 1); exit 1; }; }
3242
  fi
3243
else
3244
  ac_cv_path_GREP=$GREP
3245 131 jeremybenn
fi
3246
 
3247 213 jeremybenn
fi
3248
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3249
$as_echo "$ac_cv_path_GREP" >&6; }
3250
 GREP="$ac_cv_path_GREP"
3251 131 jeremybenn
 
3252
 
3253 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3254
$as_echo_n "checking for egrep... " >&6; }
3255
if test "${ac_cv_path_EGREP+set}" = set; then
3256
  $as_echo_n "(cached) " >&6
3257
else
3258
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3259
   then ac_cv_path_EGREP="$GREP -E"
3260
   else
3261
     if test -z "$EGREP"; then
3262
  ac_path_EGREP_found=false
3263
  # Loop through the user's path and test for each of PROGNAME-LIST
3264
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3266
do
3267
  IFS=$as_save_IFS
3268
  test -z "$as_dir" && as_dir=.
3269
  for ac_prog in egrep; do
3270
    for ac_exec_ext in '' $ac_executable_extensions; do
3271
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3272
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3273
# Check for GNU ac_path_EGREP and select it if it is found.
3274
  # Check for GNU $ac_path_EGREP
3275
case `"$ac_path_EGREP" --version 2>&1` in
3276
*GNU*)
3277
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3278
*)
3279
  ac_count=0
3280
  $as_echo_n 0123456789 >"conftest.in"
3281
  while :
3282
  do
3283
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3284
    mv "conftest.tmp" "conftest.in"
3285
    cp "conftest.in" "conftest.nl"
3286
    $as_echo 'EGREP' >> "conftest.nl"
3287
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3288
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3289
    ac_count=`expr $ac_count + 1`
3290
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3291
      # Best one so far, save it but keep looking for a better one
3292
      ac_cv_path_EGREP="$ac_path_EGREP"
3293
      ac_path_EGREP_max=$ac_count
3294
    fi
3295
    # 10*(2^10) chars as input seems more than enough
3296
    test $ac_count -gt 10 && break
3297
  done
3298
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3299
esac
3300
 
3301
      $ac_path_EGREP_found && break 3
3302
    done
3303
  done
3304
done
3305
IFS=$as_save_IFS
3306
  if test -z "$ac_cv_path_EGREP"; then
3307
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3308
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3309
   { (exit 1); exit 1; }; }
3310
  fi
3311
else
3312
  ac_cv_path_EGREP=$EGREP
3313
fi
3314
 
3315
   fi
3316
fi
3317
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3318
$as_echo "$ac_cv_path_EGREP" >&6; }
3319
 EGREP="$ac_cv_path_EGREP"
3320
 
3321
 
3322
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3323
$as_echo_n "checking for ANSI C header files... " >&6; }
3324
if test "${ac_cv_header_stdc+set}" = set; then
3325
  $as_echo_n "(cached) " >&6
3326
else
3327
  cat >conftest.$ac_ext <<_ACEOF
3328 131 jeremybenn
/* confdefs.h.  */
3329
_ACEOF
3330
cat confdefs.h >>conftest.$ac_ext
3331
cat >>conftest.$ac_ext <<_ACEOF
3332
/* end confdefs.h.  */
3333 213 jeremybenn
#include 
3334
#include 
3335
#include 
3336
#include 
3337 131 jeremybenn
 
3338 213 jeremybenn
int
3339
main ()
3340
{
3341
 
3342
  ;
3343
  return 0;
3344
}
3345 131 jeremybenn
_ACEOF
3346 213 jeremybenn
rm -f conftest.$ac_objext
3347
if { (ac_try="$ac_compile"
3348
case "(($ac_try" in
3349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350
  *) ac_try_echo=$ac_try;;
3351
esac
3352
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353
$as_echo "$ac_try_echo") >&5
3354
  (eval "$ac_compile") 2>conftest.er1
3355
  ac_status=$?
3356
  grep -v '^ *+' conftest.er1 >conftest.err
3357
  rm -f conftest.er1
3358
  cat conftest.err >&5
3359
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360
  (exit $ac_status); } && {
3361
         test -z "$ac_c_werror_flag" ||
3362
         test ! -s conftest.err
3363
       } && test -s conftest.$ac_objext; then
3364
  ac_cv_header_stdc=yes
3365
else
3366
  $as_echo "$as_me: failed program was:" >&5
3367
sed 's/^/| /' conftest.$ac_ext >&5
3368
 
3369
        ac_cv_header_stdc=no
3370
fi
3371
 
3372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373
 
3374
if test $ac_cv_header_stdc = yes; then
3375
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3376
  cat >conftest.$ac_ext <<_ACEOF
3377
/* confdefs.h.  */
3378
_ACEOF
3379
cat confdefs.h >>conftest.$ac_ext
3380
cat >>conftest.$ac_ext <<_ACEOF
3381
/* end confdefs.h.  */
3382
#include 
3383
 
3384
_ACEOF
3385 131 jeremybenn
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 213 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then
3387
  :
3388
else
3389
  ac_cv_header_stdc=no
3390
fi
3391
rm -f conftest*
3392
 
3393
fi
3394
 
3395
if test $ac_cv_header_stdc = yes; then
3396
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3397
  cat >conftest.$ac_ext <<_ACEOF
3398
/* confdefs.h.  */
3399 131 jeremybenn
_ACEOF
3400 213 jeremybenn
cat confdefs.h >>conftest.$ac_ext
3401
cat >>conftest.$ac_ext <<_ACEOF
3402
/* end confdefs.h.  */
3403
#include 
3404 131 jeremybenn
 
3405 213 jeremybenn
_ACEOF
3406
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407
  $EGREP "free" >/dev/null 2>&1; then
3408
  :
3409 131 jeremybenn
else
3410 213 jeremybenn
  ac_cv_header_stdc=no
3411 131 jeremybenn
fi
3412
rm -f conftest*
3413
 
3414 213 jeremybenn
fi
3415 131 jeremybenn
 
3416 213 jeremybenn
if test $ac_cv_header_stdc = yes; then
3417
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418
  if test "$cross_compiling" = yes; then
3419
  :
3420 131 jeremybenn
else
3421 213 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3422
/* confdefs.h.  */
3423
_ACEOF
3424
cat confdefs.h >>conftest.$ac_ext
3425
cat >>conftest.$ac_ext <<_ACEOF
3426
/* end confdefs.h.  */
3427
#include 
3428
#include 
3429
#if ((' ' & 0x0FF) == 0x020)
3430
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3432
#else
3433
# define ISLOWER(c) \
3434
                   (('a' <= (c) && (c) <= 'i') \
3435
                     || ('j' <= (c) && (c) <= 'r') \
3436
                     || ('s' <= (c) && (c) <= 'z'))
3437
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3438
#endif
3439
 
3440
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3441
int
3442
main ()
3443
{
3444
  int i;
3445
  for (i = 0; i < 256; i++)
3446
    if (XOR (islower (i), ISLOWER (i))
3447
        || toupper (i) != TOUPPER (i))
3448
      return 2;
3449
  return 0;
3450
}
3451
_ACEOF
3452
rm -f conftest$ac_exeext
3453
if { (ac_try="$ac_link"
3454
case "(($ac_try" in
3455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456
  *) ac_try_echo=$ac_try;;
3457
esac
3458
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459
$as_echo "$ac_try_echo") >&5
3460
  (eval "$ac_link") 2>&5
3461
  ac_status=$?
3462
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3464
  { (case "(($ac_try" in
3465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466
  *) ac_try_echo=$ac_try;;
3467
esac
3468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469
$as_echo "$ac_try_echo") >&5
3470
  (eval "$ac_try") 2>&5
3471
  ac_status=$?
3472
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473
  (exit $ac_status); }; }; then
3474
  :
3475
else
3476
  $as_echo "$as_me: program exited with status $ac_status" >&5
3477
$as_echo "$as_me: failed program was:" >&5
3478
sed 's/^/| /' conftest.$ac_ext >&5
3479
 
3480
( exit $ac_status )
3481
ac_cv_header_stdc=no
3482
fi
3483
rm -rf conftest.dSYM
3484
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3485
fi
3486
 
3487
 
3488
fi
3489
fi
3490
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3491
$as_echo "$ac_cv_header_stdc" >&6; }
3492
if test $ac_cv_header_stdc = yes; then
3493
 
3494
cat >>confdefs.h <<\_ACEOF
3495
#define STDC_HEADERS 1
3496
_ACEOF
3497
 
3498
fi
3499
 
3500
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3501
 
3502
 
3503
 
3504
 
3505
 
3506
 
3507
 
3508
 
3509
 
3510
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3511
                  inttypes.h stdint.h unistd.h
3512
do
3513
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3514
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3515
$as_echo_n "checking for $ac_header... " >&6; }
3516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3517
  $as_echo_n "(cached) " >&6
3518
else
3519
  cat >conftest.$ac_ext <<_ACEOF
3520
/* confdefs.h.  */
3521
_ACEOF
3522
cat confdefs.h >>conftest.$ac_ext
3523
cat >>conftest.$ac_ext <<_ACEOF
3524
/* end confdefs.h.  */
3525
$ac_includes_default
3526
 
3527
#include <$ac_header>
3528
_ACEOF
3529
rm -f conftest.$ac_objext
3530
if { (ac_try="$ac_compile"
3531
case "(($ac_try" in
3532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533
  *) ac_try_echo=$ac_try;;
3534
esac
3535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536
$as_echo "$ac_try_echo") >&5
3537
  (eval "$ac_compile") 2>conftest.er1
3538
  ac_status=$?
3539
  grep -v '^ *+' conftest.er1 >conftest.err
3540
  rm -f conftest.er1
3541
  cat conftest.err >&5
3542
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543
  (exit $ac_status); } && {
3544
         test -z "$ac_c_werror_flag" ||
3545
         test ! -s conftest.err
3546
       } && test -s conftest.$ac_objext; then
3547
  eval "$as_ac_Header=yes"
3548
else
3549
  $as_echo "$as_me: failed program was:" >&5
3550
sed 's/^/| /' conftest.$ac_ext >&5
3551
 
3552
        eval "$as_ac_Header=no"
3553
fi
3554
 
3555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556
fi
3557
ac_res=`eval 'as_val=${'$as_ac_Header'}
3558
                 $as_echo "$as_val"'`
3559
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3560
$as_echo "$ac_res" >&6; }
3561
as_val=`eval 'as_val=${'$as_ac_Header'}
3562
                 $as_echo "$as_val"'`
3563
   if test "x$as_val" = x""yes; then
3564
  cat >>confdefs.h <<_ACEOF
3565
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3566
_ACEOF
3567
 
3568
fi
3569
 
3570
done
3571
 
3572
 
3573
 
3574
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3575
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3576
$as_echo_n "checking for minix/config.h... " >&6; }
3577
if test "${ac_cv_header_minix_config_h+set}" = set; then
3578
  $as_echo_n "(cached) " >&6
3579
fi
3580
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3582
else
3583
  # Is the header compilable?
3584
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3585
$as_echo_n "checking minix/config.h usability... " >&6; }
3586 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
3587
/* confdefs.h.  */
3588
_ACEOF
3589
cat confdefs.h >>conftest.$ac_ext
3590
cat >>conftest.$ac_ext <<_ACEOF
3591
/* end confdefs.h.  */
3592 213 jeremybenn
$ac_includes_default
3593
#include 
3594
_ACEOF
3595
rm -f conftest.$ac_objext
3596
if { (ac_try="$ac_compile"
3597
case "(($ac_try" in
3598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599
  *) ac_try_echo=$ac_try;;
3600
esac
3601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602
$as_echo "$ac_try_echo") >&5
3603
  (eval "$ac_compile") 2>conftest.er1
3604
  ac_status=$?
3605
  grep -v '^ *+' conftest.er1 >conftest.err
3606
  rm -f conftest.er1
3607
  cat conftest.err >&5
3608
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609
  (exit $ac_status); } && {
3610
         test -z "$ac_c_werror_flag" ||
3611
         test ! -s conftest.err
3612
       } && test -s conftest.$ac_objext; then
3613
  ac_header_compiler=yes
3614
else
3615
  $as_echo "$as_me: failed program was:" >&5
3616
sed 's/^/| /' conftest.$ac_ext >&5
3617 131 jeremybenn
 
3618 213 jeremybenn
        ac_header_compiler=no
3619
fi
3620
 
3621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3623
$as_echo "$ac_header_compiler" >&6; }
3624
 
3625
# Is the header present?
3626
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3627
$as_echo_n "checking minix/config.h presence... " >&6; }
3628
cat >conftest.$ac_ext <<_ACEOF
3629
/* confdefs.h.  */
3630
_ACEOF
3631
cat confdefs.h >>conftest.$ac_ext
3632
cat >>conftest.$ac_ext <<_ACEOF
3633
/* end confdefs.h.  */
3634
#include 
3635
_ACEOF
3636
if { (ac_try="$ac_cpp conftest.$ac_ext"
3637
case "(($ac_try" in
3638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639
  *) ac_try_echo=$ac_try;;
3640
esac
3641
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642
$as_echo "$ac_try_echo") >&5
3643
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644
  ac_status=$?
3645
  grep -v '^ *+' conftest.er1 >conftest.err
3646
  rm -f conftest.er1
3647
  cat conftest.err >&5
3648
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
  (exit $ac_status); } >/dev/null && {
3650
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651
         test ! -s conftest.err
3652
       }; then
3653
  ac_header_preproc=yes
3654
else
3655
  $as_echo "$as_me: failed program was:" >&5
3656
sed 's/^/| /' conftest.$ac_ext >&5
3657
 
3658
  ac_header_preproc=no
3659
fi
3660
 
3661
rm -f conftest.err conftest.$ac_ext
3662
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3663
$as_echo "$ac_header_preproc" >&6; }
3664
 
3665
# So?  What about this header?
3666
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3667
  yes:no: )
3668
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3669
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3670
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3671
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3672
    ac_header_preproc=yes
3673
    ;;
3674
  no:yes:* )
3675
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3676
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3677
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3678
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3679
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3680
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3681
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3682
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3683
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3684
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3685
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3686
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3687
 
3688
    ;;
3689
esac
3690
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3691
$as_echo_n "checking for minix/config.h... " >&6; }
3692
if test "${ac_cv_header_minix_config_h+set}" = set; then
3693
  $as_echo_n "(cached) " >&6
3694
else
3695
  ac_cv_header_minix_config_h=$ac_header_preproc
3696
fi
3697
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3698
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3699
 
3700
fi
3701
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3702
  MINIX=yes
3703
else
3704
  MINIX=
3705
fi
3706
 
3707
 
3708
  if test "$MINIX" = yes; then
3709
 
3710
cat >>confdefs.h <<\_ACEOF
3711
#define _POSIX_SOURCE 1
3712
_ACEOF
3713
 
3714
 
3715
cat >>confdefs.h <<\_ACEOF
3716
#define _POSIX_1_SOURCE 2
3717
_ACEOF
3718
 
3719
 
3720
cat >>confdefs.h <<\_ACEOF
3721
#define _MINIX 1
3722
_ACEOF
3723
 
3724
  fi
3725
 
3726
 
3727
 
3728
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3729
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3730
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3731
  $as_echo_n "(cached) " >&6
3732
else
3733
  cat >conftest.$ac_ext <<_ACEOF
3734
/* confdefs.h.  */
3735
_ACEOF
3736
cat confdefs.h >>conftest.$ac_ext
3737
cat >>conftest.$ac_ext <<_ACEOF
3738
/* end confdefs.h.  */
3739
 
3740
#         define __EXTENSIONS__ 1
3741
          $ac_includes_default
3742 131 jeremybenn
int
3743
main ()
3744
{
3745 213 jeremybenn
 
3746 131 jeremybenn
  ;
3747
  return 0;
3748
}
3749
_ACEOF
3750 213 jeremybenn
rm -f conftest.$ac_objext
3751
if { (ac_try="$ac_compile"
3752
case "(($ac_try" in
3753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754
  *) ac_try_echo=$ac_try;;
3755
esac
3756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3757
$as_echo "$ac_try_echo") >&5
3758
  (eval "$ac_compile") 2>conftest.er1
3759 131 jeremybenn
  ac_status=$?
3760
  grep -v '^ *+' conftest.er1 >conftest.err
3761
  rm -f conftest.er1
3762
  cat conftest.err >&5
3763 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
  (exit $ac_status); } && {
3765
         test -z "$ac_c_werror_flag" ||
3766
         test ! -s conftest.err
3767
       } && test -s conftest.$ac_objext; then
3768
  ac_cv_safe_to_define___extensions__=yes
3769
else
3770
  $as_echo "$as_me: failed program was:" >&5
3771
sed 's/^/| /' conftest.$ac_ext >&5
3772
 
3773
        ac_cv_safe_to_define___extensions__=no
3774
fi
3775
 
3776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
fi
3778
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3779
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3780
  test $ac_cv_safe_to_define___extensions__ = yes &&
3781
    cat >>confdefs.h <<\_ACEOF
3782
#define __EXTENSIONS__ 1
3783
_ACEOF
3784
 
3785
  cat >>confdefs.h <<\_ACEOF
3786
#define _ALL_SOURCE 1
3787
_ACEOF
3788
 
3789
  cat >>confdefs.h <<\_ACEOF
3790
#define _GNU_SOURCE 1
3791
_ACEOF
3792
 
3793
  cat >>confdefs.h <<\_ACEOF
3794
#define _POSIX_PTHREAD_SEMANTICS 1
3795
_ACEOF
3796
 
3797
  cat >>confdefs.h <<\_ACEOF
3798
#define _TANDEM_SOURCE 1
3799
_ACEOF
3800
 
3801
 
3802
 
3803
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3804
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3805
$as_echo_n "checking for minix/config.h... " >&6; }
3806
if test "${ac_cv_header_minix_config_h+set}" = set; then
3807
  $as_echo_n "(cached) " >&6
3808
fi
3809
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3810
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3811
else
3812
  # Is the header compilable?
3813
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3814
$as_echo_n "checking minix/config.h usability... " >&6; }
3815
cat >conftest.$ac_ext <<_ACEOF
3816
/* confdefs.h.  */
3817
_ACEOF
3818
cat confdefs.h >>conftest.$ac_ext
3819
cat >>conftest.$ac_ext <<_ACEOF
3820
/* end confdefs.h.  */
3821
$ac_includes_default
3822
#include 
3823
_ACEOF
3824
rm -f conftest.$ac_objext
3825
if { (ac_try="$ac_compile"
3826
case "(($ac_try" in
3827
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828
  *) ac_try_echo=$ac_try;;
3829
esac
3830
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831
$as_echo "$ac_try_echo") >&5
3832
  (eval "$ac_compile") 2>conftest.er1
3833 131 jeremybenn
  ac_status=$?
3834 213 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
3835
  rm -f conftest.er1
3836
  cat conftest.err >&5
3837
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
  (exit $ac_status); } && {
3839
         test -z "$ac_c_werror_flag" ||
3840
         test ! -s conftest.err
3841
       } && test -s conftest.$ac_objext; then
3842
  ac_header_compiler=yes
3843
else
3844
  $as_echo "$as_me: failed program was:" >&5
3845
sed 's/^/| /' conftest.$ac_ext >&5
3846
 
3847
        ac_header_compiler=no
3848
fi
3849
 
3850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3852
$as_echo "$ac_header_compiler" >&6; }
3853
 
3854
# Is the header present?
3855
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3856
$as_echo_n "checking minix/config.h presence... " >&6; }
3857
cat >conftest.$ac_ext <<_ACEOF
3858
/* confdefs.h.  */
3859
_ACEOF
3860
cat confdefs.h >>conftest.$ac_ext
3861
cat >>conftest.$ac_ext <<_ACEOF
3862
/* end confdefs.h.  */
3863
#include 
3864
_ACEOF
3865
if { (ac_try="$ac_cpp conftest.$ac_ext"
3866
case "(($ac_try" in
3867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868
  *) ac_try_echo=$ac_try;;
3869
esac
3870
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3871
$as_echo "$ac_try_echo") >&5
3872
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3873 131 jeremybenn
  ac_status=$?
3874 213 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
3875
  rm -f conftest.er1
3876
  cat conftest.err >&5
3877
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878
  (exit $ac_status); } >/dev/null && {
3879
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3880
         test ! -s conftest.err
3881
       }; then
3882
  ac_header_preproc=yes
3883 131 jeremybenn
else
3884 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3885 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3886
 
3887 213 jeremybenn
  ac_header_preproc=no
3888 131 jeremybenn
fi
3889 213 jeremybenn
 
3890
rm -f conftest.err conftest.$ac_ext
3891
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3892
$as_echo "$ac_header_preproc" >&6; }
3893
 
3894
# So?  What about this header?
3895
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3896
  yes:no: )
3897
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3898
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3899
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3900
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3901
    ac_header_preproc=yes
3902
    ;;
3903
  no:yes:* )
3904
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3905
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3906
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3907
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3908
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3909
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3910
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3911
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3912
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3913
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3914
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3915
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3916
 
3917
    ;;
3918
esac
3919
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3920
$as_echo_n "checking for minix/config.h... " >&6; }
3921
if test "${ac_cv_header_minix_config_h+set}" = set; then
3922
  $as_echo_n "(cached) " >&6
3923
else
3924
  ac_cv_header_minix_config_h=$ac_header_preproc
3925
fi
3926
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3927
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3928
 
3929
fi
3930
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3931
  MINIX=yes
3932
else
3933
  MINIX=
3934
fi
3935
 
3936
 
3937
  if test "$MINIX" = yes; then
3938
 
3939
cat >>confdefs.h <<\_ACEOF
3940
#define _POSIX_SOURCE 1
3941
_ACEOF
3942
 
3943
 
3944
cat >>confdefs.h <<\_ACEOF
3945
#define _POSIX_1_SOURCE 2
3946
_ACEOF
3947
 
3948
 
3949
cat >>confdefs.h <<\_ACEOF
3950
#define _MINIX 1
3951
_ACEOF
3952
 
3953
  fi
3954
 
3955
 
3956
 
3957
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3958
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3959
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3960
  $as_echo_n "(cached) " >&6
3961
else
3962
  cat >conftest.$ac_ext <<_ACEOF
3963 131 jeremybenn
/* confdefs.h.  */
3964
_ACEOF
3965
cat confdefs.h >>conftest.$ac_ext
3966
cat >>conftest.$ac_ext <<_ACEOF
3967
/* end confdefs.h.  */
3968
 
3969 213 jeremybenn
#         define __EXTENSIONS__ 1
3970
          $ac_includes_default
3971
int
3972
main ()
3973
{
3974
 
3975
  ;
3976
  return 0;
3977
}
3978
_ACEOF
3979
rm -f conftest.$ac_objext
3980
if { (ac_try="$ac_compile"
3981
case "(($ac_try" in
3982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983
  *) ac_try_echo=$ac_try;;
3984
esac
3985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986
$as_echo "$ac_try_echo") >&5
3987
  (eval "$ac_compile") 2>conftest.er1
3988
  ac_status=$?
3989
  grep -v '^ *+' conftest.er1 >conftest.err
3990
  rm -f conftest.er1
3991
  cat conftest.err >&5
3992
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
  (exit $ac_status); } && {
3994
         test -z "$ac_c_werror_flag" ||
3995
         test ! -s conftest.err
3996
       } && test -s conftest.$ac_objext; then
3997
  ac_cv_safe_to_define___extensions__=yes
3998
else
3999
  $as_echo "$as_me: failed program was:" >&5
4000
sed 's/^/| /' conftest.$ac_ext >&5
4001
 
4002
        ac_cv_safe_to_define___extensions__=no
4003
fi
4004
 
4005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006
fi
4007
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4008
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4009
  test $ac_cv_safe_to_define___extensions__ = yes &&
4010
    cat >>confdefs.h <<\_ACEOF
4011
#define __EXTENSIONS__ 1
4012
_ACEOF
4013
 
4014
  cat >>confdefs.h <<\_ACEOF
4015
#define _ALL_SOURCE 1
4016
_ACEOF
4017
 
4018
  cat >>confdefs.h <<\_ACEOF
4019
#define _GNU_SOURCE 1
4020
_ACEOF
4021
 
4022
  cat >>confdefs.h <<\_ACEOF
4023
#define _POSIX_PTHREAD_SEMANTICS 1
4024
_ACEOF
4025
 
4026
  cat >>confdefs.h <<\_ACEOF
4027
#define _TANDEM_SOURCE 1
4028
_ACEOF
4029
 
4030
 
4031
{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
4032
$as_echo_n "checking for library containing strerror... " >&6; }
4033
if test "${ac_cv_search_strerror+set}" = set; then
4034
  $as_echo_n "(cached) " >&6
4035
else
4036
  ac_func_search_save_LIBS=$LIBS
4037
cat >conftest.$ac_ext <<_ACEOF
4038
/* confdefs.h.  */
4039
_ACEOF
4040
cat confdefs.h >>conftest.$ac_ext
4041
cat >>conftest.$ac_ext <<_ACEOF
4042
/* end confdefs.h.  */
4043
 
4044
/* Override any GCC internal prototype to avoid an error.
4045
   Use char because int might match the return type of a GCC
4046
   builtin and then its argument prototype would still apply.  */
4047 131 jeremybenn
#ifdef __cplusplus
4048
extern "C"
4049
#endif
4050
char strerror ();
4051
int
4052
main ()
4053
{
4054 213 jeremybenn
return strerror ();
4055 131 jeremybenn
  ;
4056
  return 0;
4057
}
4058
_ACEOF
4059 213 jeremybenn
for ac_lib in '' cposix; do
4060
  if test -z "$ac_lib"; then
4061
    ac_res="none required"
4062
  else
4063
    ac_res=-l$ac_lib
4064
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4065
  fi
4066
  rm -f conftest.$ac_objext conftest$ac_exeext
4067
if { (ac_try="$ac_link"
4068
case "(($ac_try" in
4069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070
  *) ac_try_echo=$ac_try;;
4071
esac
4072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073
$as_echo "$ac_try_echo") >&5
4074
  (eval "$ac_link") 2>conftest.er1
4075 131 jeremybenn
  ac_status=$?
4076
  grep -v '^ *+' conftest.er1 >conftest.err
4077
  rm -f conftest.er1
4078
  cat conftest.err >&5
4079 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
  (exit $ac_status); } && {
4081
         test -z "$ac_c_werror_flag" ||
4082
         test ! -s conftest.err
4083
       } && test -s conftest$ac_exeext && {
4084
         test "$cross_compiling" = yes ||
4085
         $as_test_x conftest$ac_exeext
4086
       }; then
4087
  ac_cv_search_strerror=$ac_res
4088 131 jeremybenn
else
4089 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4090 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4091
 
4092 213 jeremybenn
 
4093 131 jeremybenn
fi
4094 213 jeremybenn
 
4095
rm -rf conftest.dSYM
4096
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4097
      conftest$ac_exeext
4098
  if test "${ac_cv_search_strerror+set}" = set; then
4099
  break
4100 131 jeremybenn
fi
4101 213 jeremybenn
done
4102
if test "${ac_cv_search_strerror+set}" = set; then
4103
  :
4104
else
4105
  ac_cv_search_strerror=no
4106
fi
4107
rm conftest.$ac_ext
4108 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
4109
fi
4110 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4111
$as_echo "$ac_cv_search_strerror" >&6; }
4112
ac_res=$ac_cv_search_strerror
4113
if test "$ac_res" != no; then
4114
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4115 131 jeremybenn
 
4116
fi
4117
 
4118
 
4119
 
4120
 
4121 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4122
$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4123 131 jeremybenn
if test "${am_cv_prog_cc_stdc+set}" = set; then
4124 213 jeremybenn
  $as_echo_n "(cached) " >&6
4125 131 jeremybenn
else
4126
  am_cv_prog_cc_stdc=no
4127
ac_save_CC="$CC"
4128
# Don't try gcc -ansi; that turns off useful extensions and
4129
# breaks some systems' header files.
4130
# AIX                   -qlanglvl=ansi
4131
# Ultrix and OSF/1      -std1
4132
# HP-UX 10.20 and later -Ae
4133
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4134
# SVR4                  -Xc -D__EXTENSIONS__
4135
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4136
do
4137
  CC="$ac_save_CC $ac_arg"
4138
  cat >conftest.$ac_ext <<_ACEOF
4139
/* confdefs.h.  */
4140
_ACEOF
4141
cat confdefs.h >>conftest.$ac_ext
4142
cat >>conftest.$ac_ext <<_ACEOF
4143
/* end confdefs.h.  */
4144
#include 
4145
#include 
4146
#include 
4147
#include 
4148
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4149
struct buf { int x; };
4150
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4151
static char *e (p, i)
4152
     char **p;
4153
     int i;
4154
{
4155
  return p[i];
4156
}
4157
static char *f (char * (*g) (char **, int), char **p, ...)
4158
{
4159
  char *s;
4160
  va_list v;
4161
  va_start (v,p);
4162
  s = g (p, va_arg (v,int));
4163
  va_end (v);
4164
  return s;
4165
}
4166
int test (int i, double x);
4167
struct s1 {int (*f) (int a);};
4168
struct s2 {int (*f) (double a);};
4169
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170
int argc;
4171
char **argv;
4172
 
4173
int
4174
main ()
4175
{
4176
 
4177
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4178
 
4179
  ;
4180
  return 0;
4181
}
4182
_ACEOF
4183
rm -f conftest.$ac_objext
4184 213 jeremybenn
if { (ac_try="$ac_compile"
4185
case "(($ac_try" in
4186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187
  *) ac_try_echo=$ac_try;;
4188
esac
4189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4190
$as_echo "$ac_try_echo") >&5
4191
  (eval "$ac_compile") 2>conftest.er1
4192 131 jeremybenn
  ac_status=$?
4193
  grep -v '^ *+' conftest.er1 >conftest.err
4194
  rm -f conftest.er1
4195
  cat conftest.err >&5
4196 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
  (exit $ac_status); } && {
4198
         test -z "$ac_c_werror_flag" ||
4199
         test ! -s conftest.err
4200
       } && test -s conftest.$ac_objext; then
4201 131 jeremybenn
  am_cv_prog_cc_stdc="$ac_arg"; break
4202
else
4203 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4204 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4205
 
4206 213 jeremybenn
 
4207 131 jeremybenn
fi
4208 213 jeremybenn
 
4209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 131 jeremybenn
done
4211
CC="$ac_save_CC"
4212
 
4213
fi
4214
 
4215
if test -z "$am_cv_prog_cc_stdc"; then
4216 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: none needed" >&5
4217
$as_echo "none needed" >&6; }
4218 131 jeremybenn
else
4219 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4220
$as_echo "$am_cv_prog_cc_stdc" >&6; }
4221 131 jeremybenn
fi
4222
case "x$am_cv_prog_cc_stdc" in
4223
  x|xno) ;;
4224
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
4225
esac
4226
 
4227
 
4228
ac_aux_dir=
4229 213 jeremybenn
for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do
4230
  if test -f "$ac_dir/install-sh"; then
4231 131 jeremybenn
    ac_aux_dir=$ac_dir
4232
    ac_install_sh="$ac_aux_dir/install-sh -c"
4233
    break
4234 213 jeremybenn
  elif test -f "$ac_dir/install.sh"; then
4235 131 jeremybenn
    ac_aux_dir=$ac_dir
4236
    ac_install_sh="$ac_aux_dir/install.sh -c"
4237
    break
4238 213 jeremybenn
  elif test -f "$ac_dir/shtool"; then
4239 131 jeremybenn
    ac_aux_dir=$ac_dir
4240
    ac_install_sh="$ac_aux_dir/shtool install -c"
4241
    break
4242
  fi
4243
done
4244
if test -z "$ac_aux_dir"; then
4245 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." >&5
4246
$as_echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." >&2;}
4247 131 jeremybenn
   { (exit 1); exit 1; }; }
4248
fi
4249
 
4250 213 jeremybenn
# These three variables are undocumented and unsupported,
4251
# and are intended to be withdrawn in a future Autoconf release.
4252
# They can cause serious problems if a builder's source tree is in a directory
4253
# whose full name contains unusual characters.
4254
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4255
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4256
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4257
 
4258
 
4259 131 jeremybenn
# Make sure we can run config.sub.
4260 213 jeremybenn
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4261
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4262
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4263 131 jeremybenn
   { (exit 1); exit 1; }; }
4264
 
4265 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4266
$as_echo_n "checking build system type... " >&6; }
4267 131 jeremybenn
if test "${ac_cv_build+set}" = set; then
4268 213 jeremybenn
  $as_echo_n "(cached) " >&6
4269 131 jeremybenn
else
4270 213 jeremybenn
  ac_build_alias=$build_alias
4271
test "x$ac_build_alias" = x &&
4272
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4273
test "x$ac_build_alias" = x &&
4274
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4275
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4276 131 jeremybenn
   { (exit 1); exit 1; }; }
4277 213 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4278
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4279
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4280 131 jeremybenn
   { (exit 1); exit 1; }; }
4281
 
4282
fi
4283 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4284
$as_echo "$ac_cv_build" >&6; }
4285
case $ac_cv_build in
4286
*-*-*) ;;
4287
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4288
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4289
   { (exit 1); exit 1; }; };;
4290
esac
4291 131 jeremybenn
build=$ac_cv_build
4292 213 jeremybenn
ac_save_IFS=$IFS; IFS='-'
4293
set x $ac_cv_build
4294
shift
4295
build_cpu=$1
4296
build_vendor=$2
4297
shift; shift
4298
# Remember, the first character of IFS is used to create $*,
4299
# except with old shells:
4300
build_os=$*
4301
IFS=$ac_save_IFS
4302
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4303 131 jeremybenn
 
4304
 
4305 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4306
$as_echo_n "checking host system type... " >&6; }
4307 131 jeremybenn
if test "${ac_cv_host+set}" = set; then
4308 213 jeremybenn
  $as_echo_n "(cached) " >&6
4309 131 jeremybenn
else
4310 213 jeremybenn
  if test "x$host_alias" = x; then
4311
  ac_cv_host=$ac_cv_build
4312
else
4313
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4314
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4315
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4316 131 jeremybenn
   { (exit 1); exit 1; }; }
4317 213 jeremybenn
fi
4318 131 jeremybenn
 
4319
fi
4320 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4321
$as_echo "$ac_cv_host" >&6; }
4322
case $ac_cv_host in
4323
*-*-*) ;;
4324
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4325
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4326
   { (exit 1); exit 1; }; };;
4327
esac
4328 131 jeremybenn
host=$ac_cv_host
4329 213 jeremybenn
ac_save_IFS=$IFS; IFS='-'
4330
set x $ac_cv_host
4331
shift
4332
host_cpu=$1
4333
host_vendor=$2
4334
shift; shift
4335
# Remember, the first character of IFS is used to create $*,
4336
# except with old shells:
4337
host_os=$*
4338
IFS=$ac_save_IFS
4339
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4340 131 jeremybenn
 
4341
 
4342 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4343
$as_echo_n "checking target system type... " >&6; }
4344 131 jeremybenn
if test "${ac_cv_target+set}" = set; then
4345 213 jeremybenn
  $as_echo_n "(cached) " >&6
4346 131 jeremybenn
else
4347 213 jeremybenn
  if test "x$target_alias" = x; then
4348
  ac_cv_target=$ac_cv_host
4349
else
4350
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4351
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4352
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4353 131 jeremybenn
   { (exit 1); exit 1; }; }
4354 213 jeremybenn
fi
4355 131 jeremybenn
 
4356
fi
4357 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4358
$as_echo "$ac_cv_target" >&6; }
4359
case $ac_cv_target in
4360
*-*-*) ;;
4361
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4362
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4363
   { (exit 1); exit 1; }; };;
4364
esac
4365 131 jeremybenn
target=$ac_cv_target
4366 213 jeremybenn
ac_save_IFS=$IFS; IFS='-'
4367
set x $ac_cv_target
4368
shift
4369
target_cpu=$1
4370
target_vendor=$2
4371
shift; shift
4372
# Remember, the first character of IFS is used to create $*,
4373
# except with old shells:
4374
target_os=$*
4375
IFS=$ac_save_IFS
4376
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4377 131 jeremybenn
 
4378
 
4379
# The aliases save the names the user supplied, while $host etc.
4380
# will get canonicalized.
4381
test -n "$target_alias" &&
4382
  test "$program_prefix$program_suffix$program_transform_name" = \
4383
    NONENONEs,x,x, &&
4384
  program_prefix=${target_alias}-
4385
 
4386
 
4387
CONFIG_OBS=
4388
CONFIG_DEPS=
4389
CONFIG_SRCS=
4390
ENABLE_CFLAGS=
4391
 
4392
CONFIG_ALL=
4393
CONFIG_CLEAN=
4394
CONFIG_INSTALL=
4395
CONFIG_UNINSTALL=
4396
 
4397
# If we haven't got the data from the intl directory,
4398
# assume NLS is disabled.
4399
USE_NLS=no
4400
LIBINTL=
4401
LIBINTL_DEP=
4402
INCINTL=
4403
XGETTEXT=
4404
GMSGFMT=
4405
POSUB=
4406
 
4407
if test -f  ../intl/config.intl; then
4408
  .  ../intl/config.intl
4409
fi
4410 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4411
$as_echo_n "checking whether NLS is requested... " >&6; }
4412 131 jeremybenn
if test x"$USE_NLS" != xyes; then
4413 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4414
$as_echo "no" >&6; }
4415 131 jeremybenn
else
4416 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4417
$as_echo "yes" >&6; }
4418 131 jeremybenn
 
4419
cat >>confdefs.h <<\_ACEOF
4420
#define ENABLE_NLS 1
4421
_ACEOF
4422
 
4423
 
4424 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
4425
$as_echo_n "checking for catalogs to be installed... " >&6; }
4426 131 jeremybenn
  # Look for .po and .gmo files in the source directory.
4427
  CATALOGS=
4428
  XLINGUAS=
4429
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4430
    # If there aren't any .gmo files the shell will give us the
4431
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
4432
    # weeded out.
4433
    case "$cat" in *\**)
4434
      continue;;
4435
    esac
4436
    # The quadruple backslash is collapsed to a double backslash
4437
    # by the backticks, then collapsed again by the double quotes,
4438
    # leaving us with one backslash in the sed expression (right
4439
    # before the dot that mustn't act as a wildcard).
4440
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4441
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4442
    # The user is allowed to set LINGUAS to a list of languages to
4443
    # install catalogs for.  If it's empty that means "all of them."
4444
    if test "x$LINGUAS" = x; then
4445
      CATALOGS="$CATALOGS $cat"
4446
      XLINGUAS="$XLINGUAS $lang"
4447
    else
4448
      case "$LINGUAS" in *$lang*)
4449
        CATALOGS="$CATALOGS $cat"
4450
        XLINGUAS="$XLINGUAS $lang"
4451
        ;;
4452
      esac
4453
    fi
4454
  done
4455
  LINGUAS="$XLINGUAS"
4456 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
4457
$as_echo "$LINGUAS" >&6; }
4458 131 jeremybenn
 
4459
 
4460
    DATADIRNAME=share
4461
 
4462
  INSTOBJEXT=.mo
4463
 
4464
  GENCAT=gencat
4465
 
4466
  CATOBJEXT=.gmo
4467
 
4468
fi
4469
 
4470
localedir='${datadir}/locale'
4471
 
4472
 
4473
if test x"$USE_NLS" = xyes; then
4474
   CONFIG_ALL="$CONFIG_ALL all-po"
4475
   CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4476
   CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4477
   CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4478
fi
4479
 
4480
PACKAGE=gdb
4481
 
4482
cat >>confdefs.h <<_ACEOF
4483
#define PACKAGE "$PACKAGE"
4484
_ACEOF
4485
 
4486
 
4487
 
4488
debugdir=${libdir}/debug
4489
 
4490
 
4491 213 jeremybenn
# Check whether --with-separate-debug-dir was given.
4492 131 jeremybenn
if test "${with_separate_debug_dir+set}" = set; then
4493 213 jeremybenn
  withval=$with_separate_debug_dir; debugdir="${withval}"
4494
fi
4495 131 jeremybenn
 
4496
 
4497 213 jeremybenn
 
4498 131 jeremybenn
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4499
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4500
  ac_define_dir=`eval echo $debugdir`
4501
  ac_define_dir=`eval echo $ac_define_dir`
4502
 
4503
cat >>confdefs.h <<_ACEOF
4504
#define DEBUGDIR "$ac_define_dir"
4505
_ACEOF
4506
 
4507
 
4508
#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
4509
 
4510
if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4511
  if test "x$prefix" = xNONE; then
4512
    test_prefix=/usr/local
4513
  else
4514
    test_prefix=$prefix
4515
  fi
4516
else
4517
  test_prefix=$exec_prefix
4518
fi
4519
case ${debugdir} in
4520
"${test_prefix}"|"${test_prefix}/"*|\
4521
'${exec_prefix}'|'${exec_prefix}/'*)
4522
 
4523
cat >>confdefs.h <<\_ACEOF
4524
#define DEBUGDIR_RELOCATABLE 1
4525
_ACEOF
4526
 
4527
  ;;
4528
esac
4529
 
4530
 
4531
 
4532
subdirs="$subdirs doc testsuite"
4533
 
4534
 
4535
# Check whether to support alternative target configurations
4536 213 jeremybenn
# Check whether --enable-targets was given.
4537 131 jeremybenn
if test "${enable_targets+set}" = set; then
4538 213 jeremybenn
  enableval=$enable_targets; case "${enableval}" in
4539
  yes | "") { { $as_echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4540
$as_echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4541 131 jeremybenn
   { (exit 1); exit 1; }; }
4542
            ;;
4543
  no)       enable_targets= ;;
4544
  *)        enable_targets=$enableval ;;
4545
esac
4546 213 jeremybenn
fi
4547 131 jeremybenn
 
4548 213 jeremybenn
 
4549 131 jeremybenn
# Check whether to enable 64-bit support on 32-bit hosts
4550 213 jeremybenn
# Check whether --enable-64-bit-bfd was given.
4551 131 jeremybenn
if test "${enable_64_bit_bfd+set}" = set; then
4552 213 jeremybenn
  enableval=$enable_64_bit_bfd; case "${enableval}" in
4553 131 jeremybenn
  yes)  want64=true  ;;
4554
  no)   want64=false ;;
4555 213 jeremybenn
  *)    { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4556
$as_echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4557 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
4558
esac
4559
else
4560
  want64=false
4561 213 jeremybenn
fi
4562
 
4563 131 jeremybenn
# Provide defaults for some variables set by the per-host and per-target
4564
# configuration.
4565
gdb_host_obs=posix-hdep.o
4566
 
4567
if test "${target}" = "${host}"; then
4568
  gdb_native=yes
4569
else
4570
  gdb_native=no
4571
fi
4572
 
4573
. $srcdir/configure.host
4574
 
4575
# Accumulate some settings from configure.tgt over all enabled targets
4576
 
4577
TARGET_OBS=
4578
all_targets=
4579
 
4580
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4581
do
4582
  if test "$targ_alias" = "all"; then
4583
    all_targets=true
4584
  else
4585
    # Canonicalize the secondary target names.
4586
    result=`$ac_config_sub $targ_alias 2>/dev/null`
4587
    if test -n "$result"; then
4588
        targ=$result
4589
    else
4590
        targ=$targ_alias
4591
    fi
4592
 
4593
    . ${srcdir}/configure.tgt
4594
 
4595
    # Target-specific object files
4596
    for i in ${gdb_target_obs}; do
4597
        case " $TARGET_OBS " in
4598
        *" ${i} "*) ;;
4599
        *)
4600
          TARGET_OBS="$TARGET_OBS ${i}"
4601
          ;;
4602
        esac
4603
    done
4604
 
4605
    # Check whether this target needs 64-bit CORE_ADDR
4606
    if test x${want64} = xfalse; then
4607
      . ${srcdir}/../bfd/config.bfd
4608
    fi
4609
  fi
4610
done
4611
 
4612
if test x${all_targets} = xtrue; then
4613
 
4614
  # We want all 64-bit targets if we either:
4615
  #  - run on a 64-bit host  or
4616
  #  - already require 64-bit support for some other target  or
4617
  #  - the --enable-64-bit-bfd option was supplied
4618
  # Otherwise we only support all 32-bit targets.
4619
  #
4620
  # NOTE: This test must be in sync with the corresponding
4621
  #       tests in BFD!
4622
 
4623
  if test x${want64} = xfalse; then
4624 213 jeremybenn
    # The cast to long int works around a bug in the HP C Compiler
4625
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4626
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4627
# This bug is HP SR number 8606223364.
4628
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
4629
$as_echo_n "checking size of long... " >&6; }
4630 131 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
4631 213 jeremybenn
  $as_echo_n "(cached) " >&6
4632 131 jeremybenn
else
4633
  if test "$cross_compiling" = yes; then
4634
  # Depending upon the size, compute the lo and hi bounds.
4635
cat >conftest.$ac_ext <<_ACEOF
4636
/* confdefs.h.  */
4637
_ACEOF
4638
cat confdefs.h >>conftest.$ac_ext
4639
cat >>conftest.$ac_ext <<_ACEOF
4640
/* end confdefs.h.  */
4641
$ac_includes_default
4642
int
4643
main ()
4644
{
4645 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
4646 131 jeremybenn
test_array [0] = 0
4647
 
4648
  ;
4649
  return 0;
4650
}
4651
_ACEOF
4652
rm -f conftest.$ac_objext
4653 213 jeremybenn
if { (ac_try="$ac_compile"
4654
case "(($ac_try" in
4655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656
  *) ac_try_echo=$ac_try;;
4657
esac
4658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659
$as_echo "$ac_try_echo") >&5
4660
  (eval "$ac_compile") 2>conftest.er1
4661 131 jeremybenn
  ac_status=$?
4662
  grep -v '^ *+' conftest.er1 >conftest.err
4663
  rm -f conftest.er1
4664
  cat conftest.err >&5
4665 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666
  (exit $ac_status); } && {
4667
         test -z "$ac_c_werror_flag" ||
4668
         test ! -s conftest.err
4669
       } && test -s conftest.$ac_objext; then
4670 131 jeremybenn
  ac_lo=0 ac_mid=0
4671
  while :; do
4672
    cat >conftest.$ac_ext <<_ACEOF
4673
/* confdefs.h.  */
4674
_ACEOF
4675
cat confdefs.h >>conftest.$ac_ext
4676
cat >>conftest.$ac_ext <<_ACEOF
4677
/* end confdefs.h.  */
4678
$ac_includes_default
4679
int
4680
main ()
4681
{
4682 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4683 131 jeremybenn
test_array [0] = 0
4684
 
4685
  ;
4686
  return 0;
4687
}
4688
_ACEOF
4689
rm -f conftest.$ac_objext
4690 213 jeremybenn
if { (ac_try="$ac_compile"
4691
case "(($ac_try" in
4692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
  *) ac_try_echo=$ac_try;;
4694
esac
4695
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696
$as_echo "$ac_try_echo") >&5
4697
  (eval "$ac_compile") 2>conftest.er1
4698 131 jeremybenn
  ac_status=$?
4699
  grep -v '^ *+' conftest.er1 >conftest.err
4700
  rm -f conftest.er1
4701
  cat conftest.err >&5
4702 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
  (exit $ac_status); } && {
4704
         test -z "$ac_c_werror_flag" ||
4705
         test ! -s conftest.err
4706
       } && test -s conftest.$ac_objext; then
4707 131 jeremybenn
  ac_hi=$ac_mid; break
4708
else
4709 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4710 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4711
 
4712 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
4713
                        if test $ac_lo -le $ac_mid; then
4714
                          ac_lo= ac_hi=
4715
                          break
4716
                        fi
4717
                        ac_mid=`expr 2 '*' $ac_mid + 1`
4718 131 jeremybenn
fi
4719 213 jeremybenn
 
4720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 131 jeremybenn
  done
4722
else
4723 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4724 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4725
 
4726 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
4727 131 jeremybenn
/* confdefs.h.  */
4728
_ACEOF
4729
cat confdefs.h >>conftest.$ac_ext
4730
cat >>conftest.$ac_ext <<_ACEOF
4731
/* end confdefs.h.  */
4732
$ac_includes_default
4733
int
4734
main ()
4735
{
4736 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
4737 131 jeremybenn
test_array [0] = 0
4738
 
4739
  ;
4740
  return 0;
4741
}
4742
_ACEOF
4743
rm -f conftest.$ac_objext
4744 213 jeremybenn
if { (ac_try="$ac_compile"
4745
case "(($ac_try" in
4746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747
  *) ac_try_echo=$ac_try;;
4748
esac
4749
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750
$as_echo "$ac_try_echo") >&5
4751
  (eval "$ac_compile") 2>conftest.er1
4752 131 jeremybenn
  ac_status=$?
4753
  grep -v '^ *+' conftest.er1 >conftest.err
4754
  rm -f conftest.er1
4755
  cat conftest.err >&5
4756 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
  (exit $ac_status); } && {
4758
         test -z "$ac_c_werror_flag" ||
4759
         test ! -s conftest.err
4760
       } && test -s conftest.$ac_objext; then
4761 131 jeremybenn
  ac_hi=-1 ac_mid=-1
4762
  while :; do
4763
    cat >conftest.$ac_ext <<_ACEOF
4764
/* confdefs.h.  */
4765
_ACEOF
4766
cat confdefs.h >>conftest.$ac_ext
4767
cat >>conftest.$ac_ext <<_ACEOF
4768
/* end confdefs.h.  */
4769
$ac_includes_default
4770
int
4771
main ()
4772
{
4773 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
4774 131 jeremybenn
test_array [0] = 0
4775
 
4776
  ;
4777
  return 0;
4778
}
4779
_ACEOF
4780
rm -f conftest.$ac_objext
4781 213 jeremybenn
if { (ac_try="$ac_compile"
4782
case "(($ac_try" in
4783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784
  *) ac_try_echo=$ac_try;;
4785
esac
4786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787
$as_echo "$ac_try_echo") >&5
4788
  (eval "$ac_compile") 2>conftest.er1
4789 131 jeremybenn
  ac_status=$?
4790
  grep -v '^ *+' conftest.er1 >conftest.err
4791
  rm -f conftest.er1
4792
  cat conftest.err >&5
4793 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794
  (exit $ac_status); } && {
4795
         test -z "$ac_c_werror_flag" ||
4796
         test ! -s conftest.err
4797
       } && test -s conftest.$ac_objext; then
4798 131 jeremybenn
  ac_lo=$ac_mid; break
4799
else
4800 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4801 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4802
 
4803 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
4804
                        if test $ac_mid -le $ac_hi; then
4805
                          ac_lo= ac_hi=
4806
                          break
4807
                        fi
4808
                        ac_mid=`expr 2 '*' $ac_mid`
4809 131 jeremybenn
fi
4810 213 jeremybenn
 
4811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 131 jeremybenn
  done
4813
else
4814 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4815 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4816
 
4817 213 jeremybenn
        ac_lo= ac_hi=
4818 131 jeremybenn
fi
4819 213 jeremybenn
 
4820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 131 jeremybenn
fi
4822 213 jeremybenn
 
4823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 131 jeremybenn
# Binary search between lo and hi bounds.
4825
while test "x$ac_lo" != "x$ac_hi"; do
4826
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4827
  cat >conftest.$ac_ext <<_ACEOF
4828
/* confdefs.h.  */
4829
_ACEOF
4830
cat confdefs.h >>conftest.$ac_ext
4831
cat >>conftest.$ac_ext <<_ACEOF
4832
/* end confdefs.h.  */
4833
$ac_includes_default
4834
int
4835
main ()
4836
{
4837 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4838 131 jeremybenn
test_array [0] = 0
4839
 
4840
  ;
4841
  return 0;
4842
}
4843
_ACEOF
4844
rm -f conftest.$ac_objext
4845 213 jeremybenn
if { (ac_try="$ac_compile"
4846
case "(($ac_try" in
4847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848
  *) ac_try_echo=$ac_try;;
4849
esac
4850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851
$as_echo "$ac_try_echo") >&5
4852
  (eval "$ac_compile") 2>conftest.er1
4853 131 jeremybenn
  ac_status=$?
4854
  grep -v '^ *+' conftest.er1 >conftest.err
4855
  rm -f conftest.er1
4856
  cat conftest.err >&5
4857 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
  (exit $ac_status); } && {
4859
         test -z "$ac_c_werror_flag" ||
4860
         test ! -s conftest.err
4861
       } && test -s conftest.$ac_objext; then
4862 131 jeremybenn
  ac_hi=$ac_mid
4863
else
4864 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4865 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4866
 
4867 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
4868 131 jeremybenn
fi
4869 213 jeremybenn
 
4870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 131 jeremybenn
done
4872
case $ac_lo in
4873
?*) ac_cv_sizeof_long=$ac_lo;;
4874 213 jeremybenn
'') if test "$ac_cv_type_long" = yes; then
4875
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4876
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4877
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4878 131 jeremybenn
See \`config.log' for more details." >&5
4879 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
4880 131 jeremybenn
See \`config.log' for more details." >&2;}
4881 213 jeremybenn
   { (exit 77); exit 77; }; }; }
4882
   else
4883
     ac_cv_sizeof_long=0
4884
   fi ;;
4885 131 jeremybenn
esac
4886
else
4887
  cat >conftest.$ac_ext <<_ACEOF
4888
/* confdefs.h.  */
4889
_ACEOF
4890
cat confdefs.h >>conftest.$ac_ext
4891
cat >>conftest.$ac_ext <<_ACEOF
4892
/* end confdefs.h.  */
4893
$ac_includes_default
4894 213 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
4895
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
4896 131 jeremybenn
#include 
4897
#include 
4898
int
4899
main ()
4900
{
4901
 
4902
  FILE *f = fopen ("conftest.val", "w");
4903
  if (! f)
4904 213 jeremybenn
    return 1;
4905
  if (((long int) (sizeof (long))) < 0)
4906 131 jeremybenn
    {
4907 213 jeremybenn
      long int i = longval ();
4908
      if (i != ((long int) (sizeof (long))))
4909
        return 1;
4910
      fprintf (f, "%ld", i);
4911 131 jeremybenn
    }
4912
  else
4913
    {
4914 213 jeremybenn
      unsigned long int i = ulongval ();
4915
      if (i != ((long int) (sizeof (long))))
4916
        return 1;
4917
      fprintf (f, "%lu", i);
4918 131 jeremybenn
    }
4919 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
4920
     on some platforms.  */
4921
  return ferror (f) || fclose (f) != 0;
4922 131 jeremybenn
 
4923
  ;
4924
  return 0;
4925
}
4926
_ACEOF
4927
rm -f conftest$ac_exeext
4928 213 jeremybenn
if { (ac_try="$ac_link"
4929
case "(($ac_try" in
4930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931
  *) ac_try_echo=$ac_try;;
4932
esac
4933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934
$as_echo "$ac_try_echo") >&5
4935
  (eval "$ac_link") 2>&5
4936 131 jeremybenn
  ac_status=$?
4937 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4939 213 jeremybenn
  { (case "(($ac_try" in
4940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941
  *) ac_try_echo=$ac_try;;
4942
esac
4943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4944
$as_echo "$ac_try_echo") >&5
4945
  (eval "$ac_try") 2>&5
4946 131 jeremybenn
  ac_status=$?
4947 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 131 jeremybenn
  (exit $ac_status); }; }; then
4949
  ac_cv_sizeof_long=`cat conftest.val`
4950
else
4951 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
4952
$as_echo "$as_me: failed program was:" >&5
4953 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4954
 
4955
( exit $ac_status )
4956 213 jeremybenn
if test "$ac_cv_type_long" = yes; then
4957
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4958
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4960 131 jeremybenn
See \`config.log' for more details." >&5
4961 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
4962 131 jeremybenn
See \`config.log' for more details." >&2;}
4963 213 jeremybenn
   { (exit 77); exit 77; }; }; }
4964
   else
4965
     ac_cv_sizeof_long=0
4966
   fi
4967 131 jeremybenn
fi
4968 213 jeremybenn
rm -rf conftest.dSYM
4969
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4970 131 jeremybenn
fi
4971
rm -f conftest.val
4972
fi
4973 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4974
$as_echo "$ac_cv_sizeof_long" >&6; }
4975
 
4976
 
4977
 
4978 131 jeremybenn
cat >>confdefs.h <<_ACEOF
4979
#define SIZEOF_LONG $ac_cv_sizeof_long
4980
_ACEOF
4981
 
4982
 
4983
    if test "x${ac_cv_sizeof_long}" = "x8"; then
4984
      want64=true
4985
    fi
4986
  fi
4987
  if test x${want64} = xtrue; then
4988
    TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
4989
  else
4990
    TARGET_OBS='$(ALL_TARGET_OBS)'
4991
  fi
4992
fi
4993
 
4994
 
4995
 
4996
# For other settings, only the main target counts.
4997
gdb_sim=
4998
gdb_osabi=
4999
build_gdbserver=
5000
targ=$target; . ${srcdir}/configure.tgt
5001
 
5002
# Fetch the default architecture and default target vector from BFD.
5003
targ=$target; . $srcdir/../bfd/config.bfd
5004
 
5005
# We only want the first architecture, so strip off the others if
5006
# there is more than one.
5007
targ_archs=`echo $targ_archs | sed 's/ .*//'`
5008
 
5009
if test "x$targ_archs" != x; then
5010
 
5011
cat >>confdefs.h <<_ACEOF
5012
#define DEFAULT_BFD_ARCH $targ_archs
5013
_ACEOF
5014
 
5015
fi
5016
if test "x$targ_defvec" != x; then
5017
 
5018
cat >>confdefs.h <<_ACEOF
5019
#define DEFAULT_BFD_VEC $targ_defvec
5020
_ACEOF
5021
 
5022
fi
5023
 
5024
test "$program_prefix" != NONE &&
5025 213 jeremybenn
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5026 131 jeremybenn
# Use a double $ so make ignores it.
5027
test "$program_suffix" != NONE &&
5028 213 jeremybenn
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5029
# Double any \ or $.
5030 131 jeremybenn
# By default was `s,x,x', remove it if useless.
5031 213 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5032
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5033 131 jeremybenn
 
5034
 
5035
# The CLI cannot be disabled yet, but may be in the future.
5036
 
5037
# Enable CLI.
5038 213 jeremybenn
# Check whether --enable-gdbcli was given.
5039 131 jeremybenn
if test "${enable_gdbcli+set}" = set; then
5040 213 jeremybenn
  enableval=$enable_gdbcli; case $enableval in
5041 131 jeremybenn
    yes)
5042
      ;;
5043
    no)
5044 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5045
$as_echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5046 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5047
    *)
5048 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5049
$as_echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5050 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5051
  esac
5052
else
5053
  enable_gdbcli=yes
5054 213 jeremybenn
fi
5055
 
5056 131 jeremybenn
if test x"$enable_gdbcli" = xyes; then
5057
  if test -d $srcdir/cli; then
5058
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5059
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5060
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5061
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5062
  fi
5063
fi
5064
 
5065
# Enable MI.
5066 213 jeremybenn
# Check whether --enable-gdbmi was given.
5067 131 jeremybenn
if test "${enable_gdbmi+set}" = set; then
5068 213 jeremybenn
  enableval=$enable_gdbmi; case $enableval in
5069 131 jeremybenn
    yes | no)
5070
      ;;
5071
    *)
5072 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5073
$as_echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5074 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5075
  esac
5076
else
5077
  enable_gdbmi=yes
5078 213 jeremybenn
fi
5079
 
5080 131 jeremybenn
if test x"$enable_gdbmi" = xyes; then
5081
  if test -d $srcdir/mi; then
5082
    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5083
    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5084
    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5085
    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5086
  fi
5087
fi
5088
 
5089
# Enable TUI.
5090 213 jeremybenn
# Check whether --enable-tui was given.
5091 131 jeremybenn
if test "${enable_tui+set}" = set; then
5092 213 jeremybenn
  enableval=$enable_tui; case $enableval in
5093 131 jeremybenn
    yes | no)
5094
      ;;
5095
    *)
5096 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
5097
$as_echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
5098 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5099
  esac
5100
else
5101
  enable_tui=yes
5102 213 jeremybenn
fi
5103 131 jeremybenn
 
5104 213 jeremybenn
 
5105 131 jeremybenn
# Enable gdbtk.
5106 213 jeremybenn
# Check whether --enable-gdbtk was given.
5107 131 jeremybenn
if test "${enable_gdbtk+set}" = set; then
5108 213 jeremybenn
  enableval=$enable_gdbtk; case $enableval in
5109 131 jeremybenn
    yes | no)
5110
      ;;
5111
    *)
5112 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
5113
$as_echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
5114 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5115
  esac
5116
else
5117
  if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
5118
    enable_gdbtk=yes
5119
  else
5120
    enable_gdbtk=no
5121
  fi
5122 213 jeremybenn
fi
5123
 
5124 131 jeremybenn
# We unconditionally disable gdbtk tests on selected platforms.
5125
case $host_os in
5126
  go32* | windows*)
5127 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
5128
$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5129 131 jeremybenn
    enable_gdbtk=no ;;
5130
esac
5131
 
5132
# Libunwind support.
5133
 
5134 213 jeremybenn
# Check whether --with-libunwind was given.
5135 131 jeremybenn
if test "${with_libunwind+set}" = set; then
5136 213 jeremybenn
  withval=$with_libunwind; case "${withval}" in
5137 131 jeremybenn
  yes)  enable_libunwind=yes ;;
5138
  no)   enable_libunwind=no ;;
5139 213 jeremybenn
  *)    { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
5140
$as_echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
5141 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5142
esac
5143
else
5144
 
5145
 
5146
for ac_header in libunwind.h
5147
do
5148 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5150
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5151
$as_echo_n "checking for $ac_header... " >&6; }
5152
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153
  $as_echo_n "(cached) " >&6
5154 131 jeremybenn
fi
5155 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5156
                 $as_echo "$as_val"'`
5157
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158
$as_echo "$ac_res" >&6; }
5159 131 jeremybenn
else
5160
  # Is the header compilable?
5161 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5162
$as_echo_n "checking $ac_header usability... " >&6; }
5163 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5164
/* confdefs.h.  */
5165
_ACEOF
5166
cat confdefs.h >>conftest.$ac_ext
5167
cat >>conftest.$ac_ext <<_ACEOF
5168
/* end confdefs.h.  */
5169
$ac_includes_default
5170
#include <$ac_header>
5171
_ACEOF
5172
rm -f conftest.$ac_objext
5173 213 jeremybenn
if { (ac_try="$ac_compile"
5174
case "(($ac_try" in
5175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176
  *) ac_try_echo=$ac_try;;
5177
esac
5178
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179
$as_echo "$ac_try_echo") >&5
5180
  (eval "$ac_compile") 2>conftest.er1
5181 131 jeremybenn
  ac_status=$?
5182
  grep -v '^ *+' conftest.er1 >conftest.err
5183
  rm -f conftest.er1
5184
  cat conftest.err >&5
5185 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186
  (exit $ac_status); } && {
5187
         test -z "$ac_c_werror_flag" ||
5188
         test ! -s conftest.err
5189
       } && test -s conftest.$ac_objext; then
5190 131 jeremybenn
  ac_header_compiler=yes
5191
else
5192 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5193 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5194
 
5195 213 jeremybenn
        ac_header_compiler=no
5196 131 jeremybenn
fi
5197
 
5198 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5200
$as_echo "$ac_header_compiler" >&6; }
5201
 
5202 131 jeremybenn
# Is the header present?
5203 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5204
$as_echo_n "checking $ac_header presence... " >&6; }
5205 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5206
/* confdefs.h.  */
5207
_ACEOF
5208
cat confdefs.h >>conftest.$ac_ext
5209
cat >>conftest.$ac_ext <<_ACEOF
5210
/* end confdefs.h.  */
5211
#include <$ac_header>
5212
_ACEOF
5213 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
5214
case "(($ac_try" in
5215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216
  *) ac_try_echo=$ac_try;;
5217
esac
5218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5219
$as_echo "$ac_try_echo") >&5
5220
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5221 131 jeremybenn
  ac_status=$?
5222
  grep -v '^ *+' conftest.er1 >conftest.err
5223
  rm -f conftest.er1
5224
  cat conftest.err >&5
5225 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226
  (exit $ac_status); } >/dev/null && {
5227
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5228
         test ! -s conftest.err
5229
       }; then
5230 131 jeremybenn
  ac_header_preproc=yes
5231
else
5232 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5233 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5234
 
5235
  ac_header_preproc=no
5236
fi
5237 213 jeremybenn
 
5238 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
5239 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5240
$as_echo "$ac_header_preproc" >&6; }
5241 131 jeremybenn
 
5242
# So?  What about this header?
5243
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5244
  yes:no: )
5245 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5246
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5247
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5248
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5249 131 jeremybenn
    ac_header_preproc=yes
5250
    ;;
5251
  no:yes:* )
5252 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5253
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5254
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5255
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5256
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5257
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5258
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5259
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5260
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5261
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5262
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5263
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5264
 
5265 131 jeremybenn
    ;;
5266
esac
5267 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5268
$as_echo_n "checking for $ac_header... " >&6; }
5269
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5270
  $as_echo_n "(cached) " >&6
5271 131 jeremybenn
else
5272
  eval "$as_ac_Header=\$ac_header_preproc"
5273
fi
5274 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5275
                 $as_echo "$as_val"'`
5276
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5277
$as_echo "$ac_res" >&6; }
5278 131 jeremybenn
 
5279
fi
5280 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
5281
                 $as_echo "$as_val"'`
5282
   if test "x$as_val" = x""yes; then
5283 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5284 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285 131 jeremybenn
_ACEOF
5286
 
5287
fi
5288
 
5289
done
5290
 
5291
 
5292
for ac_header in libunwind-ia64.h
5293
do
5294 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5296
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297
$as_echo_n "checking for $ac_header... " >&6; }
5298
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299
  $as_echo_n "(cached) " >&6
5300 131 jeremybenn
fi
5301 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5302
                 $as_echo "$as_val"'`
5303
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5304
$as_echo "$ac_res" >&6; }
5305 131 jeremybenn
else
5306
  # Is the header compilable?
5307 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308
$as_echo_n "checking $ac_header usability... " >&6; }
5309 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5310
/* confdefs.h.  */
5311
_ACEOF
5312
cat confdefs.h >>conftest.$ac_ext
5313
cat >>conftest.$ac_ext <<_ACEOF
5314
/* end confdefs.h.  */
5315
$ac_includes_default
5316
#include <$ac_header>
5317
_ACEOF
5318
rm -f conftest.$ac_objext
5319 213 jeremybenn
if { (ac_try="$ac_compile"
5320
case "(($ac_try" in
5321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322
  *) ac_try_echo=$ac_try;;
5323
esac
5324
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5325
$as_echo "$ac_try_echo") >&5
5326
  (eval "$ac_compile") 2>conftest.er1
5327 131 jeremybenn
  ac_status=$?
5328
  grep -v '^ *+' conftest.er1 >conftest.err
5329
  rm -f conftest.er1
5330
  cat conftest.err >&5
5331 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332
  (exit $ac_status); } && {
5333
         test -z "$ac_c_werror_flag" ||
5334
         test ! -s conftest.err
5335
       } && test -s conftest.$ac_objext; then
5336 131 jeremybenn
  ac_header_compiler=yes
5337
else
5338 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5339 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5340
 
5341 213 jeremybenn
        ac_header_compiler=no
5342 131 jeremybenn
fi
5343
 
5344 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5346
$as_echo "$ac_header_compiler" >&6; }
5347
 
5348 131 jeremybenn
# Is the header present?
5349 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5350
$as_echo_n "checking $ac_header presence... " >&6; }
5351 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5352
/* confdefs.h.  */
5353
_ACEOF
5354
cat confdefs.h >>conftest.$ac_ext
5355
cat >>conftest.$ac_ext <<_ACEOF
5356
/* end confdefs.h.  */
5357
#include <$ac_header>
5358
_ACEOF
5359 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
5360
case "(($ac_try" in
5361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362
  *) ac_try_echo=$ac_try;;
5363
esac
5364
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365
$as_echo "$ac_try_echo") >&5
5366
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5367 131 jeremybenn
  ac_status=$?
5368
  grep -v '^ *+' conftest.er1 >conftest.err
5369
  rm -f conftest.er1
5370
  cat conftest.err >&5
5371 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
  (exit $ac_status); } >/dev/null && {
5373
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5374
         test ! -s conftest.err
5375
       }; then
5376 131 jeremybenn
  ac_header_preproc=yes
5377
else
5378 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5379 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5380
 
5381
  ac_header_preproc=no
5382
fi
5383 213 jeremybenn
 
5384 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
5385 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5386
$as_echo "$ac_header_preproc" >&6; }
5387 131 jeremybenn
 
5388
# So?  What about this header?
5389
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5390
  yes:no: )
5391 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5392
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5393
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5394
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5395 131 jeremybenn
    ac_header_preproc=yes
5396
    ;;
5397
  no:yes:* )
5398 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5401
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5402
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5403
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5404
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5405
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5406
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5407
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5408
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5409
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5410
 
5411 131 jeremybenn
    ;;
5412
esac
5413 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5414
$as_echo_n "checking for $ac_header... " >&6; }
5415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416
  $as_echo_n "(cached) " >&6
5417 131 jeremybenn
else
5418
  eval "$as_ac_Header=\$ac_header_preproc"
5419
fi
5420 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5421
                 $as_echo "$as_val"'`
5422
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5423
$as_echo "$ac_res" >&6; }
5424 131 jeremybenn
 
5425
fi
5426 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
5427
                 $as_echo "$as_val"'`
5428
   if test "x$as_val" = x""yes; then
5429 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5430 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 131 jeremybenn
_ACEOF
5432
 
5433
fi
5434
 
5435
done
5436
 
5437
  if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
5438
    enable_libunwind=yes;
5439
  fi
5440
 
5441 213 jeremybenn
fi
5442 131 jeremybenn
 
5443 213 jeremybenn
 
5444 131 jeremybenn
if test x"$enable_libunwind" = xyes; then
5445
 
5446
for ac_header in libunwind.h
5447
do
5448 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5449
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5451
$as_echo_n "checking for $ac_header... " >&6; }
5452
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453
  $as_echo_n "(cached) " >&6
5454 131 jeremybenn
fi
5455 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5456
                 $as_echo "$as_val"'`
5457
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5458
$as_echo "$ac_res" >&6; }
5459 131 jeremybenn
else
5460
  # Is the header compilable?
5461 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462
$as_echo_n "checking $ac_header usability... " >&6; }
5463 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5464
/* confdefs.h.  */
5465
_ACEOF
5466
cat confdefs.h >>conftest.$ac_ext
5467
cat >>conftest.$ac_ext <<_ACEOF
5468
/* end confdefs.h.  */
5469
$ac_includes_default
5470
#include <$ac_header>
5471
_ACEOF
5472
rm -f conftest.$ac_objext
5473 213 jeremybenn
if { (ac_try="$ac_compile"
5474
case "(($ac_try" in
5475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476
  *) ac_try_echo=$ac_try;;
5477
esac
5478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5479
$as_echo "$ac_try_echo") >&5
5480
  (eval "$ac_compile") 2>conftest.er1
5481 131 jeremybenn
  ac_status=$?
5482
  grep -v '^ *+' conftest.er1 >conftest.err
5483
  rm -f conftest.er1
5484
  cat conftest.err >&5
5485 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486
  (exit $ac_status); } && {
5487
         test -z "$ac_c_werror_flag" ||
5488
         test ! -s conftest.err
5489
       } && test -s conftest.$ac_objext; then
5490 131 jeremybenn
  ac_header_compiler=yes
5491
else
5492 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5493 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5494
 
5495 213 jeremybenn
        ac_header_compiler=no
5496 131 jeremybenn
fi
5497
 
5498 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500
$as_echo "$ac_header_compiler" >&6; }
5501
 
5502 131 jeremybenn
# Is the header present?
5503 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5504
$as_echo_n "checking $ac_header presence... " >&6; }
5505 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5506
/* confdefs.h.  */
5507
_ACEOF
5508
cat confdefs.h >>conftest.$ac_ext
5509
cat >>conftest.$ac_ext <<_ACEOF
5510
/* end confdefs.h.  */
5511
#include <$ac_header>
5512
_ACEOF
5513 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
5514
case "(($ac_try" in
5515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516
  *) ac_try_echo=$ac_try;;
5517
esac
5518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519
$as_echo "$ac_try_echo") >&5
5520
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521 131 jeremybenn
  ac_status=$?
5522
  grep -v '^ *+' conftest.er1 >conftest.err
5523
  rm -f conftest.er1
5524
  cat conftest.err >&5
5525 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526
  (exit $ac_status); } >/dev/null && {
5527
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528
         test ! -s conftest.err
5529
       }; then
5530 131 jeremybenn
  ac_header_preproc=yes
5531
else
5532 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5533 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5534
 
5535
  ac_header_preproc=no
5536
fi
5537 213 jeremybenn
 
5538 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
5539 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540
$as_echo "$ac_header_preproc" >&6; }
5541 131 jeremybenn
 
5542
# So?  What about this header?
5543
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5544
  yes:no: )
5545 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5546
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5548
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5549 131 jeremybenn
    ac_header_preproc=yes
5550
    ;;
5551
  no:yes:* )
5552 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5553
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5554
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5555
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5556
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5557
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5558
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5559
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5560
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5563
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5564
 
5565 131 jeremybenn
    ;;
5566
esac
5567 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5568
$as_echo_n "checking for $ac_header... " >&6; }
5569
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570
  $as_echo_n "(cached) " >&6
5571 131 jeremybenn
else
5572
  eval "$as_ac_Header=\$ac_header_preproc"
5573
fi
5574 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5575
                 $as_echo "$as_val"'`
5576
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5577
$as_echo "$ac_res" >&6; }
5578 131 jeremybenn
 
5579
fi
5580 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
5581
                 $as_echo "$as_val"'`
5582
   if test "x$as_val" = x""yes; then
5583 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5584 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5585 131 jeremybenn
_ACEOF
5586
 
5587
fi
5588
 
5589
done
5590
 
5591
 
5592
for ac_header in libunwind-ia64.h
5593
do
5594 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5596
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5597
$as_echo_n "checking for $ac_header... " >&6; }
5598
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5599
  $as_echo_n "(cached) " >&6
5600 131 jeremybenn
fi
5601 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5602
                 $as_echo "$as_val"'`
5603
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5604
$as_echo "$ac_res" >&6; }
5605 131 jeremybenn
else
5606
  # Is the header compilable?
5607 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608
$as_echo_n "checking $ac_header usability... " >&6; }
5609 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5610
/* confdefs.h.  */
5611
_ACEOF
5612
cat confdefs.h >>conftest.$ac_ext
5613
cat >>conftest.$ac_ext <<_ACEOF
5614
/* end confdefs.h.  */
5615
$ac_includes_default
5616
#include <$ac_header>
5617
_ACEOF
5618
rm -f conftest.$ac_objext
5619 213 jeremybenn
if { (ac_try="$ac_compile"
5620
case "(($ac_try" in
5621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622
  *) ac_try_echo=$ac_try;;
5623
esac
5624
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5625
$as_echo "$ac_try_echo") >&5
5626
  (eval "$ac_compile") 2>conftest.er1
5627 131 jeremybenn
  ac_status=$?
5628
  grep -v '^ *+' conftest.er1 >conftest.err
5629
  rm -f conftest.er1
5630
  cat conftest.err >&5
5631 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632
  (exit $ac_status); } && {
5633
         test -z "$ac_c_werror_flag" ||
5634
         test ! -s conftest.err
5635
       } && test -s conftest.$ac_objext; then
5636 131 jeremybenn
  ac_header_compiler=yes
5637
else
5638 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5639 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5640
 
5641 213 jeremybenn
        ac_header_compiler=no
5642 131 jeremybenn
fi
5643
 
5644 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646
$as_echo "$ac_header_compiler" >&6; }
5647
 
5648 131 jeremybenn
# Is the header present?
5649 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650
$as_echo_n "checking $ac_header presence... " >&6; }
5651 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
5652
/* confdefs.h.  */
5653
_ACEOF
5654
cat confdefs.h >>conftest.$ac_ext
5655
cat >>conftest.$ac_ext <<_ACEOF
5656
/* end confdefs.h.  */
5657
#include <$ac_header>
5658
_ACEOF
5659 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
5660
case "(($ac_try" in
5661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662
  *) ac_try_echo=$ac_try;;
5663
esac
5664
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5665
$as_echo "$ac_try_echo") >&5
5666
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5667 131 jeremybenn
  ac_status=$?
5668
  grep -v '^ *+' conftest.er1 >conftest.err
5669
  rm -f conftest.er1
5670
  cat conftest.err >&5
5671 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672
  (exit $ac_status); } >/dev/null && {
5673
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5674
         test ! -s conftest.err
5675
       }; then
5676 131 jeremybenn
  ac_header_preproc=yes
5677
else
5678 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5679 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5680
 
5681
  ac_header_preproc=no
5682
fi
5683 213 jeremybenn
 
5684 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
5685 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5686
$as_echo "$ac_header_preproc" >&6; }
5687 131 jeremybenn
 
5688
# So?  What about this header?
5689
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5690
  yes:no: )
5691 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5692
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5693
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5694
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5695 131 jeremybenn
    ac_header_preproc=yes
5696
    ;;
5697
  no:yes:* )
5698 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5699
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5700
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5701
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5702
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5703
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5704
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5705
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5706
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5707
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5708
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5709
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5710
 
5711 131 jeremybenn
    ;;
5712
esac
5713 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5714
$as_echo_n "checking for $ac_header... " >&6; }
5715
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716
  $as_echo_n "(cached) " >&6
5717 131 jeremybenn
else
5718
  eval "$as_ac_Header=\$ac_header_preproc"
5719
fi
5720 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
5721
                 $as_echo "$as_val"'`
5722
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5723
$as_echo "$ac_res" >&6; }
5724 131 jeremybenn
 
5725
fi
5726 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
5727
                 $as_echo "$as_val"'`
5728
   if test "x$as_val" = x""yes; then
5729 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5730 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731 131 jeremybenn
_ACEOF
5732
 
5733
fi
5734
 
5735
done
5736
 
5737
 
5738
cat >>confdefs.h <<\_ACEOF
5739
#define HAVE_LIBUNWIND 1
5740
_ACEOF
5741
 
5742
  CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
5743
  CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
5744
  CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
5745
fi
5746
 
5747
# Profiling support.
5748 213 jeremybenn
# Check whether --enable-profiling was given.
5749 131 jeremybenn
if test "${enable_profiling+set}" = set; then
5750 213 jeremybenn
  enableval=$enable_profiling; case $enableval in
5751 131 jeremybenn
    yes | no)
5752
      ;;
5753
    *)
5754 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
5755
$as_echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
5756 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
5757
  esac
5758
else
5759
  enable_profiling=no
5760 213 jeremybenn
fi
5761 131 jeremybenn
 
5762
 
5763
 
5764 213 jeremybenn
 
5765 131 jeremybenn
for ac_func in monstartup _mcleanup
5766
do
5767 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5768
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5769
$as_echo_n "checking for $ac_func... " >&6; }
5770
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5771
  $as_echo_n "(cached) " >&6
5772 131 jeremybenn
else
5773
  cat >conftest.$ac_ext <<_ACEOF
5774
/* confdefs.h.  */
5775
_ACEOF
5776
cat confdefs.h >>conftest.$ac_ext
5777
cat >>conftest.$ac_ext <<_ACEOF
5778
/* end confdefs.h.  */
5779
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
5780
   For example, HP-UX 11i  declares gettimeofday.  */
5781
#define $ac_func innocuous_$ac_func
5782
 
5783
/* System header to define __stub macros and hopefully few prototypes,
5784
    which can conflict with char $ac_func (); below.
5785
    Prefer  to  if __STDC__ is defined, since
5786
     exists even on freestanding compilers.  */
5787
 
5788
#ifdef __STDC__
5789
# include 
5790
#else
5791
# include 
5792
#endif
5793
 
5794
#undef $ac_func
5795
 
5796 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
5797
   Use char because int might match the return type of a GCC
5798
   builtin and then its argument prototype would still apply.  */
5799 131 jeremybenn
#ifdef __cplusplus
5800
extern "C"
5801
#endif
5802
char $ac_func ();
5803
/* The GNU C library defines this for functions which it implements
5804
    to always fail with ENOSYS.  Some functions are actually named
5805
    something starting with __ and the normal name is an alias.  */
5806 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
5807 131 jeremybenn
choke me
5808
#endif
5809
 
5810
int
5811
main ()
5812
{
5813 213 jeremybenn
return $ac_func ();
5814 131 jeremybenn
  ;
5815
  return 0;
5816
}
5817
_ACEOF
5818
rm -f conftest.$ac_objext conftest$ac_exeext
5819 213 jeremybenn
if { (ac_try="$ac_link"
5820
case "(($ac_try" in
5821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822
  *) ac_try_echo=$ac_try;;
5823
esac
5824
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825
$as_echo "$ac_try_echo") >&5
5826
  (eval "$ac_link") 2>conftest.er1
5827 131 jeremybenn
  ac_status=$?
5828
  grep -v '^ *+' conftest.er1 >conftest.err
5829
  rm -f conftest.er1
5830
  cat conftest.err >&5
5831 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832
  (exit $ac_status); } && {
5833
         test -z "$ac_c_werror_flag" ||
5834
         test ! -s conftest.err
5835
       } && test -s conftest$ac_exeext && {
5836
         test "$cross_compiling" = yes ||
5837
         $as_test_x conftest$ac_exeext
5838
       }; then
5839 131 jeremybenn
  eval "$as_ac_var=yes"
5840
else
5841 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5842 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5843
 
5844 213 jeremybenn
        eval "$as_ac_var=no"
5845 131 jeremybenn
fi
5846 213 jeremybenn
 
5847
rm -rf conftest.dSYM
5848
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5849 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5850
fi
5851 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
5852
                 $as_echo "$as_val"'`
5853
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5854
$as_echo "$ac_res" >&6; }
5855
as_val=`eval 'as_val=${'$as_ac_var'}
5856
                 $as_echo "$as_val"'`
5857
   if test "x$as_val" = x""yes; then
5858 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
5859 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5860 131 jeremybenn
_ACEOF
5861
 
5862
fi
5863
done
5864
 
5865 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for _etext" >&5
5866
$as_echo_n "checking for _etext... " >&6; }
5867 131 jeremybenn
if test "${ac_cv_var__etext+set}" = set; then
5868 213 jeremybenn
  $as_echo_n "(cached) " >&6
5869 131 jeremybenn
else
5870
  cat >conftest.$ac_ext <<_ACEOF
5871
/* confdefs.h.  */
5872
_ACEOF
5873
cat confdefs.h >>conftest.$ac_ext
5874
cat >>conftest.$ac_ext <<_ACEOF
5875
/* end confdefs.h.  */
5876
#include 
5877
extern char _etext;
5878
 
5879
int
5880
main ()
5881
{
5882
free (&_etext);
5883
  ;
5884
  return 0;
5885
}
5886
_ACEOF
5887
rm -f conftest.$ac_objext conftest$ac_exeext
5888 213 jeremybenn
if { (ac_try="$ac_link"
5889
case "(($ac_try" in
5890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891
  *) ac_try_echo=$ac_try;;
5892
esac
5893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894
$as_echo "$ac_try_echo") >&5
5895
  (eval "$ac_link") 2>conftest.er1
5896 131 jeremybenn
  ac_status=$?
5897
  grep -v '^ *+' conftest.er1 >conftest.err
5898
  rm -f conftest.er1
5899
  cat conftest.err >&5
5900 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901
  (exit $ac_status); } && {
5902
         test -z "$ac_c_werror_flag" ||
5903
         test ! -s conftest.err
5904
       } && test -s conftest$ac_exeext && {
5905
         test "$cross_compiling" = yes ||
5906
         $as_test_x conftest$ac_exeext
5907
       }; then
5908 131 jeremybenn
  ac_cv_var__etext=yes
5909
else
5910 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5911 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5912
 
5913 213 jeremybenn
        ac_cv_var__etext=no
5914 131 jeremybenn
fi
5915 213 jeremybenn
 
5916
rm -rf conftest.dSYM
5917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5918 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5919
fi
5920 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
5921
$as_echo "$ac_cv_var__etext" >&6; }
5922 131 jeremybenn
if test $ac_cv_var__etext = yes; then
5923
 
5924
cat >>confdefs.h <<\_ACEOF
5925
#define HAVE__ETEXT 1
5926
_ACEOF
5927
 
5928
fi
5929 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for etext" >&5
5930
$as_echo_n "checking for etext... " >&6; }
5931 131 jeremybenn
if test "${ac_cv_var_etext+set}" = set; then
5932 213 jeremybenn
  $as_echo_n "(cached) " >&6
5933 131 jeremybenn
else
5934
  cat >conftest.$ac_ext <<_ACEOF
5935
/* confdefs.h.  */
5936
_ACEOF
5937
cat confdefs.h >>conftest.$ac_ext
5938
cat >>conftest.$ac_ext <<_ACEOF
5939
/* end confdefs.h.  */
5940
#include 
5941
extern char etext;
5942
 
5943
int
5944
main ()
5945
{
5946
free (&etext);
5947
  ;
5948
  return 0;
5949
}
5950
_ACEOF
5951
rm -f conftest.$ac_objext conftest$ac_exeext
5952 213 jeremybenn
if { (ac_try="$ac_link"
5953
case "(($ac_try" in
5954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955
  *) ac_try_echo=$ac_try;;
5956
esac
5957
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958
$as_echo "$ac_try_echo") >&5
5959
  (eval "$ac_link") 2>conftest.er1
5960 131 jeremybenn
  ac_status=$?
5961
  grep -v '^ *+' conftest.er1 >conftest.err
5962
  rm -f conftest.er1
5963
  cat conftest.err >&5
5964 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965
  (exit $ac_status); } && {
5966
         test -z "$ac_c_werror_flag" ||
5967
         test ! -s conftest.err
5968
       } && test -s conftest$ac_exeext && {
5969
         test "$cross_compiling" = yes ||
5970
         $as_test_x conftest$ac_exeext
5971
       }; then
5972 131 jeremybenn
  ac_cv_var_etext=yes
5973
else
5974 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5975 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5976
 
5977 213 jeremybenn
        ac_cv_var_etext=no
5978 131 jeremybenn
fi
5979 213 jeremybenn
 
5980
rm -rf conftest.dSYM
5981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
5983
fi
5984 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
5985
$as_echo "$ac_cv_var_etext" >&6; }
5986 131 jeremybenn
if test $ac_cv_var_etext = yes; then
5987
 
5988
cat >>confdefs.h <<\_ACEOF
5989
#define HAVE_ETEXT 1
5990
_ACEOF
5991
 
5992
fi
5993
if test "$enable_profiling" = yes ; then
5994
  if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5995 213 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
5996
$as_echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
5997 131 jeremybenn
   { (exit 1); exit 1; }; }
5998
  fi
5999
  PROFILE_CFLAGS=-pg
6000
  OLD_CFLAGS="$CFLAGS"
6001
  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6002
 
6003 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6004
$as_echo_n "checking whether $CC supports -pg... " >&6; }
6005 131 jeremybenn
if test "${ac_cv_cc_supports_pg+set}" = set; then
6006 213 jeremybenn
  $as_echo_n "(cached) " >&6
6007 131 jeremybenn
else
6008
  cat >conftest.$ac_ext <<_ACEOF
6009
/* confdefs.h.  */
6010
_ACEOF
6011
cat confdefs.h >>conftest.$ac_ext
6012
cat >>conftest.$ac_ext <<_ACEOF
6013
/* end confdefs.h.  */
6014
 
6015
int
6016
main ()
6017
{
6018
int x;
6019
  ;
6020
  return 0;
6021
}
6022
_ACEOF
6023
rm -f conftest.$ac_objext
6024 213 jeremybenn
if { (ac_try="$ac_compile"
6025
case "(($ac_try" in
6026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027
  *) ac_try_echo=$ac_try;;
6028
esac
6029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6030
$as_echo "$ac_try_echo") >&5
6031
  (eval "$ac_compile") 2>conftest.er1
6032 131 jeremybenn
  ac_status=$?
6033
  grep -v '^ *+' conftest.er1 >conftest.err
6034
  rm -f conftest.er1
6035
  cat conftest.err >&5
6036 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037
  (exit $ac_status); } && {
6038
         test -z "$ac_c_werror_flag" ||
6039
         test ! -s conftest.err
6040
       } && test -s conftest.$ac_objext; then
6041 131 jeremybenn
  ac_cv_cc_supports_pg=yes
6042
else
6043 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6044 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6045
 
6046 213 jeremybenn
        ac_cv_cc_supports_pg=no
6047 131 jeremybenn
fi
6048 213 jeremybenn
 
6049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 131 jeremybenn
fi
6051 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6052
$as_echo "$ac_cv_cc_supports_pg" >&6; }
6053 131 jeremybenn
 
6054
  if test $ac_cv_cc_supports_pg = no; then
6055 213 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6056
$as_echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6057 131 jeremybenn
   { (exit 1); exit 1; }; }
6058
  fi
6059
 
6060
  CFLAGS="$OLD_CFLAGS"
6061
fi
6062
 
6063
# --------------------- #
6064
# Checks for programs.  #
6065
# --------------------- #
6066
 
6067
for ac_prog in gawk mawk nawk awk
6068
do
6069
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6070
set dummy $ac_prog; ac_word=$2
6071 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6072
$as_echo_n "checking for $ac_word... " >&6; }
6073 131 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
6074 213 jeremybenn
  $as_echo_n "(cached) " >&6
6075 131 jeremybenn
else
6076
  if test -n "$AWK"; then
6077
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6078
else
6079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080
for as_dir in $PATH
6081
do
6082
  IFS=$as_save_IFS
6083
  test -z "$as_dir" && as_dir=.
6084
  for ac_exec_ext in '' $ac_executable_extensions; do
6085 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 131 jeremybenn
    ac_cv_prog_AWK="$ac_prog"
6087 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 131 jeremybenn
    break 2
6089
  fi
6090
done
6091
done
6092 213 jeremybenn
IFS=$as_save_IFS
6093 131 jeremybenn
 
6094
fi
6095
fi
6096
AWK=$ac_cv_prog_AWK
6097
if test -n "$AWK"; then
6098 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6099
$as_echo "$AWK" >&6; }
6100 131 jeremybenn
else
6101 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6102
$as_echo "no" >&6; }
6103 131 jeremybenn
fi
6104
 
6105 213 jeremybenn
 
6106 131 jeremybenn
  test -n "$AWK" && break
6107
done
6108
 
6109
# Find a good install program.  We prefer a C program (faster),
6110
# so one script is as good as another.  But avoid the broken or
6111
# incompatible versions:
6112
# SysV /etc/install, /usr/sbin/install
6113
# SunOS /usr/etc/install
6114
# IRIX /sbin/install
6115
# AIX /bin/install
6116
# AmigaOS /C/install, which installs bootblocks on floppy discs
6117
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6118
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6119
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6120
# OS/2's system install, which has a completely different semantic
6121
# ./install, which can be erroneously created by make from ./install.sh.
6122 213 jeremybenn
# Reject install programs that cannot install multiple files.
6123
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6124
$as_echo_n "checking for a BSD-compatible install... " >&6; }
6125 131 jeremybenn
if test -z "$INSTALL"; then
6126
if test "${ac_cv_path_install+set}" = set; then
6127 213 jeremybenn
  $as_echo_n "(cached) " >&6
6128 131 jeremybenn
else
6129
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130
for as_dir in $PATH
6131
do
6132
  IFS=$as_save_IFS
6133
  test -z "$as_dir" && as_dir=.
6134
  # Account for people who put trailing slashes in PATH elements.
6135
case $as_dir/ in
6136
  ./ | .// | /cC/* | \
6137
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6138
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6139
  /usr/ucb/* ) ;;
6140
  *)
6141
    # OSF1 and SCO ODT 3.0 have their own names for install.
6142
    # Don't use installbsd from OSF since it installs stuff as root
6143
    # by default.
6144
    for ac_prog in ginstall scoinst install; do
6145
      for ac_exec_ext in '' $ac_executable_extensions; do
6146 213 jeremybenn
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6147 131 jeremybenn
          if test $ac_prog = install &&
6148
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6149
            # AIX install.  It has an incompatible calling convention.
6150
            :
6151
          elif test $ac_prog = install &&
6152
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6153
            # program-specific install script used by HP pwplus--don't use.
6154
            :
6155
          else
6156 213 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
6157
            echo one > conftest.one
6158
            echo two > conftest.two
6159
            mkdir conftest.dir
6160
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6161
              test -s conftest.one && test -s conftest.two &&
6162
              test -s conftest.dir/conftest.one &&
6163
              test -s conftest.dir/conftest.two
6164
            then
6165
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6166
              break 3
6167
            fi
6168 131 jeremybenn
          fi
6169
        fi
6170
      done
6171
    done
6172
    ;;
6173
esac
6174 213 jeremybenn
 
6175 131 jeremybenn
done
6176 213 jeremybenn
IFS=$as_save_IFS
6177 131 jeremybenn
 
6178 213 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
6179 131 jeremybenn
 
6180
fi
6181
  if test "${ac_cv_path_install+set}" = set; then
6182
    INSTALL=$ac_cv_path_install
6183
  else
6184 213 jeremybenn
    # As a last resort, use the slow shell script.  Don't cache a
6185
    # value for INSTALL within a source directory, because that will
6186 131 jeremybenn
    # break other packages using the cache if that directory is
6187 213 jeremybenn
    # removed, or if the value is a relative name.
6188 131 jeremybenn
    INSTALL=$ac_install_sh
6189
  fi
6190
fi
6191 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6192
$as_echo "$INSTALL" >&6; }
6193 131 jeremybenn
 
6194
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6195
# It thinks the first close brace ends the variable substitution.
6196
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6197
 
6198
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6199
 
6200
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6201
 
6202 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6203
$as_echo_n "checking whether ln -s works... " >&6; }
6204 131 jeremybenn
LN_S=$as_ln_s
6205
if test "$LN_S" = "ln -s"; then
6206 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
6207
$as_echo "yes" >&6; }
6208 131 jeremybenn
else
6209 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6210
$as_echo "no, using $LN_S" >&6; }
6211 131 jeremybenn
fi
6212
 
6213
if test -n "$ac_tool_prefix"; then
6214
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6217
$as_echo_n "checking for $ac_word... " >&6; }
6218 131 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
6219 213 jeremybenn
  $as_echo_n "(cached) " >&6
6220 131 jeremybenn
else
6221
  if test -n "$RANLIB"; then
6222
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6223
else
6224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225
for as_dir in $PATH
6226
do
6227
  IFS=$as_save_IFS
6228
  test -z "$as_dir" && as_dir=.
6229
  for ac_exec_ext in '' $ac_executable_extensions; do
6230 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 131 jeremybenn
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 131 jeremybenn
    break 2
6234
  fi
6235
done
6236
done
6237 213 jeremybenn
IFS=$as_save_IFS
6238 131 jeremybenn
 
6239
fi
6240
fi
6241
RANLIB=$ac_cv_prog_RANLIB
6242
if test -n "$RANLIB"; then
6243 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6244
$as_echo "$RANLIB" >&6; }
6245 131 jeremybenn
else
6246 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6247
$as_echo "no" >&6; }
6248 131 jeremybenn
fi
6249
 
6250 213 jeremybenn
 
6251 131 jeremybenn
fi
6252
if test -z "$ac_cv_prog_RANLIB"; then
6253
  ac_ct_RANLIB=$RANLIB
6254
  # Extract the first word of "ranlib", so it can be a program name with args.
6255
set dummy ranlib; ac_word=$2
6256 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6257
$as_echo_n "checking for $ac_word... " >&6; }
6258 131 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6259 213 jeremybenn
  $as_echo_n "(cached) " >&6
6260 131 jeremybenn
else
6261
  if test -n "$ac_ct_RANLIB"; then
6262
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6263
else
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265
for as_dir in $PATH
6266
do
6267
  IFS=$as_save_IFS
6268
  test -z "$as_dir" && as_dir=.
6269
  for ac_exec_ext in '' $ac_executable_extensions; do
6270 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 131 jeremybenn
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6272 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 131 jeremybenn
    break 2
6274
  fi
6275
done
6276
done
6277 213 jeremybenn
IFS=$as_save_IFS
6278 131 jeremybenn
 
6279
fi
6280
fi
6281
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6282
if test -n "$ac_ct_RANLIB"; then
6283 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6284
$as_echo "$ac_ct_RANLIB" >&6; }
6285 131 jeremybenn
else
6286 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6287
$as_echo "no" >&6; }
6288 131 jeremybenn
fi
6289
 
6290 213 jeremybenn
  if test "x$ac_ct_RANLIB" = x; then
6291
    RANLIB=":"
6292
  else
6293
    case $cross_compiling:$ac_tool_warned in
6294
yes:)
6295
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6296
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297
ac_tool_warned=yes ;;
6298
esac
6299
    RANLIB=$ac_ct_RANLIB
6300
  fi
6301 131 jeremybenn
else
6302
  RANLIB="$ac_cv_prog_RANLIB"
6303
fi
6304
 
6305
for ac_prog in 'bison -y' byacc
6306
do
6307
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6308
set dummy $ac_prog; ac_word=$2
6309 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6310
$as_echo_n "checking for $ac_word... " >&6; }
6311 131 jeremybenn
if test "${ac_cv_prog_YACC+set}" = set; then
6312 213 jeremybenn
  $as_echo_n "(cached) " >&6
6313 131 jeremybenn
else
6314
  if test -n "$YACC"; then
6315
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6316
else
6317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318
for as_dir in $PATH
6319
do
6320
  IFS=$as_save_IFS
6321
  test -z "$as_dir" && as_dir=.
6322
  for ac_exec_ext in '' $ac_executable_extensions; do
6323 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 131 jeremybenn
    ac_cv_prog_YACC="$ac_prog"
6325 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 131 jeremybenn
    break 2
6327
  fi
6328
done
6329
done
6330 213 jeremybenn
IFS=$as_save_IFS
6331 131 jeremybenn
 
6332
fi
6333
fi
6334
YACC=$ac_cv_prog_YACC
6335
if test -n "$YACC"; then
6336 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6337
$as_echo "$YACC" >&6; }
6338 131 jeremybenn
else
6339 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6340
$as_echo "no" >&6; }
6341 131 jeremybenn
fi
6342
 
6343 213 jeremybenn
 
6344 131 jeremybenn
  test -n "$YACC" && break
6345
done
6346
test -n "$YACC" || YACC="yacc"
6347
 
6348
 
6349
if test -n "$ac_tool_prefix"; then
6350
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6351
set dummy ${ac_tool_prefix}ar; ac_word=$2
6352 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353
$as_echo_n "checking for $ac_word... " >&6; }
6354 131 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
6355 213 jeremybenn
  $as_echo_n "(cached) " >&6
6356 131 jeremybenn
else
6357
  if test -n "$AR"; then
6358
  ac_cv_prog_AR="$AR" # Let the user override the test.
6359
else
6360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361
for as_dir in $PATH
6362
do
6363
  IFS=$as_save_IFS
6364
  test -z "$as_dir" && as_dir=.
6365
  for ac_exec_ext in '' $ac_executable_extensions; do
6366 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 131 jeremybenn
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6368 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 131 jeremybenn
    break 2
6370
  fi
6371
done
6372
done
6373 213 jeremybenn
IFS=$as_save_IFS
6374 131 jeremybenn
 
6375
fi
6376
fi
6377
AR=$ac_cv_prog_AR
6378
if test -n "$AR"; then
6379 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6380
$as_echo "$AR" >&6; }
6381 131 jeremybenn
else
6382 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6383
$as_echo "no" >&6; }
6384 131 jeremybenn
fi
6385
 
6386 213 jeremybenn
 
6387 131 jeremybenn
fi
6388
if test -z "$ac_cv_prog_AR"; then
6389
  ac_ct_AR=$AR
6390
  # Extract the first word of "ar", so it can be a program name with args.
6391
set dummy ar; ac_word=$2
6392 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393
$as_echo_n "checking for $ac_word... " >&6; }
6394 131 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6395 213 jeremybenn
  $as_echo_n "(cached) " >&6
6396 131 jeremybenn
else
6397
  if test -n "$ac_ct_AR"; then
6398
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6399
else
6400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401
for as_dir in $PATH
6402
do
6403
  IFS=$as_save_IFS
6404
  test -z "$as_dir" && as_dir=.
6405
  for ac_exec_ext in '' $ac_executable_extensions; do
6406 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 131 jeremybenn
    ac_cv_prog_ac_ct_AR="ar"
6408 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 131 jeremybenn
    break 2
6410
  fi
6411
done
6412
done
6413 213 jeremybenn
IFS=$as_save_IFS
6414 131 jeremybenn
 
6415
fi
6416
fi
6417
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6418
if test -n "$ac_ct_AR"; then
6419 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6420
$as_echo "$ac_ct_AR" >&6; }
6421 131 jeremybenn
else
6422 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6423
$as_echo "no" >&6; }
6424 131 jeremybenn
fi
6425
 
6426 213 jeremybenn
  if test "x$ac_ct_AR" = x; then
6427
    AR=""
6428
  else
6429
    case $cross_compiling:$ac_tool_warned in
6430
yes:)
6431
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433
ac_tool_warned=yes ;;
6434
esac
6435
    AR=$ac_ct_AR
6436
  fi
6437 131 jeremybenn
else
6438
  AR="$ac_cv_prog_AR"
6439
fi
6440
 
6441
if test -n "$ac_tool_prefix"; then
6442
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6443
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6444 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445
$as_echo_n "checking for $ac_word... " >&6; }
6446 131 jeremybenn
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6447 213 jeremybenn
  $as_echo_n "(cached) " >&6
6448 131 jeremybenn
else
6449
  if test -n "$DLLTOOL"; then
6450
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6451
else
6452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453
for as_dir in $PATH
6454
do
6455
  IFS=$as_save_IFS
6456
  test -z "$as_dir" && as_dir=.
6457
  for ac_exec_ext in '' $ac_executable_extensions; do
6458 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 131 jeremybenn
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6460 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 131 jeremybenn
    break 2
6462
  fi
6463
done
6464
done
6465 213 jeremybenn
IFS=$as_save_IFS
6466 131 jeremybenn
 
6467
fi
6468
fi
6469
DLLTOOL=$ac_cv_prog_DLLTOOL
6470
if test -n "$DLLTOOL"; then
6471 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6472
$as_echo "$DLLTOOL" >&6; }
6473 131 jeremybenn
else
6474 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6475
$as_echo "no" >&6; }
6476 131 jeremybenn
fi
6477
 
6478 213 jeremybenn
 
6479 131 jeremybenn
fi
6480
if test -z "$ac_cv_prog_DLLTOOL"; then
6481
  ac_ct_DLLTOOL=$DLLTOOL
6482
  # Extract the first word of "dlltool", so it can be a program name with args.
6483
set dummy dlltool; ac_word=$2
6484 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485
$as_echo_n "checking for $ac_word... " >&6; }
6486 131 jeremybenn
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6487 213 jeremybenn
  $as_echo_n "(cached) " >&6
6488 131 jeremybenn
else
6489
  if test -n "$ac_ct_DLLTOOL"; then
6490
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6491
else
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493
for as_dir in $PATH
6494
do
6495
  IFS=$as_save_IFS
6496
  test -z "$as_dir" && as_dir=.
6497
  for ac_exec_ext in '' $ac_executable_extensions; do
6498 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 131 jeremybenn
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6500 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 131 jeremybenn
    break 2
6502
  fi
6503
done
6504
done
6505 213 jeremybenn
IFS=$as_save_IFS
6506 131 jeremybenn
 
6507
fi
6508
fi
6509
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6510
if test -n "$ac_ct_DLLTOOL"; then
6511 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6512
$as_echo "$ac_ct_DLLTOOL" >&6; }
6513 131 jeremybenn
else
6514 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6515
$as_echo "no" >&6; }
6516 131 jeremybenn
fi
6517
 
6518 213 jeremybenn
  if test "x$ac_ct_DLLTOOL" = x; then
6519
    DLLTOOL=""
6520
  else
6521
    case $cross_compiling:$ac_tool_warned in
6522
yes:)
6523
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6524
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525
ac_tool_warned=yes ;;
6526
esac
6527
    DLLTOOL=$ac_ct_DLLTOOL
6528
  fi
6529 131 jeremybenn
else
6530
  DLLTOOL="$ac_cv_prog_DLLTOOL"
6531
fi
6532
 
6533
if test -n "$ac_tool_prefix"; then
6534
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6535
set dummy ${ac_tool_prefix}windres; ac_word=$2
6536 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537
$as_echo_n "checking for $ac_word... " >&6; }
6538 131 jeremybenn
if test "${ac_cv_prog_WINDRES+set}" = set; then
6539 213 jeremybenn
  $as_echo_n "(cached) " >&6
6540 131 jeremybenn
else
6541
  if test -n "$WINDRES"; then
6542
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6543
else
6544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545
for as_dir in $PATH
6546
do
6547
  IFS=$as_save_IFS
6548
  test -z "$as_dir" && as_dir=.
6549
  for ac_exec_ext in '' $ac_executable_extensions; do
6550 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 131 jeremybenn
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6552 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 131 jeremybenn
    break 2
6554
  fi
6555
done
6556
done
6557 213 jeremybenn
IFS=$as_save_IFS
6558 131 jeremybenn
 
6559
fi
6560
fi
6561
WINDRES=$ac_cv_prog_WINDRES
6562
if test -n "$WINDRES"; then
6563 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6564
$as_echo "$WINDRES" >&6; }
6565 131 jeremybenn
else
6566 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6567
$as_echo "no" >&6; }
6568 131 jeremybenn
fi
6569
 
6570 213 jeremybenn
 
6571 131 jeremybenn
fi
6572
if test -z "$ac_cv_prog_WINDRES"; then
6573
  ac_ct_WINDRES=$WINDRES
6574
  # Extract the first word of "windres", so it can be a program name with args.
6575
set dummy windres; ac_word=$2
6576 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6577
$as_echo_n "checking for $ac_word... " >&6; }
6578 131 jeremybenn
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6579 213 jeremybenn
  $as_echo_n "(cached) " >&6
6580 131 jeremybenn
else
6581
  if test -n "$ac_ct_WINDRES"; then
6582
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6583
else
6584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585
for as_dir in $PATH
6586
do
6587
  IFS=$as_save_IFS
6588
  test -z "$as_dir" && as_dir=.
6589
  for ac_exec_ext in '' $ac_executable_extensions; do
6590 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 131 jeremybenn
    ac_cv_prog_ac_ct_WINDRES="windres"
6592 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 131 jeremybenn
    break 2
6594
  fi
6595
done
6596
done
6597 213 jeremybenn
IFS=$as_save_IFS
6598 131 jeremybenn
 
6599
fi
6600
fi
6601
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6602
if test -n "$ac_ct_WINDRES"; then
6603 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6604
$as_echo "$ac_ct_WINDRES" >&6; }
6605 131 jeremybenn
else
6606 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6607
$as_echo "no" >&6; }
6608 131 jeremybenn
fi
6609
 
6610 213 jeremybenn
  if test "x$ac_ct_WINDRES" = x; then
6611
    WINDRES=""
6612
  else
6613
    case $cross_compiling:$ac_tool_warned in
6614
yes:)
6615
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6616
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617
ac_tool_warned=yes ;;
6618
esac
6619
    WINDRES=$ac_ct_WINDRES
6620
  fi
6621 131 jeremybenn
else
6622
  WINDRES="$ac_cv_prog_WINDRES"
6623
fi
6624
 
6625
 
6626
# Needed for GNU/Hurd.
6627
if test -n "$ac_tool_prefix"; then
6628
  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6629
set dummy ${ac_tool_prefix}mig; ac_word=$2
6630 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6631
$as_echo_n "checking for $ac_word... " >&6; }
6632 131 jeremybenn
if test "${ac_cv_prog_MIG+set}" = set; then
6633 213 jeremybenn
  $as_echo_n "(cached) " >&6
6634 131 jeremybenn
else
6635
  if test -n "$MIG"; then
6636
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
6637
else
6638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639
for as_dir in $PATH
6640
do
6641
  IFS=$as_save_IFS
6642
  test -z "$as_dir" && as_dir=.
6643
  for ac_exec_ext in '' $ac_executable_extensions; do
6644 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 131 jeremybenn
    ac_cv_prog_MIG="${ac_tool_prefix}mig"
6646 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 131 jeremybenn
    break 2
6648
  fi
6649
done
6650
done
6651 213 jeremybenn
IFS=$as_save_IFS
6652 131 jeremybenn
 
6653
fi
6654
fi
6655
MIG=$ac_cv_prog_MIG
6656
if test -n "$MIG"; then
6657 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MIG" >&5
6658
$as_echo "$MIG" >&6; }
6659 131 jeremybenn
else
6660 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6661
$as_echo "no" >&6; }
6662 131 jeremybenn
fi
6663
 
6664 213 jeremybenn
 
6665 131 jeremybenn
fi
6666
if test -z "$ac_cv_prog_MIG"; then
6667
  ac_ct_MIG=$MIG
6668
  # Extract the first word of "mig", so it can be a program name with args.
6669
set dummy mig; ac_word=$2
6670 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6671
$as_echo_n "checking for $ac_word... " >&6; }
6672 131 jeremybenn
if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
6673 213 jeremybenn
  $as_echo_n "(cached) " >&6
6674 131 jeremybenn
else
6675
  if test -n "$ac_ct_MIG"; then
6676
  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6677
else
6678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679
for as_dir in $PATH
6680
do
6681
  IFS=$as_save_IFS
6682
  test -z "$as_dir" && as_dir=.
6683
  for ac_exec_ext in '' $ac_executable_extensions; do
6684 213 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 131 jeremybenn
    ac_cv_prog_ac_ct_MIG="mig"
6686 213 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 131 jeremybenn
    break 2
6688
  fi
6689
done
6690
done
6691 213 jeremybenn
IFS=$as_save_IFS
6692 131 jeremybenn
 
6693
fi
6694
fi
6695
ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6696
if test -n "$ac_ct_MIG"; then
6697 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
6698
$as_echo "$ac_ct_MIG" >&6; }
6699 131 jeremybenn
else
6700 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6701
$as_echo "no" >&6; }
6702 131 jeremybenn
fi
6703
 
6704 213 jeremybenn
  if test "x$ac_ct_MIG" = x; then
6705
    MIG=""
6706
  else
6707
    case $cross_compiling:$ac_tool_warned in
6708
yes:)
6709
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6710
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711
ac_tool_warned=yes ;;
6712
esac
6713
    MIG=$ac_ct_MIG
6714
  fi
6715 131 jeremybenn
else
6716
  MIG="$ac_cv_prog_MIG"
6717
fi
6718
 
6719
 
6720
# ---------------------- #
6721
# Checks for libraries.  #
6722
# ---------------------- #
6723
 
6724
# We might need to link with -lm; most simulators need it.
6725
 
6726 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6727
$as_echo_n "checking for main in -lm... " >&6; }
6728 131 jeremybenn
if test "${ac_cv_lib_m_main+set}" = set; then
6729 213 jeremybenn
  $as_echo_n "(cached) " >&6
6730 131 jeremybenn
else
6731
  ac_check_lib_save_LIBS=$LIBS
6732
LIBS="-lm  $LIBS"
6733
cat >conftest.$ac_ext <<_ACEOF
6734
/* confdefs.h.  */
6735
_ACEOF
6736
cat confdefs.h >>conftest.$ac_ext
6737
cat >>conftest.$ac_ext <<_ACEOF
6738
/* end confdefs.h.  */
6739
 
6740
 
6741
int
6742
main ()
6743
{
6744 213 jeremybenn
return main ();
6745 131 jeremybenn
  ;
6746
  return 0;
6747
}
6748
_ACEOF
6749
rm -f conftest.$ac_objext conftest$ac_exeext
6750 213 jeremybenn
if { (ac_try="$ac_link"
6751
case "(($ac_try" in
6752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753
  *) ac_try_echo=$ac_try;;
6754
esac
6755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6756
$as_echo "$ac_try_echo") >&5
6757
  (eval "$ac_link") 2>conftest.er1
6758 131 jeremybenn
  ac_status=$?
6759
  grep -v '^ *+' conftest.er1 >conftest.err
6760
  rm -f conftest.er1
6761
  cat conftest.err >&5
6762 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763
  (exit $ac_status); } && {
6764
         test -z "$ac_c_werror_flag" ||
6765
         test ! -s conftest.err
6766
       } && test -s conftest$ac_exeext && {
6767
         test "$cross_compiling" = yes ||
6768
         $as_test_x conftest$ac_exeext
6769
       }; then
6770 131 jeremybenn
  ac_cv_lib_m_main=yes
6771
else
6772 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6773 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6774
 
6775 213 jeremybenn
        ac_cv_lib_m_main=no
6776 131 jeremybenn
fi
6777 213 jeremybenn
 
6778
rm -rf conftest.dSYM
6779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
6781
LIBS=$ac_check_lib_save_LIBS
6782
fi
6783 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6784
$as_echo "$ac_cv_lib_m_main" >&6; }
6785
if test "x$ac_cv_lib_m_main" = x""yes; then
6786 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
6787
#define HAVE_LIBM 1
6788
_ACEOF
6789
 
6790
  LIBS="-lm $LIBS"
6791
 
6792
fi
6793
 
6794
 
6795
# We need to link with -lw to get `wctype' on Solaris before Solaris
6796
# 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
6797
# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6798
# is known to have this problem).  Therefore we avoid libw if we can.
6799 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for wctype" >&5
6800
$as_echo_n "checking for wctype... " >&6; }
6801 131 jeremybenn
if test "${ac_cv_func_wctype+set}" = set; then
6802 213 jeremybenn
  $as_echo_n "(cached) " >&6
6803 131 jeremybenn
else
6804
  cat >conftest.$ac_ext <<_ACEOF
6805
/* confdefs.h.  */
6806
_ACEOF
6807
cat confdefs.h >>conftest.$ac_ext
6808
cat >>conftest.$ac_ext <<_ACEOF
6809
/* end confdefs.h.  */
6810
/* Define wctype to an innocuous variant, in case  declares wctype.
6811
   For example, HP-UX 11i  declares gettimeofday.  */
6812
#define wctype innocuous_wctype
6813
 
6814
/* System header to define __stub macros and hopefully few prototypes,
6815
    which can conflict with char wctype (); below.
6816
    Prefer  to  if __STDC__ is defined, since
6817
     exists even on freestanding compilers.  */
6818
 
6819
#ifdef __STDC__
6820
# include 
6821
#else
6822
# include 
6823
#endif
6824
 
6825
#undef wctype
6826
 
6827 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
6828
   Use char because int might match the return type of a GCC
6829
   builtin and then its argument prototype would still apply.  */
6830 131 jeremybenn
#ifdef __cplusplus
6831
extern "C"
6832
#endif
6833
char wctype ();
6834
/* The GNU C library defines this for functions which it implements
6835
    to always fail with ENOSYS.  Some functions are actually named
6836
    something starting with __ and the normal name is an alias.  */
6837 213 jeremybenn
#if defined __stub_wctype || defined __stub___wctype
6838 131 jeremybenn
choke me
6839
#endif
6840
 
6841
int
6842
main ()
6843
{
6844 213 jeremybenn
return wctype ();
6845 131 jeremybenn
  ;
6846
  return 0;
6847
}
6848
_ACEOF
6849
rm -f conftest.$ac_objext conftest$ac_exeext
6850 213 jeremybenn
if { (ac_try="$ac_link"
6851
case "(($ac_try" in
6852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853
  *) ac_try_echo=$ac_try;;
6854
esac
6855
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6856
$as_echo "$ac_try_echo") >&5
6857
  (eval "$ac_link") 2>conftest.er1
6858 131 jeremybenn
  ac_status=$?
6859
  grep -v '^ *+' conftest.er1 >conftest.err
6860
  rm -f conftest.er1
6861
  cat conftest.err >&5
6862 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863
  (exit $ac_status); } && {
6864
         test -z "$ac_c_werror_flag" ||
6865
         test ! -s conftest.err
6866
       } && test -s conftest$ac_exeext && {
6867
         test "$cross_compiling" = yes ||
6868
         $as_test_x conftest$ac_exeext
6869
       }; then
6870 131 jeremybenn
  ac_cv_func_wctype=yes
6871
else
6872 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6873 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6874
 
6875 213 jeremybenn
        ac_cv_func_wctype=no
6876 131 jeremybenn
fi
6877 213 jeremybenn
 
6878
rm -rf conftest.dSYM
6879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6880 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
6881
fi
6882 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
6883
$as_echo "$ac_cv_func_wctype" >&6; }
6884
if test "x$ac_cv_func_wctype" = x""yes; then
6885 131 jeremybenn
  :
6886
else
6887
 
6888 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for wctype in -lw" >&5
6889
$as_echo_n "checking for wctype in -lw... " >&6; }
6890 131 jeremybenn
if test "${ac_cv_lib_w_wctype+set}" = set; then
6891 213 jeremybenn
  $as_echo_n "(cached) " >&6
6892 131 jeremybenn
else
6893
  ac_check_lib_save_LIBS=$LIBS
6894
LIBS="-lw  $LIBS"
6895
cat >conftest.$ac_ext <<_ACEOF
6896
/* confdefs.h.  */
6897
_ACEOF
6898
cat confdefs.h >>conftest.$ac_ext
6899
cat >>conftest.$ac_ext <<_ACEOF
6900
/* end confdefs.h.  */
6901
 
6902 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
6903
   Use char because int might match the return type of a GCC
6904
   builtin and then its argument prototype would still apply.  */
6905 131 jeremybenn
#ifdef __cplusplus
6906
extern "C"
6907
#endif
6908
char wctype ();
6909
int
6910
main ()
6911
{
6912 213 jeremybenn
return wctype ();
6913 131 jeremybenn
  ;
6914
  return 0;
6915
}
6916
_ACEOF
6917
rm -f conftest.$ac_objext conftest$ac_exeext
6918 213 jeremybenn
if { (ac_try="$ac_link"
6919
case "(($ac_try" in
6920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921
  *) ac_try_echo=$ac_try;;
6922
esac
6923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924
$as_echo "$ac_try_echo") >&5
6925
  (eval "$ac_link") 2>conftest.er1
6926 131 jeremybenn
  ac_status=$?
6927
  grep -v '^ *+' conftest.er1 >conftest.err
6928
  rm -f conftest.er1
6929
  cat conftest.err >&5
6930 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931
  (exit $ac_status); } && {
6932
         test -z "$ac_c_werror_flag" ||
6933
         test ! -s conftest.err
6934
       } && test -s conftest$ac_exeext && {
6935
         test "$cross_compiling" = yes ||
6936
         $as_test_x conftest$ac_exeext
6937
       }; then
6938 131 jeremybenn
  ac_cv_lib_w_wctype=yes
6939
else
6940 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6941 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6942
 
6943 213 jeremybenn
        ac_cv_lib_w_wctype=no
6944 131 jeremybenn
fi
6945 213 jeremybenn
 
6946
rm -rf conftest.dSYM
6947
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6948 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
6949
LIBS=$ac_check_lib_save_LIBS
6950
fi
6951 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
6952
$as_echo "$ac_cv_lib_w_wctype" >&6; }
6953
if test "x$ac_cv_lib_w_wctype" = x""yes; then
6954 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
6955
#define HAVE_LIBW 1
6956
_ACEOF
6957
 
6958
  LIBS="-lw $LIBS"
6959
 
6960
fi
6961
 
6962
fi
6963
 
6964
 
6965
# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6966 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6967
$as_echo_n "checking for library containing gethostbyname... " >&6; }
6968 131 jeremybenn
if test "${ac_cv_search_gethostbyname+set}" = set; then
6969 213 jeremybenn
  $as_echo_n "(cached) " >&6
6970 131 jeremybenn
else
6971
  ac_func_search_save_LIBS=$LIBS
6972
cat >conftest.$ac_ext <<_ACEOF
6973
/* confdefs.h.  */
6974
_ACEOF
6975
cat confdefs.h >>conftest.$ac_ext
6976
cat >>conftest.$ac_ext <<_ACEOF
6977
/* end confdefs.h.  */
6978
 
6979 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
6980
   Use char because int might match the return type of a GCC
6981
   builtin and then its argument prototype would still apply.  */
6982 131 jeremybenn
#ifdef __cplusplus
6983
extern "C"
6984
#endif
6985
char gethostbyname ();
6986
int
6987
main ()
6988
{
6989 213 jeremybenn
return gethostbyname ();
6990 131 jeremybenn
  ;
6991
  return 0;
6992
}
6993
_ACEOF
6994 213 jeremybenn
for ac_lib in '' nsl; do
6995
  if test -z "$ac_lib"; then
6996
    ac_res="none required"
6997
  else
6998
    ac_res=-l$ac_lib
6999
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7000
  fi
7001
  rm -f conftest.$ac_objext conftest$ac_exeext
7002
if { (ac_try="$ac_link"
7003
case "(($ac_try" in
7004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005
  *) ac_try_echo=$ac_try;;
7006
esac
7007
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008
$as_echo "$ac_try_echo") >&5
7009
  (eval "$ac_link") 2>conftest.er1
7010 131 jeremybenn
  ac_status=$?
7011
  grep -v '^ *+' conftest.er1 >conftest.err
7012
  rm -f conftest.er1
7013
  cat conftest.err >&5
7014 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015
  (exit $ac_status); } && {
7016
         test -z "$ac_c_werror_flag" ||
7017
         test ! -s conftest.err
7018
       } && test -s conftest$ac_exeext && {
7019
         test "$cross_compiling" = yes ||
7020
         $as_test_x conftest$ac_exeext
7021
       }; then
7022
  ac_cv_search_gethostbyname=$ac_res
7023 131 jeremybenn
else
7024 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7025 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7026
 
7027 213 jeremybenn
 
7028 131 jeremybenn
fi
7029
 
7030 213 jeremybenn
rm -rf conftest.dSYM
7031
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7032
      conftest$ac_exeext
7033
  if test "${ac_cv_search_gethostbyname+set}" = set; then
7034
  break
7035
fi
7036
done
7037
if test "${ac_cv_search_gethostbyname+set}" = set; then
7038
  :
7039 131 jeremybenn
else
7040 213 jeremybenn
  ac_cv_search_gethostbyname=no
7041 131 jeremybenn
fi
7042 213 jeremybenn
rm conftest.$ac_ext
7043 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
7044
fi
7045 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7046
$as_echo "$ac_cv_search_gethostbyname" >&6; }
7047
ac_res=$ac_cv_search_gethostbyname
7048
if test "$ac_res" != no; then
7049
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7050 131 jeremybenn
 
7051
fi
7052
 
7053
 
7054
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7055 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7056
$as_echo_n "checking for library containing socketpair... " >&6; }
7057 131 jeremybenn
if test "${ac_cv_search_socketpair+set}" = set; then
7058 213 jeremybenn
  $as_echo_n "(cached) " >&6
7059 131 jeremybenn
else
7060
  ac_func_search_save_LIBS=$LIBS
7061
cat >conftest.$ac_ext <<_ACEOF
7062
/* confdefs.h.  */
7063
_ACEOF
7064
cat confdefs.h >>conftest.$ac_ext
7065
cat >>conftest.$ac_ext <<_ACEOF
7066
/* end confdefs.h.  */
7067
 
7068 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
7069
   Use char because int might match the return type of a GCC
7070
   builtin and then its argument prototype would still apply.  */
7071 131 jeremybenn
#ifdef __cplusplus
7072
extern "C"
7073
#endif
7074
char socketpair ();
7075
int
7076
main ()
7077
{
7078 213 jeremybenn
return socketpair ();
7079 131 jeremybenn
  ;
7080
  return 0;
7081
}
7082
_ACEOF
7083 213 jeremybenn
for ac_lib in '' socket; do
7084
  if test -z "$ac_lib"; then
7085
    ac_res="none required"
7086
  else
7087
    ac_res=-l$ac_lib
7088
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7089
  fi
7090
  rm -f conftest.$ac_objext conftest$ac_exeext
7091
if { (ac_try="$ac_link"
7092
case "(($ac_try" in
7093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094
  *) ac_try_echo=$ac_try;;
7095
esac
7096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097
$as_echo "$ac_try_echo") >&5
7098
  (eval "$ac_link") 2>conftest.er1
7099 131 jeremybenn
  ac_status=$?
7100
  grep -v '^ *+' conftest.er1 >conftest.err
7101
  rm -f conftest.er1
7102
  cat conftest.err >&5
7103 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104
  (exit $ac_status); } && {
7105
         test -z "$ac_c_werror_flag" ||
7106
         test ! -s conftest.err
7107
       } && test -s conftest$ac_exeext && {
7108
         test "$cross_compiling" = yes ||
7109
         $as_test_x conftest$ac_exeext
7110
       }; then
7111
  ac_cv_search_socketpair=$ac_res
7112 131 jeremybenn
else
7113 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7114 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7115
 
7116 213 jeremybenn
 
7117 131 jeremybenn
fi
7118
 
7119 213 jeremybenn
rm -rf conftest.dSYM
7120
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7121
      conftest$ac_exeext
7122
  if test "${ac_cv_search_socketpair+set}" = set; then
7123
  break
7124
fi
7125
done
7126
if test "${ac_cv_search_socketpair+set}" = set; then
7127
  :
7128 131 jeremybenn
else
7129 213 jeremybenn
  ac_cv_search_socketpair=no
7130 131 jeremybenn
fi
7131 213 jeremybenn
rm conftest.$ac_ext
7132 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
7133
fi
7134 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
7135
$as_echo "$ac_cv_search_socketpair" >&6; }
7136
ac_res=$ac_cv_search_socketpair
7137
if test "$ac_res" != no; then
7138
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7139 131 jeremybenn
 
7140
fi
7141
 
7142
 
7143
# For the TUI, we need enhanced curses functionality.
7144
#
7145
# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7146
# curses library because the latter might not provide all the
7147
# functionality we need.  However, this leads to problems on systems
7148
# where the linker searches /usr/local/lib, but the compiler doesn't
7149
# search /usr/local/include, if ncurses is installed in /usr/local.  A
7150
# default installation of ncurses on alpha*-dec-osf* will lead to such
7151
# a situation.
7152 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for library containing waddstr" >&5
7153
$as_echo_n "checking for library containing waddstr... " >&6; }
7154 131 jeremybenn
if test "${ac_cv_search_waddstr+set}" = set; then
7155 213 jeremybenn
  $as_echo_n "(cached) " >&6
7156 131 jeremybenn
else
7157
  ac_func_search_save_LIBS=$LIBS
7158
cat >conftest.$ac_ext <<_ACEOF
7159
/* confdefs.h.  */
7160
_ACEOF
7161
cat confdefs.h >>conftest.$ac_ext
7162
cat >>conftest.$ac_ext <<_ACEOF
7163
/* end confdefs.h.  */
7164
 
7165 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
7166
   Use char because int might match the return type of a GCC
7167
   builtin and then its argument prototype would still apply.  */
7168 131 jeremybenn
#ifdef __cplusplus
7169
extern "C"
7170
#endif
7171
char waddstr ();
7172
int
7173
main ()
7174
{
7175 213 jeremybenn
return waddstr ();
7176 131 jeremybenn
  ;
7177
  return 0;
7178
}
7179
_ACEOF
7180 213 jeremybenn
for ac_lib in '' ncurses cursesX curses; do
7181
  if test -z "$ac_lib"; then
7182
    ac_res="none required"
7183
  else
7184
    ac_res=-l$ac_lib
7185
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7186
  fi
7187
  rm -f conftest.$ac_objext conftest$ac_exeext
7188
if { (ac_try="$ac_link"
7189
case "(($ac_try" in
7190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191
  *) ac_try_echo=$ac_try;;
7192
esac
7193
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194
$as_echo "$ac_try_echo") >&5
7195
  (eval "$ac_link") 2>conftest.er1
7196 131 jeremybenn
  ac_status=$?
7197
  grep -v '^ *+' conftest.er1 >conftest.err
7198
  rm -f conftest.er1
7199
  cat conftest.err >&5
7200 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201
  (exit $ac_status); } && {
7202
         test -z "$ac_c_werror_flag" ||
7203
         test ! -s conftest.err
7204
       } && test -s conftest$ac_exeext && {
7205
         test "$cross_compiling" = yes ||
7206
         $as_test_x conftest$ac_exeext
7207
       }; then
7208
  ac_cv_search_waddstr=$ac_res
7209 131 jeremybenn
else
7210 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7211 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7212
 
7213 213 jeremybenn
 
7214 131 jeremybenn
fi
7215
 
7216 213 jeremybenn
rm -rf conftest.dSYM
7217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218
      conftest$ac_exeext
7219
  if test "${ac_cv_search_waddstr+set}" = set; then
7220
  break
7221
fi
7222
done
7223
if test "${ac_cv_search_waddstr+set}" = set; then
7224
  :
7225 131 jeremybenn
else
7226 213 jeremybenn
  ac_cv_search_waddstr=no
7227 131 jeremybenn
fi
7228 213 jeremybenn
rm conftest.$ac_ext
7229 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
7230
fi
7231 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
7232
$as_echo "$ac_cv_search_waddstr" >&6; }
7233
ac_res=$ac_cv_search_waddstr
7234
if test "$ac_res" != no; then
7235
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7236 131 jeremybenn
 
7237
fi
7238
 
7239
 
7240
# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
7241 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
7242
$as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
7243 131 jeremybenn
if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
7244 213 jeremybenn
  $as_echo_n "(cached) " >&6
7245 131 jeremybenn
else
7246
  ac_func_search_save_LIBS=$LIBS
7247
cat >conftest.$ac_ext <<_ACEOF
7248
/* confdefs.h.  */
7249
_ACEOF
7250
cat confdefs.h >>conftest.$ac_ext
7251
cat >>conftest.$ac_ext <<_ACEOF
7252
/* end confdefs.h.  */
7253
 
7254 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
7255
   Use char because int might match the return type of a GCC
7256
   builtin and then its argument prototype would still apply.  */
7257 131 jeremybenn
#ifdef __cplusplus
7258
extern "C"
7259
#endif
7260
char dlgetmodinfo ();
7261
int
7262
main ()
7263
{
7264 213 jeremybenn
return dlgetmodinfo ();
7265 131 jeremybenn
  ;
7266
  return 0;
7267
}
7268
_ACEOF
7269 213 jeremybenn
for ac_lib in '' dl xpdl; do
7270
  if test -z "$ac_lib"; then
7271
    ac_res="none required"
7272
  else
7273
    ac_res=-l$ac_lib
7274
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7275
  fi
7276
  rm -f conftest.$ac_objext conftest$ac_exeext
7277
if { (ac_try="$ac_link"
7278
case "(($ac_try" in
7279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280
  *) ac_try_echo=$ac_try;;
7281
esac
7282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7283
$as_echo "$ac_try_echo") >&5
7284
  (eval "$ac_link") 2>conftest.er1
7285 131 jeremybenn
  ac_status=$?
7286
  grep -v '^ *+' conftest.er1 >conftest.err
7287
  rm -f conftest.er1
7288
  cat conftest.err >&5
7289 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290
  (exit $ac_status); } && {
7291
         test -z "$ac_c_werror_flag" ||
7292
         test ! -s conftest.err
7293
       } && test -s conftest$ac_exeext && {
7294
         test "$cross_compiling" = yes ||
7295
         $as_test_x conftest$ac_exeext
7296
       }; then
7297
  ac_cv_search_dlgetmodinfo=$ac_res
7298 131 jeremybenn
else
7299 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7300 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7301
 
7302 213 jeremybenn
 
7303 131 jeremybenn
fi
7304
 
7305 213 jeremybenn
rm -rf conftest.dSYM
7306
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307
      conftest$ac_exeext
7308
  if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
7309
  break
7310
fi
7311
done
7312
if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
7313
  :
7314 131 jeremybenn
else
7315 213 jeremybenn
  ac_cv_search_dlgetmodinfo=no
7316 131 jeremybenn
fi
7317 213 jeremybenn
rm conftest.$ac_ext
7318 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
7319
fi
7320 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
7321
$as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
7322
ac_res=$ac_cv_search_dlgetmodinfo
7323
if test "$ac_res" != no; then
7324
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7325 131 jeremybenn
 
7326
fi
7327
 
7328
 
7329
# Since GDB uses Readline, we need termcap functionality.  In many
7330
# cases this will be provided by the curses library, but some systems
7331
# have a seperate termcap library, or no curses library at all.
7332
 
7333
case $host_os in
7334
  cygwin*)
7335
    if test -d $srcdir/libtermcap; then
7336
      LIBS="../libtermcap/libtermcap.a $LIBS"
7337
      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7338
    fi ;;
7339
  go32* | *djgpp*)
7340
    ac_cv_search_tgetent="none required"
7341
    ;;
7342
  *mingw32*)
7343
    ac_cv_search_tgetent="none required"
7344
    CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
7345
    ;;
7346
esac
7347
 
7348
# These are the libraries checked by Readline.
7349 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
7350
$as_echo_n "checking for library containing tgetent... " >&6; }
7351 131 jeremybenn
if test "${ac_cv_search_tgetent+set}" = set; then
7352 213 jeremybenn
  $as_echo_n "(cached) " >&6
7353 131 jeremybenn
else
7354
  ac_func_search_save_LIBS=$LIBS
7355
cat >conftest.$ac_ext <<_ACEOF
7356
/* confdefs.h.  */
7357
_ACEOF
7358
cat confdefs.h >>conftest.$ac_ext
7359
cat >>conftest.$ac_ext <<_ACEOF
7360
/* end confdefs.h.  */
7361
 
7362 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
7363
   Use char because int might match the return type of a GCC
7364
   builtin and then its argument prototype would still apply.  */
7365 131 jeremybenn
#ifdef __cplusplus
7366
extern "C"
7367
#endif
7368
char tgetent ();
7369
int
7370
main ()
7371
{
7372 213 jeremybenn
return tgetent ();
7373 131 jeremybenn
  ;
7374
  return 0;
7375
}
7376
_ACEOF
7377 213 jeremybenn
for ac_lib in '' termcap tinfo curses ncurses; do
7378
  if test -z "$ac_lib"; then
7379
    ac_res="none required"
7380
  else
7381
    ac_res=-l$ac_lib
7382
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7383
  fi
7384
  rm -f conftest.$ac_objext conftest$ac_exeext
7385
if { (ac_try="$ac_link"
7386
case "(($ac_try" in
7387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388
  *) ac_try_echo=$ac_try;;
7389
esac
7390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391
$as_echo "$ac_try_echo") >&5
7392
  (eval "$ac_link") 2>conftest.er1
7393 131 jeremybenn
  ac_status=$?
7394
  grep -v '^ *+' conftest.er1 >conftest.err
7395
  rm -f conftest.er1
7396
  cat conftest.err >&5
7397 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398
  (exit $ac_status); } && {
7399
         test -z "$ac_c_werror_flag" ||
7400
         test ! -s conftest.err
7401
       } && test -s conftest$ac_exeext && {
7402
         test "$cross_compiling" = yes ||
7403
         $as_test_x conftest$ac_exeext
7404
       }; then
7405
  ac_cv_search_tgetent=$ac_res
7406 131 jeremybenn
else
7407 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7408 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7409
 
7410 213 jeremybenn
 
7411 131 jeremybenn
fi
7412
 
7413 213 jeremybenn
rm -rf conftest.dSYM
7414
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7415
      conftest$ac_exeext
7416
  if test "${ac_cv_search_tgetent+set}" = set; then
7417
  break
7418
fi
7419
done
7420
if test "${ac_cv_search_tgetent+set}" = set; then
7421
  :
7422 131 jeremybenn
else
7423 213 jeremybenn
  ac_cv_search_tgetent=no
7424 131 jeremybenn
fi
7425 213 jeremybenn
rm conftest.$ac_ext
7426 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
7427
fi
7428 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
7429
$as_echo "$ac_cv_search_tgetent" >&6; }
7430
ac_res=$ac_cv_search_tgetent
7431
if test "$ac_res" != no; then
7432
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7433 131 jeremybenn
 
7434
fi
7435
 
7436
 
7437
if test "$ac_cv_search_tgetent" = no; then
7438 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: no termcap library found" >&5
7439
$as_echo "$as_me: error: no termcap library found" >&2;}
7440 131 jeremybenn
   { (exit 1); exit 1; }; }
7441
fi
7442
 
7443
 
7444 213 jeremybenn
# Check whether --with-system-readline was given.
7445 131 jeremybenn
if test "${with_system_readline+set}" = set; then
7446 213 jeremybenn
  withval=$with_system_readline;
7447
fi
7448 131 jeremybenn
 
7449
 
7450
if test "$with_system_readline" = yes; then
7451
  READLINE=-lreadline
7452
  READLINE_DEPS=
7453
  READLINE_CFLAGS=
7454
else
7455
  READLINE='$(READLINE_DIR)/libreadline.a'
7456
  READLINE_DEPS='$(READLINE)'
7457
  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7458
fi
7459
 
7460
 
7461
 
7462
 
7463
 
7464 213 jeremybenn
# Check whether --with-expat was given.
7465 131 jeremybenn
if test "${with_expat+set}" = set; then
7466 213 jeremybenn
  withval=$with_expat;
7467 131 jeremybenn
else
7468
  with_expat=auto
7469 213 jeremybenn
fi
7470 131 jeremybenn
 
7471 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use expat" >&5
7472
$as_echo_n "checking whether to use expat... " >&6; }
7473
{ $as_echo "$as_me:$LINENO: result: $with_expat" >&5
7474
$as_echo "$with_expat" >&6; }
7475
 
7476 131 jeremybenn
if test "${with_expat}" = no; then
7477 213 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
7478
$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7479 131 jeremybenn
  HAVE_LIBEXPAT=no
7480
else
7481
 
7482
      if test "X$prefix" = "XNONE"; then
7483
    acl_final_prefix="$ac_default_prefix"
7484
  else
7485
    acl_final_prefix="$prefix"
7486
  fi
7487
  if test "X$exec_prefix" = "XNONE"; then
7488
    acl_final_exec_prefix='${prefix}'
7489
  else
7490
    acl_final_exec_prefix="$exec_prefix"
7491
  fi
7492
  acl_save_prefix="$prefix"
7493
  prefix="$acl_final_prefix"
7494
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7495
  prefix="$acl_save_prefix"
7496
 
7497
 
7498 213 jeremybenn
# Check whether --with-gnu-ld was given.
7499 131 jeremybenn
if test "${with_gnu_ld+set}" = set; then
7500 213 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7501 131 jeremybenn
else
7502
  with_gnu_ld=no
7503 213 jeremybenn
fi
7504
 
7505 131 jeremybenn
# Prepare PATH_SEPARATOR.
7506
# The user is always right.
7507
if test "${PATH_SEPARATOR+set}" != set; then
7508
  echo "#! /bin/sh" >conf$$.sh
7509
  echo  "exit 0"   >>conf$$.sh
7510
  chmod +x conf$$.sh
7511
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7512
    PATH_SEPARATOR=';'
7513
  else
7514
    PATH_SEPARATOR=:
7515
  fi
7516
  rm -f conf$$.sh
7517
fi
7518
ac_prog=ld
7519
if test "$GCC" = yes; then
7520
  # Check if gcc -print-prog-name=ld gives a path.
7521 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7522
$as_echo_n "checking for ld used by GCC... " >&6; }
7523 131 jeremybenn
  case $host in
7524
  *-*-mingw*)
7525
    # gcc leaves a trailing carriage return which upsets mingw
7526
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7527
  *)
7528
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7529
  esac
7530
  case $ac_prog in
7531
    # Accept absolute paths.
7532
    [\\/]* | [A-Za-z]:[\\/]*)
7533
      re_direlt='/[^/][^/]*/\.\./'
7534
      # Canonicalize the path of ld
7535
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7536
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7537
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7538
      done
7539
      test -z "$LD" && LD="$ac_prog"
7540
      ;;
7541
  "")
7542
    # If it fails, then pretend we aren't using GCC.
7543
    ac_prog=ld
7544
    ;;
7545
  *)
7546
    # If it is relative, then search for the first ld in PATH.
7547
    with_gnu_ld=unknown
7548
    ;;
7549
  esac
7550
elif test "$with_gnu_ld" = yes; then
7551 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7552
$as_echo_n "checking for GNU ld... " >&6; }
7553 131 jeremybenn
else
7554 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7555
$as_echo_n "checking for non-GNU ld... " >&6; }
7556 131 jeremybenn
fi
7557
if test "${acl_cv_path_LD+set}" = set; then
7558 213 jeremybenn
  $as_echo_n "(cached) " >&6
7559 131 jeremybenn
else
7560
  if test -z "$LD"; then
7561
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7562
  for ac_dir in $PATH; do
7563
    test -z "$ac_dir" && ac_dir=.
7564
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7565
      acl_cv_path_LD="$ac_dir/$ac_prog"
7566
      # Check to see if the program is GNU ld.  I'd rather use --version,
7567
      # but apparently some GNU ld's only accept -v.
7568
      # Break only if it was the GNU/non-GNU ld that we prefer.
7569
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7570
        test "$with_gnu_ld" != no && break
7571
      else
7572
        test "$with_gnu_ld" != yes && break
7573
      fi
7574
    fi
7575
  done
7576
  IFS="$ac_save_ifs"
7577
else
7578
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7579
fi
7580
fi
7581
 
7582
LD="$acl_cv_path_LD"
7583
if test -n "$LD"; then
7584 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7585
$as_echo "$LD" >&6; }
7586 131 jeremybenn
else
7587 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7588
$as_echo "no" >&6; }
7589 131 jeremybenn
fi
7590 213 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7591
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7592 131 jeremybenn
   { (exit 1); exit 1; }; }
7593 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7594
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7595 131 jeremybenn
if test "${acl_cv_prog_gnu_ld+set}" = set; then
7596 213 jeremybenn
  $as_echo_n "(cached) " >&6
7597 131 jeremybenn
else
7598
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7599
if $LD -v 2>&1 &5; then
7600
  acl_cv_prog_gnu_ld=yes
7601
else
7602
  acl_cv_prog_gnu_ld=no
7603
fi
7604
fi
7605 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7606
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7607 131 jeremybenn
with_gnu_ld=$acl_cv_prog_gnu_ld
7608
 
7609
 
7610
 
7611 213 jeremybenn
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7612
$as_echo_n "checking for shared library run path origin... " >&6; }
7613 131 jeremybenn
if test "${acl_cv_rpath+set}" = set; then
7614 213 jeremybenn
  $as_echo_n "(cached) " >&6
7615 131 jeremybenn
else
7616
 
7617
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7618
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7619
    . ./conftest.sh
7620
    rm -f ./conftest.sh
7621
    acl_cv_rpath=done
7622
 
7623
fi
7624 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7625
$as_echo "$acl_cv_rpath" >&6; }
7626 131 jeremybenn
  wl="$acl_cv_wl"
7627
  libext="$acl_cv_libext"
7628
  shlibext="$acl_cv_shlibext"
7629
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7630
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7631
  hardcode_direct="$acl_cv_hardcode_direct"
7632
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7633 213 jeremybenn
    # Check whether --enable-rpath was given.
7634 131 jeremybenn
if test "${enable_rpath+set}" = set; then
7635 213 jeremybenn
  enableval=$enable_rpath; :
7636 131 jeremybenn
else
7637
  enable_rpath=yes
7638 213 jeremybenn
fi
7639 131 jeremybenn
 
7640
 
7641
 
7642
 
7643
 
7644
 
7645
 
7646
 
7647
 
7648 213 jeremybenn
 
7649 131 jeremybenn
    use_additional=yes
7650
 
7651
  acl_save_prefix="$prefix"
7652
  prefix="$acl_final_prefix"
7653
  acl_save_exec_prefix="$exec_prefix"
7654
  exec_prefix="$acl_final_exec_prefix"
7655
 
7656
    eval additional_includedir=\"$includedir\"
7657
    eval additional_libdir=\"$libdir\"
7658
 
7659
  exec_prefix="$acl_save_exec_prefix"
7660
  prefix="$acl_save_prefix"
7661
 
7662
 
7663 213 jeremybenn
# Check whether --with-libexpat-prefix was given.
7664 131 jeremybenn
if test "${with_libexpat_prefix+set}" = set; then
7665 213 jeremybenn
  withval=$with_libexpat_prefix;
7666 131 jeremybenn
    if test "X$withval" = "Xno"; then
7667
      use_additional=no
7668
    else
7669
      if test "X$withval" = "X"; then
7670
 
7671
  acl_save_prefix="$prefix"
7672
  prefix="$acl_final_prefix"
7673
  acl_save_exec_prefix="$exec_prefix"
7674
  exec_prefix="$acl_final_exec_prefix"
7675
 
7676
          eval additional_includedir=\"$includedir\"
7677
          eval additional_libdir=\"$libdir\"
7678
 
7679
  exec_prefix="$acl_save_exec_prefix"
7680
  prefix="$acl_save_prefix"
7681
 
7682
      else
7683
        additional_includedir="$withval/include"
7684
        additional_libdir="$withval/lib"
7685
      fi
7686
    fi
7687
 
7688 213 jeremybenn
fi
7689
 
7690 131 jeremybenn
      LIBEXPAT=
7691
  LTLIBEXPAT=
7692
  INCEXPAT=
7693
  rpathdirs=
7694
  ltrpathdirs=
7695
  names_already_handled=
7696
  names_next_round='expat '
7697
  while test -n "$names_next_round"; do
7698
    names_this_round="$names_next_round"
7699
    names_next_round=
7700
    for name in $names_this_round; do
7701
      already_handled=
7702
      for n in $names_already_handled; do
7703
        if test "$n" = "$name"; then
7704
          already_handled=yes
7705
          break
7706
        fi
7707
      done
7708
      if test -z "$already_handled"; then
7709
        names_already_handled="$names_already_handled $name"
7710
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7711
        eval value=\"\$HAVE_LIB$uppername\"
7712
        if test -n "$value"; then
7713
          if test "$value" = yes; then
7714
            eval value=\"\$LIB$uppername\"
7715
            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7716
            eval value=\"\$LTLIB$uppername\"
7717
            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7718
          else
7719
                                    :
7720
          fi
7721
        else
7722
                              found_dir=
7723
          found_la=
7724
          found_so=
7725
          found_a=
7726
          if test $use_additional = yes; then
7727
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7728
              found_dir="$additional_libdir"
7729
              found_so="$additional_libdir/lib$name.$shlibext"
7730
              if test -f "$additional_libdir/lib$name.la"; then
7731
                found_la="$additional_libdir/lib$name.la"
7732
              fi
7733
            else
7734
              if test -f "$additional_libdir/lib$name.$libext"; then
7735
                found_dir="$additional_libdir"
7736
                found_a="$additional_libdir/lib$name.$libext"
7737
                if test -f "$additional_libdir/lib$name.la"; then
7738
                  found_la="$additional_libdir/lib$name.la"
7739
                fi
7740
              fi
7741
            fi
7742
          fi
7743
          if test "X$found_dir" = "X"; then
7744
            for x in $LDFLAGS $LTLIBEXPAT; do
7745
 
7746
  acl_save_prefix="$prefix"
7747
  prefix="$acl_final_prefix"
7748
  acl_save_exec_prefix="$exec_prefix"
7749
  exec_prefix="$acl_final_exec_prefix"
7750
  eval x=\"$x\"
7751
  exec_prefix="$acl_save_exec_prefix"
7752
  prefix="$acl_save_prefix"
7753
 
7754
              case "$x" in
7755
                -L*)
7756
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7757
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7758
                    found_dir="$dir"
7759
                    found_so="$dir/lib$name.$shlibext"
7760
                    if test -f "$dir/lib$name.la"; then
7761
                      found_la="$dir/lib$name.la"
7762
                    fi
7763
                  else
7764
                    if test -f "$dir/lib$name.$libext"; then
7765
                      found_dir="$dir"
7766
                      found_a="$dir/lib$name.$libext"
7767
                      if test -f "$dir/lib$name.la"; then
7768
                        found_la="$dir/lib$name.la"
7769
                      fi
7770
                    fi
7771
                  fi
7772
                  ;;
7773
              esac
7774
              if test "X$found_dir" != "X"; then
7775
                break
7776
              fi
7777
            done
7778
          fi
7779
          if test "X$found_dir" != "X"; then
7780
                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7781
            if test "X$found_so" != "X"; then
7782
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7783
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7784
              else
7785
                                                                                haveit=
7786
                for x in $ltrpathdirs; do
7787
                  if test "X$x" = "X$found_dir"; then
7788
                    haveit=yes
7789
                    break
7790
                  fi
7791
                done
7792
                if test -z "$haveit"; then
7793
                  ltrpathdirs="$ltrpathdirs $found_dir"
7794
                fi
7795
                                if test "$hardcode_direct" = yes; then
7796
                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7797
                else
7798
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7799
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7800
                                                            haveit=
7801
                    for x in $rpathdirs; do
7802
                      if test "X$x" = "X$found_dir"; then
7803
                        haveit=yes
7804
                        break
7805
                      fi
7806
                    done
7807
                    if test -z "$haveit"; then
7808
                      rpathdirs="$rpathdirs $found_dir"
7809
                    fi
7810
                  else
7811
                                                                                haveit=
7812
                    for x in $LDFLAGS $LIBEXPAT; do
7813
 
7814
  acl_save_prefix="$prefix"
7815
  prefix="$acl_final_prefix"
7816
  acl_save_exec_prefix="$exec_prefix"
7817
  exec_prefix="$acl_final_exec_prefix"
7818
  eval x=\"$x\"
7819
  exec_prefix="$acl_save_exec_prefix"
7820
  prefix="$acl_save_prefix"
7821
 
7822
                      if test "X$x" = "X-L$found_dir"; then
7823
                        haveit=yes
7824
                        break
7825
                      fi
7826
                    done
7827
                    if test -z "$haveit"; then
7828
                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7829
                    fi
7830
                    if test "$hardcode_minus_L" != no; then
7831
                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7832
                    else
7833
                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7834
                    fi
7835
                  fi
7836
                fi
7837
              fi
7838
            else
7839
              if test "X$found_a" != "X"; then
7840
                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7841
              else
7842
                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7843
              fi
7844
            fi
7845
                        additional_includedir=
7846
            case "$found_dir" in
7847
              */lib | */lib/)
7848
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7849
                additional_includedir="$basedir/include"
7850
                ;;
7851
            esac
7852
            if test "X$additional_includedir" != "X"; then
7853
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7854
                haveit=
7855
                if test "X$additional_includedir" = "X/usr/local/include"; then
7856
                  if test -n "$GCC"; then
7857
                    case $host_os in
7858
                      linux*) haveit=yes;;
7859
                    esac
7860
                  fi
7861
                fi
7862
                if test -z "$haveit"; then
7863
                  for x in $CPPFLAGS $INCEXPAT; do
7864
 
7865
  acl_save_prefix="$prefix"
7866
  prefix="$acl_final_prefix"
7867
  acl_save_exec_prefix="$exec_prefix"
7868
  exec_prefix="$acl_final_exec_prefix"
7869
  eval x=\"$x\"
7870
  exec_prefix="$acl_save_exec_prefix"
7871
  prefix="$acl_save_prefix"
7872
 
7873
                    if test "X$x" = "X-I$additional_includedir"; then
7874
                      haveit=yes
7875
                      break
7876
                    fi
7877
                  done
7878
                  if test -z "$haveit"; then
7879
                    if test -d "$additional_includedir"; then
7880
                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7881
                    fi
7882
                  fi
7883
                fi
7884
              fi
7885
            fi
7886
                        if test -n "$found_la"; then
7887
                                                        save_libdir="$libdir"
7888
              case "$found_la" in
7889
                */* | *\\*) . "$found_la" ;;
7890
                *) . "./$found_la" ;;
7891
              esac
7892
              libdir="$save_libdir"
7893
                            for dep in $dependency_libs; do
7894
                case "$dep" in
7895
                  -L*)
7896
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7897
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7898
                      haveit=
7899
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7900
                        if test -n "$GCC"; then
7901
                          case $host_os in
7902
                            linux*) haveit=yes;;
7903
                          esac
7904
                        fi
7905
                      fi
7906
                      if test -z "$haveit"; then
7907
                        haveit=
7908
                        for x in $LDFLAGS $LIBEXPAT; do
7909
 
7910
  acl_save_prefix="$prefix"
7911
  prefix="$acl_final_prefix"
7912
  acl_save_exec_prefix="$exec_prefix"
7913
  exec_prefix="$acl_final_exec_prefix"
7914
  eval x=\"$x\"
7915
  exec_prefix="$acl_save_exec_prefix"
7916
  prefix="$acl_save_prefix"
7917
 
7918
                          if test "X$x" = "X-L$additional_libdir"; then
7919
                            haveit=yes
7920
                            break
7921
                          fi
7922
                        done
7923
                        if test -z "$haveit"; then
7924
                          if test -d "$additional_libdir"; then
7925
                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7926
                          fi
7927
                        fi
7928
                        haveit=
7929
                        for x in $LDFLAGS $LTLIBEXPAT; do
7930
 
7931
  acl_save_prefix="$prefix"
7932
  prefix="$acl_final_prefix"
7933
  acl_save_exec_prefix="$exec_prefix"
7934
  exec_prefix="$acl_final_exec_prefix"
7935
  eval x=\"$x\"
7936
  exec_prefix="$acl_save_exec_prefix"
7937
  prefix="$acl_save_prefix"
7938
 
7939
                          if test "X$x" = "X-L$additional_libdir"; then
7940
                            haveit=yes
7941
                            break
7942
                          fi
7943
                        done
7944
                        if test -z "$haveit"; then
7945
                          if test -d "$additional_libdir"; then
7946
                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7947
                          fi
7948
                        fi
7949
                      fi
7950
                    fi
7951
                    ;;
7952
                  -R*)
7953
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7954
                    if test "$enable_rpath" != no; then
7955
                                                                  haveit=
7956
                      for x in $rpathdirs; do
7957
                        if test "X$x" = "X$dir"; then
7958
                          haveit=yes
7959
                          break
7960
                        fi
7961
                      done
7962
                      if test -z "$haveit"; then
7963
                        rpathdirs="$rpathdirs $dir"
7964
                      fi
7965
                                                                  haveit=
7966
                      for x in $ltrpathdirs; do
7967
                        if test "X$x" = "X$dir"; then
7968
                          haveit=yes
7969
                          break
7970
                        fi
7971
                      done
7972
                      if test -z "$haveit"; then
7973
                        ltrpathdirs="$ltrpathdirs $dir"
7974
                      fi
7975
                    fi
7976
                    ;;
7977
                  -l*)
7978
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7979
                    ;;
7980
                  *.la)
7981
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7982
                    ;;
7983
                  *)
7984
                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7985
                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7986
                    ;;
7987
                esac
7988
              done
7989
            fi
7990
          else
7991
                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7992
            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7993
          fi
7994
        fi
7995
      fi
7996
    done
7997
  done
7998
  if test "X$rpathdirs" != "X"; then
7999
    if test -n "$hardcode_libdir_separator"; then
8000
                        alldirs=
8001
      for found_dir in $rpathdirs; do
8002
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8003
      done
8004
            acl_save_libdir="$libdir"
8005
      libdir="$alldirs"
8006
      eval flag=\"$hardcode_libdir_flag_spec\"
8007
      libdir="$acl_save_libdir"
8008
      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8009
    else
8010
            for found_dir in $rpathdirs; do
8011
        acl_save_libdir="$libdir"
8012
        libdir="$found_dir"
8013
        eval flag=\"$hardcode_libdir_flag_spec\"
8014
        libdir="$acl_save_libdir"
8015
        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8016
      done
8017
    fi
8018
  fi
8019
  if test "X$ltrpathdirs" != "X"; then
8020
            for found_dir in $ltrpathdirs; do
8021
      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8022
    done
8023
  fi
8024
 
8025
 
8026
        ac_save_CPPFLAGS="$CPPFLAGS"
8027
 
8028
  for element in $INCEXPAT; do
8029
    haveit=
8030
    for x in $CPPFLAGS; do
8031
 
8032
  acl_save_prefix="$prefix"
8033
  prefix="$acl_final_prefix"
8034
  acl_save_exec_prefix="$exec_prefix"
8035
  exec_prefix="$acl_final_exec_prefix"
8036
  eval x=\"$x\"
8037
  exec_prefix="$acl_save_exec_prefix"
8038
  prefix="$acl_save_prefix"
8039
 
8040
      if test "X$x" = "X$element"; then
8041
        haveit=yes
8042
        break
8043
      fi
8044
    done
8045
    if test -z "$haveit"; then
8046
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8047
    fi
8048
  done
8049
 
8050
 
8051 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for libexpat" >&5
8052
$as_echo_n "checking for libexpat... " >&6; }
8053 131 jeremybenn
if test "${ac_cv_libexpat+set}" = set; then
8054 213 jeremybenn
  $as_echo_n "(cached) " >&6
8055 131 jeremybenn
else
8056
 
8057
    ac_save_LIBS="$LIBS"
8058
    LIBS="$LIBS $LIBEXPAT"
8059
    cat >conftest.$ac_ext <<_ACEOF
8060
/* confdefs.h.  */
8061
_ACEOF
8062
cat confdefs.h >>conftest.$ac_ext
8063
cat >>conftest.$ac_ext <<_ACEOF
8064
/* end confdefs.h.  */
8065
#include "expat.h"
8066
int
8067
main ()
8068
{
8069
XML_Parser p = XML_ParserCreate (0);
8070
  ;
8071
  return 0;
8072
}
8073
_ACEOF
8074
rm -f conftest.$ac_objext conftest$ac_exeext
8075 213 jeremybenn
if { (ac_try="$ac_link"
8076
case "(($ac_try" in
8077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078
  *) ac_try_echo=$ac_try;;
8079
esac
8080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081
$as_echo "$ac_try_echo") >&5
8082
  (eval "$ac_link") 2>conftest.er1
8083 131 jeremybenn
  ac_status=$?
8084
  grep -v '^ *+' conftest.er1 >conftest.err
8085
  rm -f conftest.er1
8086
  cat conftest.err >&5
8087 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088
  (exit $ac_status); } && {
8089
         test -z "$ac_c_werror_flag" ||
8090
         test ! -s conftest.err
8091
       } && test -s conftest$ac_exeext && {
8092
         test "$cross_compiling" = yes ||
8093
         $as_test_x conftest$ac_exeext
8094
       }; then
8095 131 jeremybenn
  ac_cv_libexpat=yes
8096
else
8097 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8098 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8099
 
8100 213 jeremybenn
        ac_cv_libexpat=no
8101 131 jeremybenn
fi
8102 213 jeremybenn
 
8103
rm -rf conftest.dSYM
8104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
8106
    LIBS="$ac_save_LIBS"
8107
 
8108
fi
8109 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
8110
$as_echo "$ac_cv_libexpat" >&6; }
8111 131 jeremybenn
  if test "$ac_cv_libexpat" = yes; then
8112
    HAVE_LIBEXPAT=yes
8113
 
8114
cat >>confdefs.h <<\_ACEOF
8115
#define HAVE_LIBEXPAT 1
8116
_ACEOF
8117
 
8118 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking how to link with libexpat" >&5
8119
$as_echo_n "checking how to link with libexpat... " >&6; }
8120
    { $as_echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
8121
$as_echo "$LIBEXPAT" >&6; }
8122 131 jeremybenn
  else
8123
    HAVE_LIBEXPAT=no
8124
            CPPFLAGS="$ac_save_CPPFLAGS"
8125
    LIBEXPAT=
8126
    LTLIBEXPAT=
8127
  fi
8128
 
8129
 
8130
 
8131
 
8132
 
8133
 
8134
  if test "$HAVE_LIBEXPAT" != yes; then
8135
    if test "$with_expat" = yes; then
8136 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
8137
$as_echo "$as_me: error: expat is missing or unusable" >&2;}
8138 131 jeremybenn
   { (exit 1); exit 1; }; }
8139
    else
8140 213 jeremybenn
      { $as_echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8141
$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8142 131 jeremybenn
    fi
8143
  else
8144
    save_LIBS=$LIBS
8145
    LIBS="$LIBS $LIBEXPAT"
8146
 
8147
for ac_func in XML_StopParser
8148
do
8149 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8150
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8151
$as_echo_n "checking for $ac_func... " >&6; }
8152
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8153
  $as_echo_n "(cached) " >&6
8154 131 jeremybenn
else
8155
  cat >conftest.$ac_ext <<_ACEOF
8156
/* confdefs.h.  */
8157
_ACEOF
8158
cat confdefs.h >>conftest.$ac_ext
8159
cat >>conftest.$ac_ext <<_ACEOF
8160
/* end confdefs.h.  */
8161
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
8162
   For example, HP-UX 11i  declares gettimeofday.  */
8163
#define $ac_func innocuous_$ac_func
8164
 
8165
/* System header to define __stub macros and hopefully few prototypes,
8166
    which can conflict with char $ac_func (); below.
8167
    Prefer  to  if __STDC__ is defined, since
8168
     exists even on freestanding compilers.  */
8169
 
8170
#ifdef __STDC__
8171
# include 
8172
#else
8173
# include 
8174
#endif
8175
 
8176
#undef $ac_func
8177
 
8178 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
8179
   Use char because int might match the return type of a GCC
8180
   builtin and then its argument prototype would still apply.  */
8181 131 jeremybenn
#ifdef __cplusplus
8182
extern "C"
8183
#endif
8184
char $ac_func ();
8185
/* The GNU C library defines this for functions which it implements
8186
    to always fail with ENOSYS.  Some functions are actually named
8187
    something starting with __ and the normal name is an alias.  */
8188 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
8189 131 jeremybenn
choke me
8190
#endif
8191
 
8192
int
8193
main ()
8194
{
8195 213 jeremybenn
return $ac_func ();
8196 131 jeremybenn
  ;
8197
  return 0;
8198
}
8199
_ACEOF
8200
rm -f conftest.$ac_objext conftest$ac_exeext
8201 213 jeremybenn
if { (ac_try="$ac_link"
8202
case "(($ac_try" in
8203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204
  *) ac_try_echo=$ac_try;;
8205
esac
8206
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8207
$as_echo "$ac_try_echo") >&5
8208
  (eval "$ac_link") 2>conftest.er1
8209 131 jeremybenn
  ac_status=$?
8210
  grep -v '^ *+' conftest.er1 >conftest.err
8211
  rm -f conftest.er1
8212
  cat conftest.err >&5
8213 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214
  (exit $ac_status); } && {
8215
         test -z "$ac_c_werror_flag" ||
8216
         test ! -s conftest.err
8217
       } && test -s conftest$ac_exeext && {
8218
         test "$cross_compiling" = yes ||
8219
         $as_test_x conftest$ac_exeext
8220
       }; then
8221 131 jeremybenn
  eval "$as_ac_var=yes"
8222
else
8223 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8224 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8225
 
8226 213 jeremybenn
        eval "$as_ac_var=no"
8227 131 jeremybenn
fi
8228 213 jeremybenn
 
8229
rm -rf conftest.dSYM
8230
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8231 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
8232
fi
8233 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
8234
                 $as_echo "$as_val"'`
8235
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8236
$as_echo "$ac_res" >&6; }
8237
as_val=`eval 'as_val=${'$as_ac_var'}
8238
                 $as_echo "$as_val"'`
8239
   if test "x$as_val" = x""yes; then
8240 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
8241 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8242 131 jeremybenn
_ACEOF
8243
 
8244
fi
8245
done
8246
 
8247
    LIBS=$save_LIBS
8248
  fi
8249
fi
8250
 
8251 213 jeremybenn
# Added from binutils 2.20.1/bfd
8252
#Link in zlib if we can.  This allows us to read compressed debug sections.
8253
# This is used only by compress.c.
8254
{ $as_echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
8255
$as_echo_n "checking for library containing zlibVersion... " >&6; }
8256
if test "${ac_cv_search_zlibVersion+set}" = set; then
8257
  $as_echo_n "(cached) " >&6
8258 131 jeremybenn
else
8259 213 jeremybenn
  ac_func_search_save_LIBS=$LIBS
8260
cat >conftest.$ac_ext <<_ACEOF
8261 131 jeremybenn
/* confdefs.h.  */
8262
_ACEOF
8263
cat confdefs.h >>conftest.$ac_ext
8264
cat >>conftest.$ac_ext <<_ACEOF
8265
/* end confdefs.h.  */
8266
 
8267 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
8268
   Use char because int might match the return type of a GCC
8269
   builtin and then its argument prototype would still apply.  */
8270
#ifdef __cplusplus
8271
extern "C"
8272
#endif
8273
char zlibVersion ();
8274 131 jeremybenn
int
8275
main ()
8276
{
8277 213 jeremybenn
return zlibVersion ();
8278 131 jeremybenn
  ;
8279
  return 0;
8280
}
8281
_ACEOF
8282 213 jeremybenn
for ac_lib in '' z; do
8283
  if test -z "$ac_lib"; then
8284
    ac_res="none required"
8285
  else
8286
    ac_res=-l$ac_lib
8287
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8288
  fi
8289
  rm -f conftest.$ac_objext conftest$ac_exeext
8290
if { (ac_try="$ac_link"
8291
case "(($ac_try" in
8292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293
  *) ac_try_echo=$ac_try;;
8294
esac
8295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296
$as_echo "$ac_try_echo") >&5
8297
  (eval "$ac_link") 2>conftest.er1
8298 131 jeremybenn
  ac_status=$?
8299
  grep -v '^ *+' conftest.er1 >conftest.err
8300
  rm -f conftest.er1
8301
  cat conftest.err >&5
8302 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303
  (exit $ac_status); } && {
8304
         test -z "$ac_c_werror_flag" ||
8305
         test ! -s conftest.err
8306
       } && test -s conftest$ac_exeext && {
8307
         test "$cross_compiling" = yes ||
8308
         $as_test_x conftest$ac_exeext
8309
       }; then
8310
  ac_cv_search_zlibVersion=$ac_res
8311 131 jeremybenn
else
8312 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8313 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8314
 
8315 213 jeremybenn
 
8316 131 jeremybenn
fi
8317
 
8318 213 jeremybenn
rm -rf conftest.dSYM
8319
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320
      conftest$ac_exeext
8321
  if test "${ac_cv_search_zlibVersion+set}" = set; then
8322
  break
8323 131 jeremybenn
fi
8324
done
8325 213 jeremybenn
if test "${ac_cv_search_zlibVersion+set}" = set; then
8326
  :
8327 131 jeremybenn
else
8328 213 jeremybenn
  ac_cv_search_zlibVersion=no
8329
fi
8330
rm conftest.$ac_ext
8331
LIBS=$ac_func_search_save_LIBS
8332
fi
8333
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
8334
$as_echo "$ac_cv_search_zlibVersion" >&6; }
8335
ac_res=$ac_cv_search_zlibVersion
8336
if test "$ac_res" != no; then
8337
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8338
 
8339
for ac_header in zlib.h
8340
do
8341
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8343
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8344
$as_echo_n "checking for $ac_header... " >&6; }
8345
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346
  $as_echo_n "(cached) " >&6
8347
fi
8348
ac_res=`eval 'as_val=${'$as_ac_Header'}
8349
                 $as_echo "$as_val"'`
8350
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8351
$as_echo "$ac_res" >&6; }
8352
else
8353
  # Is the header compilable?
8354
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8355
$as_echo_n "checking $ac_header usability... " >&6; }
8356 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
8357
/* confdefs.h.  */
8358
_ACEOF
8359
cat confdefs.h >>conftest.$ac_ext
8360
cat >>conftest.$ac_ext <<_ACEOF
8361
/* end confdefs.h.  */
8362 213 jeremybenn
$ac_includes_default
8363
#include <$ac_header>
8364
_ACEOF
8365
rm -f conftest.$ac_objext
8366
if { (ac_try="$ac_compile"
8367
case "(($ac_try" in
8368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369
  *) ac_try_echo=$ac_try;;
8370
esac
8371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372
$as_echo "$ac_try_echo") >&5
8373
  (eval "$ac_compile") 2>conftest.er1
8374
  ac_status=$?
8375
  grep -v '^ *+' conftest.er1 >conftest.err
8376
  rm -f conftest.er1
8377
  cat conftest.err >&5
8378
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379
  (exit $ac_status); } && {
8380
         test -z "$ac_c_werror_flag" ||
8381
         test ! -s conftest.err
8382
       } && test -s conftest.$ac_objext; then
8383
  ac_header_compiler=yes
8384
else
8385
  $as_echo "$as_me: failed program was:" >&5
8386
sed 's/^/| /' conftest.$ac_ext >&5
8387 131 jeremybenn
 
8388 213 jeremybenn
        ac_header_compiler=no
8389
fi
8390
 
8391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393
$as_echo "$ac_header_compiler" >&6; }
8394
 
8395
# Is the header present?
8396
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397
$as_echo_n "checking $ac_header presence... " >&6; }
8398
cat >conftest.$ac_ext <<_ACEOF
8399
/* confdefs.h.  */
8400 131 jeremybenn
_ACEOF
8401 213 jeremybenn
cat confdefs.h >>conftest.$ac_ext
8402
cat >>conftest.$ac_ext <<_ACEOF
8403
/* end confdefs.h.  */
8404
#include <$ac_header>
8405
_ACEOF
8406
if { (ac_try="$ac_cpp conftest.$ac_ext"
8407
case "(($ac_try" in
8408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409
  *) ac_try_echo=$ac_try;;
8410
esac
8411
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412
$as_echo "$ac_try_echo") >&5
8413
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8414 131 jeremybenn
  ac_status=$?
8415
  grep -v '^ *+' conftest.er1 >conftest.err
8416
  rm -f conftest.er1
8417
  cat conftest.err >&5
8418 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419
  (exit $ac_status); } >/dev/null && {
8420
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8421
         test ! -s conftest.err
8422
       }; then
8423
  ac_header_preproc=yes
8424 131 jeremybenn
else
8425 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8426 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8427
 
8428 213 jeremybenn
  ac_header_preproc=no
8429 131 jeremybenn
fi
8430 213 jeremybenn
 
8431
rm -f conftest.err conftest.$ac_ext
8432
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433
$as_echo "$ac_header_preproc" >&6; }
8434
 
8435
# So?  What about this header?
8436
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437
  yes:no: )
8438
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442
    ac_header_preproc=yes
8443
    ;;
8444
  no:yes:* )
8445
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8448
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8449
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8452
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8453
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8457
 
8458
    ;;
8459
esac
8460
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8461
$as_echo_n "checking for $ac_header... " >&6; }
8462
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463
  $as_echo_n "(cached) " >&6
8464
else
8465
  eval "$as_ac_Header=\$ac_header_preproc"
8466
fi
8467
ac_res=`eval 'as_val=${'$as_ac_Header'}
8468
                 $as_echo "$as_val"'`
8469
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8470
$as_echo "$ac_res" >&6; }
8471
 
8472
fi
8473
as_val=`eval 'as_val=${'$as_ac_Header'}
8474
                 $as_echo "$as_val"'`
8475
   if test "x$as_val" = x""yes; then
8476
  cat >>confdefs.h <<_ACEOF
8477
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8478
_ACEOF
8479
 
8480
fi
8481
 
8482
done
8483
 
8484
fi
8485
 
8486
 
8487
# ------------------------- #
8488
# Checks for header files.  #
8489
# ------------------------- #
8490
 
8491
 
8492
 
8493
 
8494
 
8495
 
8496
ac_header_dirent=no
8497
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8498
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8499
{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8500
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8501
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8502
  $as_echo_n "(cached) " >&6
8503
else
8504
  cat >conftest.$ac_ext <<_ACEOF
8505 131 jeremybenn
/* confdefs.h.  */
8506
_ACEOF
8507
cat confdefs.h >>conftest.$ac_ext
8508
cat >>conftest.$ac_ext <<_ACEOF
8509
/* end confdefs.h.  */
8510 213 jeremybenn
#include 
8511
#include <$ac_hdr>
8512 131 jeremybenn
 
8513
int
8514
main ()
8515
{
8516 213 jeremybenn
if ((DIR *) 0)
8517
return 0;
8518 131 jeremybenn
  ;
8519
  return 0;
8520
}
8521
_ACEOF
8522 213 jeremybenn
rm -f conftest.$ac_objext
8523
if { (ac_try="$ac_compile"
8524
case "(($ac_try" in
8525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526
  *) ac_try_echo=$ac_try;;
8527
esac
8528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529
$as_echo "$ac_try_echo") >&5
8530
  (eval "$ac_compile") 2>conftest.er1
8531 131 jeremybenn
  ac_status=$?
8532
  grep -v '^ *+' conftest.er1 >conftest.err
8533
  rm -f conftest.er1
8534
  cat conftest.err >&5
8535 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536
  (exit $ac_status); } && {
8537
         test -z "$ac_c_werror_flag" ||
8538
         test ! -s conftest.err
8539
       } && test -s conftest.$ac_objext; then
8540
  eval "$as_ac_Header=yes"
8541 131 jeremybenn
else
8542 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8543 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8544
 
8545 213 jeremybenn
        eval "$as_ac_Header=no"
8546 131 jeremybenn
fi
8547 213 jeremybenn
 
8548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 131 jeremybenn
fi
8550 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
8551
                 $as_echo "$as_val"'`
8552
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8553
$as_echo "$ac_res" >&6; }
8554
as_val=`eval 'as_val=${'$as_ac_Header'}
8555
                 $as_echo "$as_val"'`
8556
   if test "x$as_val" = x""yes; then
8557
  cat >>confdefs.h <<_ACEOF
8558
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8559
_ACEOF
8560 131 jeremybenn
 
8561 213 jeremybenn
ac_header_dirent=$ac_hdr; break
8562 131 jeremybenn
fi
8563
 
8564 213 jeremybenn
done
8565
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8566
if test $ac_header_dirent = dirent.h; then
8567
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8568
$as_echo_n "checking for library containing opendir... " >&6; }
8569 131 jeremybenn
if test "${ac_cv_search_opendir+set}" = set; then
8570 213 jeremybenn
  $as_echo_n "(cached) " >&6
8571 131 jeremybenn
else
8572
  ac_func_search_save_LIBS=$LIBS
8573
cat >conftest.$ac_ext <<_ACEOF
8574
/* confdefs.h.  */
8575
_ACEOF
8576
cat confdefs.h >>conftest.$ac_ext
8577
cat >>conftest.$ac_ext <<_ACEOF
8578
/* end confdefs.h.  */
8579
 
8580 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
8581
   Use char because int might match the return type of a GCC
8582
   builtin and then its argument prototype would still apply.  */
8583 131 jeremybenn
#ifdef __cplusplus
8584
extern "C"
8585
#endif
8586
char opendir ();
8587
int
8588
main ()
8589
{
8590 213 jeremybenn
return opendir ();
8591 131 jeremybenn
  ;
8592
  return 0;
8593
}
8594
_ACEOF
8595 213 jeremybenn
for ac_lib in '' dir; do
8596
  if test -z "$ac_lib"; then
8597
    ac_res="none required"
8598
  else
8599
    ac_res=-l$ac_lib
8600
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8601
  fi
8602
  rm -f conftest.$ac_objext conftest$ac_exeext
8603
if { (ac_try="$ac_link"
8604
case "(($ac_try" in
8605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606
  *) ac_try_echo=$ac_try;;
8607
esac
8608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8609
$as_echo "$ac_try_echo") >&5
8610
  (eval "$ac_link") 2>conftest.er1
8611 131 jeremybenn
  ac_status=$?
8612
  grep -v '^ *+' conftest.er1 >conftest.err
8613
  rm -f conftest.er1
8614
  cat conftest.err >&5
8615 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616
  (exit $ac_status); } && {
8617
         test -z "$ac_c_werror_flag" ||
8618
         test ! -s conftest.err
8619
       } && test -s conftest$ac_exeext && {
8620
         test "$cross_compiling" = yes ||
8621
         $as_test_x conftest$ac_exeext
8622
       }; then
8623
  ac_cv_search_opendir=$ac_res
8624 131 jeremybenn
else
8625 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8626 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8627
 
8628 213 jeremybenn
 
8629 131 jeremybenn
fi
8630 213 jeremybenn
 
8631
rm -rf conftest.dSYM
8632
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8633
      conftest$ac_exeext
8634
  if test "${ac_cv_search_opendir+set}" = set; then
8635
  break
8636
fi
8637
done
8638
if test "${ac_cv_search_opendir+set}" = set; then
8639
  :
8640
else
8641
  ac_cv_search_opendir=no
8642
fi
8643
rm conftest.$ac_ext
8644
LIBS=$ac_func_search_save_LIBS
8645
fi
8646
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8647
$as_echo "$ac_cv_search_opendir" >&6; }
8648
ac_res=$ac_cv_search_opendir
8649
if test "$ac_res" != no; then
8650
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8651
 
8652
fi
8653
 
8654
else
8655
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8656
$as_echo_n "checking for library containing opendir... " >&6; }
8657
if test "${ac_cv_search_opendir+set}" = set; then
8658
  $as_echo_n "(cached) " >&6
8659
else
8660
  ac_func_search_save_LIBS=$LIBS
8661
cat >conftest.$ac_ext <<_ACEOF
8662 131 jeremybenn
/* confdefs.h.  */
8663
_ACEOF
8664
cat confdefs.h >>conftest.$ac_ext
8665
cat >>conftest.$ac_ext <<_ACEOF
8666
/* end confdefs.h.  */
8667
 
8668 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
8669
   Use char because int might match the return type of a GCC
8670
   builtin and then its argument prototype would still apply.  */
8671 131 jeremybenn
#ifdef __cplusplus
8672
extern "C"
8673
#endif
8674
char opendir ();
8675
int
8676
main ()
8677
{
8678 213 jeremybenn
return opendir ();
8679 131 jeremybenn
  ;
8680
  return 0;
8681
}
8682
_ACEOF
8683 213 jeremybenn
for ac_lib in '' x; do
8684
  if test -z "$ac_lib"; then
8685
    ac_res="none required"
8686
  else
8687
    ac_res=-l$ac_lib
8688
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8689
  fi
8690
  rm -f conftest.$ac_objext conftest$ac_exeext
8691
if { (ac_try="$ac_link"
8692
case "(($ac_try" in
8693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694
  *) ac_try_echo=$ac_try;;
8695
esac
8696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697
$as_echo "$ac_try_echo") >&5
8698
  (eval "$ac_link") 2>conftest.er1
8699 131 jeremybenn
  ac_status=$?
8700
  grep -v '^ *+' conftest.er1 >conftest.err
8701
  rm -f conftest.er1
8702
  cat conftest.err >&5
8703 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704
  (exit $ac_status); } && {
8705
         test -z "$ac_c_werror_flag" ||
8706
         test ! -s conftest.err
8707
       } && test -s conftest$ac_exeext && {
8708
         test "$cross_compiling" = yes ||
8709
         $as_test_x conftest$ac_exeext
8710
       }; then
8711
  ac_cv_search_opendir=$ac_res
8712 131 jeremybenn
else
8713 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8714 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8715
 
8716 213 jeremybenn
 
8717 131 jeremybenn
fi
8718 213 jeremybenn
 
8719
rm -rf conftest.dSYM
8720
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8721
      conftest$ac_exeext
8722
  if test "${ac_cv_search_opendir+set}" = set; then
8723
  break
8724 131 jeremybenn
fi
8725 213 jeremybenn
done
8726
if test "${ac_cv_search_opendir+set}" = set; then
8727
  :
8728
else
8729
  ac_cv_search_opendir=no
8730
fi
8731
rm conftest.$ac_ext
8732 131 jeremybenn
LIBS=$ac_func_search_save_LIBS
8733
fi
8734 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8735
$as_echo "$ac_cv_search_opendir" >&6; }
8736
ac_res=$ac_cv_search_opendir
8737
if test "$ac_res" != no; then
8738
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8739 131 jeremybenn
 
8740
fi
8741
 
8742
fi
8743
 
8744 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8745
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8746 131 jeremybenn
if test "${ac_cv_header_stat_broken+set}" = set; then
8747 213 jeremybenn
  $as_echo_n "(cached) " >&6
8748 131 jeremybenn
else
8749
  cat >conftest.$ac_ext <<_ACEOF
8750
/* confdefs.h.  */
8751
_ACEOF
8752
cat confdefs.h >>conftest.$ac_ext
8753
cat >>conftest.$ac_ext <<_ACEOF
8754
/* end confdefs.h.  */
8755
#include 
8756
#include 
8757
 
8758 213 jeremybenn
#if defined S_ISBLK && defined S_IFDIR
8759
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8760 131 jeremybenn
#endif
8761
 
8762 213 jeremybenn
#if defined S_ISBLK && defined S_IFCHR
8763
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8764 131 jeremybenn
#endif
8765
 
8766 213 jeremybenn
#if defined S_ISLNK && defined S_IFREG
8767
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8768 131 jeremybenn
#endif
8769
 
8770 213 jeremybenn
#if defined S_ISSOCK && defined S_IFREG
8771
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8772 131 jeremybenn
#endif
8773
 
8774
_ACEOF
8775 213 jeremybenn
rm -f conftest.$ac_objext
8776
if { (ac_try="$ac_compile"
8777
case "(($ac_try" in
8778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779
  *) ac_try_echo=$ac_try;;
8780
esac
8781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8782
$as_echo "$ac_try_echo") >&5
8783
  (eval "$ac_compile") 2>conftest.er1
8784
  ac_status=$?
8785
  grep -v '^ *+' conftest.er1 >conftest.err
8786
  rm -f conftest.er1
8787
  cat conftest.err >&5
8788
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789
  (exit $ac_status); } && {
8790
         test -z "$ac_c_werror_flag" ||
8791
         test ! -s conftest.err
8792
       } && test -s conftest.$ac_objext; then
8793
  ac_cv_header_stat_broken=no
8794 131 jeremybenn
else
8795 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8796
sed 's/^/| /' conftest.$ac_ext >&5
8797
 
8798
        ac_cv_header_stat_broken=yes
8799 131 jeremybenn
fi
8800
 
8801 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 131 jeremybenn
fi
8803 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8804
$as_echo "$ac_cv_header_stat_broken" >&6; }
8805 131 jeremybenn
if test $ac_cv_header_stat_broken = yes; then
8806
 
8807
cat >>confdefs.h <<\_ACEOF
8808
#define STAT_MACROS_BROKEN 1
8809
_ACEOF
8810
 
8811
fi
8812
 
8813 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8814
$as_echo_n "checking for ANSI C header files... " >&6; }
8815 131 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
8816 213 jeremybenn
  $as_echo_n "(cached) " >&6
8817 131 jeremybenn
else
8818
  cat >conftest.$ac_ext <<_ACEOF
8819
/* confdefs.h.  */
8820
_ACEOF
8821
cat confdefs.h >>conftest.$ac_ext
8822
cat >>conftest.$ac_ext <<_ACEOF
8823
/* end confdefs.h.  */
8824
#include 
8825
#include 
8826
#include 
8827
#include 
8828
 
8829
int
8830
main ()
8831
{
8832
 
8833
  ;
8834
  return 0;
8835
}
8836
_ACEOF
8837
rm -f conftest.$ac_objext
8838 213 jeremybenn
if { (ac_try="$ac_compile"
8839
case "(($ac_try" in
8840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841
  *) ac_try_echo=$ac_try;;
8842
esac
8843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8844
$as_echo "$ac_try_echo") >&5
8845
  (eval "$ac_compile") 2>conftest.er1
8846 131 jeremybenn
  ac_status=$?
8847
  grep -v '^ *+' conftest.er1 >conftest.err
8848
  rm -f conftest.er1
8849
  cat conftest.err >&5
8850 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851
  (exit $ac_status); } && {
8852
         test -z "$ac_c_werror_flag" ||
8853
         test ! -s conftest.err
8854
       } && test -s conftest.$ac_objext; then
8855 131 jeremybenn
  ac_cv_header_stdc=yes
8856
else
8857 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8858 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8859
 
8860 213 jeremybenn
        ac_cv_header_stdc=no
8861 131 jeremybenn
fi
8862
 
8863 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864
 
8865 131 jeremybenn
if test $ac_cv_header_stdc = yes; then
8866
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8867
  cat >conftest.$ac_ext <<_ACEOF
8868
/* confdefs.h.  */
8869
_ACEOF
8870
cat confdefs.h >>conftest.$ac_ext
8871
cat >>conftest.$ac_ext <<_ACEOF
8872
/* end confdefs.h.  */
8873
#include 
8874
 
8875
_ACEOF
8876
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877
  $EGREP "memchr" >/dev/null 2>&1; then
8878
  :
8879
else
8880
  ac_cv_header_stdc=no
8881
fi
8882
rm -f conftest*
8883
 
8884
fi
8885
 
8886
if test $ac_cv_header_stdc = yes; then
8887
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8888
  cat >conftest.$ac_ext <<_ACEOF
8889
/* confdefs.h.  */
8890
_ACEOF
8891
cat confdefs.h >>conftest.$ac_ext
8892
cat >>conftest.$ac_ext <<_ACEOF
8893
/* end confdefs.h.  */
8894
#include 
8895
 
8896
_ACEOF
8897
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8898
  $EGREP "free" >/dev/null 2>&1; then
8899
  :
8900
else
8901
  ac_cv_header_stdc=no
8902
fi
8903
rm -f conftest*
8904
 
8905
fi
8906
 
8907
if test $ac_cv_header_stdc = yes; then
8908
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8909
  if test "$cross_compiling" = yes; then
8910
  :
8911
else
8912
  cat >conftest.$ac_ext <<_ACEOF
8913
/* confdefs.h.  */
8914
_ACEOF
8915
cat confdefs.h >>conftest.$ac_ext
8916
cat >>conftest.$ac_ext <<_ACEOF
8917
/* end confdefs.h.  */
8918
#include 
8919 213 jeremybenn
#include 
8920 131 jeremybenn
#if ((' ' & 0x0FF) == 0x020)
8921
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8922
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8923
#else
8924
# define ISLOWER(c) \
8925
                   (('a' <= (c) && (c) <= 'i') \
8926
                     || ('j' <= (c) && (c) <= 'r') \
8927
                     || ('s' <= (c) && (c) <= 'z'))
8928
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8929
#endif
8930
 
8931
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8932
int
8933
main ()
8934
{
8935
  int i;
8936
  for (i = 0; i < 256; i++)
8937
    if (XOR (islower (i), ISLOWER (i))
8938
        || toupper (i) != TOUPPER (i))
8939 213 jeremybenn
      return 2;
8940
  return 0;
8941 131 jeremybenn
}
8942
_ACEOF
8943
rm -f conftest$ac_exeext
8944 213 jeremybenn
if { (ac_try="$ac_link"
8945
case "(($ac_try" in
8946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947
  *) ac_try_echo=$ac_try;;
8948
esac
8949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950
$as_echo "$ac_try_echo") >&5
8951
  (eval "$ac_link") 2>&5
8952 131 jeremybenn
  ac_status=$?
8953 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8955 213 jeremybenn
  { (case "(($ac_try" in
8956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957
  *) ac_try_echo=$ac_try;;
8958
esac
8959
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8960
$as_echo "$ac_try_echo") >&5
8961
  (eval "$ac_try") 2>&5
8962 131 jeremybenn
  ac_status=$?
8963 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 131 jeremybenn
  (exit $ac_status); }; }; then
8965
  :
8966
else
8967 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
8968
$as_echo "$as_me: failed program was:" >&5
8969 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8970
 
8971
( exit $ac_status )
8972
ac_cv_header_stdc=no
8973
fi
8974 213 jeremybenn
rm -rf conftest.dSYM
8975
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8976 131 jeremybenn
fi
8977 213 jeremybenn
 
8978
 
8979 131 jeremybenn
fi
8980
fi
8981 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8982
$as_echo "$ac_cv_header_stdc" >&6; }
8983 131 jeremybenn
if test $ac_cv_header_stdc = yes; then
8984
 
8985
cat >>confdefs.h <<\_ACEOF
8986
#define STDC_HEADERS 1
8987
_ACEOF
8988
 
8989
fi
8990
 
8991
 
8992
for ac_header in nlist.h
8993
do
8994 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8996
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8997
$as_echo_n "checking for $ac_header... " >&6; }
8998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8999
  $as_echo_n "(cached) " >&6
9000 131 jeremybenn
fi
9001 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9002
                 $as_echo "$as_val"'`
9003
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9004
$as_echo "$ac_res" >&6; }
9005 131 jeremybenn
else
9006
  # Is the header compilable?
9007 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9008
$as_echo_n "checking $ac_header usability... " >&6; }
9009 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9010
/* confdefs.h.  */
9011
_ACEOF
9012
cat confdefs.h >>conftest.$ac_ext
9013
cat >>conftest.$ac_ext <<_ACEOF
9014
/* end confdefs.h.  */
9015
$ac_includes_default
9016
#include <$ac_header>
9017
_ACEOF
9018
rm -f conftest.$ac_objext
9019 213 jeremybenn
if { (ac_try="$ac_compile"
9020
case "(($ac_try" in
9021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022
  *) ac_try_echo=$ac_try;;
9023
esac
9024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9025
$as_echo "$ac_try_echo") >&5
9026
  (eval "$ac_compile") 2>conftest.er1
9027 131 jeremybenn
  ac_status=$?
9028
  grep -v '^ *+' conftest.er1 >conftest.err
9029
  rm -f conftest.er1
9030
  cat conftest.err >&5
9031 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032
  (exit $ac_status); } && {
9033
         test -z "$ac_c_werror_flag" ||
9034
         test ! -s conftest.err
9035
       } && test -s conftest.$ac_objext; then
9036 131 jeremybenn
  ac_header_compiler=yes
9037
else
9038 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9039 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9040
 
9041 213 jeremybenn
        ac_header_compiler=no
9042 131 jeremybenn
fi
9043
 
9044 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046
$as_echo "$ac_header_compiler" >&6; }
9047
 
9048 131 jeremybenn
# Is the header present?
9049 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050
$as_echo_n "checking $ac_header presence... " >&6; }
9051 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9052
/* confdefs.h.  */
9053
_ACEOF
9054
cat confdefs.h >>conftest.$ac_ext
9055
cat >>conftest.$ac_ext <<_ACEOF
9056
/* end confdefs.h.  */
9057
#include <$ac_header>
9058
_ACEOF
9059 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9060
case "(($ac_try" in
9061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062
  *) ac_try_echo=$ac_try;;
9063
esac
9064
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9065
$as_echo "$ac_try_echo") >&5
9066
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9067 131 jeremybenn
  ac_status=$?
9068
  grep -v '^ *+' conftest.er1 >conftest.err
9069
  rm -f conftest.er1
9070
  cat conftest.err >&5
9071 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
  (exit $ac_status); } >/dev/null && {
9073
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9074
         test ! -s conftest.err
9075
       }; then
9076 131 jeremybenn
  ac_header_preproc=yes
9077
else
9078 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9079 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9080
 
9081
  ac_header_preproc=no
9082
fi
9083 213 jeremybenn
 
9084 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9085 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086
$as_echo "$ac_header_preproc" >&6; }
9087 131 jeremybenn
 
9088
# So?  What about this header?
9089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090
  yes:no: )
9091 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095 131 jeremybenn
    ac_header_preproc=yes
9096
    ;;
9097
  no:yes:* )
9098 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9101
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9102
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9105
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9106
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110
 
9111 131 jeremybenn
    ;;
9112
esac
9113 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9114
$as_echo_n "checking for $ac_header... " >&6; }
9115
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9116
  $as_echo_n "(cached) " >&6
9117 131 jeremybenn
else
9118
  eval "$as_ac_Header=\$ac_header_preproc"
9119
fi
9120 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9121
                 $as_echo "$as_val"'`
9122
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9123
$as_echo "$ac_res" >&6; }
9124 131 jeremybenn
 
9125
fi
9126 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9127
                 $as_echo "$as_val"'`
9128
   if test "x$as_val" = x""yes; then
9129 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9130 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 131 jeremybenn
_ACEOF
9132
 
9133
fi
9134
 
9135
done
9136
 
9137
 
9138
for ac_header in link.h
9139
do
9140 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9142
$as_echo_n "checking for $ac_header... " >&6; }
9143
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9144
  $as_echo_n "(cached) " >&6
9145 131 jeremybenn
else
9146
  cat >conftest.$ac_ext <<_ACEOF
9147
/* confdefs.h.  */
9148
_ACEOF
9149
cat confdefs.h >>conftest.$ac_ext
9150
cat >>conftest.$ac_ext <<_ACEOF
9151
/* end confdefs.h.  */
9152
#if HAVE_SYS_TYPES_H
9153
# include 
9154
#endif
9155
#if HAVE_NLIST_H
9156
# include 
9157
#endif
9158
 
9159
 
9160
#include <$ac_header>
9161
_ACEOF
9162
rm -f conftest.$ac_objext
9163 213 jeremybenn
if { (ac_try="$ac_compile"
9164
case "(($ac_try" in
9165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166
  *) ac_try_echo=$ac_try;;
9167
esac
9168
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9169
$as_echo "$ac_try_echo") >&5
9170
  (eval "$ac_compile") 2>conftest.er1
9171 131 jeremybenn
  ac_status=$?
9172
  grep -v '^ *+' conftest.er1 >conftest.err
9173
  rm -f conftest.er1
9174
  cat conftest.err >&5
9175 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176
  (exit $ac_status); } && {
9177
         test -z "$ac_c_werror_flag" ||
9178
         test ! -s conftest.err
9179
       } && test -s conftest.$ac_objext; then
9180 131 jeremybenn
  eval "$as_ac_Header=yes"
9181
else
9182 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9183 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9184
 
9185 213 jeremybenn
        eval "$as_ac_Header=no"
9186 131 jeremybenn
fi
9187 213 jeremybenn
 
9188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 131 jeremybenn
fi
9190 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9191
                 $as_echo "$as_val"'`
9192
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9193
$as_echo "$ac_res" >&6; }
9194
as_val=`eval 'as_val=${'$as_ac_Header'}
9195
                 $as_echo "$as_val"'`
9196
   if test "x$as_val" = x""yes; then
9197 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9198 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9199 131 jeremybenn
_ACEOF
9200
 
9201
fi
9202
 
9203
done
9204
 
9205
 
9206
for ac_header in machine/reg.h
9207
do
9208 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9209
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9211
$as_echo_n "checking for $ac_header... " >&6; }
9212
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9213
  $as_echo_n "(cached) " >&6
9214 131 jeremybenn
fi
9215 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9216
                 $as_echo "$as_val"'`
9217
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9218
$as_echo "$ac_res" >&6; }
9219 131 jeremybenn
else
9220
  # Is the header compilable?
9221 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9222
$as_echo_n "checking $ac_header usability... " >&6; }
9223 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9224
/* confdefs.h.  */
9225
_ACEOF
9226
cat confdefs.h >>conftest.$ac_ext
9227
cat >>conftest.$ac_ext <<_ACEOF
9228
/* end confdefs.h.  */
9229
$ac_includes_default
9230
#include <$ac_header>
9231
_ACEOF
9232
rm -f conftest.$ac_objext
9233 213 jeremybenn
if { (ac_try="$ac_compile"
9234
case "(($ac_try" in
9235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236
  *) ac_try_echo=$ac_try;;
9237
esac
9238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239
$as_echo "$ac_try_echo") >&5
9240
  (eval "$ac_compile") 2>conftest.er1
9241 131 jeremybenn
  ac_status=$?
9242
  grep -v '^ *+' conftest.er1 >conftest.err
9243
  rm -f conftest.er1
9244
  cat conftest.err >&5
9245 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246
  (exit $ac_status); } && {
9247
         test -z "$ac_c_werror_flag" ||
9248
         test ! -s conftest.err
9249
       } && test -s conftest.$ac_objext; then
9250 131 jeremybenn
  ac_header_compiler=yes
9251
else
9252 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9253 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9254
 
9255 213 jeremybenn
        ac_header_compiler=no
9256 131 jeremybenn
fi
9257
 
9258 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9260
$as_echo "$ac_header_compiler" >&6; }
9261
 
9262 131 jeremybenn
# Is the header present?
9263 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9264
$as_echo_n "checking $ac_header presence... " >&6; }
9265 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9266
/* confdefs.h.  */
9267
_ACEOF
9268
cat confdefs.h >>conftest.$ac_ext
9269
cat >>conftest.$ac_ext <<_ACEOF
9270
/* end confdefs.h.  */
9271
#include <$ac_header>
9272
_ACEOF
9273 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9274
case "(($ac_try" in
9275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276
  *) ac_try_echo=$ac_try;;
9277
esac
9278
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9279
$as_echo "$ac_try_echo") >&5
9280
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9281 131 jeremybenn
  ac_status=$?
9282
  grep -v '^ *+' conftest.er1 >conftest.err
9283
  rm -f conftest.er1
9284
  cat conftest.err >&5
9285 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286
  (exit $ac_status); } >/dev/null && {
9287
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9288
         test ! -s conftest.err
9289
       }; then
9290 131 jeremybenn
  ac_header_preproc=yes
9291
else
9292 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9293 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9294
 
9295
  ac_header_preproc=no
9296
fi
9297 213 jeremybenn
 
9298 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9299 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9300
$as_echo "$ac_header_preproc" >&6; }
9301 131 jeremybenn
 
9302
# So?  What about this header?
9303
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9304
  yes:no: )
9305 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9306
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9307
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9308
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9309 131 jeremybenn
    ac_header_preproc=yes
9310
    ;;
9311
  no:yes:* )
9312 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9313
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9314
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9315
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9316
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9317
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9318
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9319
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9320
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9323
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9324
 
9325 131 jeremybenn
    ;;
9326
esac
9327 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9328
$as_echo_n "checking for $ac_header... " >&6; }
9329
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330
  $as_echo_n "(cached) " >&6
9331 131 jeremybenn
else
9332
  eval "$as_ac_Header=\$ac_header_preproc"
9333
fi
9334 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9335
                 $as_echo "$as_val"'`
9336
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9337
$as_echo "$ac_res" >&6; }
9338 131 jeremybenn
 
9339
fi
9340 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9341
                 $as_echo "$as_val"'`
9342
   if test "x$as_val" = x""yes; then
9343 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9344 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 131 jeremybenn
_ACEOF
9346
 
9347
fi
9348
 
9349
done
9350
 
9351
 
9352
 
9353
for ac_header in poll.h sys/poll.h
9354
do
9355 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9356
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9358
$as_echo_n "checking for $ac_header... " >&6; }
9359
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360
  $as_echo_n "(cached) " >&6
9361 131 jeremybenn
fi
9362 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9363
                 $as_echo "$as_val"'`
9364
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9365
$as_echo "$ac_res" >&6; }
9366 131 jeremybenn
else
9367
  # Is the header compilable?
9368 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9369
$as_echo_n "checking $ac_header usability... " >&6; }
9370 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9371
/* confdefs.h.  */
9372
_ACEOF
9373
cat confdefs.h >>conftest.$ac_ext
9374
cat >>conftest.$ac_ext <<_ACEOF
9375
/* end confdefs.h.  */
9376
$ac_includes_default
9377
#include <$ac_header>
9378
_ACEOF
9379
rm -f conftest.$ac_objext
9380 213 jeremybenn
if { (ac_try="$ac_compile"
9381
case "(($ac_try" in
9382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383
  *) ac_try_echo=$ac_try;;
9384
esac
9385
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386
$as_echo "$ac_try_echo") >&5
9387
  (eval "$ac_compile") 2>conftest.er1
9388 131 jeremybenn
  ac_status=$?
9389
  grep -v '^ *+' conftest.er1 >conftest.err
9390
  rm -f conftest.er1
9391
  cat conftest.err >&5
9392 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393
  (exit $ac_status); } && {
9394
         test -z "$ac_c_werror_flag" ||
9395
         test ! -s conftest.err
9396
       } && test -s conftest.$ac_objext; then
9397 131 jeremybenn
  ac_header_compiler=yes
9398
else
9399 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9400 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9401
 
9402 213 jeremybenn
        ac_header_compiler=no
9403 131 jeremybenn
fi
9404
 
9405 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407
$as_echo "$ac_header_compiler" >&6; }
9408
 
9409 131 jeremybenn
# Is the header present?
9410 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9411
$as_echo_n "checking $ac_header presence... " >&6; }
9412 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9413
/* confdefs.h.  */
9414
_ACEOF
9415
cat confdefs.h >>conftest.$ac_ext
9416
cat >>conftest.$ac_ext <<_ACEOF
9417
/* end confdefs.h.  */
9418
#include <$ac_header>
9419
_ACEOF
9420 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9421
case "(($ac_try" in
9422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423
  *) ac_try_echo=$ac_try;;
9424
esac
9425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426
$as_echo "$ac_try_echo") >&5
9427
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9428 131 jeremybenn
  ac_status=$?
9429
  grep -v '^ *+' conftest.er1 >conftest.err
9430
  rm -f conftest.er1
9431
  cat conftest.err >&5
9432 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433
  (exit $ac_status); } >/dev/null && {
9434
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9435
         test ! -s conftest.err
9436
       }; then
9437 131 jeremybenn
  ac_header_preproc=yes
9438
else
9439 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9440 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9441
 
9442
  ac_header_preproc=no
9443
fi
9444 213 jeremybenn
 
9445 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9446 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9447
$as_echo "$ac_header_preproc" >&6; }
9448 131 jeremybenn
 
9449
# So?  What about this header?
9450
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9451
  yes:no: )
9452 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9453
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9454
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9455
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9456 131 jeremybenn
    ac_header_preproc=yes
9457
    ;;
9458
  no:yes:* )
9459 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9460
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9461
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9462
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9463
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9464
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9465
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9466
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9467
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9468
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9469
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9470
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9471
 
9472 131 jeremybenn
    ;;
9473
esac
9474 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9475
$as_echo_n "checking for $ac_header... " >&6; }
9476
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9477
  $as_echo_n "(cached) " >&6
9478 131 jeremybenn
else
9479
  eval "$as_ac_Header=\$ac_header_preproc"
9480
fi
9481 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9482
                 $as_echo "$as_val"'`
9483
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9484
$as_echo "$ac_res" >&6; }
9485 131 jeremybenn
 
9486
fi
9487 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9488
                 $as_echo "$as_val"'`
9489
   if test "x$as_val" = x""yes; then
9490 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9491 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492 131 jeremybenn
_ACEOF
9493
 
9494
fi
9495
 
9496
done
9497
 
9498
 
9499
 
9500
 
9501
for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9502
do
9503 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9506
$as_echo_n "checking for $ac_header... " >&6; }
9507
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508
  $as_echo_n "(cached) " >&6
9509 131 jeremybenn
fi
9510 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9511
                 $as_echo "$as_val"'`
9512
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9513
$as_echo "$ac_res" >&6; }
9514 131 jeremybenn
else
9515
  # Is the header compilable?
9516 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9517
$as_echo_n "checking $ac_header usability... " >&6; }
9518 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9519
/* confdefs.h.  */
9520
_ACEOF
9521
cat confdefs.h >>conftest.$ac_ext
9522
cat >>conftest.$ac_ext <<_ACEOF
9523
/* end confdefs.h.  */
9524
$ac_includes_default
9525
#include <$ac_header>
9526
_ACEOF
9527
rm -f conftest.$ac_objext
9528 213 jeremybenn
if { (ac_try="$ac_compile"
9529
case "(($ac_try" in
9530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531
  *) ac_try_echo=$ac_try;;
9532
esac
9533
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534
$as_echo "$ac_try_echo") >&5
9535
  (eval "$ac_compile") 2>conftest.er1
9536 131 jeremybenn
  ac_status=$?
9537
  grep -v '^ *+' conftest.er1 >conftest.err
9538
  rm -f conftest.er1
9539
  cat conftest.err >&5
9540 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541
  (exit $ac_status); } && {
9542
         test -z "$ac_c_werror_flag" ||
9543
         test ! -s conftest.err
9544
       } && test -s conftest.$ac_objext; then
9545 131 jeremybenn
  ac_header_compiler=yes
9546
else
9547 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9548 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9549
 
9550 213 jeremybenn
        ac_header_compiler=no
9551 131 jeremybenn
fi
9552
 
9553 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9555
$as_echo "$ac_header_compiler" >&6; }
9556
 
9557 131 jeremybenn
# Is the header present?
9558 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9559
$as_echo_n "checking $ac_header presence... " >&6; }
9560 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9561
/* confdefs.h.  */
9562
_ACEOF
9563
cat confdefs.h >>conftest.$ac_ext
9564
cat >>conftest.$ac_ext <<_ACEOF
9565
/* end confdefs.h.  */
9566
#include <$ac_header>
9567
_ACEOF
9568 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9569
case "(($ac_try" in
9570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571
  *) ac_try_echo=$ac_try;;
9572
esac
9573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9574
$as_echo "$ac_try_echo") >&5
9575
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9576 131 jeremybenn
  ac_status=$?
9577
  grep -v '^ *+' conftest.er1 >conftest.err
9578
  rm -f conftest.er1
9579
  cat conftest.err >&5
9580 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581
  (exit $ac_status); } >/dev/null && {
9582
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9583
         test ! -s conftest.err
9584
       }; then
9585 131 jeremybenn
  ac_header_preproc=yes
9586
else
9587 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9588 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9589
 
9590
  ac_header_preproc=no
9591
fi
9592 213 jeremybenn
 
9593 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9594 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9595
$as_echo "$ac_header_preproc" >&6; }
9596 131 jeremybenn
 
9597
# So?  What about this header?
9598
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9599
  yes:no: )
9600 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9601
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9602
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9603
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9604 131 jeremybenn
    ac_header_preproc=yes
9605
    ;;
9606
  no:yes:* )
9607 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9608
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9609
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9610
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9611
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9612
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9613
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9614
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9615
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9616
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9617
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9618
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9619
 
9620 131 jeremybenn
    ;;
9621
esac
9622 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9623
$as_echo_n "checking for $ac_header... " >&6; }
9624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9625
  $as_echo_n "(cached) " >&6
9626 131 jeremybenn
else
9627
  eval "$as_ac_Header=\$ac_header_preproc"
9628
fi
9629 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9630
                 $as_echo "$as_val"'`
9631
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9632
$as_echo "$ac_res" >&6; }
9633 131 jeremybenn
 
9634
fi
9635 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9636
                 $as_echo "$as_val"'`
9637
   if test "x$as_val" = x""yes; then
9638 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9639 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640 131 jeremybenn
_ACEOF
9641
 
9642
fi
9643
 
9644
done
9645
 
9646
 
9647
for ac_header in signal.h
9648
do
9649 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9650
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9651
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9652
$as_echo_n "checking for $ac_header... " >&6; }
9653
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9654
  $as_echo_n "(cached) " >&6
9655 131 jeremybenn
fi
9656 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9657
                 $as_echo "$as_val"'`
9658
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9659
$as_echo "$ac_res" >&6; }
9660 131 jeremybenn
else
9661
  # Is the header compilable?
9662 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9663
$as_echo_n "checking $ac_header usability... " >&6; }
9664 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9665
/* confdefs.h.  */
9666
_ACEOF
9667
cat confdefs.h >>conftest.$ac_ext
9668
cat >>conftest.$ac_ext <<_ACEOF
9669
/* end confdefs.h.  */
9670
$ac_includes_default
9671
#include <$ac_header>
9672
_ACEOF
9673
rm -f conftest.$ac_objext
9674 213 jeremybenn
if { (ac_try="$ac_compile"
9675
case "(($ac_try" in
9676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677
  *) ac_try_echo=$ac_try;;
9678
esac
9679
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9680
$as_echo "$ac_try_echo") >&5
9681
  (eval "$ac_compile") 2>conftest.er1
9682 131 jeremybenn
  ac_status=$?
9683
  grep -v '^ *+' conftest.er1 >conftest.err
9684
  rm -f conftest.er1
9685
  cat conftest.err >&5
9686 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687
  (exit $ac_status); } && {
9688
         test -z "$ac_c_werror_flag" ||
9689
         test ! -s conftest.err
9690
       } && test -s conftest.$ac_objext; then
9691 131 jeremybenn
  ac_header_compiler=yes
9692
else
9693 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9694 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9695
 
9696 213 jeremybenn
        ac_header_compiler=no
9697 131 jeremybenn
fi
9698
 
9699 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9701
$as_echo "$ac_header_compiler" >&6; }
9702
 
9703 131 jeremybenn
# Is the header present?
9704 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9705
$as_echo_n "checking $ac_header presence... " >&6; }
9706 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9707
/* confdefs.h.  */
9708
_ACEOF
9709
cat confdefs.h >>conftest.$ac_ext
9710
cat >>conftest.$ac_ext <<_ACEOF
9711
/* end confdefs.h.  */
9712
#include <$ac_header>
9713
_ACEOF
9714 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9715
case "(($ac_try" in
9716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717
  *) ac_try_echo=$ac_try;;
9718
esac
9719
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9720
$as_echo "$ac_try_echo") >&5
9721
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9722 131 jeremybenn
  ac_status=$?
9723
  grep -v '^ *+' conftest.er1 >conftest.err
9724
  rm -f conftest.er1
9725
  cat conftest.err >&5
9726 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727
  (exit $ac_status); } >/dev/null && {
9728
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9729
         test ! -s conftest.err
9730
       }; then
9731 131 jeremybenn
  ac_header_preproc=yes
9732
else
9733 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9734 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9735
 
9736
  ac_header_preproc=no
9737
fi
9738 213 jeremybenn
 
9739 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9740 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9741
$as_echo "$ac_header_preproc" >&6; }
9742 131 jeremybenn
 
9743
# So?  What about this header?
9744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9745
  yes:no: )
9746 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9747
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9748
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9749
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9750 131 jeremybenn
    ac_header_preproc=yes
9751
    ;;
9752
  no:yes:* )
9753 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9754
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9755
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9756
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9757
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9758
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9759
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9760
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9761
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9762
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9763
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9764
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9765
 
9766 131 jeremybenn
    ;;
9767
esac
9768 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9769
$as_echo_n "checking for $ac_header... " >&6; }
9770
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771
  $as_echo_n "(cached) " >&6
9772 131 jeremybenn
else
9773
  eval "$as_ac_Header=\$ac_header_preproc"
9774
fi
9775 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9776
                 $as_echo "$as_val"'`
9777
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9778
$as_echo "$ac_res" >&6; }
9779 131 jeremybenn
 
9780
fi
9781 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9782
                 $as_echo "$as_val"'`
9783
   if test "x$as_val" = x""yes; then
9784 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9785 213 jeremybenn
#define `$as_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 stddef.h
9794
do
9795 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9797
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9798
$as_echo_n "checking for $ac_header... " >&6; }
9799
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800
  $as_echo_n "(cached) " >&6
9801 131 jeremybenn
fi
9802 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9803
                 $as_echo "$as_val"'`
9804
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9805
$as_echo "$ac_res" >&6; }
9806 131 jeremybenn
else
9807
  # Is the header compilable?
9808 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809
$as_echo_n "checking $ac_header usability... " >&6; }
9810 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9811
/* confdefs.h.  */
9812
_ACEOF
9813
cat confdefs.h >>conftest.$ac_ext
9814
cat >>conftest.$ac_ext <<_ACEOF
9815
/* end confdefs.h.  */
9816
$ac_includes_default
9817
#include <$ac_header>
9818
_ACEOF
9819
rm -f conftest.$ac_objext
9820 213 jeremybenn
if { (ac_try="$ac_compile"
9821
case "(($ac_try" in
9822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823
  *) ac_try_echo=$ac_try;;
9824
esac
9825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826
$as_echo "$ac_try_echo") >&5
9827
  (eval "$ac_compile") 2>conftest.er1
9828 131 jeremybenn
  ac_status=$?
9829
  grep -v '^ *+' conftest.er1 >conftest.err
9830
  rm -f conftest.er1
9831
  cat conftest.err >&5
9832 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
  (exit $ac_status); } && {
9834
         test -z "$ac_c_werror_flag" ||
9835
         test ! -s conftest.err
9836
       } && test -s conftest.$ac_objext; then
9837 131 jeremybenn
  ac_header_compiler=yes
9838
else
9839 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9840 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9841
 
9842 213 jeremybenn
        ac_header_compiler=no
9843 131 jeremybenn
fi
9844
 
9845 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9847
$as_echo "$ac_header_compiler" >&6; }
9848
 
9849 131 jeremybenn
# Is the header present?
9850 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9851
$as_echo_n "checking $ac_header presence... " >&6; }
9852 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9853
/* confdefs.h.  */
9854
_ACEOF
9855
cat confdefs.h >>conftest.$ac_ext
9856
cat >>conftest.$ac_ext <<_ACEOF
9857
/* end confdefs.h.  */
9858
#include <$ac_header>
9859
_ACEOF
9860 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
9861
case "(($ac_try" in
9862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863
  *) ac_try_echo=$ac_try;;
9864
esac
9865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866
$as_echo "$ac_try_echo") >&5
9867
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9868 131 jeremybenn
  ac_status=$?
9869
  grep -v '^ *+' conftest.er1 >conftest.err
9870
  rm -f conftest.er1
9871
  cat conftest.err >&5
9872 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873
  (exit $ac_status); } >/dev/null && {
9874
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9875
         test ! -s conftest.err
9876
       }; then
9877 131 jeremybenn
  ac_header_preproc=yes
9878
else
9879 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9880 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9881
 
9882
  ac_header_preproc=no
9883
fi
9884 213 jeremybenn
 
9885 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
9886 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887
$as_echo "$ac_header_preproc" >&6; }
9888 131 jeremybenn
 
9889
# So?  What about this header?
9890
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9891
  yes:no: )
9892 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9895
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9896 131 jeremybenn
    ac_header_preproc=yes
9897
    ;;
9898
  no:yes:* )
9899 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9902
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9903
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9904
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9905
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9906
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9907
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9909
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9910
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9911
 
9912 131 jeremybenn
    ;;
9913
esac
9914 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9915
$as_echo_n "checking for $ac_header... " >&6; }
9916
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9917
  $as_echo_n "(cached) " >&6
9918 131 jeremybenn
else
9919
  eval "$as_ac_Header=\$ac_header_preproc"
9920
fi
9921 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9922
                 $as_echo "$as_val"'`
9923
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9924
$as_echo "$ac_res" >&6; }
9925 131 jeremybenn
 
9926
fi
9927 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
9928
                 $as_echo "$as_val"'`
9929
   if test "x$as_val" = x""yes; then
9930 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
9931 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9932 131 jeremybenn
_ACEOF
9933
 
9934
fi
9935
 
9936
done
9937
 
9938
 
9939
for ac_header in stdlib.h
9940
do
9941 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9943
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9944
$as_echo_n "checking for $ac_header... " >&6; }
9945
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9946
  $as_echo_n "(cached) " >&6
9947 131 jeremybenn
fi
9948 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
9949
                 $as_echo "$as_val"'`
9950
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9951
$as_echo "$ac_res" >&6; }
9952 131 jeremybenn
else
9953
  # Is the header compilable?
9954 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9955
$as_echo_n "checking $ac_header usability... " >&6; }
9956 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9957
/* confdefs.h.  */
9958
_ACEOF
9959
cat confdefs.h >>conftest.$ac_ext
9960
cat >>conftest.$ac_ext <<_ACEOF
9961
/* end confdefs.h.  */
9962
$ac_includes_default
9963
#include <$ac_header>
9964
_ACEOF
9965
rm -f conftest.$ac_objext
9966 213 jeremybenn
if { (ac_try="$ac_compile"
9967
case "(($ac_try" in
9968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969
  *) ac_try_echo=$ac_try;;
9970
esac
9971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9972
$as_echo "$ac_try_echo") >&5
9973
  (eval "$ac_compile") 2>conftest.er1
9974 131 jeremybenn
  ac_status=$?
9975
  grep -v '^ *+' conftest.er1 >conftest.err
9976
  rm -f conftest.er1
9977
  cat conftest.err >&5
9978 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979
  (exit $ac_status); } && {
9980
         test -z "$ac_c_werror_flag" ||
9981
         test ! -s conftest.err
9982
       } && test -s conftest.$ac_objext; then
9983 131 jeremybenn
  ac_header_compiler=yes
9984
else
9985 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9986 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9987
 
9988 213 jeremybenn
        ac_header_compiler=no
9989 131 jeremybenn
fi
9990
 
9991 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993
$as_echo "$ac_header_compiler" >&6; }
9994
 
9995 131 jeremybenn
# Is the header present?
9996 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997
$as_echo_n "checking $ac_header presence... " >&6; }
9998 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9999
/* confdefs.h.  */
10000
_ACEOF
10001
cat confdefs.h >>conftest.$ac_ext
10002
cat >>conftest.$ac_ext <<_ACEOF
10003
/* end confdefs.h.  */
10004
#include <$ac_header>
10005
_ACEOF
10006 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10007
case "(($ac_try" in
10008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009
  *) ac_try_echo=$ac_try;;
10010
esac
10011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10012
$as_echo "$ac_try_echo") >&5
10013
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10014 131 jeremybenn
  ac_status=$?
10015
  grep -v '^ *+' conftest.er1 >conftest.err
10016
  rm -f conftest.er1
10017
  cat conftest.err >&5
10018 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019
  (exit $ac_status); } >/dev/null && {
10020
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10021
         test ! -s conftest.err
10022
       }; then
10023 131 jeremybenn
  ac_header_preproc=yes
10024
else
10025 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10026 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10027
 
10028
  ac_header_preproc=no
10029
fi
10030 213 jeremybenn
 
10031 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10032 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10033
$as_echo "$ac_header_preproc" >&6; }
10034 131 jeremybenn
 
10035
# So?  What about this header?
10036
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10037
  yes:no: )
10038 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10039
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10040
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10041
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10042 131 jeremybenn
    ac_header_preproc=yes
10043
    ;;
10044
  no:yes:* )
10045 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10046
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10047
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10048
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10049
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10050
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10051
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10052
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10053
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10054
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10055
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10056
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10057
 
10058 131 jeremybenn
    ;;
10059
esac
10060 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10061
$as_echo_n "checking for $ac_header... " >&6; }
10062
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063
  $as_echo_n "(cached) " >&6
10064 131 jeremybenn
else
10065
  eval "$as_ac_Header=\$ac_header_preproc"
10066
fi
10067 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10068
                 $as_echo "$as_val"'`
10069
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10070
$as_echo "$ac_res" >&6; }
10071 131 jeremybenn
 
10072
fi
10073 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10074
                 $as_echo "$as_val"'`
10075
   if test "x$as_val" = x""yes; then
10076 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10077 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 131 jeremybenn
_ACEOF
10079
 
10080
fi
10081
 
10082
done
10083
 
10084
 
10085
for ac_header in stdint.h
10086
do
10087 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10088
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10089
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10090
$as_echo_n "checking for $ac_header... " >&6; }
10091
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10092
  $as_echo_n "(cached) " >&6
10093 131 jeremybenn
fi
10094 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10095
                 $as_echo "$as_val"'`
10096
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10097
$as_echo "$ac_res" >&6; }
10098 131 jeremybenn
else
10099
  # Is the header compilable?
10100 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10101
$as_echo_n "checking $ac_header usability... " >&6; }
10102 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10103
/* confdefs.h.  */
10104
_ACEOF
10105
cat confdefs.h >>conftest.$ac_ext
10106
cat >>conftest.$ac_ext <<_ACEOF
10107
/* end confdefs.h.  */
10108
$ac_includes_default
10109
#include <$ac_header>
10110
_ACEOF
10111
rm -f conftest.$ac_objext
10112 213 jeremybenn
if { (ac_try="$ac_compile"
10113
case "(($ac_try" in
10114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115
  *) ac_try_echo=$ac_try;;
10116
esac
10117
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10118
$as_echo "$ac_try_echo") >&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 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125
  (exit $ac_status); } && {
10126
         test -z "$ac_c_werror_flag" ||
10127
         test ! -s conftest.err
10128
       } && test -s conftest.$ac_objext; then
10129 131 jeremybenn
  ac_header_compiler=yes
10130
else
10131 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10132 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10133
 
10134 213 jeremybenn
        ac_header_compiler=no
10135 131 jeremybenn
fi
10136
 
10137 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10139
$as_echo "$ac_header_compiler" >&6; }
10140
 
10141 131 jeremybenn
# Is the header present?
10142 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10143
$as_echo_n "checking $ac_header presence... " >&6; }
10144 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10145
/* confdefs.h.  */
10146
_ACEOF
10147
cat confdefs.h >>conftest.$ac_ext
10148
cat >>conftest.$ac_ext <<_ACEOF
10149
/* end confdefs.h.  */
10150
#include <$ac_header>
10151
_ACEOF
10152 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10153
case "(($ac_try" in
10154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155
  *) ac_try_echo=$ac_try;;
10156
esac
10157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158
$as_echo "$ac_try_echo") >&5
10159
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10160 131 jeremybenn
  ac_status=$?
10161
  grep -v '^ *+' conftest.er1 >conftest.err
10162
  rm -f conftest.er1
10163
  cat conftest.err >&5
10164 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165
  (exit $ac_status); } >/dev/null && {
10166
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10167
         test ! -s conftest.err
10168
       }; then
10169 131 jeremybenn
  ac_header_preproc=yes
10170
else
10171 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10172 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10173
 
10174
  ac_header_preproc=no
10175
fi
10176 213 jeremybenn
 
10177 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10178 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10179
$as_echo "$ac_header_preproc" >&6; }
10180 131 jeremybenn
 
10181
# So?  What about this header?
10182
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10183
  yes:no: )
10184 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10185
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10186
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10187
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10188 131 jeremybenn
    ac_header_preproc=yes
10189
    ;;
10190
  no:yes:* )
10191 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10192
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10193
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10194
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10195
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10196
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10197
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10198
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10199
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10200
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10201
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10202
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10203
 
10204 131 jeremybenn
    ;;
10205
esac
10206 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10207
$as_echo_n "checking for $ac_header... " >&6; }
10208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10209
  $as_echo_n "(cached) " >&6
10210 131 jeremybenn
else
10211
  eval "$as_ac_Header=\$ac_header_preproc"
10212
fi
10213 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10214
                 $as_echo "$as_val"'`
10215
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10216
$as_echo "$ac_res" >&6; }
10217 131 jeremybenn
 
10218
fi
10219 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10220
                 $as_echo "$as_val"'`
10221
   if test "x$as_val" = x""yes; then
10222 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10223 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10224 131 jeremybenn
_ACEOF
10225
 
10226
fi
10227
 
10228
done
10229
 
10230
 
10231
 
10232
 
10233
for ac_header in string.h memory.h strings.h
10234
do
10235 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10237
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10238
$as_echo_n "checking for $ac_header... " >&6; }
10239
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240
  $as_echo_n "(cached) " >&6
10241 131 jeremybenn
fi
10242 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10243
                 $as_echo "$as_val"'`
10244
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10245
$as_echo "$ac_res" >&6; }
10246 131 jeremybenn
else
10247
  # Is the header compilable?
10248 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10249
$as_echo_n "checking $ac_header usability... " >&6; }
10250 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10251
/* confdefs.h.  */
10252
_ACEOF
10253
cat confdefs.h >>conftest.$ac_ext
10254
cat >>conftest.$ac_ext <<_ACEOF
10255
/* end confdefs.h.  */
10256
$ac_includes_default
10257
#include <$ac_header>
10258
_ACEOF
10259
rm -f conftest.$ac_objext
10260 213 jeremybenn
if { (ac_try="$ac_compile"
10261
case "(($ac_try" in
10262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263
  *) ac_try_echo=$ac_try;;
10264
esac
10265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10266
$as_echo "$ac_try_echo") >&5
10267
  (eval "$ac_compile") 2>conftest.er1
10268 131 jeremybenn
  ac_status=$?
10269
  grep -v '^ *+' conftest.er1 >conftest.err
10270
  rm -f conftest.er1
10271
  cat conftest.err >&5
10272 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273
  (exit $ac_status); } && {
10274
         test -z "$ac_c_werror_flag" ||
10275
         test ! -s conftest.err
10276
       } && test -s conftest.$ac_objext; then
10277 131 jeremybenn
  ac_header_compiler=yes
10278
else
10279 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10280 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10281
 
10282 213 jeremybenn
        ac_header_compiler=no
10283 131 jeremybenn
fi
10284
 
10285 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287
$as_echo "$ac_header_compiler" >&6; }
10288
 
10289 131 jeremybenn
# Is the header present?
10290 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291
$as_echo_n "checking $ac_header presence... " >&6; }
10292 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10293
/* confdefs.h.  */
10294
_ACEOF
10295
cat confdefs.h >>conftest.$ac_ext
10296
cat >>conftest.$ac_ext <<_ACEOF
10297
/* end confdefs.h.  */
10298
#include <$ac_header>
10299
_ACEOF
10300 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10301
case "(($ac_try" in
10302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303
  *) ac_try_echo=$ac_try;;
10304
esac
10305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306
$as_echo "$ac_try_echo") >&5
10307
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10308 131 jeremybenn
  ac_status=$?
10309
  grep -v '^ *+' conftest.er1 >conftest.err
10310
  rm -f conftest.er1
10311
  cat conftest.err >&5
10312 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313
  (exit $ac_status); } >/dev/null && {
10314
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10315
         test ! -s conftest.err
10316
       }; then
10317 131 jeremybenn
  ac_header_preproc=yes
10318
else
10319 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10320 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10321
 
10322
  ac_header_preproc=no
10323
fi
10324 213 jeremybenn
 
10325 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10326 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327
$as_echo "$ac_header_preproc" >&6; }
10328 131 jeremybenn
 
10329
# So?  What about this header?
10330
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10331
  yes:no: )
10332 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336 131 jeremybenn
    ac_header_preproc=yes
10337
    ;;
10338
  no:yes:* )
10339 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10342
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10343
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10346
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10347
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10351
 
10352 131 jeremybenn
    ;;
10353
esac
10354 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10355
$as_echo_n "checking for $ac_header... " >&6; }
10356
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10357
  $as_echo_n "(cached) " >&6
10358 131 jeremybenn
else
10359
  eval "$as_ac_Header=\$ac_header_preproc"
10360
fi
10361 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10362
                 $as_echo "$as_val"'`
10363
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10364
$as_echo "$ac_res" >&6; }
10365 131 jeremybenn
 
10366
fi
10367 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10368
                 $as_echo "$as_val"'`
10369
   if test "x$as_val" = x""yes; then
10370 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10371 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372 131 jeremybenn
_ACEOF
10373
 
10374
fi
10375
 
10376
done
10377
 
10378
 
10379
for ac_header in sys/fault.h
10380
do
10381 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10382
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10383
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10384
$as_echo_n "checking for $ac_header... " >&6; }
10385
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10386
  $as_echo_n "(cached) " >&6
10387 131 jeremybenn
fi
10388 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10389
                 $as_echo "$as_val"'`
10390
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10391
$as_echo "$ac_res" >&6; }
10392 131 jeremybenn
else
10393
  # Is the header compilable?
10394 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10395
$as_echo_n "checking $ac_header usability... " >&6; }
10396 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10397
/* confdefs.h.  */
10398
_ACEOF
10399
cat confdefs.h >>conftest.$ac_ext
10400
cat >>conftest.$ac_ext <<_ACEOF
10401
/* end confdefs.h.  */
10402
$ac_includes_default
10403
#include <$ac_header>
10404
_ACEOF
10405
rm -f conftest.$ac_objext
10406 213 jeremybenn
if { (ac_try="$ac_compile"
10407
case "(($ac_try" in
10408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409
  *) ac_try_echo=$ac_try;;
10410
esac
10411
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412
$as_echo "$ac_try_echo") >&5
10413
  (eval "$ac_compile") 2>conftest.er1
10414 131 jeremybenn
  ac_status=$?
10415
  grep -v '^ *+' conftest.er1 >conftest.err
10416
  rm -f conftest.er1
10417
  cat conftest.err >&5
10418 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419
  (exit $ac_status); } && {
10420
         test -z "$ac_c_werror_flag" ||
10421
         test ! -s conftest.err
10422
       } && test -s conftest.$ac_objext; then
10423 131 jeremybenn
  ac_header_compiler=yes
10424
else
10425 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10426 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10427
 
10428 213 jeremybenn
        ac_header_compiler=no
10429 131 jeremybenn
fi
10430
 
10431 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10433
$as_echo "$ac_header_compiler" >&6; }
10434
 
10435 131 jeremybenn
# Is the header present?
10436 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10437
$as_echo_n "checking $ac_header presence... " >&6; }
10438 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10439
/* confdefs.h.  */
10440
_ACEOF
10441
cat confdefs.h >>conftest.$ac_ext
10442
cat >>conftest.$ac_ext <<_ACEOF
10443
/* end confdefs.h.  */
10444
#include <$ac_header>
10445
_ACEOF
10446 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10447
case "(($ac_try" in
10448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449
  *) ac_try_echo=$ac_try;;
10450
esac
10451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10452
$as_echo "$ac_try_echo") >&5
10453
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10454 131 jeremybenn
  ac_status=$?
10455
  grep -v '^ *+' conftest.er1 >conftest.err
10456
  rm -f conftest.er1
10457
  cat conftest.err >&5
10458 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459
  (exit $ac_status); } >/dev/null && {
10460
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10461
         test ! -s conftest.err
10462
       }; then
10463 131 jeremybenn
  ac_header_preproc=yes
10464
else
10465 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10466 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10467
 
10468
  ac_header_preproc=no
10469
fi
10470 213 jeremybenn
 
10471 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10472 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10473
$as_echo "$ac_header_preproc" >&6; }
10474 131 jeremybenn
 
10475
# So?  What about this header?
10476
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10477
  yes:no: )
10478 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10479
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10480
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10481
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10482 131 jeremybenn
    ac_header_preproc=yes
10483
    ;;
10484
  no:yes:* )
10485 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10486
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10487
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10488
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10489
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10490
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10491
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10492
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10493
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10494
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10495
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10496
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10497
 
10498 131 jeremybenn
    ;;
10499
esac
10500 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10501
$as_echo_n "checking for $ac_header... " >&6; }
10502
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10503
  $as_echo_n "(cached) " >&6
10504 131 jeremybenn
else
10505
  eval "$as_ac_Header=\$ac_header_preproc"
10506
fi
10507 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10508
                 $as_echo "$as_val"'`
10509
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10510
$as_echo "$ac_res" >&6; }
10511 131 jeremybenn
 
10512
fi
10513 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10514
                 $as_echo "$as_val"'`
10515
   if test "x$as_val" = x""yes; then
10516 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10517 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10518 131 jeremybenn
_ACEOF
10519
 
10520
fi
10521
 
10522
done
10523
 
10524
 
10525
for ac_header in sys/file.h
10526
do
10527 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10528
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10529
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10530
$as_echo_n "checking for $ac_header... " >&6; }
10531
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10532
  $as_echo_n "(cached) " >&6
10533 131 jeremybenn
fi
10534 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10535
                 $as_echo "$as_val"'`
10536
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10537
$as_echo "$ac_res" >&6; }
10538 131 jeremybenn
else
10539
  # Is the header compilable?
10540 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10541
$as_echo_n "checking $ac_header usability... " >&6; }
10542 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10543
/* confdefs.h.  */
10544
_ACEOF
10545
cat confdefs.h >>conftest.$ac_ext
10546
cat >>conftest.$ac_ext <<_ACEOF
10547
/* end confdefs.h.  */
10548
$ac_includes_default
10549
#include <$ac_header>
10550
_ACEOF
10551
rm -f conftest.$ac_objext
10552 213 jeremybenn
if { (ac_try="$ac_compile"
10553
case "(($ac_try" in
10554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555
  *) ac_try_echo=$ac_try;;
10556
esac
10557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10558
$as_echo "$ac_try_echo") >&5
10559
  (eval "$ac_compile") 2>conftest.er1
10560 131 jeremybenn
  ac_status=$?
10561
  grep -v '^ *+' conftest.er1 >conftest.err
10562
  rm -f conftest.er1
10563
  cat conftest.err >&5
10564 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565
  (exit $ac_status); } && {
10566
         test -z "$ac_c_werror_flag" ||
10567
         test ! -s conftest.err
10568
       } && test -s conftest.$ac_objext; then
10569 131 jeremybenn
  ac_header_compiler=yes
10570
else
10571 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10572 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10573
 
10574 213 jeremybenn
        ac_header_compiler=no
10575 131 jeremybenn
fi
10576
 
10577 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579
$as_echo "$ac_header_compiler" >&6; }
10580
 
10581 131 jeremybenn
# Is the header present?
10582 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583
$as_echo_n "checking $ac_header presence... " >&6; }
10584 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10585
/* confdefs.h.  */
10586
_ACEOF
10587
cat confdefs.h >>conftest.$ac_ext
10588
cat >>conftest.$ac_ext <<_ACEOF
10589
/* end confdefs.h.  */
10590
#include <$ac_header>
10591
_ACEOF
10592 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10593
case "(($ac_try" in
10594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595
  *) ac_try_echo=$ac_try;;
10596
esac
10597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598
$as_echo "$ac_try_echo") >&5
10599
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600 131 jeremybenn
  ac_status=$?
10601
  grep -v '^ *+' conftest.er1 >conftest.err
10602
  rm -f conftest.er1
10603
  cat conftest.err >&5
10604 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605
  (exit $ac_status); } >/dev/null && {
10606
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10607
         test ! -s conftest.err
10608
       }; then
10609 131 jeremybenn
  ac_header_preproc=yes
10610
else
10611 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10612 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10613
 
10614
  ac_header_preproc=no
10615
fi
10616 213 jeremybenn
 
10617 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10618 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619
$as_echo "$ac_header_preproc" >&6; }
10620 131 jeremybenn
 
10621
# So?  What about this header?
10622
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623
  yes:no: )
10624 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628 131 jeremybenn
    ac_header_preproc=yes
10629
    ;;
10630
  no:yes:* )
10631 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10634
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10635
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10638
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10639
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643
 
10644 131 jeremybenn
    ;;
10645
esac
10646 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10647
$as_echo_n "checking for $ac_header... " >&6; }
10648
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649
  $as_echo_n "(cached) " >&6
10650 131 jeremybenn
else
10651
  eval "$as_ac_Header=\$ac_header_preproc"
10652
fi
10653 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10654
                 $as_echo "$as_val"'`
10655
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10656
$as_echo "$ac_res" >&6; }
10657 131 jeremybenn
 
10658
fi
10659 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10660
                 $as_echo "$as_val"'`
10661
   if test "x$as_val" = x""yes; then
10662 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10663 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10664 131 jeremybenn
_ACEOF
10665
 
10666
fi
10667
 
10668
done
10669
 
10670
 
10671
for ac_header in sys/filio.h
10672
do
10673 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10674
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10675
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10676
$as_echo_n "checking for $ac_header... " >&6; }
10677
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10678
  $as_echo_n "(cached) " >&6
10679 131 jeremybenn
fi
10680 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10681
                 $as_echo "$as_val"'`
10682
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10683
$as_echo "$ac_res" >&6; }
10684 131 jeremybenn
else
10685
  # Is the header compilable?
10686 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10687
$as_echo_n "checking $ac_header usability... " >&6; }
10688 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10689
/* confdefs.h.  */
10690
_ACEOF
10691
cat confdefs.h >>conftest.$ac_ext
10692
cat >>conftest.$ac_ext <<_ACEOF
10693
/* end confdefs.h.  */
10694
$ac_includes_default
10695
#include <$ac_header>
10696
_ACEOF
10697
rm -f conftest.$ac_objext
10698 213 jeremybenn
if { (ac_try="$ac_compile"
10699
case "(($ac_try" in
10700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701
  *) ac_try_echo=$ac_try;;
10702
esac
10703
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704
$as_echo "$ac_try_echo") >&5
10705
  (eval "$ac_compile") 2>conftest.er1
10706 131 jeremybenn
  ac_status=$?
10707
  grep -v '^ *+' conftest.er1 >conftest.err
10708
  rm -f conftest.er1
10709
  cat conftest.err >&5
10710 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711
  (exit $ac_status); } && {
10712
         test -z "$ac_c_werror_flag" ||
10713
         test ! -s conftest.err
10714
       } && test -s conftest.$ac_objext; then
10715 131 jeremybenn
  ac_header_compiler=yes
10716
else
10717 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10718 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10719
 
10720 213 jeremybenn
        ac_header_compiler=no
10721 131 jeremybenn
fi
10722
 
10723 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10725
$as_echo "$ac_header_compiler" >&6; }
10726
 
10727 131 jeremybenn
# Is the header present?
10728 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10729
$as_echo_n "checking $ac_header presence... " >&6; }
10730 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10731
/* confdefs.h.  */
10732
_ACEOF
10733
cat confdefs.h >>conftest.$ac_ext
10734
cat >>conftest.$ac_ext <<_ACEOF
10735
/* end confdefs.h.  */
10736
#include <$ac_header>
10737
_ACEOF
10738 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10739
case "(($ac_try" in
10740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741
  *) ac_try_echo=$ac_try;;
10742
esac
10743
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744
$as_echo "$ac_try_echo") >&5
10745
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10746 131 jeremybenn
  ac_status=$?
10747
  grep -v '^ *+' conftest.er1 >conftest.err
10748
  rm -f conftest.er1
10749
  cat conftest.err >&5
10750 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751
  (exit $ac_status); } >/dev/null && {
10752
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10753
         test ! -s conftest.err
10754
       }; then
10755 131 jeremybenn
  ac_header_preproc=yes
10756
else
10757 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10758 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10759
 
10760
  ac_header_preproc=no
10761
fi
10762 213 jeremybenn
 
10763 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10764 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10765
$as_echo "$ac_header_preproc" >&6; }
10766 131 jeremybenn
 
10767
# So?  What about this header?
10768
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10769
  yes:no: )
10770 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10771
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10772
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10773
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10774 131 jeremybenn
    ac_header_preproc=yes
10775
    ;;
10776
  no:yes:* )
10777 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10780
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10781
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10782
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10783
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10784
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10785
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10786
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10787
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10788
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10789
 
10790 131 jeremybenn
    ;;
10791
esac
10792 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10793
$as_echo_n "checking for $ac_header... " >&6; }
10794
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795
  $as_echo_n "(cached) " >&6
10796 131 jeremybenn
else
10797
  eval "$as_ac_Header=\$ac_header_preproc"
10798
fi
10799 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10800
                 $as_echo "$as_val"'`
10801
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10802
$as_echo "$ac_res" >&6; }
10803 131 jeremybenn
 
10804
fi
10805 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10806
                 $as_echo "$as_val"'`
10807
   if test "x$as_val" = x""yes; then
10808 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10809 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 131 jeremybenn
_ACEOF
10811
 
10812
fi
10813
 
10814
done
10815
 
10816
 
10817
for ac_header in sys/ioctl.h
10818
do
10819 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10820
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10822
$as_echo_n "checking for $ac_header... " >&6; }
10823
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824
  $as_echo_n "(cached) " >&6
10825 131 jeremybenn
fi
10826 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10827
                 $as_echo "$as_val"'`
10828
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10829
$as_echo "$ac_res" >&6; }
10830 131 jeremybenn
else
10831
  # Is the header compilable?
10832 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10833
$as_echo_n "checking $ac_header usability... " >&6; }
10834 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10835
/* confdefs.h.  */
10836
_ACEOF
10837
cat confdefs.h >>conftest.$ac_ext
10838
cat >>conftest.$ac_ext <<_ACEOF
10839
/* end confdefs.h.  */
10840
$ac_includes_default
10841
#include <$ac_header>
10842
_ACEOF
10843
rm -f conftest.$ac_objext
10844 213 jeremybenn
if { (ac_try="$ac_compile"
10845
case "(($ac_try" in
10846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847
  *) ac_try_echo=$ac_try;;
10848
esac
10849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850
$as_echo "$ac_try_echo") >&5
10851
  (eval "$ac_compile") 2>conftest.er1
10852 131 jeremybenn
  ac_status=$?
10853
  grep -v '^ *+' conftest.er1 >conftest.err
10854
  rm -f conftest.er1
10855
  cat conftest.err >&5
10856 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857
  (exit $ac_status); } && {
10858
         test -z "$ac_c_werror_flag" ||
10859
         test ! -s conftest.err
10860
       } && test -s conftest.$ac_objext; then
10861 131 jeremybenn
  ac_header_compiler=yes
10862
else
10863 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10864 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10865
 
10866 213 jeremybenn
        ac_header_compiler=no
10867 131 jeremybenn
fi
10868
 
10869 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871
$as_echo "$ac_header_compiler" >&6; }
10872
 
10873 131 jeremybenn
# Is the header present?
10874 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875
$as_echo_n "checking $ac_header presence... " >&6; }
10876 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10877
/* confdefs.h.  */
10878
_ACEOF
10879
cat confdefs.h >>conftest.$ac_ext
10880
cat >>conftest.$ac_ext <<_ACEOF
10881
/* end confdefs.h.  */
10882
#include <$ac_header>
10883
_ACEOF
10884 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
10885
case "(($ac_try" in
10886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887
  *) ac_try_echo=$ac_try;;
10888
esac
10889
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890
$as_echo "$ac_try_echo") >&5
10891
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10892 131 jeremybenn
  ac_status=$?
10893
  grep -v '^ *+' conftest.er1 >conftest.err
10894
  rm -f conftest.er1
10895
  cat conftest.err >&5
10896 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897
  (exit $ac_status); } >/dev/null && {
10898
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10899
         test ! -s conftest.err
10900
       }; then
10901 131 jeremybenn
  ac_header_preproc=yes
10902
else
10903 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10904 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10905
 
10906
  ac_header_preproc=no
10907
fi
10908 213 jeremybenn
 
10909 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
10910 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911
$as_echo "$ac_header_preproc" >&6; }
10912 131 jeremybenn
 
10913
# So?  What about this header?
10914
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10915
  yes:no: )
10916 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10919
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10920 131 jeremybenn
    ac_header_preproc=yes
10921
    ;;
10922
  no:yes:* )
10923 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10924
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10925
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10926
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10927
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10928
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10929
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10930
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10931
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10933
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10934
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10935
 
10936 131 jeremybenn
    ;;
10937
esac
10938 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10939
$as_echo_n "checking for $ac_header... " >&6; }
10940
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941
  $as_echo_n "(cached) " >&6
10942 131 jeremybenn
else
10943
  eval "$as_ac_Header=\$ac_header_preproc"
10944
fi
10945 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10946
                 $as_echo "$as_val"'`
10947
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10948
$as_echo "$ac_res" >&6; }
10949 131 jeremybenn
 
10950
fi
10951 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
10952
                 $as_echo "$as_val"'`
10953
   if test "x$as_val" = x""yes; then
10954 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
10955 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956 131 jeremybenn
_ACEOF
10957
 
10958
fi
10959
 
10960
done
10961
 
10962
 
10963
for ac_header in sys/param.h
10964
do
10965 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10968
$as_echo_n "checking for $ac_header... " >&6; }
10969
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10970
  $as_echo_n "(cached) " >&6
10971 131 jeremybenn
fi
10972 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
10973
                 $as_echo "$as_val"'`
10974
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10975
$as_echo "$ac_res" >&6; }
10976 131 jeremybenn
else
10977
  # Is the header compilable?
10978 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10979
$as_echo_n "checking $ac_header usability... " >&6; }
10980 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10981
/* confdefs.h.  */
10982
_ACEOF
10983
cat confdefs.h >>conftest.$ac_ext
10984
cat >>conftest.$ac_ext <<_ACEOF
10985
/* end confdefs.h.  */
10986
$ac_includes_default
10987
#include <$ac_header>
10988
_ACEOF
10989
rm -f conftest.$ac_objext
10990 213 jeremybenn
if { (ac_try="$ac_compile"
10991
case "(($ac_try" in
10992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993
  *) ac_try_echo=$ac_try;;
10994
esac
10995
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996
$as_echo "$ac_try_echo") >&5
10997
  (eval "$ac_compile") 2>conftest.er1
10998 131 jeremybenn
  ac_status=$?
10999
  grep -v '^ *+' conftest.er1 >conftest.err
11000
  rm -f conftest.er1
11001
  cat conftest.err >&5
11002 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003
  (exit $ac_status); } && {
11004
         test -z "$ac_c_werror_flag" ||
11005
         test ! -s conftest.err
11006
       } && test -s conftest.$ac_objext; then
11007 131 jeremybenn
  ac_header_compiler=yes
11008
else
11009 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11010 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11011
 
11012 213 jeremybenn
        ac_header_compiler=no
11013 131 jeremybenn
fi
11014
 
11015 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11017
$as_echo "$ac_header_compiler" >&6; }
11018
 
11019 131 jeremybenn
# Is the header present?
11020 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11021
$as_echo_n "checking $ac_header presence... " >&6; }
11022 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11023
/* confdefs.h.  */
11024
_ACEOF
11025
cat confdefs.h >>conftest.$ac_ext
11026
cat >>conftest.$ac_ext <<_ACEOF
11027
/* end confdefs.h.  */
11028
#include <$ac_header>
11029
_ACEOF
11030 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11031
case "(($ac_try" in
11032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033
  *) ac_try_echo=$ac_try;;
11034
esac
11035
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036
$as_echo "$ac_try_echo") >&5
11037
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11038 131 jeremybenn
  ac_status=$?
11039
  grep -v '^ *+' conftest.er1 >conftest.err
11040
  rm -f conftest.er1
11041
  cat conftest.err >&5
11042 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043
  (exit $ac_status); } >/dev/null && {
11044
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11045
         test ! -s conftest.err
11046
       }; then
11047 131 jeremybenn
  ac_header_preproc=yes
11048
else
11049 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11050 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11051
 
11052
  ac_header_preproc=no
11053
fi
11054 213 jeremybenn
 
11055 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11056 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11057
$as_echo "$ac_header_preproc" >&6; }
11058 131 jeremybenn
 
11059
# So?  What about this header?
11060
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11061
  yes:no: )
11062 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11063
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11064
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11065
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11066 131 jeremybenn
    ac_header_preproc=yes
11067
    ;;
11068
  no:yes:* )
11069 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11070
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11071
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11072
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11073
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11074
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11075
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11076
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11077
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11078
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11079
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11080
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11081
 
11082 131 jeremybenn
    ;;
11083
esac
11084 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11085
$as_echo_n "checking for $ac_header... " >&6; }
11086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087
  $as_echo_n "(cached) " >&6
11088 131 jeremybenn
else
11089
  eval "$as_ac_Header=\$ac_header_preproc"
11090
fi
11091 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11092
                 $as_echo "$as_val"'`
11093
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11094
$as_echo "$ac_res" >&6; }
11095 131 jeremybenn
 
11096
fi
11097 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11098
                 $as_echo "$as_val"'`
11099
   if test "x$as_val" = x""yes; then
11100 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11101 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11102 131 jeremybenn
_ACEOF
11103
 
11104
fi
11105
 
11106
done
11107
 
11108
 
11109
for ac_header in sys/resource.h
11110
do
11111 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11114
$as_echo_n "checking for $ac_header... " >&6; }
11115
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116
  $as_echo_n "(cached) " >&6
11117 131 jeremybenn
fi
11118 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11119
                 $as_echo "$as_val"'`
11120
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11121
$as_echo "$ac_res" >&6; }
11122 131 jeremybenn
else
11123
  # Is the header compilable?
11124 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11125
$as_echo_n "checking $ac_header usability... " >&6; }
11126 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11127
/* confdefs.h.  */
11128
_ACEOF
11129
cat confdefs.h >>conftest.$ac_ext
11130
cat >>conftest.$ac_ext <<_ACEOF
11131
/* end confdefs.h.  */
11132
$ac_includes_default
11133
#include <$ac_header>
11134
_ACEOF
11135
rm -f conftest.$ac_objext
11136 213 jeremybenn
if { (ac_try="$ac_compile"
11137
case "(($ac_try" in
11138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139
  *) ac_try_echo=$ac_try;;
11140
esac
11141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142
$as_echo "$ac_try_echo") >&5
11143
  (eval "$ac_compile") 2>conftest.er1
11144 131 jeremybenn
  ac_status=$?
11145
  grep -v '^ *+' conftest.er1 >conftest.err
11146
  rm -f conftest.er1
11147
  cat conftest.err >&5
11148 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
  (exit $ac_status); } && {
11150
         test -z "$ac_c_werror_flag" ||
11151
         test ! -s conftest.err
11152
       } && test -s conftest.$ac_objext; then
11153 131 jeremybenn
  ac_header_compiler=yes
11154
else
11155 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11156 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11157
 
11158 213 jeremybenn
        ac_header_compiler=no
11159 131 jeremybenn
fi
11160
 
11161 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163
$as_echo "$ac_header_compiler" >&6; }
11164
 
11165 131 jeremybenn
# Is the header present?
11166 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167
$as_echo_n "checking $ac_header presence... " >&6; }
11168 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11169
/* confdefs.h.  */
11170
_ACEOF
11171
cat confdefs.h >>conftest.$ac_ext
11172
cat >>conftest.$ac_ext <<_ACEOF
11173
/* end confdefs.h.  */
11174
#include <$ac_header>
11175
_ACEOF
11176 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11177
case "(($ac_try" in
11178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179
  *) ac_try_echo=$ac_try;;
11180
esac
11181
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11182
$as_echo "$ac_try_echo") >&5
11183
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11184 131 jeremybenn
  ac_status=$?
11185
  grep -v '^ *+' conftest.er1 >conftest.err
11186
  rm -f conftest.er1
11187
  cat conftest.err >&5
11188 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
  (exit $ac_status); } >/dev/null && {
11190
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11191
         test ! -s conftest.err
11192
       }; then
11193 131 jeremybenn
  ac_header_preproc=yes
11194
else
11195 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11196 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11197
 
11198
  ac_header_preproc=no
11199
fi
11200 213 jeremybenn
 
11201 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11202 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11203
$as_echo "$ac_header_preproc" >&6; }
11204 131 jeremybenn
 
11205
# So?  What about this header?
11206
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11207
  yes:no: )
11208 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11209
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11210
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11211
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11212 131 jeremybenn
    ac_header_preproc=yes
11213
    ;;
11214
  no:yes:* )
11215 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11216
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11217
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11218
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11219
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11220
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11221
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11222
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11223
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11224
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11225
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11226
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11227
 
11228 131 jeremybenn
    ;;
11229
esac
11230 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11231
$as_echo_n "checking for $ac_header... " >&6; }
11232
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233
  $as_echo_n "(cached) " >&6
11234 131 jeremybenn
else
11235
  eval "$as_ac_Header=\$ac_header_preproc"
11236
fi
11237 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11238
                 $as_echo "$as_val"'`
11239
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11240
$as_echo "$ac_res" >&6; }
11241 131 jeremybenn
 
11242
fi
11243 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11244
                 $as_echo "$as_val"'`
11245
   if test "x$as_val" = x""yes; then
11246 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11247 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11248 131 jeremybenn
_ACEOF
11249
 
11250
fi
11251
 
11252
done
11253
 
11254
 
11255
for ac_header in sys/proc.h
11256
do
11257 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11259
$as_echo_n "checking for $ac_header... " >&6; }
11260
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261
  $as_echo_n "(cached) " >&6
11262 131 jeremybenn
else
11263
  cat >conftest.$ac_ext <<_ACEOF
11264
/* confdefs.h.  */
11265
_ACEOF
11266
cat confdefs.h >>conftest.$ac_ext
11267
cat >>conftest.$ac_ext <<_ACEOF
11268
/* end confdefs.h.  */
11269
#if HAVE_SYS_PARAM_H
11270
# include 
11271
#endif
11272
 
11273
 
11274
#include <$ac_header>
11275
_ACEOF
11276
rm -f conftest.$ac_objext
11277 213 jeremybenn
if { (ac_try="$ac_compile"
11278
case "(($ac_try" in
11279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280
  *) ac_try_echo=$ac_try;;
11281
esac
11282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11283
$as_echo "$ac_try_echo") >&5
11284
  (eval "$ac_compile") 2>conftest.er1
11285 131 jeremybenn
  ac_status=$?
11286
  grep -v '^ *+' conftest.er1 >conftest.err
11287
  rm -f conftest.er1
11288
  cat conftest.err >&5
11289 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290
  (exit $ac_status); } && {
11291
         test -z "$ac_c_werror_flag" ||
11292
         test ! -s conftest.err
11293
       } && test -s conftest.$ac_objext; then
11294 131 jeremybenn
  eval "$as_ac_Header=yes"
11295
else
11296 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11297 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11298
 
11299 213 jeremybenn
        eval "$as_ac_Header=no"
11300 131 jeremybenn
fi
11301 213 jeremybenn
 
11302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 131 jeremybenn
fi
11304 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11305
                 $as_echo "$as_val"'`
11306
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307
$as_echo "$ac_res" >&6; }
11308
as_val=`eval 'as_val=${'$as_ac_Header'}
11309
                 $as_echo "$as_val"'`
11310
   if test "x$as_val" = x""yes; then
11311 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11312 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 131 jeremybenn
_ACEOF
11314
 
11315
fi
11316
 
11317
done
11318
 
11319
 
11320
for ac_header in sys/procfs.h
11321
do
11322 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11325
$as_echo_n "checking for $ac_header... " >&6; }
11326
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327
  $as_echo_n "(cached) " >&6
11328 131 jeremybenn
fi
11329 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11330
                 $as_echo "$as_val"'`
11331
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11332
$as_echo "$ac_res" >&6; }
11333 131 jeremybenn
else
11334
  # Is the header compilable?
11335 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11336
$as_echo_n "checking $ac_header usability... " >&6; }
11337 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11338
/* confdefs.h.  */
11339
_ACEOF
11340
cat confdefs.h >>conftest.$ac_ext
11341
cat >>conftest.$ac_ext <<_ACEOF
11342
/* end confdefs.h.  */
11343
$ac_includes_default
11344
#include <$ac_header>
11345
_ACEOF
11346
rm -f conftest.$ac_objext
11347 213 jeremybenn
if { (ac_try="$ac_compile"
11348
case "(($ac_try" in
11349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350
  *) ac_try_echo=$ac_try;;
11351
esac
11352
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11353
$as_echo "$ac_try_echo") >&5
11354
  (eval "$ac_compile") 2>conftest.er1
11355 131 jeremybenn
  ac_status=$?
11356
  grep -v '^ *+' conftest.er1 >conftest.err
11357
  rm -f conftest.er1
11358
  cat conftest.err >&5
11359 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360
  (exit $ac_status); } && {
11361
         test -z "$ac_c_werror_flag" ||
11362
         test ! -s conftest.err
11363
       } && test -s conftest.$ac_objext; then
11364 131 jeremybenn
  ac_header_compiler=yes
11365
else
11366 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11367 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11368
 
11369 213 jeremybenn
        ac_header_compiler=no
11370 131 jeremybenn
fi
11371
 
11372 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374
$as_echo "$ac_header_compiler" >&6; }
11375
 
11376 131 jeremybenn
# Is the header present?
11377 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378
$as_echo_n "checking $ac_header presence... " >&6; }
11379 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11380
/* confdefs.h.  */
11381
_ACEOF
11382
cat confdefs.h >>conftest.$ac_ext
11383
cat >>conftest.$ac_ext <<_ACEOF
11384
/* end confdefs.h.  */
11385
#include <$ac_header>
11386
_ACEOF
11387 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11388
case "(($ac_try" in
11389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390
  *) ac_try_echo=$ac_try;;
11391
esac
11392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11393
$as_echo "$ac_try_echo") >&5
11394
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11395 131 jeremybenn
  ac_status=$?
11396
  grep -v '^ *+' conftest.er1 >conftest.err
11397
  rm -f conftest.er1
11398
  cat conftest.err >&5
11399 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400
  (exit $ac_status); } >/dev/null && {
11401
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11402
         test ! -s conftest.err
11403
       }; then
11404 131 jeremybenn
  ac_header_preproc=yes
11405
else
11406 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11407 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11408
 
11409
  ac_header_preproc=no
11410
fi
11411 213 jeremybenn
 
11412 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11413 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414
$as_echo "$ac_header_preproc" >&6; }
11415 131 jeremybenn
 
11416
# So?  What about this header?
11417
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418
  yes:no: )
11419 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 131 jeremybenn
    ac_header_preproc=yes
11424
    ;;
11425
  no:yes:* )
11426 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11429
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11430
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11433
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11434
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438
 
11439 131 jeremybenn
    ;;
11440
esac
11441 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11442
$as_echo_n "checking for $ac_header... " >&6; }
11443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444
  $as_echo_n "(cached) " >&6
11445 131 jeremybenn
else
11446
  eval "$as_ac_Header=\$ac_header_preproc"
11447
fi
11448 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11449
                 $as_echo "$as_val"'`
11450
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11451
$as_echo "$ac_res" >&6; }
11452 131 jeremybenn
 
11453
fi
11454 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11455
                 $as_echo "$as_val"'`
11456
   if test "x$as_val" = x""yes; then
11457 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11458 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 131 jeremybenn
_ACEOF
11460
 
11461
fi
11462
 
11463
done
11464
 
11465
 
11466
 
11467
for ac_header in sys/ptrace.h ptrace.h
11468
do
11469 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11470
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11472
$as_echo_n "checking for $ac_header... " >&6; }
11473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474
  $as_echo_n "(cached) " >&6
11475 131 jeremybenn
fi
11476 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11477
                 $as_echo "$as_val"'`
11478
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11479
$as_echo "$ac_res" >&6; }
11480 131 jeremybenn
else
11481
  # Is the header compilable?
11482 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483
$as_echo_n "checking $ac_header usability... " >&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
$ac_includes_default
11491
#include <$ac_header>
11492
_ACEOF
11493
rm -f conftest.$ac_objext
11494 213 jeremybenn
if { (ac_try="$ac_compile"
11495
case "(($ac_try" in
11496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497
  *) ac_try_echo=$ac_try;;
11498
esac
11499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500
$as_echo "$ac_try_echo") >&5
11501
  (eval "$ac_compile") 2>conftest.er1
11502 131 jeremybenn
  ac_status=$?
11503
  grep -v '^ *+' conftest.er1 >conftest.err
11504
  rm -f conftest.er1
11505
  cat conftest.err >&5
11506 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507
  (exit $ac_status); } && {
11508
         test -z "$ac_c_werror_flag" ||
11509
         test ! -s conftest.err
11510
       } && test -s conftest.$ac_objext; then
11511 131 jeremybenn
  ac_header_compiler=yes
11512
else
11513 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11514 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11515
 
11516 213 jeremybenn
        ac_header_compiler=no
11517 131 jeremybenn
fi
11518
 
11519 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521
$as_echo "$ac_header_compiler" >&6; }
11522
 
11523 131 jeremybenn
# Is the header present?
11524 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525
$as_echo_n "checking $ac_header presence... " >&6; }
11526 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11527
/* confdefs.h.  */
11528
_ACEOF
11529
cat confdefs.h >>conftest.$ac_ext
11530
cat >>conftest.$ac_ext <<_ACEOF
11531
/* end confdefs.h.  */
11532
#include <$ac_header>
11533
_ACEOF
11534 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11535
case "(($ac_try" in
11536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537
  *) ac_try_echo=$ac_try;;
11538
esac
11539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11540
$as_echo "$ac_try_echo") >&5
11541
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542 131 jeremybenn
  ac_status=$?
11543
  grep -v '^ *+' conftest.er1 >conftest.err
11544
  rm -f conftest.er1
11545
  cat conftest.err >&5
11546 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547
  (exit $ac_status); } >/dev/null && {
11548
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11549
         test ! -s conftest.err
11550
       }; then
11551 131 jeremybenn
  ac_header_preproc=yes
11552
else
11553 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11554 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11555
 
11556
  ac_header_preproc=no
11557
fi
11558 213 jeremybenn
 
11559 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11560 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11561
$as_echo "$ac_header_preproc" >&6; }
11562 131 jeremybenn
 
11563
# So?  What about this header?
11564
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11565
  yes:no: )
11566 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11567
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11568
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11569
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11570 131 jeremybenn
    ac_header_preproc=yes
11571
    ;;
11572
  no:yes:* )
11573 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11574
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11575
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11576
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11577
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11578
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11579
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11580
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11581
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11582
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11584
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11585
 
11586 131 jeremybenn
    ;;
11587
esac
11588 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11589
$as_echo_n "checking for $ac_header... " >&6; }
11590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591
  $as_echo_n "(cached) " >&6
11592 131 jeremybenn
else
11593
  eval "$as_ac_Header=\$ac_header_preproc"
11594
fi
11595 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11596
                 $as_echo "$as_val"'`
11597
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11598
$as_echo "$ac_res" >&6; }
11599 131 jeremybenn
 
11600
fi
11601 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11602
                 $as_echo "$as_val"'`
11603
   if test "x$as_val" = x""yes; then
11604 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11605 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11606 131 jeremybenn
_ACEOF
11607
 
11608
fi
11609
 
11610
done
11611
 
11612
 
11613
 
11614
for ac_header in sys/reg.h sys/debugreg.h
11615
do
11616 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11619
$as_echo_n "checking for $ac_header... " >&6; }
11620
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621
  $as_echo_n "(cached) " >&6
11622 131 jeremybenn
fi
11623 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11624
                 $as_echo "$as_val"'`
11625
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11626
$as_echo "$ac_res" >&6; }
11627 131 jeremybenn
else
11628
  # Is the header compilable?
11629 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11630
$as_echo_n "checking $ac_header usability... " >&6; }
11631 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11632
/* confdefs.h.  */
11633
_ACEOF
11634
cat confdefs.h >>conftest.$ac_ext
11635
cat >>conftest.$ac_ext <<_ACEOF
11636
/* end confdefs.h.  */
11637
$ac_includes_default
11638
#include <$ac_header>
11639
_ACEOF
11640
rm -f conftest.$ac_objext
11641 213 jeremybenn
if { (ac_try="$ac_compile"
11642
case "(($ac_try" in
11643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644
  *) ac_try_echo=$ac_try;;
11645
esac
11646
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11647
$as_echo "$ac_try_echo") >&5
11648
  (eval "$ac_compile") 2>conftest.er1
11649 131 jeremybenn
  ac_status=$?
11650
  grep -v '^ *+' conftest.er1 >conftest.err
11651
  rm -f conftest.er1
11652
  cat conftest.err >&5
11653 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
  (exit $ac_status); } && {
11655
         test -z "$ac_c_werror_flag" ||
11656
         test ! -s conftest.err
11657
       } && test -s conftest.$ac_objext; then
11658 131 jeremybenn
  ac_header_compiler=yes
11659
else
11660 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11661 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11662
 
11663 213 jeremybenn
        ac_header_compiler=no
11664 131 jeremybenn
fi
11665
 
11666 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11668
$as_echo "$ac_header_compiler" >&6; }
11669
 
11670 131 jeremybenn
# Is the header present?
11671 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11672
$as_echo_n "checking $ac_header presence... " >&6; }
11673 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11674
/* confdefs.h.  */
11675
_ACEOF
11676
cat confdefs.h >>conftest.$ac_ext
11677
cat >>conftest.$ac_ext <<_ACEOF
11678
/* end confdefs.h.  */
11679
#include <$ac_header>
11680
_ACEOF
11681 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11682
case "(($ac_try" in
11683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684
  *) ac_try_echo=$ac_try;;
11685
esac
11686
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687
$as_echo "$ac_try_echo") >&5
11688
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11689 131 jeremybenn
  ac_status=$?
11690
  grep -v '^ *+' conftest.er1 >conftest.err
11691
  rm -f conftest.er1
11692
  cat conftest.err >&5
11693 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694
  (exit $ac_status); } >/dev/null && {
11695
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11696
         test ! -s conftest.err
11697
       }; then
11698 131 jeremybenn
  ac_header_preproc=yes
11699
else
11700 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11701 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11702
 
11703
  ac_header_preproc=no
11704
fi
11705 213 jeremybenn
 
11706 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11707 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708
$as_echo "$ac_header_preproc" >&6; }
11709 131 jeremybenn
 
11710
# So?  What about this header?
11711
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712
  yes:no: )
11713 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717 131 jeremybenn
    ac_header_preproc=yes
11718
    ;;
11719
  no:yes:* )
11720 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11723
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11724
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11727
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11728
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11732
 
11733 131 jeremybenn
    ;;
11734
esac
11735 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11736
$as_echo_n "checking for $ac_header... " >&6; }
11737
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738
  $as_echo_n "(cached) " >&6
11739 131 jeremybenn
else
11740
  eval "$as_ac_Header=\$ac_header_preproc"
11741
fi
11742 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11743
                 $as_echo "$as_val"'`
11744
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11745
$as_echo "$ac_res" >&6; }
11746 131 jeremybenn
 
11747
fi
11748 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11749
                 $as_echo "$as_val"'`
11750
   if test "x$as_val" = x""yes; then
11751 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11752 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11753 131 jeremybenn
_ACEOF
11754
 
11755
fi
11756
 
11757
done
11758
 
11759
 
11760
for ac_header in sys/select.h
11761
do
11762 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11765
$as_echo_n "checking for $ac_header... " >&6; }
11766
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767
  $as_echo_n "(cached) " >&6
11768 131 jeremybenn
fi
11769 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11770
                 $as_echo "$as_val"'`
11771
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11772
$as_echo "$ac_res" >&6; }
11773 131 jeremybenn
else
11774
  # Is the header compilable?
11775 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776
$as_echo_n "checking $ac_header usability... " >&6; }
11777 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11778
/* confdefs.h.  */
11779
_ACEOF
11780
cat confdefs.h >>conftest.$ac_ext
11781
cat >>conftest.$ac_ext <<_ACEOF
11782
/* end confdefs.h.  */
11783
$ac_includes_default
11784
#include <$ac_header>
11785
_ACEOF
11786
rm -f conftest.$ac_objext
11787 213 jeremybenn
if { (ac_try="$ac_compile"
11788
case "(($ac_try" in
11789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790
  *) ac_try_echo=$ac_try;;
11791
esac
11792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11793
$as_echo "$ac_try_echo") >&5
11794
  (eval "$ac_compile") 2>conftest.er1
11795 131 jeremybenn
  ac_status=$?
11796
  grep -v '^ *+' conftest.er1 >conftest.err
11797
  rm -f conftest.er1
11798
  cat conftest.err >&5
11799 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800
  (exit $ac_status); } && {
11801
         test -z "$ac_c_werror_flag" ||
11802
         test ! -s conftest.err
11803
       } && test -s conftest.$ac_objext; then
11804 131 jeremybenn
  ac_header_compiler=yes
11805
else
11806 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11807 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11808
 
11809 213 jeremybenn
        ac_header_compiler=no
11810 131 jeremybenn
fi
11811
 
11812 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814
$as_echo "$ac_header_compiler" >&6; }
11815
 
11816 131 jeremybenn
# Is the header present?
11817 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818
$as_echo_n "checking $ac_header presence... " >&6; }
11819 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11820
/* confdefs.h.  */
11821
_ACEOF
11822
cat confdefs.h >>conftest.$ac_ext
11823
cat >>conftest.$ac_ext <<_ACEOF
11824
/* end confdefs.h.  */
11825
#include <$ac_header>
11826
_ACEOF
11827 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11828
case "(($ac_try" in
11829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830
  *) ac_try_echo=$ac_try;;
11831
esac
11832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833
$as_echo "$ac_try_echo") >&5
11834
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 131 jeremybenn
  ac_status=$?
11836
  grep -v '^ *+' conftest.er1 >conftest.err
11837
  rm -f conftest.er1
11838
  cat conftest.err >&5
11839 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840
  (exit $ac_status); } >/dev/null && {
11841
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11842
         test ! -s conftest.err
11843
       }; then
11844 131 jeremybenn
  ac_header_preproc=yes
11845
else
11846 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11847 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11848
 
11849
  ac_header_preproc=no
11850
fi
11851 213 jeremybenn
 
11852 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11853 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11854
$as_echo "$ac_header_preproc" >&6; }
11855 131 jeremybenn
 
11856
# So?  What about this header?
11857
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858
  yes:no: )
11859 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11860
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11861
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11862
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11863 131 jeremybenn
    ac_header_preproc=yes
11864
    ;;
11865
  no:yes:* )
11866 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11867
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11868
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11869
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11870
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11871
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11872
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11873
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11874
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11875
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11876
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11877
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11878
 
11879 131 jeremybenn
    ;;
11880
esac
11881 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11882
$as_echo_n "checking for $ac_header... " >&6; }
11883
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884
  $as_echo_n "(cached) " >&6
11885 131 jeremybenn
else
11886
  eval "$as_ac_Header=\$ac_header_preproc"
11887
fi
11888 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11889
                 $as_echo "$as_val"'`
11890
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11891
$as_echo "$ac_res" >&6; }
11892 131 jeremybenn
 
11893
fi
11894 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
11895
                 $as_echo "$as_val"'`
11896
   if test "x$as_val" = x""yes; then
11897 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
11898 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11899 131 jeremybenn
_ACEOF
11900
 
11901
fi
11902
 
11903
done
11904
 
11905
 
11906
for ac_header in sys/syscall.h
11907
do
11908 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11910
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11911
$as_echo_n "checking for $ac_header... " >&6; }
11912
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913
  $as_echo_n "(cached) " >&6
11914 131 jeremybenn
fi
11915 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
11916
                 $as_echo "$as_val"'`
11917
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11918
$as_echo "$ac_res" >&6; }
11919 131 jeremybenn
else
11920
  # Is the header compilable?
11921 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11922
$as_echo_n "checking $ac_header usability... " >&6; }
11923 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11924
/* confdefs.h.  */
11925
_ACEOF
11926
cat confdefs.h >>conftest.$ac_ext
11927
cat >>conftest.$ac_ext <<_ACEOF
11928
/* end confdefs.h.  */
11929
$ac_includes_default
11930
#include <$ac_header>
11931
_ACEOF
11932
rm -f conftest.$ac_objext
11933 213 jeremybenn
if { (ac_try="$ac_compile"
11934
case "(($ac_try" in
11935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936
  *) ac_try_echo=$ac_try;;
11937
esac
11938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939
$as_echo "$ac_try_echo") >&5
11940
  (eval "$ac_compile") 2>conftest.er1
11941 131 jeremybenn
  ac_status=$?
11942
  grep -v '^ *+' conftest.er1 >conftest.err
11943
  rm -f conftest.er1
11944
  cat conftest.err >&5
11945 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946
  (exit $ac_status); } && {
11947
         test -z "$ac_c_werror_flag" ||
11948
         test ! -s conftest.err
11949
       } && test -s conftest.$ac_objext; then
11950 131 jeremybenn
  ac_header_compiler=yes
11951
else
11952 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11953 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11954
 
11955 213 jeremybenn
        ac_header_compiler=no
11956 131 jeremybenn
fi
11957
 
11958 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11960
$as_echo "$ac_header_compiler" >&6; }
11961
 
11962 131 jeremybenn
# Is the header present?
11963 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11964
$as_echo_n "checking $ac_header presence... " >&6; }
11965 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
11966
/* confdefs.h.  */
11967
_ACEOF
11968
cat confdefs.h >>conftest.$ac_ext
11969
cat >>conftest.$ac_ext <<_ACEOF
11970
/* end confdefs.h.  */
11971
#include <$ac_header>
11972
_ACEOF
11973 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
11974
case "(($ac_try" in
11975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976
  *) ac_try_echo=$ac_try;;
11977
esac
11978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11979
$as_echo "$ac_try_echo") >&5
11980
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11981 131 jeremybenn
  ac_status=$?
11982
  grep -v '^ *+' conftest.er1 >conftest.err
11983
  rm -f conftest.er1
11984
  cat conftest.err >&5
11985 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986
  (exit $ac_status); } >/dev/null && {
11987
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11988
         test ! -s conftest.err
11989
       }; then
11990 131 jeremybenn
  ac_header_preproc=yes
11991
else
11992 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11993 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11994
 
11995
  ac_header_preproc=no
11996
fi
11997 213 jeremybenn
 
11998 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
11999 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12000
$as_echo "$ac_header_preproc" >&6; }
12001 131 jeremybenn
 
12002
# So?  What about this header?
12003
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12004
  yes:no: )
12005 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12006
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12007
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12008
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12009 131 jeremybenn
    ac_header_preproc=yes
12010
    ;;
12011
  no:yes:* )
12012 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12013
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12014
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12015
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12016
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12017
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12018
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12019
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12020
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12021
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12022
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12023
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12024
 
12025 131 jeremybenn
    ;;
12026
esac
12027 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12028
$as_echo_n "checking for $ac_header... " >&6; }
12029
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12030
  $as_echo_n "(cached) " >&6
12031 131 jeremybenn
else
12032
  eval "$as_ac_Header=\$ac_header_preproc"
12033
fi
12034 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12035
                 $as_echo "$as_val"'`
12036
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12037
$as_echo "$ac_res" >&6; }
12038 131 jeremybenn
 
12039
fi
12040 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12041
                 $as_echo "$as_val"'`
12042
   if test "x$as_val" = x""yes; then
12043 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12044 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12045 131 jeremybenn
_ACEOF
12046
 
12047
fi
12048
 
12049
done
12050
 
12051
 
12052
for ac_header in sys/types.h
12053
do
12054 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12056
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12057
$as_echo_n "checking for $ac_header... " >&6; }
12058
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12059
  $as_echo_n "(cached) " >&6
12060 131 jeremybenn
fi
12061 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12062
                 $as_echo "$as_val"'`
12063
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12064
$as_echo "$ac_res" >&6; }
12065 131 jeremybenn
else
12066
  # Is the header compilable?
12067 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12068
$as_echo_n "checking $ac_header usability... " >&6; }
12069 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12070
/* confdefs.h.  */
12071
_ACEOF
12072
cat confdefs.h >>conftest.$ac_ext
12073
cat >>conftest.$ac_ext <<_ACEOF
12074
/* end confdefs.h.  */
12075
$ac_includes_default
12076
#include <$ac_header>
12077
_ACEOF
12078
rm -f conftest.$ac_objext
12079 213 jeremybenn
if { (ac_try="$ac_compile"
12080
case "(($ac_try" in
12081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082
  *) ac_try_echo=$ac_try;;
12083
esac
12084
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085
$as_echo "$ac_try_echo") >&5
12086
  (eval "$ac_compile") 2>conftest.er1
12087 131 jeremybenn
  ac_status=$?
12088
  grep -v '^ *+' conftest.er1 >conftest.err
12089
  rm -f conftest.er1
12090
  cat conftest.err >&5
12091 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092
  (exit $ac_status); } && {
12093
         test -z "$ac_c_werror_flag" ||
12094
         test ! -s conftest.err
12095
       } && test -s conftest.$ac_objext; then
12096 131 jeremybenn
  ac_header_compiler=yes
12097
else
12098 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12099 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12100
 
12101 213 jeremybenn
        ac_header_compiler=no
12102 131 jeremybenn
fi
12103
 
12104 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12106
$as_echo "$ac_header_compiler" >&6; }
12107
 
12108 131 jeremybenn
# Is the header present?
12109 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12110
$as_echo_n "checking $ac_header presence... " >&6; }
12111 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12112
/* confdefs.h.  */
12113
_ACEOF
12114
cat confdefs.h >>conftest.$ac_ext
12115
cat >>conftest.$ac_ext <<_ACEOF
12116
/* end confdefs.h.  */
12117
#include <$ac_header>
12118
_ACEOF
12119 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12120
case "(($ac_try" in
12121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122
  *) ac_try_echo=$ac_try;;
12123
esac
12124
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12125
$as_echo "$ac_try_echo") >&5
12126
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12127 131 jeremybenn
  ac_status=$?
12128
  grep -v '^ *+' conftest.er1 >conftest.err
12129
  rm -f conftest.er1
12130
  cat conftest.err >&5
12131 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132
  (exit $ac_status); } >/dev/null && {
12133
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12134
         test ! -s conftest.err
12135
       }; then
12136 131 jeremybenn
  ac_header_preproc=yes
12137
else
12138 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12139 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12140
 
12141
  ac_header_preproc=no
12142
fi
12143 213 jeremybenn
 
12144 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12145 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12146
$as_echo "$ac_header_preproc" >&6; }
12147 131 jeremybenn
 
12148
# So?  What about this header?
12149
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12150
  yes:no: )
12151 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12152
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12153
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12154
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12155 131 jeremybenn
    ac_header_preproc=yes
12156
    ;;
12157
  no:yes:* )
12158 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12159
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12160
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12161
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12162
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12163
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12164
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12165
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12166
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12167
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12168
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12169
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12170
 
12171 131 jeremybenn
    ;;
12172
esac
12173 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12174
$as_echo_n "checking for $ac_header... " >&6; }
12175
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12176
  $as_echo_n "(cached) " >&6
12177 131 jeremybenn
else
12178
  eval "$as_ac_Header=\$ac_header_preproc"
12179
fi
12180 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12181
                 $as_echo "$as_val"'`
12182
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12183
$as_echo "$ac_res" >&6; }
12184 131 jeremybenn
 
12185
fi
12186 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12187
                 $as_echo "$as_val"'`
12188
   if test "x$as_val" = x""yes; then
12189 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12190 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191 131 jeremybenn
_ACEOF
12192
 
12193
fi
12194
 
12195
done
12196
 
12197
 
12198
for ac_header in sys/user.h
12199
do
12200 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12201
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12202
$as_echo_n "checking for $ac_header... " >&6; }
12203
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12204
  $as_echo_n "(cached) " >&6
12205 131 jeremybenn
else
12206
  cat >conftest.$ac_ext <<_ACEOF
12207
/* confdefs.h.  */
12208
_ACEOF
12209
cat confdefs.h >>conftest.$ac_ext
12210
cat >>conftest.$ac_ext <<_ACEOF
12211
/* end confdefs.h.  */
12212
#if HAVE_SYS_PARAM_H
12213
# include 
12214
#endif
12215
 
12216
 
12217
#include <$ac_header>
12218
_ACEOF
12219
rm -f conftest.$ac_objext
12220 213 jeremybenn
if { (ac_try="$ac_compile"
12221
case "(($ac_try" in
12222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223
  *) ac_try_echo=$ac_try;;
12224
esac
12225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12226
$as_echo "$ac_try_echo") >&5
12227
  (eval "$ac_compile") 2>conftest.er1
12228 131 jeremybenn
  ac_status=$?
12229
  grep -v '^ *+' conftest.er1 >conftest.err
12230
  rm -f conftest.er1
12231
  cat conftest.err >&5
12232 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
  (exit $ac_status); } && {
12234
         test -z "$ac_c_werror_flag" ||
12235
         test ! -s conftest.err
12236
       } && test -s conftest.$ac_objext; then
12237 131 jeremybenn
  eval "$as_ac_Header=yes"
12238
else
12239 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12240 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12241
 
12242 213 jeremybenn
        eval "$as_ac_Header=no"
12243 131 jeremybenn
fi
12244 213 jeremybenn
 
12245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 131 jeremybenn
fi
12247 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12248
                 $as_echo "$as_val"'`
12249
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12250
$as_echo "$ac_res" >&6; }
12251
as_val=`eval 'as_val=${'$as_ac_Header'}
12252
                 $as_echo "$as_val"'`
12253
   if test "x$as_val" = x""yes; then
12254 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12255 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12256 131 jeremybenn
_ACEOF
12257
 
12258
fi
12259
 
12260
done
12261
 
12262
 
12263
 
12264
for ac_header in sys/wait.h wait.h
12265
do
12266 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12267
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12269
$as_echo_n "checking for $ac_header... " >&6; }
12270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271
  $as_echo_n "(cached) " >&6
12272 131 jeremybenn
fi
12273 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12274
                 $as_echo "$as_val"'`
12275
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12276
$as_echo "$ac_res" >&6; }
12277 131 jeremybenn
else
12278
  # Is the header compilable?
12279 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280
$as_echo_n "checking $ac_header usability... " >&6; }
12281 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12282
/* confdefs.h.  */
12283
_ACEOF
12284
cat confdefs.h >>conftest.$ac_ext
12285
cat >>conftest.$ac_ext <<_ACEOF
12286
/* end confdefs.h.  */
12287
$ac_includes_default
12288
#include <$ac_header>
12289
_ACEOF
12290
rm -f conftest.$ac_objext
12291 213 jeremybenn
if { (ac_try="$ac_compile"
12292
case "(($ac_try" in
12293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294
  *) ac_try_echo=$ac_try;;
12295
esac
12296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12297
$as_echo "$ac_try_echo") >&5
12298
  (eval "$ac_compile") 2>conftest.er1
12299 131 jeremybenn
  ac_status=$?
12300
  grep -v '^ *+' conftest.er1 >conftest.err
12301
  rm -f conftest.er1
12302
  cat conftest.err >&5
12303 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304
  (exit $ac_status); } && {
12305
         test -z "$ac_c_werror_flag" ||
12306
         test ! -s conftest.err
12307
       } && test -s conftest.$ac_objext; then
12308 131 jeremybenn
  ac_header_compiler=yes
12309
else
12310 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12311 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12312
 
12313 213 jeremybenn
        ac_header_compiler=no
12314 131 jeremybenn
fi
12315
 
12316 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318
$as_echo "$ac_header_compiler" >&6; }
12319
 
12320 131 jeremybenn
# Is the header present?
12321 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12322
$as_echo_n "checking $ac_header presence... " >&6; }
12323 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12324
/* confdefs.h.  */
12325
_ACEOF
12326
cat confdefs.h >>conftest.$ac_ext
12327
cat >>conftest.$ac_ext <<_ACEOF
12328
/* end confdefs.h.  */
12329
#include <$ac_header>
12330
_ACEOF
12331 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12332
case "(($ac_try" in
12333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334
  *) ac_try_echo=$ac_try;;
12335
esac
12336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337
$as_echo "$ac_try_echo") >&5
12338
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12339 131 jeremybenn
  ac_status=$?
12340
  grep -v '^ *+' conftest.er1 >conftest.err
12341
  rm -f conftest.er1
12342
  cat conftest.err >&5
12343 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
  (exit $ac_status); } >/dev/null && {
12345
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346
         test ! -s conftest.err
12347
       }; then
12348 131 jeremybenn
  ac_header_preproc=yes
12349
else
12350 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12351 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12352
 
12353
  ac_header_preproc=no
12354
fi
12355 213 jeremybenn
 
12356 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12357 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358
$as_echo "$ac_header_preproc" >&6; }
12359 131 jeremybenn
 
12360
# So?  What about this header?
12361
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362
  yes:no: )
12363 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12364
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12366
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12367 131 jeremybenn
    ac_header_preproc=yes
12368
    ;;
12369
  no:yes:* )
12370 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12371
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12372
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12373
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12374
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12375
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12376
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12377
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12378
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12379
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12380
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12381
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12382
 
12383 131 jeremybenn
    ;;
12384
esac
12385 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12386
$as_echo_n "checking for $ac_header... " >&6; }
12387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12388
  $as_echo_n "(cached) " >&6
12389 131 jeremybenn
else
12390
  eval "$as_ac_Header=\$ac_header_preproc"
12391
fi
12392 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12393
                 $as_echo "$as_val"'`
12394
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12395
$as_echo "$ac_res" >&6; }
12396 131 jeremybenn
 
12397
fi
12398 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12399
                 $as_echo "$as_val"'`
12400
   if test "x$as_val" = x""yes; then
12401 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12402 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12403 131 jeremybenn
_ACEOF
12404
 
12405
fi
12406
 
12407
done
12408
 
12409
 
12410
 
12411
 
12412
for ac_header in termios.h termio.h sgtty.h
12413
do
12414 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12417
$as_echo_n "checking for $ac_header... " >&6; }
12418
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12419
  $as_echo_n "(cached) " >&6
12420 131 jeremybenn
fi
12421 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12422
                 $as_echo "$as_val"'`
12423
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12424
$as_echo "$ac_res" >&6; }
12425 131 jeremybenn
else
12426
  # Is the header compilable?
12427 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12428
$as_echo_n "checking $ac_header usability... " >&6; }
12429 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12430
/* confdefs.h.  */
12431
_ACEOF
12432
cat confdefs.h >>conftest.$ac_ext
12433
cat >>conftest.$ac_ext <<_ACEOF
12434
/* end confdefs.h.  */
12435
$ac_includes_default
12436
#include <$ac_header>
12437
_ACEOF
12438
rm -f conftest.$ac_objext
12439 213 jeremybenn
if { (ac_try="$ac_compile"
12440
case "(($ac_try" in
12441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442
  *) ac_try_echo=$ac_try;;
12443
esac
12444
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12445
$as_echo "$ac_try_echo") >&5
12446
  (eval "$ac_compile") 2>conftest.er1
12447 131 jeremybenn
  ac_status=$?
12448
  grep -v '^ *+' conftest.er1 >conftest.err
12449
  rm -f conftest.er1
12450
  cat conftest.err >&5
12451 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
  (exit $ac_status); } && {
12453
         test -z "$ac_c_werror_flag" ||
12454
         test ! -s conftest.err
12455
       } && test -s conftest.$ac_objext; then
12456 131 jeremybenn
  ac_header_compiler=yes
12457
else
12458 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12459 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12460
 
12461 213 jeremybenn
        ac_header_compiler=no
12462 131 jeremybenn
fi
12463
 
12464 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12466
$as_echo "$ac_header_compiler" >&6; }
12467
 
12468 131 jeremybenn
# Is the header present?
12469 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12470
$as_echo_n "checking $ac_header presence... " >&6; }
12471 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12472
/* confdefs.h.  */
12473
_ACEOF
12474
cat confdefs.h >>conftest.$ac_ext
12475
cat >>conftest.$ac_ext <<_ACEOF
12476
/* end confdefs.h.  */
12477
#include <$ac_header>
12478
_ACEOF
12479 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12480
case "(($ac_try" in
12481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482
  *) ac_try_echo=$ac_try;;
12483
esac
12484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12485
$as_echo "$ac_try_echo") >&5
12486
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12487 131 jeremybenn
  ac_status=$?
12488
  grep -v '^ *+' conftest.er1 >conftest.err
12489
  rm -f conftest.er1
12490
  cat conftest.err >&5
12491 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492
  (exit $ac_status); } >/dev/null && {
12493
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12494
         test ! -s conftest.err
12495
       }; then
12496 131 jeremybenn
  ac_header_preproc=yes
12497
else
12498 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12499 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12500
 
12501
  ac_header_preproc=no
12502
fi
12503 213 jeremybenn
 
12504 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12505 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12506
$as_echo "$ac_header_preproc" >&6; }
12507 131 jeremybenn
 
12508
# So?  What about this header?
12509
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12510
  yes:no: )
12511 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12512
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12513
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12514
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12515 131 jeremybenn
    ac_header_preproc=yes
12516
    ;;
12517
  no:yes:* )
12518 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12519
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12520
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12521
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12522
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12523
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12524
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12525
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12526
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12527
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12528
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12529
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12530
 
12531 131 jeremybenn
    ;;
12532
esac
12533 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12534
$as_echo_n "checking for $ac_header... " >&6; }
12535
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536
  $as_echo_n "(cached) " >&6
12537 131 jeremybenn
else
12538
  eval "$as_ac_Header=\$ac_header_preproc"
12539
fi
12540 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12541
                 $as_echo "$as_val"'`
12542
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12543
$as_echo "$ac_res" >&6; }
12544 131 jeremybenn
 
12545
fi
12546 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12547
                 $as_echo "$as_val"'`
12548
   if test "x$as_val" = x""yes; then
12549 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12550 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12551 131 jeremybenn
_ACEOF
12552
 
12553
fi
12554
 
12555
done
12556
 
12557
 
12558
for ac_header in unistd.h
12559
do
12560 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12561
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12562
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12563
$as_echo_n "checking for $ac_header... " >&6; }
12564
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12565
  $as_echo_n "(cached) " >&6
12566 131 jeremybenn
fi
12567 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12568
                 $as_echo "$as_val"'`
12569
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12570
$as_echo "$ac_res" >&6; }
12571 131 jeremybenn
else
12572
  # Is the header compilable?
12573 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12574
$as_echo_n "checking $ac_header usability... " >&6; }
12575 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12576
/* confdefs.h.  */
12577
_ACEOF
12578
cat confdefs.h >>conftest.$ac_ext
12579
cat >>conftest.$ac_ext <<_ACEOF
12580
/* end confdefs.h.  */
12581
$ac_includes_default
12582
#include <$ac_header>
12583
_ACEOF
12584
rm -f conftest.$ac_objext
12585 213 jeremybenn
if { (ac_try="$ac_compile"
12586
case "(($ac_try" in
12587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588
  *) ac_try_echo=$ac_try;;
12589
esac
12590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12591
$as_echo "$ac_try_echo") >&5
12592
  (eval "$ac_compile") 2>conftest.er1
12593 131 jeremybenn
  ac_status=$?
12594
  grep -v '^ *+' conftest.er1 >conftest.err
12595
  rm -f conftest.er1
12596
  cat conftest.err >&5
12597 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
  (exit $ac_status); } && {
12599
         test -z "$ac_c_werror_flag" ||
12600
         test ! -s conftest.err
12601
       } && test -s conftest.$ac_objext; then
12602 131 jeremybenn
  ac_header_compiler=yes
12603
else
12604 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12605 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12606
 
12607 213 jeremybenn
        ac_header_compiler=no
12608 131 jeremybenn
fi
12609
 
12610 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12612
$as_echo "$ac_header_compiler" >&6; }
12613
 
12614 131 jeremybenn
# Is the header present?
12615 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12616
$as_echo_n "checking $ac_header presence... " >&6; }
12617 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12618
/* confdefs.h.  */
12619
_ACEOF
12620
cat confdefs.h >>conftest.$ac_ext
12621
cat >>conftest.$ac_ext <<_ACEOF
12622
/* end confdefs.h.  */
12623
#include <$ac_header>
12624
_ACEOF
12625 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12626
case "(($ac_try" in
12627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628
  *) ac_try_echo=$ac_try;;
12629
esac
12630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12631
$as_echo "$ac_try_echo") >&5
12632
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12633 131 jeremybenn
  ac_status=$?
12634
  grep -v '^ *+' conftest.er1 >conftest.err
12635
  rm -f conftest.er1
12636
  cat conftest.err >&5
12637 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638
  (exit $ac_status); } >/dev/null && {
12639
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12640
         test ! -s conftest.err
12641
       }; then
12642 131 jeremybenn
  ac_header_preproc=yes
12643
else
12644 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12645 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12646
 
12647
  ac_header_preproc=no
12648
fi
12649 213 jeremybenn
 
12650 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12651 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652
$as_echo "$ac_header_preproc" >&6; }
12653 131 jeremybenn
 
12654
# So?  What about this header?
12655
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12656
  yes:no: )
12657 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12658
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12659
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12660
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12661 131 jeremybenn
    ac_header_preproc=yes
12662
    ;;
12663
  no:yes:* )
12664 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12665
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12666
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12667
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12668
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12669
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12670
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12671
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12672
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12673
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12674
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12675
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12676
 
12677 131 jeremybenn
    ;;
12678
esac
12679 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12680
$as_echo_n "checking for $ac_header... " >&6; }
12681
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682
  $as_echo_n "(cached) " >&6
12683 131 jeremybenn
else
12684
  eval "$as_ac_Header=\$ac_header_preproc"
12685
fi
12686 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12687
                 $as_echo "$as_val"'`
12688
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12689
$as_echo "$ac_res" >&6; }
12690 131 jeremybenn
 
12691
fi
12692 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12693
                 $as_echo "$as_val"'`
12694
   if test "x$as_val" = x""yes; then
12695 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12696 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12697 131 jeremybenn
_ACEOF
12698
 
12699
fi
12700
 
12701
done
12702
 
12703
 
12704
# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12705
# between  and  that would cause AC_CHECK_HEADERS to
12706
# think that we don't have  if we're using GCC.
12707
case $host_os in
12708
  solaris2.[789])
12709
    if test "$GCC" = yes; then
12710
 
12711
cat >>confdefs.h <<\_ACEOF
12712
#define _MSE_INT_H 1
12713
_ACEOF
12714
 
12715
    fi ;;
12716
esac
12717
 
12718
 
12719
 
12720
 
12721
for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12722
do
12723 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12724
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12726
$as_echo_n "checking for $ac_header... " >&6; }
12727
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12728
  $as_echo_n "(cached) " >&6
12729 131 jeremybenn
fi
12730 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12731
                 $as_echo "$as_val"'`
12732
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12733
$as_echo "$ac_res" >&6; }
12734 131 jeremybenn
else
12735
  # Is the header compilable?
12736 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737
$as_echo_n "checking $ac_header usability... " >&6; }
12738 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12739
/* confdefs.h.  */
12740
_ACEOF
12741
cat confdefs.h >>conftest.$ac_ext
12742
cat >>conftest.$ac_ext <<_ACEOF
12743
/* end confdefs.h.  */
12744
$ac_includes_default
12745
#include <$ac_header>
12746
_ACEOF
12747
rm -f conftest.$ac_objext
12748 213 jeremybenn
if { (ac_try="$ac_compile"
12749
case "(($ac_try" in
12750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751
  *) ac_try_echo=$ac_try;;
12752
esac
12753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12754
$as_echo "$ac_try_echo") >&5
12755
  (eval "$ac_compile") 2>conftest.er1
12756 131 jeremybenn
  ac_status=$?
12757
  grep -v '^ *+' conftest.er1 >conftest.err
12758
  rm -f conftest.er1
12759
  cat conftest.err >&5
12760 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761
  (exit $ac_status); } && {
12762
         test -z "$ac_c_werror_flag" ||
12763
         test ! -s conftest.err
12764
       } && test -s conftest.$ac_objext; then
12765 131 jeremybenn
  ac_header_compiler=yes
12766
else
12767 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12768 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12769
 
12770 213 jeremybenn
        ac_header_compiler=no
12771 131 jeremybenn
fi
12772
 
12773 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12775
$as_echo "$ac_header_compiler" >&6; }
12776
 
12777 131 jeremybenn
# Is the header present?
12778 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12779
$as_echo_n "checking $ac_header presence... " >&6; }
12780 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12781
/* confdefs.h.  */
12782
_ACEOF
12783
cat confdefs.h >>conftest.$ac_ext
12784
cat >>conftest.$ac_ext <<_ACEOF
12785
/* end confdefs.h.  */
12786
#include <$ac_header>
12787
_ACEOF
12788 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12789
case "(($ac_try" in
12790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791
  *) ac_try_echo=$ac_try;;
12792
esac
12793
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12794
$as_echo "$ac_try_echo") >&5
12795
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12796 131 jeremybenn
  ac_status=$?
12797
  grep -v '^ *+' conftest.er1 >conftest.err
12798
  rm -f conftest.er1
12799
  cat conftest.err >&5
12800 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801
  (exit $ac_status); } >/dev/null && {
12802
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12803
         test ! -s conftest.err
12804
       }; then
12805 131 jeremybenn
  ac_header_preproc=yes
12806
else
12807 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12808 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12809
 
12810
  ac_header_preproc=no
12811
fi
12812 213 jeremybenn
 
12813 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12814 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12815
$as_echo "$ac_header_preproc" >&6; }
12816 131 jeremybenn
 
12817
# So?  What about this header?
12818
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12819
  yes:no: )
12820 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12821
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12822
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12823
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12824 131 jeremybenn
    ac_header_preproc=yes
12825
    ;;
12826
  no:yes:* )
12827 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12828
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12829
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12830
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12831
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12832
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12833
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12834
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12835
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12836
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12837
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12838
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12839
 
12840 131 jeremybenn
    ;;
12841
esac
12842 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12843
$as_echo_n "checking for $ac_header... " >&6; }
12844
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12845
  $as_echo_n "(cached) " >&6
12846 131 jeremybenn
else
12847
  eval "$as_ac_Header=\$ac_header_preproc"
12848
fi
12849 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12850
                 $as_echo "$as_val"'`
12851
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12852
$as_echo "$ac_res" >&6; }
12853 131 jeremybenn
 
12854
fi
12855 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12856
                 $as_echo "$as_val"'`
12857
   if test "x$as_val" = x""yes; then
12858 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
12859 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12860 131 jeremybenn
_ACEOF
12861
 
12862
fi
12863
 
12864
done
12865
 
12866
 
12867
for ac_header in ncurses/term.h
12868
do
12869 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12870
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12872
$as_echo_n "checking for $ac_header... " >&6; }
12873
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12874
  $as_echo_n "(cached) " >&6
12875 131 jeremybenn
fi
12876 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12877
                 $as_echo "$as_val"'`
12878
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12879
$as_echo "$ac_res" >&6; }
12880 131 jeremybenn
else
12881
  # Is the header compilable?
12882 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883
$as_echo_n "checking $ac_header usability... " >&6; }
12884 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12885
/* confdefs.h.  */
12886
_ACEOF
12887
cat confdefs.h >>conftest.$ac_ext
12888
cat >>conftest.$ac_ext <<_ACEOF
12889
/* end confdefs.h.  */
12890
$ac_includes_default
12891
#include <$ac_header>
12892
_ACEOF
12893
rm -f conftest.$ac_objext
12894 213 jeremybenn
if { (ac_try="$ac_compile"
12895
case "(($ac_try" in
12896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897
  *) ac_try_echo=$ac_try;;
12898
esac
12899
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900
$as_echo "$ac_try_echo") >&5
12901
  (eval "$ac_compile") 2>conftest.er1
12902 131 jeremybenn
  ac_status=$?
12903
  grep -v '^ *+' conftest.er1 >conftest.err
12904
  rm -f conftest.er1
12905
  cat conftest.err >&5
12906 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907
  (exit $ac_status); } && {
12908
         test -z "$ac_c_werror_flag" ||
12909
         test ! -s conftest.err
12910
       } && test -s conftest.$ac_objext; then
12911 131 jeremybenn
  ac_header_compiler=yes
12912
else
12913 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12914 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12915
 
12916 213 jeremybenn
        ac_header_compiler=no
12917 131 jeremybenn
fi
12918
 
12919 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12921
$as_echo "$ac_header_compiler" >&6; }
12922
 
12923 131 jeremybenn
# Is the header present?
12924 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12925
$as_echo_n "checking $ac_header presence... " >&6; }
12926 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12927
/* confdefs.h.  */
12928
_ACEOF
12929
cat confdefs.h >>conftest.$ac_ext
12930
cat >>conftest.$ac_ext <<_ACEOF
12931
/* end confdefs.h.  */
12932
#include <$ac_header>
12933
_ACEOF
12934 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12935
case "(($ac_try" in
12936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937
  *) ac_try_echo=$ac_try;;
12938
esac
12939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12940
$as_echo "$ac_try_echo") >&5
12941
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12942 131 jeremybenn
  ac_status=$?
12943
  grep -v '^ *+' conftest.er1 >conftest.err
12944
  rm -f conftest.er1
12945
  cat conftest.err >&5
12946 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947
  (exit $ac_status); } >/dev/null && {
12948
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12949
         test ! -s conftest.err
12950
       }; then
12951 131 jeremybenn
  ac_header_preproc=yes
12952
else
12953 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12954 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12955
 
12956
  ac_header_preproc=no
12957
fi
12958 213 jeremybenn
 
12959 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
12960 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12961
$as_echo "$ac_header_preproc" >&6; }
12962 131 jeremybenn
 
12963
# So?  What about this header?
12964
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12965
  yes:no: )
12966 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12967
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12968
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12969
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12970 131 jeremybenn
    ac_header_preproc=yes
12971
    ;;
12972
  no:yes:* )
12973 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12976
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12977
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12978
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12979
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12980
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12981
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12982
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12983
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12984
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12985
 
12986 131 jeremybenn
    ;;
12987
esac
12988 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12989
$as_echo_n "checking for $ac_header... " >&6; }
12990
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12991
  $as_echo_n "(cached) " >&6
12992 131 jeremybenn
else
12993
  eval "$as_ac_Header=\$ac_header_preproc"
12994
fi
12995 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12996
                 $as_echo "$as_val"'`
12997
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12998
$as_echo "$ac_res" >&6; }
12999 131 jeremybenn
 
13000
fi
13001 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
13002
                 $as_echo "$as_val"'`
13003
   if test "x$as_val" = x""yes; then
13004 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
13005 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13006 131 jeremybenn
_ACEOF
13007
 
13008
fi
13009
 
13010
done
13011
 
13012
 
13013
for ac_header in term.h
13014
do
13015 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13016
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13017
$as_echo_n "checking for $ac_header... " >&6; }
13018
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13019
  $as_echo_n "(cached) " >&6
13020 131 jeremybenn
else
13021
  cat >conftest.$ac_ext <<_ACEOF
13022
/* confdefs.h.  */
13023
_ACEOF
13024
cat confdefs.h >>conftest.$ac_ext
13025
cat >>conftest.$ac_ext <<_ACEOF
13026
/* end confdefs.h.  */
13027
#if HAVE_CURSES_H
13028
# include 
13029
#endif
13030
 
13031
 
13032
#include <$ac_header>
13033
_ACEOF
13034
rm -f conftest.$ac_objext
13035 213 jeremybenn
if { (ac_try="$ac_compile"
13036
case "(($ac_try" in
13037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038
  *) ac_try_echo=$ac_try;;
13039
esac
13040
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13041
$as_echo "$ac_try_echo") >&5
13042
  (eval "$ac_compile") 2>conftest.er1
13043 131 jeremybenn
  ac_status=$?
13044
  grep -v '^ *+' conftest.er1 >conftest.err
13045
  rm -f conftest.er1
13046
  cat conftest.err >&5
13047 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048
  (exit $ac_status); } && {
13049
         test -z "$ac_c_werror_flag" ||
13050
         test ! -s conftest.err
13051
       } && test -s conftest.$ac_objext; then
13052 131 jeremybenn
  eval "$as_ac_Header=yes"
13053
else
13054 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13055 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13056
 
13057 213 jeremybenn
        eval "$as_ac_Header=no"
13058 131 jeremybenn
fi
13059 213 jeremybenn
 
13060
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 131 jeremybenn
fi
13062 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
13063
                 $as_echo "$as_val"'`
13064
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13065
$as_echo "$ac_res" >&6; }
13066
as_val=`eval 'as_val=${'$as_ac_Header'}
13067
                 $as_echo "$as_val"'`
13068
   if test "x$as_val" = x""yes; then
13069 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
13070 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13071 131 jeremybenn
_ACEOF
13072
 
13073
fi
13074
 
13075
done
13076
 
13077
 
13078
# Check for HP/UX 64-bit shared library support
13079
 
13080
for ac_header in elf_hp.h
13081
do
13082 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13083
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13084
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13085
$as_echo_n "checking for $ac_header... " >&6; }
13086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087
  $as_echo_n "(cached) " >&6
13088 131 jeremybenn
fi
13089 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
13090
                 $as_echo "$as_val"'`
13091
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13092
$as_echo "$ac_res" >&6; }
13093 131 jeremybenn
else
13094
  # Is the header compilable?
13095 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13096
$as_echo_n "checking $ac_header usability... " >&6; }
13097 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13098
/* confdefs.h.  */
13099
_ACEOF
13100
cat confdefs.h >>conftest.$ac_ext
13101
cat >>conftest.$ac_ext <<_ACEOF
13102
/* end confdefs.h.  */
13103
$ac_includes_default
13104
#include <$ac_header>
13105
_ACEOF
13106
rm -f conftest.$ac_objext
13107 213 jeremybenn
if { (ac_try="$ac_compile"
13108
case "(($ac_try" in
13109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110
  *) ac_try_echo=$ac_try;;
13111
esac
13112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13113
$as_echo "$ac_try_echo") >&5
13114
  (eval "$ac_compile") 2>conftest.er1
13115 131 jeremybenn
  ac_status=$?
13116
  grep -v '^ *+' conftest.er1 >conftest.err
13117
  rm -f conftest.er1
13118
  cat conftest.err >&5
13119 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120
  (exit $ac_status); } && {
13121
         test -z "$ac_c_werror_flag" ||
13122
         test ! -s conftest.err
13123
       } && test -s conftest.$ac_objext; then
13124 131 jeremybenn
  ac_header_compiler=yes
13125
else
13126 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13127 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13128
 
13129 213 jeremybenn
        ac_header_compiler=no
13130 131 jeremybenn
fi
13131
 
13132 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13134
$as_echo "$ac_header_compiler" >&6; }
13135
 
13136 131 jeremybenn
# Is the header present?
13137 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13138
$as_echo_n "checking $ac_header presence... " >&6; }
13139 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13140
/* confdefs.h.  */
13141
_ACEOF
13142
cat confdefs.h >>conftest.$ac_ext
13143
cat >>conftest.$ac_ext <<_ACEOF
13144
/* end confdefs.h.  */
13145
#include <$ac_header>
13146
_ACEOF
13147 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
13148
case "(($ac_try" in
13149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150
  *) ac_try_echo=$ac_try;;
13151
esac
13152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13153
$as_echo "$ac_try_echo") >&5
13154
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13155 131 jeremybenn
  ac_status=$?
13156
  grep -v '^ *+' conftest.er1 >conftest.err
13157
  rm -f conftest.er1
13158
  cat conftest.err >&5
13159 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160
  (exit $ac_status); } >/dev/null && {
13161
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13162
         test ! -s conftest.err
13163
       }; then
13164 131 jeremybenn
  ac_header_preproc=yes
13165
else
13166 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13167 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13168
 
13169
  ac_header_preproc=no
13170
fi
13171 213 jeremybenn
 
13172 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
13173 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13174
$as_echo "$ac_header_preproc" >&6; }
13175 131 jeremybenn
 
13176
# So?  What about this header?
13177
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13178
  yes:no: )
13179 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13180
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13181
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13182
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13183 131 jeremybenn
    ac_header_preproc=yes
13184
    ;;
13185
  no:yes:* )
13186 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13189
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13190
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13191
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13192
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13193
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13194
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13196
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13197
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13198
 
13199 131 jeremybenn
    ;;
13200
esac
13201 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13202
$as_echo_n "checking for $ac_header... " >&6; }
13203
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13204
  $as_echo_n "(cached) " >&6
13205 131 jeremybenn
else
13206
  eval "$as_ac_Header=\$ac_header_preproc"
13207
fi
13208 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
13209
                 $as_echo "$as_val"'`
13210
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13211
$as_echo "$ac_res" >&6; }
13212 131 jeremybenn
 
13213
fi
13214 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
13215
                 $as_echo "$as_val"'`
13216
   if test "x$as_val" = x""yes; then
13217 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
13218 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13219 131 jeremybenn
_ACEOF
13220
 
13221
fi
13222
 
13223
done
13224
 
13225
 
13226
# FIXME: kettenis/20030102: In most cases we include these
13227
# unconditionally, so what's the point in checking these?
13228
 
13229
 
13230
for ac_header in ctype.h time.h
13231
do
13232 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13234
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13235
$as_echo_n "checking for $ac_header... " >&6; }
13236
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13237
  $as_echo_n "(cached) " >&6
13238 131 jeremybenn
fi
13239 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
13240
                 $as_echo "$as_val"'`
13241
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13242
$as_echo "$ac_res" >&6; }
13243 131 jeremybenn
else
13244
  # Is the header compilable?
13245 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13246
$as_echo_n "checking $ac_header usability... " >&6; }
13247 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13248
/* confdefs.h.  */
13249
_ACEOF
13250
cat confdefs.h >>conftest.$ac_ext
13251
cat >>conftest.$ac_ext <<_ACEOF
13252
/* end confdefs.h.  */
13253
$ac_includes_default
13254
#include <$ac_header>
13255
_ACEOF
13256
rm -f conftest.$ac_objext
13257 213 jeremybenn
if { (ac_try="$ac_compile"
13258
case "(($ac_try" in
13259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260
  *) ac_try_echo=$ac_try;;
13261
esac
13262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13263
$as_echo "$ac_try_echo") >&5
13264
  (eval "$ac_compile") 2>conftest.er1
13265 131 jeremybenn
  ac_status=$?
13266
  grep -v '^ *+' conftest.er1 >conftest.err
13267
  rm -f conftest.er1
13268
  cat conftest.err >&5
13269 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270
  (exit $ac_status); } && {
13271
         test -z "$ac_c_werror_flag" ||
13272
         test ! -s conftest.err
13273
       } && test -s conftest.$ac_objext; then
13274 131 jeremybenn
  ac_header_compiler=yes
13275
else
13276 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13277 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13278
 
13279 213 jeremybenn
        ac_header_compiler=no
13280 131 jeremybenn
fi
13281
 
13282 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284
$as_echo "$ac_header_compiler" >&6; }
13285
 
13286 131 jeremybenn
# Is the header present?
13287 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288
$as_echo_n "checking $ac_header presence... " >&6; }
13289 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13290
/* confdefs.h.  */
13291
_ACEOF
13292
cat confdefs.h >>conftest.$ac_ext
13293
cat >>conftest.$ac_ext <<_ACEOF
13294
/* end confdefs.h.  */
13295
#include <$ac_header>
13296
_ACEOF
13297 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
13298
case "(($ac_try" in
13299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300
  *) ac_try_echo=$ac_try;;
13301
esac
13302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303
$as_echo "$ac_try_echo") >&5
13304
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13305 131 jeremybenn
  ac_status=$?
13306
  grep -v '^ *+' conftest.er1 >conftest.err
13307
  rm -f conftest.er1
13308
  cat conftest.err >&5
13309 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310
  (exit $ac_status); } >/dev/null && {
13311
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13312
         test ! -s conftest.err
13313
       }; then
13314 131 jeremybenn
  ac_header_preproc=yes
13315
else
13316 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13317 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13318
 
13319
  ac_header_preproc=no
13320
fi
13321 213 jeremybenn
 
13322 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
13323 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324
$as_echo "$ac_header_preproc" >&6; }
13325 131 jeremybenn
 
13326
# So?  What about this header?
13327
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328
  yes:no: )
13329 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333 131 jeremybenn
    ac_header_preproc=yes
13334
    ;;
13335
  no:yes:* )
13336 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13339
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13340
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13343
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13344
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348
 
13349 131 jeremybenn
    ;;
13350
esac
13351 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13352
$as_echo_n "checking for $ac_header... " >&6; }
13353
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13354
  $as_echo_n "(cached) " >&6
13355 131 jeremybenn
else
13356
  eval "$as_ac_Header=\$ac_header_preproc"
13357
fi
13358 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
13359
                 $as_echo "$as_val"'`
13360
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13361
$as_echo "$ac_res" >&6; }
13362 131 jeremybenn
 
13363
fi
13364 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
13365
                 $as_echo "$as_val"'`
13366
   if test "x$as_val" = x""yes; then
13367 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
13368 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13369 131 jeremybenn
_ACEOF
13370
 
13371
fi
13372
 
13373
done
13374
 
13375
 
13376
# Create a header we can use portably to get the standard integer types.
13377
 
13378
 
13379
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13380
 
13381
acx_cv_header_stdint=stddef.h
13382
acx_cv_header_stdint_kind="(already complete)"
13383
for i in stdint.h $inttype_headers; do
13384
  unset ac_cv_type_uintptr_t
13385
  unset ac_cv_type_uintmax_t
13386
  unset ac_cv_type_int_least32_t
13387
  unset ac_cv_type_int_fast32_t
13388
  unset ac_cv_type_uint64_t
13389 213 jeremybenn
  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13390
  { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
13391
$as_echo_n "checking for uintmax_t... " >&6; }
13392 131 jeremybenn
if test "${ac_cv_type_uintmax_t+set}" = set; then
13393 213 jeremybenn
  $as_echo_n "(cached) " >&6
13394 131 jeremybenn
else
13395 213 jeremybenn
  ac_cv_type_uintmax_t=no
13396
cat >conftest.$ac_ext <<_ACEOF
13397 131 jeremybenn
/* confdefs.h.  */
13398
_ACEOF
13399
cat confdefs.h >>conftest.$ac_ext
13400
cat >>conftest.$ac_ext <<_ACEOF
13401
/* end confdefs.h.  */
13402
#include 
13403
#include <$i>
13404
 
13405
int
13406
main ()
13407
{
13408
if (sizeof (uintmax_t))
13409 213 jeremybenn
       return 0;
13410
  ;
13411 131 jeremybenn
  return 0;
13412 213 jeremybenn
}
13413
_ACEOF
13414
rm -f conftest.$ac_objext
13415
if { (ac_try="$ac_compile"
13416
case "(($ac_try" in
13417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418
  *) ac_try_echo=$ac_try;;
13419
esac
13420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421
$as_echo "$ac_try_echo") >&5
13422
  (eval "$ac_compile") 2>conftest.er1
13423
  ac_status=$?
13424
  grep -v '^ *+' conftest.er1 >conftest.err
13425
  rm -f conftest.er1
13426
  cat conftest.err >&5
13427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428
  (exit $ac_status); } && {
13429
         test -z "$ac_c_werror_flag" ||
13430
         test ! -s conftest.err
13431
       } && test -s conftest.$ac_objext; then
13432
  cat >conftest.$ac_ext <<_ACEOF
13433
/* confdefs.h.  */
13434
_ACEOF
13435
cat confdefs.h >>conftest.$ac_ext
13436
cat >>conftest.$ac_ext <<_ACEOF
13437
/* end confdefs.h.  */
13438
#include 
13439
#include <$i>
13440
 
13441
int
13442
main ()
13443
{
13444
if (sizeof ((uintmax_t)))
13445
          return 0;
13446 131 jeremybenn
  ;
13447
  return 0;
13448
}
13449
_ACEOF
13450
rm -f conftest.$ac_objext
13451 213 jeremybenn
if { (ac_try="$ac_compile"
13452
case "(($ac_try" in
13453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454
  *) ac_try_echo=$ac_try;;
13455
esac
13456
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13457
$as_echo "$ac_try_echo") >&5
13458
  (eval "$ac_compile") 2>conftest.er1
13459 131 jeremybenn
  ac_status=$?
13460
  grep -v '^ *+' conftest.er1 >conftest.err
13461
  rm -f conftest.er1
13462
  cat conftest.err >&5
13463 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464
  (exit $ac_status); } && {
13465
         test -z "$ac_c_werror_flag" ||
13466
         test ! -s conftest.err
13467
       } && test -s conftest.$ac_objext; then
13468
  :
13469 131 jeremybenn
else
13470 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13471 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13472
 
13473 213 jeremybenn
        ac_cv_type_uintmax_t=yes
13474 131 jeremybenn
fi
13475 213 jeremybenn
 
13476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477
else
13478
  $as_echo "$as_me: failed program was:" >&5
13479
sed 's/^/| /' conftest.$ac_ext >&5
13480
 
13481
 
13482 131 jeremybenn
fi
13483 213 jeremybenn
 
13484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485
fi
13486
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13487
$as_echo "$ac_cv_type_uintmax_t" >&6; }
13488
if test "x$ac_cv_type_uintmax_t" = x""yes; then
13489 131 jeremybenn
  acx_cv_header_stdint=$i
13490
else
13491
  continue
13492
fi
13493
 
13494 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
13495
$as_echo_n "checking for uintptr_t... " >&6; }
13496 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
13497 213 jeremybenn
  $as_echo_n "(cached) " >&6
13498 131 jeremybenn
else
13499 213 jeremybenn
  ac_cv_type_uintptr_t=no
13500
cat >conftest.$ac_ext <<_ACEOF
13501 131 jeremybenn
/* confdefs.h.  */
13502
_ACEOF
13503
cat confdefs.h >>conftest.$ac_ext
13504
cat >>conftest.$ac_ext <<_ACEOF
13505
/* end confdefs.h.  */
13506
#include 
13507
#include <$i>
13508
 
13509
int
13510
main ()
13511
{
13512
if (sizeof (uintptr_t))
13513 213 jeremybenn
       return 0;
13514
  ;
13515 131 jeremybenn
  return 0;
13516 213 jeremybenn
}
13517
_ACEOF
13518
rm -f conftest.$ac_objext
13519
if { (ac_try="$ac_compile"
13520
case "(($ac_try" in
13521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522
  *) ac_try_echo=$ac_try;;
13523
esac
13524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13525
$as_echo "$ac_try_echo") >&5
13526
  (eval "$ac_compile") 2>conftest.er1
13527
  ac_status=$?
13528
  grep -v '^ *+' conftest.er1 >conftest.err
13529
  rm -f conftest.er1
13530
  cat conftest.err >&5
13531
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532
  (exit $ac_status); } && {
13533
         test -z "$ac_c_werror_flag" ||
13534
         test ! -s conftest.err
13535
       } && test -s conftest.$ac_objext; then
13536
  cat >conftest.$ac_ext <<_ACEOF
13537
/* confdefs.h.  */
13538
_ACEOF
13539
cat confdefs.h >>conftest.$ac_ext
13540
cat >>conftest.$ac_ext <<_ACEOF
13541
/* end confdefs.h.  */
13542
#include 
13543
#include <$i>
13544
 
13545
int
13546
main ()
13547
{
13548
if (sizeof ((uintptr_t)))
13549
          return 0;
13550 131 jeremybenn
  ;
13551
  return 0;
13552
}
13553
_ACEOF
13554
rm -f conftest.$ac_objext
13555 213 jeremybenn
if { (ac_try="$ac_compile"
13556
case "(($ac_try" in
13557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558
  *) ac_try_echo=$ac_try;;
13559
esac
13560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13561
$as_echo "$ac_try_echo") >&5
13562
  (eval "$ac_compile") 2>conftest.er1
13563 131 jeremybenn
  ac_status=$?
13564
  grep -v '^ *+' conftest.er1 >conftest.err
13565
  rm -f conftest.er1
13566
  cat conftest.err >&5
13567 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568
  (exit $ac_status); } && {
13569
         test -z "$ac_c_werror_flag" ||
13570
         test ! -s conftest.err
13571
       } && test -s conftest.$ac_objext; then
13572
  :
13573 131 jeremybenn
else
13574 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13575 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13576
 
13577 213 jeremybenn
        ac_cv_type_uintptr_t=yes
13578 131 jeremybenn
fi
13579 213 jeremybenn
 
13580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581
else
13582
  $as_echo "$as_me: failed program was:" >&5
13583
sed 's/^/| /' conftest.$ac_ext >&5
13584
 
13585
 
13586 131 jeremybenn
fi
13587 213 jeremybenn
 
13588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589
fi
13590
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13591
$as_echo "$ac_cv_type_uintptr_t" >&6; }
13592
if test "x$ac_cv_type_uintptr_t" = x""yes; then
13593 131 jeremybenn
  :
13594
else
13595
  acx_cv_header_stdint_kind="(mostly complete)"
13596
fi
13597
 
13598 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for int_least32_t" >&5
13599
$as_echo_n "checking for int_least32_t... " >&6; }
13600 131 jeremybenn
if test "${ac_cv_type_int_least32_t+set}" = set; then
13601 213 jeremybenn
  $as_echo_n "(cached) " >&6
13602 131 jeremybenn
else
13603 213 jeremybenn
  ac_cv_type_int_least32_t=no
13604
cat >conftest.$ac_ext <<_ACEOF
13605 131 jeremybenn
/* confdefs.h.  */
13606
_ACEOF
13607
cat confdefs.h >>conftest.$ac_ext
13608
cat >>conftest.$ac_ext <<_ACEOF
13609
/* end confdefs.h.  */
13610
#include 
13611
#include <$i>
13612
 
13613
int
13614
main ()
13615
{
13616
if (sizeof (int_least32_t))
13617 213 jeremybenn
       return 0;
13618
  ;
13619 131 jeremybenn
  return 0;
13620 213 jeremybenn
}
13621
_ACEOF
13622
rm -f conftest.$ac_objext
13623
if { (ac_try="$ac_compile"
13624
case "(($ac_try" in
13625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626
  *) ac_try_echo=$ac_try;;
13627
esac
13628
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13629
$as_echo "$ac_try_echo") >&5
13630
  (eval "$ac_compile") 2>conftest.er1
13631
  ac_status=$?
13632
  grep -v '^ *+' conftest.er1 >conftest.err
13633
  rm -f conftest.er1
13634
  cat conftest.err >&5
13635
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636
  (exit $ac_status); } && {
13637
         test -z "$ac_c_werror_flag" ||
13638
         test ! -s conftest.err
13639
       } && test -s conftest.$ac_objext; then
13640
  cat >conftest.$ac_ext <<_ACEOF
13641
/* confdefs.h.  */
13642
_ACEOF
13643
cat confdefs.h >>conftest.$ac_ext
13644
cat >>conftest.$ac_ext <<_ACEOF
13645
/* end confdefs.h.  */
13646
#include 
13647
#include <$i>
13648
 
13649
int
13650
main ()
13651
{
13652
if (sizeof ((int_least32_t)))
13653
          return 0;
13654 131 jeremybenn
  ;
13655
  return 0;
13656
}
13657
_ACEOF
13658
rm -f conftest.$ac_objext
13659 213 jeremybenn
if { (ac_try="$ac_compile"
13660
case "(($ac_try" in
13661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662
  *) ac_try_echo=$ac_try;;
13663
esac
13664
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665
$as_echo "$ac_try_echo") >&5
13666
  (eval "$ac_compile") 2>conftest.er1
13667 131 jeremybenn
  ac_status=$?
13668
  grep -v '^ *+' conftest.er1 >conftest.err
13669
  rm -f conftest.er1
13670
  cat conftest.err >&5
13671 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672
  (exit $ac_status); } && {
13673
         test -z "$ac_c_werror_flag" ||
13674
         test ! -s conftest.err
13675
       } && test -s conftest.$ac_objext; then
13676
  :
13677 131 jeremybenn
else
13678 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13679 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13680
 
13681 213 jeremybenn
        ac_cv_type_int_least32_t=yes
13682 131 jeremybenn
fi
13683 213 jeremybenn
 
13684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685
else
13686
  $as_echo "$as_me: failed program was:" >&5
13687
sed 's/^/| /' conftest.$ac_ext >&5
13688
 
13689
 
13690 131 jeremybenn
fi
13691 213 jeremybenn
 
13692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693
fi
13694
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13695
$as_echo "$ac_cv_type_int_least32_t" >&6; }
13696
if test "x$ac_cv_type_int_least32_t" = x""yes; then
13697 131 jeremybenn
  :
13698
else
13699
  acx_cv_header_stdint_kind="(mostly complete)"
13700
fi
13701
 
13702 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13703
$as_echo_n "checking for int_fast32_t... " >&6; }
13704 131 jeremybenn
if test "${ac_cv_type_int_fast32_t+set}" = set; then
13705 213 jeremybenn
  $as_echo_n "(cached) " >&6
13706 131 jeremybenn
else
13707 213 jeremybenn
  ac_cv_type_int_fast32_t=no
13708
cat >conftest.$ac_ext <<_ACEOF
13709 131 jeremybenn
/* confdefs.h.  */
13710
_ACEOF
13711
cat confdefs.h >>conftest.$ac_ext
13712
cat >>conftest.$ac_ext <<_ACEOF
13713
/* end confdefs.h.  */
13714
#include 
13715
#include <$i>
13716
 
13717
int
13718
main ()
13719
{
13720
if (sizeof (int_fast32_t))
13721 213 jeremybenn
       return 0;
13722
  ;
13723 131 jeremybenn
  return 0;
13724 213 jeremybenn
}
13725
_ACEOF
13726
rm -f conftest.$ac_objext
13727
if { (ac_try="$ac_compile"
13728
case "(($ac_try" in
13729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730
  *) ac_try_echo=$ac_try;;
13731
esac
13732
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13733
$as_echo "$ac_try_echo") >&5
13734
  (eval "$ac_compile") 2>conftest.er1
13735
  ac_status=$?
13736
  grep -v '^ *+' conftest.er1 >conftest.err
13737
  rm -f conftest.er1
13738
  cat conftest.err >&5
13739
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740
  (exit $ac_status); } && {
13741
         test -z "$ac_c_werror_flag" ||
13742
         test ! -s conftest.err
13743
       } && test -s conftest.$ac_objext; then
13744
  cat >conftest.$ac_ext <<_ACEOF
13745
/* confdefs.h.  */
13746
_ACEOF
13747
cat confdefs.h >>conftest.$ac_ext
13748
cat >>conftest.$ac_ext <<_ACEOF
13749
/* end confdefs.h.  */
13750
#include 
13751
#include <$i>
13752
 
13753
int
13754
main ()
13755
{
13756
if (sizeof ((int_fast32_t)))
13757
          return 0;
13758 131 jeremybenn
  ;
13759
  return 0;
13760
}
13761
_ACEOF
13762
rm -f conftest.$ac_objext
13763 213 jeremybenn
if { (ac_try="$ac_compile"
13764
case "(($ac_try" in
13765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766
  *) ac_try_echo=$ac_try;;
13767
esac
13768
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13769
$as_echo "$ac_try_echo") >&5
13770
  (eval "$ac_compile") 2>conftest.er1
13771 131 jeremybenn
  ac_status=$?
13772
  grep -v '^ *+' conftest.er1 >conftest.err
13773
  rm -f conftest.er1
13774
  cat conftest.err >&5
13775 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776
  (exit $ac_status); } && {
13777
         test -z "$ac_c_werror_flag" ||
13778
         test ! -s conftest.err
13779
       } && test -s conftest.$ac_objext; then
13780
  :
13781 131 jeremybenn
else
13782 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13783 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13784
 
13785 213 jeremybenn
        ac_cv_type_int_fast32_t=yes
13786 131 jeremybenn
fi
13787 213 jeremybenn
 
13788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789
else
13790
  $as_echo "$as_me: failed program was:" >&5
13791
sed 's/^/| /' conftest.$ac_ext >&5
13792
 
13793
 
13794 131 jeremybenn
fi
13795 213 jeremybenn
 
13796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797
fi
13798
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13799
$as_echo "$ac_cv_type_int_fast32_t" >&6; }
13800
if test "x$ac_cv_type_int_fast32_t" = x""yes; then
13801 131 jeremybenn
  :
13802
else
13803
  acx_cv_header_stdint_kind="(mostly complete)"
13804
fi
13805
 
13806 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
13807
$as_echo_n "checking for uint64_t... " >&6; }
13808 131 jeremybenn
if test "${ac_cv_type_uint64_t+set}" = set; then
13809 213 jeremybenn
  $as_echo_n "(cached) " >&6
13810 131 jeremybenn
else
13811 213 jeremybenn
  ac_cv_type_uint64_t=no
13812
cat >conftest.$ac_ext <<_ACEOF
13813 131 jeremybenn
/* confdefs.h.  */
13814
_ACEOF
13815
cat confdefs.h >>conftest.$ac_ext
13816
cat >>conftest.$ac_ext <<_ACEOF
13817
/* end confdefs.h.  */
13818
#include 
13819
#include <$i>
13820
 
13821
int
13822
main ()
13823
{
13824
if (sizeof (uint64_t))
13825 213 jeremybenn
       return 0;
13826
  ;
13827 131 jeremybenn
  return 0;
13828 213 jeremybenn
}
13829
_ACEOF
13830
rm -f conftest.$ac_objext
13831
if { (ac_try="$ac_compile"
13832
case "(($ac_try" in
13833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834
  *) ac_try_echo=$ac_try;;
13835
esac
13836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837
$as_echo "$ac_try_echo") >&5
13838
  (eval "$ac_compile") 2>conftest.er1
13839
  ac_status=$?
13840
  grep -v '^ *+' conftest.er1 >conftest.err
13841
  rm -f conftest.er1
13842
  cat conftest.err >&5
13843
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844
  (exit $ac_status); } && {
13845
         test -z "$ac_c_werror_flag" ||
13846
         test ! -s conftest.err
13847
       } && test -s conftest.$ac_objext; then
13848
  cat >conftest.$ac_ext <<_ACEOF
13849
/* confdefs.h.  */
13850
_ACEOF
13851
cat confdefs.h >>conftest.$ac_ext
13852
cat >>conftest.$ac_ext <<_ACEOF
13853
/* end confdefs.h.  */
13854
#include 
13855
#include <$i>
13856
 
13857
int
13858
main ()
13859
{
13860
if (sizeof ((uint64_t)))
13861
          return 0;
13862 131 jeremybenn
  ;
13863
  return 0;
13864
}
13865
_ACEOF
13866
rm -f conftest.$ac_objext
13867 213 jeremybenn
if { (ac_try="$ac_compile"
13868
case "(($ac_try" in
13869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870
  *) ac_try_echo=$ac_try;;
13871
esac
13872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13873
$as_echo "$ac_try_echo") >&5
13874
  (eval "$ac_compile") 2>conftest.er1
13875 131 jeremybenn
  ac_status=$?
13876
  grep -v '^ *+' conftest.er1 >conftest.err
13877
  rm -f conftest.er1
13878
  cat conftest.err >&5
13879 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880
  (exit $ac_status); } && {
13881
         test -z "$ac_c_werror_flag" ||
13882
         test ! -s conftest.err
13883
       } && test -s conftest.$ac_objext; then
13884
  :
13885 131 jeremybenn
else
13886 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13887 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13888
 
13889 213 jeremybenn
        ac_cv_type_uint64_t=yes
13890 131 jeremybenn
fi
13891 213 jeremybenn
 
13892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893
else
13894
  $as_echo "$as_me: failed program was:" >&5
13895
sed 's/^/| /' conftest.$ac_ext >&5
13896
 
13897
 
13898 131 jeremybenn
fi
13899 213 jeremybenn
 
13900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901
fi
13902
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13903
$as_echo "$ac_cv_type_uint64_t" >&6; }
13904
if test "x$ac_cv_type_uint64_t" = x""yes; then
13905 131 jeremybenn
  :
13906
else
13907
  acx_cv_header_stdint_kind="(lacks uint64_t)"
13908
fi
13909
 
13910
  break
13911
done
13912
if test "$acx_cv_header_stdint" = stddef.h; then
13913
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
13914
  for i in stdint.h $inttype_headers; do
13915
    unset ac_cv_type_uintptr_t
13916
    unset ac_cv_type_uint32_t
13917
    unset ac_cv_type_uint64_t
13918 213 jeremybenn
    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13919
    { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
13920
$as_echo_n "checking for uint32_t... " >&6; }
13921 131 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
13922 213 jeremybenn
  $as_echo_n "(cached) " >&6
13923 131 jeremybenn
else
13924 213 jeremybenn
  ac_cv_type_uint32_t=no
13925
cat >conftest.$ac_ext <<_ACEOF
13926 131 jeremybenn
/* confdefs.h.  */
13927
_ACEOF
13928
cat confdefs.h >>conftest.$ac_ext
13929
cat >>conftest.$ac_ext <<_ACEOF
13930
/* end confdefs.h.  */
13931
#include 
13932
#include <$i>
13933
 
13934
int
13935
main ()
13936
{
13937
if (sizeof (uint32_t))
13938 213 jeremybenn
       return 0;
13939
  ;
13940 131 jeremybenn
  return 0;
13941 213 jeremybenn
}
13942
_ACEOF
13943
rm -f conftest.$ac_objext
13944
if { (ac_try="$ac_compile"
13945
case "(($ac_try" in
13946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947
  *) ac_try_echo=$ac_try;;
13948
esac
13949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13950
$as_echo "$ac_try_echo") >&5
13951
  (eval "$ac_compile") 2>conftest.er1
13952
  ac_status=$?
13953
  grep -v '^ *+' conftest.er1 >conftest.err
13954
  rm -f conftest.er1
13955
  cat conftest.err >&5
13956
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957
  (exit $ac_status); } && {
13958
         test -z "$ac_c_werror_flag" ||
13959
         test ! -s conftest.err
13960
       } && test -s conftest.$ac_objext; then
13961
  cat >conftest.$ac_ext <<_ACEOF
13962
/* confdefs.h.  */
13963
_ACEOF
13964
cat confdefs.h >>conftest.$ac_ext
13965
cat >>conftest.$ac_ext <<_ACEOF
13966
/* end confdefs.h.  */
13967
#include 
13968
#include <$i>
13969
 
13970
int
13971
main ()
13972
{
13973
if (sizeof ((uint32_t)))
13974
          return 0;
13975 131 jeremybenn
  ;
13976
  return 0;
13977
}
13978
_ACEOF
13979
rm -f conftest.$ac_objext
13980 213 jeremybenn
if { (ac_try="$ac_compile"
13981
case "(($ac_try" in
13982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983
  *) ac_try_echo=$ac_try;;
13984
esac
13985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986
$as_echo "$ac_try_echo") >&5
13987
  (eval "$ac_compile") 2>conftest.er1
13988 131 jeremybenn
  ac_status=$?
13989
  grep -v '^ *+' conftest.er1 >conftest.err
13990
  rm -f conftest.er1
13991
  cat conftest.err >&5
13992 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993
  (exit $ac_status); } && {
13994
         test -z "$ac_c_werror_flag" ||
13995
         test ! -s conftest.err
13996
       } && test -s conftest.$ac_objext; then
13997
  :
13998 131 jeremybenn
else
13999 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14000 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14001
 
14002 213 jeremybenn
        ac_cv_type_uint32_t=yes
14003 131 jeremybenn
fi
14004 213 jeremybenn
 
14005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006
else
14007
  $as_echo "$as_me: failed program was:" >&5
14008
sed 's/^/| /' conftest.$ac_ext >&5
14009
 
14010
 
14011 131 jeremybenn
fi
14012 213 jeremybenn
 
14013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014
fi
14015
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14016
$as_echo "$ac_cv_type_uint32_t" >&6; }
14017
if test "x$ac_cv_type_uint32_t" = x""yes; then
14018 131 jeremybenn
  acx_cv_header_stdint=$i
14019
else
14020
  continue
14021
fi
14022
 
14023 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
14024
$as_echo_n "checking for uint64_t... " >&6; }
14025 131 jeremybenn
if test "${ac_cv_type_uint64_t+set}" = set; then
14026 213 jeremybenn
  $as_echo_n "(cached) " >&6
14027 131 jeremybenn
else
14028 213 jeremybenn
  ac_cv_type_uint64_t=no
14029
cat >conftest.$ac_ext <<_ACEOF
14030 131 jeremybenn
/* confdefs.h.  */
14031
_ACEOF
14032
cat confdefs.h >>conftest.$ac_ext
14033
cat >>conftest.$ac_ext <<_ACEOF
14034
/* end confdefs.h.  */
14035
#include 
14036
#include <$i>
14037
 
14038
int
14039
main ()
14040
{
14041
if (sizeof (uint64_t))
14042 213 jeremybenn
       return 0;
14043
  ;
14044 131 jeremybenn
  return 0;
14045 213 jeremybenn
}
14046
_ACEOF
14047
rm -f conftest.$ac_objext
14048
if { (ac_try="$ac_compile"
14049
case "(($ac_try" in
14050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051
  *) ac_try_echo=$ac_try;;
14052
esac
14053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14054
$as_echo "$ac_try_echo") >&5
14055
  (eval "$ac_compile") 2>conftest.er1
14056
  ac_status=$?
14057
  grep -v '^ *+' conftest.er1 >conftest.err
14058
  rm -f conftest.er1
14059
  cat conftest.err >&5
14060
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061
  (exit $ac_status); } && {
14062
         test -z "$ac_c_werror_flag" ||
14063
         test ! -s conftest.err
14064
       } && test -s conftest.$ac_objext; then
14065
  cat >conftest.$ac_ext <<_ACEOF
14066
/* confdefs.h.  */
14067
_ACEOF
14068
cat confdefs.h >>conftest.$ac_ext
14069
cat >>conftest.$ac_ext <<_ACEOF
14070
/* end confdefs.h.  */
14071
#include 
14072
#include <$i>
14073
 
14074
int
14075
main ()
14076
{
14077
if (sizeof ((uint64_t)))
14078
          return 0;
14079 131 jeremybenn
  ;
14080
  return 0;
14081
}
14082
_ACEOF
14083
rm -f conftest.$ac_objext
14084 213 jeremybenn
if { (ac_try="$ac_compile"
14085
case "(($ac_try" in
14086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087
  *) ac_try_echo=$ac_try;;
14088
esac
14089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14090
$as_echo "$ac_try_echo") >&5
14091
  (eval "$ac_compile") 2>conftest.er1
14092 131 jeremybenn
  ac_status=$?
14093
  grep -v '^ *+' conftest.er1 >conftest.err
14094
  rm -f conftest.er1
14095
  cat conftest.err >&5
14096 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097
  (exit $ac_status); } && {
14098
         test -z "$ac_c_werror_flag" ||
14099
         test ! -s conftest.err
14100
       } && test -s conftest.$ac_objext; then
14101
  :
14102 131 jeremybenn
else
14103 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14104 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14105
 
14106 213 jeremybenn
        ac_cv_type_uint64_t=yes
14107 131 jeremybenn
fi
14108 213 jeremybenn
 
14109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110
else
14111
  $as_echo "$as_me: failed program was:" >&5
14112
sed 's/^/| /' conftest.$ac_ext >&5
14113
 
14114
 
14115 131 jeremybenn
fi
14116
 
14117 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118
fi
14119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14120
$as_echo "$ac_cv_type_uint64_t" >&6; }
14121
 
14122
    { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
14123
$as_echo_n "checking for uintptr_t... " >&6; }
14124 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
14125 213 jeremybenn
  $as_echo_n "(cached) " >&6
14126 131 jeremybenn
else
14127 213 jeremybenn
  ac_cv_type_uintptr_t=no
14128
cat >conftest.$ac_ext <<_ACEOF
14129 131 jeremybenn
/* confdefs.h.  */
14130
_ACEOF
14131
cat confdefs.h >>conftest.$ac_ext
14132
cat >>conftest.$ac_ext <<_ACEOF
14133
/* end confdefs.h.  */
14134
#include 
14135
#include <$i>
14136
 
14137
int
14138
main ()
14139
{
14140
if (sizeof (uintptr_t))
14141 213 jeremybenn
       return 0;
14142
  ;
14143 131 jeremybenn
  return 0;
14144 213 jeremybenn
}
14145
_ACEOF
14146
rm -f conftest.$ac_objext
14147
if { (ac_try="$ac_compile"
14148
case "(($ac_try" in
14149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150
  *) ac_try_echo=$ac_try;;
14151
esac
14152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14153
$as_echo "$ac_try_echo") >&5
14154
  (eval "$ac_compile") 2>conftest.er1
14155
  ac_status=$?
14156
  grep -v '^ *+' conftest.er1 >conftest.err
14157
  rm -f conftest.er1
14158
  cat conftest.err >&5
14159
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160
  (exit $ac_status); } && {
14161
         test -z "$ac_c_werror_flag" ||
14162
         test ! -s conftest.err
14163
       } && test -s conftest.$ac_objext; then
14164
  cat >conftest.$ac_ext <<_ACEOF
14165
/* confdefs.h.  */
14166
_ACEOF
14167
cat confdefs.h >>conftest.$ac_ext
14168
cat >>conftest.$ac_ext <<_ACEOF
14169
/* end confdefs.h.  */
14170
#include 
14171
#include <$i>
14172
 
14173
int
14174
main ()
14175
{
14176
if (sizeof ((uintptr_t)))
14177
          return 0;
14178 131 jeremybenn
  ;
14179
  return 0;
14180
}
14181
_ACEOF
14182
rm -f conftest.$ac_objext
14183 213 jeremybenn
if { (ac_try="$ac_compile"
14184
case "(($ac_try" in
14185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186
  *) ac_try_echo=$ac_try;;
14187
esac
14188
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14189
$as_echo "$ac_try_echo") >&5
14190
  (eval "$ac_compile") 2>conftest.er1
14191 131 jeremybenn
  ac_status=$?
14192
  grep -v '^ *+' conftest.er1 >conftest.err
14193
  rm -f conftest.er1
14194
  cat conftest.err >&5
14195 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196
  (exit $ac_status); } && {
14197
         test -z "$ac_c_werror_flag" ||
14198
         test ! -s conftest.err
14199
       } && test -s conftest.$ac_objext; then
14200
  :
14201 131 jeremybenn
else
14202 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14203 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14204
 
14205 213 jeremybenn
        ac_cv_type_uintptr_t=yes
14206 131 jeremybenn
fi
14207 213 jeremybenn
 
14208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209
else
14210
  $as_echo "$as_me: failed program was:" >&5
14211
sed 's/^/| /' conftest.$ac_ext >&5
14212
 
14213
 
14214 131 jeremybenn
fi
14215
 
14216 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217
fi
14218
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14219
$as_echo "$ac_cv_type_uintptr_t" >&6; }
14220
 
14221 131 jeremybenn
    break
14222
  done
14223
fi
14224
if test "$acx_cv_header_stdint" = stddef.h; then
14225
  acx_cv_header_stdint_kind="(u_intXX_t style)"
14226
  for i in sys/types.h $inttype_headers; do
14227
    unset ac_cv_type_u_int32_t
14228
    unset ac_cv_type_u_int64_t
14229 213 jeremybenn
    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14230
    { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
14231
$as_echo_n "checking for u_int32_t... " >&6; }
14232 131 jeremybenn
if test "${ac_cv_type_u_int32_t+set}" = set; then
14233 213 jeremybenn
  $as_echo_n "(cached) " >&6
14234 131 jeremybenn
else
14235 213 jeremybenn
  ac_cv_type_u_int32_t=no
14236
cat >conftest.$ac_ext <<_ACEOF
14237 131 jeremybenn
/* confdefs.h.  */
14238
_ACEOF
14239
cat confdefs.h >>conftest.$ac_ext
14240
cat >>conftest.$ac_ext <<_ACEOF
14241
/* end confdefs.h.  */
14242
#include 
14243
#include <$i>
14244
 
14245
int
14246
main ()
14247
{
14248
if (sizeof (u_int32_t))
14249 213 jeremybenn
       return 0;
14250
  ;
14251 131 jeremybenn
  return 0;
14252 213 jeremybenn
}
14253
_ACEOF
14254
rm -f conftest.$ac_objext
14255
if { (ac_try="$ac_compile"
14256
case "(($ac_try" in
14257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258
  *) ac_try_echo=$ac_try;;
14259
esac
14260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14261
$as_echo "$ac_try_echo") >&5
14262
  (eval "$ac_compile") 2>conftest.er1
14263
  ac_status=$?
14264
  grep -v '^ *+' conftest.er1 >conftest.err
14265
  rm -f conftest.er1
14266
  cat conftest.err >&5
14267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268
  (exit $ac_status); } && {
14269
         test -z "$ac_c_werror_flag" ||
14270
         test ! -s conftest.err
14271
       } && test -s conftest.$ac_objext; then
14272
  cat >conftest.$ac_ext <<_ACEOF
14273
/* confdefs.h.  */
14274
_ACEOF
14275
cat confdefs.h >>conftest.$ac_ext
14276
cat >>conftest.$ac_ext <<_ACEOF
14277
/* end confdefs.h.  */
14278
#include 
14279
#include <$i>
14280
 
14281
int
14282
main ()
14283
{
14284
if (sizeof ((u_int32_t)))
14285
          return 0;
14286 131 jeremybenn
  ;
14287
  return 0;
14288
}
14289
_ACEOF
14290
rm -f conftest.$ac_objext
14291 213 jeremybenn
if { (ac_try="$ac_compile"
14292
case "(($ac_try" in
14293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294
  *) ac_try_echo=$ac_try;;
14295
esac
14296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297
$as_echo "$ac_try_echo") >&5
14298
  (eval "$ac_compile") 2>conftest.er1
14299 131 jeremybenn
  ac_status=$?
14300
  grep -v '^ *+' conftest.er1 >conftest.err
14301
  rm -f conftest.er1
14302
  cat conftest.err >&5
14303 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304
  (exit $ac_status); } && {
14305
         test -z "$ac_c_werror_flag" ||
14306
         test ! -s conftest.err
14307
       } && test -s conftest.$ac_objext; then
14308
  :
14309 131 jeremybenn
else
14310 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14311 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14312
 
14313 213 jeremybenn
        ac_cv_type_u_int32_t=yes
14314 131 jeremybenn
fi
14315 213 jeremybenn
 
14316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317
else
14318
  $as_echo "$as_me: failed program was:" >&5
14319
sed 's/^/| /' conftest.$ac_ext >&5
14320
 
14321
 
14322 131 jeremybenn
fi
14323 213 jeremybenn
 
14324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325
fi
14326
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14327
$as_echo "$ac_cv_type_u_int32_t" >&6; }
14328
if test "x$ac_cv_type_u_int32_t" = x""yes; then
14329 131 jeremybenn
  acx_cv_header_stdint=$i
14330
else
14331
  continue
14332
fi
14333
 
14334 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5
14335
$as_echo_n "checking for u_int64_t... " >&6; }
14336 131 jeremybenn
if test "${ac_cv_type_u_int64_t+set}" = set; then
14337 213 jeremybenn
  $as_echo_n "(cached) " >&6
14338 131 jeremybenn
else
14339 213 jeremybenn
  ac_cv_type_u_int64_t=no
14340
cat >conftest.$ac_ext <<_ACEOF
14341 131 jeremybenn
/* confdefs.h.  */
14342
_ACEOF
14343
cat confdefs.h >>conftest.$ac_ext
14344
cat >>conftest.$ac_ext <<_ACEOF
14345
/* end confdefs.h.  */
14346
#include 
14347
#include <$i>
14348
 
14349
int
14350
main ()
14351
{
14352
if (sizeof (u_int64_t))
14353 213 jeremybenn
       return 0;
14354
  ;
14355 131 jeremybenn
  return 0;
14356 213 jeremybenn
}
14357
_ACEOF
14358
rm -f conftest.$ac_objext
14359
if { (ac_try="$ac_compile"
14360
case "(($ac_try" in
14361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362
  *) ac_try_echo=$ac_try;;
14363
esac
14364
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14365
$as_echo "$ac_try_echo") >&5
14366
  (eval "$ac_compile") 2>conftest.er1
14367
  ac_status=$?
14368
  grep -v '^ *+' conftest.er1 >conftest.err
14369
  rm -f conftest.er1
14370
  cat conftest.err >&5
14371
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372
  (exit $ac_status); } && {
14373
         test -z "$ac_c_werror_flag" ||
14374
         test ! -s conftest.err
14375
       } && test -s conftest.$ac_objext; then
14376
  cat >conftest.$ac_ext <<_ACEOF
14377
/* confdefs.h.  */
14378
_ACEOF
14379
cat confdefs.h >>conftest.$ac_ext
14380
cat >>conftest.$ac_ext <<_ACEOF
14381
/* end confdefs.h.  */
14382
#include 
14383
#include <$i>
14384
 
14385
int
14386
main ()
14387
{
14388
if (sizeof ((u_int64_t)))
14389
          return 0;
14390 131 jeremybenn
  ;
14391
  return 0;
14392
}
14393
_ACEOF
14394
rm -f conftest.$ac_objext
14395 213 jeremybenn
if { (ac_try="$ac_compile"
14396
case "(($ac_try" in
14397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398
  *) ac_try_echo=$ac_try;;
14399
esac
14400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14401
$as_echo "$ac_try_echo") >&5
14402
  (eval "$ac_compile") 2>conftest.er1
14403 131 jeremybenn
  ac_status=$?
14404
  grep -v '^ *+' conftest.er1 >conftest.err
14405
  rm -f conftest.er1
14406
  cat conftest.err >&5
14407 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408
  (exit $ac_status); } && {
14409
         test -z "$ac_c_werror_flag" ||
14410
         test ! -s conftest.err
14411
       } && test -s conftest.$ac_objext; then
14412
  :
14413 131 jeremybenn
else
14414 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14415 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14416
 
14417 213 jeremybenn
        ac_cv_type_u_int64_t=yes
14418 131 jeremybenn
fi
14419 213 jeremybenn
 
14420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421
else
14422
  $as_echo "$as_me: failed program was:" >&5
14423
sed 's/^/| /' conftest.$ac_ext >&5
14424
 
14425
 
14426 131 jeremybenn
fi
14427
 
14428 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429
fi
14430
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14431
$as_echo "$ac_cv_type_u_int64_t" >&6; }
14432
 
14433 131 jeremybenn
    break
14434
  done
14435
fi
14436
if test "$acx_cv_header_stdint" = stddef.h; then
14437
  acx_cv_header_stdint_kind="(using manual detection)"
14438
fi
14439
 
14440
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14441
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14442
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14443
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14444
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14445
 
14446
# ----------------- Summarize what we found so far
14447
 
14448 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
14449
$as_echo_n "checking what to include in gdb_stdint.h... " >&6; }
14450 131 jeremybenn
 
14451 213 jeremybenn
case `$as_basename -- gdb_stdint.h ||
14452 131 jeremybenn
$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14453
         Xgdb_stdint.h : 'X\(//\)$' \| \
14454 213 jeremybenn
         Xgdb_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
14455
$as_echo X/gdb_stdint.h |
14456
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14457
            s//\1/
14458
            q
14459
          }
14460
          /^X\/\(\/\/\)$/{
14461
            s//\1/
14462
            q
14463
          }
14464
          /^X\/\(\/\).*/{
14465
            s//\1/
14466
            q
14467
          }
14468
          s/.*/./; q'` in
14469
  stdint.h) { $as_echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14470
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14471
  inttypes.h) { $as_echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14472
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14473 131 jeremybenn
  *) ;;
14474
esac
14475
 
14476 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14477
$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14478 131 jeremybenn
 
14479
# ----------------- done included file, check C basic types --------
14480
 
14481
# Lacking an uintptr_t?  Test size of void *
14482
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14483 213 jeremybenn
  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14484
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14485
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14486
# This bug is HP SR number 8606223364.
14487
{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
14488
$as_echo_n "checking size of void *... " >&6; }
14489 131 jeremybenn
if test "${ac_cv_sizeof_void_p+set}" = set; then
14490 213 jeremybenn
  $as_echo_n "(cached) " >&6
14491 131 jeremybenn
else
14492
  if test "$cross_compiling" = yes; then
14493
  # Depending upon the size, compute the lo and hi bounds.
14494
cat >conftest.$ac_ext <<_ACEOF
14495
/* confdefs.h.  */
14496
_ACEOF
14497
cat confdefs.h >>conftest.$ac_ext
14498
cat >>conftest.$ac_ext <<_ACEOF
14499
/* end confdefs.h.  */
14500
$ac_includes_default
14501
int
14502
main ()
14503
{
14504 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
14505 131 jeremybenn
test_array [0] = 0
14506
 
14507
  ;
14508
  return 0;
14509
}
14510
_ACEOF
14511
rm -f conftest.$ac_objext
14512 213 jeremybenn
if { (ac_try="$ac_compile"
14513
case "(($ac_try" in
14514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515
  *) ac_try_echo=$ac_try;;
14516
esac
14517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518
$as_echo "$ac_try_echo") >&5
14519
  (eval "$ac_compile") 2>conftest.er1
14520 131 jeremybenn
  ac_status=$?
14521
  grep -v '^ *+' conftest.er1 >conftest.err
14522
  rm -f conftest.er1
14523
  cat conftest.err >&5
14524 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
  (exit $ac_status); } && {
14526
         test -z "$ac_c_werror_flag" ||
14527
         test ! -s conftest.err
14528
       } && test -s conftest.$ac_objext; then
14529 131 jeremybenn
  ac_lo=0 ac_mid=0
14530
  while :; do
14531
    cat >conftest.$ac_ext <<_ACEOF
14532
/* confdefs.h.  */
14533
_ACEOF
14534
cat confdefs.h >>conftest.$ac_ext
14535
cat >>conftest.$ac_ext <<_ACEOF
14536
/* end confdefs.h.  */
14537
$ac_includes_default
14538
int
14539
main ()
14540
{
14541 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
14542 131 jeremybenn
test_array [0] = 0
14543
 
14544
  ;
14545
  return 0;
14546
}
14547
_ACEOF
14548
rm -f conftest.$ac_objext
14549 213 jeremybenn
if { (ac_try="$ac_compile"
14550
case "(($ac_try" in
14551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552
  *) ac_try_echo=$ac_try;;
14553
esac
14554
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555
$as_echo "$ac_try_echo") >&5
14556
  (eval "$ac_compile") 2>conftest.er1
14557 131 jeremybenn
  ac_status=$?
14558
  grep -v '^ *+' conftest.er1 >conftest.err
14559
  rm -f conftest.er1
14560
  cat conftest.err >&5
14561 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562
  (exit $ac_status); } && {
14563
         test -z "$ac_c_werror_flag" ||
14564
         test ! -s conftest.err
14565
       } && test -s conftest.$ac_objext; then
14566 131 jeremybenn
  ac_hi=$ac_mid; break
14567
else
14568 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14569 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14570
 
14571 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
14572
                        if test $ac_lo -le $ac_mid; then
14573
                          ac_lo= ac_hi=
14574
                          break
14575
                        fi
14576
                        ac_mid=`expr 2 '*' $ac_mid + 1`
14577 131 jeremybenn
fi
14578 213 jeremybenn
 
14579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 131 jeremybenn
  done
14581
else
14582 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14583 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14584
 
14585 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
14586 131 jeremybenn
/* confdefs.h.  */
14587
_ACEOF
14588
cat confdefs.h >>conftest.$ac_ext
14589
cat >>conftest.$ac_ext <<_ACEOF
14590
/* end confdefs.h.  */
14591
$ac_includes_default
14592
int
14593
main ()
14594
{
14595 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
14596 131 jeremybenn
test_array [0] = 0
14597
 
14598
  ;
14599
  return 0;
14600
}
14601
_ACEOF
14602
rm -f conftest.$ac_objext
14603 213 jeremybenn
if { (ac_try="$ac_compile"
14604
case "(($ac_try" in
14605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606
  *) ac_try_echo=$ac_try;;
14607
esac
14608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609
$as_echo "$ac_try_echo") >&5
14610
  (eval "$ac_compile") 2>conftest.er1
14611 131 jeremybenn
  ac_status=$?
14612
  grep -v '^ *+' conftest.er1 >conftest.err
14613
  rm -f conftest.er1
14614
  cat conftest.err >&5
14615 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616
  (exit $ac_status); } && {
14617
         test -z "$ac_c_werror_flag" ||
14618
         test ! -s conftest.err
14619
       } && test -s conftest.$ac_objext; then
14620 131 jeremybenn
  ac_hi=-1 ac_mid=-1
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 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
14633 131 jeremybenn
test_array [0] = 0
14634
 
14635
  ;
14636
  return 0;
14637
}
14638
_ACEOF
14639
rm -f conftest.$ac_objext
14640 213 jeremybenn
if { (ac_try="$ac_compile"
14641
case "(($ac_try" in
14642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643
  *) ac_try_echo=$ac_try;;
14644
esac
14645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646
$as_echo "$ac_try_echo") >&5
14647
  (eval "$ac_compile") 2>conftest.er1
14648 131 jeremybenn
  ac_status=$?
14649
  grep -v '^ *+' conftest.er1 >conftest.err
14650
  rm -f conftest.er1
14651
  cat conftest.err >&5
14652 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653
  (exit $ac_status); } && {
14654
         test -z "$ac_c_werror_flag" ||
14655
         test ! -s conftest.err
14656
       } && test -s conftest.$ac_objext; then
14657 131 jeremybenn
  ac_lo=$ac_mid; break
14658
else
14659 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14660 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14661
 
14662 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
14663
                        if test $ac_mid -le $ac_hi; then
14664
                          ac_lo= ac_hi=
14665
                          break
14666
                        fi
14667
                        ac_mid=`expr 2 '*' $ac_mid`
14668 131 jeremybenn
fi
14669 213 jeremybenn
 
14670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 131 jeremybenn
  done
14672
else
14673 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14674 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14675
 
14676 213 jeremybenn
        ac_lo= ac_hi=
14677 131 jeremybenn
fi
14678 213 jeremybenn
 
14679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 131 jeremybenn
fi
14681 213 jeremybenn
 
14682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 131 jeremybenn
# Binary search between lo and hi bounds.
14684
while test "x$ac_lo" != "x$ac_hi"; do
14685
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14686
  cat >conftest.$ac_ext <<_ACEOF
14687
/* confdefs.h.  */
14688
_ACEOF
14689
cat confdefs.h >>conftest.$ac_ext
14690
cat >>conftest.$ac_ext <<_ACEOF
14691
/* end confdefs.h.  */
14692
$ac_includes_default
14693
int
14694
main ()
14695
{
14696 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
14697 131 jeremybenn
test_array [0] = 0
14698
 
14699
  ;
14700
  return 0;
14701
}
14702
_ACEOF
14703
rm -f conftest.$ac_objext
14704 213 jeremybenn
if { (ac_try="$ac_compile"
14705
case "(($ac_try" in
14706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707
  *) ac_try_echo=$ac_try;;
14708
esac
14709
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710
$as_echo "$ac_try_echo") >&5
14711
  (eval "$ac_compile") 2>conftest.er1
14712 131 jeremybenn
  ac_status=$?
14713
  grep -v '^ *+' conftest.er1 >conftest.err
14714
  rm -f conftest.er1
14715
  cat conftest.err >&5
14716 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717
  (exit $ac_status); } && {
14718
         test -z "$ac_c_werror_flag" ||
14719
         test ! -s conftest.err
14720
       } && test -s conftest.$ac_objext; then
14721 131 jeremybenn
  ac_hi=$ac_mid
14722
else
14723 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14724 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14725
 
14726 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
14727 131 jeremybenn
fi
14728 213 jeremybenn
 
14729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 131 jeremybenn
done
14731
case $ac_lo in
14732
?*) ac_cv_sizeof_void_p=$ac_lo;;
14733 213 jeremybenn
'') if test "$ac_cv_type_void_p" = yes; then
14734
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14735
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14736
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14737 131 jeremybenn
See \`config.log' for more details." >&5
14738 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (void *)
14739 131 jeremybenn
See \`config.log' for more details." >&2;}
14740 213 jeremybenn
   { (exit 77); exit 77; }; }; }
14741
   else
14742
     ac_cv_sizeof_void_p=0
14743
   fi ;;
14744 131 jeremybenn
esac
14745
else
14746
  cat >conftest.$ac_ext <<_ACEOF
14747
/* confdefs.h.  */
14748
_ACEOF
14749
cat confdefs.h >>conftest.$ac_ext
14750
cat >>conftest.$ac_ext <<_ACEOF
14751
/* end confdefs.h.  */
14752
$ac_includes_default
14753 213 jeremybenn
static long int longval () { return (long int) (sizeof (void *)); }
14754
static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
14755 131 jeremybenn
#include 
14756
#include 
14757
int
14758
main ()
14759
{
14760
 
14761
  FILE *f = fopen ("conftest.val", "w");
14762
  if (! f)
14763 213 jeremybenn
    return 1;
14764
  if (((long int) (sizeof (void *))) < 0)
14765 131 jeremybenn
    {
14766 213 jeremybenn
      long int i = longval ();
14767
      if (i != ((long int) (sizeof (void *))))
14768
        return 1;
14769
      fprintf (f, "%ld", i);
14770 131 jeremybenn
    }
14771
  else
14772
    {
14773 213 jeremybenn
      unsigned long int i = ulongval ();
14774
      if (i != ((long int) (sizeof (void *))))
14775
        return 1;
14776
      fprintf (f, "%lu", i);
14777 131 jeremybenn
    }
14778 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
14779
     on some platforms.  */
14780
  return ferror (f) || fclose (f) != 0;
14781 131 jeremybenn
 
14782
  ;
14783
  return 0;
14784
}
14785
_ACEOF
14786
rm -f conftest$ac_exeext
14787 213 jeremybenn
if { (ac_try="$ac_link"
14788
case "(($ac_try" in
14789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790
  *) ac_try_echo=$ac_try;;
14791
esac
14792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793
$as_echo "$ac_try_echo") >&5
14794
  (eval "$ac_link") 2>&5
14795 131 jeremybenn
  ac_status=$?
14796 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798 213 jeremybenn
  { (case "(($ac_try" in
14799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800
  *) ac_try_echo=$ac_try;;
14801
esac
14802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14803
$as_echo "$ac_try_echo") >&5
14804
  (eval "$ac_try") 2>&5
14805 131 jeremybenn
  ac_status=$?
14806 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 131 jeremybenn
  (exit $ac_status); }; }; then
14808
  ac_cv_sizeof_void_p=`cat conftest.val`
14809
else
14810 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14811
$as_echo "$as_me: failed program was:" >&5
14812 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14813
 
14814
( exit $ac_status )
14815 213 jeremybenn
if test "$ac_cv_type_void_p" = yes; then
14816
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14817
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14819 131 jeremybenn
See \`config.log' for more details." >&5
14820 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (void *)
14821 131 jeremybenn
See \`config.log' for more details." >&2;}
14822 213 jeremybenn
   { (exit 77); exit 77; }; }; }
14823
   else
14824
     ac_cv_sizeof_void_p=0
14825
   fi
14826 131 jeremybenn
fi
14827 213 jeremybenn
rm -rf conftest.dSYM
14828
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14829 131 jeremybenn
fi
14830
rm -f conftest.val
14831
fi
14832 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14833
$as_echo "$ac_cv_sizeof_void_p" >&6; }
14834
 
14835
 
14836
 
14837 131 jeremybenn
cat >>confdefs.h <<_ACEOF
14838
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14839
_ACEOF
14840
 
14841
 ;;
14842
esac
14843
 
14844
# Lacking an uint64_t?  Test size of long
14845
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14846 213 jeremybenn
  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14847
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14848
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14849
# This bug is HP SR number 8606223364.
14850
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
14851
$as_echo_n "checking size of long... " >&6; }
14852 131 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
14853 213 jeremybenn
  $as_echo_n "(cached) " >&6
14854 131 jeremybenn
else
14855
  if test "$cross_compiling" = yes; then
14856
  # Depending upon the size, compute the lo and hi bounds.
14857
cat >conftest.$ac_ext <<_ACEOF
14858
/* confdefs.h.  */
14859
_ACEOF
14860
cat confdefs.h >>conftest.$ac_ext
14861
cat >>conftest.$ac_ext <<_ACEOF
14862
/* end confdefs.h.  */
14863
$ac_includes_default
14864
int
14865
main ()
14866
{
14867 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14868 131 jeremybenn
test_array [0] = 0
14869
 
14870
  ;
14871
  return 0;
14872
}
14873
_ACEOF
14874
rm -f conftest.$ac_objext
14875 213 jeremybenn
if { (ac_try="$ac_compile"
14876
case "(($ac_try" in
14877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878
  *) ac_try_echo=$ac_try;;
14879
esac
14880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881
$as_echo "$ac_try_echo") >&5
14882
  (eval "$ac_compile") 2>conftest.er1
14883 131 jeremybenn
  ac_status=$?
14884
  grep -v '^ *+' conftest.er1 >conftest.err
14885
  rm -f conftest.er1
14886
  cat conftest.err >&5
14887 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888
  (exit $ac_status); } && {
14889
         test -z "$ac_c_werror_flag" ||
14890
         test ! -s conftest.err
14891
       } && test -s conftest.$ac_objext; then
14892 131 jeremybenn
  ac_lo=0 ac_mid=0
14893
  while :; do
14894
    cat >conftest.$ac_ext <<_ACEOF
14895
/* confdefs.h.  */
14896
_ACEOF
14897
cat confdefs.h >>conftest.$ac_ext
14898
cat >>conftest.$ac_ext <<_ACEOF
14899
/* end confdefs.h.  */
14900
$ac_includes_default
14901
int
14902
main ()
14903
{
14904 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14905 131 jeremybenn
test_array [0] = 0
14906
 
14907
  ;
14908
  return 0;
14909
}
14910
_ACEOF
14911
rm -f conftest.$ac_objext
14912 213 jeremybenn
if { (ac_try="$ac_compile"
14913
case "(($ac_try" in
14914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915
  *) ac_try_echo=$ac_try;;
14916
esac
14917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14918
$as_echo "$ac_try_echo") >&5
14919
  (eval "$ac_compile") 2>conftest.er1
14920 131 jeremybenn
  ac_status=$?
14921
  grep -v '^ *+' conftest.er1 >conftest.err
14922
  rm -f conftest.er1
14923
  cat conftest.err >&5
14924 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925
  (exit $ac_status); } && {
14926
         test -z "$ac_c_werror_flag" ||
14927
         test ! -s conftest.err
14928
       } && test -s conftest.$ac_objext; then
14929 131 jeremybenn
  ac_hi=$ac_mid; break
14930
else
14931 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14932 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14933
 
14934 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
14935
                        if test $ac_lo -le $ac_mid; then
14936
                          ac_lo= ac_hi=
14937
                          break
14938
                        fi
14939
                        ac_mid=`expr 2 '*' $ac_mid + 1`
14940 131 jeremybenn
fi
14941 213 jeremybenn
 
14942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 131 jeremybenn
  done
14944
else
14945 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14946 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14947
 
14948 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
14949 131 jeremybenn
/* confdefs.h.  */
14950
_ACEOF
14951
cat confdefs.h >>conftest.$ac_ext
14952
cat >>conftest.$ac_ext <<_ACEOF
14953
/* end confdefs.h.  */
14954
$ac_includes_default
14955
int
14956
main ()
14957
{
14958 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14959 131 jeremybenn
test_array [0] = 0
14960
 
14961
  ;
14962
  return 0;
14963
}
14964
_ACEOF
14965
rm -f conftest.$ac_objext
14966 213 jeremybenn
if { (ac_try="$ac_compile"
14967
case "(($ac_try" in
14968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969
  *) ac_try_echo=$ac_try;;
14970
esac
14971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972
$as_echo "$ac_try_echo") >&5
14973
  (eval "$ac_compile") 2>conftest.er1
14974 131 jeremybenn
  ac_status=$?
14975
  grep -v '^ *+' conftest.er1 >conftest.err
14976
  rm -f conftest.er1
14977
  cat conftest.err >&5
14978 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979
  (exit $ac_status); } && {
14980
         test -z "$ac_c_werror_flag" ||
14981
         test ! -s conftest.err
14982
       } && test -s conftest.$ac_objext; then
14983 131 jeremybenn
  ac_hi=-1 ac_mid=-1
14984
  while :; do
14985
    cat >conftest.$ac_ext <<_ACEOF
14986
/* confdefs.h.  */
14987
_ACEOF
14988
cat confdefs.h >>conftest.$ac_ext
14989
cat >>conftest.$ac_ext <<_ACEOF
14990
/* end confdefs.h.  */
14991
$ac_includes_default
14992
int
14993
main ()
14994
{
14995 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14996 131 jeremybenn
test_array [0] = 0
14997
 
14998
  ;
14999
  return 0;
15000
}
15001
_ACEOF
15002
rm -f conftest.$ac_objext
15003 213 jeremybenn
if { (ac_try="$ac_compile"
15004
case "(($ac_try" in
15005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006
  *) ac_try_echo=$ac_try;;
15007
esac
15008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15009
$as_echo "$ac_try_echo") >&5
15010
  (eval "$ac_compile") 2>conftest.er1
15011 131 jeremybenn
  ac_status=$?
15012
  grep -v '^ *+' conftest.er1 >conftest.err
15013
  rm -f conftest.er1
15014
  cat conftest.err >&5
15015 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016
  (exit $ac_status); } && {
15017
         test -z "$ac_c_werror_flag" ||
15018
         test ! -s conftest.err
15019
       } && test -s conftest.$ac_objext; then
15020 131 jeremybenn
  ac_lo=$ac_mid; break
15021
else
15022 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15023 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15024
 
15025 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
15026
                        if test $ac_mid -le $ac_hi; then
15027
                          ac_lo= ac_hi=
15028
                          break
15029
                        fi
15030
                        ac_mid=`expr 2 '*' $ac_mid`
15031 131 jeremybenn
fi
15032 213 jeremybenn
 
15033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 131 jeremybenn
  done
15035
else
15036 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15037 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15038
 
15039 213 jeremybenn
        ac_lo= ac_hi=
15040 131 jeremybenn
fi
15041 213 jeremybenn
 
15042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043 131 jeremybenn
fi
15044 213 jeremybenn
 
15045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 131 jeremybenn
# Binary search between lo and hi bounds.
15047
while test "x$ac_lo" != "x$ac_hi"; do
15048
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15049
  cat >conftest.$ac_ext <<_ACEOF
15050
/* confdefs.h.  */
15051
_ACEOF
15052
cat confdefs.h >>conftest.$ac_ext
15053
cat >>conftest.$ac_ext <<_ACEOF
15054
/* end confdefs.h.  */
15055
$ac_includes_default
15056
int
15057
main ()
15058
{
15059 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
15060 131 jeremybenn
test_array [0] = 0
15061
 
15062
  ;
15063
  return 0;
15064
}
15065
_ACEOF
15066
rm -f conftest.$ac_objext
15067 213 jeremybenn
if { (ac_try="$ac_compile"
15068
case "(($ac_try" in
15069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070
  *) ac_try_echo=$ac_try;;
15071
esac
15072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073
$as_echo "$ac_try_echo") >&5
15074
  (eval "$ac_compile") 2>conftest.er1
15075 131 jeremybenn
  ac_status=$?
15076
  grep -v '^ *+' conftest.er1 >conftest.err
15077
  rm -f conftest.er1
15078
  cat conftest.err >&5
15079 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080
  (exit $ac_status); } && {
15081
         test -z "$ac_c_werror_flag" ||
15082
         test ! -s conftest.err
15083
       } && test -s conftest.$ac_objext; then
15084 131 jeremybenn
  ac_hi=$ac_mid
15085
else
15086 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15087 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15088
 
15089 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
15090 131 jeremybenn
fi
15091 213 jeremybenn
 
15092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 131 jeremybenn
done
15094
case $ac_lo in
15095
?*) ac_cv_sizeof_long=$ac_lo;;
15096 213 jeremybenn
'') if test "$ac_cv_type_long" = yes; then
15097
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15098
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15099
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15100 131 jeremybenn
See \`config.log' for more details." >&5
15101 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
15102 131 jeremybenn
See \`config.log' for more details." >&2;}
15103 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15104
   else
15105
     ac_cv_sizeof_long=0
15106
   fi ;;
15107 131 jeremybenn
esac
15108
else
15109
  cat >conftest.$ac_ext <<_ACEOF
15110
/* confdefs.h.  */
15111
_ACEOF
15112
cat confdefs.h >>conftest.$ac_ext
15113
cat >>conftest.$ac_ext <<_ACEOF
15114
/* end confdefs.h.  */
15115
$ac_includes_default
15116 213 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
15117
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
15118 131 jeremybenn
#include 
15119
#include 
15120
int
15121
main ()
15122
{
15123
 
15124
  FILE *f = fopen ("conftest.val", "w");
15125
  if (! f)
15126 213 jeremybenn
    return 1;
15127
  if (((long int) (sizeof (long))) < 0)
15128 131 jeremybenn
    {
15129 213 jeremybenn
      long int i = longval ();
15130
      if (i != ((long int) (sizeof (long))))
15131
        return 1;
15132
      fprintf (f, "%ld", i);
15133 131 jeremybenn
    }
15134
  else
15135
    {
15136 213 jeremybenn
      unsigned long int i = ulongval ();
15137
      if (i != ((long int) (sizeof (long))))
15138
        return 1;
15139
      fprintf (f, "%lu", i);
15140 131 jeremybenn
    }
15141 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
15142
     on some platforms.  */
15143
  return ferror (f) || fclose (f) != 0;
15144 131 jeremybenn
 
15145
  ;
15146
  return 0;
15147
}
15148
_ACEOF
15149
rm -f conftest$ac_exeext
15150 213 jeremybenn
if { (ac_try="$ac_link"
15151
case "(($ac_try" in
15152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153
  *) ac_try_echo=$ac_try;;
15154
esac
15155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156
$as_echo "$ac_try_echo") >&5
15157
  (eval "$ac_link") 2>&5
15158 131 jeremybenn
  ac_status=$?
15159 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15161 213 jeremybenn
  { (case "(($ac_try" in
15162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163
  *) ac_try_echo=$ac_try;;
15164
esac
15165
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166
$as_echo "$ac_try_echo") >&5
15167
  (eval "$ac_try") 2>&5
15168 131 jeremybenn
  ac_status=$?
15169 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 131 jeremybenn
  (exit $ac_status); }; }; then
15171
  ac_cv_sizeof_long=`cat conftest.val`
15172
else
15173 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
15174
$as_echo "$as_me: failed program was:" >&5
15175 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15176
 
15177
( exit $ac_status )
15178 213 jeremybenn
if test "$ac_cv_type_long" = yes; then
15179
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15180
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15181
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15182 131 jeremybenn
See \`config.log' for more details." >&5
15183 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
15184 131 jeremybenn
See \`config.log' for more details." >&2;}
15185 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15186
   else
15187
     ac_cv_sizeof_long=0
15188
   fi
15189 131 jeremybenn
fi
15190 213 jeremybenn
rm -rf conftest.dSYM
15191
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15192 131 jeremybenn
fi
15193
rm -f conftest.val
15194
fi
15195 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15196
$as_echo "$ac_cv_sizeof_long" >&6; }
15197
 
15198
 
15199
 
15200 131 jeremybenn
cat >>confdefs.h <<_ACEOF
15201
#define SIZEOF_LONG $ac_cv_sizeof_long
15202
_ACEOF
15203
 
15204
 ;;
15205
esac
15206
 
15207
if test $acx_cv_header_stdint = stddef.h; then
15208
  # Lacking a good header?  Test size of everything and deduce all types.
15209 213 jeremybenn
  # The cast to long int works around a bug in the HP C Compiler
15210
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15211
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15212
# This bug is HP SR number 8606223364.
15213
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
15214
$as_echo_n "checking size of int... " >&6; }
15215 131 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
15216 213 jeremybenn
  $as_echo_n "(cached) " >&6
15217 131 jeremybenn
else
15218
  if test "$cross_compiling" = yes; then
15219
  # Depending upon the size, compute the lo and hi bounds.
15220
cat >conftest.$ac_ext <<_ACEOF
15221
/* confdefs.h.  */
15222
_ACEOF
15223
cat confdefs.h >>conftest.$ac_ext
15224
cat >>conftest.$ac_ext <<_ACEOF
15225
/* end confdefs.h.  */
15226
$ac_includes_default
15227
int
15228
main ()
15229
{
15230 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
15231 131 jeremybenn
test_array [0] = 0
15232
 
15233
  ;
15234
  return 0;
15235
}
15236
_ACEOF
15237
rm -f conftest.$ac_objext
15238 213 jeremybenn
if { (ac_try="$ac_compile"
15239
case "(($ac_try" in
15240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241
  *) ac_try_echo=$ac_try;;
15242
esac
15243
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15244
$as_echo "$ac_try_echo") >&5
15245
  (eval "$ac_compile") 2>conftest.er1
15246 131 jeremybenn
  ac_status=$?
15247
  grep -v '^ *+' conftest.er1 >conftest.err
15248
  rm -f conftest.er1
15249
  cat conftest.err >&5
15250 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251
  (exit $ac_status); } && {
15252
         test -z "$ac_c_werror_flag" ||
15253
         test ! -s conftest.err
15254
       } && test -s conftest.$ac_objext; then
15255 131 jeremybenn
  ac_lo=0 ac_mid=0
15256
  while :; do
15257
    cat >conftest.$ac_ext <<_ACEOF
15258
/* confdefs.h.  */
15259
_ACEOF
15260
cat confdefs.h >>conftest.$ac_ext
15261
cat >>conftest.$ac_ext <<_ACEOF
15262
/* end confdefs.h.  */
15263
$ac_includes_default
15264
int
15265
main ()
15266
{
15267 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
15268 131 jeremybenn
test_array [0] = 0
15269
 
15270
  ;
15271
  return 0;
15272
}
15273
_ACEOF
15274
rm -f conftest.$ac_objext
15275 213 jeremybenn
if { (ac_try="$ac_compile"
15276
case "(($ac_try" in
15277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278
  *) ac_try_echo=$ac_try;;
15279
esac
15280
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15281
$as_echo "$ac_try_echo") >&5
15282
  (eval "$ac_compile") 2>conftest.er1
15283 131 jeremybenn
  ac_status=$?
15284
  grep -v '^ *+' conftest.er1 >conftest.err
15285
  rm -f conftest.er1
15286
  cat conftest.err >&5
15287 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288
  (exit $ac_status); } && {
15289
         test -z "$ac_c_werror_flag" ||
15290
         test ! -s conftest.err
15291
       } && test -s conftest.$ac_objext; then
15292 131 jeremybenn
  ac_hi=$ac_mid; break
15293
else
15294 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15295 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15296
 
15297 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
15298
                        if test $ac_lo -le $ac_mid; then
15299
                          ac_lo= ac_hi=
15300
                          break
15301
                        fi
15302
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15303 131 jeremybenn
fi
15304 213 jeremybenn
 
15305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 131 jeremybenn
  done
15307
else
15308 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15309 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15310
 
15311 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
15312 131 jeremybenn
/* confdefs.h.  */
15313
_ACEOF
15314
cat confdefs.h >>conftest.$ac_ext
15315
cat >>conftest.$ac_ext <<_ACEOF
15316
/* end confdefs.h.  */
15317
$ac_includes_default
15318
int
15319
main ()
15320
{
15321 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
15322 131 jeremybenn
test_array [0] = 0
15323
 
15324
  ;
15325
  return 0;
15326
}
15327
_ACEOF
15328
rm -f conftest.$ac_objext
15329 213 jeremybenn
if { (ac_try="$ac_compile"
15330
case "(($ac_try" in
15331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332
  *) ac_try_echo=$ac_try;;
15333
esac
15334
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15335
$as_echo "$ac_try_echo") >&5
15336
  (eval "$ac_compile") 2>conftest.er1
15337 131 jeremybenn
  ac_status=$?
15338
  grep -v '^ *+' conftest.er1 >conftest.err
15339
  rm -f conftest.er1
15340
  cat conftest.err >&5
15341 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342
  (exit $ac_status); } && {
15343
         test -z "$ac_c_werror_flag" ||
15344
         test ! -s conftest.err
15345
       } && test -s conftest.$ac_objext; then
15346 131 jeremybenn
  ac_hi=-1 ac_mid=-1
15347
  while :; do
15348
    cat >conftest.$ac_ext <<_ACEOF
15349
/* confdefs.h.  */
15350
_ACEOF
15351
cat confdefs.h >>conftest.$ac_ext
15352
cat >>conftest.$ac_ext <<_ACEOF
15353
/* end confdefs.h.  */
15354
$ac_includes_default
15355
int
15356
main ()
15357
{
15358 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
15359 131 jeremybenn
test_array [0] = 0
15360
 
15361
  ;
15362
  return 0;
15363
}
15364
_ACEOF
15365
rm -f conftest.$ac_objext
15366 213 jeremybenn
if { (ac_try="$ac_compile"
15367
case "(($ac_try" in
15368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369
  *) ac_try_echo=$ac_try;;
15370
esac
15371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372
$as_echo "$ac_try_echo") >&5
15373
  (eval "$ac_compile") 2>conftest.er1
15374 131 jeremybenn
  ac_status=$?
15375
  grep -v '^ *+' conftest.er1 >conftest.err
15376
  rm -f conftest.er1
15377
  cat conftest.err >&5
15378 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
  (exit $ac_status); } && {
15380
         test -z "$ac_c_werror_flag" ||
15381
         test ! -s conftest.err
15382
       } && test -s conftest.$ac_objext; then
15383 131 jeremybenn
  ac_lo=$ac_mid; break
15384
else
15385 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15386 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15387
 
15388 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
15389
                        if test $ac_mid -le $ac_hi; then
15390
                          ac_lo= ac_hi=
15391
                          break
15392
                        fi
15393
                        ac_mid=`expr 2 '*' $ac_mid`
15394 131 jeremybenn
fi
15395 213 jeremybenn
 
15396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 131 jeremybenn
  done
15398
else
15399 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15400 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15401
 
15402 213 jeremybenn
        ac_lo= ac_hi=
15403 131 jeremybenn
fi
15404 213 jeremybenn
 
15405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 131 jeremybenn
fi
15407 213 jeremybenn
 
15408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409 131 jeremybenn
# Binary search between lo and hi bounds.
15410
while test "x$ac_lo" != "x$ac_hi"; do
15411
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15412
  cat >conftest.$ac_ext <<_ACEOF
15413
/* confdefs.h.  */
15414
_ACEOF
15415
cat confdefs.h >>conftest.$ac_ext
15416
cat >>conftest.$ac_ext <<_ACEOF
15417
/* end confdefs.h.  */
15418
$ac_includes_default
15419
int
15420
main ()
15421
{
15422 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
15423 131 jeremybenn
test_array [0] = 0
15424
 
15425
  ;
15426
  return 0;
15427
}
15428
_ACEOF
15429
rm -f conftest.$ac_objext
15430 213 jeremybenn
if { (ac_try="$ac_compile"
15431
case "(($ac_try" in
15432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433
  *) ac_try_echo=$ac_try;;
15434
esac
15435
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436
$as_echo "$ac_try_echo") >&5
15437
  (eval "$ac_compile") 2>conftest.er1
15438 131 jeremybenn
  ac_status=$?
15439
  grep -v '^ *+' conftest.er1 >conftest.err
15440
  rm -f conftest.er1
15441
  cat conftest.err >&5
15442 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443
  (exit $ac_status); } && {
15444
         test -z "$ac_c_werror_flag" ||
15445
         test ! -s conftest.err
15446
       } && test -s conftest.$ac_objext; then
15447 131 jeremybenn
  ac_hi=$ac_mid
15448
else
15449 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15450 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15451
 
15452 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
15453 131 jeremybenn
fi
15454 213 jeremybenn
 
15455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 131 jeremybenn
done
15457
case $ac_lo in
15458
?*) ac_cv_sizeof_int=$ac_lo;;
15459 213 jeremybenn
'') if test "$ac_cv_type_int" = yes; then
15460
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15461
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15462
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15463 131 jeremybenn
See \`config.log' for more details." >&5
15464 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
15465 131 jeremybenn
See \`config.log' for more details." >&2;}
15466 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15467
   else
15468
     ac_cv_sizeof_int=0
15469
   fi ;;
15470 131 jeremybenn
esac
15471
else
15472
  cat >conftest.$ac_ext <<_ACEOF
15473
/* confdefs.h.  */
15474
_ACEOF
15475
cat confdefs.h >>conftest.$ac_ext
15476
cat >>conftest.$ac_ext <<_ACEOF
15477
/* end confdefs.h.  */
15478
$ac_includes_default
15479 213 jeremybenn
static long int longval () { return (long int) (sizeof (int)); }
15480
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
15481 131 jeremybenn
#include 
15482
#include 
15483
int
15484
main ()
15485
{
15486
 
15487
  FILE *f = fopen ("conftest.val", "w");
15488
  if (! f)
15489 213 jeremybenn
    return 1;
15490
  if (((long int) (sizeof (int))) < 0)
15491 131 jeremybenn
    {
15492 213 jeremybenn
      long int i = longval ();
15493
      if (i != ((long int) (sizeof (int))))
15494
        return 1;
15495
      fprintf (f, "%ld", i);
15496 131 jeremybenn
    }
15497
  else
15498
    {
15499 213 jeremybenn
      unsigned long int i = ulongval ();
15500
      if (i != ((long int) (sizeof (int))))
15501
        return 1;
15502
      fprintf (f, "%lu", i);
15503 131 jeremybenn
    }
15504 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
15505
     on some platforms.  */
15506
  return ferror (f) || fclose (f) != 0;
15507 131 jeremybenn
 
15508
  ;
15509
  return 0;
15510
}
15511
_ACEOF
15512
rm -f conftest$ac_exeext
15513 213 jeremybenn
if { (ac_try="$ac_link"
15514
case "(($ac_try" in
15515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516
  *) ac_try_echo=$ac_try;;
15517
esac
15518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519
$as_echo "$ac_try_echo") >&5
15520
  (eval "$ac_link") 2>&5
15521 131 jeremybenn
  ac_status=$?
15522 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 213 jeremybenn
  { (case "(($ac_try" in
15525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526
  *) ac_try_echo=$ac_try;;
15527
esac
15528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529
$as_echo "$ac_try_echo") >&5
15530
  (eval "$ac_try") 2>&5
15531 131 jeremybenn
  ac_status=$?
15532 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 131 jeremybenn
  (exit $ac_status); }; }; then
15534
  ac_cv_sizeof_int=`cat conftest.val`
15535
else
15536 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
15537
$as_echo "$as_me: failed program was:" >&5
15538 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15539
 
15540
( exit $ac_status )
15541 213 jeremybenn
if test "$ac_cv_type_int" = yes; then
15542
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15544
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15545 131 jeremybenn
See \`config.log' for more details." >&5
15546 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
15547 131 jeremybenn
See \`config.log' for more details." >&2;}
15548 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15549
   else
15550
     ac_cv_sizeof_int=0
15551
   fi
15552 131 jeremybenn
fi
15553 213 jeremybenn
rm -rf conftest.dSYM
15554
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15555 131 jeremybenn
fi
15556
rm -f conftest.val
15557
fi
15558 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15559
$as_echo "$ac_cv_sizeof_int" >&6; }
15560
 
15561
 
15562
 
15563 131 jeremybenn
cat >>confdefs.h <<_ACEOF
15564
#define SIZEOF_INT $ac_cv_sizeof_int
15565
_ACEOF
15566
 
15567
 
15568 213 jeremybenn
  # The cast to long int works around a bug in the HP C Compiler
15569
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15570
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15571
# This bug is HP SR number 8606223364.
15572
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
15573
$as_echo_n "checking size of short... " >&6; }
15574 131 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
15575 213 jeremybenn
  $as_echo_n "(cached) " >&6
15576 131 jeremybenn
else
15577
  if test "$cross_compiling" = yes; then
15578
  # Depending upon the size, compute the lo and hi bounds.
15579
cat >conftest.$ac_ext <<_ACEOF
15580
/* confdefs.h.  */
15581
_ACEOF
15582
cat confdefs.h >>conftest.$ac_ext
15583
cat >>conftest.$ac_ext <<_ACEOF
15584
/* end confdefs.h.  */
15585
$ac_includes_default
15586
int
15587
main ()
15588
{
15589 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
15590 131 jeremybenn
test_array [0] = 0
15591
 
15592
  ;
15593
  return 0;
15594
}
15595
_ACEOF
15596
rm -f conftest.$ac_objext
15597 213 jeremybenn
if { (ac_try="$ac_compile"
15598
case "(($ac_try" in
15599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600
  *) ac_try_echo=$ac_try;;
15601
esac
15602
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15603
$as_echo "$ac_try_echo") >&5
15604
  (eval "$ac_compile") 2>conftest.er1
15605 131 jeremybenn
  ac_status=$?
15606
  grep -v '^ *+' conftest.er1 >conftest.err
15607
  rm -f conftest.er1
15608
  cat conftest.err >&5
15609 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610
  (exit $ac_status); } && {
15611
         test -z "$ac_c_werror_flag" ||
15612
         test ! -s conftest.err
15613
       } && test -s conftest.$ac_objext; then
15614 131 jeremybenn
  ac_lo=0 ac_mid=0
15615
  while :; do
15616
    cat >conftest.$ac_ext <<_ACEOF
15617
/* confdefs.h.  */
15618
_ACEOF
15619
cat confdefs.h >>conftest.$ac_ext
15620
cat >>conftest.$ac_ext <<_ACEOF
15621
/* end confdefs.h.  */
15622
$ac_includes_default
15623
int
15624
main ()
15625
{
15626 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
15627 131 jeremybenn
test_array [0] = 0
15628
 
15629
  ;
15630
  return 0;
15631
}
15632
_ACEOF
15633
rm -f conftest.$ac_objext
15634 213 jeremybenn
if { (ac_try="$ac_compile"
15635
case "(($ac_try" in
15636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637
  *) ac_try_echo=$ac_try;;
15638
esac
15639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15640
$as_echo "$ac_try_echo") >&5
15641
  (eval "$ac_compile") 2>conftest.er1
15642 131 jeremybenn
  ac_status=$?
15643
  grep -v '^ *+' conftest.er1 >conftest.err
15644
  rm -f conftest.er1
15645
  cat conftest.err >&5
15646 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647
  (exit $ac_status); } && {
15648
         test -z "$ac_c_werror_flag" ||
15649
         test ! -s conftest.err
15650
       } && test -s conftest.$ac_objext; then
15651 131 jeremybenn
  ac_hi=$ac_mid; break
15652
else
15653 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15654 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15655
 
15656 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
15657
                        if test $ac_lo -le $ac_mid; then
15658
                          ac_lo= ac_hi=
15659
                          break
15660
                        fi
15661
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15662 131 jeremybenn
fi
15663 213 jeremybenn
 
15664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 131 jeremybenn
  done
15666
else
15667 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15668 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15669
 
15670 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
15671 131 jeremybenn
/* confdefs.h.  */
15672
_ACEOF
15673
cat confdefs.h >>conftest.$ac_ext
15674
cat >>conftest.$ac_ext <<_ACEOF
15675
/* end confdefs.h.  */
15676
$ac_includes_default
15677
int
15678
main ()
15679
{
15680 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
15681 131 jeremybenn
test_array [0] = 0
15682
 
15683
  ;
15684
  return 0;
15685
}
15686
_ACEOF
15687
rm -f conftest.$ac_objext
15688 213 jeremybenn
if { (ac_try="$ac_compile"
15689
case "(($ac_try" in
15690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691
  *) ac_try_echo=$ac_try;;
15692
esac
15693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694
$as_echo "$ac_try_echo") >&5
15695
  (eval "$ac_compile") 2>conftest.er1
15696 131 jeremybenn
  ac_status=$?
15697
  grep -v '^ *+' conftest.er1 >conftest.err
15698
  rm -f conftest.er1
15699
  cat conftest.err >&5
15700 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701
  (exit $ac_status); } && {
15702
         test -z "$ac_c_werror_flag" ||
15703
         test ! -s conftest.err
15704
       } && test -s conftest.$ac_objext; then
15705 131 jeremybenn
  ac_hi=-1 ac_mid=-1
15706
  while :; do
15707
    cat >conftest.$ac_ext <<_ACEOF
15708
/* confdefs.h.  */
15709
_ACEOF
15710
cat confdefs.h >>conftest.$ac_ext
15711
cat >>conftest.$ac_ext <<_ACEOF
15712
/* end confdefs.h.  */
15713
$ac_includes_default
15714
int
15715
main ()
15716
{
15717 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
15718 131 jeremybenn
test_array [0] = 0
15719
 
15720
  ;
15721
  return 0;
15722
}
15723
_ACEOF
15724
rm -f conftest.$ac_objext
15725 213 jeremybenn
if { (ac_try="$ac_compile"
15726
case "(($ac_try" in
15727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728
  *) ac_try_echo=$ac_try;;
15729
esac
15730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15731
$as_echo "$ac_try_echo") >&5
15732
  (eval "$ac_compile") 2>conftest.er1
15733 131 jeremybenn
  ac_status=$?
15734
  grep -v '^ *+' conftest.er1 >conftest.err
15735
  rm -f conftest.er1
15736
  cat conftest.err >&5
15737 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738
  (exit $ac_status); } && {
15739
         test -z "$ac_c_werror_flag" ||
15740
         test ! -s conftest.err
15741
       } && test -s conftest.$ac_objext; then
15742 131 jeremybenn
  ac_lo=$ac_mid; break
15743
else
15744 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15745 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15746
 
15747 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
15748
                        if test $ac_mid -le $ac_hi; then
15749
                          ac_lo= ac_hi=
15750
                          break
15751
                        fi
15752
                        ac_mid=`expr 2 '*' $ac_mid`
15753 131 jeremybenn
fi
15754 213 jeremybenn
 
15755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 131 jeremybenn
  done
15757
else
15758 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15759 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15760
 
15761 213 jeremybenn
        ac_lo= ac_hi=
15762 131 jeremybenn
fi
15763 213 jeremybenn
 
15764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 131 jeremybenn
fi
15766 213 jeremybenn
 
15767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 131 jeremybenn
# Binary search between lo and hi bounds.
15769
while test "x$ac_lo" != "x$ac_hi"; do
15770
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15771
  cat >conftest.$ac_ext <<_ACEOF
15772
/* confdefs.h.  */
15773
_ACEOF
15774
cat confdefs.h >>conftest.$ac_ext
15775
cat >>conftest.$ac_ext <<_ACEOF
15776
/* end confdefs.h.  */
15777
$ac_includes_default
15778
int
15779
main ()
15780
{
15781 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
15782 131 jeremybenn
test_array [0] = 0
15783
 
15784
  ;
15785
  return 0;
15786
}
15787
_ACEOF
15788
rm -f conftest.$ac_objext
15789 213 jeremybenn
if { (ac_try="$ac_compile"
15790
case "(($ac_try" in
15791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792
  *) ac_try_echo=$ac_try;;
15793
esac
15794
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15795
$as_echo "$ac_try_echo") >&5
15796
  (eval "$ac_compile") 2>conftest.er1
15797 131 jeremybenn
  ac_status=$?
15798
  grep -v '^ *+' conftest.er1 >conftest.err
15799
  rm -f conftest.er1
15800
  cat conftest.err >&5
15801 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802
  (exit $ac_status); } && {
15803
         test -z "$ac_c_werror_flag" ||
15804
         test ! -s conftest.err
15805
       } && test -s conftest.$ac_objext; then
15806 131 jeremybenn
  ac_hi=$ac_mid
15807
else
15808 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15809 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15810
 
15811 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
15812 131 jeremybenn
fi
15813 213 jeremybenn
 
15814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 131 jeremybenn
done
15816
case $ac_lo in
15817
?*) ac_cv_sizeof_short=$ac_lo;;
15818 213 jeremybenn
'') if test "$ac_cv_type_short" = yes; then
15819
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15820
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15822 131 jeremybenn
See \`config.log' for more details." >&5
15823 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
15824 131 jeremybenn
See \`config.log' for more details." >&2;}
15825 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15826
   else
15827
     ac_cv_sizeof_short=0
15828
   fi ;;
15829 131 jeremybenn
esac
15830
else
15831
  cat >conftest.$ac_ext <<_ACEOF
15832
/* confdefs.h.  */
15833
_ACEOF
15834
cat confdefs.h >>conftest.$ac_ext
15835
cat >>conftest.$ac_ext <<_ACEOF
15836
/* end confdefs.h.  */
15837
$ac_includes_default
15838 213 jeremybenn
static long int longval () { return (long int) (sizeof (short)); }
15839
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
15840 131 jeremybenn
#include 
15841
#include 
15842
int
15843
main ()
15844
{
15845
 
15846
  FILE *f = fopen ("conftest.val", "w");
15847
  if (! f)
15848 213 jeremybenn
    return 1;
15849
  if (((long int) (sizeof (short))) < 0)
15850 131 jeremybenn
    {
15851 213 jeremybenn
      long int i = longval ();
15852
      if (i != ((long int) (sizeof (short))))
15853
        return 1;
15854
      fprintf (f, "%ld", i);
15855 131 jeremybenn
    }
15856
  else
15857
    {
15858 213 jeremybenn
      unsigned long int i = ulongval ();
15859
      if (i != ((long int) (sizeof (short))))
15860
        return 1;
15861
      fprintf (f, "%lu", i);
15862 131 jeremybenn
    }
15863 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
15864
     on some platforms.  */
15865
  return ferror (f) || fclose (f) != 0;
15866 131 jeremybenn
 
15867
  ;
15868
  return 0;
15869
}
15870
_ACEOF
15871
rm -f conftest$ac_exeext
15872 213 jeremybenn
if { (ac_try="$ac_link"
15873
case "(($ac_try" in
15874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875
  *) ac_try_echo=$ac_try;;
15876
esac
15877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15878
$as_echo "$ac_try_echo") >&5
15879
  (eval "$ac_link") 2>&5
15880 131 jeremybenn
  ac_status=$?
15881 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15883 213 jeremybenn
  { (case "(($ac_try" in
15884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885
  *) ac_try_echo=$ac_try;;
15886
esac
15887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15888
$as_echo "$ac_try_echo") >&5
15889
  (eval "$ac_try") 2>&5
15890 131 jeremybenn
  ac_status=$?
15891 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 131 jeremybenn
  (exit $ac_status); }; }; then
15893
  ac_cv_sizeof_short=`cat conftest.val`
15894
else
15895 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
15896
$as_echo "$as_me: failed program was:" >&5
15897 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15898
 
15899
( exit $ac_status )
15900 213 jeremybenn
if test "$ac_cv_type_short" = yes; then
15901
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15902
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15903
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15904 131 jeremybenn
See \`config.log' for more details." >&5
15905 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
15906 131 jeremybenn
See \`config.log' for more details." >&2;}
15907 213 jeremybenn
   { (exit 77); exit 77; }; }; }
15908
   else
15909
     ac_cv_sizeof_short=0
15910
   fi
15911 131 jeremybenn
fi
15912 213 jeremybenn
rm -rf conftest.dSYM
15913
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15914 131 jeremybenn
fi
15915
rm -f conftest.val
15916
fi
15917 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15918
$as_echo "$ac_cv_sizeof_short" >&6; }
15919
 
15920
 
15921
 
15922 131 jeremybenn
cat >>confdefs.h <<_ACEOF
15923
#define SIZEOF_SHORT $ac_cv_sizeof_short
15924
_ACEOF
15925
 
15926
 
15927 213 jeremybenn
  # The cast to long int works around a bug in the HP C Compiler
15928
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15929
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15930
# This bug is HP SR number 8606223364.
15931
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15932
$as_echo_n "checking size of char... " >&6; }
15933 131 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15934 213 jeremybenn
  $as_echo_n "(cached) " >&6
15935 131 jeremybenn
else
15936
  if test "$cross_compiling" = yes; then
15937
  # Depending upon the size, compute the lo and hi bounds.
15938
cat >conftest.$ac_ext <<_ACEOF
15939
/* confdefs.h.  */
15940
_ACEOF
15941
cat confdefs.h >>conftest.$ac_ext
15942
cat >>conftest.$ac_ext <<_ACEOF
15943
/* end confdefs.h.  */
15944
$ac_includes_default
15945
int
15946
main ()
15947
{
15948 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15949 131 jeremybenn
test_array [0] = 0
15950
 
15951
  ;
15952
  return 0;
15953
}
15954
_ACEOF
15955
rm -f conftest.$ac_objext
15956 213 jeremybenn
if { (ac_try="$ac_compile"
15957
case "(($ac_try" in
15958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959
  *) ac_try_echo=$ac_try;;
15960
esac
15961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962
$as_echo "$ac_try_echo") >&5
15963
  (eval "$ac_compile") 2>conftest.er1
15964 131 jeremybenn
  ac_status=$?
15965
  grep -v '^ *+' conftest.er1 >conftest.err
15966
  rm -f conftest.er1
15967
  cat conftest.err >&5
15968 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969
  (exit $ac_status); } && {
15970
         test -z "$ac_c_werror_flag" ||
15971
         test ! -s conftest.err
15972
       } && test -s conftest.$ac_objext; then
15973 131 jeremybenn
  ac_lo=0 ac_mid=0
15974
  while :; do
15975
    cat >conftest.$ac_ext <<_ACEOF
15976
/* confdefs.h.  */
15977
_ACEOF
15978
cat confdefs.h >>conftest.$ac_ext
15979
cat >>conftest.$ac_ext <<_ACEOF
15980
/* end confdefs.h.  */
15981
$ac_includes_default
15982
int
15983
main ()
15984
{
15985 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15986 131 jeremybenn
test_array [0] = 0
15987
 
15988
  ;
15989
  return 0;
15990
}
15991
_ACEOF
15992
rm -f conftest.$ac_objext
15993 213 jeremybenn
if { (ac_try="$ac_compile"
15994
case "(($ac_try" in
15995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996
  *) ac_try_echo=$ac_try;;
15997
esac
15998
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15999
$as_echo "$ac_try_echo") >&5
16000
  (eval "$ac_compile") 2>conftest.er1
16001 131 jeremybenn
  ac_status=$?
16002
  grep -v '^ *+' conftest.er1 >conftest.err
16003
  rm -f conftest.er1
16004
  cat conftest.err >&5
16005 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006
  (exit $ac_status); } && {
16007
         test -z "$ac_c_werror_flag" ||
16008
         test ! -s conftest.err
16009
       } && test -s conftest.$ac_objext; then
16010 131 jeremybenn
  ac_hi=$ac_mid; break
16011
else
16012 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16013 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16014
 
16015 213 jeremybenn
        ac_lo=`expr $ac_mid + 1`
16016
                        if test $ac_lo -le $ac_mid; then
16017
                          ac_lo= ac_hi=
16018
                          break
16019
                        fi
16020
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16021 131 jeremybenn
fi
16022 213 jeremybenn
 
16023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 131 jeremybenn
  done
16025
else
16026 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16027 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16028
 
16029 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
16030 131 jeremybenn
/* confdefs.h.  */
16031
_ACEOF
16032
cat confdefs.h >>conftest.$ac_ext
16033
cat >>conftest.$ac_ext <<_ACEOF
16034
/* end confdefs.h.  */
16035
$ac_includes_default
16036
int
16037
main ()
16038
{
16039 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16040 131 jeremybenn
test_array [0] = 0
16041
 
16042
  ;
16043
  return 0;
16044
}
16045
_ACEOF
16046
rm -f conftest.$ac_objext
16047 213 jeremybenn
if { (ac_try="$ac_compile"
16048
case "(($ac_try" in
16049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050
  *) ac_try_echo=$ac_try;;
16051
esac
16052
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053
$as_echo "$ac_try_echo") >&5
16054
  (eval "$ac_compile") 2>conftest.er1
16055 131 jeremybenn
  ac_status=$?
16056
  grep -v '^ *+' conftest.er1 >conftest.err
16057
  rm -f conftest.er1
16058
  cat conftest.err >&5
16059 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060
  (exit $ac_status); } && {
16061
         test -z "$ac_c_werror_flag" ||
16062
         test ! -s conftest.err
16063
       } && test -s conftest.$ac_objext; then
16064 131 jeremybenn
  ac_hi=-1 ac_mid=-1
16065
  while :; do
16066
    cat >conftest.$ac_ext <<_ACEOF
16067
/* confdefs.h.  */
16068
_ACEOF
16069
cat confdefs.h >>conftest.$ac_ext
16070
cat >>conftest.$ac_ext <<_ACEOF
16071
/* end confdefs.h.  */
16072
$ac_includes_default
16073
int
16074
main ()
16075
{
16076 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16077 131 jeremybenn
test_array [0] = 0
16078
 
16079
  ;
16080
  return 0;
16081
}
16082
_ACEOF
16083
rm -f conftest.$ac_objext
16084 213 jeremybenn
if { (ac_try="$ac_compile"
16085
case "(($ac_try" in
16086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087
  *) ac_try_echo=$ac_try;;
16088
esac
16089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090
$as_echo "$ac_try_echo") >&5
16091
  (eval "$ac_compile") 2>conftest.er1
16092 131 jeremybenn
  ac_status=$?
16093
  grep -v '^ *+' conftest.er1 >conftest.err
16094
  rm -f conftest.er1
16095
  cat conftest.err >&5
16096 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097
  (exit $ac_status); } && {
16098
         test -z "$ac_c_werror_flag" ||
16099
         test ! -s conftest.err
16100
       } && test -s conftest.$ac_objext; then
16101 131 jeremybenn
  ac_lo=$ac_mid; break
16102
else
16103 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16104 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16105
 
16106 213 jeremybenn
        ac_hi=`expr '(' $ac_mid ')' - 1`
16107
                        if test $ac_mid -le $ac_hi; then
16108
                          ac_lo= ac_hi=
16109
                          break
16110
                        fi
16111
                        ac_mid=`expr 2 '*' $ac_mid`
16112 131 jeremybenn
fi
16113 213 jeremybenn
 
16114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 131 jeremybenn
  done
16116
else
16117 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16118 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16119
 
16120 213 jeremybenn
        ac_lo= ac_hi=
16121 131 jeremybenn
fi
16122 213 jeremybenn
 
16123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16124 131 jeremybenn
fi
16125 213 jeremybenn
 
16126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 131 jeremybenn
# Binary search between lo and hi bounds.
16128
while test "x$ac_lo" != "x$ac_hi"; do
16129
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16130
  cat >conftest.$ac_ext <<_ACEOF
16131
/* confdefs.h.  */
16132
_ACEOF
16133
cat confdefs.h >>conftest.$ac_ext
16134
cat >>conftest.$ac_ext <<_ACEOF
16135
/* end confdefs.h.  */
16136
$ac_includes_default
16137
int
16138
main ()
16139
{
16140 213 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16141 131 jeremybenn
test_array [0] = 0
16142
 
16143
  ;
16144
  return 0;
16145
}
16146
_ACEOF
16147
rm -f conftest.$ac_objext
16148 213 jeremybenn
if { (ac_try="$ac_compile"
16149
case "(($ac_try" in
16150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151
  *) ac_try_echo=$ac_try;;
16152
esac
16153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16154
$as_echo "$ac_try_echo") >&5
16155
  (eval "$ac_compile") 2>conftest.er1
16156 131 jeremybenn
  ac_status=$?
16157
  grep -v '^ *+' conftest.er1 >conftest.err
16158
  rm -f conftest.er1
16159
  cat conftest.err >&5
16160 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161
  (exit $ac_status); } && {
16162
         test -z "$ac_c_werror_flag" ||
16163
         test ! -s conftest.err
16164
       } && test -s conftest.$ac_objext; then
16165 131 jeremybenn
  ac_hi=$ac_mid
16166
else
16167 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16168 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16169
 
16170 213 jeremybenn
        ac_lo=`expr '(' $ac_mid ')' + 1`
16171 131 jeremybenn
fi
16172 213 jeremybenn
 
16173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 131 jeremybenn
done
16175
case $ac_lo in
16176
?*) ac_cv_sizeof_char=$ac_lo;;
16177 213 jeremybenn
'') if test "$ac_cv_type_char" = yes; then
16178
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16179
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16180
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16181 131 jeremybenn
See \`config.log' for more details." >&5
16182 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16183 131 jeremybenn
See \`config.log' for more details." >&2;}
16184 213 jeremybenn
   { (exit 77); exit 77; }; }; }
16185
   else
16186
     ac_cv_sizeof_char=0
16187
   fi ;;
16188 131 jeremybenn
esac
16189
else
16190
  cat >conftest.$ac_ext <<_ACEOF
16191
/* confdefs.h.  */
16192
_ACEOF
16193
cat confdefs.h >>conftest.$ac_ext
16194
cat >>conftest.$ac_ext <<_ACEOF
16195
/* end confdefs.h.  */
16196
$ac_includes_default
16197 213 jeremybenn
static long int longval () { return (long int) (sizeof (char)); }
16198
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16199 131 jeremybenn
#include 
16200
#include 
16201
int
16202
main ()
16203
{
16204
 
16205
  FILE *f = fopen ("conftest.val", "w");
16206
  if (! f)
16207 213 jeremybenn
    return 1;
16208
  if (((long int) (sizeof (char))) < 0)
16209 131 jeremybenn
    {
16210 213 jeremybenn
      long int i = longval ();
16211
      if (i != ((long int) (sizeof (char))))
16212
        return 1;
16213
      fprintf (f, "%ld", i);
16214 131 jeremybenn
    }
16215
  else
16216
    {
16217 213 jeremybenn
      unsigned long int i = ulongval ();
16218
      if (i != ((long int) (sizeof (char))))
16219
        return 1;
16220
      fprintf (f, "%lu", i);
16221 131 jeremybenn
    }
16222 213 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16223
     on some platforms.  */
16224
  return ferror (f) || fclose (f) != 0;
16225 131 jeremybenn
 
16226
  ;
16227
  return 0;
16228
}
16229
_ACEOF
16230
rm -f conftest$ac_exeext
16231 213 jeremybenn
if { (ac_try="$ac_link"
16232
case "(($ac_try" in
16233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234
  *) ac_try_echo=$ac_try;;
16235
esac
16236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16237
$as_echo "$ac_try_echo") >&5
16238
  (eval "$ac_link") 2>&5
16239 131 jeremybenn
  ac_status=$?
16240 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16242 213 jeremybenn
  { (case "(($ac_try" in
16243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244
  *) ac_try_echo=$ac_try;;
16245
esac
16246
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247
$as_echo "$ac_try_echo") >&5
16248
  (eval "$ac_try") 2>&5
16249 131 jeremybenn
  ac_status=$?
16250 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 131 jeremybenn
  (exit $ac_status); }; }; then
16252
  ac_cv_sizeof_char=`cat conftest.val`
16253
else
16254 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16255
$as_echo "$as_me: failed program was:" >&5
16256 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16257
 
16258
( exit $ac_status )
16259 213 jeremybenn
if test "$ac_cv_type_char" = yes; then
16260
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16261
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16262
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16263 131 jeremybenn
See \`config.log' for more details." >&5
16264 213 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16265 131 jeremybenn
See \`config.log' for more details." >&2;}
16266 213 jeremybenn
   { (exit 77); exit 77; }; }; }
16267
   else
16268
     ac_cv_sizeof_char=0
16269
   fi
16270 131 jeremybenn
fi
16271 213 jeremybenn
rm -rf conftest.dSYM
16272
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16273 131 jeremybenn
fi
16274
rm -f conftest.val
16275
fi
16276 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16277
$as_echo "$ac_cv_sizeof_char" >&6; }
16278
 
16279
 
16280
 
16281 131 jeremybenn
cat >>confdefs.h <<_ACEOF
16282
#define SIZEOF_CHAR $ac_cv_sizeof_char
16283
_ACEOF
16284
 
16285
 
16286
 
16287 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16288
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16289 131 jeremybenn
  case "$ac_cv_sizeof_char" in
16290
    1) acx_cv_type_int8_t=char ;;
16291 213 jeremybenn
    *) { { $as_echo "$as_me:$LINENO: error: no 8-bit type" >&5
16292
$as_echo "$as_me: error: no 8-bit type" >&2;}
16293 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
16294
  esac
16295 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16296
$as_echo "$acx_cv_type_int8_t" >&6; }
16297 131 jeremybenn
 
16298 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16299
$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16300 131 jeremybenn
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16301
    2:*) acx_cv_type_int16_t=int ;;
16302
    *:2) acx_cv_type_int16_t=short ;;
16303 213 jeremybenn
    *) { { $as_echo "$as_me:$LINENO: error: no 16-bit type" >&5
16304
$as_echo "$as_me: error: no 16-bit type" >&2;}
16305 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
16306
  esac
16307 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16308
$as_echo "$acx_cv_type_int16_t" >&6; }
16309 131 jeremybenn
 
16310 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16311
$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16312 131 jeremybenn
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16313
    4:*) acx_cv_type_int32_t=int ;;
16314
    *:4) acx_cv_type_int32_t=long ;;
16315 213 jeremybenn
    *) { { $as_echo "$as_me:$LINENO: error: no 32-bit type" >&5
16316
$as_echo "$as_me: error: no 32-bit type" >&2;}
16317 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
16318
  esac
16319 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16320
$as_echo "$acx_cv_type_int32_t" >&6; }
16321 131 jeremybenn
fi
16322
 
16323
# These tests are here to make the output prettier
16324
 
16325
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16326
  case "$ac_cv_sizeof_long" in
16327
    8) acx_cv_type_int64_t=long ;;
16328
  esac
16329 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16330
$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16331
  { $as_echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16332
$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16333 131 jeremybenn
fi
16334
 
16335
# Now we can use the above types
16336
 
16337
if test "$ac_cv_type_uintptr_t" != yes; then
16338 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16339
$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16340 131 jeremybenn
  case $ac_cv_sizeof_void_p in
16341
    2) acx_cv_type_intptr_t=int16_t ;;
16342
    4) acx_cv_type_intptr_t=int32_t ;;
16343
    8) acx_cv_type_intptr_t=int64_t ;;
16344 213 jeremybenn
    *) { { $as_echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16345
$as_echo "$as_me: error: no equivalent for intptr_t" >&2;}
16346 131 jeremybenn
   { (exit please report a bug); exit please report a bug; }; }
16347
  esac
16348 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16349
$as_echo "$acx_cv_type_intptr_t" >&6; }
16350 131 jeremybenn
fi
16351
 
16352
# ----------------- done all checks, emit header -------------
16353 213 jeremybenn
ac_config_commands="$ac_config_commands gdb_stdint.h"
16354 131 jeremybenn
 
16355
 
16356
 
16357
 
16358
# ------------------------- #
16359
# Checks for declarations.  #
16360
# ------------------------- #
16361
 
16362 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether free is declared" >&5
16363
$as_echo_n "checking whether free is declared... " >&6; }
16364 131 jeremybenn
if test "${ac_cv_have_decl_free+set}" = set; then
16365 213 jeremybenn
  $as_echo_n "(cached) " >&6
16366 131 jeremybenn
else
16367
  cat >conftest.$ac_ext <<_ACEOF
16368
/* confdefs.h.  */
16369
_ACEOF
16370
cat confdefs.h >>conftest.$ac_ext
16371
cat >>conftest.$ac_ext <<_ACEOF
16372
/* end confdefs.h.  */
16373
$ac_includes_default
16374
int
16375
main ()
16376
{
16377
#ifndef free
16378 213 jeremybenn
  (void) free;
16379 131 jeremybenn
#endif
16380
 
16381
  ;
16382
  return 0;
16383
}
16384
_ACEOF
16385
rm -f conftest.$ac_objext
16386 213 jeremybenn
if { (ac_try="$ac_compile"
16387
case "(($ac_try" in
16388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389
  *) ac_try_echo=$ac_try;;
16390
esac
16391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16392
$as_echo "$ac_try_echo") >&5
16393
  (eval "$ac_compile") 2>conftest.er1
16394 131 jeremybenn
  ac_status=$?
16395
  grep -v '^ *+' conftest.er1 >conftest.err
16396
  rm -f conftest.er1
16397
  cat conftest.err >&5
16398 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399
  (exit $ac_status); } && {
16400
         test -z "$ac_c_werror_flag" ||
16401
         test ! -s conftest.err
16402
       } && test -s conftest.$ac_objext; then
16403 131 jeremybenn
  ac_cv_have_decl_free=yes
16404
else
16405 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16406 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16407
 
16408 213 jeremybenn
        ac_cv_have_decl_free=no
16409 131 jeremybenn
fi
16410 213 jeremybenn
 
16411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 131 jeremybenn
fi
16413 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16414
$as_echo "$ac_cv_have_decl_free" >&6; }
16415
if test "x$ac_cv_have_decl_free" = x""yes; then
16416 131 jeremybenn
 
16417
cat >>confdefs.h <<_ACEOF
16418
#define HAVE_DECL_FREE 1
16419
_ACEOF
16420
 
16421
 
16422
else
16423
  cat >>confdefs.h <<_ACEOF
16424
#define HAVE_DECL_FREE 0
16425
_ACEOF
16426
 
16427
 
16428
fi
16429 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16430
$as_echo_n "checking whether malloc is declared... " >&6; }
16431 131 jeremybenn
if test "${ac_cv_have_decl_malloc+set}" = set; then
16432 213 jeremybenn
  $as_echo_n "(cached) " >&6
16433 131 jeremybenn
else
16434
  cat >conftest.$ac_ext <<_ACEOF
16435
/* confdefs.h.  */
16436
_ACEOF
16437
cat confdefs.h >>conftest.$ac_ext
16438
cat >>conftest.$ac_ext <<_ACEOF
16439
/* end confdefs.h.  */
16440
$ac_includes_default
16441
int
16442
main ()
16443
{
16444
#ifndef malloc
16445 213 jeremybenn
  (void) malloc;
16446 131 jeremybenn
#endif
16447
 
16448
  ;
16449
  return 0;
16450
}
16451
_ACEOF
16452
rm -f conftest.$ac_objext
16453 213 jeremybenn
if { (ac_try="$ac_compile"
16454
case "(($ac_try" in
16455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456
  *) ac_try_echo=$ac_try;;
16457
esac
16458
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16459
$as_echo "$ac_try_echo") >&5
16460
  (eval "$ac_compile") 2>conftest.er1
16461 131 jeremybenn
  ac_status=$?
16462
  grep -v '^ *+' conftest.er1 >conftest.err
16463
  rm -f conftest.er1
16464
  cat conftest.err >&5
16465 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466
  (exit $ac_status); } && {
16467
         test -z "$ac_c_werror_flag" ||
16468
         test ! -s conftest.err
16469
       } && test -s conftest.$ac_objext; then
16470 131 jeremybenn
  ac_cv_have_decl_malloc=yes
16471
else
16472 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16473 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16474
 
16475 213 jeremybenn
        ac_cv_have_decl_malloc=no
16476 131 jeremybenn
fi
16477 213 jeremybenn
 
16478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 131 jeremybenn
fi
16480 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16481
$as_echo "$ac_cv_have_decl_malloc" >&6; }
16482
if test "x$ac_cv_have_decl_malloc" = x""yes; then
16483 131 jeremybenn
 
16484
cat >>confdefs.h <<_ACEOF
16485
#define HAVE_DECL_MALLOC 1
16486
_ACEOF
16487
 
16488
 
16489
else
16490
  cat >>confdefs.h <<_ACEOF
16491
#define HAVE_DECL_MALLOC 0
16492
_ACEOF
16493
 
16494
 
16495
fi
16496 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16497
$as_echo_n "checking whether realloc is declared... " >&6; }
16498 131 jeremybenn
if test "${ac_cv_have_decl_realloc+set}" = set; then
16499 213 jeremybenn
  $as_echo_n "(cached) " >&6
16500 131 jeremybenn
else
16501
  cat >conftest.$ac_ext <<_ACEOF
16502
/* confdefs.h.  */
16503
_ACEOF
16504
cat confdefs.h >>conftest.$ac_ext
16505
cat >>conftest.$ac_ext <<_ACEOF
16506
/* end confdefs.h.  */
16507
$ac_includes_default
16508
int
16509
main ()
16510
{
16511
#ifndef realloc
16512 213 jeremybenn
  (void) realloc;
16513 131 jeremybenn
#endif
16514
 
16515
  ;
16516
  return 0;
16517
}
16518
_ACEOF
16519
rm -f conftest.$ac_objext
16520 213 jeremybenn
if { (ac_try="$ac_compile"
16521
case "(($ac_try" in
16522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523
  *) ac_try_echo=$ac_try;;
16524
esac
16525
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526
$as_echo "$ac_try_echo") >&5
16527
  (eval "$ac_compile") 2>conftest.er1
16528 131 jeremybenn
  ac_status=$?
16529
  grep -v '^ *+' conftest.er1 >conftest.err
16530
  rm -f conftest.er1
16531
  cat conftest.err >&5
16532 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533
  (exit $ac_status); } && {
16534
         test -z "$ac_c_werror_flag" ||
16535
         test ! -s conftest.err
16536
       } && test -s conftest.$ac_objext; then
16537 131 jeremybenn
  ac_cv_have_decl_realloc=yes
16538
else
16539 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16540 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16541
 
16542 213 jeremybenn
        ac_cv_have_decl_realloc=no
16543 131 jeremybenn
fi
16544 213 jeremybenn
 
16545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 131 jeremybenn
fi
16547 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16548
$as_echo "$ac_cv_have_decl_realloc" >&6; }
16549
if test "x$ac_cv_have_decl_realloc" = x""yes; then
16550 131 jeremybenn
 
16551
cat >>confdefs.h <<_ACEOF
16552
#define HAVE_DECL_REALLOC 1
16553
_ACEOF
16554
 
16555
 
16556
else
16557
  cat >>confdefs.h <<_ACEOF
16558
#define HAVE_DECL_REALLOC 0
16559
_ACEOF
16560
 
16561
 
16562
fi
16563
 
16564
 
16565 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16566
$as_echo_n "checking whether strerror is declared... " >&6; }
16567 131 jeremybenn
if test "${ac_cv_have_decl_strerror+set}" = set; then
16568 213 jeremybenn
  $as_echo_n "(cached) " >&6
16569 131 jeremybenn
else
16570
  cat >conftest.$ac_ext <<_ACEOF
16571
/* confdefs.h.  */
16572
_ACEOF
16573
cat confdefs.h >>conftest.$ac_ext
16574
cat >>conftest.$ac_ext <<_ACEOF
16575
/* end confdefs.h.  */
16576
$ac_includes_default
16577
int
16578
main ()
16579
{
16580
#ifndef strerror
16581 213 jeremybenn
  (void) strerror;
16582 131 jeremybenn
#endif
16583
 
16584
  ;
16585
  return 0;
16586
}
16587
_ACEOF
16588
rm -f conftest.$ac_objext
16589 213 jeremybenn
if { (ac_try="$ac_compile"
16590
case "(($ac_try" in
16591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592
  *) ac_try_echo=$ac_try;;
16593
esac
16594
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16595
$as_echo "$ac_try_echo") >&5
16596
  (eval "$ac_compile") 2>conftest.er1
16597 131 jeremybenn
  ac_status=$?
16598
  grep -v '^ *+' conftest.er1 >conftest.err
16599
  rm -f conftest.er1
16600
  cat conftest.err >&5
16601 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602
  (exit $ac_status); } && {
16603
         test -z "$ac_c_werror_flag" ||
16604
         test ! -s conftest.err
16605
       } && test -s conftest.$ac_objext; then
16606 131 jeremybenn
  ac_cv_have_decl_strerror=yes
16607
else
16608 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16609 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16610
 
16611 213 jeremybenn
        ac_cv_have_decl_strerror=no
16612 131 jeremybenn
fi
16613 213 jeremybenn
 
16614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 131 jeremybenn
fi
16616 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16617
$as_echo "$ac_cv_have_decl_strerror" >&6; }
16618
if test "x$ac_cv_have_decl_strerror" = x""yes; then
16619 131 jeremybenn
 
16620
cat >>confdefs.h <<_ACEOF
16621
#define HAVE_DECL_STRERROR 1
16622
_ACEOF
16623
 
16624
 
16625
else
16626
  cat >>confdefs.h <<_ACEOF
16627
#define HAVE_DECL_STRERROR 0
16628
_ACEOF
16629
 
16630
 
16631
fi
16632 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16633
$as_echo_n "checking whether strstr is declared... " >&6; }
16634 131 jeremybenn
if test "${ac_cv_have_decl_strstr+set}" = set; then
16635 213 jeremybenn
  $as_echo_n "(cached) " >&6
16636 131 jeremybenn
else
16637
  cat >conftest.$ac_ext <<_ACEOF
16638
/* confdefs.h.  */
16639
_ACEOF
16640
cat confdefs.h >>conftest.$ac_ext
16641
cat >>conftest.$ac_ext <<_ACEOF
16642
/* end confdefs.h.  */
16643
$ac_includes_default
16644
int
16645
main ()
16646
{
16647
#ifndef strstr
16648 213 jeremybenn
  (void) strstr;
16649 131 jeremybenn
#endif
16650
 
16651
  ;
16652
  return 0;
16653
}
16654
_ACEOF
16655
rm -f conftest.$ac_objext
16656 213 jeremybenn
if { (ac_try="$ac_compile"
16657
case "(($ac_try" in
16658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659
  *) ac_try_echo=$ac_try;;
16660
esac
16661
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16662
$as_echo "$ac_try_echo") >&5
16663
  (eval "$ac_compile") 2>conftest.er1
16664 131 jeremybenn
  ac_status=$?
16665
  grep -v '^ *+' conftest.er1 >conftest.err
16666
  rm -f conftest.er1
16667
  cat conftest.err >&5
16668 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669
  (exit $ac_status); } && {
16670
         test -z "$ac_c_werror_flag" ||
16671
         test ! -s conftest.err
16672
       } && test -s conftest.$ac_objext; then
16673 131 jeremybenn
  ac_cv_have_decl_strstr=yes
16674
else
16675 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16676 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16677
 
16678 213 jeremybenn
        ac_cv_have_decl_strstr=no
16679 131 jeremybenn
fi
16680 213 jeremybenn
 
16681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 131 jeremybenn
fi
16683 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16684
$as_echo "$ac_cv_have_decl_strstr" >&6; }
16685
if test "x$ac_cv_have_decl_strstr" = x""yes; then
16686 131 jeremybenn
 
16687
cat >>confdefs.h <<_ACEOF
16688
#define HAVE_DECL_STRSTR 1
16689
_ACEOF
16690
 
16691
 
16692
else
16693
  cat >>confdefs.h <<_ACEOF
16694
#define HAVE_DECL_STRSTR 0
16695
_ACEOF
16696
 
16697
 
16698
fi
16699
 
16700
 
16701 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16702
$as_echo_n "checking whether getopt is declared... " >&6; }
16703 131 jeremybenn
if test "${ac_cv_have_decl_getopt+set}" = set; then
16704 213 jeremybenn
  $as_echo_n "(cached) " >&6
16705 131 jeremybenn
else
16706
  cat >conftest.$ac_ext <<_ACEOF
16707
/* confdefs.h.  */
16708
_ACEOF
16709
cat confdefs.h >>conftest.$ac_ext
16710
cat >>conftest.$ac_ext <<_ACEOF
16711
/* end confdefs.h.  */
16712
$ac_includes_default
16713
int
16714
main ()
16715
{
16716
#ifndef getopt
16717 213 jeremybenn
  (void) getopt;
16718 131 jeremybenn
#endif
16719
 
16720
  ;
16721
  return 0;
16722
}
16723
_ACEOF
16724
rm -f conftest.$ac_objext
16725 213 jeremybenn
if { (ac_try="$ac_compile"
16726
case "(($ac_try" in
16727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728
  *) ac_try_echo=$ac_try;;
16729
esac
16730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16731
$as_echo "$ac_try_echo") >&5
16732
  (eval "$ac_compile") 2>conftest.er1
16733 131 jeremybenn
  ac_status=$?
16734
  grep -v '^ *+' conftest.er1 >conftest.err
16735
  rm -f conftest.er1
16736
  cat conftest.err >&5
16737 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738
  (exit $ac_status); } && {
16739
         test -z "$ac_c_werror_flag" ||
16740
         test ! -s conftest.err
16741
       } && test -s conftest.$ac_objext; then
16742 131 jeremybenn
  ac_cv_have_decl_getopt=yes
16743
else
16744 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16745 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16746
 
16747 213 jeremybenn
        ac_cv_have_decl_getopt=no
16748 131 jeremybenn
fi
16749 213 jeremybenn
 
16750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 131 jeremybenn
fi
16752 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16753
$as_echo "$ac_cv_have_decl_getopt" >&6; }
16754
if test "x$ac_cv_have_decl_getopt" = x""yes; then
16755 131 jeremybenn
 
16756
cat >>confdefs.h <<_ACEOF
16757
#define HAVE_DECL_GETOPT 1
16758
_ACEOF
16759
 
16760
 
16761
else
16762
  cat >>confdefs.h <<_ACEOF
16763
#define HAVE_DECL_GETOPT 0
16764
_ACEOF
16765
 
16766
 
16767
fi
16768 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16769
$as_echo_n "checking whether snprintf is declared... " >&6; }
16770 131 jeremybenn
if test "${ac_cv_have_decl_snprintf+set}" = set; then
16771 213 jeremybenn
  $as_echo_n "(cached) " >&6
16772 131 jeremybenn
else
16773
  cat >conftest.$ac_ext <<_ACEOF
16774
/* confdefs.h.  */
16775
_ACEOF
16776
cat confdefs.h >>conftest.$ac_ext
16777
cat >>conftest.$ac_ext <<_ACEOF
16778
/* end confdefs.h.  */
16779
$ac_includes_default
16780
int
16781
main ()
16782
{
16783
#ifndef snprintf
16784 213 jeremybenn
  (void) snprintf;
16785 131 jeremybenn
#endif
16786
 
16787
  ;
16788
  return 0;
16789
}
16790
_ACEOF
16791
rm -f conftest.$ac_objext
16792 213 jeremybenn
if { (ac_try="$ac_compile"
16793
case "(($ac_try" in
16794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795
  *) ac_try_echo=$ac_try;;
16796
esac
16797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16798
$as_echo "$ac_try_echo") >&5
16799
  (eval "$ac_compile") 2>conftest.er1
16800 131 jeremybenn
  ac_status=$?
16801
  grep -v '^ *+' conftest.er1 >conftest.err
16802
  rm -f conftest.er1
16803
  cat conftest.err >&5
16804 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805
  (exit $ac_status); } && {
16806
         test -z "$ac_c_werror_flag" ||
16807
         test ! -s conftest.err
16808
       } && test -s conftest.$ac_objext; then
16809 131 jeremybenn
  ac_cv_have_decl_snprintf=yes
16810
else
16811 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16812 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16813
 
16814 213 jeremybenn
        ac_cv_have_decl_snprintf=no
16815 131 jeremybenn
fi
16816 213 jeremybenn
 
16817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 131 jeremybenn
fi
16819 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16820
$as_echo "$ac_cv_have_decl_snprintf" >&6; }
16821
if test "x$ac_cv_have_decl_snprintf" = x""yes; then
16822 131 jeremybenn
 
16823
cat >>confdefs.h <<_ACEOF
16824
#define HAVE_DECL_SNPRINTF 1
16825
_ACEOF
16826
 
16827
 
16828
else
16829
  cat >>confdefs.h <<_ACEOF
16830
#define HAVE_DECL_SNPRINTF 0
16831
_ACEOF
16832
 
16833
 
16834
fi
16835 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16836
$as_echo_n "checking whether vsnprintf is declared... " >&6; }
16837 131 jeremybenn
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16838 213 jeremybenn
  $as_echo_n "(cached) " >&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
$ac_includes_default
16847
int
16848
main ()
16849
{
16850
#ifndef vsnprintf
16851 213 jeremybenn
  (void) vsnprintf;
16852 131 jeremybenn
#endif
16853
 
16854
  ;
16855
  return 0;
16856
}
16857
_ACEOF
16858
rm -f conftest.$ac_objext
16859 213 jeremybenn
if { (ac_try="$ac_compile"
16860
case "(($ac_try" in
16861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862
  *) ac_try_echo=$ac_try;;
16863
esac
16864
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16865
$as_echo "$ac_try_echo") >&5
16866
  (eval "$ac_compile") 2>conftest.er1
16867 131 jeremybenn
  ac_status=$?
16868
  grep -v '^ *+' conftest.er1 >conftest.err
16869
  rm -f conftest.er1
16870
  cat conftest.err >&5
16871 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872
  (exit $ac_status); } && {
16873
         test -z "$ac_c_werror_flag" ||
16874
         test ! -s conftest.err
16875
       } && test -s conftest.$ac_objext; then
16876 131 jeremybenn
  ac_cv_have_decl_vsnprintf=yes
16877
else
16878 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16879 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16880
 
16881 213 jeremybenn
        ac_cv_have_decl_vsnprintf=no
16882 131 jeremybenn
fi
16883 213 jeremybenn
 
16884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 131 jeremybenn
fi
16886 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16887
$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
16888
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
16889 131 jeremybenn
 
16890
cat >>confdefs.h <<_ACEOF
16891
#define HAVE_DECL_VSNPRINTF 1
16892
_ACEOF
16893
 
16894
 
16895
else
16896
  cat >>confdefs.h <<_ACEOF
16897
#define HAVE_DECL_VSNPRINTF 0
16898
_ACEOF
16899
 
16900
 
16901
fi
16902
 
16903
 
16904
 
16905
# ----------------------- #
16906
# Checks for structures.  #
16907
# ----------------------- #
16908
 
16909 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16910
$as_echo_n "checking for struct stat.st_blocks... " >&6; }
16911 131 jeremybenn
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16912 213 jeremybenn
  $as_echo_n "(cached) " >&6
16913 131 jeremybenn
else
16914
  cat >conftest.$ac_ext <<_ACEOF
16915
/* confdefs.h.  */
16916
_ACEOF
16917
cat confdefs.h >>conftest.$ac_ext
16918
cat >>conftest.$ac_ext <<_ACEOF
16919
/* end confdefs.h.  */
16920
$ac_includes_default
16921
int
16922
main ()
16923
{
16924
static struct stat ac_aggr;
16925
if (ac_aggr.st_blocks)
16926
return 0;
16927
  ;
16928
  return 0;
16929
}
16930
_ACEOF
16931
rm -f conftest.$ac_objext
16932 213 jeremybenn
if { (ac_try="$ac_compile"
16933
case "(($ac_try" in
16934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935
  *) ac_try_echo=$ac_try;;
16936
esac
16937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16938
$as_echo "$ac_try_echo") >&5
16939
  (eval "$ac_compile") 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 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945
  (exit $ac_status); } && {
16946
         test -z "$ac_c_werror_flag" ||
16947
         test ! -s conftest.err
16948
       } && test -s conftest.$ac_objext; then
16949 131 jeremybenn
  ac_cv_member_struct_stat_st_blocks=yes
16950
else
16951 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16952 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16953
 
16954 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
16955 131 jeremybenn
/* confdefs.h.  */
16956
_ACEOF
16957
cat confdefs.h >>conftest.$ac_ext
16958
cat >>conftest.$ac_ext <<_ACEOF
16959
/* end confdefs.h.  */
16960
$ac_includes_default
16961
int
16962
main ()
16963
{
16964
static struct stat ac_aggr;
16965
if (sizeof ac_aggr.st_blocks)
16966
return 0;
16967
  ;
16968
  return 0;
16969
}
16970
_ACEOF
16971
rm -f conftest.$ac_objext
16972 213 jeremybenn
if { (ac_try="$ac_compile"
16973
case "(($ac_try" in
16974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975
  *) ac_try_echo=$ac_try;;
16976
esac
16977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16978
$as_echo "$ac_try_echo") >&5
16979
  (eval "$ac_compile") 2>conftest.er1
16980 131 jeremybenn
  ac_status=$?
16981
  grep -v '^ *+' conftest.er1 >conftest.err
16982
  rm -f conftest.er1
16983
  cat conftest.err >&5
16984 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985
  (exit $ac_status); } && {
16986
         test -z "$ac_c_werror_flag" ||
16987
         test ! -s conftest.err
16988
       } && test -s conftest.$ac_objext; then
16989 131 jeremybenn
  ac_cv_member_struct_stat_st_blocks=yes
16990
else
16991 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16992 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16993
 
16994 213 jeremybenn
        ac_cv_member_struct_stat_st_blocks=no
16995 131 jeremybenn
fi
16996 213 jeremybenn
 
16997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998 131 jeremybenn
fi
16999 213 jeremybenn
 
17000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 131 jeremybenn
fi
17002 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17003
$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
17004
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
17005 131 jeremybenn
 
17006
cat >>confdefs.h <<_ACEOF
17007
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17008
_ACEOF
17009
 
17010
 
17011
fi
17012
 
17013 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17014
$as_echo_n "checking for struct stat.st_blksize... " >&6; }
17015 131 jeremybenn
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17016 213 jeremybenn
  $as_echo_n "(cached) " >&6
17017 131 jeremybenn
else
17018
  cat >conftest.$ac_ext <<_ACEOF
17019
/* confdefs.h.  */
17020
_ACEOF
17021
cat confdefs.h >>conftest.$ac_ext
17022
cat >>conftest.$ac_ext <<_ACEOF
17023
/* end confdefs.h.  */
17024
$ac_includes_default
17025
int
17026
main ()
17027
{
17028
static struct stat ac_aggr;
17029
if (ac_aggr.st_blksize)
17030
return 0;
17031
  ;
17032
  return 0;
17033
}
17034
_ACEOF
17035
rm -f conftest.$ac_objext
17036 213 jeremybenn
if { (ac_try="$ac_compile"
17037
case "(($ac_try" in
17038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039
  *) ac_try_echo=$ac_try;;
17040
esac
17041
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042
$as_echo "$ac_try_echo") >&5
17043
  (eval "$ac_compile") 2>conftest.er1
17044 131 jeremybenn
  ac_status=$?
17045
  grep -v '^ *+' conftest.er1 >conftest.err
17046
  rm -f conftest.er1
17047
  cat conftest.err >&5
17048 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049
  (exit $ac_status); } && {
17050
         test -z "$ac_c_werror_flag" ||
17051
         test ! -s conftest.err
17052
       } && test -s conftest.$ac_objext; then
17053 131 jeremybenn
  ac_cv_member_struct_stat_st_blksize=yes
17054
else
17055 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17056 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17057
 
17058 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
17059 131 jeremybenn
/* confdefs.h.  */
17060
_ACEOF
17061
cat confdefs.h >>conftest.$ac_ext
17062
cat >>conftest.$ac_ext <<_ACEOF
17063
/* end confdefs.h.  */
17064
$ac_includes_default
17065
int
17066
main ()
17067
{
17068
static struct stat ac_aggr;
17069
if (sizeof ac_aggr.st_blksize)
17070
return 0;
17071
  ;
17072
  return 0;
17073
}
17074
_ACEOF
17075
rm -f conftest.$ac_objext
17076 213 jeremybenn
if { (ac_try="$ac_compile"
17077
case "(($ac_try" in
17078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079
  *) ac_try_echo=$ac_try;;
17080
esac
17081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17082
$as_echo "$ac_try_echo") >&5
17083
  (eval "$ac_compile") 2>conftest.er1
17084 131 jeremybenn
  ac_status=$?
17085
  grep -v '^ *+' conftest.er1 >conftest.err
17086
  rm -f conftest.er1
17087
  cat conftest.err >&5
17088 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089
  (exit $ac_status); } && {
17090
         test -z "$ac_c_werror_flag" ||
17091
         test ! -s conftest.err
17092
       } && test -s conftest.$ac_objext; then
17093 131 jeremybenn
  ac_cv_member_struct_stat_st_blksize=yes
17094
else
17095 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17096 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17097
 
17098 213 jeremybenn
        ac_cv_member_struct_stat_st_blksize=no
17099 131 jeremybenn
fi
17100 213 jeremybenn
 
17101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 131 jeremybenn
fi
17103 213 jeremybenn
 
17104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 131 jeremybenn
fi
17106 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17107
$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
17108
if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
17109 131 jeremybenn
 
17110
cat >>confdefs.h <<_ACEOF
17111
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17112
_ACEOF
17113
 
17114
 
17115
fi
17116
 
17117
 
17118
# ------------------ #
17119
# Checks for types.  #
17120
# ------------------ #
17121
 
17122 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17123
$as_echo_n "checking return type of signal handlers... " >&6; }
17124 131 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
17125 213 jeremybenn
  $as_echo_n "(cached) " >&6
17126 131 jeremybenn
else
17127
  cat >conftest.$ac_ext <<_ACEOF
17128
/* confdefs.h.  */
17129
_ACEOF
17130
cat confdefs.h >>conftest.$ac_ext
17131
cat >>conftest.$ac_ext <<_ACEOF
17132
/* end confdefs.h.  */
17133
#include 
17134
#include 
17135
 
17136
int
17137
main ()
17138
{
17139 213 jeremybenn
return *(signal (0, 0)) (0) == 1;
17140 131 jeremybenn
  ;
17141
  return 0;
17142
}
17143
_ACEOF
17144
rm -f conftest.$ac_objext
17145 213 jeremybenn
if { (ac_try="$ac_compile"
17146
case "(($ac_try" in
17147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148
  *) ac_try_echo=$ac_try;;
17149
esac
17150
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17151
$as_echo "$ac_try_echo") >&5
17152
  (eval "$ac_compile") 2>conftest.er1
17153 131 jeremybenn
  ac_status=$?
17154
  grep -v '^ *+' conftest.er1 >conftest.err
17155
  rm -f conftest.er1
17156
  cat conftest.err >&5
17157 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158
  (exit $ac_status); } && {
17159
         test -z "$ac_c_werror_flag" ||
17160
         test ! -s conftest.err
17161
       } && test -s conftest.$ac_objext; then
17162
  ac_cv_type_signal=int
17163 131 jeremybenn
else
17164 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17165 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17166
 
17167 213 jeremybenn
        ac_cv_type_signal=void
17168 131 jeremybenn
fi
17169 213 jeremybenn
 
17170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 131 jeremybenn
fi
17172 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17173
$as_echo "$ac_cv_type_signal" >&6; }
17174 131 jeremybenn
 
17175
cat >>confdefs.h <<_ACEOF
17176
#define RETSIGTYPE $ac_cv_type_signal
17177
_ACEOF
17178
 
17179
 
17180 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
17181
$as_echo_n "checking for socklen_t... " >&6; }
17182 131 jeremybenn
if test "${ac_cv_type_socklen_t+set}" = set; then
17183 213 jeremybenn
  $as_echo_n "(cached) " >&6
17184 131 jeremybenn
else
17185 213 jeremybenn
  ac_cv_type_socklen_t=no
17186
cat >conftest.$ac_ext <<_ACEOF
17187 131 jeremybenn
/* confdefs.h.  */
17188
_ACEOF
17189
cat confdefs.h >>conftest.$ac_ext
17190
cat >>conftest.$ac_ext <<_ACEOF
17191
/* end confdefs.h.  */
17192
#include 
17193
#include 
17194
 
17195
 
17196
int
17197
main ()
17198
{
17199
if (sizeof (socklen_t))
17200 213 jeremybenn
       return 0;
17201
  ;
17202 131 jeremybenn
  return 0;
17203 213 jeremybenn
}
17204
_ACEOF
17205
rm -f conftest.$ac_objext
17206
if { (ac_try="$ac_compile"
17207
case "(($ac_try" in
17208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209
  *) ac_try_echo=$ac_try;;
17210
esac
17211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212
$as_echo "$ac_try_echo") >&5
17213
  (eval "$ac_compile") 2>conftest.er1
17214
  ac_status=$?
17215
  grep -v '^ *+' conftest.er1 >conftest.err
17216
  rm -f conftest.er1
17217
  cat conftest.err >&5
17218
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219
  (exit $ac_status); } && {
17220
         test -z "$ac_c_werror_flag" ||
17221
         test ! -s conftest.err
17222
       } && test -s conftest.$ac_objext; then
17223
  cat >conftest.$ac_ext <<_ACEOF
17224
/* confdefs.h.  */
17225
_ACEOF
17226
cat confdefs.h >>conftest.$ac_ext
17227
cat >>conftest.$ac_ext <<_ACEOF
17228
/* end confdefs.h.  */
17229
#include 
17230
#include 
17231
 
17232
 
17233
int
17234
main ()
17235
{
17236
if (sizeof ((socklen_t)))
17237
          return 0;
17238 131 jeremybenn
  ;
17239
  return 0;
17240
}
17241
_ACEOF
17242
rm -f conftest.$ac_objext
17243 213 jeremybenn
if { (ac_try="$ac_compile"
17244
case "(($ac_try" in
17245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246
  *) ac_try_echo=$ac_try;;
17247
esac
17248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17249
$as_echo "$ac_try_echo") >&5
17250
  (eval "$ac_compile") 2>conftest.er1
17251 131 jeremybenn
  ac_status=$?
17252
  grep -v '^ *+' conftest.er1 >conftest.err
17253
  rm -f conftest.er1
17254
  cat conftest.err >&5
17255 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256
  (exit $ac_status); } && {
17257
         test -z "$ac_c_werror_flag" ||
17258
         test ! -s conftest.err
17259
       } && test -s conftest.$ac_objext; then
17260
  :
17261 131 jeremybenn
else
17262 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17263 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17264
 
17265 213 jeremybenn
        ac_cv_type_socklen_t=yes
17266 131 jeremybenn
fi
17267 213 jeremybenn
 
17268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17269
else
17270
  $as_echo "$as_me: failed program was:" >&5
17271
sed 's/^/| /' conftest.$ac_ext >&5
17272
 
17273
 
17274 131 jeremybenn
fi
17275
 
17276 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277
fi
17278
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17279
$as_echo "$ac_cv_type_socklen_t" >&6; }
17280
if test "x$ac_cv_type_socklen_t" = x""yes; then
17281
 
17282 131 jeremybenn
cat >>confdefs.h <<_ACEOF
17283
#define HAVE_SOCKLEN_T 1
17284
_ACEOF
17285
 
17286
 
17287
fi
17288
 
17289 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17290
$as_echo_n "checking for uintptr_t... " >&6; }
17291 131 jeremybenn
if test "${ac_cv_type_uintptr_t+set}" = set; then
17292 213 jeremybenn
  $as_echo_n "(cached) " >&6
17293 131 jeremybenn
else
17294 213 jeremybenn
  ac_cv_type_uintptr_t=no
17295
cat >conftest.$ac_ext <<_ACEOF
17296 131 jeremybenn
/* confdefs.h.  */
17297
_ACEOF
17298
cat confdefs.h >>conftest.$ac_ext
17299
cat >>conftest.$ac_ext <<_ACEOF
17300
/* end confdefs.h.  */
17301
#include 
17302
 
17303
int
17304
main ()
17305
{
17306
if (sizeof (uintptr_t))
17307 213 jeremybenn
       return 0;
17308
  ;
17309 131 jeremybenn
  return 0;
17310 213 jeremybenn
}
17311
_ACEOF
17312
rm -f conftest.$ac_objext
17313
if { (ac_try="$ac_compile"
17314
case "(($ac_try" in
17315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316
  *) ac_try_echo=$ac_try;;
17317
esac
17318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319
$as_echo "$ac_try_echo") >&5
17320
  (eval "$ac_compile") 2>conftest.er1
17321
  ac_status=$?
17322
  grep -v '^ *+' conftest.er1 >conftest.err
17323
  rm -f conftest.er1
17324
  cat conftest.err >&5
17325
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326
  (exit $ac_status); } && {
17327
         test -z "$ac_c_werror_flag" ||
17328
         test ! -s conftest.err
17329
       } && test -s conftest.$ac_objext; then
17330
  cat >conftest.$ac_ext <<_ACEOF
17331
/* confdefs.h.  */
17332
_ACEOF
17333
cat confdefs.h >>conftest.$ac_ext
17334
cat >>conftest.$ac_ext <<_ACEOF
17335
/* end confdefs.h.  */
17336
#include 
17337
 
17338
int
17339
main ()
17340
{
17341
if (sizeof ((uintptr_t)))
17342
          return 0;
17343 131 jeremybenn
  ;
17344
  return 0;
17345
}
17346
_ACEOF
17347
rm -f conftest.$ac_objext
17348 213 jeremybenn
if { (ac_try="$ac_compile"
17349
case "(($ac_try" in
17350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351
  *) ac_try_echo=$ac_try;;
17352
esac
17353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17354
$as_echo "$ac_try_echo") >&5
17355
  (eval "$ac_compile") 2>conftest.er1
17356 131 jeremybenn
  ac_status=$?
17357
  grep -v '^ *+' conftest.er1 >conftest.err
17358
  rm -f conftest.er1
17359
  cat conftest.err >&5
17360 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361
  (exit $ac_status); } && {
17362
         test -z "$ac_c_werror_flag" ||
17363
         test ! -s conftest.err
17364
       } && test -s conftest.$ac_objext; then
17365
  :
17366 131 jeremybenn
else
17367 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17368 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17369
 
17370 213 jeremybenn
        ac_cv_type_uintptr_t=yes
17371 131 jeremybenn
fi
17372 213 jeremybenn
 
17373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374
else
17375
  $as_echo "$as_me: failed program was:" >&5
17376
sed 's/^/| /' conftest.$ac_ext >&5
17377
 
17378
 
17379 131 jeremybenn
fi
17380
 
17381 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382
fi
17383
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17384
$as_echo "$ac_cv_type_uintptr_t" >&6; }
17385
if test "x$ac_cv_type_uintptr_t" = x""yes; then
17386
 
17387 131 jeremybenn
cat >>confdefs.h <<_ACEOF
17388
#define HAVE_UINTPTR_T 1
17389
_ACEOF
17390
 
17391
 
17392
fi
17393
 
17394
 
17395
# ------------------------------------- #
17396
# Checks for compiler characteristics.  #
17397
# ------------------------------------- #
17398
 
17399 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17400
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17401 131 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
17402 213 jeremybenn
  $as_echo_n "(cached) " >&6
17403 131 jeremybenn
else
17404
  cat >conftest.$ac_ext <<_ACEOF
17405
/* confdefs.h.  */
17406
_ACEOF
17407
cat confdefs.h >>conftest.$ac_ext
17408
cat >>conftest.$ac_ext <<_ACEOF
17409
/* end confdefs.h.  */
17410
 
17411
int
17412
main ()
17413
{
17414
/* FIXME: Include the comments suggested by Paul. */
17415
#ifndef __cplusplus
17416
  /* Ultrix mips cc rejects this.  */
17417
  typedef int charset[2];
17418 213 jeremybenn
  const charset cs;
17419 131 jeremybenn
  /* SunOS 4.1.1 cc rejects this.  */
17420 213 jeremybenn
  char const *const *pcpcc;
17421
  char **ppc;
17422 131 jeremybenn
  /* NEC SVR4.0.2 mips cc rejects this.  */
17423
  struct point {int x, y;};
17424
  static struct point const zero = {0,0};
17425
  /* AIX XL C 1.02.0.0 rejects this.
17426
     It does not let you subtract one const X* pointer from another in
17427
     an arm of an if-expression whose if-part is not a constant
17428
     expression */
17429
  const char *g = "string";
17430 213 jeremybenn
  pcpcc = &g + (g ? g-g : 0);
17431 131 jeremybenn
  /* HPUX 7.0 cc rejects these. */
17432 213 jeremybenn
  ++pcpcc;
17433
  ppc = (char**) pcpcc;
17434
  pcpcc = (char const *const *) ppc;
17435 131 jeremybenn
  { /* SCO 3.2v4 cc rejects this.  */
17436
    char *t;
17437
    char const *s = 0 ? (char *) 0 : (char const *) 0;
17438
 
17439
    *t++ = 0;
17440 213 jeremybenn
    if (s) return 0;
17441 131 jeremybenn
  }
17442
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17443
    int x[] = {25, 17};
17444
    const int *foo = &x[0];
17445
    ++foo;
17446
  }
17447
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17448
    typedef const int *iptr;
17449
    iptr p = 0;
17450
    ++p;
17451
  }
17452
  { /* AIX XL C 1.02.0.0 rejects this saying
17453
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17454
    struct s { int j; const int *ap[3]; };
17455
    struct s *b; b->j = 5;
17456
  }
17457
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17458
    const int foo = 10;
17459 213 jeremybenn
    if (!foo) return 0;
17460 131 jeremybenn
  }
17461 213 jeremybenn
  return !cs[0] && !zero.x;
17462 131 jeremybenn
#endif
17463
 
17464
  ;
17465
  return 0;
17466
}
17467
_ACEOF
17468
rm -f conftest.$ac_objext
17469 213 jeremybenn
if { (ac_try="$ac_compile"
17470
case "(($ac_try" in
17471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472
  *) ac_try_echo=$ac_try;;
17473
esac
17474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17475
$as_echo "$ac_try_echo") >&5
17476
  (eval "$ac_compile") 2>conftest.er1
17477 131 jeremybenn
  ac_status=$?
17478
  grep -v '^ *+' conftest.er1 >conftest.err
17479
  rm -f conftest.er1
17480
  cat conftest.err >&5
17481 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
  (exit $ac_status); } && {
17483
         test -z "$ac_c_werror_flag" ||
17484
         test ! -s conftest.err
17485
       } && test -s conftest.$ac_objext; then
17486 131 jeremybenn
  ac_cv_c_const=yes
17487
else
17488 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17489 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17490
 
17491 213 jeremybenn
        ac_cv_c_const=no
17492 131 jeremybenn
fi
17493 213 jeremybenn
 
17494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495 131 jeremybenn
fi
17496 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17497
$as_echo "$ac_cv_c_const" >&6; }
17498 131 jeremybenn
if test $ac_cv_c_const = no; then
17499
 
17500
cat >>confdefs.h <<\_ACEOF
17501 213 jeremybenn
#define const /**/
17502 131 jeremybenn
_ACEOF
17503
 
17504
fi
17505
 
17506 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
17507
$as_echo_n "checking for inline... " >&6; }
17508 131 jeremybenn
if test "${ac_cv_c_inline+set}" = set; then
17509 213 jeremybenn
  $as_echo_n "(cached) " >&6
17510 131 jeremybenn
else
17511
  ac_cv_c_inline=no
17512
for ac_kw in inline __inline__ __inline; do
17513
  cat >conftest.$ac_ext <<_ACEOF
17514
/* confdefs.h.  */
17515
_ACEOF
17516
cat confdefs.h >>conftest.$ac_ext
17517
cat >>conftest.$ac_ext <<_ACEOF
17518
/* end confdefs.h.  */
17519
#ifndef __cplusplus
17520
typedef int foo_t;
17521
static $ac_kw foo_t static_foo () {return 0; }
17522
$ac_kw foo_t foo () {return 0; }
17523
#endif
17524
 
17525
_ACEOF
17526
rm -f conftest.$ac_objext
17527 213 jeremybenn
if { (ac_try="$ac_compile"
17528
case "(($ac_try" in
17529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530
  *) ac_try_echo=$ac_try;;
17531
esac
17532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533
$as_echo "$ac_try_echo") >&5
17534
  (eval "$ac_compile") 2>conftest.er1
17535 131 jeremybenn
  ac_status=$?
17536
  grep -v '^ *+' conftest.er1 >conftest.err
17537
  rm -f conftest.er1
17538
  cat conftest.err >&5
17539 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540
  (exit $ac_status); } && {
17541
         test -z "$ac_c_werror_flag" ||
17542
         test ! -s conftest.err
17543
       } && test -s conftest.$ac_objext; then
17544
  ac_cv_c_inline=$ac_kw
17545 131 jeremybenn
else
17546 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17547 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17548
 
17549 213 jeremybenn
 
17550 131 jeremybenn
fi
17551 213 jeremybenn
 
17552
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553
  test "$ac_cv_c_inline" != no && break
17554 131 jeremybenn
done
17555
 
17556
fi
17557 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17558
$as_echo "$ac_cv_c_inline" >&6; }
17559 131 jeremybenn
 
17560
 
17561
case $ac_cv_c_inline in
17562
  inline | yes) ;;
17563
  *)
17564
    case $ac_cv_c_inline in
17565
      no) ac_val=;;
17566
      *) ac_val=$ac_cv_c_inline;;
17567
    esac
17568
    cat >>confdefs.h <<_ACEOF
17569
#ifndef __cplusplus
17570
#define inline $ac_val
17571
#endif
17572
_ACEOF
17573
    ;;
17574
esac
17575
 
17576 213 jeremybenn
 
17577
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17578
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17579 131 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
17580 213 jeremybenn
  $as_echo_n "(cached) " >&6
17581 131 jeremybenn
else
17582 213 jeremybenn
  ac_cv_c_bigendian=unknown
17583
    # See if we're dealing with a universal compiler.
17584
    cat >conftest.$ac_ext <<_ACEOF
17585 131 jeremybenn
/* confdefs.h.  */
17586
_ACEOF
17587
cat confdefs.h >>conftest.$ac_ext
17588
cat >>conftest.$ac_ext <<_ACEOF
17589
/* end confdefs.h.  */
17590 213 jeremybenn
#ifndef __APPLE_CC__
17591
               not a universal capable compiler
17592
             #endif
17593
             typedef int dummy;
17594
 
17595
_ACEOF
17596
rm -f conftest.$ac_objext
17597
if { (ac_try="$ac_compile"
17598
case "(($ac_try" in
17599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600
  *) ac_try_echo=$ac_try;;
17601
esac
17602
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17603
$as_echo "$ac_try_echo") >&5
17604
  (eval "$ac_compile") 2>conftest.er1
17605
  ac_status=$?
17606
  grep -v '^ *+' conftest.er1 >conftest.err
17607
  rm -f conftest.er1
17608
  cat conftest.err >&5
17609
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610
  (exit $ac_status); } && {
17611
         test -z "$ac_c_werror_flag" ||
17612
         test ! -s conftest.err
17613
       } && test -s conftest.$ac_objext; then
17614
 
17615
        # Check for potential -arch flags.  It is not universal unless
17616
        # there are some -arch flags.  Note that *ppc* also matches
17617
        # ppc64.  This check is also rather less than ideal.
17618
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
17619
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
17620
        esac
17621
else
17622
  $as_echo "$as_me: failed program was:" >&5
17623
sed 's/^/| /' conftest.$ac_ext >&5
17624
 
17625
 
17626
fi
17627
 
17628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629
    if test $ac_cv_c_bigendian = unknown; then
17630
      # See if sys/param.h defines the BYTE_ORDER macro.
17631
      cat >conftest.$ac_ext <<_ACEOF
17632
/* confdefs.h.  */
17633
_ACEOF
17634
cat confdefs.h >>conftest.$ac_ext
17635
cat >>conftest.$ac_ext <<_ACEOF
17636
/* end confdefs.h.  */
17637 131 jeremybenn
#include 
17638 213 jeremybenn
             #include 
17639 131 jeremybenn
 
17640
int
17641
main ()
17642
{
17643 213 jeremybenn
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17644
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17645
                     && LITTLE_ENDIAN)
17646
              bogus endian macros
17647
             #endif
17648 131 jeremybenn
 
17649
  ;
17650
  return 0;
17651
}
17652
_ACEOF
17653
rm -f conftest.$ac_objext
17654 213 jeremybenn
if { (ac_try="$ac_compile"
17655
case "(($ac_try" in
17656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657
  *) ac_try_echo=$ac_try;;
17658
esac
17659
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17660
$as_echo "$ac_try_echo") >&5
17661
  (eval "$ac_compile") 2>conftest.er1
17662 131 jeremybenn
  ac_status=$?
17663
  grep -v '^ *+' conftest.er1 >conftest.err
17664
  rm -f conftest.er1
17665
  cat conftest.err >&5
17666 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667
  (exit $ac_status); } && {
17668
         test -z "$ac_c_werror_flag" ||
17669
         test ! -s conftest.err
17670
       } && test -s conftest.$ac_objext; then
17671 131 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
17672 213 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
17673 131 jeremybenn
/* confdefs.h.  */
17674
_ACEOF
17675
cat confdefs.h >>conftest.$ac_ext
17676
cat >>conftest.$ac_ext <<_ACEOF
17677
/* end confdefs.h.  */
17678
#include 
17679 213 jeremybenn
                #include 
17680 131 jeremybenn
 
17681
int
17682
main ()
17683
{
17684
#if BYTE_ORDER != BIG_ENDIAN
17685 213 jeremybenn
                 not big endian
17686
                #endif
17687 131 jeremybenn
 
17688
  ;
17689
  return 0;
17690
}
17691
_ACEOF
17692
rm -f conftest.$ac_objext
17693 213 jeremybenn
if { (ac_try="$ac_compile"
17694
case "(($ac_try" in
17695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696
  *) ac_try_echo=$ac_try;;
17697
esac
17698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17699
$as_echo "$ac_try_echo") >&5
17700
  (eval "$ac_compile") 2>conftest.er1
17701 131 jeremybenn
  ac_status=$?
17702
  grep -v '^ *+' conftest.er1 >conftest.err
17703
  rm -f conftest.er1
17704
  cat conftest.err >&5
17705 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706
  (exit $ac_status); } && {
17707
         test -z "$ac_c_werror_flag" ||
17708
         test ! -s conftest.err
17709
       } && test -s conftest.$ac_objext; then
17710 131 jeremybenn
  ac_cv_c_bigendian=yes
17711
else
17712 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17713 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17714
 
17715 213 jeremybenn
        ac_cv_c_bigendian=no
17716 131 jeremybenn
fi
17717 213 jeremybenn
 
17718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 131 jeremybenn
else
17720 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17721 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17722
 
17723 213 jeremybenn
 
17724
fi
17725
 
17726
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727
    fi
17728
    if test $ac_cv_c_bigendian = unknown; then
17729
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17730
      cat >conftest.$ac_ext <<_ACEOF
17731 131 jeremybenn
/* confdefs.h.  */
17732
_ACEOF
17733
cat confdefs.h >>conftest.$ac_ext
17734
cat >>conftest.$ac_ext <<_ACEOF
17735
/* end confdefs.h.  */
17736 213 jeremybenn
#include 
17737
 
17738 131 jeremybenn
int
17739
main ()
17740
{
17741 213 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17742
              bogus endian macros
17743
             #endif
17744
 
17745 131 jeremybenn
  ;
17746
  return 0;
17747
}
17748
_ACEOF
17749
rm -f conftest.$ac_objext
17750 213 jeremybenn
if { (ac_try="$ac_compile"
17751
case "(($ac_try" in
17752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753
  *) ac_try_echo=$ac_try;;
17754
esac
17755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17756
$as_echo "$ac_try_echo") >&5
17757
  (eval "$ac_compile") 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 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763
  (exit $ac_status); } && {
17764
         test -z "$ac_c_werror_flag" ||
17765
         test ! -s conftest.err
17766
       } && test -s conftest.$ac_objext; then
17767
  # It does; now see whether it defined to _BIG_ENDIAN or not.
17768
         cat >conftest.$ac_ext <<_ACEOF
17769
/* confdefs.h.  */
17770
_ACEOF
17771
cat confdefs.h >>conftest.$ac_ext
17772
cat >>conftest.$ac_ext <<_ACEOF
17773
/* end confdefs.h.  */
17774
#include 
17775
 
17776
int
17777
main ()
17778
{
17779
#ifndef _BIG_ENDIAN
17780
                 not big endian
17781
                #endif
17782
 
17783
  ;
17784
  return 0;
17785
}
17786
_ACEOF
17787
rm -f conftest.$ac_objext
17788
if { (ac_try="$ac_compile"
17789
case "(($ac_try" in
17790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791
  *) ac_try_echo=$ac_try;;
17792
esac
17793
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17794
$as_echo "$ac_try_echo") >&5
17795
  (eval "$ac_compile") 2>conftest.er1
17796 131 jeremybenn
  ac_status=$?
17797 213 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
17798
  rm -f conftest.er1
17799
  cat conftest.err >&5
17800
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801
  (exit $ac_status); } && {
17802
         test -z "$ac_c_werror_flag" ||
17803
         test ! -s conftest.err
17804
       } && test -s conftest.$ac_objext; then
17805 131 jeremybenn
  ac_cv_c_bigendian=yes
17806 213 jeremybenn
else
17807
  $as_echo "$as_me: failed program was:" >&5
17808
sed 's/^/| /' conftest.$ac_ext >&5
17809
 
17810
        ac_cv_c_bigendian=no
17811 131 jeremybenn
fi
17812 213 jeremybenn
 
17813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17814
else
17815
  $as_echo "$as_me: failed program was:" >&5
17816
sed 's/^/| /' conftest.$ac_ext >&5
17817
 
17818
 
17819 131 jeremybenn
fi
17820 213 jeremybenn
 
17821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17822
    fi
17823
    if test $ac_cv_c_bigendian = unknown; then
17824
      # Compile a test program.
17825
      if test "$cross_compiling" = yes; then
17826
  # Try to guess by grepping values from an object file.
17827
         cat >conftest.$ac_ext <<_ACEOF
17828
/* confdefs.h.  */
17829
_ACEOF
17830
cat confdefs.h >>conftest.$ac_ext
17831
cat >>conftest.$ac_ext <<_ACEOF
17832
/* end confdefs.h.  */
17833
short int ascii_mm[] =
17834
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17835
                short int ascii_ii[] =
17836
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17837
                int use_ascii (int i) {
17838
                  return ascii_mm[i] + ascii_ii[i];
17839
                }
17840
                short int ebcdic_ii[] =
17841
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17842
                short int ebcdic_mm[] =
17843
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17844
                int use_ebcdic (int i) {
17845
                  return ebcdic_mm[i] + ebcdic_ii[i];
17846
                }
17847
                extern int foo;
17848
 
17849
int
17850
main ()
17851
{
17852
return use_ascii (foo) == use_ebcdic (foo);
17853
  ;
17854
  return 0;
17855
}
17856
_ACEOF
17857
rm -f conftest.$ac_objext
17858
if { (ac_try="$ac_compile"
17859
case "(($ac_try" in
17860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861
  *) ac_try_echo=$ac_try;;
17862
esac
17863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17864
$as_echo "$ac_try_echo") >&5
17865
  (eval "$ac_compile") 2>conftest.er1
17866
  ac_status=$?
17867
  grep -v '^ *+' conftest.er1 >conftest.err
17868
  rm -f conftest.er1
17869
  cat conftest.err >&5
17870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871
  (exit $ac_status); } && {
17872
         test -z "$ac_c_werror_flag" ||
17873
         test ! -s conftest.err
17874
       } && test -s conftest.$ac_objext; then
17875
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17876
              ac_cv_c_bigendian=yes
17877
            fi
17878
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17879
              if test "$ac_cv_c_bigendian" = unknown; then
17880
                ac_cv_c_bigendian=no
17881
              else
17882
                # finding both strings is unlikely to happen, but who knows?
17883
                ac_cv_c_bigendian=unknown
17884
              fi
17885
            fi
17886 131 jeremybenn
else
17887 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17888 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17889
 
17890 213 jeremybenn
 
17891 131 jeremybenn
fi
17892 213 jeremybenn
 
17893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 131 jeremybenn
else
17895
  cat >conftest.$ac_ext <<_ACEOF
17896
/* confdefs.h.  */
17897
_ACEOF
17898
cat confdefs.h >>conftest.$ac_ext
17899
cat >>conftest.$ac_ext <<_ACEOF
17900
/* end confdefs.h.  */
17901 213 jeremybenn
$ac_includes_default
17902 131 jeremybenn
int
17903
main ()
17904
{
17905 213 jeremybenn
 
17906
             /* Are we little or big endian?  From Harbison&Steele.  */
17907
             union
17908
             {
17909
               long int l;
17910
               char c[sizeof (long int)];
17911
             } u;
17912
             u.l = 1;
17913
             return u.c[sizeof (long int) - 1] == 1;
17914
 
17915
  ;
17916
  return 0;
17917 131 jeremybenn
}
17918
_ACEOF
17919
rm -f conftest$ac_exeext
17920 213 jeremybenn
if { (ac_try="$ac_link"
17921
case "(($ac_try" in
17922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923
  *) ac_try_echo=$ac_try;;
17924
esac
17925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17926
$as_echo "$ac_try_echo") >&5
17927
  (eval "$ac_link") 2>&5
17928 131 jeremybenn
  ac_status=$?
17929 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17931 213 jeremybenn
  { (case "(($ac_try" in
17932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933
  *) ac_try_echo=$ac_try;;
17934
esac
17935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936
$as_echo "$ac_try_echo") >&5
17937
  (eval "$ac_try") 2>&5
17938 131 jeremybenn
  ac_status=$?
17939 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 131 jeremybenn
  (exit $ac_status); }; }; then
17941
  ac_cv_c_bigendian=no
17942
else
17943 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17944
$as_echo "$as_me: failed program was:" >&5
17945 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17946
 
17947
( exit $ac_status )
17948
ac_cv_c_bigendian=yes
17949
fi
17950 213 jeremybenn
rm -rf conftest.dSYM
17951
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17952 131 jeremybenn
fi
17953 213 jeremybenn
 
17954
 
17955
    fi
17956 131 jeremybenn
fi
17957 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17958
$as_echo "$ac_cv_c_bigendian" >&6; }
17959
 case $ac_cv_c_bigendian in #(
17960
   yes)
17961
     cat >>confdefs.h <<\_ACEOF
17962
#define WORDS_BIGENDIAN 1
17963
_ACEOF
17964
;; #(
17965
   no)
17966
      ;; #(
17967
   universal)
17968 131 jeremybenn
 
17969
cat >>confdefs.h <<\_ACEOF
17970 213 jeremybenn
#define AC_APPLE_UNIVERSAL_BUILD 1
17971 131 jeremybenn
_ACEOF
17972 213 jeremybenn
 
17973
     ;; #(
17974
   *)
17975
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
17976
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17977
$as_echo "$as_me: error: unknown endianness
17978
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17979 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
17980 213 jeremybenn
 esac
17981 131 jeremybenn
 
17982
 
17983
# ------------------------------ #
17984
# Checks for library functions.  #
17985
# ------------------------------ #
17986
 
17987
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17988
# for constant arguments.  Useless!
17989 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
17990
$as_echo_n "checking for working alloca.h... " >&6; }
17991 131 jeremybenn
if test "${ac_cv_working_alloca_h+set}" = set; then
17992 213 jeremybenn
  $as_echo_n "(cached) " >&6
17993 131 jeremybenn
else
17994
  cat >conftest.$ac_ext <<_ACEOF
17995
/* confdefs.h.  */
17996
_ACEOF
17997
cat confdefs.h >>conftest.$ac_ext
17998
cat >>conftest.$ac_ext <<_ACEOF
17999
/* end confdefs.h.  */
18000
#include 
18001
int
18002
main ()
18003
{
18004
char *p = (char *) alloca (2 * sizeof (int));
18005 213 jeremybenn
                          if (p) return 0;
18006 131 jeremybenn
  ;
18007
  return 0;
18008
}
18009
_ACEOF
18010
rm -f conftest.$ac_objext conftest$ac_exeext
18011 213 jeremybenn
if { (ac_try="$ac_link"
18012
case "(($ac_try" in
18013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014
  *) ac_try_echo=$ac_try;;
18015
esac
18016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18017
$as_echo "$ac_try_echo") >&5
18018
  (eval "$ac_link") 2>conftest.er1
18019 131 jeremybenn
  ac_status=$?
18020
  grep -v '^ *+' conftest.er1 >conftest.err
18021
  rm -f conftest.er1
18022
  cat conftest.err >&5
18023 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024
  (exit $ac_status); } && {
18025
         test -z "$ac_c_werror_flag" ||
18026
         test ! -s conftest.err
18027
       } && test -s conftest$ac_exeext && {
18028
         test "$cross_compiling" = yes ||
18029
         $as_test_x conftest$ac_exeext
18030
       }; then
18031 131 jeremybenn
  ac_cv_working_alloca_h=yes
18032
else
18033 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18034 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18035
 
18036 213 jeremybenn
        ac_cv_working_alloca_h=no
18037 131 jeremybenn
fi
18038 213 jeremybenn
 
18039
rm -rf conftest.dSYM
18040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18041 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18042
fi
18043 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18044
$as_echo "$ac_cv_working_alloca_h" >&6; }
18045 131 jeremybenn
if test $ac_cv_working_alloca_h = yes; then
18046
 
18047
cat >>confdefs.h <<\_ACEOF
18048
#define HAVE_ALLOCA_H 1
18049
_ACEOF
18050
 
18051
fi
18052
 
18053 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
18054
$as_echo_n "checking for alloca... " >&6; }
18055 131 jeremybenn
if test "${ac_cv_func_alloca_works+set}" = set; then
18056 213 jeremybenn
  $as_echo_n "(cached) " >&6
18057 131 jeremybenn
else
18058
  cat >conftest.$ac_ext <<_ACEOF
18059
/* confdefs.h.  */
18060
_ACEOF
18061
cat confdefs.h >>conftest.$ac_ext
18062
cat >>conftest.$ac_ext <<_ACEOF
18063
/* end confdefs.h.  */
18064
#ifdef __GNUC__
18065
# define alloca __builtin_alloca
18066
#else
18067
# ifdef _MSC_VER
18068
#  include 
18069
#  define alloca _alloca
18070
# else
18071 213 jeremybenn
#  ifdef HAVE_ALLOCA_H
18072 131 jeremybenn
#   include 
18073
#  else
18074
#   ifdef _AIX
18075
 #pragma alloca
18076
#   else
18077
#    ifndef alloca /* predefined by HP cc +Olibcalls */
18078
char *alloca ();
18079
#    endif
18080
#   endif
18081
#  endif
18082
# endif
18083
#endif
18084
 
18085
int
18086
main ()
18087
{
18088
char *p = (char *) alloca (1);
18089 213 jeremybenn
                                    if (p) return 0;
18090 131 jeremybenn
  ;
18091
  return 0;
18092
}
18093
_ACEOF
18094
rm -f conftest.$ac_objext conftest$ac_exeext
18095 213 jeremybenn
if { (ac_try="$ac_link"
18096
case "(($ac_try" in
18097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098
  *) ac_try_echo=$ac_try;;
18099
esac
18100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18101
$as_echo "$ac_try_echo") >&5
18102
  (eval "$ac_link") 2>conftest.er1
18103 131 jeremybenn
  ac_status=$?
18104
  grep -v '^ *+' conftest.er1 >conftest.err
18105
  rm -f conftest.er1
18106
  cat conftest.err >&5
18107 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108
  (exit $ac_status); } && {
18109
         test -z "$ac_c_werror_flag" ||
18110
         test ! -s conftest.err
18111
       } && test -s conftest$ac_exeext && {
18112
         test "$cross_compiling" = yes ||
18113
         $as_test_x conftest$ac_exeext
18114
       }; then
18115 131 jeremybenn
  ac_cv_func_alloca_works=yes
18116
else
18117 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18118 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18119
 
18120 213 jeremybenn
        ac_cv_func_alloca_works=no
18121 131 jeremybenn
fi
18122 213 jeremybenn
 
18123
rm -rf conftest.dSYM
18124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18125 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18126
fi
18127 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18128
$as_echo "$ac_cv_func_alloca_works" >&6; }
18129 131 jeremybenn
 
18130
if test $ac_cv_func_alloca_works = yes; then
18131
 
18132
cat >>confdefs.h <<\_ACEOF
18133
#define HAVE_ALLOCA 1
18134
_ACEOF
18135
 
18136
else
18137
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18138
# that cause trouble.  Some versions do not even contain alloca or
18139
# contain a buggy version.  If you still want to use their alloca,
18140
# use ar to extract alloca.o from them instead of compiling alloca.c.
18141
 
18142 213 jeremybenn
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18143 131 jeremybenn
 
18144
cat >>confdefs.h <<\_ACEOF
18145
#define C_ALLOCA 1
18146
_ACEOF
18147
 
18148
 
18149 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18150
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18151 131 jeremybenn
if test "${ac_cv_os_cray+set}" = set; then
18152 213 jeremybenn
  $as_echo_n "(cached) " >&6
18153 131 jeremybenn
else
18154
  cat >conftest.$ac_ext <<_ACEOF
18155
/* confdefs.h.  */
18156
_ACEOF
18157
cat confdefs.h >>conftest.$ac_ext
18158
cat >>conftest.$ac_ext <<_ACEOF
18159
/* end confdefs.h.  */
18160 213 jeremybenn
#if defined CRAY && ! defined CRAY2
18161 131 jeremybenn
webecray
18162
#else
18163
wenotbecray
18164
#endif
18165
 
18166
_ACEOF
18167
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18168
  $EGREP "webecray" >/dev/null 2>&1; then
18169
  ac_cv_os_cray=yes
18170
else
18171
  ac_cv_os_cray=no
18172
fi
18173
rm -f conftest*
18174
 
18175
fi
18176 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18177
$as_echo "$ac_cv_os_cray" >&6; }
18178 131 jeremybenn
if test $ac_cv_os_cray = yes; then
18179
  for ac_func in _getb67 GETB67 getb67; do
18180 213 jeremybenn
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18182
$as_echo_n "checking for $ac_func... " >&6; }
18183
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184
  $as_echo_n "(cached) " >&6
18185 131 jeremybenn
else
18186
  cat >conftest.$ac_ext <<_ACEOF
18187
/* confdefs.h.  */
18188
_ACEOF
18189
cat confdefs.h >>conftest.$ac_ext
18190
cat >>conftest.$ac_ext <<_ACEOF
18191
/* end confdefs.h.  */
18192
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18193
   For example, HP-UX 11i  declares gettimeofday.  */
18194
#define $ac_func innocuous_$ac_func
18195
 
18196
/* System header to define __stub macros and hopefully few prototypes,
18197
    which can conflict with char $ac_func (); below.
18198
    Prefer  to  if __STDC__ is defined, since
18199
     exists even on freestanding compilers.  */
18200
 
18201
#ifdef __STDC__
18202
# include 
18203
#else
18204
# include 
18205
#endif
18206
 
18207
#undef $ac_func
18208
 
18209 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
18210
   Use char because int might match the return type of a GCC
18211
   builtin and then its argument prototype would still apply.  */
18212 131 jeremybenn
#ifdef __cplusplus
18213
extern "C"
18214
#endif
18215
char $ac_func ();
18216
/* The GNU C library defines this for functions which it implements
18217
    to always fail with ENOSYS.  Some functions are actually named
18218
    something starting with __ and the normal name is an alias.  */
18219 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
18220 131 jeremybenn
choke me
18221
#endif
18222
 
18223
int
18224
main ()
18225
{
18226 213 jeremybenn
return $ac_func ();
18227 131 jeremybenn
  ;
18228
  return 0;
18229
}
18230
_ACEOF
18231
rm -f conftest.$ac_objext conftest$ac_exeext
18232 213 jeremybenn
if { (ac_try="$ac_link"
18233
case "(($ac_try" in
18234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235
  *) ac_try_echo=$ac_try;;
18236
esac
18237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18238
$as_echo "$ac_try_echo") >&5
18239
  (eval "$ac_link") 2>conftest.er1
18240 131 jeremybenn
  ac_status=$?
18241
  grep -v '^ *+' conftest.er1 >conftest.err
18242
  rm -f conftest.er1
18243
  cat conftest.err >&5
18244 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245
  (exit $ac_status); } && {
18246
         test -z "$ac_c_werror_flag" ||
18247
         test ! -s conftest.err
18248
       } && test -s conftest$ac_exeext && {
18249
         test "$cross_compiling" = yes ||
18250
         $as_test_x conftest$ac_exeext
18251
       }; then
18252 131 jeremybenn
  eval "$as_ac_var=yes"
18253
else
18254 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18255 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18256
 
18257 213 jeremybenn
        eval "$as_ac_var=no"
18258 131 jeremybenn
fi
18259 213 jeremybenn
 
18260
rm -rf conftest.dSYM
18261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18262 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18263
fi
18264 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
18265
                 $as_echo "$as_val"'`
18266
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18267
$as_echo "$ac_res" >&6; }
18268
as_val=`eval 'as_val=${'$as_ac_var'}
18269
                 $as_echo "$as_val"'`
18270
   if test "x$as_val" = x""yes; then
18271 131 jeremybenn
 
18272
cat >>confdefs.h <<_ACEOF
18273
#define CRAY_STACKSEG_END $ac_func
18274
_ACEOF
18275
 
18276
    break
18277
fi
18278
 
18279
  done
18280
fi
18281
 
18282 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18283
$as_echo_n "checking stack direction for C alloca... " >&6; }
18284 131 jeremybenn
if test "${ac_cv_c_stack_direction+set}" = set; then
18285 213 jeremybenn
  $as_echo_n "(cached) " >&6
18286 131 jeremybenn
else
18287
  if test "$cross_compiling" = yes; then
18288
  ac_cv_c_stack_direction=0
18289
else
18290
  cat >conftest.$ac_ext <<_ACEOF
18291
/* confdefs.h.  */
18292
_ACEOF
18293
cat confdefs.h >>conftest.$ac_ext
18294
cat >>conftest.$ac_ext <<_ACEOF
18295
/* end confdefs.h.  */
18296 213 jeremybenn
$ac_includes_default
18297 131 jeremybenn
int
18298
find_stack_direction ()
18299
{
18300
  static char *addr = 0;
18301
  auto char dummy;
18302
  if (addr == 0)
18303
    {
18304
      addr = &dummy;
18305
      return find_stack_direction ();
18306
    }
18307
  else
18308
    return (&dummy > addr) ? 1 : -1;
18309
}
18310
 
18311
int
18312
main ()
18313
{
18314 213 jeremybenn
  return find_stack_direction () < 0;
18315 131 jeremybenn
}
18316
_ACEOF
18317
rm -f conftest$ac_exeext
18318 213 jeremybenn
if { (ac_try="$ac_link"
18319
case "(($ac_try" in
18320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321
  *) ac_try_echo=$ac_try;;
18322
esac
18323
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18324
$as_echo "$ac_try_echo") >&5
18325
  (eval "$ac_link") 2>&5
18326 131 jeremybenn
  ac_status=$?
18327 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18329 213 jeremybenn
  { (case "(($ac_try" in
18330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331
  *) ac_try_echo=$ac_try;;
18332
esac
18333
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18334
$as_echo "$ac_try_echo") >&5
18335
  (eval "$ac_try") 2>&5
18336 131 jeremybenn
  ac_status=$?
18337 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 131 jeremybenn
  (exit $ac_status); }; }; then
18339
  ac_cv_c_stack_direction=1
18340
else
18341 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
18342
$as_echo "$as_me: failed program was:" >&5
18343 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18344
 
18345
( exit $ac_status )
18346
ac_cv_c_stack_direction=-1
18347
fi
18348 213 jeremybenn
rm -rf conftest.dSYM
18349
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18350 131 jeremybenn
fi
18351 213 jeremybenn
 
18352
 
18353 131 jeremybenn
fi
18354 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18355
$as_echo "$ac_cv_c_stack_direction" >&6; }
18356 131 jeremybenn
 
18357
cat >>confdefs.h <<_ACEOF
18358
#define STACK_DIRECTION $ac_cv_c_stack_direction
18359
_ACEOF
18360
 
18361
 
18362
fi
18363
 
18364
 
18365
 
18366
for ac_header in stdlib.h unistd.h
18367
do
18368 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18369
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18370
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18371
$as_echo_n "checking for $ac_header... " >&6; }
18372
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18373
  $as_echo_n "(cached) " >&6
18374 131 jeremybenn
fi
18375 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
18376
                 $as_echo "$as_val"'`
18377
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18378
$as_echo "$ac_res" >&6; }
18379 131 jeremybenn
else
18380
  # Is the header compilable?
18381 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18382
$as_echo_n "checking $ac_header usability... " >&6; }
18383 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
18384
/* confdefs.h.  */
18385
_ACEOF
18386
cat confdefs.h >>conftest.$ac_ext
18387
cat >>conftest.$ac_ext <<_ACEOF
18388
/* end confdefs.h.  */
18389
$ac_includes_default
18390
#include <$ac_header>
18391
_ACEOF
18392
rm -f conftest.$ac_objext
18393 213 jeremybenn
if { (ac_try="$ac_compile"
18394
case "(($ac_try" in
18395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396
  *) ac_try_echo=$ac_try;;
18397
esac
18398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18399
$as_echo "$ac_try_echo") >&5
18400
  (eval "$ac_compile") 2>conftest.er1
18401 131 jeremybenn
  ac_status=$?
18402
  grep -v '^ *+' conftest.er1 >conftest.err
18403
  rm -f conftest.er1
18404
  cat conftest.err >&5
18405 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406
  (exit $ac_status); } && {
18407
         test -z "$ac_c_werror_flag" ||
18408
         test ! -s conftest.err
18409
       } && test -s conftest.$ac_objext; then
18410 131 jeremybenn
  ac_header_compiler=yes
18411
else
18412 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18413 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18414
 
18415 213 jeremybenn
        ac_header_compiler=no
18416 131 jeremybenn
fi
18417
 
18418 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18420
$as_echo "$ac_header_compiler" >&6; }
18421
 
18422 131 jeremybenn
# Is the header present?
18423 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18424
$as_echo_n "checking $ac_header presence... " >&6; }
18425 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
18426
/* confdefs.h.  */
18427
_ACEOF
18428
cat confdefs.h >>conftest.$ac_ext
18429
cat >>conftest.$ac_ext <<_ACEOF
18430
/* end confdefs.h.  */
18431
#include <$ac_header>
18432
_ACEOF
18433 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
18434
case "(($ac_try" in
18435
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436
  *) ac_try_echo=$ac_try;;
18437
esac
18438
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439
$as_echo "$ac_try_echo") >&5
18440
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18441 131 jeremybenn
  ac_status=$?
18442
  grep -v '^ *+' conftest.er1 >conftest.err
18443
  rm -f conftest.er1
18444
  cat conftest.err >&5
18445 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446
  (exit $ac_status); } >/dev/null && {
18447
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18448
         test ! -s conftest.err
18449
       }; then
18450 131 jeremybenn
  ac_header_preproc=yes
18451
else
18452 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18453 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18454
 
18455
  ac_header_preproc=no
18456
fi
18457 213 jeremybenn
 
18458 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
18459 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18460
$as_echo "$ac_header_preproc" >&6; }
18461 131 jeremybenn
 
18462
# So?  What about this header?
18463
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18464
  yes:no: )
18465 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18466
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18467
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18468
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18469 131 jeremybenn
    ac_header_preproc=yes
18470
    ;;
18471
  no:yes:* )
18472 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18473
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18474
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18475
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18476
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18477
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18478
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18479
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18480
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18481
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18482
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18483
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18484
 
18485 131 jeremybenn
    ;;
18486
esac
18487 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18488
$as_echo_n "checking for $ac_header... " >&6; }
18489
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18490
  $as_echo_n "(cached) " >&6
18491 131 jeremybenn
else
18492
  eval "$as_ac_Header=\$ac_header_preproc"
18493
fi
18494 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
18495
                 $as_echo "$as_val"'`
18496
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18497
$as_echo "$ac_res" >&6; }
18498 131 jeremybenn
 
18499
fi
18500 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
18501
                 $as_echo "$as_val"'`
18502
   if test "x$as_val" = x""yes; then
18503 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18504 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18505 131 jeremybenn
_ACEOF
18506
 
18507
fi
18508
 
18509
done
18510
 
18511
 
18512
for ac_func in getpagesize
18513
do
18514 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18515
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18516
$as_echo_n "checking for $ac_func... " >&6; }
18517
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18518
  $as_echo_n "(cached) " >&6
18519 131 jeremybenn
else
18520
  cat >conftest.$ac_ext <<_ACEOF
18521
/* confdefs.h.  */
18522
_ACEOF
18523
cat confdefs.h >>conftest.$ac_ext
18524
cat >>conftest.$ac_ext <<_ACEOF
18525
/* end confdefs.h.  */
18526
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
18527
   For example, HP-UX 11i  declares gettimeofday.  */
18528
#define $ac_func innocuous_$ac_func
18529
 
18530
/* System header to define __stub macros and hopefully few prototypes,
18531
    which can conflict with char $ac_func (); below.
18532
    Prefer  to  if __STDC__ is defined, since
18533
     exists even on freestanding compilers.  */
18534
 
18535
#ifdef __STDC__
18536
# include 
18537
#else
18538
# include 
18539
#endif
18540
 
18541
#undef $ac_func
18542
 
18543 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
18544
   Use char because int might match the return type of a GCC
18545
   builtin and then its argument prototype would still apply.  */
18546 131 jeremybenn
#ifdef __cplusplus
18547
extern "C"
18548
#endif
18549
char $ac_func ();
18550
/* The GNU C library defines this for functions which it implements
18551
    to always fail with ENOSYS.  Some functions are actually named
18552
    something starting with __ and the normal name is an alias.  */
18553 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
18554 131 jeremybenn
choke me
18555
#endif
18556
 
18557
int
18558
main ()
18559
{
18560 213 jeremybenn
return $ac_func ();
18561 131 jeremybenn
  ;
18562
  return 0;
18563
}
18564
_ACEOF
18565
rm -f conftest.$ac_objext conftest$ac_exeext
18566 213 jeremybenn
if { (ac_try="$ac_link"
18567
case "(($ac_try" in
18568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569
  *) ac_try_echo=$ac_try;;
18570
esac
18571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18572
$as_echo "$ac_try_echo") >&5
18573
  (eval "$ac_link") 2>conftest.er1
18574 131 jeremybenn
  ac_status=$?
18575
  grep -v '^ *+' conftest.er1 >conftest.err
18576
  rm -f conftest.er1
18577
  cat conftest.err >&5
18578 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579
  (exit $ac_status); } && {
18580
         test -z "$ac_c_werror_flag" ||
18581
         test ! -s conftest.err
18582
       } && test -s conftest$ac_exeext && {
18583
         test "$cross_compiling" = yes ||
18584
         $as_test_x conftest$ac_exeext
18585
       }; then
18586 131 jeremybenn
  eval "$as_ac_var=yes"
18587
else
18588 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18589 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18590
 
18591 213 jeremybenn
        eval "$as_ac_var=no"
18592 131 jeremybenn
fi
18593 213 jeremybenn
 
18594
rm -rf conftest.dSYM
18595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
18597
fi
18598 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
18599
                 $as_echo "$as_val"'`
18600
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18601
$as_echo "$ac_res" >&6; }
18602
as_val=`eval 'as_val=${'$as_ac_var'}
18603
                 $as_echo "$as_val"'`
18604
   if test "x$as_val" = x""yes; then
18605 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
18606 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 131 jeremybenn
_ACEOF
18608
 
18609
fi
18610
done
18611
 
18612 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
18613
$as_echo_n "checking for working mmap... " >&6; }
18614 131 jeremybenn
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18615 213 jeremybenn
  $as_echo_n "(cached) " >&6
18616 131 jeremybenn
else
18617
  if test "$cross_compiling" = yes; then
18618
  ac_cv_func_mmap_fixed_mapped=no
18619
else
18620
  cat >conftest.$ac_ext <<_ACEOF
18621
/* confdefs.h.  */
18622
_ACEOF
18623
cat confdefs.h >>conftest.$ac_ext
18624
cat >>conftest.$ac_ext <<_ACEOF
18625
/* end confdefs.h.  */
18626
$ac_includes_default
18627
/* malloc might have been renamed as rpl_malloc. */
18628
#undef malloc
18629
 
18630
/* Thanks to Mike Haertel and Jim Avera for this test.
18631
   Here is a matrix of mmap possibilities:
18632
        mmap private not fixed
18633
        mmap private fixed at somewhere currently unmapped
18634
        mmap private fixed at somewhere already mapped
18635
        mmap shared not fixed
18636
        mmap shared fixed at somewhere currently unmapped
18637
        mmap shared fixed at somewhere already mapped
18638
   For private mappings, we should verify that changes cannot be read()
18639
   back from the file, nor mmap's back from the file at a different
18640
   address.  (There have been systems where private was not correctly
18641
   implemented like the infamous i386 svr4.0, and systems where the
18642
   VM page cache was not coherent with the file system buffer cache
18643
   like early versions of FreeBSD and possibly contemporary NetBSD.)
18644
   For shared mappings, we should conversely verify that changes get
18645
   propagated back to all the places they're supposed to be.
18646
 
18647
   Grep wants private fixed already mapped.
18648
   The main things grep needs to know about mmap are:
18649
   * does it exist and is it safe to write into the mmap'd area
18650
   * how to use it (BSD variants)  */
18651
 
18652
#include 
18653
#include 
18654
 
18655 213 jeremybenn
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18656 131 jeremybenn
char *malloc ();
18657
#endif
18658
 
18659
/* This mess was copied from the GNU getpagesize.h.  */
18660 213 jeremybenn
#ifndef HAVE_GETPAGESIZE
18661 131 jeremybenn
/* Assume that all systems that can run configure have sys/param.h.  */
18662 213 jeremybenn
# ifndef HAVE_SYS_PARAM_H
18663 131 jeremybenn
#  define HAVE_SYS_PARAM_H 1
18664
# endif
18665
 
18666
# ifdef _SC_PAGESIZE
18667
#  define getpagesize() sysconf(_SC_PAGESIZE)
18668
# else /* no _SC_PAGESIZE */
18669 213 jeremybenn
#  ifdef HAVE_SYS_PARAM_H
18670 131 jeremybenn
#   include 
18671
#   ifdef EXEC_PAGESIZE
18672
#    define getpagesize() EXEC_PAGESIZE
18673
#   else /* no EXEC_PAGESIZE */
18674
#    ifdef NBPG
18675
#     define getpagesize() NBPG * CLSIZE
18676
#     ifndef CLSIZE
18677
#      define CLSIZE 1
18678
#     endif /* no CLSIZE */
18679
#    else /* no NBPG */
18680
#     ifdef NBPC
18681
#      define getpagesize() NBPC
18682
#     else /* no NBPC */
18683
#      ifdef PAGESIZE
18684
#       define getpagesize() PAGESIZE
18685
#      endif /* PAGESIZE */
18686
#     endif /* no NBPC */
18687
#    endif /* no NBPG */
18688
#   endif /* no EXEC_PAGESIZE */
18689
#  else /* no HAVE_SYS_PARAM_H */
18690
#   define getpagesize() 8192   /* punt totally */
18691
#  endif /* no HAVE_SYS_PARAM_H */
18692
# endif /* no _SC_PAGESIZE */
18693
 
18694
#endif /* no HAVE_GETPAGESIZE */
18695
 
18696
int
18697
main ()
18698
{
18699
  char *data, *data2, *data3;
18700
  int i, pagesize;
18701
  int fd;
18702
 
18703
  pagesize = getpagesize ();
18704
 
18705
  /* First, make a file with some known garbage in it. */
18706
  data = (char *) malloc (pagesize);
18707
  if (!data)
18708 213 jeremybenn
    return 1;
18709 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
18710
    *(data + i) = rand ();
18711
  umask (0);
18712
  fd = creat ("conftest.mmap", 0600);
18713
  if (fd < 0)
18714 213 jeremybenn
    return 1;
18715 131 jeremybenn
  if (write (fd, data, pagesize) != pagesize)
18716 213 jeremybenn
    return 1;
18717 131 jeremybenn
  close (fd);
18718
 
18719
  /* Next, try to mmap the file at a fixed address which already has
18720
     something else allocated at it.  If we can, also make sure that
18721
     we see the same garbage.  */
18722
  fd = open ("conftest.mmap", O_RDWR);
18723
  if (fd < 0)
18724 213 jeremybenn
    return 1;
18725 131 jeremybenn
  data2 = (char *) malloc (2 * pagesize);
18726
  if (!data2)
18727 213 jeremybenn
    return 1;
18728
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18729 131 jeremybenn
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18730
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
18731 213 jeremybenn
    return 1;
18732 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
18733
    if (*(data + i) != *(data2 + i))
18734 213 jeremybenn
      return 1;
18735 131 jeremybenn
 
18736
  /* Finally, make sure that changes to the mapped area do not
18737
     percolate back to the file as seen by read().  (This is a bug on
18738
     some variants of i386 svr4.0.)  */
18739
  for (i = 0; i < pagesize; ++i)
18740
    *(data2 + i) = *(data2 + i) + 1;
18741
  data3 = (char *) malloc (pagesize);
18742
  if (!data3)
18743 213 jeremybenn
    return 1;
18744 131 jeremybenn
  if (read (fd, data3, pagesize) != pagesize)
18745 213 jeremybenn
    return 1;
18746 131 jeremybenn
  for (i = 0; i < pagesize; ++i)
18747
    if (*(data + i) != *(data3 + i))
18748 213 jeremybenn
      return 1;
18749 131 jeremybenn
  close (fd);
18750 213 jeremybenn
  return 0;
18751 131 jeremybenn
}
18752
_ACEOF
18753
rm -f conftest$ac_exeext
18754 213 jeremybenn
if { (ac_try="$ac_link"
18755
case "(($ac_try" in
18756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757
  *) ac_try_echo=$ac_try;;
18758
esac
18759
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18760
$as_echo "$ac_try_echo") >&5
18761
  (eval "$ac_link") 2>&5
18762 131 jeremybenn
  ac_status=$?
18763 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18765 213 jeremybenn
  { (case "(($ac_try" in
18766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767
  *) ac_try_echo=$ac_try;;
18768
esac
18769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18770
$as_echo "$ac_try_echo") >&5
18771
  (eval "$ac_try") 2>&5
18772 131 jeremybenn
  ac_status=$?
18773 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 131 jeremybenn
  (exit $ac_status); }; }; then
18775
  ac_cv_func_mmap_fixed_mapped=yes
18776
else
18777 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
18778
$as_echo "$as_me: failed program was:" >&5
18779 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18780
 
18781
( exit $ac_status )
18782
ac_cv_func_mmap_fixed_mapped=no
18783
fi
18784 213 jeremybenn
rm -rf conftest.dSYM
18785
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18786 131 jeremybenn
fi
18787 213 jeremybenn
 
18788
 
18789 131 jeremybenn
fi
18790 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18791
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18792 131 jeremybenn
if test $ac_cv_func_mmap_fixed_mapped = yes; then
18793
 
18794
cat >>confdefs.h <<\_ACEOF
18795
#define HAVE_MMAP 1
18796
_ACEOF
18797
 
18798
fi
18799
rm -f conftest.mmap
18800
 
18801 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18802
$as_echo_n "checking for pid_t... " >&6; }
18803 131 jeremybenn
if test "${ac_cv_type_pid_t+set}" = set; then
18804 213 jeremybenn
  $as_echo_n "(cached) " >&6
18805 131 jeremybenn
else
18806 213 jeremybenn
  ac_cv_type_pid_t=no
18807
cat >conftest.$ac_ext <<_ACEOF
18808 131 jeremybenn
/* confdefs.h.  */
18809
_ACEOF
18810
cat confdefs.h >>conftest.$ac_ext
18811
cat >>conftest.$ac_ext <<_ACEOF
18812
/* end confdefs.h.  */
18813
$ac_includes_default
18814
int
18815
main ()
18816
{
18817
if (sizeof (pid_t))
18818 213 jeremybenn
       return 0;
18819
  ;
18820 131 jeremybenn
  return 0;
18821 213 jeremybenn
}
18822
_ACEOF
18823
rm -f conftest.$ac_objext
18824
if { (ac_try="$ac_compile"
18825
case "(($ac_try" in
18826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827
  *) ac_try_echo=$ac_try;;
18828
esac
18829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18830
$as_echo "$ac_try_echo") >&5
18831
  (eval "$ac_compile") 2>conftest.er1
18832
  ac_status=$?
18833
  grep -v '^ *+' conftest.er1 >conftest.err
18834
  rm -f conftest.er1
18835
  cat conftest.err >&5
18836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837
  (exit $ac_status); } && {
18838
         test -z "$ac_c_werror_flag" ||
18839
         test ! -s conftest.err
18840
       } && test -s conftest.$ac_objext; then
18841
  cat >conftest.$ac_ext <<_ACEOF
18842
/* confdefs.h.  */
18843
_ACEOF
18844
cat confdefs.h >>conftest.$ac_ext
18845
cat >>conftest.$ac_ext <<_ACEOF
18846
/* end confdefs.h.  */
18847
$ac_includes_default
18848
int
18849
main ()
18850
{
18851
if (sizeof ((pid_t)))
18852
          return 0;
18853 131 jeremybenn
  ;
18854
  return 0;
18855
}
18856
_ACEOF
18857
rm -f conftest.$ac_objext
18858 213 jeremybenn
if { (ac_try="$ac_compile"
18859
case "(($ac_try" in
18860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861
  *) ac_try_echo=$ac_try;;
18862
esac
18863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18864
$as_echo "$ac_try_echo") >&5
18865
  (eval "$ac_compile") 2>conftest.er1
18866 131 jeremybenn
  ac_status=$?
18867
  grep -v '^ *+' conftest.er1 >conftest.err
18868
  rm -f conftest.er1
18869
  cat conftest.err >&5
18870 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871
  (exit $ac_status); } && {
18872
         test -z "$ac_c_werror_flag" ||
18873
         test ! -s conftest.err
18874
       } && test -s conftest.$ac_objext; then
18875
  :
18876 131 jeremybenn
else
18877 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18878 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18879
 
18880 213 jeremybenn
        ac_cv_type_pid_t=yes
18881 131 jeremybenn
fi
18882 213 jeremybenn
 
18883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18884
else
18885
  $as_echo "$as_me: failed program was:" >&5
18886
sed 's/^/| /' conftest.$ac_ext >&5
18887
 
18888
 
18889 131 jeremybenn
fi
18890 213 jeremybenn
 
18891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18892
fi
18893
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18894
$as_echo "$ac_cv_type_pid_t" >&6; }
18895
if test "x$ac_cv_type_pid_t" = x""yes; then
18896 131 jeremybenn
  :
18897
else
18898
 
18899
cat >>confdefs.h <<_ACEOF
18900
#define pid_t int
18901
_ACEOF
18902
 
18903
fi
18904
 
18905
 
18906 213 jeremybenn
for ac_header in vfork.h
18907 131 jeremybenn
do
18908 213 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18910
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18911
$as_echo_n "checking for $ac_header... " >&6; }
18912
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18913
  $as_echo_n "(cached) " >&6
18914 131 jeremybenn
fi
18915 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
18916
                 $as_echo "$as_val"'`
18917
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18918
$as_echo "$ac_res" >&6; }
18919 131 jeremybenn
else
18920
  # Is the header compilable?
18921 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18922
$as_echo_n "checking $ac_header usability... " >&6; }
18923 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
18924
/* confdefs.h.  */
18925
_ACEOF
18926
cat confdefs.h >>conftest.$ac_ext
18927
cat >>conftest.$ac_ext <<_ACEOF
18928
/* end confdefs.h.  */
18929
$ac_includes_default
18930
#include <$ac_header>
18931
_ACEOF
18932
rm -f conftest.$ac_objext
18933 213 jeremybenn
if { (ac_try="$ac_compile"
18934
case "(($ac_try" in
18935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936
  *) ac_try_echo=$ac_try;;
18937
esac
18938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18939
$as_echo "$ac_try_echo") >&5
18940
  (eval "$ac_compile") 2>conftest.er1
18941 131 jeremybenn
  ac_status=$?
18942
  grep -v '^ *+' conftest.er1 >conftest.err
18943
  rm -f conftest.er1
18944
  cat conftest.err >&5
18945 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946
  (exit $ac_status); } && {
18947
         test -z "$ac_c_werror_flag" ||
18948
         test ! -s conftest.err
18949
       } && test -s conftest.$ac_objext; then
18950 131 jeremybenn
  ac_header_compiler=yes
18951
else
18952 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18953 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18954
 
18955 213 jeremybenn
        ac_header_compiler=no
18956 131 jeremybenn
fi
18957
 
18958 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18960
$as_echo "$ac_header_compiler" >&6; }
18961
 
18962 131 jeremybenn
# Is the header present?
18963 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18964
$as_echo_n "checking $ac_header presence... " >&6; }
18965 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
18966
/* confdefs.h.  */
18967
_ACEOF
18968
cat confdefs.h >>conftest.$ac_ext
18969
cat >>conftest.$ac_ext <<_ACEOF
18970
/* end confdefs.h.  */
18971
#include <$ac_header>
18972
_ACEOF
18973 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
18974
case "(($ac_try" in
18975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976
  *) ac_try_echo=$ac_try;;
18977
esac
18978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18979
$as_echo "$ac_try_echo") >&5
18980
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18981 131 jeremybenn
  ac_status=$?
18982
  grep -v '^ *+' conftest.er1 >conftest.err
18983
  rm -f conftest.er1
18984
  cat conftest.err >&5
18985 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986
  (exit $ac_status); } >/dev/null && {
18987
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18988
         test ! -s conftest.err
18989
       }; then
18990 131 jeremybenn
  ac_header_preproc=yes
18991
else
18992 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
18993 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
18994
 
18995
  ac_header_preproc=no
18996
fi
18997 213 jeremybenn
 
18998 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
18999 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19000
$as_echo "$ac_header_preproc" >&6; }
19001 131 jeremybenn
 
19002
# So?  What about this header?
19003
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19004
  yes:no: )
19005 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19006
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19007
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19008
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19009 131 jeremybenn
    ac_header_preproc=yes
19010
    ;;
19011
  no:yes:* )
19012 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19013
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19014
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19015
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19016
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19017
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19018
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19019
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19020
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19021
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19022
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19023
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19024
 
19025 131 jeremybenn
    ;;
19026
esac
19027 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19028
$as_echo_n "checking for $ac_header... " >&6; }
19029
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19030
  $as_echo_n "(cached) " >&6
19031 131 jeremybenn
else
19032
  eval "$as_ac_Header=\$ac_header_preproc"
19033
fi
19034 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
19035
                 $as_echo "$as_val"'`
19036
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19037
$as_echo "$ac_res" >&6; }
19038 131 jeremybenn
 
19039
fi
19040 213 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
19041
                 $as_echo "$as_val"'`
19042
   if test "x$as_val" = x""yes; then
19043 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19044 213 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19045 131 jeremybenn
_ACEOF
19046
 
19047
fi
19048
 
19049
done
19050
 
19051
 
19052
 
19053
for ac_func in fork vfork
19054
do
19055 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19056
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19057
$as_echo_n "checking for $ac_func... " >&6; }
19058
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19059
  $as_echo_n "(cached) " >&6
19060 131 jeremybenn
else
19061
  cat >conftest.$ac_ext <<_ACEOF
19062
/* confdefs.h.  */
19063
_ACEOF
19064
cat confdefs.h >>conftest.$ac_ext
19065
cat >>conftest.$ac_ext <<_ACEOF
19066
/* end confdefs.h.  */
19067
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19068
   For example, HP-UX 11i  declares gettimeofday.  */
19069
#define $ac_func innocuous_$ac_func
19070
 
19071
/* System header to define __stub macros and hopefully few prototypes,
19072
    which can conflict with char $ac_func (); below.
19073
    Prefer  to  if __STDC__ is defined, since
19074
     exists even on freestanding compilers.  */
19075
 
19076
#ifdef __STDC__
19077
# include 
19078
#else
19079
# include 
19080
#endif
19081
 
19082
#undef $ac_func
19083
 
19084 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19085
   Use char because int might match the return type of a GCC
19086
   builtin and then its argument prototype would still apply.  */
19087 131 jeremybenn
#ifdef __cplusplus
19088
extern "C"
19089
#endif
19090
char $ac_func ();
19091
/* The GNU C library defines this for functions which it implements
19092
    to always fail with ENOSYS.  Some functions are actually named
19093
    something starting with __ and the normal name is an alias.  */
19094 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19095 131 jeremybenn
choke me
19096
#endif
19097
 
19098
int
19099
main ()
19100
{
19101 213 jeremybenn
return $ac_func ();
19102 131 jeremybenn
  ;
19103
  return 0;
19104
}
19105
_ACEOF
19106
rm -f conftest.$ac_objext conftest$ac_exeext
19107 213 jeremybenn
if { (ac_try="$ac_link"
19108
case "(($ac_try" in
19109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110
  *) ac_try_echo=$ac_try;;
19111
esac
19112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19113
$as_echo "$ac_try_echo") >&5
19114
  (eval "$ac_link") 2>conftest.er1
19115 131 jeremybenn
  ac_status=$?
19116
  grep -v '^ *+' conftest.er1 >conftest.err
19117
  rm -f conftest.er1
19118
  cat conftest.err >&5
19119 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120
  (exit $ac_status); } && {
19121
         test -z "$ac_c_werror_flag" ||
19122
         test ! -s conftest.err
19123
       } && test -s conftest$ac_exeext && {
19124
         test "$cross_compiling" = yes ||
19125
         $as_test_x conftest$ac_exeext
19126
       }; then
19127 131 jeremybenn
  eval "$as_ac_var=yes"
19128
else
19129 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19130 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19131
 
19132 213 jeremybenn
        eval "$as_ac_var=no"
19133 131 jeremybenn
fi
19134 213 jeremybenn
 
19135
rm -rf conftest.dSYM
19136
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19138
fi
19139 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19140
                 $as_echo "$as_val"'`
19141
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19142
$as_echo "$ac_res" >&6; }
19143
as_val=`eval 'as_val=${'$as_ac_var'}
19144
                 $as_echo "$as_val"'`
19145
   if test "x$as_val" = x""yes; then
19146 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19147 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19148 131 jeremybenn
_ACEOF
19149
 
19150
fi
19151
done
19152
 
19153
if test "x$ac_cv_func_fork" = xyes; then
19154 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for working fork" >&5
19155
$as_echo_n "checking for working fork... " >&6; }
19156 131 jeremybenn
if test "${ac_cv_func_fork_works+set}" = set; then
19157 213 jeremybenn
  $as_echo_n "(cached) " >&6
19158 131 jeremybenn
else
19159
  if test "$cross_compiling" = yes; then
19160
  ac_cv_func_fork_works=cross
19161
else
19162
  cat >conftest.$ac_ext <<_ACEOF
19163 213 jeremybenn
/* confdefs.h.  */
19164 131 jeremybenn
_ACEOF
19165 213 jeremybenn
cat confdefs.h >>conftest.$ac_ext
19166
cat >>conftest.$ac_ext <<_ACEOF
19167
/* end confdefs.h.  */
19168
$ac_includes_default
19169
int
19170
main ()
19171
{
19172
 
19173
          /* By Ruediger Kuhlmann. */
19174
          return fork () < 0;
19175
 
19176
  ;
19177
  return 0;
19178
}
19179
_ACEOF
19180 131 jeremybenn
rm -f conftest$ac_exeext
19181 213 jeremybenn
if { (ac_try="$ac_link"
19182
case "(($ac_try" in
19183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184
  *) ac_try_echo=$ac_try;;
19185
esac
19186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19187
$as_echo "$ac_try_echo") >&5
19188
  (eval "$ac_link") 2>&5
19189 131 jeremybenn
  ac_status=$?
19190 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19192 213 jeremybenn
  { (case "(($ac_try" in
19193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194
  *) ac_try_echo=$ac_try;;
19195
esac
19196
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19197
$as_echo "$ac_try_echo") >&5
19198
  (eval "$ac_try") 2>&5
19199 131 jeremybenn
  ac_status=$?
19200 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 131 jeremybenn
  (exit $ac_status); }; }; then
19202
  ac_cv_func_fork_works=yes
19203
else
19204 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
19205
$as_echo "$as_me: failed program was:" >&5
19206 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19207
 
19208
( exit $ac_status )
19209
ac_cv_func_fork_works=no
19210
fi
19211 213 jeremybenn
rm -rf conftest.dSYM
19212
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19213 131 jeremybenn
fi
19214 213 jeremybenn
 
19215
 
19216 131 jeremybenn
fi
19217 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19218
$as_echo "$ac_cv_func_fork_works" >&6; }
19219 131 jeremybenn
 
19220
else
19221
  ac_cv_func_fork_works=$ac_cv_func_fork
19222
fi
19223
if test "x$ac_cv_func_fork_works" = xcross; then
19224
  case $host in
19225
    *-*-amigaos* | *-*-msdosdjgpp*)
19226
      # Override, as these systems have only a dummy fork() stub
19227
      ac_cv_func_fork_works=no
19228
      ;;
19229
    *)
19230
      ac_cv_func_fork_works=yes
19231
      ;;
19232
  esac
19233 213 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19234
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19235 131 jeremybenn
fi
19236
ac_cv_func_vfork_works=$ac_cv_func_vfork
19237
if test "x$ac_cv_func_vfork" = xyes; then
19238 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
19239
$as_echo_n "checking for working vfork... " >&6; }
19240 131 jeremybenn
if test "${ac_cv_func_vfork_works+set}" = set; then
19241 213 jeremybenn
  $as_echo_n "(cached) " >&6
19242 131 jeremybenn
else
19243
  if test "$cross_compiling" = yes; then
19244
  ac_cv_func_vfork_works=cross
19245
else
19246
  cat >conftest.$ac_ext <<_ACEOF
19247
/* confdefs.h.  */
19248
_ACEOF
19249
cat confdefs.h >>conftest.$ac_ext
19250
cat >>conftest.$ac_ext <<_ACEOF
19251
/* end confdefs.h.  */
19252
/* Thanks to Paul Eggert for this test.  */
19253 213 jeremybenn
$ac_includes_default
19254 131 jeremybenn
#include 
19255 213 jeremybenn
#ifdef HAVE_VFORK_H
19256 131 jeremybenn
# include 
19257
#endif
19258
/* On some sparc systems, changes by the child to local and incoming
19259
   argument registers are propagated back to the parent.  The compiler
19260
   is told about this with #include , but some compilers
19261
   (e.g. gcc -O) don't grok .  Test for this by using a
19262
   static variable whose address is put into a register that is
19263
   clobbered by the vfork.  */
19264
static void
19265
#ifdef __cplusplus
19266
sparc_address_test (int arg)
19267
# else
19268
sparc_address_test (arg) int arg;
19269
#endif
19270
{
19271
  static pid_t child;
19272
  if (!child) {
19273
    child = vfork ();
19274
    if (child < 0) {
19275
      perror ("vfork");
19276
      _exit(2);
19277
    }
19278
    if (!child) {
19279
      arg = getpid();
19280
      write(-1, "", 0);
19281
      _exit (arg);
19282
    }
19283
  }
19284
}
19285
 
19286
int
19287
main ()
19288
{
19289
  pid_t parent = getpid ();
19290
  pid_t child;
19291
 
19292
  sparc_address_test (0);
19293
 
19294
  child = vfork ();
19295
 
19296
  if (child == 0) {
19297
    /* Here is another test for sparc vfork register problems.  This
19298
       test uses lots of local variables, at least as many local
19299
       variables as main has allocated so far including compiler
19300
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19301
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19302
       reuse the register of parent for one of the local variables,
19303
       since it will think that parent can't possibly be used any more
19304
       in this routine.  Assigning to the local variable will thus
19305
       munge parent in the parent process.  */
19306
    pid_t
19307
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19308
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19309
    /* Convince the compiler that p..p7 are live; otherwise, it might
19310
       use the same hardware register for all 8 local variables.  */
19311
    if (p != p1 || p != p2 || p != p3 || p != p4
19312
        || p != p5 || p != p6 || p != p7)
19313
      _exit(1);
19314
 
19315
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19316
       from child file descriptors.  If the child closes a descriptor
19317
       before it execs or exits, this munges the parent's descriptor
19318
       as well.  Test for this by closing stdout in the child.  */
19319
    _exit(close(fileno(stdout)) != 0);
19320
  } else {
19321
    int status;
19322
    struct stat st;
19323
 
19324
    while (wait(&status) != child)
19325
      ;
19326 213 jeremybenn
    return (
19327 131 jeremybenn
         /* Was there some problem with vforking?  */
19328
         child < 0
19329
 
19330
         /* Did the child fail?  (This shouldn't happen.)  */
19331
         || status
19332
 
19333
         /* Did the vfork/compiler bug occur?  */
19334
         || parent != getpid()
19335
 
19336
         /* Did the file descriptor bug occur?  */
19337
         || fstat(fileno(stdout), &st) != 0
19338
         );
19339
  }
19340
}
19341
_ACEOF
19342
rm -f conftest$ac_exeext
19343 213 jeremybenn
if { (ac_try="$ac_link"
19344
case "(($ac_try" in
19345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346
  *) ac_try_echo=$ac_try;;
19347
esac
19348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19349
$as_echo "$ac_try_echo") >&5
19350
  (eval "$ac_link") 2>&5
19351 131 jeremybenn
  ac_status=$?
19352 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19354 213 jeremybenn
  { (case "(($ac_try" in
19355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356
  *) ac_try_echo=$ac_try;;
19357
esac
19358
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19359
$as_echo "$ac_try_echo") >&5
19360
  (eval "$ac_try") 2>&5
19361 131 jeremybenn
  ac_status=$?
19362 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 131 jeremybenn
  (exit $ac_status); }; }; then
19364
  ac_cv_func_vfork_works=yes
19365
else
19366 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
19367
$as_echo "$as_me: failed program was:" >&5
19368 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19369
 
19370
( exit $ac_status )
19371
ac_cv_func_vfork_works=no
19372
fi
19373 213 jeremybenn
rm -rf conftest.dSYM
19374
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19375 131 jeremybenn
fi
19376 213 jeremybenn
 
19377
 
19378 131 jeremybenn
fi
19379 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19380
$as_echo "$ac_cv_func_vfork_works" >&6; }
19381 131 jeremybenn
 
19382
fi;
19383
if test "x$ac_cv_func_fork_works" = xcross; then
19384
  ac_cv_func_vfork_works=$ac_cv_func_vfork
19385 213 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19386
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19387 131 jeremybenn
fi
19388
 
19389
if test "x$ac_cv_func_vfork_works" = xyes; then
19390
 
19391
cat >>confdefs.h <<\_ACEOF
19392
#define HAVE_WORKING_VFORK 1
19393
_ACEOF
19394
 
19395
else
19396
 
19397
cat >>confdefs.h <<\_ACEOF
19398
#define vfork fork
19399
_ACEOF
19400
 
19401
fi
19402
if test "x$ac_cv_func_fork_works" = xyes; then
19403
 
19404
cat >>confdefs.h <<\_ACEOF
19405
#define HAVE_WORKING_FORK 1
19406
_ACEOF
19407
 
19408
fi
19409
 
19410
 
19411
 
19412
for ac_func in canonicalize_file_name realpath
19413
do
19414 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19416
$as_echo_n "checking for $ac_func... " >&6; }
19417
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19418
  $as_echo_n "(cached) " >&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
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19427
   For example, HP-UX 11i  declares gettimeofday.  */
19428
#define $ac_func innocuous_$ac_func
19429
 
19430
/* System header to define __stub macros and hopefully few prototypes,
19431
    which can conflict with char $ac_func (); below.
19432
    Prefer  to  if __STDC__ is defined, since
19433
     exists even on freestanding compilers.  */
19434
 
19435
#ifdef __STDC__
19436
# include 
19437
#else
19438
# include 
19439
#endif
19440
 
19441
#undef $ac_func
19442
 
19443 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19444
   Use char because int might match the return type of a GCC
19445
   builtin and then its argument prototype would still apply.  */
19446 131 jeremybenn
#ifdef __cplusplus
19447
extern "C"
19448
#endif
19449
char $ac_func ();
19450
/* The GNU C library defines this for functions which it implements
19451
    to always fail with ENOSYS.  Some functions are actually named
19452
    something starting with __ and the normal name is an alias.  */
19453 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19454 131 jeremybenn
choke me
19455
#endif
19456
 
19457
int
19458
main ()
19459
{
19460 213 jeremybenn
return $ac_func ();
19461 131 jeremybenn
  ;
19462
  return 0;
19463
}
19464
_ACEOF
19465
rm -f conftest.$ac_objext conftest$ac_exeext
19466 213 jeremybenn
if { (ac_try="$ac_link"
19467
case "(($ac_try" in
19468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469
  *) ac_try_echo=$ac_try;;
19470
esac
19471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19472
$as_echo "$ac_try_echo") >&5
19473
  (eval "$ac_link") 2>conftest.er1
19474 131 jeremybenn
  ac_status=$?
19475
  grep -v '^ *+' conftest.er1 >conftest.err
19476
  rm -f conftest.er1
19477
  cat conftest.err >&5
19478 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479
  (exit $ac_status); } && {
19480
         test -z "$ac_c_werror_flag" ||
19481
         test ! -s conftest.err
19482
       } && test -s conftest$ac_exeext && {
19483
         test "$cross_compiling" = yes ||
19484
         $as_test_x conftest$ac_exeext
19485
       }; then
19486 131 jeremybenn
  eval "$as_ac_var=yes"
19487
else
19488 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19489 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19490
 
19491 213 jeremybenn
        eval "$as_ac_var=no"
19492 131 jeremybenn
fi
19493 213 jeremybenn
 
19494
rm -rf conftest.dSYM
19495
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19497
fi
19498 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19499
                 $as_echo "$as_val"'`
19500
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19501
$as_echo "$ac_res" >&6; }
19502
as_val=`eval 'as_val=${'$as_ac_var'}
19503
                 $as_echo "$as_val"'`
19504
   if test "x$as_val" = x""yes; then
19505 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19506 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19507 131 jeremybenn
_ACEOF
19508
 
19509
fi
19510
done
19511
 
19512
 
19513
for ac_func in getrusage
19514
do
19515 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19516
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19517
$as_echo_n "checking for $ac_func... " >&6; }
19518
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19519
  $as_echo_n "(cached) " >&6
19520 131 jeremybenn
else
19521
  cat >conftest.$ac_ext <<_ACEOF
19522
/* confdefs.h.  */
19523
_ACEOF
19524
cat confdefs.h >>conftest.$ac_ext
19525
cat >>conftest.$ac_ext <<_ACEOF
19526
/* end confdefs.h.  */
19527
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19528
   For example, HP-UX 11i  declares gettimeofday.  */
19529
#define $ac_func innocuous_$ac_func
19530
 
19531
/* System header to define __stub macros and hopefully few prototypes,
19532
    which can conflict with char $ac_func (); below.
19533
    Prefer  to  if __STDC__ is defined, since
19534
     exists even on freestanding compilers.  */
19535
 
19536
#ifdef __STDC__
19537
# include 
19538
#else
19539
# include 
19540
#endif
19541
 
19542
#undef $ac_func
19543
 
19544 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19545
   Use char because int might match the return type of a GCC
19546
   builtin and then its argument prototype would still apply.  */
19547 131 jeremybenn
#ifdef __cplusplus
19548
extern "C"
19549
#endif
19550
char $ac_func ();
19551
/* The GNU C library defines this for functions which it implements
19552
    to always fail with ENOSYS.  Some functions are actually named
19553
    something starting with __ and the normal name is an alias.  */
19554 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19555 131 jeremybenn
choke me
19556
#endif
19557
 
19558
int
19559
main ()
19560
{
19561 213 jeremybenn
return $ac_func ();
19562 131 jeremybenn
  ;
19563
  return 0;
19564
}
19565
_ACEOF
19566
rm -f conftest.$ac_objext conftest$ac_exeext
19567 213 jeremybenn
if { (ac_try="$ac_link"
19568
case "(($ac_try" in
19569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570
  *) ac_try_echo=$ac_try;;
19571
esac
19572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19573
$as_echo "$ac_try_echo") >&5
19574
  (eval "$ac_link") 2>conftest.er1
19575 131 jeremybenn
  ac_status=$?
19576
  grep -v '^ *+' conftest.er1 >conftest.err
19577
  rm -f conftest.er1
19578
  cat conftest.err >&5
19579 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580
  (exit $ac_status); } && {
19581
         test -z "$ac_c_werror_flag" ||
19582
         test ! -s conftest.err
19583
       } && test -s conftest$ac_exeext && {
19584
         test "$cross_compiling" = yes ||
19585
         $as_test_x conftest$ac_exeext
19586
       }; then
19587 131 jeremybenn
  eval "$as_ac_var=yes"
19588
else
19589 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19590 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19591
 
19592 213 jeremybenn
        eval "$as_ac_var=no"
19593 131 jeremybenn
fi
19594 213 jeremybenn
 
19595
rm -rf conftest.dSYM
19596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19597 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19598
fi
19599 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19600
                 $as_echo "$as_val"'`
19601
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19602
$as_echo "$ac_res" >&6; }
19603
as_val=`eval 'as_val=${'$as_ac_var'}
19604
                 $as_echo "$as_val"'`
19605
   if test "x$as_val" = x""yes; then
19606 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19607 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19608 131 jeremybenn
_ACEOF
19609
 
19610
fi
19611
done
19612
 
19613
 
19614
 
19615
for ac_func in getuid getgid
19616
do
19617 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19618
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19619
$as_echo_n "checking for $ac_func... " >&6; }
19620
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19621
  $as_echo_n "(cached) " >&6
19622 131 jeremybenn
else
19623
  cat >conftest.$ac_ext <<_ACEOF
19624
/* confdefs.h.  */
19625
_ACEOF
19626
cat confdefs.h >>conftest.$ac_ext
19627
cat >>conftest.$ac_ext <<_ACEOF
19628
/* end confdefs.h.  */
19629
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19630
   For example, HP-UX 11i  declares gettimeofday.  */
19631
#define $ac_func innocuous_$ac_func
19632
 
19633
/* System header to define __stub macros and hopefully few prototypes,
19634
    which can conflict with char $ac_func (); below.
19635
    Prefer  to  if __STDC__ is defined, since
19636
     exists even on freestanding compilers.  */
19637
 
19638
#ifdef __STDC__
19639
# include 
19640
#else
19641
# include 
19642
#endif
19643
 
19644
#undef $ac_func
19645
 
19646 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19647
   Use char because int might match the return type of a GCC
19648
   builtin and then its argument prototype would still apply.  */
19649 131 jeremybenn
#ifdef __cplusplus
19650
extern "C"
19651
#endif
19652
char $ac_func ();
19653
/* The GNU C library defines this for functions which it implements
19654
    to always fail with ENOSYS.  Some functions are actually named
19655
    something starting with __ and the normal name is an alias.  */
19656 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19657 131 jeremybenn
choke me
19658
#endif
19659
 
19660
int
19661
main ()
19662
{
19663 213 jeremybenn
return $ac_func ();
19664 131 jeremybenn
  ;
19665
  return 0;
19666
}
19667
_ACEOF
19668
rm -f conftest.$ac_objext conftest$ac_exeext
19669 213 jeremybenn
if { (ac_try="$ac_link"
19670
case "(($ac_try" in
19671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672
  *) ac_try_echo=$ac_try;;
19673
esac
19674
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675
$as_echo "$ac_try_echo") >&5
19676
  (eval "$ac_link") 2>conftest.er1
19677 131 jeremybenn
  ac_status=$?
19678
  grep -v '^ *+' conftest.er1 >conftest.err
19679
  rm -f conftest.er1
19680
  cat conftest.err >&5
19681 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682
  (exit $ac_status); } && {
19683
         test -z "$ac_c_werror_flag" ||
19684
         test ! -s conftest.err
19685
       } && test -s conftest$ac_exeext && {
19686
         test "$cross_compiling" = yes ||
19687
         $as_test_x conftest$ac_exeext
19688
       }; then
19689 131 jeremybenn
  eval "$as_ac_var=yes"
19690
else
19691 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19692 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19693
 
19694 213 jeremybenn
        eval "$as_ac_var=no"
19695 131 jeremybenn
fi
19696 213 jeremybenn
 
19697
rm -rf conftest.dSYM
19698
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19700
fi
19701 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19702
                 $as_echo "$as_val"'`
19703
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19704
$as_echo "$ac_res" >&6; }
19705
as_val=`eval 'as_val=${'$as_ac_var'}
19706
                 $as_echo "$as_val"'`
19707
   if test "x$as_val" = x""yes; then
19708 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19709 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19710 131 jeremybenn
_ACEOF
19711
 
19712
fi
19713
done
19714
 
19715
 
19716
for ac_func in poll
19717
do
19718 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19719
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19720
$as_echo_n "checking for $ac_func... " >&6; }
19721
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19722
  $as_echo_n "(cached) " >&6
19723 131 jeremybenn
else
19724
  cat >conftest.$ac_ext <<_ACEOF
19725
/* confdefs.h.  */
19726
_ACEOF
19727
cat confdefs.h >>conftest.$ac_ext
19728
cat >>conftest.$ac_ext <<_ACEOF
19729
/* end confdefs.h.  */
19730
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19731
   For example, HP-UX 11i  declares gettimeofday.  */
19732
#define $ac_func innocuous_$ac_func
19733
 
19734
/* System header to define __stub macros and hopefully few prototypes,
19735
    which can conflict with char $ac_func (); below.
19736
    Prefer  to  if __STDC__ is defined, since
19737
     exists even on freestanding compilers.  */
19738
 
19739
#ifdef __STDC__
19740
# include 
19741
#else
19742
# include 
19743
#endif
19744
 
19745
#undef $ac_func
19746
 
19747 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19748
   Use char because int might match the return type of a GCC
19749
   builtin and then its argument prototype would still apply.  */
19750 131 jeremybenn
#ifdef __cplusplus
19751
extern "C"
19752
#endif
19753
char $ac_func ();
19754
/* The GNU C library defines this for functions which it implements
19755
    to always fail with ENOSYS.  Some functions are actually named
19756
    something starting with __ and the normal name is an alias.  */
19757 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19758 131 jeremybenn
choke me
19759
#endif
19760
 
19761
int
19762
main ()
19763
{
19764 213 jeremybenn
return $ac_func ();
19765 131 jeremybenn
  ;
19766
  return 0;
19767
}
19768
_ACEOF
19769
rm -f conftest.$ac_objext conftest$ac_exeext
19770 213 jeremybenn
if { (ac_try="$ac_link"
19771
case "(($ac_try" in
19772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773
  *) ac_try_echo=$ac_try;;
19774
esac
19775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19776
$as_echo "$ac_try_echo") >&5
19777
  (eval "$ac_link") 2>conftest.er1
19778 131 jeremybenn
  ac_status=$?
19779
  grep -v '^ *+' conftest.er1 >conftest.err
19780
  rm -f conftest.er1
19781
  cat conftest.err >&5
19782 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783
  (exit $ac_status); } && {
19784
         test -z "$ac_c_werror_flag" ||
19785
         test ! -s conftest.err
19786
       } && test -s conftest$ac_exeext && {
19787
         test "$cross_compiling" = yes ||
19788
         $as_test_x conftest$ac_exeext
19789
       }; then
19790 131 jeremybenn
  eval "$as_ac_var=yes"
19791
else
19792 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19793 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19794
 
19795 213 jeremybenn
        eval "$as_ac_var=no"
19796 131 jeremybenn
fi
19797 213 jeremybenn
 
19798
rm -rf conftest.dSYM
19799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19800 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19801
fi
19802 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19803
                 $as_echo "$as_val"'`
19804
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19805
$as_echo "$ac_res" >&6; }
19806
as_val=`eval 'as_val=${'$as_ac_var'}
19807
                 $as_echo "$as_val"'`
19808
   if test "x$as_val" = x""yes; then
19809 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19810 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19811 131 jeremybenn
_ACEOF
19812
 
19813
fi
19814
done
19815
 
19816
 
19817
for ac_func in pread64
19818
do
19819 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19820
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19821
$as_echo_n "checking for $ac_func... " >&6; }
19822
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19823
  $as_echo_n "(cached) " >&6
19824 131 jeremybenn
else
19825
  cat >conftest.$ac_ext <<_ACEOF
19826
/* confdefs.h.  */
19827
_ACEOF
19828
cat confdefs.h >>conftest.$ac_ext
19829
cat >>conftest.$ac_ext <<_ACEOF
19830
/* end confdefs.h.  */
19831
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19832
   For example, HP-UX 11i  declares gettimeofday.  */
19833
#define $ac_func innocuous_$ac_func
19834
 
19835
/* System header to define __stub macros and hopefully few prototypes,
19836
    which can conflict with char $ac_func (); below.
19837
    Prefer  to  if __STDC__ is defined, since
19838
     exists even on freestanding compilers.  */
19839
 
19840
#ifdef __STDC__
19841
# include 
19842
#else
19843
# include 
19844
#endif
19845
 
19846
#undef $ac_func
19847
 
19848 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19849
   Use char because int might match the return type of a GCC
19850
   builtin and then its argument prototype would still apply.  */
19851 131 jeremybenn
#ifdef __cplusplus
19852
extern "C"
19853
#endif
19854
char $ac_func ();
19855
/* The GNU C library defines this for functions which it implements
19856
    to always fail with ENOSYS.  Some functions are actually named
19857
    something starting with __ and the normal name is an alias.  */
19858 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19859 131 jeremybenn
choke me
19860
#endif
19861
 
19862
int
19863
main ()
19864
{
19865 213 jeremybenn
return $ac_func ();
19866 131 jeremybenn
  ;
19867
  return 0;
19868
}
19869
_ACEOF
19870
rm -f conftest.$ac_objext conftest$ac_exeext
19871 213 jeremybenn
if { (ac_try="$ac_link"
19872
case "(($ac_try" in
19873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874
  *) ac_try_echo=$ac_try;;
19875
esac
19876
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19877
$as_echo "$ac_try_echo") >&5
19878
  (eval "$ac_link") 2>conftest.er1
19879 131 jeremybenn
  ac_status=$?
19880
  grep -v '^ *+' conftest.er1 >conftest.err
19881
  rm -f conftest.er1
19882
  cat conftest.err >&5
19883 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884
  (exit $ac_status); } && {
19885
         test -z "$ac_c_werror_flag" ||
19886
         test ! -s conftest.err
19887
       } && test -s conftest$ac_exeext && {
19888
         test "$cross_compiling" = yes ||
19889
         $as_test_x conftest$ac_exeext
19890
       }; then
19891 131 jeremybenn
  eval "$as_ac_var=yes"
19892
else
19893 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19894 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19895
 
19896 213 jeremybenn
        eval "$as_ac_var=no"
19897 131 jeremybenn
fi
19898 213 jeremybenn
 
19899
rm -rf conftest.dSYM
19900
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19901 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
19902
fi
19903 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
19904
                 $as_echo "$as_val"'`
19905
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19906
$as_echo "$ac_res" >&6; }
19907
as_val=`eval 'as_val=${'$as_ac_var'}
19908
                 $as_echo "$as_val"'`
19909
   if test "x$as_val" = x""yes; then
19910 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
19911 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912 131 jeremybenn
_ACEOF
19913
 
19914
fi
19915
done
19916
 
19917
 
19918
for ac_func in sbrk
19919
do
19920 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19921
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19922
$as_echo_n "checking for $ac_func... " >&6; }
19923
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19924
  $as_echo_n "(cached) " >&6
19925 131 jeremybenn
else
19926
  cat >conftest.$ac_ext <<_ACEOF
19927
/* confdefs.h.  */
19928
_ACEOF
19929
cat confdefs.h >>conftest.$ac_ext
19930
cat >>conftest.$ac_ext <<_ACEOF
19931
/* end confdefs.h.  */
19932
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19933
   For example, HP-UX 11i  declares gettimeofday.  */
19934
#define $ac_func innocuous_$ac_func
19935
 
19936
/* System header to define __stub macros and hopefully few prototypes,
19937
    which can conflict with char $ac_func (); below.
19938
    Prefer  to  if __STDC__ is defined, since
19939
     exists even on freestanding compilers.  */
19940
 
19941
#ifdef __STDC__
19942
# include 
19943
#else
19944
# include 
19945
#endif
19946
 
19947
#undef $ac_func
19948
 
19949 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
19950
   Use char because int might match the return type of a GCC
19951
   builtin and then its argument prototype would still apply.  */
19952 131 jeremybenn
#ifdef __cplusplus
19953
extern "C"
19954
#endif
19955
char $ac_func ();
19956
/* The GNU C library defines this for functions which it implements
19957
    to always fail with ENOSYS.  Some functions are actually named
19958
    something starting with __ and the normal name is an alias.  */
19959 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
19960 131 jeremybenn
choke me
19961
#endif
19962
 
19963
int
19964
main ()
19965
{
19966 213 jeremybenn
return $ac_func ();
19967 131 jeremybenn
  ;
19968
  return 0;
19969
}
19970
_ACEOF
19971
rm -f conftest.$ac_objext conftest$ac_exeext
19972 213 jeremybenn
if { (ac_try="$ac_link"
19973
case "(($ac_try" in
19974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975
  *) ac_try_echo=$ac_try;;
19976
esac
19977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19978
$as_echo "$ac_try_echo") >&5
19979
  (eval "$ac_link") 2>conftest.er1
19980 131 jeremybenn
  ac_status=$?
19981
  grep -v '^ *+' conftest.er1 >conftest.err
19982
  rm -f conftest.er1
19983
  cat conftest.err >&5
19984 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985
  (exit $ac_status); } && {
19986
         test -z "$ac_c_werror_flag" ||
19987
         test ! -s conftest.err
19988
       } && test -s conftest$ac_exeext && {
19989
         test "$cross_compiling" = yes ||
19990
         $as_test_x conftest$ac_exeext
19991
       }; then
19992 131 jeremybenn
  eval "$as_ac_var=yes"
19993
else
19994 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
19995 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
19996
 
19997 213 jeremybenn
        eval "$as_ac_var=no"
19998 131 jeremybenn
fi
19999 213 jeremybenn
 
20000
rm -rf conftest.dSYM
20001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20003
fi
20004 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20005
                 $as_echo "$as_val"'`
20006
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20007
$as_echo "$ac_res" >&6; }
20008
as_val=`eval 'as_val=${'$as_ac_var'}
20009
                 $as_echo "$as_val"'`
20010
   if test "x$as_val" = x""yes; then
20011 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20012 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20013 131 jeremybenn
_ACEOF
20014
 
20015
fi
20016
done
20017
 
20018
 
20019
 
20020
for ac_func in setpgid setpgrp
20021
do
20022 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20023
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20024
$as_echo_n "checking for $ac_func... " >&6; }
20025
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20026
  $as_echo_n "(cached) " >&6
20027 131 jeremybenn
else
20028
  cat >conftest.$ac_ext <<_ACEOF
20029
/* confdefs.h.  */
20030
_ACEOF
20031
cat confdefs.h >>conftest.$ac_ext
20032
cat >>conftest.$ac_ext <<_ACEOF
20033
/* end confdefs.h.  */
20034
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20035
   For example, HP-UX 11i  declares gettimeofday.  */
20036
#define $ac_func innocuous_$ac_func
20037
 
20038
/* System header to define __stub macros and hopefully few prototypes,
20039
    which can conflict with char $ac_func (); below.
20040
    Prefer  to  if __STDC__ is defined, since
20041
     exists even on freestanding compilers.  */
20042
 
20043
#ifdef __STDC__
20044
# include 
20045
#else
20046
# include 
20047
#endif
20048
 
20049
#undef $ac_func
20050
 
20051 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20052
   Use char because int might match the return type of a GCC
20053
   builtin and then its argument prototype would still apply.  */
20054 131 jeremybenn
#ifdef __cplusplus
20055
extern "C"
20056
#endif
20057
char $ac_func ();
20058
/* The GNU C library defines this for functions which it implements
20059
    to always fail with ENOSYS.  Some functions are actually named
20060
    something starting with __ and the normal name is an alias.  */
20061 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20062 131 jeremybenn
choke me
20063
#endif
20064
 
20065
int
20066
main ()
20067
{
20068 213 jeremybenn
return $ac_func ();
20069 131 jeremybenn
  ;
20070
  return 0;
20071
}
20072
_ACEOF
20073
rm -f conftest.$ac_objext conftest$ac_exeext
20074 213 jeremybenn
if { (ac_try="$ac_link"
20075
case "(($ac_try" in
20076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077
  *) ac_try_echo=$ac_try;;
20078
esac
20079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20080
$as_echo "$ac_try_echo") >&5
20081
  (eval "$ac_link") 2>conftest.er1
20082 131 jeremybenn
  ac_status=$?
20083
  grep -v '^ *+' conftest.er1 >conftest.err
20084
  rm -f conftest.er1
20085
  cat conftest.err >&5
20086 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087
  (exit $ac_status); } && {
20088
         test -z "$ac_c_werror_flag" ||
20089
         test ! -s conftest.err
20090
       } && test -s conftest$ac_exeext && {
20091
         test "$cross_compiling" = yes ||
20092
         $as_test_x conftest$ac_exeext
20093
       }; then
20094 131 jeremybenn
  eval "$as_ac_var=yes"
20095
else
20096 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20097 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20098
 
20099 213 jeremybenn
        eval "$as_ac_var=no"
20100 131 jeremybenn
fi
20101 213 jeremybenn
 
20102
rm -rf conftest.dSYM
20103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20105
fi
20106 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20107
                 $as_echo "$as_val"'`
20108
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20109
$as_echo "$ac_res" >&6; }
20110
as_val=`eval 'as_val=${'$as_ac_var'}
20111
                 $as_echo "$as_val"'`
20112
   if test "x$as_val" = x""yes; then
20113 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20114 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 131 jeremybenn
_ACEOF
20116
 
20117
fi
20118
done
20119
 
20120
 
20121
 
20122
 
20123
for ac_func in sigaction sigprocmask sigsetmask
20124
do
20125 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20126
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20127
$as_echo_n "checking for $ac_func... " >&6; }
20128
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20129
  $as_echo_n "(cached) " >&6
20130 131 jeremybenn
else
20131
  cat >conftest.$ac_ext <<_ACEOF
20132
/* confdefs.h.  */
20133
_ACEOF
20134
cat confdefs.h >>conftest.$ac_ext
20135
cat >>conftest.$ac_ext <<_ACEOF
20136
/* end confdefs.h.  */
20137
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20138
   For example, HP-UX 11i  declares gettimeofday.  */
20139
#define $ac_func innocuous_$ac_func
20140
 
20141
/* System header to define __stub macros and hopefully few prototypes,
20142
    which can conflict with char $ac_func (); below.
20143
    Prefer  to  if __STDC__ is defined, since
20144
     exists even on freestanding compilers.  */
20145
 
20146
#ifdef __STDC__
20147
# include 
20148
#else
20149
# include 
20150
#endif
20151
 
20152
#undef $ac_func
20153
 
20154 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20155
   Use char because int might match the return type of a GCC
20156
   builtin and then its argument prototype would still apply.  */
20157 131 jeremybenn
#ifdef __cplusplus
20158
extern "C"
20159
#endif
20160
char $ac_func ();
20161
/* The GNU C library defines this for functions which it implements
20162
    to always fail with ENOSYS.  Some functions are actually named
20163
    something starting with __ and the normal name is an alias.  */
20164 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20165 131 jeremybenn
choke me
20166
#endif
20167
 
20168
int
20169
main ()
20170
{
20171 213 jeremybenn
return $ac_func ();
20172 131 jeremybenn
  ;
20173
  return 0;
20174
}
20175
_ACEOF
20176
rm -f conftest.$ac_objext conftest$ac_exeext
20177 213 jeremybenn
if { (ac_try="$ac_link"
20178
case "(($ac_try" in
20179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180
  *) ac_try_echo=$ac_try;;
20181
esac
20182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183
$as_echo "$ac_try_echo") >&5
20184
  (eval "$ac_link") 2>conftest.er1
20185 131 jeremybenn
  ac_status=$?
20186
  grep -v '^ *+' conftest.er1 >conftest.err
20187
  rm -f conftest.er1
20188
  cat conftest.err >&5
20189 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190
  (exit $ac_status); } && {
20191
         test -z "$ac_c_werror_flag" ||
20192
         test ! -s conftest.err
20193
       } && test -s conftest$ac_exeext && {
20194
         test "$cross_compiling" = yes ||
20195
         $as_test_x conftest$ac_exeext
20196
       }; then
20197 131 jeremybenn
  eval "$as_ac_var=yes"
20198
else
20199 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20200 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20201
 
20202 213 jeremybenn
        eval "$as_ac_var=no"
20203 131 jeremybenn
fi
20204 213 jeremybenn
 
20205
rm -rf conftest.dSYM
20206
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20208
fi
20209 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20210
                 $as_echo "$as_val"'`
20211
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20212
$as_echo "$ac_res" >&6; }
20213
as_val=`eval 'as_val=${'$as_ac_var'}
20214
                 $as_echo "$as_val"'`
20215
   if test "x$as_val" = x""yes; then
20216 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20217 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20218 131 jeremybenn
_ACEOF
20219
 
20220
fi
20221
done
20222
 
20223
 
20224
for ac_func in socketpair
20225
do
20226 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20227
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20228
$as_echo_n "checking for $ac_func... " >&6; }
20229
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20230
  $as_echo_n "(cached) " >&6
20231 131 jeremybenn
else
20232
  cat >conftest.$ac_ext <<_ACEOF
20233
/* confdefs.h.  */
20234
_ACEOF
20235
cat confdefs.h >>conftest.$ac_ext
20236
cat >>conftest.$ac_ext <<_ACEOF
20237
/* end confdefs.h.  */
20238
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20239
   For example, HP-UX 11i  declares gettimeofday.  */
20240
#define $ac_func innocuous_$ac_func
20241
 
20242
/* System header to define __stub macros and hopefully few prototypes,
20243
    which can conflict with char $ac_func (); below.
20244
    Prefer  to  if __STDC__ is defined, since
20245
     exists even on freestanding compilers.  */
20246
 
20247
#ifdef __STDC__
20248
# include 
20249
#else
20250
# include 
20251
#endif
20252
 
20253
#undef $ac_func
20254
 
20255 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20256
   Use char because int might match the return type of a GCC
20257
   builtin and then its argument prototype would still apply.  */
20258 131 jeremybenn
#ifdef __cplusplus
20259
extern "C"
20260
#endif
20261
char $ac_func ();
20262
/* The GNU C library defines this for functions which it implements
20263
    to always fail with ENOSYS.  Some functions are actually named
20264
    something starting with __ and the normal name is an alias.  */
20265 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20266 131 jeremybenn
choke me
20267
#endif
20268
 
20269
int
20270
main ()
20271
{
20272 213 jeremybenn
return $ac_func ();
20273 131 jeremybenn
  ;
20274
  return 0;
20275
}
20276
_ACEOF
20277
rm -f conftest.$ac_objext conftest$ac_exeext
20278 213 jeremybenn
if { (ac_try="$ac_link"
20279
case "(($ac_try" in
20280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281
  *) ac_try_echo=$ac_try;;
20282
esac
20283
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284
$as_echo "$ac_try_echo") >&5
20285
  (eval "$ac_link") 2>conftest.er1
20286 131 jeremybenn
  ac_status=$?
20287
  grep -v '^ *+' conftest.er1 >conftest.err
20288
  rm -f conftest.er1
20289
  cat conftest.err >&5
20290 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291
  (exit $ac_status); } && {
20292
         test -z "$ac_c_werror_flag" ||
20293
         test ! -s conftest.err
20294
       } && test -s conftest$ac_exeext && {
20295
         test "$cross_compiling" = yes ||
20296
         $as_test_x conftest$ac_exeext
20297
       }; then
20298 131 jeremybenn
  eval "$as_ac_var=yes"
20299
else
20300 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20301 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20302
 
20303 213 jeremybenn
        eval "$as_ac_var=no"
20304 131 jeremybenn
fi
20305 213 jeremybenn
 
20306
rm -rf conftest.dSYM
20307
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20309
fi
20310 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20311
                 $as_echo "$as_val"'`
20312
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20313
$as_echo "$ac_res" >&6; }
20314
as_val=`eval 'as_val=${'$as_ac_var'}
20315
                 $as_echo "$as_val"'`
20316
   if test "x$as_val" = x""yes; then
20317 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20318 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20319 131 jeremybenn
_ACEOF
20320
 
20321
fi
20322
done
20323
 
20324
 
20325
for ac_func in syscall
20326
do
20327 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20328
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20329
$as_echo_n "checking for $ac_func... " >&6; }
20330
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20331
  $as_echo_n "(cached) " >&6
20332 131 jeremybenn
else
20333
  cat >conftest.$ac_ext <<_ACEOF
20334
/* confdefs.h.  */
20335
_ACEOF
20336
cat confdefs.h >>conftest.$ac_ext
20337
cat >>conftest.$ac_ext <<_ACEOF
20338
/* end confdefs.h.  */
20339
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20340
   For example, HP-UX 11i  declares gettimeofday.  */
20341
#define $ac_func innocuous_$ac_func
20342
 
20343
/* System header to define __stub macros and hopefully few prototypes,
20344
    which can conflict with char $ac_func (); below.
20345
    Prefer  to  if __STDC__ is defined, since
20346
     exists even on freestanding compilers.  */
20347
 
20348
#ifdef __STDC__
20349
# include 
20350
#else
20351
# include 
20352
#endif
20353
 
20354
#undef $ac_func
20355
 
20356 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20357
   Use char because int might match the return type of a GCC
20358
   builtin and then its argument prototype would still apply.  */
20359 131 jeremybenn
#ifdef __cplusplus
20360
extern "C"
20361
#endif
20362
char $ac_func ();
20363
/* The GNU C library defines this for functions which it implements
20364
    to always fail with ENOSYS.  Some functions are actually named
20365
    something starting with __ and the normal name is an alias.  */
20366 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20367 131 jeremybenn
choke me
20368
#endif
20369
 
20370
int
20371
main ()
20372
{
20373 213 jeremybenn
return $ac_func ();
20374 131 jeremybenn
  ;
20375
  return 0;
20376
}
20377
_ACEOF
20378
rm -f conftest.$ac_objext conftest$ac_exeext
20379 213 jeremybenn
if { (ac_try="$ac_link"
20380
case "(($ac_try" in
20381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382
  *) ac_try_echo=$ac_try;;
20383
esac
20384
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20385
$as_echo "$ac_try_echo") >&5
20386
  (eval "$ac_link") 2>conftest.er1
20387 131 jeremybenn
  ac_status=$?
20388
  grep -v '^ *+' conftest.er1 >conftest.err
20389
  rm -f conftest.er1
20390
  cat conftest.err >&5
20391 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392
  (exit $ac_status); } && {
20393
         test -z "$ac_c_werror_flag" ||
20394
         test ! -s conftest.err
20395
       } && test -s conftest$ac_exeext && {
20396
         test "$cross_compiling" = yes ||
20397
         $as_test_x conftest$ac_exeext
20398
       }; then
20399 131 jeremybenn
  eval "$as_ac_var=yes"
20400
else
20401 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20402 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20403
 
20404 213 jeremybenn
        eval "$as_ac_var=no"
20405 131 jeremybenn
fi
20406 213 jeremybenn
 
20407
rm -rf conftest.dSYM
20408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20409 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20410
fi
20411 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20412
                 $as_echo "$as_val"'`
20413
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20414
$as_echo "$ac_res" >&6; }
20415
as_val=`eval 'as_val=${'$as_ac_var'}
20416
                 $as_echo "$as_val"'`
20417
   if test "x$as_val" = x""yes; then
20418 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20419 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20420 131 jeremybenn
_ACEOF
20421
 
20422
fi
20423
done
20424
 
20425
 
20426
for ac_func in ttrace
20427
do
20428 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20429
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20430
$as_echo_n "checking for $ac_func... " >&6; }
20431
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20432
  $as_echo_n "(cached) " >&6
20433 131 jeremybenn
else
20434
  cat >conftest.$ac_ext <<_ACEOF
20435
/* confdefs.h.  */
20436
_ACEOF
20437
cat confdefs.h >>conftest.$ac_ext
20438
cat >>conftest.$ac_ext <<_ACEOF
20439
/* end confdefs.h.  */
20440
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20441
   For example, HP-UX 11i  declares gettimeofday.  */
20442
#define $ac_func innocuous_$ac_func
20443
 
20444
/* System header to define __stub macros and hopefully few prototypes,
20445
    which can conflict with char $ac_func (); below.
20446
    Prefer  to  if __STDC__ is defined, since
20447
     exists even on freestanding compilers.  */
20448
 
20449
#ifdef __STDC__
20450
# include 
20451
#else
20452
# include 
20453
#endif
20454
 
20455
#undef $ac_func
20456
 
20457 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20458
   Use char because int might match the return type of a GCC
20459
   builtin and then its argument prototype would still apply.  */
20460 131 jeremybenn
#ifdef __cplusplus
20461
extern "C"
20462
#endif
20463
char $ac_func ();
20464
/* The GNU C library defines this for functions which it implements
20465
    to always fail with ENOSYS.  Some functions are actually named
20466
    something starting with __ and the normal name is an alias.  */
20467 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20468 131 jeremybenn
choke me
20469
#endif
20470
 
20471
int
20472
main ()
20473
{
20474 213 jeremybenn
return $ac_func ();
20475 131 jeremybenn
  ;
20476
  return 0;
20477
}
20478
_ACEOF
20479
rm -f conftest.$ac_objext conftest$ac_exeext
20480 213 jeremybenn
if { (ac_try="$ac_link"
20481
case "(($ac_try" in
20482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483
  *) ac_try_echo=$ac_try;;
20484
esac
20485
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486
$as_echo "$ac_try_echo") >&5
20487
  (eval "$ac_link") 2>conftest.er1
20488 131 jeremybenn
  ac_status=$?
20489
  grep -v '^ *+' conftest.er1 >conftest.err
20490
  rm -f conftest.er1
20491
  cat conftest.err >&5
20492 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493
  (exit $ac_status); } && {
20494
         test -z "$ac_c_werror_flag" ||
20495
         test ! -s conftest.err
20496
       } && test -s conftest$ac_exeext && {
20497
         test "$cross_compiling" = yes ||
20498
         $as_test_x conftest$ac_exeext
20499
       }; then
20500 131 jeremybenn
  eval "$as_ac_var=yes"
20501
else
20502 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20503 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20504
 
20505 213 jeremybenn
        eval "$as_ac_var=no"
20506 131 jeremybenn
fi
20507 213 jeremybenn
 
20508
rm -rf conftest.dSYM
20509
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20511
fi
20512 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20513
                 $as_echo "$as_val"'`
20514
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20515
$as_echo "$ac_res" >&6; }
20516
as_val=`eval 'as_val=${'$as_ac_var'}
20517
                 $as_echo "$as_val"'`
20518
   if test "x$as_val" = x""yes; then
20519 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20520 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20521 131 jeremybenn
_ACEOF
20522
 
20523
fi
20524
done
20525
 
20526
 
20527
for ac_func in wborder
20528
do
20529 213 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20530
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20531
$as_echo_n "checking for $ac_func... " >&6; }
20532
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20533
  $as_echo_n "(cached) " >&6
20534 131 jeremybenn
else
20535
  cat >conftest.$ac_ext <<_ACEOF
20536
/* confdefs.h.  */
20537
_ACEOF
20538
cat confdefs.h >>conftest.$ac_ext
20539
cat >>conftest.$ac_ext <<_ACEOF
20540
/* end confdefs.h.  */
20541
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20542
   For example, HP-UX 11i  declares gettimeofday.  */
20543
#define $ac_func innocuous_$ac_func
20544
 
20545
/* System header to define __stub macros and hopefully few prototypes,
20546
    which can conflict with char $ac_func (); below.
20547
    Prefer  to  if __STDC__ is defined, since
20548
     exists even on freestanding compilers.  */
20549
 
20550
#ifdef __STDC__
20551
# include 
20552
#else
20553
# include 
20554
#endif
20555
 
20556
#undef $ac_func
20557
 
20558 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
20559
   Use char because int might match the return type of a GCC
20560
   builtin and then its argument prototype would still apply.  */
20561 131 jeremybenn
#ifdef __cplusplus
20562
extern "C"
20563
#endif
20564
char $ac_func ();
20565
/* The GNU C library defines this for functions which it implements
20566
    to always fail with ENOSYS.  Some functions are actually named
20567
    something starting with __ and the normal name is an alias.  */
20568 213 jeremybenn
#if defined __stub_$ac_func || defined __stub___$ac_func
20569 131 jeremybenn
choke me
20570
#endif
20571
 
20572
int
20573
main ()
20574
{
20575 213 jeremybenn
return $ac_func ();
20576 131 jeremybenn
  ;
20577
  return 0;
20578
}
20579
_ACEOF
20580
rm -f conftest.$ac_objext conftest$ac_exeext
20581 213 jeremybenn
if { (ac_try="$ac_link"
20582
case "(($ac_try" in
20583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584
  *) ac_try_echo=$ac_try;;
20585
esac
20586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20587
$as_echo "$ac_try_echo") >&5
20588
  (eval "$ac_link") 2>conftest.er1
20589 131 jeremybenn
  ac_status=$?
20590
  grep -v '^ *+' conftest.er1 >conftest.err
20591
  rm -f conftest.er1
20592
  cat conftest.err >&5
20593 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594
  (exit $ac_status); } && {
20595
         test -z "$ac_c_werror_flag" ||
20596
         test ! -s conftest.err
20597
       } && test -s conftest$ac_exeext && {
20598
         test "$cross_compiling" = yes ||
20599
         $as_test_x conftest$ac_exeext
20600
       }; then
20601 131 jeremybenn
  eval "$as_ac_var=yes"
20602
else
20603 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20604 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20605
 
20606 213 jeremybenn
        eval "$as_ac_var=no"
20607 131 jeremybenn
fi
20608 213 jeremybenn
 
20609
rm -rf conftest.dSYM
20610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20611 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
20612
fi
20613 213 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
20614
                 $as_echo "$as_val"'`
20615
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20616
$as_echo "$ac_res" >&6; }
20617
as_val=`eval 'as_val=${'$as_ac_var'}
20618
                 $as_echo "$as_val"'`
20619
   if test "x$as_val" = x""yes; then
20620 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
20621 213 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20622 131 jeremybenn
_ACEOF
20623
 
20624
fi
20625
done
20626
 
20627
 
20628
# Check the return and argument types of ptrace.  No canned test for
20629
# this, so roll our own.
20630
gdb_ptrace_headers='
20631
#if HAVE_SYS_TYPES_H
20632
# include 
20633
#endif
20634
#if HAVE_SYS_PTRACE_H
20635
# include 
20636
#endif
20637
#if HAVE_UNISTD_H
20638
# include 
20639
#endif
20640
'
20641
# There is no point in checking if we don't have a prototype.
20642 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20643
$as_echo_n "checking whether ptrace is declared... " >&6; }
20644 131 jeremybenn
if test "${ac_cv_have_decl_ptrace+set}" = set; then
20645 213 jeremybenn
  $as_echo_n "(cached) " >&6
20646 131 jeremybenn
else
20647
  cat >conftest.$ac_ext <<_ACEOF
20648
/* confdefs.h.  */
20649
_ACEOF
20650
cat confdefs.h >>conftest.$ac_ext
20651
cat >>conftest.$ac_ext <<_ACEOF
20652
/* end confdefs.h.  */
20653
$gdb_ptrace_headers
20654
 
20655
int
20656
main ()
20657
{
20658
#ifndef ptrace
20659 213 jeremybenn
  (void) ptrace;
20660 131 jeremybenn
#endif
20661
 
20662
  ;
20663
  return 0;
20664
}
20665
_ACEOF
20666
rm -f conftest.$ac_objext
20667 213 jeremybenn
if { (ac_try="$ac_compile"
20668
case "(($ac_try" in
20669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670
  *) ac_try_echo=$ac_try;;
20671
esac
20672
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20673
$as_echo "$ac_try_echo") >&5
20674
  (eval "$ac_compile") 2>conftest.er1
20675 131 jeremybenn
  ac_status=$?
20676
  grep -v '^ *+' conftest.er1 >conftest.err
20677
  rm -f conftest.er1
20678
  cat conftest.err >&5
20679 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680
  (exit $ac_status); } && {
20681
         test -z "$ac_c_werror_flag" ||
20682
         test ! -s conftest.err
20683
       } && test -s conftest.$ac_objext; then
20684 131 jeremybenn
  ac_cv_have_decl_ptrace=yes
20685
else
20686 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20687 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20688
 
20689 213 jeremybenn
        ac_cv_have_decl_ptrace=no
20690 131 jeremybenn
fi
20691 213 jeremybenn
 
20692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 131 jeremybenn
fi
20694 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20695
$as_echo "$ac_cv_have_decl_ptrace" >&6; }
20696
if test "x$ac_cv_have_decl_ptrace" = x""yes; then
20697 131 jeremybenn
 
20698
cat >>confdefs.h <<_ACEOF
20699
#define HAVE_DECL_PTRACE 1
20700
_ACEOF
20701
 
20702
 
20703
else
20704
  cat >>confdefs.h <<_ACEOF
20705
#define HAVE_DECL_PTRACE 0
20706
_ACEOF
20707
 
20708
 
20709
  : ${gdb_cv_func_ptrace_ret='int'}
20710
  : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20711
 
20712
fi
20713
 
20714
 
20715
# Check return type.
20716 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of ptrace" >&5
20717
$as_echo_n "checking return type of ptrace... " >&6; }
20718 131 jeremybenn
if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20719 213 jeremybenn
  $as_echo_n "(cached) " >&6
20720 131 jeremybenn
else
20721
  cat >conftest.$ac_ext <<_ACEOF
20722
/* confdefs.h.  */
20723
_ACEOF
20724
cat confdefs.h >>conftest.$ac_ext
20725
cat >>conftest.$ac_ext <<_ACEOF
20726
/* end confdefs.h.  */
20727
$gdb_ptrace_headers
20728
int
20729
main ()
20730
{
20731
extern int ptrace ();
20732
  ;
20733
  return 0;
20734
}
20735
_ACEOF
20736
rm -f conftest.$ac_objext
20737 213 jeremybenn
if { (ac_try="$ac_compile"
20738
case "(($ac_try" in
20739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740
  *) ac_try_echo=$ac_try;;
20741
esac
20742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20743
$as_echo "$ac_try_echo") >&5
20744
  (eval "$ac_compile") 2>conftest.er1
20745 131 jeremybenn
  ac_status=$?
20746
  grep -v '^ *+' conftest.er1 >conftest.err
20747
  rm -f conftest.er1
20748
  cat conftest.err >&5
20749 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750
  (exit $ac_status); } && {
20751
         test -z "$ac_c_werror_flag" ||
20752
         test ! -s conftest.err
20753
       } && test -s conftest.$ac_objext; then
20754 131 jeremybenn
  gdb_cv_func_ptrace_ret='int'
20755
else
20756 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20757 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20758
 
20759 213 jeremybenn
        gdb_cv_func_ptrace_ret='long'
20760 131 jeremybenn
fi
20761 213 jeremybenn
 
20762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 131 jeremybenn
fi
20764 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20765
$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
20766 131 jeremybenn
 
20767
cat >>confdefs.h <<_ACEOF
20768
#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20769
_ACEOF
20770
 
20771
# Check argument types.
20772 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20773
$as_echo_n "checking types of arguments for ptrace... " >&6; }
20774 131 jeremybenn
if test "${gdb_cv_func_ptrace_args+set}" = set; then
20775 213 jeremybenn
  $as_echo_n "(cached) " >&6
20776 131 jeremybenn
else
20777
 
20778
for gdb_arg1 in 'int' 'long'; do
20779
 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20780
  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20781
   for gdb_arg4 in 'int' 'long'; do
20782
     cat >conftest.$ac_ext <<_ACEOF
20783
/* confdefs.h.  */
20784
_ACEOF
20785
cat confdefs.h >>conftest.$ac_ext
20786
cat >>conftest.$ac_ext <<_ACEOF
20787
/* end confdefs.h.  */
20788
$gdb_ptrace_headers
20789
int
20790
main ()
20791
{
20792
 
20793
extern $gdb_cv_func_ptrace_ret
20794
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20795
 
20796
  ;
20797
  return 0;
20798
}
20799
_ACEOF
20800
rm -f conftest.$ac_objext
20801 213 jeremybenn
if { (ac_try="$ac_compile"
20802
case "(($ac_try" in
20803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804
  *) ac_try_echo=$ac_try;;
20805
esac
20806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20807
$as_echo "$ac_try_echo") >&5
20808
  (eval "$ac_compile") 2>conftest.er1
20809 131 jeremybenn
  ac_status=$?
20810
  grep -v '^ *+' conftest.er1 >conftest.err
20811
  rm -f conftest.er1
20812
  cat conftest.err >&5
20813 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814
  (exit $ac_status); } && {
20815
         test -z "$ac_c_werror_flag" ||
20816
         test ! -s conftest.err
20817
       } && test -s conftest.$ac_objext; then
20818 131 jeremybenn
  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20819
    break 4;
20820
else
20821 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20822 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20823
 
20824 213 jeremybenn
 
20825 131 jeremybenn
fi
20826 213 jeremybenn
 
20827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828 131 jeremybenn
    for gdb_arg5 in 'int *' 'int' 'long'; do
20829
     cat >conftest.$ac_ext <<_ACEOF
20830
/* confdefs.h.  */
20831
_ACEOF
20832
cat confdefs.h >>conftest.$ac_ext
20833
cat >>conftest.$ac_ext <<_ACEOF
20834
/* end confdefs.h.  */
20835
$gdb_ptrace_headers
20836
int
20837
main ()
20838
{
20839
 
20840
extern $gdb_cv_func_ptrace_ret
20841
  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20842
 
20843
  ;
20844
  return 0;
20845
}
20846
_ACEOF
20847
rm -f conftest.$ac_objext
20848 213 jeremybenn
if { (ac_try="$ac_compile"
20849
case "(($ac_try" in
20850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851
  *) ac_try_echo=$ac_try;;
20852
esac
20853
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854
$as_echo "$ac_try_echo") >&5
20855
  (eval "$ac_compile") 2>conftest.er1
20856 131 jeremybenn
  ac_status=$?
20857
  grep -v '^ *+' conftest.er1 >conftest.err
20858
  rm -f conftest.er1
20859
  cat conftest.err >&5
20860 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861
  (exit $ac_status); } && {
20862
         test -z "$ac_c_werror_flag" ||
20863
         test ! -s conftest.err
20864
       } && test -s conftest.$ac_objext; then
20865 131 jeremybenn
 
20866
gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20867
    break 5;
20868
else
20869 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
20870 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20871
 
20872 213 jeremybenn
 
20873 131 jeremybenn
fi
20874 213 jeremybenn
 
20875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 131 jeremybenn
    done
20877
   done
20878
  done
20879
 done
20880
done
20881
# Provide a safe default value.
20882
: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20883
 
20884
fi
20885 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20886
$as_echo "$gdb_cv_func_ptrace_args" >&6; }
20887 131 jeremybenn
ac_save_IFS=$IFS; IFS=','
20888
set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20889
IFS=$ac_save_IFS
20890
shift
20891
 
20892
cat >>confdefs.h <<_ACEOF
20893
#define PTRACE_TYPE_ARG3 $3
20894
_ACEOF
20895
 
20896
if test -n "$5"; then
20897
 
20898
cat >>confdefs.h <<_ACEOF
20899
#define PTRACE_TYPE_ARG5 $5
20900
_ACEOF
20901
 
20902
fi
20903
 
20904
if test "$cross_compiling" = no; then
20905 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20906
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
20907 131 jeremybenn
if test "${ac_cv_func_setpgrp_void+set}" = set; then
20908 213 jeremybenn
  $as_echo_n "(cached) " >&6
20909 131 jeremybenn
else
20910
  if test "$cross_compiling" = yes; then
20911 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20912
$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20913 131 jeremybenn
   { (exit 1); exit 1; }; }
20914
else
20915
  cat >conftest.$ac_ext <<_ACEOF
20916
/* confdefs.h.  */
20917
_ACEOF
20918
cat confdefs.h >>conftest.$ac_ext
20919
cat >>conftest.$ac_ext <<_ACEOF
20920
/* end confdefs.h.  */
20921 213 jeremybenn
$ac_includes_default
20922 131 jeremybenn
int
20923
main ()
20924
{
20925
/* If this system has a BSD-style setpgrp which takes arguments,
20926
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20927
  exit successfully. */
20928 213 jeremybenn
  return setpgrp (1,1) != -1;
20929 131 jeremybenn
  ;
20930
  return 0;
20931
}
20932
_ACEOF
20933
rm -f conftest$ac_exeext
20934 213 jeremybenn
if { (ac_try="$ac_link"
20935
case "(($ac_try" in
20936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937
  *) ac_try_echo=$ac_try;;
20938
esac
20939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20940
$as_echo "$ac_try_echo") >&5
20941
  (eval "$ac_link") 2>&5
20942 131 jeremybenn
  ac_status=$?
20943 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20945 213 jeremybenn
  { (case "(($ac_try" in
20946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947
  *) ac_try_echo=$ac_try;;
20948
esac
20949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20950
$as_echo "$ac_try_echo") >&5
20951
  (eval "$ac_try") 2>&5
20952 131 jeremybenn
  ac_status=$?
20953 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 131 jeremybenn
  (exit $ac_status); }; }; then
20955
  ac_cv_func_setpgrp_void=no
20956
else
20957 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
20958
$as_echo "$as_me: failed program was:" >&5
20959 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
20960
 
20961
( exit $ac_status )
20962
ac_cv_func_setpgrp_void=yes
20963
fi
20964 213 jeremybenn
rm -rf conftest.dSYM
20965
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20966 131 jeremybenn
fi
20967 213 jeremybenn
 
20968
 
20969 131 jeremybenn
fi
20970 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20971
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
20972 131 jeremybenn
if test $ac_cv_func_setpgrp_void = yes; then
20973
 
20974
cat >>confdefs.h <<\_ACEOF
20975
#define SETPGRP_VOID 1
20976
_ACEOF
20977
 
20978
fi
20979
 
20980
else
20981 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20982
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
20983 131 jeremybenn
if test "${ac_cv_func_setpgrp_void+set}" = set; then
20984 213 jeremybenn
  $as_echo_n "(cached) " >&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
#include 
20994
 
20995
int
20996
main ()
20997
{
20998
 
20999
  if (setpgrp(1,1) == -1)
21000
    exit (0);
21001
  else
21002
    exit (1);
21003
 
21004
  ;
21005
  return 0;
21006
}
21007
_ACEOF
21008
rm -f conftest.$ac_objext
21009 213 jeremybenn
if { (ac_try="$ac_compile"
21010
case "(($ac_try" in
21011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012
  *) ac_try_echo=$ac_try;;
21013
esac
21014
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21015
$as_echo "$ac_try_echo") >&5
21016
  (eval "$ac_compile") 2>conftest.er1
21017 131 jeremybenn
  ac_status=$?
21018
  grep -v '^ *+' conftest.er1 >conftest.err
21019
  rm -f conftest.er1
21020
  cat conftest.err >&5
21021 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022
  (exit $ac_status); } && {
21023
         test -z "$ac_c_werror_flag" ||
21024
         test ! -s conftest.err
21025
       } && test -s conftest.$ac_objext; then
21026 131 jeremybenn
  ac_cv_func_setpgrp_void=no
21027
else
21028 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21029 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21030
 
21031 213 jeremybenn
        ac_cv_func_setpgrp_void=yes
21032 131 jeremybenn
fi
21033 213 jeremybenn
 
21034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 131 jeremybenn
fi
21036 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21037
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
21038 131 jeremybenn
if test $ac_cv_func_setpgrp_void = yes; then
21039
  cat >>confdefs.h <<\_ACEOF
21040
#define SETPGRP_VOID 1
21041
_ACEOF
21042
 
21043
fi
21044
fi
21045
 
21046
# Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
21047
# since sigsetjmp might only be defined as a macro.
21048 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21049
$as_echo_n "checking for sigsetjmp... " >&6; }
21050 131 jeremybenn
if test "${gdb_cv_func_sigsetjmp+set}" = set; then
21051 213 jeremybenn
  $as_echo_n "(cached) " >&6
21052 131 jeremybenn
else
21053
  cat >conftest.$ac_ext <<_ACEOF
21054
/* confdefs.h.  */
21055
_ACEOF
21056
cat confdefs.h >>conftest.$ac_ext
21057
cat >>conftest.$ac_ext <<_ACEOF
21058
/* end confdefs.h.  */
21059
 
21060
#include 
21061
 
21062
int
21063
main ()
21064
{
21065
sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21066
  ;
21067
  return 0;
21068
}
21069
_ACEOF
21070
rm -f conftest.$ac_objext
21071 213 jeremybenn
if { (ac_try="$ac_compile"
21072
case "(($ac_try" in
21073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074
  *) ac_try_echo=$ac_try;;
21075
esac
21076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21077
$as_echo "$ac_try_echo") >&5
21078
  (eval "$ac_compile") 2>conftest.er1
21079 131 jeremybenn
  ac_status=$?
21080
  grep -v '^ *+' conftest.er1 >conftest.err
21081
  rm -f conftest.er1
21082
  cat conftest.err >&5
21083 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084
  (exit $ac_status); } && {
21085
         test -z "$ac_c_werror_flag" ||
21086
         test ! -s conftest.err
21087
       } && test -s conftest.$ac_objext; then
21088 131 jeremybenn
  gdb_cv_func_sigsetjmp=yes
21089
else
21090 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21091 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21092
 
21093 213 jeremybenn
        gdb_cv_func_sigsetjmp=no
21094 131 jeremybenn
fi
21095 213 jeremybenn
 
21096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 131 jeremybenn
fi
21098 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21099
$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
21100 131 jeremybenn
if test $gdb_cv_func_sigsetjmp = yes; then
21101
 
21102
cat >>confdefs.h <<\_ACEOF
21103
#define HAVE_SIGSETJMP 1
21104
_ACEOF
21105
 
21106
fi
21107
 
21108
# Assume we'll default to using the included libiberty regex.
21109
gdb_use_included_regex=yes
21110
 
21111
# However, if the system regex is GNU regex, then default to *not*
21112
# using the included regex.
21113 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU regex" >&5
21114
$as_echo_n "checking for GNU regex... " >&6; }
21115 131 jeremybenn
if test "${gdb_cv_have_gnu_regex+set}" = set; then
21116 213 jeremybenn
  $as_echo_n "(cached) " >&6
21117 131 jeremybenn
else
21118
  cat >conftest.$ac_ext <<_ACEOF
21119
/* confdefs.h.  */
21120
_ACEOF
21121
cat confdefs.h >>conftest.$ac_ext
21122
cat >>conftest.$ac_ext <<_ACEOF
21123
/* end confdefs.h.  */
21124
#include 
21125
int
21126
main ()
21127
{
21128
#define REGEX_INTERFACE_VERSION 1
21129
#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21130
# error "Version mismatch"
21131
#endif
21132
  ;
21133
  return 0;
21134
}
21135
_ACEOF
21136
rm -f conftest.$ac_objext
21137 213 jeremybenn
if { (ac_try="$ac_compile"
21138
case "(($ac_try" in
21139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140
  *) ac_try_echo=$ac_try;;
21141
esac
21142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21143
$as_echo "$ac_try_echo") >&5
21144
  (eval "$ac_compile") 2>conftest.er1
21145 131 jeremybenn
  ac_status=$?
21146
  grep -v '^ *+' conftest.er1 >conftest.err
21147
  rm -f conftest.er1
21148
  cat conftest.err >&5
21149 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150
  (exit $ac_status); } && {
21151
         test -z "$ac_c_werror_flag" ||
21152
         test ! -s conftest.err
21153
       } && test -s conftest.$ac_objext; then
21154 131 jeremybenn
  gdb_cv_have_gnu_regex=yes
21155
else
21156 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21157 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21158
 
21159 213 jeremybenn
        gdb_cv_have_gnu_regex=no
21160 131 jeremybenn
fi
21161 213 jeremybenn
 
21162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163 131 jeremybenn
fi
21164 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21165
$as_echo "$gdb_cv_have_gnu_regex" >&6; }
21166 131 jeremybenn
if test $gdb_cv_have_gnu_regex = yes; then
21167
  gdb_use_included_regex=no
21168
fi
21169
 
21170
 
21171 213 jeremybenn
# Check whether --with-included-regex was given.
21172 131 jeremybenn
if test "${with_included_regex+set}" = set; then
21173 213 jeremybenn
  withval=$with_included_regex; gdb_with_regex=$withval
21174 131 jeremybenn
else
21175
  gdb_with_regex=$gdb_use_included_regex
21176 213 jeremybenn
fi
21177
 
21178 131 jeremybenn
if test "$gdb_with_regex" = yes; then
21179
 
21180
cat >>confdefs.h <<\_ACEOF
21181
#define USE_INCLUDED_REGEX 1
21182
_ACEOF
21183
 
21184
fi
21185
 
21186
# Check if  defines `struct thread' with a td_pcb member.
21187 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21188
$as_echo_n "checking for struct thread.td_pcb... " >&6; }
21189 131 jeremybenn
if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21190 213 jeremybenn
  $as_echo_n "(cached) " >&6
21191 131 jeremybenn
else
21192
  cat >conftest.$ac_ext <<_ACEOF
21193
/* confdefs.h.  */
21194
_ACEOF
21195
cat confdefs.h >>conftest.$ac_ext
21196
cat >>conftest.$ac_ext <<_ACEOF
21197
/* end confdefs.h.  */
21198
#include 
21199
#include 
21200
 
21201
 
21202
int
21203
main ()
21204
{
21205
static struct thread ac_aggr;
21206
if (ac_aggr.td_pcb)
21207
return 0;
21208
  ;
21209
  return 0;
21210
}
21211
_ACEOF
21212
rm -f conftest.$ac_objext
21213 213 jeremybenn
if { (ac_try="$ac_compile"
21214
case "(($ac_try" in
21215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216
  *) ac_try_echo=$ac_try;;
21217
esac
21218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21219
$as_echo "$ac_try_echo") >&5
21220
  (eval "$ac_compile") 2>conftest.er1
21221 131 jeremybenn
  ac_status=$?
21222
  grep -v '^ *+' conftest.er1 >conftest.err
21223
  rm -f conftest.er1
21224
  cat conftest.err >&5
21225 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226
  (exit $ac_status); } && {
21227
         test -z "$ac_c_werror_flag" ||
21228
         test ! -s conftest.err
21229
       } && test -s conftest.$ac_objext; then
21230 131 jeremybenn
  ac_cv_member_struct_thread_td_pcb=yes
21231
else
21232 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21233 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21234
 
21235 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
21236 131 jeremybenn
/* confdefs.h.  */
21237
_ACEOF
21238
cat confdefs.h >>conftest.$ac_ext
21239
cat >>conftest.$ac_ext <<_ACEOF
21240
/* end confdefs.h.  */
21241
#include 
21242
#include 
21243
 
21244
 
21245
int
21246
main ()
21247
{
21248
static struct thread ac_aggr;
21249
if (sizeof ac_aggr.td_pcb)
21250
return 0;
21251
  ;
21252
  return 0;
21253
}
21254
_ACEOF
21255
rm -f conftest.$ac_objext
21256 213 jeremybenn
if { (ac_try="$ac_compile"
21257
case "(($ac_try" in
21258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259
  *) ac_try_echo=$ac_try;;
21260
esac
21261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21262
$as_echo "$ac_try_echo") >&5
21263
  (eval "$ac_compile") 2>conftest.er1
21264 131 jeremybenn
  ac_status=$?
21265
  grep -v '^ *+' conftest.er1 >conftest.err
21266
  rm -f conftest.er1
21267
  cat conftest.err >&5
21268 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269
  (exit $ac_status); } && {
21270
         test -z "$ac_c_werror_flag" ||
21271
         test ! -s conftest.err
21272
       } && test -s conftest.$ac_objext; then
21273 131 jeremybenn
  ac_cv_member_struct_thread_td_pcb=yes
21274
else
21275 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21276 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21277
 
21278 213 jeremybenn
        ac_cv_member_struct_thread_td_pcb=no
21279 131 jeremybenn
fi
21280 213 jeremybenn
 
21281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282 131 jeremybenn
fi
21283 213 jeremybenn
 
21284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 131 jeremybenn
fi
21286 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21287
$as_echo "$ac_cv_member_struct_thread_td_pcb" >&6; }
21288
if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then
21289 131 jeremybenn
 
21290
cat >>confdefs.h <<_ACEOF
21291
#define HAVE_STRUCT_THREAD_TD_PCB 1
21292
_ACEOF
21293
 
21294
 
21295
fi
21296
 
21297
 
21298
# See if  defines `struct lwp`.
21299 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct lwp" >&5
21300
$as_echo_n "checking for struct lwp... " >&6; }
21301 131 jeremybenn
if test "${gdb_cv_struct_lwp+set}" = set; then
21302 213 jeremybenn
  $as_echo_n "(cached) " >&6
21303 131 jeremybenn
else
21304
  cat >conftest.$ac_ext <<_ACEOF
21305
/* confdefs.h.  */
21306
_ACEOF
21307
cat confdefs.h >>conftest.$ac_ext
21308
cat >>conftest.$ac_ext <<_ACEOF
21309
/* end confdefs.h.  */
21310
#include 
21311
#include 
21312
int
21313
main ()
21314
{
21315
struct lwp l;
21316
  ;
21317
  return 0;
21318
}
21319
_ACEOF
21320
rm -f conftest.$ac_objext
21321 213 jeremybenn
if { (ac_try="$ac_compile"
21322
case "(($ac_try" in
21323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324
  *) ac_try_echo=$ac_try;;
21325
esac
21326
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327
$as_echo "$ac_try_echo") >&5
21328
  (eval "$ac_compile") 2>conftest.er1
21329 131 jeremybenn
  ac_status=$?
21330
  grep -v '^ *+' conftest.er1 >conftest.err
21331
  rm -f conftest.er1
21332
  cat conftest.err >&5
21333 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334
  (exit $ac_status); } && {
21335
         test -z "$ac_c_werror_flag" ||
21336
         test ! -s conftest.err
21337
       } && test -s conftest.$ac_objext; then
21338 131 jeremybenn
  gdb_cv_struct_lwp=yes
21339
else
21340 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21341 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21342
 
21343 213 jeremybenn
        gdb_cv_struct_lwp=no
21344 131 jeremybenn
fi
21345 213 jeremybenn
 
21346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347 131 jeremybenn
fi
21348 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21349
$as_echo "$gdb_cv_struct_lwp" >&6; }
21350 131 jeremybenn
if test $gdb_cv_struct_lwp = yes; then
21351
 
21352
cat >>confdefs.h <<\_ACEOF
21353
#define HAVE_STRUCT_LWP 1
21354
_ACEOF
21355
 
21356
fi
21357
 
21358
# See if  degines `struct reg'.
21359 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21360
$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
21361 131 jeremybenn
if test "${gdb_cv_struct_reg+set}" = set; then
21362 213 jeremybenn
  $as_echo_n "(cached) " >&6
21363 131 jeremybenn
else
21364
  cat >conftest.$ac_ext <<_ACEOF
21365
/* confdefs.h.  */
21366
_ACEOF
21367
cat confdefs.h >>conftest.$ac_ext
21368
cat >>conftest.$ac_ext <<_ACEOF
21369
/* end confdefs.h.  */
21370
#include 
21371
#include 
21372
int
21373
main ()
21374
{
21375
struct reg r;
21376
  ;
21377
  return 0;
21378
}
21379
_ACEOF
21380
rm -f conftest.$ac_objext
21381 213 jeremybenn
if { (ac_try="$ac_compile"
21382
case "(($ac_try" in
21383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384
  *) ac_try_echo=$ac_try;;
21385
esac
21386
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21387
$as_echo "$ac_try_echo") >&5
21388
  (eval "$ac_compile") 2>conftest.er1
21389 131 jeremybenn
  ac_status=$?
21390
  grep -v '^ *+' conftest.er1 >conftest.err
21391
  rm -f conftest.er1
21392
  cat conftest.err >&5
21393 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394
  (exit $ac_status); } && {
21395
         test -z "$ac_c_werror_flag" ||
21396
         test ! -s conftest.err
21397
       } && test -s conftest.$ac_objext; then
21398 131 jeremybenn
  gdb_cv_struct_reg=yes
21399
else
21400 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21401 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21402
 
21403 213 jeremybenn
        gdb_cv_struct_reg=no
21404 131 jeremybenn
fi
21405 213 jeremybenn
 
21406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 131 jeremybenn
fi
21408 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21409
$as_echo "$gdb_cv_struct_reg" >&6; }
21410 131 jeremybenn
if test $gdb_cv_struct_reg = yes; then
21411
 
21412
cat >>confdefs.h <<\_ACEOF
21413
#define HAVE_STRUCT_REG 1
21414
_ACEOF
21415
 
21416
fi
21417
 
21418
# See if  supports the %fs and %gs i386 segment registers.
21419
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21420 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21421
$as_echo_n "checking for struct reg.r_fs... " >&6; }
21422 131 jeremybenn
if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21423 213 jeremybenn
  $as_echo_n "(cached) " >&6
21424 131 jeremybenn
else
21425
  cat >conftest.$ac_ext <<_ACEOF
21426
/* confdefs.h.  */
21427
_ACEOF
21428
cat confdefs.h >>conftest.$ac_ext
21429
cat >>conftest.$ac_ext <<_ACEOF
21430
/* end confdefs.h.  */
21431
#include 
21432
 
21433
int
21434
main ()
21435
{
21436
static struct reg ac_aggr;
21437
if (ac_aggr.r_fs)
21438
return 0;
21439
  ;
21440
  return 0;
21441
}
21442
_ACEOF
21443
rm -f conftest.$ac_objext
21444 213 jeremybenn
if { (ac_try="$ac_compile"
21445
case "(($ac_try" in
21446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447
  *) ac_try_echo=$ac_try;;
21448
esac
21449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450
$as_echo "$ac_try_echo") >&5
21451
  (eval "$ac_compile") 2>conftest.er1
21452 131 jeremybenn
  ac_status=$?
21453
  grep -v '^ *+' conftest.er1 >conftest.err
21454
  rm -f conftest.er1
21455
  cat conftest.err >&5
21456 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457
  (exit $ac_status); } && {
21458
         test -z "$ac_c_werror_flag" ||
21459
         test ! -s conftest.err
21460
       } && test -s conftest.$ac_objext; then
21461 131 jeremybenn
  ac_cv_member_struct_reg_r_fs=yes
21462
else
21463 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21464 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21465
 
21466 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
21467 131 jeremybenn
/* confdefs.h.  */
21468
_ACEOF
21469
cat confdefs.h >>conftest.$ac_ext
21470
cat >>conftest.$ac_ext <<_ACEOF
21471
/* end confdefs.h.  */
21472
#include 
21473
 
21474
int
21475
main ()
21476
{
21477
static struct reg ac_aggr;
21478
if (sizeof ac_aggr.r_fs)
21479
return 0;
21480
  ;
21481
  return 0;
21482
}
21483
_ACEOF
21484
rm -f conftest.$ac_objext
21485 213 jeremybenn
if { (ac_try="$ac_compile"
21486
case "(($ac_try" in
21487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488
  *) ac_try_echo=$ac_try;;
21489
esac
21490
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21491
$as_echo "$ac_try_echo") >&5
21492
  (eval "$ac_compile") 2>conftest.er1
21493 131 jeremybenn
  ac_status=$?
21494
  grep -v '^ *+' conftest.er1 >conftest.err
21495
  rm -f conftest.er1
21496
  cat conftest.err >&5
21497 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498
  (exit $ac_status); } && {
21499
         test -z "$ac_c_werror_flag" ||
21500
         test ! -s conftest.err
21501
       } && test -s conftest.$ac_objext; then
21502 131 jeremybenn
  ac_cv_member_struct_reg_r_fs=yes
21503
else
21504 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21505 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21506
 
21507 213 jeremybenn
        ac_cv_member_struct_reg_r_fs=no
21508 131 jeremybenn
fi
21509 213 jeremybenn
 
21510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 131 jeremybenn
fi
21512 213 jeremybenn
 
21513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514 131 jeremybenn
fi
21515 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21516
$as_echo "$ac_cv_member_struct_reg_r_fs" >&6; }
21517
if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then
21518 131 jeremybenn
 
21519
cat >>confdefs.h <<_ACEOF
21520
#define HAVE_STRUCT_REG_R_FS 1
21521
_ACEOF
21522
 
21523
 
21524
fi
21525 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21526
$as_echo_n "checking for struct reg.r_gs... " >&6; }
21527 131 jeremybenn
if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21528 213 jeremybenn
  $as_echo_n "(cached) " >&6
21529 131 jeremybenn
else
21530
  cat >conftest.$ac_ext <<_ACEOF
21531
/* confdefs.h.  */
21532
_ACEOF
21533
cat confdefs.h >>conftest.$ac_ext
21534
cat >>conftest.$ac_ext <<_ACEOF
21535
/* end confdefs.h.  */
21536
#include 
21537
 
21538
int
21539
main ()
21540
{
21541
static struct reg ac_aggr;
21542
if (ac_aggr.r_gs)
21543
return 0;
21544
  ;
21545
  return 0;
21546
}
21547
_ACEOF
21548
rm -f conftest.$ac_objext
21549 213 jeremybenn
if { (ac_try="$ac_compile"
21550
case "(($ac_try" in
21551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552
  *) ac_try_echo=$ac_try;;
21553
esac
21554
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21555
$as_echo "$ac_try_echo") >&5
21556
  (eval "$ac_compile") 2>conftest.er1
21557 131 jeremybenn
  ac_status=$?
21558
  grep -v '^ *+' conftest.er1 >conftest.err
21559
  rm -f conftest.er1
21560
  cat conftest.err >&5
21561 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562
  (exit $ac_status); } && {
21563
         test -z "$ac_c_werror_flag" ||
21564
         test ! -s conftest.err
21565
       } && test -s conftest.$ac_objext; then
21566 131 jeremybenn
  ac_cv_member_struct_reg_r_gs=yes
21567
else
21568 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21569 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21570
 
21571 213 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
21572 131 jeremybenn
/* confdefs.h.  */
21573
_ACEOF
21574
cat confdefs.h >>conftest.$ac_ext
21575
cat >>conftest.$ac_ext <<_ACEOF
21576
/* end confdefs.h.  */
21577
#include 
21578
 
21579
int
21580
main ()
21581
{
21582
static struct reg ac_aggr;
21583
if (sizeof ac_aggr.r_gs)
21584
return 0;
21585
  ;
21586
  return 0;
21587
}
21588
_ACEOF
21589
rm -f conftest.$ac_objext
21590 213 jeremybenn
if { (ac_try="$ac_compile"
21591
case "(($ac_try" in
21592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593
  *) ac_try_echo=$ac_try;;
21594
esac
21595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21596
$as_echo "$ac_try_echo") >&5
21597
  (eval "$ac_compile") 2>conftest.er1
21598 131 jeremybenn
  ac_status=$?
21599
  grep -v '^ *+' conftest.er1 >conftest.err
21600
  rm -f conftest.er1
21601
  cat conftest.err >&5
21602 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603
  (exit $ac_status); } && {
21604
         test -z "$ac_c_werror_flag" ||
21605
         test ! -s conftest.err
21606
       } && test -s conftest.$ac_objext; then
21607 131 jeremybenn
  ac_cv_member_struct_reg_r_gs=yes
21608
else
21609 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21610 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21611
 
21612 213 jeremybenn
        ac_cv_member_struct_reg_r_gs=no
21613 131 jeremybenn
fi
21614 213 jeremybenn
 
21615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 131 jeremybenn
fi
21617 213 jeremybenn
 
21618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21619 131 jeremybenn
fi
21620 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21621
$as_echo "$ac_cv_member_struct_reg_r_gs" >&6; }
21622
if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then
21623 131 jeremybenn
 
21624
cat >>confdefs.h <<_ACEOF
21625
#define HAVE_STRUCT_REG_R_GS 1
21626
_ACEOF
21627
 
21628
 
21629
fi
21630
 
21631
 
21632
# See if  provides the PTRACE_GETREGS request.
21633 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21634
$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
21635 131 jeremybenn
if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21636 213 jeremybenn
  $as_echo_n "(cached) " >&6
21637 131 jeremybenn
else
21638
  cat >conftest.$ac_ext <<_ACEOF
21639
/* confdefs.h.  */
21640
_ACEOF
21641
cat confdefs.h >>conftest.$ac_ext
21642
cat >>conftest.$ac_ext <<_ACEOF
21643
/* end confdefs.h.  */
21644
#include 
21645
int
21646
main ()
21647
{
21648
PTRACE_GETREGS;
21649
  ;
21650
  return 0;
21651
}
21652
_ACEOF
21653
rm -f conftest.$ac_objext
21654 213 jeremybenn
if { (ac_try="$ac_compile"
21655
case "(($ac_try" in
21656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657
  *) ac_try_echo=$ac_try;;
21658
esac
21659
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21660
$as_echo "$ac_try_echo") >&5
21661
  (eval "$ac_compile") 2>conftest.er1
21662 131 jeremybenn
  ac_status=$?
21663
  grep -v '^ *+' conftest.er1 >conftest.err
21664
  rm -f conftest.er1
21665
  cat conftest.err >&5
21666 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667
  (exit $ac_status); } && {
21668
         test -z "$ac_c_werror_flag" ||
21669
         test ! -s conftest.err
21670
       } && test -s conftest.$ac_objext; then
21671 131 jeremybenn
  gdb_cv_have_ptrace_getregs=yes
21672
else
21673 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21674 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21675
 
21676 213 jeremybenn
        gdb_cv_have_ptrace_getregs=no
21677 131 jeremybenn
fi
21678 213 jeremybenn
 
21679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 131 jeremybenn
fi
21681
 
21682 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21683
$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
21684 131 jeremybenn
if test $gdb_cv_have_ptrace_getregs = yes; then
21685
 
21686
cat >>confdefs.h <<\_ACEOF
21687
#define HAVE_PTRACE_GETREGS 1
21688
_ACEOF
21689
 
21690
fi
21691
 
21692
# See if  provides the PTRACE_GETFPXREGS request.
21693 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21694
$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
21695 131 jeremybenn
if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21696 213 jeremybenn
  $as_echo_n "(cached) " >&6
21697 131 jeremybenn
else
21698
  cat >conftest.$ac_ext <<_ACEOF
21699
/* confdefs.h.  */
21700
_ACEOF
21701
cat confdefs.h >>conftest.$ac_ext
21702
cat >>conftest.$ac_ext <<_ACEOF
21703
/* end confdefs.h.  */
21704
#include 
21705
int
21706
main ()
21707
{
21708
PTRACE_GETFPXREGS;
21709
  ;
21710
  return 0;
21711
}
21712
_ACEOF
21713
rm -f conftest.$ac_objext
21714 213 jeremybenn
if { (ac_try="$ac_compile"
21715
case "(($ac_try" in
21716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717
  *) ac_try_echo=$ac_try;;
21718
esac
21719
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21720
$as_echo "$ac_try_echo") >&5
21721
  (eval "$ac_compile") 2>conftest.er1
21722 131 jeremybenn
  ac_status=$?
21723
  grep -v '^ *+' conftest.er1 >conftest.err
21724
  rm -f conftest.er1
21725
  cat conftest.err >&5
21726 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727
  (exit $ac_status); } && {
21728
         test -z "$ac_c_werror_flag" ||
21729
         test ! -s conftest.err
21730
       } && test -s conftest.$ac_objext; then
21731 131 jeremybenn
  gdb_cv_have_ptrace_getfpxregs=yes
21732
else
21733 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21734 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21735
 
21736 213 jeremybenn
        gdb_cv_have_ptrace_getfpxregs=no
21737 131 jeremybenn
fi
21738 213 jeremybenn
 
21739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21740 131 jeremybenn
fi
21741
 
21742 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21743
$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
21744 131 jeremybenn
if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21745
 
21746
cat >>confdefs.h <<\_ACEOF
21747
#define HAVE_PTRACE_GETFPXREGS 1
21748
_ACEOF
21749
 
21750
fi
21751
 
21752
# See if  provides the PT_GETDBREGS request.
21753 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21754
$as_echo_n "checking for PT_GETDBREGS... " >&6; }
21755 131 jeremybenn
if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21756 213 jeremybenn
  $as_echo_n "(cached) " >&6
21757 131 jeremybenn
else
21758
  cat >conftest.$ac_ext <<_ACEOF
21759
/* confdefs.h.  */
21760
_ACEOF
21761
cat confdefs.h >>conftest.$ac_ext
21762
cat >>conftest.$ac_ext <<_ACEOF
21763
/* end confdefs.h.  */
21764
#include 
21765
#include 
21766
int
21767
main ()
21768
{
21769
PT_GETDBREGS;
21770
  ;
21771
  return 0;
21772
}
21773
_ACEOF
21774
rm -f conftest.$ac_objext
21775 213 jeremybenn
if { (ac_try="$ac_compile"
21776
case "(($ac_try" in
21777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778
  *) ac_try_echo=$ac_try;;
21779
esac
21780
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21781
$as_echo "$ac_try_echo") >&5
21782
  (eval "$ac_compile") 2>conftest.er1
21783 131 jeremybenn
  ac_status=$?
21784
  grep -v '^ *+' conftest.er1 >conftest.err
21785
  rm -f conftest.er1
21786
  cat conftest.err >&5
21787 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788
  (exit $ac_status); } && {
21789
         test -z "$ac_c_werror_flag" ||
21790
         test ! -s conftest.err
21791
       } && test -s conftest.$ac_objext; then
21792 131 jeremybenn
  gdb_cv_have_pt_getdbregs=yes
21793
else
21794 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21795 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21796
 
21797 213 jeremybenn
        gdb_cv_have_pt_getdbregs=no
21798 131 jeremybenn
fi
21799 213 jeremybenn
 
21800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 131 jeremybenn
fi
21802
 
21803 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21804
$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
21805 131 jeremybenn
if test $gdb_cv_have_pt_getdbregs = yes; then
21806
 
21807
cat >>confdefs.h <<\_ACEOF
21808
#define HAVE_PT_GETDBREGS 1
21809
_ACEOF
21810
 
21811
fi
21812
 
21813
# See if  provides the PT_GETXMMREGS request.
21814 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21815
$as_echo_n "checking for PT_GETXMMREGS... " >&6; }
21816 131 jeremybenn
if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21817 213 jeremybenn
  $as_echo_n "(cached) " >&6
21818 131 jeremybenn
else
21819
  cat >conftest.$ac_ext <<_ACEOF
21820
/* confdefs.h.  */
21821
_ACEOF
21822
cat confdefs.h >>conftest.$ac_ext
21823
cat >>conftest.$ac_ext <<_ACEOF
21824
/* end confdefs.h.  */
21825
#include 
21826
#include 
21827
int
21828
main ()
21829
{
21830
PT_GETXMMREGS;
21831
  ;
21832
  return 0;
21833
}
21834
_ACEOF
21835
rm -f conftest.$ac_objext
21836 213 jeremybenn
if { (ac_try="$ac_compile"
21837
case "(($ac_try" in
21838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839
  *) ac_try_echo=$ac_try;;
21840
esac
21841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21842
$as_echo "$ac_try_echo") >&5
21843
  (eval "$ac_compile") 2>conftest.er1
21844 131 jeremybenn
  ac_status=$?
21845
  grep -v '^ *+' conftest.er1 >conftest.err
21846
  rm -f conftest.er1
21847
  cat conftest.err >&5
21848 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849
  (exit $ac_status); } && {
21850
         test -z "$ac_c_werror_flag" ||
21851
         test ! -s conftest.err
21852
       } && test -s conftest.$ac_objext; then
21853 131 jeremybenn
  gdb_cv_have_pt_getxmmregs=yes
21854
else
21855 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21856 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21857
 
21858 213 jeremybenn
        gdb_cv_have_pt_getxmmregs=no
21859 131 jeremybenn
fi
21860 213 jeremybenn
 
21861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 131 jeremybenn
fi
21863
 
21864 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21865
$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
21866 131 jeremybenn
if test $gdb_cv_have_pt_getxmmregs = yes; then
21867
 
21868
cat >>confdefs.h <<\_ACEOF
21869
#define HAVE_PT_GETXMMREGS 1
21870
_ACEOF
21871
 
21872
fi
21873
 
21874
# Detect which type of /proc is in use, such as for Unixware or Solaris.
21875
 
21876
if test "${target}" = "${host}"; then
21877
  case "${host}" in
21878
  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21879
 
21880
cat >>confdefs.h <<\_ACEOF
21881
#define NEW_PROC_API 1
21882
_ACEOF
21883
 
21884
      ;;
21885
  *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21886
 
21887
cat >>confdefs.h <<\_ACEOF
21888
#define NEW_PROC_API 1
21889
_ACEOF
21890
 
21891
      ;;
21892
  mips-sgi-irix5*)
21893
      # Work around  needing _KMEMUSER problem on IRIX 5.
21894
 
21895
cat >>confdefs.h <<\_ACEOF
21896
#define _KMEMUSER 1
21897
_ACEOF
21898
 
21899
      ;;
21900
  esac
21901
fi
21902
 
21903
if test "$ac_cv_header_sys_procfs_h" = yes; then
21904 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21905
$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
21906 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21907 213 jeremybenn
  $as_echo_n "(cached) " >&6
21908 131 jeremybenn
else
21909
  cat >conftest.$ac_ext <<_ACEOF
21910
/* confdefs.h.  */
21911
_ACEOF
21912
cat confdefs.h >>conftest.$ac_ext
21913
cat >>conftest.$ac_ext <<_ACEOF
21914
/* end confdefs.h.  */
21915
 
21916
#define _SYSCALL32
21917
#include 
21918
int
21919
main ()
21920
{
21921
pstatus_t avar
21922
  ;
21923
  return 0;
21924
}
21925
_ACEOF
21926
rm -f conftest.$ac_objext
21927 213 jeremybenn
if { (ac_try="$ac_compile"
21928
case "(($ac_try" in
21929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930
  *) ac_try_echo=$ac_try;;
21931
esac
21932
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933
$as_echo "$ac_try_echo") >&5
21934
  (eval "$ac_compile") 2>conftest.er1
21935 131 jeremybenn
  ac_status=$?
21936
  grep -v '^ *+' conftest.er1 >conftest.err
21937
  rm -f conftest.er1
21938
  cat conftest.err >&5
21939 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940
  (exit $ac_status); } && {
21941
         test -z "$ac_c_werror_flag" ||
21942
         test ! -s conftest.err
21943
       } && test -s conftest.$ac_objext; then
21944 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
21945
else
21946 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
21947 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
21948
 
21949 213 jeremybenn
        bfd_cv_have_sys_procfs_type_pstatus_t=no
21950 131 jeremybenn
 
21951
fi
21952 213 jeremybenn
 
21953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21954 131 jeremybenn
fi
21955
 
21956
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21957
 
21958
cat >>confdefs.h <<\_ACEOF
21959
#define HAVE_PSTATUS_T 1
21960
_ACEOF
21961
 
21962
 fi
21963 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21964
$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
21965 131 jeremybenn
 
21966 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21967
$as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
21968 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21969 213 jeremybenn
  $as_echo_n "(cached) " >&6
21970 131 jeremybenn
else
21971
  cat >conftest.$ac_ext <<_ACEOF
21972
/* confdefs.h.  */
21973
_ACEOF
21974
cat confdefs.h >>conftest.$ac_ext
21975
cat >>conftest.$ac_ext <<_ACEOF
21976
/* end confdefs.h.  */
21977
 
21978
#define _SYSCALL32
21979
#include 
21980
int
21981
main ()
21982
{
21983
prrun_t avar
21984
  ;
21985
  return 0;
21986
}
21987
_ACEOF
21988
rm -f conftest.$ac_objext
21989 213 jeremybenn
if { (ac_try="$ac_compile"
21990
case "(($ac_try" in
21991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992
  *) ac_try_echo=$ac_try;;
21993
esac
21994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21995
$as_echo "$ac_try_echo") >&5
21996
  (eval "$ac_compile") 2>conftest.er1
21997 131 jeremybenn
  ac_status=$?
21998
  grep -v '^ *+' conftest.er1 >conftest.err
21999
  rm -f conftest.er1
22000
  cat conftest.err >&5
22001 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002
  (exit $ac_status); } && {
22003
         test -z "$ac_c_werror_flag" ||
22004
         test ! -s conftest.err
22005
       } && test -s conftest.$ac_objext; then
22006 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prrun_t=yes
22007
else
22008 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22009 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22010
 
22011 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prrun_t=no
22012 131 jeremybenn
 
22013
fi
22014 213 jeremybenn
 
22015
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22016 131 jeremybenn
fi
22017
 
22018
 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
22019
 
22020
cat >>confdefs.h <<\_ACEOF
22021
#define HAVE_PRRUN_T 1
22022
_ACEOF
22023
 
22024
 fi
22025 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22026
$as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
22027 131 jeremybenn
 
22028 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22029
$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
22030 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22031 213 jeremybenn
  $as_echo_n "(cached) " >&6
22032 131 jeremybenn
else
22033
  cat >conftest.$ac_ext <<_ACEOF
22034
/* confdefs.h.  */
22035
_ACEOF
22036
cat confdefs.h >>conftest.$ac_ext
22037
cat >>conftest.$ac_ext <<_ACEOF
22038
/* end confdefs.h.  */
22039
 
22040
#define _SYSCALL32
22041
#include 
22042
int
22043
main ()
22044
{
22045
gregset_t avar
22046
  ;
22047
  return 0;
22048
}
22049
_ACEOF
22050
rm -f conftest.$ac_objext
22051 213 jeremybenn
if { (ac_try="$ac_compile"
22052
case "(($ac_try" in
22053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054
  *) ac_try_echo=$ac_try;;
22055
esac
22056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22057
$as_echo "$ac_try_echo") >&5
22058
  (eval "$ac_compile") 2>conftest.er1
22059 131 jeremybenn
  ac_status=$?
22060
  grep -v '^ *+' conftest.er1 >conftest.err
22061
  rm -f conftest.er1
22062
  cat conftest.err >&5
22063 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064
  (exit $ac_status); } && {
22065
         test -z "$ac_c_werror_flag" ||
22066
         test ! -s conftest.err
22067
       } && test -s conftest.$ac_objext; then
22068 131 jeremybenn
  bfd_cv_have_sys_procfs_type_gregset_t=yes
22069
else
22070 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22071 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22072
 
22073 213 jeremybenn
        bfd_cv_have_sys_procfs_type_gregset_t=no
22074 131 jeremybenn
 
22075
fi
22076 213 jeremybenn
 
22077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 131 jeremybenn
fi
22079
 
22080
 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
22081
 
22082
cat >>confdefs.h <<\_ACEOF
22083
#define HAVE_GREGSET_T 1
22084
_ACEOF
22085
 
22086
 fi
22087 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22088
$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
22089 131 jeremybenn
 
22090 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22091
$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
22092 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22093 213 jeremybenn
  $as_echo_n "(cached) " >&6
22094 131 jeremybenn
else
22095
  cat >conftest.$ac_ext <<_ACEOF
22096
/* confdefs.h.  */
22097
_ACEOF
22098
cat confdefs.h >>conftest.$ac_ext
22099
cat >>conftest.$ac_ext <<_ACEOF
22100
/* end confdefs.h.  */
22101
 
22102
#define _SYSCALL32
22103
#include 
22104
int
22105
main ()
22106
{
22107
fpregset_t avar
22108
  ;
22109
  return 0;
22110
}
22111
_ACEOF
22112
rm -f conftest.$ac_objext
22113 213 jeremybenn
if { (ac_try="$ac_compile"
22114
case "(($ac_try" in
22115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116
  *) ac_try_echo=$ac_try;;
22117
esac
22118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22119
$as_echo "$ac_try_echo") >&5
22120
  (eval "$ac_compile") 2>conftest.er1
22121 131 jeremybenn
  ac_status=$?
22122
  grep -v '^ *+' conftest.er1 >conftest.err
22123
  rm -f conftest.er1
22124
  cat conftest.err >&5
22125 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126
  (exit $ac_status); } && {
22127
         test -z "$ac_c_werror_flag" ||
22128
         test ! -s conftest.err
22129
       } && test -s conftest.$ac_objext; then
22130 131 jeremybenn
  bfd_cv_have_sys_procfs_type_fpregset_t=yes
22131
else
22132 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22133 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22134
 
22135 213 jeremybenn
        bfd_cv_have_sys_procfs_type_fpregset_t=no
22136 131 jeremybenn
 
22137
fi
22138 213 jeremybenn
 
22139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 131 jeremybenn
fi
22141
 
22142
 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22143
 
22144
cat >>confdefs.h <<\_ACEOF
22145
#define HAVE_FPREGSET_T 1
22146
_ACEOF
22147
 
22148
 fi
22149 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22150
$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
22151 131 jeremybenn
 
22152 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22153
$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
22154 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22155 213 jeremybenn
  $as_echo_n "(cached) " >&6
22156 131 jeremybenn
else
22157
  cat >conftest.$ac_ext <<_ACEOF
22158
/* confdefs.h.  */
22159
_ACEOF
22160
cat confdefs.h >>conftest.$ac_ext
22161
cat >>conftest.$ac_ext <<_ACEOF
22162
/* end confdefs.h.  */
22163
 
22164
#define _SYSCALL32
22165
#include 
22166
int
22167
main ()
22168
{
22169
prgregset_t avar
22170
  ;
22171
  return 0;
22172
}
22173
_ACEOF
22174
rm -f conftest.$ac_objext
22175 213 jeremybenn
if { (ac_try="$ac_compile"
22176
case "(($ac_try" in
22177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178
  *) ac_try_echo=$ac_try;;
22179
esac
22180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22181
$as_echo "$ac_try_echo") >&5
22182
  (eval "$ac_compile") 2>conftest.er1
22183 131 jeremybenn
  ac_status=$?
22184
  grep -v '^ *+' conftest.er1 >conftest.err
22185
  rm -f conftest.er1
22186
  cat conftest.err >&5
22187 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188
  (exit $ac_status); } && {
22189
         test -z "$ac_c_werror_flag" ||
22190
         test ! -s conftest.err
22191
       } && test -s conftest.$ac_objext; then
22192 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prgregset_t=yes
22193
else
22194 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22195 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22196
 
22197 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prgregset_t=no
22198 131 jeremybenn
 
22199
fi
22200 213 jeremybenn
 
22201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 131 jeremybenn
fi
22203
 
22204
 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22205
 
22206
cat >>confdefs.h <<\_ACEOF
22207
#define HAVE_PRGREGSET_T 1
22208
_ACEOF
22209
 
22210
 fi
22211 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22212
$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
22213 131 jeremybenn
 
22214 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22215
$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
22216 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22217 213 jeremybenn
  $as_echo_n "(cached) " >&6
22218 131 jeremybenn
else
22219
  cat >conftest.$ac_ext <<_ACEOF
22220
/* confdefs.h.  */
22221
_ACEOF
22222
cat confdefs.h >>conftest.$ac_ext
22223
cat >>conftest.$ac_ext <<_ACEOF
22224
/* end confdefs.h.  */
22225
 
22226
#define _SYSCALL32
22227
#include 
22228
int
22229
main ()
22230
{
22231
prfpregset_t avar
22232
  ;
22233
  return 0;
22234
}
22235
_ACEOF
22236
rm -f conftest.$ac_objext
22237 213 jeremybenn
if { (ac_try="$ac_compile"
22238
case "(($ac_try" in
22239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240
  *) ac_try_echo=$ac_try;;
22241
esac
22242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22243
$as_echo "$ac_try_echo") >&5
22244
  (eval "$ac_compile") 2>conftest.er1
22245 131 jeremybenn
  ac_status=$?
22246
  grep -v '^ *+' conftest.er1 >conftest.err
22247
  rm -f conftest.er1
22248
  cat conftest.err >&5
22249 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250
  (exit $ac_status); } && {
22251
         test -z "$ac_c_werror_flag" ||
22252
         test ! -s conftest.err
22253
       } && test -s conftest.$ac_objext; then
22254 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22255
else
22256 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22257 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22258
 
22259 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prfpregset_t=no
22260 131 jeremybenn
 
22261
fi
22262 213 jeremybenn
 
22263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 131 jeremybenn
fi
22265
 
22266
 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22267
 
22268
cat >>confdefs.h <<\_ACEOF
22269
#define HAVE_PRFPREGSET_T 1
22270
_ACEOF
22271
 
22272
 fi
22273 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22274
$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
22275 131 jeremybenn
 
22276 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22277
$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
22278 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22279 213 jeremybenn
  $as_echo_n "(cached) " >&6
22280 131 jeremybenn
else
22281
  cat >conftest.$ac_ext <<_ACEOF
22282
/* confdefs.h.  */
22283
_ACEOF
22284
cat confdefs.h >>conftest.$ac_ext
22285
cat >>conftest.$ac_ext <<_ACEOF
22286
/* end confdefs.h.  */
22287
 
22288
#define _SYSCALL32
22289
#include 
22290
int
22291
main ()
22292
{
22293
prgregset32_t avar
22294
  ;
22295
  return 0;
22296
}
22297
_ACEOF
22298
rm -f conftest.$ac_objext
22299 213 jeremybenn
if { (ac_try="$ac_compile"
22300
case "(($ac_try" in
22301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302
  *) ac_try_echo=$ac_try;;
22303
esac
22304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305
$as_echo "$ac_try_echo") >&5
22306
  (eval "$ac_compile") 2>conftest.er1
22307 131 jeremybenn
  ac_status=$?
22308
  grep -v '^ *+' conftest.er1 >conftest.err
22309
  rm -f conftest.er1
22310
  cat conftest.err >&5
22311 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312
  (exit $ac_status); } && {
22313
         test -z "$ac_c_werror_flag" ||
22314
         test ! -s conftest.err
22315
       } && test -s conftest.$ac_objext; then
22316 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22317
else
22318 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22319 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22320
 
22321 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prgregset32_t=no
22322 131 jeremybenn
 
22323
fi
22324 213 jeremybenn
 
22325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 131 jeremybenn
fi
22327
 
22328
 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22329
 
22330
cat >>confdefs.h <<\_ACEOF
22331
#define HAVE_PRGREGSET32_T 1
22332
_ACEOF
22333
 
22334
 fi
22335 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22336
$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
22337 131 jeremybenn
 
22338 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22339
$as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
22340 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22341 213 jeremybenn
  $as_echo_n "(cached) " >&6
22342 131 jeremybenn
else
22343
  cat >conftest.$ac_ext <<_ACEOF
22344
/* confdefs.h.  */
22345
_ACEOF
22346
cat confdefs.h >>conftest.$ac_ext
22347
cat >>conftest.$ac_ext <<_ACEOF
22348
/* end confdefs.h.  */
22349
 
22350
#define _SYSCALL32
22351
#include 
22352
int
22353
main ()
22354
{
22355
prfpregset32_t avar
22356
  ;
22357
  return 0;
22358
}
22359
_ACEOF
22360
rm -f conftest.$ac_objext
22361 213 jeremybenn
if { (ac_try="$ac_compile"
22362
case "(($ac_try" in
22363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364
  *) ac_try_echo=$ac_try;;
22365
esac
22366
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367
$as_echo "$ac_try_echo") >&5
22368
  (eval "$ac_compile") 2>conftest.er1
22369 131 jeremybenn
  ac_status=$?
22370
  grep -v '^ *+' conftest.er1 >conftest.err
22371
  rm -f conftest.er1
22372
  cat conftest.err >&5
22373 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374
  (exit $ac_status); } && {
22375
         test -z "$ac_c_werror_flag" ||
22376
         test ! -s conftest.err
22377
       } && test -s conftest.$ac_objext; then
22378 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22379
else
22380 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22381 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22382
 
22383 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22384 131 jeremybenn
 
22385
fi
22386 213 jeremybenn
 
22387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 131 jeremybenn
fi
22389
 
22390
 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22391
 
22392
cat >>confdefs.h <<\_ACEOF
22393
#define HAVE_PRFPREGSET32_T 1
22394
_ACEOF
22395
 
22396
 fi
22397 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22398
$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
22399 131 jeremybenn
 
22400 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22401
$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
22402 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22403 213 jeremybenn
  $as_echo_n "(cached) " >&6
22404 131 jeremybenn
else
22405
  cat >conftest.$ac_ext <<_ACEOF
22406
/* confdefs.h.  */
22407
_ACEOF
22408
cat confdefs.h >>conftest.$ac_ext
22409
cat >>conftest.$ac_ext <<_ACEOF
22410
/* end confdefs.h.  */
22411
 
22412
#define _SYSCALL32
22413
#include 
22414
int
22415
main ()
22416
{
22417
lwpid_t avar
22418
  ;
22419
  return 0;
22420
}
22421
_ACEOF
22422
rm -f conftest.$ac_objext
22423 213 jeremybenn
if { (ac_try="$ac_compile"
22424
case "(($ac_try" in
22425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426
  *) ac_try_echo=$ac_try;;
22427
esac
22428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22429
$as_echo "$ac_try_echo") >&5
22430
  (eval "$ac_compile") 2>conftest.er1
22431 131 jeremybenn
  ac_status=$?
22432
  grep -v '^ *+' conftest.er1 >conftest.err
22433
  rm -f conftest.er1
22434
  cat conftest.err >&5
22435 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436
  (exit $ac_status); } && {
22437
         test -z "$ac_c_werror_flag" ||
22438
         test ! -s conftest.err
22439
       } && test -s conftest.$ac_objext; then
22440 131 jeremybenn
  bfd_cv_have_sys_procfs_type_lwpid_t=yes
22441
else
22442 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22443 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22444
 
22445 213 jeremybenn
        bfd_cv_have_sys_procfs_type_lwpid_t=no
22446 131 jeremybenn
 
22447
fi
22448 213 jeremybenn
 
22449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 131 jeremybenn
fi
22451
 
22452
 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22453
 
22454
cat >>confdefs.h <<\_ACEOF
22455
#define HAVE_LWPID_T 1
22456
_ACEOF
22457
 
22458
 fi
22459 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22460
$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
22461 131 jeremybenn
 
22462 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22463
$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
22464 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22465 213 jeremybenn
  $as_echo_n "(cached) " >&6
22466 131 jeremybenn
else
22467
  cat >conftest.$ac_ext <<_ACEOF
22468
/* confdefs.h.  */
22469
_ACEOF
22470
cat confdefs.h >>conftest.$ac_ext
22471
cat >>conftest.$ac_ext <<_ACEOF
22472
/* end confdefs.h.  */
22473
 
22474
#define _SYSCALL32
22475
#include 
22476
int
22477
main ()
22478
{
22479
psaddr_t avar
22480
  ;
22481
  return 0;
22482
}
22483
_ACEOF
22484
rm -f conftest.$ac_objext
22485 213 jeremybenn
if { (ac_try="$ac_compile"
22486
case "(($ac_try" in
22487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488
  *) ac_try_echo=$ac_try;;
22489
esac
22490
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22491
$as_echo "$ac_try_echo") >&5
22492
  (eval "$ac_compile") 2>conftest.er1
22493 131 jeremybenn
  ac_status=$?
22494
  grep -v '^ *+' conftest.er1 >conftest.err
22495
  rm -f conftest.er1
22496
  cat conftest.err >&5
22497 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498
  (exit $ac_status); } && {
22499
         test -z "$ac_c_werror_flag" ||
22500
         test ! -s conftest.err
22501
       } && test -s conftest.$ac_objext; then
22502 131 jeremybenn
  bfd_cv_have_sys_procfs_type_psaddr_t=yes
22503
else
22504 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22505 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22506
 
22507 213 jeremybenn
        bfd_cv_have_sys_procfs_type_psaddr_t=no
22508 131 jeremybenn
 
22509
fi
22510 213 jeremybenn
 
22511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 131 jeremybenn
fi
22513
 
22514
 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22515
 
22516
cat >>confdefs.h <<\_ACEOF
22517
#define HAVE_PSADDR_T 1
22518
_ACEOF
22519
 
22520
 fi
22521 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22522
$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
22523 131 jeremybenn
 
22524 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22525
$as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
22526 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22527 213 jeremybenn
  $as_echo_n "(cached) " >&6
22528 131 jeremybenn
else
22529
  cat >conftest.$ac_ext <<_ACEOF
22530
/* confdefs.h.  */
22531
_ACEOF
22532
cat confdefs.h >>conftest.$ac_ext
22533
cat >>conftest.$ac_ext <<_ACEOF
22534
/* end confdefs.h.  */
22535
 
22536
#define _SYSCALL32
22537
#include 
22538
int
22539
main ()
22540
{
22541
prsysent_t avar
22542
  ;
22543
  return 0;
22544
}
22545
_ACEOF
22546
rm -f conftest.$ac_objext
22547 213 jeremybenn
if { (ac_try="$ac_compile"
22548
case "(($ac_try" in
22549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550
  *) ac_try_echo=$ac_try;;
22551
esac
22552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22553
$as_echo "$ac_try_echo") >&5
22554
  (eval "$ac_compile") 2>conftest.er1
22555 131 jeremybenn
  ac_status=$?
22556
  grep -v '^ *+' conftest.er1 >conftest.err
22557
  rm -f conftest.er1
22558
  cat conftest.err >&5
22559 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560
  (exit $ac_status); } && {
22561
         test -z "$ac_c_werror_flag" ||
22562
         test ! -s conftest.err
22563
       } && test -s conftest.$ac_objext; then
22564 131 jeremybenn
  bfd_cv_have_sys_procfs_type_prsysent_t=yes
22565
else
22566 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22567 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22568
 
22569 213 jeremybenn
        bfd_cv_have_sys_procfs_type_prsysent_t=no
22570 131 jeremybenn
 
22571
fi
22572 213 jeremybenn
 
22573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 131 jeremybenn
fi
22575
 
22576
 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22577
 
22578
cat >>confdefs.h <<\_ACEOF
22579
#define HAVE_PRSYSENT_T 1
22580
_ACEOF
22581
 
22582
 fi
22583 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22584
$as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
22585 131 jeremybenn
 
22586 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22587
$as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
22588 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22589 213 jeremybenn
  $as_echo_n "(cached) " >&6
22590 131 jeremybenn
else
22591
  cat >conftest.$ac_ext <<_ACEOF
22592
/* confdefs.h.  */
22593
_ACEOF
22594
cat confdefs.h >>conftest.$ac_ext
22595
cat >>conftest.$ac_ext <<_ACEOF
22596
/* end confdefs.h.  */
22597
 
22598
#define _SYSCALL32
22599
#include 
22600
int
22601
main ()
22602
{
22603
pr_sigset_t avar
22604
  ;
22605
  return 0;
22606
}
22607
_ACEOF
22608
rm -f conftest.$ac_objext
22609 213 jeremybenn
if { (ac_try="$ac_compile"
22610
case "(($ac_try" in
22611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612
  *) ac_try_echo=$ac_try;;
22613
esac
22614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615
$as_echo "$ac_try_echo") >&5
22616
  (eval "$ac_compile") 2>conftest.er1
22617 131 jeremybenn
  ac_status=$?
22618
  grep -v '^ *+' conftest.er1 >conftest.err
22619
  rm -f conftest.er1
22620
  cat conftest.err >&5
22621 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622
  (exit $ac_status); } && {
22623
         test -z "$ac_c_werror_flag" ||
22624
         test ! -s conftest.err
22625
       } && test -s conftest.$ac_objext; then
22626 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22627
else
22628 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22629 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22630
 
22631 213 jeremybenn
        bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22632 131 jeremybenn
 
22633
fi
22634 213 jeremybenn
 
22635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 131 jeremybenn
fi
22637
 
22638
 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22639
 
22640
cat >>confdefs.h <<\_ACEOF
22641
#define HAVE_PR_SIGSET_T 1
22642
_ACEOF
22643
 
22644
 fi
22645 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22646
$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
22647 131 jeremybenn
 
22648 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22649
$as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
22650 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22651 213 jeremybenn
  $as_echo_n "(cached) " >&6
22652 131 jeremybenn
else
22653
  cat >conftest.$ac_ext <<_ACEOF
22654
/* confdefs.h.  */
22655
_ACEOF
22656
cat confdefs.h >>conftest.$ac_ext
22657
cat >>conftest.$ac_ext <<_ACEOF
22658
/* end confdefs.h.  */
22659
 
22660
#define _SYSCALL32
22661
#include 
22662
int
22663
main ()
22664
{
22665
pr_sigaction64_t avar
22666
  ;
22667
  return 0;
22668
}
22669
_ACEOF
22670
rm -f conftest.$ac_objext
22671 213 jeremybenn
if { (ac_try="$ac_compile"
22672
case "(($ac_try" in
22673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674
  *) ac_try_echo=$ac_try;;
22675
esac
22676
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22677
$as_echo "$ac_try_echo") >&5
22678
  (eval "$ac_compile") 2>conftest.er1
22679 131 jeremybenn
  ac_status=$?
22680
  grep -v '^ *+' conftest.er1 >conftest.err
22681
  rm -f conftest.er1
22682
  cat conftest.err >&5
22683 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684
  (exit $ac_status); } && {
22685
         test -z "$ac_c_werror_flag" ||
22686
         test ! -s conftest.err
22687
       } && test -s conftest.$ac_objext; then
22688 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22689
else
22690 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22691 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22692
 
22693 213 jeremybenn
        bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22694 131 jeremybenn
 
22695
fi
22696 213 jeremybenn
 
22697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 131 jeremybenn
fi
22699
 
22700
 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22701
 
22702
cat >>confdefs.h <<\_ACEOF
22703
#define HAVE_PR_SIGACTION64_T 1
22704
_ACEOF
22705
 
22706
 fi
22707 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22708
$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
22709 131 jeremybenn
 
22710 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22711
$as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
22712 131 jeremybenn
 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22713 213 jeremybenn
  $as_echo_n "(cached) " >&6
22714 131 jeremybenn
else
22715
  cat >conftest.$ac_ext <<_ACEOF
22716
/* confdefs.h.  */
22717
_ACEOF
22718
cat confdefs.h >>conftest.$ac_ext
22719
cat >>conftest.$ac_ext <<_ACEOF
22720
/* end confdefs.h.  */
22721
 
22722
#define _SYSCALL32
22723
#include 
22724
int
22725
main ()
22726
{
22727
pr_siginfo64_t avar
22728
  ;
22729
  return 0;
22730
}
22731
_ACEOF
22732
rm -f conftest.$ac_objext
22733 213 jeremybenn
if { (ac_try="$ac_compile"
22734
case "(($ac_try" in
22735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736
  *) ac_try_echo=$ac_try;;
22737
esac
22738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22739
$as_echo "$ac_try_echo") >&5
22740
  (eval "$ac_compile") 2>conftest.er1
22741 131 jeremybenn
  ac_status=$?
22742
  grep -v '^ *+' conftest.er1 >conftest.err
22743
  rm -f conftest.er1
22744
  cat conftest.err >&5
22745 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746
  (exit $ac_status); } && {
22747
         test -z "$ac_c_werror_flag" ||
22748
         test ! -s conftest.err
22749
       } && test -s conftest.$ac_objext; then
22750 131 jeremybenn
  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22751
else
22752 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22753 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22754
 
22755 213 jeremybenn
        bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22756 131 jeremybenn
 
22757
fi
22758 213 jeremybenn
 
22759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 131 jeremybenn
fi
22761
 
22762
 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22763
 
22764
cat >>confdefs.h <<\_ACEOF
22765
#define HAVE_PR_SIGINFO64_T 1
22766
_ACEOF
22767
 
22768
 fi
22769 213 jeremybenn
 { $as_echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22770
$as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
22771 131 jeremybenn
 
22772
 
22773
 
22774
 
22775
 
22776
  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22777 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22778
$as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
22779 131 jeremybenn
    if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22780 213 jeremybenn
  $as_echo_n "(cached) " >&6
22781 131 jeremybenn
else
22782
  if test "$cross_compiling" = yes; then
22783
  gdb_cv_prfpregset_t_broken=yes
22784
else
22785
  cat >conftest.$ac_ext <<_ACEOF
22786
/* confdefs.h.  */
22787
_ACEOF
22788
cat confdefs.h >>conftest.$ac_ext
22789
cat >>conftest.$ac_ext <<_ACEOF
22790
/* end confdefs.h.  */
22791
#include 
22792
       int main ()
22793
       {
22794
         if (sizeof (prfpregset_t) == sizeof (void *))
22795
           return 1;
22796
         return 0;
22797
       }
22798
_ACEOF
22799
rm -f conftest$ac_exeext
22800 213 jeremybenn
if { (ac_try="$ac_link"
22801
case "(($ac_try" in
22802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803
  *) ac_try_echo=$ac_try;;
22804
esac
22805
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22806
$as_echo "$ac_try_echo") >&5
22807
  (eval "$ac_link") 2>&5
22808 131 jeremybenn
  ac_status=$?
22809 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22811 213 jeremybenn
  { (case "(($ac_try" in
22812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813
  *) ac_try_echo=$ac_try;;
22814
esac
22815
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22816
$as_echo "$ac_try_echo") >&5
22817
  (eval "$ac_try") 2>&5
22818 131 jeremybenn
  ac_status=$?
22819 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 131 jeremybenn
  (exit $ac_status); }; }; then
22821
  gdb_cv_prfpregset_t_broken=no
22822
else
22823 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
22824
$as_echo "$as_me: failed program was:" >&5
22825 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22826
 
22827
( exit $ac_status )
22828
gdb_cv_prfpregset_t_broken=yes
22829
fi
22830 213 jeremybenn
rm -rf conftest.dSYM
22831
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22832 131 jeremybenn
fi
22833 213 jeremybenn
 
22834
 
22835 131 jeremybenn
fi
22836
 
22837 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22838
$as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
22839 131 jeremybenn
    if test $gdb_cv_prfpregset_t_broken = yes; then
22840
 
22841
cat >>confdefs.h <<\_ACEOF
22842
#define PRFPREGSET_T_BROKEN 1
22843
_ACEOF
22844
 
22845
    fi
22846
  fi
22847
 
22848
 
22849 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22850
$as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
22851 131 jeremybenn
  if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22852 213 jeremybenn
  $as_echo_n "(cached) " >&6
22853 131 jeremybenn
else
22854
  cat >conftest.$ac_ext <<_ACEOF
22855
/* confdefs.h.  */
22856
_ACEOF
22857
cat confdefs.h >>conftest.$ac_ext
22858
cat >>conftest.$ac_ext <<_ACEOF
22859
/* end confdefs.h.  */
22860
#include 
22861
#include 
22862
#include 
22863
 
22864
int
22865
main ()
22866
{
22867
 
22868
    int dummy;;
22869
    dummy = ioctl(0, PIOCSET, &dummy);
22870
 
22871
  ;
22872
  return 0;
22873
}
22874
_ACEOF
22875
rm -f conftest.$ac_objext
22876 213 jeremybenn
if { (ac_try="$ac_compile"
22877
case "(($ac_try" in
22878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879
  *) ac_try_echo=$ac_try;;
22880
esac
22881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882
$as_echo "$ac_try_echo") >&5
22883
  (eval "$ac_compile") 2>conftest.er1
22884 131 jeremybenn
  ac_status=$?
22885
  grep -v '^ *+' conftest.er1 >conftest.err
22886
  rm -f conftest.er1
22887
  cat conftest.err >&5
22888 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889
  (exit $ac_status); } && {
22890
         test -z "$ac_c_werror_flag" ||
22891
         test ! -s conftest.err
22892
       } && test -s conftest.$ac_objext; then
22893 131 jeremybenn
  gdb_cv_have_procfs_piocset=yes
22894
else
22895 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22896 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22897
 
22898 213 jeremybenn
        gdb_cv_have_procfs_piocset=no
22899 131 jeremybenn
fi
22900 213 jeremybenn
 
22901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 131 jeremybenn
fi
22903
 
22904 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22905
$as_echo "$gdb_cv_have_procfs_piocset" >&6; }
22906 131 jeremybenn
  if test $gdb_cv_have_procfs_piocset = yes; then
22907
 
22908
cat >>confdefs.h <<\_ACEOF
22909
#define HAVE_PROCFS_PIOCSET 1
22910
_ACEOF
22911
 
22912
  fi
22913
fi
22914
 
22915
if test ${host} = ${target} ; then
22916
 
22917 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22918
$as_echo_n "checking for member l_addr in struct link_map... " >&6; }
22919 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22920 213 jeremybenn
  $as_echo_n "(cached) " >&6
22921 131 jeremybenn
else
22922
  cat >conftest.$ac_ext <<_ACEOF
22923
/* confdefs.h.  */
22924
_ACEOF
22925
cat confdefs.h >>conftest.$ac_ext
22926
cat >>conftest.$ac_ext <<_ACEOF
22927
/* end confdefs.h.  */
22928
#include 
22929
int
22930
main ()
22931
{
22932
struct link_map lm; (void) lm.l_addr;
22933
  ;
22934
  return 0;
22935
}
22936
_ACEOF
22937
rm -f conftest.$ac_objext
22938 213 jeremybenn
if { (ac_try="$ac_compile"
22939
case "(($ac_try" in
22940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941
  *) ac_try_echo=$ac_try;;
22942
esac
22943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22944
$as_echo "$ac_try_echo") >&5
22945
  (eval "$ac_compile") 2>conftest.er1
22946 131 jeremybenn
  ac_status=$?
22947
  grep -v '^ *+' conftest.er1 >conftest.err
22948
  rm -f conftest.er1
22949
  cat conftest.err >&5
22950 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951
  (exit $ac_status); } && {
22952
         test -z "$ac_c_werror_flag" ||
22953
         test ! -s conftest.err
22954
       } && test -s conftest.$ac_objext; then
22955 131 jeremybenn
  gdb_cv_have_struct_link_map_with_l_members=yes
22956
else
22957 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
22958 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
22959
 
22960 213 jeremybenn
        gdb_cv_have_struct_link_map_with_l_members=no
22961 131 jeremybenn
fi
22962 213 jeremybenn
 
22963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 131 jeremybenn
fi
22965
 
22966 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22967
$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
22968 131 jeremybenn
  if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22969
 
22970
cat >>confdefs.h <<\_ACEOF
22971
#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22972
_ACEOF
22973
 
22974
  fi
22975
 
22976
 
22977 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22978
$as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
22979 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22980 213 jeremybenn
  $as_echo_n "(cached) " >&6
22981 131 jeremybenn
else
22982
  cat >conftest.$ac_ext <<_ACEOF
22983
/* confdefs.h.  */
22984
_ACEOF
22985
cat confdefs.h >>conftest.$ac_ext
22986
cat >>conftest.$ac_ext <<_ACEOF
22987
/* end confdefs.h.  */
22988
#include 
22989
#include 
22990
int
22991
main ()
22992
{
22993
struct link_map lm; (void) lm.lm_addr;
22994
  ;
22995
  return 0;
22996
}
22997
_ACEOF
22998
rm -f conftest.$ac_objext
22999 213 jeremybenn
if { (ac_try="$ac_compile"
23000
case "(($ac_try" in
23001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002
  *) ac_try_echo=$ac_try;;
23003
esac
23004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23005
$as_echo "$ac_try_echo") >&5
23006
  (eval "$ac_compile") 2>conftest.er1
23007 131 jeremybenn
  ac_status=$?
23008
  grep -v '^ *+' conftest.er1 >conftest.err
23009
  rm -f conftest.er1
23010
  cat conftest.err >&5
23011 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012
  (exit $ac_status); } && {
23013
         test -z "$ac_c_werror_flag" ||
23014
         test ! -s conftest.err
23015
       } && test -s conftest.$ac_objext; then
23016 131 jeremybenn
  gdb_cv_have_struct_link_map_with_lm_members=yes
23017
else
23018 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23019 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23020
 
23021 213 jeremybenn
        gdb_cv_have_struct_link_map_with_lm_members=no
23022 131 jeremybenn
fi
23023 213 jeremybenn
 
23024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 131 jeremybenn
fi
23026
 
23027 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23028
$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
23029 131 jeremybenn
  if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
23030
 
23031
cat >>confdefs.h <<\_ACEOF
23032
#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
23033
_ACEOF
23034
 
23035
  fi
23036
 
23037
 
23038 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23039
$as_echo_n "checking for member som_addr in struct so_map... " >&6; }
23040 131 jeremybenn
  if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23041 213 jeremybenn
  $as_echo_n "(cached) " >&6
23042 131 jeremybenn
else
23043
  cat >conftest.$ac_ext <<_ACEOF
23044
/* confdefs.h.  */
23045
_ACEOF
23046
cat confdefs.h >>conftest.$ac_ext
23047
cat >>conftest.$ac_ext <<_ACEOF
23048
/* end confdefs.h.  */
23049
#include 
23050
#ifdef HAVE_NLIST_H
23051
#include 
23052
#endif
23053
#include 
23054
int
23055
main ()
23056
{
23057
struct so_map lm; (void) lm.som_addr;
23058
  ;
23059
  return 0;
23060
}
23061
_ACEOF
23062
rm -f conftest.$ac_objext
23063 213 jeremybenn
if { (ac_try="$ac_compile"
23064
case "(($ac_try" in
23065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066
  *) ac_try_echo=$ac_try;;
23067
esac
23068
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069
$as_echo "$ac_try_echo") >&5
23070
  (eval "$ac_compile") 2>conftest.er1
23071 131 jeremybenn
  ac_status=$?
23072
  grep -v '^ *+' conftest.er1 >conftest.err
23073
  rm -f conftest.er1
23074
  cat conftest.err >&5
23075 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076
  (exit $ac_status); } && {
23077
         test -z "$ac_c_werror_flag" ||
23078
         test ! -s conftest.err
23079
       } && test -s conftest.$ac_objext; then
23080 131 jeremybenn
  gdb_cv_have_struct_so_map_with_som_members=yes
23081
else
23082 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23083 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23084
 
23085 213 jeremybenn
        gdb_cv_have_struct_so_map_with_som_members=no
23086 131 jeremybenn
fi
23087 213 jeremybenn
 
23088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 131 jeremybenn
fi
23090
 
23091 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23092
$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
23093 131 jeremybenn
  if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23094
 
23095
cat >>confdefs.h <<\_ACEOF
23096
#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23097
_ACEOF
23098
 
23099
  fi
23100
 
23101
 
23102 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23103
$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
23104 131 jeremybenn
  if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23105 213 jeremybenn
  $as_echo_n "(cached) " >&6
23106 131 jeremybenn
else
23107
  cat >conftest.$ac_ext <<_ACEOF
23108
/* confdefs.h.  */
23109
_ACEOF
23110
cat confdefs.h >>conftest.$ac_ext
23111
cat >>conftest.$ac_ext <<_ACEOF
23112
/* end confdefs.h.  */
23113
#define _SYSCALL32
23114
#include 
23115
int
23116
main ()
23117
{
23118
struct link_map32 l;
23119
  ;
23120
  return 0;
23121
}
23122
_ACEOF
23123
rm -f conftest.$ac_objext
23124 213 jeremybenn
if { (ac_try="$ac_compile"
23125
case "(($ac_try" in
23126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127
  *) ac_try_echo=$ac_try;;
23128
esac
23129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23130
$as_echo "$ac_try_echo") >&5
23131
  (eval "$ac_compile") 2>conftest.er1
23132 131 jeremybenn
  ac_status=$?
23133
  grep -v '^ *+' conftest.er1 >conftest.err
23134
  rm -f conftest.er1
23135
  cat conftest.err >&5
23136 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137
  (exit $ac_status); } && {
23138
         test -z "$ac_c_werror_flag" ||
23139
         test ! -s conftest.err
23140
       } && test -s conftest.$ac_objext; then
23141 131 jeremybenn
  gdb_cv_have_struct_link_map32=yes
23142
else
23143 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23144 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23145
 
23146 213 jeremybenn
        gdb_cv_have_struct_link_map32=no
23147 131 jeremybenn
fi
23148 213 jeremybenn
 
23149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 131 jeremybenn
fi
23151
 
23152 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23153
$as_echo "$gdb_cv_have_struct_link_map32" >&6; }
23154 131 jeremybenn
  if test $gdb_cv_have_struct_link_map32 = yes; then
23155
 
23156
cat >>confdefs.h <<\_ACEOF
23157
#define HAVE_STRUCT_LINK_MAP32 1
23158
_ACEOF
23159
 
23160
 
23161
cat >>confdefs.h <<\_ACEOF
23162
#define _SYSCALL32 1
23163
_ACEOF
23164
 
23165
  fi
23166
fi
23167
 
23168
# Check if the compiler supports the `long long' type.
23169
 
23170 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23171
$as_echo_n "checking for long long support in compiler... " >&6; }
23172 131 jeremybenn
if test "${gdb_cv_c_long_long+set}" = set; then
23173 213 jeremybenn
  $as_echo_n "(cached) " >&6
23174 131 jeremybenn
else
23175
  cat >conftest.$ac_ext <<_ACEOF
23176
/* confdefs.h.  */
23177
_ACEOF
23178
cat confdefs.h >>conftest.$ac_ext
23179
cat >>conftest.$ac_ext <<_ACEOF
23180
/* end confdefs.h.  */
23181
extern long long foo;
23182
int
23183
main ()
23184
{
23185
switch (foo & 2) { case 0: return 1; }
23186
  ;
23187
  return 0;
23188
}
23189
_ACEOF
23190
rm -f conftest.$ac_objext
23191 213 jeremybenn
if { (ac_try="$ac_compile"
23192
case "(($ac_try" in
23193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194
  *) ac_try_echo=$ac_try;;
23195
esac
23196
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23197
$as_echo "$ac_try_echo") >&5
23198
  (eval "$ac_compile") 2>conftest.er1
23199 131 jeremybenn
  ac_status=$?
23200
  grep -v '^ *+' conftest.er1 >conftest.err
23201
  rm -f conftest.er1
23202
  cat conftest.err >&5
23203 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204
  (exit $ac_status); } && {
23205
         test -z "$ac_c_werror_flag" ||
23206
         test ! -s conftest.err
23207
       } && test -s conftest.$ac_objext; then
23208 131 jeremybenn
  gdb_cv_c_long_long=yes
23209
else
23210 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23211 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23212
 
23213 213 jeremybenn
        gdb_cv_c_long_long=no
23214 131 jeremybenn
fi
23215 213 jeremybenn
 
23216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 131 jeremybenn
fi
23218 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23219
$as_echo "$gdb_cv_c_long_long" >&6; }
23220 131 jeremybenn
if test $gdb_cv_c_long_long = yes; then
23221
 
23222
cat >>confdefs.h <<\_ACEOF
23223
#define CC_HAS_LONG_LONG 1
23224
_ACEOF
23225
 
23226
fi
23227
 
23228
# Check if the compiler and runtime support printing long longs.
23229
 
23230 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for long long support in printf" >&5
23231
$as_echo_n "checking for long long support in printf... " >&6; }
23232 131 jeremybenn
if test "${gdb_cv_printf_has_long_long+set}" = set; then
23233 213 jeremybenn
  $as_echo_n "(cached) " >&6
23234 131 jeremybenn
else
23235
  if test "$cross_compiling" = yes; then
23236
  gdb_cv_printf_has_long_long=no
23237
else
23238
  cat >conftest.$ac_ext <<_ACEOF
23239
/* confdefs.h.  */
23240
_ACEOF
23241
cat confdefs.h >>conftest.$ac_ext
23242
cat >>conftest.$ac_ext <<_ACEOF
23243
/* end confdefs.h.  */
23244
$ac_includes_default
23245
int
23246
main ()
23247
{
23248
char buf[32];
23249
  long long l = 0;
23250
  l = (l << 16) + 0x0123;
23251
  l = (l << 16) + 0x4567;
23252
  l = (l << 16) + 0x89ab;
23253
  l = (l << 16) + 0xcdef;
23254
  sprintf (buf, "0x%016llx", l);
23255
  return (strcmp ("0x0123456789abcdef", buf));
23256
  ;
23257
  return 0;
23258
}
23259
_ACEOF
23260
rm -f conftest$ac_exeext
23261 213 jeremybenn
if { (ac_try="$ac_link"
23262
case "(($ac_try" in
23263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264
  *) ac_try_echo=$ac_try;;
23265
esac
23266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23267
$as_echo "$ac_try_echo") >&5
23268
  (eval "$ac_link") 2>&5
23269 131 jeremybenn
  ac_status=$?
23270 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23272 213 jeremybenn
  { (case "(($ac_try" in
23273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274
  *) ac_try_echo=$ac_try;;
23275
esac
23276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23277
$as_echo "$ac_try_echo") >&5
23278
  (eval "$ac_try") 2>&5
23279 131 jeremybenn
  ac_status=$?
23280 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 131 jeremybenn
  (exit $ac_status); }; }; then
23282
  gdb_cv_printf_has_long_long=yes
23283
else
23284 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
23285
$as_echo "$as_me: failed program was:" >&5
23286 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23287
 
23288
( exit $ac_status )
23289
gdb_cv_printf_has_long_long=no
23290
fi
23291 213 jeremybenn
rm -rf conftest.dSYM
23292
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23293 131 jeremybenn
fi
23294 213 jeremybenn
 
23295
 
23296 131 jeremybenn
fi
23297 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23298
$as_echo "$gdb_cv_printf_has_long_long" >&6; }
23299 131 jeremybenn
if test $gdb_cv_printf_has_long_long = yes; then
23300
 
23301
cat >>confdefs.h <<\_ACEOF
23302
#define PRINTF_HAS_LONG_LONG 1
23303
_ACEOF
23304
 
23305
fi
23306
 
23307
# Check if the compiler and runtime support printing decfloats.
23308
 
23309 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23310
$as_echo_n "checking for decfloat support in printf... " >&6; }
23311 131 jeremybenn
if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23312 213 jeremybenn
  $as_echo_n "(cached) " >&6
23313 131 jeremybenn
else
23314
  if test "$cross_compiling" = yes; then
23315
  gdb_cv_printf_has_decfloat=no
23316
else
23317
  cat >conftest.$ac_ext <<_ACEOF
23318
/* confdefs.h.  */
23319
_ACEOF
23320
cat confdefs.h >>conftest.$ac_ext
23321
cat >>conftest.$ac_ext <<_ACEOF
23322
/* end confdefs.h.  */
23323
$ac_includes_default
23324
int
23325
main ()
23326
{
23327
char buf[64];
23328
  _Decimal32 d32 = 1.2345df;
23329
  _Decimal64 d64 = 1.2345dd;
23330
  _Decimal128 d128 = 1.2345dl;
23331
  sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23332
  return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23333
  ;
23334
  return 0;
23335
}
23336
_ACEOF
23337
rm -f conftest$ac_exeext
23338 213 jeremybenn
if { (ac_try="$ac_link"
23339
case "(($ac_try" in
23340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341
  *) ac_try_echo=$ac_try;;
23342
esac
23343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23344
$as_echo "$ac_try_echo") >&5
23345
  (eval "$ac_link") 2>&5
23346 131 jeremybenn
  ac_status=$?
23347 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23349 213 jeremybenn
  { (case "(($ac_try" in
23350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351
  *) ac_try_echo=$ac_try;;
23352
esac
23353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23354
$as_echo "$ac_try_echo") >&5
23355
  (eval "$ac_try") 2>&5
23356 131 jeremybenn
  ac_status=$?
23357 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 131 jeremybenn
  (exit $ac_status); }; }; then
23359
  gdb_cv_printf_has_decfloat=yes
23360
else
23361 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
23362
$as_echo "$as_me: failed program was:" >&5
23363 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23364
 
23365
( exit $ac_status )
23366
gdb_cv_printf_has_decfloat=no
23367
fi
23368 213 jeremybenn
rm -rf conftest.dSYM
23369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23370 131 jeremybenn
fi
23371 213 jeremybenn
 
23372
 
23373 131 jeremybenn
fi
23374 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23375
$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
23376 131 jeremybenn
if test $gdb_cv_printf_has_decfloat = yes; then
23377
 
23378
cat >>confdefs.h <<\_ACEOF
23379
#define PRINTF_HAS_DECFLOAT 1
23380
_ACEOF
23381
 
23382
fi
23383
 
23384
# Check if the compiler supports the `long double' type.  We can't use
23385
# AC_C_LONG_DOUBLE because that one does additional checks on the
23386
# constants defined in  that fail on some systems,
23387
# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23388
 
23389 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23390
$as_echo_n "checking for long double support in compiler... " >&6; }
23391 131 jeremybenn
if test "${gdb_cv_c_long_double+set}" = set; then
23392 213 jeremybenn
  $as_echo_n "(cached) " >&6
23393 131 jeremybenn
else
23394
  cat >conftest.$ac_ext <<_ACEOF
23395
/* confdefs.h.  */
23396
_ACEOF
23397
cat confdefs.h >>conftest.$ac_ext
23398
cat >>conftest.$ac_ext <<_ACEOF
23399
/* end confdefs.h.  */
23400
long double foo;
23401
_ACEOF
23402
rm -f conftest.$ac_objext
23403 213 jeremybenn
if { (ac_try="$ac_compile"
23404
case "(($ac_try" in
23405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406
  *) ac_try_echo=$ac_try;;
23407
esac
23408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23409
$as_echo "$ac_try_echo") >&5
23410
  (eval "$ac_compile") 2>conftest.er1
23411 131 jeremybenn
  ac_status=$?
23412
  grep -v '^ *+' conftest.er1 >conftest.err
23413
  rm -f conftest.er1
23414
  cat conftest.err >&5
23415 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416
  (exit $ac_status); } && {
23417
         test -z "$ac_c_werror_flag" ||
23418
         test ! -s conftest.err
23419
       } && test -s conftest.$ac_objext; then
23420 131 jeremybenn
  gdb_cv_c_long_double=yes
23421
else
23422 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23423 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23424
 
23425 213 jeremybenn
        gdb_cv_c_long_double=no
23426 131 jeremybenn
fi
23427 213 jeremybenn
 
23428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 131 jeremybenn
fi
23430 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23431
$as_echo "$gdb_cv_c_long_double" >&6; }
23432 131 jeremybenn
if test $gdb_cv_c_long_double = yes; then
23433
 
23434
cat >>confdefs.h <<\_ACEOF
23435
#define HAVE_LONG_DOUBLE 1
23436
_ACEOF
23437
 
23438
fi
23439
 
23440
# Check if the compiler and runtime support printing long doubles.
23441
 
23442 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for long double support in printf" >&5
23443
$as_echo_n "checking for long double support in printf... " >&6; }
23444 131 jeremybenn
if test "${gdb_cv_printf_has_long_double+set}" = set; then
23445 213 jeremybenn
  $as_echo_n "(cached) " >&6
23446 131 jeremybenn
else
23447
  if test "$cross_compiling" = yes; then
23448
  gdb_cv_printf_has_long_double=no
23449
else
23450
  cat >conftest.$ac_ext <<_ACEOF
23451
/* confdefs.h.  */
23452
_ACEOF
23453
cat confdefs.h >>conftest.$ac_ext
23454
cat >>conftest.$ac_ext <<_ACEOF
23455
/* end confdefs.h.  */
23456
$ac_includes_default
23457
int
23458
main ()
23459
{
23460
char buf[16];
23461
  long double f = 3.141592653;
23462
  sprintf (buf, "%Lg", f);
23463
  return (strncmp ("3.14159", buf, 7));
23464
  ;
23465
  return 0;
23466
}
23467
_ACEOF
23468
rm -f conftest$ac_exeext
23469 213 jeremybenn
if { (ac_try="$ac_link"
23470
case "(($ac_try" in
23471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472
  *) ac_try_echo=$ac_try;;
23473
esac
23474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475
$as_echo "$ac_try_echo") >&5
23476
  (eval "$ac_link") 2>&5
23477 131 jeremybenn
  ac_status=$?
23478 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23480 213 jeremybenn
  { (case "(($ac_try" in
23481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482
  *) ac_try_echo=$ac_try;;
23483
esac
23484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23485
$as_echo "$ac_try_echo") >&5
23486
  (eval "$ac_try") 2>&5
23487 131 jeremybenn
  ac_status=$?
23488 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 131 jeremybenn
  (exit $ac_status); }; }; then
23490
  gdb_cv_printf_has_long_double=yes
23491
else
23492 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
23493
$as_echo "$as_me: failed program was:" >&5
23494 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23495
 
23496
( exit $ac_status )
23497
gdb_cv_printf_has_long_double=no
23498
fi
23499 213 jeremybenn
rm -rf conftest.dSYM
23500
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23501 131 jeremybenn
fi
23502 213 jeremybenn
 
23503
 
23504 131 jeremybenn
fi
23505 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23506
$as_echo "$gdb_cv_printf_has_long_double" >&6; }
23507 131 jeremybenn
if test $gdb_cv_printf_has_long_double = yes; then
23508
 
23509
cat >>confdefs.h <<\_ACEOF
23510
#define PRINTF_HAS_LONG_DOUBLE 1
23511
_ACEOF
23512
 
23513
fi
23514
 
23515
# Check if the compiler and runtime support scanning long doubles.
23516
 
23517 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23518
$as_echo_n "checking for long double support in scanf... " >&6; }
23519 131 jeremybenn
if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23520 213 jeremybenn
  $as_echo_n "(cached) " >&6
23521 131 jeremybenn
else
23522
  if test "$cross_compiling" = yes; then
23523
  gdb_cv_scanf_has_long_double=no
23524
else
23525
  cat >conftest.$ac_ext <<_ACEOF
23526
/* confdefs.h.  */
23527
_ACEOF
23528
cat confdefs.h >>conftest.$ac_ext
23529
cat >>conftest.$ac_ext <<_ACEOF
23530
/* end confdefs.h.  */
23531
#include 
23532
int
23533
main ()
23534
{
23535
char *buf = "3.141592653";
23536
  long double f = 0;
23537
  sscanf (buf, "%Lg", &f);
23538
  return !(f > 3.14159 && f < 3.14160);
23539
  ;
23540
  return 0;
23541
}
23542
_ACEOF
23543
rm -f conftest$ac_exeext
23544 213 jeremybenn
if { (ac_try="$ac_link"
23545
case "(($ac_try" in
23546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547
  *) ac_try_echo=$ac_try;;
23548
esac
23549
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23550
$as_echo "$ac_try_echo") >&5
23551
  (eval "$ac_link") 2>&5
23552 131 jeremybenn
  ac_status=$?
23553 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 131 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23555 213 jeremybenn
  { (case "(($ac_try" in
23556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557
  *) ac_try_echo=$ac_try;;
23558
esac
23559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23560
$as_echo "$ac_try_echo") >&5
23561
  (eval "$ac_try") 2>&5
23562 131 jeremybenn
  ac_status=$?
23563 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 131 jeremybenn
  (exit $ac_status); }; }; then
23565
  gdb_cv_scanf_has_long_double=yes
23566
else
23567 213 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
23568
$as_echo "$as_me: failed program was:" >&5
23569 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23570
 
23571
( exit $ac_status )
23572
gdb_cv_scanf_has_long_double=no
23573
fi
23574 213 jeremybenn
rm -rf conftest.dSYM
23575
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23576 131 jeremybenn
fi
23577 213 jeremybenn
 
23578
 
23579 131 jeremybenn
fi
23580 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23581
$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
23582 131 jeremybenn
if test $gdb_cv_scanf_has_long_double = yes; then
23583
 
23584
cat >>confdefs.h <<\_ACEOF
23585
#define SCANF_HAS_LONG_DOUBLE 1
23586
_ACEOF
23587
 
23588
fi
23589
 
23590
case ${host_os} in
23591
aix*)
23592 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23593
$as_echo_n "checking for -bbigtoc option... " >&6; }
23594 131 jeremybenn
if test "${gdb_cv_bigtoc+set}" = set; then
23595 213 jeremybenn
  $as_echo_n "(cached) " >&6
23596 131 jeremybenn
else
23597
 
23598
    SAVE_LDFLAGS=$LDFLAGS
23599
 
23600
    case $GCC in
23601
    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23602
    *) gdb_cv_bigtoc=-bbigtoc ;;
23603
    esac
23604
 
23605
    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23606
    cat >conftest.$ac_ext <<_ACEOF
23607
/* confdefs.h.  */
23608
_ACEOF
23609
cat confdefs.h >>conftest.$ac_ext
23610
cat >>conftest.$ac_ext <<_ACEOF
23611
/* end confdefs.h.  */
23612
 
23613
int
23614
main ()
23615
{
23616
int i;
23617
  ;
23618
  return 0;
23619
}
23620
_ACEOF
23621
rm -f conftest.$ac_objext conftest$ac_exeext
23622 213 jeremybenn
if { (ac_try="$ac_link"
23623
case "(($ac_try" in
23624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625
  *) ac_try_echo=$ac_try;;
23626
esac
23627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23628
$as_echo "$ac_try_echo") >&5
23629
  (eval "$ac_link") 2>conftest.er1
23630 131 jeremybenn
  ac_status=$?
23631
  grep -v '^ *+' conftest.er1 >conftest.err
23632
  rm -f conftest.er1
23633
  cat conftest.err >&5
23634 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635
  (exit $ac_status); } && {
23636
         test -z "$ac_c_werror_flag" ||
23637
         test ! -s conftest.err
23638
       } && test -s conftest$ac_exeext && {
23639
         test "$cross_compiling" = yes ||
23640
         $as_test_x conftest$ac_exeext
23641
       }; then
23642 131 jeremybenn
  :
23643
else
23644 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23645 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23646
 
23647 213 jeremybenn
        gdb_cv_bigtoc=
23648 131 jeremybenn
fi
23649 213 jeremybenn
 
23650
rm -rf conftest.dSYM
23651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23652 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
23653
    LDFLAGS="${SAVE_LDFLAGS}"
23654
 
23655
fi
23656 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23657
$as_echo "$gdb_cv_bigtoc" >&6; }
23658 131 jeremybenn
  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23659
  ;;
23660
esac
23661
 
23662
 
23663
 
23664
if test ${build} = ${host} -a ${host} = ${target} ; then
23665
   case ${host_os} in
23666
   hpux*)
23667 213 jeremybenn
      { $as_echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23668
$as_echo_n "checking for HPUX/OSF thread support... " >&6; }
23669 131 jeremybenn
      if test -f /usr/include/dce/cma_config.h ; then
23670
         if test "$GCC" = "yes" ; then
23671 213 jeremybenn
            { $as_echo "$as_me:$LINENO: result: yes" >&5
23672
$as_echo "yes" >&6; }
23673 131 jeremybenn
 
23674
cat >>confdefs.h <<\_ACEOF
23675
#define HAVE_HPUX_THREAD_SUPPORT 1
23676
_ACEOF
23677
 
23678
            CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23679
            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23680
         else
23681 213 jeremybenn
            { $as_echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23682
$as_echo "no (suppressed because you are not using GCC)" >&6; }
23683 131 jeremybenn
         fi
23684
      else
23685 213 jeremybenn
         { $as_echo "$as_me:$LINENO: result: no" >&5
23686
$as_echo "no" >&6; }
23687 131 jeremybenn
      fi
23688
      ;;
23689
   solaris*)
23690
      # See if thread_db library is around for Solaris thread debugging.
23691
      # Note that we must explicitly test for version 1 of the library
23692
      # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23693
      # the same API.
23694 213 jeremybenn
      { $as_echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23695
$as_echo_n "checking for Solaris thread debugging library... " >&6; }
23696 131 jeremybenn
      if test -f /usr/lib/libthread_db.so.1 ; then
23697 213 jeremybenn
         { $as_echo "$as_me:$LINENO: result: yes" >&5
23698
$as_echo "yes" >&6; }
23699 131 jeremybenn
 
23700
cat >>confdefs.h <<\_ACEOF
23701
#define HAVE_THREAD_DB_LIB 1
23702
_ACEOF
23703
 
23704
         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23705
         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23706
 
23707 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23708
$as_echo_n "checking for dlopen in -ldl... " >&6; }
23709 131 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23710 213 jeremybenn
  $as_echo_n "(cached) " >&6
23711 131 jeremybenn
else
23712
  ac_check_lib_save_LIBS=$LIBS
23713
LIBS="-ldl  $LIBS"
23714
cat >conftest.$ac_ext <<_ACEOF
23715
/* confdefs.h.  */
23716
_ACEOF
23717
cat confdefs.h >>conftest.$ac_ext
23718
cat >>conftest.$ac_ext <<_ACEOF
23719
/* end confdefs.h.  */
23720
 
23721 213 jeremybenn
/* Override any GCC internal prototype to avoid an error.
23722
   Use char because int might match the return type of a GCC
23723
   builtin and then its argument prototype would still apply.  */
23724 131 jeremybenn
#ifdef __cplusplus
23725
extern "C"
23726
#endif
23727
char dlopen ();
23728
int
23729
main ()
23730
{
23731 213 jeremybenn
return dlopen ();
23732 131 jeremybenn
  ;
23733
  return 0;
23734
}
23735
_ACEOF
23736
rm -f conftest.$ac_objext conftest$ac_exeext
23737 213 jeremybenn
if { (ac_try="$ac_link"
23738
case "(($ac_try" in
23739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740
  *) ac_try_echo=$ac_try;;
23741
esac
23742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23743
$as_echo "$ac_try_echo") >&5
23744
  (eval "$ac_link") 2>conftest.er1
23745 131 jeremybenn
  ac_status=$?
23746
  grep -v '^ *+' conftest.er1 >conftest.err
23747
  rm -f conftest.er1
23748
  cat conftest.err >&5
23749 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750
  (exit $ac_status); } && {
23751
         test -z "$ac_c_werror_flag" ||
23752
         test ! -s conftest.err
23753
       } && test -s conftest$ac_exeext && {
23754
         test "$cross_compiling" = yes ||
23755
         $as_test_x conftest$ac_exeext
23756
       }; then
23757 131 jeremybenn
  ac_cv_lib_dl_dlopen=yes
23758
else
23759 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23760 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23761
 
23762 213 jeremybenn
        ac_cv_lib_dl_dlopen=no
23763 131 jeremybenn
fi
23764 213 jeremybenn
 
23765
rm -rf conftest.dSYM
23766
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23767 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
23768
LIBS=$ac_check_lib_save_LIBS
23769
fi
23770 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23771
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23772
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
23773 131 jeremybenn
  cat >>confdefs.h <<_ACEOF
23774
#define HAVE_LIBDL 1
23775
_ACEOF
23776
 
23777
  LIBS="-ldl $LIBS"
23778
 
23779
fi
23780
 
23781
         if test "$GCC" = "yes" ; then
23782
            # The GNU linker requires the -export-dynamic option to make
23783
            # all symbols visible in the dynamic symbol table.
23784
            hold_ldflags=$LDFLAGS
23785 213 jeremybenn
            { $as_echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23786
$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
23787 131 jeremybenn
            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23788
            cat >conftest.$ac_ext <<_ACEOF
23789
/* confdefs.h.  */
23790
_ACEOF
23791
cat confdefs.h >>conftest.$ac_ext
23792
cat >>conftest.$ac_ext <<_ACEOF
23793
/* end confdefs.h.  */
23794
 
23795
int
23796
main ()
23797
{
23798
int i;
23799
  ;
23800
  return 0;
23801
}
23802
_ACEOF
23803
rm -f conftest.$ac_objext conftest$ac_exeext
23804 213 jeremybenn
if { (ac_try="$ac_link"
23805
case "(($ac_try" in
23806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807
  *) ac_try_echo=$ac_try;;
23808
esac
23809
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23810
$as_echo "$ac_try_echo") >&5
23811
  (eval "$ac_link") 2>conftest.er1
23812 131 jeremybenn
  ac_status=$?
23813
  grep -v '^ *+' conftest.er1 >conftest.err
23814
  rm -f conftest.er1
23815
  cat conftest.err >&5
23816 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817
  (exit $ac_status); } && {
23818
         test -z "$ac_c_werror_flag" ||
23819
         test ! -s conftest.err
23820
       } && test -s conftest$ac_exeext && {
23821
         test "$cross_compiling" = yes ||
23822
         $as_test_x conftest$ac_exeext
23823
       }; then
23824 131 jeremybenn
  found=yes
23825
else
23826 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23827 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23828
 
23829 213 jeremybenn
        found=no
23830 131 jeremybenn
fi
23831 213 jeremybenn
 
23832
rm -rf conftest.dSYM
23833
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23834 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
23835
            LDFLAGS=$hold_ldflags
23836 213 jeremybenn
            { $as_echo "$as_me:$LINENO: result: $found" >&5
23837
$as_echo "$found" >&6; }
23838 131 jeremybenn
            if test $found = yes; then
23839
               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23840
            fi
23841
         fi
23842
         # Sun randomly tweaked the prototypes in 
23843
         # at one point.
23844 213 jeremybenn
         { $as_echo "$as_me:$LINENO: checking if  is old" >&5
23845
$as_echo_n "checking if  is old... " >&6; }
23846 131 jeremybenn
         if test "${gdb_cv_proc_service_is_old+set}" = set; then
23847 213 jeremybenn
  $as_echo_n "(cached) " >&6
23848 131 jeremybenn
else
23849
 
23850
            cat >conftest.$ac_ext <<_ACEOF
23851
/* confdefs.h.  */
23852
_ACEOF
23853
cat confdefs.h >>conftest.$ac_ext
23854
cat >>conftest.$ac_ext <<_ACEOF
23855
/* end confdefs.h.  */
23856
 
23857
                #include 
23858
                ps_err_e ps_pdwrite
23859
                    (struct ps_prochandle*, psaddr_t, const void*, size_t);
23860
 
23861
int
23862
main ()
23863
{
23864
 
23865
  ;
23866
  return 0;
23867
}
23868
_ACEOF
23869
rm -f conftest.$ac_objext
23870 213 jeremybenn
if { (ac_try="$ac_compile"
23871
case "(($ac_try" in
23872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873
  *) ac_try_echo=$ac_try;;
23874
esac
23875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23876
$as_echo "$ac_try_echo") >&5
23877
  (eval "$ac_compile") 2>conftest.er1
23878 131 jeremybenn
  ac_status=$?
23879
  grep -v '^ *+' conftest.er1 >conftest.err
23880
  rm -f conftest.er1
23881
  cat conftest.err >&5
23882 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883
  (exit $ac_status); } && {
23884
         test -z "$ac_c_werror_flag" ||
23885
         test ! -s conftest.err
23886
       } && test -s conftest.$ac_objext; then
23887 131 jeremybenn
  gdb_cv_proc_service_is_old=no
23888
else
23889 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23890 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23891
 
23892 213 jeremybenn
        gdb_cv_proc_service_is_old=yes
23893 131 jeremybenn
fi
23894
 
23895 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23896
 
23897 131 jeremybenn
fi
23898
 
23899 213 jeremybenn
         { $as_echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23900
$as_echo "$gdb_cv_proc_service_is_old" >&6; }
23901 131 jeremybenn
         if test $gdb_cv_proc_service_is_old = yes; then
23902
 
23903
cat >>confdefs.h <<\_ACEOF
23904
#define PROC_SERVICE_IS_OLD 1
23905
_ACEOF
23906
 
23907
         fi
23908
      else
23909 213 jeremybenn
         { $as_echo "$as_me:$LINENO: result: no" >&5
23910
$as_echo "no" >&6; }
23911 131 jeremybenn
      fi
23912
      ;;
23913
   aix*)
23914 213 jeremybenn
      { $as_echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23915
$as_echo_n "checking for AiX thread debugging library... " >&6; }
23916 131 jeremybenn
      if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23917 213 jeremybenn
  $as_echo_n "(cached) " >&6
23918 131 jeremybenn
else
23919
  cat >conftest.$ac_ext <<_ACEOF
23920
/* confdefs.h.  */
23921
_ACEOF
23922
cat confdefs.h >>conftest.$ac_ext
23923
cat >>conftest.$ac_ext <<_ACEOF
23924
/* end confdefs.h.  */
23925
#include 
23926
int
23927
main ()
23928
{
23929
#ifndef PTHDB_VERSION_3
23930
                                    #error
23931
                                    #endif
23932
  ;
23933
  return 0;
23934
}
23935
_ACEOF
23936
rm -f conftest.$ac_objext
23937 213 jeremybenn
if { (ac_try="$ac_compile"
23938
case "(($ac_try" in
23939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940
  *) ac_try_echo=$ac_try;;
23941
esac
23942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943
$as_echo "$ac_try_echo") >&5
23944
  (eval "$ac_compile") 2>conftest.er1
23945 131 jeremybenn
  ac_status=$?
23946
  grep -v '^ *+' conftest.er1 >conftest.err
23947
  rm -f conftest.er1
23948
  cat conftest.err >&5
23949 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950
  (exit $ac_status); } && {
23951
         test -z "$ac_c_werror_flag" ||
23952
         test ! -s conftest.err
23953
       } && test -s conftest.$ac_objext; then
23954 131 jeremybenn
  gdb_cv_have_aix_thread_debug=yes
23955
else
23956 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
23957 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
23958
 
23959 213 jeremybenn
        gdb_cv_have_aix_thread_debug=no
23960 131 jeremybenn
fi
23961 213 jeremybenn
 
23962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23963 131 jeremybenn
fi
23964
 
23965 213 jeremybenn
      { $as_echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23966
$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
23967 131 jeremybenn
      if test $gdb_cv_have_aix_thread_debug = yes; then
23968
         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23969
         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23970
         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23971
      fi
23972
      ;;
23973
   esac
23974
 
23975
fi
23976
 
23977
if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23978 213 jeremybenn
   { $as_echo "$as_me:$LINENO: checking whether  has TD_NOTALLOC" >&5
23979
$as_echo_n "checking whether  has TD_NOTALLOC... " >&6; }
23980 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23981 213 jeremybenn
  $as_echo_n "(cached) " >&6
23982 131 jeremybenn
else
23983
  cat >conftest.$ac_ext <<_ACEOF
23984
/* confdefs.h.  */
23985
_ACEOF
23986
cat confdefs.h >>conftest.$ac_ext
23987
cat >>conftest.$ac_ext <<_ACEOF
23988
/* end confdefs.h.  */
23989
#include 
23990
int
23991
main ()
23992
{
23993
int i = TD_NOTALLOC;
23994
  ;
23995
  return 0;
23996
}
23997
_ACEOF
23998
rm -f conftest.$ac_objext
23999 213 jeremybenn
if { (ac_try="$ac_compile"
24000
case "(($ac_try" in
24001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002
  *) ac_try_echo=$ac_try;;
24003
esac
24004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24005
$as_echo "$ac_try_echo") >&5
24006
  (eval "$ac_compile") 2>conftest.er1
24007 131 jeremybenn
  ac_status=$?
24008
  grep -v '^ *+' conftest.er1 >conftest.err
24009
  rm -f conftest.er1
24010
  cat conftest.err >&5
24011 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012
  (exit $ac_status); } && {
24013
         test -z "$ac_c_werror_flag" ||
24014
         test ! -s conftest.err
24015
       } && test -s conftest.$ac_objext; then
24016 131 jeremybenn
  gdb_cv_thread_db_h_has_td_notalloc=yes
24017
else
24018 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24019 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24020
 
24021 213 jeremybenn
        gdb_cv_thread_db_h_has_td_notalloc=no
24022 131 jeremybenn
 
24023
fi
24024
 
24025 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026
 
24027 131 jeremybenn
fi
24028 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24029
$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
24030
   { $as_echo "$as_me:$LINENO: checking whether  has TD_VERSION" >&5
24031
$as_echo_n "checking whether  has TD_VERSION... " >&6; }
24032 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24033 213 jeremybenn
  $as_echo_n "(cached) " >&6
24034 131 jeremybenn
else
24035
  cat >conftest.$ac_ext <<_ACEOF
24036
/* confdefs.h.  */
24037
_ACEOF
24038
cat confdefs.h >>conftest.$ac_ext
24039
cat >>conftest.$ac_ext <<_ACEOF
24040
/* end confdefs.h.  */
24041
#include 
24042
int
24043
main ()
24044
{
24045
int i = TD_VERSION;
24046
  ;
24047
  return 0;
24048
}
24049
_ACEOF
24050
rm -f conftest.$ac_objext
24051 213 jeremybenn
if { (ac_try="$ac_compile"
24052
case "(($ac_try" in
24053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054
  *) ac_try_echo=$ac_try;;
24055
esac
24056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24057
$as_echo "$ac_try_echo") >&5
24058
  (eval "$ac_compile") 2>conftest.er1
24059 131 jeremybenn
  ac_status=$?
24060
  grep -v '^ *+' conftest.er1 >conftest.err
24061
  rm -f conftest.er1
24062
  cat conftest.err >&5
24063 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064
  (exit $ac_status); } && {
24065
         test -z "$ac_c_werror_flag" ||
24066
         test ! -s conftest.err
24067
       } && test -s conftest.$ac_objext; then
24068 131 jeremybenn
  gdb_cv_thread_db_h_has_td_version=yes
24069
else
24070 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24071 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24072
 
24073 213 jeremybenn
        gdb_cv_thread_db_h_has_td_version=no
24074 131 jeremybenn
 
24075
fi
24076
 
24077 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078
 
24079 131 jeremybenn
fi
24080 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24081
$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
24082
   { $as_echo "$as_me:$LINENO: checking whether  has TD_NOTLS" >&5
24083
$as_echo_n "checking whether  has TD_NOTLS... " >&6; }
24084 131 jeremybenn
if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
24085 213 jeremybenn
  $as_echo_n "(cached) " >&6
24086 131 jeremybenn
else
24087
  cat >conftest.$ac_ext <<_ACEOF
24088
/* confdefs.h.  */
24089
_ACEOF
24090
cat confdefs.h >>conftest.$ac_ext
24091
cat >>conftest.$ac_ext <<_ACEOF
24092
/* end confdefs.h.  */
24093
#include 
24094
int
24095
main ()
24096
{
24097
int i = TD_NOTLS;
24098
  ;
24099
  return 0;
24100
}
24101
_ACEOF
24102
rm -f conftest.$ac_objext
24103 213 jeremybenn
if { (ac_try="$ac_compile"
24104
case "(($ac_try" in
24105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106
  *) ac_try_echo=$ac_try;;
24107
esac
24108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24109
$as_echo "$ac_try_echo") >&5
24110
  (eval "$ac_compile") 2>conftest.er1
24111 131 jeremybenn
  ac_status=$?
24112
  grep -v '^ *+' conftest.er1 >conftest.err
24113
  rm -f conftest.er1
24114
  cat conftest.err >&5
24115 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116
  (exit $ac_status); } && {
24117
         test -z "$ac_c_werror_flag" ||
24118
         test ! -s conftest.err
24119
       } && test -s conftest.$ac_objext; then
24120 131 jeremybenn
  gdb_cv_thread_db_h_has_td_notls=yes
24121
else
24122 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24123 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24124
 
24125 213 jeremybenn
        gdb_cv_thread_db_h_has_td_notls=no
24126 131 jeremybenn
 
24127
fi
24128
 
24129 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24130
 
24131 131 jeremybenn
fi
24132 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24133
$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
24134 131 jeremybenn
fi
24135
if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24136
 
24137
cat >>confdefs.h <<\_ACEOF
24138
#define THREAD_DB_HAS_TD_NOTALLOC 1
24139
_ACEOF
24140
 
24141
fi
24142
if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24143
 
24144
cat >>confdefs.h <<\_ACEOF
24145
#define THREAD_DB_HAS_TD_VERSION 1
24146
_ACEOF
24147
 
24148
fi
24149
if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24150
 
24151
cat >>confdefs.h <<\_ACEOF
24152
#define THREAD_DB_HAS_TD_NOTLS 1
24153
_ACEOF
24154
 
24155
fi
24156
 
24157
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24158 213 jeremybenn
   { $as_echo "$as_me:$LINENO: checking whether  has __NR_tkill" >&5
24159
$as_echo_n "checking whether  has __NR_tkill... " >&6; }
24160 131 jeremybenn
if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24161 213 jeremybenn
  $as_echo_n "(cached) " >&6
24162 131 jeremybenn
else
24163
  cat >conftest.$ac_ext <<_ACEOF
24164
/* confdefs.h.  */
24165
_ACEOF
24166
cat confdefs.h >>conftest.$ac_ext
24167
cat >>conftest.$ac_ext <<_ACEOF
24168
/* end confdefs.h.  */
24169
#include 
24170
int
24171
main ()
24172
{
24173
int i = __NR_tkill;
24174
  ;
24175
  return 0;
24176
}
24177
_ACEOF
24178
rm -f conftest.$ac_objext
24179 213 jeremybenn
if { (ac_try="$ac_compile"
24180
case "(($ac_try" in
24181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182
  *) ac_try_echo=$ac_try;;
24183
esac
24184
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24185
$as_echo "$ac_try_echo") >&5
24186
  (eval "$ac_compile") 2>conftest.er1
24187 131 jeremybenn
  ac_status=$?
24188
  grep -v '^ *+' conftest.er1 >conftest.err
24189
  rm -f conftest.er1
24190
  cat conftest.err >&5
24191 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192
  (exit $ac_status); } && {
24193
         test -z "$ac_c_werror_flag" ||
24194
         test ! -s conftest.err
24195
       } && test -s conftest.$ac_objext; then
24196 131 jeremybenn
  gdb_cv_sys_syscall_h_has_tkill=yes
24197
else
24198 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24199 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24200
 
24201 213 jeremybenn
        gdb_cv_sys_syscall_h_has_tkill=no
24202 131 jeremybenn
 
24203
fi
24204
 
24205 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206
 
24207 131 jeremybenn
fi
24208 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24209
$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
24210 131 jeremybenn
fi
24211
if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24212
 
24213
cat >>confdefs.h <<\_ACEOF
24214
#define HAVE_TKILL_SYSCALL 1
24215
_ACEOF
24216
 
24217
fi
24218
 
24219
 
24220
 
24221 213 jeremybenn
# Check whether --with-sysroot was given.
24222 131 jeremybenn
if test "${with_sysroot+set}" = set; then
24223 213 jeremybenn
  withval=$with_sysroot;
24224 131 jeremybenn
 case ${with_sysroot} in
24225
 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24226
 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24227
 esac
24228
 
24229
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24230
 
24231
 if test "x$prefix" = xNONE; then
24232
  test_prefix=/usr/local
24233
 else
24234
  test_prefix=$prefix
24235
 fi
24236
 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24237
  test_exec_prefix=$test_prefix
24238
 else
24239
  test_exec_prefix=$exec_prefix
24240
 fi
24241
 case ${TARGET_SYSTEM_ROOT} in
24242
 "${test_prefix}"|"${test_prefix}/"*|\
24243
 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24244
 '${prefix}'|'${prefix}/'*|\
24245
 '${exec_prefix}'|'${exec_prefix}/'*)
24246
   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24247
   TARGET_SYSTEM_ROOT_DEFINE="$t"
24248
   ;;
24249
 esac
24250
 
24251
else
24252
 
24253
 TARGET_SYSTEM_ROOT=
24254
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24255
 
24256 213 jeremybenn
fi
24257 131 jeremybenn
 
24258
 
24259
 
24260 213 jeremybenn
 
24261
# Check whether --enable-werror was given.
24262 131 jeremybenn
if test "${enable_werror+set}" = set; then
24263 213 jeremybenn
  enableval=$enable_werror; case "${enableval}" in
24264 131 jeremybenn
     yes | y) ERROR_ON_WARNING="yes" ;;
24265
     no | n)  ERROR_ON_WARNING="no" ;;
24266 213 jeremybenn
     *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24267
$as_echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24268 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
24269
   esac
24270 213 jeremybenn
fi
24271 131 jeremybenn
 
24272 213 jeremybenn
 
24273 131 jeremybenn
# Enable -Werror by default when using gcc
24274
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24275
    ERROR_ON_WARNING=yes
24276
fi
24277
 
24278
WERROR_CFLAGS=""
24279
if test "${ERROR_ON_WARNING}" = yes ; then
24280
    WERROR_CFLAGS="-Werror"
24281
fi
24282
 
24283
# The entries after -Wno-pointer-sign are disabled warnings which may
24284
# be enabled in the future, which can not currently be used to build
24285
# GDB.
24286
# NOTE: If you change this list, remember to update
24287
# gdb/doc/gdbint.texinfo.
24288
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24289
-Wformat-nonliteral -Wno-pointer-sign \
24290
-Wno-unused -Wno-switch -Wno-char-subscripts"
24291
 
24292 213 jeremybenn
# Check whether --enable-build-warnings was given.
24293 131 jeremybenn
if test "${enable_build_warnings+set}" = set; then
24294 213 jeremybenn
  enableval=$enable_build_warnings; case "${enableval}" in
24295 131 jeremybenn
  yes)  ;;
24296
  no)   build_warnings="-w";;
24297
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24298
        build_warnings="${build_warnings} ${t}";;
24299
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24300
        build_warnings="${t} ${build_warnings}";;
24301
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24302
esac
24303
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24304
  echo "Setting compiler warning flags = $build_warnings" 6>&1
24305
fi
24306 213 jeremybenn
fi
24307
# Check whether --enable-gdb-build-warnings was given.
24308 131 jeremybenn
if test "${enable_gdb_build_warnings+set}" = set; then
24309 213 jeremybenn
  enableval=$enable_gdb_build_warnings; case "${enableval}" in
24310 131 jeremybenn
  yes)  ;;
24311
  no)   build_warnings="-w";;
24312
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24313
        build_warnings="${build_warnings} ${t}";;
24314
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
24315
        build_warnings="${t} ${build_warnings}";;
24316
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24317
esac
24318
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24319
  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24320
fi
24321 213 jeremybenn
fi
24322
WARN_CFLAGS=""
24323 131 jeremybenn
if test "x${build_warnings}" != x -a "x$GCC" = xyes
24324
then
24325 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking compiler warning flags" >&5
24326
$as_echo_n "checking compiler warning flags... " >&6; }
24327 131 jeremybenn
    # Separate out the -Werror flag as some files just cannot be
24328
    # compiled with it enabled.
24329
    for w in ${build_warnings}; do
24330
        case $w in
24331
        -Werr*) WERROR_CFLAGS=-Werror ;;
24332
        *) # Check that GCC accepts it
24333
            saved_CFLAGS="$CFLAGS"
24334
            CFLAGS="$CFLAGS $w"
24335
            cat >conftest.$ac_ext <<_ACEOF
24336
/* confdefs.h.  */
24337
_ACEOF
24338
cat confdefs.h >>conftest.$ac_ext
24339
cat >>conftest.$ac_ext <<_ACEOF
24340
/* end confdefs.h.  */
24341
 
24342
int
24343
main ()
24344
{
24345
 
24346
  ;
24347
  return 0;
24348
}
24349
_ACEOF
24350
rm -f conftest.$ac_objext
24351 213 jeremybenn
if { (ac_try="$ac_compile"
24352
case "(($ac_try" in
24353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354
  *) ac_try_echo=$ac_try;;
24355
esac
24356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24357
$as_echo "$ac_try_echo") >&5
24358
  (eval "$ac_compile") 2>conftest.er1
24359 131 jeremybenn
  ac_status=$?
24360
  grep -v '^ *+' conftest.er1 >conftest.err
24361
  rm -f conftest.er1
24362
  cat conftest.err >&5
24363 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364
  (exit $ac_status); } && {
24365
         test -z "$ac_c_werror_flag" ||
24366
         test ! -s conftest.err
24367
       } && test -s conftest.$ac_objext; then
24368 131 jeremybenn
  WARN_CFLAGS="${WARN_CFLAGS} $w"
24369
else
24370 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24371 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24372
 
24373 213 jeremybenn
 
24374 131 jeremybenn
fi
24375 213 jeremybenn
 
24376
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24377 131 jeremybenn
            CFLAGS="$saved_CFLAGS"
24378
        esac
24379
    done
24380 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24381
$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
24382 131 jeremybenn
fi
24383
 
24384
 
24385
 
24386
# In the Cygwin environment, we need some additional flags.
24387 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for cygwin" >&5
24388
$as_echo_n "checking for cygwin... " >&6; }
24389 131 jeremybenn
if test "${gdb_cv_os_cygwin+set}" = set; then
24390 213 jeremybenn
  $as_echo_n "(cached) " >&6
24391 131 jeremybenn
else
24392
  cat >conftest.$ac_ext <<_ACEOF
24393
/* confdefs.h.  */
24394
_ACEOF
24395
cat confdefs.h >>conftest.$ac_ext
24396
cat >>conftest.$ac_ext <<_ACEOF
24397
/* end confdefs.h.  */
24398
 
24399
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24400
lose
24401
#endif
24402
_ACEOF
24403
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24404
  $EGREP "lose" >/dev/null 2>&1; then
24405
  gdb_cv_os_cygwin=yes
24406
else
24407
  gdb_cv_os_cygwin=no
24408
fi
24409
rm -f conftest*
24410
 
24411
fi
24412 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24413
$as_echo "$gdb_cv_os_cygwin" >&6; }
24414 131 jeremybenn
 
24415
 
24416
SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24417
case ${host} in
24418
  *go32* ) SER_HARDWIRE=ser-go32.o ;;
24419
  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24420
  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24421
esac
24422
 
24423
 
24424
# libreadline needs libuser32.a in a cygwin environment
24425
WIN32LIBS=
24426
if test x$gdb_cv_os_cygwin = xyes; then
24427
    WIN32LIBS="-luser32"
24428
    case "${target}" in
24429
        *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24430
        ;;
24431
    esac
24432
fi
24433
 
24434
# The ser-tcp.c module requires sockets.
24435
case ${host} in
24436
  *mingw32*)
24437
 
24438
cat >>confdefs.h <<\_ACEOF
24439
#define USE_WIN32API 1
24440
_ACEOF
24441
 
24442
    WIN32LIBS="$WIN32LIBS -lws2_32"
24443
    ;;
24444
esac
24445
 
24446
 
24447
# Add ELF support to GDB, but only if BFD includes ELF support.
24448
OLD_CFLAGS=$CFLAGS
24449
OLD_LDFLAGS=$LDFLAGS
24450
OLD_LIBS=$LIBS
24451
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24452
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24453
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24454
LIBS="$LIBS -lbfd -liberty $intl"
24455 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24456
$as_echo_n "checking for ELF support in BFD... " >&6; }
24457 131 jeremybenn
if test "${gdb_cv_var_elf+set}" = set; then
24458 213 jeremybenn
  $as_echo_n "(cached) " >&6
24459 131 jeremybenn
else
24460
  cat >conftest.$ac_ext <<_ACEOF
24461
/* confdefs.h.  */
24462
_ACEOF
24463
cat confdefs.h >>conftest.$ac_ext
24464
cat >>conftest.$ac_ext <<_ACEOF
24465
/* end confdefs.h.  */
24466
#include 
24467
#include "bfd.h"
24468
#include "elf-bfd.h"
24469
 
24470
int
24471
main ()
24472
{
24473
bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24474
  ;
24475
  return 0;
24476
}
24477
_ACEOF
24478
rm -f conftest.$ac_objext conftest$ac_exeext
24479 213 jeremybenn
if { (ac_try="$ac_link"
24480
case "(($ac_try" in
24481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482
  *) ac_try_echo=$ac_try;;
24483
esac
24484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24485
$as_echo "$ac_try_echo") >&5
24486
  (eval "$ac_link") 2>conftest.er1
24487 131 jeremybenn
  ac_status=$?
24488
  grep -v '^ *+' conftest.er1 >conftest.err
24489
  rm -f conftest.er1
24490
  cat conftest.err >&5
24491 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492
  (exit $ac_status); } && {
24493
         test -z "$ac_c_werror_flag" ||
24494
         test ! -s conftest.err
24495
       } && test -s conftest$ac_exeext && {
24496
         test "$cross_compiling" = yes ||
24497
         $as_test_x conftest$ac_exeext
24498
       }; then
24499 131 jeremybenn
  gdb_cv_var_elf=yes
24500
else
24501 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24502 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24503
 
24504 213 jeremybenn
        gdb_cv_var_elf=no
24505 131 jeremybenn
fi
24506 213 jeremybenn
 
24507
rm -rf conftest.dSYM
24508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24509 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
24510
fi
24511 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24512
$as_echo "$gdb_cv_var_elf" >&6; }
24513 131 jeremybenn
if test $gdb_cv_var_elf = yes; then
24514
  CONFIG_OBS="$CONFIG_OBS elfread.o"
24515
 
24516
cat >>confdefs.h <<\_ACEOF
24517
#define HAVE_ELF 1
24518
_ACEOF
24519
 
24520
fi
24521
CFLAGS=$OLD_CFLAGS
24522
LDFLAGS=$OLD_LDFLAGS
24523
LIBS=$OLD_LIBS
24524
 
24525
# Add any host-specific objects to GDB.
24526
CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24527
 
24528
LIBGUI="../libgui/src/libgui.a"
24529
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24530
 
24531
 
24532
 
24533
WIN32LDAPP=
24534
 
24535
 
24536
 
24537
case "${host}" in
24538
*-*-cygwin*)
24539
    configdir="win"
24540
    ;;
24541
*)
24542
    configdir="unix"
24543
    ;;
24544
esac
24545
 
24546
GDBTKLIBS=
24547
if test "${enable_gdbtk}" = "yes"; then
24548
 
24549
    # Gdbtk must have an absolute path to srcdir in order to run
24550
    # properly when not installed.
24551
    here=`pwd`
24552
    cd ${srcdir}
24553
    GDBTK_SRC_DIR=`pwd`
24554
    cd $here
24555
 
24556
 
24557
#
24558
# Ok, lets find the tcl configuration
24559
# First, look for one uninstalled.
24560
# the alternative search directory is invoked by --with-tclconfig
24561
#
24562
 
24563
if test x"${no_tcl}" = x ; then
24564
  # we reset no_tcl in case something fails here
24565
  no_tcl=true
24566
 
24567 213 jeremybenn
# Check whether --with-tclconfig was given.
24568 131 jeremybenn
if test "${with_tclconfig+set}" = set; then
24569 213 jeremybenn
  withval=$with_tclconfig; with_tclconfig=${withval}
24570
fi
24571
 
24572
  { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24573
$as_echo_n "checking for Tcl configuration... " >&6; }
24574 131 jeremybenn
  if test "${ac_cv_c_tclconfig+set}" = set; then
24575 213 jeremybenn
  $as_echo_n "(cached) " >&6
24576 131 jeremybenn
else
24577
 
24578
 
24579
  # First check to see if --with-tclconfig was specified.
24580
  if test x"${with_tclconfig}" != x ; then
24581
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
24582
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24583
    else
24584 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24585
$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24586 131 jeremybenn
   { (exit 1); exit 1; }; }
24587
    fi
24588
  fi
24589
 
24590
  # then check for a private Tcl installation
24591
  if test x"${ac_cv_c_tclconfig}" = x ; then
24592
    for i in \
24593
                ../tcl \
24594
                `ls -dr ../tcl[7-9]* 2>/dev/null` \
24595
                ../../tcl \
24596
                `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24597
                ../../../tcl \
24598
                `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24599
      if test -f "$i/${configdir}/tclConfig.sh" ; then
24600
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24601
        break
24602
      fi
24603
    done
24604
  fi
24605
  # check in a few common install locations
24606
  if test x"${ac_cv_c_tclconfig}" = x ; then
24607
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24608
      if test -f "$i/tclConfig.sh" ; then
24609
        ac_cv_c_tclconfig=`(cd $i; pwd)`
24610
        break
24611
      fi
24612
    done
24613
  fi
24614
  # check in a few other private locations
24615
  if test x"${ac_cv_c_tclconfig}" = x ; then
24616
    for i in \
24617
                ${srcdir}/../tcl \
24618
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24619
      if test -f "$i/${configdir}/tclConfig.sh" ; then
24620
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24621
        break
24622
      fi
24623
    done
24624
  fi
24625
 
24626
fi
24627
 
24628
  if test x"${ac_cv_c_tclconfig}" = x ; then
24629
    TCLCONFIG="# no Tcl configs found"
24630 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24631
$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24632 131 jeremybenn
  else
24633
    no_tcl=
24634
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
24635 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24636
$as_echo "found $TCLCONFIG" >&6; }
24637 131 jeremybenn
  fi
24638
fi
24639
 
24640
    if test -z "${no_tcl}"; then
24641
 
24642
    . $TCLCONFIG
24643
 
24644
 
24645
 
24646
 
24647
 
24648
 
24649
 
24650
 
24651
 
24652
 
24653
 
24654
 
24655
 
24656
 
24657
 
24658
 
24659
 
24660
 
24661
 
24662
 
24663
 
24664
 
24665
 
24666
 
24667
 
24668
 
24669
 
24670
#
24671
# Ok, lets find the tk configuration
24672
# First, look for one uninstalled.
24673
# the alternative search directory is invoked by --with-tkconfig
24674
#
24675
 
24676
if test x"${no_tk}" = x ; then
24677
  # we reset no_tk in case something fails here
24678
  no_tk=true
24679
 
24680 213 jeremybenn
# Check whether --with-tkconfig was given.
24681 131 jeremybenn
if test "${with_tkconfig+set}" = set; then
24682 213 jeremybenn
  withval=$with_tkconfig; with_tkconfig=${withval}
24683
fi
24684
 
24685
  { $as_echo "$as_me:$LINENO: checking for Tk configuration" >&5
24686
$as_echo_n "checking for Tk configuration... " >&6; }
24687 131 jeremybenn
  if test "${ac_cv_c_tkconfig+set}" = set; then
24688 213 jeremybenn
  $as_echo_n "(cached) " >&6
24689 131 jeremybenn
else
24690
 
24691
 
24692
  # First check to see if --with-tkconfig was specified.
24693
  if test x"${with_tkconfig}" != x ; then
24694
    if test -f "${with_tkconfig}/tkConfig.sh" ; then
24695
      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24696
    else
24697 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24698
$as_echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24699 131 jeremybenn
   { (exit 1); exit 1; }; }
24700
    fi
24701
  fi
24702
 
24703
  # then check for a private Tk library
24704
  if test x"${ac_cv_c_tkconfig}" = x ; then
24705
    for i in \
24706
                ../tk \
24707
                `ls -dr ../tk[4-9]* 2>/dev/null` \
24708
                ../../tk \
24709
                `ls -dr ../../tk[4-9]* 2>/dev/null` \
24710
                ../../../tk \
24711
                `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24712
      if test -f "$i/${configdir}/tkConfig.sh" ; then
24713
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24714
        break
24715
      fi
24716
    done
24717
  fi
24718
  # check in a few common install locations
24719
  if test x"${ac_cv_c_tkconfig}" = x ; then
24720
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24721
      if test -f "$i/tkConfig.sh" ; then
24722
        ac_cv_c_tkconfig=`(cd $i; pwd)`
24723
        break
24724
      fi
24725
    done
24726
  fi
24727
  # check in a few other private locations
24728
  if test x"${ac_cv_c_tkconfig}" = x ; then
24729
    for i in \
24730
                ${srcdir}/../tk \
24731
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24732
      if test -f "$i/${configdir}/tkConfig.sh" ; then
24733
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24734
        break
24735
      fi
24736
    done
24737
  fi
24738
 
24739
fi
24740
 
24741
  if test x"${ac_cv_c_tkconfig}" = x ; then
24742
    TKCONFIG="# no Tk configs found"
24743 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24744
$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24745 131 jeremybenn
  else
24746
    no_tk=
24747
    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
24748 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24749
$as_echo "found $TKCONFIG" >&6; }
24750 131 jeremybenn
  fi
24751
fi
24752
 
24753
 
24754
 
24755
        # now look for Tcl library stuff
24756
 
24757
        tcldir="../tcl/${configdir}/"
24758
 
24759
        TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24760
 
24761
        # If $no_tk is nonempty, then we can't do Tk, and there is no
24762
        # point to doing Tcl.
24763
        if test -z "${no_tk}"; then
24764
 
24765
    if test -f "$TKCONFIG" ; then
24766
      . $TKCONFIG
24767
    fi
24768
 
24769
 
24770
 
24771
 
24772
 
24773
 
24774
 
24775
 
24776
 
24777
 
24778
 
24779
 
24780
 
24781
 
24782
#
24783
# Ok, lets find the tcl source trees so we can use the headers
24784
# Warning: transition of version 9 to 10 will break this algorithm
24785
# because 10 sorts before 9. We also look for just tcl. We have to
24786
# be careful that we don't match stuff like tclX by accident.
24787
# the alternative search directory is involked by --with-tclinclude
24788
#
24789
 
24790
no_tcl=true
24791 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24792
$as_echo_n "checking for Tcl private headers. dir=${configdir}... " >&6; }
24793 131 jeremybenn
 
24794 213 jeremybenn
# Check whether --with-tclinclude was given.
24795 131 jeremybenn
if test "${with_tclinclude+set}" = set; then
24796 213 jeremybenn
  withval=$with_tclinclude; with_tclinclude=${withval}
24797
fi
24798
 
24799 131 jeremybenn
if test "${ac_cv_c_tclh+set}" = set; then
24800 213 jeremybenn
  $as_echo_n "(cached) " >&6
24801 131 jeremybenn
else
24802
 
24803
# first check to see if --with-tclinclude was specified
24804
if test x"${with_tclinclude}" != x ; then
24805
  if test -f ${with_tclinclude}/tclInt.h ; then
24806
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24807
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24808
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24809
  else
24810 213 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24811
$as_echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24812 131 jeremybenn
   { (exit 1); exit 1; }; }
24813
  fi
24814
fi
24815
 
24816
# next check if it came with Tcl configuration file
24817
if test x"${ac_cv_c_tclconfig}" = x ; then
24818
  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24819
    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24820
  fi
24821
fi
24822
 
24823
# next check in private source directory
24824
#
24825
# since ls returns lowest version numbers first, reverse its output
24826
if test x"${ac_cv_c_tclh}" = x ; then
24827
  for i in \
24828
                ${srcdir}/../tcl \
24829
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24830
                ${srcdir}/../../tcl \
24831
                `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24832
                ${srcdir}/../../../tcl \
24833
                `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24834
    if test -f $i/generic/tclInt.h ; then
24835
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
24836
      break
24837
    fi
24838
  done
24839
fi
24840
# finally check in a few common install locations
24841
#
24842
# since ls returns lowest version numbers first, reverse its output
24843
if test x"${ac_cv_c_tclh}" = x ; then
24844
  for i in \
24845
                `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24846
                `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24847
                /usr/local/src/tcl \
24848
                /usr/local/lib/tcl \
24849
                ${prefix}/include ; do
24850
    if test -f $i/generic/tclInt.h ; then
24851
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
24852
      break
24853
    fi
24854
  done
24855
fi
24856
# see if one is installed
24857
if test x"${ac_cv_c_tclh}" = x ; then
24858
   if test "${ac_cv_header_tclInt_h+set}" = set; then
24859 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for tclInt.h" >&5
24860
$as_echo_n "checking for tclInt.h... " >&6; }
24861 131 jeremybenn
if test "${ac_cv_header_tclInt_h+set}" = set; then
24862 213 jeremybenn
  $as_echo_n "(cached) " >&6
24863 131 jeremybenn
fi
24864 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24865
$as_echo "$ac_cv_header_tclInt_h" >&6; }
24866 131 jeremybenn
else
24867
  # Is the header compilable?
24868 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24869
$as_echo_n "checking tclInt.h usability... " >&6; }
24870 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
24871
/* confdefs.h.  */
24872
_ACEOF
24873
cat confdefs.h >>conftest.$ac_ext
24874
cat >>conftest.$ac_ext <<_ACEOF
24875
/* end confdefs.h.  */
24876
$ac_includes_default
24877
#include 
24878
_ACEOF
24879
rm -f conftest.$ac_objext
24880 213 jeremybenn
if { (ac_try="$ac_compile"
24881
case "(($ac_try" in
24882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883
  *) ac_try_echo=$ac_try;;
24884
esac
24885
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24886
$as_echo "$ac_try_echo") >&5
24887
  (eval "$ac_compile") 2>conftest.er1
24888 131 jeremybenn
  ac_status=$?
24889
  grep -v '^ *+' conftest.er1 >conftest.err
24890
  rm -f conftest.er1
24891
  cat conftest.err >&5
24892 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893
  (exit $ac_status); } && {
24894
         test -z "$ac_c_werror_flag" ||
24895
         test ! -s conftest.err
24896
       } && test -s conftest.$ac_objext; then
24897 131 jeremybenn
  ac_header_compiler=yes
24898
else
24899 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24900 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24901
 
24902 213 jeremybenn
        ac_header_compiler=no
24903 131 jeremybenn
fi
24904
 
24905 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24906
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24907
$as_echo "$ac_header_compiler" >&6; }
24908
 
24909 131 jeremybenn
# Is the header present?
24910 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24911
$as_echo_n "checking tclInt.h presence... " >&6; }
24912 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
24913
/* confdefs.h.  */
24914
_ACEOF
24915
cat confdefs.h >>conftest.$ac_ext
24916
cat >>conftest.$ac_ext <<_ACEOF
24917
/* end confdefs.h.  */
24918
#include 
24919
_ACEOF
24920 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
24921
case "(($ac_try" in
24922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923
  *) ac_try_echo=$ac_try;;
24924
esac
24925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926
$as_echo "$ac_try_echo") >&5
24927
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24928 131 jeremybenn
  ac_status=$?
24929
  grep -v '^ *+' conftest.er1 >conftest.err
24930
  rm -f conftest.er1
24931
  cat conftest.err >&5
24932 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933
  (exit $ac_status); } >/dev/null && {
24934
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24935
         test ! -s conftest.err
24936
       }; then
24937 131 jeremybenn
  ac_header_preproc=yes
24938
else
24939 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
24940 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
24941
 
24942
  ac_header_preproc=no
24943
fi
24944 213 jeremybenn
 
24945 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
24946 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24947
$as_echo "$ac_header_preproc" >&6; }
24948 131 jeremybenn
 
24949
# So?  What about this header?
24950
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24951
  yes:no: )
24952 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24953
$as_echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24954
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24955
$as_echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24956 131 jeremybenn
    ac_header_preproc=yes
24957
    ;;
24958
  no:yes:* )
24959 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24960
$as_echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24961
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
24962
$as_echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
24963
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24964
$as_echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24965
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
24966
$as_echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24967
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24968
$as_echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24969
    { $as_echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24970
$as_echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
24971
 
24972 131 jeremybenn
    ;;
24973
esac
24974 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for tclInt.h" >&5
24975
$as_echo_n "checking for tclInt.h... " >&6; }
24976 131 jeremybenn
if test "${ac_cv_header_tclInt_h+set}" = set; then
24977 213 jeremybenn
  $as_echo_n "(cached) " >&6
24978 131 jeremybenn
else
24979
  ac_cv_header_tclInt_h=$ac_header_preproc
24980
fi
24981 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24982
$as_echo "$ac_cv_header_tclInt_h" >&6; }
24983 131 jeremybenn
 
24984
fi
24985 213 jeremybenn
if test "x$ac_cv_header_tclInt_h" = x""yes; then
24986 131 jeremybenn
  ac_cv_c_tclh=installed
24987
else
24988
  ac_cv_c_tclh=""
24989
fi
24990
 
24991
 
24992
fi
24993
 
24994
fi
24995
 
24996
if test x"${ac_cv_c_tclh}" = x ; then
24997
  TCLHDIR="# no Tcl private headers found"
24998 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24999
$as_echo "$as_me: error: Can't find Tcl private headers" >&2;}
25000 131 jeremybenn
   { (exit 1); exit 1; }; }
25001
fi
25002
if test x"${ac_cv_c_tclh}" != x ; then
25003
  no_tcl=""
25004
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
25005 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: is installed" >&5
25006
$as_echo "is installed" >&6; }
25007 131 jeremybenn
    TCLHDIR=""
25008
  else
25009 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
25010
$as_echo "found in ${ac_cv_c_tclh}" >&6; }
25011 131 jeremybenn
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
25012
    TCLHDIR="-I${ac_cv_c_tclh}"
25013
  fi
25014
fi
25015
 
25016
 
25017
 
25018
 
25019
#
25020
# Ok, lets find the tk source trees so we can use the headers
25021
# If the directory (presumably symlink) named "tk" exists, use that one
25022
# in preference to any others.  Same logic is used when choosing library
25023
# and again with Tcl. The search order is the best place to look first, then in
25024
# decreasing significance. The loop breaks if the trigger file is found.
25025
# Note the gross little conversion here of srcdir by cd'ing to the found
25026
# directory. This converts the path from a relative to an absolute, so
25027
# recursive cache variables for the path will work right. We check all
25028
# the possible paths in one loop rather than many seperate loops to speed
25029
# things up.
25030
# the alternative search directory is involked by --with-tkinclude
25031
#
25032
no_tk=true
25033 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for Tk private headers" >&5
25034
$as_echo_n "checking for Tk private headers... " >&6; }
25035 131 jeremybenn
 
25036 213 jeremybenn
# Check whether --with-tkinclude was given.
25037 131 jeremybenn
if test "${with_tkinclude+set}" = set; then
25038 213 jeremybenn
  withval=$with_tkinclude; with_tkinclude=${withval}
25039
fi
25040
 
25041 131 jeremybenn
if test "${ac_cv_c_tkh+set}" = set; then
25042 213 jeremybenn
  $as_echo_n "(cached) " >&6
25043 131 jeremybenn
else
25044
 
25045
# first check to see if --with-tkinclude was specified
25046
if test x"${with_tkinclude}" != x ; then
25047
  if test -f ${with_tkinclude}/tk.h ; then
25048
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
25049
  elif test -f ${with_tkinclude}/generic/tk.h ; then
25050
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
25051
  else
25052 213 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
25053
$as_echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
25054 131 jeremybenn
   { (exit 1); exit 1; }; }
25055
  fi
25056
fi
25057
 
25058
# next check if it came with Tk configuration file
25059
if test x"${ac_cv_c_tkconfig}" = x ; then
25060
  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
25061
    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
25062
  fi
25063
fi
25064
 
25065
# next check in private source directory
25066
#
25067
# since ls returns lowest version numbers first, reverse its output
25068
if test x"${ac_cv_c_tkh}" = x ; then
25069
  for i in \
25070
                ${srcdir}/../tk \
25071
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
25072
                ${srcdir}/../../tk \
25073
                `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
25074
                ${srcdir}/../../../tk \
25075
                `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
25076
    if test -f $i/generic/tk.h ; then
25077
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
25078
      break
25079
    fi
25080
  done
25081
fi
25082
# finally check in a few common install locations
25083
#
25084
# since ls returns lowest version numbers first, reverse its output
25085
if test x"${ac_cv_c_tkh}" = x ; then
25086
  for i in \
25087
                `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
25088
                `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
25089
                /usr/local/src/tk \
25090
                /usr/local/lib/tk \
25091
                ${prefix}/include ; do
25092
    if test -f $i/generic/tk.h ; then
25093
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
25094
      break
25095
    fi
25096
  done
25097
fi
25098
# see if one is installed
25099
if test x"${ac_cv_c_tkh}" = x ; then
25100
   if test "${ac_cv_header_tk_h+set}" = set; then
25101 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for tk.h" >&5
25102
$as_echo_n "checking for tk.h... " >&6; }
25103 131 jeremybenn
if test "${ac_cv_header_tk_h+set}" = set; then
25104 213 jeremybenn
  $as_echo_n "(cached) " >&6
25105 131 jeremybenn
fi
25106 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
25107
$as_echo "$ac_cv_header_tk_h" >&6; }
25108 131 jeremybenn
else
25109
  # Is the header compilable?
25110 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking tk.h usability" >&5
25111
$as_echo_n "checking tk.h usability... " >&6; }
25112 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
25113
/* confdefs.h.  */
25114
_ACEOF
25115
cat confdefs.h >>conftest.$ac_ext
25116
cat >>conftest.$ac_ext <<_ACEOF
25117
/* end confdefs.h.  */
25118
$ac_includes_default
25119
#include 
25120
_ACEOF
25121
rm -f conftest.$ac_objext
25122 213 jeremybenn
if { (ac_try="$ac_compile"
25123
case "(($ac_try" in
25124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125
  *) ac_try_echo=$ac_try;;
25126
esac
25127
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25128
$as_echo "$ac_try_echo") >&5
25129
  (eval "$ac_compile") 2>conftest.er1
25130 131 jeremybenn
  ac_status=$?
25131
  grep -v '^ *+' conftest.er1 >conftest.err
25132
  rm -f conftest.er1
25133
  cat conftest.err >&5
25134 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135
  (exit $ac_status); } && {
25136
         test -z "$ac_c_werror_flag" ||
25137
         test ! -s conftest.err
25138
       } && test -s conftest.$ac_objext; then
25139 131 jeremybenn
  ac_header_compiler=yes
25140
else
25141 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
25142 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
25143
 
25144 213 jeremybenn
        ac_header_compiler=no
25145 131 jeremybenn
fi
25146
 
25147 213 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25149
$as_echo "$ac_header_compiler" >&6; }
25150
 
25151 131 jeremybenn
# Is the header present?
25152 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking tk.h presence" >&5
25153
$as_echo_n "checking tk.h presence... " >&6; }
25154 131 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
25155
/* confdefs.h.  */
25156
_ACEOF
25157
cat confdefs.h >>conftest.$ac_ext
25158
cat >>conftest.$ac_ext <<_ACEOF
25159
/* end confdefs.h.  */
25160
#include 
25161
_ACEOF
25162 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
25163
case "(($ac_try" in
25164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165
  *) ac_try_echo=$ac_try;;
25166
esac
25167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25168
$as_echo "$ac_try_echo") >&5
25169
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25170 131 jeremybenn
  ac_status=$?
25171
  grep -v '^ *+' conftest.er1 >conftest.err
25172
  rm -f conftest.er1
25173
  cat conftest.err >&5
25174 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175
  (exit $ac_status); } >/dev/null && {
25176
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25177
         test ! -s conftest.err
25178
       }; then
25179 131 jeremybenn
  ac_header_preproc=yes
25180
else
25181 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
25182 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
25183
 
25184
  ac_header_preproc=no
25185
fi
25186 213 jeremybenn
 
25187 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
25188 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25189
$as_echo "$ac_header_preproc" >&6; }
25190 131 jeremybenn
 
25191
# So?  What about this header?
25192
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25193
  yes:no: )
25194 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
25195
$as_echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25196
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
25197
$as_echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
25198 131 jeremybenn
    ac_header_preproc=yes
25199
    ;;
25200
  no:yes:* )
25201 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
25202
$as_echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
25203
    { $as_echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
25204
$as_echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
25205
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
25206
$as_echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
25207
    { $as_echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
25208
$as_echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25209
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
25210
$as_echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
25211
    { $as_echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
25212
$as_echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
25213
 
25214 131 jeremybenn
    ;;
25215
esac
25216 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for tk.h" >&5
25217
$as_echo_n "checking for tk.h... " >&6; }
25218 131 jeremybenn
if test "${ac_cv_header_tk_h+set}" = set; then
25219 213 jeremybenn
  $as_echo_n "(cached) " >&6
25220 131 jeremybenn
else
25221
  ac_cv_header_tk_h=$ac_header_preproc
25222
fi
25223 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
25224
$as_echo "$ac_cv_header_tk_h" >&6; }
25225 131 jeremybenn
 
25226
fi
25227 213 jeremybenn
if test "x$ac_cv_header_tk_h" = x""yes; then
25228 131 jeremybenn
  ac_cv_c_tkh=installed
25229
else
25230
  ac_cv_c_tkh=""
25231
fi
25232
 
25233
 
25234
fi
25235
 
25236
fi
25237
 
25238
if test x"${ac_cv_c_tkh}" != x ; then
25239
  no_tk=""
25240
  if test x"${ac_cv_c_tkh}" = x"installed" ; then
25241 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: is installed" >&5
25242
$as_echo "is installed" >&6; }
25243 131 jeremybenn
    TKHDIR=""
25244
  else
25245 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
25246
$as_echo "found in ${ac_cv_c_tkh}" >&6; }
25247 131 jeremybenn
    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
25248
    TKHDIR="-I${ac_cv_c_tkh}"
25249
  fi
25250
else
25251
  TKHDIR="# no Tk directory found"
25252 213 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
25253
$as_echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
25254 131 jeremybenn
  no_tk=true
25255
fi
25256
 
25257
 
25258
 
25259
 
25260 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
25261
$as_echo_n "checking for Itcl private headers. srcdir=${srcdir}... " >&6; }
25262 131 jeremybenn
if test x"${ac_cv_c_itclh}" = x ; then
25263
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
25264
    if test -f $i/generic/itcl.h ; then
25265
      ac_cv_c_itclh=`(cd $i/generic; pwd)`
25266
      break
25267
    fi
25268
  done
25269
fi
25270
if test x"${ac_cv_c_itclh}" = x ; then
25271
  ITCLHDIR="# no Itcl private headers found"
25272 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
25273
$as_echo "$as_me: error: Can't find Itcl private headers" >&2;}
25274 131 jeremybenn
   { (exit 1); exit 1; }; }
25275
fi
25276
if test x"${ac_cv_c_itclh}" != x ; then
25277
     ITCLHDIR="-I${ac_cv_c_itclh}"
25278
fi
25279
# should always be here
25280
#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
25281
 
25282
#AC_SUBST(ITCLLIB)
25283
 
25284
 
25285 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
25286
$as_echo_n "checking for Itk private headers. srcdir=${srcdir}... " >&6; }
25287 131 jeremybenn
if test x"${ac_cv_c_itkh}" = x ; then
25288
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
25289
    if test -f $i/generic/itk.h ; then
25290
      ac_cv_c_itkh=`(cd $i/generic; pwd)`
25291
      break
25292
    fi
25293
  done
25294
fi
25295
if test x"${ac_cv_c_itkh}" = x ; then
25296
  ITKHDIR="# no Itk private headers found"
25297 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
25298
$as_echo "$as_me: error: Can't find Itk private headers" >&2;}
25299 131 jeremybenn
   { (exit 1); exit 1; }; }
25300
fi
25301
if test x"${ac_cv_c_itkh}" != x ; then
25302
     ITKHDIR="-I${ac_cv_c_itkh}"
25303
fi
25304
# should always be here
25305
#     ITKLIB="../itcl/itk/unix/libitk.a"
25306
 
25307
#AC_SUBST(ITKLIB)
25308
 
25309
 
25310
 
25311
           # now look for Tk library stuff
25312
 
25313
           tkdir="../tk/${configdir}/"
25314
 
25315
           TK_DEPS="${tkdir}${TK_LIB_FILE}"
25316
 
25317
           # now look for Itcl library stuff
25318
 
25319
 
25320
#
25321
# Ok, lets find the itcl configuration
25322
# First, look for one uninstalled.
25323
# the alternative search directory is invoked by --with-itclconfig
25324
#
25325
 
25326
if test x"${no_itcl}" = x ; then
25327
  # we reset no_itcl in case something fails here
25328
  no_itcl=true
25329
 
25330 213 jeremybenn
# Check whether --with-itclconfig was given.
25331 131 jeremybenn
if test "${with_itclconfig+set}" = set; then
25332 213 jeremybenn
  withval=$with_itclconfig; with_itclconfig=${withval}
25333
fi
25334
 
25335
  { $as_echo "$as_me:$LINENO: checking for Itcl configuration" >&5
25336
$as_echo_n "checking for Itcl configuration... " >&6; }
25337 131 jeremybenn
  if test "${ac_cv_c_itclconfig+set}" = set; then
25338 213 jeremybenn
  $as_echo_n "(cached) " >&6
25339 131 jeremybenn
else
25340
 
25341
 
25342
  # First check to see if --with-itclconfig was specified.
25343
  if test x"${with_itclconfig}" != x ; then
25344
    if test -f "${with_itclconfig}/itclConfig.sh" ; then
25345
      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
25346
    else
25347 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
25348
$as_echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
25349 131 jeremybenn
   { (exit 1); exit 1; }; }
25350
    fi
25351
  fi
25352
 
25353
  # then check for a private Itcl library
25354
  if test x"${ac_cv_c_itclconfig}" = x ; then
25355
    for i in \
25356
                ../itcl/itcl \
25357
                `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
25358
                ../../itcl \
25359
                `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
25360
                ../../../itcl \
25361
                `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
25362
      if test -f "$i/itclConfig.sh" ; then
25363
        ac_cv_c_itclconfig=`(cd $i; pwd)`
25364
        break
25365
      fi
25366
    done
25367
  fi
25368
  # check in a few common install locations
25369
  if test x"${ac_cv_c_itclconfig}" = x ; then
25370
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25371
      if test -f "$i/itclConfig.sh" ; then
25372
        ac_cv_c_itclconfig=`(cd $i; pwd)`
25373
        break
25374
      fi
25375
    done
25376
  fi
25377
  # check in a few other private locations
25378
  if test x"${ac_cv_c_itclconfig}" = x ; then
25379
    for i in \
25380
                ${srcdir}/../itcl/itcl \
25381
                `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
25382
      if test -f "$i/itclConfig.sh" ; then
25383
        ac_cv_c_itclconfig=`(cd $i; pwd)`
25384
        break
25385
      fi
25386
    done
25387
  fi
25388
 
25389
fi
25390
 
25391
  if test x"${ac_cv_c_itclconfig}" = x ; then
25392
    ITCLCONFIG="# no Itcl configs found"
25393 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
25394
$as_echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
25395 131 jeremybenn
  else
25396
    no_itcl=
25397
    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
25398 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
25399
$as_echo "found $ITCLCONFIG" >&6; }
25400 131 jeremybenn
  fi
25401
fi
25402
 
25403
           if test -z "${no_itcl}"; then
25404
 
25405
    if test -f "$ITCLCONFIG" ; then
25406
      . $ITCLCONFIG
25407
    fi
25408
 
25409
 
25410
 
25411
 
25412
 
25413
 
25414
 
25415
 
25416
 
25417
 
25418
 
25419
 
25420
             ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
25421
             ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
25422
           fi
25423
 
25424
 
25425
           # now look for Itk library stuff
25426
 
25427
#
25428
# Ok, lets find the itk configuration
25429
# First, look for one uninstalled.
25430
# the alternative search directory is invoked by --with-itkconfig
25431
#
25432
 
25433
if test x"${no_itk}" = x ; then
25434
  # we reset no_itk in case something fails here
25435
  no_itk=true
25436
 
25437 213 jeremybenn
# Check whether --with-itkconfig was given.
25438 131 jeremybenn
if test "${with_itkconfig+set}" = set; then
25439 213 jeremybenn
  withval=$with_itkconfig; with_itkconfig=${withval}
25440
fi
25441
 
25442
  { $as_echo "$as_me:$LINENO: checking for Itk configuration" >&5
25443
$as_echo_n "checking for Itk configuration... " >&6; }
25444 131 jeremybenn
  if test "${ac_cv_c_itkconfig+set}" = set; then
25445 213 jeremybenn
  $as_echo_n "(cached) " >&6
25446 131 jeremybenn
else
25447
 
25448
 
25449
  # First check to see if --with-itkconfig was specified.
25450
  if test x"${with_itkconfig}" != x ; then
25451
    if test -f "${with_itkconfig}/itkConfig.sh" ; then
25452
      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
25453
    else
25454 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
25455
$as_echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
25456 131 jeremybenn
   { (exit 1); exit 1; }; }
25457
    fi
25458
  fi
25459
 
25460
  # then check for a private Itk library
25461
  if test x"${ac_cv_c_itkconfig}" = x ; then
25462
    for i in \
25463
                ../itcl/itk \
25464
                `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
25465
                ../../itk \
25466
                `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
25467
                ../../../itk \
25468
                `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
25469
      if test -f "$i/itkConfig.sh" ; then
25470
        ac_cv_c_itkconfig=`(cd $i; pwd)`
25471
        break
25472
      fi
25473
    done
25474
  fi
25475
  # check in a few common install locations
25476
  if test x"${ac_cv_c_itkconfig}" = x ; then
25477
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
25478
      if test -f "$i/itkConfig.sh" ; then
25479
        ac_cv_c_itkconfig=`(cd $i; pwd)`
25480
        break
25481
      fi
25482
    done
25483
  fi
25484
  # check in a few other private locations
25485
  if test x"${ac_cv_c_itkconfig}" = x ; then
25486
    for i in \
25487
                ${srcdir}/../itcl/itk \
25488
                `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
25489
      if test -f "$i/itkConfig.sh" ; then
25490
        ac_cv_c_itkconfig=`(cd $i; pwd)`
25491
        break
25492
      fi
25493
    done
25494
  fi
25495
 
25496
fi
25497
 
25498
  if test x"${ac_cv_c_itkconfig}" = x ; then
25499
    ITKCONFIG="# no Itk configs found"
25500 213 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
25501
$as_echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
25502 131 jeremybenn
  else
25503
    no_itk=
25504
    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
25505 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
25506
$as_echo "found $ITKCONFIG" >&6; }
25507 131 jeremybenn
  fi
25508
fi
25509
 
25510
 
25511
           if test -z "${no_itcl}"; then
25512
 
25513
    if test -f "$ITKCONFIG" ; then
25514
      . $ITKCONFIG
25515
    fi
25516
 
25517
 
25518
 
25519
 
25520
 
25521
 
25522
 
25523
 
25524
 
25525
 
25526
 
25527
 
25528
             ITKLIB="${ITK_BUILD_LIB_SPEC}"
25529
             ITK_DEPS="${ITK_LIB_FULL_PATH}"
25530
           fi
25531
 
25532
           ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25533
 
25534
           # Include some libraries that Tcl and Tk want.
25535
           TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25536
           # Yes, the ordering seems wrong here.  But it isn't.
25537
           # TK_LIBS is the list of libraries that need to be linked
25538
           # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
25539
           # were in LIBS then any link tests after this point would
25540
           # try to include things like `$(LIBGUI)', which wouldn't work.
25541
           GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25542
 
25543
           CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25544
           CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25545
           CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25546
           CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25547
           CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25548
           CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25549
           CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25550
 
25551
           if test x$gdb_cv_os_cygwin = xyes; then
25552
              WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25553
              WIN32LDAPP="-Wl,--subsystem,console"
25554
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25555
           fi
25556
        fi
25557
    fi
25558
 
25559 213 jeremybenn
    subdirs="$subdirs gdbtk"
25560 131 jeremybenn
 
25561
fi
25562
 
25563
 
25564
 
25565
 
25566
 
25567
 
25568
 
25569
 
25570
 
25571
 
25572
 
25573
 
25574
 
25575
 
25576 213 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for X" >&5
25577
$as_echo_n "checking for X... " >&6; }
25578 131 jeremybenn
 
25579
 
25580 213 jeremybenn
# Check whether --with-x was given.
25581 131 jeremybenn
if test "${with_x+set}" = set; then
25582 213 jeremybenn
  withval=$with_x;
25583
fi
25584 131 jeremybenn
 
25585
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25586
if test "x$with_x" = xno; then
25587
  # The user explicitly disabled X.
25588
  have_x=disabled
25589
else
25590 213 jeremybenn
  case $x_includes,$x_libraries in #(
25591
    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
25592
$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
25593
   { (exit 1); exit 1; }; };; #(
25594
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
25595
  $as_echo_n "(cached) " >&6
25596 131 jeremybenn
else
25597
  # One or both of the vars are not set, and there is no cached value.
25598
ac_x_includes=no ac_x_libraries=no
25599 213 jeremybenn
rm -f -r conftest.dir
25600 131 jeremybenn
if mkdir conftest.dir; then
25601
  cd conftest.dir
25602
  cat >Imakefile <<'_ACEOF'
25603 213 jeremybenn
incroot:
25604
        @echo incroot='${INCROOT}'
25605
usrlibdir:
25606
        @echo usrlibdir='${USRLIBDIR}'
25607
libdir:
25608
        @echo libdir='${LIBDIR}'
25609 131 jeremybenn
_ACEOF
25610 213 jeremybenn
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25611 131 jeremybenn
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25612 213 jeremybenn
    for ac_var in incroot usrlibdir libdir; do
25613
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25614
    done
25615 131 jeremybenn
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25616 213 jeremybenn
    for ac_extension in a so sl dylib la dll; do
25617
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25618
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
25619 131 jeremybenn
        ac_im_usrlibdir=$ac_im_libdir; break
25620
      fi
25621
    done
25622
    # Screen out bogus values from the imake configuration.  They are
25623
    # bogus both because they are the default anyway, and because
25624
    # using them would break gcc on systems where it needs fixed includes.
25625
    case $ac_im_incroot in
25626 213 jeremybenn
        /usr/include) ac_x_includes= ;;
25627 131 jeremybenn
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25628
    esac
25629
    case $ac_im_usrlibdir in
25630 213 jeremybenn
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25631 131 jeremybenn
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25632
    esac
25633
  fi
25634
  cd ..
25635 213 jeremybenn
  rm -f -r conftest.dir
25636 131 jeremybenn
fi
25637
 
25638
# Standard set of common directories for X headers.
25639
# Check X11 before X11Rn because it is often a symlink to the current release.
25640
ac_x_header_dirs='
25641
/usr/X11/include
25642
/usr/X11R6/include
25643
/usr/X11R5/include
25644
/usr/X11R4/include
25645
 
25646
/usr/include/X11
25647
/usr/include/X11R6
25648
/usr/include/X11R5
25649
/usr/include/X11R4
25650
 
25651
/usr/local/X11/include
25652
/usr/local/X11R6/include
25653
/usr/local/X11R5/include
25654
/usr/local/X11R4/include
25655
 
25656
/usr/local/include/X11
25657
/usr/local/include/X11R6
25658
/usr/local/include/X11R5
25659
/usr/local/include/X11R4
25660
 
25661
/usr/X386/include
25662
/usr/x386/include
25663
/usr/XFree86/include/X11
25664
 
25665
/usr/include
25666
/usr/local/include
25667
/usr/unsupported/include
25668
/usr/athena/include
25669
/usr/local/x11r5/include
25670
/usr/lpp/Xamples/include
25671
 
25672
/usr/openwin/include
25673
/usr/openwin/share/include'
25674
 
25675
if test "$ac_x_includes" = no; then
25676 213 jeremybenn
  # Guess where to find include files, by looking for Xlib.h.
25677 131 jeremybenn
  # First, try using that file with no special directory specified.
25678
  cat >conftest.$ac_ext <<_ACEOF
25679
/* confdefs.h.  */
25680
_ACEOF
25681
cat confdefs.h >>conftest.$ac_ext
25682
cat >>conftest.$ac_ext <<_ACEOF
25683
/* end confdefs.h.  */
25684 213 jeremybenn
#include 
25685 131 jeremybenn
_ACEOF
25686 213 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
25687
case "(($ac_try" in
25688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689
  *) ac_try_echo=$ac_try;;
25690
esac
25691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25692
$as_echo "$ac_try_echo") >&5
25693
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25694 131 jeremybenn
  ac_status=$?
25695
  grep -v '^ *+' conftest.er1 >conftest.err
25696
  rm -f conftest.er1
25697
  cat conftest.err >&5
25698 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699
  (exit $ac_status); } >/dev/null && {
25700
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25701
         test ! -s conftest.err
25702
       }; then
25703 131 jeremybenn
  # We can compile using X headers with no special include directory.
25704
ac_x_includes=
25705
else
25706 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
25707 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
25708
 
25709
  for ac_dir in $ac_x_header_dirs; do
25710 213 jeremybenn
  if test -r "$ac_dir/X11/Xlib.h"; then
25711 131 jeremybenn
    ac_x_includes=$ac_dir
25712
    break
25713
  fi
25714
done
25715
fi
25716 213 jeremybenn
 
25717 131 jeremybenn
rm -f conftest.err conftest.$ac_ext
25718
fi # $ac_x_includes = no
25719
 
25720
if test "$ac_x_libraries" = no; then
25721
  # Check for the libraries.
25722
  # See if we find them without any special options.
25723
  # Don't add to $LIBS permanently.
25724
  ac_save_LIBS=$LIBS
25725 213 jeremybenn
  LIBS="-lX11 $LIBS"
25726 131 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
25727
/* confdefs.h.  */
25728
_ACEOF
25729
cat confdefs.h >>conftest.$ac_ext
25730
cat >>conftest.$ac_ext <<_ACEOF
25731
/* end confdefs.h.  */
25732 213 jeremybenn
#include 
25733 131 jeremybenn
int
25734
main ()
25735
{
25736 213 jeremybenn
XrmInitialize ()
25737 131 jeremybenn
  ;
25738
  return 0;
25739
}
25740
_ACEOF
25741
rm -f conftest.$ac_objext conftest$ac_exeext
25742 213 jeremybenn
if { (ac_try="$ac_link"
25743
case "(($ac_try" in
25744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745
  *) ac_try_echo=$ac_try;;
25746
esac
25747
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25748
$as_echo "$ac_try_echo") >&5
25749
  (eval "$ac_link") 2>conftest.er1
25750 131 jeremybenn
  ac_status=$?
25751
  grep -v '^ *+' conftest.er1 >conftest.err
25752
  rm -f conftest.er1
25753
  cat conftest.err >&5
25754 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755
  (exit $ac_status); } && {
25756
         test -z "$ac_c_werror_flag" ||
25757
         test ! -s conftest.err
25758
       } && test -s conftest$ac_exeext && {
25759
         test "$cross_compiling" = yes ||
25760
         $as_test_x conftest$ac_exeext
25761
       }; then
25762 131 jeremybenn
  LIBS=$ac_save_LIBS
25763
# We can link X programs with no special library path.
25764
ac_x_libraries=
25765
else
25766 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
25767 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
25768
 
25769 213 jeremybenn
        LIBS=$ac_save_LIBS
25770
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25771 131 jeremybenn
do
25772
  # Don't even attempt the hair of trying to link an X program!
25773 213 jeremybenn
  for ac_extension in a so sl dylib la dll; do
25774
    if test -r "$ac_dir/libX11.$ac_extension"; then
25775 131 jeremybenn
      ac_x_libraries=$ac_dir
25776
      break 2
25777
    fi
25778
  done
25779
done
25780
fi
25781 213 jeremybenn
 
25782
rm -rf conftest.dSYM
25783
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25784 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
25785
fi # $ac_x_libraries = no
25786
 
25787 213 jeremybenn
case $ac_x_includes,$ac_x_libraries in #(
25788
  no,* | *,no | *\'*)
25789
    # Didn't find X, or a directory has "'" in its name.
25790
    ac_cv_have_x="have_x=no";; #(
25791
  *)
25792
    # Record where we found X for the cache.
25793
    ac_cv_have_x="have_x=yes\
25794
        ac_x_includes='$ac_x_includes'\
25795
        ac_x_libraries='$ac_x_libraries'"
25796
esac
25797 131 jeremybenn
fi
25798 213 jeremybenn
;; #(
25799
    *) have_x=yes;;
25800
  esac
25801 131 jeremybenn
  eval "$ac_cv_have_x"
25802
fi # $with_x != no
25803
 
25804
if test "$have_x" != yes; then
25805 213 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
25806
$as_echo "$have_x" >&6; }
25807 131 jeremybenn
  no_x=yes
25808
else
25809
  # If each of the values was on the command line, it overrides each guess.
25810
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25811
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25812
  # Update the cache value to reflect the command line values.
25813 213 jeremybenn
  ac_cv_have_x="have_x=yes\
25814
        ac_x_includes='$x_includes'\
25815
        ac_x_libraries='$x_libraries'"
25816
  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25817
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25818 131 jeremybenn
fi
25819
 
25820
 
25821
# Check whether we should enable the TUI, but only do so if we really
25822
# can.
25823
if test x"$enable_tui" = xyes; then
25824
  if test -d $srcdir/tui; then
25825
    if test "$ac_cv_search_waddstr" != no; then
25826
      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25827
      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25828
      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25829
      CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
25830
      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25831
      CONFIG_ALL="${CONFIG_ALL} all-tui"
25832
      CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25833
      CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25834
      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25835
    else
25836 213 jeremybenn
      { $as_echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25837
$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25838 131 jeremybenn
    fi
25839
  fi
25840
fi
25841
 
25842
# Unlike the sim directory, whether a simulator is linked is controlled by
25843
# presence of a gdb_sim definition in the target configure.tgt entry.
25844
# This code just checks for a few cases where we'd like to ignore those
25845
# definitions, even when they're present in the '.mt' file.  These cases
25846
# are when --disable-sim is specified, or if the simulator directory is
25847
# not part of the source tree.
25848
#
25849 213 jeremybenn
# Check whether --enable-sim was given.
25850 131 jeremybenn
if test "${enable_sim+set}" = set; then
25851 213 jeremybenn
  enableval=$enable_sim; echo "enable_sim = $enable_sim";
25852 131 jeremybenn
 echo "enableval = ${enableval}";
25853
 case "${enableval}" in
25854
  yes) ignore_sim=false ;;
25855
  no)  ignore_sim=true ;;
25856
  *)   ignore_sim=false ;;
25857
 esac
25858
else
25859
  ignore_sim=false
25860 213 jeremybenn
fi
25861 131 jeremybenn
 
25862 213 jeremybenn
 
25863 131 jeremybenn
if test ! -d "${srcdir}/../sim"; then
25864
  ignore_sim=true
25865
fi
25866
 
25867
SIM=
25868
SIM_OBS=
25869
if test "${ignore_sim}" = "false"; then
25870
  if test x"${gdb_sim}" != x ; then
25871
    SIM="${gdb_sim}"
25872
    SIM_OBS="remote-sim.o"
25873
 
25874
cat >>confdefs.h <<\_ACEOF
25875
#define WITH_SIM 1
25876
_ACEOF
25877
 
25878
  fi
25879
fi
25880
 
25881
 
25882
 
25883
 
25884
 
25885
 
25886
 
25887
 
25888
 
25889
 
25890
 
25891
 
25892
 
25893
 
25894
# List of host floatformats.
25895
 
25896
cat >>confdefs.h <<_ACEOF
25897
#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25898
_ACEOF
25899
 
25900
 
25901
cat >>confdefs.h <<_ACEOF
25902
#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25903
_ACEOF
25904
 
25905
 
25906
cat >>confdefs.h <<_ACEOF
25907
#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25908
_ACEOF
25909
 
25910
 
25911
# target_subdir is used by the testsuite to find the target libraries.
25912
target_subdir=
25913
if test "${host}" != "${target}"; then
25914
    target_subdir="${target_alias}/"
25915
fi
25916
 
25917
 
25918
frags=
25919
if test "${gdb_native}" = "yes"; then
25920
  host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25921
  if test ! -f ${host_makefile_frag}; then
25922 213 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25923
$as_echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25924 131 jeremybenn
   { (exit 1); exit 1; }; }
25925
  fi
25926
  frags="$frags $host_makefile_frag"
25927
else
25928
  host_makefile_frag=/dev/null
25929
fi
25930
 
25931
 
25932
 
25933
 
25934
if test "${gdb_native}" = "yes"; then
25935
# We pick this up from the host configuration file (.mh) because we
25936
# do not have a native configuration Makefile fragment.
25937
nativefile=`sed -n '
25938
s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
25939
' ${host_makefile_frag}`
25940
fi
25941
 
25942
 
25943
if test x"${gdb_osabi}" != x ; then
25944
 
25945
cat >>confdefs.h <<_ACEOF
25946
#define GDB_OSABI_DEFAULT $gdb_osabi
25947
_ACEOF
25948
 
25949
fi
25950
 
25951
# Enable multi-ice-gdb-server.
25952 213 jeremybenn
# Check whether --enable-multi-ice was given.
25953 131 jeremybenn
if test "${enable_multi_ice+set}" = set; then
25954 213 jeremybenn
  enableval=$enable_multi_ice; case $enableval in
25955 131 jeremybenn
    yes | no)
25956
      ;;
25957 213 jeremybenn
    *) { { $as_echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25958
$as_echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25959 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
25960
  esac
25961 213 jeremybenn
fi
25962
 
25963 131 jeremybenn
if test "x$enable_multi_ice" = xyes; then
25964 213 jeremybenn
   subdirs="$subdirs multi-ice"
25965 131 jeremybenn
 
25966
fi
25967
 
25968
# We only build gdbserver automatically in a native configuration.
25969
if test "$gdb_native" = "yes"; then
25970 213 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25971
$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
25972 131 jeremybenn
  if test "x$build_gdbserver" = xyes; then
25973 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: yes" >&5
25974
$as_echo "yes" >&6; }
25975
    subdirs="$subdirs gdbserver"
25976 131 jeremybenn
 
25977
  else
25978 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
25979
$as_echo "no" >&6; }
25980 131 jeremybenn
  fi
25981
fi
25982
 
25983
# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25984
# to an empty version.
25985
 
25986
files=
25987
links=
25988
 
25989
rm -f nm.h
25990
nm_h=""
25991
if test "${nativefile}" != ""; then
25992
    nm_h=nm.h
25993
    case "${nativefile}" in
25994
      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25995
      * ) GDB_NM_FILE="${nativefile}"
25996
    esac
25997
    files="${files} ${GDB_NM_FILE}"
25998
    links="${links} nm.h"
25999
 
26000
cat >>confdefs.h <<_ACEOF
26001
#define GDB_NM_FILE "${GDB_NM_FILE}"
26002
_ACEOF
26003
 
26004
fi
26005
 
26006
 
26007
ac_sources="$files"
26008
ac_dests="$links"
26009
while test -n "$ac_sources"; do
26010
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
26011
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
26012
  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
26013
done
26014 213 jeremybenn
ac_config_links="$ac_config_links $ac_config_links_1"
26015 131 jeremybenn
 
26016
 
26017
 
26018
 
26019
 
26020
 
26021
cat >>confdefs.h <<\_ACEOF
26022
#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
26023
_ACEOF
26024
 
26025
 
26026
 
26027
 
26028
 
26029 213 jeremybenn
# Check whether --with-libiconv-prefix was given.
26030 131 jeremybenn
if test "${with_libiconv_prefix+set}" = set; then
26031 213 jeremybenn
  withval=$with_libiconv_prefix;
26032 131 jeremybenn
    for dir in `echo "$withval" | tr : ' '`; do
26033
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26034
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26035
    done
26036
 
26037 213 jeremybenn
fi
26038 131 jeremybenn
 
26039 213 jeremybenn
 
26040
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
26041
$as_echo_n "checking for iconv... " >&6; }
26042 131 jeremybenn
if test "${am_cv_func_iconv+set}" = set; then
26043 213 jeremybenn
  $as_echo_n "(cached) " >&6
26044 131 jeremybenn
else
26045
 
26046
    am_cv_func_iconv="no, consider installing GNU libiconv"
26047
    am_cv_lib_iconv=no
26048
    cat >conftest.$ac_ext <<_ACEOF
26049
/* confdefs.h.  */
26050
_ACEOF
26051
cat confdefs.h >>conftest.$ac_ext
26052
cat >>conftest.$ac_ext <<_ACEOF
26053
/* end confdefs.h.  */
26054
#include 
26055
#include 
26056
int
26057
main ()
26058
{
26059
iconv_t cd = iconv_open("","");
26060
       iconv(cd,NULL,NULL,NULL,NULL);
26061
       iconv_close(cd);
26062
  ;
26063
  return 0;
26064
}
26065
_ACEOF
26066
rm -f conftest.$ac_objext conftest$ac_exeext
26067 213 jeremybenn
if { (ac_try="$ac_link"
26068
case "(($ac_try" in
26069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070
  *) ac_try_echo=$ac_try;;
26071
esac
26072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26073
$as_echo "$ac_try_echo") >&5
26074
  (eval "$ac_link") 2>conftest.er1
26075 131 jeremybenn
  ac_status=$?
26076
  grep -v '^ *+' conftest.er1 >conftest.err
26077
  rm -f conftest.er1
26078
  cat conftest.err >&5
26079 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080
  (exit $ac_status); } && {
26081
         test -z "$ac_c_werror_flag" ||
26082
         test ! -s conftest.err
26083
       } && test -s conftest$ac_exeext && {
26084
         test "$cross_compiling" = yes ||
26085
         $as_test_x conftest$ac_exeext
26086
       }; then
26087 131 jeremybenn
  am_cv_func_iconv=yes
26088
else
26089 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
26090 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
26091
 
26092 213 jeremybenn
 
26093 131 jeremybenn
fi
26094 213 jeremybenn
 
26095
rm -rf conftest.dSYM
26096
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26097 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
26098
    if test "$am_cv_func_iconv" != yes; then
26099
      am_save_LIBS="$LIBS"
26100
      LIBS="$LIBS -liconv"
26101
      cat >conftest.$ac_ext <<_ACEOF
26102
/* confdefs.h.  */
26103
_ACEOF
26104
cat confdefs.h >>conftest.$ac_ext
26105
cat >>conftest.$ac_ext <<_ACEOF
26106
/* end confdefs.h.  */
26107
#include 
26108
#include 
26109
int
26110
main ()
26111
{
26112
iconv_t cd = iconv_open("","");
26113
         iconv(cd,NULL,NULL,NULL,NULL);
26114
         iconv_close(cd);
26115
  ;
26116
  return 0;
26117
}
26118
_ACEOF
26119
rm -f conftest.$ac_objext conftest$ac_exeext
26120 213 jeremybenn
if { (ac_try="$ac_link"
26121
case "(($ac_try" in
26122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123
  *) ac_try_echo=$ac_try;;
26124
esac
26125
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26126
$as_echo "$ac_try_echo") >&5
26127
  (eval "$ac_link") 2>conftest.er1
26128 131 jeremybenn
  ac_status=$?
26129
  grep -v '^ *+' conftest.er1 >conftest.err
26130
  rm -f conftest.er1
26131
  cat conftest.err >&5
26132 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133
  (exit $ac_status); } && {
26134
         test -z "$ac_c_werror_flag" ||
26135
         test ! -s conftest.err
26136
       } && test -s conftest$ac_exeext && {
26137
         test "$cross_compiling" = yes ||
26138
         $as_test_x conftest$ac_exeext
26139
       }; then
26140 131 jeremybenn
  am_cv_lib_iconv=yes
26141
        am_cv_func_iconv=yes
26142
else
26143 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
26144 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
26145
 
26146 213 jeremybenn
 
26147 131 jeremybenn
fi
26148 213 jeremybenn
 
26149
rm -rf conftest.dSYM
26150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26151 131 jeremybenn
      conftest$ac_exeext conftest.$ac_ext
26152
      LIBS="$am_save_LIBS"
26153
    fi
26154
 
26155
fi
26156 213 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26157
$as_echo "$am_cv_func_iconv" >&6; }
26158 131 jeremybenn
  if test "$am_cv_func_iconv" = yes; then
26159
 
26160
cat >>confdefs.h <<\_ACEOF
26161
#define HAVE_ICONV 1
26162
_ACEOF
26163
 
26164 213 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
26165
$as_echo_n "checking for iconv declaration... " >&6; }
26166 131 jeremybenn
    if test "${am_cv_proto_iconv+set}" = set; then
26167 213 jeremybenn
  $as_echo_n "(cached) " >&6
26168 131 jeremybenn
else
26169
 
26170
      cat >conftest.$ac_ext <<_ACEOF
26171
/* confdefs.h.  */
26172
_ACEOF
26173
cat confdefs.h >>conftest.$ac_ext
26174
cat >>conftest.$ac_ext <<_ACEOF
26175
/* end confdefs.h.  */
26176
 
26177
#include 
26178
#include 
26179
extern
26180
#ifdef __cplusplus
26181
"C"
26182
#endif
26183
#if defined(__STDC__) || defined(__cplusplus)
26184
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26185
#else
26186
size_t iconv();
26187
#endif
26188
 
26189
int
26190
main ()
26191
{
26192
 
26193
  ;
26194
  return 0;
26195
}
26196
_ACEOF
26197
rm -f conftest.$ac_objext
26198 213 jeremybenn
if { (ac_try="$ac_compile"
26199
case "(($ac_try" in
26200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201
  *) ac_try_echo=$ac_try;;
26202
esac
26203
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26204
$as_echo "$ac_try_echo") >&5
26205
  (eval "$ac_compile") 2>conftest.er1
26206 131 jeremybenn
  ac_status=$?
26207
  grep -v '^ *+' conftest.er1 >conftest.err
26208
  rm -f conftest.er1
26209
  cat conftest.err >&5
26210 213 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211
  (exit $ac_status); } && {
26212
         test -z "$ac_c_werror_flag" ||
26213
         test ! -s conftest.err
26214
       } && test -s conftest.$ac_objext; then
26215 131 jeremybenn
  am_cv_proto_iconv_arg1=""
26216
else
26217 213 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
26218 131 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
26219
 
26220 213 jeremybenn
        am_cv_proto_iconv_arg1="const"
26221 131 jeremybenn
fi
26222 213 jeremybenn
 
26223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26224 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);"
26225
fi
26226
 
26227
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26228 213 jeremybenn
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
26229 131 jeremybenn
         }$am_cv_proto_iconv" >&5
26230 213 jeremybenn
$as_echo "${ac_t:-
26231
         }$am_cv_proto_iconv" >&6; }
26232 131 jeremybenn
 
26233
cat >>confdefs.h <<_ACEOF
26234
#define ICONV_CONST $am_cv_proto_iconv_arg1
26235
_ACEOF
26236
 
26237
  fi
26238
  LIBICONV=
26239
  if test "$am_cv_lib_iconv" = yes; then
26240
    LIBICONV="-liconv"
26241
  fi
26242
 
26243
 
26244
 
26245 213 jeremybenn
ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
26246
 
26247
ac_config_commands="$ac_config_commands default"
26248
 
26249 131 jeremybenn
cat >confcache <<\_ACEOF
26250
# This file is a shell script that caches the results of configure
26251
# tests run on this system so they can be shared between configure
26252
# scripts and configure runs, see configure's option --config-cache.
26253
# It is not useful on other systems.  If it contains results you don't
26254
# want to keep, you may remove or edit it.
26255
#
26256
# config.status only pays attention to the cache file if you give it
26257
# the --recheck option to rerun configure.
26258
#
26259
# `ac_cv_env_foo' variables (set or unset) will be overridden when
26260
# loading this file, other *unset* `ac_cv_foo' will be assigned the
26261
# following values.
26262
 
26263
_ACEOF
26264
 
26265
# The following way of writing the cache mishandles newlines in values,
26266
# but we know of no workaround that is simple, portable, and efficient.
26267 213 jeremybenn
# So, we kill variables containing newlines.
26268 131 jeremybenn
# Ultrix sh set writes to stderr and can't be redirected directly,
26269
# and sets the high bit in the cache file unless we assign to the vars.
26270 213 jeremybenn
(
26271
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26272
    eval ac_val=\$$ac_var
26273
    case $ac_val in #(
26274
    *${as_nl}*)
26275
      case $ac_var in #(
26276
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26277
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26278
      esac
26279
      case $ac_var in #(
26280
      _ | IFS | as_nl) ;; #(
26281
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26282
      *) $as_unset $ac_var ;;
26283
      esac ;;
26284
    esac
26285
  done
26286
 
26287 131 jeremybenn
  (set) 2>&1 |
26288 213 jeremybenn
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26289
    *${as_nl}ac_space=\ *)
26290 131 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
26291
      # substitution turns \\\\ into \\, and sed turns \\ into \).
26292
      sed -n \
26293
        "s/'/'\\\\''/g;
26294
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26295 213 jeremybenn
      ;; #(
26296 131 jeremybenn
    *)
26297
      # `set' quotes correctly as required by POSIX, so do not add quotes.
26298 213 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26299 131 jeremybenn
      ;;
26300 213 jeremybenn
    esac |
26301
    sort
26302
) |
26303 131 jeremybenn
  sed '
26304 213 jeremybenn
     /^ac_cv_env_/b end
26305 131 jeremybenn
     t clear
26306 213 jeremybenn
     :clear
26307 131 jeremybenn
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26308
     t end
26309 213 jeremybenn
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26310
     :end' >>confcache
26311
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26312
  if test -w "$cache_file"; then
26313
    test "x$cache_file" != "x/dev/null" &&
26314
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26315
$as_echo "$as_me: updating cache $cache_file" >&6;}
26316 131 jeremybenn
    cat confcache >$cache_file
26317
  else
26318 213 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26319
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26320 131 jeremybenn
  fi
26321
fi
26322
rm -f confcache
26323
 
26324
test "x$prefix" = xNONE && prefix=$ac_default_prefix
26325
# Let make expand exec_prefix.
26326
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26327
 
26328
DEFS=-DHAVE_CONFIG_H
26329
 
26330
ac_libobjs=
26331
ac_ltlibobjs=
26332
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26333
  # 1. Remove the extension, and $U if already installed.
26334 213 jeremybenn
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26335
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26336
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26337
  #    will be set to the directory where LIBOBJS objects are built.
26338
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26339
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26340 131 jeremybenn
done
26341
LIBOBJS=$ac_libobjs
26342
 
26343
LTLIBOBJS=$ac_ltlibobjs
26344
 
26345
 
26346
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26347 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26348 131 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
26349 213 jeremybenn
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26350 131 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
26351
   { (exit 1); exit 1; }; }
26352
fi
26353
 
26354 213 jeremybenn
 
26355 131 jeremybenn
: ${CONFIG_STATUS=./config.status}
26356 213 jeremybenn
ac_write_fail=0
26357 131 jeremybenn
ac_clean_files_save=$ac_clean_files
26358
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26359 213 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26360
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26361
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26362 131 jeremybenn
#! $SHELL
26363
# Generated by $as_me.
26364
# Run this file to recreate the current configuration.
26365
# Compiler output produced by configure, useful for debugging
26366
# configure, is in config.log if it exists.
26367
 
26368
debug=false
26369
ac_cs_recheck=false
26370
ac_cs_silent=false
26371
SHELL=\${CONFIG_SHELL-$SHELL}
26372
_ACEOF
26373
 
26374 213 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26375 131 jeremybenn
## --------------------- ##
26376
## M4sh Initialization.  ##
26377
## --------------------- ##
26378
 
26379 213 jeremybenn
# Be more Bourne compatible
26380
DUALCASE=1; export DUALCASE # for MKS sh
26381 131 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26382
  emulate sh
26383
  NULLCMD=:
26384 213 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26385 131 jeremybenn
  # is contrary to our usage.  Disable this feature.
26386
  alias -g '${1+"$@"}'='"$@"'
26387 213 jeremybenn
  setopt NO_GLOB_SUBST
26388
else
26389
  case `(set -o) 2>/dev/null` in
26390
  *posix*) set -o posix ;;
26391
esac
26392
 
26393 131 jeremybenn
fi
26394
 
26395 213 jeremybenn
 
26396
 
26397
 
26398
# PATH needs CR
26399
# Avoid depending upon Character Ranges.
26400
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26401
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26402
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26403
as_cr_digits='0123456789'
26404
as_cr_alnum=$as_cr_Letters$as_cr_digits
26405
 
26406
as_nl='
26407
'
26408
export as_nl
26409
# Printing a long string crashes Solaris 7 /usr/bin/printf.
26410
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26411
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26412
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26413
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26414
  as_echo='printf %s\n'
26415
  as_echo_n='printf %s'
26416
else
26417
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26418
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26419
    as_echo_n='/usr/ucb/echo -n'
26420
  else
26421
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26422
    as_echo_n_body='eval
26423
      arg=$1;
26424
      case $arg in
26425
      *"$as_nl"*)
26426
        expr "X$arg" : "X\\(.*\\)$as_nl";
26427
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26428
      esac;
26429
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26430
    '
26431
    export as_echo_n_body
26432
    as_echo_n='sh -c $as_echo_n_body as_echo'
26433
  fi
26434
  export as_echo_body
26435
  as_echo='sh -c $as_echo_body as_echo'
26436
fi
26437
 
26438
# The user is always right.
26439
if test "${PATH_SEPARATOR+set}" != set; then
26440
  PATH_SEPARATOR=:
26441
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26442
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26443
      PATH_SEPARATOR=';'
26444
  }
26445
fi
26446
 
26447 131 jeremybenn
# Support unset when possible.
26448
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26449
  as_unset=unset
26450
else
26451
  as_unset=false
26452
fi
26453
 
26454
 
26455 213 jeremybenn
# IFS
26456
# We need space, tab and new line, in precisely that order.  Quoting is
26457
# there to prevent editors from complaining about space-tab.
26458
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26459
# splitting by setting IFS to empty value.)
26460
IFS=" ""        $as_nl"
26461
 
26462
# Find who we are.  Look in the path if we contain no directory separator.
26463
case $0 in
26464
  *[\\/]* ) as_myself=$0 ;;
26465
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26466
for as_dir in $PATH
26467
do
26468
  IFS=$as_save_IFS
26469
  test -z "$as_dir" && as_dir=.
26470
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26471
done
26472
IFS=$as_save_IFS
26473
 
26474
     ;;
26475
esac
26476
# We did not find ourselves, most probably we were run as `sh COMMAND'
26477
# in which case we are not to be found in the path.
26478
if test "x$as_myself" = x; then
26479
  as_myself=$0
26480
fi
26481
if test ! -f "$as_myself"; then
26482
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26483
  { (exit 1); exit 1; }
26484
fi
26485
 
26486 131 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
26487 213 jeremybenn
for as_var in ENV MAIL MAILPATH
26488
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26489
done
26490 131 jeremybenn
PS1='$ '
26491
PS2='> '
26492
PS4='+ '
26493
 
26494
# NLS nuisances.
26495 213 jeremybenn
LC_ALL=C
26496
export LC_ALL
26497
LANGUAGE=C
26498
export LANGUAGE
26499 131 jeremybenn
 
26500
# Required to use basename.
26501 213 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
26502
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26503 131 jeremybenn
  as_expr=expr
26504
else
26505
  as_expr=false
26506
fi
26507
 
26508 213 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26509 131 jeremybenn
  as_basename=basename
26510
else
26511
  as_basename=false
26512
fi
26513
 
26514
 
26515
# Name of the executable.
26516 213 jeremybenn
as_me=`$as_basename -- "$0" ||
26517 131 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26518
         X"$0" : 'X\(//\)$' \| \
26519 213 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26520
$as_echo X/"$0" |
26521
    sed '/^.*\/\([^/][^/]*\)\/*$/{
26522
            s//\1/
26523
            q
26524
          }
26525
          /^X\/\(\/\/\)$/{
26526
            s//\1/
26527
            q
26528
          }
26529
          /^X\/\(\/\).*/{
26530
            s//\1/
26531
            q
26532
          }
26533
          s/.*/./; q'`
26534 131 jeremybenn
 
26535 213 jeremybenn
# CDPATH.
26536
$as_unset CDPATH
26537 131 jeremybenn
 
26538
 
26539
 
26540
  as_lineno_1=$LINENO
26541
  as_lineno_2=$LINENO
26542
  test "x$as_lineno_1" != "x$as_lineno_2" &&
26543 213 jeremybenn
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26544 131 jeremybenn
 
26545
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26546
  # uniformly replaced by the line number.  The first 'sed' inserts a
26547 213 jeremybenn
  # line-number line after each line using $LINENO; the second 'sed'
26548
  # does the real work.  The second script uses 'N' to pair each
26549
  # line-number line with the line containing $LINENO, and appends
26550
  # trailing '-' during substitution so that $LINENO is not a special
26551
  # case at line end.
26552 131 jeremybenn
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26553 213 jeremybenn
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
26554
  # E. McMahon (1931-1989) for sed's syntax.  :-)
26555
  sed -n '
26556
    p
26557
    /[$]LINENO/=
26558
  ' <$as_myself |
26559 131 jeremybenn
    sed '
26560 213 jeremybenn
      s/[$]LINENO.*/&-/
26561
      t lineno
26562
      b
26563
      :lineno
26564 131 jeremybenn
      N
26565 213 jeremybenn
      :loop
26566
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26567 131 jeremybenn
      t loop
26568 213 jeremybenn
      s/-\n.*//
26569 131 jeremybenn
    ' >$as_me.lineno &&
26570 213 jeremybenn
  chmod +x "$as_me.lineno" ||
26571
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26572 131 jeremybenn
   { (exit 1); exit 1; }; }
26573
 
26574
  # Don't try to exec as it changes $[0], causing all sort of problems
26575
  # (the dirname of $[0] is not the place where we might find the
26576 213 jeremybenn
  # original and so on.  Autoconf is especially sensitive to this).
26577
  . "./$as_me.lineno"
26578 131 jeremybenn
  # Exit status is that of the last command.
26579
  exit
26580
}
26581
 
26582
 
26583 213 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26584
  as_dirname=dirname
26585
else
26586
  as_dirname=false
26587
fi
26588
 
26589
ECHO_C= ECHO_N= ECHO_T=
26590
case `echo -n x` in
26591
-n*)
26592
  case `echo 'x\c'` in
26593
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26594
  *)   ECHO_C='\c';;
26595
  esac;;
26596
*)
26597
  ECHO_N='-n';;
26598 131 jeremybenn
esac
26599 213 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
26600
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26601 131 jeremybenn
  as_expr=expr
26602
else
26603
  as_expr=false
26604
fi
26605
 
26606
rm -f conf$$ conf$$.exe conf$$.file
26607 213 jeremybenn
if test -d conf$$.dir; then
26608
  rm -f conf$$.dir/conf$$.file
26609
else
26610
  rm -f conf$$.dir
26611
  mkdir conf$$.dir 2>/dev/null
26612
fi
26613
if (echo >conf$$.file) 2>/dev/null; then
26614
  if ln -s conf$$.file conf$$ 2>/dev/null; then
26615
    as_ln_s='ln -s'
26616
    # ... but there are two gotchas:
26617
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26618
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26619
    # In both cases, we have to default to `cp -p'.
26620
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26621
      as_ln_s='cp -p'
26622
  elif ln conf$$.file conf$$ 2>/dev/null; then
26623
    as_ln_s=ln
26624
  else
26625 131 jeremybenn
    as_ln_s='cp -p'
26626
  fi
26627
else
26628
  as_ln_s='cp -p'
26629
fi
26630 213 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26631
rmdir conf$$.dir 2>/dev/null
26632 131 jeremybenn
 
26633
if mkdir -p . 2>/dev/null; then
26634
  as_mkdir_p=:
26635
else
26636
  test -d ./-p && rmdir ./-p
26637
  as_mkdir_p=false
26638
fi
26639
 
26640 213 jeremybenn
if test -x / >/dev/null 2>&1; then
26641
  as_test_x='test -x'
26642
else
26643
  if ls -dL / >/dev/null 2>&1; then
26644
    as_ls_L_option=L
26645
  else
26646
    as_ls_L_option=
26647
  fi
26648
  as_test_x='
26649
    eval sh -c '\''
26650
      if test -d "$1"; then
26651
        test -d "$1/.";
26652
      else
26653
        case $1 in
26654
        -*)set "./$1";;
26655
        esac;
26656
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26657
        ???[sx]*):;;*)false;;esac;fi
26658
    '\'' sh
26659
  '
26660
fi
26661
as_executable_p=$as_test_x
26662 131 jeremybenn
 
26663
# Sed expression to map a string onto a valid CPP name.
26664
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26665
 
26666
# Sed expression to map a string onto a valid variable name.
26667
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26668
 
26669
 
26670
exec 6>&1
26671
 
26672 213 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
26673 131 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
26674 213 jeremybenn
# values after options handling.
26675
ac_log="
26676 131 jeremybenn
This file was extended by $as_me, which was
26677 213 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
26678 131 jeremybenn
 
26679
  CONFIG_FILES    = $CONFIG_FILES
26680
  CONFIG_HEADERS  = $CONFIG_HEADERS
26681
  CONFIG_LINKS    = $CONFIG_LINKS
26682
  CONFIG_COMMANDS = $CONFIG_COMMANDS
26683
  $ $0 $@
26684
 
26685 213 jeremybenn
on `(hostname || uname -n) 2>/dev/null | sed 1q`
26686
"
26687
 
26688 131 jeremybenn
_ACEOF
26689
 
26690 213 jeremybenn
case $ac_config_files in *"
26691
"*) set x $ac_config_files; shift; ac_config_files=$*;;
26692
esac
26693 131 jeremybenn
 
26694 213 jeremybenn
case $ac_config_headers in *"
26695
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26696
esac
26697 131 jeremybenn
 
26698
 
26699 213 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26700
# Files that config.status was made for.
26701
config_files="$ac_config_files"
26702
config_headers="$ac_config_headers"
26703
config_links="$ac_config_links"
26704
config_commands="$ac_config_commands"
26705 131 jeremybenn
 
26706 213 jeremybenn
_ACEOF
26707 131 jeremybenn
 
26708 213 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26709 131 jeremybenn
ac_cs_usage="\
26710
\`$as_me' instantiates files from templates according to the
26711
current configuration.
26712
 
26713 213 jeremybenn
Usage: $0 [OPTION]... [FILE]...
26714 131 jeremybenn
 
26715
  -h, --help       print this help, then exit
26716 213 jeremybenn
  -V, --version    print version number and configuration settings, then exit
26717
  -q, --quiet, --silent
26718
                   do not print progress messages
26719 131 jeremybenn
  -d, --debug      don't remove temporary files
26720
      --recheck    update $as_me by reconfiguring in the same conditions
26721 213 jeremybenn
      --file=FILE[:TEMPLATE]
26722
                   instantiate the configuration file FILE
26723
      --header=FILE[:TEMPLATE]
26724
                   instantiate the configuration header FILE
26725 131 jeremybenn
 
26726
Configuration files:
26727
$config_files
26728
 
26729
Configuration headers:
26730
$config_headers
26731
 
26732
Configuration links:
26733
$config_links
26734
 
26735
Configuration commands:
26736
$config_commands
26737
 
26738
Report bugs to ."
26739 213 jeremybenn
 
26740 131 jeremybenn
_ACEOF
26741 213 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26742 131 jeremybenn
ac_cs_version="\\
26743
config.status
26744 213 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
26745
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26746 131 jeremybenn
 
26747 213 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
26748 131 jeremybenn
This config.status script is free software; the Free Software Foundation
26749
gives unlimited permission to copy, distribute and modify it."
26750 213 jeremybenn
 
26751
ac_pwd='$ac_pwd'
26752
srcdir='$srcdir'
26753
INSTALL='$INSTALL'
26754
AWK='$AWK'
26755
test -n "\$AWK" || AWK=awk
26756 131 jeremybenn
_ACEOF
26757
 
26758 213 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759
# The default lists apply if the user does not specify any file.
26760 131 jeremybenn
ac_need_defaults=:
26761
while test $# != 0
26762
do
26763
  case $1 in
26764
  --*=*)
26765 213 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26766
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26767 131 jeremybenn
    ac_shift=:
26768
    ;;
26769 213 jeremybenn
  *)
26770 131 jeremybenn
    ac_option=$1
26771
    ac_optarg=$2
26772
    ac_shift=shift
26773
    ;;
26774
  esac
26775
 
26776
  case $ac_option in
26777
  # Handling of the options.
26778
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26779
    ac_cs_recheck=: ;;
26780 213 jeremybenn
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26781
    $as_echo "$ac_cs_version"; exit ;;
26782
  --debug | --debu | --deb | --de | --d | -d )
26783 131 jeremybenn
    debug=: ;;
26784
  --file | --fil | --fi | --f )
26785
    $ac_shift
26786 213 jeremybenn
    case $ac_optarg in
26787
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26788
    esac
26789
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26790 131 jeremybenn
    ac_need_defaults=false;;
26791
  --header | --heade | --head | --hea )
26792
    $ac_shift
26793 213 jeremybenn
    case $ac_optarg in
26794
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26795
    esac
26796
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26797 131 jeremybenn
    ac_need_defaults=false;;
26798 213 jeremybenn
  --he | --h)
26799
    # Conflict between --help and --header
26800
    { $as_echo "$as_me: error: ambiguous option: $1
26801
Try \`$0 --help' for more information." >&2
26802
   { (exit 1); exit 1; }; };;
26803
  --help | --hel | -h )
26804
    $as_echo "$ac_cs_usage"; exit ;;
26805 131 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26806
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26807
    ac_cs_silent=: ;;
26808
 
26809
  # This is an error.
26810 213 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
26811
Try \`$0 --help' for more information." >&2
26812 131 jeremybenn
   { (exit 1); exit 1; }; } ;;
26813
 
26814 213 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
26815
     ac_need_defaults=false ;;
26816 131 jeremybenn
 
26817
  esac
26818
  shift
26819
done
26820
 
26821
ac_configure_extra_args=
26822
 
26823
if $ac_cs_silent; then
26824
  exec 6>/dev/null
26825
  ac_configure_extra_args="$ac_configure_extra_args --silent"
26826
fi
26827
 
26828
_ACEOF
26829 213 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26830 131 jeremybenn
if \$ac_cs_recheck; then
26831 213 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26832
  shift
26833
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26834
  CONFIG_SHELL='$SHELL'
26835
  export CONFIG_SHELL
26836
  exec "\$@"
26837 131 jeremybenn
fi
26838
 
26839
_ACEOF
26840 213 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841
exec 5>>config.log
26842
{
26843
  echo
26844
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26845
## Running $as_me. ##
26846
_ASBOX
26847
  $as_echo "$ac_log"
26848
} >&5
26849 131 jeremybenn
 
26850 213 jeremybenn
_ACEOF
26851
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26852 131 jeremybenn
#
26853 213 jeremybenn
# INIT-COMMANDS
26854 131 jeremybenn
#
26855
 
26856
GCC="$GCC"
26857
CC="$CC"
26858
acx_cv_header_stdint="$acx_cv_header_stdint"
26859
acx_cv_type_int8_t="$acx_cv_type_int8_t"
26860
acx_cv_type_int16_t="$acx_cv_type_int16_t"
26861
acx_cv_type_int32_t="$acx_cv_type_int32_t"
26862
acx_cv_type_int64_t="$acx_cv_type_int64_t"
26863
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
26864
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
26865
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
26866
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
26867
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
26868
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
26869
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
26870
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
26871
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
26872
 
26873
 
26874
gdb_host_cpu=$gdb_host_cpu
26875
nativefile=$nativefile
26876
 
26877
 
26878
_ACEOF
26879
 
26880 213 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26881 131 jeremybenn
 
26882 213 jeremybenn
# Handling of arguments.
26883 131 jeremybenn
for ac_config_target in $ac_config_targets
26884
do
26885 213 jeremybenn
  case $ac_config_target in
26886
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26887
    "gdb_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
26888
    "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26889
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26890
    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26891
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26892
 
26893
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26894
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26895 131 jeremybenn
   { (exit 1); exit 1; }; };;
26896
  esac
26897
done
26898
 
26899 213 jeremybenn
 
26900 131 jeremybenn
# If the user did not use the arguments to specify the items to instantiate,
26901
# then the envvar interface is used.  Set only those that are not.
26902
# We use the long form for the default assignment because of an extremely
26903
# bizarre bug on SunOS 4.1.3.
26904
if $ac_need_defaults; then
26905
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26906
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26907
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26908
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26909
fi
26910
 
26911
# Have a temporary directory for convenience.  Make it in the build tree
26912 213 jeremybenn
# simply because there is no reason against having it here, and in addition,
26913 131 jeremybenn
# creating and moving files from /tmp can sometimes cause problems.
26914 213 jeremybenn
# Hook for its removal unless debugging.
26915
# Note that there is a small window in which the directory will not be cleaned:
26916
# after its creation but before its name has been assigned to `$tmp'.
26917 131 jeremybenn
$debug ||
26918
{
26919 213 jeremybenn
  tmp=
26920
  trap 'exit_status=$?
26921
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26922
' 0
26923 131 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26924
}
26925
# Create a (secure) tmp directory for tmp files.
26926
 
26927
{
26928 213 jeremybenn
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26929 131 jeremybenn
  test -n "$tmp" && test -d "$tmp"
26930
}  ||
26931
{
26932 213 jeremybenn
  tmp=./conf$$-$RANDOM
26933
  (umask 077 && mkdir "$tmp")
26934 131 jeremybenn
} ||
26935
{
26936 213 jeremybenn
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
26937 131 jeremybenn
   { (exit 1); exit 1; }
26938
}
26939
 
26940 213 jeremybenn
# Set up the scripts for CONFIG_FILES section.
26941
# No need to generate them if there are no CONFIG_FILES.
26942
# This happens for instance with `./config.status config.h'.
26943
if test -n "$CONFIG_FILES"; then
26944 131 jeremybenn
 
26945 213 jeremybenn
if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then
26946
  ac_cs_awk_getline=:
26947
  ac_cs_awk_pipe_init=
26948
  ac_cs_awk_read_file='
26949
      while ((getline aline < (F[key])) > 0)
26950
        print(aline)
26951
      close(F[key])'
26952
  ac_cs_awk_pipe_fini=
26953 131 jeremybenn
else
26954 213 jeremybenn
  ac_cs_awk_getline=false
26955
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26956
  ac_cs_awk_read_file='
26957
      print "|#_!!_#|"
26958
      print "cat " F[key] " &&"
26959
      '$ac_cs_awk_pipe_init
26960
  # The final `:' finishes the AND list.
26961
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26962 131 jeremybenn
fi
26963 213 jeremybenn
ac_cr='
'
26964
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
26965
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26966
  ac_cs_awk_cr='\\r'
26967
else
26968
  ac_cs_awk_cr=$ac_cr
26969
fi
26970
26971 131 jeremybenn
 
26972 213 jeremybenn
_ACEOF
26973
26974 131 jeremybenn
 
26975 213 jeremybenn
{
26976
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26977
  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26978
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26979
  echo "_ACAWK" &&
26980
  echo "_ACEOF"
26981
} >conf$$files.sh &&
26982
. ./conf$$files.sh ||
26983
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26984
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26985
   { (exit 1); exit 1; }; }
26986
rm -f conf$$files.sh
26987
26988 131 jeremybenn
 
26989 213 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
26990
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26991
  echo "_ACEOF"
26992
} >conf$$subs.sh ||
26993
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26994
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26995
   { (exit 1); exit 1; }; }
26996
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26997
ac_delim='%!_!# '
26998
for ac_last_try in false false false false false :; do
26999
  . ./conf$$subs.sh ||
27000
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27001
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27002
   { (exit 1); exit 1; }; }
27003
27004 131 jeremybenn
 
27005 213 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
27006
    break
27007
  elif $ac_last_try; then
27008
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27009
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27010
   { (exit 1); exit 1; }; }
27011
  else
27012 131 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27013 213 jeremybenn
  fi
27014 131 jeremybenn
done
27015 213 jeremybenn
rm -f conf$$subs.sh
27016
27017 131 jeremybenn
 
27018 213 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27019
_ACEOF
27020 131 jeremybenn
sed -n '
27021 213 jeremybenn
h
27022
s/^/S["/; s/!.*/"]=/
27023
p
27024
g
27025
s/^[^!]*!//
27026
:repl
27027
t repl
27028
s/'"$ac_delim"'$//
27029
t delim
27030
:nl
27031
h
27032
s/\(.\{148\}\).*/\1/
27033
t more1
27034
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27035
p
27036
n
27037
b repl
27038
:more1
27039
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27040
p
27041
g
27042
s/.\{148\}//
27043
t nl
27044
:delim
27045
h
27046
s/\(.\{148\}\).*/\1/
27047
t more2
27048
s/["\\]/\\&/g; s/^/"/; s/$/"/
27049
p
27050
b
27051
:more2
27052
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27053
p
27054
g
27055
s/.\{148\}//
27056
t delim
27057
' 
27058
/^[^""]/{
27059
  N
27060
  s/\n//
27061
}
27062
' >>$CONFIG_STATUS || ac_write_fail=1
27063
rm -f conf$$subs.awk
27064
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27065
_ACAWK
27066
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27067
  for (key in S) S_is_set[key] = 1
27068
  FS = ""
27069
  \$ac_cs_awk_pipe_init
27070
}
27071
{
27072
  line = $ 0
27073
  nfields = split(line, field, "@")
27074
  substed = 0
27075
  len = length(field[1])
27076
  for (i = 2; i < nfields; i++) {
27077
    key = field[i]
27078
    keylen = length(key)
27079
    if (S_is_set[key]) {
27080
      value = S[key]
27081
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27082
      len += length(value) + length(field[++i])
27083
      substed = 1
27084
    } else
27085
      len += 1 + keylen
27086
  }
27087
  if (nfields == 3 && !substed) {
27088
    key = field[2]
27089
    if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27090
      \$ac_cs_awk_read_file
27091
      next
27092
    }
27093
  }
27094
  print line
27095
}
27096
\$ac_cs_awk_pipe_fini
27097
_ACAWK
27098
_ACEOF
27099 131 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27100 213 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27101
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27102
else
27103
  cat
27104
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27105
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27106
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
27107
   { (exit 1); exit 1; }; }
27108
_ACEOF
27109 131 jeremybenn
27110
 
27111 213 jeremybenn
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27112
# trailing colons and then remove the whole line if VPATH becomes empty
27113
# (actually we leave an empty line to preserve line numbers).
27114
if test "x$srcdir" = x.; then
27115
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
27116
s/:*\$(srcdir):*/:/
27117
s/:*\${srcdir}:*/:/
27118
s/:*@srcdir@:*/:/
27119
s/^\([^=]*=[     ]*\):*/\1/
27120
s/:*$//
27121
s/^[^=]*=[       ]*$//
27122
}'
27123
fi
27124
27125 131 jeremybenn
 
27126 213 jeremybenn
fi # test -n "$CONFIG_FILES"
27127
27128 131 jeremybenn
 
27129 213 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
27130
# This happens for instance with `./config.status Makefile'.
27131
if test -n "$CONFIG_HEADERS"; then
27132
cat >"$tmp/defines.awk" <<\_ACAWK ||
27133
BEGIN {
27134
_ACEOF
27135
27136 131 jeremybenn
 
27137 213 jeremybenn
# here-document in config.status, that substitutes the proper values into
27138
# config.h.in to produce config.h.
27139
27140 131 jeremybenn
 
27141 213 jeremybenn
# handling of long lines.
27142
ac_delim='%!_!# '
27143
for ac_last_try in false false :; do
27144
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27145
  if test -z "$ac_t"; then
27146
    break
27147
  elif $ac_last_try; then
27148
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27149
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27150
   { (exit 1); exit 1; }; }
27151 131 jeremybenn
  else
27152 213 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27153
  fi
27154
done
27155
27156 131 jeremybenn
 
27157 213 jeremybenn
# likewise P contains macro parameters if any.  Preserve backslash
27158
# newline sequences.
27159
27160 131 jeremybenn
 
27161 213 jeremybenn
sed -n '
27162
s/.\{148\}/&'"$ac_delim"'/g
27163
t rset
27164
:rset
27165
s/^[     ]*#[    ]*define[       ][      ]*/ /
27166
t def
27167
d
27168
:def
27169
s/\\$//
27170
t bsnl
27171
s/["\\]/\\&/g
27172
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27173
D["\1"]=" \3"/p
27174
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27175
d
27176
:bsnl
27177
s/["\\]/\\&/g
27178
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27179
D["\1"]=" \3\\\\\\n"\\/p
27180
t cont
27181
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27182
t cont
27183
d
27184
:cont
27185
n
27186
s/.\{148\}/&'"$ac_delim"'/g
27187
t clear
27188 131 jeremybenn
:clear
27189 213 jeremybenn
s/\\$//
27190
t bsnlc
27191
s/["\\]/\\&/g; s/^/"/; s/$/"/p
27192
d
27193
:bsnlc
27194
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27195
b cont
27196
' 
27197
s/'"$ac_delim"'/"\\\
27198
"/g' >>$CONFIG_STATUS || ac_write_fail=1
27199
27200 131 jeremybenn
 
27201 213 jeremybenn
  for (key in D) D_is_set[key] = 1
27202
  FS = ""
27203
}
27204
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27205
  line = \$ 0
27206
  split(line, arg, " ")
27207
  if (arg[1] == "#") {
27208
    defundef = arg[2]
27209
    mac1 = arg[3]
27210
  } else {
27211
    defundef = substr(arg[1], 2)
27212
    mac1 = arg[2]
27213
  }
27214
  split(mac1, mac2, "(") #)
27215
  macro = mac2[1]
27216
  prefix = substr(line, 1, index(line, defundef) - 1)
27217
  if (D_is_set[macro]) {
27218
    # Preserve the white space surrounding the "#".
27219
    print prefix "define", macro P[macro] D[macro]
27220
    next
27221
  } else {
27222
    # Replace #undef with comments.  This is necessary, for example,
27223
    # in the case of _POSIX_SOURCE, which is predefined and required
27224
    # on some systems where configure will not decide to define it.
27225
    if (defundef == "undef") {
27226
      print "/*", prefix defundef, macro, "*/"
27227
      next
27228
    }
27229
  }
27230
}
27231
{ print }
27232
_ACAWK
27233
_ACEOF
27234 131 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27235 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27236
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27237
   { (exit 1); exit 1; }; }
27238
fi # test -n "$CONFIG_HEADERS"
27239
27240 131 jeremybenn
 
27241
 
27242 213 jeremybenn
shift
27243
for ac_tag
27244
do
27245 131 jeremybenn
  case $ac_tag in
27246 213 jeremybenn
  :[FHLC]) ac_mode=$ac_tag; continue;;
27247
  esac
27248
  case $ac_mode$ac_tag in
27249
  :[FHL]*:*);;
27250
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27251
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27252
   { (exit 1); exit 1; }; };;
27253
  :[FH]-) ac_tag=-:-;;
27254
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27255
  esac
27256
  ac_save_IFS=$IFS
27257
  IFS=:
27258
  set x $ac_tag
27259
  IFS=$ac_save_IFS
27260
  shift
27261
  ac_file=$1
27262
  shift
27263
27264 131 jeremybenn
 
27265 213 jeremybenn
  :L) ac_source=$1;;
27266
  :[FH])
27267
    ac_file_inputs=
27268
    for ac_f
27269
    do
27270
      case $ac_f in
27271
      -) ac_f="$tmp/stdin";;
27272
      *) # Look for the file first in the build tree, then in the source tree
27273
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
27274
         # because $ac_f cannot contain `:'.
27275
         test -f "$ac_f" ||
27276
           case $ac_f in
27277
           [\\/$]*) false;;
27278
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27279
           esac ||
27280
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27281
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27282
   { (exit 1); exit 1; }; };;
27283
      esac
27284
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27285
      ac_file_inputs="$ac_file_inputs '$ac_f'"
27286
    done
27287 131 jeremybenn
27288
 
27289 213 jeremybenn
    # use $as_me), people would be surprised to read:
27290
    #    /* config.h.  Generated by config.status.  */
27291
    configure_input='Generated from '`
27292
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27293
        `' by configure.'
27294
    if test x"$ac_file" != x-; then
27295
      configure_input="$ac_file.  $configure_input"
27296
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27297
$as_echo "$as_me: creating $ac_file" >&6;}
27298
    fi
27299 131 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
27300 213 jeremybenn
    case $configure_input in #(
27301
    *\&* | *\|* | *\\* )
27302
       ac_sed_conf_input=`$as_echo "$configure_input" |
27303
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27304
    *) ac_sed_conf_input=$configure_input;;
27305
    esac
27306
27307 131 jeremybenn
 
27308 213 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
27309
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27310
$as_echo "$as_me: error: could not create $ac_file" >&2;}
27311
   { (exit 1); exit 1; }; } ;;
27312
    esac
27313
    ;;
27314
  esac
27315
27316 131 jeremybenn
 
27317 213 jeremybenn
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27318
         X"$ac_file" : 'X\(//\)[^/]' \| \
27319
         X"$ac_file" : 'X\(//\)$' \| \
27320
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27321
$as_echo X"$ac_file" |
27322
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27323
            s//\1/
27324
            q
27325
          }
27326
          /^X\(\/\/\)[^/].*/{
27327
            s//\1/
27328
            q
27329
          }
27330
          /^X\(\/\/\)$/{
27331
            s//\1/
27332
            q
27333
          }
27334
          /^X\(\/\).*/{
27335
            s//\1/
27336
            q
27337
          }
27338
          s/.*/./; q'`
27339
  { as_dir="$ac_dir"
27340
  case $as_dir in #(
27341
  -*) as_dir=./$as_dir;;
27342
  esac
27343
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27344
    as_dirs=
27345 131 jeremybenn
    while :; do
27346 213 jeremybenn
      case $as_dir in #(
27347
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27348
      *) as_qdir=$as_dir;;
27349
      esac
27350
      as_dirs="'$as_qdir' $as_dirs"
27351
      as_dir=`$as_dirname -- "$as_dir" ||
27352
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27353 131 jeremybenn
         X"$as_dir" : 'X\(//\)[^/]' \| \
27354
         X"$as_dir" : 'X\(//\)$' \| \
27355
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27356 213 jeremybenn
$as_echo X"$as_dir" |
27357
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27358
            s//\1/
27359
            q
27360
          }
27361
          /^X\(\/\/\)[^/].*/{
27362
            s//\1/
27363
            q
27364
          }
27365
          /^X\(\/\/\)$/{
27366
            s//\1/
27367
            q
27368
          }
27369
          /^X\(\/\).*/{
27370
            s//\1/
27371
            q
27372
          }
27373
          s/.*/./; q'`
27374
      test -d "$as_dir" && break
27375
    done
27376 131 jeremybenn
    test -z "$as_dirs" || eval "mkdir $as_dirs"
27377 213 jeremybenn
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27378
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27379
   { (exit 1); exit 1; }; }; }
27380 131 jeremybenn
  ac_builddir=.
27381
27382
 
27383 213 jeremybenn
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27384
*)
27385
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27386
  # A ".." for each directory in $ac_dir_suffix.
27387
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27388
  case $ac_top_builddir_sub in
27389
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27390
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27391
  esac ;;
27392
esac
27393
ac_abs_top_builddir=$ac_pwd
27394
ac_abs_builddir=$ac_pwd$ac_dir_suffix
27395
# for backward compatibility:
27396
ac_top_builddir=$ac_top_build_prefix
27397
27398 131 jeremybenn
 
27399
  .)  # We are building in place.
27400 213 jeremybenn
    ac_srcdir=.
27401 131 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
27402 213 jeremybenn
    ac_abs_top_srcdir=$ac_pwd ;;
27403
  [\\/]* | ?:[\\/]* )  # Absolute name.
27404
    ac_srcdir=$srcdir$ac_dir_suffix;
27405 131 jeremybenn
    ac_top_srcdir=$srcdir
27406 213 jeremybenn
    ac_abs_top_srcdir=$srcdir ;;
27407
  *) # Relative name.
27408
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27409
    ac_top_srcdir=$ac_top_build_prefix$srcdir
27410
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27411
esac
27412 131 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27413 213 jeremybenn
27414 131 jeremybenn
 
27415
 
27416 213 jeremybenn
  :F)
27417
  #
27418
  # CONFIG_FILE
27419
  #
27420
27421 131 jeremybenn
 
27422 213 jeremybenn
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27423
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27424
  esac
27425 131 jeremybenn
_ACEOF
27426
27427
 
27428 213 jeremybenn
# If the template does not know about datarootdir, expand it.
27429
# FIXME: This hack should be removed a few years after 2.60.
27430
ac_datarootdir_hack=; ac_datarootdir_seen=
27431
27432 131 jeremybenn
 
27433 213 jeremybenn
/datarootdir/ {
27434
  p
27435
  q
27436
}
27437
/@datadir@/p
27438
/@docdir@/p
27439
/@infodir@/p
27440
/@localedir@/p
27441
/@mandir@/p
27442
'
27443
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27444
*datarootdir*) ac_datarootdir_seen=yes;;
27445
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27446
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27447
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27448
_ACEOF
27449
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27450
  ac_datarootdir_hack='
27451
  s&@datadir@&$datadir&g
27452
  s&@docdir@&$docdir&g
27453
  s&@infodir@&$infodir&g
27454
  s&@localedir@&$localedir&g
27455
  s&@mandir@&$mandir&g
27456
    s&\\\${datarootdir}&$datarootdir&g' ;;
27457
esac
27458
_ACEOF
27459
27460 131 jeremybenn
 
27461 213 jeremybenn
# Shell code in configure.ac might set extrasub.
27462
# FIXME: do we really want to maintain this feature?
27463
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27464
ac_sed_extra="$ac_vpsub
27465
$extrasub
27466
_ACEOF
27467
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27468
:t
27469
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27470
s|@configure_input@|$ac_sed_conf_input|;t t
27471
s&@top_builddir@&$ac_top_builddir_sub&;t t
27472
s&@top_build_prefix@&$ac_top_build_prefix&;t t
27473
s&@srcdir@&$ac_srcdir&;t t
27474
s&@abs_srcdir@&$ac_abs_srcdir&;t t
27475
s&@top_srcdir@&$ac_top_srcdir&;t t
27476
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27477
s&@builddir@&$ac_builddir&;t t
27478
s&@abs_builddir@&$ac_abs_builddir&;t t
27479
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27480
s&@INSTALL@&$ac_INSTALL&;t t
27481
$ac_datarootdir_hack
27482
"
27483
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27484
if $ac_cs_awk_getline; then
27485
  $AWK -f "$tmp/subs.awk"
27486
else
27487 131 jeremybenn
  $AWK -f "$tmp/subs.awk" | $SHELL
27488 213 jeremybenn
fi >$tmp/out \
27489
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27490
$as_echo "$as_me: error: could not create $ac_file" >&2;}
27491
   { (exit 1); exit 1; }; }
27492
27493 131 jeremybenn
 
27494 213 jeremybenn
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27495
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27496
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27497
which seems to be undefined.  Please make sure it is defined." >&5
27498
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27499
which seems to be undefined.  Please make sure it is defined." >&2;}
27500
27501
 
27502
  case $ac_file in
27503
  -) cat "$tmp/out" && rm -f "$tmp/out";;
27504
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27505
  esac \
27506
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27507
$as_echo "$as_me: error: could not create $ac_file" >&2;}
27508
   { (exit 1); exit 1; }; }
27509
 ;;
27510
  :H)
27511
  #
27512
  # CONFIG_HEADER
27513
  #
27514
  if test x"$ac_file" != x-; then
27515
    {
27516
      $as_echo "/* $configure_input  */" \
27517
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27518
    } >"$tmp/config.h" \
27519
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27520
$as_echo "$as_me: error: could not create $ac_file" >&2;}
27521
   { (exit 1); exit 1; }; }
27522
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27523
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27524
$as_echo "$as_me: $ac_file is unchanged" >&6;}
27525
    else
27526 131 jeremybenn
      rm -f "$ac_file"
27527 213 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
27528
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27529
$as_echo "$as_me: error: could not create $ac_file" >&2;}
27530
   { (exit 1); exit 1; }; }
27531
    fi
27532
  else
27533
    $as_echo "/* $configure_input  */" \
27534
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27535
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27536
$as_echo "$as_me: error: could not create -" >&2;}
27537
   { (exit 1); exit 1; }; }
27538
  fi
27539
 ;;
27540
  :L)
27541
  #
27542
  # CONFIG_LINK
27543
  #
27544
27545 131 jeremybenn
 
27546 213 jeremybenn
    :
27547
  else
27548
    # Prefer the file from the source tree if names are identical.
27549
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27550
      ac_source=$srcdir/$ac_source
27551
    fi
27552
27553 131 jeremybenn
 
27554 213 jeremybenn
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
27555
27556 131 jeremybenn
 
27557 213 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
27558
$as_echo "$as_me: error: $ac_source: file not found" >&2;}
27559
   { (exit 1); exit 1; }; }
27560
    fi
27561
    rm -f "$ac_file"
27562
27563
 
27564
    case $srcdir in
27565
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27566
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27567
    esac
27568
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27569
      ln "$ac_source" "$ac_file" 2>/dev/null ||
27570
      cp -p "$ac_source" "$ac_file" ||
27571
      { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
27572
$as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
27573
   { (exit 1); exit 1; }; }
27574
  fi
27575
 ;;
27576
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27577
$as_echo "$as_me: executing $ac_file commands" >&6;}
27578
 ;;
27579
  esac
27580
27581
 
27582
 
27583
    "gdb_stdint.h":C)
27584
if test "$GCC" = yes; then
27585 131 jeremybenn
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
27586
else
27587
  echo "/* generated for $CC */" > tmp-stdint.h
27588
fi
27589
27590
 
27591
27592
 
27593
  #define GCC_GENERATED_STDINT_H 1
27594
27595
 
27596
EOF
27597
27598
 
27599
  echo "#include " >> tmp-stdint.h
27600
fi
27601
if test "$acx_cv_header_stdint" != stddef.h; then
27602
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
27603
fi
27604
27605
 
27606
  /* glibc uses these symbols as guards to prevent redefinitions.  */
27607
  #ifdef __int8_t_defined
27608
  #define _INT8_T
27609
  #define _INT16_T
27610
  #define _INT32_T
27611
  #endif
27612
  #ifdef __uint32_t_defined
27613
  #define _UINT32_T
27614
  #endif
27615
27616
 
27617
27618
 
27619
if test "$acx_cv_header_stdint" = stddef.h; then
27620
  sed 's/^ *//' >> tmp-stdint.h <
27621
27622
 
27623
    #define _UINT8_T
27624
    #ifndef __uint8_t_defined
27625
    #define __uint8_t_defined
27626
    typedef unsigned $acx_cv_type_int8_t uint8_t;
27627
    #endif
27628
    #endif
27629
27630
 
27631
    #define _UINT16_T
27632
    #ifndef __uint16_t_defined
27633
    #define __uint16_t_defined
27634
    typedef unsigned $acx_cv_type_int16_t uint16_t;
27635
    #endif
27636
    #endif
27637
27638
 
27639
    #define _UINT32_T
27640
    #ifndef __uint32_t_defined
27641
    #define __uint32_t_defined
27642
    typedef unsigned $acx_cv_type_int32_t uint32_t;
27643
    #endif
27644
    #endif
27645
27646
 
27647
    #define _INT8_T
27648
    #ifndef __int8_t_defined
27649
    #define __int8_t_defined
27650
    typedef $acx_cv_type_int8_t int8_t;
27651
    #endif
27652
    #endif
27653
27654
 
27655
    #define _INT16_T
27656
    #ifndef __int16_t_defined
27657
    #define __int16_t_defined
27658
    typedef $acx_cv_type_int16_t int16_t;
27659
    #endif
27660
    #endif
27661
27662
 
27663
    #define _INT32_T
27664
    #ifndef __int32_t_defined
27665
    #define __int32_t_defined
27666
    typedef $acx_cv_type_int32_t int32_t;
27667
    #endif
27668
    #endif
27669
EOF
27670
elif test "$ac_cv_type_u_int32_t" = yes; then
27671
  sed 's/^ *//' >> tmp-stdint.h <
27672
27673
 
27674
    #ifndef _INT8_T
27675
    #define _INT8_T
27676
    #endif
27677
    #ifndef _INT16_T
27678
    #define _INT16_T
27679
    #endif
27680
    #ifndef _INT32_T
27681
    #define _INT32_T
27682
    #endif
27683
27684
 
27685
    #define _UINT8_T
27686
    #ifndef __uint8_t_defined
27687
    #define __uint8_t_defined
27688
    typedef u_int8_t uint8_t;
27689
    #endif
27690
    #endif
27691
27692
 
27693
    #define _UINT16_T
27694
    #ifndef __uint16_t_defined
27695
    #define __uint16_t_defined
27696
    typedef u_int16_t uint16_t;
27697
    #endif
27698
    #endif
27699
27700
 
27701
    #define _UINT32_T
27702
    #ifndef __uint32_t_defined
27703
    #define __uint32_t_defined
27704
    typedef u_int32_t uint32_t;
27705
    #endif
27706
    #endif
27707
EOF
27708
else
27709
  sed 's/^ *//' >> tmp-stdint.h <
27710
27711
 
27712
    #ifndef _INT8_T
27713
    #define _INT8_T
27714
    #endif
27715
    #ifndef _INT16_T
27716
    #define _INT16_T
27717
    #endif
27718
    #ifndef _INT32_T
27719
    #define _INT32_T
27720
    #endif
27721
    #ifndef _UINT8_T
27722
    #define _UINT8_T
27723
    #endif
27724
    #ifndef _UINT16_T
27725
    #define _UINT16_T
27726
    #endif
27727
    #ifndef _UINT32_T
27728
    #define _UINT32_T
27729
    #endif
27730
EOF
27731
fi
27732
27733
 
27734
if test "$ac_cv_type_uint64_t" = yes; then
27735
  sed 's/^ *//' >> tmp-stdint.h <
27736
27737
 
27738
    #ifndef _INT64_T
27739
    #define _INT64_T
27740
    #endif
27741
    #ifndef _UINT64_T
27742
    #define _UINT64_T
27743
    #endif
27744
EOF
27745
elif test "$ac_cv_type_u_int64_t" = yes; then
27746
  sed 's/^ *//' >> tmp-stdint.h <
27747
27748
 
27749
    #ifndef _INT64_T
27750
    #define _INT64_T
27751
    #endif
27752
    #ifndef _UINT64_T
27753
    #define _UINT64_T
27754
    #ifndef __uint64_t_defined
27755
    #define __uint64_t_defined
27756
    typedef u_int64_t uint64_t;
27757
    #endif
27758
    #endif
27759
EOF
27760
elif test -n "$acx_cv_type_int64_t"; then
27761
  sed 's/^ *//' >> tmp-stdint.h <
27762
27763
 
27764
    #ifndef _INT64_T
27765
    #define _INT64_T
27766
    typedef $acx_cv_type_int64_t int64_t;
27767
    #endif
27768
    #ifndef _UINT64_T
27769
    #define _UINT64_T
27770
    #ifndef __uint64_t_defined
27771
    #define __uint64_t_defined
27772
    typedef unsigned $acx_cv_type_int64_t uint64_t;
27773
    #endif
27774
    #endif
27775
EOF
27776
else
27777
  sed 's/^ *//' >> tmp-stdint.h <
27778
27779
 
27780
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
27781
    #ifndef _INT64_T
27782
    #define _INT64_T
27783
    #ifndef __int64_t_defined
27784
    typedef long long int64_t;
27785
    #endif
27786
    #endif
27787
    #ifndef _UINT64_T
27788
    #define _UINT64_T
27789
    typedef unsigned long long uint64_t;
27790
    #endif
27791
27792
 
27793
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
27794
       does not implement __extension__.  But that compiler doesn't define
27795
       __GNUC_MINOR__.  */
27796
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
27797
    # define __extension__
27798
    # endif
27799
27800
 
27801
    # define _INT64_T
27802
    __extension__ typedef long long int64_t;
27803
    # endif
27804
    # ifndef _UINT64_T
27805
    # define _UINT64_T
27806
    __extension__ typedef unsigned long long uint64_t;
27807
    # endif
27808
27809
 
27810
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27811
27812
 
27813
    #  define _INT64_T
27814
    typedef __int64 int64_t;
27815
    #  endif
27816
    #  ifndef _UINT64_T
27817
    #  define _UINT64_T
27818
    typedef unsigned __int64 uint64_t;
27819
    #  endif
27820
    # endif /* compiler */
27821
27822
 
27823
EOF
27824
fi
27825
27826
 
27827
if test "$ac_cv_type_uintptr_t" != yes; then
27828
  sed 's/^ *//' >> tmp-stdint.h <
27829
27830
 
27831
    #ifndef __uintptr_t_defined
27832
    typedef u$acx_cv_type_intptr_t uintptr_t;
27833
    #endif
27834
    #ifndef __intptr_t_defined
27835
    typedef $acx_cv_type_intptr_t  intptr_t;
27836
    #endif
27837
EOF
27838
fi
27839
27840
 
27841
if test "$ac_cv_type_int_least32_t" != yes; then
27842
  sed 's/^ *//' >> tmp-stdint.h <
27843
27844
 
27845
    typedef int8_t     int_least8_t;
27846
    typedef int16_t    int_least16_t;
27847
    typedef int32_t    int_least32_t;
27848
    #ifdef _INT64_T
27849
    typedef int64_t    int_least64_t;
27850
    #endif
27851
27852
 
27853
    typedef uint16_t   uint_least16_t;
27854
    typedef uint32_t   uint_least32_t;
27855
    #ifdef _UINT64_T
27856
    typedef uint64_t   uint_least64_t;
27857
    #endif
27858
EOF
27859
fi
27860
27861
 
27862
if test "$ac_cv_type_int_fast32_t" != yes; then
27863
      sed 's/^ *//' >> tmp-stdint.h <
27864
27865
 
27866
    typedef int8_t       int_fast8_t;
27867
    typedef int          int_fast16_t;
27868
    typedef int32_t      int_fast32_t;
27869
    #ifdef _INT64_T
27870
    typedef int64_t      int_fast64_t;
27871
    #endif
27872
27873
 
27874
    typedef unsigned int uint_fast16_t;
27875
    typedef uint32_t     uint_fast32_t;
27876
    #ifdef _UINT64_T
27877
    typedef uint64_t     uint_fast64_t;
27878
    #endif
27879
EOF
27880
fi
27881
27882
 
27883
  sed 's/^ *//' >> tmp-stdint.h <
27884
27885
 
27886
    #ifdef _INT64_T
27887
    typedef int64_t       intmax_t;
27888
    #else
27889
    typedef long          intmax_t;
27890
    #endif
27891
    #ifdef _UINT64_T
27892
    typedef uint64_t      uintmax_t;
27893
    #else
27894
    typedef unsigned long uintmax_t;
27895
    #endif
27896
EOF
27897
fi
27898
27899
 
27900
27901
 
27902
EOF
27903
27904
 
27905
  rm -f tmp-stdint.h
27906
else
27907
  mv -f tmp-stdint.h gdb_stdint.h
27908
fi
27909
27910
 
27911
    "default":C)
27912 213 jeremybenn
27913 131 jeremybenn
 
27914
mv -f Makefile.tmp Makefile
27915
27916
 
27917
 
27918
xconfig.h:config.in)
27919
echo > stamp-h ;;
27920
esac
27921
 ;;
27922
27923 213 jeremybenn
 
27924 131 jeremybenn
done # for ac_tag
27925 213 jeremybenn
27926 131 jeremybenn
 
27927
 
27928
_ACEOF
27929
chmod +x $CONFIG_STATUS
27930
ac_clean_files=$ac_clean_files_save
27931
27932
 
27933 213 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27934
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27935
   { (exit 1); exit 1; }; }
27936
27937 131 jeremybenn
 
27938 213 jeremybenn
 
27939 131 jeremybenn
# config.status does its own redirection, appending to config.log.
27940
# Unfortunately, on DOS this fails, as config.log is still kept open
27941
# by configure, so config.status won't be able to write to it; its
27942
# output is simply discarded.  So we exec the FD to /dev/null,
27943
# effectively closing config.log, so it can be properly (re)opened and
27944
# appended to by config.status.  When coming back to configure, we
27945
# need to make the FD available again.
27946
if test "$no_create" != yes; then
27947
  ac_cs_success=:
27948
  ac_config_status_args=
27949
  test "$silent" = yes &&
27950
    ac_config_status_args="$ac_config_status_args --quiet"
27951
  exec 5>/dev/null
27952
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27953
  exec 5>>config.log
27954
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27955
  # would make configure fail if this is the last instruction.
27956
  $ac_cs_success || { (exit 1); exit 1; }
27957
fi
27958
27959
 
27960
# CONFIG_SUBDIRS section.
27961
#
27962
if test "$no_recursion" != yes; then
27963
27964
 
27965 213 jeremybenn
  # so they do not pile up.
27966
  ac_sub_configure_args=
27967 131 jeremybenn
  ac_prev=
27968
  eval "set x $ac_configure_args"
27969 213 jeremybenn
  shift
27970
  for ac_arg
27971
  do
27972
    if test -n "$ac_prev"; then
27973 131 jeremybenn
      ac_prev=
27974
      continue
27975
    fi
27976
    case $ac_arg in
27977
    -cache-file | --cache-file | --cache-fil | --cache-fi \
27978
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27979
      ac_prev=cache_file ;;
27980
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27981
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27982
    | --c=*)
27983
      ;;
27984
    --config-cache | -C)
27985
      ;;
27986
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27987
      ac_prev=srcdir ;;
27988
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27989
      ;;
27990
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27991
      ac_prev=prefix ;;
27992
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27993
      ;;
27994
    --disable-option-checking)
27995 213 jeremybenn
      ;;
27996
    *)
27997
      case $ac_arg in
27998
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27999
      esac
28000
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28001
    esac
28002 131 jeremybenn
  done
28003
28004
 
28005
  # in subdir configurations.
28006
  ac_arg="--prefix=$prefix"
28007 213 jeremybenn
  case $ac_arg in
28008
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28009
  esac
28010
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28011
28012 131 jeremybenn
 
28013 213 jeremybenn
  if test "$silent" = yes; then
28014
    ac_sub_configure_args="--silent $ac_sub_configure_args"
28015
  fi
28016
28017
 
28018
  # different subdirs can have different --enable and --with options.
28019
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28020
28021
 
28022 131 jeremybenn
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28023
28024
 
28025
    # parts of a large source tree are present.
28026
    test -d "$srcdir/$ac_dir" || continue
28027 213 jeremybenn
28028 131 jeremybenn
 
28029 213 jeremybenn
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
28030
    $as_echo "$ac_msg" >&6
28031
    { as_dir="$ac_dir"
28032
  case $as_dir in #(
28033
  -*) as_dir=./$as_dir;;
28034
  esac
28035
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28036
    as_dirs=
28037 131 jeremybenn
    while :; do
28038 213 jeremybenn
      case $as_dir in #(
28039
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28040
      *) as_qdir=$as_dir;;
28041
      esac
28042
      as_dirs="'$as_qdir' $as_dirs"
28043
      as_dir=`$as_dirname -- "$as_dir" ||
28044
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28045 131 jeremybenn
         X"$as_dir" : 'X\(//\)[^/]' \| \
28046
         X"$as_dir" : 'X\(//\)$' \| \
28047
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28048 213 jeremybenn
$as_echo X"$as_dir" |
28049
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28050
            s//\1/
28051
            q
28052
          }
28053
          /^X\(\/\/\)[^/].*/{
28054
            s//\1/
28055
            q
28056
          }
28057
          /^X\(\/\/\)$/{
28058
            s//\1/
28059
            q
28060
          }
28061
          /^X\(\/\).*/{
28062
            s//\1/
28063
            q
28064
          }
28065
          s/.*/./; q'`
28066
      test -d "$as_dir" && break
28067
    done
28068 131 jeremybenn
    test -z "$as_dirs" || eval "mkdir $as_dirs"
28069 213 jeremybenn
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28070
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28071
   { (exit 1); exit 1; }; }; }
28072 131 jeremybenn
    ac_builddir=.
28073
28074
 
28075 213 jeremybenn
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28076
*)
28077
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28078
  # A ".." for each directory in $ac_dir_suffix.
28079
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28080
  case $ac_top_builddir_sub in
28081
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28082
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28083
  esac ;;
28084
esac
28085
ac_abs_top_builddir=$ac_pwd
28086
ac_abs_builddir=$ac_pwd$ac_dir_suffix
28087
# for backward compatibility:
28088
ac_top_builddir=$ac_top_build_prefix
28089
28090 131 jeremybenn
 
28091
  .)  # We are building in place.
28092 213 jeremybenn
    ac_srcdir=.
28093 131 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
28094 213 jeremybenn
    ac_abs_top_srcdir=$ac_pwd ;;
28095
  [\\/]* | ?:[\\/]* )  # Absolute name.
28096
    ac_srcdir=$srcdir$ac_dir_suffix;
28097 131 jeremybenn
    ac_top_srcdir=$srcdir
28098 213 jeremybenn
    ac_abs_top_srcdir=$srcdir ;;
28099
  *) # Relative name.
28100
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28101
    ac_top_srcdir=$ac_top_build_prefix$srcdir
28102
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28103
esac
28104 131 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28105 213 jeremybenn
28106 131 jeremybenn
 
28107
 
28108 213 jeremybenn
28109 131 jeremybenn
 
28110
    if test -f "$ac_srcdir/configure.gnu"; then
28111 213 jeremybenn
      ac_sub_configure=$ac_srcdir/configure.gnu
28112
    elif test -f "$ac_srcdir/configure"; then
28113
      ac_sub_configure=$ac_srcdir/configure
28114
    elif test -f "$ac_srcdir/configure.in"; then
28115
      # This should be Cygnus configure.
28116
      ac_sub_configure=$ac_aux_dir/configure
28117
    else
28118 131 jeremybenn
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28119 213 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28120
      ac_sub_configure=
28121 131 jeremybenn
    fi
28122
28123
 
28124
    if test -n "$ac_sub_configure"; then
28125
      # Make the cache file name correct relative to the subdirectory.
28126
      case $cache_file in
28127
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28128
      *) # Relative name.
28129 213 jeremybenn
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28130
      esac
28131 131 jeremybenn
28132
 
28133 213 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28134
      # The eval makes quoting arguments work.
28135 131 jeremybenn
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28136 213 jeremybenn
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28137
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28138
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28139
   { (exit 1); exit 1; }; }
28140 131 jeremybenn
    fi
28141
28142
 
28143 213 jeremybenn
  done
28144 131 jeremybenn
fi
28145
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28146 213 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28147
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28148
fi
28149
28150 131 jeremybenn
 
28151
 
28152

powered by: WebSVN 2.1.0

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