~balkan/adeona/trunk

« back to all changes in this revision

Viewing changes to configure.bak

  • Committer: Vjekoslav Brajkovic
  • Date: 2009-02-17 02:24:59 UTC
  • Revision ID: vjeko@v.dyn.cs.washington.edu-20090217022459-0scqerw4j8oydzqs
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for ADEONA 0.2.
 
4
#
 
5
# Report bugs to <adeona@cs.washington.edu>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
exec 7<&0 </dev/null 6>&1
 
555
 
 
556
# Name of the host.
 
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
558
# so uname gets run too.
 
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
560
 
 
561
#
 
562
# Initializations.
 
563
#
 
564
ac_default_prefix=/usr/local
 
565
ac_clean_files=
 
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
 
568
cross_compiling=no
 
569
subdirs=
 
570
MFLAGS=
 
571
MAKEFLAGS=
 
572
SHELL=${CONFIG_SHELL-/bin/sh}
 
573
 
 
574
# Identity of this package.
 
575
PACKAGE_NAME='ADEONA'
 
576
PACKAGE_TARNAME='adeona'
 
577
PACKAGE_VERSION='0.2'
 
578
PACKAGE_STRING='ADEONA 0.2'
 
579
PACKAGE_BUGREPORT='adeona@cs.washington.edu'
 
580
 
 
581
ac_unique_file="app/init.c"
 
582
# Factoring default headers for most tests.
 
583
ac_includes_default="\
 
584
#include <stdio.h>
 
585
#ifdef HAVE_SYS_TYPES_H
 
586
# include <sys/types.h>
 
587
#endif
 
588
#ifdef HAVE_SYS_STAT_H
 
589
# include <sys/stat.h>
 
590
#endif
 
591
#ifdef STDC_HEADERS
 
592
# include <stdlib.h>
 
593
# include <stddef.h>
 
594
#else
 
595
# ifdef HAVE_STDLIB_H
 
596
#  include <stdlib.h>
 
597
# endif
 
598
#endif
 
599
#ifdef HAVE_STRING_H
 
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
601
#  include <memory.h>
 
602
# endif
 
603
# include <string.h>
 
604
#endif
 
605
#ifdef HAVE_STRINGS_H
 
606
# include <strings.h>
 
607
#endif
 
608
#ifdef HAVE_INTTYPES_H
 
609
# include <inttypes.h>
 
610
#endif
 
611
#ifdef HAVE_STDINT_H
 
612
# include <stdint.h>
 
613
#endif
 
614
#ifdef HAVE_UNISTD_H
 
615
# include <unistd.h>
 
616
#endif"
 
617
 
 
618
ac_header_list=
 
619
ac_func_list=
 
620
ac_subst_vars='SHELL
 
621
PATH_SEPARATOR
 
622
PACKAGE_NAME
 
623
PACKAGE_TARNAME
 
624
PACKAGE_VERSION
 
625
PACKAGE_STRING
 
626
PACKAGE_BUGREPORT
 
627
exec_prefix
 
628
prefix
 
629
program_transform_name
 
630
bindir
 
631
sbindir
 
632
libexecdir
 
633
datarootdir
 
634
datadir
 
635
sysconfdir
 
636
sharedstatedir
 
637
localstatedir
 
638
includedir
 
639
oldincludedir
 
640
docdir
 
641
infodir
 
642
htmldir
 
643
dvidir
 
644
pdfdir
 
645
psdir
 
646
libdir
 
647
localedir
 
648
mandir
 
649
DEFS
 
650
ECHO_C
 
651
ECHO_N
 
652
ECHO_T
 
653
LIBS
 
654
build_alias
 
655
host_alias
 
656
target_alias
 
657
CC
 
658
CFLAGS
 
659
LDFLAGS
 
660
CPPFLAGS
 
661
ac_ct_CC
 
662
EXEEXT
 
663
OBJEXT
 
664
prog_rpcgen
 
665
prog_crontab
 
666
CPP
 
667
GREP
 
668
EGREP
 
669
LIBOBJS
 
670
prog_traceroute
 
671
prog_iwconfig
 
672
LTLIBOBJS'
 
673
ac_subst_files=''
 
674
      ac_precious_vars='build_alias
 
675
host_alias
 
676
target_alias
 
677
CC
 
678
CFLAGS
 
679
LDFLAGS
 
680
LIBS
 
681
CPPFLAGS
 
682
CPP'
 
683
 
 
684
 
 
685
# Initialize some variables set by options.
 
686
ac_init_help=
 
687
ac_init_version=false
 
688
# The variables have the same names as the options, with
 
689
# dashes changed to underlines.
 
690
cache_file=/dev/null
 
691
exec_prefix=NONE
 
692
no_create=
 
693
no_recursion=
 
694
prefix=NONE
 
695
program_prefix=NONE
 
696
program_suffix=NONE
 
697
program_transform_name=s,x,x,
 
698
silent=
 
699
site=
 
700
srcdir=
 
701
verbose=
 
702
x_includes=NONE
 
703
x_libraries=NONE
 
704
 
 
705
# Installation directory options.
 
706
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
707
# and all the variables that are supposed to be based on exec_prefix
 
708
# by default will actually change.
 
709
# Use braces instead of parens because sh, perl, etc. also accept them.
 
710
# (The list follows the same order as the GNU Coding Standards.)
 
711
bindir='${exec_prefix}/bin'
 
712
sbindir='${exec_prefix}/sbin'
 
713
libexecdir='${exec_prefix}/libexec'
 
714
datarootdir='${prefix}/share'
 
715
datadir='${datarootdir}'
 
716
sysconfdir='${prefix}/etc'
 
717
sharedstatedir='${prefix}/com'
 
718
localstatedir='${prefix}/var'
 
719
includedir='${prefix}/include'
 
720
oldincludedir='/usr/include'
 
721
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
722
infodir='${datarootdir}/info'
 
723
htmldir='${docdir}'
 
724
dvidir='${docdir}'
 
725
pdfdir='${docdir}'
 
726
psdir='${docdir}'
 
727
libdir='${exec_prefix}/lib'
 
728
localedir='${datarootdir}/locale'
 
729
mandir='${datarootdir}/man'
 
730
 
 
731
ac_prev=
 
732
ac_dashdash=
 
733
for ac_option
 
734
do
 
735
  # If the previous option needs an argument, assign it.
 
736
  if test -n "$ac_prev"; then
 
737
    eval $ac_prev=\$ac_option
 
738
    ac_prev=
 
739
    continue
 
740
  fi
 
741
 
 
742
  case $ac_option in
 
743
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
744
  *)    ac_optarg=yes ;;
 
745
  esac
 
746
 
 
747
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
748
 
 
749
  case $ac_dashdash$ac_option in
 
750
  --)
 
751
    ac_dashdash=yes ;;
 
752
 
 
753
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
754
    ac_prev=bindir ;;
 
755
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
756
    bindir=$ac_optarg ;;
 
757
 
 
758
  -build | --build | --buil | --bui | --bu)
 
759
    ac_prev=build_alias ;;
 
760
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
761
    build_alias=$ac_optarg ;;
 
762
 
 
763
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
764
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
765
    ac_prev=cache_file ;;
 
766
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
767
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
768
    cache_file=$ac_optarg ;;
 
769
 
 
770
  --config-cache | -C)
 
771
    cache_file=config.cache ;;
 
772
 
 
773
  -datadir | --datadir | --datadi | --datad)
 
774
    ac_prev=datadir ;;
 
775
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
776
    datadir=$ac_optarg ;;
 
777
 
 
778
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
779
  | --dataroo | --dataro | --datar)
 
780
    ac_prev=datarootdir ;;
 
781
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
782
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
783
    datarootdir=$ac_optarg ;;
 
784
 
 
785
  -disable-* | --disable-*)
 
786
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
792
    eval enable_$ac_feature=no ;;
 
793
 
 
794
  -docdir | --docdir | --docdi | --doc | --do)
 
795
    ac_prev=docdir ;;
 
796
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
797
    docdir=$ac_optarg ;;
 
798
 
 
799
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
800
    ac_prev=dvidir ;;
 
801
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
802
    dvidir=$ac_optarg ;;
 
803
 
 
804
  -enable-* | --enable-*)
 
805
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
806
    # Reject names that are not valid shell variable names.
 
807
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
808
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
811
    eval enable_$ac_feature=\$ac_optarg ;;
 
812
 
 
813
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
814
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
815
  | --exec | --exe | --ex)
 
816
    ac_prev=exec_prefix ;;
 
817
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
818
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
819
  | --exec=* | --exe=* | --ex=*)
 
820
    exec_prefix=$ac_optarg ;;
 
821
 
 
822
  -gas | --gas | --ga | --g)
 
823
    # Obsolete; use --with-gas.
 
824
    with_gas=yes ;;
 
825
 
 
826
  -help | --help | --hel | --he | -h)
 
827
    ac_init_help=long ;;
 
828
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
829
    ac_init_help=recursive ;;
 
830
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
831
    ac_init_help=short ;;
 
832
 
 
833
  -host | --host | --hos | --ho)
 
834
    ac_prev=host_alias ;;
 
835
  -host=* | --host=* | --hos=* | --ho=*)
 
836
    host_alias=$ac_optarg ;;
 
837
 
 
838
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
839
    ac_prev=htmldir ;;
 
840
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
841
  | --ht=*)
 
842
    htmldir=$ac_optarg ;;
 
843
 
 
844
  -includedir | --includedir | --includedi | --included | --include \
 
845
  | --includ | --inclu | --incl | --inc)
 
846
    ac_prev=includedir ;;
 
847
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
848
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
849
    includedir=$ac_optarg ;;
 
850
 
 
851
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
852
    ac_prev=infodir ;;
 
853
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
854
    infodir=$ac_optarg ;;
 
855
 
 
856
  -libdir | --libdir | --libdi | --libd)
 
857
    ac_prev=libdir ;;
 
858
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
859
    libdir=$ac_optarg ;;
 
860
 
 
861
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
862
  | --libexe | --libex | --libe)
 
863
    ac_prev=libexecdir ;;
 
864
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
865
  | --libexe=* | --libex=* | --libe=*)
 
866
    libexecdir=$ac_optarg ;;
 
867
 
 
868
  -localedir | --localedir | --localedi | --localed | --locale)
 
869
    ac_prev=localedir ;;
 
870
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
871
    localedir=$ac_optarg ;;
 
872
 
 
873
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
874
  | --localstate | --localstat | --localsta | --localst | --locals)
 
875
    ac_prev=localstatedir ;;
 
876
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
877
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
878
    localstatedir=$ac_optarg ;;
 
879
 
 
880
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
881
    ac_prev=mandir ;;
 
882
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
883
    mandir=$ac_optarg ;;
 
884
 
 
885
  -nfp | --nfp | --nf)
 
886
    # Obsolete; use --without-fp.
 
887
    with_fp=no ;;
 
888
 
 
889
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
890
  | --no-cr | --no-c | -n)
 
891
    no_create=yes ;;
 
892
 
 
893
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
894
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
895
    no_recursion=yes ;;
 
896
 
 
897
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
898
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
899
  | --oldin | --oldi | --old | --ol | --o)
 
900
    ac_prev=oldincludedir ;;
 
901
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
902
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
903
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
904
    oldincludedir=$ac_optarg ;;
 
905
 
 
906
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
907
    ac_prev=prefix ;;
 
908
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
909
    prefix=$ac_optarg ;;
 
910
 
 
911
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
912
  | --program-pre | --program-pr | --program-p)
 
913
    ac_prev=program_prefix ;;
 
914
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
915
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
916
    program_prefix=$ac_optarg ;;
 
917
 
 
918
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
919
  | --program-suf | --program-su | --program-s)
 
920
    ac_prev=program_suffix ;;
 
921
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
922
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
923
    program_suffix=$ac_optarg ;;
 
924
 
 
925
  -program-transform-name | --program-transform-name \
 
926
  | --program-transform-nam | --program-transform-na \
 
927
  | --program-transform-n | --program-transform- \
 
928
  | --program-transform | --program-transfor \
 
929
  | --program-transfo | --program-transf \
 
930
  | --program-trans | --program-tran \
 
931
  | --progr-tra | --program-tr | --program-t)
 
932
    ac_prev=program_transform_name ;;
 
933
  -program-transform-name=* | --program-transform-name=* \
 
934
  | --program-transform-nam=* | --program-transform-na=* \
 
935
  | --program-transform-n=* | --program-transform-=* \
 
936
  | --program-transform=* | --program-transfor=* \
 
937
  | --program-transfo=* | --program-transf=* \
 
938
  | --program-trans=* | --program-tran=* \
 
939
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
940
    program_transform_name=$ac_optarg ;;
 
941
 
 
942
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
943
    ac_prev=pdfdir ;;
 
944
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
945
    pdfdir=$ac_optarg ;;
 
946
 
 
947
  -psdir | --psdir | --psdi | --psd | --ps)
 
948
    ac_prev=psdir ;;
 
949
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
950
    psdir=$ac_optarg ;;
 
951
 
 
952
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
953
  | -silent | --silent | --silen | --sile | --sil)
 
954
    silent=yes ;;
 
955
 
 
956
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
957
    ac_prev=sbindir ;;
 
958
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
959
  | --sbi=* | --sb=*)
 
960
    sbindir=$ac_optarg ;;
 
961
 
 
962
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
963
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
964
  | --sharedst | --shareds | --shared | --share | --shar \
 
965
  | --sha | --sh)
 
966
    ac_prev=sharedstatedir ;;
 
967
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
968
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
969
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
970
  | --sha=* | --sh=*)
 
971
    sharedstatedir=$ac_optarg ;;
 
972
 
 
973
  -site | --site | --sit)
 
974
    ac_prev=site ;;
 
975
  -site=* | --site=* | --sit=*)
 
976
    site=$ac_optarg ;;
 
977
 
 
978
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
979
    ac_prev=srcdir ;;
 
980
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
981
    srcdir=$ac_optarg ;;
 
982
 
 
983
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
984
  | --syscon | --sysco | --sysc | --sys | --sy)
 
985
    ac_prev=sysconfdir ;;
 
986
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
987
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
988
    sysconfdir=$ac_optarg ;;
 
989
 
 
990
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
991
    ac_prev=target_alias ;;
 
992
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
993
    target_alias=$ac_optarg ;;
 
994
 
 
995
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
996
    verbose=yes ;;
 
997
 
 
998
  -version | --version | --versio | --versi | --vers | -V)
 
999
    ac_init_version=: ;;
 
1000
 
 
1001
  -with-* | --with-*)
 
1002
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1003
    # Reject names that are not valid shell variable names.
 
1004
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1005
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1006
   { (exit 1); exit 1; }; }
 
1007
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1008
    eval with_$ac_package=\$ac_optarg ;;
 
1009
 
 
1010
  -without-* | --without-*)
 
1011
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1012
    # Reject names that are not valid shell variable names.
 
1013
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1014
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1015
   { (exit 1); exit 1; }; }
 
1016
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1017
    eval with_$ac_package=no ;;
 
1018
 
 
1019
  --x)
 
1020
    # Obsolete; use --with-x.
 
1021
    with_x=yes ;;
 
1022
 
 
1023
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1024
  | --x-incl | --x-inc | --x-in | --x-i)
 
1025
    ac_prev=x_includes ;;
 
1026
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1027
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1028
    x_includes=$ac_optarg ;;
 
1029
 
 
1030
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1031
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1032
    ac_prev=x_libraries ;;
 
1033
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1034
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1035
    x_libraries=$ac_optarg ;;
 
1036
 
 
1037
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1038
Try \`$0 --help' for more information." >&2
 
1039
   { (exit 1); exit 1; }; }
 
1040
    ;;
 
1041
 
 
1042
  *=*)
 
1043
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1044
    # Reject names that are not valid shell variable names.
 
1045
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1046
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1047
   { (exit 1); exit 1; }; }
 
1048
    eval $ac_envvar=\$ac_optarg
 
1049
    export $ac_envvar ;;
 
1050
 
 
1051
  *)
 
1052
    # FIXME: should be removed in autoconf 3.0.
 
1053
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1054
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1055
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1056
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1057
    ;;
 
1058
 
 
1059
  esac
 
1060
done
 
1061
 
 
1062
if test -n "$ac_prev"; then
 
1063
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1064
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1065
   { (exit 1); exit 1; }; }
 
1066
fi
 
1067
 
 
1068
# Be sure to have absolute directory names.
 
1069
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1070
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1071
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1072
                libdir localedir mandir
 
1073
do
 
1074
  eval ac_val=\$$ac_var
 
1075
  case $ac_val in
 
1076
    [\\/$]* | ?:[\\/]* )  continue;;
 
1077
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1078
  esac
 
1079
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1080
   { (exit 1); exit 1; }; }
 
1081
done
 
1082
 
 
1083
# There might be people who depend on the old broken behavior: `$host'
 
1084
# used to hold the argument of --host etc.
 
1085
# FIXME: To remove some day.
 
1086
build=$build_alias
 
1087
host=$host_alias
 
1088
target=$target_alias
 
1089
 
 
1090
# FIXME: To remove some day.
 
1091
if test "x$host_alias" != x; then
 
1092
  if test "x$build_alias" = x; then
 
1093
    cross_compiling=maybe
 
1094
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1095
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1096
  elif test "x$build_alias" != "x$host_alias"; then
 
1097
    cross_compiling=yes
 
1098
  fi
 
1099
fi
 
1100
 
 
1101
ac_tool_prefix=
 
1102
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1103
 
 
1104
test "$silent" = yes && exec 6>/dev/null
 
1105
 
 
1106
 
 
1107
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1108
ac_ls_di=`ls -di .` &&
 
1109
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1110
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1111
   { (exit 1); exit 1; }; }
 
1112
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1113
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1114
   { (exit 1); exit 1; }; }
 
1115
 
 
1116
 
 
1117
# Find the source files, if location was not specified.
 
1118
if test -z "$srcdir"; then
 
1119
  ac_srcdir_defaulted=yes
 
1120
  # Try the directory containing this script, then the parent directory.
 
1121
  ac_confdir=`$as_dirname -- "$0" ||
 
1122
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1123
         X"$0" : 'X\(//\)[^/]' \| \
 
1124
         X"$0" : 'X\(//\)$' \| \
 
1125
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1126
echo X"$0" |
 
1127
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1128
            s//\1/
 
1129
            q
 
1130
          }
 
1131
          /^X\(\/\/\)[^/].*/{
 
1132
            s//\1/
 
1133
            q
 
1134
          }
 
1135
          /^X\(\/\/\)$/{
 
1136
            s//\1/
 
1137
            q
 
1138
          }
 
1139
          /^X\(\/\).*/{
 
1140
            s//\1/
 
1141
            q
 
1142
          }
 
1143
          s/.*/./; q'`
 
1144
  srcdir=$ac_confdir
 
1145
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1146
    srcdir=..
 
1147
  fi
 
1148
else
 
1149
  ac_srcdir_defaulted=no
 
1150
fi
 
1151
if test ! -r "$srcdir/$ac_unique_file"; then
 
1152
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1153
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1154
   { (exit 1); exit 1; }; }
 
1155
fi
 
1156
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1157
ac_abs_confdir=`(
 
1158
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1159
   { (exit 1); exit 1; }; }
 
1160
        pwd)`
 
1161
# When building in place, set srcdir=.
 
1162
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1163
  srcdir=.
 
1164
fi
 
1165
# Remove unnecessary trailing slashes from srcdir.
 
1166
# Double slashes in file names in object file debugging info
 
1167
# mess up M-x gdb in Emacs.
 
1168
case $srcdir in
 
1169
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1170
esac
 
1171
for ac_var in $ac_precious_vars; do
 
1172
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1173
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1174
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1175
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1176
done
 
1177
 
 
1178
#
 
1179
# Report the --help message.
 
1180
#
 
1181
if test "$ac_init_help" = "long"; then
 
1182
  # Omit some internal or obsolete options to make the list less imposing.
 
1183
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1184
  cat <<_ACEOF
 
1185
\`configure' configures ADEONA 0.2 to adapt to many kinds of systems.
 
1186
 
 
1187
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1188
 
 
1189
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1190
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1191
 
 
1192
Defaults for the options are specified in brackets.
 
1193
 
 
1194
Configuration:
 
1195
  -h, --help              display this help and exit
 
1196
      --help=short        display options specific to this package
 
1197
      --help=recursive    display the short help of all the included packages
 
1198
  -V, --version           display version information and exit
 
1199
  -q, --quiet, --silent   do not print \`checking...' messages
 
1200
      --cache-file=FILE   cache test results in FILE [disabled]
 
1201
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1202
  -n, --no-create         do not create output files
 
1203
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1204
 
 
1205
Installation directories:
 
1206
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1207
                          [$ac_default_prefix]
 
1208
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1209
                          [PREFIX]
 
1210
 
 
1211
By default, \`make install' will install all the files in
 
1212
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1213
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1214
for instance \`--prefix=\$HOME'.
 
1215
 
 
1216
For better control, use the options below.
 
1217
 
 
1218
Fine tuning of the installation directories:
 
1219
  --bindir=DIR           user executables [EPREFIX/bin]
 
1220
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1221
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1222
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1223
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1224
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1225
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1226
  --includedir=DIR       C header files [PREFIX/include]
 
1227
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1228
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1229
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1230
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1231
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1232
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1233
  --docdir=DIR           documentation root [DATAROOTDIR/doc/adeona]
 
1234
  --htmldir=DIR          html documentation [DOCDIR]
 
1235
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1236
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1237
  --psdir=DIR            ps documentation [DOCDIR]
 
1238
_ACEOF
 
1239
 
 
1240
  cat <<\_ACEOF
 
1241
_ACEOF
 
1242
fi
 
1243
 
 
1244
if test -n "$ac_init_help"; then
 
1245
  case $ac_init_help in
 
1246
     short | recursive ) echo "Configuration of ADEONA 0.2:";;
 
1247
   esac
 
1248
  cat <<\_ACEOF
 
1249
 
 
1250
Some influential environment variables:
 
1251
  CC          C compiler command
 
1252
  CFLAGS      C compiler flags
 
1253
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1254
              nonstandard directory <lib dir>
 
1255
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1256
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1257
              you have headers in a nonstandard directory <include dir>
 
1258
  CPP         C preprocessor
 
1259
 
 
1260
Use these variables to override the choices made by `configure' or to help
 
1261
it to find libraries and programs with nonstandard names/locations.
 
1262
 
 
1263
Report bugs to <adeona@cs.washington.edu>.
 
1264
_ACEOF
 
1265
ac_status=$?
 
1266
fi
 
1267
 
 
1268
if test "$ac_init_help" = "recursive"; then
 
1269
  # If there are subdirs, report their specific --help.
 
1270
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1271
    test -d "$ac_dir" || continue
 
1272
    ac_builddir=.
 
1273
 
 
1274
case "$ac_dir" in
 
1275
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1276
*)
 
1277
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1278
  # A ".." for each directory in $ac_dir_suffix.
 
1279
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1280
  case $ac_top_builddir_sub in
 
1281
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1282
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1283
  esac ;;
 
1284
esac
 
1285
ac_abs_top_builddir=$ac_pwd
 
1286
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1287
# for backward compatibility:
 
1288
ac_top_builddir=$ac_top_build_prefix
 
1289
 
 
1290
case $srcdir in
 
1291
  .)  # We are building in place.
 
1292
    ac_srcdir=.
 
1293
    ac_top_srcdir=$ac_top_builddir_sub
 
1294
    ac_abs_top_srcdir=$ac_pwd ;;
 
1295
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1296
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1297
    ac_top_srcdir=$srcdir
 
1298
    ac_abs_top_srcdir=$srcdir ;;
 
1299
  *) # Relative name.
 
1300
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1301
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1302
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1303
esac
 
1304
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1305
 
 
1306
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1307
    # Check for guested configure.
 
1308
    if test -f "$ac_srcdir/configure.gnu"; then
 
1309
      echo &&
 
1310
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1311
    elif test -f "$ac_srcdir/configure"; then
 
1312
      echo &&
 
1313
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1314
    else
 
1315
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1316
    fi || ac_status=$?
 
1317
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1318
  done
 
1319
fi
 
1320
 
 
1321
test -n "$ac_init_help" && exit $ac_status
 
1322
if $ac_init_version; then
 
1323
  cat <<\_ACEOF
 
1324
ADEONA configure 0.2
 
1325
generated by GNU Autoconf 2.61
 
1326
 
 
1327
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1328
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1329
This configure script is free software; the Free Software Foundation
 
1330
gives unlimited permission to copy, distribute and modify it.
 
1331
_ACEOF
 
1332
  exit
 
1333
fi
 
1334
cat >config.log <<_ACEOF
 
1335
This file contains any messages produced by compilers while
 
1336
running configure, to aid debugging if configure makes a mistake.
 
1337
 
 
1338
It was created by ADEONA $as_me 0.2, which was
 
1339
generated by GNU Autoconf 2.61.  Invocation command line was
 
1340
 
 
1341
  $ $0 $@
 
1342
 
 
1343
_ACEOF
 
1344
exec 5>>config.log
 
1345
{
 
1346
cat <<_ASUNAME
 
1347
## --------- ##
 
1348
## Platform. ##
 
1349
## --------- ##
 
1350
 
 
1351
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1352
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1353
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1354
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1355
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1356
 
 
1357
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1358
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1359
 
 
1360
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1361
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1362
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1363
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1364
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1365
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1366
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1367
 
 
1368
_ASUNAME
 
1369
 
 
1370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1371
for as_dir in $PATH
 
1372
do
 
1373
  IFS=$as_save_IFS
 
1374
  test -z "$as_dir" && as_dir=.
 
1375
  echo "PATH: $as_dir"
 
1376
done
 
1377
IFS=$as_save_IFS
 
1378
 
 
1379
} >&5
 
1380
 
 
1381
cat >&5 <<_ACEOF
 
1382
 
 
1383
 
 
1384
## ----------- ##
 
