~psusi/ubuntu/precise/dmraid/fix-gpt

« back to all changes in this revision

Viewing changes to 1.0.0.rc15/configure

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-02-04 21:34:22 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100204213422-tdag8lcxpr7ahmg4
Tags: 1.0.0.rc16-3ubuntu1
* Merge from debian testing. (LP: #503136)  Remaining changes:
  - debian/dmraid-activate: Remove the special-casing of the root
    device which breaks in many situations and leaves the raw devices
    exposed. This was introduced in Debian to accommodate some broken
    configurations which wanted to access "partitions" on the raid
    raw devices. In Ubuntu, broken configurations has not been supported.
  - debian/dmraid.postinst: Comment out "udevadm trigger" call in postinst
    for now as it has severeconsequences when mountall is installed
    (clears /tmp).  If dmraid is installed, then presumably the important
    system devices are up and one canbe bothered with a reboot to take 
    the change into account. Let update-initramfs flag the system
    as needing a reboot.

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