~ubuntu-branches/ubuntu/trusty/concalc/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-04-18 23:20:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070418232034-jyjxoyb2ymuqk5pj
Tags: upstream-0.7.0
ImportĀ upstreamĀ versionĀ 0.7.0

Show diffs side-by-side

added added

removed removed

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