1385
## Core tests. ##
 
1386
## ----------- ##
 
1387
 
 
1388
_ACEOF
 
1389
 
 
1390
 
 
1391
# Keep a trace of the command line.
 
1392
# Strip out --no-create and --no-recursion so they do not pile up.
 
1393
# Strip out --silent because we don't want to record it for future runs.
 
1394
# Also quote any args containing shell meta-characters.
 
1395
# Make two passes to allow for proper duplicate-argument suppression.
 
1396
ac_configure_args=
 
1397
ac_configure_args0=
 
1398
ac_configure_args1=
 
1399
ac_must_keep_next=false
 
1400
for ac_pass in 1 2
 
1401
do
 
1402
  for ac_arg
 
1403
  do
 
1404
    case $ac_arg in
 
1405
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1406
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1407
    | -silent | --silent | --silen | --sile | --sil)
 
1408
      continue ;;
 
1409
    *\'*)
 
1410
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1411
    esac
 
1412
    case $ac_pass in
 
1413
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1414
    2)
 
1415
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1416
      if test $ac_must_keep_next = true; then
 
1417
        ac_must_keep_next=false # Got value, back to normal.
 
1418
      else
 
1419
        case $ac_arg in
 
1420
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1421
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1422
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1423
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1424
            case "$ac_configure_args0 " in
 
1425
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1426
            esac
 
1427
            ;;
 
1428
          -* ) ac_must_keep_next=true ;;
 
1429
        esac
 
1430
      fi
 
1431
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1432
      ;;
 
1433
    esac
 
1434
  done
 
1435
done
 
1436
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1437
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1438
 
 
1439
# When interrupted or exit'd, cleanup temporary files, and complete
 
1440
# config.log.  We remove comments because anyway the quotes in there
 
1441
# would cause problems or look ugly.
 
1442
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1443
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1444
trap 'exit_status=$?
 
1445
  # Save into config.log some information that might help in debugging.
 
1446
  {
 
1447
    echo
 
1448
 
 
1449
    cat <<\_ASBOX
 
1450
## ---------------- ##
 
1451
## Cache variables. ##
 
1452
## ---------------- ##
 
1453
_ASBOX
 
1454
    echo
 
1455
    # The following way of writing the cache mishandles newlines in values,
 
1456
(
 
1457
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1458
    eval ac_val=\$$ac_var
 
1459
    case $ac_val in #(
 
1460
    *${as_nl}*)
 
1461
      case $ac_var in #(
 
1462
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1463
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1464
      esac
 
1465
      case $ac_var in #(
 
1466
      _ | IFS | as_nl) ;; #(
 
1467
      *) $as_unset $ac_var ;;
 
1468
      esac ;;
 
1469
    esac
 
1470
  done
 
1471
  (set) 2>&1 |
 
1472
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1473
    *${as_nl}ac_space=\ *)
 
1474
      sed -n \
 
1475
        "s/'\''/'\''\\\\'\'''\''/g;
 
1476
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1477
      ;; #(
 
1478
    *)
 
1479
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1480
      ;;
 
1481
    esac |
 
1482
    sort
 
1483
)
 
1484
    echo
 
1485
 
 
1486
    cat <<\_ASBOX
 
1487
## ----------------- ##
 
1488
## Output variables. ##
 
1489
## ----------------- ##
 
1490
_ASBOX
 
1491
    echo
 
1492
    for ac_var in $ac_subst_vars
 
1493
    do
 
1494
      eval ac_val=\$$ac_var
 
1495
      case $ac_val in
 
1496
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1497
      esac
 
1498
      echo "$ac_var='\''$ac_val'\''"
 
1499
    done | sort
 
1500
    echo
 
1501
 
 
1502
    if test -n "$ac_subst_files"; then
 
1503
      cat <<\_ASBOX
 
1504
## ------------------- ##
 
1505
## File substitutions. ##
 
1506
## ------------------- ##
 
1507
_ASBOX
 
1508
      echo
 
1509
      for ac_var in $ac_subst_files
 
1510
      do
 
1511
        eval ac_val=\$$ac_var
 
1512
        case $ac_val in
 
1513
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1514
        esac
 
1515
        echo "$ac_var='\''$ac_val'\''"
 
1516
      done | sort
 
1517
      echo
 
1518
    fi
 
1519
 
 
1520
    if test -s confdefs.h; then
 
1521
      cat <<\_ASBOX
 
1522
## ----------- ##
 
1523
## confdefs.h. ##
 
1524
## ----------- ##
 
1525
_ASBOX
 
1526
      echo
 
1527
      cat confdefs.h
 
1528
      echo
 
1529
    fi
 
1530
    test "$ac_signal" != 0 &&
 
1531
      echo "$as_me: caught signal $ac_signal"
 
1532
    echo "$as_me: exit $exit_status"
 
1533
  } >&5
 
1534
  rm -f core *.core core.conftest.* &&
 
1535
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1536
    exit $exit_status
 
1537
' 0
 
1538
for ac_signal in 1 2 13 15; do
 
1539
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1540
done
 
1541
ac_signal=0
 
1542
 
 
1543
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1544
rm -f -r conftest* confdefs.h
 
1545
 
 
1546
# Predefined preprocessor variables.
 
1547
 
 
1548
cat >>confdefs.h <<_ACEOF
 
1549
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1550
_ACEOF
 
1551
 
 
1552
 
 
1553
cat >>confdefs.h <<_ACEOF
 
1554
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1555
_ACEOF
 
1556
 
 
1557
 
 
1558
cat >>confdefs.h <<_ACEOF
 
1559
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1560
_ACEOF
 
1561
 
 
1562
 
 
1563
cat >>confdefs.h <<_ACEOF
 
1564
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1565
_ACEOF
 
1566
 
 
1567
 
 
1568
cat >>confdefs.h <<_ACEOF
 
1569
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1570
_ACEOF
 
1571
 
 
1572
 
 
1573
# Let the site file select an alternate cache file if it wants to.
 
1574
# Prefer explicitly selected file to automatically selected ones.
 
1575
if test -n "$CONFIG_SITE"; then
 
1576
  set x "$CONFIG_SITE"
 
1577
elif test "x$prefix" != xNONE; then
 
1578
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1579
else
 
1580
  set x "$ac_default_prefix/share/config.site" \
 
1581
        "$ac_default_prefix/etc/config.site"
 
1582
fi
 
1583
shift
 
1584
for ac_site_file
 
1585
do
 
1586
  if test -r "$ac_site_file"; then
 
1587
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1588
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1589
    sed 's/^/| /' "$ac_site_file" >&5
 
1590
    . "$ac_site_file"
 
1591
  fi
 
1592
done
 
1593
 
 
1594
if test -r "$cache_file"; then
 
1595
  # Some versions of bash will fail to source /dev/null (special
 
1596
  # files actually), so we avoid doing that.
 
1597
  if test -f "$cache_file"; then
 
1598
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1599
echo "$as_me: loading cache $cache_file" >&6;}
 
1600
    case $cache_file in
 
1601
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1602
      *)                      . "./$cache_file";;
 
1603
    esac
 
1604
  fi
 
1605
else
 
1606
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1607
echo "$as_me: creating cache $cache_file" >&6;}
 
1608
  >$cache_file
 
1609
fi
 
1610
 
 
1611
ac_header_list="$ac_header_list sys/time.h"
 
1612
ac_header_list="$ac_header_list unistd.h"
 
1613
ac_func_list="$ac_func_list alarm"
 
1614
# Check that the precious variables saved in the cache have kept the same
 
1615
# value.
 
1616
ac_cache_corrupted=false
 
1617
for ac_var in $ac_precious_vars; do
 
1618
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1619
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1620
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1621
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1622
  case $ac_old_set,$ac_new_set in
 
1623
    set,)
 
1624
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1625
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1626
      ac_cache_corrupted=: ;;
 
1627
    ,set)
 
1628
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1629
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1630
      ac_cache_corrupted=: ;;
 
1631
    ,);;
 
1632
    *)
 
1633
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1634
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1635
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1636
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1637
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1638
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1639
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1640
        ac_cache_corrupted=:
 
1641
      fi;;
 
1642
  esac
 
1643
  # Pass precious variables to config.status.
 
1644
  if test "$ac_new_set" = set; then
 
1645
    case $ac_new_val in
 
1646
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1647
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1648
    esac
 
1649
    case " $ac_configure_args " in
 
1650
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1651
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1652
    esac
 
1653
  fi
 
1654
done
 
1655
if $ac_cache_corrupted; then
 
1656
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1657
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1658
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1659
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1660
   { (exit 1); exit 1; }; }
 
1661
fi
 
1662
 
 
1663
 
 
1664
 
 
1665
 
 
1666
 
 
1667
 
 
1668
 
 
1669
 
 
1670
 
 
1671
 
 
1672
 
 
1673
 
 
1674
 
 
1675
 
 
1676
 
 
1677
 
 
1678
 
 
1679
 
 
1680
 
 
1681
 
 
1682
 
 
1683
 
 
1684
 
 
1685
 
 
1686
 
 
1687
ac_ext=c
 
1688
ac_cpp='$CPP $CPPFLAGS'
 
1689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1692
 
 
1693
 
 
1694
 
 
1695
ac_config_headers="$ac_config_headers config.h"
 
1696
 
 
1697
 
 
1698
# Checks for programs.
 
1699
ac_ext=c
 
1700
ac_cpp='$CPP $CPPFLAGS'
 
1701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1704
if test -n "$ac_tool_prefix"; then
 
1705
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1706
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1709
if test "${ac_cv_prog_CC+set}" = set; then
 
1710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1711
else
 
1712
  if test -n "$CC"; then
 
1713
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1714
else
 
1715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1716
for as_dir in $PATH
 
1717
do
 
1718
  IFS=$as_save_IFS
 
1719
  test -z "$as_dir" && as_dir=.
 
1720
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1722
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1724
    break 2
 
1725
  fi
 
1726
done
 
1727
done
 
1728
IFS=$as_save_IFS
 
1729
 
 
1730
fi
 
1731
fi
 
1732
CC=$ac_cv_prog_CC
 
1733
if test -n "$CC"; then
 
1734
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1735
echo "${ECHO_T}$CC" >&6; }
 
1736
else
 
1737
  { echo "$as_me:$LINENO: result: no" >&5
 
1738
echo "${ECHO_T}no" >&6; }
 
1739
fi
 
1740
 
 
1741
 
 
1742
fi
 
1743
if test -z "$ac_cv_prog_CC"; then
 
1744
  ac_ct_CC=$CC
 
1745
  # Extract the first word of "gcc", so it can be a program name with args.
 
1746
set dummy gcc; ac_word=$2
 
1747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1749
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1751
else
 
1752
  if test -n "$ac_ct_CC"; then
 
1753
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1754
else
 
1755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1756
for as_dir in $PATH
 
1757
do
 
1758
  IFS=$as_save_IFS
 
1759
  test -z "$as_dir" && as_dir=.
 
1760
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1762
    ac_cv_prog_ac_ct_CC="gcc"
 
1763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1764
    break 2
 
1765
  fi
 
1766
done
 
1767
done
 
1768
IFS=$as_save_IFS
 
1769
 
 
1770
fi
 
1771
fi
 
1772
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1773
if test -n "$ac_ct_CC"; then
 
1774
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1775
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
1776
else
 
1777
  { echo "$as_me:$LINENO: result: no" >&5
 
1778
echo "${ECHO_T}no" >&6; }
 
1779
fi
 
1780
 
 
1781
  if test "x$ac_ct_CC" = x; then
 
1782
    CC=""
 
1783
  else
 
1784
    case $cross_compiling:$ac_tool_warned in
 
1785
yes:)
 
1786
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1787
whose name does not start with the host triplet.  If you think this
 
1788
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1789
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1790
whose name does not start with the host triplet.  If you think this
 
1791
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1792
ac_tool_warned=yes ;;
 
1793
esac
 
1794
    CC=$ac_ct_CC
 
1795
  fi
 
1796
else
 
1797
  CC="$ac_cv_prog_CC"
 
1798
fi
 
1799
 
 
1800
if test -z "$CC"; then
 
1801
          if test -n "$ac_tool_prefix"; then
 
1802
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1803
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1806
if test "${ac_cv_prog_CC+set}" = set; then
 
1807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1808
else
 
1809
  if test -n "$CC"; then
 
1810
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1811
else
 
1812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1813
for as_dir in $PATH
 
1814
do
 
1815
  IFS=$as_save_IFS
 
1816
  test -z "$as_dir" && as_dir=.
 
1817
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1819
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1820
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1821
    break 2
 
1822
  fi
 
1823
done
 
1824
done
 
1825
IFS=$as_save_IFS
 
1826
 
 
1827
fi
 
1828
fi
 
1829
CC=$ac_cv_prog_CC
 
1830
if test -n "$CC"; then
 
1831
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1832
echo "${ECHO_T}$CC" >&6; }
 
1833
else
 
1834
  { echo "$as_me:$LINENO: result: no" >&5
 
1835
echo "${ECHO_T}no" >&6; }
 
1836
fi
 
1837
 
 
1838
 
 
1839
  fi
 
1840
fi
 
1841
if test -z "$CC"; then
 
1842
  # Extract the first word of "cc", so it can be a program name with args.
 
1843
set dummy cc; ac_word=$2
 
1844
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1846
if test "${ac_cv_prog_CC+set}" = set; then
 
1847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1848
else
 
1849
  if test -n "$CC"; then
 
1850
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1851
else
 
1852
  ac_prog_rejected=no
 
1853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1854
for as_dir in $PATH
 
1855
do
 
1856
  IFS=$as_save_IFS
 
1857
  test -z "$as_dir" && as_dir=.
 
1858
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1859
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1860
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1861
       ac_prog_rejected=yes
 
1862
       continue
 
1863
     fi
 
1864
    ac_cv_prog_CC="cc"
 
1865
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1866
    break 2
 
1867
  fi
 
1868
done
 
1869
done
 
1870
IFS=$as_save_IFS
 
1871
 
 
1872
if test $ac_prog_rejected = yes; then
 
1873
  # We found a bogon in the path, so make sure we never use it.
 
1874
  set dummy $ac_cv_prog_CC
 
1875
  shift
 
1876
  if test $# != 0; then
 
1877
    # We chose a different compiler from the bogus one.
 
1878
    # However, it has the same basename, so the bogon will be chosen
 
1879
    # first if we set CC to just the basename; use the full file name.
 
1880
    shift
 
1881
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1882
  fi
 
1883
fi
 
1884
fi
 
1885
fi
 
1886
CC=$ac_cv_prog_CC
 
1887
if test -n "$CC"; then
 
1888
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1889
echo "${ECHO_T}$CC" >&6; }
 
1890
else
 
1891
  { echo "$as_me:$LINENO: result: no" >&5
 
1892
echo "${ECHO_T}no" >&6; }
 
1893
fi
 
1894
 
 
1895
 
 
1896
fi
 
1897
if test -z "$CC"; then
 
1898
  if test -n "$ac_tool_prefix"; then
 
1899
  for ac_prog in cl.exe
 
1900
  do
 
1901
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1902
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1905
if test "${ac_cv_prog_CC+set}" = set; then
 
1906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1907
else
 
1908
  if test -n "$CC"; then
 
1909
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1910
else
 
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1912
for as_dir in $PATH
 
1913
do
 
1914
  IFS=$as_save_IFS
 
1915
  test -z "$as_dir" && as_dir=.
 
1916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1918
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1920
    break 2
 
1921
  fi
 
1922
done
 
1923
done
 
1924
IFS=$as_save_IFS
 
1925
 
 
1926
fi
 
1927
fi
 
1928
CC=$ac_cv_prog_CC
 
1929
if test -n "$CC"; then
 
1930
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1931
echo "${ECHO_T}$CC" >&6; }
 
1932
else
 
1933
  { echo "$as_me:$LINENO: result: no" >&5
 
1934
echo "${ECHO_T}no" >&6; }
 
1935
fi
 
1936
 
 
1937
 
 
1938
    test -n "$CC" && break
 
1939
  done
 
1940
fi
 
1941
if test -z "$CC"; then
 
1942
  ac_ct_CC=$CC
 
1943
  for ac_prog in cl.exe
 
1944
do
 
1945
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1946
set dummy $ac_prog; ac_word=$2
 
1947
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1949
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1951
else
 
1952
  if test -n "$ac_ct_CC"; then
 
1953
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1954
else
 
1955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1956
for as_dir in $PATH
 
1957
do
 
1958
  IFS=$as_save_IFS
 
1959
  test -z "$as_dir" && as_dir=.
 
1960
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1961
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1962
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1963
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1964
    break 2
 
1965
  fi
 
1966
done
 
1967
done
 
1968
IFS=$as_save_IFS
 
1969
 
 
1970
fi
 
1971
fi
 
1972
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1973
if test -n "$ac_ct_CC"; then
 
1974
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1975
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
1976
else
 
1977
  { echo "$as_me:$LINENO: result: no" >&5
 
1978
echo "${ECHO_T}no" >&6; }
 
1979
fi
 
1980
 
 
1981
 
 
1982
  test -n "$ac_ct_CC" && break
 
1983
done
 
1984
 
 
1985
  if test "x$ac_ct_CC" = x; then
 
1986
    CC=""
 
1987
  else
 
1988
    case $cross_compiling:$ac_tool_warned in
 
1989
yes:)
 
1990
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1991
whose name does not start with the host triplet.  If you think this
 
1992
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1993
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1994
whose name does not start with the host triplet.  If you think this
 
1995
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1996
ac_tool_warned=yes ;;
 
1997
esac
 
1998
    CC=$ac_ct_CC
 
1999
  fi
 
2000
fi
 
2001
 
 
2002
fi
 
2003
 
 
2004
 
 
2005
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2006
See \`config.log' for more details." >&5
 
2007
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2008
See \`config.log' for more details." >&2;}
 
2009
   { (exit 1); exit 1; }; }
 
2010
 
 
2011
# Provide some information about the compiler.
 
2012
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2013
ac_compiler=`set X $ac_compile; echo $2`
 
2014
{ (ac_try="$ac_compiler --version >&5"
 
2015
case "(($ac_try" in
 
2016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2017
  *) ac_try_echo=$ac_try;;
 
2018
esac
 
2019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2020
  (eval "$ac_compiler --version >&5") 2>&5
 
2021
  ac_status=$?
 
2022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2023
  (exit $ac_status); }
 
2024
{ (ac_try="$ac_compiler -v >&5"
 
2025
case "(($ac_try" in
 
2026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2027
  *) ac_try_echo=$ac_try;;
 
2028
esac
 
2029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2030
  (eval "$ac_compiler -v >&5") 2>&5
 
2031
  ac_status=$?
 
2032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2033
  (exit $ac_status); }
 
2034
{ (ac_try="$ac_compiler -V >&5"
 
2035
case "(($ac_try" in
 
2036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2037
  *) ac_try_echo=$ac_try;;
 
2038
esac
 
2039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2040
  (eval "$ac_compiler -V >&5") 2>&5
 
2041
  ac_status=$?
 
2042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2043
  (exit $ac_status); }
 
2044
 
 
2045
cat >conftest.$ac_ext <<_ACEOF
 
2046
/* confdefs.h.  */
 
2047
_ACEOF
 
2048
cat confdefs.h >>conftest.$ac_ext
 
2049
cat >>conftest.$ac_ext <<_ACEOF
 
2050
/* end confdefs.h.  */
 
2051
 
 
2052
int
 
2053
main ()
 
2054
{
 
2055
 
 
2056
  ;
 
2057
  return 0;
 
2058
}
 
2059
_ACEOF
 
2060
ac_clean_files_save=$ac_clean_files
 
2061
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2062
# Try to create an executable without -o first, disregard a.out.
 
2063
# It will help us diagnose broken compilers, and finding out an intuition
 
2064
# of exeext.
 
2065
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2066
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2067
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2068
#
 
2069
# List of possible output files, starting from the most likely.
 
2070
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2071
# only as a last resort.  b.out is created by i960 compilers.
 
2072
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2073
#
 
2074
# The IRIX 6 linker writes into existing files which may not be
 
2075
# executable, retaining their permissions.  Remove them first so a
 
2076
# subsequent execution test works.
 
2077
ac_rmfiles=
 
2078
for ac_file in $ac_files
 
2079
do
 
2080
  case $ac_file in
 
2081
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2082
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2083
  esac
 
2084
done
 
2085
rm -f $ac_rmfiles
 
2086
 
 
2087
if { (ac_try="$ac_link_default"
 
2088
case "(($ac_try" in
 
2089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2090
  *) ac_try_echo=$ac_try;;
 
2091
esac
 
2092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2093
  (eval "$ac_link_default") 2>&5
 
2094
  ac_status=$?
 
2095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2096
  (exit $ac_status); }; then
 
2097
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2098
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2099
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2100
# so that the user can short-circuit this test for compilers unknown to
 
2101
# Autoconf.
 
2102
for ac_file in $ac_files ''
 
2103
do
 
2104
  test -f "$ac_file" || continue
 
2105
  case $ac_file in
 
2106
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2107
        ;;
 
2108
    [ab].out )
 
2109
        # We found the default executable, but exeext='' is most
 
2110
        # certainly right.
 
2111
        break;;
 
2112
    *.* )
 
2113
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2114
        then :; else
 
2115
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2116
        fi
 
2117
        # We set ac_cv_exeext here because the later test for it is not
 
2118
        # safe: cross compilers may not add the suffix if given an `-o'
 
2119
        # argument, so we may need to know it at that point already.
 
2120
        # Even if this section looks crufty: it has the advantage of
 
2121
        # actually working.
 
2122
        break;;
 
2123
    * )
 
2124
        break;;
 
2125
  esac
 
2126
done
 
2127
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2128
 
 
2129
else
 
2130
  ac_file=''
 
2131
fi
 
2132
 
 
2133
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2134
echo "${ECHO_T}$ac_file" >&6; }
 
2135
if test -z "$ac_file"; then
 
2136
  echo "$as_me: failed program was:" >&5
 
2137
sed 's/^/| /' conftest.$ac_ext >&5
 
2138
 
 
2139
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2140
See \`config.log' for more details." >&5
 
2141
echo "$as_me: error: C compiler cannot create executables
 
2142
See \`config.log' for more details." >&2;}
 
2143
   { (exit 77); exit 77; }; }
 
2144
fi
 
2145
 
 
2146
ac_exeext=$ac_cv_exeext
 
2147
 
 
2148
# Check that the compiler produces executables we can run.  If not, either
 
2149
# the compiler is broken, or we cross compile.
 
2150
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2151
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2152
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2153
# If not cross compiling, check that we can run a simple program.
 
2154
if test "$cross_compiling" != yes; then
 
2155
  if { ac_try='./$ac_file'
 
2156
  { (case "(($ac_try" in
 
2157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2158
  *) ac_try_echo=$ac_try;;
 
2159
esac
 
2160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2161
  (eval "$ac_try") 2>&5
 
2162
  ac_status=$?
 
2163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2164
  (exit $ac_status); }; }; then
 
2165
    cross_compiling=no
 
2166
  else
 
2167
    if test "$cross_compiling" = maybe; then
 
2168
        cross_compiling=yes
 
2169
    else
 
2170
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2171
If you meant to cross compile, use \`--host'.
 
2172
See \`config.log' for more details." >&5
 
2173
echo "$as_me: error: cannot run C compiled programs.
 
2174
If you meant to cross compile, use \`--host'.
 
2175
See \`config.log' for more details." >&2;}
 
2176
   { (exit 1); exit 1; }; }
 
2177
    fi
 
2178
  fi
 
2179
fi
 
2180
{ echo "$as_me:$LINENO: result: yes" >&5
 
2181
echo "${ECHO_T}yes" >&6; }
 
2182
 
 
2183
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2184
ac_clean_files=$ac_clean_files_save
 
2185
# Check that the compiler produces executables we can run.  If not, either
 
2186
# the compiler is broken, or we cross compile.
 
2187
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2188
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2189
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2190
echo "${ECHO_T}$cross_compiling" >&6; }
 
2191
 
 
2192
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2193
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2194
if { (ac_try="$ac_link"
 
2195
case "(($ac_try" in
 
2196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2197
  *) ac_try_echo=$ac_try;;
 
2198
esac
 
2199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2200
  (eval "$ac_link") 2>&5
 
2201
  ac_status=$?
 
2202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2203
  (exit $ac_status); }; then
 
2204
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2205
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2206
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2207
# `rm'.
 
2208
for ac_file in conftest.exe conftest conftest.*; do
 
2209
  test -f "$ac_file" || continue
 
2210
  case $ac_file in
 
2211
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2212
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2213
          break;;
 
2214
    * ) break;;
 
2215
  esac
 
2216
done
 
2217
else
 
2218
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2219
See \`config.log' for more details." >&5
 
2220
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2221
See \`config.log' for more details." >&2;}
 
2222
   { (exit 1); exit 1; }; }
 
2223
fi
 
2224
 
 
2225
rm -f conftest$ac_cv_exeext
 
2226
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2227
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2228
 
 
2229
rm -f conftest.$ac_ext
 
2230
EXEEXT=$ac_cv_exeext
 
2231
ac_exeext=$EXEEXT
 
2232
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2233
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2234
if test "${ac_cv_objext+set}" = set; then
 
2235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2236
else
 
2237
  cat >conftest.$ac_ext <<_ACEOF
 
2238
/* confdefs.h.  */
 
2239
_ACEOF
 
2240
cat confdefs.h >>conftest.$ac_ext
 
2241
cat >>conftest.$ac_ext <<_ACEOF
 
2242
/* end confdefs.h.  */
 
2243
 
 
2244
int
 
2245
main ()
 
2246
{
 
2247
 
 
2248
  ;
 
2249
  return 0;
 
2250
}
 
2251
_ACEOF
 
2252
rm -f conftest.o conftest.obj
 
2253
if { (ac_try="$ac_compile"
 
2254
case "(($ac_try" in
 
2255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2256
  *) ac_try_echo=$ac_try;;
 
2257
esac
 
2258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2259
  (eval "$ac_compile") 2>&5
 
2260
  ac_status=$?
 
2261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2262
  (exit $ac_status); }; then
 
2263
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2264
  test -f "$ac_file" || continue;
 
2265
  case $ac_file in
 
2266
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2267
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2268
       break;;
 
2269
  esac
 
2270
done
 
2271
else
 
2272
  echo "$as_me: failed program was:" >&5
 
2273
sed 's/^/| /' conftest.$ac_ext >&5
 
2274
 
 
2275
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2276
See \`config.log' for more details." >&5
 
2277
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2278
See \`config.log' for more details." >&2;}
 
2279
   { (exit 1); exit 1; }; }
 
2280
fi
 
2281
 
 
2282
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2283
fi
 
2284
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2285
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2286
OBJEXT=$ac_cv_objext
 
2287
ac_objext=$OBJEXT
 
2288
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2289
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2290
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2292
else
 
2293
  cat >conftest.$ac_ext <<_ACEOF
 
2294
/* confdefs.h.  */
 
2295
_ACEOF
 
2296
cat confdefs.h >>conftest.$ac_ext
 
2297
cat >>conftest.$ac_ext <<_ACEOF
 
2298
/* end confdefs.h.  */
 
2299
 
 
2300
int
 
2301
main ()
 
2302
{
 
2303
#ifndef __GNUC__
 
2304
       choke me
 
2305
#endif
 
2306
 
 
2307
  ;
 
2308
  return 0;
 
2309
}
 
2310
_ACEOF
 
2311
rm -f conftest.$ac_objext
 
2312
if { (ac_try="$ac_compile"
 
2313
case "(($ac_try" in
 
2314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2315
  *) ac_try_echo=$ac_try;;
 
2316
esac
 
2317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2318
  (eval "$ac_compile") 2>conftest.er1
 
2319
  ac_status=$?
 
2320
  grep -v '^ *+' conftest.er1 >conftest.err
 
2321
  rm -f conftest.er1
 
2322
  cat conftest.err >&5
 
2323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2324
  (exit $ac_status); } && {
 
2325
         test -z "$ac_c_werror_flag" ||
 
2326
         test ! -s conftest.err
 
2327
       } && test -s conftest.$ac_objext; then
 
2328
  ac_compiler_gnu=yes
 
2329
else
 
2330
  echo "$as_me: failed program was:" >&5
 
2331
sed 's/^/| /' conftest.$ac_ext >&5
 
2332
 
 
2333
        ac_compiler_gnu=no
 
2334
fi
 
2335
 
 
2336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2337
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2338
 
 
2339
fi
 
2340
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2341
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2342
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2343
ac_test_CFLAGS=${CFLAGS+set}
 
2344
ac_save_CFLAGS=$CFLAGS
 
2345
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2346
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2347
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2349
else
 
2350
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2351
   ac_c_werror_flag=yes
 
2352
   ac_cv_prog_cc_g=no
 
2353
   CFLAGS="-g"
 
2354
   cat >conftest.$ac_ext <<_ACEOF
 
2355
/* confdefs.h.  */
 
2356
_ACEOF
 
2357
cat confdefs.h >>conftest.$ac_ext
 
2358
cat >>conftest.$ac_ext <<_ACEOF
 
2359
/* end confdefs.h.  */
 
2360
 
 
2361
int
 
2362
main ()
 
2363
{
 
2364
 
 
2365
  ;
 
2366
  return 0;
 
2367
}
 
2368
_ACEOF
 
2369
rm -f conftest.$ac_objext
 
2370
if { (ac_try="$ac_compile"
 
2371
case "(($ac_try" in
 
2372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2373
  *) ac_try_echo=$ac_try;;
 
2374
esac
 
2375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2376
  (eval "$ac_compile") 2>conftest.er1
 
2377
  ac_status=$?
 
2378
  grep -v '^ *+' conftest.er1 >conftest.err
 
2379
  rm -f conftest.er1
 
2380
  cat conftest.err >&5
 
2381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2382
  (exit $ac_status); } && {
 
2383
         test -z "$ac_c_werror_flag" ||
 
2384
         test ! -s conftest.err
 
2385
       } && test -s conftest.$ac_objext; then
 
2386
  ac_cv_prog_cc_g=yes
 
2387
else
 
2388
  echo "$as_me: failed program was:" >&5
 
2389
sed 's/^/| /' conftest.$ac_ext >&5
 
2390
 
 
2391
        CFLAGS=""
 
2392
      cat >conftest.$ac_ext <<_ACEOF
 
2393
/* confdefs.h.  */
 
2394
_ACEOF
 
2395
cat confdefs.h >>conftest.$ac_ext
 
2396
cat >>conftest.$ac_ext <<_ACEOF
 
2397
/* end confdefs.h.  */
 
2398
 
 
2399
int
 
2400
main ()
 
2401
{
 
2402
 
 
2403
  ;
 
2404
  return 0;
 
2405
}
 
2406
_ACEOF
 
2407
rm -f conftest.$ac_objext
 
2408
if { (ac_try="$ac_compile"
 
2409
case "(($ac_try" in
 
2410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2411
  *) ac_try_echo=$ac_try;;
 
2412
esac
 
2413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2414
  (eval "$ac_compile") 2>conftest.er1
 
2415
  ac_status=$?
 
2416
  grep -v '^ *+' conftest.er1 >conftest.err
 
2417
  rm -f conftest.er1
 
2418
  cat conftest.err >&5
 
2419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2420
  (exit $ac_status); } && {
 
2421
         test -z "$ac_c_werror_flag" ||
 
2422
         test ! -s conftest.err
 
2423
       } && test -s conftest.$ac_objext; then
 
2424
  :
 
2425
else
 
2426
  echo "$as_me: failed program was:" >&5
 
2427
sed 's/^/| /' conftest.$ac_ext >&5
 
2428
 
 
2429
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2430
         CFLAGS="-g"
 
2431
         cat >conftest.$ac_ext <<_ACEOF
 
2432
/* confdefs.h.  */
 
2433
_ACEOF
 
2434
cat confdefs.h >>conftest.$ac_ext
 
2435
cat >>conftest.$ac_ext <<_ACEOF
 
2436
/* end confdefs.h.  */
 
2437
 
 
2438
int
 
2439
main ()
 
2440
{
 
2441
 
 
2442
  ;
 
2443
  return 0;
 
2444
}
 
2445
_ACEOF
 
2446
rm -f conftest.$ac_objext
 
2447
if { (ac_try="$ac_compile"
 
2448
case "(($ac_try" in
 
2449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2450
  *) ac_try_echo=$ac_try;;
 
2451
esac
 
2452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2453
  (eval "$ac_compile") 2>conftest.er1
 
2454
  ac_status=$?
 
2455
  grep -v '^ *+' conftest.er1 >conftest.err
 
2456
  rm -f conftest.er1
 
2457
  cat conftest.err >&5
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); } && {
 
2460
         test -z "$ac_c_werror_flag" ||
 
2461
         test ! -s conftest.err
 
2462
       } && test -s conftest.$ac_objext; then
 
2463
  ac_cv_prog_cc_g=yes
 
2464
else
 
2465
  echo "$as_me: failed program was:" >&5
 
2466
sed 's/^/| /' conftest.$ac_ext >&5
 
2467
 
 
2468
 
 
2469
fi
 
2470
 
 
2471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2472
fi
 
2473
 
 
2474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2475
fi
 
2476
 
 
2477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2478
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2479
fi
 
2480
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2481
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
2482
if test "$ac_test_CFLAGS" = set; then
 
2483
  CFLAGS=$ac_save_CFLAGS
 
2484
elif test $ac_cv_prog_cc_g = yes; then
 
2485
  if test "$GCC" = yes; then
 
2486
    CFLAGS="-g -O2"
 
2487
  else
 
2488
    CFLAGS="-g"
 
2489
  fi
 
2490
else
 
2491
  if test "$GCC" = yes; then
 
2492
    CFLAGS="-O2"
 
2493
  else
 
2494
    CFLAGS=
 
2495
  fi
 
2496
fi
 
2497
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2498
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2499
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2501
else
 
2502
  ac_cv_prog_cc_c89=no
 
2503
ac_save_CC=$CC
 
2504
cat >conftest.$ac_ext <<_ACEOF
 
2505
/* confdefs.h.  */
 
2506
_ACEOF
 
2507
cat confdefs.h >>conftest.$ac_ext
 
2508
cat >>conftest.$ac_ext <<_ACEOF
 
2509
/* end confdefs.h.  */
 
2510
#include <stdarg.h>
 
2511
#include <stdio.h>
 
2512
#include <sys/types.h>
 
2513
#include <sys/stat.h>
 
2514
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2515
struct buf { int x; };
 
2516
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2517
static char *e (p, i)
 
2518
     char **p;
 
2519
     int i;
 
2520
{
 
2521
  return p[i];
 
2522
}
 
2523
static char *f (char * (*g) (char **, int), char **p, ...)
 
2524
{
 
2525
  char *s;
 
2526
  va_list v;
 
2527
  va_start (v,p);
 
2528
  s = g (p, va_arg (v,int));
 
2529
  va_end (v);
 
2530
  return s;
 
2531
}
 
2532
 
 
2533
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2534
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2535
   These don't provoke an error unfortunately, instead are silently treated
 
2536
   as 'x'.  The following induces an error, until -std is added to get
 
2537
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2538
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2539
   that's true only with -std.  */
 
2540
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2541
 
 
2542
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2543
   inside strings and character constants.  */
 
2544
#define FOO(x) 'x'
 
2545
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2546
 
 
2547
int test (int i, double x);
 
2548
struct s1 {int (*f) (int a);};
 
2549
struct s2 {int (*f) (double a);};
 
2550
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2551
int argc;
 
2552
char **argv;
 
2553
int
 
2554
main ()
 
2555
{
 
2556
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2557
  ;
 
2558
  return 0;
 
2559
}
 
2560
_ACEOF
 
2561
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2562
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2563
do
 
2564
  CC="$ac_save_CC $ac_arg"
 
2565
  rm -f conftest.$ac_objext
 
2566
if { (ac_try="$ac_compile"
 
2567
case "(($ac_try" in
 
2568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2569
  *) ac_try_echo=$ac_try;;
 
2570
esac
 
2571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2572
  (eval "$ac_compile") 2>conftest.er1
 
2573
  ac_status=$?
 
2574
  grep -v '^ *+' conftest.er1 >conftest.err
 
2575
  rm -f conftest.er1
 
2576
  cat conftest.err >&5
 
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2578
  (exit $ac_status); } && {
 
2579
         test -z "$ac_c_werror_flag" ||
 
2580
         test ! -s conftest.err
 
2581
       } && test -s conftest.$ac_objext; then
 
2582
  ac_cv_prog_cc_c89=$ac_arg
 
2583
else
 
2584
  echo "$as_me: failed program was:" >&5
 
2585
sed 's/^/| /' conftest.$ac_ext >&5
 
2586
 
 
2587
 
 
2588
fi
 
2589
 
 
2590
rm -f core conftest.err conftest.$ac_objext
 
2591
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2592
done
 
2593
rm -f conftest.$ac_ext
 
2594
CC=$ac_save_CC
 
2595
 
 
2596
fi
 
2597
# AC_CACHE_VAL
 
2598
case "x$ac_cv_prog_cc_c89" in
 
2599
  x)
 
2600
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2601
echo "${ECHO_T}none needed" >&6; } ;;
 
2602
  xno)
 
2603
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2604
echo "${ECHO_T}unsupported" >&6; } ;;
 
2605
  *)
 
2606
    CC="$CC $ac_cv_prog_cc_c89"
 
2607
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2608
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
2609
esac
 
2610
 
 
2611
 
 
2612
ac_ext=c
 
2613
ac_cpp='$CPP $CPPFLAGS'
 
2614
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2615
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2616
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2617
 
 
2618
# Extract the first word of "rpcgen", so it can be a program name with args.
 
2619
set dummy rpcgen; ac_word=$2
 
2620
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2622
if test "${ac_cv_path_prog_rpcgen+set}" = set; then
 
2623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2624
else
 
2625
  case $prog_rpcgen in
 
2626
  [\\/]* | ?:[\\/]*)
 
2627
  ac_cv_path_prog_rpcgen="$prog_rpcgen" # Let the user override the test with a path.
 
2628
  ;;
 
2629
  *)
 
2630
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2631
for as_dir in $PATH
 
2632
do
 
2633
  IFS=$as_save_IFS
 
2634
  test -z "$as_dir" && as_dir=.
 
2635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2637
    ac_cv_path_prog_rpcgen="$as_dir/$ac_word$ac_exec_ext"
 
2638
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2639
    break 2
 
2640
  fi
 
2641
done
 
2642
done
 
2643
IFS=$as_save_IFS
 
2644
 
 
2645
  test -z "$ac_cv_path_prog_rpcgen" && ac_cv_path_prog_rpcgen="{ { echo "$as_me:$LINENO: error: Please install the rpcgen program" >&5
 
2646
echo "$as_me: error: Please install the rpcgen program" >&2;}
 
2647
   { (exit 1); exit 1; }; }"
 
2648
  ;;
 
2649
esac
 
2650
fi
 
2651
prog_rpcgen=$ac_cv_path_prog_rpcgen
 
2652
if test -n "$prog_rpcgen"; then
 
2653
  { echo "$as_me:$LINENO: result: $prog_rpcgen" >&5
 
2654
echo "${ECHO_T}$prog_rpcgen" >&6; }
 
2655
else
 
2656
  { echo "$as_me:$LINENO: result: no" >&5
 
2657
echo "${ECHO_T}no" >&6; }
 
2658
fi
 
2659
 
 
2660
 
 
2661
if test `uname -s` != "Darwin"; then
 
2662
    # Extract the first word of "crontab", so it can be a program name with args.
 
2663
set dummy crontab; ac_word=$2
 
2664
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2665
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2666
if test "${ac_cv_path_prog_crontab+set}" = set; then
 
2667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2668
else
 
2669
  case $prog_crontab in
 
2670
  [\\/]* | ?:[\\/]*)
 
2671
  ac_cv_path_prog_crontab="$prog_crontab" # Let the user override the test with a path.
 
2672
  ;;
 
2673
  *)
 
2674
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2675
for as_dir in $PATH
 
2676
do
 
2677
  IFS=$as_save_IFS
 
2678
  test -z "$as_dir" && as_dir=.
 
2679
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2680
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2681
    ac_cv_path_prog_crontab="$as_dir/$ac_word$ac_exec_ext"
 
2682
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2683
    break 2
 
2684
  fi
 
2685
done
 
2686
done
 
2687
IFS=$as_save_IFS
 
2688
 
 
2689
  test -z "$ac_cv_path_prog_crontab" && ac_cv_path_prog_crontab="{ { echo "$as_me:$LINENO: error: Please install the cron and the crontab program" >&5
 
2690
echo "$as_me: error: Please install the cron and the crontab program" >&2;}
 
2691
   { (exit 1); exit 1; }; }"
 
2692
  ;;
 
2693
esac
 
2694
fi
 
2695
prog_crontab=$ac_cv_path_prog_crontab
 
2696
if test -n "$prog_crontab"; then
 
2697
  { echo "$as_me:$LINENO: result: $prog_crontab" >&5
 
2698
echo "${ECHO_T}$prog_crontab" >&6; }
 
2699
else
 
2700
  { echo "$as_me:$LINENO: result: no" >&5
 
2701
echo "${ECHO_T}no" >&6; }
 
2702
fi
 
2703
 
 
2704
 
 
2705
fi
 
2706
 
 
2707
# Checks for libraries.
 
2708
 
 
2709
 
 
2710
{ echo "$as_me:$LINENO: checking for EVP_aes_128_ecb in -lcrypto" >&5
 
2711
echo $ECHO_N "checking for EVP_aes_128_ecb in -lcrypto... $ECHO_C" >&6; }
 
2712
if test "${ac_cv_lib_crypto_EVP_aes_128_ecb+set}" = set; then
 
2713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2714
else
 
2715
  ac_check_lib_save_LIBS=$LIBS
 
2716
LIBS="-lcrypto  $LIBS"
 
2717
cat >conftest.$ac_ext <<_ACEOF
 
2718
/* confdefs.h.  */
 
2719
_ACEOF
 
2720
cat confdefs.h >>conftest.$ac_ext
 
2721
cat >>conftest.$ac_ext <<_ACEOF
 
2722
/* end confdefs.h.  */
 
2723
 
 
2724
/* Override any GCC internal prototype to avoid an error.
 
2725
   Use char because int might match the return type of a GCC
 
2726
   builtin and then its argument prototype would still apply.  */
 
2727
#ifdef __cplusplus
 
2728
extern "C"
 
2729
#endif
 
2730
char EVP_aes_128_ecb ();
 
2731
int
 
2732
main ()
 
2733
{
 
2734
return EVP_aes_128_ecb ();
 
2735
  ;
 
2736
  return 0;
 
2737
}
 
2738
_ACEOF
 
2739
rm -f conftest.$ac_objext conftest$ac_exeext
 
2740
if { (ac_try="$ac_link"
 
2741
case "(($ac_try" in
 
2742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2743
  *) ac_try_echo=$ac_try;;
 
2744
esac
 
2745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2746
  (eval "$ac_link") 2>conftest.er1
 
2747
  ac_status=$?
 
2748
  grep -v '^ *+' conftest.er1 >conftest.err
 
2749
  rm -f conftest.er1
 
2750
  cat conftest.err >&5
 
2751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2752
  (exit $ac_status); } && {
 
2753
         test -z "$ac_c_werror_flag" ||
 
2754
         test ! -s conftest.err
 
2755
       } && test -s conftest$ac_exeext &&
 
2756
       $as_test_x conftest$ac_exeext; then
 
2757
  ac_cv_lib_crypto_EVP_aes_128_ecb=yes
 
2758
else
 
2759
  echo "$as_me: failed program was:" >&5
 
2760
sed 's/^/| /' conftest.$ac_ext >&5
 
2761
 
 
2762
        ac_cv_lib_crypto_EVP_aes_128_ecb=no
 
2763
fi
 
2764
 
 
2765
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
2766
      conftest$ac_exeext conftest.$ac_ext
 
2767
LIBS=$ac_check_lib_save_LIBS
 
2768
fi
 
2769
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_aes_128_ecb" >&5
 
2770
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_aes_128_ecb" >&6; }
 
2771
if test $ac_cv_lib_crypto_EVP_aes_128_ecb = yes; then
 
2772
  cat >>confdefs.h <<_ACEOF
 
2773
#define HAVE_LIBCRYPTO 1
 
2774
_ACEOF
 
2775
 
 
2776
  LIBS="-lcrypto $LIBS"
 
2777
 
 
2778
fi
 
2779
 
 
2780
 
 
2781
{ echo "$as_me:$LINENO: checking for log in -lm" >&5
 
2782
echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
 
2783
if test "${ac_cv_lib_m_log+set}" = set; then
 
2784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2785
else
 
2786
  ac_check_lib_save_LIBS=$LIBS
 
2787
LIBS="-lm  $LIBS"
 
2788
cat >conftest.$ac_ext <<_ACEOF
 
2789
/* confdefs.h.  */
 
2790
_ACEOF
 
2791
cat confdefs.h >>conftest.$ac_ext
 
2792
cat >>conftest.$ac_ext <<_ACEOF
 
2793
/* end confdefs.h.  */
 
2794
 
 
2795
/* Override any GCC internal prototype to avoid an error.
 
2796
   Use char because int might match the return type of a GCC
 
2797
   builtin and then its argument prototype would still apply.  */
 
2798
#ifdef __cplusplus
 
2799
extern "C"
 
2800
#endif
 
2801
char log ();
 
2802
int
 
2803
main ()
 
2804
{
 
2805
return log ();
 
2806
  ;
 
2807
  return 0;
 
2808
}
 
2809
_ACEOF
 
2810
rm -f conftest.$ac_objext conftest$ac_exeext
 
2811
if { (ac_try="$ac_link"
 
2812
case "(($ac_try" in
 
2813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2814
  *) ac_try_echo=$ac_try;;
 
2815
esac
 
2816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2817
  (eval "$ac_link") 2>conftest.er1
 
2818
  ac_status=$?
 
2819
  grep -v '^ *+' conftest.er1 >conftest.err
 
2820
  rm -f conftest.er1
 
2821
  cat conftest.err >&5
 
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2823
  (exit $ac_status); } && {
 
2824
         test -z "$ac_c_werror_flag" ||
 
2825
         test ! -s conftest.err
 
2826
       } && test -s conftest$ac_exeext &&
 
2827
       $as_test_x conftest$ac_exeext; then
 
2828
  ac_cv_lib_m_log=yes
 
2829
else
 
2830
  echo "$as_me: failed program was:" >&5
 
2831
sed 's/^/| /' conftest.$ac_ext >&5
 
2832
 
 
2833
        ac_cv_lib_m_log=no
 
2834
fi
 
2835
 
 
2836
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
2837
      conftest$ac_exeext conftest.$ac_ext
 
2838
LIBS=$ac_check_lib_save_LIBS
 
2839
fi
 
2840
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
 
2841
echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
 
2842
if test $ac_cv_lib_m_log = yes; then
 
2843
  cat >>confdefs.h <<_ACEOF
 
2844
#define HAVE_LIBM 1
 
2845
_ACEOF
 
2846
 
 
2847
  LIBS="-lm $LIBS"
 
2848
 
 
2849
fi
 
2850
 
 
2851
 
 
2852
# Checks for header files.
 
2853
ac_ext=c
 
2854
ac_cpp='$CPP $CPPFLAGS'
 
2855
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2856
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2857
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2858
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2859
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
2860
# On Suns, sometimes $CPP names a directory.
 
2861
if test -n "$CPP" && test -d "$CPP"; then
 
2862
  CPP=
 
2863
fi
 
2864
if test -z "$CPP"; then
 
2865
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2867
else
 
2868
      # Double quotes because CPP needs to be expanded
 
2869
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2870
    do
 
2871
      ac_preproc_ok=false
 
2872
for ac_c_preproc_warn_flag in '' yes
 
2873
do
 
2874
  # Use a header file that comes with gcc, so configuring glibc
 
2875
  # with a fresh cross-compiler works.
 
2876
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2877
  # <limits.h> exists even on freestanding compilers.
 
2878
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2879
  # not just through cpp. "Syntax error" is here to catch this case.
 
2880
  cat >conftest.$ac_ext <<_ACEOF
 
2881
/* confdefs.h.  */
 
2882
_ACEOF
 
2883
cat confdefs.h >>conftest.$ac_ext
 
2884
cat >>conftest.$ac_ext <<_ACEOF
 
2885
/* end confdefs.h.  */
 
2886
#ifdef __STDC__
 
2887
# include <limits.h>
 
2888
#else
 
2889
# include <assert.h>
 
2890
#endif
 
2891
                     Syntax error
 
2892
_ACEOF
 
2893
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2894
case "(($ac_try" in
 
2895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2896
  *) ac_try_echo=$ac_try;;
 
2897
esac
 
2898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2899
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2900
  ac_status=$?
 
2901
  grep -v '^ *+' conftest.er1 >conftest.err
 
2902
  rm -f conftest.er1
 
2903
  cat conftest.err >&5
 
2904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2905
  (exit $ac_status); } >/dev/null && {
 
2906
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2907
         test ! -s conftest.err
 
2908
       }; then
 
2909
  :
 
2910
else
 
2911
  echo "$as_me: failed program was:" >&5
 
2912
sed 's/^/| /' conftest.$ac_ext >&5
 
2913
 
 
2914
  # Broken: fails on valid input.
 
2915
continue
 
2916
fi
 
2917
 
 
2918
rm -f conftest.err conftest.$ac_ext
 
2919
 
 
2920
  # OK, works on sane cases.  Now check whether nonexistent headers
 
2921
  # can be detected and how.
 
2922
  cat >conftest.$ac_ext <<_ACEOF
 
2923
/* confdefs.h.  */
 
2924
_ACEOF
 
2925
cat confdefs.h >>conftest.$ac_ext
 
2926
cat >>conftest.$ac_ext <<_ACEOF
 
2927
/* end confdefs.h.  */
 
2928
#include <ac_nonexistent.h>
 
2929
_ACEOF
 
2930
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2931
case "(($ac_try" in
 
2932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2933
  *) ac_try_echo=$ac_try;;
 
2934
esac
 
2935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2936
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2937
  ac_status=$?
 
2938
  grep -v '^ *+' conftest.er1 >conftest.err
 
2939
  rm -f conftest.er1
 
2940
  cat conftest.err >&5
 
2941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2942
  (exit $ac_status); } >/dev/null && {
 
2943
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2944
         test ! -s conftest.err
 
2945
       }; then
 
2946
  # Broken: success on invalid input.
 
2947
continue
 
2948
else
 
2949
  echo "$as_me: failed program was:" >&5
 
2950
sed 's/^/| /' conftest.$ac_ext >&5
 
2951
 
 
2952
  # Passes both tests.
 
2953
ac_preproc_ok=:
 
2954
break
 
2955
fi
 
2956
 
 
2957
rm -f conftest.err conftest.$ac_ext
 
2958
 
 
2959
done
 
2960
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2961
rm -f conftest.err conftest.$ac_ext
 
2962
if $ac_preproc_ok; then
 
2963
  break
 
2964
fi
 
2965
 
 
2966
    done
 
2967
    ac_cv_prog_CPP=$CPP
 
2968
 
 
2969
fi
 
2970
  CPP=$ac_cv_prog_CPP
 
2971
else
 
2972
  ac_cv_prog_CPP=$CPP
 
2973
fi
 
2974
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
2975
echo "${ECHO_T}$CPP" >&6; }
 
2976
ac_preproc_ok=false
 
2977
for ac_c_preproc_warn_flag in '' yes
 
2978
do
 
2979
  # Use a header file that comes with gcc, so configuring glibc
 
2980
  # with a fresh cross-compiler works.
 
2981
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2982
  # <limits.h> exists even on freestanding compilers.
 
2983
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2984
  # not just through cpp. "Syntax error" is here to catch this case.
 
2985
  cat >conftest.$ac_ext <<_ACEOF
 
2986
/* confdefs.h.  */
 
2987
_ACEOF
 
2988
cat confdefs.h >>conftest.$ac_ext
 
2989
cat >>conftest.$ac_ext <<_ACEOF
 
2990
/* end confdefs.h.  */
 
2991
#ifdef __STDC__
 
2992
# include <limits.h>
 
2993
#else
 
2994
# include <assert.h>
 
2995
#endif
 
2996
                     Syntax error
 
2997
_ACEOF
 
2998
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2999
case "(($ac_try" in
 
3000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3001
  *) ac_try_echo=$ac_try;;
 
3002
esac
 
3003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3004
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3005
  ac_status=$?
 
3006
  grep -v '^ *+' conftest.er1 >conftest.err
 
3007
  rm -f conftest.er1
 
3008
  cat conftest.err >&5
 
3009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3010
  (exit $ac_status); } >/dev/null && {
 
3011
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3012
         test ! -s conftest.err
 
3013
       }; then
 
3014
  :
 
3015
else
 
3016
  echo "$as_me: failed program was:" >&5
 
3017
sed 's/^/| /' conftest.$ac_ext >&5
 
3018
 
 
3019
  # Broken: fails on valid input.
 
3020
continue
 
3021
fi
 
3022
 
 
3023
rm -f conftest.err conftest.$ac_ext
 
3024
 
 
3025
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3026
  # can be detected and how.
 
3027
  cat >conftest.$ac_ext <<_ACEOF
 
3028
/* confdefs.h.  */
 
3029
_ACEOF
 
3030
cat confdefs.h >>conftest.$ac_ext
 
3031
cat >>conftest.$ac_ext <<_ACEOF
 
3032
/* end confdefs.h.  */
 
3033
#include <ac_nonexistent.h>
 
3034
_ACEOF
 
3035
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3036
case "(($ac_try" in
 
3037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3038
  *) ac_try_echo=$ac_try;;
 
3039
esac
 
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3041
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3042
  ac_status=$?
 
3043
  grep -v '^ *+' conftest.er1 >conftest.err
 
3044
  rm -f conftest.er1
 
3045
  cat conftest.err >&5
 
3046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3047
  (exit $ac_status); } >/dev/null && {
 
3048
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3049
         test ! -s conftest.err
 
3050
       }; then
 
3051
  # Broken: success on invalid input.
 
3052
continue
 
3053
else
 
3054
  echo "$as_me: failed program was:" >&5
 
3055
sed 's/^/| /' conftest.$ac_ext >&5
 
3056
 
 
3057
  # Passes both tests.
 
3058
ac_preproc_ok=:
 
3059
break
 
3060
fi
 
3061
 
 
3062
rm -f conftest.err conftest.$ac_ext
 
3063
 
 
3064
done
 
3065
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3066
rm -f conftest.err conftest.$ac_ext
 
3067
if $ac_preproc_ok; then
 
3068
  :
 
3069
else
 
3070
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3071
See \`config.log' for more details." >&5
 
3072
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3073
See \`config.log' for more details." >&2;}
 
3074
   { (exit 1); exit 1; }; }
 
3075
fi
 
3076
 
 
3077
ac_ext=c
 
3078
ac_cpp='$CPP $CPPFLAGS'
 
3079
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3080
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3081
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3082
 
 
3083
 
 
3084
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3085
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3086
if test "${ac_cv_path_GREP+set}" = set; then
 
3087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3088
else
 
3089
  # Extract the first word of "grep ggrep" to use in msg output
 
3090
if test -z "$GREP"; then
 
3091
set dummy grep ggrep; ac_prog_name=$2
 
3092
if test "${ac_cv_path_GREP+set}" = set; then
 
3093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3094
else
 
3095
  ac_path_GREP_found=false
 
3096
# Loop through the user's path and test for each of PROGNAME-LIST
 
3097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3098
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3099
do
 
3100
  IFS=$as_save_IFS
 
3101
  test -z "$as_dir" && as_dir=.
 
3102
  for ac_prog in grep ggrep; do
 
3103
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3104
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3105
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3106
    # Check for GNU ac_path_GREP and select it if it is found.
 
3107
  # Check for GNU $ac_path_GREP
 
3108
case `"$ac_path_GREP" --version 2>&1` in
 
3109
*GNU*)
 
3110
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3111
*)
 
3112
  ac_count=0
 
3113
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3114
  while :
 
3115
  do
 
3116
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3117
    mv "conftest.tmp" "conftest.in"
 
3118
    cp "conftest.in" "conftest.nl"
 
3119
    echo 'GREP' >> "conftest.nl"
 
3120
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3121
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3122
    ac_count=`expr $ac_count + 1`
 
3123
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3124
      # Best one so far, save it but keep looking for a better one
 
3125
      ac_cv_path_GREP="$ac_path_GREP"
 
3126
      ac_path_GREP_max=$ac_count
 
3127
    fi
 
3128
    # 10*(2^10) chars as input seems more than enough
 
3129
    test $ac_count -gt 10 && break
 
3130
  done
 
3131
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3132
esac
 
3133
 
 
3134
 
 
3135
    $ac_path_GREP_found && break 3
 
3136
  done
 
3137
done
 
3138
 
 
3139
done
 
3140
IFS=$as_save_IFS
 
3141
 
 
3142
 
 
3143
fi
 
3144
 
 
3145
GREP="$ac_cv_path_GREP"
 
3146
if test -z "$GREP"; then
 
3147
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3148
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3149
   { (exit 1); exit 1; }; }
 
3150
fi
 
3151
 
 
3152
else
 
3153
  ac_cv_path_GREP=$GREP
 
3154
fi
 
3155
 
 
3156
 
 
3157
fi
 
3158
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3159
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3160
 GREP="$ac_cv_path_GREP"
 
3161
 
 
3162
 
 
3163
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3164
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3165
if test "${ac_cv_path_EGREP+set}" = set; then
 
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3167
else
 
3168
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3169
   then ac_cv_path_EGREP="$GREP -E"
 
3170
   else
 
3171
     # Extract the first word of "egrep" to use in msg output
 
3172
if test -z "$EGREP"; then
 
3173
set dummy egrep; ac_prog_name=$2
 
3174
if test "${ac_cv_path_EGREP+set}" = set; then
 
3175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3176
else
 
3177
  ac_path_EGREP_found=false
 
3178
# Loop through the user's path and test for each of PROGNAME-LIST
 
3179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3180
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3181
do
 
3182
  IFS=$as_save_IFS
 
3183
  test -z "$as_dir" && as_dir=.
 
3184
  for ac_prog in egrep; do
 
3185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3186
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3187
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3188
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3189
  # Check for GNU $ac_path_EGREP
 
3190
case `"$ac_path_EGREP" --version 2>&1` in
 
3191
*GNU*)
 
3192
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3193
*)
 
3194
  ac_count=0
 
3195
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3196
  while :
 
3197
  do
 
3198
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3199
    mv "conftest.tmp" "conftest.in"
 
3200
    cp "conftest.in" "conftest.nl"
 
3201
    echo 'EGREP' >> "conftest.nl"
 
3202
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3203
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3204
    ac_count=`expr $ac_count + 1`
 
3205
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3206
      # Best one so far, save it but keep looking for a better one
 
3207
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3208
      ac_path_EGREP_max=$ac_count
 
3209
    fi
 
3210
    # 10*(2^10) chars as input seems more than enough
 
3211
    test $ac_count -gt 10 && break
 
3212
  done
 
3213
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3214
esac
 
3215
 
 
3216
 
 
3217
    $ac_path_EGREP_found && break 3
 
3218
  done
 
3219
done
 
3220
 
 
3221
done
 
3222
IFS=$as_save_IFS
 
3223
 
 
3224
 
 
3225
fi
 
3226
 
 
3227
EGREP="$ac_cv_path_EGREP"
 
3228
if test -z "$EGREP"; then
 
3229
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3230
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3231
   { (exit 1); exit 1; }; }
 
3232
fi
 
3233
 
 
3234
else
 
3235
  ac_cv_path_EGREP=$EGREP
 
3236
fi
 
3237
 
 
3238
 
 
3239
   fi
 
3240
fi
 
3241
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3242
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3243
 EGREP="$ac_cv_path_EGREP"
 
3244
 
 
3245
 
 
3246
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3247
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
3248
if test "${ac_cv_header_stdc+set}" = set; then
 
3249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3250
else
 
3251
  cat >conftest.$ac_ext <<_ACEOF
 
3252
/* confdefs.h.  */
 
3253
_ACEOF
 
3254
cat confdefs.h >>conftest.$ac_ext
 
3255
cat >>conftest.$ac_ext <<_ACEOF
 
3256
/* end confdefs.h.  */
 
3257
#include <stdlib.h>
 
3258
#include <stdarg.h>
 
3259
#include <string.h>
 
3260
#include <float.h>
 
3261
 
 
3262
int
 
3263
main ()
 
3264
{
 
3265
 
 
3266
  ;
 
3267
  return 0;
 
3268
}
 
3269
_ACEOF
 
3270
rm -f conftest.$ac_objext
 
3271
if { (ac_try="$ac_compile"
 
3272
case "(($ac_try" in
 
3273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3274
  *) ac_try_echo=$ac_try;;
 
3275
esac
 
3276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3277
  (eval "$ac_compile") 2>conftest.er1
 
3278
  ac_status=$?
 
3279
  grep -v '^ *+' conftest.er1 >conftest.err
 
3280
  rm -f conftest.er1
 
3281
  cat conftest.err >&5
 
3282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3283
  (exit $ac_status); } && {
 
3284
         test -z "$ac_c_werror_flag" ||
 
3285
         test ! -s conftest.err
 
3286
       } && test -s conftest.$ac_objext; then
 
3287
  ac_cv_header_stdc=yes
 
3288
else
 
3289
  echo "$as_me: failed program was:" >&5
 
3290
sed 's/^/| /' conftest.$ac_ext >&5
 
3291
 
 
3292
        ac_cv_header_stdc=no
 
3293
fi
 
3294
 
 
3295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3296
 
 
3297
if test $ac_cv_header_stdc = yes; then
 
3298
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3299
  cat >conftest.$ac_ext <<_ACEOF
 
3300
/* confdefs.h.  */
 
3301
_ACEOF
 
3302
cat confdefs.h >>conftest.$ac_ext
 
3303
cat >>conftest.$ac_ext <<_ACEOF
 
3304
/* end confdefs.h.  */
 
3305
#include <string.h>
 
3306
 
 
3307
_ACEOF
 
3308
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3309
  $EGREP "memchr" >/dev/null 2>&1; then
 
3310
  :
 
3311
else
 
3312
  ac_cv_header_stdc=no
 
3313
fi
 
3314
rm -f conftest*
 
3315
 
 
3316
fi
 
3317
 
 
3318
if test $ac_cv_header_stdc = yes; then
 
3319
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3320
  cat >conftest.$ac_ext <<_ACEOF
 
3321
/* confdefs.h.  */
 
3322
_ACEOF
 
3323
cat confdefs.h >>conftest.$ac_ext
 
3324
cat >>conftest.$ac_ext <<_ACEOF
 
3325
/* end confdefs.h.  */
 
3326
#include <stdlib.h>
 
3327
 
 
3328
_ACEOF
 
3329
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3330
  $EGREP "free" >/dev/null 2>&1; then
 
3331
  :
 
3332
else
 
3333
  ac_cv_header_stdc=no
 
3334
fi
 
3335
rm -f conftest*
 
3336
 
 
3337
fi
 
3338
 
 
3339
if test $ac_cv_header_stdc = yes; then
 
3340
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3341
  if test "$cross_compiling" = yes; then
 
3342
  :
 
3343
else
 
3344
  cat >conftest.$ac_ext <<_ACEOF
 
3345
/* confdefs.h.  */
 
3346
_ACEOF
 
3347
cat confdefs.h >>conftest.$ac_ext
 
3348
cat >>conftest.$ac_ext <<_ACEOF
 
3349
/* end confdefs.h.  */
 
3350
#include <ctype.h>
 
3351
#include <stdlib.h>
 
3352
#if ((' ' & 0x0FF) == 0x020)
 
3353
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3354
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3355
#else
 
3356
# define ISLOWER(c) \
 
3357
                   (('a' <= (c) && (c) <= 'i') \
 
3358
                     || ('j' <= (c) && (c) <= 'r') \
 
3359
                     || ('s' <= (c) && (c) <= 'z'))
 
3360
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3361
#endif
 
3362
 
 
3363
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3364
int
 
3365
main ()
 
3366
{
 
3367
  int i;
 
3368
  for (i = 0; i < 256; i++)
 
3369
    if (XOR (islower (i), ISLOWER (i))
 
3370
        || toupper (i) != TOUPPER (i))
 
3371
      return 2;
 
3372
  return 0;
 
3373
}
 
3374
_ACEOF
 
3375
rm -f conftest$ac_exeext
 
3376
if { (ac_try="$ac_link"
 
3377
case "(($ac_try" in
 
3378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3379
  *) ac_try_echo=$ac_try;;
 
3380
esac
 
3381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3382
  (eval "$ac_link") 2>&5
 
3383
  ac_status=$?
 
3384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3385
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3386
  { (case "(($ac_try" in
 
3387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3388
  *) ac_try_echo=$ac_try;;
 
3389
esac
 
3390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3391
  (eval "$ac_try") 2>&5
 
3392
  ac_status=$?
 
3393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3394
  (exit $ac_status); }; }; then
 
3395
  :
 
3396
else
 
3397
  echo "$as_me: program exited with status $ac_status" >&5
 
3398
echo "$as_me: failed program was:" >&5
 
3399
sed 's/^/| /' conftest.$ac_ext >&5
 
3400
 
 
3401
( exit $ac_status )
 
3402
ac_cv_header_stdc=no
 
3403
fi
 
3404
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3405
fi
 
3406
 
 
3407
 
 
3408
fi
 
3409
fi
 
3410
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3411
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
3412
if test $ac_cv_header_stdc = yes; then
 
3413
 
 
3414
cat >>confdefs.h <<\_ACEOF
 
3415
#define STDC_HEADERS 1
 
3416
_ACEOF
 
3417
 
 
3418
fi
 
3419
 
 
3420
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
3421
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
3422
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
3423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3424
else
 
3425
  cat >conftest.$ac_ext <<_ACEOF
 
3426
/* confdefs.h.  */
 
3427
_ACEOF
 
3428
cat confdefs.h >>conftest.$ac_ext
 
3429
cat >>conftest.$ac_ext <<_ACEOF
 
3430
/* end confdefs.h.  */
 
3431
#include <sys/types.h>
 
3432
#include <sys/wait.h>
 
3433
#ifndef WEXITSTATUS
 
3434
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
3435
#endif
 
3436
#ifndef WIFEXITED
 
3437
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
3438
#endif
 
3439
 
 
3440
int
 
3441
main ()
 
3442
{
 
3443
  int s;
 
3444
  wait (&s);
 
3445
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
3446
  ;
 
3447
  return 0;
 
3448
}
 
3449
_ACEOF
 
3450
rm -f conftest.$ac_objext
 
3451
if { (ac_try="$ac_compile"
 
3452
case "(($ac_try" in
 
3453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3454
  *) ac_try_echo=$ac_try;;
 
3455
esac
 
3456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3457
  (eval "$ac_compile") 2>conftest.er1
 
3458
  ac_status=$?
 
3459
  grep -v '^ *+' conftest.er1 >conftest.err
 
3460
  rm -f conftest.er1
 
3461
  cat conftest.err >&5
 
3462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3463
  (exit $ac_status); } && {
 
3464
         test -z "$ac_c_werror_flag" ||
 
3465
         test ! -s conftest.err
 
3466
       } && test -s conftest.$ac_objext; then
 
3467
  ac_cv_header_sys_wait_h=yes
 
3468
else
 
3469
  echo "$as_me: failed program was:" >&5
 
3470
sed 's/^/| /' conftest.$ac_ext >&5
 
3471
 
 
3472
        ac_cv_header_sys_wait_h=no
 
3473
fi
 
3474
 
 
3475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3476
fi
 
3477
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
3478
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
3479
if test $ac_cv_header_sys_wait_h = yes; then
 
3480
 
 
3481
cat >>confdefs.h <<\_ACEOF
 
3482
#define HAVE_SYS_WAIT_H 1
 
3483
_ACEOF
 
3484
 
 
3485
fi
 
3486
 
 
3487
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3488
 
 
3489
 
 
3490
 
 
3491
 
 
3492
 
 
3493
 
 
3494
 
 
3495
 
 
3496
 
 
3497
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3498
                  inttypes.h stdint.h unistd.h
 
3499
do
 
3500
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3501
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3502
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
3503
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3505
else
 
3506
  cat >conftest.$ac_ext <<_ACEOF
 
3507
/* confdefs.h.  */
 
3508
_ACEOF
 
3509
cat confdefs.h >>conftest.$ac_ext
 
3510
cat >>conftest.$ac_ext <<_ACEOF
 
3511
/* end confdefs.h.  */
 
3512
$ac_includes_default
 
3513
 
 
3514
#include <$ac_header>
 
3515
_ACEOF
 
3516
rm -f conftest.$ac_objext
 
3517
if { (ac_try="$ac_compile"
 
3518
case "(($ac_try" in
 
3519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3520
  *) ac_try_echo=$ac_try;;
 
3521
esac
 
3522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3523
  (eval "$ac_compile") 2>conftest.er1
 
3524
  ac_status=$?
 
3525
  grep -v '^ *+' conftest.er1 >conftest.err
 
3526
  rm -f conftest.er1
 
3527
  cat conftest.err >&5
 
3528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3529
  (exit $ac_status); } && {
 
3530
         test -z "$ac_c_werror_flag" ||
 
3531
         test ! -s conftest.err
 
3532
       } && test -s conftest.$ac_objext; then
 
3533
  eval "$as_ac_Header=yes"
 
3534
else
 
3535
  echo "$as_me: failed program was:" >&5
 
3536
sed 's/^/| /' conftest.$ac_ext >&5
 
3537
 
 
3538
        eval "$as_ac_Header=no"
 
3539
fi
 
3540
 
 
3541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3542
fi
 
3543
ac_res=`eval echo '${'$as_ac_Header'}'`
 
3544
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3545
echo "${ECHO_T}$ac_res" >&6; }
 
3546
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3547
  cat >>confdefs.h <<_ACEOF
 
3548
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3549
_ACEOF
 
3550
 
 
3551
fi
 
3552
 
 
3553
done
 
3554
 
 
3555
 
 
3556
 
 
3557
 
 
3558
 
 
3559
 
 
3560
 
 
3561
 
 
3562
 
 
3563
 
 
3564
 
 
3565
 
 
3566
for ac_header in ifaddrs.h arpa/inet.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h
 
3567
do
 
3568
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3569
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3570
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3571
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
3572
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3574
fi
 
3575
ac_res=`eval echo '${'$as_ac_Header'}'`
 
3576
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3577
echo "${ECHO_T}$ac_res" >&6; }
 
3578
else
 
3579
  # Is the header compilable?
 
3580
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3581
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
3582
cat >conftest.$ac_ext <<_ACEOF
 
3583
/* confdefs.h.  */
 
3584
_ACEOF
 
3585
cat confdefs.h >>conftest.$ac_ext
 
3586
cat >>conftest.$ac_ext <<_ACEOF
 
3587
/* end confdefs.h.  */
 
3588
$ac_includes_default
 
3589
#include <$ac_header>
 
3590
_ACEOF
 
3591
rm -f conftest.$ac_objext
 
3592
if { (ac_try="$ac_compile"
 
3593
case "(($ac_try" in
 
3594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3595
  *) ac_try_echo=$ac_try;;
 
3596
esac
 
3597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3598
  (eval "$ac_compile") 2>conftest.er1
 
3599
  ac_status=$?
 
3600
  grep -v '^ *+' conftest.er1 >conftest.err
 
3601
  rm -f conftest.er1
 
3602
  cat conftest.err >&5
 
3603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3604
  (exit $ac_status); } && {
 
3605
         test -z "$ac_c_werror_flag" ||
 
3606
         test ! -s conftest.err
 
3607
       } && test -s conftest.$ac_objext; then
 
3608
  ac_header_compiler=yes
 
3609
else
 
3610
  echo "$as_me: failed program was:" >&5
 
3611
sed 's/^/| /' conftest.$ac_ext >&5
 
3612
 
 
3613
        ac_header_compiler=no
 
3614
fi
 
3615
 
 
3616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3617
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3618
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
3619
 
 
3620
# Is the header present?
 
3621
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3622
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
3623
cat >conftest.$ac_ext <<_ACEOF
 
3624
/* confdefs.h.  */
 
3625
_ACEOF
 
3626
cat confdefs.h >>conftest.$ac_ext
 
3627
cat >>conftest.$ac_ext <<_ACEOF
 
3628
/* end confdefs.h.  */
 
3629
#include <$ac_header>
 
3630
_ACEOF
 
3631
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3632
case "(($ac_try" in
 
3633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3634
  *) ac_try_echo=$ac_try;;
 
3635
esac
 
3636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3637
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3638
  ac_status=$?
 
3639
  grep -v '^ *+' conftest.er1 >conftest.err
 
3640
  rm -f conftest.er1
 
3641
  cat conftest.err >&5
 
3642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3643
  (exit $ac_status); } >/dev/null && {
 
3644
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3645
         test ! -s conftest.err
 
3646
       }; then
 
3647
  ac_header_preproc=yes
 
3648
else
 
3649
  echo "$as_me: failed program was:" >&5
 
3650
sed 's/^/| /' conftest.$ac_ext >&5
 
3651
 
 
3652
  ac_header_preproc=no
 
3653
fi
 
3654
 
 
3655
rm -f conftest.err conftest.$ac_ext
 
3656
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3657
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
3658
 
 
3659
# So?  What about this header?
 
3660
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3661
  yes:no: )
 
3662
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3663
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3664
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3665
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3666
    ac_header_preproc=yes
 
3667
    ;;
 
3668
  no:yes:* )
 
3669
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3670
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3671
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3672
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3673
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3674
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3675
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3676
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3677
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3678
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3679
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3680
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3681
    ( cat <<\_ASBOX
 
3682
## --------------------------------------- ##
 
3683
## Report this to adeona@cs.washington.edu ##
 
3684
## --------------------------------------- ##
 
3685
_ASBOX
 
3686
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
3687
    ;;
 
3688
esac
 
3689
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
3691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3693
else
 
3694
  eval "$as_ac_Header=\$ac_header_preproc"
 
3695
fi
 
3696
ac_res=`eval echo '${'$as_ac_Header'}'`
 
3697
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3698
echo "${ECHO_T}$ac_res" >&6; }
 
3699
 
 
3700
fi
 
3701
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3702
  cat >>confdefs.h <<_ACEOF
 
3703
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3704
_ACEOF
 
3705
 
 
3706
fi
 
3707
 
 
3708
done
 
3709
 
 
3710
 
 
3711
# Checks for typedefs, structures, and compiler characteristics.
 
3712
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
3713
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
3714
if test "${ac_cv_c_const+set}" = set; then
 
3715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3716
else
 
3717
  cat >conftest.$ac_ext <<_ACEOF
 
3718
/* confdefs.h.  */
 
3719
_ACEOF
 
3720
cat confdefs.h >>conftest.$ac_ext
 
3721
cat >>conftest.$ac_ext <<_ACEOF
 
3722
/* end confdefs.h.  */
 
3723
 
 
3724
int
 
3725
main ()
 
3726
{
 
3727
/* FIXME: Include the comments suggested by Paul. */
 
3728
#ifndef __cplusplus
 
3729
  /* Ultrix mips cc rejects this.  */
 
3730
  typedef int charset[2];
 
3731
  const charset cs;
 
3732
  /* SunOS 4.1.1 cc rejects this.  */
 
3733
  char const *const *pcpcc;
 
3734
  char **ppc;
 
3735
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
3736
  struct point {int x, y;};
 
3737
  static struct point const zero = {0,0};
 
3738
  /* AIX XL C 1.02.0.0 rejects this.
 
3739
     It does not let you subtract one const X* pointer from another in
 
3740
     an arm of an if-expression whose if-part is not a constant
 
3741
     expression */
 
3742
  const char *g = "string";
 
3743
  pcpcc = &g + (g ? g-g : 0);
 
3744
  /* HPUX 7.0 cc rejects these. */
 
3745
  ++pcpcc;
 
3746
  ppc = (char**) pcpcc;
 
3747
  pcpcc = (char const *const *) ppc;
 
3748
  { /* SCO 3.2v4 cc rejects this.  */
 
3749
    char *t;
 
3750
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3751
 
 
3752
    *t++ = 0;
 
3753
    if (s) return 0;
 
3754
  }
 
3755
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3756
    int x[] = {25, 17};
 
3757
    const int *foo = &x[0];
 
3758
    ++foo;
 
3759
  }
 
3760
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
3761
    typedef const int *iptr;
 
3762
    iptr p = 0;
 
3763
    ++p;
 
3764
  }
 
3765
  { /* AIX XL C 1.02.0.0 rejects this saying
 
3766
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
3767
    struct s { int j; const int *ap[3]; };
 
3768
    struct s *b; b->j = 5;
 
3769
  }
 
3770
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
3771
    const int foo = 10;
 
3772
    if (!foo) return 0;
 
3773
  }
 
3774
  return !cs[0] && !zero.x;
 
3775
#endif
 
3776
 
 
3777
  ;
 
3778
  return 0;
 
3779
}
 
3780
_ACEOF
 
3781
rm -f conftest.$ac_objext
 
3782
if { (ac_try="$ac_compile"
 
3783
case "(($ac_try" in
 
3784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3785
  *) ac_try_echo=$ac_try;;
 
3786
esac
 
3787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3788
  (eval "$ac_compile") 2>conftest.er1
 
3789
  ac_status=$?
 
3790
  grep -v '^ *+' conftest.er1 >conftest.err
 
3791
  rm -f conftest.er1
 
3792
  cat conftest.err >&5
 
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3794
  (exit $ac_status); } && {
 
3795
         test -z "$ac_c_werror_flag" ||
 
3796
         test ! -s conftest.err
 
3797
       } && test -s conftest.$ac_objext; then
 
3798
  ac_cv_c_const=yes
 
3799
else
 
3800
  echo "$as_me: failed program was:" >&5
 
3801
sed 's/^/| /' conftest.$ac_ext >&5
 
3802
 
 
3803
        ac_cv_c_const=no
 
3804
fi
 
3805
 
 
3806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3807
fi
 
3808
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
3809
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
3810
if test $ac_cv_c_const = no; then
 
3811
 
 
3812
cat >>confdefs.h <<\_ACEOF
 
3813
#define const
 
3814
_ACEOF
 
3815
 
 
3816
fi
 
3817
 
 
3818
{ echo "$as_me:$LINENO: checking for inline" >&5
 
3819
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
3820
if test "${ac_cv_c_inline+set}" = set; then
 
3821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3822
else
 
3823
  ac_cv_c_inline=no
 
3824
for ac_kw in inline __inline__ __inline; do
 
3825
  cat >conftest.$ac_ext <<_ACEOF
 
3826
/* confdefs.h.  */
 
3827
_ACEOF
 
3828
cat confdefs.h >>conftest.$ac_ext
 
3829
cat >>conftest.$ac_ext <<_ACEOF
 
3830
/* end confdefs.h.  */
 
3831
#ifndef __cplusplus
 
3832
typedef int foo_t;
 
3833
static $ac_kw foo_t static_foo () {return 0; }
 
3834
$ac_kw foo_t foo () {return 0; }
 
3835
#endif
 
3836
 
 
3837
_ACEOF
 
3838
rm -f conftest.$ac_objext
 
3839
if { (ac_try="$ac_compile"
 
3840
case "(($ac_try" in
 
3841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3842
  *) ac_try_echo=$ac_try;;
 
3843
esac
 
3844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3845
  (eval "$ac_compile") 2>conftest.er1
 
3846
  ac_status=$?
 
3847
  grep -v '^ *+' conftest.er1 >conftest.err
 
3848
  rm -f conftest.er1
 
3849
  cat conftest.err >&5
 
3850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3851
  (exit $ac_status); } && {
 
3852
         test -z "$ac_c_werror_flag" ||
 
3853
         test ! -s conftest.err
 
3854
       } && test -s conftest.$ac_objext; then
 
3855
  ac_cv_c_inline=$ac_kw
 
3856
else
 
3857
  echo "$as_me: failed program was:" >&5
 
3858
sed 's/^/| /' conftest.$ac_ext >&5
 
3859
 
 
3860
 
 
3861
fi
 
3862
 
 
3863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3864
  test "$ac_cv_c_inline" != no && break
 
3865
done
 
3866
 
 
3867
fi
 
3868
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
3869
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
3870
 
 
3871
 
 
3872
case $ac_cv_c_inline in
 
3873
  inline | yes) ;;
 
3874
  *)
 
3875
    case $ac_cv_c_inline in
 
3876
      no) ac_val=;;
 
3877
      *) ac_val=$ac_cv_c_inline;;
 
3878
    esac
 
3879
    cat >>confdefs.h <<_ACEOF
 
3880
#ifndef __cplusplus
 
3881
#define inline $ac_val
 
3882
#endif
 
3883
_ACEOF
 
3884
    ;;
 
3885
esac
 
3886
 
 
3887
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
3888
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
3889
if test "${ac_cv_header_time+set}" = set; then
 
3890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3891
else
 
3892
  cat >conftest.$ac_ext <<_ACEOF
 
3893
/* confdefs.h.  */
 
3894
_ACEOF
 
3895
cat confdefs.h >>conftest.$ac_ext
 
3896
cat >>conftest.$ac_ext <<_ACEOF
 
3897
/* end confdefs.h.  */
 
3898
#include <sys/types.h>
 
3899
#include <sys/time.h>
 
3900
#include <time.h>
 
3901
 
 
3902
int
 
3903
main ()
 
3904
{
 
3905
if ((struct tm *) 0)
 
3906
return 0;
 
3907
  ;
 
3908
  return 0;
 
3909
}
 
3910
_ACEOF
 
3911
rm -f conftest.$ac_objext
 
3912
if { (ac_try="$ac_compile"
 
3913
case "(($ac_try" in
 
3914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3915
  *) ac_try_echo=$ac_try;;
 
3916
esac
 
3917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3918
  (eval "$ac_compile") 2>conftest.er1
 
3919
  ac_status=$?
 
3920
  grep -v '^ *+' conftest.er1 >conftest.err
 
3921
  rm -f conftest.er1
 
3922
  cat conftest.err >&5
 
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3924
  (exit $ac_status); } && {
 
3925
         test -z "$ac_c_werror_flag" ||
 
3926
         test ! -s conftest.err
 
3927
       } && test -s conftest.$ac_objext; then
 
3928
  ac_cv_header_time=yes
 
3929
else
 
3930
  echo "$as_me: failed program was:" >&5
 
3931
sed 's/^/| /' conftest.$ac_ext >&5
 
3932
 
 
3933
        ac_cv_header_time=no
 
3934
fi
 
3935
 
 
3936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3937
fi
 
3938
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
3939
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
3940
if test $ac_cv_header_time = yes; then
 
3941
 
 
3942
cat >>confdefs.h <<\_ACEOF
 
3943
#define TIME_WITH_SYS_TIME 1
 
3944
_ACEOF
 
3945
 
 
3946
fi
 
3947
 
 
3948
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
3949
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
3950
if test "${ac_cv_struct_tm+set}" = set; then
 
3951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3952
else
 
3953
  cat >conftest.$ac_ext <<_ACEOF
 
3954
/* confdefs.h.  */
 
3955
_ACEOF
 
3956
cat confdefs.h >>conftest.$ac_ext
 
3957
cat >>conftest.$ac_ext <<_ACEOF
 
3958
/* end confdefs.h.  */
 
3959
#include <sys/types.h>
 
3960
#include <time.h>
 
3961
 
 
3962
int
 
3963
main ()
 
3964
{
 
3965
struct tm tm;
 
3966
                                     int *p = &tm.tm_sec;
 
3967
                                     return !p;
 
3968
  ;
 
3969
  return 0;
 
3970
}
 
3971
_ACEOF
 
3972
rm -f conftest.$ac_objext
 
3973
if { (ac_try="$ac_compile"
 
3974
case "(($ac_try" in
 
3975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3976
  *) ac_try_echo=$ac_try;;
 
3977
esac
 
3978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3979
  (eval "$ac_compile") 2>conftest.er1
 
3980
  ac_status=$?
 
3981
  grep -v '^ *+' conftest.er1 >conftest.err
 
3982
  rm -f conftest.er1
 
3983
  cat conftest.err >&5
 
3984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3985
  (exit $ac_status); } && {
 
3986
         test -z "$ac_c_werror_flag" ||
 
3987
         test ! -s conftest.err
 
3988
       } && test -s conftest.$ac_objext; then
 
3989
  ac_cv_struct_tm=time.h
 
3990
else
 
3991
  echo "$as_me: failed program was:" >&5
 
3992
sed 's/^/| /' conftest.$ac_ext >&5
 
3993
 
 
3994
        ac_cv_struct_tm=sys/time.h
 
3995
fi
 
3996
 
 
3997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3998
fi
 
3999
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
4000
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
4001
if test $ac_cv_struct_tm = sys/time.h; then
 
4002
 
 
4003
cat >>confdefs.h <<\_ACEOF
 
4004
#define TM_IN_SYS_TIME 1
 
4005
_ACEOF
 
4006
 
 
4007
fi
 
4008
 
 
4009
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
4010
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
4011
if test "${ac_cv_type_size_t+set}" = set; then
 
4012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4013
else
 
4014
  cat >conftest.$ac_ext <<_ACEOF
 
4015
/* confdefs.h.  */
 
4016
_ACEOF
 
4017
cat confdefs.h >>conftest.$ac_ext
 
4018
cat >>conftest.$ac_ext <<_ACEOF
 
4019
/* end confdefs.h.  */
 
4020
$ac_includes_default
 
4021
typedef size_t ac__type_new_;
 
4022
int
 
4023
main ()
 
4024
{
 
4025
if ((ac__type_new_ *) 0)
 
4026
  return 0;
 
4027
if (sizeof (ac__type_new_))
 
4028
  return 0;
 
4029
  ;
 
4030
  return 0;
 
4031
}
 
4032
_ACEOF
 
4033
rm -f conftest.$ac_objext
 
4034
if { (ac_try="$ac_compile"
 
4035
case "(($ac_try" in
 
4036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4037
  *) ac_try_echo=$ac_try;;
 
4038
esac
 
4039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4040
  (eval "$ac_compile") 2>conftest.er1
 
4041
  ac_status=$?
 
4042
  grep -v '^ *+' conftest.er1 >conftest.err
 
4043
  rm -f conftest.er1
 
4044
  cat conftest.err >&5
 
4045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4046
  (exit $ac_status); } && {
 
4047
         test -z "$ac_c_werror_flag" ||
 
4048
         test ! -s conftest.err
 
4049
       } && test -s conftest.$ac_objext; then
 
4050
  ac_cv_type_size_t=yes
 
4051
else
 
4052
  echo "$as_me: failed program was:" >&5
 
4053
sed 's/^/| /' conftest.$ac_ext >&5
 
4054
 
 
4055
        ac_cv_type_size_t=no
 
4056
fi
 
4057
 
 
4058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4059
fi
 
4060
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4061
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
4062
if test $ac_cv_type_size_t = yes; then
 
4063
  :
 
4064
else
 
4065
 
 
4066
cat >>confdefs.h <<_ACEOF
 
4067
#define size_t unsigned int
 
4068
_ACEOF
 
4069
 
 
4070
fi
 
4071
 
 
4072
 
 
4073
# Checks for library functions.
 
4074
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
 
4075
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
 
4076
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
4077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4078
else
 
4079
  cat >conftest.$ac_ext <<_ACEOF
 
4080
/* confdefs.h.  */
 
4081
_ACEOF
 
4082
cat confdefs.h >>conftest.$ac_ext
 
4083
cat >>conftest.$ac_ext <<_ACEOF
 
4084
/* end confdefs.h.  */
 
4085
#include <error.h>
 
4086
int
 
4087
main ()
 
4088
{
 
4089
error_at_line (0, 0, "", 0, "an error occurred");
 
4090
  ;
 
4091
  return 0;
 
4092
}
 
4093
_ACEOF
 
4094
rm -f conftest.$ac_objext conftest$ac_exeext
 
4095
if { (ac_try="$ac_link"
 
4096
case "(($ac_try" in
 
4097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4098
  *) ac_try_echo=$ac_try;;
 
4099
esac
 
4100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4101
  (eval "$ac_link") 2>conftest.er1
 
4102
  ac_status=$?
 
4103
  grep -v '^ *+' conftest.er1 >conftest.err
 
4104
  rm -f conftest.er1
 
4105
  cat conftest.err >&5
 
4106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4107
  (exit $ac_status); } && {
 
4108
         test -z "$ac_c_werror_flag" ||
 
4109
         test ! -s conftest.err
 
4110
       } && test -s conftest$ac_exeext &&
 
4111
       $as_test_x conftest$ac_exeext; then
 
4112
  ac_cv_lib_error_at_line=yes
 
4113
else
 
4114
  echo "$as_me: failed program was:" >&5
 
4115
sed 's/^/| /' conftest.$ac_ext >&5
 
4116
 
 
4117
        ac_cv_lib_error_at_line=no
 
4118
fi
 
4119
 
 
4120
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4121
      conftest$ac_exeext conftest.$ac_ext
 
4122
fi
 
4123
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
4124
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
 
4125
if test $ac_cv_lib_error_at_line = no; then
 
4126
  case " $LIBOBJS " in
 
4127
  *" error.$ac_objext "* ) ;;
 
4128
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
4129
 ;;
 
4130
esac
 
4131
 
 
4132
fi
 
4133
 
 
4134
 
 
4135
for ac_header in stdlib.h
 
4136
do
 
4137
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4138
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4139
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4140
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4141
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4143
fi
 
4144
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4145
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4146
echo "${ECHO_T}$ac_res" >&6; }
 
4147
else
 
4148
  # Is the header compilable?
 
4149
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4150
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4151
cat >conftest.$ac_ext <<_ACEOF
 
4152
/* confdefs.h.  */
 
4153
_ACEOF
 
4154
cat confdefs.h >>conftest.$ac_ext
 
4155
cat >>conftest.$ac_ext <<_ACEOF
 
4156
/* end confdefs.h.  */
 
4157
$ac_includes_default
 
4158
#include <$ac_header>
 
4159
_ACEOF
 
4160
rm -f conftest.$ac_objext
 
4161
if { (ac_try="$ac_compile"
 
4162
case "(($ac_try" in
 
4163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4164
  *) ac_try_echo=$ac_try;;
 
4165
esac
 
4166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4167
  (eval "$ac_compile") 2>conftest.er1
 
4168
  ac_status=$?
 
4169
  grep -v '^ *+' conftest.er1 >conftest.err
 
4170
  rm -f conftest.er1
 
4171
  cat conftest.err >&5
 
4172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4173
  (exit $ac_status); } && {
 
4174
         test -z "$ac_c_werror_flag" ||
 
4175
         test ! -s conftest.err
 
4176
       } && test -s conftest.$ac_objext; then
 
4177
  ac_header_compiler=yes
 
4178
else
 
4179
  echo "$as_me: failed program was:" >&5
 
4180
sed 's/^/| /' conftest.$ac_ext >&5
 
4181
 
 
4182
        ac_header_compiler=no
 
4183
fi
 
4184
 
 
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4186
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4187
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4188
 
 
4189
# Is the header present?
 
4190
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4191
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4192
cat >conftest.$ac_ext <<_ACEOF
 
4193
/* confdefs.h.  */
 
4194
_ACEOF
 
4195
cat confdefs.h >>conftest.$ac_ext
 
4196
cat >>conftest.$ac_ext <<_ACEOF
 
4197
/* end confdefs.h.  */
 
4198
#include <$ac_header>
 
4199
_ACEOF
 
4200
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4201
case "(($ac_try" in
 
4202
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4203
  *) ac_try_echo=$ac_try;;
 
4204
esac
 
4205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4206
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4207
  ac_status=$?
 
4208
  grep -v '^ *+' conftest.er1 >conftest.err
 
4209
  rm -f conftest.er1
 
4210
  cat conftest.err >&5
 
4211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4212
  (exit $ac_status); } >/dev/null && {
 
4213
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4214
         test ! -s conftest.err
 
4215
       }; then
 
4216
  ac_header_preproc=yes
 
4217
else
 
4218
  echo "$as_me: failed program was:" >&5
 
4219
sed 's/^/| /' conftest.$ac_ext >&5
 
4220
 
 
4221
  ac_header_preproc=no
 
4222
fi
 
4223
 
 
4224
rm -f conftest.err conftest.$ac_ext
 
4225
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4226
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4227
 
 
4228
# So?  What about this header?
 
4229
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4230
  yes:no: )
 
4231
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4232
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4233
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4234
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4235
    ac_header_preproc=yes
 
4236
    ;;
 
4237
  no:yes:* )
 
4238
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4239
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4240
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4241
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4242
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4243
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4244
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4245
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4246
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4247
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4248
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4249
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4250
    ( cat <<\_ASBOX
 
4251
## --------------------------------------- ##
 
4252
## Report this to adeona@cs.washington.edu ##
 
4253
## --------------------------------------- ##
 
4254
_ASBOX
 
4255
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
4256
    ;;
 
4257
esac
 
4258
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4259
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4260
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4262
else
 
4263
  eval "$as_ac_Header=\$ac_header_preproc"
 
4264
fi
 
4265
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4266
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4267
echo "${ECHO_T}$ac_res" >&6; }
 
4268
 
 
4269
fi
 
4270
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4271
  cat >>confdefs.h <<_ACEOF
 
4272
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4273
_ACEOF
 
4274
 
 
4275
fi
 
4276
 
 
4277
done
 
4278
 
 
4279
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
4280
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
4281
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
4282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4283
else
 
4284
  if test "$cross_compiling" = yes; then
 
4285
  ac_cv_func_malloc_0_nonnull=no
 
4286
else
 
4287
  cat >conftest.$ac_ext <<_ACEOF
 
4288
/* confdefs.h.  */
 
4289
_ACEOF
 
4290
cat confdefs.h >>conftest.$ac_ext
 
4291
cat >>conftest.$ac_ext <<_ACEOF
 
4292
/* end confdefs.h.  */
 
4293
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
4294
# include <stdlib.h>
 
4295
#else
 
4296
char *malloc ();
 
4297
#endif
 
4298
 
 
4299
int
 
4300
main ()
 
4301
{
 
4302
return ! malloc (0);
 
4303
  ;
 
4304
  return 0;
 
4305
}
 
4306
_ACEOF
 
4307
rm -f conftest$ac_exeext
 
4308
if { (ac_try="$ac_link"
 
4309
case "(($ac_try" in
 
4310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4311
  *) ac_try_echo=$ac_try;;
 
4312
esac
 
4313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4314
  (eval "$ac_link") 2>&5
 
4315
  ac_status=$?
 
4316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4317
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4318
  { (case "(($ac_try" in
 
4319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4320
  *) ac_try_echo=$ac_try;;
 
4321
esac
 
4322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4323
  (eval "$ac_try") 2>&5
 
4324
  ac_status=$?
 
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4326
  (exit $ac_status); }; }; then
 
4327
  ac_cv_func_malloc_0_nonnull=yes
 
4328
else
 
4329
  echo "$as_me: program exited with status $ac_status" >&5
 
4330
echo "$as_me: failed program was:" >&5
 
4331
sed 's/^/| /' conftest.$ac_ext >&5
 
4332
 
 
4333
( exit $ac_status )
 
4334
ac_cv_func_malloc_0_nonnull=no
 
4335
fi
 
4336
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4337
fi
 
4338
 
 
4339
 
 
4340
fi
 
4341
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
4342
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
4343
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
4344
 
 
4345
cat >>confdefs.h <<\_ACEOF
 
4346
#define HAVE_MALLOC 1
 
4347
_ACEOF
 
4348
 
 
4349
else
 
4350
  cat >>confdefs.h <<\_ACEOF
 
4351
#define HAVE_MALLOC 0
 
4352
_ACEOF
 
4353
 
 
4354
   case " $LIBOBJS " in
 
4355
  *" malloc.$ac_objext "* ) ;;
 
4356
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
4357
 ;;
 
4358
esac
 
4359
 
 
4360
 
 
4361
cat >>confdefs.h <<\_ACEOF
 
4362
#define malloc rpl_malloc
 
4363
_ACEOF
 
4364
 
 
4365
fi
 
4366
 
 
4367
 
 
4368
 
 
4369
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
 
4370
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
 
4371
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
4372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4373
else
 
4374
  if test "$cross_compiling" = yes; then
 
4375
  ac_cv_func_memcmp_working=no
 
4376
else
 
4377
  cat >conftest.$ac_ext <<_ACEOF
 
4378
/* confdefs.h.  */
 
4379
_ACEOF
 
4380
cat confdefs.h >>conftest.$ac_ext
 
4381
cat >>conftest.$ac_ext <<_ACEOF
 
4382
/* end confdefs.h.  */
 
4383
$ac_includes_default
 
4384
int
 
4385
main ()
 
4386
{
 
4387
 
 
4388
  /* Some versions of memcmp are not 8-bit clean.  */
 
4389
  char c0 = '\100', c1 = '\200', c2 = '\201';
 
4390
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
4391
    return 1;
 
4392
 
 
4393
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
4394
     or more and with at least one buffer not starting on a 4-byte boundary.
 
4395
     William Lewis provided this test program.   */
 
4396
  {
 
4397
    char foo[21];
 
4398
    char bar[21];
 
4399
    int i;
 
4400
    for (i = 0; i < 4; i++)
 
4401
      {
 
4402
        char *a = foo + i;
 
4403
        char *b = bar + i;
 
4404
        strcpy (a, "--------01111111");
 
4405
        strcpy (b, "--------10000000");
 
4406
        if (memcmp (a, b, 16) >= 0)
 
4407
          return 1;
 
4408
      }
 
4409
    return 0;
 
4410
  }
 
4411
 
 
4412
  ;
 
4413
  return 0;
 
4414
}
 
4415
_ACEOF
 
4416
rm -f conftest$ac_exeext
 
4417
if { (ac_try="$ac_link"
 
4418
case "(($ac_try" in
 
4419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4420
  *) ac_try_echo=$ac_try;;
 
4421
esac
 
4422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4423
  (eval "$ac_link") 2>&5
 
4424
  ac_status=$?
 
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4426
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4427
  { (case "(($ac_try" in
 
4428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4429
  *) ac_try_echo=$ac_try;;
 
4430
esac
 
4431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4432
  (eval "$ac_try") 2>&5
 
4433
  ac_status=$?
 
4434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4435
  (exit $ac_status); }; }; then
 
4436
  ac_cv_func_memcmp_working=yes
 
4437
else
 
4438
  echo "$as_me: program exited with status $ac_status" >&5
 
4439
echo "$as_me: failed program was:" >&5
 
4440
sed 's/^/| /' conftest.$ac_ext >&5
 
4441
 
 
4442
( exit $ac_status )
 
4443
ac_cv_func_memcmp_working=no
 
4444
fi
 
4445
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4446
fi
 
4447
 
 
4448
 
 
4449
fi
 
4450
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
4451
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
 
4452
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
 
4453
  *" memcmp.$ac_objext "* ) ;;
 
4454
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
4455
 ;;
 
4456
esac
 
4457
 
 
4458
 
 
4459
 
 
4460
 
 
4461
 
 
4462
 
 
4463
for ac_header in $ac_header_list
 
4464
do
 
4465
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4466
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4467
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4468
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4469
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4471
fi
 
4472
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4473
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4474
echo "${ECHO_T}$ac_res" >&6; }
 
4475
else
 
4476
  # Is the header compilable?
 
4477
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4478
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4479
cat >conftest.$ac_ext <<_ACEOF
 
4480
/* confdefs.h.  */
 
4481
_ACEOF
 
4482
cat confdefs.h >>conftest.$ac_ext
 
4483
cat >>conftest.$ac_ext <<_ACEOF
 
4484
/* end confdefs.h.  */
 
4485
$ac_includes_default
 
4486
#include <$ac_header>
 
4487
_ACEOF
 
4488
rm -f conftest.$ac_objext
 
4489
if { (ac_try="$ac_compile"
 
4490
case "(($ac_try" in
 
4491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4492
  *) ac_try_echo=$ac_try;;
 
4493
esac
 
4494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4495
  (eval "$ac_compile") 2>conftest.er1
 
4496
  ac_status=$?
 
4497
  grep -v '^ *+' conftest.er1 >conftest.err
 
4498
  rm -f conftest.er1
 
4499
  cat conftest.err >&5
 
4500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4501
  (exit $ac_status); } && {
 
4502
         test -z "$ac_c_werror_flag" ||
 
4503
         test ! -s conftest.err
 
4504
       } && test -s conftest.$ac_objext; then
 
4505
  ac_header_compiler=yes
 
4506
else
 
4507
  echo "$as_me: failed program was:" >&5
 
4508
sed 's/^/| /' conftest.$ac_ext >&5
 
4509
 
 
4510
        ac_header_compiler=no
 
4511
fi
 
4512
 
 
4513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4514
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4515
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4516
 
 
4517
# Is the header present?
 
4518
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4519
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4520
cat >conftest.$ac_ext <<_ACEOF
 
4521
/* confdefs.h.  */
 
4522
_ACEOF
 
4523
cat confdefs.h >>conftest.$ac_ext
 
4524
cat >>conftest.$ac_ext <<_ACEOF
 
4525
/* end confdefs.h.  */
 
4526
#include <$ac_header>
 
4527
_ACEOF
 
4528
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4529
case "(($ac_try" in
 
4530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4531
  *) ac_try_echo=$ac_try;;
 
4532
esac
 
4533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4534
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4535
  ac_status=$?
 
4536
  grep -v '^ *+' conftest.er1 >conftest.err
 
4537
  rm -f conftest.er1
 
4538
  cat conftest.err >&5
 
4539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4540
  (exit $ac_status); } >/dev/null && {
 
4541
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4542
         test ! -s conftest.err
 
4543
       }; then
 
4544
  ac_header_preproc=yes
 
4545
else
 
4546
  echo "$as_me: failed program was:" >&5
 
4547
sed 's/^/| /' conftest.$ac_ext >&5
 
4548
 
 
4549
  ac_header_preproc=no
 
4550
fi
 
4551
 
 
4552
rm -f conftest.err conftest.$ac_ext
 
4553
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4554
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4555
 
 
4556
# So?  What about this header?
 
4557
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4558
  yes:no: )
 
4559
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4560
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4561
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4562
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4563
    ac_header_preproc=yes
 
4564
    ;;
 
4565
  no:yes:* )
 
4566
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4567
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4568
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4569
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4570
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4571
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4572
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4573
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4574
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4575
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4576
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4577
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4578
    ( cat <<\_ASBOX
 
4579
## --------------------------------------- ##
 
4580
## Report this to adeona@cs.washington.edu ##
 
4581
## --------------------------------------- ##
 
4582
_ASBOX
 
4583
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
4584
    ;;
 
4585
esac
 
4586
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4587
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4588
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4590
else
 
4591
  eval "$as_ac_Header=\$ac_header_preproc"
 
4592
fi
 
4593
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4594
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4595
echo "${ECHO_T}$ac_res" >&6; }
 
4596
 
 
4597
fi
 
4598
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4599
  cat >>confdefs.h <<_ACEOF
 
4600
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4601
_ACEOF
 
4602
 
 
4603
fi
 
4604
 
 
4605
done
 
4606
 
 
4607
 
 
4608
 
 
4609
 
 
4610
 
 
4611
 
 
4612
 
 
4613
 
 
4614
 
 
4615
for ac_func in $ac_func_list
 
4616
do
 
4617
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4618
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4619
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
4620
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
4621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4622
else
 
4623
  cat >conftest.$ac_ext <<_ACEOF
 
4624
/* confdefs.h.  */
 
4625
_ACEOF
 
4626
cat confdefs.h >>conftest.$ac_ext
 
4627
cat >>conftest.$ac_ext <<_ACEOF
 
4628
/* end confdefs.h.  */
 
4629
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4630
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4631
#define $ac_func innocuous_$ac_func
 
4632
 
 
4633
/* System header to define __stub macros and hopefully few prototypes,
 
4634
    which can conflict with char $ac_func (); below.
 
4635
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4636
    <limits.h> exists even on freestanding compilers.  */
 
4637
 
 
4638
#ifdef __STDC__
 
4639
# include <limits.h>
 
4640
#else
 
4641
# include <assert.h>
 
4642
#endif
 
4643
 
 
4644
#undef $ac_func
 
4645
 
 
4646
/* Override any GCC internal prototype to avoid an error.
 
4647
   Use char because int might match the return type of a GCC
 
4648
   builtin and then its argument prototype would still apply.  */
 
4649
#ifdef __cplusplus
 
4650
extern "C"
 
4651
#endif
 
4652
char $ac_func ();
 
4653
/* The GNU C library defines this for functions which it implements
 
4654
    to always fail with ENOSYS.  Some functions are actually named
 
4655
    something starting with __ and the normal name is an alias.  */
 
4656
#if defined __stub_$ac_func || defined __stub___$ac_func
 
4657
choke me
 
4658
#endif
 
4659
 
 
4660
int
 
4661
main ()
 
4662
{
 
4663
return $ac_func ();
 
4664
  ;
 
4665
  return 0;
 
4666
}
 
4667
_ACEOF
 
4668
rm -f conftest.$ac_objext conftest$ac_exeext
 
4669
if { (ac_try="$ac_link"
 
4670
case "(($ac_try" in
 
4671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4672
  *) ac_try_echo=$ac_try;;
 
4673
esac
 
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4675
  (eval "$ac_link") 2>conftest.er1
 
4676
  ac_status=$?
 
4677
  grep -v '^ *+' conftest.er1 >conftest.err
 
4678
  rm -f conftest.er1
 
4679
  cat conftest.err >&5
 
4680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4681
  (exit $ac_status); } && {
 
4682
         test -z "$ac_c_werror_flag" ||
 
4683
         test ! -s conftest.err
 
4684
       } && test -s conftest$ac_exeext &&
 
4685
       $as_test_x conftest$ac_exeext; then
 
4686
  eval "$as_ac_var=yes"
 
4687
else
 
4688
  echo "$as_me: failed program was:" >&5
 
4689
sed 's/^/| /' conftest.$ac_ext >&5
 
4690
 
 
4691
        eval "$as_ac_var=no"
 
4692
fi
 
4693
 
 
4694
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4695
      conftest$ac_exeext conftest.$ac_ext
 
4696
fi
 
4697
ac_res=`eval echo '${'$as_ac_var'}'`
 
4698
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4699
echo "${ECHO_T}$ac_res" >&6; }
 
4700
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4701
  cat >>confdefs.h <<_ACEOF
 
4702
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4703
_ACEOF
 
4704
 
 
4705
fi
 
4706
done
 
4707
 
 
4708
 
 
4709
 
 
4710
 
 
4711
 
 
4712
 
 
4713
 
 
4714
 
 
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
{ echo "$as_me:$LINENO: checking for working mktime" >&5
 
4725
echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
 
4726
if test "${ac_cv_func_working_mktime+set}" = set; then
 
4727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4728
else
 
4729
  if test "$cross_compiling" = yes; then
 
4730
  ac_cv_func_working_mktime=no
 
4731
else
 
4732
  cat >conftest.$ac_ext <<_ACEOF
 
4733
/* confdefs.h.  */
 
4734
_ACEOF
 
4735
cat confdefs.h >>conftest.$ac_ext
 
4736
cat >>conftest.$ac_ext <<_ACEOF
 
4737
/* end confdefs.h.  */
 
4738
/* Test program from Paul Eggert and Tony Leneis.  */
 
4739
#ifdef TIME_WITH_SYS_TIME
 
4740
# include <sys/time.h>
 
4741
# include <time.h>
 
4742
#else
 
4743
# ifdef HAVE_SYS_TIME_H
 
4744
#  include <sys/time.h>
 
4745
# else
 
4746
#  include <time.h>
 
4747
# endif
 
4748
#endif
 
4749
 
 
4750
#include <stdlib.h>
 
4751
 
 
4752
#ifdef HAVE_UNISTD_H
 
4753
# include <unistd.h>
 
4754
#endif
 
4755
 
 
4756
#ifndef HAVE_ALARM
 
4757
# define alarm(X) /* empty */
 
4758
#endif
 
4759
 
 
4760
/* Work around redefinition to rpl_putenv by other config tests.  */
 
4761
#undef putenv
 
4762
 
 
4763
static time_t time_t_max;
 
4764
static time_t time_t_min;
 
4765
 
 
4766
/* Values we'll use to set the TZ environment variable.  */
 
4767
static char *tz_strings[] = {
 
4768
  (char *) 0, "TZ=GMT0", "TZ=JST-9",
 
4769
  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
 
4770
};
 
4771
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
 
4772
 
 
4773
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
 
4774
   Based on a problem report from Andreas Jaeger.  */
 
4775
static int
 
4776
spring_forward_gap ()
 
4777
{
 
4778
  /* glibc (up to about 1998-10-07) failed this test. */
 
4779
  struct tm tm;
 
4780
 
 
4781
  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
 
4782
     instead of "TZ=America/Vancouver" in order to detect the bug even
 
4783
     on systems that don't support the Olson extension, or don't have the
 
4784
     full zoneinfo tables installed.  */
 
4785
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
 
4786
 
 
4787
  tm.tm_year = 98;
 
4788
  tm.tm_mon = 3;
 
4789
  tm.tm_mday = 5;
 
4790
  tm.tm_hour = 2;
 
4791
  tm.tm_min = 0;
 
4792
  tm.tm_sec = 0;
 
4793
  tm.tm_isdst = -1;
 
4794
  return mktime (&tm) != (time_t) -1;
 
4795
}
 
4796
 
 
4797
static int
 
4798
mktime_test1 (now)
 
4799
     time_t now;
 
4800
{
 
4801
  struct tm *lt;
 
4802
  return ! (lt = localtime (&now)) || mktime (lt) == now;
 
4803
}
 
4804
 
 
4805
static int
 
4806
mktime_test (now)
 
4807
     time_t now;
 
4808
{
 
4809
  return (mktime_test1 (now)
 
4810
          && mktime_test1 ((time_t) (time_t_max - now))
 
4811
          && mktime_test1 ((time_t) (time_t_min + now)));
 
4812
}
 
4813
 
 
4814
static int
 
4815
irix_6_4_bug ()
 
4816
{
 
4817
  /* Based on code from Ariel Faigon.  */
 
4818
  struct tm tm;
 
4819
  tm.tm_year = 96;
 
4820
  tm.tm_mon = 3;
 
4821
  tm.tm_mday = 0;
 
4822
  tm.tm_hour = 0;
 
4823
  tm.tm_min = 0;
 
4824
  tm.tm_sec = 0;
 
4825
  tm.tm_isdst = -1;
 
4826
  mktime (&tm);
 
4827
  return tm.tm_mon == 2 && tm.tm_mday == 31;
 
4828
}
 
4829
 
 
4830
static int
 
4831
bigtime_test (j)
 
4832
     int j;
 
4833
{
 
4834
  struct tm tm;
 
4835
  time_t now;
 
4836
  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
 
4837
  now = mktime (&tm);
 
4838
  if (now != (time_t) -1)
 
4839
    {
 
4840
      struct tm *lt = localtime (&now);
 
4841
      if (! (lt
 
4842
             && lt->tm_year == tm.tm_year
 
4843
             && lt->tm_mon == tm.tm_mon
 
4844
             && lt->tm_mday == tm.tm_mday
 
4845
             && lt->tm_hour == tm.tm_hour
 
4846
             && lt->tm_min == tm.tm_min
 
4847
             && lt->tm_sec == tm.tm_sec
 
4848
             && lt->tm_yday == tm.tm_yday
 
4849
             && lt->tm_wday == tm.tm_wday
 
4850
             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
 
4851
                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
 
4852
        return 0;
 
4853
    }
 
4854
  return 1;
 
4855
}
 
4856
 
 
4857
static int
 
4858
year_2050_test ()
 
4859
{
 
4860
  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
 
4861
     ignoring leap seconds.  */
 
4862
  unsigned long int answer = 2527315200UL;
 
4863
 
 
4864
  struct tm tm;
 
4865
  time_t t;
 
4866
  tm.tm_year = 2050 - 1900;
 
4867
  tm.tm_mon = 2 - 1;
 
4868
  tm.tm_mday = 1;
 
4869
  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
 
4870
  tm.tm_isdst = -1;
 
4871
 
 
4872
  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
 
4873
     instead of "TZ=America/Vancouver" in order to detect the bug even
 
4874
     on systems that don't support the Olson extension, or don't have the
 
4875
     full zoneinfo tables installed.  */
 
4876
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
 
4877
 
 
4878
  t = mktime (&tm);
 
4879
 
 
4880
  /* Check that the result is either a failure, or close enough
 
4881
     to the correct answer that we can assume the discrepancy is
 
4882
     due to leap seconds.  */
 
4883
  return (t == (time_t) -1
 
4884
          || (0 < t && answer - 120 <= t && t <= answer + 120));
 
4885
}
 
4886
 
 
4887
int
 
4888
main ()
 
4889
{
 
4890
  time_t t, delta;
 
4891
  int i, j;
 
4892
 
 
4893
  /* This test makes some buggy mktime implementations loop.
 
4894
     Give up after 60 seconds; a mktime slower than that
 
4895
     isn't worth using anyway.  */
 
4896
  alarm (60);
 
4897
 
 
4898
  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
 
4899
    continue;
 
4900
  time_t_max--;
 
4901
  if ((time_t) -1 < 0)
 
4902
    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
 
4903
      continue;
 
4904
  delta = time_t_max / 997; /* a suitable prime number */
 
4905
  for (i = 0; i < N_STRINGS; i++)
 
4906
    {
 
4907
      if (tz_strings[i])
 
4908
        putenv (tz_strings[i]);
 
4909
 
 
4910
      for (t = 0; t <= time_t_max - delta; t += delta)
 
4911
        if (! mktime_test (t))
 
4912
          return 1;
 
4913
      if (! (mktime_test ((time_t) 1)
 
4914
             && mktime_test ((time_t) (60 * 60))
 
4915
             && mktime_test ((time_t) (60 * 60 * 24))))
 
4916
        return 1;
 
4917
 
 
4918
      for (j = 1; 0 < j; j *= 2)
 
4919
        if (! bigtime_test (j))
 
4920
          return 1;
 
4921
      if (! bigtime_test (j - 1))
 
4922
        return 1;
 
4923
    }
 
4924
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
 
4925
}
 
4926
_ACEOF
 
4927
rm -f conftest$ac_exeext
 
4928
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4934
  (eval "$ac_link") 2>&5
 
4935
  ac_status=$?
 
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4937
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4938
  { (case "(($ac_try" in
 
4939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4940
  *) ac_try_echo=$ac_try;;
 
4941
esac
 
4942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4943
  (eval "$ac_try") 2>&5
 
4944
  ac_status=$?
 
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); }; }; then
 
4947
  ac_cv_func_working_mktime=yes
 
4948
else
 
4949
  echo "$as_me: program exited with status $ac_status" >&5
 
4950
echo "$as_me: failed program was:" >&5
 
4951
sed 's/^/| /' conftest.$ac_ext >&5
 
4952
 
 
4953
( exit $ac_status )
 
4954
ac_cv_func_working_mktime=no
 
4955
fi
 
4956
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4957
fi
 
4958
 
 
4959
 
 
4960
fi
 
4961
{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
 
4962
echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
 
4963
if test $ac_cv_func_working_mktime = no; then
 
4964
  case " $LIBOBJS " in
 
4965
  *" mktime.$ac_objext "* ) ;;
 
4966
  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
 
4967
 ;;
 
4968
esac
 
4969
 
 
4970
fi
 
4971
 
 
4972
 
 
4973
for ac_header in stdlib.h
 
4974
do
 
4975
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4976
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4977
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4978
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4979
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4981
fi
 
4982
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4983
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4984
echo "${ECHO_T}$ac_res" >&6; }
 
4985
else
 
4986
  # Is the header compilable?
 
4987
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4988
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4989
cat >conftest.$ac_ext <<_ACEOF
 
4990
/* confdefs.h.  */
 
4991
_ACEOF
 
4992
cat confdefs.h >>conftest.$ac_ext
 
4993
cat >>conftest.$ac_ext <<_ACEOF
 
4994
/* end confdefs.h.  */
 
4995
$ac_includes_default
 
4996
#include <$ac_header>
 
4997
_ACEOF
 
4998
rm -f conftest.$ac_objext
 
4999
if { (ac_try="$ac_compile"
 
5000
case "(($ac_try" in
 
5001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5002
  *) ac_try_echo=$ac_try;;
 
5003
esac
 
5004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5005
  (eval "$ac_compile") 2>conftest.er1
 
5006
  ac_status=$?
 
5007
  grep -v '^ *+' conftest.er1 >conftest.err
 
5008
  rm -f conftest.er1
 
5009
  cat conftest.err >&5
 
5010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5011
  (exit $ac_status); } && {
 
5012
         test -z "$ac_c_werror_flag" ||
 
5013
         test ! -s conftest.err
 
5014
       } && test -s conftest.$ac_objext; then
 
5015
  ac_header_compiler=yes
 
5016
else
 
5017
  echo "$as_me: failed program was:" >&5
 
5018
sed 's/^/| /' conftest.$ac_ext >&5
 
5019
 
 
5020
        ac_header_compiler=no
 
5021
fi
 
5022
 
 
5023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5024
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5025
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5026
 
 
5027
# Is the header present?
 
5028
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5029
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5030
cat >conftest.$ac_ext <<_ACEOF
 
5031
/* confdefs.h.  */
 
5032
_ACEOF
 
5033
cat confdefs.h >>conftest.$ac_ext
 
5034
cat >>conftest.$ac_ext <<_ACEOF
 
5035
/* end confdefs.h.  */
 
5036
#include <$ac_header>
 
5037
_ACEOF
 
5038
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5039
case "(($ac_try" in
 
5040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5041
  *) ac_try_echo=$ac_try;;
 
5042
esac
 
5043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5044
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5045
  ac_status=$?
 
5046
  grep -v '^ *+' conftest.er1 >conftest.err
 
5047
  rm -f conftest.er1
 
5048
  cat conftest.err >&5
 
5049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5050
  (exit $ac_status); } >/dev/null && {
 
5051
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5052
         test ! -s conftest.err
 
5053
       }; then
 
5054
  ac_header_preproc=yes
 
5055
else
 
5056
  echo "$as_me: failed program was:" >&5
 
5057
sed 's/^/| /' conftest.$ac_ext >&5
 
5058
 
 
5059
  ac_header_preproc=no
 
5060
fi
 
5061
 
 
5062
rm -f conftest.err conftest.$ac_ext
 
5063
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5064
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5065
 
 
5066
# So?  What about this header?
 
5067
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5068
  yes:no: )
 
5069
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5070
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5071
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5072
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5073
    ac_header_preproc=yes
 
5074
    ;;
 
5075
  no:yes:* )
 
5076
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5077
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5078
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5079
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5080
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5081
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5082
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5083
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5084
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5085
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5086
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5087
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5088
    ( cat <<\_ASBOX
 
5089
## --------------------------------------- ##
 
5090
## Report this to adeona@cs.washington.edu ##
 
5091
## --------------------------------------- ##
 
5092
_ASBOX
 
5093
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5094
    ;;
 
5095
esac
 
5096
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5098
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5100
else
 
5101
  eval "$as_ac_Header=\$ac_header_preproc"
 
5102
fi
 
5103
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5104
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5105
echo "${ECHO_T}$ac_res" >&6; }
 
5106
 
 
5107
fi
 
5108
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5109
  cat >>confdefs.h <<_ACEOF
 
5110
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5111
_ACEOF
 
5112
 
 
5113
fi
 
5114
 
 
5115
done
 
5116
 
 
5117
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
5118
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
 
5119
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
 
5120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5121
else
 
5122
  if test "$cross_compiling" = yes; then
 
5123
  ac_cv_func_realloc_0_nonnull=no
 
5124
else
 
5125
  cat >conftest.$ac_ext <<_ACEOF
 
5126
/* confdefs.h.  */
 
5127
_ACEOF
 
5128
cat confdefs.h >>conftest.$ac_ext
 
5129
cat >>conftest.$ac_ext <<_ACEOF
 
5130
/* end confdefs.h.  */
 
5131
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
5132
# include <stdlib.h>
 
5133
#else
 
5134
char *realloc ();
 
5135
#endif
 
5136
 
 
5137
int
 
5138
main ()
 
5139
{
 
5140
return ! realloc (0, 0);
 
5141
  ;
 
5142
  return 0;
 
5143
}
 
5144
_ACEOF
 
5145
rm -f conftest$ac_exeext
 
5146
if { (ac_try="$ac_link"
 
5147
case "(($ac_try" in
 
5148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5149
  *) ac_try_echo=$ac_try;;
 
5150
esac
 
5151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5152
  (eval "$ac_link") 2>&5
 
5153
  ac_status=$?
 
5154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5155
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5156
  { (case "(($ac_try" in
 
5157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5158
  *) ac_try_echo=$ac_try;;
 
5159
esac
 
5160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5161
  (eval "$ac_try") 2>&5
 
5162
  ac_status=$?
 
5163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5164
  (exit $ac_status); }; }; then
 
5165
  ac_cv_func_realloc_0_nonnull=yes
 
5166
else
 
5167
  echo "$as_me: program exited with status $ac_status" >&5
 
5168
echo "$as_me: failed program was:" >&5
 
5169
sed 's/^/| /' conftest.$ac_ext >&5
 
5170
 
 
5171
( exit $ac_status )
 
5172
ac_cv_func_realloc_0_nonnull=no
 
5173
fi
 
5174
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5175
fi
 
5176
 
 
5177
 
 
5178
fi
 
5179
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
5180
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
 
5181
if test $ac_cv_func_realloc_0_nonnull = yes; then
 
5182
 
 
5183
cat >>confdefs.h <<\_ACEOF
 
5184
#define HAVE_REALLOC 1
 
5185
_ACEOF
 
5186
 
 
5187
else
 
5188
  cat >>confdefs.h <<\_ACEOF
 
5189
#define HAVE_REALLOC 0
 
5190
_ACEOF
 
5191
 
 
5192
   case " $LIBOBJS " in
 
5193
  *" realloc.$ac_objext "* ) ;;
 
5194
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
5195
 ;;
 
5196
esac
 
5197
 
 
5198
 
 
5199
cat >>confdefs.h <<\_ACEOF
 
5200
#define realloc rpl_realloc
 
5201
_ACEOF
 
5202
 
 
5203
fi
 
5204
 
 
5205
 
 
5206
 
 
5207
 
 
5208
for ac_func in strftime
 
5209
do
 
5210
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5211
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5212
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5213
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5215
else
 
5216
  cat >conftest.$ac_ext <<_ACEOF
 
5217
/* confdefs.h.  */
 
5218
_ACEOF
 
5219
cat confdefs.h >>conftest.$ac_ext
 
5220
cat >>conftest.$ac_ext <<_ACEOF
 
5221
/* end confdefs.h.  */
 
5222
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5223
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5224
#define $ac_func innocuous_$ac_func
 
5225
 
 
5226
/* System header to define __stub macros and hopefully few prototypes,
 
5227
    which can conflict with char $ac_func (); below.
 
5228
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5229
    <limits.h> exists even on freestanding compilers.  */
 
5230
 
 
5231
#ifdef __STDC__
 
5232
# include <limits.h>
 
5233
#else
 
5234
# include <assert.h>
 
5235
#endif
 
5236
 
 
5237
#undef $ac_func
 
5238
 
 
5239
/* Override any GCC internal prototype to avoid an error.
 
5240
   Use char because int might match the return type of a GCC
 
5241
   builtin and then its argument prototype would still apply.  */
 
5242
#ifdef __cplusplus
 
5243
extern "C"
 
5244
#endif
 
5245
char $ac_func ();
 
5246
/* The GNU C library defines this for functions which it implements
 
5247
    to always fail with ENOSYS.  Some functions are actually named
 
5248
    something starting with __ and the normal name is an alias.  */
 
5249
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5250
choke me
 
5251
#endif
 
5252
 
 
5253
int
 
5254
main ()
 
5255
{
 
5256
return $ac_func ();
 
5257
  ;
 
5258
  return 0;
 
5259
}
 
5260
_ACEOF
 
5261
rm -f conftest.$ac_objext conftest$ac_exeext
 
5262
if { (ac_try="$ac_link"
 
5263
case "(($ac_try" in
 
5264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5265
  *) ac_try_echo=$ac_try;;
 
5266
esac
 
5267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5268
  (eval "$ac_link") 2>conftest.er1
 
5269
  ac_status=$?
 
5270
  grep -v '^ *+' conftest.er1 >conftest.err
 
5271
  rm -f conftest.er1
 
5272
  cat conftest.err >&5
 
5273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5274
  (exit $ac_status); } && {
 
5275
         test -z "$ac_c_werror_flag" ||
 
5276
         test ! -s conftest.err
 
5277
       } && test -s conftest$ac_exeext &&
 
5278
       $as_test_x conftest$ac_exeext; then
 
5279
  eval "$as_ac_var=yes"
 
5280
else
 
5281
  echo "$as_me: failed program was:" >&5
 
5282
sed 's/^/| /' conftest.$ac_ext >&5
 
5283
 
 
5284
        eval "$as_ac_var=no"
 
5285
fi
 
5286
 
 
5287
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5288
      conftest$ac_exeext conftest.$ac_ext
 
5289
fi
 
5290
ac_res=`eval echo '${'$as_ac_var'}'`
 
5291
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5292
echo "${ECHO_T}$ac_res" >&6; }
 
5293
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5294
  cat >>confdefs.h <<_ACEOF
 
5295
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5296
_ACEOF
 
5297
 
 
5298
else
 
5299
  # strftime is in -lintl on SCO UNIX.
 
5300
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
 
5301
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
 
5302
if test "${ac_cv_lib_intl_strftime+set}" = set; then
 
5303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5304
else
 
5305
  ac_check_lib_save_LIBS=$LIBS
 
5306
LIBS="-lintl  $LIBS"
 
5307
cat >conftest.$ac_ext <<_ACEOF
 
5308
/* confdefs.h.  */
 
5309
_ACEOF
 
5310
cat confdefs.h >>conftest.$ac_ext
 
5311
cat >>conftest.$ac_ext <<_ACEOF
 
5312
/* end confdefs.h.  */
 
5313
 
 
5314
/* Override any GCC internal prototype to avoid an error.
 
5315
   Use char because int might match the return type of a GCC
 
5316
   builtin and then its argument prototype would still apply.  */
 
5317
#ifdef __cplusplus
 
5318
extern "C"
 
5319
#endif
 
5320
char strftime ();
 
5321
int
 
5322
main ()
 
5323
{
 
5324
return strftime ();
 
5325
  ;
 
5326
  return 0;
 
5327
}
 
5328
_ACEOF
 
5329
rm -f conftest.$ac_objext conftest$ac_exeext
 
5330
if { (ac_try="$ac_link"
 
5331
case "(($ac_try" in
 
5332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5333
  *) ac_try_echo=$ac_try;;
 
5334
esac
 
5335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5336
  (eval "$ac_link") 2>conftest.er1
 
5337
  ac_status=$?
 
5338
  grep -v '^ *+' conftest.er1 >conftest.err
 
5339
  rm -f conftest.er1
 
5340
  cat conftest.err >&5
 
5341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5342
  (exit $ac_status); } && {
 
5343
         test -z "$ac_c_werror_flag" ||
 
5344
         test ! -s conftest.err
 
5345
       } && test -s conftest$ac_exeext &&
 
5346
       $as_test_x conftest$ac_exeext; then
 
5347
  ac_cv_lib_intl_strftime=yes
 
5348
else
 
5349
  echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
        ac_cv_lib_intl_strftime=no
 
5353
fi
 
5354
 
 
5355
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5356
      conftest$ac_exeext conftest.$ac_ext
 
5357
LIBS=$ac_check_lib_save_LIBS
 
5358
fi
 
5359
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
 
5360
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
 
5361
if test $ac_cv_lib_intl_strftime = yes; then
 
5362
  cat >>confdefs.h <<\_ACEOF
 
5363
#define HAVE_STRFTIME 1
 
5364
_ACEOF
 
5365
 
 
5366
LIBS="-lintl $LIBS"
 
5367
fi
 
5368
 
 
5369
fi
 
5370
done
 
5371
 
 
5372
 
 
5373
for ac_func in vprintf
 
5374
do
 
5375
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5376
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5377
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5378
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5380
else
 
5381
  cat >conftest.$ac_ext <<_ACEOF
 
5382
/* confdefs.h.  */
 
5383
_ACEOF
 
5384
cat confdefs.h >>conftest.$ac_ext
 
5385
cat >>conftest.$ac_ext <<_ACEOF
 
5386
/* end confdefs.h.  */
 
5387
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5388
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5389
#define $ac_func innocuous_$ac_func
 
5390
 
 
5391
/* System header to define __stub macros and hopefully few prototypes,
 
5392
    which can conflict with char $ac_func (); below.
 
5393
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5394
    <limits.h> exists even on freestanding compilers.  */
 
5395
 
 
5396
#ifdef __STDC__
 
5397
# include <limits.h>
 
5398
#else
 
5399
# include <assert.h>
 
5400
#endif
 
5401
 
 
5402
#undef $ac_func
 
5403
 
 
5404
/* Override any GCC internal prototype to avoid an error.
 
5405
   Use char because int might match the return type of a GCC
 
5406
   builtin and then its argument prototype would still apply.  */
 
5407
#ifdef __cplusplus
 
5408
extern "C"
 
5409
#endif
 
5410
char $ac_func ();
 
5411
/* The GNU C library defines this for functions which it implements
 
5412
    to always fail with ENOSYS.  Some functions are actually named
 
5413
    something starting with __ and the normal name is an alias.  */
 
5414
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5415
choke me
 
5416
#endif
 
5417
 
 
5418
int
 
5419
main ()
 
5420
{
 
5421
return $ac_func ();
 
5422
  ;
 
5423
  return 0;
 
5424
}
 
5425
_ACEOF
 
5426
rm -f conftest.$ac_objext conftest$ac_exeext
 
5427
if { (ac_try="$ac_link"
 
5428
case "(($ac_try" in
 
5429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5430
  *) ac_try_echo=$ac_try;;
 
5431
esac
 
5432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5433
  (eval "$ac_link") 2>conftest.er1
 
5434
  ac_status=$?
 
5435
  grep -v '^ *+' conftest.er1 >conftest.err
 
5436
  rm -f conftest.er1
 
5437
  cat conftest.err >&5
 
5438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5439
  (exit $ac_status); } && {
 
5440
         test -z "$ac_c_werror_flag" ||
 
5441
         test ! -s conftest.err
 
5442
       } && test -s conftest$ac_exeext &&
 
5443
       $as_test_x conftest$ac_exeext; then
 
5444
  eval "$as_ac_var=yes"
 
5445
else
 
5446
  echo "$as_me: failed program was:" >&5
 
5447
sed 's/^/| /' conftest.$ac_ext >&5
 
5448
 
 
5449
        eval "$as_ac_var=no"
 
5450
fi
 
5451
 
 
5452
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5453
      conftest$ac_exeext conftest.$ac_ext
 
5454
fi
 
5455
ac_res=`eval echo '${'$as_ac_var'}'`
 
5456
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5457
echo "${ECHO_T}$ac_res" >&6; }
 
5458
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5459
  cat >>confdefs.h <<_ACEOF
 
5460
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5461
_ACEOF
 
5462
 
 
5463
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
 
5464
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
 
5465
if test "${ac_cv_func__doprnt+set}" = set; then
 
5466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5467
else
 
5468
  cat >conftest.$ac_ext <<_ACEOF
 
5469
/* confdefs.h.  */
 
5470
_ACEOF
 
5471
cat confdefs.h >>conftest.$ac_ext
 
5472
cat >>conftest.$ac_ext <<_ACEOF
 
5473
/* end confdefs.h.  */
 
5474
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
5475
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5476
#define _doprnt innocuous__doprnt
 
5477
 
 
5478
/* System header to define __stub macros and hopefully few prototypes,
 
5479
    which can conflict with char _doprnt (); below.
 
5480
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5481
    <limits.h> exists even on freestanding compilers.  */
 
5482
 
 
5483
#ifdef __STDC__
 
5484
# include <limits.h>
 
5485
#else
 
5486
# include <assert.h>
 
5487
#endif
 
5488
 
 
5489
#undef _doprnt
 
5490
 
 
5491
/* Override any GCC internal prototype to avoid an error.
 
5492
   Use char because int might match the return type of a GCC
 
5493
   builtin and then its argument prototype would still apply.  */
 
5494
#ifdef __cplusplus
 
5495
extern "C"
 
5496
#endif
 
5497
char _doprnt ();
 
5498
/* The GNU C library defines this for functions which it implements
 
5499
    to always fail with ENOSYS.  Some functions are actually named
 
5500
    something starting with __ and the normal name is an alias.  */
 
5501
#if defined __stub__doprnt || defined __stub____doprnt
 
5502
choke me
 
5503
#endif
 
5504
 
 
5505
int
 
5506
main ()
 
5507
{
 
5508
return _doprnt ();
 
5509
  ;
 
5510
  return 0;
 
5511
}
 
5512
_ACEOF
 
5513
rm -f conftest.$ac_objext conftest$ac_exeext
 
5514
if { (ac_try="$ac_link"
 
5515
case "(($ac_try" in
 
5516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5517
  *) ac_try_echo=$ac_try;;
 
5518
esac
 
5519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5520
  (eval "$ac_link") 2>conftest.er1
 
5521
  ac_status=$?
 
5522
  grep -v '^ *+' conftest.er1 >conftest.err
 
5523
  rm -f conftest.er1
 
5524
  cat conftest.err >&5
 
5525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5526
  (exit $ac_status); } && {
 
5527
         test -z "$ac_c_werror_flag" ||
 
5528
         test ! -s conftest.err
 
5529
       } && test -s conftest$ac_exeext &&
 
5530
       $as_test_x conftest$ac_exeext; then
 
5531
  ac_cv_func__doprnt=yes
 
5532
else
 
5533
  echo "$as_me: failed program was:" >&5
 
5534
sed 's/^/| /' conftest.$ac_ext >&5
 
5535
 
 
5536
        ac_cv_func__doprnt=no
 
5537
fi
 
5538
 
 
5539
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5540
      conftest$ac_exeext conftest.$ac_ext
 
5541
fi
 
5542
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
5543
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
 
5544
if test $ac_cv_func__doprnt = yes; then
 
5545
 
 
5546
cat >>confdefs.h <<\_ACEOF
 
5547
#define HAVE_DOPRNT 1
 
5548
_ACEOF
 
5549
 
 
5550
fi
 
5551
 
 
5552
fi
 
5553
done
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
 
 
5563
 
 
5564
 
 
5565
 
 
5566
for ac_func in socket gethostbyaddr getifaddrs freeifaddrs gethostbyname inet_ntoa memmove memset strspn strstr
 
5567
do
 
5568
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5569
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5570
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5571
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5573
else
 
5574
  cat >conftest.$ac_ext <<_ACEOF
 
5575
/* confdefs.h.  */
 
5576
_ACEOF
 
5577
cat confdefs.h >>conftest.$ac_ext
 
5578
cat >>conftest.$ac_ext <<_ACEOF
 
5579
/* end confdefs.h.  */
 
5580
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5581
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5582
#define $ac_func innocuous_$ac_func
 
5583
 
 
5584
/* System header to define __stub macros and hopefully few prototypes,
 
5585
    which can conflict with char $ac_func (); below.
 
5586
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5587
    <limits.h> exists even on freestanding compilers.  */
 
5588
 
 
5589
#ifdef __STDC__
 
5590
# include <limits.h>
 
5591
#else
 
5592
# include <assert.h>
 
5593
#endif
 
5594
 
 
5595
#undef $ac_func
 
5596
 
 
5597
/* Override any GCC internal prototype to avoid an error.
 
5598
   Use char because int might match the return type of a GCC
 
5599
   builtin and then its argument prototype would still apply.  */
 
5600
#ifdef __cplusplus
 
5601
extern "C"
 
5602
#endif
 
5603
char $ac_func ();
 
5604
/* The GNU C library defines this for functions which it implements
 
5605
    to always fail with ENOSYS.  Some functions are actually named
 
5606
    something starting with __ and the normal name is an alias.  */
 
5607
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5608
choke me
 
5609
#endif
 
5610
 
 
5611
int
 
5612
main ()
 
5613
{
 
5614
return $ac_func ();
 
5615
  ;
 
5616
  return 0;
 
5617
}
 
5618
_ACEOF
 
5619
rm -f conftest.$ac_objext conftest$ac_exeext
 
5620
if { (ac_try="$ac_link"
 
5621
case "(($ac_try" in
 
5622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5623
  *) ac_try_echo=$ac_try;;
 
5624
esac
 
5625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5626
  (eval "$ac_link") 2>conftest.er1
 
5627
  ac_status=$?
 
5628
  grep -v '^ *+' conftest.er1 >conftest.err
 
5629
  rm -f conftest.er1
 
5630
  cat conftest.err >&5
 
5631
  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_exeext &&
 
5636
       $as_test_x conftest$ac_exeext; then
 
5637
  eval "$as_ac_var=yes"
 
5638
else
 
5639
  echo "$as_me: failed program was:" >&5
 
5640
sed 's/^/| /' conftest.$ac_ext >&5
 
5641
 
 
5642
        eval "$as_ac_var=no"
 
5643
fi
 
5644
 
 
5645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5646
      conftest$ac_exeext conftest.$ac_ext
 
5647
fi
 
5648
ac_res=`eval echo '${'$as_ac_var'}'`
 
5649
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5650
echo "${ECHO_T}$ac_res" >&6; }
 
5651
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5652
  cat >>confdefs.h <<_ACEOF
 
5653
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5654
_ACEOF
 
5655
 
 
5656
fi
 
5657
done
 
5658
 
 
5659
 
 
5660
# Check endianness...will define WORDS_BIGENDIAN
 
5661
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
5662
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
5663
if test "${ac_cv_c_bigendian+set}" = set; then
 
5664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5665
else
 
5666
  # See if sys/param.h defines the BYTE_ORDER macro.
 
5667
cat >conftest.$ac_ext <<_ACEOF
 
5668
/* confdefs.h.  */
 
5669
_ACEOF
 
5670
cat confdefs.h >>conftest.$ac_ext
 
5671
cat >>conftest.$ac_ext <<_ACEOF
 
5672
/* end confdefs.h.  */
 
5673
#include <sys/types.h>
 
5674
#include <sys/param.h>
 
5675
 
 
5676
int
 
5677
main ()
 
5678
{
 
5679
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
5680
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
5681
 bogus endian macros
 
5682
#endif
 
5683
 
 
5684
  ;
 
5685
  return 0;
 
5686
}
 
5687
_ACEOF
 
5688
rm -f conftest.$ac_objext
 
5689
if { (ac_try="$ac_compile"
 
5690
case "(($ac_try" in
 
5691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5692
  *) ac_try_echo=$ac_try;;
 
5693
esac
 
5694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5695
  (eval "$ac_compile") 2>conftest.er1
 
5696
  ac_status=$?
 
5697
  grep -v '^ *+' conftest.er1 >conftest.err
 
5698
  rm -f conftest.er1
 
5699
  cat conftest.err >&5
 
5700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5701
  (exit $ac_status); } && {
 
5702
         test -z "$ac_c_werror_flag" ||
 
5703
         test ! -s conftest.err
 
5704
       } && test -s conftest.$ac_objext; then
 
5705
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
5706
cat >conftest.$ac_ext <<_ACEOF
 
5707
/* confdefs.h.  */
 
5708
_ACEOF
 
5709
cat confdefs.h >>conftest.$ac_ext
 
5710
cat >>conftest.$ac_ext <<_ACEOF
 
5711
/* end confdefs.h.  */
 
5712
#include <sys/types.h>
 
5713
#include <sys/param.h>
 
5714
 
 
5715
int
 
5716
main ()
 
5717
{
 
5718
#if BYTE_ORDER != BIG_ENDIAN
 
5719
 not big endian
 
5720
#endif
 
5721
 
 
5722
  ;
 
5723
  return 0;
 
5724
}
 
5725
_ACEOF
 
5726
rm -f conftest.$ac_objext
 
5727
if { (ac_try="$ac_compile"
 
5728
case "(($ac_try" in
 
5729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5730
  *) ac_try_echo=$ac_try;;
 
5731
esac
 
5732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5733
  (eval "$ac_compile") 2>conftest.er1
 
5734
  ac_status=$?
 
5735
  grep -v '^ *+' conftest.er1 >conftest.err
 
5736
  rm -f conftest.er1
 
5737
  cat conftest.err >&5
 
5738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5739
  (exit $ac_status); } && {
 
5740
         test -z "$ac_c_werror_flag" ||
 
5741
         test ! -s conftest.err
 
5742
       } && test -s conftest.$ac_objext; then
 
5743
  ac_cv_c_bigendian=yes
 
5744
else
 
5745
  echo "$as_me: failed program was:" >&5
 
5746
sed 's/^/| /' conftest.$ac_ext >&5
 
5747
 
 
5748
        ac_cv_c_bigendian=no
 
5749
fi
 
5750
 
 
5751
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5752
else
 
5753
  echo "$as_me: failed program was:" >&5
 
5754
sed 's/^/| /' conftest.$ac_ext >&5
 
5755
 
 
5756
        # It does not; compile a test program.
 
5757
if test "$cross_compiling" = yes; then
 
5758
  # try to guess the endianness by grepping values into an object file
 
5759
  ac_cv_c_bigendian=unknown
 
5760
  cat >conftest.$ac_ext <<_ACEOF
 
5761
/* confdefs.h.  */
 
5762
_ACEOF
 
5763
cat confdefs.h >>conftest.$ac_ext
 
5764
cat >>conftest.$ac_ext <<_ACEOF
 
5765
/* end confdefs.h.  */
 
5766
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
5767
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
5768
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
5769
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
5770
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
5771
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
5772
int
 
5773
main ()
 
5774
{
 
5775
 _ascii (); _ebcdic ();
 
5776
  ;
 
5777
  return 0;
 
5778
}
 
5779
_ACEOF
 
5780
rm -f conftest.$ac_objext
 
5781
if { (ac_try="$ac_compile"
 
5782
case "(($ac_try" in
 
5783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5784
  *) ac_try_echo=$ac_try;;
 
5785
esac
 
5786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5787
  (eval "$ac_compile") 2>conftest.er1
 
5788
  ac_status=$?
 
5789
  grep -v '^ *+' conftest.er1 >conftest.err
 
5790
  rm -f conftest.er1
 
5791
  cat conftest.err >&5
 
5792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5793
  (exit $ac_status); } && {
 
5794
         test -z "$ac_c_werror_flag" ||
 
5795
         test ! -s conftest.err
 
5796
       } && test -s conftest.$ac_objext; then
 
5797
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
5798
  ac_cv_c_bigendian=yes
 
5799
fi
 
5800
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
5801
  if test "$ac_cv_c_bigendian" = unknown; then
 
5802
    ac_cv_c_bigendian=no
 
5803
  else
 
5804
    # finding both strings is unlikely to happen, but who knows?
 
5805
    ac_cv_c_bigendian=unknown
 
5806
  fi
 
5807
fi
 
5808
else
 
5809
  echo "$as_me: failed program was:" >&5
 
5810
sed 's/^/| /' conftest.$ac_ext >&5
 
5811
 
 
5812
 
 
5813
fi
 
5814
 
 
5815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5816
else
 
5817
  cat >conftest.$ac_ext <<_ACEOF
 
5818
/* confdefs.h.  */
 
5819
_ACEOF
 
5820
cat confdefs.h >>conftest.$ac_ext
 
5821
cat >>conftest.$ac_ext <<_ACEOF
 
5822
/* end confdefs.h.  */
 
5823
$ac_includes_default
 
5824
int
 
5825
main ()
 
5826
{
 
5827
 
 
5828
  /* Are we little or big endian?  From Harbison&Steele.  */
 
5829
  union
 
5830
  {
 
5831
    long int l;
 
5832
    char c[sizeof (long int)];
 
5833
  } u;
 
5834
  u.l = 1;
 
5835
  return u.c[sizeof (long int) - 1] == 1;
 
5836
 
 
5837
  ;
 
5838
  return 0;
 
5839
}
 
5840
_ACEOF
 
5841
rm -f conftest$ac_exeext
 
5842
if { (ac_try="$ac_link"
 
5843
case "(($ac_try" in
 
5844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5845
  *) ac_try_echo=$ac_try;;
 
5846
esac
 
5847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5848
  (eval "$ac_link") 2>&5
 
5849
  ac_status=$?
 
5850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5851
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5852
  { (case "(($ac_try" in
 
5853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5854
  *) ac_try_echo=$ac_try;;
 
5855
esac
 
5856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5857
  (eval "$ac_try") 2>&5
 
5858
  ac_status=$?
 
5859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5860
  (exit $ac_status); }; }; then
 
5861
  ac_cv_c_bigendian=no
 
5862
else
 
5863
  echo "$as_me: program exited with status $ac_status" >&5
 
5864
echo "$as_me: failed program was:" >&5
 
5865
sed 's/^/| /' conftest.$ac_ext >&5
 
5866
 
 
5867
( exit $ac_status )
 
5868
ac_cv_c_bigendian=yes
 
5869
fi
 
5870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5871
fi
 
5872
 
 
5873
 
 
5874
fi
 
5875
 
 
5876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5877
fi
 
5878
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
5879
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
5880
case $ac_cv_c_bigendian in
 
5881
  yes)
 
5882
 
 
5883
cat >>confdefs.h <<\_ACEOF
 
5884
#define WORDS_BIGENDIAN 1
 
5885
_ACEOF
 
5886
 ;;
 
5887
  no)
 
5888
     ;;
 
5889
  *)
 
5890
    { { echo "$as_me:$LINENO: error: unknown endianness
 
5891
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
5892
echo "$as_me: error: unknown endianness
 
5893
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
5894
   { (exit 1); exit 1; }; } ;;
 
5895
esac
 
5896
 
 
5897
 
 
5898
# Get path to traceroute program
 
5899
if test `expr \`uname -s\` : CYGWIN` != 6; then
 
5900
    # Extract the first word of "traceroute", so it can be a program name with args.
 
5901
set dummy traceroute; ac_word=$2
 
5902
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5904
if test "${ac_cv_path_prog_traceroute+set}" = set; then
 
5905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5906
else
 
5907
  case $prog_traceroute in
 
5908
  [\\/]* | ?:[\\/]*)
 
5909
  ac_cv_path_prog_traceroute="$prog_traceroute" # Let the user override the test with a path.
 
5910
  ;;
 
5911
  *)
 
5912
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5913
for as_dir in $PATH
 
5914
do
 
5915
  IFS=$as_save_IFS
 
5916
  test -z "$as_dir" && as_dir=.
 
5917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5919
    ac_cv_path_prog_traceroute="$as_dir/$ac_word$ac_exec_ext"
 
5920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5921
    break 2
 
5922
  fi
 
5923
done
 
5924
done
 
5925
IFS=$as_save_IFS
 
5926
 
 
5927
  test -z "$ac_cv_path_prog_traceroute" && ac_cv_path_prog_traceroute="{ { echo "$as_me:$LINENO: error: Please install the traceroute program" >&5
 
5928
echo "$as_me: error: Please install the traceroute program" >&2;}
 
5929
   { (exit 1); exit 1; }; }"
 
5930
  ;;
 
5931
esac
 
5932
fi
 
5933
prog_traceroute=$ac_cv_path_prog_traceroute
 
5934
if test -n "$prog_traceroute"; then
 
5935
  { echo "$as_me:$LINENO: result: $prog_traceroute" >&5
 
5936
echo "${ECHO_T}$prog_traceroute" >&6; }
 
5937
else
 
5938
  { echo "$as_me:$LINENO: result: no" >&5
 
5939
echo "${ECHO_T}no" >&6; }
 
5940
fi
 
5941
 
 
5942
 
 
5943
 
 
5944
cat >>confdefs.h <<_ACEOF
 
5945
#define CFG_PATH_TRACEROUTE "$prog_traceroute"
 
5946
_ACEOF
 
5947
 
 
5948
fi
 
5949
 
 
5950
# Get path to iwlist program
 
5951
# Extract the first word of "iwconfig", so it can be a program name with args.
 
5952
set dummy iwconfig; ac_word=$2
 
5953
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5955
if test "${ac_cv_path_prog_iwconfig+set}" = set; then
 
5956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5957
else
 
5958
  case $prog_iwconfig in
 
5959
  [\\/]* | ?:[\\/]*)
 
5960
  ac_cv_path_prog_iwconfig="$prog_iwconfig" # Let the user override the test with a path.
 
5961
  ;;
 
5962
  *)
 
5963
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5964
for as_dir in $PATH
 
5965
do
 
5966
  IFS=$as_save_IFS
 
5967
  test -z "$as_dir" && as_dir=.
 
5968
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5969
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5970
    ac_cv_path_prog_iwconfig="$as_dir/$ac_word$ac_exec_ext"
 
5971
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5972
    break 2
 
5973
  fi
 
5974
done
 
5975
done
 
5976
IFS=$as_save_IFS
 
5977
 
 
5978
  test -z "$ac_cv_path_prog_iwconfig" && ac_cv_path_prog_iwconfig="no"
 
5979
  ;;
 
5980
esac
 
5981
fi
 
5982
prog_iwconfig=$ac_cv_path_prog_iwconfig
 
5983
if test -n "$prog_iwconfig"; then
 
5984
  { echo "$as_me:$LINENO: result: $prog_iwconfig" >&5
 
5985
echo "${ECHO_T}$prog_iwconfig" >&6; }
 
5986
else
 
5987
  { echo "$as_me:$LINENO: result: no" >&5
 
5988
echo "${ECHO_T}no" >&6; }
 
5989
fi
 
5990
 
 
5991
 
 
5992
if test "$prog_iwconfig" != "no"; then
 
5993
 
 
5994
cat >>confdefs.h <<_ACEOF
 
5995
#define CFG_PATH_IWCONFIG "$prog_iwconfig"
 
5996
_ACEOF
 
5997
 
 
5998
 
 
5999
cat >>confdefs.h <<_ACEOF
 
6000
#define HAVE_IWCONFIG 1
 
6001
_ACEOF
 
6002
 
 
6003
fi
 
6004
 
 
6005
cat >confcache <<\_ACEOF
 
6006
# This file is a shell script that caches the results of configure
 
6007
# tests run on this system so they can be shared between configure
 
6008
# scripts and configure runs, see configure's option --config-cache.
 
6009
# It is not useful on other systems.  If it contains results you don't
 
6010
# want to keep, you may remove or edit it.
 
6011
#
 
6012
# config.status only pays attention to the cache file if you give it
 
6013
# the --recheck option to rerun configure.
 
6014
#
 
6015
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
6016
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
6017
# following values.
 
6018
 
 
6019
_ACEOF
 
6020
 
 
6021
# The following way of writing the cache mishandles newlines in values,
 
6022
# but we know of no workaround that is simple, portable, and efficient.
 
6023
# So, we kill variables containing newlines.
 
6024
# Ultrix sh set writes to stderr and can't be redirected directly,
 
6025
# and sets the high bit in the cache file unless we assign to the vars.
 
6026
(
 
6027
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
6028
    eval ac_val=\$$ac_var
 
6029
    case $ac_val in #(
 
6030
    *${as_nl}*)
 
6031
      case $ac_var in #(
 
6032
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
6033
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
6034
      esac
 
6035
      case $ac_var in #(
 
6036
      _ | IFS | as_nl) ;; #(
 
6037
      *) $as_unset $ac_var ;;
 
6038
      esac ;;
 
6039
    esac
 
6040
  done
 
6041
 
 
6042
  (set) 2>&1 |
 
6043
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
6044
    *${as_nl}ac_space=\ *)
 
6045
      # `set' does not quote correctly, so add quotes (double-quote
 
6046
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6047
      sed -n \
 
6048
        "s/'/'\\\\''/g;
 
6049
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6050
      ;; #(
 
6051
    *)
 
6052
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6053
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
6054
      ;;
 
6055
    esac |
 
6056
    sort
 
6057
) |
 
6058
  sed '
 
6059
     /^ac_cv_env_/b end
 
6060
     t clear
 
6061
     :clear
 
6062
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
6063
     t end
 
6064
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
6065
     :end' >>confcache
 
6066
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
6067
  if test -w "$cache_file"; then
 
6068
    test "x$cache_file" != "x/dev/null" &&
 
6069
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
6070
echo "$as_me: updating cache $cache_file" >&6;}
 
6071
    cat confcache >$cache_file
 
6072
  else
 
6073
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
6074
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
6075
  fi
 
6076
fi
 
6077
rm -f confcache
 
6078
 
 
6079
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
6080
# Let make expand exec_prefix.
 
6081
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
6082
 
 
6083
DEFS=-DHAVE_CONFIG_H
 
6084
 
 
6085
ac_libobjs=
 
6086
ac_ltlibobjs=
 
6087
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
6088
  # 1. Remove the extension, and $U if already installed.
 
6089
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
6090
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
6091
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
6092
  #    will be set to the directory where LIBOBJS objects are built.
 
6093
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
6094
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
6095
done
 
6096
LIBOBJS=$ac_libobjs
 
6097
 
 
6098
LTLIBOBJS=$ac_ltlibobjs
 
6099
 
 
6100
 
 
6101
 
 
6102
: ${CONFIG_STATUS=./config.status}
 
6103
ac_clean_files_save=$ac_clean_files
 
6104
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
6105
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
6106
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
6107
cat >$CONFIG_STATUS <<_ACEOF
 
6108
#! $SHELL
 
6109
# Generated by $as_me.
 
6110
# Run this file to recreate the current configuration.
 
6111
# Compiler output produced by configure, useful for debugging
 
6112
# configure, is in config.log if it exists.
 
6113
 
 
6114
debug=false
 
6115
ac_cs_recheck=false
 
6116
ac_cs_silent=false
 
6117
SHELL=\${CONFIG_SHELL-$SHELL}
 
6118
_ACEOF
 
6119
 
 
6120
cat >>$CONFIG_STATUS <<\_ACEOF
 
6121
## --------------------- ##
 
6122
## M4sh Initialization.  ##
 
6123
## --------------------- ##
 
6124
 
 
6125
# Be more Bourne compatible
 
6126
DUALCASE=1; export DUALCASE # for MKS sh
 
6127
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
6128
  emulate sh
 
6129
  NULLCMD=:
 
6130
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
6131
  # is contrary to our usage.  Disable this feature.
 
6132
  alias -g '${1+"$@"}'='"$@"'
 
6133
  setopt NO_GLOB_SUBST
 
6134
else
 
6135
  case `(set -o) 2>/dev/null` in
 
6136
  *posix*) set -o posix ;;
 
6137
esac
 
6138
 
 
6139
fi
 
6140
 
 
6141
 
 
6142
 
 
6143
 
 
6144
# PATH needs CR
 
6145
# Avoid depending upon Character Ranges.
 
6146
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
6147
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
6148
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
6149
as_cr_digits='0123456789'
 
6150
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
6151
 
 
6152
# The user is always right.
 
6153
if test "${PATH_SEPARATOR+set}" != set; then
 
6154
  echo "#! /bin/sh" >conf$$.sh
 
6155
  echo  "exit 0"   >>conf$$.sh
 
6156
  chmod +x conf$$.sh
 
6157
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6158
    PATH_SEPARATOR=';'
 
6159
  else
 
6160
    PATH_SEPARATOR=:
 
6161
  fi
 
6162
  rm -f conf$$.sh
 
6163
fi
 
6164
 
 
6165
# Support unset when possible.
 
6166
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6167
  as_unset=unset
 
6168
else
 
6169
  as_unset=false
 
6170
fi
 
6171
 
 
6172
 
 
6173
# IFS
 
6174
# We need space, tab and new line, in precisely that order.  Quoting is
 
6175
# there to prevent editors from complaining about space-tab.
 
6176
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
6177
# splitting by setting IFS to empty value.)
 
6178
as_nl='
 
6179
'
 
6180
IFS=" ""        $as_nl"
 
6181
 
 
6182
# Find who we are.  Look in the path if we contain no directory separator.
 
6183
case $0 in
 
6184
  *[\\/]* ) as_myself=$0 ;;
 
6185
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6186
for as_dir in $PATH
 
6187
do
 
6188
  IFS=$as_save_IFS
 
6189
  test -z "$as_dir" && as_dir=.
 
6190
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
6191
done
 
6192
IFS=$as_save_IFS
 
6193
 
 
6194
     ;;
 
6195
esac
 
6196
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
6197
# in which case we are not to be found in the path.
 
6198
if test "x$as_myself" = x; then
 
6199
  as_myself=$0
 
6200
fi
 
6201
if test ! -f "$as_myself"; then
 
6202
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
6203
  { (exit 1); exit 1; }
 
6204
fi
 
6205
 
 
6206
# Work around bugs in pre-3.0 UWIN ksh.
 
6207
for as_var in ENV MAIL MAILPATH
 
6208
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
6209
done
 
6210
PS1='$ '
 
6211
PS2='> '
 
6212
PS4='+ '
 
6213
 
 
6214
# NLS nuisances.
 
6215
for as_var in \
 
6216
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
6217
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
6218
  LC_TELEPHONE LC_TIME
 
6219
do
 
6220
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
6221
    eval $as_var=C; export $as_var
 
6222
  else
 
6223
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
6224
  fi
 
6225
done
 
6226
 
 
6227
# Required to use basename.
 
6228
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
6229
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
6230
  as_expr=expr
 
6231
else
 
6232
  as_expr=false
 
6233
fi
 
6234
 
 
6235
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
6236
  as_basename=basename
 
6237
else
 
6238
  as_basename=false
 
6239
fi
 
6240
 
 
6241
 
 
6242
# Name of the executable.
 
6243
as_me=`$as_basename -- "$0" ||
 
6244
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
6245
         X"$0" : 'X\(//\)$' \| \
 
6246
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
6247
echo X/"$0" |
 
6248
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
6249
            s//\1/
 
6250
            q
 
6251
          }
 
6252
          /^X\/\(\/\/\)$/{
 
6253
            s//\1/
 
6254
            q
 
6255
          }
 
6256
          /^X\/\(\/\).*/{
 
6257
            s//\1/
 
6258
            q
 
6259
          }
 
6260
          s/.*/./; q'`
 
6261
 
 
6262
# CDPATH.
 
6263
$as_unset CDPATH
 
6264
 
 
6265
 
 
6266
 
 
6267
  as_lineno_1=$LINENO
 
6268
  as_lineno_2=$LINENO
 
6269
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
6270
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
6271
 
 
6272
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
6273
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
6274
  # line-number line after each line using $LINENO; the second 'sed'
 
6275
  # does the real work.  The second script uses 'N' to pair each
 
6276
  # line-number line with the line containing $LINENO, and appends
 
6277
  # trailing '-' during substitution so that $LINENO is not a special
 
6278
  # case at line end.
 
6279
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
6280
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
6281
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
6282
  sed -n '
 
6283
    p
 
6284
    /[$]LINENO/=
 
6285
  ' <$as_myself |
 
6286
    sed '
 
6287
      s/[$]LINENO.*/&-/
 
6288
      t lineno
 
6289
      b
 
6290
      :lineno
 
6291
      N
 
6292
      :loop
 
6293
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
6294
      t loop
 
6295
      s/-\n.*//
 
6296
    ' >$as_me.lineno &&
 
6297
  chmod +x "$as_me.lineno" ||
 
6298
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
6299
   { (exit 1); exit 1; }; }
 
6300
 
 
6301
  # Don't try to exec as it changes $[0], causing all sort of problems
 
6302
  # (the dirname of $[0] is not the place where we might find the
 
6303
  # original and so on.  Autoconf is especially sensitive to this).
 
6304
  . "./$as_me.lineno"
 
6305
  # Exit status is that of the last command.
 
6306
  exit
 
6307
}
 
6308
 
 
6309
 
 
6310
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
6311
  as_dirname=dirname
 
6312
else
 
6313
  as_dirname=false
 
6314
fi
 
6315
 
 
6316
ECHO_C= ECHO_N= ECHO_T=
 
6317
case `echo -n x` in
 
6318
-n*)
 
6319
  case `echo 'x\c'` in
 
6320
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
6321
  *)   ECHO_C='\c';;
 
6322
  esac;;
 
6323
*)
 
6324
  ECHO_N='-n';;
 
6325
esac
 
6326
 
 
6327
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
6328
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
6329
  as_expr=expr
 
6330
else
 
6331
  as_expr=false
 
6332
fi
 
6333
 
 
6334
rm -f conf$$ conf$$.exe conf$$.file
 
6335
if test -d conf$$.dir; then
 
6336
  rm -f conf$$.dir/conf$$.file
 
6337
else
 
6338
  rm -f conf$$.dir
 
6339
  mkdir conf$$.dir
 
6340
fi
 
6341
echo >conf$$.file
 
6342
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
6343
  as_ln_s='ln -s'
 
6344
  # ... but there are two gotchas:
 
6345
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
6346
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
6347
  # In both cases, we have to default to `cp -p'.
 
6348
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
6349
    as_ln_s='cp -p'
 
6350
elif ln conf$$.file conf$$ 2>/dev/null; then
 
6351
  as_ln_s=ln
 
6352
else
 
6353
  as_ln_s='cp -p'
 
6354
fi
 
6355
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
6356
rmdir conf$$.dir 2>/dev/null
 
6357
 
 
6358
if mkdir -p . 2>/dev/null; then
 
6359
  as_mkdir_p=:
 
6360
else
 
6361
  test -d ./-p && rmdir ./-p
 
6362
  as_mkdir_p=false
 
6363
fi
 
6364
 
 
6365
if test -x / >/dev/null 2>&1; then
 
6366
  as_test_x='test -x'
 
6367
else
 
6368
  if ls -dL / >/dev/null 2>&1; then
 
6369
    as_ls_L_option=L
 
6370
  else
 
6371
    as_ls_L_option=
 
6372
  fi
 
6373
  as_test_x='
 
6374
    eval sh -c '\''
 
6375
      if test -d "$1"; then
 
6376
        test -d "$1/.";
 
6377
      else
 
6378
        case $1 in
 
6379
        -*)set "./$1";;
 
6380
        esac;
 
6381
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
6382
        ???[sx]*):;;*)false;;esac;fi
 
6383
    '\'' sh
 
6384
  '
 
6385
fi
 
6386
as_executable_p=$as_test_x
 
6387
 
 
6388
# Sed expression to map a string onto a valid CPP name.
 
6389
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
6390
 
 
6391
# Sed expression to map a string onto a valid variable name.
 
6392
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
6393
 
 
6394
 
 
6395
exec 6>&1
 
6396
 
 
6397
# Save the log message, to keep $[0] and so on meaningful, and to
 
6398
# report actual input values of CONFIG_FILES etc. instead of their
 
6399
# values after options handling.
 
6400
ac_log="
 
6401
This file was extended by ADEONA $as_me 0.2, which was
 
6402
generated by GNU Autoconf 2.61.  Invocation command line was
 
6403
 
 
6404
  CONFIG_FILES    = $CONFIG_FILES
 
6405
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
6406
  CONFIG_LINKS    = $CONFIG_LINKS
 
6407
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
6408
  $ $0 $@
 
6409
 
 
6410
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
6411
"
 
6412
 
 
6413
_ACEOF
 
6414
 
 
6415
cat >>$CONFIG_STATUS <<_ACEOF
 
6416
# Files that config.status was made for.
 
6417
config_headers="$ac_config_headers"
 
6418
 
 
6419
_ACEOF
 
6420
 
 
6421
cat >>$CONFIG_STATUS <<\_ACEOF
 
6422
ac_cs_usage="\
 
6423
\`$as_me' instantiates files from templates according to the
 
6424
current configuration.
 
6425
 
 
6426
Usage: $0 [OPTIONS] [FILE]...
 
6427
 
 
6428
  -h, --help       print this help, then exit
 
6429
  -V, --version    print version number and configuration settings, then exit
 
6430
  -q, --quiet      do not print progress messages
 
6431
  -d, --debug      don't remove temporary files
 
6432
      --recheck    update $as_me by reconfiguring in the same conditions
 
6433
  --header=FILE[:TEMPLATE]
 
6434
                   instantiate the configuration header FILE
 
6435
 
 
6436
Configuration headers:
 
6437
$config_headers
 
6438
 
 
6439
Report bugs to <bug-autoconf@gnu.org>."
 
6440
 
 
6441
_ACEOF
 
6442
cat >>$CONFIG_STATUS <<_ACEOF
 
6443
ac_cs_version="\\
 
6444
ADEONA config.status 0.2
 
6445
configured by $0, generated by GNU Autoconf 2.61,
 
6446
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
6447
 
 
6448
Copyright (C) 2006 Free Software Foundation, Inc.
 
6449
This config.status script is free software; the Free Software Foundation
 
6450
gives unlimited permission to copy, distribute and modify it."
 
6451
 
 
6452
ac_pwd='$ac_pwd'
 
6453
srcdir='$srcdir'
 
6454
_ACEOF
 
6455
 
 
6456
cat >>$CONFIG_STATUS <<\_ACEOF
 
6457
# If no file are specified by the user, then we need to provide default
 
6458
# value.  By we need to know if files were specified by the user.
 
6459
ac_need_defaults=:
 
6460
while test $# != 0
 
6461
do
 
6462
  case $1 in
 
6463
  --*=*)
 
6464
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
6465
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
6466
    ac_shift=:
 
6467
    ;;
 
6468
  *)
 
6469
    ac_option=$1
 
6470
    ac_optarg=$2
 
6471
    ac_shift=shift
 
6472
    ;;
 
6473
  esac
 
6474
 
 
6475
  case $ac_option in
 
6476
  # Handling of the options.
 
6477
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
6478
    ac_cs_recheck=: ;;
 
6479
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
6480
    echo "$ac_cs_version"; exit ;;
 
6481
  --debug | --debu | --deb | --de | --d | -d )
 
6482
    debug=: ;;
 
6483
  --header | --heade | --head | --hea )
 
6484
    $ac_shift
 
6485
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
6486
    ac_need_defaults=false;;
 
6487
  --he | --h)
 
6488
    # Conflict between --help and --header
 
6489
    { echo "$as_me: error: ambiguous option: $1
 
6490
Try \`$0 --help' for more information." >&2
 
6491
   { (exit 1); exit 1; }; };;
 
6492
  --help | --hel | -h )
 
6493
    echo "$ac_cs_usage"; exit ;;
 
6494
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
6495
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
6496
    ac_cs_silent=: ;;
 
6497
 
 
6498
  # This is an error.
 
6499
  -*) { echo "$as_me: error: unrecognized option: $1
 
6500
Try \`$0 --help' for more information." >&2
 
6501
   { (exit 1); exit 1; }; } ;;
 
6502
 
 
6503
  *) ac_config_targets="$ac_config_targets $1"
 
6504
     ac_need_defaults=false ;;
 
6505
 
 
6506
  esac
 
6507
  shift
 
6508
done
 
6509
 
 
6510
ac_configure_extra_args=
 
6511
 
 
6512
if $ac_cs_silent; then
 
6513
  exec 6>/dev/null
 
6514
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
6515
fi
 
6516
 
 
6517
_ACEOF
 
6518
cat >>$CONFIG_STATUS <<_ACEOF
 
6519
if \$ac_cs_recheck; then
 
6520
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
6521
  CONFIG_SHELL=$SHELL
 
6522
  export CONFIG_SHELL
 
6523
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
6524
fi
 
6525
 
 
6526
_ACEOF
 
6527
cat >>$CONFIG_STATUS <<\_ACEOF
 
6528
exec 5>>config.log
 
6529
{
 
6530
  echo
 
6531
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
6532
## Running $as_me. ##
 
6533
_ASBOX
 
6534
  echo "$ac_log"
 
6535
} >&5
 
6536
 
 
6537
_ACEOF
 
6538
cat >>$CONFIG_STATUS <<_ACEOF
 
6539
_ACEOF
 
6540
 
 
6541
cat >>$CONFIG_STATUS <<\_ACEOF
 
6542
 
 
6543
# Handling of arguments.
 
6544
for ac_config_target in $ac_config_targets
 
6545
do
 
6546
  case $ac_config_target in
 
6547
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
6548
 
 
6549
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
6550
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
6551
   { (exit 1); exit 1; }; };;
 
6552
  esac
 
6553
done
 
6554
 
 
6555
 
 
6556
# If the user did not use the arguments to specify the items to instantiate,
 
6557
# then the envvar interface is used.  Set only those that are not.
 
6558
# We use the long form for the default assignment because of an extremely
 
6559
# bizarre bug on SunOS 4.1.3.
 
6560
if $ac_need_defaults; then
 
6561
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
6562
fi
 
6563
 
 
6564
# Have a temporary directory for convenience.  Make it in the build tree
 
6565
# simply because there is no reason against having it here, and in addition,
 
6566
# creating and moving files from /tmp can sometimes cause problems.
 
6567
# Hook for its removal unless debugging.
 
6568
# Note that there is a small window in which the directory will not be cleaned:
 
6569
# after its creation but before its name has been assigned to `$tmp'.
 
6570
$debug ||
 
6571
{
 
6572
  tmp=
 
6573
  trap 'exit_status=$?
 
6574
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
6575
' 0
 
6576
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
6577
}
 
6578
# Create a (secure) tmp directory for tmp files.
 
6579
 
 
6580
{
 
6581
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
6582
  test -n "$tmp" && test -d "$tmp"
 
6583
}  ||
 
6584
{
 
6585
  tmp=./conf$$-$RANDOM
 
6586
  (umask 077 && mkdir "$tmp")
 
6587
} ||
 
6588
{
 
6589
   echo "$me: cannot create a temporary directory in ." >&2
 
6590
   { (exit 1); exit 1; }
 
6591
}
 
6592
 
 
6593
 
 
6594
for ac_tag in    :H $CONFIG_HEADERS
 
6595
do
 
6596
  case $ac_tag in
 
6597
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
6598
  esac
 
6599
  case $ac_mode$ac_tag in
 
6600
  :[FHL]*:*);;
 
6601
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
6602
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
6603
   { (exit 1); exit 1; }; };;
 
6604
  :[FH]-) ac_tag=-:-;;
 
6605
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
6606
  esac
 
6607
  ac_save_IFS=$IFS
 
6608
  IFS=:
 
6609
  set x $ac_tag
 
6610
  IFS=$ac_save_IFS
 
6611
  shift
 
6612
  ac_file=$1
 
6613
  shift
 
6614
 
 
6615
  case $ac_mode in
 
6616
  :L) ac_source=$1;;
 
6617
  :[FH])
 
6618
    ac_file_inputs=
 
6619
    for ac_f
 
6620
    do
 
6621
      case $ac_f in
 
6622
      -) ac_f="$tmp/stdin";;
 
6623
      *) # Look for the file first in the build tree, then in the source tree
 
6624
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
6625
         # because $ac_f cannot contain `:'.
 
6626
         test -f "$ac_f" ||
 
6627
           case $ac_f in
 
6628
           [\\/$]*) false;;
 
6629
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
6630
           esac ||
 
6631
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
6632
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
6633
   { (exit 1); exit 1; }; };;
 
6634
      esac
 
6635
      ac_file_inputs="$ac_file_inputs $ac_f"
 
6636
    done
 
6637
 
 
6638
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
6639
    # use $as_me), people would be surprised to read:
 
6640
    #    /* config.h.  Generated by config.status.  */
 
6641
    configure_input="Generated from "`IFS=:
 
6642
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
6643
    if test x"$ac_file" != x-; then
 
6644
      configure_input="$ac_file.  $configure_input"
 
6645
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
6646
echo "$as_me: creating $ac_file" >&6;}
 
6647
    fi
 
6648
 
 
6649
    case $ac_tag in
 
6650
    *:-:* | *:-) cat >"$tmp/stdin";;
 
6651
    esac
 
6652
    ;;
 
6653
  esac
 
6654
 
 
6655
  ac_dir=`$as_dirname -- "$ac_file" ||
 
6656
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6657
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
6658
         X"$ac_file" : 'X\(//\)$' \| \
 
6659
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
6660
echo X"$ac_file" |
 
6661
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6662
            s//\1/
 
6663
            q
 
6664
          }
 
6665
          /^X\(\/\/\)[^/].*/{
 
6666
            s//\1/
 
6667
            q
 
6668
          }
 
6669
          /^X\(\/\/\)$/{
 
6670
            s//\1/
 
6671
            q
 
6672
          }
 
6673
          /^X\(\/\).*/{
 
6674
            s//\1/
 
6675
            q
 
6676
          }
 
6677
          s/.*/./; q'`
 
6678
  { as_dir="$ac_dir"
 
6679
  case $as_dir in #(
 
6680
  -*) as_dir=./$as_dir;;
 
6681
  esac
 
6682
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
6683
    as_dirs=
 
6684
    while :; do
 
6685
      case $as_dir in #(
 
6686
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
6687
      *) as_qdir=$as_dir;;
 
6688
      esac
 
6689
      as_dirs="'$as_qdir' $as_dirs"
 
6690
      as_dir=`$as_dirname -- "$as_dir" ||
 
6691
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6692
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6693
         X"$as_dir" : 'X\(//\)$' \| \
 
6694
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
6695
echo X"$as_dir" |
 
6696
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6697
            s//\1/
 
6698
            q
 
6699
          }
 
6700
          /^X\(\/\/\)[^/].*/{
 
6701
            s//\1/
 
6702
            q
 
6703
          }
 
6704
          /^X\(\/\/\)$/{
 
6705
            s//\1/
 
6706
            q
 
6707
          }
 
6708
          /^X\(\/\).*/{
 
6709
            s//\1/
 
6710
            q
 
6711
          }
 
6712
          s/.*/./; q'`
 
6713
      test -d "$as_dir" && break
 
6714
    done
 
6715
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
6716
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
6717
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
6718
   { (exit 1); exit 1; }; }; }
 
6719
  ac_builddir=.
 
6720
 
 
6721
case "$ac_dir" in
 
6722
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6723
*)
 
6724
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
6725
  # A ".." for each directory in $ac_dir_suffix.
 
6726
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
6727
  case $ac_top_builddir_sub in
 
6728
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6729
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
6730
  esac ;;
 
6731
esac
 
6732
ac_abs_top_builddir=$ac_pwd
 
6733
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
6734
# for backward compatibility:
 
6735
ac_top_builddir=$ac_top_build_prefix
 
6736
 
 
6737
case $srcdir in
 
6738
  .)  # We are building in place.
 
6739
    ac_srcdir=.
 
6740
    ac_top_srcdir=$ac_top_builddir_sub
 
6741
    ac_abs_top_srcdir=$ac_pwd ;;
 
6742
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
6743
    ac_srcdir=$srcdir$ac_dir_suffix;
 
6744
    ac_top_srcdir=$srcdir
 
6745
    ac_abs_top_srcdir=$srcdir ;;
 
6746
  *) # Relative name.
 
6747
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
6748
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
6749
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
6750
esac
 
6751
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
6752
 
 
6753
 
 
6754
  case $ac_mode in
 
6755
 
 
6756
  :H)
 
6757
  #
 
6758
  # CONFIG_HEADER
 
6759
  #
 
6760
_ACEOF
 
6761
 
 
6762
# Transform confdefs.h into a sed script `conftest.defines', that
 
6763
# substitutes the proper values into config.h.in to produce config.h.
 
6764
rm -f conftest.defines conftest.tail
 
6765
# First, append a space to every undef/define line, to ease matching.
 
6766
echo 's/$/ /' >conftest.defines
 
6767
# Then, protect against being on the right side of a sed subst, or in
 
6768
# an unquoted here document, in config.status.  If some macros were
 
6769
# called several times there might be several #defines for the same
 
6770
# symbol, which is useless.  But do not sort them, since the last
 
6771
# AC_DEFINE must be honored.
 
6772
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
6773
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
6774
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
6775
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
6776
# just an empty string.
 
6777
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
6778
ac_dB='\\)[      (].*,\\1define\\2'
 
6779
ac_dC=' '
 
6780
ac_dD=' ,'
 
6781
 
 
6782
uniq confdefs.h |
 
6783
  sed -n '
 
6784
        t rset
 
6785
        :rset
 
6786
        s/^[     ]*#[    ]*define[       ][      ]*//
 
6787
        t ok
 
6788
        d
 
6789
        :ok
 
6790
        s/[\\&,]/\\&/g
 
6791
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
6792
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
6793
  ' >>conftest.defines
 
6794
 
 
6795
# Remove the space that was appended to ease matching.
 
6796
# Then replace #undef with comments.  This is necessary, for
 
6797
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
6798
# on some systems where configure will not decide to define it.
 
6799
# (The regexp can be short, since the line contains either #define or #undef.)
 
6800
echo 's/ $//
 
6801
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
6802
 
 
6803
# Break up conftest.defines:
 
6804
ac_max_sed_lines=50
 
6805
 
 
6806
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
6807
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
6808
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
6809
# et cetera.
 
6810
ac_in='$ac_file_inputs'
 
6811
ac_out='"$tmp/out1"'
 
6812
ac_nxt='"$tmp/out2"'
 
6813
 
 
6814
while :
 
6815
do
 
6816
  # Write a here document:
 
6817
    cat >>$CONFIG_STATUS <<_ACEOF
 
6818
    # First, check the format of the line:
 
6819
    cat >"\$tmp/defines.sed" <<\\CEOF
 
6820
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
6821
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
6822
b
 
6823
:def
 
6824
_ACEOF
 
6825
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
6826
  echo 'CEOF
 
6827
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
6828
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
6829
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
6830
  grep . conftest.tail >/dev/null || break
 
6831
  rm -f conftest.defines
 
6832
  mv conftest.tail conftest.defines
 
6833
done
 
6834
rm -f conftest.defines conftest.tail
 
6835
 
 
6836
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
6837
cat >>$CONFIG_STATUS <<\_ACEOF
 
6838
  if test x"$ac_file" != x-; then
 
6839
    echo "/* $configure_input  */" >"$tmp/config.h"
 
6840
    cat "$ac_result" >>"$tmp/config.h"
 
6841
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
6842
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
6843
echo "$as_me: $ac_file is unchanged" >&6;}
 
6844
    else
 
6845
      rm -f $ac_file
 
6846
      mv "$tmp/config.h" $ac_file
 
6847
    fi
 
6848
  else
 
6849
    echo "/* $configure_input  */"
 
6850
    cat "$ac_result"
 
6851
  fi
 
6852
  rm -f "$tmp/out12"
 
6853
 ;;
 
6854
 
 
6855
 
 
6856
  esac
 
6857
 
 
6858
done # for ac_tag
 
6859
 
 
6860
 
 
6861
{ (exit 0); exit 0; }
 
6862
_ACEOF
 
6863
chmod +x $CONFIG_STATUS
 
6864
ac_clean_files=$ac_clean_files_save
 
6865
 
 
6866
 
 
6867
# configure is writing to config.log, and then calls config.status.
 
6868
# config.status does its own redirection, appending to config.log.
 
6869
# Unfortunately, on DOS this fails, as config.log is still kept open
 
6870
# by configure, so config.status won't be able to write to it; its
 
6871
# output is simply discarded.  So we exec the FD to /dev/null,
 
6872
# effectively closing config.log, so it can be properly (re)opened and
 
6873
# appended to by config.status.  When coming back to configure, we
 
6874
# need to make the FD available again.
 
6875
if test "$no_create" != yes; then
 
6876
  ac_cs_success=:
 
6877
  ac_config_status_args=
 
6878
  test "$silent" = yes &&
 
6879
    ac_config_status_args="$ac_config_status_args --quiet"
 
6880
  exec 5>/dev/null
 
6881
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
6882
  exec 5>>config.log
 
6883
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
6884
  # would make configure fail if this is the last instruction.
 
6885
  $ac_cs_success || { (exit 1); exit 1; }
 
6886
fi
 
6887
 
 
6888