~ubuntu-branches/ubuntu/raring/grace/raring

« back to all changes in this revision

Viewing changes to .pc/fftw3.diff/configure

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Breen
  • Date: 2010-06-06 14:36:06 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100606143606-g8rdx6m4wyg3xx8l
Tags: 1:5.1.22-7
* Replace defoma font management with new /usr/sbin/update-grace-fonts
  trigger.  Many thanks to Kenshi Muto for the implementation.
  (Closes: #542335, #583956, #583964)
  - README.Debian: Update description of font handling, eliminate all
    references to defoma.
  - control: Depends -= defoma, += fontconfig.
* grace.preinst, grace.postinst: Additionally remove code only needed for
  upgrades from truly antique (pre-oldstable) releases.
* patches/nonlinear_extended.diff: Add menu entry for Doniach-Sunjic peak
  fitting.  (Closes: #583966)
* Backed out subscript-superscript-scale.diff pending coordination with
  upstream, to avoid distro-specific incompatibilities.
* compat: Increment to debhelper v7.
* Convert to source format 3.0 (quilt).  Replace uuencoded icons with 
  their decoded PNG forms; clean out the associated decoding and patching
  logic from rules, and remove Build-Depends on sharutils and quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
exec 7<&0 </dev/null 6>&1
 
553
 
 
554
# Name of the host.
 
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
556
# so uname gets run too.
 
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
558
 
 
559
#
 
560
# Initializations.
 
561
#
 
562
ac_default_prefix=/usr/local
 
563
ac_clean_files=
 
564
ac_config_libobj_dir=.
 
565
LIBOBJS=
 
566
cross_compiling=no
 
567
subdirs=
 
568
MFLAGS=
 
569
MAKEFLAGS=
 
570
SHELL=${CONFIG_SHELL-/bin/sh}
 
571
 
 
572
# Identity of this package.
 
573
PACKAGE_NAME=
 
574
PACKAGE_TARNAME=
 
575
PACKAGE_VERSION=
 
576
PACKAGE_STRING=
 
577
PACKAGE_BUGREPORT=
 
578
 
 
579
ac_unique_file="src/main.c"
 
580
ac_default_prefix="/usr/local"
 
581
# Factoring default headers for most tests.
 
582
ac_includes_default="\
 
583
#include <stdio.h>
 
584
#ifdef HAVE_SYS_TYPES_H
 
585
# include <sys/types.h>
 
586
#endif
 
587
#ifdef HAVE_SYS_STAT_H
 
588
# include <sys/stat.h>
 
589
#endif
 
590
#ifdef STDC_HEADERS
 
591
# include <stdlib.h>
 
592
# include <stddef.h>
 
593
#else
 
594
# ifdef HAVE_STDLIB_H
 
595
#  include <stdlib.h>
 
596
# endif
 
597
#endif
 
598
#ifdef HAVE_STRING_H
 
599
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
600
#  include <memory.h>
 
601
# endif
 
602
# include <string.h>
 
603
#endif
 
604
#ifdef HAVE_STRINGS_H
 
605
# include <strings.h>
 
606
#endif
 
607
#ifdef HAVE_INTTYPES_H
 
608
# include <inttypes.h>
 
609
#endif
 
610
#ifdef HAVE_STDINT_H
 
611
# include <stdint.h>
 
612
#endif
 
613
#ifdef HAVE_UNISTD_H
 
614
# include <unistd.h>
 
615
#endif"
 
616
 
 
617
ac_subst_vars='SHELL
 
618
PATH_SEPARATOR
 
619
PACKAGE_NAME
 
620
PACKAGE_TARNAME
 
621
PACKAGE_VERSION
 
622
PACKAGE_STRING
 
623
PACKAGE_BUGREPORT
 
624
exec_prefix
 
625
prefix
 
626
program_transform_name
 
627
bindir
 
628
sbindir
 
629
libexecdir
 
630
datarootdir
 
631
datadir
 
632
sysconfdir
 
633
sharedstatedir
 
634
localstatedir
 
635
includedir
 
636
oldincludedir
 
637
docdir
 
638
infodir
 
639
htmldir
 
640
dvidir
 
641
pdfdir
 
642
psdir
 
643
libdir
 
644
localedir
 
645
mandir
 
646
DEFS
 
647
ECHO_C
 
648
ECHO_N
 
649
ECHO_T
 
650
LIBS
 
651
build_alias
 
652
host_alias
 
653
target_alias
 
654
EXEEXT
 
655
OBJEXT
 
656
BATEXT
 
657
MKINSTALLDIRS
 
658
GRACE
 
659
GRACE_HOME
 
660
GUI_FLAGS
 
661
FC
 
662
GUI_LIBS
 
663
NOGUI_LIBS
 
664
NETCDF_LIBS
 
665
XDR_LIB
 
666
DL_LIB
 
667
T1_LIB
 
668
T1_INC
 
669
FFTW_LIB
 
670
Z_LIB
 
671
JPEG_LIB
 
672
PNG_LIB
 
673
PDF_LIB
 
674
XBAE_INC
 
675
SUBDIRS
 
676
GRACE_EDITOR
 
677
GRACE_HELPVIEWER
 
678
PRINT_CMD
 
679
T1_AA_TYPE16
 
680
T1_AA_TYPE32
 
681
T1_AA_TYPE64
 
682
build
 
683
build_cpu
 
684
build_vendor
 
685
build_os
 
686
host
 
687
host_cpu
 
688
host_vendor
 
689
host_os
 
690
CC
 
691
CFLAGS
 
692
LDFLAGS
 
693
CPPFLAGS
 
694
ac_ct_CC
 
695
CPP
 
696
GREP
 
697
EGREP
 
698
fc
 
699
SET_MAKE
 
700
AR
 
701
RANLIB
 
702
LN_S
 
703
YACC
 
704
YFLAGS
 
705
INSTALL_PROGRAM
 
706
INSTALL_SCRIPT
 
707
INSTALL_DATA
 
708
LP_CMD
 
709
LPR_CMD
 
710
ALLOCA
 
711
XMKMF
 
712
X_CFLAGS
 
713
X_PRE_LIBS
 
714
X_LIBS
 
715
X_EXTRA_LIBS
 
716
LIBOBJS
 
717
LTLIBOBJS'
 
718
ac_subst_files=''
 
719
      ac_precious_vars='build_alias
 
720
host_alias
 
721
target_alias
 
722
CC
 
723
CFLAGS
 
724
LDFLAGS
 
725
LIBS
 
726
CPPFLAGS
 
727
CPP
 
728
YACC
 
729
YFLAGS
 
730
XMKMF'
 
731
 
 
732
 
 
733
# Initialize some variables set by options.
 
734
ac_init_help=
 
735
ac_init_version=false
 
736
# The variables have the same names as the options, with
 
737
# dashes changed to underlines.
 
738
cache_file=/dev/null
 
739
exec_prefix=NONE
 
740
no_create=
 
741
no_recursion=
 
742
prefix=NONE
 
743
program_prefix=NONE
 
744
program_suffix=NONE
 
745
program_transform_name=s,x,x,
 
746
silent=
 
747
site=
 
748
srcdir=
 
749
verbose=
 
750
x_includes=NONE
 
751
x_libraries=NONE
 
752
 
 
753
# Installation directory options.
 
754
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
755
# and all the variables that are supposed to be based on exec_prefix
 
756
# by default will actually change.
 
757
# Use braces instead of parens because sh, perl, etc. also accept them.
 
758
# (The list follows the same order as the GNU Coding Standards.)
 
759
bindir='${exec_prefix}/bin'
 
760
sbindir='${exec_prefix}/sbin'
 
761
libexecdir='${exec_prefix}/libexec'
 
762
datarootdir='${prefix}/share'
 
763
datadir='${datarootdir}'
 
764
sysconfdir='${prefix}/etc'
 
765
sharedstatedir='${prefix}/com'
 
766
localstatedir='${prefix}/var'
 
767
includedir='${prefix}/include'
 
768
oldincludedir='/usr/include'
 
769
docdir='${datarootdir}/doc/${PACKAGE}'
 
770
infodir='${datarootdir}/info'
 
771
htmldir='${docdir}'
 
772
dvidir='${docdir}'
 
773
pdfdir='${docdir}'
 
774
psdir='${docdir}'
 
775
libdir='${exec_prefix}/lib'
 
776
localedir='${datarootdir}/locale'
 
777
mandir='${datarootdir}/man'
 
778
 
 
779
ac_prev=
 
780
ac_dashdash=
 
781
for ac_option
 
782
do
 
783
  # If the previous option needs an argument, assign it.
 
784
  if test -n "$ac_prev"; then
 
785
    eval $ac_prev=\$ac_option
 
786
    ac_prev=
 
787
    continue
 
788
  fi
 
789
 
 
790
  case $ac_option in
 
791
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
792
  *)    ac_optarg=yes ;;
 
793
  esac
 
794
 
 
795
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
796
 
 
797
  case $ac_dashdash$ac_option in
 
798
  --)
 
799
    ac_dashdash=yes ;;
 
800
 
 
801
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
802
    ac_prev=bindir ;;
 
803
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
804
    bindir=$ac_optarg ;;
 
805
 
 
806
  -build | --build | --buil | --bui | --bu)
 
807
    ac_prev=build_alias ;;
 
808
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
809
    build_alias=$ac_optarg ;;
 
810
 
 
811
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
812
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
813
    ac_prev=cache_file ;;
 
814
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
815
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
816
    cache_file=$ac_optarg ;;
 
817
 
 
818
  --config-cache | -C)
 
819
    cache_file=config.cache ;;
 
820
 
 
821
  -datadir | --datadir | --datadi | --datad)
 
822
    ac_prev=datadir ;;
 
823
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
824
    datadir=$ac_optarg ;;
 
825
 
 
826
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
827
  | --dataroo | --dataro | --datar)
 
828
    ac_prev=datarootdir ;;
 
829
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
830
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
831
    datarootdir=$ac_optarg ;;
 
832
 
 
833
  -disable-* | --disable-*)
 
834
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
835
    # Reject names that are not valid shell variable names.
 
836
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
837
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
838
   { (exit 1); exit 1; }; }
 
839
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
840
    eval enable_$ac_feature=no ;;
 
841
 
 
842
  -docdir | --docdir | --docdi | --doc | --do)
 
843
    ac_prev=docdir ;;
 
844
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
845
    docdir=$ac_optarg ;;
 
846
 
 
847
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
848
    ac_prev=dvidir ;;
 
849
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
850
    dvidir=$ac_optarg ;;
 
851
 
 
852
  -enable-* | --enable-*)
 
853
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
854
    # Reject names that are not valid shell variable names.
 
855
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
856
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
857
   { (exit 1); exit 1; }; }
 
858
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
859
    eval enable_$ac_feature=\$ac_optarg ;;
 
860
 
 
861
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
862
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
863
  | --exec | --exe | --ex)
 
864
    ac_prev=exec_prefix ;;
 
865
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
866
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
867
  | --exec=* | --exe=* | --ex=*)
 
868
    exec_prefix=$ac_optarg ;;
 
869
 
 
870
  -gas | --gas | --ga | --g)
 
871
    # Obsolete; use --with-gas.
 
872
    with_gas=yes ;;
 
873
 
 
874
  -help | --help | --hel | --he | -h)
 
875
    ac_init_help=long ;;
 
876
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
877
    ac_init_help=recursive ;;
 
878
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
879
    ac_init_help=short ;;
 
880
 
 
881
  -host | --host | --hos | --ho)
 
882
    ac_prev=host_alias ;;
 
883
  -host=* | --host=* | --hos=* | --ho=*)
 
884
    host_alias=$ac_optarg ;;
 
885
 
 
886
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
887
    ac_prev=htmldir ;;
 
888
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
889
  | --ht=*)
 
890
    htmldir=$ac_optarg ;;
 
891
 
 
892
  -includedir | --includedir | --includedi | --included | --include \
 
893
  | --includ | --inclu | --incl | --inc)
 
894
    ac_prev=includedir ;;
 
895
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
896
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
897
    includedir=$ac_optarg ;;
 
898
 
 
899
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
900
    ac_prev=infodir ;;
 
901
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
902
    infodir=$ac_optarg ;;
 
903
 
 
904
  -libdir | --libdir | --libdi | --libd)
 
905
    ac_prev=libdir ;;
 
906
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
907
    libdir=$ac_optarg ;;
 
908
 
 
909
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
910
  | --libexe | --libex | --libe)
 
911
    ac_prev=libexecdir ;;
 
912
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
913
  | --libexe=* | --libex=* | --libe=*)
 
914
    libexecdir=$ac_optarg ;;
 
915
 
 
916
  -localedir | --localedir | --localedi | --localed | --locale)
 
917
    ac_prev=localedir ;;
 
918
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
919
    localedir=$ac_optarg ;;
 
920
 
 
921
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
922
  | --localstate | --localstat | --localsta | --localst | --locals)
 
923
    ac_prev=localstatedir ;;
 
924
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
925
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
926
    localstatedir=$ac_optarg ;;
 
927
 
 
928
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
929
    ac_prev=mandir ;;
 
930
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
931
    mandir=$ac_optarg ;;
 
932
 
 
933
  -nfp | --nfp | --nf)
 
934
    # Obsolete; use --without-fp.
 
935
    with_fp=no ;;
 
936
 
 
937
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
938
  | --no-cr | --no-c | -n)
 
939
    no_create=yes ;;
 
940
 
 
941
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
942
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
943
    no_recursion=yes ;;
 
944
 
 
945
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
946
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
947
  | --oldin | --oldi | --old | --ol | --o)
 
948
    ac_prev=oldincludedir ;;
 
949
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
950
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
951
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
952
    oldincludedir=$ac_optarg ;;
 
953
 
 
954
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
955
    ac_prev=prefix ;;
 
956
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
957
    prefix=$ac_optarg ;;
 
958
 
 
959
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
960
  | --program-pre | --program-pr | --program-p)
 
961
    ac_prev=program_prefix ;;
 
962
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
963
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
964
    program_prefix=$ac_optarg ;;
 
965
 
 
966
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
967
  | --program-suf | --program-su | --program-s)
 
968
    ac_prev=program_suffix ;;
 
969
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
970
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
971
    program_suffix=$ac_optarg ;;
 
972
 
 
973
  -program-transform-name | --program-transform-name \
 
974
  | --program-transform-nam | --program-transform-na \
 
975
  | --program-transform-n | --program-transform- \
 
976
  | --program-transform | --program-transfor \
 
977
  | --program-transfo | --program-transf \
 
978
  | --program-trans | --program-tran \
 
979
  | --progr-tra | --program-tr | --program-t)
 
980
    ac_prev=program_transform_name ;;
 
981
  -program-transform-name=* | --program-transform-name=* \
 
982
  | --program-transform-nam=* | --program-transform-na=* \
 
983
  | --program-transform-n=* | --program-transform-=* \
 
984
  | --program-transform=* | --program-transfor=* \
 
985
  | --program-transfo=* | --program-transf=* \
 
986
  | --program-trans=* | --program-tran=* \
 
987
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
988
    program_transform_name=$ac_optarg ;;
 
989
 
 
990
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
991
    ac_prev=pdfdir ;;
 
992
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
993
    pdfdir=$ac_optarg ;;
 
994
 
 
995
  -psdir | --psdir | --psdi | --psd | --ps)
 
996
    ac_prev=psdir ;;
 
997
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
998
    psdir=$ac_optarg ;;
 
999
 
 
1000
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1001
  | -silent | --silent | --silen | --sile | --sil)
 
1002
    silent=yes ;;
 
1003
 
 
1004
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1005
    ac_prev=sbindir ;;
 
1006
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1007
  | --sbi=* | --sb=*)
 
1008
    sbindir=$ac_optarg ;;
 
1009
 
 
1010
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1011
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1012
  | --sharedst | --shareds | --shared | --share | --shar \
 
1013
  | --sha | --sh)
 
1014
    ac_prev=sharedstatedir ;;
 
1015
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1016
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1017
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1018
  | --sha=* | --sh=*)
 
1019
    sharedstatedir=$ac_optarg ;;
 
1020
 
 
1021
  -site | --site | --sit)
 
1022
    ac_prev=site ;;
 
1023
  -site=* | --site=* | --sit=*)
 
1024
    site=$ac_optarg ;;
 
1025
 
 
1026
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1027
    ac_prev=srcdir ;;
 
1028
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1029
    srcdir=$ac_optarg ;;
 
1030
 
 
1031
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1032
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1033
    ac_prev=sysconfdir ;;
 
1034
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1035
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1036
    sysconfdir=$ac_optarg ;;
 
1037
 
 
1038
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1039
    ac_prev=target_alias ;;
 
1040
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1041
    target_alias=$ac_optarg ;;
 
1042
 
 
1043
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1044
    verbose=yes ;;
 
1045
 
 
1046
  -version | --version | --versio | --versi | --vers | -V)
 
1047
    ac_init_version=: ;;
 
1048
 
 
1049
  -with-* | --with-*)
 
1050
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1051
    # Reject names that are not valid shell variable names.
 
1052
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1053
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1054
   { (exit 1); exit 1; }; }
 
1055
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1056
    eval with_$ac_package=\$ac_optarg ;;
 
1057
 
 
1058
  -without-* | --without-*)
 
1059
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1060
    # Reject names that are not valid shell variable names.
 
1061
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1062
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1063
   { (exit 1); exit 1; }; }
 
1064
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1065
    eval with_$ac_package=no ;;
 
1066
 
 
1067
  --x)
 
1068
    # Obsolete; use --with-x.
 
1069
    with_x=yes ;;
 
1070
 
 
1071
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1072
  | --x-incl | --x-inc | --x-in | --x-i)
 
1073
    ac_prev=x_includes ;;
 
1074
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1075
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1076
    x_includes=$ac_optarg ;;
 
1077
 
 
1078
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1079
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1080
    ac_prev=x_libraries ;;
 
1081
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1082
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1083
    x_libraries=$ac_optarg ;;
 
1084
 
 
1085
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1086
Try \`$0 --help' for more information." >&2
 
1087
   { (exit 1); exit 1; }; }
 
1088
    ;;
 
1089
 
 
1090
  *=*)
 
1091
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1092
    # Reject names that are not valid shell variable names.
 
1093
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1094
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1095
   { (exit 1); exit 1; }; }
 
1096
    eval $ac_envvar=\$ac_optarg
 
1097
    export $ac_envvar ;;
 
1098
 
 
1099
  *)
 
1100
    # FIXME: should be removed in autoconf 3.0.
 
1101
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1102
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1103
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1104
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1105
    ;;
 
1106
 
 
1107
  esac
 
1108
done
 
1109
 
 
1110
if test -n "$ac_prev"; then
 
1111
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1112
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1113
   { (exit 1); exit 1; }; }
 
1114
fi
 
1115
 
 
1116
# Be sure to have absolute directory names.
 
1117
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1118
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1119
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1120
                libdir localedir mandir
 
1121
do
 
1122
  eval ac_val=\$$ac_var
 
1123
  case $ac_val in
 
1124
    [\\/$]* | ?:[\\/]* )  continue;;
 
1125
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1126
  esac
 
1127
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1128
   { (exit 1); exit 1; }; }
 
1129
done
 
1130
 
 
1131
# There might be people who depend on the old broken behavior: `$host'
 
1132
# used to hold the argument of --host etc.
 
1133
# FIXME: To remove some day.
 
1134
build=$build_alias
 
1135
host=$host_alias
 
1136
target=$target_alias
 
1137
 
 
1138
# FIXME: To remove some day.
 
1139
if test "x$host_alias" != x; then
 
1140
  if test "x$build_alias" = x; then
 
1141
    cross_compiling=maybe
 
1142
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1143
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1144
  elif test "x$build_alias" != "x$host_alias"; then
 
1145
    cross_compiling=yes
 
1146
  fi
 
1147
fi
 
1148
 
 
1149
ac_tool_prefix=
 
1150
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1151
 
 
1152
test "$silent" = yes && exec 6>/dev/null
 
1153
 
 
1154
 
 
1155
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1156
ac_ls_di=`ls -di .` &&
 
1157
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1158
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1159
   { (exit 1); exit 1; }; }
 
1160
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1161
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1162
   { (exit 1); exit 1; }; }
 
1163
 
 
1164
 
 
1165
# Find the source files, if location was not specified.
 
1166
if test -z "$srcdir"; then
 
1167
  ac_srcdir_defaulted=yes
 
1168
  # Try the directory containing this script, then the parent directory.
 
1169
  ac_confdir=`$as_dirname -- "$0" ||
 
1170
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1171
         X"$0" : 'X\(//\)[^/]' \| \
 
1172
         X"$0" : 'X\(//\)$' \| \
 
1173
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1174
echo X"$0" |
 
1175
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1176
            s//\1/
 
1177
            q
 
1178
          }
 
1179
          /^X\(\/\/\)[^/].*/{
 
1180
            s//\1/
 
1181
            q
 
1182
          }
 
1183
          /^X\(\/\/\)$/{
 
1184
            s//\1/
 
1185
            q
 
1186
          }
 
1187
          /^X\(\/\).*/{
 
1188
            s//\1/
 
1189
            q
 
1190
          }
 
1191
          s/.*/./; q'`
 
1192
  srcdir=$ac_confdir
 
1193
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1194
    srcdir=..
 
1195
  fi
 
1196
else
 
1197
  ac_srcdir_defaulted=no
 
1198
fi
 
1199
if test ! -r "$srcdir/$ac_unique_file"; then
 
1200
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1201
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1202
   { (exit 1); exit 1; }; }
 
1203
fi
 
1204
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1205
ac_abs_confdir=`(
 
1206
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1207
   { (exit 1); exit 1; }; }
 
1208
        pwd)`
 
1209
# When building in place, set srcdir=.
 
1210
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1211
  srcdir=.
 
1212
fi
 
1213
# Remove unnecessary trailing slashes from srcdir.
 
1214
# Double slashes in file names in object file debugging info
 
1215
# mess up M-x gdb in Emacs.
 
1216
case $srcdir in
 
1217
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1218
esac
 
1219
for ac_var in $ac_precious_vars; do
 
1220
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1221
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1222
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1223
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1224
done
 
1225
 
 
1226
#
 
1227
# Report the --help message.
 
1228
#
 
1229
if test "$ac_init_help" = "long"; then
 
1230
  # Omit some internal or obsolete options to make the list less imposing.
 
1231
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1232
  cat <<_ACEOF
 
1233
\`configure' configures this package to adapt to many kinds of systems.
 
1234
 
 
1235
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1236
 
 
1237
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1238
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1239
 
 
1240
Defaults for the options are specified in brackets.
 
1241
 
 
1242
Configuration:
 
1243
  -h, --help              display this help and exit
 
1244
      --help=short        display options specific to this package
 
1245
      --help=recursive    display the short help of all the included packages
 
1246
  -V, --version           display version information and exit
 
1247
  -q, --quiet, --silent   do not print \`checking...' messages
 
1248
      --cache-file=FILE   cache test results in FILE [disabled]
 
1249
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1250
  -n, --no-create         do not create output files
 
1251
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1252
 
 
1253
Installation directories:
 
1254
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1255
                          [$ac_default_prefix]
 
1256
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1257
                          [PREFIX]
 
1258
 
 
1259
By default, \`make install' will install all the files in
 
1260
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1261
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1262
for instance \`--prefix=\$HOME'.
 
1263
 
 
1264
For better control, use the options below.
 
1265
 
 
1266
Fine tuning of the installation directories:
 
1267
  --bindir=DIR           user executables [EPREFIX/bin]
 
1268
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1269
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1270
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1271
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1272
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1273
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1274
  --includedir=DIR       C header files [PREFIX/include]
 
1275
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1276
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1277
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1278
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1279
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1280
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1281
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1282
  --htmldir=DIR          html documentation [DOCDIR]
 
1283
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1284
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1285
  --psdir=DIR            ps documentation [DOCDIR]
 
1286
_ACEOF
 
1287
 
 
1288
  cat <<\_ACEOF
 
1289
 
 
1290
X features:
 
1291
  --x-includes=DIR    X include files are in DIR
 
1292
  --x-libraries=DIR   X library files are in DIR
 
1293
 
 
1294
System types:
 
1295
  --build=BUILD     configure for building on BUILD [guessed]
 
1296
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1297
_ACEOF
 
1298
fi
 
1299
 
 
1300
if test -n "$ac_init_help"; then
 
1301
 
 
1302
  cat <<\_ACEOF
 
1303
 
 
1304
Optional Features:
 
1305
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1306
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1307
  --enable-grace-home=DIR      define Grace home dir [PREFIX/grace]
 
1308
  --enable-config=FILE         define configuration FILE to override
 
1309
                               autodetection (not recommended!)
 
1310
  --enable-netcdf              enable support for netCDF [yes]
 
1311
  --enable-jpegdrv             build JPEG driver [yes]
 
1312
  --enable-pngdrv              build PNG driver [yes]
 
1313
  --enable-pdfdrv              build PDF driver [yes]
 
1314
  --enable-f77-wrapper         include Fortran wrapper for libgrace_np [yes]
 
1315
  --enable-editres             enable editres support [yes]
 
1316
  --enable-libhelp             use libhelp [no]
 
1317
  --enable-xmhtml              use XmHTML widget for on-line help [yes]
 
1318
  --enable-debug               turn on debugging [no]
 
1319
  --enable-maintainer          enable maintainer's mode [no]
 
1320
 
 
1321
Optional Packages:
 
1322
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1323
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1324
  --with-cc=PROG               use PROG as C compiler [${CC-gcc}]
 
1325
  --with-f77=PROG              use PROG as Fortran compiler [${FC-f77}]
 
1326
  --with-extra-incpath=PATH    define extra include path (dir1:dir2:...) [none]
 
1327
  --with-extra-ldpath=PATH     define extra ld path (dir1:dir2:...) [none]
 
1328
  --with-bundled-t1lib         use bundled T1lib [no]
 
1329
  --with-bundled-xbae          use bundled Xbae [yes]
 
1330
  --with-fftw                  use FFTW library for Fourier transforms [yes]
 
1331
  --with-editor=COMMAND        define editor ["xterm -e vi"]
 
1332
  --with-helpviewer=COMMAND    define help viewer command ["mozilla %s"]
 
1333
  --with-printcmd=PROG         use PROG for printing
 
1334
  --with-netcdf-libraries=OBJ  use OBJ as netCDF libraries [-lnetcdf]
 
1335
  --with-fftw-library=OBJ      use OBJ as FFTW library [-lfftw]
 
1336
  --with-zlib-library=OBJ      use OBJ as ZLIB library [-lz]
 
1337
  --with-jpeg-library=OBJ      use OBJ as JPEG library [-ljpeg]
 
1338
  --with-png-library=OBJ       use OBJ as PNG library [-lpng]
 
1339
  --with-pdf-library=OBJ       use OBJ as PDFlib library [-lpdf]
 
1340
  --with-x                use the X Window System
 
1341
  --with-motif-library=OBJ     use OBJ as Motif library [-lXm]
 
1342
  --with-xmhtml-library=OBJ    use OBJ as XmHTML library [-lXmHTML]
 
1343
 
 
1344
Some influential environment variables:
 
1345
  CC          C compiler command
 
1346
  CFLAGS      C compiler flags
 
1347
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1348
              nonstandard directory <lib dir>
 
1349
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1350
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1351
              you have headers in a nonstandard directory <include dir>
 
1352
  CPP         C preprocessor
 
1353
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1354
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1355
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1356
              This script will default YFLAGS to the empty string to avoid a
 
1357
              default value of `-d' given by some make applications.
 
1358
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1359
 
 
1360
Use these variables to override the choices made by `configure' or to help
 
1361
it to find libraries and programs with nonstandard names/locations.
 
1362
 
 
1363
_ACEOF
 
1364
ac_status=$?
 
1365
fi
 
1366
 
 
1367
if test "$ac_init_help" = "recursive"; then
 
1368
  # If there are subdirs, report their specific --help.
 
1369
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1370
    test -d "$ac_dir" || continue
 
1371
    ac_builddir=.
 
1372
 
 
1373
case "$ac_dir" in
 
1374
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1375
*)
 
1376
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1377
  # A ".." for each directory in $ac_dir_suffix.
 
1378
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1379
  case $ac_top_builddir_sub in
 
1380
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1381
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1382
  esac ;;
 
1383
esac
 
1384
ac_abs_top_builddir=$ac_pwd
 
1385
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1386
# for backward compatibility:
 
1387
ac_top_builddir=$ac_top_build_prefix
 
1388
 
 
1389
case $srcdir in
 
1390
  .)  # We are building in place.
 
1391
    ac_srcdir=.
 
1392
    ac_top_srcdir=$ac_top_builddir_sub
 
1393
    ac_abs_top_srcdir=$ac_pwd ;;
 
1394
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1395
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1396
    ac_top_srcdir=$srcdir
 
1397
    ac_abs_top_srcdir=$srcdir ;;
 
1398
  *) # Relative name.
 
1399
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1400
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1401
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1402
esac
 
1403
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1404
 
 
1405
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1406
    # Check for guested configure.
 
1407
    if test -f "$ac_srcdir/configure.gnu"; then
 
1408
      echo &&
 
1409
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1410
    elif test -f "$ac_srcdir/configure"; then
 
1411
      echo &&
 
1412
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1413
    else
 
1414
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1415
    fi || ac_status=$?
 
1416
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1417
  done
 
1418
fi
 
1419
 
 
1420
test -n "$ac_init_help" && exit $ac_status
 
1421
if $ac_init_version; then
 
1422
  cat <<\_ACEOF
 
1423
configure
 
1424
generated by GNU Autoconf 2.61
 
1425
 
 
1426
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1427
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1428
This configure script is free software; the Free Software Foundation
 
1429
gives unlimited permission to copy, distribute and modify it.
 
1430
_ACEOF
 
1431
  exit
 
1432
fi
 
1433
cat >config.log <<_ACEOF
 
1434
This file contains any messages produced by compilers while
 
1435
running configure, to aid debugging if configure makes a mistake.
 
1436
 
 
1437
It was created by $as_me, which was
 
1438
generated by GNU Autoconf 2.61.  Invocation command line was
 
1439
 
 
1440
  $ $0 $@
 
1441
 
 
1442
_ACEOF
 
1443
exec 5>>config.log
 
1444
{
 
1445
cat <<_ASUNAME
 
1446
## --------- ##
 
1447
## Platform. ##
 
1448
## --------- ##
 
1449
 
 
1450
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1451
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1452
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1453
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1454
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1455
 
 
1456
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1457
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1458
 
 
1459
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1460
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1461
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1462
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1463
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1464
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1465
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1466
 
 
1467
_ASUNAME
 
1468
 
 
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1470
for as_dir in $PATH
 
1471
do
 
1472
  IFS=$as_save_IFS
 
1473
  test -z "$as_dir" && as_dir=.
 
1474
  echo "PATH: $as_dir"
 
1475
done
 
1476
IFS=$as_save_IFS
 
1477
 
 
1478
} >&5
 
1479
 
 
1480
cat >&5 <<_ACEOF
 
1481
 
 
1482
 
 
1483
## ----------- ##
 
1484
## Core tests. ##
 
1485
## ----------- ##
 
1486
 
 
1487
_ACEOF
 
1488
 
 
1489
 
 
1490
# Keep a trace of the command line.
 
1491
# Strip out --no-create and --no-recursion so they do not pile up.
 
1492
# Strip out --silent because we don't want to record it for future runs.
 
1493
# Also quote any args containing shell meta-characters.
 
1494
# Make two passes to allow for proper duplicate-argument suppression.
 
1495
ac_configure_args=
 
1496
ac_configure_args0=
 
1497
ac_configure_args1=
 
1498
ac_must_keep_next=false
 
1499
for ac_pass in 1 2
 
1500
do
 
1501
  for ac_arg
 
1502
  do
 
1503
    case $ac_arg in
 
1504
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1505
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1506
    | -silent | --silent | --silen | --sile | --sil)
 
1507
      continue ;;
 
1508
    *\'*)
 
1509
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1510
    esac
 
1511
    case $ac_pass in
 
1512
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1513
    2)
 
1514
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1515
      if test $ac_must_keep_next = true; then
 
1516
        ac_must_keep_next=false # Got value, back to normal.
 
1517
      else
 
1518
        case $ac_arg in
 
1519
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1520
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1521
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1522
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1523
            case "$ac_configure_args0 " in
 
1524
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1525
            esac
 
1526
            ;;
 
1527
          -* ) ac_must_keep_next=true ;;
 
1528
        esac
 
1529
      fi
 
1530
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1531
      ;;
 
1532
    esac
 
1533
  done
 
1534
done
 
1535
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1536
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1537
 
 
1538
# When interrupted or exit'd, cleanup temporary files, and complete
 
1539
# config.log.  We remove comments because anyway the quotes in there
 
1540
# would cause problems or look ugly.
 
1541
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1542
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1543
trap 'exit_status=$?
 
1544
  # Save into config.log some information that might help in debugging.
 
1545
  {
 
1546
    echo
 
1547
 
 
1548
    cat <<\_ASBOX
 
1549
## ---------------- ##
 
1550
## Cache variables. ##
 
1551
## ---------------- ##
 
1552
_ASBOX
 
1553
    echo
 
1554
    # The following way of writing the cache mishandles newlines in values,
 
1555
(
 
1556
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1557
    eval ac_val=\$$ac_var
 
1558
    case $ac_val in #(
 
1559
    *${as_nl}*)
 
1560
      case $ac_var in #(
 
1561
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1562
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1563
      esac
 
1564
      case $ac_var in #(
 
1565
      _ | IFS | as_nl) ;; #(
 
1566
      *) $as_unset $ac_var ;;
 
1567
      esac ;;
 
1568
    esac
 
1569
  done
 
1570
  (set) 2>&1 |
 
1571
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1572
    *${as_nl}ac_space=\ *)
 
1573
      sed -n \
 
1574
        "s/'\''/'\''\\\\'\'''\''/g;
 
1575
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1576
      ;; #(
 
1577
    *)
 
1578
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1579
      ;;
 
1580
    esac |
 
1581
    sort
 
1582
)
 
1583
    echo
 
1584
 
 
1585
    cat <<\_ASBOX
 
1586
## ----------------- ##
 
1587
## Output variables. ##
 
1588
## ----------------- ##
 
1589
_ASBOX
 
1590
    echo
 
1591
    for ac_var in $ac_subst_vars
 
1592
    do
 
1593
      eval ac_val=\$$ac_var
 
1594
      case $ac_val in
 
1595
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1596
      esac
 
1597
      echo "$ac_var='\''$ac_val'\''"
 
1598
    done | sort
 
1599
    echo
 
1600
 
 
1601
    if test -n "$ac_subst_files"; then
 
1602
      cat <<\_ASBOX
 
1603
## ------------------- ##
 
1604
## File substitutions. ##
 
1605
## ------------------- ##
 
1606
_ASBOX
 
1607
      echo
 
1608
      for ac_var in $ac_subst_files
 
1609
      do
 
1610
        eval ac_val=\$$ac_var
 
1611
        case $ac_val in
 
1612
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1613
        esac
 
1614
        echo "$ac_var='\''$ac_val'\''"
 
1615
      done | sort
 
1616
      echo
 
1617
    fi
 
1618
 
 
1619
    if test -s confdefs.h; then
 
1620
      cat <<\_ASBOX
 
1621
## ----------- ##
 
1622
## confdefs.h. ##
 
1623
## ----------- ##
 
1624
_ASBOX
 
1625
      echo
 
1626
      cat confdefs.h
 
1627
      echo
 
1628
    fi
 
1629
    test "$ac_signal" != 0 &&
 
1630
      echo "$as_me: caught signal $ac_signal"
 
1631
    echo "$as_me: exit $exit_status"
 
1632
  } >&5
 
1633
  rm -f core *.core core.conftest.* &&
 
1634
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1635
    exit $exit_status
 
1636
' 0
 
1637
for ac_signal in 1 2 13 15; do
 
1638
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1639
done
 
1640
ac_signal=0
 
1641
 
 
1642
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1643
rm -f -r conftest* confdefs.h
 
1644
 
 
1645
# Predefined preprocessor variables.
 
1646
 
 
1647
cat >>confdefs.h <<_ACEOF
 
1648
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1649
_ACEOF
 
1650
 
 
1651
 
 
1652
cat >>confdefs.h <<_ACEOF
 
1653
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1654
_ACEOF
 
1655
 
 
1656
 
 
1657
cat >>confdefs.h <<_ACEOF
 
1658
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1659
_ACEOF
 
1660
 
 
1661
 
 
1662
cat >>confdefs.h <<_ACEOF
 
1663
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1664
_ACEOF
 
1665
 
 
1666
 
 
1667
cat >>confdefs.h <<_ACEOF
 
1668
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1669
_ACEOF
 
1670
 
 
1671
 
 
1672
# Let the site file select an alternate cache file if it wants to.
 
1673
# Prefer explicitly selected file to automatically selected ones.
 
1674
if test -n "$CONFIG_SITE"; then
 
1675
  set x "$CONFIG_SITE"
 
1676
elif test "x$prefix" != xNONE; then
 
1677
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1678
else
 
1679
  set x "$ac_default_prefix/share/config.site" \
 
1680
        "$ac_default_prefix/etc/config.site"
 
1681
fi
 
1682
shift
 
1683
for ac_site_file
 
1684
do
 
1685
  if test -r "$ac_site_file"; then
 
1686
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1687
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1688
    sed 's/^/| /' "$ac_site_file" >&5
 
1689
    . "$ac_site_file"
 
1690
  fi
 
1691
done
 
1692
 
 
1693
if test -r "$cache_file"; then
 
1694
  # Some versions of bash will fail to source /dev/null (special
 
1695
  # files actually), so we avoid doing that.
 
1696
  if test -f "$cache_file"; then
 
1697
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1698
echo "$as_me: loading cache $cache_file" >&6;}
 
1699
    case $cache_file in
 
1700
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1701
      *)                      . "./$cache_file";;
 
1702
    esac
 
1703
  fi
 
1704
else
 
1705
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1706
echo "$as_me: creating cache $cache_file" >&6;}
 
1707
  >$cache_file
 
1708
fi
 
1709
 
 
1710
# Check that the precious variables saved in the cache have kept the same
 
1711
# value.
 
1712
ac_cache_corrupted=false
 
1713
for ac_var in $ac_precious_vars; do
 
1714
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1715
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1716
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1717
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1718
  case $ac_old_set,$ac_new_set in
 
1719
    set,)
 
1720
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1721
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1722
      ac_cache_corrupted=: ;;
 
1723
    ,set)
 
1724
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1725
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1726
      ac_cache_corrupted=: ;;
 
1727
    ,);;
 
1728
    *)
 
1729
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1730
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1731
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1732
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1733
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1734
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1735
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1736
        ac_cache_corrupted=:
 
1737
      fi;;
 
1738
  esac
 
1739
  # Pass precious variables to config.status.
 
1740
  if test "$ac_new_set" = set; then
 
1741
    case $ac_new_val in
 
1742
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1743
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1744
    esac
 
1745
    case " $ac_configure_args " in
 
1746
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1747
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1748
    esac
 
1749
  fi
 
1750
done
 
1751
if $ac_cache_corrupted; then
 
1752
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1753
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1754
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1755
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1756
   { (exit 1); exit 1; }; }
 
1757
fi
 
1758
 
 
1759
 
 
1760
 
 
1761
 
 
1762
 
 
1763
 
 
1764
 
 
1765
 
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
ac_ext=c
 
1776
ac_cpp='$CPP $CPPFLAGS'
 
1777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1780
 
 
1781
 
 
1782
ac_aux_dir=
 
1783
for ac_dir in ac-tools "$srcdir"/ac-tools; do
 
1784
  if test -f "$ac_dir/install-sh"; then
 
1785
    ac_aux_dir=$ac_dir
 
1786
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1787
    break
 
1788
  elif test -f "$ac_dir/install.sh"; then
 
1789
    ac_aux_dir=$ac_dir
 
1790
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1791
    break
 
1792
  elif test -f "$ac_dir/shtool"; then
 
1793
    ac_aux_dir=$ac_dir
 
1794
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1795
    break
 
1796
  fi
 
1797
done
 
1798
if test -z "$ac_aux_dir"; then
 
1799
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5
 
1800
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;}
 
1801
   { (exit 1); exit 1; }; }
 
1802
fi
 
1803
 
 
1804
# These three variables are undocumented and unsupported,
 
1805
# and are intended to be withdrawn in a future Autoconf release.
 
1806
# They can cause serious problems if a builder's source tree is in a directory
 
1807
# whose full name contains unusual characters.
 
1808
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1809
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1810
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1811
 
 
1812
 
 
1813
 
 
1814
ac_config_headers="$ac_config_headers config.h:ac-tools/config.h.in"
 
1815
 
 
1816
 
 
1817
 
 
1818
 
 
1819
 
 
1820
 
 
1821
 
 
1822
 
 
1823
 
 
1824
 
 
1825
 
 
1826
 
 
1827
 
 
1828
 
 
1829
 
 
1830
 
 
1831
 
 
1832
 
 
1833
 
 
1834
 
 
1835
 
 
1836
 
 
1837
 
 
1838
 
 
1839
 
 
1840
 
 
1841
 
 
1842
 
 
1843
 
 
1844
 
 
1845
 
 
1846
 
 
1847
 
 
1848
 
 
1849
 
 
1850
 
 
1851
 
 
1852
 
 
1853
 
 
1854
 
 
1855
 
 
1856
 
 
1857
 
 
1858
 
 
1859
 
 
1860
 
 
1861
 
 
1862
 
 
1863
 
 
1864
 
 
1865
 
 
1866
 
 
1867
 
 
1868
 
 
1869
 
 
1870
 
 
1871
 
 
1872
 
 
1873
 
 
1874
 
 
1875
 
 
1876
 
 
1877
 
 
1878
 
 
1879
 
 
1880
 
 
1881
 
 
1882
 
 
1883
 
 
1884
 
 
1885
 
 
1886
 
 
1887
 
 
1888
 
 
1889
 
 
1890
 
 
1891
if test "x${prefix}" = "xNONE"
 
1892
then
 
1893
  GRACE_HOME=${ac_default_prefix}/grace
 
1894
else
 
1895
  GRACE_HOME=${prefix}/grace
 
1896
fi
 
1897
# Check whether --enable-grace-home was given.
 
1898
if test "${enable_grace_home+set}" = set; then
 
1899
  enableval=$enable_grace_home; GRACE_HOME="${enableval}"
 
1900
fi
 
1901
 
 
1902
 
 
1903
 
 
1904
# Check whether --enable-config was given.
 
1905
if test "${enable_config+set}" = set; then
 
1906
  enableval=$enable_config; CONF_FILE="${enableval}"
 
1907
fi
 
1908
 
 
1909
 
 
1910
CC=${CC-gcc}
 
1911
 
 
1912
# Check whether --with-cc was given.
 
1913
if test "${with_cc+set}" = set; then
 
1914
  withval=$with_cc; CC="${withval}"
 
1915
fi
 
1916
 
 
1917
 
 
1918
FC=${FC-f77}
 
1919
 
 
1920
# Check whether --with-f77 was given.
 
1921
if test "${with_f77+set}" = set; then
 
1922
  withval=$with_f77; FC="${withval}"
 
1923
fi
 
1924
 
 
1925
 
 
1926
 
 
1927
# Check whether --with-extra-incpath was given.
 
1928
if test "${with_extra_incpath+set}" = set; then
 
1929
  withval=$with_extra_incpath; CPPFLAGS="${CPPFLAGS} -I`echo ${withval}|sed 's/:/\ -I/g'`"
 
1930
fi
 
1931
 
 
1932
 
 
1933
 
 
1934
# Check whether --with-extra-ldpath was given.
 
1935
if test "${with_extra_ldpath+set}" = set; then
 
1936
  withval=$with_extra_ldpath; LDFLAGS="-L`echo ${withval}|sed 's/:/\ -L/g'` ${LDFLAGS}";
 
1937
  case "${host}" in
 
1938
    sparc-sun-solaris*) LDFLAGS="-R:${withval} ${LDFLAGS}";;
 
1939
  esac
 
1940
 
 
1941
fi
 
1942
 
 
1943
 
 
1944
 
 
1945
# Check whether --with-bundled_t1lib was given.
 
1946
if test "${with_bundled_t1lib+set}" = set; then
 
1947
  withval=$with_bundled_t1lib; case "${withval}" in
 
1948
  yes) bundled_t1lib=true ;;
 
1949
  no)  bundled_t1lib=false;;
 
1950
  *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-bundled-t1lib" >&5
 
1951
echo "$as_me: error: bad value ${withval} for --with-bundled-t1lib" >&2;}
 
1952
   { (exit 1); exit 1; }; } ;;
 
1953
esac
 
1954
else
 
1955
  bundled_t1lib=false
 
1956
fi
 
1957
 
 
1958
 
 
1959
 
 
1960
# Check whether --with-bundled_xbae was given.
 
1961
if test "${with_bundled_xbae+set}" = set; then
 
1962
  withval=$with_bundled_xbae; case "${withval}" in
 
1963
  yes) bundled_xbae=true ;;
 
1964
  no)  bundled_xbae=false;;
 
1965
  *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-bundled-xbae" >&5
 
1966
echo "$as_me: error: bad value ${withval} for --with-bundled-xbae" >&2;}
 
1967
   { (exit 1); exit 1; }; } ;;
 
1968
esac
 
1969
else
 
1970
  bundled_xbae=true
 
1971
fi
 
1972
 
 
1973
 
 
1974
# Check whether --enable-netcdf was given.
 
1975
if test "${enable_netcdf+set}" = set; then
 
1976
  enableval=$enable_netcdf; case "${enableval}" in
 
1977
  yes) netcdf=true ;;
 
1978
  no)  netcdf=false;;
 
1979
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-netcdf" >&5
 
1980
echo "$as_me: error: bad value ${enableval} for --enable-netcdf" >&2;}
 
1981
   { (exit 1); exit 1; }; } ;;
 
1982
esac
 
1983
else
 
1984
  netcdf=true
 
1985
fi
 
1986
 
 
1987
 
 
1988
 
 
1989
# Check whether --with-fftw was given.
 
1990
if test "${with_fftw+set}" = set; then
 
1991
  withval=$with_fftw; case "${withval}" in
 
1992
  yes) fftw=true ;;
 
1993
  no)  fftw=false;;
 
1994
  *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-fftw" >&5
 
1995
echo "$as_me: error: bad value ${withval} for --with-fftw" >&2;}
 
1996
   { (exit 1); exit 1; }; } ;;
 
1997
esac
 
1998
else
 
1999
  fftw=true
 
2000
fi
 
2001
 
 
2002
 
 
2003
# Check whether --enable-jpegdrv was given.
 
2004
if test "${enable_jpegdrv+set}" = set; then
 
2005
  enableval=$enable_jpegdrv; case "${enableval}" in
 
2006
  yes) jpegdrv=true ;;
 
2007
  no)  jpegdrv=false;;
 
2008
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-jpegdrv" >&5
 
2009
echo "$as_me: error: bad value ${enableval} for --enable-jpegdrv" >&2;}
 
2010
   { (exit 1); exit 1; }; } ;;
 
2011
esac
 
2012
else
 
2013
  jpegdrv=true
 
2014
fi
 
2015
 
 
2016
 
 
2017
# Check whether --enable-pngdrv was given.
 
2018
if test "${enable_pngdrv+set}" = set; then
 
2019
  enableval=$enable_pngdrv; case "${enableval}" in
 
2020
  yes) pngdrv=true ;;
 
2021
  no)  pngdrv=false;;
 
2022
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pngdrv" >&5
 
2023
echo "$as_me: error: bad value ${enableval} for --enable-pngdrv" >&2;}
 
2024
   { (exit 1); exit 1; }; } ;;
 
2025
esac
 
2026
else
 
2027
  pngdrv=true
 
2028
fi
 
2029
 
 
2030
 
 
2031
# Check whether --enable-pdfdrv was given.
 
2032
if test "${enable_pdfdrv+set}" = set; then
 
2033
  enableval=$enable_pdfdrv; case "${enableval}" in
 
2034
  yes) pdfdrv=true ;;
 
2035
  no)  pdfdrv=false;;
 
2036
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pdfdrv" >&5
 
2037
echo "$as_me: error: bad value ${enableval} for --enable-pdfdrv" >&2;}
 
2038
   { (exit 1); exit 1; }; } ;;
 
2039
esac
 
2040
else
 
2041
  pdfdrv=true
 
2042
fi
 
2043
 
 
2044
 
 
2045
# Check whether --enable-f77_wrapper was given.
 
2046
if test "${enable_f77_wrapper+set}" = set; then
 
2047
  enableval=$enable_f77_wrapper; case "${enableval}" in
 
2048
  yes) f77_wrapper=true ;;
 
2049
  no)  f77_wrapper=false;;
 
2050
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-f77-wrapper" >&5
 
2051
echo "$as_me: error: bad value ${enableval} for --enable-f77-wrapper" >&2;}
 
2052
   { (exit 1); exit 1; }; } ;;
 
2053
esac
 
2054
else
 
2055
  f77_wrapper=true
 
2056
fi
 
2057
 
 
2058
 
 
2059
# Check whether --enable-editres was given.
 
2060
if test "${enable_editres+set}" = set; then
 
2061
  enableval=$enable_editres; case "${enableval}" in
 
2062
  yes) editres=true ;;
 
2063
  no)  editres=false;;
 
2064
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-editres" >&5
 
2065
echo "$as_me: error: bad value ${enableval} for --enable-editres" >&2;}
 
2066
   { (exit 1); exit 1; }; } ;;
 
2067
esac
 
2068
else
 
2069
  editres=true
 
2070
fi
 
2071
 
 
2072
 
 
2073
# Check whether --enable-libhelp was given.
 
2074
if test "${enable_libhelp+set}" = set; then
 
2075
  enableval=$enable_libhelp; case "${enableval}" in
 
2076
  yes) libhelp=true ;;
 
2077
  no)  libhelp=false;;
 
2078
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libhelp" >&5
 
2079
echo "$as_me: error: bad value ${enableval} for --enable-libhelp" >&2;}
 
2080
   { (exit 1); exit 1; }; } ;;
 
2081
esac
 
2082
else
 
2083
  libhelp=false
 
2084
fi
 
2085
 
 
2086
 
 
2087
# Check whether --enable-xmhtml was given.
 
2088
if test "${enable_xmhtml+set}" = set; then
 
2089
  enableval=$enable_xmhtml; case "${enableval}" in
 
2090
  yes) xmhtml=true ;;
 
2091
  no)  xmhtml=false;;
 
2092
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmhtml" >&5
 
2093
echo "$as_me: error: bad value ${enableval} for --enable-xmhtml" >&2;}
 
2094
   { (exit 1); exit 1; }; } ;;
 
2095
esac
 
2096
else
 
2097
  xmhtml=true
 
2098
fi
 
2099
 
 
2100
 
 
2101
if test $xmhtml = true && test $libhelp = true
 
2102
then
 
2103
  { { echo "$as_me:$LINENO: error: can't use both libhelp and XmHTML" >&5
 
2104
echo "$as_me: error: can't use both libhelp and XmHTML" >&2;}
 
2105
   { (exit 1); exit 1; }; }
 
2106
fi
 
2107
 
 
2108
GRACE_EDITOR="'xterm -e vi'"
 
2109
 
 
2110
# Check whether --with-editor was given.
 
2111
if test "${with_editor+set}" = set; then
 
2112
  withval=$with_editor; GRACE_EDITOR="'${withval}'"
 
2113
fi
 
2114
 
 
2115
 
 
2116
GRACE_HELPVIEWER="'mozilla %s'"
 
2117
 
 
2118
# Check whether --with-helpviewer was given.
 
2119
if test "${with_helpviewer+set}" = set; then
 
2120
  withval=$with_helpviewer; GRACE_HELPVIEWER="'${withval}'"
 
2121
fi
 
2122
 
 
2123
 
 
2124
 
 
2125
# Check whether --with-printcmd was given.
 
2126
if test "${with_printcmd+set}" = set; then
 
2127
  withval=$with_printcmd; if test "x${withval}" != "x"; then
 
2128
    PRINT_CMD="'${withval}'"
 
2129
 else
 
2130
    PRINT_CMD=NONE
 
2131
 fi
 
2132
else
 
2133
  PRINT_CMD=NONE
 
2134
 
 
2135
fi
 
2136
 
 
2137
 
 
2138
# Check whether --enable-debug was given.
 
2139
if test "${enable_debug+set}" = set; then
 
2140
  enableval=$enable_debug; case "${enableval}" in
 
2141
  yes) debug=true ;;
 
2142
  no)  debug=false ;;
 
2143
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
 
2144
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
 
2145
   { (exit 1); exit 1; }; } ;;
 
2146
esac
 
2147
else
 
2148
  debug=false
 
2149
fi
 
2150
 
 
2151
 
 
2152
# Check whether --enable-maintainer was given.
 
2153
if test "${enable_maintainer+set}" = set; then
 
2154
  enableval=$enable_maintainer; case "${enableval}" in
 
2155
  yes) maintainer=true; debug=true ;;
 
2156
  no)  maintainer=false ;;
 
2157
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-maintainer" >&5
 
2158
echo "$as_me: error: bad value ${enableval} for --enable-maintainer" >&2;}
 
2159
   { (exit 1); exit 1; }; } ;;
 
2160
esac
 
2161
else
 
2162
  maintainer=false
 
2163
fi
 
2164
 
 
2165
 
 
2166
if test $maintainer = true
 
2167
then
 
2168
  cat >>confdefs.h <<\_ACEOF
 
2169
#define WITH_DEBUG 1
 
2170
_ACEOF
 
2171
 
 
2172
fi
 
2173
 
 
2174
if test $f77_wrapper = true; then
 
2175
  cat >>confdefs.h <<\_ACEOF
 
2176
#define WITH_F77_WRAPPER 1
 
2177
_ACEOF
 
2178
 
 
2179
fi
 
2180
 
 
2181
 
 
2182
if test "x$CONF_FILE" != "x"
 
2183
then
 
2184
  if test -r $CONF_FILE
 
2185
  then
 
2186
    { echo "$as_me:$LINENO: result: --> using \`$CONF_FILE' as config file" >&5
 
2187
echo "${ECHO_T}--> using \`$CONF_FILE' as config file" >&6; }
 
2188
    . $CONF_FILE
 
2189
  else
 
2190
    { { echo "$as_me:$LINENO: error: --> Can't open file \`$CONF_FILE' for reading!" >&5
 
2191
echo "$as_me: error: --> Can't open file \`$CONF_FILE' for reading!" >&2;}
 
2192
   { (exit 1); exit 1; }; }
 
2193
    exit 1
 
2194
  fi
 
2195
else
 
2196
    CFLAGS=${CFLAGS-""}
 
2197
  FFLAGS=${FFLAGS-""}
 
2198
  LDFLAGS=${LDFLAGS-""}
 
2199
  OPTIMIZE=${OPTIMIZE-""}
 
2200
  DEBUG=${DEBUG-""}
 
2201
fi
 
2202
 
 
2203
# Make sure we can run config.sub.
 
2204
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2205
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2206
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2207
   { (exit 1); exit 1; }; }
 
2208
 
 
2209
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2210
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2211
if test "${ac_cv_build+set}" = set; then
 
2212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2213
else
 
2214
  ac_build_alias=$build_alias
 
2215
test "x$ac_build_alias" = x &&
 
2216
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2217
test "x$ac_build_alias" = x &&
 
2218
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2219
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2220
   { (exit 1); exit 1; }; }
 
2221
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2222
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2223
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2224
   { (exit 1); exit 1; }; }
 
2225
 
 
2226
fi
 
2227
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2228
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2229
case $ac_cv_build in
 
2230
*-*-*) ;;
 
2231
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2232
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2233
   { (exit 1); exit 1; }; };;
 
2234
esac
 
2235
build=$ac_cv_build
 
2236
ac_save_IFS=$IFS; IFS='-'
 
2237
set x $ac_cv_build
 
2238
shift
 
2239
build_cpu=$1
 
2240
build_vendor=$2
 
2241
shift; shift
 
2242
# Remember, the first character of IFS is used to create $*,
 
2243
# except with old shells:
 
2244
build_os=$*
 
2245
IFS=$ac_save_IFS
 
2246
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2247
 
 
2248
 
 
2249
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2250
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2251
if test "${ac_cv_host+set}" = set; then
 
2252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2253
else
 
2254
  if test "x$host_alias" = x; then
 
2255
  ac_cv_host=$ac_cv_build
 
2256
else
 
2257
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2258
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2259
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2260
   { (exit 1); exit 1; }; }
 
2261
fi
 
2262
 
 
2263
fi
 
2264
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2265
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2266
case $ac_cv_host in
 
2267
*-*-*) ;;
 
2268
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2269
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2270
   { (exit 1); exit 1; }; };;
 
2271
esac
 
2272
host=$ac_cv_host
 
2273
ac_save_IFS=$IFS; IFS='-'
 
2274
set x $ac_cv_host
 
2275
shift
 
2276
host_cpu=$1
 
2277
host_vendor=$2
 
2278
shift; shift
 
2279
# Remember, the first character of IFS is used to create $*,
 
2280
# except with old shells:
 
2281
host_os=$*
 
2282
IFS=$ac_save_IFS
 
2283
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2284
 
 
2285
 
 
2286
 
 
2287
ac_ext=c
 
2288
ac_cpp='$CPP $CPPFLAGS'
 
2289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2292
if test -n "$ac_tool_prefix"; then
 
2293
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2294
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2295
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2297
if test "${ac_cv_prog_CC+set}" = set; then
 
2298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2299
else
 
2300
  if test -n "$CC"; then
 
2301
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2302
else
 
2303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2304
for as_dir in $PATH
 
2305
do
 
2306
  IFS=$as_save_IFS
 
2307
  test -z "$as_dir" && as_dir=.
 
2308
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2309
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2310
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2311
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2312
    break 2
 
2313
  fi
 
2314
done
 
2315
done
 
2316
IFS=$as_save_IFS
 
2317
 
 
2318
fi
 
2319
fi
 
2320
CC=$ac_cv_prog_CC
 
2321
if test -n "$CC"; then
 
2322
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2323
echo "${ECHO_T}$CC" >&6; }
 
2324
else
 
2325
  { echo "$as_me:$LINENO: result: no" >&5
 
2326
echo "${ECHO_T}no" >&6; }
 
2327
fi
 
2328
 
 
2329
 
 
2330
fi
 
2331
if test -z "$ac_cv_prog_CC"; then
 
2332
  ac_ct_CC=$CC
 
2333
  # Extract the first word of "gcc", so it can be a program name with args.
 
2334
set dummy gcc; ac_word=$2
 
2335
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2337
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2339
else
 
2340
  if test -n "$ac_ct_CC"; then
 
2341
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2342
else
 
2343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2344
for as_dir in $PATH
 
2345
do
 
2346
  IFS=$as_save_IFS
 
2347
  test -z "$as_dir" && as_dir=.
 
2348
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2350
    ac_cv_prog_ac_ct_CC="gcc"
 
2351
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2352
    break 2
 
2353
  fi
 
2354
done
 
2355
done
 
2356
IFS=$as_save_IFS
 
2357
 
 
2358
fi
 
2359
fi
 
2360
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2361
if test -n "$ac_ct_CC"; then
 
2362
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2363
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2364
else
 
2365
  { echo "$as_me:$LINENO: result: no" >&5
 
2366
echo "${ECHO_T}no" >&6; }
 
2367
fi
 
2368
 
 
2369
  if test "x$ac_ct_CC" = x; then
 
2370
    CC=""
 
2371
  else
 
2372
    case $cross_compiling:$ac_tool_warned in
 
2373
yes:)
 
2374
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2375
whose name does not start with the host triplet.  If you think this
 
2376
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2377
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2378
whose name does not start with the host triplet.  If you think this
 
2379
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2380
ac_tool_warned=yes ;;
 
2381
esac
 
2382
    CC=$ac_ct_CC
 
2383
  fi
 
2384
else
 
2385
  CC="$ac_cv_prog_CC"
 
2386
fi
 
2387
 
 
2388
if test -z "$CC"; then
 
2389
          if test -n "$ac_tool_prefix"; then
 
2390
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2391
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2392
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2393
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2394
if test "${ac_cv_prog_CC+set}" = set; then
 
2395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2396
else
 
2397
  if test -n "$CC"; then
 
2398
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2399
else
 
2400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2401
for as_dir in $PATH
 
2402
do
 
2403
  IFS=$as_save_IFS
 
2404
  test -z "$as_dir" && as_dir=.
 
2405
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2407
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2408
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2409
    break 2
 
2410
  fi
 
2411
done
 
2412
done
 
2413
IFS=$as_save_IFS
 
2414
 
 
2415
fi
 
2416
fi
 
2417
CC=$ac_cv_prog_CC
 
2418
if test -n "$CC"; then
 
2419
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2420
echo "${ECHO_T}$CC" >&6; }
 
2421
else
 
2422
  { echo "$as_me:$LINENO: result: no" >&5
 
2423
echo "${ECHO_T}no" >&6; }
 
2424
fi
 
2425
 
 
2426
 
 
2427
  fi
 
2428
fi
 
2429
if test -z "$CC"; then
 
2430
  # Extract the first word of "cc", so it can be a program name with args.
 
2431
set dummy cc; ac_word=$2
 
2432
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2434
if test "${ac_cv_prog_CC+set}" = set; then
 
2435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2436
else
 
2437
  if test -n "$CC"; then
 
2438
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2439
else
 
2440
  ac_prog_rejected=no
 
2441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2442
for as_dir in $PATH
 
2443
do
 
2444
  IFS=$as_save_IFS
 
2445
  test -z "$as_dir" && as_dir=.
 
2446
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2447
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2448
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2449
       ac_prog_rejected=yes
 
2450
       continue
 
2451
     fi
 
2452
    ac_cv_prog_CC="cc"
 
2453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2454
    break 2
 
2455
  fi
 
2456
done
 
2457
done
 
2458
IFS=$as_save_IFS
 
2459
 
 
2460
if test $ac_prog_rejected = yes; then
 
2461
  # We found a bogon in the path, so make sure we never use it.
 
2462
  set dummy $ac_cv_prog_CC
 
2463
  shift
 
2464
  if test $# != 0; then
 
2465
    # We chose a different compiler from the bogus one.
 
2466
    # However, it has the same basename, so the bogon will be chosen
 
2467
    # first if we set CC to just the basename; use the full file name.
 
2468
    shift
 
2469
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2470
  fi
 
2471
fi
 
2472
fi
 
2473
fi
 
2474
CC=$ac_cv_prog_CC
 
2475
if test -n "$CC"; then
 
2476
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2477
echo "${ECHO_T}$CC" >&6; }
 
2478
else
 
2479
  { echo "$as_me:$LINENO: result: no" >&5
 
2480
echo "${ECHO_T}no" >&6; }
 
2481
fi
 
2482
 
 
2483
 
 
2484
fi
 
2485
if test -z "$CC"; then
 
2486
  if test -n "$ac_tool_prefix"; then
 
2487
  for ac_prog in cl.exe
 
2488
  do
 
2489
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2490
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2491
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2493
if test "${ac_cv_prog_CC+set}" = set; then
 
2494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2495
else
 
2496
  if test -n "$CC"; then
 
2497
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2498
else
 
2499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2500
for as_dir in $PATH
 
2501
do
 
2502
  IFS=$as_save_IFS
 
2503
  test -z "$as_dir" && as_dir=.
 
2504
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2506
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2508
    break 2
 
2509
  fi
 
2510
done
 
2511
done
 
2512
IFS=$as_save_IFS
 
2513
 
 
2514
fi
 
2515
fi
 
2516
CC=$ac_cv_prog_CC
 
2517
if test -n "$CC"; then
 
2518
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2519
echo "${ECHO_T}$CC" >&6; }
 
2520
else
 
2521
  { echo "$as_me:$LINENO: result: no" >&5
 
2522
echo "${ECHO_T}no" >&6; }
 
2523
fi
 
2524
 
 
2525
 
 
2526
    test -n "$CC" && break
 
2527
  done
 
2528
fi
 
2529
if test -z "$CC"; then
 
2530
  ac_ct_CC=$CC
 
2531
  for ac_prog in cl.exe
 
2532
do
 
2533
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2534
set dummy $ac_prog; ac_word=$2
 
2535
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2537
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2539
else
 
2540
  if test -n "$ac_ct_CC"; then
 
2541
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2542
else
 
2543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2544
for as_dir in $PATH
 
2545
do
 
2546
  IFS=$as_save_IFS
 
2547
  test -z "$as_dir" && as_dir=.
 
2548
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2550
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2552
    break 2
 
2553
  fi
 
2554
done
 
2555
done
 
2556
IFS=$as_save_IFS
 
2557
 
 
2558
fi
 
2559
fi
 
2560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2561
if test -n "$ac_ct_CC"; then
 
2562
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2563
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2564
else
 
2565
  { echo "$as_me:$LINENO: result: no" >&5
 
2566
echo "${ECHO_T}no" >&6; }
 
2567
fi
 
2568
 
 
2569
 
 
2570
  test -n "$ac_ct_CC" && break
 
2571
done
 
2572
 
 
2573
  if test "x$ac_ct_CC" = x; then
 
2574
    CC=""
 
2575
  else
 
2576
    case $cross_compiling:$ac_tool_warned in
 
2577
yes:)
 
2578
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2579
whose name does not start with the host triplet.  If you think this
 
2580
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2581
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2582
whose name does not start with the host triplet.  If you think this
 
2583
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2584
ac_tool_warned=yes ;;
 
2585
esac
 
2586
    CC=$ac_ct_CC
 
2587
  fi
 
2588
fi
 
2589
 
 
2590
fi
 
2591
 
 
2592
 
 
2593
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2594
See \`config.log' for more details." >&5
 
2595
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2596
See \`config.log' for more details." >&2;}
 
2597
   { (exit 1); exit 1; }; }
 
2598
 
 
2599
# Provide some information about the compiler.
 
2600
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2601
ac_compiler=`set X $ac_compile; echo $2`
 
2602
{ (ac_try="$ac_compiler --version >&5"
 
2603
case "(($ac_try" in
 
2604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2605
  *) ac_try_echo=$ac_try;;
 
2606
esac
 
2607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2608
  (eval "$ac_compiler --version >&5") 2>&5
 
2609
  ac_status=$?
 
2610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2611
  (exit $ac_status); }
 
2612
{ (ac_try="$ac_compiler -v >&5"
 
2613
case "(($ac_try" in
 
2614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2615
  *) ac_try_echo=$ac_try;;
 
2616
esac
 
2617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2618
  (eval "$ac_compiler -v >&5") 2>&5
 
2619
  ac_status=$?
 
2620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2621
  (exit $ac_status); }
 
2622
{ (ac_try="$ac_compiler -V >&5"
 
2623
case "(($ac_try" in
 
2624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2625
  *) ac_try_echo=$ac_try;;
 
2626
esac
 
2627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2628
  (eval "$ac_compiler -V >&5") 2>&5
 
2629
  ac_status=$?
 
2630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2631
  (exit $ac_status); }
 
2632
 
 
2633
cat >conftest.$ac_ext <<_ACEOF
 
2634
/* confdefs.h.  */
 
2635
_ACEOF
 
2636
cat confdefs.h >>conftest.$ac_ext
 
2637
cat >>conftest.$ac_ext <<_ACEOF
 
2638
/* end confdefs.h.  */
 
2639
 
 
2640
int
 
2641
main ()
 
2642
{
 
2643
 
 
2644
  ;
 
2645
  return 0;
 
2646
}
 
2647
_ACEOF
 
2648
ac_clean_files_save=$ac_clean_files
 
2649
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2650
# Try to create an executable without -o first, disregard a.out.
 
2651
# It will help us diagnose broken compilers, and finding out an intuition
 
2652
# of exeext.
 
2653
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2654
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2655
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2656
#
 
2657
# List of possible output files, starting from the most likely.
 
2658
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2659
# only as a last resort.  b.out is created by i960 compilers.
 
2660
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2661
#
 
2662
# The IRIX 6 linker writes into existing files which may not be
 
2663
# executable, retaining their permissions.  Remove them first so a
 
2664
# subsequent execution test works.
 
2665
ac_rmfiles=
 
2666
for ac_file in $ac_files
 
2667
do
 
2668
  case $ac_file in
 
2669
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2670
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2671
  esac
 
2672
done
 
2673
rm -f $ac_rmfiles
 
2674
 
 
2675
if { (ac_try="$ac_link_default"
 
2676
case "(($ac_try" in
 
2677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2678
  *) ac_try_echo=$ac_try;;
 
2679
esac
 
2680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2681
  (eval "$ac_link_default") 2>&5
 
2682
  ac_status=$?
 
2683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2684
  (exit $ac_status); }; then
 
2685
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2686
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2687
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2688
# so that the user can short-circuit this test for compilers unknown to
 
2689
# Autoconf.
 
2690
for ac_file in $ac_files ''
 
2691
do
 
2692
  test -f "$ac_file" || continue
 
2693
  case $ac_file in
 
2694
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2695
        ;;
 
2696
    [ab].out )
 
2697
        # We found the default executable, but exeext='' is most
 
2698
        # certainly right.
 
2699
        break;;
 
2700
    *.* )
 
2701
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2702
        then :; else
 
2703
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2704
        fi
 
2705
        # We set ac_cv_exeext here because the later test for it is not
 
2706
        # safe: cross compilers may not add the suffix if given an `-o'
 
2707
        # argument, so we may need to know it at that point already.
 
2708
        # Even if this section looks crufty: it has the advantage of
 
2709
        # actually working.
 
2710
        break;;
 
2711
    * )
 
2712
        break;;
 
2713
  esac
 
2714
done
 
2715
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2716
 
 
2717
else
 
2718
  ac_file=''
 
2719
fi
 
2720
 
 
2721
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2722
echo "${ECHO_T}$ac_file" >&6; }
 
2723
if test -z "$ac_file"; then
 
2724
  echo "$as_me: failed program was:" >&5
 
2725
sed 's/^/| /' conftest.$ac_ext >&5
 
2726
 
 
2727
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2728
See \`config.log' for more details." >&5
 
2729
echo "$as_me: error: C compiler cannot create executables
 
2730
See \`config.log' for more details." >&2;}
 
2731
   { (exit 77); exit 77; }; }
 
2732
fi
 
2733
 
 
2734
ac_exeext=$ac_cv_exeext
 
2735
 
 
2736
# Check that the compiler produces executables we can run.  If not, either
 
2737
# the compiler is broken, or we cross compile.
 
2738
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2739
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2740
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2741
# If not cross compiling, check that we can run a simple program.
 
2742
if test "$cross_compiling" != yes; then
 
2743
  if { ac_try='./$ac_file'
 
2744
  { (case "(($ac_try" in
 
2745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2746
  *) ac_try_echo=$ac_try;;
 
2747
esac
 
2748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2749
  (eval "$ac_try") 2>&5
 
2750
  ac_status=$?
 
2751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2752
  (exit $ac_status); }; }; then
 
2753
    cross_compiling=no
 
2754
  else
 
2755
    if test "$cross_compiling" = maybe; then
 
2756
        cross_compiling=yes
 
2757
    else
 
2758
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2759
If you meant to cross compile, use \`--host'.
 
2760
See \`config.log' for more details." >&5
 
2761
echo "$as_me: error: cannot run C compiled programs.
 
2762
If you meant to cross compile, use \`--host'.
 
2763
See \`config.log' for more details." >&2;}
 
2764
   { (exit 1); exit 1; }; }
 
2765
    fi
 
2766
  fi
 
2767
fi
 
2768
{ echo "$as_me:$LINENO: result: yes" >&5
 
2769
echo "${ECHO_T}yes" >&6; }
 
2770
 
 
2771
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2772
ac_clean_files=$ac_clean_files_save
 
2773
# Check that the compiler produces executables we can run.  If not, either
 
2774
# the compiler is broken, or we cross compile.
 
2775
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2776
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2777
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2778
echo "${ECHO_T}$cross_compiling" >&6; }
 
2779
 
 
2780
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2781
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2782
if { (ac_try="$ac_link"
 
2783
case "(($ac_try" in
 
2784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2785
  *) ac_try_echo=$ac_try;;
 
2786
esac
 
2787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2788
  (eval "$ac_link") 2>&5
 
2789
  ac_status=$?
 
2790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2791
  (exit $ac_status); }; then
 
2792
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2793
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2794
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2795
# `rm'.
 
2796
for ac_file in conftest.exe conftest conftest.*; do
 
2797
  test -f "$ac_file" || continue
 
2798
  case $ac_file in
 
2799
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2800
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2801
          break;;
 
2802
    * ) break;;
 
2803
  esac
 
2804
done
 
2805
else
 
2806
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2807
See \`config.log' for more details." >&5
 
2808
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2809
See \`config.log' for more details." >&2;}
 
2810
   { (exit 1); exit 1; }; }
 
2811
fi
 
2812
 
 
2813
rm -f conftest$ac_cv_exeext
 
2814
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2815
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2816
 
 
2817
rm -f conftest.$ac_ext
 
2818
EXEEXT=$ac_cv_exeext
 
2819
ac_exeext=$EXEEXT
 
2820
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2821
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2822
if test "${ac_cv_objext+set}" = set; then
 
2823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2824
else
 
2825
  cat >conftest.$ac_ext <<_ACEOF
 
2826
/* confdefs.h.  */
 
2827
_ACEOF
 
2828
cat confdefs.h >>conftest.$ac_ext
 
2829
cat >>conftest.$ac_ext <<_ACEOF
 
2830
/* end confdefs.h.  */
 
2831
 
 
2832
int
 
2833
main ()
 
2834
{
 
2835
 
 
2836
  ;
 
2837
  return 0;
 
2838
}
 
2839
_ACEOF
 
2840
rm -f conftest.o conftest.obj
 
2841
if { (ac_try="$ac_compile"
 
2842
case "(($ac_try" in
 
2843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2844
  *) ac_try_echo=$ac_try;;
 
2845
esac
 
2846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2847
  (eval "$ac_compile") 2>&5
 
2848
  ac_status=$?
 
2849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2850
  (exit $ac_status); }; then
 
2851
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2852
  test -f "$ac_file" || continue;
 
2853
  case $ac_file in
 
2854
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2855
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2856
       break;;
 
2857
  esac
 
2858
done
 
2859
else
 
2860
  echo "$as_me: failed program was:" >&5
 
2861
sed 's/^/| /' conftest.$ac_ext >&5
 
2862
 
 
2863
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2864
See \`config.log' for more details." >&5
 
2865
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2866
See \`config.log' for more details." >&2;}
 
2867
   { (exit 1); exit 1; }; }
 
2868
fi
 
2869
 
 
2870
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2871
fi
 
2872
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2873
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2874
OBJEXT=$ac_cv_objext
 
2875
ac_objext=$OBJEXT
 
2876
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2877
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2878
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2880
else
 
2881
  cat >conftest.$ac_ext <<_ACEOF
 
2882
/* confdefs.h.  */
 
2883
_ACEOF
 
2884
cat confdefs.h >>conftest.$ac_ext
 
2885
cat >>conftest.$ac_ext <<_ACEOF
 
2886
/* end confdefs.h.  */
 
2887
 
 
2888
int
 
2889
main ()
 
2890
{
 
2891
#ifndef __GNUC__
 
2892
       choke me
 
2893
#endif
 
2894
 
 
2895
  ;
 
2896
  return 0;
 
2897
}
 
2898
_ACEOF
 
2899
rm -f conftest.$ac_objext
 
2900
if { (ac_try="$ac_compile"
 
2901
case "(($ac_try" in
 
2902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2903
  *) ac_try_echo=$ac_try;;
 
2904
esac
 
2905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2906
  (eval "$ac_compile") 2>conftest.er1
 
2907
  ac_status=$?
 
2908
  grep -v '^ *+' conftest.er1 >conftest.err
 
2909
  rm -f conftest.er1
 
2910
  cat conftest.err >&5
 
2911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2912
  (exit $ac_status); } && {
 
2913
         test -z "$ac_c_werror_flag" ||
 
2914
         test ! -s conftest.err
 
2915
       } && test -s conftest.$ac_objext; then
 
2916
  ac_compiler_gnu=yes
 
2917
else
 
2918
  echo "$as_me: failed program was:" >&5
 
2919
sed 's/^/| /' conftest.$ac_ext >&5
 
2920
 
 
2921
        ac_compiler_gnu=no
 
2922
fi
 
2923
 
 
2924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2925
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2926
 
 
2927
fi
 
2928
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2929
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2930
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2931
ac_test_CFLAGS=${CFLAGS+set}
 
2932
ac_save_CFLAGS=$CFLAGS
 
2933
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2934
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2935
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2937
else
 
2938
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2939
   ac_c_werror_flag=yes
 
2940
   ac_cv_prog_cc_g=no
 
2941
   CFLAGS="-g"
 
2942
   cat >conftest.$ac_ext <<_ACEOF
 
2943
/* confdefs.h.  */
 
2944
_ACEOF
 
2945
cat confdefs.h >>conftest.$ac_ext
 
2946
cat >>conftest.$ac_ext <<_ACEOF
 
2947
/* end confdefs.h.  */
 
2948
 
 
2949
int
 
2950
main ()
 
2951
{
 
2952
 
 
2953
  ;
 
2954
  return 0;
 
2955
}
 
2956
_ACEOF
 
2957
rm -f conftest.$ac_objext
 
2958
if { (ac_try="$ac_compile"
 
2959
case "(($ac_try" in
 
2960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2961
  *) ac_try_echo=$ac_try;;
 
2962
esac
 
2963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2964
  (eval "$ac_compile") 2>conftest.er1
 
2965
  ac_status=$?
 
2966
  grep -v '^ *+' conftest.er1 >conftest.err
 
2967
  rm -f conftest.er1
 
2968
  cat conftest.err >&5
 
2969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2970
  (exit $ac_status); } && {
 
2971
         test -z "$ac_c_werror_flag" ||
 
2972
         test ! -s conftest.err
 
2973
       } && test -s conftest.$ac_objext; then
 
2974
  ac_cv_prog_cc_g=yes
 
2975
else
 
2976
  echo "$as_me: failed program was:" >&5
 
2977
sed 's/^/| /' conftest.$ac_ext >&5
 
2978
 
 
2979
        CFLAGS=""
 
2980
      cat >conftest.$ac_ext <<_ACEOF
 
2981
/* confdefs.h.  */
 
2982
_ACEOF
 
2983
cat confdefs.h >>conftest.$ac_ext
 
2984
cat >>conftest.$ac_ext <<_ACEOF
 
2985
/* end confdefs.h.  */
 
2986
 
 
2987
int
 
2988
main ()
 
2989
{
 
2990
 
 
2991
  ;
 
2992
  return 0;
 
2993
}
 
2994
_ACEOF
 
2995
rm -f conftest.$ac_objext
 
2996
if { (ac_try="$ac_compile"
 
2997
case "(($ac_try" in
 
2998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2999
  *) ac_try_echo=$ac_try;;
 
3000
esac
 
3001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3002
  (eval "$ac_compile") 2>conftest.er1
 
3003
  ac_status=$?
 
3004
  grep -v '^ *+' conftest.er1 >conftest.err
 
3005
  rm -f conftest.er1
 
3006
  cat conftest.err >&5
 
3007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3008
  (exit $ac_status); } && {
 
3009
         test -z "$ac_c_werror_flag" ||
 
3010
         test ! -s conftest.err
 
3011
       } && test -s conftest.$ac_objext; then
 
3012
  :
 
3013
else
 
3014
  echo "$as_me: failed program was:" >&5
 
3015
sed 's/^/| /' conftest.$ac_ext >&5
 
3016
 
 
3017
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3018
         CFLAGS="-g"
 
3019
         cat >conftest.$ac_ext <<_ACEOF
 
3020
/* confdefs.h.  */
 
3021
_ACEOF
 
3022
cat confdefs.h >>conftest.$ac_ext
 
3023
cat >>conftest.$ac_ext <<_ACEOF
 
3024
/* end confdefs.h.  */
 
3025
 
 
3026
int
 
3027
main ()
 
3028
{
 
3029
 
 
3030
  ;
 
3031
  return 0;
 
3032
}
 
3033
_ACEOF
 
3034
rm -f conftest.$ac_objext
 
3035
if { (ac_try="$ac_compile"
 
3036
case "(($ac_try" in
 
3037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3038
  *) ac_try_echo=$ac_try;;
 
3039
esac
 
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3041
  (eval "$ac_compile") 2>conftest.er1
 
3042
  ac_status=$?
 
3043
  grep -v '^ *+' conftest.er1 >conftest.err
 
3044
  rm -f conftest.er1
 
3045
  cat conftest.err >&5
 
3046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3047
  (exit $ac_status); } && {
 
3048
         test -z "$ac_c_werror_flag" ||
 
3049
         test ! -s conftest.err
 
3050
       } && test -s conftest.$ac_objext; then
 
3051
  ac_cv_prog_cc_g=yes
 
3052
else
 
3053
  echo "$as_me: failed program was:" >&5
 
3054
sed 's/^/| /' conftest.$ac_ext >&5
 
3055
 
 
3056
 
 
3057
fi
 
3058
 
 
3059
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3060
fi
 
3061
 
 
3062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3063
fi
 
3064
 
 
3065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3066
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3067
fi
 
3068
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3069
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3070
if test "$ac_test_CFLAGS" = set; then
 
3071
  CFLAGS=$ac_save_CFLAGS
 
3072
elif test $ac_cv_prog_cc_g = yes; then
 
3073
  if test "$GCC" = yes; then
 
3074
    CFLAGS="-g -O2"
 
3075
  else
 
3076
    CFLAGS="-g"
 
3077
  fi
 
3078
else
 
3079
  if test "$GCC" = yes; then
 
3080
    CFLAGS="-O2"
 
3081
  else
 
3082
    CFLAGS=
 
3083
  fi
 
3084
fi
 
3085
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3086
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3087
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3089
else
 
3090
  ac_cv_prog_cc_c89=no
 
3091
ac_save_CC=$CC
 
3092
cat >conftest.$ac_ext <<_ACEOF
 
3093
/* confdefs.h.  */
 
3094
_ACEOF
 
3095
cat confdefs.h >>conftest.$ac_ext
 
3096
cat >>conftest.$ac_ext <<_ACEOF
 
3097
/* end confdefs.h.  */
 
3098
#include <stdarg.h>
 
3099
#include <stdio.h>
 
3100
#include <sys/types.h>
 
3101
#include <sys/stat.h>
 
3102
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3103
struct buf { int x; };
 
3104
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3105
static char *e (p, i)
 
3106
     char **p;
 
3107
     int i;
 
3108
{
 
3109
  return p[i];
 
3110
}
 
3111
static char *f (char * (*g) (char **, int), char **p, ...)
 
3112
{
 
3113
  char *s;
 
3114
  va_list v;
 
3115
  va_start (v,p);
 
3116
  s = g (p, va_arg (v,int));
 
3117
  va_end (v);
 
3118
  return s;
 
3119
}
 
3120
 
 
3121
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3122
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3123
   These don't provoke an error unfortunately, instead are silently treated
 
3124
   as 'x'.  The following induces an error, until -std is added to get
 
3125
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3126
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3127
   that's true only with -std.  */
 
3128
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3129
 
 
3130
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3131
   inside strings and character constants.  */
 
3132
#define FOO(x) 'x'
 
3133
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3134
 
 
3135
int test (int i, double x);
 
3136
struct s1 {int (*f) (int a);};
 
3137
struct s2 {int (*f) (double a);};
 
3138
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3139
int argc;
 
3140
char **argv;
 
3141
int
 
3142
main ()
 
3143
{
 
3144
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3145
  ;
 
3146
  return 0;
 
3147
}
 
3148
_ACEOF
 
3149
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3150
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3151
do
 
3152
  CC="$ac_save_CC $ac_arg"
 
3153
  rm -f conftest.$ac_objext
 
3154
if { (ac_try="$ac_compile"
 
3155
case "(($ac_try" in
 
3156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3157
  *) ac_try_echo=$ac_try;;
 
3158
esac
 
3159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3160
  (eval "$ac_compile") 2>conftest.er1
 
3161
  ac_status=$?
 
3162
  grep -v '^ *+' conftest.er1 >conftest.err
 
3163
  rm -f conftest.er1
 
3164
  cat conftest.err >&5
 
3165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3166
  (exit $ac_status); } && {
 
3167
         test -z "$ac_c_werror_flag" ||
 
3168
         test ! -s conftest.err
 
3169
       } && test -s conftest.$ac_objext; then
 
3170
  ac_cv_prog_cc_c89=$ac_arg
 
3171
else
 
3172
  echo "$as_me: failed program was:" >&5
 
3173
sed 's/^/| /' conftest.$ac_ext >&5
 
3174
 
 
3175
 
 
3176
fi
 
3177
 
 
3178
rm -f core conftest.err conftest.$ac_objext
 
3179
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3180
done
 
3181
rm -f conftest.$ac_ext
 
3182
CC=$ac_save_CC
 
3183
 
 
3184
fi
 
3185
# AC_CACHE_VAL
 
3186
case "x$ac_cv_prog_cc_c89" in
 
3187
  x)
 
3188
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3189
echo "${ECHO_T}none needed" >&6; } ;;
 
3190
  xno)
 
3191
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3192
echo "${ECHO_T}unsupported" >&6; } ;;
 
3193
  *)
 
3194
    CC="$CC $ac_cv_prog_cc_c89"
 
3195
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3196
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3197
esac
 
3198
 
 
3199
 
 
3200
ac_ext=c
 
3201
ac_cpp='$CPP $CPPFLAGS'
 
3202
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3203
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3204
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3205
 
 
3206
 
 
3207
 
 
3208
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
3209
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
 
3210
if test "${ac_cv_search_strerror+set}" = set; then
 
3211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3212
else
 
3213
  ac_func_search_save_LIBS=$LIBS
 
3214
cat >conftest.$ac_ext <<_ACEOF
 
3215
/* confdefs.h.  */
 
3216
_ACEOF
 
3217
cat confdefs.h >>conftest.$ac_ext
 
3218
cat >>conftest.$ac_ext <<_ACEOF
 
3219
/* end confdefs.h.  */
 
3220
 
 
3221
/* Override any GCC internal prototype to avoid an error.
 
3222
   Use char because int might match the return type of a GCC
 
3223
   builtin and then its argument prototype would still apply.  */
 
3224
#ifdef __cplusplus
 
3225
extern "C"
 
3226
#endif
 
3227
char strerror ();
 
3228
int
 
3229
main ()
 
3230
{
 
3231
return strerror ();
 
3232
  ;
 
3233
  return 0;
 
3234
}
 
3235
_ACEOF
 
3236
for ac_lib in '' cposix; do
 
3237
  if test -z "$ac_lib"; then
 
3238
    ac_res="none required"
 
3239
  else
 
3240
    ac_res=-l$ac_lib
 
3241
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3242
  fi
 
3243
  rm -f conftest.$ac_objext conftest$ac_exeext
 
3244
if { (ac_try="$ac_link"
 
3245
case "(($ac_try" in
 
3246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3247
  *) ac_try_echo=$ac_try;;
 
3248
esac
 
3249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3250
  (eval "$ac_link") 2>conftest.er1
 
3251
  ac_status=$?
 
3252
  grep -v '^ *+' conftest.er1 >conftest.err
 
3253
  rm -f conftest.er1
 
3254
  cat conftest.err >&5
 
3255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3256
  (exit $ac_status); } && {
 
3257
         test -z "$ac_c_werror_flag" ||
 
3258
         test ! -s conftest.err
 
3259
       } && test -s conftest$ac_exeext &&
 
3260
       $as_test_x conftest$ac_exeext; then
 
3261
  ac_cv_search_strerror=$ac_res
 
3262
else
 
3263
  echo "$as_me: failed program was:" >&5
 
3264
sed 's/^/| /' conftest.$ac_ext >&5
 
3265
 
 
3266
 
 
3267
fi
 
3268
 
 
3269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3270
      conftest$ac_exeext
 
3271
  if test "${ac_cv_search_strerror+set}" = set; then
 
3272
  break
 
3273
fi
 
3274
done
 
3275
if test "${ac_cv_search_strerror+set}" = set; then
 
3276
  :
 
3277
else
 
3278
  ac_cv_search_strerror=no
 
3279
fi
 
3280
rm conftest.$ac_ext
 
3281
LIBS=$ac_func_search_save_LIBS
 
3282
fi
 
3283
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
3284
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
 
3285
ac_res=$ac_cv_search_strerror
 
3286
if test "$ac_res" != no; then
 
3287
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3288
 
 
3289
fi
 
3290
 
 
3291
ac_ext=c
 
3292
ac_cpp='$CPP $CPPFLAGS'
 
3293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3296
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3297
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3298
# On Suns, sometimes $CPP names a directory.
 
3299
if test -n "$CPP" && test -d "$CPP"; then
 
3300
  CPP=
 
3301
fi
 
3302
if test -z "$CPP"; then
 
3303
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3305
else
 
3306
      # Double quotes because CPP needs to be expanded
 
3307
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3308
    do
 
3309
      ac_preproc_ok=false
 
3310
for ac_c_preproc_warn_flag in '' yes
 
3311
do
 
3312
  # Use a header file that comes with gcc, so configuring glibc
 
3313
  # with a fresh cross-compiler works.
 
3314
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3315
  # <limits.h> exists even on freestanding compilers.
 
3316
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3317
  # not just through cpp. "Syntax error" is here to catch this case.
 
3318
  cat >conftest.$ac_ext <<_ACEOF
 
3319
/* confdefs.h.  */
 
3320
_ACEOF
 
3321
cat confdefs.h >>conftest.$ac_ext
 
3322
cat >>conftest.$ac_ext <<_ACEOF
 
3323
/* end confdefs.h.  */
 
3324
#ifdef __STDC__
 
3325
# include <limits.h>
 
3326
#else
 
3327
# include <assert.h>
 
3328
#endif
 
3329
                     Syntax error
 
3330
_ACEOF
 
3331
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3332
case "(($ac_try" in
 
3333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3334
  *) ac_try_echo=$ac_try;;
 
3335
esac
 
3336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3337
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3338
  ac_status=$?
 
3339
  grep -v '^ *+' conftest.er1 >conftest.err
 
3340
  rm -f conftest.er1
 
3341
  cat conftest.err >&5
 
3342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3343
  (exit $ac_status); } >/dev/null && {
 
3344
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3345
         test ! -s conftest.err
 
3346
       }; then
 
3347
  :
 
3348
else
 
3349
  echo "$as_me: failed program was:" >&5
 
3350
sed 's/^/| /' conftest.$ac_ext >&5
 
3351
 
 
3352
  # Broken: fails on valid input.
 
3353
continue
 
3354
fi
 
3355
 
 
3356
rm -f conftest.err conftest.$ac_ext
 
3357
 
 
3358
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3359
  # can be detected and how.
 
3360
  cat >conftest.$ac_ext <<_ACEOF
 
3361
/* confdefs.h.  */
 
3362
_ACEOF
 
3363
cat confdefs.h >>conftest.$ac_ext
 
3364
cat >>conftest.$ac_ext <<_ACEOF
 
3365
/* end confdefs.h.  */
 
3366
#include <ac_nonexistent.h>
 
3367
_ACEOF
 
3368
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3369
case "(($ac_try" in
 
3370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3371
  *) ac_try_echo=$ac_try;;
 
3372
esac
 
3373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3374
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3375
  ac_status=$?
 
3376
  grep -v '^ *+' conftest.er1 >conftest.err
 
3377
  rm -f conftest.er1
 
3378
  cat conftest.err >&5
 
3379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3380
  (exit $ac_status); } >/dev/null && {
 
3381
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3382
         test ! -s conftest.err
 
3383
       }; then
 
3384
  # Broken: success on invalid input.
 
3385
continue
 
3386
else
 
3387
  echo "$as_me: failed program was:" >&5
 
3388
sed 's/^/| /' conftest.$ac_ext >&5
 
3389
 
 
3390
  # Passes both tests.
 
3391
ac_preproc_ok=:
 
3392
break
 
3393
fi
 
3394
 
 
3395
rm -f conftest.err conftest.$ac_ext
 
3396
 
 
3397
done
 
3398
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3399
rm -f conftest.err conftest.$ac_ext
 
3400
if $ac_preproc_ok; then
 
3401
  break
 
3402
fi
 
3403
 
 
3404
    done
 
3405
    ac_cv_prog_CPP=$CPP
 
3406
 
 
3407
fi
 
3408
  CPP=$ac_cv_prog_CPP
 
3409
else
 
3410
  ac_cv_prog_CPP=$CPP
 
3411
fi
 
3412
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3413
echo "${ECHO_T}$CPP" >&6; }
 
3414
ac_preproc_ok=false
 
3415
for ac_c_preproc_warn_flag in '' yes
 
3416
do
 
3417
  # Use a header file that comes with gcc, so configuring glibc
 
3418
  # with a fresh cross-compiler works.
 
3419
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3420
  # <limits.h> exists even on freestanding compilers.
 
3421
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3422
  # not just through cpp. "Syntax error" is here to catch this case.
 
3423
  cat >conftest.$ac_ext <<_ACEOF
 
3424
/* confdefs.h.  */
 
3425
_ACEOF
 
3426
cat confdefs.h >>conftest.$ac_ext
 
3427
cat >>conftest.$ac_ext <<_ACEOF
 
3428
/* end confdefs.h.  */
 
3429
#ifdef __STDC__
 
3430
# include <limits.h>
 
3431
#else
 
3432
# include <assert.h>
 
3433
#endif
 
3434
                     Syntax error
 
3435
_ACEOF
 
3436
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3437
case "(($ac_try" in
 
3438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3439
  *) ac_try_echo=$ac_try;;
 
3440
esac
 
3441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3442
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3443
  ac_status=$?
 
3444
  grep -v '^ *+' conftest.er1 >conftest.err
 
3445
  rm -f conftest.er1
 
3446
  cat conftest.err >&5
 
3447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3448
  (exit $ac_status); } >/dev/null && {
 
3449
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3450
         test ! -s conftest.err
 
3451
       }; then
 
3452
  :
 
3453
else
 
3454
  echo "$as_me: failed program was:" >&5
 
3455
sed 's/^/| /' conftest.$ac_ext >&5
 
3456
 
 
3457
  # Broken: fails on valid input.
 
3458
continue
 
3459
fi
 
3460
 
 
3461
rm -f conftest.err conftest.$ac_ext
 
3462
 
 
3463
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3464
  # can be detected and how.
 
3465
  cat >conftest.$ac_ext <<_ACEOF
 
3466
/* confdefs.h.  */
 
3467
_ACEOF
 
3468
cat confdefs.h >>conftest.$ac_ext
 
3469
cat >>conftest.$ac_ext <<_ACEOF
 
3470
/* end confdefs.h.  */
 
3471
#include <ac_nonexistent.h>
 
3472
_ACEOF
 
3473
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3474
case "(($ac_try" in
 
3475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3476
  *) ac_try_echo=$ac_try;;
 
3477
esac
 
3478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3479
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3480
  ac_status=$?
 
3481
  grep -v '^ *+' conftest.er1 >conftest.err
 
3482
  rm -f conftest.er1
 
3483
  cat conftest.err >&5
 
3484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3485
  (exit $ac_status); } >/dev/null && {
 
3486
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3487
         test ! -s conftest.err
 
3488
       }; then
 
3489
  # Broken: success on invalid input.
 
3490
continue
 
3491
else
 
3492
  echo "$as_me: failed program was:" >&5
 
3493
sed 's/^/| /' conftest.$ac_ext >&5
 
3494
 
 
3495
  # Passes both tests.
 
3496
ac_preproc_ok=:
 
3497
break
 
3498
fi
 
3499
 
 
3500
rm -f conftest.err conftest.$ac_ext
 
3501
 
 
3502
done
 
3503
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3504
rm -f conftest.err conftest.$ac_ext
 
3505
if $ac_preproc_ok; then
 
3506
  :
 
3507
else
 
3508
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3509
See \`config.log' for more details." >&5
 
3510
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3511
See \`config.log' for more details." >&2;}
 
3512
   { (exit 1); exit 1; }; }
 
3513
fi
 
3514
 
 
3515
ac_ext=c
 
3516
ac_cpp='$CPP $CPPFLAGS'
 
3517
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3518
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3519
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3520
 
 
3521
 
 
3522
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3523
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3524
if test "${ac_cv_path_GREP+set}" = set; then
 
3525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3526
else
 
3527
  # Extract the first word of "grep ggrep" to use in msg output
 
3528
if test -z "$GREP"; then
 
3529
set dummy grep ggrep; ac_prog_name=$2
 
3530
if test "${ac_cv_path_GREP+set}" = set; then
 
3531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3532
else
 
3533
  ac_path_GREP_found=false
 
3534
# Loop through the user's path and test for each of PROGNAME-LIST
 
3535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3536
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3537
do
 
3538
  IFS=$as_save_IFS
 
3539
  test -z "$as_dir" && as_dir=.
 
3540
  for ac_prog in grep ggrep; do
 
3541
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3542
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3543
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3544
    # Check for GNU ac_path_GREP and select it if it is found.
 
3545
  # Check for GNU $ac_path_GREP
 
3546
case `"$ac_path_GREP" --version 2>&1` in
 
3547
*GNU*)
 
3548
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3549
*)
 
3550
  ac_count=0
 
3551
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3552
  while :
 
3553
  do
 
3554
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3555
    mv "conftest.tmp" "conftest.in"
 
3556
    cp "conftest.in" "conftest.nl"
 
3557
    echo 'GREP' >> "conftest.nl"
 
3558
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3559
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3560
    ac_count=`expr $ac_count + 1`
 
3561
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3562
      # Best one so far, save it but keep looking for a better one
 
3563
      ac_cv_path_GREP="$ac_path_GREP"
 
3564
      ac_path_GREP_max=$ac_count
 
3565
    fi
 
3566
    # 10*(2^10) chars as input seems more than enough
 
3567
    test $ac_count -gt 10 && break
 
3568
  done
 
3569
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3570
esac
 
3571
 
 
3572
 
 
3573
    $ac_path_GREP_found && break 3
 
3574
  done
 
3575
done
 
3576
 
 
3577
done
 
3578
IFS=$as_save_IFS
 
3579
 
 
3580
 
 
3581
fi
 
3582
 
 
3583
GREP="$ac_cv_path_GREP"
 
3584
if test -z "$GREP"; then
 
3585
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3586
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3587
   { (exit 1); exit 1; }; }
 
3588
fi
 
3589
 
 
3590
else
 
3591
  ac_cv_path_GREP=$GREP
 
3592
fi
 
3593
 
 
3594
 
 
3595
fi
 
3596
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3597
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3598
 GREP="$ac_cv_path_GREP"
 
3599
 
 
3600
 
 
3601
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3602
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3603
if test "${ac_cv_path_EGREP+set}" = set; then
 
3604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3605
else
 
3606
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3607
   then ac_cv_path_EGREP="$GREP -E"
 
3608
   else
 
3609
     # Extract the first word of "egrep" to use in msg output
 
3610
if test -z "$EGREP"; then
 
3611
set dummy egrep; ac_prog_name=$2
 
3612
if test "${ac_cv_path_EGREP+set}" = set; then
 
3613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3614
else
 
3615
  ac_path_EGREP_found=false
 
3616
# Loop through the user's path and test for each of PROGNAME-LIST
 
3617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3618
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3619
do
 
3620
  IFS=$as_save_IFS
 
3621
  test -z "$as_dir" && as_dir=.
 
3622
  for ac_prog in egrep; do
 
3623
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3624
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3625
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3626
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3627
  # Check for GNU $ac_path_EGREP
 
3628
case `"$ac_path_EGREP" --version 2>&1` in
 
3629
*GNU*)
 
3630
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3631
*)
 
3632
  ac_count=0
 
3633
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3634
  while :
 
3635
  do
 
3636
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3637
    mv "conftest.tmp" "conftest.in"
 
3638
    cp "conftest.in" "conftest.nl"
 
3639
    echo 'EGREP' >> "conftest.nl"
 
3640
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3641
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3642
    ac_count=`expr $ac_count + 1`
 
3643
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3644
      # Best one so far, save it but keep looking for a better one
 
3645
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3646
      ac_path_EGREP_max=$ac_count
 
3647
    fi
 
3648
    # 10*(2^10) chars as input seems more than enough
 
3649
    test $ac_count -gt 10 && break
 
3650
  done
 
3651
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3652
esac
 
3653
 
 
3654
 
 
3655
    $ac_path_EGREP_found && break 3
 
3656
  done
 
3657
done
 
3658
 
 
3659
done
 
3660
IFS=$as_save_IFS
 
3661
 
 
3662
 
 
3663
fi
 
3664
 
 
3665
EGREP="$ac_cv_path_EGREP"
 
3666
if test -z "$EGREP"; then
 
3667
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3668
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3669
   { (exit 1); exit 1; }; }
 
3670
fi
 
3671
 
 
3672
else
 
3673
  ac_cv_path_EGREP=$EGREP
 
3674
fi
 
3675
 
 
3676
 
 
3677
   fi
 
3678
fi
 
3679
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3680
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3681
 EGREP="$ac_cv_path_EGREP"
 
3682
 
 
3683
 
 
3684
 
 
3685
{ echo "$as_me:$LINENO: checking for AIX" >&5
 
3686
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
 
3687
cat >conftest.$ac_ext <<_ACEOF
 
3688
/* confdefs.h.  */
 
3689
_ACEOF
 
3690
cat confdefs.h >>conftest.$ac_ext
 
3691
cat >>conftest.$ac_ext <<_ACEOF
 
3692
/* end confdefs.h.  */
 
3693
#ifdef _AIX
 
3694
  yes
 
3695
#endif
 
3696
 
 
3697
_ACEOF
 
3698
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3699
  $EGREP "yes" >/dev/null 2>&1; then
 
3700
  { echo "$as_me:$LINENO: result: yes" >&5
 
3701
echo "${ECHO_T}yes" >&6; }
 
3702
cat >>confdefs.h <<\_ACEOF
 
3703
#define _ALL_SOURCE 1
 
3704
_ACEOF
 
3705
 
 
3706
else
 
3707
  { echo "$as_me:$LINENO: result: no" >&5
 
3708
echo "${ECHO_T}no" >&6; }
 
3709
fi
 
3710
rm -f conftest*
 
3711
 
 
3712
 
 
3713
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3714
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
3715
if test "${ac_cv_header_stdc+set}" = set; then
 
3716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3717
else
 
3718
  cat >conftest.$ac_ext <<_ACEOF
 
3719
/* confdefs.h.  */
 
3720
_ACEOF
 
3721
cat confdefs.h >>conftest.$ac_ext
 
3722
cat >>conftest.$ac_ext <<_ACEOF
 
3723
/* end confdefs.h.  */
 
3724
#include <stdlib.h>
 
3725
#include <stdarg.h>
 
3726
#include <string.h>
 
3727
#include <float.h>
 
3728
 
 
3729
int
 
3730
main ()
 
3731
{
 
3732
 
 
3733
  ;
 
3734
  return 0;
 
3735
}
 
3736
_ACEOF
 
3737
rm -f conftest.$ac_objext
 
3738
if { (ac_try="$ac_compile"
 
3739
case "(($ac_try" in
 
3740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3741
  *) ac_try_echo=$ac_try;;
 
3742
esac
 
3743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3744
  (eval "$ac_compile") 2>conftest.er1
 
3745
  ac_status=$?
 
3746
  grep -v '^ *+' conftest.er1 >conftest.err
 
3747
  rm -f conftest.er1
 
3748
  cat conftest.err >&5
 
3749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3750
  (exit $ac_status); } && {
 
3751
         test -z "$ac_c_werror_flag" ||
 
3752
         test ! -s conftest.err
 
3753
       } && test -s conftest.$ac_objext; then
 
3754
  ac_cv_header_stdc=yes
 
3755
else
 
3756
  echo "$as_me: failed program was:" >&5
 
3757
sed 's/^/| /' conftest.$ac_ext >&5
 
3758
 
 
3759
        ac_cv_header_stdc=no
 
3760
fi
 
3761
 
 
3762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3763
 
 
3764
if test $ac_cv_header_stdc = yes; then
 
3765
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3766
  cat >conftest.$ac_ext <<_ACEOF
 
3767
/* confdefs.h.  */
 
3768
_ACEOF
 
3769
cat confdefs.h >>conftest.$ac_ext
 
3770
cat >>conftest.$ac_ext <<_ACEOF
 
3771
/* end confdefs.h.  */
 
3772
#include <string.h>
 
3773
 
 
3774
_ACEOF
 
3775
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3776
  $EGREP "memchr" >/dev/null 2>&1; then
 
3777
  :
 
3778
else
 
3779
  ac_cv_header_stdc=no
 
3780
fi
 
3781
rm -f conftest*
 
3782
 
 
3783
fi
 
3784
 
 
3785
if test $ac_cv_header_stdc = yes; then
 
3786
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3787
  cat >conftest.$ac_ext <<_ACEOF
 
3788
/* confdefs.h.  */
 
3789
_ACEOF
 
3790
cat confdefs.h >>conftest.$ac_ext
 
3791
cat >>conftest.$ac_ext <<_ACEOF
 
3792
/* end confdefs.h.  */
 
3793
#include <stdlib.h>
 
3794
 
 
3795
_ACEOF
 
3796
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3797
  $EGREP "free" >/dev/null 2>&1; then
 
3798
  :
 
3799
else
 
3800
  ac_cv_header_stdc=no
 
3801
fi
 
3802
rm -f conftest*
 
3803
 
 
3804
fi
 
3805
 
 
3806
if test $ac_cv_header_stdc = yes; then
 
3807
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3808
  if test "$cross_compiling" = yes; then
 
3809
  :
 
3810
else
 
3811
  cat >conftest.$ac_ext <<_ACEOF
 
3812
/* confdefs.h.  */
 
3813
_ACEOF
 
3814
cat confdefs.h >>conftest.$ac_ext
 
3815
cat >>conftest.$ac_ext <<_ACEOF
 
3816
/* end confdefs.h.  */
 
3817
#include <ctype.h>
 
3818
#include <stdlib.h>
 
3819
#if ((' ' & 0x0FF) == 0x020)
 
3820
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3821
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3822
#else
 
3823
# define ISLOWER(c) \
 
3824
                   (('a' <= (c) && (c) <= 'i') \
 
3825
                     || ('j' <= (c) && (c) <= 'r') \
 
3826
                     || ('s' <= (c) && (c) <= 'z'))
 
3827
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3828
#endif
 
3829
 
 
3830
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3831
int
 
3832
main ()
 
3833
{
 
3834
  int i;
 
3835
  for (i = 0; i < 256; i++)
 
3836
    if (XOR (islower (i), ISLOWER (i))
 
3837
        || toupper (i) != TOUPPER (i))
 
3838
      return 2;
 
3839
  return 0;
 
3840
}
 
3841
_ACEOF
 
3842
rm -f conftest$ac_exeext
 
3843
if { (ac_try="$ac_link"
 
3844
case "(($ac_try" in
 
3845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3846
  *) ac_try_echo=$ac_try;;
 
3847
esac
 
3848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3849
  (eval "$ac_link") 2>&5
 
3850
  ac_status=$?
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
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_try") 2>&5
 
3859
  ac_status=$?
 
3860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3861
  (exit $ac_status); }; }; then
 
3862
  :
 
3863
else
 
3864
  echo "$as_me: program exited with status $ac_status" >&5
 
3865
echo "$as_me: failed program was:" >&5
 
3866
sed 's/^/| /' conftest.$ac_ext >&5
 
3867
 
 
3868
( exit $ac_status )
 
3869
ac_cv_header_stdc=no
 
3870
fi
 
3871
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3872
fi
 
3873
 
 
3874
 
 
3875
fi
 
3876
fi
 
3877
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3878
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
3879
if test $ac_cv_header_stdc = yes; then
 
3880
 
 
3881
cat >>confdefs.h <<\_ACEOF
 
3882
#define STDC_HEADERS 1
 
3883
_ACEOF
 
3884
 
 
3885
fi
 
3886
 
 
3887
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3888
 
 
3889
 
 
3890
 
 
3891
 
 
3892
 
 
3893
 
 
3894
 
 
3895
 
 
3896
 
 
3897
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3898
                  inttypes.h stdint.h unistd.h
 
3899
do
 
3900
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3901
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3902
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
3903
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3905
else
 
3906
  cat >conftest.$ac_ext <<_ACEOF
 
3907
/* confdefs.h.  */
 
3908
_ACEOF
 
3909
cat confdefs.h >>conftest.$ac_ext
 
3910
cat >>conftest.$ac_ext <<_ACEOF
 
3911
/* end confdefs.h.  */
 
3912
$ac_includes_default
 
3913
 
 
3914
#include <$ac_header>
 
3915
_ACEOF
 
3916
rm -f conftest.$ac_objext
 
3917
if { (ac_try="$ac_compile"
 
3918
case "(($ac_try" in
 
3919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3920
  *) ac_try_echo=$ac_try;;
 
3921
esac
 
3922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3923
  (eval "$ac_compile") 2>conftest.er1
 
3924
  ac_status=$?
 
3925
  grep -v '^ *+' conftest.er1 >conftest.err
 
3926
  rm -f conftest.er1
 
3927
  cat conftest.err >&5
 
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3929
  (exit $ac_status); } && {
 
3930
         test -z "$ac_c_werror_flag" ||
 
3931
         test ! -s conftest.err
 
3932
       } && test -s conftest.$ac_objext; then
 
3933
  eval "$as_ac_Header=yes"
 
3934
else
 
3935
  echo "$as_me: failed program was:" >&5
 
3936
sed 's/^/| /' conftest.$ac_ext >&5
 
3937
 
 
3938
        eval "$as_ac_Header=no"
 
3939
fi
 
3940
 
 
3941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3942
fi
 
3943
ac_res=`eval echo '${'$as_ac_Header'}'`
 
3944
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3945
echo "${ECHO_T}$ac_res" >&6; }
 
3946
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3947
  cat >>confdefs.h <<_ACEOF
 
3948
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3949
_ACEOF
 
3950
 
 
3951
fi
 
3952
 
 
3953
done
 
3954
 
 
3955
 
 
3956
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3957
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3958
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
3959
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3961
fi
 
3962
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3963
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
3964
else
 
3965
  # Is the header compilable?
 
3966
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3967
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
 
3968
cat >conftest.$ac_ext <<_ACEOF
 
3969
/* confdefs.h.  */
 
3970
_ACEOF
 
3971
cat confdefs.h >>conftest.$ac_ext
 
3972
cat >>conftest.$ac_ext <<_ACEOF
 
3973
/* end confdefs.h.  */
 
3974
$ac_includes_default
 
3975
#include <minix/config.h>
 
3976
_ACEOF
 
3977
rm -f conftest.$ac_objext
 
3978
if { (ac_try="$ac_compile"
 
3979
case "(($ac_try" in
 
3980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3981
  *) ac_try_echo=$ac_try;;
 
3982
esac
 
3983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3984
  (eval "$ac_compile") 2>conftest.er1
 
3985
  ac_status=$?
 
3986
  grep -v '^ *+' conftest.er1 >conftest.err
 
3987
  rm -f conftest.er1
 
3988
  cat conftest.err >&5
 
3989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3990
  (exit $ac_status); } && {
 
3991
         test -z "$ac_c_werror_flag" ||
 
3992
         test ! -s conftest.err
 
3993
       } && test -s conftest.$ac_objext; then
 
3994
  ac_header_compiler=yes
 
3995
else
 
3996
  echo "$as_me: failed program was:" >&5
 
3997
sed 's/^/| /' conftest.$ac_ext >&5
 
3998
 
 
3999
        ac_header_compiler=no
 
4000
fi
 
4001
 
 
4002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4003
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4004
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4005
 
 
4006
# Is the header present?
 
4007
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4008
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
 
4009
cat >conftest.$ac_ext <<_ACEOF
 
4010
/* confdefs.h.  */
 
4011
_ACEOF
 
4012
cat confdefs.h >>conftest.$ac_ext
 
4013
cat >>conftest.$ac_ext <<_ACEOF
 
4014
/* end confdefs.h.  */
 
4015
#include <minix/config.h>
 
4016
_ACEOF
 
4017
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4018
case "(($ac_try" in
 
4019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4020
  *) ac_try_echo=$ac_try;;
 
4021
esac
 
4022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4023
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4024
  ac_status=$?
 
4025
  grep -v '^ *+' conftest.er1 >conftest.err
 
4026
  rm -f conftest.er1
 
4027
  cat conftest.err >&5
 
4028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4029
  (exit $ac_status); } >/dev/null && {
 
4030
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4031
         test ! -s conftest.err
 
4032
       }; then
 
4033
  ac_header_preproc=yes
 
4034
else
 
4035
  echo "$as_me: failed program was:" >&5
 
4036
sed 's/^/| /' conftest.$ac_ext >&5
 
4037
 
 
4038
  ac_header_preproc=no
 
4039
fi
 
4040
 
 
4041
rm -f conftest.err conftest.$ac_ext
 
4042
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4043
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4044
 
 
4045
# So?  What about this header?
 
4046
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4047
  yes:no: )
 
4048
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4049
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4050
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4051
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4052
    ac_header_preproc=yes
 
4053
    ;;
 
4054
  no:yes:* )
 
4055
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4056
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4057
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4058
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4059
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4060
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4061
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4062
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4063
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4064
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4065
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4066
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4067
 
 
4068
    ;;
 
4069
esac
 
4070
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4071
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
4072
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4074
else
 
4075
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4076
fi
 
4077
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4078
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
4079
 
 
4080
fi
 
4081
if test $ac_cv_header_minix_config_h = yes; then
 
4082
  MINIX=yes
 
4083
else
 
4084
  MINIX=
 
4085
fi
 
4086
 
 
4087
 
 
4088
if test "$MINIX" = yes; then
 
4089
 
 
4090
cat >>confdefs.h <<\_ACEOF
 
4091
#define _POSIX_SOURCE 1
 
4092
_ACEOF
 
4093
 
 
4094
 
 
4095
cat >>confdefs.h <<\_ACEOF
 
4096
#define _POSIX_1_SOURCE 2
 
4097
_ACEOF
 
4098
 
 
4099
 
 
4100
cat >>confdefs.h <<\_ACEOF
 
4101
#define _MINIX 1
 
4102
_ACEOF
 
4103
 
 
4104
fi
 
4105
 
 
4106
 
 
4107
if test "x${CFLAGS}" = "x"
 
4108
then
 
4109
  if test "x${GCC}" = "xyes"
 
4110
  then
 
4111
        DEBUG="-g -O2"
 
4112
    OPTIMIZE="-O2"
 
4113
    CFLAGS="-fno-common -Wall -Wpointer-arith -Wnested-externs"
 
4114
 
 
4115
 
 
4116
 
 
4117
{ echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
 
4118
echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
 
4119
if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
 
4120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4121
else
 
4122
  if test "$cross_compiling" = yes; then
 
4123
  ac_cv_c_gcc_strength_bug="yes"
 
4124
else
 
4125
  cat >conftest.$ac_ext <<_ACEOF
 
4126
/* confdefs.h.  */
 
4127
_ACEOF
 
4128
cat confdefs.h >>conftest.$ac_ext
 
4129
cat >>conftest.$ac_ext <<_ACEOF
 
4130
/* end confdefs.h.  */
 
4131
 
 
4132
    int main(void) {
 
4133
      static int Array[3];
 
4134
      unsigned int B = 3;
 
4135
      int i;
 
4136
      for(i=0; i<B; i++) Array[i] = i - 3;
 
4137
      exit( Array[1] != -2 );
 
4138
    }
 
4139
 
 
4140
_ACEOF
 
4141
rm -f conftest$ac_exeext
 
4142
if { (ac_try="$ac_link"
 
4143
case "(($ac_try" in
 
4144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4145
  *) ac_try_echo=$ac_try;;
 
4146
esac
 
4147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4148
  (eval "$ac_link") 2>&5
 
4149
  ac_status=$?
 
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4151
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4152
  { (case "(($ac_try" in
 
4153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4154
  *) ac_try_echo=$ac_try;;
 
4155
esac
 
4156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4157
  (eval "$ac_try") 2>&5
 
4158
  ac_status=$?
 
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4160
  (exit $ac_status); }; }; then
 
4161
  ac_cv_c_gcc_strength_bug="no"
 
4162
else
 
4163
  echo "$as_me: program exited with status $ac_status" >&5
 
4164
echo "$as_me: failed program was:" >&5
 
4165
sed 's/^/| /' conftest.$ac_ext >&5
 
4166
 
 
4167
( exit $ac_status )
 
4168
ac_cv_c_gcc_strength_bug="yes"
 
4169
fi
 
4170
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4171
fi
 
4172
 
 
4173
 
 
4174
 
 
4175
fi
 
4176
{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
 
4177
echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
 
4178
 
 
4179
  if test "$ac_cv_c_gcc_strength_bug" = "yes"
 
4180
  then
 
4181
    :
 
4182
    CFLAGS="$CFLAGS -fno-strength-reduce"
 
4183
  else
 
4184
    :
 
4185
 
 
4186
  fi
 
4187
 
 
4188
 
 
4189
        case "${host}" in
 
4190
      i486-*) CPU_FLAGS="-m486";;
 
4191
      i586-*)
 
4192
 
 
4193
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
 
4194
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6; }
 
4195
if test "${ac_cpu_pentium+set}" = set; then
 
4196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4197
else
 
4198
  echo 'void f(){}' > conftest.c
 
4199
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
 
4200
        ac_cpu_pentium=yes
 
4201
else
 
4202
        ac_cpu_pentium=no
 
4203
fi
 
4204
rm -f conftest*
 
4205
 
 
4206
fi
 
4207
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
 
4208
echo "${ECHO_T}$ac_cpu_pentium" >&6; }
 
4209
if test "$ac_cpu_pentium" = yes; then
 
4210
        :
 
4211
        CPU_FLAGS=-mcpu=pentium
 
4212
else
 
4213
        :
 
4214
 
 
4215
 
 
4216
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
 
4217
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6; }
 
4218
if test "${ac_pentium+set}" = set; then
 
4219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4220
else
 
4221
  echo 'void f(){}' > conftest.c
 
4222
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
 
4223
        ac_pentium=yes
 
4224
else
 
4225
        ac_pentium=no
 
4226
fi
 
4227
rm -f conftest*
 
4228
 
 
4229
fi
 
4230
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5
 
4231
echo "${ECHO_T}$ac_pentium" >&6; }
 
4232
if test "$ac_pentium" = yes; then
 
4233
        :
 
4234
        CPU_FLAGS=-mpentium
 
4235
else
 
4236
        :
 
4237
        CPU_FLAGS=-m486
 
4238
fi
 
4239
 
 
4240
fi
 
4241
 
 
4242
              ;;
 
4243
      i686-*)
 
4244
 
 
4245
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
 
4246
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
 
4247
if test "${ac_cpu_pentiumpro+set}" = set; then
 
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4249
else
 
4250
  echo 'void f(){}' > conftest.c
 
4251
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
 
4252
        ac_cpu_pentiumpro=yes
 
4253
else
 
4254
        ac_cpu_pentiumpro=no
 
4255
fi
 
4256
rm -f conftest*
 
4257
 
 
4258
fi
 
4259
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
 
4260
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
 
4261
if test "$ac_cpu_pentiumpro" = yes; then
 
4262
        :
 
4263
        CPU_FLAGS=-mcpu=pentiumpro
 
4264
else
 
4265
        :
 
4266
 
 
4267
 
 
4268
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
 
4269
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6; }
 
4270
if test "${ac_pentiumpro+set}" = set; then
 
4271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4272
else
 
4273
  echo 'void f(){}' > conftest.c
 
4274
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
 
4275
        ac_pentiumpro=yes
 
4276
else
 
4277
        ac_pentiumpro=no
 
4278
fi
 
4279
rm -f conftest*
 
4280
 
 
4281
fi
 
4282
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
 
4283
echo "${ECHO_T}$ac_pentiumpro" >&6; }
 
4284
if test "$ac_pentiumpro" = yes; then
 
4285
        :
 
4286
        CPU_FLAGS=-mpentiumpro
 
4287
else
 
4288
        :
 
4289
        CPU_FLAGS=-m486
 
4290
fi
 
4291
 
 
4292
fi
 
4293
 
 
4294
              ;;
 
4295
    esac
 
4296
 
 
4297
    CFLAGS="$CPU_FLAGS $CFLAGS"
 
4298
  else
 
4299
    case "${host}" in
 
4300
      alpha*-dec-osf4.*)
 
4301
        CFLAGS="-std1 -w0"
 
4302
        OPTIMIZE="-O2"
 
4303
        DEBUG="-g3 -O2"
 
4304
        ;;
 
4305
      hppa*-hp-hpux*)
 
4306
        CFLAGS="-Aa -D_HPUX_SOURCE"
 
4307
        OPTIMIZE="-O"
 
4308
        DEBUG="-g -O"
 
4309
        ;;
 
4310
      mips-sgi-irix6.[4-9]*)
 
4311
        CFLAGS="-w"
 
4312
        OPTIMIZE="-O2 -OPT:Olimit=0"
 
4313
        DEBUG="-g3 -O2 -OPT:Olimit=0"
 
4314
        ;;
 
4315
      mips-sgi-irix*)
 
4316
        CFLAGS="-fullwarn -woff 835"
 
4317
        OPTIMIZE="-O2 -Olimit 3500"
 
4318
        ;;
 
4319
      rs6000-ibm-aix*)
 
4320
        CFLAGS="-D_ALL_SOURCE"
 
4321
        OPTIMIZE="-O2"
 
4322
        DEBUG="-g -O2"
 
4323
        ;;
 
4324
      *)
 
4325
        CFLAGS=""
 
4326
        OPTIMIZE="-O"
 
4327
        DEBUG="-g"
 
4328
        ;;
 
4329
    esac
 
4330
  fi
 
4331
fi
 
4332
 
 
4333
case $debug in
 
4334
  true) CFLAGS="$DEBUG $CFLAGS";;
 
4335
  *) CFLAGS="$OPTIMIZE $CFLAGS";;
 
4336
esac
 
4337
 
 
4338
case $FC in
 
4339
  /*|../*|./*)
 
4340
     if test ! -x $FC; then
 
4341
       FC=no
 
4342
     fi
 
4343
     ;;
 
4344
  *) # Extract the first word of "$FC", so it can be a program name with args.
 
4345
set dummy $FC; ac_word=$2
 
4346
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4348
if test "${ac_cv_prog_fc+set}" = set; then
 
4349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4350
else
 
4351
  if test -n "$fc"; then
 
4352
  ac_cv_prog_fc="$fc" # Let the user override the test.
 
4353
else
 
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4355
for as_dir in $PATH
 
4356
do
 
4357
  IFS=$as_save_IFS
 
4358
  test -z "$as_dir" && as_dir=.
 
4359
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4361
    ac_cv_prog_fc="$FC"
 
4362
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4363
    break 2
 
4364
  fi
 
4365
done
 
4366
done
 
4367
IFS=$as_save_IFS
 
4368
 
 
4369
  test -z "$ac_cv_prog_fc" && ac_cv_prog_fc="no"
 
4370
fi
 
4371
fi
 
4372
fc=$ac_cv_prog_fc
 
4373
if test -n "$fc"; then
 
4374
  { echo "$as_me:$LINENO: result: $fc" >&5
 
4375
echo "${ECHO_T}$fc" >&6; }
 
4376
else
 
4377
  { echo "$as_me:$LINENO: result: no" >&5
 
4378
echo "${ECHO_T}no" >&6; }
 
4379
fi
 
4380
 
 
4381
 
 
4382
     FC=$ac_cv_prog_fc
 
4383
     ;;
 
4384
esac
 
4385
 
 
4386
if test "${FC}" = "no"
 
4387
then
 
4388
  { echo "$as_me:$LINENO: result: --> Fortran tests won't be compiled" >&5
 
4389
echo "${ECHO_T}--> Fortran tests won't be compiled" >&6; }
 
4390
  FC=:
 
4391
fi
 
4392
 
 
4393
 
 
4394
{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
 
4395
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
 
4396
if test "${ac_cv_c_char_unsigned+set}" = set; then
 
4397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4398
else
 
4399
  cat >conftest.$ac_ext <<_ACEOF
 
4400
/* confdefs.h.  */
 
4401
_ACEOF
 
4402
cat confdefs.h >>conftest.$ac_ext
 
4403
cat >>conftest.$ac_ext <<_ACEOF
 
4404
/* end confdefs.h.  */
 
4405
$ac_includes_default
 
4406
int
 
4407
main ()
 
4408
{
 
4409
static int test_array [1 - 2 * !(((char) -1) < 0)];
 
4410
test_array [0] = 0
 
4411
 
 
4412
  ;
 
4413
  return 0;
 
4414
}
 
4415
_ACEOF
 
4416
rm -f conftest.$ac_objext
 
4417
if { (ac_try="$ac_compile"
 
4418
case "(($ac_try" in
 
4419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4420
  *) ac_try_echo=$ac_try;;
 
4421
esac
 
4422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4423
  (eval "$ac_compile") 2>conftest.er1
 
4424
  ac_status=$?
 
4425
  grep -v '^ *+' conftest.er1 >conftest.err
 
4426
  rm -f conftest.er1
 
4427
  cat conftest.err >&5
 
4428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4429
  (exit $ac_status); } && {
 
4430
         test -z "$ac_c_werror_flag" ||
 
4431
         test ! -s conftest.err
 
4432
       } && test -s conftest.$ac_objext; then
 
4433
  ac_cv_c_char_unsigned=no
 
4434
else
 
4435
  echo "$as_me: failed program was:" >&5
 
4436
sed 's/^/| /' conftest.$ac_ext >&5
 
4437
 
 
4438
        ac_cv_c_char_unsigned=yes
 
4439
fi
 
4440
 
 
4441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4442
fi
 
4443
{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
 
4444
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
 
4445
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
 
4446
  cat >>confdefs.h <<\_ACEOF
 
4447
#define __CHAR_UNSIGNED__ 1
 
4448
_ACEOF
 
4449
 
 
4450
fi
 
4451
 
 
4452
{ echo "$as_me:$LINENO: checking for char" >&5
 
4453
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
 
4454
if test "${ac_cv_type_char+set}" = set; then
 
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4456
else
 
4457
  cat >conftest.$ac_ext <<_ACEOF
 
4458
/* confdefs.h.  */
 
4459
_ACEOF
 
4460
cat confdefs.h >>conftest.$ac_ext
 
4461
cat >>conftest.$ac_ext <<_ACEOF
 
4462
/* end confdefs.h.  */
 
4463
$ac_includes_default
 
4464
typedef char ac__type_new_;
 
4465
int
 
4466
main ()
 
4467
{
 
4468
if ((ac__type_new_ *) 0)
 
4469
  return 0;
 
4470
if (sizeof (ac__type_new_))
 
4471
  return 0;
 
4472
  ;
 
4473
  return 0;
 
4474
}
 
4475
_ACEOF
 
4476
rm -f conftest.$ac_objext
 
4477
if { (ac_try="$ac_compile"
 
4478
case "(($ac_try" in
 
4479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4480
  *) ac_try_echo=$ac_try;;
 
4481
esac
 
4482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4483
  (eval "$ac_compile") 2>conftest.er1
 
4484
  ac_status=$?
 
4485
  grep -v '^ *+' conftest.er1 >conftest.err
 
4486
  rm -f conftest.er1
 
4487
  cat conftest.err >&5
 
4488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4489
  (exit $ac_status); } && {
 
4490
         test -z "$ac_c_werror_flag" ||
 
4491
         test ! -s conftest.err
 
4492
       } && test -s conftest.$ac_objext; then
 
4493
  ac_cv_type_char=yes
 
4494
else
 
4495
  echo "$as_me: failed program was:" >&5
 
4496
sed 's/^/| /' conftest.$ac_ext >&5
 
4497
 
 
4498
        ac_cv_type_char=no
 
4499
fi
 
4500
 
 
4501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4502
fi
 
4503
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
4504
echo "${ECHO_T}$ac_cv_type_char" >&6; }
 
4505
 
 
4506
# The cast to long int works around a bug in the HP C Compiler
 
4507
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4508
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4509
# This bug is HP SR number 8606223364.
 
4510
{ echo "$as_me:$LINENO: checking size of char" >&5
 
4511
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
 
4512
if test "${ac_cv_sizeof_char+set}" = set; then
 
4513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4514
else
 
4515
  if test "$cross_compiling" = yes; then
 
4516
  # Depending upon the size, compute the lo and hi bounds.
 
4517
cat >conftest.$ac_ext <<_ACEOF
 
4518
/* confdefs.h.  */
 
4519
_ACEOF
 
4520
cat confdefs.h >>conftest.$ac_ext
 
4521
cat >>conftest.$ac_ext <<_ACEOF
 
4522
/* end confdefs.h.  */
 
4523
$ac_includes_default
 
4524
   typedef char ac__type_sizeof_;
 
4525
int
 
4526
main ()
 
4527
{
 
4528
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
4529
test_array [0] = 0
 
4530
 
 
4531
  ;
 
4532
  return 0;
 
4533
}
 
4534
_ACEOF
 
4535
rm -f conftest.$ac_objext
 
4536
if { (ac_try="$ac_compile"
 
4537
case "(($ac_try" in
 
4538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4539
  *) ac_try_echo=$ac_try;;
 
4540
esac
 
4541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4542
  (eval "$ac_compile") 2>conftest.er1
 
4543
  ac_status=$?
 
4544
  grep -v '^ *+' conftest.er1 >conftest.err
 
4545
  rm -f conftest.er1
 
4546
  cat conftest.err >&5
 
4547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4548
  (exit $ac_status); } && {
 
4549
         test -z "$ac_c_werror_flag" ||
 
4550
         test ! -s conftest.err
 
4551
       } && test -s conftest.$ac_objext; then
 
4552
  ac_lo=0 ac_mid=0
 
4553
  while :; do
 
4554
    cat >conftest.$ac_ext <<_ACEOF
 
4555
/* confdefs.h.  */
 
4556
_ACEOF
 
4557
cat confdefs.h >>conftest.$ac_ext
 
4558
cat >>conftest.$ac_ext <<_ACEOF
 
4559
/* end confdefs.h.  */
 
4560
$ac_includes_default
 
4561
   typedef char ac__type_sizeof_;
 
4562
int
 
4563
main ()
 
4564
{
 
4565
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
4566
test_array [0] = 0
 
4567
 
 
4568
  ;
 
4569
  return 0;
 
4570
}
 
4571
_ACEOF
 
4572
rm -f conftest.$ac_objext
 
4573
if { (ac_try="$ac_compile"
 
4574
case "(($ac_try" in
 
4575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4576
  *) ac_try_echo=$ac_try;;
 
4577
esac
 
4578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4579
  (eval "$ac_compile") 2>conftest.er1
 
4580
  ac_status=$?
 
4581
  grep -v '^ *+' conftest.er1 >conftest.err
 
4582
  rm -f conftest.er1
 
4583
  cat conftest.err >&5
 
4584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4585
  (exit $ac_status); } && {
 
4586
         test -z "$ac_c_werror_flag" ||
 
4587
         test ! -s conftest.err
 
4588
       } && test -s conftest.$ac_objext; then
 
4589
  ac_hi=$ac_mid; break
 
4590
else
 
4591
  echo "$as_me: failed program was:" >&5
 
4592
sed 's/^/| /' conftest.$ac_ext >&5
 
4593
 
 
4594
        ac_lo=`expr $ac_mid + 1`
 
4595
                        if test $ac_lo -le $ac_mid; then
 
4596
                          ac_lo= ac_hi=
 
4597
                          break
 
4598
                        fi
 
4599
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
4600
fi
 
4601
 
 
4602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4603
  done
 
4604
else
 
4605
  echo "$as_me: failed program was:" >&5
 
4606
sed 's/^/| /' conftest.$ac_ext >&5
 
4607
 
 
4608
        cat >conftest.$ac_ext <<_ACEOF
 
4609
/* confdefs.h.  */
 
4610
_ACEOF
 
4611
cat confdefs.h >>conftest.$ac_ext
 
4612
cat >>conftest.$ac_ext <<_ACEOF
 
4613
/* end confdefs.h.  */
 
4614
$ac_includes_default
 
4615
   typedef char ac__type_sizeof_;
 
4616
int
 
4617
main ()
 
4618
{
 
4619
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
4620
test_array [0] = 0
 
4621
 
 
4622
  ;
 
4623
  return 0;
 
4624
}
 
4625
_ACEOF
 
4626
rm -f conftest.$ac_objext
 
4627
if { (ac_try="$ac_compile"
 
4628
case "(($ac_try" in
 
4629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4630
  *) ac_try_echo=$ac_try;;
 
4631
esac
 
4632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4633
  (eval "$ac_compile") 2>conftest.er1
 
4634
  ac_status=$?
 
4635
  grep -v '^ *+' conftest.er1 >conftest.err
 
4636
  rm -f conftest.er1
 
4637
  cat conftest.err >&5
 
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4639
  (exit $ac_status); } && {
 
4640
         test -z "$ac_c_werror_flag" ||
 
4641
         test ! -s conftest.err
 
4642
       } && test -s conftest.$ac_objext; then
 
4643
  ac_hi=-1 ac_mid=-1
 
4644
  while :; do
 
4645
    cat >conftest.$ac_ext <<_ACEOF
 
4646
/* confdefs.h.  */
 
4647
_ACEOF
 
4648
cat confdefs.h >>conftest.$ac_ext
 
4649
cat >>conftest.$ac_ext <<_ACEOF
 
4650
/* end confdefs.h.  */
 
4651
$ac_includes_default
 
4652
   typedef char ac__type_sizeof_;
 
4653
int
 
4654
main ()
 
4655
{
 
4656
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
4657
test_array [0] = 0
 
4658
 
 
4659
  ;
 
4660
  return 0;
 
4661
}
 
4662
_ACEOF
 
4663
rm -f conftest.$ac_objext
 
4664
if { (ac_try="$ac_compile"
 
4665
case "(($ac_try" in
 
4666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4667
  *) ac_try_echo=$ac_try;;
 
4668
esac
 
4669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4670
  (eval "$ac_compile") 2>conftest.er1
 
4671
  ac_status=$?
 
4672
  grep -v '^ *+' conftest.er1 >conftest.err
 
4673
  rm -f conftest.er1
 
4674
  cat conftest.err >&5
 
4675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4676
  (exit $ac_status); } && {
 
4677
         test -z "$ac_c_werror_flag" ||
 
4678
         test ! -s conftest.err
 
4679
       } && test -s conftest.$ac_objext; then
 
4680
  ac_lo=$ac_mid; break
 
4681
else
 
4682
  echo "$as_me: failed program was:" >&5
 
4683
sed 's/^/| /' conftest.$ac_ext >&5
 
4684
 
 
4685
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
4686
                        if test $ac_mid -le $ac_hi; then
 
4687
                          ac_lo= ac_hi=
 
4688
                          break
 
4689
                        fi
 
4690
                        ac_mid=`expr 2 '*' $ac_mid`
 
4691
fi
 
4692
 
 
4693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4694
  done
 
4695
else
 
4696
  echo "$as_me: failed program was:" >&5
 
4697
sed 's/^/| /' conftest.$ac_ext >&5
 
4698
 
 
4699
        ac_lo= ac_hi=
 
4700
fi
 
4701
 
 
4702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4703
fi
 
4704
 
 
4705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4706
# Binary search between lo and hi bounds.
 
4707
while test "x$ac_lo" != "x$ac_hi"; do
 
4708
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
4709
  cat >conftest.$ac_ext <<_ACEOF
 
4710
/* confdefs.h.  */
 
4711
_ACEOF
 
4712
cat confdefs.h >>conftest.$ac_ext
 
4713
cat >>conftest.$ac_ext <<_ACEOF
 
4714
/* end confdefs.h.  */
 
4715
$ac_includes_default
 
4716
   typedef char ac__type_sizeof_;
 
4717
int
 
4718
main ()
 
4719
{
 
4720
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
4721
test_array [0] = 0
 
4722
 
 
4723
  ;
 
4724
  return 0;
 
4725
}
 
4726
_ACEOF
 
4727
rm -f conftest.$ac_objext
 
4728
if { (ac_try="$ac_compile"
 
4729
case "(($ac_try" in
 
4730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4731
  *) ac_try_echo=$ac_try;;
 
4732
esac
 
4733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4734
  (eval "$ac_compile") 2>conftest.er1
 
4735
  ac_status=$?
 
4736
  grep -v '^ *+' conftest.er1 >conftest.err
 
4737
  rm -f conftest.er1
 
4738
  cat conftest.err >&5
 
4739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4740
  (exit $ac_status); } && {
 
4741
         test -z "$ac_c_werror_flag" ||
 
4742
         test ! -s conftest.err
 
4743
       } && test -s conftest.$ac_objext; then
 
4744
  ac_hi=$ac_mid
 
4745
else
 
4746
  echo "$as_me: failed program was:" >&5
 
4747
sed 's/^/| /' conftest.$ac_ext >&5
 
4748
 
 
4749
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
4750
fi
 
4751
 
 
4752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4753
done
 
4754
case $ac_lo in
 
4755
?*) ac_cv_sizeof_char=$ac_lo;;
 
4756
'') if test "$ac_cv_type_char" = yes; then
 
4757
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
4758
See \`config.log' for more details." >&5
 
4759
echo "$as_me: error: cannot compute sizeof (char)
 
4760
See \`config.log' for more details." >&2;}
 
4761
   { (exit 77); exit 77; }; }
 
4762
   else
 
4763
     ac_cv_sizeof_char=0
 
4764
   fi ;;
 
4765
esac
 
4766
else
 
4767
  cat >conftest.$ac_ext <<_ACEOF
 
4768
/* confdefs.h.  */
 
4769
_ACEOF
 
4770
cat confdefs.h >>conftest.$ac_ext
 
4771
cat >>conftest.$ac_ext <<_ACEOF
 
4772
/* end confdefs.h.  */
 
4773
$ac_includes_default
 
4774
   typedef char ac__type_sizeof_;
 
4775
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
4776
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
4777
#include <stdio.h>
 
4778
#include <stdlib.h>
 
4779
int
 
4780
main ()
 
4781
{
 
4782
 
 
4783
  FILE *f = fopen ("conftest.val", "w");
 
4784
  if (! f)
 
4785
    return 1;
 
4786
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
4787
    {
 
4788
      long int i = longval ();
 
4789
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
4790
        return 1;
 
4791
      fprintf (f, "%ld\n", i);
 
4792
    }
 
4793
  else
 
4794
    {
 
4795
      unsigned long int i = ulongval ();
 
4796
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
4797
        return 1;
 
4798
      fprintf (f, "%lu\n", i);
 
4799
    }
 
4800
  return ferror (f) || fclose (f) != 0;
 
4801
 
 
4802
  ;
 
4803
  return 0;
 
4804
}
 
4805
_ACEOF
 
4806
rm -f conftest$ac_exeext
 
4807
if { (ac_try="$ac_link"
 
4808
case "(($ac_try" in
 
4809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4810
  *) ac_try_echo=$ac_try;;
 
4811
esac
 
4812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4813
  (eval "$ac_link") 2>&5
 
4814
  ac_status=$?
 
4815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4816
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4817
  { (case "(($ac_try" in
 
4818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4819
  *) ac_try_echo=$ac_try;;
 
4820
esac
 
4821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4822
  (eval "$ac_try") 2>&5
 
4823
  ac_status=$?
 
4824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4825
  (exit $ac_status); }; }; then
 
4826
  ac_cv_sizeof_char=`cat conftest.val`
 
4827
else
 
4828
  echo "$as_me: program exited with status $ac_status" >&5
 
4829
echo "$as_me: failed program was:" >&5
 
4830
sed 's/^/| /' conftest.$ac_ext >&5
 
4831
 
 
4832
( exit $ac_status )
 
4833
if test "$ac_cv_type_char" = yes; then
 
4834
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
 
4835
See \`config.log' for more details." >&5
 
4836
echo "$as_me: error: cannot compute sizeof (char)
 
4837
See \`config.log' for more details." >&2;}
 
4838
   { (exit 77); exit 77; }; }
 
4839
   else
 
4840
     ac_cv_sizeof_char=0
 
4841
   fi
 
4842
fi
 
4843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4844
fi
 
4845
rm -f conftest.val
 
4846
fi
 
4847
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
4848
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
 
4849
 
 
4850
 
 
4851
 
 
4852
cat >>confdefs.h <<_ACEOF
 
4853
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
4854
_ACEOF
 
4855
 
 
4856
 
 
4857
{ echo "$as_me:$LINENO: checking for short" >&5
 
4858
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
 
4859
if test "${ac_cv_type_short+set}" = set; then
 
4860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4861
else
 
4862
  cat >conftest.$ac_ext <<_ACEOF
 
4863
/* confdefs.h.  */
 
4864
_ACEOF
 
4865
cat confdefs.h >>conftest.$ac_ext
 
4866
cat >>conftest.$ac_ext <<_ACEOF
 
4867
/* end confdefs.h.  */
 
4868
$ac_includes_default
 
4869
typedef short ac__type_new_;
 
4870
int
 
4871
main ()
 
4872
{
 
4873
if ((ac__type_new_ *) 0)
 
4874
  return 0;
 
4875
if (sizeof (ac__type_new_))
 
4876
  return 0;
 
4877
  ;
 
4878
  return 0;
 
4879
}
 
4880
_ACEOF
 
4881
rm -f conftest.$ac_objext
 
4882
if { (ac_try="$ac_compile"
 
4883
case "(($ac_try" in
 
4884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4885
  *) ac_try_echo=$ac_try;;
 
4886
esac
 
4887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4888
  (eval "$ac_compile") 2>conftest.er1
 
4889
  ac_status=$?
 
4890
  grep -v '^ *+' conftest.er1 >conftest.err
 
4891
  rm -f conftest.er1
 
4892
  cat conftest.err >&5
 
4893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4894
  (exit $ac_status); } && {
 
4895
         test -z "$ac_c_werror_flag" ||
 
4896
         test ! -s conftest.err
 
4897
       } && test -s conftest.$ac_objext; then
 
4898
  ac_cv_type_short=yes
 
4899
else
 
4900
  echo "$as_me: failed program was:" >&5
 
4901
sed 's/^/| /' conftest.$ac_ext >&5
 
4902
 
 
4903
        ac_cv_type_short=no
 
4904
fi
 
4905
 
 
4906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4907
fi
 
4908
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
4909
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
4910
 
 
4911
# The cast to long int works around a bug in the HP C Compiler
 
4912
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4913
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4914
# This bug is HP SR number 8606223364.
 
4915
{ echo "$as_me:$LINENO: checking size of short" >&5
 
4916
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
4917
if test "${ac_cv_sizeof_short+set}" = set; then
 
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4919
else
 
4920
  if test "$cross_compiling" = yes; then
 
4921
  # Depending upon the size, compute the lo and hi bounds.
 
4922
cat >conftest.$ac_ext <<_ACEOF
 
4923
/* confdefs.h.  */
 
4924
_ACEOF
 
4925
cat confdefs.h >>conftest.$ac_ext
 
4926
cat >>conftest.$ac_ext <<_ACEOF
 
4927
/* end confdefs.h.  */
 
4928
$ac_includes_default
 
4929
   typedef short ac__type_sizeof_;
 
4930
int
 
4931
main ()
 
4932
{
 
4933
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
4934
test_array [0] = 0
 
4935
 
 
4936
  ;
 
4937
  return 0;
 
4938
}
 
4939
_ACEOF
 
4940
rm -f conftest.$ac_objext
 
4941
if { (ac_try="$ac_compile"
 
4942
case "(($ac_try" in
 
4943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4944
  *) ac_try_echo=$ac_try;;
 
4945
esac
 
4946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4947
  (eval "$ac_compile") 2>conftest.er1
 
4948
  ac_status=$?
 
4949
  grep -v '^ *+' conftest.er1 >conftest.err
 
4950
  rm -f conftest.er1
 
4951
  cat conftest.err >&5
 
4952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4953
  (exit $ac_status); } && {
 
4954
         test -z "$ac_c_werror_flag" ||
 
4955
         test ! -s conftest.err
 
4956
       } && test -s conftest.$ac_objext; then
 
4957
  ac_lo=0 ac_mid=0
 
4958
  while :; do
 
4959
    cat >conftest.$ac_ext <<_ACEOF
 
4960
/* confdefs.h.  */
 
4961
_ACEOF
 
4962
cat confdefs.h >>conftest.$ac_ext
 
4963
cat >>conftest.$ac_ext <<_ACEOF
 
4964
/* end confdefs.h.  */
 
4965
$ac_includes_default
 
4966
   typedef short ac__type_sizeof_;
 
4967
int
 
4968
main ()
 
4969
{
 
4970
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
4971
test_array [0] = 0
 
4972
 
 
4973
  ;
 
4974
  return 0;
 
4975
}
 
4976
_ACEOF
 
4977
rm -f conftest.$ac_objext
 
4978
if { (ac_try="$ac_compile"
 
4979
case "(($ac_try" in
 
4980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4981
  *) ac_try_echo=$ac_try;;
 
4982
esac
 
4983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4984
  (eval "$ac_compile") 2>conftest.er1
 
4985
  ac_status=$?
 
4986
  grep -v '^ *+' conftest.er1 >conftest.err
 
4987
  rm -f conftest.er1
 
4988
  cat conftest.err >&5
 
4989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4990
  (exit $ac_status); } && {
 
4991
         test -z "$ac_c_werror_flag" ||
 
4992
         test ! -s conftest.err
 
4993
       } && test -s conftest.$ac_objext; then
 
4994
  ac_hi=$ac_mid; break
 
4995
else
 
4996
  echo "$as_me: failed program was:" >&5
 
4997
sed 's/^/| /' conftest.$ac_ext >&5
 
4998
 
 
4999
        ac_lo=`expr $ac_mid + 1`
 
5000
                        if test $ac_lo -le $ac_mid; then
 
5001
                          ac_lo= ac_hi=
 
5002
                          break
 
5003
                        fi
 
5004
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
5005
fi
 
5006
 
 
5007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5008
  done
 
5009
else
 
5010
  echo "$as_me: failed program was:" >&5
 
5011
sed 's/^/| /' conftest.$ac_ext >&5
 
5012
 
 
5013
        cat >conftest.$ac_ext <<_ACEOF
 
5014
/* confdefs.h.  */
 
5015
_ACEOF
 
5016
cat confdefs.h >>conftest.$ac_ext
 
5017
cat >>conftest.$ac_ext <<_ACEOF
 
5018
/* end confdefs.h.  */
 
5019
$ac_includes_default
 
5020
   typedef short ac__type_sizeof_;
 
5021
int
 
5022
main ()
 
5023
{
 
5024
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
5025
test_array [0] = 0
 
5026
 
 
5027
  ;
 
5028
  return 0;
 
5029
}
 
5030
_ACEOF
 
5031
rm -f conftest.$ac_objext
 
5032
if { (ac_try="$ac_compile"
 
5033
case "(($ac_try" in
 
5034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5035
  *) ac_try_echo=$ac_try;;
 
5036
esac
 
5037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5038
  (eval "$ac_compile") 2>conftest.er1
 
5039
  ac_status=$?
 
5040
  grep -v '^ *+' conftest.er1 >conftest.err
 
5041
  rm -f conftest.er1
 
5042
  cat conftest.err >&5
 
5043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5044
  (exit $ac_status); } && {
 
5045
         test -z "$ac_c_werror_flag" ||
 
5046
         test ! -s conftest.err
 
5047
       } && test -s conftest.$ac_objext; then
 
5048
  ac_hi=-1 ac_mid=-1
 
5049
  while :; do
 
5050
    cat >conftest.$ac_ext <<_ACEOF
 
5051
/* confdefs.h.  */
 
5052
_ACEOF
 
5053
cat confdefs.h >>conftest.$ac_ext
 
5054
cat >>conftest.$ac_ext <<_ACEOF
 
5055
/* end confdefs.h.  */
 
5056
$ac_includes_default
 
5057
   typedef short ac__type_sizeof_;
 
5058
int
 
5059
main ()
 
5060
{
 
5061
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
5062
test_array [0] = 0
 
5063
 
 
5064
  ;
 
5065
  return 0;
 
5066
}
 
5067
_ACEOF
 
5068
rm -f conftest.$ac_objext
 
5069
if { (ac_try="$ac_compile"
 
5070
case "(($ac_try" in
 
5071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5072
  *) ac_try_echo=$ac_try;;
 
5073
esac
 
5074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5075
  (eval "$ac_compile") 2>conftest.er1
 
5076
  ac_status=$?
 
5077
  grep -v '^ *+' conftest.er1 >conftest.err
 
5078
  rm -f conftest.er1
 
5079
  cat conftest.err >&5
 
5080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5081
  (exit $ac_status); } && {
 
5082
         test -z "$ac_c_werror_flag" ||
 
5083
         test ! -s conftest.err
 
5084
       } && test -s conftest.$ac_objext; then
 
5085
  ac_lo=$ac_mid; break
 
5086
else
 
5087
  echo "$as_me: failed program was:" >&5
 
5088
sed 's/^/| /' conftest.$ac_ext >&5
 
5089
 
 
5090
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5091
                        if test $ac_mid -le $ac_hi; then
 
5092
                          ac_lo= ac_hi=
 
5093
                          break
 
5094
                        fi
 
5095
                        ac_mid=`expr 2 '*' $ac_mid`
 
5096
fi
 
5097
 
 
5098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5099
  done
 
5100
else
 
5101
  echo "$as_me: failed program was:" >&5
 
5102
sed 's/^/| /' conftest.$ac_ext >&5
 
5103
 
 
5104
        ac_lo= ac_hi=
 
5105
fi
 
5106
 
 
5107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5108
fi
 
5109
 
 
5110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5111
# Binary search between lo and hi bounds.
 
5112
while test "x$ac_lo" != "x$ac_hi"; do
 
5113
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5114
  cat >conftest.$ac_ext <<_ACEOF
 
5115
/* confdefs.h.  */
 
5116
_ACEOF
 
5117
cat confdefs.h >>conftest.$ac_ext
 
5118
cat >>conftest.$ac_ext <<_ACEOF
 
5119
/* end confdefs.h.  */
 
5120
$ac_includes_default
 
5121
   typedef short ac__type_sizeof_;
 
5122
int
 
5123
main ()
 
5124
{
 
5125
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5126
test_array [0] = 0
 
5127
 
 
5128
  ;
 
5129
  return 0;
 
5130
}
 
5131
_ACEOF
 
5132
rm -f conftest.$ac_objext
 
5133
if { (ac_try="$ac_compile"
 
5134
case "(($ac_try" in
 
5135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5136
  *) ac_try_echo=$ac_try;;
 
5137
esac
 
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5139
  (eval "$ac_compile") 2>conftest.er1
 
5140
  ac_status=$?
 
5141
  grep -v '^ *+' conftest.er1 >conftest.err
 
5142
  rm -f conftest.er1
 
5143
  cat conftest.err >&5
 
5144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5145
  (exit $ac_status); } && {
 
5146
         test -z "$ac_c_werror_flag" ||
 
5147
         test ! -s conftest.err
 
5148
       } && test -s conftest.$ac_objext; then
 
5149
  ac_hi=$ac_mid
 
5150
else
 
5151
  echo "$as_me: failed program was:" >&5
 
5152
sed 's/^/| /' conftest.$ac_ext >&5
 
5153
 
 
5154
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
5155
fi
 
5156
 
 
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5158
done
 
5159
case $ac_lo in
 
5160
?*) ac_cv_sizeof_short=$ac_lo;;
 
5161
'') if test "$ac_cv_type_short" = yes; then
 
5162
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
5163
See \`config.log' for more details." >&5
 
5164
echo "$as_me: error: cannot compute sizeof (short)
 
5165
See \`config.log' for more details." >&2;}
 
5166
   { (exit 77); exit 77; }; }
 
5167
   else
 
5168
     ac_cv_sizeof_short=0
 
5169
   fi ;;
 
5170
esac
 
5171
else
 
5172
  cat >conftest.$ac_ext <<_ACEOF
 
5173
/* confdefs.h.  */
 
5174
_ACEOF
 
5175
cat confdefs.h >>conftest.$ac_ext
 
5176
cat >>conftest.$ac_ext <<_ACEOF
 
5177
/* end confdefs.h.  */
 
5178
$ac_includes_default
 
5179
   typedef short ac__type_sizeof_;
 
5180
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5181
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5182
#include <stdio.h>
 
5183
#include <stdlib.h>
 
5184
int
 
5185
main ()
 
5186
{
 
5187
 
 
5188
  FILE *f = fopen ("conftest.val", "w");
 
5189
  if (! f)
 
5190
    return 1;
 
5191
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
5192
    {
 
5193
      long int i = longval ();
 
5194
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5195
        return 1;
 
5196
      fprintf (f, "%ld\n", i);
 
5197
    }
 
5198
  else
 
5199
    {
 
5200
      unsigned long int i = ulongval ();
 
5201
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5202
        return 1;
 
5203
      fprintf (f, "%lu\n", i);
 
5204
    }
 
5205
  return ferror (f) || fclose (f) != 0;
 
5206
 
 
5207
  ;
 
5208
  return 0;
 
5209
}
 
5210
_ACEOF
 
5211
rm -f conftest$ac_exeext
 
5212
if { (ac_try="$ac_link"
 
5213
case "(($ac_try" in
 
5214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5215
  *) ac_try_echo=$ac_try;;
 
5216
esac
 
5217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5218
  (eval "$ac_link") 2>&5
 
5219
  ac_status=$?
 
5220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5221
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5222
  { (case "(($ac_try" in
 
5223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5224
  *) ac_try_echo=$ac_try;;
 
5225
esac
 
5226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5227
  (eval "$ac_try") 2>&5
 
5228
  ac_status=$?
 
5229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5230
  (exit $ac_status); }; }; then
 
5231
  ac_cv_sizeof_short=`cat conftest.val`
 
5232
else
 
5233
  echo "$as_me: program exited with status $ac_status" >&5
 
5234
echo "$as_me: failed program was:" >&5
 
5235
sed 's/^/| /' conftest.$ac_ext >&5
 
5236
 
 
5237
( exit $ac_status )
 
5238
if test "$ac_cv_type_short" = yes; then
 
5239
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
5240
See \`config.log' for more details." >&5
 
5241
echo "$as_me: error: cannot compute sizeof (short)
 
5242
See \`config.log' for more details." >&2;}
 
5243
   { (exit 77); exit 77; }; }
 
5244
   else
 
5245
     ac_cv_sizeof_short=0
 
5246
   fi
 
5247
fi
 
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5249
fi
 
5250
rm -f conftest.val
 
5251
fi
 
5252
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
5253
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
5254
 
 
5255
 
 
5256
 
 
5257
cat >>confdefs.h <<_ACEOF
 
5258
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
5259
_ACEOF
 
5260
 
 
5261
 
 
5262
{ echo "$as_me:$LINENO: checking for int" >&5
 
5263
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
5264
if test "${ac_cv_type_int+set}" = set; then
 
5265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5266
else
 
5267
  cat >conftest.$ac_ext <<_ACEOF
 
5268
/* confdefs.h.  */
 
5269
_ACEOF
 
5270
cat confdefs.h >>conftest.$ac_ext
 
5271
cat >>conftest.$ac_ext <<_ACEOF
 
5272
/* end confdefs.h.  */
 
5273
$ac_includes_default
 
5274
typedef int ac__type_new_;
 
5275
int
 
5276
main ()
 
5277
{
 
5278
if ((ac__type_new_ *) 0)
 
5279
  return 0;
 
5280
if (sizeof (ac__type_new_))
 
5281
  return 0;
 
5282
  ;
 
5283
  return 0;
 
5284
}
 
5285
_ACEOF
 
5286
rm -f conftest.$ac_objext
 
5287
if { (ac_try="$ac_compile"
 
5288
case "(($ac_try" in
 
5289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5290
  *) ac_try_echo=$ac_try;;
 
5291
esac
 
5292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5293
  (eval "$ac_compile") 2>conftest.er1
 
5294
  ac_status=$?
 
5295
  grep -v '^ *+' conftest.er1 >conftest.err
 
5296
  rm -f conftest.er1
 
5297
  cat conftest.err >&5
 
5298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5299
  (exit $ac_status); } && {
 
5300
         test -z "$ac_c_werror_flag" ||
 
5301
         test ! -s conftest.err
 
5302
       } && test -s conftest.$ac_objext; then
 
5303
  ac_cv_type_int=yes
 
5304
else
 
5305
  echo "$as_me: failed program was:" >&5
 
5306
sed 's/^/| /' conftest.$ac_ext >&5
 
5307
 
 
5308
        ac_cv_type_int=no
 
5309
fi
 
5310
 
 
5311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5312
fi
 
5313
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
5314
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
5315
 
 
5316
# The cast to long int works around a bug in the HP C Compiler
 
5317
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5318
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5319
# This bug is HP SR number 8606223364.
 
5320
{ echo "$as_me:$LINENO: checking size of int" >&5
 
5321
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
5322
if test "${ac_cv_sizeof_int+set}" = set; then
 
5323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5324
else
 
5325
  if test "$cross_compiling" = yes; then
 
5326
  # Depending upon the size, compute the lo and hi bounds.
 
5327
cat >conftest.$ac_ext <<_ACEOF
 
5328
/* confdefs.h.  */
 
5329
_ACEOF
 
5330
cat confdefs.h >>conftest.$ac_ext
 
5331
cat >>conftest.$ac_ext <<_ACEOF
 
5332
/* end confdefs.h.  */
 
5333
$ac_includes_default
 
5334
   typedef int ac__type_sizeof_;
 
5335
int
 
5336
main ()
 
5337
{
 
5338
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
5339
test_array [0] = 0
 
5340
 
 
5341
  ;
 
5342
  return 0;
 
5343
}
 
5344
_ACEOF
 
5345
rm -f conftest.$ac_objext
 
5346
if { (ac_try="$ac_compile"
 
5347
case "(($ac_try" in
 
5348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5349
  *) ac_try_echo=$ac_try;;
 
5350
esac
 
5351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5352
  (eval "$ac_compile") 2>conftest.er1
 
5353
  ac_status=$?
 
5354
  grep -v '^ *+' conftest.er1 >conftest.err
 
5355
  rm -f conftest.er1
 
5356
  cat conftest.err >&5
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); } && {
 
5359
         test -z "$ac_c_werror_flag" ||
 
5360
         test ! -s conftest.err
 
5361
       } && test -s conftest.$ac_objext; then
 
5362
  ac_lo=0 ac_mid=0
 
5363
  while :; do
 
5364
    cat >conftest.$ac_ext <<_ACEOF
 
5365
/* confdefs.h.  */
 
5366
_ACEOF
 
5367
cat confdefs.h >>conftest.$ac_ext
 
5368
cat >>conftest.$ac_ext <<_ACEOF
 
5369
/* end confdefs.h.  */
 
5370
$ac_includes_default
 
5371
   typedef int ac__type_sizeof_;
 
5372
int
 
5373
main ()
 
5374
{
 
5375
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5376
test_array [0] = 0
 
5377
 
 
5378
  ;
 
5379
  return 0;
 
5380
}
 
5381
_ACEOF
 
5382
rm -f conftest.$ac_objext
 
5383
if { (ac_try="$ac_compile"
 
5384
case "(($ac_try" in
 
5385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5386
  *) ac_try_echo=$ac_try;;
 
5387
esac
 
5388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5389
  (eval "$ac_compile") 2>conftest.er1
 
5390
  ac_status=$?
 
5391
  grep -v '^ *+' conftest.er1 >conftest.err
 
5392
  rm -f conftest.er1
 
5393
  cat conftest.err >&5
 
5394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5395
  (exit $ac_status); } && {
 
5396
         test -z "$ac_c_werror_flag" ||
 
5397
         test ! -s conftest.err
 
5398
       } && test -s conftest.$ac_objext; then
 
5399
  ac_hi=$ac_mid; break
 
5400
else
 
5401
  echo "$as_me: failed program was:" >&5
 
5402
sed 's/^/| /' conftest.$ac_ext >&5
 
5403
 
 
5404
        ac_lo=`expr $ac_mid + 1`
 
5405
                        if test $ac_lo -le $ac_mid; then
 
5406
                          ac_lo= ac_hi=
 
5407
                          break
 
5408
                        fi
 
5409
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
5410
fi
 
5411
 
 
5412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5413
  done
 
5414
else
 
5415
  echo "$as_me: failed program was:" >&5
 
5416
sed 's/^/| /' conftest.$ac_ext >&5
 
5417
 
 
5418
        cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
$ac_includes_default
 
5425
   typedef int ac__type_sizeof_;
 
5426
int
 
5427
main ()
 
5428
{
 
5429
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
5430
test_array [0] = 0
 
5431
 
 
5432
  ;
 
5433
  return 0;
 
5434
}
 
5435
_ACEOF
 
5436
rm -f conftest.$ac_objext
 
5437
if { (ac_try="$ac_compile"
 
5438
case "(($ac_try" in
 
5439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5440
  *) ac_try_echo=$ac_try;;
 
5441
esac
 
5442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5443
  (eval "$ac_compile") 2>conftest.er1
 
5444
  ac_status=$?
 
5445
  grep -v '^ *+' conftest.er1 >conftest.err
 
5446
  rm -f conftest.er1
 
5447
  cat conftest.err >&5
 
5448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5449
  (exit $ac_status); } && {
 
5450
         test -z "$ac_c_werror_flag" ||
 
5451
         test ! -s conftest.err
 
5452
       } && test -s conftest.$ac_objext; then
 
5453
  ac_hi=-1 ac_mid=-1
 
5454
  while :; do
 
5455
    cat >conftest.$ac_ext <<_ACEOF
 
5456
/* confdefs.h.  */
 
5457
_ACEOF
 
5458
cat confdefs.h >>conftest.$ac_ext
 
5459
cat >>conftest.$ac_ext <<_ACEOF
 
5460
/* end confdefs.h.  */
 
5461
$ac_includes_default
 
5462
   typedef int ac__type_sizeof_;
 
5463
int
 
5464
main ()
 
5465
{
 
5466
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
5467
test_array [0] = 0
 
5468
 
 
5469
  ;
 
5470
  return 0;
 
5471
}
 
5472
_ACEOF
 
5473
rm -f conftest.$ac_objext
 
5474
if { (ac_try="$ac_compile"
 
5475
case "(($ac_try" in
 
5476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5477
  *) ac_try_echo=$ac_try;;
 
5478
esac
 
5479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5480
  (eval "$ac_compile") 2>conftest.er1
 
5481
  ac_status=$?
 
5482
  grep -v '^ *+' conftest.er1 >conftest.err
 
5483
  rm -f conftest.er1
 
5484
  cat conftest.err >&5
 
5485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5486
  (exit $ac_status); } && {
 
5487
         test -z "$ac_c_werror_flag" ||
 
5488
         test ! -s conftest.err
 
5489
       } && test -s conftest.$ac_objext; then
 
5490
  ac_lo=$ac_mid; break
 
5491
else
 
5492
  echo "$as_me: failed program was:" >&5
 
5493
sed 's/^/| /' conftest.$ac_ext >&5
 
5494
 
 
5495
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5496
                        if test $ac_mid -le $ac_hi; then
 
5497
                          ac_lo= ac_hi=
 
5498
                          break
 
5499
                        fi
 
5500
                        ac_mid=`expr 2 '*' $ac_mid`
 
5501
fi
 
5502
 
 
5503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5504
  done
 
5505
else
 
5506
  echo "$as_me: failed program was:" >&5
 
5507
sed 's/^/| /' conftest.$ac_ext >&5
 
5508
 
 
5509
        ac_lo= ac_hi=
 
5510
fi
 
5511
 
 
5512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5513
fi
 
5514
 
 
5515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5516
# Binary search between lo and hi bounds.
 
5517
while test "x$ac_lo" != "x$ac_hi"; do
 
5518
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5519
  cat >conftest.$ac_ext <<_ACEOF
 
5520
/* confdefs.h.  */
 
5521
_ACEOF
 
5522
cat confdefs.h >>conftest.$ac_ext
 
5523
cat >>conftest.$ac_ext <<_ACEOF
 
5524
/* end confdefs.h.  */
 
5525
$ac_includes_default
 
5526
   typedef int ac__type_sizeof_;
 
5527
int
 
5528
main ()
 
5529
{
 
5530
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5531
test_array [0] = 0
 
5532
 
 
5533
  ;
 
5534
  return 0;
 
5535
}
 
5536
_ACEOF
 
5537
rm -f conftest.$ac_objext
 
5538
if { (ac_try="$ac_compile"
 
5539
case "(($ac_try" in
 
5540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5541
  *) ac_try_echo=$ac_try;;
 
5542
esac
 
5543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5544
  (eval "$ac_compile") 2>conftest.er1
 
5545
  ac_status=$?
 
5546
  grep -v '^ *+' conftest.er1 >conftest.err
 
5547
  rm -f conftest.er1
 
5548
  cat conftest.err >&5
 
5549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5550
  (exit $ac_status); } && {
 
5551
         test -z "$ac_c_werror_flag" ||
 
5552
         test ! -s conftest.err
 
5553
       } && test -s conftest.$ac_objext; then
 
5554
  ac_hi=$ac_mid
 
5555
else
 
5556
  echo "$as_me: failed program was:" >&5
 
5557
sed 's/^/| /' conftest.$ac_ext >&5
 
5558
 
 
5559
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
5560
fi
 
5561
 
 
5562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5563
done
 
5564
case $ac_lo in
 
5565
?*) ac_cv_sizeof_int=$ac_lo;;
 
5566
'') if test "$ac_cv_type_int" = yes; then
 
5567
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
5568
See \`config.log' for more details." >&5
 
5569
echo "$as_me: error: cannot compute sizeof (int)
 
5570
See \`config.log' for more details." >&2;}
 
5571
   { (exit 77); exit 77; }; }
 
5572
   else
 
5573
     ac_cv_sizeof_int=0
 
5574
   fi ;;
 
5575
esac
 
5576
else
 
5577
  cat >conftest.$ac_ext <<_ACEOF
 
5578
/* confdefs.h.  */
 
5579
_ACEOF
 
5580
cat confdefs.h >>conftest.$ac_ext
 
5581
cat >>conftest.$ac_ext <<_ACEOF
 
5582
/* end confdefs.h.  */
 
5583
$ac_includes_default
 
5584
   typedef int ac__type_sizeof_;
 
5585
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5586
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5587
#include <stdio.h>
 
5588
#include <stdlib.h>
 
5589
int
 
5590
main ()
 
5591
{
 
5592
 
 
5593
  FILE *f = fopen ("conftest.val", "w");
 
5594
  if (! f)
 
5595
    return 1;
 
5596
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
5597
    {
 
5598
      long int i = longval ();
 
5599
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5600
        return 1;
 
5601
      fprintf (f, "%ld\n", i);
 
5602
    }
 
5603
  else
 
5604
    {
 
5605
      unsigned long int i = ulongval ();
 
5606
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5607
        return 1;
 
5608
      fprintf (f, "%lu\n", i);
 
5609
    }
 
5610
  return ferror (f) || fclose (f) != 0;
 
5611
 
 
5612
  ;
 
5613
  return 0;
 
5614
}
 
5615
_ACEOF
 
5616
rm -f conftest$ac_exeext
 
5617
if { (ac_try="$ac_link"
 
5618
case "(($ac_try" in
 
5619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5620
  *) ac_try_echo=$ac_try;;
 
5621
esac
 
5622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5623
  (eval "$ac_link") 2>&5
 
5624
  ac_status=$?
 
5625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5626
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5627
  { (case "(($ac_try" in
 
5628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5629
  *) ac_try_echo=$ac_try;;
 
5630
esac
 
5631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5632
  (eval "$ac_try") 2>&5
 
5633
  ac_status=$?
 
5634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5635
  (exit $ac_status); }; }; then
 
5636
  ac_cv_sizeof_int=`cat conftest.val`
 
5637
else
 
5638
  echo "$as_me: program exited with status $ac_status" >&5
 
5639
echo "$as_me: failed program was:" >&5
 
5640
sed 's/^/| /' conftest.$ac_ext >&5
 
5641
 
 
5642
( exit $ac_status )
 
5643
if test "$ac_cv_type_int" = yes; then
 
5644
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
5645
See \`config.log' for more details." >&5
 
5646
echo "$as_me: error: cannot compute sizeof (int)
 
5647
See \`config.log' for more details." >&2;}
 
5648
   { (exit 77); exit 77; }; }
 
5649
   else
 
5650
     ac_cv_sizeof_int=0
 
5651
   fi
 
5652
fi
 
5653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5654
fi
 
5655
rm -f conftest.val
 
5656
fi
 
5657
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
5658
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
5659
 
 
5660
 
 
5661
 
 
5662
cat >>confdefs.h <<_ACEOF
 
5663
#define SIZEOF_INT $ac_cv_sizeof_int
 
5664
_ACEOF
 
5665
 
 
5666
 
 
5667
{ echo "$as_me:$LINENO: checking for long" >&5
 
5668
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
5669
if test "${ac_cv_type_long+set}" = set; then
 
5670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5671
else
 
5672
  cat >conftest.$ac_ext <<_ACEOF
 
5673
/* confdefs.h.  */
 
5674
_ACEOF
 
5675
cat confdefs.h >>conftest.$ac_ext
 
5676
cat >>conftest.$ac_ext <<_ACEOF
 
5677
/* end confdefs.h.  */
 
5678
$ac_includes_default
 
5679
typedef long ac__type_new_;
 
5680
int
 
5681
main ()
 
5682
{
 
5683
if ((ac__type_new_ *) 0)
 
5684
  return 0;
 
5685
if (sizeof (ac__type_new_))
 
5686
  return 0;
 
5687
  ;
 
5688
  return 0;
 
5689
}
 
5690
_ACEOF
 
5691
rm -f conftest.$ac_objext
 
5692
if { (ac_try="$ac_compile"
 
5693
case "(($ac_try" in
 
5694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5695
  *) ac_try_echo=$ac_try;;
 
5696
esac
 
5697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5698
  (eval "$ac_compile") 2>conftest.er1
 
5699
  ac_status=$?
 
5700
  grep -v '^ *+' conftest.er1 >conftest.err
 
5701
  rm -f conftest.er1
 
5702
  cat conftest.err >&5
 
5703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5704
  (exit $ac_status); } && {
 
5705
         test -z "$ac_c_werror_flag" ||
 
5706
         test ! -s conftest.err
 
5707
       } && test -s conftest.$ac_objext; then
 
5708
  ac_cv_type_long=yes
 
5709
else
 
5710
  echo "$as_me: failed program was:" >&5
 
5711
sed 's/^/| /' conftest.$ac_ext >&5
 
5712
 
 
5713
        ac_cv_type_long=no
 
5714
fi
 
5715
 
 
5716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5717
fi
 
5718
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
5719
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
5720
 
 
5721
# The cast to long int works around a bug in the HP C Compiler
 
5722
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5723
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5724
# This bug is HP SR number 8606223364.
 
5725
{ echo "$as_me:$LINENO: checking size of long" >&5
 
5726
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
5727
if test "${ac_cv_sizeof_long+set}" = set; then
 
5728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5729
else
 
5730
  if test "$cross_compiling" = yes; then
 
5731
  # Depending upon the size, compute the lo and hi bounds.
 
5732
cat >conftest.$ac_ext <<_ACEOF
 
5733
/* confdefs.h.  */
 
5734
_ACEOF
 
5735
cat confdefs.h >>conftest.$ac_ext
 
5736
cat >>conftest.$ac_ext <<_ACEOF
 
5737
/* end confdefs.h.  */
 
5738
$ac_includes_default
 
5739
   typedef long ac__type_sizeof_;
 
5740
int
 
5741
main ()
 
5742
{
 
5743
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
5744
test_array [0] = 0
 
5745
 
 
5746
  ;
 
5747
  return 0;
 
5748
}
 
5749
_ACEOF
 
5750
rm -f conftest.$ac_objext
 
5751
if { (ac_try="$ac_compile"
 
5752
case "(($ac_try" in
 
5753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5754
  *) ac_try_echo=$ac_try;;
 
5755
esac
 
5756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5757
  (eval "$ac_compile") 2>conftest.er1
 
5758
  ac_status=$?
 
5759
  grep -v '^ *+' conftest.er1 >conftest.err
 
5760
  rm -f conftest.er1
 
5761
  cat conftest.err >&5
 
5762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5763
  (exit $ac_status); } && {
 
5764
         test -z "$ac_c_werror_flag" ||
 
5765
         test ! -s conftest.err
 
5766
       } && test -s conftest.$ac_objext; then
 
5767
  ac_lo=0 ac_mid=0
 
5768
  while :; do
 
5769
    cat >conftest.$ac_ext <<_ACEOF
 
5770
/* confdefs.h.  */
 
5771
_ACEOF
 
5772
cat confdefs.h >>conftest.$ac_ext
 
5773
cat >>conftest.$ac_ext <<_ACEOF
 
5774
/* end confdefs.h.  */
 
5775
$ac_includes_default
 
5776
   typedef long ac__type_sizeof_;
 
5777
int
 
5778
main ()
 
5779
{
 
5780
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5781
test_array [0] = 0
 
5782
 
 
5783
  ;
 
5784
  return 0;
 
5785
}
 
5786
_ACEOF
 
5787
rm -f conftest.$ac_objext
 
5788
if { (ac_try="$ac_compile"
 
5789
case "(($ac_try" in
 
5790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5791
  *) ac_try_echo=$ac_try;;
 
5792
esac
 
5793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5794
  (eval "$ac_compile") 2>conftest.er1
 
5795
  ac_status=$?
 
5796
  grep -v '^ *+' conftest.er1 >conftest.err
 
5797
  rm -f conftest.er1
 
5798
  cat conftest.err >&5
 
5799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5800
  (exit $ac_status); } && {
 
5801
         test -z "$ac_c_werror_flag" ||
 
5802
         test ! -s conftest.err
 
5803
       } && test -s conftest.$ac_objext; then
 
5804
  ac_hi=$ac_mid; break
 
5805
else
 
5806
  echo "$as_me: failed program was:" >&5
 
5807
sed 's/^/| /' conftest.$ac_ext >&5
 
5808
 
 
5809
        ac_lo=`expr $ac_mid + 1`
 
5810
                        if test $ac_lo -le $ac_mid; then
 
5811
                          ac_lo= ac_hi=
 
5812
                          break
 
5813
                        fi
 
5814
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
5815
fi
 
5816
 
 
5817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5818
  done
 
5819
else
 
5820
  echo "$as_me: failed program was:" >&5
 
5821
sed 's/^/| /' conftest.$ac_ext >&5
 
5822
 
 
5823
        cat >conftest.$ac_ext <<_ACEOF
 
5824
/* confdefs.h.  */
 
5825
_ACEOF
 
5826
cat confdefs.h >>conftest.$ac_ext
 
5827
cat >>conftest.$ac_ext <<_ACEOF
 
5828
/* end confdefs.h.  */
 
5829
$ac_includes_default
 
5830
   typedef long ac__type_sizeof_;
 
5831
int
 
5832
main ()
 
5833
{
 
5834
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
5835
test_array [0] = 0
 
5836
 
 
5837
  ;
 
5838
  return 0;
 
5839
}
 
5840
_ACEOF
 
5841
rm -f conftest.$ac_objext
 
5842
if { (ac_try="$ac_compile"
 
5843
case "(($ac_try" in
 
5844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5845
  *) ac_try_echo=$ac_try;;
 
5846
esac
 
5847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5848
  (eval "$ac_compile") 2>conftest.er1
 
5849
  ac_status=$?
 
5850
  grep -v '^ *+' conftest.er1 >conftest.err
 
5851
  rm -f conftest.er1
 
5852
  cat conftest.err >&5
 
5853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5854
  (exit $ac_status); } && {
 
5855
         test -z "$ac_c_werror_flag" ||
 
5856
         test ! -s conftest.err
 
5857
       } && test -s conftest.$ac_objext; then
 
5858
  ac_hi=-1 ac_mid=-1
 
5859
  while :; do
 
5860
    cat >conftest.$ac_ext <<_ACEOF
 
5861
/* confdefs.h.  */
 
5862
_ACEOF
 
5863
cat confdefs.h >>conftest.$ac_ext
 
5864
cat >>conftest.$ac_ext <<_ACEOF
 
5865
/* end confdefs.h.  */
 
5866
$ac_includes_default
 
5867
   typedef long ac__type_sizeof_;
 
5868
int
 
5869
main ()
 
5870
{
 
5871
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
5872
test_array [0] = 0
 
5873
 
 
5874
  ;
 
5875
  return 0;
 
5876
}
 
5877
_ACEOF
 
5878
rm -f conftest.$ac_objext
 
5879
if { (ac_try="$ac_compile"
 
5880
case "(($ac_try" in
 
5881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5882
  *) ac_try_echo=$ac_try;;
 
5883
esac
 
5884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5885
  (eval "$ac_compile") 2>conftest.er1
 
5886
  ac_status=$?
 
5887
  grep -v '^ *+' conftest.er1 >conftest.err
 
5888
  rm -f conftest.er1
 
5889
  cat conftest.err >&5
 
5890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5891
  (exit $ac_status); } && {
 
5892
         test -z "$ac_c_werror_flag" ||
 
5893
         test ! -s conftest.err
 
5894
       } && test -s conftest.$ac_objext; then
 
5895
  ac_lo=$ac_mid; break
 
5896
else
 
5897
  echo "$as_me: failed program was:" >&5
 
5898
sed 's/^/| /' conftest.$ac_ext >&5
 
5899
 
 
5900
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5901
                        if test $ac_mid -le $ac_hi; then
 
5902
                          ac_lo= ac_hi=
 
5903
                          break
 
5904
                        fi
 
5905
                        ac_mid=`expr 2 '*' $ac_mid`
 
5906
fi
 
5907
 
 
5908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5909
  done
 
5910
else
 
5911
  echo "$as_me: failed program was:" >&5
 
5912
sed 's/^/| /' conftest.$ac_ext >&5
 
5913
 
 
5914
        ac_lo= ac_hi=
 
5915
fi
 
5916
 
 
5917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5918
fi
 
5919
 
 
5920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5921
# Binary search between lo and hi bounds.
 
5922
while test "x$ac_lo" != "x$ac_hi"; do
 
5923
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5924
  cat >conftest.$ac_ext <<_ACEOF
 
5925
/* confdefs.h.  */
 
5926
_ACEOF
 
5927
cat confdefs.h >>conftest.$ac_ext
 
5928
cat >>conftest.$ac_ext <<_ACEOF
 
5929
/* end confdefs.h.  */
 
5930
$ac_includes_default
 
5931
   typedef long ac__type_sizeof_;
 
5932
int
 
5933
main ()
 
5934
{
 
5935
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5936
test_array [0] = 0
 
5937
 
 
5938
  ;
 
5939
  return 0;
 
5940
}
 
5941
_ACEOF
 
5942
rm -f conftest.$ac_objext
 
5943
if { (ac_try="$ac_compile"
 
5944
case "(($ac_try" in
 
5945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5946
  *) ac_try_echo=$ac_try;;
 
5947
esac
 
5948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5949
  (eval "$ac_compile") 2>conftest.er1
 
5950
  ac_status=$?
 
5951
  grep -v '^ *+' conftest.er1 >conftest.err
 
5952
  rm -f conftest.er1
 
5953
  cat conftest.err >&5
 
5954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5955
  (exit $ac_status); } && {
 
5956
         test -z "$ac_c_werror_flag" ||
 
5957
         test ! -s conftest.err
 
5958
       } && test -s conftest.$ac_objext; then
 
5959
  ac_hi=$ac_mid
 
5960
else
 
5961
  echo "$as_me: failed program was:" >&5
 
5962
sed 's/^/| /' conftest.$ac_ext >&5
 
5963
 
 
5964
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
5965
fi
 
5966
 
 
5967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5968
done
 
5969
case $ac_lo in
 
5970
?*) ac_cv_sizeof_long=$ac_lo;;
 
5971
'') if test "$ac_cv_type_long" = yes; then
 
5972
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
5973
See \`config.log' for more details." >&5
 
5974
echo "$as_me: error: cannot compute sizeof (long)
 
5975
See \`config.log' for more details." >&2;}
 
5976
   { (exit 77); exit 77; }; }
 
5977
   else
 
5978
     ac_cv_sizeof_long=0
 
5979
   fi ;;
 
5980
esac
 
5981
else
 
5982
  cat >conftest.$ac_ext <<_ACEOF
 
5983
/* confdefs.h.  */
 
5984
_ACEOF
 
5985
cat confdefs.h >>conftest.$ac_ext
 
5986
cat >>conftest.$ac_ext <<_ACEOF
 
5987
/* end confdefs.h.  */
 
5988
$ac_includes_default
 
5989
   typedef long ac__type_sizeof_;
 
5990
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5991
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5992
#include <stdio.h>
 
5993
#include <stdlib.h>
 
5994
int
 
5995
main ()
 
5996
{
 
5997
 
 
5998
  FILE *f = fopen ("conftest.val", "w");
 
5999
  if (! f)
 
6000
    return 1;
 
6001
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
6002
    {
 
6003
      long int i = longval ();
 
6004
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6005
        return 1;
 
6006
      fprintf (f, "%ld\n", i);
 
6007
    }
 
6008
  else
 
6009
    {
 
6010
      unsigned long int i = ulongval ();
 
6011
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6012
        return 1;
 
6013
      fprintf (f, "%lu\n", i);
 
6014
    }
 
6015
  return ferror (f) || fclose (f) != 0;
 
6016
 
 
6017
  ;
 
6018
  return 0;
 
6019
}
 
6020
_ACEOF
 
6021
rm -f conftest$ac_exeext
 
6022
if { (ac_try="$ac_link"
 
6023
case "(($ac_try" in
 
6024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6025
  *) ac_try_echo=$ac_try;;
 
6026
esac
 
6027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6028
  (eval "$ac_link") 2>&5
 
6029
  ac_status=$?
 
6030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6031
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6032
  { (case "(($ac_try" in
 
6033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6034
  *) ac_try_echo=$ac_try;;
 
6035
esac
 
6036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6037
  (eval "$ac_try") 2>&5
 
6038
  ac_status=$?
 
6039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6040
  (exit $ac_status); }; }; then
 
6041
  ac_cv_sizeof_long=`cat conftest.val`
 
6042
else
 
6043
  echo "$as_me: program exited with status $ac_status" >&5
 
6044
echo "$as_me: failed program was:" >&5
 
6045
sed 's/^/| /' conftest.$ac_ext >&5
 
6046
 
 
6047
( exit $ac_status )
 
6048
if test "$ac_cv_type_long" = yes; then
 
6049
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
6050
See \`config.log' for more details." >&5
 
6051
echo "$as_me: error: cannot compute sizeof (long)
 
6052
See \`config.log' for more details." >&2;}
 
6053
   { (exit 77); exit 77; }; }
 
6054
   else
 
6055
     ac_cv_sizeof_long=0
 
6056
   fi
 
6057
fi
 
6058
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6059
fi
 
6060
rm -f conftest.val
 
6061
fi
 
6062
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
6063
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
6064
 
 
6065
 
 
6066
 
 
6067
cat >>confdefs.h <<_ACEOF
 
6068
#define SIZEOF_LONG $ac_cv_sizeof_long
 
6069
_ACEOF
 
6070
 
 
6071
 
 
6072
{ echo "$as_me:$LINENO: checking for long long" >&5
 
6073
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
 
6074
if test "${ac_cv_type_long_long+set}" = set; then
 
6075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6076
else
 
6077
  cat >conftest.$ac_ext <<_ACEOF
 
6078
/* confdefs.h.  */
 
6079
_ACEOF
 
6080
cat confdefs.h >>conftest.$ac_ext
 
6081
cat >>conftest.$ac_ext <<_ACEOF
 
6082
/* end confdefs.h.  */
 
6083
$ac_includes_default
 
6084
typedef long long ac__type_new_;
 
6085
int
 
6086
main ()
 
6087
{
 
6088
if ((ac__type_new_ *) 0)
 
6089
  return 0;
 
6090
if (sizeof (ac__type_new_))
 
6091
  return 0;
 
6092
  ;
 
6093
  return 0;
 
6094
}
 
6095
_ACEOF
 
6096
rm -f conftest.$ac_objext
 
6097
if { (ac_try="$ac_compile"
 
6098
case "(($ac_try" in
 
6099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6100
  *) ac_try_echo=$ac_try;;
 
6101
esac
 
6102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6103
  (eval "$ac_compile") 2>conftest.er1
 
6104
  ac_status=$?
 
6105
  grep -v '^ *+' conftest.er1 >conftest.err
 
6106
  rm -f conftest.er1
 
6107
  cat conftest.err >&5
 
6108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6109
  (exit $ac_status); } && {
 
6110
         test -z "$ac_c_werror_flag" ||
 
6111
         test ! -s conftest.err
 
6112
       } && test -s conftest.$ac_objext; then
 
6113
  ac_cv_type_long_long=yes
 
6114
else
 
6115
  echo "$as_me: failed program was:" >&5
 
6116
sed 's/^/| /' conftest.$ac_ext >&5
 
6117
 
 
6118
        ac_cv_type_long_long=no
 
6119
fi
 
6120
 
 
6121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6122
fi
 
6123
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
6124
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
 
6125
 
 
6126
# The cast to long int works around a bug in the HP C Compiler
 
6127
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6128
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6129
# This bug is HP SR number 8606223364.
 
6130
{ echo "$as_me:$LINENO: checking size of long long" >&5
 
6131
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
 
6132
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
6133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6134
else
 
6135
  if test "$cross_compiling" = yes; then
 
6136
  # Depending upon the size, compute the lo and hi bounds.
 
6137
cat >conftest.$ac_ext <<_ACEOF
 
6138
/* confdefs.h.  */
 
6139
_ACEOF
 
6140
cat confdefs.h >>conftest.$ac_ext
 
6141
cat >>conftest.$ac_ext <<_ACEOF
 
6142
/* end confdefs.h.  */
 
6143
$ac_includes_default
 
6144
   typedef long long ac__type_sizeof_;
 
6145
int
 
6146
main ()
 
6147
{
 
6148
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
6149
test_array [0] = 0
 
6150
 
 
6151
  ;
 
6152
  return 0;
 
6153
}
 
6154
_ACEOF
 
6155
rm -f conftest.$ac_objext
 
6156
if { (ac_try="$ac_compile"
 
6157
case "(($ac_try" in
 
6158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6159
  *) ac_try_echo=$ac_try;;
 
6160
esac
 
6161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6162
  (eval "$ac_compile") 2>conftest.er1
 
6163
  ac_status=$?
 
6164
  grep -v '^ *+' conftest.er1 >conftest.err
 
6165
  rm -f conftest.er1
 
6166
  cat conftest.err >&5
 
6167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6168
  (exit $ac_status); } && {
 
6169
         test -z "$ac_c_werror_flag" ||
 
6170
         test ! -s conftest.err
 
6171
       } && test -s conftest.$ac_objext; then
 
6172
  ac_lo=0 ac_mid=0
 
6173
  while :; do
 
6174
    cat >conftest.$ac_ext <<_ACEOF
 
6175
/* confdefs.h.  */
 
6176
_ACEOF
 
6177
cat confdefs.h >>conftest.$ac_ext
 
6178
cat >>conftest.$ac_ext <<_ACEOF
 
6179
/* end confdefs.h.  */
 
6180
$ac_includes_default
 
6181
   typedef long long ac__type_sizeof_;
 
6182
int
 
6183
main ()
 
6184
{
 
6185
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
6186
test_array [0] = 0
 
6187
 
 
6188
  ;
 
6189
  return 0;
 
6190
}
 
6191
_ACEOF
 
6192
rm -f conftest.$ac_objext
 
6193
if { (ac_try="$ac_compile"
 
6194
case "(($ac_try" in
 
6195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6196
  *) ac_try_echo=$ac_try;;
 
6197
esac
 
6198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6199
  (eval "$ac_compile") 2>conftest.er1
 
6200
  ac_status=$?
 
6201
  grep -v '^ *+' conftest.er1 >conftest.err
 
6202
  rm -f conftest.er1
 
6203
  cat conftest.err >&5
 
6204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6205
  (exit $ac_status); } && {
 
6206
         test -z "$ac_c_werror_flag" ||
 
6207
         test ! -s conftest.err
 
6208
       } && test -s conftest.$ac_objext; then
 
6209
  ac_hi=$ac_mid; break
 
6210
else
 
6211
  echo "$as_me: failed program was:" >&5
 
6212
sed 's/^/| /' conftest.$ac_ext >&5
 
6213
 
 
6214
        ac_lo=`expr $ac_mid + 1`
 
6215
                        if test $ac_lo -le $ac_mid; then
 
6216
                          ac_lo= ac_hi=
 
6217
                          break
 
6218
                        fi
 
6219
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
6220
fi
 
6221
 
 
6222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6223
  done
 
6224
else
 
6225
  echo "$as_me: failed program was:" >&5
 
6226
sed 's/^/| /' conftest.$ac_ext >&5
 
6227
 
 
6228
        cat >conftest.$ac_ext <<_ACEOF
 
6229
/* confdefs.h.  */
 
6230
_ACEOF
 
6231
cat confdefs.h >>conftest.$ac_ext
 
6232
cat >>conftest.$ac_ext <<_ACEOF
 
6233
/* end confdefs.h.  */
 
6234
$ac_includes_default
 
6235
   typedef long long ac__type_sizeof_;
 
6236
int
 
6237
main ()
 
6238
{
 
6239
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
6240
test_array [0] = 0
 
6241
 
 
6242
  ;
 
6243
  return 0;
 
6244
}
 
6245
_ACEOF
 
6246
rm -f conftest.$ac_objext
 
6247
if { (ac_try="$ac_compile"
 
6248
case "(($ac_try" in
 
6249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6250
  *) ac_try_echo=$ac_try;;
 
6251
esac
 
6252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6253
  (eval "$ac_compile") 2>conftest.er1
 
6254
  ac_status=$?
 
6255
  grep -v '^ *+' conftest.er1 >conftest.err
 
6256
  rm -f conftest.er1
 
6257
  cat conftest.err >&5
 
6258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6259
  (exit $ac_status); } && {
 
6260
         test -z "$ac_c_werror_flag" ||
 
6261
         test ! -s conftest.err
 
6262
       } && test -s conftest.$ac_objext; then
 
6263
  ac_hi=-1 ac_mid=-1
 
6264
  while :; do
 
6265
    cat >conftest.$ac_ext <<_ACEOF
 
6266
/* confdefs.h.  */
 
6267
_ACEOF
 
6268
cat confdefs.h >>conftest.$ac_ext
 
6269
cat >>conftest.$ac_ext <<_ACEOF
 
6270
/* end confdefs.h.  */
 
6271
$ac_includes_default
 
6272
   typedef long long ac__type_sizeof_;
 
6273
int
 
6274
main ()
 
6275
{
 
6276
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
6277
test_array [0] = 0
 
6278
 
 
6279
  ;
 
6280
  return 0;
 
6281
}
 
6282
_ACEOF
 
6283
rm -f conftest.$ac_objext
 
6284
if { (ac_try="$ac_compile"
 
6285
case "(($ac_try" in
 
6286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6287
  *) ac_try_echo=$ac_try;;
 
6288
esac
 
6289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6290
  (eval "$ac_compile") 2>conftest.er1
 
6291
  ac_status=$?
 
6292
  grep -v '^ *+' conftest.er1 >conftest.err
 
6293
  rm -f conftest.er1
 
6294
  cat conftest.err >&5
 
6295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6296
  (exit $ac_status); } && {
 
6297
         test -z "$ac_c_werror_flag" ||
 
6298
         test ! -s conftest.err
 
6299
       } && test -s conftest.$ac_objext; then
 
6300
  ac_lo=$ac_mid; break
 
6301
else
 
6302
  echo "$as_me: failed program was:" >&5
 
6303
sed 's/^/| /' conftest.$ac_ext >&5
 
6304
 
 
6305
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
6306
                        if test $ac_mid -le $ac_hi; then
 
6307
                          ac_lo= ac_hi=
 
6308
                          break
 
6309
                        fi
 
6310
                        ac_mid=`expr 2 '*' $ac_mid`
 
6311
fi
 
6312
 
 
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6314
  done
 
6315
else
 
6316
  echo "$as_me: failed program was:" >&5
 
6317
sed 's/^/| /' conftest.$ac_ext >&5
 
6318
 
 
6319
        ac_lo= ac_hi=
 
6320
fi
 
6321
 
 
6322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6323
fi
 
6324
 
 
6325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6326
# Binary search between lo and hi bounds.
 
6327
while test "x$ac_lo" != "x$ac_hi"; do
 
6328
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
6329
  cat >conftest.$ac_ext <<_ACEOF
 
6330
/* confdefs.h.  */
 
6331
_ACEOF
 
6332
cat confdefs.h >>conftest.$ac_ext
 
6333
cat >>conftest.$ac_ext <<_ACEOF
 
6334
/* end confdefs.h.  */
 
6335
$ac_includes_default
 
6336
   typedef long long ac__type_sizeof_;
 
6337
int
 
6338
main ()
 
6339
{
 
6340
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
6341
test_array [0] = 0
 
6342
 
 
6343
  ;
 
6344
  return 0;
 
6345
}
 
6346
_ACEOF
 
6347
rm -f conftest.$ac_objext
 
6348
if { (ac_try="$ac_compile"
 
6349
case "(($ac_try" in
 
6350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6351
  *) ac_try_echo=$ac_try;;
 
6352
esac
 
6353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6354
  (eval "$ac_compile") 2>conftest.er1
 
6355
  ac_status=$?
 
6356
  grep -v '^ *+' conftest.er1 >conftest.err
 
6357
  rm -f conftest.er1
 
6358
  cat conftest.err >&5
 
6359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6360
  (exit $ac_status); } && {
 
6361
         test -z "$ac_c_werror_flag" ||
 
6362
         test ! -s conftest.err
 
6363
       } && test -s conftest.$ac_objext; then
 
6364
  ac_hi=$ac_mid
 
6365
else
 
6366
  echo "$as_me: failed program was:" >&5
 
6367
sed 's/^/| /' conftest.$ac_ext >&5
 
6368
 
 
6369
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
6370
fi
 
6371
 
 
6372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6373
done
 
6374
case $ac_lo in
 
6375
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
6376
'') if test "$ac_cv_type_long_long" = yes; then
 
6377
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
6378
See \`config.log' for more details." >&5
 
6379
echo "$as_me: error: cannot compute sizeof (long long)
 
6380
See \`config.log' for more details." >&2;}
 
6381
   { (exit 77); exit 77; }; }
 
6382
   else
 
6383
     ac_cv_sizeof_long_long=0
 
6384
   fi ;;
 
6385
esac
 
6386
else
 
6387
  cat >conftest.$ac_ext <<_ACEOF
 
6388
/* confdefs.h.  */
 
6389
_ACEOF
 
6390
cat confdefs.h >>conftest.$ac_ext
 
6391
cat >>conftest.$ac_ext <<_ACEOF
 
6392
/* end confdefs.h.  */
 
6393
$ac_includes_default
 
6394
   typedef long long ac__type_sizeof_;
 
6395
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6396
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6397
#include <stdio.h>
 
6398
#include <stdlib.h>
 
6399
int
 
6400
main ()
 
6401
{
 
6402
 
 
6403
  FILE *f = fopen ("conftest.val", "w");
 
6404
  if (! f)
 
6405
    return 1;
 
6406
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
6407
    {
 
6408
      long int i = longval ();
 
6409
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6410
        return 1;
 
6411
      fprintf (f, "%ld\n", i);
 
6412
    }
 
6413
  else
 
6414
    {
 
6415
      unsigned long int i = ulongval ();
 
6416
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6417
        return 1;
 
6418
      fprintf (f, "%lu\n", i);
 
6419
    }
 
6420
  return ferror (f) || fclose (f) != 0;
 
6421
 
 
6422
  ;
 
6423
  return 0;
 
6424
}
 
6425
_ACEOF
 
6426
rm -f conftest$ac_exeext
 
6427
if { (ac_try="$ac_link"
 
6428
case "(($ac_try" in
 
6429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6430
  *) ac_try_echo=$ac_try;;
 
6431
esac
 
6432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6433
  (eval "$ac_link") 2>&5
 
6434
  ac_status=$?
 
6435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6436
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6437
  { (case "(($ac_try" in
 
6438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6439
  *) ac_try_echo=$ac_try;;
 
6440
esac
 
6441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6442
  (eval "$ac_try") 2>&5
 
6443
  ac_status=$?
 
6444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6445
  (exit $ac_status); }; }; then
 
6446
  ac_cv_sizeof_long_long=`cat conftest.val`
 
6447
else
 
6448
  echo "$as_me: program exited with status $ac_status" >&5
 
6449
echo "$as_me: failed program was:" >&5
 
6450
sed 's/^/| /' conftest.$ac_ext >&5
 
6451
 
 
6452
( exit $ac_status )
 
6453
if test "$ac_cv_type_long_long" = yes; then
 
6454
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
6455
See \`config.log' for more details." >&5
 
6456
echo "$as_me: error: cannot compute sizeof (long long)
 
6457
See \`config.log' for more details." >&2;}
 
6458
   { (exit 77); exit 77; }; }
 
6459
   else
 
6460
     ac_cv_sizeof_long_long=0
 
6461
   fi
 
6462
fi
 
6463
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6464
fi
 
6465
rm -f conftest.val
 
6466
fi
 
6467
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
6468
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
 
6469
 
 
6470
 
 
6471
 
 
6472
cat >>confdefs.h <<_ACEOF
 
6473
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
6474
_ACEOF
 
6475
 
 
6476
 
 
6477
{ echo "$as_me:$LINENO: checking for float" >&5
 
6478
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
 
6479
if test "${ac_cv_type_float+set}" = set; then
 
6480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6481
else
 
6482
  cat >conftest.$ac_ext <<_ACEOF
 
6483
/* confdefs.h.  */
 
6484
_ACEOF
 
6485
cat confdefs.h >>conftest.$ac_ext
 
6486
cat >>conftest.$ac_ext <<_ACEOF
 
6487
/* end confdefs.h.  */
 
6488
$ac_includes_default
 
6489
typedef float ac__type_new_;
 
6490
int
 
6491
main ()
 
6492
{
 
6493
if ((ac__type_new_ *) 0)
 
6494
  return 0;
 
6495
if (sizeof (ac__type_new_))
 
6496
  return 0;
 
6497
  ;
 
6498
  return 0;
 
6499
}
 
6500
_ACEOF
 
6501
rm -f conftest.$ac_objext
 
6502
if { (ac_try="$ac_compile"
 
6503
case "(($ac_try" in
 
6504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6505
  *) ac_try_echo=$ac_try;;
 
6506
esac
 
6507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6508
  (eval "$ac_compile") 2>conftest.er1
 
6509
  ac_status=$?
 
6510
  grep -v '^ *+' conftest.er1 >conftest.err
 
6511
  rm -f conftest.er1
 
6512
  cat conftest.err >&5
 
6513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6514
  (exit $ac_status); } && {
 
6515
         test -z "$ac_c_werror_flag" ||
 
6516
         test ! -s conftest.err
 
6517
       } && test -s conftest.$ac_objext; then
 
6518
  ac_cv_type_float=yes
 
6519
else
 
6520
  echo "$as_me: failed program was:" >&5
 
6521
sed 's/^/| /' conftest.$ac_ext >&5
 
6522
 
 
6523
        ac_cv_type_float=no
 
6524
fi
 
6525
 
 
6526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6527
fi
 
6528
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
 
6529
echo "${ECHO_T}$ac_cv_type_float" >&6; }
 
6530
 
 
6531
# The cast to long int works around a bug in the HP C Compiler
 
6532
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6533
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6534
# This bug is HP SR number 8606223364.
 
6535
{ echo "$as_me:$LINENO: checking size of float" >&5
 
6536
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
 
6537
if test "${ac_cv_sizeof_float+set}" = set; then
 
6538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6539
else
 
6540
  if test "$cross_compiling" = yes; then
 
6541
  # Depending upon the size, compute the lo and hi bounds.
 
6542
cat >conftest.$ac_ext <<_ACEOF
 
6543
/* confdefs.h.  */
 
6544
_ACEOF
 
6545
cat confdefs.h >>conftest.$ac_ext
 
6546
cat >>conftest.$ac_ext <<_ACEOF
 
6547
/* end confdefs.h.  */
 
6548
$ac_includes_default
 
6549
   typedef float ac__type_sizeof_;
 
6550
int
 
6551
main ()
 
6552
{
 
6553
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
6554
test_array [0] = 0
 
6555
 
 
6556
  ;
 
6557
  return 0;
 
6558
}
 
6559
_ACEOF
 
6560
rm -f conftest.$ac_objext
 
6561
if { (ac_try="$ac_compile"
 
6562
case "(($ac_try" in
 
6563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6564
  *) ac_try_echo=$ac_try;;
 
6565
esac
 
6566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6567
  (eval "$ac_compile") 2>conftest.er1
 
6568
  ac_status=$?
 
6569
  grep -v '^ *+' conftest.er1 >conftest.err
 
6570
  rm -f conftest.er1
 
6571
  cat conftest.err >&5
 
6572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6573
  (exit $ac_status); } && {
 
6574
         test -z "$ac_c_werror_flag" ||
 
6575
         test ! -s conftest.err
 
6576
       } && test -s conftest.$ac_objext; then
 
6577
  ac_lo=0 ac_mid=0
 
6578
  while :; do
 
6579
    cat >conftest.$ac_ext <<_ACEOF
 
6580
/* confdefs.h.  */
 
6581
_ACEOF
 
6582
cat confdefs.h >>conftest.$ac_ext
 
6583
cat >>conftest.$ac_ext <<_ACEOF
 
6584
/* end confdefs.h.  */
 
6585
$ac_includes_default
 
6586
   typedef float ac__type_sizeof_;
 
6587
int
 
6588
main ()
 
6589
{
 
6590
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
6591
test_array [0] = 0
 
6592
 
 
6593
  ;
 
6594
  return 0;
 
6595
}
 
6596
_ACEOF
 
6597
rm -f conftest.$ac_objext
 
6598
if { (ac_try="$ac_compile"
 
6599
case "(($ac_try" in
 
6600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6601
  *) ac_try_echo=$ac_try;;
 
6602
esac
 
6603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6604
  (eval "$ac_compile") 2>conftest.er1
 
6605
  ac_status=$?
 
6606
  grep -v '^ *+' conftest.er1 >conftest.err
 
6607
  rm -f conftest.er1
 
6608
  cat conftest.err >&5
 
6609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6610
  (exit $ac_status); } && {
 
6611
         test -z "$ac_c_werror_flag" ||
 
6612
         test ! -s conftest.err
 
6613
       } && test -s conftest.$ac_objext; then
 
6614
  ac_hi=$ac_mid; break
 
6615
else
 
6616
  echo "$as_me: failed program was:" >&5
 
6617
sed 's/^/| /' conftest.$ac_ext >&5
 
6618
 
 
6619
        ac_lo=`expr $ac_mid + 1`
 
6620
                        if test $ac_lo -le $ac_mid; then
 
6621
                          ac_lo= ac_hi=
 
6622
                          break
 
6623
                        fi
 
6624
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
6625
fi
 
6626
 
 
6627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6628
  done
 
6629
else
 
6630
  echo "$as_me: failed program was:" >&5
 
6631
sed 's/^/| /' conftest.$ac_ext >&5
 
6632
 
 
6633
        cat >conftest.$ac_ext <<_ACEOF
 
6634
/* confdefs.h.  */
 
6635
_ACEOF
 
6636
cat confdefs.h >>conftest.$ac_ext
 
6637
cat >>conftest.$ac_ext <<_ACEOF
 
6638
/* end confdefs.h.  */
 
6639
$ac_includes_default
 
6640
   typedef float ac__type_sizeof_;
 
6641
int
 
6642
main ()
 
6643
{
 
6644
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
6645
test_array [0] = 0
 
6646
 
 
6647
  ;
 
6648
  return 0;
 
6649
}
 
6650
_ACEOF
 
6651
rm -f conftest.$ac_objext
 
6652
if { (ac_try="$ac_compile"
 
6653
case "(($ac_try" in
 
6654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6655
  *) ac_try_echo=$ac_try;;
 
6656
esac
 
6657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6658
  (eval "$ac_compile") 2>conftest.er1
 
6659
  ac_status=$?
 
6660
  grep -v '^ *+' conftest.er1 >conftest.err
 
6661
  rm -f conftest.er1
 
6662
  cat conftest.err >&5
 
6663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6664
  (exit $ac_status); } && {
 
6665
         test -z "$ac_c_werror_flag" ||
 
6666
         test ! -s conftest.err
 
6667
       } && test -s conftest.$ac_objext; then
 
6668
  ac_hi=-1 ac_mid=-1
 
6669
  while :; do
 
6670
    cat >conftest.$ac_ext <<_ACEOF
 
6671
/* confdefs.h.  */
 
6672
_ACEOF
 
6673
cat confdefs.h >>conftest.$ac_ext
 
6674
cat >>conftest.$ac_ext <<_ACEOF
 
6675
/* end confdefs.h.  */
 
6676
$ac_includes_default
 
6677
   typedef float ac__type_sizeof_;
 
6678
int
 
6679
main ()
 
6680
{
 
6681
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
6682
test_array [0] = 0
 
6683
 
 
6684
  ;
 
6685
  return 0;
 
6686
}
 
6687
_ACEOF
 
6688
rm -f conftest.$ac_objext
 
6689
if { (ac_try="$ac_compile"
 
6690
case "(($ac_try" in
 
6691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6692
  *) ac_try_echo=$ac_try;;
 
6693
esac
 
6694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6695
  (eval "$ac_compile") 2>conftest.er1
 
6696
  ac_status=$?
 
6697
  grep -v '^ *+' conftest.er1 >conftest.err
 
6698
  rm -f conftest.er1
 
6699
  cat conftest.err >&5
 
6700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6701
  (exit $ac_status); } && {
 
6702
         test -z "$ac_c_werror_flag" ||
 
6703
         test ! -s conftest.err
 
6704
       } && test -s conftest.$ac_objext; then
 
6705
  ac_lo=$ac_mid; break
 
6706
else
 
6707
  echo "$as_me: failed program was:" >&5
 
6708
sed 's/^/| /' conftest.$ac_ext >&5
 
6709
 
 
6710
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
6711
                        if test $ac_mid -le $ac_hi; then
 
6712
                          ac_lo= ac_hi=
 
6713
                          break
 
6714
                        fi
 
6715
                        ac_mid=`expr 2 '*' $ac_mid`
 
6716
fi
 
6717
 
 
6718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6719
  done
 
6720
else
 
6721
  echo "$as_me: failed program was:" >&5
 
6722
sed 's/^/| /' conftest.$ac_ext >&5
 
6723
 
 
6724
        ac_lo= ac_hi=
 
6725
fi
 
6726
 
 
6727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6728
fi
 
6729
 
 
6730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6731
# Binary search between lo and hi bounds.
 
6732
while test "x$ac_lo" != "x$ac_hi"; do
 
6733
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
6734
  cat >conftest.$ac_ext <<_ACEOF
 
6735
/* confdefs.h.  */
 
6736
_ACEOF
 
6737
cat confdefs.h >>conftest.$ac_ext
 
6738
cat >>conftest.$ac_ext <<_ACEOF
 
6739
/* end confdefs.h.  */
 
6740
$ac_includes_default
 
6741
   typedef float ac__type_sizeof_;
 
6742
int
 
6743
main ()
 
6744
{
 
6745
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
6746
test_array [0] = 0
 
6747
 
 
6748
  ;
 
6749
  return 0;
 
6750
}
 
6751
_ACEOF
 
6752
rm -f conftest.$ac_objext
 
6753
if { (ac_try="$ac_compile"
 
6754
case "(($ac_try" in
 
6755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6756
  *) ac_try_echo=$ac_try;;
 
6757
esac
 
6758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6759
  (eval "$ac_compile") 2>conftest.er1
 
6760
  ac_status=$?
 
6761
  grep -v '^ *+' conftest.er1 >conftest.err
 
6762
  rm -f conftest.er1
 
6763
  cat conftest.err >&5
 
6764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6765
  (exit $ac_status); } && {
 
6766
         test -z "$ac_c_werror_flag" ||
 
6767
         test ! -s conftest.err
 
6768
       } && test -s conftest.$ac_objext; then
 
6769
  ac_hi=$ac_mid
 
6770
else
 
6771
  echo "$as_me: failed program was:" >&5
 
6772
sed 's/^/| /' conftest.$ac_ext >&5
 
6773
 
 
6774
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
6775
fi
 
6776
 
 
6777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6778
done
 
6779
case $ac_lo in
 
6780
?*) ac_cv_sizeof_float=$ac_lo;;
 
6781
'') if test "$ac_cv_type_float" = yes; then
 
6782
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
6783
See \`config.log' for more details." >&5
 
6784
echo "$as_me: error: cannot compute sizeof (float)
 
6785
See \`config.log' for more details." >&2;}
 
6786
   { (exit 77); exit 77; }; }
 
6787
   else
 
6788
     ac_cv_sizeof_float=0
 
6789
   fi ;;
 
6790
esac
 
6791
else
 
6792
  cat >conftest.$ac_ext <<_ACEOF
 
6793
/* confdefs.h.  */
 
6794
_ACEOF
 
6795
cat confdefs.h >>conftest.$ac_ext
 
6796
cat >>conftest.$ac_ext <<_ACEOF
 
6797
/* end confdefs.h.  */
 
6798
$ac_includes_default
 
6799
   typedef float ac__type_sizeof_;
 
6800
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6801
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6802
#include <stdio.h>
 
6803
#include <stdlib.h>
 
6804
int
 
6805
main ()
 
6806
{
 
6807
 
 
6808
  FILE *f = fopen ("conftest.val", "w");
 
6809
  if (! f)
 
6810
    return 1;
 
6811
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
6812
    {
 
6813
      long int i = longval ();
 
6814
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6815
        return 1;
 
6816
      fprintf (f, "%ld\n", i);
 
6817
    }
 
6818
  else
 
6819
    {
 
6820
      unsigned long int i = ulongval ();
 
6821
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6822
        return 1;
 
6823
      fprintf (f, "%lu\n", i);
 
6824
    }
 
6825
  return ferror (f) || fclose (f) != 0;
 
6826
 
 
6827
  ;
 
6828
  return 0;
 
6829
}
 
6830
_ACEOF
 
6831
rm -f conftest$ac_exeext
 
6832
if { (ac_try="$ac_link"
 
6833
case "(($ac_try" in
 
6834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6835
  *) ac_try_echo=$ac_try;;
 
6836
esac
 
6837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6838
  (eval "$ac_link") 2>&5
 
6839
  ac_status=$?
 
6840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6841
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6842
  { (case "(($ac_try" in
 
6843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6844
  *) ac_try_echo=$ac_try;;
 
6845
esac
 
6846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6847
  (eval "$ac_try") 2>&5
 
6848
  ac_status=$?
 
6849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6850
  (exit $ac_status); }; }; then
 
6851
  ac_cv_sizeof_float=`cat conftest.val`
 
6852
else
 
6853
  echo "$as_me: program exited with status $ac_status" >&5
 
6854
echo "$as_me: failed program was:" >&5
 
6855
sed 's/^/| /' conftest.$ac_ext >&5
 
6856
 
 
6857
( exit $ac_status )
 
6858
if test "$ac_cv_type_float" = yes; then
 
6859
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
 
6860
See \`config.log' for more details." >&5
 
6861
echo "$as_me: error: cannot compute sizeof (float)
 
6862
See \`config.log' for more details." >&2;}
 
6863
   { (exit 77); exit 77; }; }
 
6864
   else
 
6865
     ac_cv_sizeof_float=0
 
6866
   fi
 
6867
fi
 
6868
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6869
fi
 
6870
rm -f conftest.val
 
6871
fi
 
6872
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
 
6873
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
 
6874
 
 
6875
 
 
6876
 
 
6877
cat >>confdefs.h <<_ACEOF
 
6878
#define SIZEOF_FLOAT $ac_cv_sizeof_float
 
6879
_ACEOF
 
6880
 
 
6881
 
 
6882
{ echo "$as_me:$LINENO: checking for double" >&5
 
6883
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
 
6884
if test "${ac_cv_type_double+set}" = set; then
 
6885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6886
else
 
6887
  cat >conftest.$ac_ext <<_ACEOF
 
6888
/* confdefs.h.  */
 
6889
_ACEOF
 
6890
cat confdefs.h >>conftest.$ac_ext
 
6891
cat >>conftest.$ac_ext <<_ACEOF
 
6892
/* end confdefs.h.  */
 
6893
$ac_includes_default
 
6894
typedef double ac__type_new_;
 
6895
int
 
6896
main ()
 
6897
{
 
6898
if ((ac__type_new_ *) 0)
 
6899
  return 0;
 
6900
if (sizeof (ac__type_new_))
 
6901
  return 0;
 
6902
  ;
 
6903
  return 0;
 
6904
}
 
6905
_ACEOF
 
6906
rm -f conftest.$ac_objext
 
6907
if { (ac_try="$ac_compile"
 
6908
case "(($ac_try" in
 
6909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6910
  *) ac_try_echo=$ac_try;;
 
6911
esac
 
6912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6913
  (eval "$ac_compile") 2>conftest.er1
 
6914
  ac_status=$?
 
6915
  grep -v '^ *+' conftest.er1 >conftest.err
 
6916
  rm -f conftest.er1
 
6917
  cat conftest.err >&5
 
6918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6919
  (exit $ac_status); } && {
 
6920
         test -z "$ac_c_werror_flag" ||
 
6921
         test ! -s conftest.err
 
6922
       } && test -s conftest.$ac_objext; then
 
6923
  ac_cv_type_double=yes
 
6924
else
 
6925
  echo "$as_me: failed program was:" >&5
 
6926
sed 's/^/| /' conftest.$ac_ext >&5
 
6927
 
 
6928
        ac_cv_type_double=no
 
6929
fi
 
6930
 
 
6931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6932
fi
 
6933
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
6934
echo "${ECHO_T}$ac_cv_type_double" >&6; }
 
6935
 
 
6936
# The cast to long int works around a bug in the HP C Compiler
 
6937
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6938
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6939
# This bug is HP SR number 8606223364.
 
6940
{ echo "$as_me:$LINENO: checking size of double" >&5
 
6941
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
 
6942
if test "${ac_cv_sizeof_double+set}" = set; then
 
6943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6944
else
 
6945
  if test "$cross_compiling" = yes; then
 
6946
  # Depending upon the size, compute the lo and hi bounds.
 
6947
cat >conftest.$ac_ext <<_ACEOF
 
6948
/* confdefs.h.  */
 
6949
_ACEOF
 
6950
cat confdefs.h >>conftest.$ac_ext
 
6951
cat >>conftest.$ac_ext <<_ACEOF
 
6952
/* end confdefs.h.  */
 
6953
$ac_includes_default
 
6954
   typedef double ac__type_sizeof_;
 
6955
int
 
6956
main ()
 
6957
{
 
6958
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
6959
test_array [0] = 0
 
6960
 
 
6961
  ;
 
6962
  return 0;
 
6963
}
 
6964
_ACEOF
 
6965
rm -f conftest.$ac_objext
 
6966
if { (ac_try="$ac_compile"
 
6967
case "(($ac_try" in
 
6968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6969
  *) ac_try_echo=$ac_try;;
 
6970
esac
 
6971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6972
  (eval "$ac_compile") 2>conftest.er1
 
6973
  ac_status=$?
 
6974
  grep -v '^ *+' conftest.er1 >conftest.err
 
6975
  rm -f conftest.er1
 
6976
  cat conftest.err >&5
 
6977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6978
  (exit $ac_status); } && {
 
6979
         test -z "$ac_c_werror_flag" ||
 
6980
         test ! -s conftest.err
 
6981
       } && test -s conftest.$ac_objext; then
 
6982
  ac_lo=0 ac_mid=0
 
6983
  while :; do
 
6984
    cat >conftest.$ac_ext <<_ACEOF
 
6985
/* confdefs.h.  */
 
6986
_ACEOF
 
6987
cat confdefs.h >>conftest.$ac_ext
 
6988
cat >>conftest.$ac_ext <<_ACEOF
 
6989
/* end confdefs.h.  */
 
6990
$ac_includes_default
 
6991
   typedef double ac__type_sizeof_;
 
6992
int
 
6993
main ()
 
6994
{
 
6995
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
6996
test_array [0] = 0
 
6997
 
 
6998
  ;
 
6999
  return 0;
 
7000
}
 
7001
_ACEOF
 
7002
rm -f conftest.$ac_objext
 
7003
if { (ac_try="$ac_compile"
 
7004
case "(($ac_try" in
 
7005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7006
  *) ac_try_echo=$ac_try;;
 
7007
esac
 
7008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7009
  (eval "$ac_compile") 2>conftest.er1
 
7010
  ac_status=$?
 
7011
  grep -v '^ *+' conftest.er1 >conftest.err
 
7012
  rm -f conftest.er1
 
7013
  cat conftest.err >&5
 
7014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7015
  (exit $ac_status); } && {
 
7016
         test -z "$ac_c_werror_flag" ||
 
7017
         test ! -s conftest.err
 
7018
       } && test -s conftest.$ac_objext; then
 
7019
  ac_hi=$ac_mid; break
 
7020
else
 
7021
  echo "$as_me: failed program was:" >&5
 
7022
sed 's/^/| /' conftest.$ac_ext >&5
 
7023
 
 
7024
        ac_lo=`expr $ac_mid + 1`
 
7025
                        if test $ac_lo -le $ac_mid; then
 
7026
                          ac_lo= ac_hi=
 
7027
                          break
 
7028
                        fi
 
7029
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7030
fi
 
7031
 
 
7032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7033
  done
 
7034
else
 
7035
  echo "$as_me: failed program was:" >&5
 
7036
sed 's/^/| /' conftest.$ac_ext >&5
 
7037
 
 
7038
        cat >conftest.$ac_ext <<_ACEOF
 
7039
/* confdefs.h.  */
 
7040
_ACEOF
 
7041
cat confdefs.h >>conftest.$ac_ext
 
7042
cat >>conftest.$ac_ext <<_ACEOF
 
7043
/* end confdefs.h.  */
 
7044
$ac_includes_default
 
7045
   typedef double ac__type_sizeof_;
 
7046
int
 
7047
main ()
 
7048
{
 
7049
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7050
test_array [0] = 0
 
7051
 
 
7052
  ;
 
7053
  return 0;
 
7054
}
 
7055
_ACEOF
 
7056
rm -f conftest.$ac_objext
 
7057
if { (ac_try="$ac_compile"
 
7058
case "(($ac_try" in
 
7059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7060
  *) ac_try_echo=$ac_try;;
 
7061
esac
 
7062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7063
  (eval "$ac_compile") 2>conftest.er1
 
7064
  ac_status=$?
 
7065
  grep -v '^ *+' conftest.er1 >conftest.err
 
7066
  rm -f conftest.er1
 
7067
  cat conftest.err >&5
 
7068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7069
  (exit $ac_status); } && {
 
7070
         test -z "$ac_c_werror_flag" ||
 
7071
         test ! -s conftest.err
 
7072
       } && test -s conftest.$ac_objext; then
 
7073
  ac_hi=-1 ac_mid=-1
 
7074
  while :; do
 
7075
    cat >conftest.$ac_ext <<_ACEOF
 
7076
/* confdefs.h.  */
 
7077
_ACEOF
 
7078
cat confdefs.h >>conftest.$ac_ext
 
7079
cat >>conftest.$ac_ext <<_ACEOF
 
7080
/* end confdefs.h.  */
 
7081
$ac_includes_default
 
7082
   typedef double ac__type_sizeof_;
 
7083
int
 
7084
main ()
 
7085
{
 
7086
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7087
test_array [0] = 0
 
7088
 
 
7089
  ;
 
7090
  return 0;
 
7091
}
 
7092
_ACEOF
 
7093
rm -f conftest.$ac_objext
 
7094
if { (ac_try="$ac_compile"
 
7095
case "(($ac_try" in
 
7096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7097
  *) ac_try_echo=$ac_try;;
 
7098
esac
 
7099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7100
  (eval "$ac_compile") 2>conftest.er1
 
7101
  ac_status=$?
 
7102
  grep -v '^ *+' conftest.er1 >conftest.err
 
7103
  rm -f conftest.er1
 
7104
  cat conftest.err >&5
 
7105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7106
  (exit $ac_status); } && {
 
7107
         test -z "$ac_c_werror_flag" ||
 
7108
         test ! -s conftest.err
 
7109
       } && test -s conftest.$ac_objext; then
 
7110
  ac_lo=$ac_mid; break
 
7111
else
 
7112
  echo "$as_me: failed program was:" >&5
 
7113
sed 's/^/| /' conftest.$ac_ext >&5
 
7114
 
 
7115
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7116
                        if test $ac_mid -le $ac_hi; then
 
7117
                          ac_lo= ac_hi=
 
7118
                          break
 
7119
                        fi
 
7120
                        ac_mid=`expr 2 '*' $ac_mid`
 
7121
fi
 
7122
 
 
7123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7124
  done
 
7125
else
 
7126
  echo "$as_me: failed program was:" >&5
 
7127
sed 's/^/| /' conftest.$ac_ext >&5
 
7128
 
 
7129
        ac_lo= ac_hi=
 
7130
fi
 
7131
 
 
7132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7133
fi
 
7134
 
 
7135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7136
# Binary search between lo and hi bounds.
 
7137
while test "x$ac_lo" != "x$ac_hi"; do
 
7138
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7139
  cat >conftest.$ac_ext <<_ACEOF
 
7140
/* confdefs.h.  */
 
7141
_ACEOF
 
7142
cat confdefs.h >>conftest.$ac_ext
 
7143
cat >>conftest.$ac_ext <<_ACEOF
 
7144
/* end confdefs.h.  */
 
7145
$ac_includes_default
 
7146
   typedef double ac__type_sizeof_;
 
7147
int
 
7148
main ()
 
7149
{
 
7150
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7151
test_array [0] = 0
 
7152
 
 
7153
  ;
 
7154
  return 0;
 
7155
}
 
7156
_ACEOF
 
7157
rm -f conftest.$ac_objext
 
7158
if { (ac_try="$ac_compile"
 
7159
case "(($ac_try" in
 
7160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7161
  *) ac_try_echo=$ac_try;;
 
7162
esac
 
7163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7164
  (eval "$ac_compile") 2>conftest.er1
 
7165
  ac_status=$?
 
7166
  grep -v '^ *+' conftest.er1 >conftest.err
 
7167
  rm -f conftest.er1
 
7168
  cat conftest.err >&5
 
7169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7170
  (exit $ac_status); } && {
 
7171
         test -z "$ac_c_werror_flag" ||
 
7172
         test ! -s conftest.err
 
7173
       } && test -s conftest.$ac_objext; then
 
7174
  ac_hi=$ac_mid
 
7175
else
 
7176
  echo "$as_me: failed program was:" >&5
 
7177
sed 's/^/| /' conftest.$ac_ext >&5
 
7178
 
 
7179
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7180
fi
 
7181
 
 
7182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7183
done
 
7184
case $ac_lo in
 
7185
?*) ac_cv_sizeof_double=$ac_lo;;
 
7186
'') if test "$ac_cv_type_double" = yes; then
 
7187
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
7188
See \`config.log' for more details." >&5
 
7189
echo "$as_me: error: cannot compute sizeof (double)
 
7190
See \`config.log' for more details." >&2;}
 
7191
   { (exit 77); exit 77; }; }
 
7192
   else
 
7193
     ac_cv_sizeof_double=0
 
7194
   fi ;;
 
7195
esac
 
7196
else
 
7197
  cat >conftest.$ac_ext <<_ACEOF
 
7198
/* confdefs.h.  */
 
7199
_ACEOF
 
7200
cat confdefs.h >>conftest.$ac_ext
 
7201
cat >>conftest.$ac_ext <<_ACEOF
 
7202
/* end confdefs.h.  */
 
7203
$ac_includes_default
 
7204
   typedef double ac__type_sizeof_;
 
7205
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7206
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7207
#include <stdio.h>
 
7208
#include <stdlib.h>
 
7209
int
 
7210
main ()
 
7211
{
 
7212
 
 
7213
  FILE *f = fopen ("conftest.val", "w");
 
7214
  if (! f)
 
7215
    return 1;
 
7216
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7217
    {
 
7218
      long int i = longval ();
 
7219
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7220
        return 1;
 
7221
      fprintf (f, "%ld\n", i);
 
7222
    }
 
7223
  else
 
7224
    {
 
7225
      unsigned long int i = ulongval ();
 
7226
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7227
        return 1;
 
7228
      fprintf (f, "%lu\n", i);
 
7229
    }
 
7230
  return ferror (f) || fclose (f) != 0;
 
7231
 
 
7232
  ;
 
7233
  return 0;
 
7234
}
 
7235
_ACEOF
 
7236
rm -f conftest$ac_exeext
 
7237
if { (ac_try="$ac_link"
 
7238
case "(($ac_try" in
 
7239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7240
  *) ac_try_echo=$ac_try;;
 
7241
esac
 
7242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7243
  (eval "$ac_link") 2>&5
 
7244
  ac_status=$?
 
7245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7246
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7247
  { (case "(($ac_try" in
 
7248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7249
  *) ac_try_echo=$ac_try;;
 
7250
esac
 
7251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7252
  (eval "$ac_try") 2>&5
 
7253
  ac_status=$?
 
7254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7255
  (exit $ac_status); }; }; then
 
7256
  ac_cv_sizeof_double=`cat conftest.val`
 
7257
else
 
7258
  echo "$as_me: program exited with status $ac_status" >&5
 
7259
echo "$as_me: failed program was:" >&5
 
7260
sed 's/^/| /' conftest.$ac_ext >&5
 
7261
 
 
7262
( exit $ac_status )
 
7263
if test "$ac_cv_type_double" = yes; then
 
7264
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
 
7265
See \`config.log' for more details." >&5
 
7266
echo "$as_me: error: cannot compute sizeof (double)
 
7267
See \`config.log' for more details." >&2;}
 
7268
   { (exit 77); exit 77; }; }
 
7269
   else
 
7270
     ac_cv_sizeof_double=0
 
7271
   fi
 
7272
fi
 
7273
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7274
fi
 
7275
rm -f conftest.val
 
7276
fi
 
7277
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
7278
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
 
7279
 
 
7280
 
 
7281
 
 
7282
cat >>confdefs.h <<_ACEOF
 
7283
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
7284
_ACEOF
 
7285
 
 
7286
 
 
7287
{ echo "$as_me:$LINENO: checking for long double" >&5
 
7288
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
7289
if test "${ac_cv_type_long_double+set}" = set; then
 
7290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7291
else
 
7292
  cat >conftest.$ac_ext <<_ACEOF
 
7293
/* confdefs.h.  */
 
7294
_ACEOF
 
7295
cat confdefs.h >>conftest.$ac_ext
 
7296
cat >>conftest.$ac_ext <<_ACEOF
 
7297
/* end confdefs.h.  */
 
7298
$ac_includes_default
 
7299
typedef long double ac__type_new_;
 
7300
int
 
7301
main ()
 
7302
{
 
7303
if ((ac__type_new_ *) 0)
 
7304
  return 0;
 
7305
if (sizeof (ac__type_new_))
 
7306
  return 0;
 
7307
  ;
 
7308
  return 0;
 
7309
}
 
7310
_ACEOF
 
7311
rm -f conftest.$ac_objext
 
7312
if { (ac_try="$ac_compile"
 
7313
case "(($ac_try" in
 
7314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7315
  *) ac_try_echo=$ac_try;;
 
7316
esac
 
7317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7318
  (eval "$ac_compile") 2>conftest.er1
 
7319
  ac_status=$?
 
7320
  grep -v '^ *+' conftest.er1 >conftest.err
 
7321
  rm -f conftest.er1
 
7322
  cat conftest.err >&5
 
7323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7324
  (exit $ac_status); } && {
 
7325
         test -z "$ac_c_werror_flag" ||
 
7326
         test ! -s conftest.err
 
7327
       } && test -s conftest.$ac_objext; then
 
7328
  ac_cv_type_long_double=yes
 
7329
else
 
7330
  echo "$as_me: failed program was:" >&5
 
7331
sed 's/^/| /' conftest.$ac_ext >&5
 
7332
 
 
7333
        ac_cv_type_long_double=no
 
7334
fi
 
7335
 
 
7336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7337
fi
 
7338
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
7339
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
 
7340
 
 
7341
# The cast to long int works around a bug in the HP C Compiler
 
7342
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7343
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7344
# This bug is HP SR number 8606223364.
 
7345
{ echo "$as_me:$LINENO: checking size of long double" >&5
 
7346
echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
 
7347
if test "${ac_cv_sizeof_long_double+set}" = set; then
 
7348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7349
else
 
7350
  if test "$cross_compiling" = yes; then
 
7351
  # Depending upon the size, compute the lo and hi bounds.
 
7352
cat >conftest.$ac_ext <<_ACEOF
 
7353
/* confdefs.h.  */
 
7354
_ACEOF
 
7355
cat confdefs.h >>conftest.$ac_ext
 
7356
cat >>conftest.$ac_ext <<_ACEOF
 
7357
/* end confdefs.h.  */
 
7358
$ac_includes_default
 
7359
   typedef long double ac__type_sizeof_;
 
7360
int
 
7361
main ()
 
7362
{
 
7363
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7364
test_array [0] = 0
 
7365
 
 
7366
  ;
 
7367
  return 0;
 
7368
}
 
7369
_ACEOF
 
7370
rm -f conftest.$ac_objext
 
7371
if { (ac_try="$ac_compile"
 
7372
case "(($ac_try" in
 
7373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7374
  *) ac_try_echo=$ac_try;;
 
7375
esac
 
7376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7377
  (eval "$ac_compile") 2>conftest.er1
 
7378
  ac_status=$?
 
7379
  grep -v '^ *+' conftest.er1 >conftest.err
 
7380
  rm -f conftest.er1
 
7381
  cat conftest.err >&5
 
7382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7383
  (exit $ac_status); } && {
 
7384
         test -z "$ac_c_werror_flag" ||
 
7385
         test ! -s conftest.err
 
7386
       } && test -s conftest.$ac_objext; then
 
7387
  ac_lo=0 ac_mid=0
 
7388
  while :; do
 
7389
    cat >conftest.$ac_ext <<_ACEOF
 
7390
/* confdefs.h.  */
 
7391
_ACEOF
 
7392
cat confdefs.h >>conftest.$ac_ext
 
7393
cat >>conftest.$ac_ext <<_ACEOF
 
7394
/* end confdefs.h.  */
 
7395
$ac_includes_default
 
7396
   typedef long double ac__type_sizeof_;
 
7397
int
 
7398
main ()
 
7399
{
 
7400
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7401
test_array [0] = 0
 
7402
 
 
7403
  ;
 
7404
  return 0;
 
7405
}
 
7406
_ACEOF
 
7407
rm -f conftest.$ac_objext
 
7408
if { (ac_try="$ac_compile"
 
7409
case "(($ac_try" in
 
7410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7411
  *) ac_try_echo=$ac_try;;
 
7412
esac
 
7413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7414
  (eval "$ac_compile") 2>conftest.er1
 
7415
  ac_status=$?
 
7416
  grep -v '^ *+' conftest.er1 >conftest.err
 
7417
  rm -f conftest.er1
 
7418
  cat conftest.err >&5
 
7419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7420
  (exit $ac_status); } && {
 
7421
         test -z "$ac_c_werror_flag" ||
 
7422
         test ! -s conftest.err
 
7423
       } && test -s conftest.$ac_objext; then
 
7424
  ac_hi=$ac_mid; break
 
7425
else
 
7426
  echo "$as_me: failed program was:" >&5
 
7427
sed 's/^/| /' conftest.$ac_ext >&5
 
7428
 
 
7429
        ac_lo=`expr $ac_mid + 1`
 
7430
                        if test $ac_lo -le $ac_mid; then
 
7431
                          ac_lo= ac_hi=
 
7432
                          break
 
7433
                        fi
 
7434
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7435
fi
 
7436
 
 
7437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7438
  done
 
7439
else
 
7440
  echo "$as_me: failed program was:" >&5
 
7441
sed 's/^/| /' conftest.$ac_ext >&5
 
7442
 
 
7443
        cat >conftest.$ac_ext <<_ACEOF
 
7444
/* confdefs.h.  */
 
7445
_ACEOF
 
7446
cat confdefs.h >>conftest.$ac_ext
 
7447
cat >>conftest.$ac_ext <<_ACEOF
 
7448
/* end confdefs.h.  */
 
7449
$ac_includes_default
 
7450
   typedef long double ac__type_sizeof_;
 
7451
int
 
7452
main ()
 
7453
{
 
7454
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7455
test_array [0] = 0
 
7456
 
 
7457
  ;
 
7458
  return 0;
 
7459
}
 
7460
_ACEOF
 
7461
rm -f conftest.$ac_objext
 
7462
if { (ac_try="$ac_compile"
 
7463
case "(($ac_try" in
 
7464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7465
  *) ac_try_echo=$ac_try;;
 
7466
esac
 
7467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7468
  (eval "$ac_compile") 2>conftest.er1
 
7469
  ac_status=$?
 
7470
  grep -v '^ *+' conftest.er1 >conftest.err
 
7471
  rm -f conftest.er1
 
7472
  cat conftest.err >&5
 
7473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7474
  (exit $ac_status); } && {
 
7475
         test -z "$ac_c_werror_flag" ||
 
7476
         test ! -s conftest.err
 
7477
       } && test -s conftest.$ac_objext; then
 
7478
  ac_hi=-1 ac_mid=-1
 
7479
  while :; do
 
7480
    cat >conftest.$ac_ext <<_ACEOF
 
7481
/* confdefs.h.  */
 
7482
_ACEOF
 
7483
cat confdefs.h >>conftest.$ac_ext
 
7484
cat >>conftest.$ac_ext <<_ACEOF
 
7485
/* end confdefs.h.  */
 
7486
$ac_includes_default
 
7487
   typedef long double ac__type_sizeof_;
 
7488
int
 
7489
main ()
 
7490
{
 
7491
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7492
test_array [0] = 0
 
7493
 
 
7494
  ;
 
7495
  return 0;
 
7496
}
 
7497
_ACEOF
 
7498
rm -f conftest.$ac_objext
 
7499
if { (ac_try="$ac_compile"
 
7500
case "(($ac_try" in
 
7501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7502
  *) ac_try_echo=$ac_try;;
 
7503
esac
 
7504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7505
  (eval "$ac_compile") 2>conftest.er1
 
7506
  ac_status=$?
 
7507
  grep -v '^ *+' conftest.er1 >conftest.err
 
7508
  rm -f conftest.er1
 
7509
  cat conftest.err >&5
 
7510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7511
  (exit $ac_status); } && {
 
7512
         test -z "$ac_c_werror_flag" ||
 
7513
         test ! -s conftest.err
 
7514
       } && test -s conftest.$ac_objext; then
 
7515
  ac_lo=$ac_mid; break
 
7516
else
 
7517
  echo "$as_me: failed program was:" >&5
 
7518
sed 's/^/| /' conftest.$ac_ext >&5
 
7519
 
 
7520
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7521
                        if test $ac_mid -le $ac_hi; then
 
7522
                          ac_lo= ac_hi=
 
7523
                          break
 
7524
                        fi
 
7525
                        ac_mid=`expr 2 '*' $ac_mid`
 
7526
fi
 
7527
 
 
7528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7529
  done
 
7530
else
 
7531
  echo "$as_me: failed program was:" >&5
 
7532
sed 's/^/| /' conftest.$ac_ext >&5
 
7533
 
 
7534
        ac_lo= ac_hi=
 
7535
fi
 
7536
 
 
7537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7538
fi
 
7539
 
 
7540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7541
# Binary search between lo and hi bounds.
 
7542
while test "x$ac_lo" != "x$ac_hi"; do
 
7543
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7544
  cat >conftest.$ac_ext <<_ACEOF
 
7545
/* confdefs.h.  */
 
7546
_ACEOF
 
7547
cat confdefs.h >>conftest.$ac_ext
 
7548
cat >>conftest.$ac_ext <<_ACEOF
 
7549
/* end confdefs.h.  */
 
7550
$ac_includes_default
 
7551
   typedef long double ac__type_sizeof_;
 
7552
int
 
7553
main ()
 
7554
{
 
7555
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7556
test_array [0] = 0
 
7557
 
 
7558
  ;
 
7559
  return 0;
 
7560
}
 
7561
_ACEOF
 
7562
rm -f conftest.$ac_objext
 
7563
if { (ac_try="$ac_compile"
 
7564
case "(($ac_try" in
 
7565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7566
  *) ac_try_echo=$ac_try;;
 
7567
esac
 
7568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7569
  (eval "$ac_compile") 2>conftest.er1
 
7570
  ac_status=$?
 
7571
  grep -v '^ *+' conftest.er1 >conftest.err
 
7572
  rm -f conftest.er1
 
7573
  cat conftest.err >&5
 
7574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7575
  (exit $ac_status); } && {
 
7576
         test -z "$ac_c_werror_flag" ||
 
7577
         test ! -s conftest.err
 
7578
       } && test -s conftest.$ac_objext; then
 
7579
  ac_hi=$ac_mid
 
7580
else
 
7581
  echo "$as_me: failed program was:" >&5
 
7582
sed 's/^/| /' conftest.$ac_ext >&5
 
7583
 
 
7584
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7585
fi
 
7586
 
 
7587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7588
done
 
7589
case $ac_lo in
 
7590
?*) ac_cv_sizeof_long_double=$ac_lo;;
 
7591
'') if test "$ac_cv_type_long_double" = yes; then
 
7592
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
7593
See \`config.log' for more details." >&5
 
7594
echo "$as_me: error: cannot compute sizeof (long double)
 
7595
See \`config.log' for more details." >&2;}
 
7596
   { (exit 77); exit 77; }; }
 
7597
   else
 
7598
     ac_cv_sizeof_long_double=0
 
7599
   fi ;;
 
7600
esac
 
7601
else
 
7602
  cat >conftest.$ac_ext <<_ACEOF
 
7603
/* confdefs.h.  */
 
7604
_ACEOF
 
7605
cat confdefs.h >>conftest.$ac_ext
 
7606
cat >>conftest.$ac_ext <<_ACEOF
 
7607
/* end confdefs.h.  */
 
7608
$ac_includes_default
 
7609
   typedef long double ac__type_sizeof_;
 
7610
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7611
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7612
#include <stdio.h>
 
7613
#include <stdlib.h>
 
7614
int
 
7615
main ()
 
7616
{
 
7617
 
 
7618
  FILE *f = fopen ("conftest.val", "w");
 
7619
  if (! f)
 
7620
    return 1;
 
7621
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
7622
    {
 
7623
      long int i = longval ();
 
7624
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7625
        return 1;
 
7626
      fprintf (f, "%ld\n", i);
 
7627
    }
 
7628
  else
 
7629
    {
 
7630
      unsigned long int i = ulongval ();
 
7631
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7632
        return 1;
 
7633
      fprintf (f, "%lu\n", i);
 
7634
    }
 
7635
  return ferror (f) || fclose (f) != 0;
 
7636
 
 
7637
  ;
 
7638
  return 0;
 
7639
}
 
7640
_ACEOF
 
7641
rm -f conftest$ac_exeext
 
7642
if { (ac_try="$ac_link"
 
7643
case "(($ac_try" in
 
7644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7645
  *) ac_try_echo=$ac_try;;
 
7646
esac
 
7647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7648
  (eval "$ac_link") 2>&5
 
7649
  ac_status=$?
 
7650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7651
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7652
  { (case "(($ac_try" in
 
7653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7654
  *) ac_try_echo=$ac_try;;
 
7655
esac
 
7656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7657
  (eval "$ac_try") 2>&5
 
7658
  ac_status=$?
 
7659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7660
  (exit $ac_status); }; }; then
 
7661
  ac_cv_sizeof_long_double=`cat conftest.val`
 
7662
else
 
7663
  echo "$as_me: program exited with status $ac_status" >&5
 
7664
echo "$as_me: failed program was:" >&5
 
7665
sed 's/^/| /' conftest.$ac_ext >&5
 
7666
 
 
7667
( exit $ac_status )
 
7668
if test "$ac_cv_type_long_double" = yes; then
 
7669
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
 
7670
See \`config.log' for more details." >&5
 
7671
echo "$as_me: error: cannot compute sizeof (long double)
 
7672
See \`config.log' for more details." >&2;}
 
7673
   { (exit 77); exit 77; }; }
 
7674
   else
 
7675
     ac_cv_sizeof_long_double=0
 
7676
   fi
 
7677
fi
 
7678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7679
fi
 
7680
rm -f conftest.val
 
7681
fi
 
7682
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
 
7683
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
 
7684
 
 
7685
 
 
7686
 
 
7687
cat >>confdefs.h <<_ACEOF
 
7688
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
 
7689
_ACEOF
 
7690
 
 
7691
 
 
7692
{ echo "$as_me:$LINENO: checking for void *" >&5
 
7693
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
 
7694
if test "${ac_cv_type_void_p+set}" = set; then
 
7695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7696
else
 
7697
  cat >conftest.$ac_ext <<_ACEOF
 
7698
/* confdefs.h.  */
 
7699
_ACEOF
 
7700
cat confdefs.h >>conftest.$ac_ext
 
7701
cat >>conftest.$ac_ext <<_ACEOF
 
7702
/* end confdefs.h.  */
 
7703
$ac_includes_default
 
7704
typedef void * ac__type_new_;
 
7705
int
 
7706
main ()
 
7707
{
 
7708
if ((ac__type_new_ *) 0)
 
7709
  return 0;
 
7710
if (sizeof (ac__type_new_))
 
7711
  return 0;
 
7712
  ;
 
7713
  return 0;
 
7714
}
 
7715
_ACEOF
 
7716
rm -f conftest.$ac_objext
 
7717
if { (ac_try="$ac_compile"
 
7718
case "(($ac_try" in
 
7719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7720
  *) ac_try_echo=$ac_try;;
 
7721
esac
 
7722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7723
  (eval "$ac_compile") 2>conftest.er1
 
7724
  ac_status=$?
 
7725
  grep -v '^ *+' conftest.er1 >conftest.err
 
7726
  rm -f conftest.er1
 
7727
  cat conftest.err >&5
 
7728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7729
  (exit $ac_status); } && {
 
7730
         test -z "$ac_c_werror_flag" ||
 
7731
         test ! -s conftest.err
 
7732
       } && test -s conftest.$ac_objext; then
 
7733
  ac_cv_type_void_p=yes
 
7734
else
 
7735
  echo "$as_me: failed program was:" >&5
 
7736
sed 's/^/| /' conftest.$ac_ext >&5
 
7737
 
 
7738
        ac_cv_type_void_p=no
 
7739
fi
 
7740
 
 
7741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7742
fi
 
7743
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
7744
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
 
7745
 
 
7746
# The cast to long int works around a bug in the HP C Compiler
 
7747
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7748
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7749
# This bug is HP SR number 8606223364.
 
7750
{ echo "$as_me:$LINENO: checking size of void *" >&5
 
7751
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
 
7752
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
7753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7754
else
 
7755
  if test "$cross_compiling" = yes; then
 
7756
  # Depending upon the size, compute the lo and hi bounds.
 
7757
cat >conftest.$ac_ext <<_ACEOF
 
7758
/* confdefs.h.  */
 
7759
_ACEOF
 
7760
cat confdefs.h >>conftest.$ac_ext
 
7761
cat >>conftest.$ac_ext <<_ACEOF
 
7762
/* end confdefs.h.  */
 
7763
$ac_includes_default
 
7764
   typedef void * ac__type_sizeof_;
 
7765
int
 
7766
main ()
 
7767
{
 
7768
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
7769
test_array [0] = 0
 
7770
 
 
7771
  ;
 
7772
  return 0;
 
7773
}
 
7774
_ACEOF
 
7775
rm -f conftest.$ac_objext
 
7776
if { (ac_try="$ac_compile"
 
7777
case "(($ac_try" in
 
7778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7779
  *) ac_try_echo=$ac_try;;
 
7780
esac
 
7781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7782
  (eval "$ac_compile") 2>conftest.er1
 
7783
  ac_status=$?
 
7784
  grep -v '^ *+' conftest.er1 >conftest.err
 
7785
  rm -f conftest.er1
 
7786
  cat conftest.err >&5
 
7787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7788
  (exit $ac_status); } && {
 
7789
         test -z "$ac_c_werror_flag" ||
 
7790
         test ! -s conftest.err
 
7791
       } && test -s conftest.$ac_objext; then
 
7792
  ac_lo=0 ac_mid=0
 
7793
  while :; do
 
7794
    cat >conftest.$ac_ext <<_ACEOF
 
7795
/* confdefs.h.  */
 
7796
_ACEOF
 
7797
cat confdefs.h >>conftest.$ac_ext
 
7798
cat >>conftest.$ac_ext <<_ACEOF
 
7799
/* end confdefs.h.  */
 
7800
$ac_includes_default
 
7801
   typedef void * ac__type_sizeof_;
 
7802
int
 
7803
main ()
 
7804
{
 
7805
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7806
test_array [0] = 0
 
7807
 
 
7808
  ;
 
7809
  return 0;
 
7810
}
 
7811
_ACEOF
 
7812
rm -f conftest.$ac_objext
 
7813
if { (ac_try="$ac_compile"
 
7814
case "(($ac_try" in
 
7815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7816
  *) ac_try_echo=$ac_try;;
 
7817
esac
 
7818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7819
  (eval "$ac_compile") 2>conftest.er1
 
7820
  ac_status=$?
 
7821
  grep -v '^ *+' conftest.er1 >conftest.err
 
7822
  rm -f conftest.er1
 
7823
  cat conftest.err >&5
 
7824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7825
  (exit $ac_status); } && {
 
7826
         test -z "$ac_c_werror_flag" ||
 
7827
         test ! -s conftest.err
 
7828
       } && test -s conftest.$ac_objext; then
 
7829
  ac_hi=$ac_mid; break
 
7830
else
 
7831
  echo "$as_me: failed program was:" >&5
 
7832
sed 's/^/| /' conftest.$ac_ext >&5
 
7833
 
 
7834
        ac_lo=`expr $ac_mid + 1`
 
7835
                        if test $ac_lo -le $ac_mid; then
 
7836
                          ac_lo= ac_hi=
 
7837
                          break
 
7838
                        fi
 
7839
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7840
fi
 
7841
 
 
7842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7843
  done
 
7844
else
 
7845
  echo "$as_me: failed program was:" >&5
 
7846
sed 's/^/| /' conftest.$ac_ext >&5
 
7847
 
 
7848
        cat >conftest.$ac_ext <<_ACEOF
 
7849
/* confdefs.h.  */
 
7850
_ACEOF
 
7851
cat confdefs.h >>conftest.$ac_ext
 
7852
cat >>conftest.$ac_ext <<_ACEOF
 
7853
/* end confdefs.h.  */
 
7854
$ac_includes_default
 
7855
   typedef void * ac__type_sizeof_;
 
7856
int
 
7857
main ()
 
7858
{
 
7859
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
7860
test_array [0] = 0
 
7861
 
 
7862
  ;
 
7863
  return 0;
 
7864
}
 
7865
_ACEOF
 
7866
rm -f conftest.$ac_objext
 
7867
if { (ac_try="$ac_compile"
 
7868
case "(($ac_try" in
 
7869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7870
  *) ac_try_echo=$ac_try;;
 
7871
esac
 
7872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7873
  (eval "$ac_compile") 2>conftest.er1
 
7874
  ac_status=$?
 
7875
  grep -v '^ *+' conftest.er1 >conftest.err
 
7876
  rm -f conftest.er1
 
7877
  cat conftest.err >&5
 
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7879
  (exit $ac_status); } && {
 
7880
         test -z "$ac_c_werror_flag" ||
 
7881
         test ! -s conftest.err
 
7882
       } && test -s conftest.$ac_objext; then
 
7883
  ac_hi=-1 ac_mid=-1
 
7884
  while :; do
 
7885
    cat >conftest.$ac_ext <<_ACEOF
 
7886
/* confdefs.h.  */
 
7887
_ACEOF
 
7888
cat confdefs.h >>conftest.$ac_ext
 
7889
cat >>conftest.$ac_ext <<_ACEOF
 
7890
/* end confdefs.h.  */
 
7891
$ac_includes_default
 
7892
   typedef void * ac__type_sizeof_;
 
7893
int
 
7894
main ()
 
7895
{
 
7896
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
7897
test_array [0] = 0
 
7898
 
 
7899
  ;
 
7900
  return 0;
 
7901
}
 
7902
_ACEOF
 
7903
rm -f conftest.$ac_objext
 
7904
if { (ac_try="$ac_compile"
 
7905
case "(($ac_try" in
 
7906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7907
  *) ac_try_echo=$ac_try;;
 
7908
esac
 
7909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7910
  (eval "$ac_compile") 2>conftest.er1
 
7911
  ac_status=$?
 
7912
  grep -v '^ *+' conftest.er1 >conftest.err
 
7913
  rm -f conftest.er1
 
7914
  cat conftest.err >&5
 
7915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7916
  (exit $ac_status); } && {
 
7917
         test -z "$ac_c_werror_flag" ||
 
7918
         test ! -s conftest.err
 
7919
       } && test -s conftest.$ac_objext; then
 
7920
  ac_lo=$ac_mid; break
 
7921
else
 
7922
  echo "$as_me: failed program was:" >&5
 
7923
sed 's/^/| /' conftest.$ac_ext >&5
 
7924
 
 
7925
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7926
                        if test $ac_mid -le $ac_hi; then
 
7927
                          ac_lo= ac_hi=
 
7928
                          break
 
7929
                        fi
 
7930
                        ac_mid=`expr 2 '*' $ac_mid`
 
7931
fi
 
7932
 
 
7933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7934
  done
 
7935
else
 
7936
  echo "$as_me: failed program was:" >&5
 
7937
sed 's/^/| /' conftest.$ac_ext >&5
 
7938
 
 
7939
        ac_lo= ac_hi=
 
7940
fi
 
7941
 
 
7942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7943
fi
 
7944
 
 
7945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7946
# Binary search between lo and hi bounds.
 
7947
while test "x$ac_lo" != "x$ac_hi"; do
 
7948
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7949
  cat >conftest.$ac_ext <<_ACEOF
 
7950
/* confdefs.h.  */
 
7951
_ACEOF
 
7952
cat confdefs.h >>conftest.$ac_ext
 
7953
cat >>conftest.$ac_ext <<_ACEOF
 
7954
/* end confdefs.h.  */
 
7955
$ac_includes_default
 
7956
   typedef void * ac__type_sizeof_;
 
7957
int
 
7958
main ()
 
7959
{
 
7960
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
7961
test_array [0] = 0
 
7962
 
 
7963
  ;
 
7964
  return 0;
 
7965
}
 
7966
_ACEOF
 
7967
rm -f conftest.$ac_objext
 
7968
if { (ac_try="$ac_compile"
 
7969
case "(($ac_try" in
 
7970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7971
  *) ac_try_echo=$ac_try;;
 
7972
esac
 
7973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7974
  (eval "$ac_compile") 2>conftest.er1
 
7975
  ac_status=$?
 
7976
  grep -v '^ *+' conftest.er1 >conftest.err
 
7977
  rm -f conftest.er1
 
7978
  cat conftest.err >&5
 
7979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7980
  (exit $ac_status); } && {
 
7981
         test -z "$ac_c_werror_flag" ||
 
7982
         test ! -s conftest.err
 
7983
       } && test -s conftest.$ac_objext; then
 
7984
  ac_hi=$ac_mid
 
7985
else
 
7986
  echo "$as_me: failed program was:" >&5
 
7987
sed 's/^/| /' conftest.$ac_ext >&5
 
7988
 
 
7989
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7990
fi
 
7991
 
 
7992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7993
done
 
7994
case $ac_lo in
 
7995
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
7996
'') if test "$ac_cv_type_void_p" = yes; then
 
7997
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
7998
See \`config.log' for more details." >&5
 
7999
echo "$as_me: error: cannot compute sizeof (void *)
 
8000
See \`config.log' for more details." >&2;}
 
8001
   { (exit 77); exit 77; }; }
 
8002
   else
 
8003
     ac_cv_sizeof_void_p=0
 
8004
   fi ;;
 
8005
esac
 
8006
else
 
8007
  cat >conftest.$ac_ext <<_ACEOF
 
8008
/* confdefs.h.  */
 
8009
_ACEOF
 
8010
cat confdefs.h >>conftest.$ac_ext
 
8011
cat >>conftest.$ac_ext <<_ACEOF
 
8012
/* end confdefs.h.  */
 
8013
$ac_includes_default
 
8014
   typedef void * ac__type_sizeof_;
 
8015
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8016
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8017
#include <stdio.h>
 
8018
#include <stdlib.h>
 
8019
int
 
8020
main ()
 
8021
{
 
8022
 
 
8023
  FILE *f = fopen ("conftest.val", "w");
 
8024
  if (! f)
 
8025
    return 1;
 
8026
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
8027
    {
 
8028
      long int i = longval ();
 
8029
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8030
        return 1;
 
8031
      fprintf (f, "%ld\n", i);
 
8032
    }
 
8033
  else
 
8034
    {
 
8035
      unsigned long int i = ulongval ();
 
8036
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8037
        return 1;
 
8038
      fprintf (f, "%lu\n", i);
 
8039
    }
 
8040
  return ferror (f) || fclose (f) != 0;
 
8041
 
 
8042
  ;
 
8043
  return 0;
 
8044
}
 
8045
_ACEOF
 
8046
rm -f conftest$ac_exeext
 
8047
if { (ac_try="$ac_link"
 
8048
case "(($ac_try" in
 
8049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8050
  *) ac_try_echo=$ac_try;;
 
8051
esac
 
8052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8053
  (eval "$ac_link") 2>&5
 
8054
  ac_status=$?
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8057
  { (case "(($ac_try" in
 
8058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8059
  *) ac_try_echo=$ac_try;;
 
8060
esac
 
8061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8062
  (eval "$ac_try") 2>&5
 
8063
  ac_status=$?
 
8064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8065
  (exit $ac_status); }; }; then
 
8066
  ac_cv_sizeof_void_p=`cat conftest.val`
 
8067
else
 
8068
  echo "$as_me: program exited with status $ac_status" >&5
 
8069
echo "$as_me: failed program was:" >&5
 
8070
sed 's/^/| /' conftest.$ac_ext >&5
 
8071
 
 
8072
( exit $ac_status )
 
8073
if test "$ac_cv_type_void_p" = yes; then
 
8074
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
8075
See \`config.log' for more details." >&5
 
8076
echo "$as_me: error: cannot compute sizeof (void *)
 
8077
See \`config.log' for more details." >&2;}
 
8078
   { (exit 77); exit 77; }; }
 
8079
   else
 
8080
     ac_cv_sizeof_void_p=0
 
8081
   fi
 
8082
fi
 
8083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8084
fi
 
8085
rm -f conftest.val
 
8086
fi
 
8087
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
8088
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
 
8089
 
 
8090
 
 
8091
 
 
8092
cat >>confdefs.h <<_ACEOF
 
8093
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
8094
_ACEOF
 
8095
 
 
8096
 
 
8097
 
 
8098
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
8099
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
8100
if test "${ac_cv_c_bigendian+set}" = set; then
 
8101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8102
else
 
8103
  # See if sys/param.h defines the BYTE_ORDER macro.
 
8104
cat >conftest.$ac_ext <<_ACEOF
 
8105
/* confdefs.h.  */
 
8106
_ACEOF
 
8107
cat confdefs.h >>conftest.$ac_ext
 
8108
cat >>conftest.$ac_ext <<_ACEOF
 
8109
/* end confdefs.h.  */
 
8110
#include <sys/types.h>
 
8111
#include <sys/param.h>
 
8112
 
 
8113
int
 
8114
main ()
 
8115
{
 
8116
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
8117
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
8118
 bogus endian macros
 
8119
#endif
 
8120
 
 
8121
  ;
 
8122
  return 0;
 
8123
}
 
8124
_ACEOF
 
8125
rm -f conftest.$ac_objext
 
8126
if { (ac_try="$ac_compile"
 
8127
case "(($ac_try" in
 
8128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8129
  *) ac_try_echo=$ac_try;;
 
8130
esac
 
8131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8132
  (eval "$ac_compile") 2>conftest.er1
 
8133
  ac_status=$?
 
8134
  grep -v '^ *+' conftest.er1 >conftest.err
 
8135
  rm -f conftest.er1
 
8136
  cat conftest.err >&5
 
8137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8138
  (exit $ac_status); } && {
 
8139
         test -z "$ac_c_werror_flag" ||
 
8140
         test ! -s conftest.err
 
8141
       } && test -s conftest.$ac_objext; then
 
8142
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
8143
cat >conftest.$ac_ext <<_ACEOF
 
8144
/* confdefs.h.  */
 
8145
_ACEOF
 
8146
cat confdefs.h >>conftest.$ac_ext
 
8147
cat >>conftest.$ac_ext <<_ACEOF
 
8148
/* end confdefs.h.  */
 
8149
#include <sys/types.h>
 
8150
#include <sys/param.h>
 
8151
 
 
8152
int
 
8153
main ()
 
8154
{
 
8155
#if BYTE_ORDER != BIG_ENDIAN
 
8156
 not big endian
 
8157
#endif
 
8158
 
 
8159
  ;
 
8160
  return 0;
 
8161
}
 
8162
_ACEOF
 
8163
rm -f conftest.$ac_objext
 
8164
if { (ac_try="$ac_compile"
 
8165
case "(($ac_try" in
 
8166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8167
  *) ac_try_echo=$ac_try;;
 
8168
esac
 
8169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8170
  (eval "$ac_compile") 2>conftest.er1
 
8171
  ac_status=$?
 
8172
  grep -v '^ *+' conftest.er1 >conftest.err
 
8173
  rm -f conftest.er1
 
8174
  cat conftest.err >&5
 
8175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8176
  (exit $ac_status); } && {
 
8177
         test -z "$ac_c_werror_flag" ||
 
8178
         test ! -s conftest.err
 
8179
       } && test -s conftest.$ac_objext; then
 
8180
  ac_cv_c_bigendian=yes
 
8181
else
 
8182
  echo "$as_me: failed program was:" >&5
 
8183
sed 's/^/| /' conftest.$ac_ext >&5
 
8184
 
 
8185
        ac_cv_c_bigendian=no
 
8186
fi
 
8187
 
 
8188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8189
else
 
8190
  echo "$as_me: failed program was:" >&5
 
8191
sed 's/^/| /' conftest.$ac_ext >&5
 
8192
 
 
8193
        # It does not; compile a test program.
 
8194
if test "$cross_compiling" = yes; then
 
8195
  # try to guess the endianness by grepping values into an object file
 
8196
  ac_cv_c_bigendian=unknown
 
8197
  cat >conftest.$ac_ext <<_ACEOF
 
8198
/* confdefs.h.  */
 
8199
_ACEOF
 
8200
cat confdefs.h >>conftest.$ac_ext
 
8201
cat >>conftest.$ac_ext <<_ACEOF
 
8202
/* end confdefs.h.  */
 
8203
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
8204
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
8205
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
8206
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
8207
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
8208
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
8209
int
 
8210
main ()
 
8211
{
 
8212
 _ascii (); _ebcdic ();
 
8213
  ;
 
8214
  return 0;
 
8215
}
 
8216
_ACEOF
 
8217
rm -f conftest.$ac_objext
 
8218
if { (ac_try="$ac_compile"
 
8219
case "(($ac_try" in
 
8220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8221
  *) ac_try_echo=$ac_try;;
 
8222
esac
 
8223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8224
  (eval "$ac_compile") 2>conftest.er1
 
8225
  ac_status=$?
 
8226
  grep -v '^ *+' conftest.er1 >conftest.err
 
8227
  rm -f conftest.er1
 
8228
  cat conftest.err >&5
 
8229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8230
  (exit $ac_status); } && {
 
8231
         test -z "$ac_c_werror_flag" ||
 
8232
         test ! -s conftest.err
 
8233
       } && test -s conftest.$ac_objext; then
 
8234
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
8235
  ac_cv_c_bigendian=yes
 
8236
fi
 
8237
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
8238
  if test "$ac_cv_c_bigendian" = unknown; then
 
8239
    ac_cv_c_bigendian=no
 
8240
  else
 
8241
    # finding both strings is unlikely to happen, but who knows?
 
8242
    ac_cv_c_bigendian=unknown
 
8243
  fi
 
8244
fi
 
8245
else
 
8246
  echo "$as_me: failed program was:" >&5
 
8247
sed 's/^/| /' conftest.$ac_ext >&5
 
8248
 
 
8249
 
 
8250
fi
 
8251
 
 
8252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8253
else
 
8254
  cat >conftest.$ac_ext <<_ACEOF
 
8255
/* confdefs.h.  */
 
8256
_ACEOF
 
8257
cat confdefs.h >>conftest.$ac_ext
 
8258
cat >>conftest.$ac_ext <<_ACEOF
 
8259
/* end confdefs.h.  */
 
8260
$ac_includes_default
 
8261
int
 
8262
main ()
 
8263
{
 
8264
 
 
8265
  /* Are we little or big endian?  From Harbison&Steele.  */
 
8266
  union
 
8267
  {
 
8268
    long int l;
 
8269
    char c[sizeof (long int)];
 
8270
  } u;
 
8271
  u.l = 1;
 
8272
  return u.c[sizeof (long int) - 1] == 1;
 
8273
 
 
8274
  ;
 
8275
  return 0;
 
8276
}
 
8277
_ACEOF
 
8278
rm -f conftest$ac_exeext
 
8279
if { (ac_try="$ac_link"
 
8280
case "(($ac_try" in
 
8281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8282
  *) ac_try_echo=$ac_try;;
 
8283
esac
 
8284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8285
  (eval "$ac_link") 2>&5
 
8286
  ac_status=$?
 
8287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8288
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8289
  { (case "(($ac_try" in
 
8290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8291
  *) ac_try_echo=$ac_try;;
 
8292
esac
 
8293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8294
  (eval "$ac_try") 2>&5
 
8295
  ac_status=$?
 
8296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8297
  (exit $ac_status); }; }; then
 
8298
  ac_cv_c_bigendian=no
 
8299
else
 
8300
  echo "$as_me: program exited with status $ac_status" >&5
 
8301
echo "$as_me: failed program was:" >&5
 
8302
sed 's/^/| /' conftest.$ac_ext >&5
 
8303
 
 
8304
( exit $ac_status )
 
8305
ac_cv_c_bigendian=yes
 
8306
fi
 
8307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8308
fi
 
8309
 
 
8310
 
 
8311
fi
 
8312
 
 
8313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8314
fi
 
8315
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
8316
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
8317
case $ac_cv_c_bigendian in
 
8318
  yes)
 
8319
 
 
8320
cat >>confdefs.h <<\_ACEOF
 
8321
#define WORDS_BIGENDIAN 1
 
8322
_ACEOF
 
8323
 ;;
 
8324
  no)
 
8325
     ;;
 
8326
  *)
 
8327
    { { echo "$as_me:$LINENO: error: unknown endianness
 
8328
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
8329
echo "$as_me: error: unknown endianness
 
8330
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
8331
   { (exit 1); exit 1; }; } ;;
 
8332
esac
 
8333
 
 
8334
 
 
8335
 
 
8336
{ echo "$as_me:$LINENO: checking for FPU arithmetics type" >&5
 
8337
echo $ECHO_N "checking for FPU arithmetics type... $ECHO_C" >&6; }
 
8338
if test "${ac_cv_c_fpu_arithmetics_type+set}" = set; then
 
8339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8340
else
 
8341
  if test "$cross_compiling" = yes; then
 
8342
  ac_cv_c_fpu_arithmetics_type="Unknown"
 
8343
else
 
8344
  cat >conftest.$ac_ext <<_ACEOF
 
8345
/* confdefs.h.  */
 
8346
_ACEOF
 
8347
cat confdefs.h >>conftest.$ac_ext
 
8348
cat >>conftest.$ac_ext <<_ACEOF
 
8349
/* end confdefs.h.  */
 
8350
 
 
8351
#include <stdio.h>
 
8352
#include <string.h>
 
8353
 
 
8354
#define LOG2EA 0.44269504088896340735992
 
8355
#define ACCURACY "%1.4f"
 
8356
 
 
8357
typedef union {unsigned short s[4]; double d;} XTYPE;
 
8358
 
 
8359
XTYPE X[] = {
 
8360
              {{0,0,0,0}},                          /* Unknown             */
 
8361
              {{0x3fdc,0x551d,0x94ae,0x0bf8}},      /* Big endian     IEEE */
 
8362
              {{0x0bf8,0x94ae,0x551d,0x3fdc}},      /* Littile endian IEEE */
 
8363
              {{0037742,0124354,0122560,0057703}}   /* DEC                 */
 
8364
            };
 
8365
 
 
8366
int main (void)
 
8367
{
 
8368
    int i; char TMPSTR[1024]; char LOG2EA_STR[80];
 
8369
    i = 0;
 
8370
 
 
8371
    sprintf(LOG2EA_STR, ACCURACY, LOG2EA);
 
8372
 
 
8373
    for (i=3; i >= 0; i--)
 
8374
    {
 
8375
        sprintf(TMPSTR, ACCURACY, X[i].d);
 
8376
        if (strcmp(TMPSTR, LOG2EA_STR) == 0) {
 
8377
            break;
 
8378
        }
 
8379
    }
 
8380
 
 
8381
    exit(i);
 
8382
}
 
8383
_ACEOF
 
8384
rm -f conftest$ac_exeext
 
8385
if { (ac_try="$ac_link"
 
8386
case "(($ac_try" in
 
8387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8388
  *) ac_try_echo=$ac_try;;
 
8389
esac
 
8390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8391
  (eval "$ac_link") 2>&5
 
8392
  ac_status=$?
 
8393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8394
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8395
  { (case "(($ac_try" in
 
8396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8397
  *) ac_try_echo=$ac_try;;
 
8398
esac
 
8399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8400
  (eval "$ac_try") 2>&5
 
8401
  ac_status=$?
 
8402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8403
  (exit $ac_status); }; }; then
 
8404
  ac_cv_c_fpu_arithmetics_type="Unknown"
 
8405
else
 
8406
  echo "$as_me: program exited with status $ac_status" >&5
 
8407
echo "$as_me: failed program was:" >&5
 
8408
sed 's/^/| /' conftest.$ac_ext >&5
 
8409
 
 
8410
( exit $ac_status )
 
8411
case "$?" in
 
8412
      "1") ac_cv_c_fpu_arithmetics_type="Big endian IEEE" ;;
 
8413
      "2") ac_cv_c_fpu_arithmetics_type="Little endian IEEE" ;;
 
8414
      "3") ac_cv_c_fpu_arithmetics_type="DEC" ;;
 
8415
    esac
 
8416
fi
 
8417
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8418
fi
 
8419
 
 
8420
 
 
8421
fi
 
8422
{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_arithmetics_type" >&5
 
8423
echo "${ECHO_T}$ac_cv_c_fpu_arithmetics_type" >&6; }
 
8424
 
 
8425
case "$ac_cv_c_fpu_arithmetics_type" in
 
8426
  "DEC")                cat >>confdefs.h <<\_ACEOF
 
8427
#define HAVE_DEC_FPU 1
 
8428
_ACEOF
 
8429
 ;;
 
8430
  "Little endian IEEE") cat >>confdefs.h <<\_ACEOF
 
8431
#define HAVE_LIEEE_FPU 1
 
8432
_ACEOF
 
8433
 ;;
 
8434
  "Big endian IEEE")    cat >>confdefs.h <<\_ACEOF
 
8435
#define HAVE_BIEEE_FPU 1
 
8436
_ACEOF
 
8437
 ;;
 
8438
esac
 
8439
 
 
8440
 
 
8441
 
 
8442
 
 
8443
 
 
8444
 
 
8445
OBJEXT=".$OBJEXT"
 
8446
 
 
8447
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
8448
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
8449
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
8450
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
8451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8452
else
 
8453
  cat >conftest.make <<\_ACEOF
 
8454
SHELL = /bin/sh
 
8455
all:
 
8456
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
8457
_ACEOF
 
8458
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
8459
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
8460
  *@@@%%%=?*=@@@%%%*)
 
8461
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
8462
  *)
 
8463
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
8464
esac
 
8465
rm -f conftest.make
 
8466
fi
 
8467
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
8468
  { echo "$as_me:$LINENO: result: yes" >&5
 
8469
echo "${ECHO_T}yes" >&6; }
 
8470
  SET_MAKE=
 
8471
else
 
8472
  { echo "$as_me:$LINENO: result: no" >&5
 
8473
echo "${ECHO_T}no" >&6; }
 
8474
  SET_MAKE="MAKE=${MAKE-make}"
 
8475
fi
 
8476
 
 
8477
 
 
8478
# Extract the first word of "ar", so it can be a program name with args.
 
8479
set dummy ar; ac_word=$2
 
8480
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8482
if test "${ac_cv_prog_AR+set}" = set; then
 
8483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8484
else
 
8485
  if test -n "$AR"; then
 
8486
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8487
else
 
8488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8489
for as_dir in $PATH
 
8490
do
 
8491
  IFS=$as_save_IFS
 
8492
  test -z "$as_dir" && as_dir=.
 
8493
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8494
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8495
    ac_cv_prog_AR="ar"
 
8496
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8497
    break 2
 
8498
  fi
 
8499
done
 
8500
done
 
8501
IFS=$as_save_IFS
 
8502
 
 
8503
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
 
8504
fi
 
8505
fi
 
8506
AR=$ac_cv_prog_AR
 
8507
if test -n "$AR"; then
 
8508
  { echo "$as_me:$LINENO: result: $AR" >&5
 
8509
echo "${ECHO_T}$AR" >&6; }
 
8510
else
 
8511
  { echo "$as_me:$LINENO: result: no" >&5
 
8512
echo "${ECHO_T}no" >&6; }
 
8513
fi
 
8514
 
 
8515
 
 
8516
if test "$AR" = "NONE"; then
 
8517
  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
 
8518
echo "$as_me: error: --> Can't find \`ar'!" >&2;}
 
8519
   { (exit 1); exit 1; }; }
 
8520
  cat >confcache <<\_ACEOF
 
8521
# This file is a shell script that caches the results of configure
 
8522
# tests run on this system so they can be shared between configure
 
8523
# scripts and configure runs, see configure's option --config-cache.
 
8524
# It is not useful on other systems.  If it contains results you don't
 
8525
# want to keep, you may remove or edit it.
 
8526
#
 
8527
# config.status only pays attention to the cache file if you give it
 
8528
# the --recheck option to rerun configure.
 
8529
#
 
8530
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
8531
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
8532
# following values.
 
8533
 
 
8534
_ACEOF
 
8535
 
 
8536
# The following way of writing the cache mishandles newlines in values,
 
8537
# but we know of no workaround that is simple, portable, and efficient.
 
8538
# So, we kill variables containing newlines.
 
8539
# Ultrix sh set writes to stderr and can't be redirected directly,
 
8540
# and sets the high bit in the cache file unless we assign to the vars.
 
8541
(
 
8542
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
8543
    eval ac_val=\$$ac_var
 
8544
    case $ac_val in #(
 
8545
    *${as_nl}*)
 
8546
      case $ac_var in #(
 
8547
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
8548
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
8549
      esac
 
8550
      case $ac_var in #(
 
8551
      _ | IFS | as_nl) ;; #(
 
8552
      *) $as_unset $ac_var ;;
 
8553
      esac ;;
 
8554
    esac
 
8555
  done
 
8556
 
 
8557
  (set) 2>&1 |
 
8558
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
8559
    *${as_nl}ac_space=\ *)
 
8560
      # `set' does not quote correctly, so add quotes (double-quote
 
8561
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
8562
      sed -n \
 
8563
        "s/'/'\\\\''/g;
 
8564
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
8565
      ;; #(
 
8566
    *)
 
8567
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
8568
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
8569
      ;;
 
8570
    esac |
 
8571
    sort
 
8572
) |
 
8573
  sed '
 
8574
     /^ac_cv_env_/b end
 
8575
     t clear
 
8576
     :clear
 
8577
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
8578
     t end
 
8579
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
8580
     :end' >>confcache
 
8581
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
8582
  if test -w "$cache_file"; then
 
8583
    test "x$cache_file" != "x/dev/null" &&
 
8584
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
8585
echo "$as_me: updating cache $cache_file" >&6;}
 
8586
    cat confcache >$cache_file
 
8587
  else
 
8588
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
8589
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
8590
  fi
 
8591
fi
 
8592
rm -f confcache
 
8593
  exit 1
 
8594
fi
 
8595
 
 
8596
if test -n "$ac_tool_prefix"; then
 
8597
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8598
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8599
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8601
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8603
else
 
8604
  if test -n "$RANLIB"; then
 
8605
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8606
else
 
8607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8608
for as_dir in $PATH
 
8609
do
 
8610
  IFS=$as_save_IFS
 
8611
  test -z "$as_dir" && as_dir=.
 
8612
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8613
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8614
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8616
    break 2
 
8617
  fi
 
8618
done
 
8619
done
 
8620
IFS=$as_save_IFS
 
8621
 
 
8622
fi
 
8623
fi
 
8624
RANLIB=$ac_cv_prog_RANLIB
 
8625
if test -n "$RANLIB"; then
 
8626
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8627
echo "${ECHO_T}$RANLIB" >&6; }
 
8628
else
 
8629
  { echo "$as_me:$LINENO: result: no" >&5
 
8630
echo "${ECHO_T}no" >&6; }
 
8631
fi
 
8632
 
 
8633
 
 
8634
fi
 
8635
if test -z "$ac_cv_prog_RANLIB"; then
 
8636
  ac_ct_RANLIB=$RANLIB
 
8637
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8638
set dummy ranlib; ac_word=$2
 
8639
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8641
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8643
else
 
8644
  if test -n "$ac_ct_RANLIB"; then
 
8645
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8646
else
 
8647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8648
for as_dir in $PATH
 
8649
do
 
8650
  IFS=$as_save_IFS
 
8651
  test -z "$as_dir" && as_dir=.
 
8652
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8653
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8654
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8655
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8656
    break 2
 
8657
  fi
 
8658
done
 
8659
done
 
8660
IFS=$as_save_IFS
 
8661
 
 
8662
fi
 
8663
fi
 
8664
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8665
if test -n "$ac_ct_RANLIB"; then
 
8666
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8667
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
8668
else
 
8669
  { echo "$as_me:$LINENO: result: no" >&5
 
8670
echo "${ECHO_T}no" >&6; }
 
8671
fi
 
8672
 
 
8673
  if test "x$ac_ct_RANLIB" = x; then
 
8674
    RANLIB=":"
 
8675
  else
 
8676
    case $cross_compiling:$ac_tool_warned in
 
8677
yes:)
 
8678
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8679
whose name does not start with the host triplet.  If you think this
 
8680
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8681
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8682
whose name does not start with the host triplet.  If you think this
 
8683
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8684
ac_tool_warned=yes ;;
 
8685
esac
 
8686
    RANLIB=$ac_ct_RANLIB
 
8687
  fi
 
8688
else
 
8689
  RANLIB="$ac_cv_prog_RANLIB"
 
8690
fi
 
8691
 
 
8692
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
8693
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
8694
LN_S=$as_ln_s
 
8695
if test "$LN_S" = "ln -s"; then
 
8696
  { echo "$as_me:$LINENO: result: yes" >&5
 
8697
echo "${ECHO_T}yes" >&6; }
 
8698
else
 
8699
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
8700
echo "${ECHO_T}no, using $LN_S" >&6; }
 
8701
fi
 
8702
 
 
8703
for ac_prog in 'bison -y' byacc
 
8704
do
 
8705
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8706
set dummy $ac_prog; ac_word=$2
 
8707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8709
if test "${ac_cv_prog_YACC+set}" = set; then
 
8710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8711
else
 
8712
  if test -n "$YACC"; then
 
8713
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
8714
else
 
8715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8716
for as_dir in $PATH
 
8717
do
 
8718
  IFS=$as_save_IFS
 
8719
  test -z "$as_dir" && as_dir=.
 
8720
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8722
    ac_cv_prog_YACC="$ac_prog"
 
8723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8724
    break 2
 
8725
  fi
 
8726
done
 
8727
done
 
8728
IFS=$as_save_IFS
 
8729
 
 
8730
fi
 
8731
fi
 
8732
YACC=$ac_cv_prog_YACC
 
8733
if test -n "$YACC"; then
 
8734
  { echo "$as_me:$LINENO: result: $YACC" >&5
 
8735
echo "${ECHO_T}$YACC" >&6; }
 
8736
else
 
8737
  { echo "$as_me:$LINENO: result: no" >&5
 
8738
echo "${ECHO_T}no" >&6; }
 
8739
fi
 
8740
 
 
8741
 
 
8742
  test -n "$YACC" && break
 
8743
done
 
8744
test -n "$YACC" || YACC="yacc"
 
8745
 
 
8746
 
 
8747
# Find a good install program.  We prefer a C program (faster),
 
8748
# so one script is as good as another.  But avoid the broken or
 
8749
# incompatible versions:
 
8750
# SysV /etc/install, /usr/sbin/install
 
8751
# SunOS /usr/etc/install
 
8752
# IRIX /sbin/install
 
8753
# AIX /bin/install
 
8754
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
8755
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
8756
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
8757
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
8758
# OS/2's system install, which has a completely different semantic
 
8759
# ./install, which can be erroneously created by make from ./install.sh.
 
8760
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
8761
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
8762
if test -z "$INSTALL"; then
 
8763
if test "${ac_cv_path_install+set}" = set; then
 
8764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8765
else
 
8766
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8767
for as_dir in $PATH
 
8768
do
 
8769
  IFS=$as_save_IFS
 
8770
  test -z "$as_dir" && as_dir=.
 
8771
  # Account for people who put trailing slashes in PATH elements.
 
8772
case $as_dir/ in
 
8773
  ./ | .// | /cC/* | \
 
8774
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
8775
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
8776
  /usr/ucb/* ) ;;
 
8777
  *)
 
8778
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
8779
    # Don't use installbsd from OSF since it installs stuff as root
 
8780
    # by default.
 
8781
    for ac_prog in ginstall scoinst install; do
 
8782
      for ac_exec_ext in '' $ac_executable_extensions; do
 
8783
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
8784
          if test $ac_prog = install &&
 
8785
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
8786
            # AIX install.  It has an incompatible calling convention.
 
8787
            :
 
8788
          elif test $ac_prog = install &&
 
8789
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
8790
            # program-specific install script used by HP pwplus--don't use.
 
8791
            :
 
8792
          else
 
8793
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
8794
            break 3
 
8795
          fi
 
8796
        fi
 
8797
      done
 
8798
    done
 
8799
    ;;
 
8800
esac
 
8801
done
 
8802
IFS=$as_save_IFS
 
8803
 
 
8804
 
 
8805
fi
 
8806
  if test "${ac_cv_path_install+set}" = set; then
 
8807
    INSTALL=$ac_cv_path_install
 
8808
  else
 
8809
    # As a last resort, use the slow shell script.  Don't cache a
 
8810
    # value for INSTALL within a source directory, because that will
 
8811
    # break other packages using the cache if that directory is
 
8812
    # removed, or if the value is a relative name.
 
8813
    INSTALL=$ac_install_sh
 
8814
  fi
 
8815
fi
 
8816
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
8817
echo "${ECHO_T}$INSTALL" >&6; }
 
8818
 
 
8819
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
8820
# It thinks the first close brace ends the variable substitution.
 
8821
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
8822
 
 
8823
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
8824
 
 
8825
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
8826
 
 
8827
case "x$INSTALL" in
 
8828
   x/*) ;;
 
8829
   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
 
8830
esac
 
8831
 
 
8832
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
 
8833
 
 
8834
if test "x$PRINT_CMD" = "xNONE"; then
 
8835
  # Extract the first word of "lp", so it can be a program name with args.
 
8836
set dummy lp; ac_word=$2
 
8837
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8839
if test "${ac_cv_prog_LP_CMD+set}" = set; then
 
8840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8841
else
 
8842
  if test -n "$LP_CMD"; then
 
8843
  ac_cv_prog_LP_CMD="$LP_CMD" # Let the user override the test.
 
8844
else
 
8845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8846
for as_dir in $PATH
 
8847
do
 
8848
  IFS=$as_save_IFS
 
8849
  test -z "$as_dir" && as_dir=.
 
8850
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8851
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8852
    ac_cv_prog_LP_CMD="'lp -c'"
 
8853
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8854
    break 2
 
8855
  fi
 
8856
done
 
8857
done
 
8858
IFS=$as_save_IFS
 
8859
 
 
8860
  test -z "$ac_cv_prog_LP_CMD" && ac_cv_prog_LP_CMD=""NONE""
 
8861
fi
 
8862
fi
 
8863
LP_CMD=$ac_cv_prog_LP_CMD
 
8864
if test -n "$LP_CMD"; then
 
8865
  { echo "$as_me:$LINENO: result: $LP_CMD" >&5
 
8866
echo "${ECHO_T}$LP_CMD" >&6; }
 
8867
else
 
8868
  { echo "$as_me:$LINENO: result: no" >&5
 
8869
echo "${ECHO_T}no" >&6; }
 
8870
fi
 
8871
 
 
8872
 
 
8873
  if test "${ac_cv_prog_LP_CMD}" = "NONE"; then
 
8874
    # Extract the first word of "lpr", so it can be a program name with args.
 
8875
set dummy lpr; ac_word=$2
 
8876
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8878
if test "${ac_cv_prog_LPR_CMD+set}" = set; then
 
8879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8880
else
 
8881
  if test -n "$LPR_CMD"; then
 
8882
  ac_cv_prog_LPR_CMD="$LPR_CMD" # Let the user override the test.
 
8883
else
 
8884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8885
for as_dir in $PATH
 
8886
do
 
8887
  IFS=$as_save_IFS
 
8888
  test -z "$as_dir" && as_dir=.
 
8889
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8890
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8891
    ac_cv_prog_LPR_CMD="'lpr'"
 
8892
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8893
    break 2
 
8894
  fi
 
8895
done
 
8896
done
 
8897
IFS=$as_save_IFS
 
8898
 
 
8899
  test -z "$ac_cv_prog_LPR_CMD" && ac_cv_prog_LPR_CMD=""NONE""
 
8900
fi
 
8901
fi
 
8902
LPR_CMD=$ac_cv_prog_LPR_CMD
 
8903
if test -n "$LPR_CMD"; then
 
8904
  { echo "$as_me:$LINENO: result: $LPR_CMD" >&5
 
8905
echo "${ECHO_T}$LPR_CMD" >&6; }
 
8906
else
 
8907
  { echo "$as_me:$LINENO: result: no" >&5
 
8908
echo "${ECHO_T}no" >&6; }
 
8909
fi
 
8910
 
 
8911
 
 
8912
    if test "${ac_cv_prog_LPR_CMD}" = "NONE"; then
 
8913
      PRINT_CMD=
 
8914
    else
 
8915
      PRINT_CMD="${ac_cv_prog_LPR_CMD}"
 
8916
    fi
 
8917
  else
 
8918
    PRINT_CMD="${ac_cv_prog_LP_CMD}"
 
8919
  fi
 
8920
fi
 
8921
 
 
8922
{ echo "$as_me:$LINENO: result: --> Using \"$PRINT_CMD\" to print" >&5
 
8923
echo "${ECHO_T}--> Using \"$PRINT_CMD\" to print" >&6; }
 
8924
 
 
8925
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
8926
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
8927
if test "${ac_cv_header_stdc+set}" = set; then
 
8928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8929
else
 
8930
  cat >conftest.$ac_ext <<_ACEOF
 
8931
/* confdefs.h.  */
 
8932
_ACEOF
 
8933
cat confdefs.h >>conftest.$ac_ext
 
8934
cat >>conftest.$ac_ext <<_ACEOF
 
8935
/* end confdefs.h.  */
 
8936
#include <stdlib.h>
 
8937
#include <stdarg.h>
 
8938
#include <string.h>
 
8939
#include <float.h>
 
8940
 
 
8941
int
 
8942
main ()
 
8943
{
 
8944
 
 
8945
  ;
 
8946
  return 0;
 
8947
}
 
8948
_ACEOF
 
8949
rm -f conftest.$ac_objext
 
8950
if { (ac_try="$ac_compile"
 
8951
case "(($ac_try" in
 
8952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8953
  *) ac_try_echo=$ac_try;;
 
8954
esac
 
8955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8956
  (eval "$ac_compile") 2>conftest.er1
 
8957
  ac_status=$?
 
8958
  grep -v '^ *+' conftest.er1 >conftest.err
 
8959
  rm -f conftest.er1
 
8960
  cat conftest.err >&5
 
8961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8962
  (exit $ac_status); } && {
 
8963
         test -z "$ac_c_werror_flag" ||
 
8964
         test ! -s conftest.err
 
8965
       } && test -s conftest.$ac_objext; then
 
8966
  ac_cv_header_stdc=yes
 
8967
else
 
8968
  echo "$as_me: failed program was:" >&5
 
8969
sed 's/^/| /' conftest.$ac_ext >&5
 
8970
 
 
8971
        ac_cv_header_stdc=no
 
8972
fi
 
8973
 
 
8974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8975
 
 
8976
if test $ac_cv_header_stdc = yes; then
 
8977
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8978
  cat >conftest.$ac_ext <<_ACEOF
 
8979
/* confdefs.h.  */
 
8980
_ACEOF
 
8981
cat confdefs.h >>conftest.$ac_ext
 
8982
cat >>conftest.$ac_ext <<_ACEOF
 
8983
/* end confdefs.h.  */
 
8984
#include <string.h>
 
8985
 
 
8986
_ACEOF
 
8987
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8988
  $EGREP "memchr" >/dev/null 2>&1; then
 
8989
  :
 
8990
else
 
8991
  ac_cv_header_stdc=no
 
8992
fi
 
8993
rm -f conftest*
 
8994
 
 
8995
fi
 
8996
 
 
8997
if test $ac_cv_header_stdc = yes; then
 
8998
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8999
  cat >conftest.$ac_ext <<_ACEOF
 
9000
/* confdefs.h.  */
 
9001
_ACEOF
 
9002
cat confdefs.h >>conftest.$ac_ext
 
9003
cat >>conftest.$ac_ext <<_ACEOF
 
9004
/* end confdefs.h.  */
 
9005
#include <stdlib.h>
 
9006
 
 
9007
_ACEOF
 
9008
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9009
  $EGREP "free" >/dev/null 2>&1; then
 
9010
  :
 
9011
else
 
9012
  ac_cv_header_stdc=no
 
9013
fi
 
9014
rm -f conftest*
 
9015
 
 
9016
fi
 
9017
 
 
9018
if test $ac_cv_header_stdc = yes; then
 
9019
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
9020
  if test "$cross_compiling" = yes; then
 
9021
  :
 
9022
else
 
9023
  cat >conftest.$ac_ext <<_ACEOF
 
9024
/* confdefs.h.  */
 
9025
_ACEOF
 
9026
cat confdefs.h >>conftest.$ac_ext
 
9027
cat >>conftest.$ac_ext <<_ACEOF
 
9028
/* end confdefs.h.  */
 
9029
#include <ctype.h>
 
9030
#include <stdlib.h>
 
9031
#if ((' ' & 0x0FF) == 0x020)
 
9032
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
9033
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
9034
#else
 
9035
# define ISLOWER(c) \
 
9036
                   (('a' <= (c) && (c) <= 'i') \
 
9037
                     || ('j' <= (c) && (c) <= 'r') \
 
9038
                     || ('s' <= (c) && (c) <= 'z'))
 
9039
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
9040
#endif
 
9041
 
 
9042
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
9043
int
 
9044
main ()
 
9045
{
 
9046
  int i;
 
9047
  for (i = 0; i < 256; i++)
 
9048
    if (XOR (islower (i), ISLOWER (i))
 
9049
        || toupper (i) != TOUPPER (i))
 
9050
      return 2;
 
9051
  return 0;
 
9052
}
 
9053
_ACEOF
 
9054
rm -f conftest$ac_exeext
 
9055
if { (ac_try="$ac_link"
 
9056
case "(($ac_try" in
 
9057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9058
  *) ac_try_echo=$ac_try;;
 
9059
esac
 
9060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9061
  (eval "$ac_link") 2>&5
 
9062
  ac_status=$?
 
9063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9064
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9065
  { (case "(($ac_try" in
 
9066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9067
  *) ac_try_echo=$ac_try;;
 
9068
esac
 
9069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9070
  (eval "$ac_try") 2>&5
 
9071
  ac_status=$?
 
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9073
  (exit $ac_status); }; }; then
 
9074
  :
 
9075
else
 
9076
  echo "$as_me: program exited with status $ac_status" >&5
 
9077
echo "$as_me: failed program was:" >&5
 
9078
sed 's/^/| /' conftest.$ac_ext >&5
 
9079
 
 
9080
( exit $ac_status )
 
9081
ac_cv_header_stdc=no
 
9082
fi
 
9083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9084
fi
 
9085
 
 
9086
 
 
9087
fi
 
9088
fi
 
9089
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
9090
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
9091
if test $ac_cv_header_stdc = yes; then
 
9092
 
 
9093
cat >>confdefs.h <<\_ACEOF
 
9094
#define STDC_HEADERS 1
 
9095
_ACEOF
 
9096
 
 
9097
fi
 
9098
 
 
9099
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
9100
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
9101
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
9102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9103
else
 
9104
  cat >conftest.$ac_ext <<_ACEOF
 
9105
/* confdefs.h.  */
 
9106
_ACEOF
 
9107
cat confdefs.h >>conftest.$ac_ext
 
9108
cat >>conftest.$ac_ext <<_ACEOF
 
9109
/* end confdefs.h.  */
 
9110
#include <sys/types.h>
 
9111
#include <sys/wait.h>
 
9112
#ifndef WEXITSTATUS
 
9113
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
9114
#endif
 
9115
#ifndef WIFEXITED
 
9116
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
9117
#endif
 
9118
 
 
9119
int
 
9120
main ()
 
9121
{
 
9122
  int s;
 
9123
  wait (&s);
 
9124
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
9125
  ;
 
9126
  return 0;
 
9127
}
 
9128
_ACEOF
 
9129
rm -f conftest.$ac_objext
 
9130
if { (ac_try="$ac_compile"
 
9131
case "(($ac_try" in
 
9132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9133
  *) ac_try_echo=$ac_try;;
 
9134
esac
 
9135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9136
  (eval "$ac_compile") 2>conftest.er1
 
9137
  ac_status=$?
 
9138
  grep -v '^ *+' conftest.er1 >conftest.err
 
9139
  rm -f conftest.er1
 
9140
  cat conftest.err >&5
 
9141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9142
  (exit $ac_status); } && {
 
9143
         test -z "$ac_c_werror_flag" ||
 
9144
         test ! -s conftest.err
 
9145
       } && test -s conftest.$ac_objext; then
 
9146
  ac_cv_header_sys_wait_h=yes
 
9147
else
 
9148
  echo "$as_me: failed program was:" >&5
 
9149
sed 's/^/| /' conftest.$ac_ext >&5
 
9150
 
 
9151
        ac_cv_header_sys_wait_h=no
 
9152
fi
 
9153
 
 
9154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9155
fi
 
9156
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
9157
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
9158
if test $ac_cv_header_sys_wait_h = yes; then
 
9159
 
 
9160
cat >>confdefs.h <<\_ACEOF
 
9161
#define HAVE_SYS_WAIT_H 1
 
9162
_ACEOF
 
9163
 
 
9164
fi
 
9165
 
 
9166
 
 
9167
 
 
9168
for ac_header in unistd.h fcntl.h
 
9169
do
 
9170
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9171
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9172
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9173
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9174
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9176
fi
 
9177
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9178
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9179
echo "${ECHO_T}$ac_res" >&6; }
 
9180
else
 
9181
  # Is the header compilable?
 
9182
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9183
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9184
cat >conftest.$ac_ext <<_ACEOF
 
9185
/* confdefs.h.  */
 
9186
_ACEOF
 
9187
cat confdefs.h >>conftest.$ac_ext
 
9188
cat >>conftest.$ac_ext <<_ACEOF
 
9189
/* end confdefs.h.  */
 
9190
$ac_includes_default
 
9191
#include <$ac_header>
 
9192
_ACEOF
 
9193
rm -f conftest.$ac_objext
 
9194
if { (ac_try="$ac_compile"
 
9195
case "(($ac_try" in
 
9196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9197
  *) ac_try_echo=$ac_try;;
 
9198
esac
 
9199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9200
  (eval "$ac_compile") 2>conftest.er1
 
9201
  ac_status=$?
 
9202
  grep -v '^ *+' conftest.er1 >conftest.err
 
9203
  rm -f conftest.er1
 
9204
  cat conftest.err >&5
 
9205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9206
  (exit $ac_status); } && {
 
9207
         test -z "$ac_c_werror_flag" ||
 
9208
         test ! -s conftest.err
 
9209
       } && test -s conftest.$ac_objext; then
 
9210
  ac_header_compiler=yes
 
9211
else
 
9212
  echo "$as_me: failed program was:" >&5
 
9213
sed 's/^/| /' conftest.$ac_ext >&5
 
9214
 
 
9215
        ac_header_compiler=no
 
9216
fi
 
9217
 
 
9218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9219
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9220
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9221
 
 
9222
# Is the header present?
 
9223
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9224
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9225
cat >conftest.$ac_ext <<_ACEOF
 
9226
/* confdefs.h.  */
 
9227
_ACEOF
 
9228
cat confdefs.h >>conftest.$ac_ext
 
9229
cat >>conftest.$ac_ext <<_ACEOF
 
9230
/* end confdefs.h.  */
 
9231
#include <$ac_header>
 
9232
_ACEOF
 
9233
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9234
case "(($ac_try" in
 
9235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9236
  *) ac_try_echo=$ac_try;;
 
9237
esac
 
9238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9239
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9240
  ac_status=$?
 
9241
  grep -v '^ *+' conftest.er1 >conftest.err
 
9242
  rm -f conftest.er1
 
9243
  cat conftest.err >&5
 
9244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9245
  (exit $ac_status); } >/dev/null && {
 
9246
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9247
         test ! -s conftest.err
 
9248
       }; then
 
9249
  ac_header_preproc=yes
 
9250
else
 
9251
  echo "$as_me: failed program was:" >&5
 
9252
sed 's/^/| /' conftest.$ac_ext >&5
 
9253
 
 
9254
  ac_header_preproc=no
 
9255
fi
 
9256
 
 
9257
rm -f conftest.err conftest.$ac_ext
 
9258
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9259
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9260
 
 
9261
# So?  What about this header?
 
9262
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9263
  yes:no: )
 
9264
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9265
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9266
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9267
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9268
    ac_header_preproc=yes
 
9269
    ;;
 
9270
  no:yes:* )
 
9271
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9272
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9273
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9274
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9275
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9276
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9277
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9278
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9279
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9280
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9281
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9282
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9283
 
 
9284
    ;;
 
9285
esac
 
9286
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9288
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9290
else
 
9291
  eval "$as_ac_Header=\$ac_header_preproc"
 
9292
fi
 
9293
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9294
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9295
echo "${ECHO_T}$ac_res" >&6; }
 
9296
 
 
9297
fi
 
9298
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9299
  cat >>confdefs.h <<_ACEOF
 
9300
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9301
_ACEOF
 
9302
 
 
9303
fi
 
9304
 
 
9305
done
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
for ac_header in sys/param.h sys/time.h sys/select.h
 
9311
do
 
9312
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9313
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9314
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9315
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9316
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9318
fi
 
9319
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9320
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9321
echo "${ECHO_T}$ac_res" >&6; }
 
9322
else
 
9323
  # Is the header compilable?
 
9324
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9325
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9326
cat >conftest.$ac_ext <<_ACEOF
 
9327
/* confdefs.h.  */
 
9328
_ACEOF
 
9329
cat confdefs.h >>conftest.$ac_ext
 
9330
cat >>conftest.$ac_ext <<_ACEOF
 
9331
/* end confdefs.h.  */
 
9332
$ac_includes_default
 
9333
#include <$ac_header>
 
9334
_ACEOF
 
9335
rm -f conftest.$ac_objext
 
9336
if { (ac_try="$ac_compile"
 
9337
case "(($ac_try" in
 
9338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9339
  *) ac_try_echo=$ac_try;;
 
9340
esac
 
9341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9342
  (eval "$ac_compile") 2>conftest.er1
 
9343
  ac_status=$?
 
9344
  grep -v '^ *+' conftest.er1 >conftest.err
 
9345
  rm -f conftest.er1
 
9346
  cat conftest.err >&5
 
9347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9348
  (exit $ac_status); } && {
 
9349
         test -z "$ac_c_werror_flag" ||
 
9350
         test ! -s conftest.err
 
9351
       } && test -s conftest.$ac_objext; then
 
9352
  ac_header_compiler=yes
 
9353
else
 
9354
  echo "$as_me: failed program was:" >&5
 
9355
sed 's/^/| /' conftest.$ac_ext >&5
 
9356
 
 
9357
        ac_header_compiler=no
 
9358
fi
 
9359
 
 
9360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9361
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9362
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9363
 
 
9364
# Is the header present?
 
9365
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9366
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9367
cat >conftest.$ac_ext <<_ACEOF
 
9368
/* confdefs.h.  */
 
9369
_ACEOF
 
9370
cat confdefs.h >>conftest.$ac_ext
 
9371
cat >>conftest.$ac_ext <<_ACEOF
 
9372
/* end confdefs.h.  */
 
9373
#include <$ac_header>
 
9374
_ACEOF
 
9375
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9376
case "(($ac_try" in
 
9377
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9378
  *) ac_try_echo=$ac_try;;
 
9379
esac
 
9380
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9381
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9382
  ac_status=$?
 
9383
  grep -v '^ *+' conftest.er1 >conftest.err
 
9384
  rm -f conftest.er1
 
9385
  cat conftest.err >&5
 
9386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9387
  (exit $ac_status); } >/dev/null && {
 
9388
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9389
         test ! -s conftest.err
 
9390
       }; then
 
9391
  ac_header_preproc=yes
 
9392
else
 
9393
  echo "$as_me: failed program was:" >&5
 
9394
sed 's/^/| /' conftest.$ac_ext >&5
 
9395
 
 
9396
  ac_header_preproc=no
 
9397
fi
 
9398
 
 
9399
rm -f conftest.err conftest.$ac_ext
 
9400
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9401
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9402
 
 
9403
# So?  What about this header?
 
9404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9405
  yes:no: )
 
9406
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9408
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9409
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9410
    ac_header_preproc=yes
 
9411
    ;;
 
9412
  no:yes:* )
 
9413
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9414
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9415
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9416
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9417
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9418
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9419
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9420
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9421
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9422
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9423
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9424
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9425
 
 
9426
    ;;
 
9427
esac
 
9428
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9430
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9432
else
 
9433
  eval "$as_ac_Header=\$ac_header_preproc"
 
9434
fi
 
9435
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9436
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9437
echo "${ECHO_T}$ac_res" >&6; }
 
9438
 
 
9439
fi
 
9440
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9441
  cat >>confdefs.h <<_ACEOF
 
9442
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9443
_ACEOF
 
9444
 
 
9445
fi
 
9446
 
 
9447
done
 
9448
 
 
9449
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
9450
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
9451
if test "${ac_cv_header_time+set}" = set; then
 
9452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9453
else
 
9454
  cat >conftest.$ac_ext <<_ACEOF
 
9455
/* confdefs.h.  */
 
9456
_ACEOF
 
9457
cat confdefs.h >>conftest.$ac_ext
 
9458
cat >>conftest.$ac_ext <<_ACEOF
 
9459
/* end confdefs.h.  */
 
9460
#include <sys/types.h>
 
9461
#include <sys/time.h>
 
9462
#include <time.h>
 
9463
 
 
9464
int
 
9465
main ()
 
9466
{
 
9467
if ((struct tm *) 0)
 
9468
return 0;
 
9469
  ;
 
9470
  return 0;
 
9471
}
 
9472
_ACEOF
 
9473
rm -f conftest.$ac_objext
 
9474
if { (ac_try="$ac_compile"
 
9475
case "(($ac_try" in
 
9476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9477
  *) ac_try_echo=$ac_try;;
 
9478
esac
 
9479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9480
  (eval "$ac_compile") 2>conftest.er1
 
9481
  ac_status=$?
 
9482
  grep -v '^ *+' conftest.er1 >conftest.err
 
9483
  rm -f conftest.er1
 
9484
  cat conftest.err >&5
 
9485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9486
  (exit $ac_status); } && {
 
9487
         test -z "$ac_c_werror_flag" ||
 
9488
         test ! -s conftest.err
 
9489
       } && test -s conftest.$ac_objext; then
 
9490
  ac_cv_header_time=yes
 
9491
else
 
9492
  echo "$as_me: failed program was:" >&5
 
9493
sed 's/^/| /' conftest.$ac_ext >&5
 
9494
 
 
9495
        ac_cv_header_time=no
 
9496
fi
 
9497
 
 
9498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9499
fi
 
9500
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
9501
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
9502
if test $ac_cv_header_time = yes; then
 
9503
 
 
9504
cat >>confdefs.h <<\_ACEOF
 
9505
#define TIME_WITH_SYS_TIME 1
 
9506
_ACEOF
 
9507
 
 
9508
fi
 
9509
 
 
9510
 
 
9511
 
 
9512
 
 
9513
for ac_header in math.h float.h ieeefp.h
 
9514
do
 
9515
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9517
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9518
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9519
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9521
fi
 
9522
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9523
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9524
echo "${ECHO_T}$ac_res" >&6; }
 
9525
else
 
9526
  # Is the header compilable?
 
9527
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9528
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9529
cat >conftest.$ac_ext <<_ACEOF
 
9530
/* confdefs.h.  */
 
9531
_ACEOF
 
9532
cat confdefs.h >>conftest.$ac_ext
 
9533
cat >>conftest.$ac_ext <<_ACEOF
 
9534
/* end confdefs.h.  */
 
9535
$ac_includes_default
 
9536
#include <$ac_header>
 
9537
_ACEOF
 
9538
rm -f conftest.$ac_objext
 
9539
if { (ac_try="$ac_compile"
 
9540
case "(($ac_try" in
 
9541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9542
  *) ac_try_echo=$ac_try;;
 
9543
esac
 
9544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9545
  (eval "$ac_compile") 2>conftest.er1
 
9546
  ac_status=$?
 
9547
  grep -v '^ *+' conftest.er1 >conftest.err
 
9548
  rm -f conftest.er1
 
9549
  cat conftest.err >&5
 
9550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9551
  (exit $ac_status); } && {
 
9552
         test -z "$ac_c_werror_flag" ||
 
9553
         test ! -s conftest.err
 
9554
       } && test -s conftest.$ac_objext; then
 
9555
  ac_header_compiler=yes
 
9556
else
 
9557
  echo "$as_me: failed program was:" >&5
 
9558
sed 's/^/| /' conftest.$ac_ext >&5
 
9559
 
 
9560
        ac_header_compiler=no
 
9561
fi
 
9562
 
 
9563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9564
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9565
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9566
 
 
9567
# Is the header present?
 
9568
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9569
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9570
cat >conftest.$ac_ext <<_ACEOF
 
9571
/* confdefs.h.  */
 
9572
_ACEOF
 
9573
cat confdefs.h >>conftest.$ac_ext
 
9574
cat >>conftest.$ac_ext <<_ACEOF
 
9575
/* end confdefs.h.  */
 
9576
#include <$ac_header>
 
9577
_ACEOF
 
9578
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9579
case "(($ac_try" in
 
9580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9581
  *) ac_try_echo=$ac_try;;
 
9582
esac
 
9583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9584
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9585
  ac_status=$?
 
9586
  grep -v '^ *+' conftest.er1 >conftest.err
 
9587
  rm -f conftest.er1
 
9588
  cat conftest.err >&5
 
9589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9590
  (exit $ac_status); } >/dev/null && {
 
9591
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9592
         test ! -s conftest.err
 
9593
       }; then
 
9594
  ac_header_preproc=yes
 
9595
else
 
9596
  echo "$as_me: failed program was:" >&5
 
9597
sed 's/^/| /' conftest.$ac_ext >&5
 
9598
 
 
9599
  ac_header_preproc=no
 
9600
fi
 
9601
 
 
9602
rm -f conftest.err conftest.$ac_ext
 
9603
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9604
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9605
 
 
9606
# So?  What about this header?
 
9607
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9608
  yes:no: )
 
9609
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9610
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9611
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9612
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9613
    ac_header_preproc=yes
 
9614
    ;;
 
9615
  no:yes:* )
 
9616
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9617
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9618
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9619
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9620
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9621
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9622
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9623
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9624
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9625
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9626
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9627
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9628
 
 
9629
    ;;
 
9630
esac
 
9631
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9632
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9633
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9635
else
 
9636
  eval "$as_ac_Header=\$ac_header_preproc"
 
9637
fi
 
9638
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9639
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9640
echo "${ECHO_T}$ac_res" >&6; }
 
9641
 
 
9642
fi
 
9643
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9644
  cat >>confdefs.h <<_ACEOF
 
9645
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9646
_ACEOF
 
9647
 
 
9648
fi
 
9649
 
 
9650
done
 
9651
 
 
9652
 
 
9653
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
9654
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
9655
if test "${ac_cv_c_const+set}" = set; then
 
9656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9657
else
 
9658
  cat >conftest.$ac_ext <<_ACEOF
 
9659
/* confdefs.h.  */
 
9660
_ACEOF
 
9661
cat confdefs.h >>conftest.$ac_ext
 
9662
cat >>conftest.$ac_ext <<_ACEOF
 
9663
/* end confdefs.h.  */
 
9664
 
 
9665
int
 
9666
main ()
 
9667
{
 
9668
/* FIXME: Include the comments suggested by Paul. */
 
9669
#ifndef __cplusplus
 
9670
  /* Ultrix mips cc rejects this.  */
 
9671
  typedef int charset[2];
 
9672
  const charset cs;
 
9673
  /* SunOS 4.1.1 cc rejects this.  */
 
9674
  char const *const *pcpcc;
 
9675
  char **ppc;
 
9676
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
9677
  struct point {int x, y;};
 
9678
  static struct point const zero = {0,0};
 
9679
  /* AIX XL C 1.02.0.0 rejects this.
 
9680
     It does not let you subtract one const X* pointer from another in
 
9681
     an arm of an if-expression whose if-part is not a constant
 
9682
     expression */
 
9683
  const char *g = "string";
 
9684
  pcpcc = &g + (g ? g-g : 0);
 
9685
  /* HPUX 7.0 cc rejects these. */
 
9686
  ++pcpcc;
 
9687
  ppc = (char**) pcpcc;
 
9688
  pcpcc = (char const *const *) ppc;
 
9689
  { /* SCO 3.2v4 cc rejects this.  */
 
9690
    char *t;
 
9691
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
9692
 
 
9693
    *t++ = 0;
 
9694
    if (s) return 0;
 
9695
  }
 
9696
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
9697
    int x[] = {25, 17};
 
9698
    const int *foo = &x[0];
 
9699
    ++foo;
 
9700
  }
 
9701
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
9702
    typedef const int *iptr;
 
9703
    iptr p = 0;
 
9704
    ++p;
 
9705
  }
 
9706
  { /* AIX XL C 1.02.0.0 rejects this saying
 
9707
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
9708
    struct s { int j; const int *ap[3]; };
 
9709
    struct s *b; b->j = 5;
 
9710
  }
 
9711
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
9712
    const int foo = 10;
 
9713
    if (!foo) return 0;
 
9714
  }
 
9715
  return !cs[0] && !zero.x;
 
9716
#endif
 
9717
 
 
9718
  ;
 
9719
  return 0;
 
9720
}
 
9721
_ACEOF
 
9722
rm -f conftest.$ac_objext
 
9723
if { (ac_try="$ac_compile"
 
9724
case "(($ac_try" in
 
9725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9726
  *) ac_try_echo=$ac_try;;
 
9727
esac
 
9728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9729
  (eval "$ac_compile") 2>conftest.er1
 
9730
  ac_status=$?
 
9731
  grep -v '^ *+' conftest.er1 >conftest.err
 
9732
  rm -f conftest.er1
 
9733
  cat conftest.err >&5
 
9734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9735
  (exit $ac_status); } && {
 
9736
         test -z "$ac_c_werror_flag" ||
 
9737
         test ! -s conftest.err
 
9738
       } && test -s conftest.$ac_objext; then
 
9739
  ac_cv_c_const=yes
 
9740
else
 
9741
  echo "$as_me: failed program was:" >&5
 
9742
sed 's/^/| /' conftest.$ac_ext >&5
 
9743
 
 
9744
        ac_cv_c_const=no
 
9745
fi
 
9746
 
 
9747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9748
fi
 
9749
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
9750
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
9751
if test $ac_cv_c_const = no; then
 
9752
 
 
9753
cat >>confdefs.h <<\_ACEOF
 
9754
#define const
 
9755
_ACEOF
 
9756
 
 
9757
fi
 
9758
 
 
9759
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
9760
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
9761
if test "${ac_cv_type_pid_t+set}" = set; then
 
9762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9763
else
 
9764
  cat >conftest.$ac_ext <<_ACEOF
 
9765
/* confdefs.h.  */
 
9766
_ACEOF
 
9767
cat confdefs.h >>conftest.$ac_ext
 
9768
cat >>conftest.$ac_ext <<_ACEOF
 
9769
/* end confdefs.h.  */
 
9770
$ac_includes_default
 
9771
typedef pid_t ac__type_new_;
 
9772
int
 
9773
main ()
 
9774
{
 
9775
if ((ac__type_new_ *) 0)
 
9776
  return 0;
 
9777
if (sizeof (ac__type_new_))
 
9778
  return 0;
 
9779
  ;
 
9780
  return 0;
 
9781
}
 
9782
_ACEOF
 
9783
rm -f conftest.$ac_objext
 
9784
if { (ac_try="$ac_compile"
 
9785
case "(($ac_try" in
 
9786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9787
  *) ac_try_echo=$ac_try;;
 
9788
esac
 
9789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9790
  (eval "$ac_compile") 2>conftest.er1
 
9791
  ac_status=$?
 
9792
  grep -v '^ *+' conftest.er1 >conftest.err
 
9793
  rm -f conftest.er1
 
9794
  cat conftest.err >&5
 
9795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9796
  (exit $ac_status); } && {
 
9797
         test -z "$ac_c_werror_flag" ||
 
9798
         test ! -s conftest.err
 
9799
       } && test -s conftest.$ac_objext; then
 
9800
  ac_cv_type_pid_t=yes
 
9801
else
 
9802
  echo "$as_me: failed program was:" >&5
 
9803
sed 's/^/| /' conftest.$ac_ext >&5
 
9804
 
 
9805
        ac_cv_type_pid_t=no
 
9806
fi
 
9807
 
 
9808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9809
fi
 
9810
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
9811
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
9812
if test $ac_cv_type_pid_t = yes; then
 
9813
  :
 
9814
else
 
9815
 
 
9816
cat >>confdefs.h <<_ACEOF
 
9817
#define pid_t int
 
9818
_ACEOF
 
9819
 
 
9820
fi
 
9821
 
 
9822
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
9823
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
9824
if test "${ac_cv_type_size_t+set}" = set; then
 
9825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9826
else
 
9827
  cat >conftest.$ac_ext <<_ACEOF
 
9828
/* confdefs.h.  */
 
9829
_ACEOF
 
9830
cat confdefs.h >>conftest.$ac_ext
 
9831
cat >>conftest.$ac_ext <<_ACEOF
 
9832
/* end confdefs.h.  */
 
9833
$ac_includes_default
 
9834
typedef size_t ac__type_new_;
 
9835
int
 
9836
main ()
 
9837
{
 
9838
if ((ac__type_new_ *) 0)
 
9839
  return 0;
 
9840
if (sizeof (ac__type_new_))
 
9841
  return 0;
 
9842
  ;
 
9843
  return 0;
 
9844
}
 
9845
_ACEOF
 
9846
rm -f conftest.$ac_objext
 
9847
if { (ac_try="$ac_compile"
 
9848
case "(($ac_try" in
 
9849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9850
  *) ac_try_echo=$ac_try;;
 
9851
esac
 
9852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9853
  (eval "$ac_compile") 2>conftest.er1
 
9854
  ac_status=$?
 
9855
  grep -v '^ *+' conftest.er1 >conftest.err
 
9856
  rm -f conftest.er1
 
9857
  cat conftest.err >&5
 
9858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9859
  (exit $ac_status); } && {
 
9860
         test -z "$ac_c_werror_flag" ||
 
9861
         test ! -s conftest.err
 
9862
       } && test -s conftest.$ac_objext; then
 
9863
  ac_cv_type_size_t=yes
 
9864
else
 
9865
  echo "$as_me: failed program was:" >&5
 
9866
sed 's/^/| /' conftest.$ac_ext >&5
 
9867
 
 
9868
        ac_cv_type_size_t=no
 
9869
fi
 
9870
 
 
9871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9872
fi
 
9873
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
9874
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
9875
if test $ac_cv_type_size_t = yes; then
 
9876
  :
 
9877
else
 
9878
 
 
9879
cat >>confdefs.h <<_ACEOF
 
9880
#define size_t unsigned int
 
9881
_ACEOF
 
9882
 
 
9883
fi
 
9884
 
 
9885
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
9886
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
9887
if test "${ac_cv_struct_tm+set}" = set; then
 
9888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9889
else
 
9890
  cat >conftest.$ac_ext <<_ACEOF
 
9891
/* confdefs.h.  */
 
9892
_ACEOF
 
9893
cat confdefs.h >>conftest.$ac_ext
 
9894
cat >>conftest.$ac_ext <<_ACEOF
 
9895
/* end confdefs.h.  */
 
9896
#include <sys/types.h>
 
9897
#include <time.h>
 
9898
 
 
9899
int
 
9900
main ()
 
9901
{
 
9902
struct tm tm;
 
9903
                                     int *p = &tm.tm_sec;
 
9904
                                     return !p;
 
9905
  ;
 
9906
  return 0;
 
9907
}
 
9908
_ACEOF
 
9909
rm -f conftest.$ac_objext
 
9910
if { (ac_try="$ac_compile"
 
9911
case "(($ac_try" in
 
9912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9913
  *) ac_try_echo=$ac_try;;
 
9914
esac
 
9915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9916
  (eval "$ac_compile") 2>conftest.er1
 
9917
  ac_status=$?
 
9918
  grep -v '^ *+' conftest.er1 >conftest.err
 
9919
  rm -f conftest.er1
 
9920
  cat conftest.err >&5
 
9921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9922
  (exit $ac_status); } && {
 
9923
         test -z "$ac_c_werror_flag" ||
 
9924
         test ! -s conftest.err
 
9925
       } && test -s conftest.$ac_objext; then
 
9926
  ac_cv_struct_tm=time.h
 
9927
else
 
9928
  echo "$as_me: failed program was:" >&5
 
9929
sed 's/^/| /' conftest.$ac_ext >&5
 
9930
 
 
9931
        ac_cv_struct_tm=sys/time.h
 
9932
fi
 
9933
 
 
9934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9935
fi
 
9936
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
9937
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
9938
if test $ac_cv_struct_tm = sys/time.h; then
 
9939
 
 
9940
cat >>confdefs.h <<\_ACEOF
 
9941
#define TM_IN_SYS_TIME 1
 
9942
_ACEOF
 
9943
 
 
9944
fi
 
9945
 
 
9946
 
 
9947
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
9948
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
9949
if test "${ac_cv_type_signal+set}" = set; then
 
9950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9951
else
 
9952
  cat >conftest.$ac_ext <<_ACEOF
 
9953
/* confdefs.h.  */
 
9954
_ACEOF
 
9955
cat confdefs.h >>conftest.$ac_ext
 
9956
cat >>conftest.$ac_ext <<_ACEOF
 
9957
/* end confdefs.h.  */
 
9958
#include <sys/types.h>
 
9959
#include <signal.h>
 
9960
 
 
9961
int
 
9962
main ()
 
9963
{
 
9964
return *(signal (0, 0)) (0) == 1;
 
9965
  ;
 
9966
  return 0;
 
9967
}
 
9968
_ACEOF
 
9969
rm -f conftest.$ac_objext
 
9970
if { (ac_try="$ac_compile"
 
9971
case "(($ac_try" in
 
9972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9973
  *) ac_try_echo=$ac_try;;
 
9974
esac
 
9975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9976
  (eval "$ac_compile") 2>conftest.er1
 
9977
  ac_status=$?
 
9978
  grep -v '^ *+' conftest.er1 >conftest.err
 
9979
  rm -f conftest.er1
 
9980
  cat conftest.err >&5
 
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9982
  (exit $ac_status); } && {
 
9983
         test -z "$ac_c_werror_flag" ||
 
9984
         test ! -s conftest.err
 
9985
       } && test -s conftest.$ac_objext; then
 
9986
  ac_cv_type_signal=int
 
9987
else
 
9988
  echo "$as_me: failed program was:" >&5
 
9989
sed 's/^/| /' conftest.$ac_ext >&5
 
9990
 
 
9991
        ac_cv_type_signal=void
 
9992
fi
 
9993
 
 
9994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9995
fi
 
9996
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
9997
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
9998
 
 
9999
cat >>confdefs.h <<_ACEOF
 
10000
#define RETSIGTYPE $ac_cv_type_signal
 
10001
_ACEOF
 
10002
 
 
10003
 
 
10004
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
10005
# for constant arguments.  Useless!
 
10006
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
10007
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
10008
if test "${ac_cv_working_alloca_h+set}" = set; then
 
10009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10010
else
 
10011
  cat >conftest.$ac_ext <<_ACEOF
 
10012
/* confdefs.h.  */
 
10013
_ACEOF
 
10014
cat confdefs.h >>conftest.$ac_ext
 
10015
cat >>conftest.$ac_ext <<_ACEOF
 
10016
/* end confdefs.h.  */
 
10017
#include <alloca.h>
 
10018
int
 
10019
main ()
 
10020
{
 
10021
char *p = (char *) alloca (2 * sizeof (int));
 
10022
                          if (p) return 0;
 
10023
  ;
 
10024
  return 0;
 
10025
}
 
10026
_ACEOF
 
10027
rm -f conftest.$ac_objext conftest$ac_exeext
 
10028
if { (ac_try="$ac_link"
 
10029
case "(($ac_try" in
 
10030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10031
  *) ac_try_echo=$ac_try;;
 
10032
esac
 
10033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10034
  (eval "$ac_link") 2>conftest.er1
 
10035
  ac_status=$?
 
10036
  grep -v '^ *+' conftest.er1 >conftest.err
 
10037
  rm -f conftest.er1
 
10038
  cat conftest.err >&5
 
10039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10040
  (exit $ac_status); } && {
 
10041
         test -z "$ac_c_werror_flag" ||
 
10042
         test ! -s conftest.err
 
10043
       } && test -s conftest$ac_exeext &&
 
10044
       $as_test_x conftest$ac_exeext; then
 
10045
  ac_cv_working_alloca_h=yes
 
10046
else
 
10047
  echo "$as_me: failed program was:" >&5
 
10048
sed 's/^/| /' conftest.$ac_ext >&5
 
10049
 
 
10050
        ac_cv_working_alloca_h=no
 
10051
fi
 
10052
 
 
10053
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10054
      conftest$ac_exeext conftest.$ac_ext
 
10055
fi
 
10056
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
10057
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
10058
if test $ac_cv_working_alloca_h = yes; then
 
10059
 
 
10060
cat >>confdefs.h <<\_ACEOF
 
10061
#define HAVE_ALLOCA_H 1
 
10062
_ACEOF
 
10063
 
 
10064
fi
 
10065
 
 
10066
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
10067
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
10068
if test "${ac_cv_func_alloca_works+set}" = set; then
 
10069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10070
else
 
10071
  cat >conftest.$ac_ext <<_ACEOF
 
10072
/* confdefs.h.  */
 
10073
_ACEOF
 
10074
cat confdefs.h >>conftest.$ac_ext
 
10075
cat >>conftest.$ac_ext <<_ACEOF
 
10076
/* end confdefs.h.  */
 
10077
#ifdef __GNUC__
 
10078
# define alloca __builtin_alloca
 
10079
#else
 
10080
# ifdef _MSC_VER
 
10081
#  include <malloc.h>
 
10082
#  define alloca _alloca
 
10083
# else
 
10084
#  ifdef HAVE_ALLOCA_H
 
10085
#   include <alloca.h>
 
10086
#  else
 
10087
#   ifdef _AIX
 
10088
 #pragma alloca
 
10089
#   else
 
10090
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
10091
char *alloca ();
 
10092
#    endif
 
10093
#   endif
 
10094
#  endif
 
10095
# endif
 
10096
#endif
 
10097
 
 
10098
int
 
10099
main ()
 
10100
{
 
10101
char *p = (char *) alloca (1);
 
10102
                                    if (p) return 0;
 
10103
  ;
 
10104
  return 0;
 
10105
}
 
10106
_ACEOF
 
10107
rm -f conftest.$ac_objext conftest$ac_exeext
 
10108
if { (ac_try="$ac_link"
 
10109
case "(($ac_try" in
 
10110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10111
  *) ac_try_echo=$ac_try;;
 
10112
esac
 
10113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10114
  (eval "$ac_link") 2>conftest.er1
 
10115
  ac_status=$?
 
10116
  grep -v '^ *+' conftest.er1 >conftest.err
 
10117
  rm -f conftest.er1
 
10118
  cat conftest.err >&5
 
10119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10120
  (exit $ac_status); } && {
 
10121
         test -z "$ac_c_werror_flag" ||
 
10122
         test ! -s conftest.err
 
10123
       } && test -s conftest$ac_exeext &&
 
10124
       $as_test_x conftest$ac_exeext; then
 
10125
  ac_cv_func_alloca_works=yes
 
10126
else
 
10127
  echo "$as_me: failed program was:" >&5
 
10128
sed 's/^/| /' conftest.$ac_ext >&5
 
10129
 
 
10130
        ac_cv_func_alloca_works=no
 
10131
fi
 
10132
 
 
10133
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10134
      conftest$ac_exeext conftest.$ac_ext
 
10135
fi
 
10136
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
10137
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
10138
 
 
10139
if test $ac_cv_func_alloca_works = yes; then
 
10140
 
 
10141
cat >>confdefs.h <<\_ACEOF
 
10142
#define HAVE_ALLOCA 1
 
10143
_ACEOF
 
10144
 
 
10145
else
 
10146
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
10147
# that cause trouble.  Some versions do not even contain alloca or
 
10148
# contain a buggy version.  If you still want to use their alloca,
 
10149
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
10150
 
 
10151
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
10152
 
 
10153
cat >>confdefs.h <<\_ACEOF
 
10154
#define C_ALLOCA 1
 
10155
_ACEOF
 
10156
 
 
10157
 
 
10158
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
10159
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
10160
if test "${ac_cv_os_cray+set}" = set; then
 
10161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10162
else
 
10163
  cat >conftest.$ac_ext <<_ACEOF
 
10164
/* confdefs.h.  */
 
10165
_ACEOF
 
10166
cat confdefs.h >>conftest.$ac_ext
 
10167
cat >>conftest.$ac_ext <<_ACEOF
 
10168
/* end confdefs.h.  */
 
10169
#if defined CRAY && ! defined CRAY2
 
10170
webecray
 
10171
#else
 
10172
wenotbecray
 
10173
#endif
 
10174
 
 
10175
_ACEOF
 
10176
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10177
  $EGREP "webecray" >/dev/null 2>&1; then
 
10178
  ac_cv_os_cray=yes
 
10179
else
 
10180
  ac_cv_os_cray=no
 
10181
fi
 
10182
rm -f conftest*
 
10183
 
 
10184
fi
 
10185
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
10186
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
10187
if test $ac_cv_os_cray = yes; then
 
10188
  for ac_func in _getb67 GETB67 getb67; do
 
10189
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10190
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10191
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10192
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10194
else
 
10195
  cat >conftest.$ac_ext <<_ACEOF
 
10196
/* confdefs.h.  */
 
10197
_ACEOF
 
10198
cat confdefs.h >>conftest.$ac_ext
 
10199
cat >>conftest.$ac_ext <<_ACEOF
 
10200
/* end confdefs.h.  */
 
10201
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10202
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10203
#define $ac_func innocuous_$ac_func
 
10204
 
 
10205
/* System header to define __stub macros and hopefully few prototypes,
 
10206
    which can conflict with char $ac_func (); below.
 
10207
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10208
    <limits.h> exists even on freestanding compilers.  */
 
10209
 
 
10210
#ifdef __STDC__
 
10211
# include <limits.h>
 
10212
#else
 
10213
# include <assert.h>
 
10214
#endif
 
10215
 
 
10216
#undef $ac_func
 
10217
 
 
10218
/* Override any GCC internal prototype to avoid an error.
 
10219
   Use char because int might match the return type of a GCC
 
10220
   builtin and then its argument prototype would still apply.  */
 
10221
#ifdef __cplusplus
 
10222
extern "C"
 
10223
#endif
 
10224
char $ac_func ();
 
10225
/* The GNU C library defines this for functions which it implements
 
10226
    to always fail with ENOSYS.  Some functions are actually named
 
10227
    something starting with __ and the normal name is an alias.  */
 
10228
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10229
choke me
 
10230
#endif
 
10231
 
 
10232
int
 
10233
main ()
 
10234
{
 
10235
return $ac_func ();
 
10236
  ;
 
10237
  return 0;
 
10238
}
 
10239
_ACEOF
 
10240
rm -f conftest.$ac_objext conftest$ac_exeext
 
10241
if { (ac_try="$ac_link"
 
10242
case "(($ac_try" in
 
10243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10244
  *) ac_try_echo=$ac_try;;
 
10245
esac
 
10246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10247
  (eval "$ac_link") 2>conftest.er1
 
10248
  ac_status=$?
 
10249
  grep -v '^ *+' conftest.er1 >conftest.err
 
10250
  rm -f conftest.er1
 
10251
  cat conftest.err >&5
 
10252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10253
  (exit $ac_status); } && {
 
10254
         test -z "$ac_c_werror_flag" ||
 
10255
         test ! -s conftest.err
 
10256
       } && test -s conftest$ac_exeext &&
 
10257
       $as_test_x conftest$ac_exeext; then
 
10258
  eval "$as_ac_var=yes"
 
10259
else
 
10260
  echo "$as_me: failed program was:" >&5
 
10261
sed 's/^/| /' conftest.$ac_ext >&5
 
10262
 
 
10263
        eval "$as_ac_var=no"
 
10264
fi
 
10265
 
 
10266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10267
      conftest$ac_exeext conftest.$ac_ext
 
10268
fi
 
10269
ac_res=`eval echo '${'$as_ac_var'}'`
 
10270
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10271
echo "${ECHO_T}$ac_res" >&6; }
 
10272
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10273
 
 
10274
cat >>confdefs.h <<_ACEOF
 
10275
#define CRAY_STACKSEG_END $ac_func
 
10276
_ACEOF
 
10277
 
 
10278
    break
 
10279
fi
 
10280
 
 
10281
  done
 
10282
fi
 
10283
 
 
10284
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
10285
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
10286
if test "${ac_cv_c_stack_direction+set}" = set; then
 
10287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10288
else
 
10289
  if test "$cross_compiling" = yes; then
 
10290
  ac_cv_c_stack_direction=0
 
10291
else
 
10292
  cat >conftest.$ac_ext <<_ACEOF
 
10293
/* confdefs.h.  */
 
10294
_ACEOF
 
10295
cat confdefs.h >>conftest.$ac_ext
 
10296
cat >>conftest.$ac_ext <<_ACEOF
 
10297
/* end confdefs.h.  */
 
10298
$ac_includes_default
 
10299
int
 
10300
find_stack_direction ()
 
10301
{
 
10302
  static char *addr = 0;
 
10303
  auto char dummy;
 
10304
  if (addr == 0)
 
10305
    {
 
10306
      addr = &dummy;
 
10307
      return find_stack_direction ();
 
10308
    }
 
10309
  else
 
10310
    return (&dummy > addr) ? 1 : -1;
 
10311
}
 
10312
 
 
10313
int
 
10314
main ()
 
10315
{
 
10316
  return find_stack_direction () < 0;
 
10317
}
 
10318
_ACEOF
 
10319
rm -f conftest$ac_exeext
 
10320
if { (ac_try="$ac_link"
 
10321
case "(($ac_try" in
 
10322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10323
  *) ac_try_echo=$ac_try;;
 
10324
esac
 
10325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10326
  (eval "$ac_link") 2>&5
 
10327
  ac_status=$?
 
10328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10329
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10330
  { (case "(($ac_try" in
 
10331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10332
  *) ac_try_echo=$ac_try;;
 
10333
esac
 
10334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10335
  (eval "$ac_try") 2>&5
 
10336
  ac_status=$?
 
10337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10338
  (exit $ac_status); }; }; then
 
10339
  ac_cv_c_stack_direction=1
 
10340
else
 
10341
  echo "$as_me: program exited with status $ac_status" >&5
 
10342
echo "$as_me: failed program was:" >&5
 
10343
sed 's/^/| /' conftest.$ac_ext >&5
 
10344
 
 
10345
( exit $ac_status )
 
10346
ac_cv_c_stack_direction=-1
 
10347
fi
 
10348
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10349
fi
 
10350
 
 
10351
 
 
10352
fi
 
10353
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
10354
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
10355
 
 
10356
cat >>confdefs.h <<_ACEOF
 
10357
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
10358
_ACEOF
 
10359
 
 
10360
 
 
10361
fi
 
10362
 
 
10363
 
 
10364
 
 
10365
for ac_func in getcwd gethostname
 
10366
do
 
10367
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10368
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10369
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10370
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10372
else
 
10373
  cat >conftest.$ac_ext <<_ACEOF
 
10374
/* confdefs.h.  */
 
10375
_ACEOF
 
10376
cat confdefs.h >>conftest.$ac_ext
 
10377
cat >>conftest.$ac_ext <<_ACEOF
 
10378
/* end confdefs.h.  */
 
10379
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10380
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10381
#define $ac_func innocuous_$ac_func
 
10382
 
 
10383
/* System header to define __stub macros and hopefully few prototypes,
 
10384
    which can conflict with char $ac_func (); below.
 
10385
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10386
    <limits.h> exists even on freestanding compilers.  */
 
10387
 
 
10388
#ifdef __STDC__
 
10389
# include <limits.h>
 
10390
#else
 
10391
# include <assert.h>
 
10392
#endif
 
10393
 
 
10394
#undef $ac_func
 
10395
 
 
10396
/* Override any GCC internal prototype to avoid an error.
 
10397
   Use char because int might match the return type of a GCC
 
10398
   builtin and then its argument prototype would still apply.  */
 
10399
#ifdef __cplusplus
 
10400
extern "C"
 
10401
#endif
 
10402
char $ac_func ();
 
10403
/* The GNU C library defines this for functions which it implements
 
10404
    to always fail with ENOSYS.  Some functions are actually named
 
10405
    something starting with __ and the normal name is an alias.  */
 
10406
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10407
choke me
 
10408
#endif
 
10409
 
 
10410
int
 
10411
main ()
 
10412
{
 
10413
return $ac_func ();
 
10414
  ;
 
10415
  return 0;
 
10416
}
 
10417
_ACEOF
 
10418
rm -f conftest.$ac_objext conftest$ac_exeext
 
10419
if { (ac_try="$ac_link"
 
10420
case "(($ac_try" in
 
10421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10422
  *) ac_try_echo=$ac_try;;
 
10423
esac
 
10424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10425
  (eval "$ac_link") 2>conftest.er1
 
10426
  ac_status=$?
 
10427
  grep -v '^ *+' conftest.er1 >conftest.err
 
10428
  rm -f conftest.er1
 
10429
  cat conftest.err >&5
 
10430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10431
  (exit $ac_status); } && {
 
10432
         test -z "$ac_c_werror_flag" ||
 
10433
         test ! -s conftest.err
 
10434
       } && test -s conftest$ac_exeext &&
 
10435
       $as_test_x conftest$ac_exeext; then
 
10436
  eval "$as_ac_var=yes"
 
10437
else
 
10438
  echo "$as_me: failed program was:" >&5
 
10439
sed 's/^/| /' conftest.$ac_ext >&5
 
10440
 
 
10441
        eval "$as_ac_var=no"
 
10442
fi
 
10443
 
 
10444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10445
      conftest$ac_exeext conftest.$ac_ext
 
10446
fi
 
10447
ac_res=`eval echo '${'$as_ac_var'}'`
 
10448
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10449
echo "${ECHO_T}$ac_res" >&6; }
 
10450
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10451
  cat >>confdefs.h <<_ACEOF
 
10452
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10453
_ACEOF
 
10454
 
 
10455
fi
 
10456
done
 
10457
 
 
10458
 
 
10459
for ac_func in strstr
 
10460
do
 
10461
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10462
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10463
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10464
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10466
else
 
10467
  cat >conftest.$ac_ext <<_ACEOF
 
10468
/* confdefs.h.  */
 
10469
_ACEOF
 
10470
cat confdefs.h >>conftest.$ac_ext
 
10471
cat >>conftest.$ac_ext <<_ACEOF
 
10472
/* end confdefs.h.  */
 
10473
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10474
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10475
#define $ac_func innocuous_$ac_func
 
10476
 
 
10477
/* System header to define __stub macros and hopefully few prototypes,
 
10478
    which can conflict with char $ac_func (); below.
 
10479
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10480
    <limits.h> exists even on freestanding compilers.  */
 
10481
 
 
10482
#ifdef __STDC__
 
10483
# include <limits.h>
 
10484
#else
 
10485
# include <assert.h>
 
10486
#endif
 
10487
 
 
10488
#undef $ac_func
 
10489
 
 
10490
/* Override any GCC internal prototype to avoid an error.
 
10491
   Use char because int might match the return type of a GCC
 
10492
   builtin and then its argument prototype would still apply.  */
 
10493
#ifdef __cplusplus
 
10494
extern "C"
 
10495
#endif
 
10496
char $ac_func ();
 
10497
/* The GNU C library defines this for functions which it implements
 
10498
    to always fail with ENOSYS.  Some functions are actually named
 
10499
    something starting with __ and the normal name is an alias.  */
 
10500
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10501
choke me
 
10502
#endif
 
10503
 
 
10504
int
 
10505
main ()
 
10506
{
 
10507
return $ac_func ();
 
10508
  ;
 
10509
  return 0;
 
10510
}
 
10511
_ACEOF
 
10512
rm -f conftest.$ac_objext conftest$ac_exeext
 
10513
if { (ac_try="$ac_link"
 
10514
case "(($ac_try" in
 
10515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10516
  *) ac_try_echo=$ac_try;;
 
10517
esac
 
10518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10519
  (eval "$ac_link") 2>conftest.er1
 
10520
  ac_status=$?
 
10521
  grep -v '^ *+' conftest.er1 >conftest.err
 
10522
  rm -f conftest.er1
 
10523
  cat conftest.err >&5
 
10524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10525
  (exit $ac_status); } && {
 
10526
         test -z "$ac_c_werror_flag" ||
 
10527
         test ! -s conftest.err
 
10528
       } && test -s conftest$ac_exeext &&
 
10529
       $as_test_x conftest$ac_exeext; then
 
10530
  eval "$as_ac_var=yes"
 
10531
else
 
10532
  echo "$as_me: failed program was:" >&5
 
10533
sed 's/^/| /' conftest.$ac_ext >&5
 
10534
 
 
10535
        eval "$as_ac_var=no"
 
10536
fi
 
10537
 
 
10538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10539
      conftest$ac_exeext conftest.$ac_ext
 
10540
fi
 
10541
ac_res=`eval echo '${'$as_ac_var'}'`
 
10542
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10543
echo "${ECHO_T}$ac_res" >&6; }
 
10544
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10545
  cat >>confdefs.h <<_ACEOF
 
10546
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10547
_ACEOF
 
10548
 
 
10549
fi
 
10550
done
 
10551
 
 
10552
 
 
10553
 
 
10554
for ac_func in memcpy memmove
 
10555
do
 
10556
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10557
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10558
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10559
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10561
else
 
10562
  cat >conftest.$ac_ext <<_ACEOF
 
10563
/* confdefs.h.  */
 
10564
_ACEOF
 
10565
cat confdefs.h >>conftest.$ac_ext
 
10566
cat >>conftest.$ac_ext <<_ACEOF
 
10567
/* end confdefs.h.  */
 
10568
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10569
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10570
#define $ac_func innocuous_$ac_func
 
10571
 
 
10572
/* System header to define __stub macros and hopefully few prototypes,
 
10573
    which can conflict with char $ac_func (); below.
 
10574
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10575
    <limits.h> exists even on freestanding compilers.  */
 
10576
 
 
10577
#ifdef __STDC__
 
10578
# include <limits.h>
 
10579
#else
 
10580
# include <assert.h>
 
10581
#endif
 
10582
 
 
10583
#undef $ac_func
 
10584
 
 
10585
/* Override any GCC internal prototype to avoid an error.
 
10586
   Use char because int might match the return type of a GCC
 
10587
   builtin and then its argument prototype would still apply.  */
 
10588
#ifdef __cplusplus
 
10589
extern "C"
 
10590
#endif
 
10591
char $ac_func ();
 
10592
/* The GNU C library defines this for functions which it implements
 
10593
    to always fail with ENOSYS.  Some functions are actually named
 
10594
    something starting with __ and the normal name is an alias.  */
 
10595
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10596
choke me
 
10597
#endif
 
10598
 
 
10599
int
 
10600
main ()
 
10601
{
 
10602
return $ac_func ();
 
10603
  ;
 
10604
  return 0;
 
10605
}
 
10606
_ACEOF
 
10607
rm -f conftest.$ac_objext conftest$ac_exeext
 
10608
if { (ac_try="$ac_link"
 
10609
case "(($ac_try" in
 
10610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10611
  *) ac_try_echo=$ac_try;;
 
10612
esac
 
10613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10614
  (eval "$ac_link") 2>conftest.er1
 
10615
  ac_status=$?
 
10616
  grep -v '^ *+' conftest.er1 >conftest.err
 
10617
  rm -f conftest.er1
 
10618
  cat conftest.err >&5
 
10619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10620
  (exit $ac_status); } && {
 
10621
         test -z "$ac_c_werror_flag" ||
 
10622
         test ! -s conftest.err
 
10623
       } && test -s conftest$ac_exeext &&
 
10624
       $as_test_x conftest$ac_exeext; then
 
10625
  eval "$as_ac_var=yes"
 
10626
else
 
10627
  echo "$as_me: failed program was:" >&5
 
10628
sed 's/^/| /' conftest.$ac_ext >&5
 
10629
 
 
10630
        eval "$as_ac_var=no"
 
10631
fi
 
10632
 
 
10633
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10634
      conftest$ac_exeext conftest.$ac_ext
 
10635
fi
 
10636
ac_res=`eval echo '${'$as_ac_var'}'`
 
10637
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10638
echo "${ECHO_T}$ac_res" >&6; }
 
10639
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10640
  cat >>confdefs.h <<_ACEOF
 
10641
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10642
_ACEOF
 
10643
 
 
10644
fi
 
10645
done
 
10646
 
 
10647
 
 
10648
 
 
10649
for ac_func in unlink fcntl
 
10650
do
 
10651
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10652
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10653
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10654
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10656
else
 
10657
  cat >conftest.$ac_ext <<_ACEOF
 
10658
/* confdefs.h.  */
 
10659
_ACEOF
 
10660
cat confdefs.h >>conftest.$ac_ext
 
10661
cat >>conftest.$ac_ext <<_ACEOF
 
10662
/* end confdefs.h.  */
 
10663
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10664
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10665
#define $ac_func innocuous_$ac_func
 
10666
 
 
10667
/* System header to define __stub macros and hopefully few prototypes,
 
10668
    which can conflict with char $ac_func (); below.
 
10669
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10670
    <limits.h> exists even on freestanding compilers.  */
 
10671
 
 
10672
#ifdef __STDC__
 
10673
# include <limits.h>
 
10674
#else
 
10675
# include <assert.h>
 
10676
#endif
 
10677
 
 
10678
#undef $ac_func
 
10679
 
 
10680
/* Override any GCC internal prototype to avoid an error.
 
10681
   Use char because int might match the return type of a GCC
 
10682
   builtin and then its argument prototype would still apply.  */
 
10683
#ifdef __cplusplus
 
10684
extern "C"
 
10685
#endif
 
10686
char $ac_func ();
 
10687
/* The GNU C library defines this for functions which it implements
 
10688
    to always fail with ENOSYS.  Some functions are actually named
 
10689
    something starting with __ and the normal name is an alias.  */
 
10690
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10691
choke me
 
10692
#endif
 
10693
 
 
10694
int
 
10695
main ()
 
10696
{
 
10697
return $ac_func ();
 
10698
  ;
 
10699
  return 0;
 
10700
}
 
10701
_ACEOF
 
10702
rm -f conftest.$ac_objext conftest$ac_exeext
 
10703
if { (ac_try="$ac_link"
 
10704
case "(($ac_try" in
 
10705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10706
  *) ac_try_echo=$ac_try;;
 
10707
esac
 
10708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10709
  (eval "$ac_link") 2>conftest.er1
 
10710
  ac_status=$?
 
10711
  grep -v '^ *+' conftest.er1 >conftest.err
 
10712
  rm -f conftest.er1
 
10713
  cat conftest.err >&5
 
10714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10715
  (exit $ac_status); } && {
 
10716
         test -z "$ac_c_werror_flag" ||
 
10717
         test ! -s conftest.err
 
10718
       } && test -s conftest$ac_exeext &&
 
10719
       $as_test_x conftest$ac_exeext; then
 
10720
  eval "$as_ac_var=yes"
 
10721
else
 
10722
  echo "$as_me: failed program was:" >&5
 
10723
sed 's/^/| /' conftest.$ac_ext >&5
 
10724
 
 
10725
        eval "$as_ac_var=no"
 
10726
fi
 
10727
 
 
10728
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10729
      conftest$ac_exeext conftest.$ac_ext
 
10730
fi
 
10731
ac_res=`eval echo '${'$as_ac_var'}'`
 
10732
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10733
echo "${ECHO_T}$ac_res" >&6; }
 
10734
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10735
  cat >>confdefs.h <<_ACEOF
 
10736
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10737
_ACEOF
 
10738
 
 
10739
fi
 
10740
done
 
10741
 
 
10742
 
 
10743
for ac_func in popen
 
10744
do
 
10745
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10746
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10747
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10748
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10750
else
 
10751
  cat >conftest.$ac_ext <<_ACEOF
 
10752
/* confdefs.h.  */
 
10753
_ACEOF
 
10754
cat confdefs.h >>conftest.$ac_ext
 
10755
cat >>conftest.$ac_ext <<_ACEOF
 
10756
/* end confdefs.h.  */
 
10757
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10758
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10759
#define $ac_func innocuous_$ac_func
 
10760
 
 
10761
/* System header to define __stub macros and hopefully few prototypes,
 
10762
    which can conflict with char $ac_func (); below.
 
10763
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10764
    <limits.h> exists even on freestanding compilers.  */
 
10765
 
 
10766
#ifdef __STDC__
 
10767
# include <limits.h>
 
10768
#else
 
10769
# include <assert.h>
 
10770
#endif
 
10771
 
 
10772
#undef $ac_func
 
10773
 
 
10774
/* Override any GCC internal prototype to avoid an error.
 
10775
   Use char because int might match the return type of a GCC
 
10776
   builtin and then its argument prototype would still apply.  */
 
10777
#ifdef __cplusplus
 
10778
extern "C"
 
10779
#endif
 
10780
char $ac_func ();
 
10781
/* The GNU C library defines this for functions which it implements
 
10782
    to always fail with ENOSYS.  Some functions are actually named
 
10783
    something starting with __ and the normal name is an alias.  */
 
10784
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10785
choke me
 
10786
#endif
 
10787
 
 
10788
int
 
10789
main ()
 
10790
{
 
10791
return $ac_func ();
 
10792
  ;
 
10793
  return 0;
 
10794
}
 
10795
_ACEOF
 
10796
rm -f conftest.$ac_objext conftest$ac_exeext
 
10797
if { (ac_try="$ac_link"
 
10798
case "(($ac_try" in
 
10799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10800
  *) ac_try_echo=$ac_try;;
 
10801
esac
 
10802
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10803
  (eval "$ac_link") 2>conftest.er1
 
10804
  ac_status=$?
 
10805
  grep -v '^ *+' conftest.er1 >conftest.err
 
10806
  rm -f conftest.er1
 
10807
  cat conftest.err >&5
 
10808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10809
  (exit $ac_status); } && {
 
10810
         test -z "$ac_c_werror_flag" ||
 
10811
         test ! -s conftest.err
 
10812
       } && test -s conftest$ac_exeext &&
 
10813
       $as_test_x conftest$ac_exeext; then
 
10814
  eval "$as_ac_var=yes"
 
10815
else
 
10816
  echo "$as_me: failed program was:" >&5
 
10817
sed 's/^/| /' conftest.$ac_ext >&5
 
10818
 
 
10819
        eval "$as_ac_var=no"
 
10820
fi
 
10821
 
 
10822
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10823
      conftest$ac_exeext conftest.$ac_ext
 
10824
fi
 
10825
ac_res=`eval echo '${'$as_ac_var'}'`
 
10826
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10827
echo "${ECHO_T}$ac_res" >&6; }
 
10828
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10829
  cat >>confdefs.h <<_ACEOF
 
10830
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10831
_ACEOF
 
10832
 
 
10833
fi
 
10834
done
 
10835
 
 
10836
 
 
10837
for ac_func in gettimeofday
 
10838
do
 
10839
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10840
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10841
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10842
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10844
else
 
10845
  cat >conftest.$ac_ext <<_ACEOF
 
10846
/* confdefs.h.  */
 
10847
_ACEOF
 
10848
cat confdefs.h >>conftest.$ac_ext
 
10849
cat >>conftest.$ac_ext <<_ACEOF
 
10850
/* end confdefs.h.  */
 
10851
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10852
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10853
#define $ac_func innocuous_$ac_func
 
10854
 
 
10855
/* System header to define __stub macros and hopefully few prototypes,
 
10856
    which can conflict with char $ac_func (); below.
 
10857
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10858
    <limits.h> exists even on freestanding compilers.  */
 
10859
 
 
10860
#ifdef __STDC__
 
10861
# include <limits.h>
 
10862
#else
 
10863
# include <assert.h>
 
10864
#endif
 
10865
 
 
10866
#undef $ac_func
 
10867
 
 
10868
/* Override any GCC internal prototype to avoid an error.
 
10869
   Use char because int might match the return type of a GCC
 
10870
   builtin and then its argument prototype would still apply.  */
 
10871
#ifdef __cplusplus
 
10872
extern "C"
 
10873
#endif
 
10874
char $ac_func ();
 
10875
/* The GNU C library defines this for functions which it implements
 
10876
    to always fail with ENOSYS.  Some functions are actually named
 
10877
    something starting with __ and the normal name is an alias.  */
 
10878
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10879
choke me
 
10880
#endif
 
10881
 
 
10882
int
 
10883
main ()
 
10884
{
 
10885
return $ac_func ();
 
10886
  ;
 
10887
  return 0;
 
10888
}
 
10889
_ACEOF
 
10890
rm -f conftest.$ac_objext conftest$ac_exeext
 
10891
if { (ac_try="$ac_link"
 
10892
case "(($ac_try" in
 
10893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10894
  *) ac_try_echo=$ac_try;;
 
10895
esac
 
10896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10897
  (eval "$ac_link") 2>conftest.er1
 
10898
  ac_status=$?
 
10899
  grep -v '^ *+' conftest.er1 >conftest.err
 
10900
  rm -f conftest.er1
 
10901
  cat conftest.err >&5
 
10902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10903
  (exit $ac_status); } && {
 
10904
         test -z "$ac_c_werror_flag" ||
 
10905
         test ! -s conftest.err
 
10906
       } && test -s conftest$ac_exeext &&
 
10907
       $as_test_x conftest$ac_exeext; then
 
10908
  eval "$as_ac_var=yes"
 
10909
else
 
10910
  echo "$as_me: failed program was:" >&5
 
10911
sed 's/^/| /' conftest.$ac_ext >&5
 
10912
 
 
10913
        eval "$as_ac_var=no"
 
10914
fi
 
10915
 
 
10916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10917
      conftest$ac_exeext conftest.$ac_ext
 
10918
fi
 
10919
ac_res=`eval echo '${'$as_ac_var'}'`
 
10920
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10921
echo "${ECHO_T}$ac_res" >&6; }
 
10922
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10923
  cat >>confdefs.h <<_ACEOF
 
10924
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10925
_ACEOF
 
10926
 
 
10927
fi
 
10928
done
 
10929
 
 
10930
 
 
10931
for ac_func in fnmatch
 
10932
do
 
10933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10934
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10936
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
10937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10938
else
 
10939
  cat >conftest.$ac_ext <<_ACEOF
 
10940
/* confdefs.h.  */
 
10941
_ACEOF
 
10942
cat confdefs.h >>conftest.$ac_ext
 
10943
cat >>conftest.$ac_ext <<_ACEOF
 
10944
/* end confdefs.h.  */
 
10945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
10946
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10947
#define $ac_func innocuous_$ac_func
 
10948
 
 
10949
/* System header to define __stub macros and hopefully few prototypes,
 
10950
    which can conflict with char $ac_func (); below.
 
10951
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10952
    <limits.h> exists even on freestanding compilers.  */
 
10953
 
 
10954
#ifdef __STDC__
 
10955
# include <limits.h>
 
10956
#else
 
10957
# include <assert.h>
 
10958
#endif
 
10959
 
 
10960
#undef $ac_func
 
10961
 
 
10962
/* Override any GCC internal prototype to avoid an error.
 
10963
   Use char because int might match the return type of a GCC
 
10964
   builtin and then its argument prototype would still apply.  */
 
10965
#ifdef __cplusplus
 
10966
extern "C"
 
10967
#endif
 
10968
char $ac_func ();
 
10969
/* The GNU C library defines this for functions which it implements
 
10970
    to always fail with ENOSYS.  Some functions are actually named
 
10971
    something starting with __ and the normal name is an alias.  */
 
10972
#if defined __stub_$ac_func || defined __stub___$ac_func
 
10973
choke me
 
10974
#endif
 
10975
 
 
10976
int
 
10977
main ()
 
10978
{
 
10979
return $ac_func ();
 
10980
  ;
 
10981
  return 0;
 
10982
}
 
10983
_ACEOF
 
10984
rm -f conftest.$ac_objext conftest$ac_exeext
 
10985
if { (ac_try="$ac_link"
 
10986
case "(($ac_try" in
 
10987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10988
  *) ac_try_echo=$ac_try;;
 
10989
esac
 
10990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10991
  (eval "$ac_link") 2>conftest.er1
 
10992
  ac_status=$?
 
10993
  grep -v '^ *+' conftest.er1 >conftest.err
 
10994
  rm -f conftest.er1
 
10995
  cat conftest.err >&5
 
10996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10997
  (exit $ac_status); } && {
 
10998
         test -z "$ac_c_werror_flag" ||
 
10999
         test ! -s conftest.err
 
11000
       } && test -s conftest$ac_exeext &&
 
11001
       $as_test_x conftest$ac_exeext; then
 
11002
  eval "$as_ac_var=yes"
 
11003
else
 
11004
  echo "$as_me: failed program was:" >&5
 
11005
sed 's/^/| /' conftest.$ac_ext >&5
 
11006
 
 
11007
        eval "$as_ac_var=no"
 
11008
fi
 
11009
 
 
11010
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11011
      conftest$ac_exeext conftest.$ac_ext
 
11012
fi
 
11013
ac_res=`eval echo '${'$as_ac_var'}'`
 
11014
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11015
echo "${ECHO_T}$ac_res" >&6; }
 
11016
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11017
  cat >>confdefs.h <<_ACEOF
 
11018
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11019
_ACEOF
 
11020
 
 
11021
fi
 
11022
done
 
11023
 
 
11024
 
 
11025
for ac_func in vsnprintf
 
11026
do
 
11027
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11028
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11029
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11030
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11032
else
 
11033
  cat >conftest.$ac_ext <<_ACEOF
 
11034
/* confdefs.h.  */
 
11035
_ACEOF
 
11036
cat confdefs.h >>conftest.$ac_ext
 
11037
cat >>conftest.$ac_ext <<_ACEOF
 
11038
/* end confdefs.h.  */
 
11039
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11040
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11041
#define $ac_func innocuous_$ac_func
 
11042
 
 
11043
/* System header to define __stub macros and hopefully few prototypes,
 
11044
    which can conflict with char $ac_func (); below.
 
11045
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11046
    <limits.h> exists even on freestanding compilers.  */
 
11047
 
 
11048
#ifdef __STDC__
 
11049
# include <limits.h>
 
11050
#else
 
11051
# include <assert.h>
 
11052
#endif
 
11053
 
 
11054
#undef $ac_func
 
11055
 
 
11056
/* Override any GCC internal prototype to avoid an error.
 
11057
   Use char because int might match the return type of a GCC
 
11058
   builtin and then its argument prototype would still apply.  */
 
11059
#ifdef __cplusplus
 
11060
extern "C"
 
11061
#endif
 
11062
char $ac_func ();
 
11063
/* The GNU C library defines this for functions which it implements
 
11064
    to always fail with ENOSYS.  Some functions are actually named
 
11065
    something starting with __ and the normal name is an alias.  */
 
11066
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11067
choke me
 
11068
#endif
 
11069
 
 
11070
int
 
11071
main ()
 
11072
{
 
11073
return $ac_func ();
 
11074
  ;
 
11075
  return 0;
 
11076
}
 
11077
_ACEOF
 
11078
rm -f conftest.$ac_objext conftest$ac_exeext
 
11079
if { (ac_try="$ac_link"
 
11080
case "(($ac_try" in
 
11081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11082
  *) ac_try_echo=$ac_try;;
 
11083
esac
 
11084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11085
  (eval "$ac_link") 2>conftest.er1
 
11086
  ac_status=$?
 
11087
  grep -v '^ *+' conftest.er1 >conftest.err
 
11088
  rm -f conftest.er1
 
11089
  cat conftest.err >&5
 
11090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11091
  (exit $ac_status); } && {
 
11092
         test -z "$ac_c_werror_flag" ||
 
11093
         test ! -s conftest.err
 
11094
       } && test -s conftest$ac_exeext &&
 
11095
       $as_test_x conftest$ac_exeext; then
 
11096
  eval "$as_ac_var=yes"
 
11097
else
 
11098
  echo "$as_me: failed program was:" >&5
 
11099
sed 's/^/| /' conftest.$ac_ext >&5
 
11100
 
 
11101
        eval "$as_ac_var=no"
 
11102
fi
 
11103
 
 
11104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11105
      conftest$ac_exeext conftest.$ac_ext
 
11106
fi
 
11107
ac_res=`eval echo '${'$as_ac_var'}'`
 
11108
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11109
echo "${ECHO_T}$ac_res" >&6; }
 
11110
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11111
  cat >>confdefs.h <<_ACEOF
 
11112
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11113
_ACEOF
 
11114
 
 
11115
fi
 
11116
done
 
11117
 
 
11118
 
 
11119
for ac_func in on_exit
 
11120
do
 
11121
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11122
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11123
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11124
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11126
else
 
11127
  cat >conftest.$ac_ext <<_ACEOF
 
11128
/* confdefs.h.  */
 
11129
_ACEOF
 
11130
cat confdefs.h >>conftest.$ac_ext
 
11131
cat >>conftest.$ac_ext <<_ACEOF
 
11132
/* end confdefs.h.  */
 
11133
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11134
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11135
#define $ac_func innocuous_$ac_func
 
11136
 
 
11137
/* System header to define __stub macros and hopefully few prototypes,
 
11138
    which can conflict with char $ac_func (); below.
 
11139
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11140
    <limits.h> exists even on freestanding compilers.  */
 
11141
 
 
11142
#ifdef __STDC__
 
11143
# include <limits.h>
 
11144
#else
 
11145
# include <assert.h>
 
11146
#endif
 
11147
 
 
11148
#undef $ac_func
 
11149
 
 
11150
/* Override any GCC internal prototype to avoid an error.
 
11151
   Use char because int might match the return type of a GCC
 
11152
   builtin and then its argument prototype would still apply.  */
 
11153
#ifdef __cplusplus
 
11154
extern "C"
 
11155
#endif
 
11156
char $ac_func ();
 
11157
/* The GNU C library defines this for functions which it implements
 
11158
    to always fail with ENOSYS.  Some functions are actually named
 
11159
    something starting with __ and the normal name is an alias.  */
 
11160
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11161
choke me
 
11162
#endif
 
11163
 
 
11164
int
 
11165
main ()
 
11166
{
 
11167
return $ac_func ();
 
11168
  ;
 
11169
  return 0;
 
11170
}
 
11171
_ACEOF
 
11172
rm -f conftest.$ac_objext conftest$ac_exeext
 
11173
if { (ac_try="$ac_link"
 
11174
case "(($ac_try" in
 
11175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11176
  *) ac_try_echo=$ac_try;;
 
11177
esac
 
11178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11179
  (eval "$ac_link") 2>conftest.er1
 
11180
  ac_status=$?
 
11181
  grep -v '^ *+' conftest.er1 >conftest.err
 
11182
  rm -f conftest.er1
 
11183
  cat conftest.err >&5
 
11184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11185
  (exit $ac_status); } && {
 
11186
         test -z "$ac_c_werror_flag" ||
 
11187
         test ! -s conftest.err
 
11188
       } && test -s conftest$ac_exeext &&
 
11189
       $as_test_x conftest$ac_exeext; then
 
11190
  eval "$as_ac_var=yes"
 
11191
else
 
11192
  echo "$as_me: failed program was:" >&5
 
11193
sed 's/^/| /' conftest.$ac_ext >&5
 
11194
 
 
11195
        eval "$as_ac_var=no"
 
11196
fi
 
11197
 
 
11198
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11199
      conftest$ac_exeext conftest.$ac_ext
 
11200
fi
 
11201
ac_res=`eval echo '${'$as_ac_var'}'`
 
11202
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11203
echo "${ECHO_T}$ac_res" >&6; }
 
11204
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11205
  cat >>confdefs.h <<_ACEOF
 
11206
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11207
_ACEOF
 
11208
 
 
11209
fi
 
11210
done
 
11211
 
 
11212
 
 
11213
for ac_func in strerror
 
11214
do
 
11215
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11216
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11217
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11218
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11220
else
 
11221
  cat >conftest.$ac_ext <<_ACEOF
 
11222
/* confdefs.h.  */
 
11223
_ACEOF
 
11224
cat confdefs.h >>conftest.$ac_ext
 
11225
cat >>conftest.$ac_ext <<_ACEOF
 
11226
/* end confdefs.h.  */
 
11227
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11228
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11229
#define $ac_func innocuous_$ac_func
 
11230
 
 
11231
/* System header to define __stub macros and hopefully few prototypes,
 
11232
    which can conflict with char $ac_func (); below.
 
11233
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11234
    <limits.h> exists even on freestanding compilers.  */
 
11235
 
 
11236
#ifdef __STDC__
 
11237
# include <limits.h>
 
11238
#else
 
11239
# include <assert.h>
 
11240
#endif
 
11241
 
 
11242
#undef $ac_func
 
11243
 
 
11244
/* Override any GCC internal prototype to avoid an error.
 
11245
   Use char because int might match the return type of a GCC
 
11246
   builtin and then its argument prototype would still apply.  */
 
11247
#ifdef __cplusplus
 
11248
extern "C"
 
11249
#endif
 
11250
char $ac_func ();
 
11251
/* The GNU C library defines this for functions which it implements
 
11252
    to always fail with ENOSYS.  Some functions are actually named
 
11253
    something starting with __ and the normal name is an alias.  */
 
11254
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11255
choke me
 
11256
#endif
 
11257
 
 
11258
int
 
11259
main ()
 
11260
{
 
11261
return $ac_func ();
 
11262
  ;
 
11263
  return 0;
 
11264
}
 
11265
_ACEOF
 
11266
rm -f conftest.$ac_objext conftest$ac_exeext
 
11267
if { (ac_try="$ac_link"
 
11268
case "(($ac_try" in
 
11269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11270
  *) ac_try_echo=$ac_try;;
 
11271
esac
 
11272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11273
  (eval "$ac_link") 2>conftest.er1
 
11274
  ac_status=$?
 
11275
  grep -v '^ *+' conftest.er1 >conftest.err
 
11276
  rm -f conftest.er1
 
11277
  cat conftest.err >&5
 
11278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11279
  (exit $ac_status); } && {
 
11280
         test -z "$ac_c_werror_flag" ||
 
11281
         test ! -s conftest.err
 
11282
       } && test -s conftest$ac_exeext &&
 
11283
       $as_test_x conftest$ac_exeext; then
 
11284
  eval "$as_ac_var=yes"
 
11285
else
 
11286
  echo "$as_me: failed program was:" >&5
 
11287
sed 's/^/| /' conftest.$ac_ext >&5
 
11288
 
 
11289
        eval "$as_ac_var=no"
 
11290
fi
 
11291
 
 
11292
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11293
      conftest$ac_exeext conftest.$ac_ext
 
11294
fi
 
11295
ac_res=`eval echo '${'$as_ac_var'}'`
 
11296
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11297
echo "${ECHO_T}$ac_res" >&6; }
 
11298
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11299
  cat >>confdefs.h <<_ACEOF
 
11300
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11301
_ACEOF
 
11302
 
 
11303
fi
 
11304
done
 
11305
 
 
11306
if test "$ac_cv_func_strerror" = no; then
 
11307
  { echo "$as_me:$LINENO: checking for sys_errlist declaration in stdio.h" >&5
 
11308
echo $ECHO_N "checking for sys_errlist declaration in stdio.h... $ECHO_C" >&6; }
 
11309
if test "${ac_cv_sys_errlist_decl+set}" = set; then
 
11310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11311
else
 
11312
  cat >conftest.$ac_ext <<_ACEOF
 
11313
/* confdefs.h.  */
 
11314
_ACEOF
 
11315
cat confdefs.h >>conftest.$ac_ext
 
11316
cat >>conftest.$ac_ext <<_ACEOF
 
11317
/* end confdefs.h.  */
 
11318
#include <stdio.h>
 
11319
 
 
11320
_ACEOF
 
11321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11322
  $EGREP "sys_errlist" >/dev/null 2>&1; then
 
11323
  ac_cv_sys_errlist_decl="yes"
 
11324
else
 
11325
  ac_cv_sys_errlist_decl="no"
 
11326
fi
 
11327
rm -f conftest*
 
11328
 
 
11329
fi
 
11330
{ echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_decl" >&5
 
11331
echo "${ECHO_T}$ac_cv_sys_errlist_decl" >&6; }
 
11332
  if test "$ac_cv_sys_errlist_decl" = yes; then
 
11333
    cat >>confdefs.h <<\_ACEOF
 
11334
#define HAVE_SYS_ERRLIST_DECL 1
 
11335
_ACEOF
 
11336
 
 
11337
  fi
 
11338
fi
 
11339
 
 
11340
 
 
11341
ice_tr=`echo drand48 | tr '[a-z]' '[A-Z]'`
 
11342
ice_have_tr=HAVE_$ice_tr
 
11343
ice_have_decl_tr=${ice_have_tr}_DECL
 
11344
ice_have_drand48=no
 
11345
 
 
11346
for ac_func in drand48
 
11347
do
 
11348
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11349
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11350
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11351
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11353
else
 
11354
  cat >conftest.$ac_ext <<_ACEOF
 
11355
/* confdefs.h.  */
 
11356
_ACEOF
 
11357
cat confdefs.h >>conftest.$ac_ext
 
11358
cat >>conftest.$ac_ext <<_ACEOF
 
11359
/* end confdefs.h.  */
 
11360
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11361
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11362
#define $ac_func innocuous_$ac_func
 
11363
 
 
11364
/* System header to define __stub macros and hopefully few prototypes,
 
11365
    which can conflict with char $ac_func (); below.
 
11366
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11367
    <limits.h> exists even on freestanding compilers.  */
 
11368
 
 
11369
#ifdef __STDC__
 
11370
# include <limits.h>
 
11371
#else
 
11372
# include <assert.h>
 
11373
#endif
 
11374
 
 
11375
#undef $ac_func
 
11376
 
 
11377
/* Override any GCC internal prototype to avoid an error.
 
11378
   Use char because int might match the return type of a GCC
 
11379
   builtin and then its argument prototype would still apply.  */
 
11380
#ifdef __cplusplus
 
11381
extern "C"
 
11382
#endif
 
11383
char $ac_func ();
 
11384
/* The GNU C library defines this for functions which it implements
 
11385
    to always fail with ENOSYS.  Some functions are actually named
 
11386
    something starting with __ and the normal name is an alias.  */
 
11387
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11388
choke me
 
11389
#endif
 
11390
 
 
11391
int
 
11392
main ()
 
11393
{
 
11394
return $ac_func ();
 
11395
  ;
 
11396
  return 0;
 
11397
}
 
11398
_ACEOF
 
11399
rm -f conftest.$ac_objext conftest$ac_exeext
 
11400
if { (ac_try="$ac_link"
 
11401
case "(($ac_try" in
 
11402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11403
  *) ac_try_echo=$ac_try;;
 
11404
esac
 
11405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11406
  (eval "$ac_link") 2>conftest.er1
 
11407
  ac_status=$?
 
11408
  grep -v '^ *+' conftest.er1 >conftest.err
 
11409
  rm -f conftest.er1
 
11410
  cat conftest.err >&5
 
11411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11412
  (exit $ac_status); } && {
 
11413
         test -z "$ac_c_werror_flag" ||
 
11414
         test ! -s conftest.err
 
11415
       } && test -s conftest$ac_exeext &&
 
11416
       $as_test_x conftest$ac_exeext; then
 
11417
  eval "$as_ac_var=yes"
 
11418
else
 
11419
  echo "$as_me: failed program was:" >&5
 
11420
sed 's/^/| /' conftest.$ac_ext >&5
 
11421
 
 
11422
        eval "$as_ac_var=no"
 
11423
fi
 
11424
 
 
11425
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11426
      conftest$ac_exeext conftest.$ac_ext
 
11427
fi
 
11428
ac_res=`eval echo '${'$as_ac_var'}'`
 
11429
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11430
echo "${ECHO_T}$ac_res" >&6; }
 
11431
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11432
  cat >>confdefs.h <<_ACEOF
 
11433
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11434
_ACEOF
 
11435
 ice_have_drand48=yes
 
11436
fi
 
11437
done
 
11438
 
 
11439
if test "${ice_have_drand48}" = yes; then
 
11440
{ echo "$as_me:$LINENO: checking for drand48 declaration in stdlib.h" >&5
 
11441
echo $ECHO_N "checking for drand48 declaration in stdlib.h... $ECHO_C" >&6; }
 
11442
if test "${ice_cv_have_drand48_decl+set}" = set; then
 
11443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11444
else
 
11445
 
 
11446
ice_cv_have_drand48_decl=no
 
11447
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
11448
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
11449
for header in stdlib.h; do
 
11450
# Check for ordinary declaration
 
11451
cat >conftest.$ac_ext <<_ACEOF
 
11452
/* confdefs.h.  */
 
11453
_ACEOF
 
11454
cat confdefs.h >>conftest.$ac_ext
 
11455
cat >>conftest.$ac_ext <<_ACEOF
 
11456
/* end confdefs.h.  */
 
11457
#include <$header>
 
11458
 
 
11459
_ACEOF
 
11460
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11461
  $EGREP "${ice_re_word}drand48 *\(" >/dev/null 2>&1; then
 
11462
  ice_cv_have_drand48_decl=yes
 
11463
fi
 
11464
rm -f conftest*
 
11465
 
 
11466
if test "$ice_cv_have_drand48_decl" = yes; then
 
11467
        break
 
11468
fi
 
11469
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
11470
cat >conftest.$ac_ext <<_ACEOF
 
11471
/* confdefs.h.  */
 
11472
_ACEOF
 
11473
cat confdefs.h >>conftest.$ac_ext
 
11474
cat >>conftest.$ac_ext <<_ACEOF
 
11475
/* end confdefs.h.  */
 
11476
#include <$header>
 
11477
 
 
11478
_ACEOF
 
11479
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11480
  $EGREP "${ice_re_word}drand48 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
11481
  ice_cv_have_drand48_decl=yes
 
11482
fi
 
11483
rm -f conftest*
 
11484
 
 
11485
if test "$ice_cv_have_drand48_decl" = yes; then
 
11486
        break
 
11487
fi
 
11488
done
 
11489
 
 
11490
fi
 
11491
 
 
11492
{ echo "$as_me:$LINENO: result: $ice_cv_have_drand48_decl" >&5
 
11493
echo "${ECHO_T}$ice_cv_have_drand48_decl" >&6; }
 
11494
if test "$ice_cv_have_drand48_decl" = yes; then
 
11495
cat >>confdefs.h <<_ACEOF
 
11496
#define ${ice_have_decl_tr} 1
 
11497
_ACEOF
 
11498
 
 
11499
fi
 
11500
fi
 
11501
 
 
11502
 
 
11503
 
 
11504
for ac_func in setlocale
 
11505
do
 
11506
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11507
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11508
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11509
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11511
else
 
11512
  cat >conftest.$ac_ext <<_ACEOF
 
11513
/* confdefs.h.  */
 
11514
_ACEOF
 
11515
cat confdefs.h >>conftest.$ac_ext
 
11516
cat >>conftest.$ac_ext <<_ACEOF
 
11517
/* end confdefs.h.  */
 
11518
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11519
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11520
#define $ac_func innocuous_$ac_func
 
11521
 
 
11522
/* System header to define __stub macros and hopefully few prototypes,
 
11523
    which can conflict with char $ac_func (); below.
 
11524
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11525
    <limits.h> exists even on freestanding compilers.  */
 
11526
 
 
11527
#ifdef __STDC__
 
11528
# include <limits.h>
 
11529
#else
 
11530
# include <assert.h>
 
11531
#endif
 
11532
 
 
11533
#undef $ac_func
 
11534
 
 
11535
/* Override any GCC internal prototype to avoid an error.
 
11536
   Use char because int might match the return type of a GCC
 
11537
   builtin and then its argument prototype would still apply.  */
 
11538
#ifdef __cplusplus
 
11539
extern "C"
 
11540
#endif
 
11541
char $ac_func ();
 
11542
/* The GNU C library defines this for functions which it implements
 
11543
    to always fail with ENOSYS.  Some functions are actually named
 
11544
    something starting with __ and the normal name is an alias.  */
 
11545
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11546
choke me
 
11547
#endif
 
11548
 
 
11549
int
 
11550
main ()
 
11551
{
 
11552
return $ac_func ();
 
11553
  ;
 
11554
  return 0;
 
11555
}
 
11556
_ACEOF
 
11557
rm -f conftest.$ac_objext conftest$ac_exeext
 
11558
if { (ac_try="$ac_link"
 
11559
case "(($ac_try" in
 
11560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11561
  *) ac_try_echo=$ac_try;;
 
11562
esac
 
11563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11564
  (eval "$ac_link") 2>conftest.er1
 
11565
  ac_status=$?
 
11566
  grep -v '^ *+' conftest.er1 >conftest.err
 
11567
  rm -f conftest.er1
 
11568
  cat conftest.err >&5
 
11569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11570
  (exit $ac_status); } && {
 
11571
         test -z "$ac_c_werror_flag" ||
 
11572
         test ! -s conftest.err
 
11573
       } && test -s conftest$ac_exeext &&
 
11574
       $as_test_x conftest$ac_exeext; then
 
11575
  eval "$as_ac_var=yes"
 
11576
else
 
11577
  echo "$as_me: failed program was:" >&5
 
11578
sed 's/^/| /' conftest.$ac_ext >&5
 
11579
 
 
11580
        eval "$as_ac_var=no"
 
11581
fi
 
11582
 
 
11583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11584
      conftest$ac_exeext conftest.$ac_ext
 
11585
fi
 
11586
ac_res=`eval echo '${'$as_ac_var'}'`
 
11587
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11588
echo "${ECHO_T}$ac_res" >&6; }
 
11589
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11590
  cat >>confdefs.h <<_ACEOF
 
11591
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11592
_ACEOF
 
11593
 
 
11594
fi
 
11595
done
 
11596
 
 
11597
 
 
11598
 
 
11599
{ echo "$as_me:$LINENO: checking whether realloc is buggy" >&5
 
11600
echo $ECHO_N "checking whether realloc is buggy... $ECHO_C" >&6; }
 
11601
if test "${ac_cv_c_realloc_bug+set}" = set; then
 
11602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11603
else
 
11604
  if test "$cross_compiling" = yes; then
 
11605
  ac_cv_c_realloc_bug="yes"
 
11606
else
 
11607
  cat >conftest.$ac_ext <<_ACEOF
 
11608
/* confdefs.h.  */
 
11609
_ACEOF
 
11610
cat confdefs.h >>conftest.$ac_ext
 
11611
cat >>conftest.$ac_ext <<_ACEOF
 
11612
/* end confdefs.h.  */
 
11613
 
 
11614
#include <stdio.h>
 
11615
#include <stdlib.h>
 
11616
int main(void) {
 
11617
  void *ptr;
 
11618
  ptr = NULL;
 
11619
  ptr = realloc(ptr, 1);
 
11620
  exit(ptr == NULL);
 
11621
}
 
11622
_ACEOF
 
11623
rm -f conftest$ac_exeext
 
11624
if { (ac_try="$ac_link"
 
11625
case "(($ac_try" in
 
11626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11627
  *) ac_try_echo=$ac_try;;
 
11628
esac
 
11629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11630
  (eval "$ac_link") 2>&5
 
11631
  ac_status=$?
 
11632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11633
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11634
  { (case "(($ac_try" in
 
11635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11636
  *) ac_try_echo=$ac_try;;
 
11637
esac
 
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11639
  (eval "$ac_try") 2>&5
 
11640
  ac_status=$?
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); }; }; then
 
11643
  ac_cv_c_realloc_bug="no"
 
11644
else
 
11645
  echo "$as_me: program exited with status $ac_status" >&5
 
11646
echo "$as_me: failed program was:" >&5
 
11647
sed 's/^/| /' conftest.$ac_ext >&5
 
11648
 
 
11649
( exit $ac_status )
 
11650
ac_cv_c_realloc_bug="yes"
 
11651
fi
 
11652
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11653
fi
 
11654
 
 
11655
 
 
11656
fi
 
11657
{ echo "$as_me:$LINENO: result: $ac_cv_c_realloc_bug" >&5
 
11658
echo "${ECHO_T}$ac_cv_c_realloc_bug" >&6; }
 
11659
if test "$ac_cv_c_realloc_bug" = "yes"
 
11660
  then
 
11661
    :
 
11662
    cat >>confdefs.h <<\_ACEOF
 
11663
#define REALLOC_IS_BUGGY 1
 
11664
_ACEOF
 
11665
 
 
11666
  else
 
11667
    :
 
11668
 
 
11669
fi
 
11670
 
 
11671
 
 
11672
 
 
11673
{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
 
11674
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
 
11675
if test "${ac_cv_lib_m_sin+set}" = set; then
 
11676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11677
else
 
11678
  ac_check_lib_save_LIBS=$LIBS
 
11679
LIBS="-lm  $LIBS"
 
11680
cat >conftest.$ac_ext <<_ACEOF
 
11681
/* confdefs.h.  */
 
11682
_ACEOF
 
11683
cat confdefs.h >>conftest.$ac_ext
 
11684
cat >>conftest.$ac_ext <<_ACEOF
 
11685
/* end confdefs.h.  */
 
11686
 
 
11687
/* Override any GCC internal prototype to avoid an error.
 
11688
   Use char because int might match the return type of a GCC
 
11689
   builtin and then its argument prototype would still apply.  */
 
11690
#ifdef __cplusplus
 
11691
extern "C"
 
11692
#endif
 
11693
char sin ();
 
11694
int
 
11695
main ()
 
11696
{
 
11697
return sin ();
 
11698
  ;
 
11699
  return 0;
 
11700
}
 
11701
_ACEOF
 
11702
rm -f conftest.$ac_objext conftest$ac_exeext
 
11703
if { (ac_try="$ac_link"
 
11704
case "(($ac_try" in
 
11705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11706
  *) ac_try_echo=$ac_try;;
 
11707
esac
 
11708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11709
  (eval "$ac_link") 2>conftest.er1
 
11710
  ac_status=$?
 
11711
  grep -v '^ *+' conftest.er1 >conftest.err
 
11712
  rm -f conftest.er1
 
11713
  cat conftest.err >&5
 
11714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11715
  (exit $ac_status); } && {
 
11716
         test -z "$ac_c_werror_flag" ||
 
11717
         test ! -s conftest.err
 
11718
       } && test -s conftest$ac_exeext &&
 
11719
       $as_test_x conftest$ac_exeext; then
 
11720
  ac_cv_lib_m_sin=yes
 
11721
else
 
11722
  echo "$as_me: failed program was:" >&5
 
11723
sed 's/^/| /' conftest.$ac_ext >&5
 
11724
 
 
11725
        ac_cv_lib_m_sin=no
 
11726
fi
 
11727
 
 
11728
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11729
      conftest$ac_exeext conftest.$ac_ext
 
11730
LIBS=$ac_check_lib_save_LIBS
 
11731
fi
 
11732
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
 
11733
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
 
11734
if test $ac_cv_lib_m_sin = yes; then
 
11735
  cat >>confdefs.h <<_ACEOF
 
11736
#define HAVE_LIBM 1
 
11737
_ACEOF
 
11738
 
 
11739
  LIBS="-lm $LIBS"
 
11740
 
 
11741
fi
 
11742
 
 
11743
 
 
11744
 
 
11745
ice_tr=`echo hypot | tr '[a-z]' '[A-Z]'`
 
11746
ice_have_tr=HAVE_$ice_tr
 
11747
ice_have_decl_tr=${ice_have_tr}_DECL
 
11748
ice_have_hypot=no
 
11749
 
 
11750
for ac_func in hypot
 
11751
do
 
11752
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11753
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11754
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11755
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11757
else
 
11758
  cat >conftest.$ac_ext <<_ACEOF
 
11759
/* confdefs.h.  */
 
11760
_ACEOF
 
11761
cat confdefs.h >>conftest.$ac_ext
 
11762
cat >>conftest.$ac_ext <<_ACEOF
 
11763
/* end confdefs.h.  */
 
11764
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11765
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11766
#define $ac_func innocuous_$ac_func
 
11767
 
 
11768
/* System header to define __stub macros and hopefully few prototypes,
 
11769
    which can conflict with char $ac_func (); below.
 
11770
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11771
    <limits.h> exists even on freestanding compilers.  */
 
11772
 
 
11773
#ifdef __STDC__
 
11774
# include <limits.h>
 
11775
#else
 
11776
# include <assert.h>
 
11777
#endif
 
11778
 
 
11779
#undef $ac_func
 
11780
 
 
11781
/* Override any GCC internal prototype to avoid an error.
 
11782
   Use char because int might match the return type of a GCC
 
11783
   builtin and then its argument prototype would still apply.  */
 
11784
#ifdef __cplusplus
 
11785
extern "C"
 
11786
#endif
 
11787
char $ac_func ();
 
11788
/* The GNU C library defines this for functions which it implements
 
11789
    to always fail with ENOSYS.  Some functions are actually named
 
11790
    something starting with __ and the normal name is an alias.  */
 
11791
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11792
choke me
 
11793
#endif
 
11794
 
 
11795
int
 
11796
main ()
 
11797
{
 
11798
return $ac_func ();
 
11799
  ;
 
11800
  return 0;
 
11801
}
 
11802
_ACEOF
 
11803
rm -f conftest.$ac_objext conftest$ac_exeext
 
11804
if { (ac_try="$ac_link"
 
11805
case "(($ac_try" in
 
11806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11807
  *) ac_try_echo=$ac_try;;
 
11808
esac
 
11809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11810
  (eval "$ac_link") 2>conftest.er1
 
11811
  ac_status=$?
 
11812
  grep -v '^ *+' conftest.er1 >conftest.err
 
11813
  rm -f conftest.er1
 
11814
  cat conftest.err >&5
 
11815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11816
  (exit $ac_status); } && {
 
11817
         test -z "$ac_c_werror_flag" ||
 
11818
         test ! -s conftest.err
 
11819
       } && test -s conftest$ac_exeext &&
 
11820
       $as_test_x conftest$ac_exeext; then
 
11821
  eval "$as_ac_var=yes"
 
11822
else
 
11823
  echo "$as_me: failed program was:" >&5
 
11824
sed 's/^/| /' conftest.$ac_ext >&5
 
11825
 
 
11826
        eval "$as_ac_var=no"
 
11827
fi
 
11828
 
 
11829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11830
      conftest$ac_exeext conftest.$ac_ext
 
11831
fi
 
11832
ac_res=`eval echo '${'$as_ac_var'}'`
 
11833
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11834
echo "${ECHO_T}$ac_res" >&6; }
 
11835
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11836
  cat >>confdefs.h <<_ACEOF
 
11837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11838
_ACEOF
 
11839
 ice_have_hypot=yes
 
11840
fi
 
11841
done
 
11842
 
 
11843
if test "${ice_have_hypot}" = yes; then
 
11844
{ echo "$as_me:$LINENO: checking for hypot declaration in math.h" >&5
 
11845
echo $ECHO_N "checking for hypot declaration in math.h... $ECHO_C" >&6; }
 
11846
if test "${ice_cv_have_hypot_decl+set}" = set; then
 
11847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11848
else
 
11849
 
 
11850
ice_cv_have_hypot_decl=no
 
11851
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
11852
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
11853
for header in math.h; do
 
11854
# Check for ordinary declaration
 
11855
cat >conftest.$ac_ext <<_ACEOF
 
11856
/* confdefs.h.  */
 
11857
_ACEOF
 
11858
cat confdefs.h >>conftest.$ac_ext
 
11859
cat >>conftest.$ac_ext <<_ACEOF
 
11860
/* end confdefs.h.  */
 
11861
#include <$header>
 
11862
 
 
11863
_ACEOF
 
11864
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11865
  $EGREP "${ice_re_word}hypot *\(" >/dev/null 2>&1; then
 
11866
  ice_cv_have_hypot_decl=yes
 
11867
fi
 
11868
rm -f conftest*
 
11869
 
 
11870
if test "$ice_cv_have_hypot_decl" = yes; then
 
11871
        break
 
11872
fi
 
11873
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
11874
cat >conftest.$ac_ext <<_ACEOF
 
11875
/* confdefs.h.  */
 
11876
_ACEOF
 
11877
cat confdefs.h >>conftest.$ac_ext
 
11878
cat >>conftest.$ac_ext <<_ACEOF
 
11879
/* end confdefs.h.  */
 
11880
#include <$header>
 
11881
 
 
11882
_ACEOF
 
11883
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11884
  $EGREP "${ice_re_word}hypot *$ice_re_params\(\(" >/dev/null 2>&1; then
 
11885
  ice_cv_have_hypot_decl=yes
 
11886
fi
 
11887
rm -f conftest*
 
11888
 
 
11889
if test "$ice_cv_have_hypot_decl" = yes; then
 
11890
        break
 
11891
fi
 
11892
done
 
11893
 
 
11894
fi
 
11895
 
 
11896
{ echo "$as_me:$LINENO: result: $ice_cv_have_hypot_decl" >&5
 
11897
echo "${ECHO_T}$ice_cv_have_hypot_decl" >&6; }
 
11898
if test "$ice_cv_have_hypot_decl" = yes; then
 
11899
cat >>confdefs.h <<_ACEOF
 
11900
#define ${ice_have_decl_tr} 1
 
11901
_ACEOF
 
11902
 
 
11903
fi
 
11904
fi
 
11905
 
 
11906
 
 
11907
ice_tr=`echo rint | tr '[a-z]' '[A-Z]'`
 
11908
ice_have_tr=HAVE_$ice_tr
 
11909
ice_have_decl_tr=${ice_have_tr}_DECL
 
11910
ice_have_rint=no
 
11911
 
 
11912
for ac_func in rint
 
11913
do
 
11914
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11915
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11916
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11917
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
11918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11919
else
 
11920
  cat >conftest.$ac_ext <<_ACEOF
 
11921
/* confdefs.h.  */
 
11922
_ACEOF
 
11923
cat confdefs.h >>conftest.$ac_ext
 
11924
cat >>conftest.$ac_ext <<_ACEOF
 
11925
/* end confdefs.h.  */
 
11926
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11927
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11928
#define $ac_func innocuous_$ac_func
 
11929
 
 
11930
/* System header to define __stub macros and hopefully few prototypes,
 
11931
    which can conflict with char $ac_func (); below.
 
11932
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11933
    <limits.h> exists even on freestanding compilers.  */
 
11934
 
 
11935
#ifdef __STDC__
 
11936
# include <limits.h>
 
11937
#else
 
11938
# include <assert.h>
 
11939
#endif
 
11940
 
 
11941
#undef $ac_func
 
11942
 
 
11943
/* Override any GCC internal prototype to avoid an error.
 
11944
   Use char because int might match the return type of a GCC
 
11945
   builtin and then its argument prototype would still apply.  */
 
11946
#ifdef __cplusplus
 
11947
extern "C"
 
11948
#endif
 
11949
char $ac_func ();
 
11950
/* The GNU C library defines this for functions which it implements
 
11951
    to always fail with ENOSYS.  Some functions are actually named
 
11952
    something starting with __ and the normal name is an alias.  */
 
11953
#if defined __stub_$ac_func || defined __stub___$ac_func
 
11954
choke me
 
11955
#endif
 
11956
 
 
11957
int
 
11958
main ()
 
11959
{
 
11960
return $ac_func ();
 
11961
  ;
 
11962
  return 0;
 
11963
}
 
11964
_ACEOF
 
11965
rm -f conftest.$ac_objext conftest$ac_exeext
 
11966
if { (ac_try="$ac_link"
 
11967
case "(($ac_try" in
 
11968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11969
  *) ac_try_echo=$ac_try;;
 
11970
esac
 
11971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11972
  (eval "$ac_link") 2>conftest.er1
 
11973
  ac_status=$?
 
11974
  grep -v '^ *+' conftest.er1 >conftest.err
 
11975
  rm -f conftest.er1
 
11976
  cat conftest.err >&5
 
11977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11978
  (exit $ac_status); } && {
 
11979
         test -z "$ac_c_werror_flag" ||
 
11980
         test ! -s conftest.err
 
11981
       } && test -s conftest$ac_exeext &&
 
11982
       $as_test_x conftest$ac_exeext; then
 
11983
  eval "$as_ac_var=yes"
 
11984
else
 
11985
  echo "$as_me: failed program was:" >&5
 
11986
sed 's/^/| /' conftest.$ac_ext >&5
 
11987
 
 
11988
        eval "$as_ac_var=no"
 
11989
fi
 
11990
 
 
11991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11992
      conftest$ac_exeext conftest.$ac_ext
 
11993
fi
 
11994
ac_res=`eval echo '${'$as_ac_var'}'`
 
11995
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11996
echo "${ECHO_T}$ac_res" >&6; }
 
11997
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11998
  cat >>confdefs.h <<_ACEOF
 
11999
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12000
_ACEOF
 
12001
 ice_have_rint=yes
 
12002
fi
 
12003
done
 
12004
 
 
12005
if test "${ice_have_rint}" = yes; then
 
12006
{ echo "$as_me:$LINENO: checking for rint declaration in math.h" >&5
 
12007
echo $ECHO_N "checking for rint declaration in math.h... $ECHO_C" >&6; }
 
12008
if test "${ice_cv_have_rint_decl+set}" = set; then
 
12009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12010
else
 
12011
 
 
12012
ice_cv_have_rint_decl=no
 
12013
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12014
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12015
for header in math.h; do
 
12016
# Check for ordinary declaration
 
12017
cat >conftest.$ac_ext <<_ACEOF
 
12018
/* confdefs.h.  */
 
12019
_ACEOF
 
12020
cat confdefs.h >>conftest.$ac_ext
 
12021
cat >>conftest.$ac_ext <<_ACEOF
 
12022
/* end confdefs.h.  */
 
12023
#include <$header>
 
12024
 
 
12025
_ACEOF
 
12026
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12027
  $EGREP "${ice_re_word}rint *\(" >/dev/null 2>&1; then
 
12028
  ice_cv_have_rint_decl=yes
 
12029
fi
 
12030
rm -f conftest*
 
12031
 
 
12032
if test "$ice_cv_have_rint_decl" = yes; then
 
12033
        break
 
12034
fi
 
12035
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12036
cat >conftest.$ac_ext <<_ACEOF
 
12037
/* confdefs.h.  */
 
12038
_ACEOF
 
12039
cat confdefs.h >>conftest.$ac_ext
 
12040
cat >>conftest.$ac_ext <<_ACEOF
 
12041
/* end confdefs.h.  */
 
12042
#include <$header>
 
12043
 
 
12044
_ACEOF
 
12045
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12046
  $EGREP "${ice_re_word}rint *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12047
  ice_cv_have_rint_decl=yes
 
12048
fi
 
12049
rm -f conftest*
 
12050
 
 
12051
if test "$ice_cv_have_rint_decl" = yes; then
 
12052
        break
 
12053
fi
 
12054
done
 
12055
 
 
12056
fi
 
12057
 
 
12058
{ echo "$as_me:$LINENO: result: $ice_cv_have_rint_decl" >&5
 
12059
echo "${ECHO_T}$ice_cv_have_rint_decl" >&6; }
 
12060
if test "$ice_cv_have_rint_decl" = yes; then
 
12061
cat >>confdefs.h <<_ACEOF
 
12062
#define ${ice_have_decl_tr} 1
 
12063
_ACEOF
 
12064
 
 
12065
fi
 
12066
fi
 
12067
 
 
12068
 
 
12069
ice_tr=`echo cbrt | tr '[a-z]' '[A-Z]'`
 
12070
ice_have_tr=HAVE_$ice_tr
 
12071
ice_have_decl_tr=${ice_have_tr}_DECL
 
12072
ice_have_cbrt=no
 
12073
 
 
12074
for ac_func in cbrt
 
12075
do
 
12076
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12077
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12078
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12079
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12081
else
 
12082
  cat >conftest.$ac_ext <<_ACEOF
 
12083
/* confdefs.h.  */
 
12084
_ACEOF
 
12085
cat confdefs.h >>conftest.$ac_ext
 
12086
cat >>conftest.$ac_ext <<_ACEOF
 
12087
/* end confdefs.h.  */
 
12088
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12089
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12090
#define $ac_func innocuous_$ac_func
 
12091
 
 
12092
/* System header to define __stub macros and hopefully few prototypes,
 
12093
    which can conflict with char $ac_func (); below.
 
12094
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12095
    <limits.h> exists even on freestanding compilers.  */
 
12096
 
 
12097
#ifdef __STDC__
 
12098
# include <limits.h>
 
12099
#else
 
12100
# include <assert.h>
 
12101
#endif
 
12102
 
 
12103
#undef $ac_func
 
12104
 
 
12105
/* Override any GCC internal prototype to avoid an error.
 
12106
   Use char because int might match the return type of a GCC
 
12107
   builtin and then its argument prototype would still apply.  */
 
12108
#ifdef __cplusplus
 
12109
extern "C"
 
12110
#endif
 
12111
char $ac_func ();
 
12112
/* The GNU C library defines this for functions which it implements
 
12113
    to always fail with ENOSYS.  Some functions are actually named
 
12114
    something starting with __ and the normal name is an alias.  */
 
12115
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12116
choke me
 
12117
#endif
 
12118
 
 
12119
int
 
12120
main ()
 
12121
{
 
12122
return $ac_func ();
 
12123
  ;
 
12124
  return 0;
 
12125
}
 
12126
_ACEOF
 
12127
rm -f conftest.$ac_objext conftest$ac_exeext
 
12128
if { (ac_try="$ac_link"
 
12129
case "(($ac_try" in
 
12130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12131
  *) ac_try_echo=$ac_try;;
 
12132
esac
 
12133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12134
  (eval "$ac_link") 2>conftest.er1
 
12135
  ac_status=$?
 
12136
  grep -v '^ *+' conftest.er1 >conftest.err
 
12137
  rm -f conftest.er1
 
12138
  cat conftest.err >&5
 
12139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12140
  (exit $ac_status); } && {
 
12141
         test -z "$ac_c_werror_flag" ||
 
12142
         test ! -s conftest.err
 
12143
       } && test -s conftest$ac_exeext &&
 
12144
       $as_test_x conftest$ac_exeext; then
 
12145
  eval "$as_ac_var=yes"
 
12146
else
 
12147
  echo "$as_me: failed program was:" >&5
 
12148
sed 's/^/| /' conftest.$ac_ext >&5
 
12149
 
 
12150
        eval "$as_ac_var=no"
 
12151
fi
 
12152
 
 
12153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12154
      conftest$ac_exeext conftest.$ac_ext
 
12155
fi
 
12156
ac_res=`eval echo '${'$as_ac_var'}'`
 
12157
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12158
echo "${ECHO_T}$ac_res" >&6; }
 
12159
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12160
  cat >>confdefs.h <<_ACEOF
 
12161
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12162
_ACEOF
 
12163
 ice_have_cbrt=yes
 
12164
fi
 
12165
done
 
12166
 
 
12167
if test "${ice_have_cbrt}" = yes; then
 
12168
{ echo "$as_me:$LINENO: checking for cbrt declaration in math.h" >&5
 
12169
echo $ECHO_N "checking for cbrt declaration in math.h... $ECHO_C" >&6; }
 
12170
if test "${ice_cv_have_cbrt_decl+set}" = set; then
 
12171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12172
else
 
12173
 
 
12174
ice_cv_have_cbrt_decl=no
 
12175
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12176
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12177
for header in math.h; do
 
12178
# Check for ordinary declaration
 
12179
cat >conftest.$ac_ext <<_ACEOF
 
12180
/* confdefs.h.  */
 
12181
_ACEOF
 
12182
cat confdefs.h >>conftest.$ac_ext
 
12183
cat >>conftest.$ac_ext <<_ACEOF
 
12184
/* end confdefs.h.  */
 
12185
#include <$header>
 
12186
 
 
12187
_ACEOF
 
12188
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12189
  $EGREP "${ice_re_word}cbrt *\(" >/dev/null 2>&1; then
 
12190
  ice_cv_have_cbrt_decl=yes
 
12191
fi
 
12192
rm -f conftest*
 
12193
 
 
12194
if test "$ice_cv_have_cbrt_decl" = yes; then
 
12195
        break
 
12196
fi
 
12197
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12198
cat >conftest.$ac_ext <<_ACEOF
 
12199
/* confdefs.h.  */
 
12200
_ACEOF
 
12201
cat confdefs.h >>conftest.$ac_ext
 
12202
cat >>conftest.$ac_ext <<_ACEOF
 
12203
/* end confdefs.h.  */
 
12204
#include <$header>
 
12205
 
 
12206
_ACEOF
 
12207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12208
  $EGREP "${ice_re_word}cbrt *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12209
  ice_cv_have_cbrt_decl=yes
 
12210
fi
 
12211
rm -f conftest*
 
12212
 
 
12213
if test "$ice_cv_have_cbrt_decl" = yes; then
 
12214
        break
 
12215
fi
 
12216
done
 
12217
 
 
12218
fi
 
12219
 
 
12220
{ echo "$as_me:$LINENO: result: $ice_cv_have_cbrt_decl" >&5
 
12221
echo "${ECHO_T}$ice_cv_have_cbrt_decl" >&6; }
 
12222
if test "$ice_cv_have_cbrt_decl" = yes; then
 
12223
cat >>confdefs.h <<_ACEOF
 
12224
#define ${ice_have_decl_tr} 1
 
12225
_ACEOF
 
12226
 
 
12227
fi
 
12228
fi
 
12229
 
 
12230
 
 
12231
ice_tr=`echo log2 | tr '[a-z]' '[A-Z]'`
 
12232
ice_have_tr=HAVE_$ice_tr
 
12233
ice_have_decl_tr=${ice_have_tr}_DECL
 
12234
ice_have_log2=no
 
12235
 
 
12236
for ac_func in log2
 
12237
do
 
12238
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12239
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12240
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12241
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12243
else
 
12244
  cat >conftest.$ac_ext <<_ACEOF
 
12245
/* confdefs.h.  */
 
12246
_ACEOF
 
12247
cat confdefs.h >>conftest.$ac_ext
 
12248
cat >>conftest.$ac_ext <<_ACEOF
 
12249
/* end confdefs.h.  */
 
12250
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12251
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12252
#define $ac_func innocuous_$ac_func
 
12253
 
 
12254
/* System header to define __stub macros and hopefully few prototypes,
 
12255
    which can conflict with char $ac_func (); below.
 
12256
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12257
    <limits.h> exists even on freestanding compilers.  */
 
12258
 
 
12259
#ifdef __STDC__
 
12260
# include <limits.h>
 
12261
#else
 
12262
# include <assert.h>
 
12263
#endif
 
12264
 
 
12265
#undef $ac_func
 
12266
 
 
12267
/* Override any GCC internal prototype to avoid an error.
 
12268
   Use char because int might match the return type of a GCC
 
12269
   builtin and then its argument prototype would still apply.  */
 
12270
#ifdef __cplusplus
 
12271
extern "C"
 
12272
#endif
 
12273
char $ac_func ();
 
12274
/* The GNU C library defines this for functions which it implements
 
12275
    to always fail with ENOSYS.  Some functions are actually named
 
12276
    something starting with __ and the normal name is an alias.  */
 
12277
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12278
choke me
 
12279
#endif
 
12280
 
 
12281
int
 
12282
main ()
 
12283
{
 
12284
return $ac_func ();
 
12285
  ;
 
12286
  return 0;
 
12287
}
 
12288
_ACEOF
 
12289
rm -f conftest.$ac_objext conftest$ac_exeext
 
12290
if { (ac_try="$ac_link"
 
12291
case "(($ac_try" in
 
12292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12293
  *) ac_try_echo=$ac_try;;
 
12294
esac
 
12295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12296
  (eval "$ac_link") 2>conftest.er1
 
12297
  ac_status=$?
 
12298
  grep -v '^ *+' conftest.er1 >conftest.err
 
12299
  rm -f conftest.er1
 
12300
  cat conftest.err >&5
 
12301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12302
  (exit $ac_status); } && {
 
12303
         test -z "$ac_c_werror_flag" ||
 
12304
         test ! -s conftest.err
 
12305
       } && test -s conftest$ac_exeext &&
 
12306
       $as_test_x conftest$ac_exeext; then
 
12307
  eval "$as_ac_var=yes"
 
12308
else
 
12309
  echo "$as_me: failed program was:" >&5
 
12310
sed 's/^/| /' conftest.$ac_ext >&5
 
12311
 
 
12312
        eval "$as_ac_var=no"
 
12313
fi
 
12314
 
 
12315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12316
      conftest$ac_exeext conftest.$ac_ext
 
12317
fi
 
12318
ac_res=`eval echo '${'$as_ac_var'}'`
 
12319
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12320
echo "${ECHO_T}$ac_res" >&6; }
 
12321
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12322
  cat >>confdefs.h <<_ACEOF
 
12323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12324
_ACEOF
 
12325
 ice_have_log2=yes
 
12326
fi
 
12327
done
 
12328
 
 
12329
if test "${ice_have_log2}" = yes; then
 
12330
{ echo "$as_me:$LINENO: checking for log2 declaration in math.h" >&5
 
12331
echo $ECHO_N "checking for log2 declaration in math.h... $ECHO_C" >&6; }
 
12332
if test "${ice_cv_have_log2_decl+set}" = set; then
 
12333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12334
else
 
12335
 
 
12336
ice_cv_have_log2_decl=no
 
12337
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12338
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12339
for header in math.h; do
 
12340
# Check for ordinary declaration
 
12341
cat >conftest.$ac_ext <<_ACEOF
 
12342
/* confdefs.h.  */
 
12343
_ACEOF
 
12344
cat confdefs.h >>conftest.$ac_ext
 
12345
cat >>conftest.$ac_ext <<_ACEOF
 
12346
/* end confdefs.h.  */
 
12347
#include <$header>
 
12348
 
 
12349
_ACEOF
 
12350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12351
  $EGREP "${ice_re_word}log2 *\(" >/dev/null 2>&1; then
 
12352
  ice_cv_have_log2_decl=yes
 
12353
fi
 
12354
rm -f conftest*
 
12355
 
 
12356
if test "$ice_cv_have_log2_decl" = yes; then
 
12357
        break
 
12358
fi
 
12359
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12360
cat >conftest.$ac_ext <<_ACEOF
 
12361
/* confdefs.h.  */
 
12362
_ACEOF
 
12363
cat confdefs.h >>conftest.$ac_ext
 
12364
cat >>conftest.$ac_ext <<_ACEOF
 
12365
/* end confdefs.h.  */
 
12366
#include <$header>
 
12367
 
 
12368
_ACEOF
 
12369
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12370
  $EGREP "${ice_re_word}log2 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12371
  ice_cv_have_log2_decl=yes
 
12372
fi
 
12373
rm -f conftest*
 
12374
 
 
12375
if test "$ice_cv_have_log2_decl" = yes; then
 
12376
        break
 
12377
fi
 
12378
done
 
12379
 
 
12380
fi
 
12381
 
 
12382
{ echo "$as_me:$LINENO: result: $ice_cv_have_log2_decl" >&5
 
12383
echo "${ECHO_T}$ice_cv_have_log2_decl" >&6; }
 
12384
if test "$ice_cv_have_log2_decl" = yes; then
 
12385
cat >>confdefs.h <<_ACEOF
 
12386
#define ${ice_have_decl_tr} 1
 
12387
_ACEOF
 
12388
 
 
12389
fi
 
12390
fi
 
12391
 
 
12392
 
 
12393
ice_tr=`echo asinh | tr '[a-z]' '[A-Z]'`
 
12394
ice_have_tr=HAVE_$ice_tr
 
12395
ice_have_decl_tr=${ice_have_tr}_DECL
 
12396
ice_have_asinh=no
 
12397
 
 
12398
for ac_func in asinh
 
12399
do
 
12400
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12401
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12402
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12403
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12405
else
 
12406
  cat >conftest.$ac_ext <<_ACEOF
 
12407
/* confdefs.h.  */
 
12408
_ACEOF
 
12409
cat confdefs.h >>conftest.$ac_ext
 
12410
cat >>conftest.$ac_ext <<_ACEOF
 
12411
/* end confdefs.h.  */
 
12412
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12413
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12414
#define $ac_func innocuous_$ac_func
 
12415
 
 
12416
/* System header to define __stub macros and hopefully few prototypes,
 
12417
    which can conflict with char $ac_func (); below.
 
12418
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12419
    <limits.h> exists even on freestanding compilers.  */
 
12420
 
 
12421
#ifdef __STDC__
 
12422
# include <limits.h>
 
12423
#else
 
12424
# include <assert.h>
 
12425
#endif
 
12426
 
 
12427
#undef $ac_func
 
12428
 
 
12429
/* Override any GCC internal prototype to avoid an error.
 
12430
   Use char because int might match the return type of a GCC
 
12431
   builtin and then its argument prototype would still apply.  */
 
12432
#ifdef __cplusplus
 
12433
extern "C"
 
12434
#endif
 
12435
char $ac_func ();
 
12436
/* The GNU C library defines this for functions which it implements
 
12437
    to always fail with ENOSYS.  Some functions are actually named
 
12438
    something starting with __ and the normal name is an alias.  */
 
12439
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12440
choke me
 
12441
#endif
 
12442
 
 
12443
int
 
12444
main ()
 
12445
{
 
12446
return $ac_func ();
 
12447
  ;
 
12448
  return 0;
 
12449
}
 
12450
_ACEOF
 
12451
rm -f conftest.$ac_objext conftest$ac_exeext
 
12452
if { (ac_try="$ac_link"
 
12453
case "(($ac_try" in
 
12454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12455
  *) ac_try_echo=$ac_try;;
 
12456
esac
 
12457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12458
  (eval "$ac_link") 2>conftest.er1
 
12459
  ac_status=$?
 
12460
  grep -v '^ *+' conftest.er1 >conftest.err
 
12461
  rm -f conftest.er1
 
12462
  cat conftest.err >&5
 
12463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12464
  (exit $ac_status); } && {
 
12465
         test -z "$ac_c_werror_flag" ||
 
12466
         test ! -s conftest.err
 
12467
       } && test -s conftest$ac_exeext &&
 
12468
       $as_test_x conftest$ac_exeext; then
 
12469
  eval "$as_ac_var=yes"
 
12470
else
 
12471
  echo "$as_me: failed program was:" >&5
 
12472
sed 's/^/| /' conftest.$ac_ext >&5
 
12473
 
 
12474
        eval "$as_ac_var=no"
 
12475
fi
 
12476
 
 
12477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12478
      conftest$ac_exeext conftest.$ac_ext
 
12479
fi
 
12480
ac_res=`eval echo '${'$as_ac_var'}'`
 
12481
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12482
echo "${ECHO_T}$ac_res" >&6; }
 
12483
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12484
  cat >>confdefs.h <<_ACEOF
 
12485
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12486
_ACEOF
 
12487
 ice_have_asinh=yes
 
12488
fi
 
12489
done
 
12490
 
 
12491
if test "${ice_have_asinh}" = yes; then
 
12492
{ echo "$as_me:$LINENO: checking for asinh declaration in math.h" >&5
 
12493
echo $ECHO_N "checking for asinh declaration in math.h... $ECHO_C" >&6; }
 
12494
if test "${ice_cv_have_asinh_decl+set}" = set; then
 
12495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12496
else
 
12497
 
 
12498
ice_cv_have_asinh_decl=no
 
12499
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12500
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12501
for header in math.h; do
 
12502
# Check for ordinary declaration
 
12503
cat >conftest.$ac_ext <<_ACEOF
 
12504
/* confdefs.h.  */
 
12505
_ACEOF
 
12506
cat confdefs.h >>conftest.$ac_ext
 
12507
cat >>conftest.$ac_ext <<_ACEOF
 
12508
/* end confdefs.h.  */
 
12509
#include <$header>
 
12510
 
 
12511
_ACEOF
 
12512
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12513
  $EGREP "${ice_re_word}asinh *\(" >/dev/null 2>&1; then
 
12514
  ice_cv_have_asinh_decl=yes
 
12515
fi
 
12516
rm -f conftest*
 
12517
 
 
12518
if test "$ice_cv_have_asinh_decl" = yes; then
 
12519
        break
 
12520
fi
 
12521
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12522
cat >conftest.$ac_ext <<_ACEOF
 
12523
/* confdefs.h.  */
 
12524
_ACEOF
 
12525
cat confdefs.h >>conftest.$ac_ext
 
12526
cat >>conftest.$ac_ext <<_ACEOF
 
12527
/* end confdefs.h.  */
 
12528
#include <$header>
 
12529
 
 
12530
_ACEOF
 
12531
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12532
  $EGREP "${ice_re_word}asinh *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12533
  ice_cv_have_asinh_decl=yes
 
12534
fi
 
12535
rm -f conftest*
 
12536
 
 
12537
if test "$ice_cv_have_asinh_decl" = yes; then
 
12538
        break
 
12539
fi
 
12540
done
 
12541
 
 
12542
fi
 
12543
 
 
12544
{ echo "$as_me:$LINENO: result: $ice_cv_have_asinh_decl" >&5
 
12545
echo "${ECHO_T}$ice_cv_have_asinh_decl" >&6; }
 
12546
if test "$ice_cv_have_asinh_decl" = yes; then
 
12547
cat >>confdefs.h <<_ACEOF
 
12548
#define ${ice_have_decl_tr} 1
 
12549
_ACEOF
 
12550
 
 
12551
fi
 
12552
fi
 
12553
 
 
12554
 
 
12555
ice_tr=`echo acosh | tr '[a-z]' '[A-Z]'`
 
12556
ice_have_tr=HAVE_$ice_tr
 
12557
ice_have_decl_tr=${ice_have_tr}_DECL
 
12558
ice_have_acosh=no
 
12559
 
 
12560
for ac_func in acosh
 
12561
do
 
12562
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12563
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12564
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12565
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12567
else
 
12568
  cat >conftest.$ac_ext <<_ACEOF
 
12569
/* confdefs.h.  */
 
12570
_ACEOF
 
12571
cat confdefs.h >>conftest.$ac_ext
 
12572
cat >>conftest.$ac_ext <<_ACEOF
 
12573
/* end confdefs.h.  */
 
12574
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12575
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12576
#define $ac_func innocuous_$ac_func
 
12577
 
 
12578
/* System header to define __stub macros and hopefully few prototypes,
 
12579
    which can conflict with char $ac_func (); below.
 
12580
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12581
    <limits.h> exists even on freestanding compilers.  */
 
12582
 
 
12583
#ifdef __STDC__
 
12584
# include <limits.h>
 
12585
#else
 
12586
# include <assert.h>
 
12587
#endif
 
12588
 
 
12589
#undef $ac_func
 
12590
 
 
12591
/* Override any GCC internal prototype to avoid an error.
 
12592
   Use char because int might match the return type of a GCC
 
12593
   builtin and then its argument prototype would still apply.  */
 
12594
#ifdef __cplusplus
 
12595
extern "C"
 
12596
#endif
 
12597
char $ac_func ();
 
12598
/* The GNU C library defines this for functions which it implements
 
12599
    to always fail with ENOSYS.  Some functions are actually named
 
12600
    something starting with __ and the normal name is an alias.  */
 
12601
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12602
choke me
 
12603
#endif
 
12604
 
 
12605
int
 
12606
main ()
 
12607
{
 
12608
return $ac_func ();
 
12609
  ;
 
12610
  return 0;
 
12611
}
 
12612
_ACEOF
 
12613
rm -f conftest.$ac_objext conftest$ac_exeext
 
12614
if { (ac_try="$ac_link"
 
12615
case "(($ac_try" in
 
12616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12617
  *) ac_try_echo=$ac_try;;
 
12618
esac
 
12619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12620
  (eval "$ac_link") 2>conftest.er1
 
12621
  ac_status=$?
 
12622
  grep -v '^ *+' conftest.er1 >conftest.err
 
12623
  rm -f conftest.er1
 
12624
  cat conftest.err >&5
 
12625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12626
  (exit $ac_status); } && {
 
12627
         test -z "$ac_c_werror_flag" ||
 
12628
         test ! -s conftest.err
 
12629
       } && test -s conftest$ac_exeext &&
 
12630
       $as_test_x conftest$ac_exeext; then
 
12631
  eval "$as_ac_var=yes"
 
12632
else
 
12633
  echo "$as_me: failed program was:" >&5
 
12634
sed 's/^/| /' conftest.$ac_ext >&5
 
12635
 
 
12636
        eval "$as_ac_var=no"
 
12637
fi
 
12638
 
 
12639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12640
      conftest$ac_exeext conftest.$ac_ext
 
12641
fi
 
12642
ac_res=`eval echo '${'$as_ac_var'}'`
 
12643
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12644
echo "${ECHO_T}$ac_res" >&6; }
 
12645
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12646
  cat >>confdefs.h <<_ACEOF
 
12647
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12648
_ACEOF
 
12649
 ice_have_acosh=yes
 
12650
fi
 
12651
done
 
12652
 
 
12653
if test "${ice_have_acosh}" = yes; then
 
12654
{ echo "$as_me:$LINENO: checking for acosh declaration in math.h" >&5
 
12655
echo $ECHO_N "checking for acosh declaration in math.h... $ECHO_C" >&6; }
 
12656
if test "${ice_cv_have_acosh_decl+set}" = set; then
 
12657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12658
else
 
12659
 
 
12660
ice_cv_have_acosh_decl=no
 
12661
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12662
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12663
for header in math.h; do
 
12664
# Check for ordinary declaration
 
12665
cat >conftest.$ac_ext <<_ACEOF
 
12666
/* confdefs.h.  */
 
12667
_ACEOF
 
12668
cat confdefs.h >>conftest.$ac_ext
 
12669
cat >>conftest.$ac_ext <<_ACEOF
 
12670
/* end confdefs.h.  */
 
12671
#include <$header>
 
12672
 
 
12673
_ACEOF
 
12674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12675
  $EGREP "${ice_re_word}acosh *\(" >/dev/null 2>&1; then
 
12676
  ice_cv_have_acosh_decl=yes
 
12677
fi
 
12678
rm -f conftest*
 
12679
 
 
12680
if test "$ice_cv_have_acosh_decl" = yes; then
 
12681
        break
 
12682
fi
 
12683
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12684
cat >conftest.$ac_ext <<_ACEOF
 
12685
/* confdefs.h.  */
 
12686
_ACEOF
 
12687
cat confdefs.h >>conftest.$ac_ext
 
12688
cat >>conftest.$ac_ext <<_ACEOF
 
12689
/* end confdefs.h.  */
 
12690
#include <$header>
 
12691
 
 
12692
_ACEOF
 
12693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12694
  $EGREP "${ice_re_word}acosh *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12695
  ice_cv_have_acosh_decl=yes
 
12696
fi
 
12697
rm -f conftest*
 
12698
 
 
12699
if test "$ice_cv_have_acosh_decl" = yes; then
 
12700
        break
 
12701
fi
 
12702
done
 
12703
 
 
12704
fi
 
12705
 
 
12706
{ echo "$as_me:$LINENO: result: $ice_cv_have_acosh_decl" >&5
 
12707
echo "${ECHO_T}$ice_cv_have_acosh_decl" >&6; }
 
12708
if test "$ice_cv_have_acosh_decl" = yes; then
 
12709
cat >>confdefs.h <<_ACEOF
 
12710
#define ${ice_have_decl_tr} 1
 
12711
_ACEOF
 
12712
 
 
12713
fi
 
12714
fi
 
12715
 
 
12716
 
 
12717
ice_tr=`echo atanh | tr '[a-z]' '[A-Z]'`
 
12718
ice_have_tr=HAVE_$ice_tr
 
12719
ice_have_decl_tr=${ice_have_tr}_DECL
 
12720
ice_have_atanh=no
 
12721
 
 
12722
for ac_func in atanh
 
12723
do
 
12724
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12725
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12726
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12727
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12729
else
 
12730
  cat >conftest.$ac_ext <<_ACEOF
 
12731
/* confdefs.h.  */
 
12732
_ACEOF
 
12733
cat confdefs.h >>conftest.$ac_ext
 
12734
cat >>conftest.$ac_ext <<_ACEOF
 
12735
/* end confdefs.h.  */
 
12736
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12737
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12738
#define $ac_func innocuous_$ac_func
 
12739
 
 
12740
/* System header to define __stub macros and hopefully few prototypes,
 
12741
    which can conflict with char $ac_func (); below.
 
12742
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12743
    <limits.h> exists even on freestanding compilers.  */
 
12744
 
 
12745
#ifdef __STDC__
 
12746
# include <limits.h>
 
12747
#else
 
12748
# include <assert.h>
 
12749
#endif
 
12750
 
 
12751
#undef $ac_func
 
12752
 
 
12753
/* Override any GCC internal prototype to avoid an error.
 
12754
   Use char because int might match the return type of a GCC
 
12755
   builtin and then its argument prototype would still apply.  */
 
12756
#ifdef __cplusplus
 
12757
extern "C"
 
12758
#endif
 
12759
char $ac_func ();
 
12760
/* The GNU C library defines this for functions which it implements
 
12761
    to always fail with ENOSYS.  Some functions are actually named
 
12762
    something starting with __ and the normal name is an alias.  */
 
12763
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12764
choke me
 
12765
#endif
 
12766
 
 
12767
int
 
12768
main ()
 
12769
{
 
12770
return $ac_func ();
 
12771
  ;
 
12772
  return 0;
 
12773
}
 
12774
_ACEOF
 
12775
rm -f conftest.$ac_objext conftest$ac_exeext
 
12776
if { (ac_try="$ac_link"
 
12777
case "(($ac_try" in
 
12778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12779
  *) ac_try_echo=$ac_try;;
 
12780
esac
 
12781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12782
  (eval "$ac_link") 2>conftest.er1
 
12783
  ac_status=$?
 
12784
  grep -v '^ *+' conftest.er1 >conftest.err
 
12785
  rm -f conftest.er1
 
12786
  cat conftest.err >&5
 
12787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12788
  (exit $ac_status); } && {
 
12789
         test -z "$ac_c_werror_flag" ||
 
12790
         test ! -s conftest.err
 
12791
       } && test -s conftest$ac_exeext &&
 
12792
       $as_test_x conftest$ac_exeext; then
 
12793
  eval "$as_ac_var=yes"
 
12794
else
 
12795
  echo "$as_me: failed program was:" >&5
 
12796
sed 's/^/| /' conftest.$ac_ext >&5
 
12797
 
 
12798
        eval "$as_ac_var=no"
 
12799
fi
 
12800
 
 
12801
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12802
      conftest$ac_exeext conftest.$ac_ext
 
12803
fi
 
12804
ac_res=`eval echo '${'$as_ac_var'}'`
 
12805
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12806
echo "${ECHO_T}$ac_res" >&6; }
 
12807
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12808
  cat >>confdefs.h <<_ACEOF
 
12809
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12810
_ACEOF
 
12811
 ice_have_atanh=yes
 
12812
fi
 
12813
done
 
12814
 
 
12815
if test "${ice_have_atanh}" = yes; then
 
12816
{ echo "$as_me:$LINENO: checking for atanh declaration in math.h" >&5
 
12817
echo $ECHO_N "checking for atanh declaration in math.h... $ECHO_C" >&6; }
 
12818
if test "${ice_cv_have_atanh_decl+set}" = set; then
 
12819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12820
else
 
12821
 
 
12822
ice_cv_have_atanh_decl=no
 
12823
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12824
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12825
for header in math.h; do
 
12826
# Check for ordinary declaration
 
12827
cat >conftest.$ac_ext <<_ACEOF
 
12828
/* confdefs.h.  */
 
12829
_ACEOF
 
12830
cat confdefs.h >>conftest.$ac_ext
 
12831
cat >>conftest.$ac_ext <<_ACEOF
 
12832
/* end confdefs.h.  */
 
12833
#include <$header>
 
12834
 
 
12835
_ACEOF
 
12836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12837
  $EGREP "${ice_re_word}atanh *\(" >/dev/null 2>&1; then
 
12838
  ice_cv_have_atanh_decl=yes
 
12839
fi
 
12840
rm -f conftest*
 
12841
 
 
12842
if test "$ice_cv_have_atanh_decl" = yes; then
 
12843
        break
 
12844
fi
 
12845
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
12846
cat >conftest.$ac_ext <<_ACEOF
 
12847
/* confdefs.h.  */
 
12848
_ACEOF
 
12849
cat confdefs.h >>conftest.$ac_ext
 
12850
cat >>conftest.$ac_ext <<_ACEOF
 
12851
/* end confdefs.h.  */
 
12852
#include <$header>
 
12853
 
 
12854
_ACEOF
 
12855
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12856
  $EGREP "${ice_re_word}atanh *$ice_re_params\(\(" >/dev/null 2>&1; then
 
12857
  ice_cv_have_atanh_decl=yes
 
12858
fi
 
12859
rm -f conftest*
 
12860
 
 
12861
if test "$ice_cv_have_atanh_decl" = yes; then
 
12862
        break
 
12863
fi
 
12864
done
 
12865
 
 
12866
fi
 
12867
 
 
12868
{ echo "$as_me:$LINENO: result: $ice_cv_have_atanh_decl" >&5
 
12869
echo "${ECHO_T}$ice_cv_have_atanh_decl" >&6; }
 
12870
if test "$ice_cv_have_atanh_decl" = yes; then
 
12871
cat >>confdefs.h <<_ACEOF
 
12872
#define ${ice_have_decl_tr} 1
 
12873
_ACEOF
 
12874
 
 
12875
fi
 
12876
fi
 
12877
 
 
12878
 
 
12879
ice_tr=`echo lgamma | tr '[a-z]' '[A-Z]'`
 
12880
ice_have_tr=HAVE_$ice_tr
 
12881
ice_have_decl_tr=${ice_have_tr}_DECL
 
12882
ice_have_lgamma=no
 
12883
 
 
12884
for ac_func in lgamma
 
12885
do
 
12886
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12887
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12888
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12889
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12891
else
 
12892
  cat >conftest.$ac_ext <<_ACEOF
 
12893
/* confdefs.h.  */
 
12894
_ACEOF
 
12895
cat confdefs.h >>conftest.$ac_ext
 
12896
cat >>conftest.$ac_ext <<_ACEOF
 
12897
/* end confdefs.h.  */
 
12898
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12899
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12900
#define $ac_func innocuous_$ac_func
 
12901
 
 
12902
/* System header to define __stub macros and hopefully few prototypes,
 
12903
    which can conflict with char $ac_func (); below.
 
12904
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12905
    <limits.h> exists even on freestanding compilers.  */
 
12906
 
 
12907
#ifdef __STDC__
 
12908
# include <limits.h>
 
12909
#else
 
12910
# include <assert.h>
 
12911
#endif
 
12912
 
 
12913
#undef $ac_func
 
12914
 
 
12915
/* Override any GCC internal prototype to avoid an error.
 
12916
   Use char because int might match the return type of a GCC
 
12917
   builtin and then its argument prototype would still apply.  */
 
12918
#ifdef __cplusplus
 
12919
extern "C"
 
12920
#endif
 
12921
char $ac_func ();
 
12922
/* The GNU C library defines this for functions which it implements
 
12923
    to always fail with ENOSYS.  Some functions are actually named
 
12924
    something starting with __ and the normal name is an alias.  */
 
12925
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12926
choke me
 
12927
#endif
 
12928
 
 
12929
int
 
12930
main ()
 
12931
{
 
12932
return $ac_func ();
 
12933
  ;
 
12934
  return 0;
 
12935
}
 
12936
_ACEOF
 
12937
rm -f conftest.$ac_objext conftest$ac_exeext
 
12938
if { (ac_try="$ac_link"
 
12939
case "(($ac_try" in
 
12940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12941
  *) ac_try_echo=$ac_try;;
 
12942
esac
 
12943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12944
  (eval "$ac_link") 2>conftest.er1
 
12945
  ac_status=$?
 
12946
  grep -v '^ *+' conftest.er1 >conftest.err
 
12947
  rm -f conftest.er1
 
12948
  cat conftest.err >&5
 
12949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12950
  (exit $ac_status); } && {
 
12951
         test -z "$ac_c_werror_flag" ||
 
12952
         test ! -s conftest.err
 
12953
       } && test -s conftest$ac_exeext &&
 
12954
       $as_test_x conftest$ac_exeext; then
 
12955
  eval "$as_ac_var=yes"
 
12956
else
 
12957
  echo "$as_me: failed program was:" >&5
 
12958
sed 's/^/| /' conftest.$ac_ext >&5
 
12959
 
 
12960
        eval "$as_ac_var=no"
 
12961
fi
 
12962
 
 
12963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12964
      conftest$ac_exeext conftest.$ac_ext
 
12965
fi
 
12966
ac_res=`eval echo '${'$as_ac_var'}'`
 
12967
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12968
echo "${ECHO_T}$ac_res" >&6; }
 
12969
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12970
  cat >>confdefs.h <<_ACEOF
 
12971
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12972
_ACEOF
 
12973
 ice_have_lgamma=yes
 
12974
fi
 
12975
done
 
12976
 
 
12977
if test "${ice_have_lgamma}" = yes; then
 
12978
{ echo "$as_me:$LINENO: checking for lgamma declaration in math.h" >&5
 
12979
echo $ECHO_N "checking for lgamma declaration in math.h... $ECHO_C" >&6; }
 
12980
if test "${ice_cv_have_lgamma_decl+set}" = set; then
 
12981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12982
else
 
12983
 
 
12984
ice_cv_have_lgamma_decl=no
 
12985
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
12986
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
12987
for header in math.h; do
 
12988
# Check for ordinary declaration
 
12989
cat >conftest.$ac_ext <<_ACEOF
 
12990
/* confdefs.h.  */
 
12991
_ACEOF
 
12992
cat confdefs.h >>conftest.$ac_ext
 
12993
cat >>conftest.$ac_ext <<_ACEOF
 
12994
/* end confdefs.h.  */
 
12995
#include <$header>
 
12996
 
 
12997
_ACEOF
 
12998
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12999
  $EGREP "${ice_re_word}lgamma *\(" >/dev/null 2>&1; then
 
13000
  ice_cv_have_lgamma_decl=yes
 
13001
fi
 
13002
rm -f conftest*
 
13003
 
 
13004
if test "$ice_cv_have_lgamma_decl" = yes; then
 
13005
        break
 
13006
fi
 
13007
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13008
cat >conftest.$ac_ext <<_ACEOF
 
13009
/* confdefs.h.  */
 
13010
_ACEOF
 
13011
cat confdefs.h >>conftest.$ac_ext
 
13012
cat >>conftest.$ac_ext <<_ACEOF
 
13013
/* end confdefs.h.  */
 
13014
#include <$header>
 
13015
 
 
13016
_ACEOF
 
13017
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13018
  $EGREP "${ice_re_word}lgamma *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13019
  ice_cv_have_lgamma_decl=yes
 
13020
fi
 
13021
rm -f conftest*
 
13022
 
 
13023
if test "$ice_cv_have_lgamma_decl" = yes; then
 
13024
        break
 
13025
fi
 
13026
done
 
13027
 
 
13028
fi
 
13029
 
 
13030
{ echo "$as_me:$LINENO: result: $ice_cv_have_lgamma_decl" >&5
 
13031
echo "${ECHO_T}$ice_cv_have_lgamma_decl" >&6; }
 
13032
if test "$ice_cv_have_lgamma_decl" = yes; then
 
13033
cat >>confdefs.h <<_ACEOF
 
13034
#define ${ice_have_decl_tr} 1
 
13035
_ACEOF
 
13036
 
 
13037
fi
 
13038
fi
 
13039
 
 
13040
 
 
13041
if test "$ac_cv_func_lgamma" = yes; then
 
13042
  { echo "$as_me:$LINENO: checking for signgam declaration in math.h" >&5
 
13043
echo $ECHO_N "checking for signgam declaration in math.h... $ECHO_C" >&6; }
 
13044
if test "${ac_cv_signgam_decl+set}" = set; then
 
13045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13046
else
 
13047
  cat >conftest.$ac_ext <<_ACEOF
 
13048
/* confdefs.h.  */
 
13049
_ACEOF
 
13050
cat confdefs.h >>conftest.$ac_ext
 
13051
cat >>conftest.$ac_ext <<_ACEOF
 
13052
/* end confdefs.h.  */
 
13053
#include <math.h>
 
13054
 
 
13055
_ACEOF
 
13056
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13057
  $EGREP "signgam" >/dev/null 2>&1; then
 
13058
  ac_cv_signgam_decl="yes"
 
13059
else
 
13060
  ac_cv_signgam_decl="no"
 
13061
fi
 
13062
rm -f conftest*
 
13063
 
 
13064
fi
 
13065
{ echo "$as_me:$LINENO: result: $ac_cv_signgam_decl" >&5
 
13066
echo "${ECHO_T}$ac_cv_signgam_decl" >&6; }
 
13067
  if test "$ac_cv_signgam_decl" = yes; then
 
13068
    cat >>confdefs.h <<\_ACEOF
 
13069
#define HAVE_SIGNGAM_DECL 1
 
13070
_ACEOF
 
13071
 
 
13072
  fi
 
13073
fi
 
13074
 
 
13075
 
 
13076
ice_tr=`echo erf | tr '[a-z]' '[A-Z]'`
 
13077
ice_have_tr=HAVE_$ice_tr
 
13078
ice_have_decl_tr=${ice_have_tr}_DECL
 
13079
ice_have_erf=no
 
13080
 
 
13081
for ac_func in erf
 
13082
do
 
13083
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13084
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13085
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13086
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13088
else
 
13089
  cat >conftest.$ac_ext <<_ACEOF
 
13090
/* confdefs.h.  */
 
13091
_ACEOF
 
13092
cat confdefs.h >>conftest.$ac_ext
 
13093
cat >>conftest.$ac_ext <<_ACEOF
 
13094
/* end confdefs.h.  */
 
13095
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13096
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13097
#define $ac_func innocuous_$ac_func
 
13098
 
 
13099
/* System header to define __stub macros and hopefully few prototypes,
 
13100
    which can conflict with char $ac_func (); below.
 
13101
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13102
    <limits.h> exists even on freestanding compilers.  */
 
13103
 
 
13104
#ifdef __STDC__
 
13105
# include <limits.h>
 
13106
#else
 
13107
# include <assert.h>
 
13108
#endif
 
13109
 
 
13110
#undef $ac_func
 
13111
 
 
13112
/* Override any GCC internal prototype to avoid an error.
 
13113
   Use char because int might match the return type of a GCC
 
13114
   builtin and then its argument prototype would still apply.  */
 
13115
#ifdef __cplusplus
 
13116
extern "C"
 
13117
#endif
 
13118
char $ac_func ();
 
13119
/* The GNU C library defines this for functions which it implements
 
13120
    to always fail with ENOSYS.  Some functions are actually named
 
13121
    something starting with __ and the normal name is an alias.  */
 
13122
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13123
choke me
 
13124
#endif
 
13125
 
 
13126
int
 
13127
main ()
 
13128
{
 
13129
return $ac_func ();
 
13130
  ;
 
13131
  return 0;
 
13132
}
 
13133
_ACEOF
 
13134
rm -f conftest.$ac_objext conftest$ac_exeext
 
13135
if { (ac_try="$ac_link"
 
13136
case "(($ac_try" in
 
13137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13138
  *) ac_try_echo=$ac_try;;
 
13139
esac
 
13140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13141
  (eval "$ac_link") 2>conftest.er1
 
13142
  ac_status=$?
 
13143
  grep -v '^ *+' conftest.er1 >conftest.err
 
13144
  rm -f conftest.er1
 
13145
  cat conftest.err >&5
 
13146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13147
  (exit $ac_status); } && {
 
13148
         test -z "$ac_c_werror_flag" ||
 
13149
         test ! -s conftest.err
 
13150
       } && test -s conftest$ac_exeext &&
 
13151
       $as_test_x conftest$ac_exeext; then
 
13152
  eval "$as_ac_var=yes"
 
13153
else
 
13154
  echo "$as_me: failed program was:" >&5
 
13155
sed 's/^/| /' conftest.$ac_ext >&5
 
13156
 
 
13157
        eval "$as_ac_var=no"
 
13158
fi
 
13159
 
 
13160
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13161
      conftest$ac_exeext conftest.$ac_ext
 
13162
fi
 
13163
ac_res=`eval echo '${'$as_ac_var'}'`
 
13164
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13165
echo "${ECHO_T}$ac_res" >&6; }
 
13166
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13167
  cat >>confdefs.h <<_ACEOF
 
13168
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13169
_ACEOF
 
13170
 ice_have_erf=yes
 
13171
fi
 
13172
done
 
13173
 
 
13174
if test "${ice_have_erf}" = yes; then
 
13175
{ echo "$as_me:$LINENO: checking for erf declaration in math.h" >&5
 
13176
echo $ECHO_N "checking for erf declaration in math.h... $ECHO_C" >&6; }
 
13177
if test "${ice_cv_have_erf_decl+set}" = set; then
 
13178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13179
else
 
13180
 
 
13181
ice_cv_have_erf_decl=no
 
13182
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13183
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13184
for header in math.h; do
 
13185
# Check for ordinary declaration
 
13186
cat >conftest.$ac_ext <<_ACEOF
 
13187
/* confdefs.h.  */
 
13188
_ACEOF
 
13189
cat confdefs.h >>conftest.$ac_ext
 
13190
cat >>conftest.$ac_ext <<_ACEOF
 
13191
/* end confdefs.h.  */
 
13192
#include <$header>
 
13193
 
 
13194
_ACEOF
 
13195
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13196
  $EGREP "${ice_re_word}erf *\(" >/dev/null 2>&1; then
 
13197
  ice_cv_have_erf_decl=yes
 
13198
fi
 
13199
rm -f conftest*
 
13200
 
 
13201
if test "$ice_cv_have_erf_decl" = yes; then
 
13202
        break
 
13203
fi
 
13204
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13205
cat >conftest.$ac_ext <<_ACEOF
 
13206
/* confdefs.h.  */
 
13207
_ACEOF
 
13208
cat confdefs.h >>conftest.$ac_ext
 
13209
cat >>conftest.$ac_ext <<_ACEOF
 
13210
/* end confdefs.h.  */
 
13211
#include <$header>
 
13212
 
 
13213
_ACEOF
 
13214
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13215
  $EGREP "${ice_re_word}erf *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13216
  ice_cv_have_erf_decl=yes
 
13217
fi
 
13218
rm -f conftest*
 
13219
 
 
13220
if test "$ice_cv_have_erf_decl" = yes; then
 
13221
        break
 
13222
fi
 
13223
done
 
13224
 
 
13225
fi
 
13226
 
 
13227
{ echo "$as_me:$LINENO: result: $ice_cv_have_erf_decl" >&5
 
13228
echo "${ECHO_T}$ice_cv_have_erf_decl" >&6; }
 
13229
if test "$ice_cv_have_erf_decl" = yes; then
 
13230
cat >>confdefs.h <<_ACEOF
 
13231
#define ${ice_have_decl_tr} 1
 
13232
_ACEOF
 
13233
 
 
13234
fi
 
13235
fi
 
13236
 
 
13237
 
 
13238
ice_tr=`echo erfc | tr '[a-z]' '[A-Z]'`
 
13239
ice_have_tr=HAVE_$ice_tr
 
13240
ice_have_decl_tr=${ice_have_tr}_DECL
 
13241
ice_have_erfc=no
 
13242
 
 
13243
for ac_func in erfc
 
13244
do
 
13245
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13246
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13247
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13248
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13250
else
 
13251
  cat >conftest.$ac_ext <<_ACEOF
 
13252
/* confdefs.h.  */
 
13253
_ACEOF
 
13254
cat confdefs.h >>conftest.$ac_ext
 
13255
cat >>conftest.$ac_ext <<_ACEOF
 
13256
/* end confdefs.h.  */
 
13257
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13258
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13259
#define $ac_func innocuous_$ac_func
 
13260
 
 
13261
/* System header to define __stub macros and hopefully few prototypes,
 
13262
    which can conflict with char $ac_func (); below.
 
13263
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13264
    <limits.h> exists even on freestanding compilers.  */
 
13265
 
 
13266
#ifdef __STDC__
 
13267
# include <limits.h>
 
13268
#else
 
13269
# include <assert.h>
 
13270
#endif
 
13271
 
 
13272
#undef $ac_func
 
13273
 
 
13274
/* Override any GCC internal prototype to avoid an error.
 
13275
   Use char because int might match the return type of a GCC
 
13276
   builtin and then its argument prototype would still apply.  */
 
13277
#ifdef __cplusplus
 
13278
extern "C"
 
13279
#endif
 
13280
char $ac_func ();
 
13281
/* The GNU C library defines this for functions which it implements
 
13282
    to always fail with ENOSYS.  Some functions are actually named
 
13283
    something starting with __ and the normal name is an alias.  */
 
13284
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13285
choke me
 
13286
#endif
 
13287
 
 
13288
int
 
13289
main ()
 
13290
{
 
13291
return $ac_func ();
 
13292
  ;
 
13293
  return 0;
 
13294
}
 
13295
_ACEOF
 
13296
rm -f conftest.$ac_objext conftest$ac_exeext
 
13297
if { (ac_try="$ac_link"
 
13298
case "(($ac_try" in
 
13299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13300
  *) ac_try_echo=$ac_try;;
 
13301
esac
 
13302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13303
  (eval "$ac_link") 2>conftest.er1
 
13304
  ac_status=$?
 
13305
  grep -v '^ *+' conftest.er1 >conftest.err
 
13306
  rm -f conftest.er1
 
13307
  cat conftest.err >&5
 
13308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13309
  (exit $ac_status); } && {
 
13310
         test -z "$ac_c_werror_flag" ||
 
13311
         test ! -s conftest.err
 
13312
       } && test -s conftest$ac_exeext &&
 
13313
       $as_test_x conftest$ac_exeext; then
 
13314
  eval "$as_ac_var=yes"
 
13315
else
 
13316
  echo "$as_me: failed program was:" >&5
 
13317
sed 's/^/| /' conftest.$ac_ext >&5
 
13318
 
 
13319
        eval "$as_ac_var=no"
 
13320
fi
 
13321
 
 
13322
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13323
      conftest$ac_exeext conftest.$ac_ext
 
13324
fi
 
13325
ac_res=`eval echo '${'$as_ac_var'}'`
 
13326
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13327
echo "${ECHO_T}$ac_res" >&6; }
 
13328
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13329
  cat >>confdefs.h <<_ACEOF
 
13330
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13331
_ACEOF
 
13332
 ice_have_erfc=yes
 
13333
fi
 
13334
done
 
13335
 
 
13336
if test "${ice_have_erfc}" = yes; then
 
13337
{ echo "$as_me:$LINENO: checking for erfc declaration in math.h" >&5
 
13338
echo $ECHO_N "checking for erfc declaration in math.h... $ECHO_C" >&6; }
 
13339
if test "${ice_cv_have_erfc_decl+set}" = set; then
 
13340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13341
else
 
13342
 
 
13343
ice_cv_have_erfc_decl=no
 
13344
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13345
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13346
for header in math.h; do
 
13347
# Check for ordinary declaration
 
13348
cat >conftest.$ac_ext <<_ACEOF
 
13349
/* confdefs.h.  */
 
13350
_ACEOF
 
13351
cat confdefs.h >>conftest.$ac_ext
 
13352
cat >>conftest.$ac_ext <<_ACEOF
 
13353
/* end confdefs.h.  */
 
13354
#include <$header>
 
13355
 
 
13356
_ACEOF
 
13357
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13358
  $EGREP "${ice_re_word}erfc *\(" >/dev/null 2>&1; then
 
13359
  ice_cv_have_erfc_decl=yes
 
13360
fi
 
13361
rm -f conftest*
 
13362
 
 
13363
if test "$ice_cv_have_erfc_decl" = yes; then
 
13364
        break
 
13365
fi
 
13366
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13367
cat >conftest.$ac_ext <<_ACEOF
 
13368
/* confdefs.h.  */
 
13369
_ACEOF
 
13370
cat confdefs.h >>conftest.$ac_ext
 
13371
cat >>conftest.$ac_ext <<_ACEOF
 
13372
/* end confdefs.h.  */
 
13373
#include <$header>
 
13374
 
 
13375
_ACEOF
 
13376
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13377
  $EGREP "${ice_re_word}erfc *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13378
  ice_cv_have_erfc_decl=yes
 
13379
fi
 
13380
rm -f conftest*
 
13381
 
 
13382
if test "$ice_cv_have_erfc_decl" = yes; then
 
13383
        break
 
13384
fi
 
13385
done
 
13386
 
 
13387
fi
 
13388
 
 
13389
{ echo "$as_me:$LINENO: result: $ice_cv_have_erfc_decl" >&5
 
13390
echo "${ECHO_T}$ice_cv_have_erfc_decl" >&6; }
 
13391
if test "$ice_cv_have_erfc_decl" = yes; then
 
13392
cat >>confdefs.h <<_ACEOF
 
13393
#define ${ice_have_decl_tr} 1
 
13394
_ACEOF
 
13395
 
 
13396
fi
 
13397
fi
 
13398
 
 
13399
 
 
13400
ice_tr=`echo j0 | tr '[a-z]' '[A-Z]'`
 
13401
ice_have_tr=HAVE_$ice_tr
 
13402
ice_have_decl_tr=${ice_have_tr}_DECL
 
13403
ice_have_j0=no
 
13404
 
 
13405
for ac_func in j0
 
13406
do
 
13407
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13408
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13409
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13410
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13412
else
 
13413
  cat >conftest.$ac_ext <<_ACEOF
 
13414
/* confdefs.h.  */
 
13415
_ACEOF
 
13416
cat confdefs.h >>conftest.$ac_ext
 
13417
cat >>conftest.$ac_ext <<_ACEOF
 
13418
/* end confdefs.h.  */
 
13419
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13420
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13421
#define $ac_func innocuous_$ac_func
 
13422
 
 
13423
/* System header to define __stub macros and hopefully few prototypes,
 
13424
    which can conflict with char $ac_func (); below.
 
13425
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13426
    <limits.h> exists even on freestanding compilers.  */
 
13427
 
 
13428
#ifdef __STDC__
 
13429
# include <limits.h>
 
13430
#else
 
13431
# include <assert.h>
 
13432
#endif
 
13433
 
 
13434
#undef $ac_func
 
13435
 
 
13436
/* Override any GCC internal prototype to avoid an error.
 
13437
   Use char because int might match the return type of a GCC
 
13438
   builtin and then its argument prototype would still apply.  */
 
13439
#ifdef __cplusplus
 
13440
extern "C"
 
13441
#endif
 
13442
char $ac_func ();
 
13443
/* The GNU C library defines this for functions which it implements
 
13444
    to always fail with ENOSYS.  Some functions are actually named
 
13445
    something starting with __ and the normal name is an alias.  */
 
13446
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13447
choke me
 
13448
#endif
 
13449
 
 
13450
int
 
13451
main ()
 
13452
{
 
13453
return $ac_func ();
 
13454
  ;
 
13455
  return 0;
 
13456
}
 
13457
_ACEOF
 
13458
rm -f conftest.$ac_objext conftest$ac_exeext
 
13459
if { (ac_try="$ac_link"
 
13460
case "(($ac_try" in
 
13461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13462
  *) ac_try_echo=$ac_try;;
 
13463
esac
 
13464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13465
  (eval "$ac_link") 2>conftest.er1
 
13466
  ac_status=$?
 
13467
  grep -v '^ *+' conftest.er1 >conftest.err
 
13468
  rm -f conftest.er1
 
13469
  cat conftest.err >&5
 
13470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13471
  (exit $ac_status); } && {
 
13472
         test -z "$ac_c_werror_flag" ||
 
13473
         test ! -s conftest.err
 
13474
       } && test -s conftest$ac_exeext &&
 
13475
       $as_test_x conftest$ac_exeext; then
 
13476
  eval "$as_ac_var=yes"
 
13477
else
 
13478
  echo "$as_me: failed program was:" >&5
 
13479
sed 's/^/| /' conftest.$ac_ext >&5
 
13480
 
 
13481
        eval "$as_ac_var=no"
 
13482
fi
 
13483
 
 
13484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13485
      conftest$ac_exeext conftest.$ac_ext
 
13486
fi
 
13487
ac_res=`eval echo '${'$as_ac_var'}'`
 
13488
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13489
echo "${ECHO_T}$ac_res" >&6; }
 
13490
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13491
  cat >>confdefs.h <<_ACEOF
 
13492
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13493
_ACEOF
 
13494
 ice_have_j0=yes
 
13495
fi
 
13496
done
 
13497
 
 
13498
if test "${ice_have_j0}" = yes; then
 
13499
{ echo "$as_me:$LINENO: checking for j0 declaration in math.h" >&5
 
13500
echo $ECHO_N "checking for j0 declaration in math.h... $ECHO_C" >&6; }
 
13501
if test "${ice_cv_have_j0_decl+set}" = set; then
 
13502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13503
else
 
13504
 
 
13505
ice_cv_have_j0_decl=no
 
13506
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13507
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13508
for header in math.h; do
 
13509
# Check for ordinary declaration
 
13510
cat >conftest.$ac_ext <<_ACEOF
 
13511
/* confdefs.h.  */
 
13512
_ACEOF
 
13513
cat confdefs.h >>conftest.$ac_ext
 
13514
cat >>conftest.$ac_ext <<_ACEOF
 
13515
/* end confdefs.h.  */
 
13516
#include <$header>
 
13517
 
 
13518
_ACEOF
 
13519
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13520
  $EGREP "${ice_re_word}j0 *\(" >/dev/null 2>&1; then
 
13521
  ice_cv_have_j0_decl=yes
 
13522
fi
 
13523
rm -f conftest*
 
13524
 
 
13525
if test "$ice_cv_have_j0_decl" = yes; then
 
13526
        break
 
13527
fi
 
13528
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13529
cat >conftest.$ac_ext <<_ACEOF
 
13530
/* confdefs.h.  */
 
13531
_ACEOF
 
13532
cat confdefs.h >>conftest.$ac_ext
 
13533
cat >>conftest.$ac_ext <<_ACEOF
 
13534
/* end confdefs.h.  */
 
13535
#include <$header>
 
13536
 
 
13537
_ACEOF
 
13538
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13539
  $EGREP "${ice_re_word}j0 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13540
  ice_cv_have_j0_decl=yes
 
13541
fi
 
13542
rm -f conftest*
 
13543
 
 
13544
if test "$ice_cv_have_j0_decl" = yes; then
 
13545
        break
 
13546
fi
 
13547
done
 
13548
 
 
13549
fi
 
13550
 
 
13551
{ echo "$as_me:$LINENO: result: $ice_cv_have_j0_decl" >&5
 
13552
echo "${ECHO_T}$ice_cv_have_j0_decl" >&6; }
 
13553
if test "$ice_cv_have_j0_decl" = yes; then
 
13554
cat >>confdefs.h <<_ACEOF
 
13555
#define ${ice_have_decl_tr} 1
 
13556
_ACEOF
 
13557
 
 
13558
fi
 
13559
fi
 
13560
 
 
13561
 
 
13562
ice_tr=`echo j1 | tr '[a-z]' '[A-Z]'`
 
13563
ice_have_tr=HAVE_$ice_tr
 
13564
ice_have_decl_tr=${ice_have_tr}_DECL
 
13565
ice_have_j1=no
 
13566
 
 
13567
for ac_func in j1
 
13568
do
 
13569
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13570
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13571
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13572
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13574
else
 
13575
  cat >conftest.$ac_ext <<_ACEOF
 
13576
/* confdefs.h.  */
 
13577
_ACEOF
 
13578
cat confdefs.h >>conftest.$ac_ext
 
13579
cat >>conftest.$ac_ext <<_ACEOF
 
13580
/* end confdefs.h.  */
 
13581
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13582
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13583
#define $ac_func innocuous_$ac_func
 
13584
 
 
13585
/* System header to define __stub macros and hopefully few prototypes,
 
13586
    which can conflict with char $ac_func (); below.
 
13587
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13588
    <limits.h> exists even on freestanding compilers.  */
 
13589
 
 
13590
#ifdef __STDC__
 
13591
# include <limits.h>
 
13592
#else
 
13593
# include <assert.h>
 
13594
#endif
 
13595
 
 
13596
#undef $ac_func
 
13597
 
 
13598
/* Override any GCC internal prototype to avoid an error.
 
13599
   Use char because int might match the return type of a GCC
 
13600
   builtin and then its argument prototype would still apply.  */
 
13601
#ifdef __cplusplus
 
13602
extern "C"
 
13603
#endif
 
13604
char $ac_func ();
 
13605
/* The GNU C library defines this for functions which it implements
 
13606
    to always fail with ENOSYS.  Some functions are actually named
 
13607
    something starting with __ and the normal name is an alias.  */
 
13608
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13609
choke me
 
13610
#endif
 
13611
 
 
13612
int
 
13613
main ()
 
13614
{
 
13615
return $ac_func ();
 
13616
  ;
 
13617
  return 0;
 
13618
}
 
13619
_ACEOF
 
13620
rm -f conftest.$ac_objext conftest$ac_exeext
 
13621
if { (ac_try="$ac_link"
 
13622
case "(($ac_try" in
 
13623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13624
  *) ac_try_echo=$ac_try;;
 
13625
esac
 
13626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13627
  (eval "$ac_link") 2>conftest.er1
 
13628
  ac_status=$?
 
13629
  grep -v '^ *+' conftest.er1 >conftest.err
 
13630
  rm -f conftest.er1
 
13631
  cat conftest.err >&5
 
13632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13633
  (exit $ac_status); } && {
 
13634
         test -z "$ac_c_werror_flag" ||
 
13635
         test ! -s conftest.err
 
13636
       } && test -s conftest$ac_exeext &&
 
13637
       $as_test_x conftest$ac_exeext; then
 
13638
  eval "$as_ac_var=yes"
 
13639
else
 
13640
  echo "$as_me: failed program was:" >&5
 
13641
sed 's/^/| /' conftest.$ac_ext >&5
 
13642
 
 
13643
        eval "$as_ac_var=no"
 
13644
fi
 
13645
 
 
13646
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13647
      conftest$ac_exeext conftest.$ac_ext
 
13648
fi
 
13649
ac_res=`eval echo '${'$as_ac_var'}'`
 
13650
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13651
echo "${ECHO_T}$ac_res" >&6; }
 
13652
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13653
  cat >>confdefs.h <<_ACEOF
 
13654
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13655
_ACEOF
 
13656
 ice_have_j1=yes
 
13657
fi
 
13658
done
 
13659
 
 
13660
if test "${ice_have_j1}" = yes; then
 
13661
{ echo "$as_me:$LINENO: checking for j1 declaration in math.h" >&5
 
13662
echo $ECHO_N "checking for j1 declaration in math.h... $ECHO_C" >&6; }
 
13663
if test "${ice_cv_have_j1_decl+set}" = set; then
 
13664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13665
else
 
13666
 
 
13667
ice_cv_have_j1_decl=no
 
13668
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13669
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13670
for header in math.h; do
 
13671
# Check for ordinary declaration
 
13672
cat >conftest.$ac_ext <<_ACEOF
 
13673
/* confdefs.h.  */
 
13674
_ACEOF
 
13675
cat confdefs.h >>conftest.$ac_ext
 
13676
cat >>conftest.$ac_ext <<_ACEOF
 
13677
/* end confdefs.h.  */
 
13678
#include <$header>
 
13679
 
 
13680
_ACEOF
 
13681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13682
  $EGREP "${ice_re_word}j1 *\(" >/dev/null 2>&1; then
 
13683
  ice_cv_have_j1_decl=yes
 
13684
fi
 
13685
rm -f conftest*
 
13686
 
 
13687
if test "$ice_cv_have_j1_decl" = yes; then
 
13688
        break
 
13689
fi
 
13690
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13691
cat >conftest.$ac_ext <<_ACEOF
 
13692
/* confdefs.h.  */
 
13693
_ACEOF
 
13694
cat confdefs.h >>conftest.$ac_ext
 
13695
cat >>conftest.$ac_ext <<_ACEOF
 
13696
/* end confdefs.h.  */
 
13697
#include <$header>
 
13698
 
 
13699
_ACEOF
 
13700
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13701
  $EGREP "${ice_re_word}j1 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13702
  ice_cv_have_j1_decl=yes
 
13703
fi
 
13704
rm -f conftest*
 
13705
 
 
13706
if test "$ice_cv_have_j1_decl" = yes; then
 
13707
        break
 
13708
fi
 
13709
done
 
13710
 
 
13711
fi
 
13712
 
 
13713
{ echo "$as_me:$LINENO: result: $ice_cv_have_j1_decl" >&5
 
13714
echo "${ECHO_T}$ice_cv_have_j1_decl" >&6; }
 
13715
if test "$ice_cv_have_j1_decl" = yes; then
 
13716
cat >>confdefs.h <<_ACEOF
 
13717
#define ${ice_have_decl_tr} 1
 
13718
_ACEOF
 
13719
 
 
13720
fi
 
13721
fi
 
13722
 
 
13723
 
 
13724
ice_tr=`echo jn | tr '[a-z]' '[A-Z]'`
 
13725
ice_have_tr=HAVE_$ice_tr
 
13726
ice_have_decl_tr=${ice_have_tr}_DECL
 
13727
ice_have_jn=no
 
13728
 
 
13729
for ac_func in jn
 
13730
do
 
13731
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13732
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13733
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13734
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13736
else
 
13737
  cat >conftest.$ac_ext <<_ACEOF
 
13738
/* confdefs.h.  */
 
13739
_ACEOF
 
13740
cat confdefs.h >>conftest.$ac_ext
 
13741
cat >>conftest.$ac_ext <<_ACEOF
 
13742
/* end confdefs.h.  */
 
13743
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13744
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13745
#define $ac_func innocuous_$ac_func
 
13746
 
 
13747
/* System header to define __stub macros and hopefully few prototypes,
 
13748
    which can conflict with char $ac_func (); below.
 
13749
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13750
    <limits.h> exists even on freestanding compilers.  */
 
13751
 
 
13752
#ifdef __STDC__
 
13753
# include <limits.h>
 
13754
#else
 
13755
# include <assert.h>
 
13756
#endif
 
13757
 
 
13758
#undef $ac_func
 
13759
 
 
13760
/* Override any GCC internal prototype to avoid an error.
 
13761
   Use char because int might match the return type of a GCC
 
13762
   builtin and then its argument prototype would still apply.  */
 
13763
#ifdef __cplusplus
 
13764
extern "C"
 
13765
#endif
 
13766
char $ac_func ();
 
13767
/* The GNU C library defines this for functions which it implements
 
13768
    to always fail with ENOSYS.  Some functions are actually named
 
13769
    something starting with __ and the normal name is an alias.  */
 
13770
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13771
choke me
 
13772
#endif
 
13773
 
 
13774
int
 
13775
main ()
 
13776
{
 
13777
return $ac_func ();
 
13778
  ;
 
13779
  return 0;
 
13780
}
 
13781
_ACEOF
 
13782
rm -f conftest.$ac_objext conftest$ac_exeext
 
13783
if { (ac_try="$ac_link"
 
13784
case "(($ac_try" in
 
13785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13786
  *) ac_try_echo=$ac_try;;
 
13787
esac
 
13788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13789
  (eval "$ac_link") 2>conftest.er1
 
13790
  ac_status=$?
 
13791
  grep -v '^ *+' conftest.er1 >conftest.err
 
13792
  rm -f conftest.er1
 
13793
  cat conftest.err >&5
 
13794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13795
  (exit $ac_status); } && {
 
13796
         test -z "$ac_c_werror_flag" ||
 
13797
         test ! -s conftest.err
 
13798
       } && test -s conftest$ac_exeext &&
 
13799
       $as_test_x conftest$ac_exeext; then
 
13800
  eval "$as_ac_var=yes"
 
13801
else
 
13802
  echo "$as_me: failed program was:" >&5
 
13803
sed 's/^/| /' conftest.$ac_ext >&5
 
13804
 
 
13805
        eval "$as_ac_var=no"
 
13806
fi
 
13807
 
 
13808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13809
      conftest$ac_exeext conftest.$ac_ext
 
13810
fi
 
13811
ac_res=`eval echo '${'$as_ac_var'}'`
 
13812
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13813
echo "${ECHO_T}$ac_res" >&6; }
 
13814
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13815
  cat >>confdefs.h <<_ACEOF
 
13816
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13817
_ACEOF
 
13818
 ice_have_jn=yes
 
13819
fi
 
13820
done
 
13821
 
 
13822
if test "${ice_have_jn}" = yes; then
 
13823
{ echo "$as_me:$LINENO: checking for jn declaration in math.h" >&5
 
13824
echo $ECHO_N "checking for jn declaration in math.h... $ECHO_C" >&6; }
 
13825
if test "${ice_cv_have_jn_decl+set}" = set; then
 
13826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13827
else
 
13828
 
 
13829
ice_cv_have_jn_decl=no
 
13830
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13831
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13832
for header in math.h; do
 
13833
# Check for ordinary declaration
 
13834
cat >conftest.$ac_ext <<_ACEOF
 
13835
/* confdefs.h.  */
 
13836
_ACEOF
 
13837
cat confdefs.h >>conftest.$ac_ext
 
13838
cat >>conftest.$ac_ext <<_ACEOF
 
13839
/* end confdefs.h.  */
 
13840
#include <$header>
 
13841
 
 
13842
_ACEOF
 
13843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13844
  $EGREP "${ice_re_word}jn *\(" >/dev/null 2>&1; then
 
13845
  ice_cv_have_jn_decl=yes
 
13846
fi
 
13847
rm -f conftest*
 
13848
 
 
13849
if test "$ice_cv_have_jn_decl" = yes; then
 
13850
        break
 
13851
fi
 
13852
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
13853
cat >conftest.$ac_ext <<_ACEOF
 
13854
/* confdefs.h.  */
 
13855
_ACEOF
 
13856
cat confdefs.h >>conftest.$ac_ext
 
13857
cat >>conftest.$ac_ext <<_ACEOF
 
13858
/* end confdefs.h.  */
 
13859
#include <$header>
 
13860
 
 
13861
_ACEOF
 
13862
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13863
  $EGREP "${ice_re_word}jn *$ice_re_params\(\(" >/dev/null 2>&1; then
 
13864
  ice_cv_have_jn_decl=yes
 
13865
fi
 
13866
rm -f conftest*
 
13867
 
 
13868
if test "$ice_cv_have_jn_decl" = yes; then
 
13869
        break
 
13870
fi
 
13871
done
 
13872
 
 
13873
fi
 
13874
 
 
13875
{ echo "$as_me:$LINENO: result: $ice_cv_have_jn_decl" >&5
 
13876
echo "${ECHO_T}$ice_cv_have_jn_decl" >&6; }
 
13877
if test "$ice_cv_have_jn_decl" = yes; then
 
13878
cat >>confdefs.h <<_ACEOF
 
13879
#define ${ice_have_decl_tr} 1
 
13880
_ACEOF
 
13881
 
 
13882
fi
 
13883
fi
 
13884
 
 
13885
 
 
13886
ice_tr=`echo y0 | tr '[a-z]' '[A-Z]'`
 
13887
ice_have_tr=HAVE_$ice_tr
 
13888
ice_have_decl_tr=${ice_have_tr}_DECL
 
13889
ice_have_y0=no
 
13890
 
 
13891
for ac_func in y0
 
13892
do
 
13893
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13894
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13895
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13896
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13898
else
 
13899
  cat >conftest.$ac_ext <<_ACEOF
 
13900
/* confdefs.h.  */
 
13901
_ACEOF
 
13902
cat confdefs.h >>conftest.$ac_ext
 
13903
cat >>conftest.$ac_ext <<_ACEOF
 
13904
/* end confdefs.h.  */
 
13905
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13906
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13907
#define $ac_func innocuous_$ac_func
 
13908
 
 
13909
/* System header to define __stub macros and hopefully few prototypes,
 
13910
    which can conflict with char $ac_func (); below.
 
13911
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13912
    <limits.h> exists even on freestanding compilers.  */
 
13913
 
 
13914
#ifdef __STDC__
 
13915
# include <limits.h>
 
13916
#else
 
13917
# include <assert.h>
 
13918
#endif
 
13919
 
 
13920
#undef $ac_func
 
13921
 
 
13922
/* Override any GCC internal prototype to avoid an error.
 
13923
   Use char because int might match the return type of a GCC
 
13924
   builtin and then its argument prototype would still apply.  */
 
13925
#ifdef __cplusplus
 
13926
extern "C"
 
13927
#endif
 
13928
char $ac_func ();
 
13929
/* The GNU C library defines this for functions which it implements
 
13930
    to always fail with ENOSYS.  Some functions are actually named
 
13931
    something starting with __ and the normal name is an alias.  */
 
13932
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13933
choke me
 
13934
#endif
 
13935
 
 
13936
int
 
13937
main ()
 
13938
{
 
13939
return $ac_func ();
 
13940
  ;
 
13941
  return 0;
 
13942
}
 
13943
_ACEOF
 
13944
rm -f conftest.$ac_objext conftest$ac_exeext
 
13945
if { (ac_try="$ac_link"
 
13946
case "(($ac_try" in
 
13947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13948
  *) ac_try_echo=$ac_try;;
 
13949
esac
 
13950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13951
  (eval "$ac_link") 2>conftest.er1
 
13952
  ac_status=$?
 
13953
  grep -v '^ *+' conftest.er1 >conftest.err
 
13954
  rm -f conftest.er1
 
13955
  cat conftest.err >&5
 
13956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13957
  (exit $ac_status); } && {
 
13958
         test -z "$ac_c_werror_flag" ||
 
13959
         test ! -s conftest.err
 
13960
       } && test -s conftest$ac_exeext &&
 
13961
       $as_test_x conftest$ac_exeext; then
 
13962
  eval "$as_ac_var=yes"
 
13963
else
 
13964
  echo "$as_me: failed program was:" >&5
 
13965
sed 's/^/| /' conftest.$ac_ext >&5
 
13966
 
 
13967
        eval "$as_ac_var=no"
 
13968
fi
 
13969
 
 
13970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13971
      conftest$ac_exeext conftest.$ac_ext
 
13972
fi
 
13973
ac_res=`eval echo '${'$as_ac_var'}'`
 
13974
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13975
echo "${ECHO_T}$ac_res" >&6; }
 
13976
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13977
  cat >>confdefs.h <<_ACEOF
 
13978
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13979
_ACEOF
 
13980
 ice_have_y0=yes
 
13981
fi
 
13982
done
 
13983
 
 
13984
if test "${ice_have_y0}" = yes; then
 
13985
{ echo "$as_me:$LINENO: checking for y0 declaration in math.h" >&5
 
13986
echo $ECHO_N "checking for y0 declaration in math.h... $ECHO_C" >&6; }
 
13987
if test "${ice_cv_have_y0_decl+set}" = set; then
 
13988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13989
else
 
13990
 
 
13991
ice_cv_have_y0_decl=no
 
13992
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
13993
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
13994
for header in math.h; do
 
13995
# Check for ordinary declaration
 
13996
cat >conftest.$ac_ext <<_ACEOF
 
13997
/* confdefs.h.  */
 
13998
_ACEOF
 
13999
cat confdefs.h >>conftest.$ac_ext
 
14000
cat >>conftest.$ac_ext <<_ACEOF
 
14001
/* end confdefs.h.  */
 
14002
#include <$header>
 
14003
 
 
14004
_ACEOF
 
14005
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14006
  $EGREP "${ice_re_word}y0 *\(" >/dev/null 2>&1; then
 
14007
  ice_cv_have_y0_decl=yes
 
14008
fi
 
14009
rm -f conftest*
 
14010
 
 
14011
if test "$ice_cv_have_y0_decl" = yes; then
 
14012
        break
 
14013
fi
 
14014
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14015
cat >conftest.$ac_ext <<_ACEOF
 
14016
/* confdefs.h.  */
 
14017
_ACEOF
 
14018
cat confdefs.h >>conftest.$ac_ext
 
14019
cat >>conftest.$ac_ext <<_ACEOF
 
14020
/* end confdefs.h.  */
 
14021
#include <$header>
 
14022
 
 
14023
_ACEOF
 
14024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14025
  $EGREP "${ice_re_word}y0 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14026
  ice_cv_have_y0_decl=yes
 
14027
fi
 
14028
rm -f conftest*
 
14029
 
 
14030
if test "$ice_cv_have_y0_decl" = yes; then
 
14031
        break
 
14032
fi
 
14033
done
 
14034
 
 
14035
fi
 
14036
 
 
14037
{ echo "$as_me:$LINENO: result: $ice_cv_have_y0_decl" >&5
 
14038
echo "${ECHO_T}$ice_cv_have_y0_decl" >&6; }
 
14039
if test "$ice_cv_have_y0_decl" = yes; then
 
14040
cat >>confdefs.h <<_ACEOF
 
14041
#define ${ice_have_decl_tr} 1
 
14042
_ACEOF
 
14043
 
 
14044
fi
 
14045
fi
 
14046
 
 
14047
 
 
14048
ice_tr=`echo y1 | tr '[a-z]' '[A-Z]'`
 
14049
ice_have_tr=HAVE_$ice_tr
 
14050
ice_have_decl_tr=${ice_have_tr}_DECL
 
14051
ice_have_y1=no
 
14052
 
 
14053
for ac_func in y1
 
14054
do
 
14055
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14056
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14057
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14058
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14060
else
 
14061
  cat >conftest.$ac_ext <<_ACEOF
 
14062
/* confdefs.h.  */
 
14063
_ACEOF
 
14064
cat confdefs.h >>conftest.$ac_ext
 
14065
cat >>conftest.$ac_ext <<_ACEOF
 
14066
/* end confdefs.h.  */
 
14067
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14068
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14069
#define $ac_func innocuous_$ac_func
 
14070
 
 
14071
/* System header to define __stub macros and hopefully few prototypes,
 
14072
    which can conflict with char $ac_func (); below.
 
14073
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14074
    <limits.h> exists even on freestanding compilers.  */
 
14075
 
 
14076
#ifdef __STDC__
 
14077
# include <limits.h>
 
14078
#else
 
14079
# include <assert.h>
 
14080
#endif
 
14081
 
 
14082
#undef $ac_func
 
14083
 
 
14084
/* Override any GCC internal prototype to avoid an error.
 
14085
   Use char because int might match the return type of a GCC
 
14086
   builtin and then its argument prototype would still apply.  */
 
14087
#ifdef __cplusplus
 
14088
extern "C"
 
14089
#endif
 
14090
char $ac_func ();
 
14091
/* The GNU C library defines this for functions which it implements
 
14092
    to always fail with ENOSYS.  Some functions are actually named
 
14093
    something starting with __ and the normal name is an alias.  */
 
14094
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14095
choke me
 
14096
#endif
 
14097
 
 
14098
int
 
14099
main ()
 
14100
{
 
14101
return $ac_func ();
 
14102
  ;
 
14103
  return 0;
 
14104
}
 
14105
_ACEOF
 
14106
rm -f conftest.$ac_objext conftest$ac_exeext
 
14107
if { (ac_try="$ac_link"
 
14108
case "(($ac_try" in
 
14109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14110
  *) ac_try_echo=$ac_try;;
 
14111
esac
 
14112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14113
  (eval "$ac_link") 2>conftest.er1
 
14114
  ac_status=$?
 
14115
  grep -v '^ *+' conftest.er1 >conftest.err
 
14116
  rm -f conftest.er1
 
14117
  cat conftest.err >&5
 
14118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14119
  (exit $ac_status); } && {
 
14120
         test -z "$ac_c_werror_flag" ||
 
14121
         test ! -s conftest.err
 
14122
       } && test -s conftest$ac_exeext &&
 
14123
       $as_test_x conftest$ac_exeext; then
 
14124
  eval "$as_ac_var=yes"
 
14125
else
 
14126
  echo "$as_me: failed program was:" >&5
 
14127
sed 's/^/| /' conftest.$ac_ext >&5
 
14128
 
 
14129
        eval "$as_ac_var=no"
 
14130
fi
 
14131
 
 
14132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14133
      conftest$ac_exeext conftest.$ac_ext
 
14134
fi
 
14135
ac_res=`eval echo '${'$as_ac_var'}'`
 
14136
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14137
echo "${ECHO_T}$ac_res" >&6; }
 
14138
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14139
  cat >>confdefs.h <<_ACEOF
 
14140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14141
_ACEOF
 
14142
 ice_have_y1=yes
 
14143
fi
 
14144
done
 
14145
 
 
14146
if test "${ice_have_y1}" = yes; then
 
14147
{ echo "$as_me:$LINENO: checking for y1 declaration in math.h" >&5
 
14148
echo $ECHO_N "checking for y1 declaration in math.h... $ECHO_C" >&6; }
 
14149
if test "${ice_cv_have_y1_decl+set}" = set; then
 
14150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14151
else
 
14152
 
 
14153
ice_cv_have_y1_decl=no
 
14154
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
14155
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
14156
for header in math.h; do
 
14157
# Check for ordinary declaration
 
14158
cat >conftest.$ac_ext <<_ACEOF
 
14159
/* confdefs.h.  */
 
14160
_ACEOF
 
14161
cat confdefs.h >>conftest.$ac_ext
 
14162
cat >>conftest.$ac_ext <<_ACEOF
 
14163
/* end confdefs.h.  */
 
14164
#include <$header>
 
14165
 
 
14166
_ACEOF
 
14167
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14168
  $EGREP "${ice_re_word}y1 *\(" >/dev/null 2>&1; then
 
14169
  ice_cv_have_y1_decl=yes
 
14170
fi
 
14171
rm -f conftest*
 
14172
 
 
14173
if test "$ice_cv_have_y1_decl" = yes; then
 
14174
        break
 
14175
fi
 
14176
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14177
cat >conftest.$ac_ext <<_ACEOF
 
14178
/* confdefs.h.  */
 
14179
_ACEOF
 
14180
cat confdefs.h >>conftest.$ac_ext
 
14181
cat >>conftest.$ac_ext <<_ACEOF
 
14182
/* end confdefs.h.  */
 
14183
#include <$header>
 
14184
 
 
14185
_ACEOF
 
14186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14187
  $EGREP "${ice_re_word}y1 *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14188
  ice_cv_have_y1_decl=yes
 
14189
fi
 
14190
rm -f conftest*
 
14191
 
 
14192
if test "$ice_cv_have_y1_decl" = yes; then
 
14193
        break
 
14194
fi
 
14195
done
 
14196
 
 
14197
fi
 
14198
 
 
14199
{ echo "$as_me:$LINENO: result: $ice_cv_have_y1_decl" >&5
 
14200
echo "${ECHO_T}$ice_cv_have_y1_decl" >&6; }
 
14201
if test "$ice_cv_have_y1_decl" = yes; then
 
14202
cat >>confdefs.h <<_ACEOF
 
14203
#define ${ice_have_decl_tr} 1
 
14204
_ACEOF
 
14205
 
 
14206
fi
 
14207
fi
 
14208
 
 
14209
 
 
14210
ice_tr=`echo yn | tr '[a-z]' '[A-Z]'`
 
14211
ice_have_tr=HAVE_$ice_tr
 
14212
ice_have_decl_tr=${ice_have_tr}_DECL
 
14213
ice_have_yn=no
 
14214
 
 
14215
for ac_func in yn
 
14216
do
 
14217
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14218
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14219
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14220
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14222
else
 
14223
  cat >conftest.$ac_ext <<_ACEOF
 
14224
/* confdefs.h.  */
 
14225
_ACEOF
 
14226
cat confdefs.h >>conftest.$ac_ext
 
14227
cat >>conftest.$ac_ext <<_ACEOF
 
14228
/* end confdefs.h.  */
 
14229
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14230
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14231
#define $ac_func innocuous_$ac_func
 
14232
 
 
14233
/* System header to define __stub macros and hopefully few prototypes,
 
14234
    which can conflict with char $ac_func (); below.
 
14235
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14236
    <limits.h> exists even on freestanding compilers.  */
 
14237
 
 
14238
#ifdef __STDC__
 
14239
# include <limits.h>
 
14240
#else
 
14241
# include <assert.h>
 
14242
#endif
 
14243
 
 
14244
#undef $ac_func
 
14245
 
 
14246
/* Override any GCC internal prototype to avoid an error.
 
14247
   Use char because int might match the return type of a GCC
 
14248
   builtin and then its argument prototype would still apply.  */
 
14249
#ifdef __cplusplus
 
14250
extern "C"
 
14251
#endif
 
14252
char $ac_func ();
 
14253
/* The GNU C library defines this for functions which it implements
 
14254
    to always fail with ENOSYS.  Some functions are actually named
 
14255
    something starting with __ and the normal name is an alias.  */
 
14256
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14257
choke me
 
14258
#endif
 
14259
 
 
14260
int
 
14261
main ()
 
14262
{
 
14263
return $ac_func ();
 
14264
  ;
 
14265
  return 0;
 
14266
}
 
14267
_ACEOF
 
14268
rm -f conftest.$ac_objext conftest$ac_exeext
 
14269
if { (ac_try="$ac_link"
 
14270
case "(($ac_try" in
 
14271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14272
  *) ac_try_echo=$ac_try;;
 
14273
esac
 
14274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14275
  (eval "$ac_link") 2>conftest.er1
 
14276
  ac_status=$?
 
14277
  grep -v '^ *+' conftest.er1 >conftest.err
 
14278
  rm -f conftest.er1
 
14279
  cat conftest.err >&5
 
14280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14281
  (exit $ac_status); } && {
 
14282
         test -z "$ac_c_werror_flag" ||
 
14283
         test ! -s conftest.err
 
14284
       } && test -s conftest$ac_exeext &&
 
14285
       $as_test_x conftest$ac_exeext; then
 
14286
  eval "$as_ac_var=yes"
 
14287
else
 
14288
  echo "$as_me: failed program was:" >&5
 
14289
sed 's/^/| /' conftest.$ac_ext >&5
 
14290
 
 
14291
        eval "$as_ac_var=no"
 
14292
fi
 
14293
 
 
14294
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14295
      conftest$ac_exeext conftest.$ac_ext
 
14296
fi
 
14297
ac_res=`eval echo '${'$as_ac_var'}'`
 
14298
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14299
echo "${ECHO_T}$ac_res" >&6; }
 
14300
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14301
  cat >>confdefs.h <<_ACEOF
 
14302
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14303
_ACEOF
 
14304
 ice_have_yn=yes
 
14305
fi
 
14306
done
 
14307
 
 
14308
if test "${ice_have_yn}" = yes; then
 
14309
{ echo "$as_me:$LINENO: checking for yn declaration in math.h" >&5
 
14310
echo $ECHO_N "checking for yn declaration in math.h... $ECHO_C" >&6; }
 
14311
if test "${ice_cv_have_yn_decl+set}" = set; then
 
14312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14313
else
 
14314
 
 
14315
ice_cv_have_yn_decl=no
 
14316
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
14317
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
14318
for header in math.h; do
 
14319
# Check for ordinary declaration
 
14320
cat >conftest.$ac_ext <<_ACEOF
 
14321
/* confdefs.h.  */
 
14322
_ACEOF
 
14323
cat confdefs.h >>conftest.$ac_ext
 
14324
cat >>conftest.$ac_ext <<_ACEOF
 
14325
/* end confdefs.h.  */
 
14326
#include <$header>
 
14327
 
 
14328
_ACEOF
 
14329
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14330
  $EGREP "${ice_re_word}yn *\(" >/dev/null 2>&1; then
 
14331
  ice_cv_have_yn_decl=yes
 
14332
fi
 
14333
rm -f conftest*
 
14334
 
 
14335
if test "$ice_cv_have_yn_decl" = yes; then
 
14336
        break
 
14337
fi
 
14338
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14339
cat >conftest.$ac_ext <<_ACEOF
 
14340
/* confdefs.h.  */
 
14341
_ACEOF
 
14342
cat confdefs.h >>conftest.$ac_ext
 
14343
cat >>conftest.$ac_ext <<_ACEOF
 
14344
/* end confdefs.h.  */
 
14345
#include <$header>
 
14346
 
 
14347
_ACEOF
 
14348
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14349
  $EGREP "${ice_re_word}yn *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14350
  ice_cv_have_yn_decl=yes
 
14351
fi
 
14352
rm -f conftest*
 
14353
 
 
14354
if test "$ice_cv_have_yn_decl" = yes; then
 
14355
        break
 
14356
fi
 
14357
done
 
14358
 
 
14359
fi
 
14360
 
 
14361
{ echo "$as_me:$LINENO: result: $ice_cv_have_yn_decl" >&5
 
14362
echo "${ECHO_T}$ice_cv_have_yn_decl" >&6; }
 
14363
if test "$ice_cv_have_yn_decl" = yes; then
 
14364
cat >>confdefs.h <<_ACEOF
 
14365
#define ${ice_have_decl_tr} 1
 
14366
_ACEOF
 
14367
 
 
14368
fi
 
14369
fi
 
14370
 
 
14371
 
 
14372
ice_tr=`echo finite | tr '[a-z]' '[A-Z]'`
 
14373
ice_have_tr=HAVE_$ice_tr
 
14374
ice_have_decl_tr=${ice_have_tr}_DECL
 
14375
ice_have_finite=no
 
14376
 
 
14377
for ac_func in finite
 
14378
do
 
14379
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14380
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14381
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14382
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14384
else
 
14385
  cat >conftest.$ac_ext <<_ACEOF
 
14386
/* confdefs.h.  */
 
14387
_ACEOF
 
14388
cat confdefs.h >>conftest.$ac_ext
 
14389
cat >>conftest.$ac_ext <<_ACEOF
 
14390
/* end confdefs.h.  */
 
14391
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14392
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14393
#define $ac_func innocuous_$ac_func
 
14394
 
 
14395
/* System header to define __stub macros and hopefully few prototypes,
 
14396
    which can conflict with char $ac_func (); below.
 
14397
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14398
    <limits.h> exists even on freestanding compilers.  */
 
14399
 
 
14400
#ifdef __STDC__
 
14401
# include <limits.h>
 
14402
#else
 
14403
# include <assert.h>
 
14404
#endif
 
14405
 
 
14406
#undef $ac_func
 
14407
 
 
14408
/* Override any GCC internal prototype to avoid an error.
 
14409
   Use char because int might match the return type of a GCC
 
14410
   builtin and then its argument prototype would still apply.  */
 
14411
#ifdef __cplusplus
 
14412
extern "C"
 
14413
#endif
 
14414
char $ac_func ();
 
14415
/* The GNU C library defines this for functions which it implements
 
14416
    to always fail with ENOSYS.  Some functions are actually named
 
14417
    something starting with __ and the normal name is an alias.  */
 
14418
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14419
choke me
 
14420
#endif
 
14421
 
 
14422
int
 
14423
main ()
 
14424
{
 
14425
return $ac_func ();
 
14426
  ;
 
14427
  return 0;
 
14428
}
 
14429
_ACEOF
 
14430
rm -f conftest.$ac_objext conftest$ac_exeext
 
14431
if { (ac_try="$ac_link"
 
14432
case "(($ac_try" in
 
14433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14434
  *) ac_try_echo=$ac_try;;
 
14435
esac
 
14436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14437
  (eval "$ac_link") 2>conftest.er1
 
14438
  ac_status=$?
 
14439
  grep -v '^ *+' conftest.er1 >conftest.err
 
14440
  rm -f conftest.er1
 
14441
  cat conftest.err >&5
 
14442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14443
  (exit $ac_status); } && {
 
14444
         test -z "$ac_c_werror_flag" ||
 
14445
         test ! -s conftest.err
 
14446
       } && test -s conftest$ac_exeext &&
 
14447
       $as_test_x conftest$ac_exeext; then
 
14448
  eval "$as_ac_var=yes"
 
14449
else
 
14450
  echo "$as_me: failed program was:" >&5
 
14451
sed 's/^/| /' conftest.$ac_ext >&5
 
14452
 
 
14453
        eval "$as_ac_var=no"
 
14454
fi
 
14455
 
 
14456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14457
      conftest$ac_exeext conftest.$ac_ext
 
14458
fi
 
14459
ac_res=`eval echo '${'$as_ac_var'}'`
 
14460
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14461
echo "${ECHO_T}$ac_res" >&6; }
 
14462
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14463
  cat >>confdefs.h <<_ACEOF
 
14464
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14465
_ACEOF
 
14466
 ice_have_finite=yes
 
14467
fi
 
14468
done
 
14469
 
 
14470
if test "${ice_have_finite}" = yes; then
 
14471
{ echo "$as_me:$LINENO: checking for finite declaration in math.h" >&5
 
14472
echo $ECHO_N "checking for finite declaration in math.h... $ECHO_C" >&6; }
 
14473
if test "${ice_cv_have_finite_decl+set}" = set; then
 
14474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14475
else
 
14476
 
 
14477
ice_cv_have_finite_decl=no
 
14478
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
14479
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
14480
for header in math.h; do
 
14481
# Check for ordinary declaration
 
14482
cat >conftest.$ac_ext <<_ACEOF
 
14483
/* confdefs.h.  */
 
14484
_ACEOF
 
14485
cat confdefs.h >>conftest.$ac_ext
 
14486
cat >>conftest.$ac_ext <<_ACEOF
 
14487
/* end confdefs.h.  */
 
14488
#include <$header>
 
14489
 
 
14490
_ACEOF
 
14491
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14492
  $EGREP "${ice_re_word}finite *\(" >/dev/null 2>&1; then
 
14493
  ice_cv_have_finite_decl=yes
 
14494
fi
 
14495
rm -f conftest*
 
14496
 
 
14497
if test "$ice_cv_have_finite_decl" = yes; then
 
14498
        break
 
14499
fi
 
14500
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14501
cat >conftest.$ac_ext <<_ACEOF
 
14502
/* confdefs.h.  */
 
14503
_ACEOF
 
14504
cat confdefs.h >>conftest.$ac_ext
 
14505
cat >>conftest.$ac_ext <<_ACEOF
 
14506
/* end confdefs.h.  */
 
14507
#include <$header>
 
14508
 
 
14509
_ACEOF
 
14510
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14511
  $EGREP "${ice_re_word}finite *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14512
  ice_cv_have_finite_decl=yes
 
14513
fi
 
14514
rm -f conftest*
 
14515
 
 
14516
if test "$ice_cv_have_finite_decl" = yes; then
 
14517
        break
 
14518
fi
 
14519
done
 
14520
 
 
14521
fi
 
14522
 
 
14523
{ echo "$as_me:$LINENO: result: $ice_cv_have_finite_decl" >&5
 
14524
echo "${ECHO_T}$ice_cv_have_finite_decl" >&6; }
 
14525
if test "$ice_cv_have_finite_decl" = yes; then
 
14526
cat >>confdefs.h <<_ACEOF
 
14527
#define ${ice_have_decl_tr} 1
 
14528
_ACEOF
 
14529
 
 
14530
fi
 
14531
fi
 
14532
 
 
14533
if test "$ac_cv_lib_m_finite" != yes; then
 
14534
 
 
14535
ice_tr=`echo isfinite | tr '[a-z]' '[A-Z]'`
 
14536
ice_have_tr=HAVE_$ice_tr
 
14537
ice_have_decl_tr=${ice_have_tr}_DECL
 
14538
ice_have_isfinite=no
 
14539
 
 
14540
for ac_func in isfinite
 
14541
do
 
14542
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14543
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14544
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14545
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14547
else
 
14548
  cat >conftest.$ac_ext <<_ACEOF
 
14549
/* confdefs.h.  */
 
14550
_ACEOF
 
14551
cat confdefs.h >>conftest.$ac_ext
 
14552
cat >>conftest.$ac_ext <<_ACEOF
 
14553
/* end confdefs.h.  */
 
14554
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14555
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14556
#define $ac_func innocuous_$ac_func
 
14557
 
 
14558
/* System header to define __stub macros and hopefully few prototypes,
 
14559
    which can conflict with char $ac_func (); below.
 
14560
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14561
    <limits.h> exists even on freestanding compilers.  */
 
14562
 
 
14563
#ifdef __STDC__
 
14564
# include <limits.h>
 
14565
#else
 
14566
# include <assert.h>
 
14567
#endif
 
14568
 
 
14569
#undef $ac_func
 
14570
 
 
14571
/* Override any GCC internal prototype to avoid an error.
 
14572
   Use char because int might match the return type of a GCC
 
14573
   builtin and then its argument prototype would still apply.  */
 
14574
#ifdef __cplusplus
 
14575
extern "C"
 
14576
#endif
 
14577
char $ac_func ();
 
14578
/* The GNU C library defines this for functions which it implements
 
14579
    to always fail with ENOSYS.  Some functions are actually named
 
14580
    something starting with __ and the normal name is an alias.  */
 
14581
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14582
choke me
 
14583
#endif
 
14584
 
 
14585
int
 
14586
main ()
 
14587
{
 
14588
return $ac_func ();
 
14589
  ;
 
14590
  return 0;
 
14591
}
 
14592
_ACEOF
 
14593
rm -f conftest.$ac_objext conftest$ac_exeext
 
14594
if { (ac_try="$ac_link"
 
14595
case "(($ac_try" in
 
14596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14597
  *) ac_try_echo=$ac_try;;
 
14598
esac
 
14599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14600
  (eval "$ac_link") 2>conftest.er1
 
14601
  ac_status=$?
 
14602
  grep -v '^ *+' conftest.er1 >conftest.err
 
14603
  rm -f conftest.er1
 
14604
  cat conftest.err >&5
 
14605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14606
  (exit $ac_status); } && {
 
14607
         test -z "$ac_c_werror_flag" ||
 
14608
         test ! -s conftest.err
 
14609
       } && test -s conftest$ac_exeext &&
 
14610
       $as_test_x conftest$ac_exeext; then
 
14611
  eval "$as_ac_var=yes"
 
14612
else
 
14613
  echo "$as_me: failed program was:" >&5
 
14614
sed 's/^/| /' conftest.$ac_ext >&5
 
14615
 
 
14616
        eval "$as_ac_var=no"
 
14617
fi
 
14618
 
 
14619
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14620
      conftest$ac_exeext conftest.$ac_ext
 
14621
fi
 
14622
ac_res=`eval echo '${'$as_ac_var'}'`
 
14623
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14624
echo "${ECHO_T}$ac_res" >&6; }
 
14625
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14626
  cat >>confdefs.h <<_ACEOF
 
14627
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14628
_ACEOF
 
14629
 ice_have_isfinite=yes
 
14630
fi
 
14631
done
 
14632
 
 
14633
if test "${ice_have_isfinite}" = yes; then
 
14634
{ echo "$as_me:$LINENO: checking for isfinite declaration in math.h" >&5
 
14635
echo $ECHO_N "checking for isfinite declaration in math.h... $ECHO_C" >&6; }
 
14636
if test "${ice_cv_have_isfinite_decl+set}" = set; then
 
14637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14638
else
 
14639
 
 
14640
ice_cv_have_isfinite_decl=no
 
14641
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
14642
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
14643
for header in math.h; do
 
14644
# Check for ordinary declaration
 
14645
cat >conftest.$ac_ext <<_ACEOF
 
14646
/* confdefs.h.  */
 
14647
_ACEOF
 
14648
cat confdefs.h >>conftest.$ac_ext
 
14649
cat >>conftest.$ac_ext <<_ACEOF
 
14650
/* end confdefs.h.  */
 
14651
#include <$header>
 
14652
 
 
14653
_ACEOF
 
14654
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14655
  $EGREP "${ice_re_word}isfinite *\(" >/dev/null 2>&1; then
 
14656
  ice_cv_have_isfinite_decl=yes
 
14657
fi
 
14658
rm -f conftest*
 
14659
 
 
14660
if test "$ice_cv_have_isfinite_decl" = yes; then
 
14661
        break
 
14662
fi
 
14663
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14664
cat >conftest.$ac_ext <<_ACEOF
 
14665
/* confdefs.h.  */
 
14666
_ACEOF
 
14667
cat confdefs.h >>conftest.$ac_ext
 
14668
cat >>conftest.$ac_ext <<_ACEOF
 
14669
/* end confdefs.h.  */
 
14670
#include <$header>
 
14671
 
 
14672
_ACEOF
 
14673
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14674
  $EGREP "${ice_re_word}isfinite *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14675
  ice_cv_have_isfinite_decl=yes
 
14676
fi
 
14677
rm -f conftest*
 
14678
 
 
14679
if test "$ice_cv_have_isfinite_decl" = yes; then
 
14680
        break
 
14681
fi
 
14682
done
 
14683
 
 
14684
fi
 
14685
 
 
14686
{ echo "$as_me:$LINENO: result: $ice_cv_have_isfinite_decl" >&5
 
14687
echo "${ECHO_T}$ice_cv_have_isfinite_decl" >&6; }
 
14688
if test "$ice_cv_have_isfinite_decl" = yes; then
 
14689
cat >>confdefs.h <<_ACEOF
 
14690
#define ${ice_have_decl_tr} 1
 
14691
_ACEOF
 
14692
 
 
14693
fi
 
14694
fi
 
14695
 
 
14696
fi
 
14697
 
 
14698
ice_tr=`echo isnan | tr '[a-z]' '[A-Z]'`
 
14699
ice_have_tr=HAVE_$ice_tr
 
14700
ice_have_decl_tr=${ice_have_tr}_DECL
 
14701
ice_have_isnan=no
 
14702
 
 
14703
for ac_func in isnan
 
14704
do
 
14705
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14706
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14707
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14708
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14710
else
 
14711
  cat >conftest.$ac_ext <<_ACEOF
 
14712
/* confdefs.h.  */
 
14713
_ACEOF
 
14714
cat confdefs.h >>conftest.$ac_ext
 
14715
cat >>conftest.$ac_ext <<_ACEOF
 
14716
/* end confdefs.h.  */
 
14717
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14718
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14719
#define $ac_func innocuous_$ac_func
 
14720
 
 
14721
/* System header to define __stub macros and hopefully few prototypes,
 
14722
    which can conflict with char $ac_func (); below.
 
14723
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14724
    <limits.h> exists even on freestanding compilers.  */
 
14725
 
 
14726
#ifdef __STDC__
 
14727
# include <limits.h>
 
14728
#else
 
14729
# include <assert.h>
 
14730
#endif
 
14731
 
 
14732
#undef $ac_func
 
14733
 
 
14734
/* Override any GCC internal prototype to avoid an error.
 
14735
   Use char because int might match the return type of a GCC
 
14736
   builtin and then its argument prototype would still apply.  */
 
14737
#ifdef __cplusplus
 
14738
extern "C"
 
14739
#endif
 
14740
char $ac_func ();
 
14741
/* The GNU C library defines this for functions which it implements
 
14742
    to always fail with ENOSYS.  Some functions are actually named
 
14743
    something starting with __ and the normal name is an alias.  */
 
14744
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14745
choke me
 
14746
#endif
 
14747
 
 
14748
int
 
14749
main ()
 
14750
{
 
14751
return $ac_func ();
 
14752
  ;
 
14753
  return 0;
 
14754
}
 
14755
_ACEOF
 
14756
rm -f conftest.$ac_objext conftest$ac_exeext
 
14757
if { (ac_try="$ac_link"
 
14758
case "(($ac_try" in
 
14759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14760
  *) ac_try_echo=$ac_try;;
 
14761
esac
 
14762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14763
  (eval "$ac_link") 2>conftest.er1
 
14764
  ac_status=$?
 
14765
  grep -v '^ *+' conftest.er1 >conftest.err
 
14766
  rm -f conftest.er1
 
14767
  cat conftest.err >&5
 
14768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14769
  (exit $ac_status); } && {
 
14770
         test -z "$ac_c_werror_flag" ||
 
14771
         test ! -s conftest.err
 
14772
       } && test -s conftest$ac_exeext &&
 
14773
       $as_test_x conftest$ac_exeext; then
 
14774
  eval "$as_ac_var=yes"
 
14775
else
 
14776
  echo "$as_me: failed program was:" >&5
 
14777
sed 's/^/| /' conftest.$ac_ext >&5
 
14778
 
 
14779
        eval "$as_ac_var=no"
 
14780
fi
 
14781
 
 
14782
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14783
      conftest$ac_exeext conftest.$ac_ext
 
14784
fi
 
14785
ac_res=`eval echo '${'$as_ac_var'}'`
 
14786
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14787
echo "${ECHO_T}$ac_res" >&6; }
 
14788
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14789
  cat >>confdefs.h <<_ACEOF
 
14790
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14791
_ACEOF
 
14792
 ice_have_isnan=yes
 
14793
fi
 
14794
done
 
14795
 
 
14796
if test "${ice_have_isnan}" = yes; then
 
14797
{ echo "$as_me:$LINENO: checking for isnan declaration in math.h" >&5
 
14798
echo $ECHO_N "checking for isnan declaration in math.h... $ECHO_C" >&6; }
 
14799
if test "${ice_cv_have_isnan_decl+set}" = set; then
 
14800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14801
else
 
14802
 
 
14803
ice_cv_have_isnan_decl=no
 
14804
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
 
14805
ice_re_word='(^|[^a-zA-Z_0-9_])'
 
14806
for header in math.h; do
 
14807
# Check for ordinary declaration
 
14808
cat >conftest.$ac_ext <<_ACEOF
 
14809
/* confdefs.h.  */
 
14810
_ACEOF
 
14811
cat confdefs.h >>conftest.$ac_ext
 
14812
cat >>conftest.$ac_ext <<_ACEOF
 
14813
/* end confdefs.h.  */
 
14814
#include <$header>
 
14815
 
 
14816
_ACEOF
 
14817
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14818
  $EGREP "${ice_re_word}isnan *\(" >/dev/null 2>&1; then
 
14819
  ice_cv_have_isnan_decl=yes
 
14820
fi
 
14821
rm -f conftest*
 
14822
 
 
14823
if test "$ice_cv_have_isnan_decl" = yes; then
 
14824
        break
 
14825
fi
 
14826
# Check for "fixed" declaration like "getpid _PARAMS((int))"
 
14827
cat >conftest.$ac_ext <<_ACEOF
 
14828
/* confdefs.h.  */
 
14829
_ACEOF
 
14830
cat confdefs.h >>conftest.$ac_ext
 
14831
cat >>conftest.$ac_ext <<_ACEOF
 
14832
/* end confdefs.h.  */
 
14833
#include <$header>
 
14834
 
 
14835
_ACEOF
 
14836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14837
  $EGREP "${ice_re_word}isnan *$ice_re_params\(\(" >/dev/null 2>&1; then
 
14838
  ice_cv_have_isnan_decl=yes
 
14839
fi
 
14840
rm -f conftest*
 
14841
 
 
14842
if test "$ice_cv_have_isnan_decl" = yes; then
 
14843
        break
 
14844
fi
 
14845
done
 
14846
 
 
14847
fi
 
14848
 
 
14849
{ echo "$as_me:$LINENO: result: $ice_cv_have_isnan_decl" >&5
 
14850
echo "${ECHO_T}$ice_cv_have_isnan_decl" >&6; }
 
14851
if test "$ice_cv_have_isnan_decl" = yes; then
 
14852
cat >>confdefs.h <<_ACEOF
 
14853
#define ${ice_have_decl_tr} 1
 
14854
_ACEOF
 
14855
 
 
14856
fi
 
14857
fi
 
14858
 
 
14859
 
 
14860
if test $bundled_t1lib = false
 
14861
then
 
14862
 
 
14863
  { echo "$as_me:$LINENO: checking for T1lib >= 1.3.1" >&5
 
14864
echo $ECHO_N "checking for T1lib >= 1.3.1... $ECHO_C" >&6; }
 
14865
if test "${acx_cv_t1lib+set}" = set; then
 
14866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14867
else
 
14868
 
 
14869
    save_CFLAGS=$CFLAGS
 
14870
    save_CPPFLAGS=$CPPFLAGS
 
14871
    save_LDFLAGS=$LDFLAGS
 
14872
    save_LIBS=$LIBS
 
14873
 
 
14874
    LIBS="-lt1 -lm $LIBS"
 
14875
    if test "$cross_compiling" = yes; then
 
14876
  acx_cv_t1lib="no"
 
14877
 
 
14878
else
 
14879
  cat >conftest.$ac_ext <<_ACEOF
 
14880
/* confdefs.h.  */
 
14881
_ACEOF
 
14882
cat confdefs.h >>conftest.$ac_ext
 
14883
cat >>conftest.$ac_ext <<_ACEOF
 
14884
/* end confdefs.h.  */
 
14885
 
 
14886
#include <string.h>
 
14887
#include <t1lib.h>
 
14888
      int main(void) {
 
14889
        char *vlib;
 
14890
        vlib = T1_GetLibIdent();
 
14891
        if (strcmp(vlib, "1.3.1") < 0) {
 
14892
          exit(1);
 
14893
        }
 
14894
        exit(0);
 
14895
      }
 
14896
 
 
14897
_ACEOF
 
14898
rm -f conftest$ac_exeext
 
14899
if { (ac_try="$ac_link"
 
14900
case "(($ac_try" in
 
14901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14902
  *) ac_try_echo=$ac_try;;
 
14903
esac
 
14904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14905
  (eval "$ac_link") 2>&5
 
14906
  ac_status=$?
 
14907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14908
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14909
  { (case "(($ac_try" in
 
14910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14911
  *) ac_try_echo=$ac_try;;
 
14912
esac
 
14913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14914
  (eval "$ac_try") 2>&5
 
14915
  ac_status=$?
 
14916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14917
  (exit $ac_status); }; }; then
 
14918
  acx_cv_t1lib="yes"
 
14919
else
 
14920
  echo "$as_me: program exited with status $ac_status" >&5
 
14921
echo "$as_me: failed program was:" >&5
 
14922
sed 's/^/| /' conftest.$ac_ext >&5
 
14923
 
 
14924
( exit $ac_status )
 
14925
acx_cv_t1lib="no"
 
14926
fi
 
14927
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14928
fi
 
14929
 
 
14930
 
 
14931
 
 
14932
    CFLAGS=$save_CFLAGS
 
14933
    CPPFLAGS=$save_CPPFLAGS
 
14934
    LDFLAGS=$save_LDFLAGS
 
14935
    LIBS=$save_LIBS
 
14936
 
 
14937
 
 
14938
fi
 
14939
{ echo "$as_me:$LINENO: result: $acx_cv_t1lib" >&5
 
14940
echo "${ECHO_T}$acx_cv_t1lib" >&6; }
 
14941
  if test "$acx_cv_t1lib" = "yes"
 
14942
  then
 
14943
    T1_LIB="-lt1"
 
14944
    cat >>confdefs.h <<\_ACEOF
 
14945
#define HAVE_LIBT1 1
 
14946
_ACEOF
 
14947
 
 
14948
  else
 
14949
    T1_LIB=
 
14950
    bundled_t1lib=true
 
14951
  fi
 
14952
 
 
14953
fi
 
14954
 
 
14955
if test $bundled_t1lib = true
 
14956
then
 
14957
 
 
14958
  { echo "$as_me:$LINENO: result: --> Bundled version of T1lib will be used" >&5
 
14959
echo "${ECHO_T}--> Bundled version of T1lib will be used" >&6; }
 
14960
 
 
14961
  T1_LIB='$(TOP)/T1lib/libt1.a'
 
14962
  T1_INC='-I$(TOP)/T1lib/t1lib'
 
14963
  t1lib_dir="T1lib"
 
14964
 
 
14965
 
 
14966
    { echo "$as_me:$LINENO: checking \"which ANSI integer type is 16 bit\"" >&5
 
14967
echo $ECHO_N "checking \"which ANSI integer type is 16 bit\"... $ECHO_C" >&6; }
 
14968
if test "${ac_16bit_type+set}" = set; then
 
14969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14970
else
 
14971
  if test "$cross_compiling" = yes; then
 
14972
  ac_16bit_type=
 
14973
else
 
14974
  cat >conftest.$ac_ext <<_ACEOF
 
14975
/* confdefs.h.  */
 
14976
_ACEOF
 
14977
cat confdefs.h >>conftest.$ac_ext
 
14978
cat >>conftest.$ac_ext <<_ACEOF
 
14979
/* end confdefs.h.  */
 
14980
 
 
14981
  int main(void) {
 
14982
    if (sizeof(short)==2)
 
14983
      return(0);
 
14984
    else if (sizeof(int)==2)
 
14985
      return(1);
 
14986
    else
 
14987
      return(2);
 
14988
  }
 
14989
_ACEOF
 
14990
rm -f conftest$ac_exeext
 
14991
if { (ac_try="$ac_link"
 
14992
case "(($ac_try" in
 
14993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14994
  *) ac_try_echo=$ac_try;;
 
14995
esac
 
14996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14997
  (eval "$ac_link") 2>&5
 
14998
  ac_status=$?
 
14999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15000
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15001
  { (case "(($ac_try" in
 
15002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15003
  *) ac_try_echo=$ac_try;;
 
15004
esac
 
15005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15006
  (eval "$ac_try") 2>&5
 
15007
  ac_status=$?
 
15008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15009
  (exit $ac_status); }; }; then
 
15010
  ac_16bit_type="short"
 
15011
else
 
15012
  echo "$as_me: program exited with status $ac_status" >&5
 
15013
echo "$as_me: failed program was:" >&5
 
15014
sed 's/^/| /' conftest.$ac_ext >&5
 
15015
 
 
15016
( exit $ac_status )
 
15017
ac_16bit_type="int"
 
15018
fi
 
15019
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15020
fi
 
15021
 
 
15022
 
 
15023
fi
 
15024
{ echo "$as_me:$LINENO: result: $ac_16bit_type" >&5
 
15025
echo "${ECHO_T}$ac_16bit_type" >&6; }
 
15026
  if test "$ac_16bit_type" = "short"
 
15027
  then
 
15028
    T1_AA_TYPE16="short"
 
15029
  else
 
15030
    T1_AA_TYPE16="int"
 
15031
  fi
 
15032
 
 
15033
    { echo "$as_me:$LINENO: checking \"which ANSI integer type is 32 bit\"" >&5
 
15034
echo $ECHO_N "checking \"which ANSI integer type is 32 bit\"... $ECHO_C" >&6; }
 
15035
if test "${ac_32bit_type+set}" = set; then
 
15036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15037
else
 
15038
  if test "$cross_compiling" = yes; then
 
15039
  ac_32bit_type=
 
15040
else
 
15041
  cat >conftest.$ac_ext <<_ACEOF
 
15042
/* confdefs.h.  */
 
15043
_ACEOF
 
15044
cat confdefs.h >>conftest.$ac_ext
 
15045
cat >>conftest.$ac_ext <<_ACEOF
 
15046
/* end confdefs.h.  */
 
15047
 
 
15048
  int main(void) {
 
15049
    if (sizeof(int)==4)
 
15050
      return(0);
 
15051
    else if (sizeof(long)==4)
 
15052
      return(1);
 
15053
    else
 
15054
      return(2);
 
15055
  }
 
15056
_ACEOF
 
15057
rm -f conftest$ac_exeext
 
15058
if { (ac_try="$ac_link"
 
15059
case "(($ac_try" in
 
15060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15061
  *) ac_try_echo=$ac_try;;
 
15062
esac
 
15063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15064
  (eval "$ac_link") 2>&5
 
15065
  ac_status=$?
 
15066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15067
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15068
  { (case "(($ac_try" in
 
15069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15070
  *) ac_try_echo=$ac_try;;
 
15071
esac
 
15072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15073
  (eval "$ac_try") 2>&5
 
15074
  ac_status=$?
 
15075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15076
  (exit $ac_status); }; }; then
 
15077
  ac_32bit_type="int"
 
15078
else
 
15079
  echo "$as_me: program exited with status $ac_status" >&5
 
15080
echo "$as_me: failed program was:" >&5
 
15081
sed 's/^/| /' conftest.$ac_ext >&5
 
15082
 
 
15083
( exit $ac_status )
 
15084
ac_32bit_type="long"
 
15085
fi
 
15086
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15087
fi
 
15088
 
 
15089
 
 
15090
fi
 
15091
{ echo "$as_me:$LINENO: result: $ac_32bit_type" >&5
 
15092
echo "${ECHO_T}$ac_32bit_type" >&6; }
 
15093
  if test "$ac_32bit_type" = "int"
 
15094
  then
 
15095
    T1_AA_TYPE32="int"
 
15096
  else
 
15097
    T1_AA_TYPE32="long"
 
15098
  fi
 
15099
 
 
15100
    { echo "$as_me:$LINENO: checking \"which ANSI integer type is 64 bit\"" >&5
 
15101
echo $ECHO_N "checking \"which ANSI integer type is 64 bit\"... $ECHO_C" >&6; }
 
15102
if test "${ac_64bit_type+set}" = set; then
 
15103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15104
else
 
15105
  if test "$cross_compiling" = yes; then
 
15106
  ac_64bit_type=
 
15107
else
 
15108
  cat >conftest.$ac_ext <<_ACEOF
 
15109
/* confdefs.h.  */
 
15110
_ACEOF
 
15111
cat confdefs.h >>conftest.$ac_ext
 
15112
cat >>conftest.$ac_ext <<_ACEOF
 
15113
/* end confdefs.h.  */
 
15114
 
 
15115
  int main(void) {
 
15116
    if (sizeof(long)==8)
 
15117
      return(0);
 
15118
    else
 
15119
      return(1);
 
15120
  }
 
15121
_ACEOF
 
15122
rm -f conftest$ac_exeext
 
15123
if { (ac_try="$ac_link"
 
15124
case "(($ac_try" in
 
15125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15126
  *) ac_try_echo=$ac_try;;
 
15127
esac
 
15128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15129
  (eval "$ac_link") 2>&5
 
15130
  ac_status=$?
 
15131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15132
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15133
  { (case "(($ac_try" in
 
15134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15135
  *) ac_try_echo=$ac_try;;
 
15136
esac
 
15137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15138
  (eval "$ac_try") 2>&5
 
15139
  ac_status=$?
 
15140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15141
  (exit $ac_status); }; }; then
 
15142
  ac_64bit_type="long"
 
15143
else
 
15144
  echo "$as_me: program exited with status $ac_status" >&5
 
15145
echo "$as_me: failed program was:" >&5
 
15146
sed 's/^/| /' conftest.$ac_ext >&5
 
15147
 
 
15148
( exit $ac_status )
 
15149
ac_64bit_type="<none>"
 
15150
fi
 
15151
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15152
fi
 
15153
 
 
15154
 
 
15155
fi
 
15156
{ echo "$as_me:$LINENO: result: $ac_64bit_type" >&5
 
15157
echo "${ECHO_T}$ac_64bit_type" >&6; }
 
15158
  if test "$ac_64bit_type" = "long"
 
15159
  then
 
15160
    T1_AA_TYPE64="long"
 
15161
  else
 
15162
    T1_AA_TYPE64=
 
15163
  fi
 
15164
 
 
15165
else
 
15166
  { echo "$as_me:$LINENO: result: --> Good. Seems you have compatible version of T1lib installed" >&5
 
15167
echo "${ECHO_T}--> Good. Seems you have compatible version of T1lib installed" >&6; }
 
15168
fi
 
15169
 
 
15170
{ echo "$as_me:$LINENO: checking for library containing xdrstdio_create" >&5
 
15171
echo $ECHO_N "checking for library containing xdrstdio_create... $ECHO_C" >&6; }
 
15172
if test "${mdw_cv_lib_xdrstdio_create+set}" = set; then
 
15173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15174
else
 
15175
  mdw_save_LIBS="$LIBS"
 
15176
mdw_cv_lib_xdrstdio_create="no"
 
15177
cat >conftest.$ac_ext <<_ACEOF
 
15178
/* confdefs.h.  */
 
15179
_ACEOF
 
15180
cat confdefs.h >>conftest.$ac_ext
 
15181
cat >>conftest.$ac_ext <<_ACEOF
 
15182
/* end confdefs.h.  */
 
15183
 
 
15184
int
 
15185
main ()
 
15186
{
 
15187
xdrstdio_create()
 
15188
  ;
 
15189
  return 0;
 
15190
}
 
15191
_ACEOF
 
15192
rm -f conftest.$ac_objext conftest$ac_exeext
 
15193
if { (ac_try="$ac_link"
 
15194
case "(($ac_try" in
 
15195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15196
  *) ac_try_echo=$ac_try;;
 
15197
esac
 
15198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15199
  (eval "$ac_link") 2>conftest.er1
 
15200
  ac_status=$?
 
15201
  grep -v '^ *+' conftest.er1 >conftest.err
 
15202
  rm -f conftest.er1
 
15203
  cat conftest.err >&5
 
15204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15205
  (exit $ac_status); } && {
 
15206
         test -z "$ac_c_werror_flag" ||
 
15207
         test ! -s conftest.err
 
15208
       } && test -s conftest$ac_exeext &&
 
15209
       $as_test_x conftest$ac_exeext; then
 
15210
  mdw_cv_lib_xdrstdio_create="none required"
 
15211
else
 
15212
  echo "$as_me: failed program was:" >&5
 
15213
sed 's/^/| /' conftest.$ac_ext >&5
 
15214
 
 
15215
 
 
15216
fi
 
15217
 
 
15218
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15219
      conftest$ac_exeext conftest.$ac_ext
 
15220
test "$mdw_cv_lib_xdrstdio_create" = "no" && for i in nsl rpc xdr rpclib; do
 
15221
LIBS="-l$i $mdw_save_LIBS"
 
15222
cat >conftest.$ac_ext <<_ACEOF
 
15223
/* confdefs.h.  */
 
15224
_ACEOF
 
15225
cat confdefs.h >>conftest.$ac_ext
 
15226
cat >>conftest.$ac_ext <<_ACEOF
 
15227
/* end confdefs.h.  */
 
15228
 
 
15229
int
 
15230
main ()
 
15231
{
 
15232
xdrstdio_create()
 
15233
  ;
 
15234
  return 0;
 
15235
}
 
15236
_ACEOF
 
15237
rm -f conftest.$ac_objext conftest$ac_exeext
 
15238
if { (ac_try="$ac_link"
 
15239
case "(($ac_try" in
 
15240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15241
  *) ac_try_echo=$ac_try;;
 
15242
esac
 
15243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15244
  (eval "$ac_link") 2>conftest.er1
 
15245
  ac_status=$?
 
15246
  grep -v '^ *+' conftest.er1 >conftest.err
 
15247
  rm -f conftest.er1
 
15248
  cat conftest.err >&5
 
15249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15250
  (exit $ac_status); } && {
 
15251
         test -z "$ac_c_werror_flag" ||
 
15252
         test ! -s conftest.err
 
15253
       } && test -s conftest$ac_exeext &&
 
15254
       $as_test_x conftest$ac_exeext; then
 
15255
  mdw_cv_lib_xdrstdio_create="-l$i"
 
15256
break
 
15257
else
 
15258
  echo "$as_me: failed program was:" >&5
 
15259
sed 's/^/| /' conftest.$ac_ext >&5
 
15260
 
 
15261
 
 
15262
fi
 
15263
 
 
15264
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15265
      conftest$ac_exeext conftest.$ac_ext
 
15266
done
 
15267
LIBS="$mdw_save_LIBS"
 
15268
fi
 
15269
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_xdrstdio_create" >&5
 
15270
echo "${ECHO_T}$mdw_cv_lib_xdrstdio_create" >&6; }
 
15271
if test "$mdw_cv_lib_xdrstdio_create" != "no"; then
 
15272
  if test "xXDR_LIB=$mdw_cv_lib_xdrstdio_create" != "x"; then
 
15273
    test "$mdw_cv_lib_xdrstdio_create" = "none required" && mdw_cv_lib_xdrstdio_create=""
 
15274
    XDR_LIB=$mdw_cv_lib_xdrstdio_create
 
15275
  else
 
15276
    test "$mdw_cv_lib_xdrstdio_create" = "none required" || LIBS="$mdw_cv_lib_xdrstdio_create $LIBS"
 
15277
  fi
 
15278
else :
 
15279
  XDR_LIB="NONE"
 
15280
fi
 
15281
 
 
15282
if test "${XDR_LIB}" = "NONE"; then
 
15283
  XDR_LIB=
 
15284
  { echo "$as_me:$LINENO: result: --> No XDR library found; grconvert will not be built" >&5
 
15285
echo "${ECHO_T}--> No XDR library found; grconvert will not be built" >&6; }
 
15286
else
 
15287
  grconvert_dir="grconvert"
 
15288
fi
 
15289
 
 
15290
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
15291
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
 
15292
if test "${mdw_cv_lib_dlopen+set}" = set; then
 
15293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15294
else
 
15295
  mdw_save_LIBS="$LIBS"
 
15296
mdw_cv_lib_dlopen="no"
 
15297
cat >conftest.$ac_ext <<_ACEOF
 
15298
/* confdefs.h.  */
 
15299
_ACEOF
 
15300
cat confdefs.h >>conftest.$ac_ext
 
15301
cat >>conftest.$ac_ext <<_ACEOF
 
15302
/* end confdefs.h.  */
 
15303
 
 
15304
int
 
15305
main ()
 
15306
{
 
15307
dlopen()
 
15308
  ;
 
15309
  return 0;
 
15310
}
 
15311
_ACEOF
 
15312
rm -f conftest.$ac_objext conftest$ac_exeext
 
15313
if { (ac_try="$ac_link"
 
15314
case "(($ac_try" in
 
15315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15316
  *) ac_try_echo=$ac_try;;
 
15317
esac
 
15318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15319
  (eval "$ac_link") 2>conftest.er1
 
15320
  ac_status=$?
 
15321
  grep -v '^ *+' conftest.er1 >conftest.err
 
15322
  rm -f conftest.er1
 
15323
  cat conftest.err >&5
 
15324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15325
  (exit $ac_status); } && {
 
15326
         test -z "$ac_c_werror_flag" ||
 
15327
         test ! -s conftest.err
 
15328
       } && test -s conftest$ac_exeext &&
 
15329
       $as_test_x conftest$ac_exeext; then
 
15330
  mdw_cv_lib_dlopen="none required"
 
15331
else
 
15332
  echo "$as_me: failed program was:" >&5
 
15333
sed 's/^/| /' conftest.$ac_ext >&5
 
15334
 
 
15335
 
 
15336
fi
 
15337
 
 
15338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15339
      conftest$ac_exeext conftest.$ac_ext
 
15340
test "$mdw_cv_lib_dlopen" = "no" && for i in dl; do
 
15341
LIBS="-l$i $mdw_save_LIBS"
 
15342
cat >conftest.$ac_ext <<_ACEOF
 
15343
/* confdefs.h.  */
 
15344
_ACEOF
 
15345
cat confdefs.h >>conftest.$ac_ext
 
15346
cat >>conftest.$ac_ext <<_ACEOF
 
15347
/* end confdefs.h.  */
 
15348
 
 
15349
int
 
15350
main ()
 
15351
{
 
15352
dlopen()
 
15353
  ;
 
15354
  return 0;
 
15355
}
 
15356
_ACEOF
 
15357
rm -f conftest.$ac_objext conftest$ac_exeext
 
15358
if { (ac_try="$ac_link"
 
15359
case "(($ac_try" in
 
15360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15361
  *) ac_try_echo=$ac_try;;
 
15362
esac
 
15363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15364
  (eval "$ac_link") 2>conftest.er1
 
15365
  ac_status=$?
 
15366
  grep -v '^ *+' conftest.er1 >conftest.err
 
15367
  rm -f conftest.er1
 
15368
  cat conftest.err >&5
 
15369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15370
  (exit $ac_status); } && {
 
15371
         test -z "$ac_c_werror_flag" ||
 
15372
         test ! -s conftest.err
 
15373
       } && test -s conftest$ac_exeext &&
 
15374
       $as_test_x conftest$ac_exeext; then
 
15375
  mdw_cv_lib_dlopen="-l$i"
 
15376
break
 
15377
else
 
15378
  echo "$as_me: failed program was:" >&5
 
15379
sed 's/^/| /' conftest.$ac_ext >&5
 
15380
 
 
15381
 
 
15382
fi
 
15383
 
 
15384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15385
      conftest$ac_exeext conftest.$ac_ext
 
15386
done
 
15387
LIBS="$mdw_save_LIBS"
 
15388
fi
 
15389
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_dlopen" >&5
 
15390
echo "${ECHO_T}$mdw_cv_lib_dlopen" >&6; }
 
15391
if test "$mdw_cv_lib_dlopen" != "no"; then
 
15392
  if test "xDL_LIB=$mdw_cv_lib_dlopen; cat >>confdefs.h <<\_ACEOF
 
15393
#define HAVE_DLOPEN 1
 
15394
_ACEOF
 
15395
" != "x"; then
 
15396
    test "$mdw_cv_lib_dlopen" = "none required" && mdw_cv_lib_dlopen=""
 
15397
    DL_LIB=$mdw_cv_lib_dlopen; cat >>confdefs.h <<\_ACEOF
 
15398
#define HAVE_DLOPEN 1
 
15399
_ACEOF
 
15400
 
 
15401
  else
 
15402
    test "$mdw_cv_lib_dlopen" = "none required" || LIBS="$mdw_cv_lib_dlopen $LIBS"
 
15403
  fi
 
15404
else :
 
15405
  DL_LIB="NONE"
 
15406
fi
 
15407
 
 
15408
if test "${DL_LIB}" != "NONE"; then
 
15409
    { echo "$as_me:$LINENO: checking whether RTLD_NOW is defined in dlfcn.h" >&5
 
15410
echo $ECHO_N "checking whether RTLD_NOW is defined in dlfcn.h... $ECHO_C" >&6; }
 
15411
if test "${ac_rtld_now_in_dlfcn_h+set}" = set; then
 
15412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15413
else
 
15414
  cat >conftest.$ac_ext <<_ACEOF
 
15415
/* confdefs.h.  */
 
15416
_ACEOF
 
15417
cat confdefs.h >>conftest.$ac_ext
 
15418
cat >>conftest.$ac_ext <<_ACEOF
 
15419
/* end confdefs.h.  */
 
15420
#include <dlfcn.h>
 
15421
         #ifdef RTLD_NOW
 
15422
            yes
 
15423
         #endif
 
15424
 
 
15425
_ACEOF
 
15426
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15427
  $EGREP "yes" >/dev/null 2>&1; then
 
15428
  ac_rtld_now_in_dlfcn_h="yes"; cat >>confdefs.h <<\_ACEOF
 
15429
#define HAVE_RTLD_NOW 1
 
15430
_ACEOF
 
15431
 
 
15432
else
 
15433
  ac_rtld_now_in_dlfcn_h="no"
 
15434
fi
 
15435
rm -f conftest*
 
15436
 
 
15437
 
 
15438
fi
 
15439
{ echo "$as_me:$LINENO: result: $ac_rtld_now_in_dlfcn_h" >&5
 
15440
echo "${ECHO_T}$ac_rtld_now_in_dlfcn_h" >&6; }
 
15441
else
 
15442
    { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
 
15443
echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
 
15444
if test "${mdw_cv_lib_shl_load+set}" = set; then
 
15445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15446
else
 
15447
  mdw_save_LIBS="$LIBS"
 
15448
mdw_cv_lib_shl_load="no"
 
15449
cat >conftest.$ac_ext <<_ACEOF
 
15450
/* confdefs.h.  */
 
15451
_ACEOF
 
15452
cat confdefs.h >>conftest.$ac_ext
 
15453
cat >>conftest.$ac_ext <<_ACEOF
 
15454
/* end confdefs.h.  */
 
15455
 
 
15456
int
 
15457
main ()
 
15458
{
 
15459
shl_load()
 
15460
  ;
 
15461
  return 0;
 
15462
}
 
15463
_ACEOF
 
15464
rm -f conftest.$ac_objext conftest$ac_exeext
 
15465
if { (ac_try="$ac_link"
 
15466
case "(($ac_try" in
 
15467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15468
  *) ac_try_echo=$ac_try;;
 
15469
esac
 
15470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15471
  (eval "$ac_link") 2>conftest.er1
 
15472
  ac_status=$?
 
15473
  grep -v '^ *+' conftest.er1 >conftest.err
 
15474
  rm -f conftest.er1
 
15475
  cat conftest.err >&5
 
15476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15477
  (exit $ac_status); } && {
 
15478
         test -z "$ac_c_werror_flag" ||
 
15479
         test ! -s conftest.err
 
15480
       } && test -s conftest$ac_exeext &&
 
15481
       $as_test_x conftest$ac_exeext; then
 
15482
  mdw_cv_lib_shl_load="none required"
 
15483
else
 
15484
  echo "$as_me: failed program was:" >&5
 
15485
sed 's/^/| /' conftest.$ac_ext >&5
 
15486
 
 
15487
 
 
15488
fi
 
15489
 
 
15490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15491
      conftest$ac_exeext conftest.$ac_ext
 
15492
test "$mdw_cv_lib_shl_load" = "no" && for i in dld; do
 
15493
LIBS="-l$i $mdw_save_LIBS"
 
15494
cat >conftest.$ac_ext <<_ACEOF
 
15495
/* confdefs.h.  */
 
15496
_ACEOF
 
15497
cat confdefs.h >>conftest.$ac_ext
 
15498
cat >>conftest.$ac_ext <<_ACEOF
 
15499
/* end confdefs.h.  */
 
15500
 
 
15501
int
 
15502
main ()
 
15503
{
 
15504
shl_load()
 
15505
  ;
 
15506
  return 0;
 
15507
}
 
15508
_ACEOF
 
15509
rm -f conftest.$ac_objext conftest$ac_exeext
 
15510
if { (ac_try="$ac_link"
 
15511
case "(($ac_try" in
 
15512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15513
  *) ac_try_echo=$ac_try;;
 
15514
esac
 
15515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15516
  (eval "$ac_link") 2>conftest.er1
 
15517
  ac_status=$?
 
15518
  grep -v '^ *+' conftest.er1 >conftest.err
 
15519
  rm -f conftest.er1
 
15520
  cat conftest.err >&5
 
15521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15522
  (exit $ac_status); } && {
 
15523
         test -z "$ac_c_werror_flag" ||
 
15524
         test ! -s conftest.err
 
15525
       } && test -s conftest$ac_exeext &&
 
15526
       $as_test_x conftest$ac_exeext; then
 
15527
  mdw_cv_lib_shl_load="-l$i"
 
15528
break
 
15529
else
 
15530
  echo "$as_me: failed program was:" >&5
 
15531
sed 's/^/| /' conftest.$ac_ext >&5
 
15532
 
 
15533
 
 
15534
fi
 
15535
 
 
15536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15537
      conftest$ac_exeext conftest.$ac_ext
 
15538
done
 
15539
LIBS="$mdw_save_LIBS"
 
15540
fi
 
15541
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_shl_load" >&5
 
15542
echo "${ECHO_T}$mdw_cv_lib_shl_load" >&6; }
 
15543
if test "$mdw_cv_lib_shl_load" != "no"; then
 
15544
  if test "xDL_LIB=$mdw_cv_lib_shl_load; cat >>confdefs.h <<\_ACEOF
 
15545
#define HAVE_SHL_LOAD 1
 
15546
_ACEOF
 
15547
" != "x"; then
 
15548
    test "$mdw_cv_lib_shl_load" = "none required" && mdw_cv_lib_shl_load=""
 
15549
    DL_LIB=$mdw_cv_lib_shl_load; cat >>confdefs.h <<\_ACEOF
 
15550
#define HAVE_SHL_LOAD 1
 
15551
_ACEOF
 
15552
 
 
15553
  else
 
15554
    test "$mdw_cv_lib_shl_load" = "none required" || LIBS="$mdw_cv_lib_shl_load $LIBS"
 
15555
  fi
 
15556
else :
 
15557
  DL_LIB="NONE"
 
15558
fi
 
15559
fi
 
15560
 
 
15561
if test "${DL_LIB}" = "NONE"; then
 
15562
  { echo "$as_me:$LINENO: result: --> Support for dll modules will not be compiled" >&5
 
15563
echo "${ECHO_T}--> Support for dll modules will not be compiled" >&6; }
 
15564
  DL_LIB=""
 
15565
fi
 
15566
 
 
15567
if test $netcdf = true
 
15568
then
 
15569
 
 
15570
 
 
15571
# Check whether --with-netcdf_libraries was given.
 
15572
if test "${with_netcdf_libraries+set}" = set; then
 
15573
  withval=$with_netcdf_libraries; netcdf_libraries="$withval"
 
15574
fi
 
15575
 
 
15576
  if test "x$netcdf_libraries" = "x"
 
15577
  then
 
15578
    netcdf_libraries=-lnetcdf
 
15579
  fi
 
15580
 
 
15581
  { echo "$as_me:$LINENO: checking for netCDF API version >= 3.0" >&5
 
15582
echo $ECHO_N "checking for netCDF API version >= 3.0... $ECHO_C" >&6; }
 
15583
if test "${acx_cv_netcdf+set}" = set; then
 
15584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15585
else
 
15586
  if test "${acx_cv_netcdf_libraries+set}" = set; then
 
15587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15588
else
 
15589
  acx_cv_netcdf_libraries=$netcdf_libraries
 
15590
fi
 
15591
 
 
15592
 
 
15593
    save_CFLAGS=$CFLAGS
 
15594
    save_CPPFLAGS=$CPPFLAGS
 
15595
    save_LDFLAGS=$LDFLAGS
 
15596
    save_LIBS=$LIBS
 
15597
 
 
15598
    LIBS="$acx_cv_netcdf_libraries $LIBS"
 
15599
 
 
15600
 
 
15601
    if test "$cross_compiling" = yes; then
 
15602
  acx_cv_netcdf="no"
 
15603
 
 
15604
else
 
15605
  cat >conftest.$ac_ext <<_ACEOF
 
15606
/* confdefs.h.  */
 
15607
_ACEOF
 
15608
cat confdefs.h >>conftest.$ac_ext
 
15609
cat >>conftest.$ac_ext <<_ACEOF
 
15610
/* end confdefs.h.  */
 
15611
 
 
15612
#include <stdio.h>
 
15613
#include <netcdf.h>
 
15614
      int main(void) {
 
15615
        char *vlib;
 
15616
        vlib = nc_inq_libvers();
 
15617
        if (strcmp(vlib, "3.0") < 0) {
 
15618
          exit(1);
 
15619
        }
 
15620
        exit(0);
 
15621
      }
 
15622
 
 
15623
_ACEOF
 
15624
rm -f conftest$ac_exeext
 
15625
if { (ac_try="$ac_link"
 
15626
case "(($ac_try" in
 
15627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15628
  *) ac_try_echo=$ac_try;;
 
15629
esac
 
15630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15631
  (eval "$ac_link") 2>&5
 
15632
  ac_status=$?
 
15633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15634
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15635
  { (case "(($ac_try" in
 
15636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15637
  *) ac_try_echo=$ac_try;;
 
15638
esac
 
15639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15640
  (eval "$ac_try") 2>&5
 
15641
  ac_status=$?
 
15642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15643
  (exit $ac_status); }; }; then
 
15644
  acx_cv_netcdf="yes"
 
15645
else
 
15646
  echo "$as_me: program exited with status $ac_status" >&5
 
15647
echo "$as_me: failed program was:" >&5
 
15648
sed 's/^/| /' conftest.$ac_ext >&5
 
15649
 
 
15650
( exit $ac_status )
 
15651
acx_cv_netcdf="no"
 
15652
fi
 
15653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15654
fi
 
15655
 
 
15656
 
 
15657
 
 
15658
    CFLAGS=$save_CFLAGS
 
15659
    CPPFLAGS=$save_CPPFLAGS
 
15660
    LDFLAGS=$save_LDFLAGS
 
15661
    LIBS=$save_LIBS
 
15662
 
 
15663
 
 
15664
fi
 
15665
{ echo "$as_me:$LINENO: result: $acx_cv_netcdf" >&5
 
15666
echo "${ECHO_T}$acx_cv_netcdf" >&6; }
 
15667
  if test "$acx_cv_netcdf" = "yes"
 
15668
  then
 
15669
    NETCDF_LIBS="$acx_cv_netcdf_libraries"
 
15670
    cat >>confdefs.h <<\_ACEOF
 
15671
#define HAVE_NETCDF 1
 
15672
_ACEOF
 
15673
 
 
15674
  else
 
15675
    NETCDF_LIBS=
 
15676
    { echo "$as_me:$LINENO: result: --> support for netCDF is disabled" >&5
 
15677
echo "${ECHO_T}--> support for netCDF is disabled" >&6; }
 
15678
  fi
 
15679
 
 
15680
fi
 
15681
 
 
15682
if test $fftw = true
 
15683
then
 
15684
 
 
15685
 
 
15686
# Check whether --with-fftw_library was given.
 
15687
if test "${with_fftw_library+set}" = set; then
 
15688
  withval=$with_fftw_library; fftw_library="$withval"
 
15689
fi
 
15690
 
 
15691
  if test "x$fftw_library" = "x"
 
15692
  then
 
15693
    fftw_library=-lfftw
 
15694
  fi
 
15695
 
 
15696
  { echo "$as_me:$LINENO: checking for FFTW library >= 2.1.3" >&5
 
15697
echo $ECHO_N "checking for FFTW library >= 2.1.3... $ECHO_C" >&6; }
 
15698
if test "${acx_cv_fftw+set}" = set; then
 
15699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15700
else
 
15701
  if test "${acx_cv_fftw_library+set}" = set; then
 
15702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15703
else
 
15704
  acx_cv_fftw_library=$fftw_library
 
15705
fi
 
15706
 
 
15707
 
 
15708
    save_CFLAGS=$CFLAGS
 
15709
    save_CPPFLAGS=$CPPFLAGS
 
15710
    save_LDFLAGS=$LDFLAGS
 
15711
    save_LIBS=$LIBS
 
15712
 
 
15713
    LIBS="$acx_cv_fftw_library $LIBS"
 
15714
    if test "$cross_compiling" = yes; then
 
15715
  acx_cv_fftw="no"
 
15716
 
 
15717
else
 
15718
  cat >conftest.$ac_ext <<_ACEOF
 
15719
/* confdefs.h.  */
 
15720
_ACEOF
 
15721
cat confdefs.h >>conftest.$ac_ext
 
15722
cat >>conftest.$ac_ext <<_ACEOF
 
15723
/* end confdefs.h.  */
 
15724
 
 
15725
#include <fftw.h>
 
15726
#include <string.h>
 
15727
      int main(void) {
 
15728
        char *vlib = (char *) fftw_version;
 
15729
        if (strcmp(vlib, "2.1.3") < 0) {
 
15730
          exit(1);
 
15731
        }
 
15732
        exit(0);
 
15733
      }
 
15734
 
 
15735
_ACEOF
 
15736
rm -f conftest$ac_exeext
 
15737
if { (ac_try="$ac_link"
 
15738
case "(($ac_try" in
 
15739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15740
  *) ac_try_echo=$ac_try;;
 
15741
esac
 
15742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15743
  (eval "$ac_link") 2>&5
 
15744
  ac_status=$?
 
15745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15746
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15747
  { (case "(($ac_try" in
 
15748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15749
  *) ac_try_echo=$ac_try;;
 
15750
esac
 
15751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15752
  (eval "$ac_try") 2>&5
 
15753
  ac_status=$?
 
15754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15755
  (exit $ac_status); }; }; then
 
15756
  acx_cv_fftw="yes"
 
15757
else
 
15758
  echo "$as_me: program exited with status $ac_status" >&5
 
15759
echo "$as_me: failed program was:" >&5
 
15760
sed 's/^/| /' conftest.$ac_ext >&5
 
15761
 
 
15762
( exit $ac_status )
 
15763
acx_cv_fftw="no"
 
15764
fi
 
15765
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15766
fi
 
15767
 
 
15768
 
 
15769
 
 
15770
 
 
15771
    CFLAGS=$save_CFLAGS
 
15772
    CPPFLAGS=$save_CPPFLAGS
 
15773
    LDFLAGS=$save_LDFLAGS
 
15774
    LIBS=$save_LIBS
 
15775
 
 
15776
 
 
15777
fi
 
15778
{ echo "$as_me:$LINENO: result: $acx_cv_fftw" >&5
 
15779
echo "${ECHO_T}$acx_cv_fftw" >&6; }
 
15780
  if test "$acx_cv_fftw" = "yes"
 
15781
  then
 
15782
    FFTW_LIB="$acx_cv_fftw_library"
 
15783
    cat >>confdefs.h <<\_ACEOF
 
15784
#define HAVE_FFTW 1
 
15785
_ACEOF
 
15786
 
 
15787
  else
 
15788
    FFTW_LIB=
 
15789
    { echo "$as_me:$LINENO: result: --> using legacy unoptimized FFT code" >&5
 
15790
echo "${ECHO_T}--> using legacy unoptimized FFT code" >&6; }
 
15791
  fi
 
15792
 
 
15793
fi
 
15794
 
 
15795
if test $pngdrv = true || test $pdfdrv = true || test $xmhtml = true
 
15796
then
 
15797
 
 
15798
 
 
15799
# Check whether --with-zlib_library was given.
 
15800
if test "${with_zlib_library+set}" = set; then
 
15801
  withval=$with_zlib_library; zlib_library="$withval"
 
15802
fi
 
15803
 
 
15804
  if test "x$zlib_library" = "x"
 
15805
  then
 
15806
    zlib_library=-lz
 
15807
  fi
 
15808
 
 
15809
  { echo "$as_me:$LINENO: checking for zlib >= 1.0.3" >&5
 
15810
echo $ECHO_N "checking for zlib >= 1.0.3... $ECHO_C" >&6; }
 
15811
if test "${acx_cv_zlib+set}" = set; then
 
15812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15813
else
 
15814
  if test "${acx_cv_zlib_library+set}" = set; then
 
15815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15816
else
 
15817
  acx_cv_zlib_library=$zlib_library
 
15818
fi
 
15819
 
 
15820
 
 
15821
    save_CFLAGS=$CFLAGS
 
15822
    save_CPPFLAGS=$CPPFLAGS
 
15823
    save_LDFLAGS=$LDFLAGS
 
15824
    save_LIBS=$LIBS
 
15825
 
 
15826
    LIBS="$acx_cv_zlib_library $LIBS"
 
15827
    if test "$cross_compiling" = yes; then
 
15828
  acx_cv_zlib="no"
 
15829
 
 
15830
else
 
15831
  cat >conftest.$ac_ext <<_ACEOF
 
15832
/* confdefs.h.  */
 
15833
_ACEOF
 
15834
cat confdefs.h >>conftest.$ac_ext
 
15835
cat >>conftest.$ac_ext <<_ACEOF
 
15836
/* end confdefs.h.  */
 
15837
 
 
15838
#include <string.h>
 
15839
#include <zlib.h>
 
15840
      int main(void) {
 
15841
        char *vlib, *vinc;
 
15842
        vlib = zlibVersion();
 
15843
        vinc = ZLIB_VERSION;
 
15844
        if (strcmp(vinc, "1.0.3") < 0) {
 
15845
          exit(1);
 
15846
        }
 
15847
        if (strcmp(vinc, vlib) != 0) {
 
15848
          exit(2);
 
15849
        }
 
15850
        exit(0);
 
15851
      }
 
15852
 
 
15853
_ACEOF
 
15854
rm -f conftest$ac_exeext
 
15855
if { (ac_try="$ac_link"
 
15856
case "(($ac_try" in
 
15857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15858
  *) ac_try_echo=$ac_try;;
 
15859
esac
 
15860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15861
  (eval "$ac_link") 2>&5
 
15862
  ac_status=$?
 
15863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15864
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15865
  { (case "(($ac_try" in
 
15866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15867
  *) ac_try_echo=$ac_try;;
 
15868
esac
 
15869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15870
  (eval "$ac_try") 2>&5
 
15871
  ac_status=$?
 
15872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15873
  (exit $ac_status); }; }; then
 
15874
  acx_cv_zlib="yes"
 
15875
else
 
15876
  echo "$as_me: program exited with status $ac_status" >&5
 
15877
echo "$as_me: failed program was:" >&5
 
15878
sed 's/^/| /' conftest.$ac_ext >&5
 
15879
 
 
15880
( exit $ac_status )
 
15881
acx_cv_zlib="no"
 
15882
fi
 
15883
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15884
fi
 
15885
 
 
15886
 
 
15887
 
 
15888
    CFLAGS=$save_CFLAGS
 
15889
    CPPFLAGS=$save_CPPFLAGS
 
15890
    LDFLAGS=$save_LDFLAGS
 
15891
    LIBS=$save_LIBS
 
15892
 
 
15893
 
 
15894
fi
 
15895
{ echo "$as_me:$LINENO: result: $acx_cv_zlib" >&5
 
15896
echo "${ECHO_T}$acx_cv_zlib" >&6; }
 
15897
  if test "$acx_cv_zlib" = "yes"
 
15898
  then
 
15899
    Z_LIB="$acx_cv_zlib_library"
 
15900
 
 
15901
  else
 
15902
    Z_LIB=
 
15903
 
 
15904
  fi
 
15905
 
 
15906
fi
 
15907
 
 
15908
if test $jpegdrv = true || test $pdfdrv = true || test $xmhtml = true
 
15909
then
 
15910
 
 
15911
 
 
15912
# Check whether --with-jpeg_library was given.
 
15913
if test "${with_jpeg_library+set}" = set; then
 
15914
  withval=$with_jpeg_library; jpeg_library="$withval"
 
15915
fi
 
15916
 
 
15917
  if test "x$jpeg_library" = "x"
 
15918
  then
 
15919
    jpeg_library=-ljpeg
 
15920
  fi
 
15921
 
 
15922
  { echo "$as_me:$LINENO: checking for IJG JPEG software >= 61" >&5
 
15923
echo $ECHO_N "checking for IJG JPEG software >= 61... $ECHO_C" >&6; }
 
15924
if test "${acx_cv_jpeg+set}" = set; then
 
15925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15926
else
 
15927
  if test "${acx_cv_jpeg_library+set}" = set; then
 
15928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15929
else
 
15930
  acx_cv_jpeg_library=$jpeg_library
 
15931
fi
 
15932
 
 
15933
 
 
15934
    save_CFLAGS=$CFLAGS
 
15935
    save_CPPFLAGS=$CPPFLAGS
 
15936
    save_LDFLAGS=$LDFLAGS
 
15937
    save_LIBS=$LIBS
 
15938
 
 
15939
    LIBS="$acx_cv_jpeg_library $LIBS"
 
15940
    if test "$cross_compiling" = yes; then
 
15941
  acx_cv_jpeg="no"
 
15942
 
 
15943
else
 
15944
  cat >conftest.$ac_ext <<_ACEOF
 
15945
/* confdefs.h.  */
 
15946
_ACEOF
 
15947
cat confdefs.h >>conftest.$ac_ext
 
15948
cat >>conftest.$ac_ext <<_ACEOF
 
15949
/* end confdefs.h.  */
 
15950
 
 
15951
#include <stdio.h>
 
15952
#include <jpeglib.h>
 
15953
      int main(void) {
 
15954
        int vinc;
 
15955
        struct jpeg_compress_struct cinfo;
 
15956
        jpeg_create_compress(&cinfo);
 
15957
        vinc = JPEG_LIB_VERSION;
 
15958
        if (vinc < 61) {
 
15959
          exit(1);
 
15960
        }
 
15961
        exit(0);
 
15962
      }
 
15963
 
 
15964
_ACEOF
 
15965
rm -f conftest$ac_exeext
 
15966
if { (ac_try="$ac_link"
 
15967
case "(($ac_try" in
 
15968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15969
  *) ac_try_echo=$ac_try;;
 
15970
esac
 
15971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15972
  (eval "$ac_link") 2>&5
 
15973
  ac_status=$?
 
15974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15975
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15976
  { (case "(($ac_try" in
 
15977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15978
  *) ac_try_echo=$ac_try;;
 
15979
esac
 
15980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15981
  (eval "$ac_try") 2>&5
 
15982
  ac_status=$?
 
15983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15984
  (exit $ac_status); }; }; then
 
15985
  acx_cv_jpeg="yes"
 
15986
else
 
15987
  echo "$as_me: program exited with status $ac_status" >&5
 
15988
echo "$as_me: failed program was:" >&5
 
15989
sed 's/^/| /' conftest.$ac_ext >&5
 
15990
 
 
15991
( exit $ac_status )
 
15992
acx_cv_jpeg="no"
 
15993
fi
 
15994
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15995
fi
 
15996
 
 
15997
 
 
15998
 
 
15999
    CFLAGS=$save_CFLAGS
 
16000
    CPPFLAGS=$save_CPPFLAGS
 
16001
    LDFLAGS=$save_LDFLAGS
 
16002
    LIBS=$save_LIBS
 
16003
 
 
16004
 
 
16005
fi
 
16006
{ echo "$as_me:$LINENO: result: $acx_cv_jpeg" >&5
 
16007
echo "${ECHO_T}$acx_cv_jpeg" >&6; }
 
16008
  if test "$acx_cv_jpeg" = "yes"
 
16009
  then
 
16010
    JPEG_LIB=$acx_cv_jpeg_library
 
16011
    cat >>confdefs.h <<\_ACEOF
 
16012
#define HAVE_LIBJPEG 1
 
16013
_ACEOF
 
16014
 
 
16015
  else
 
16016
    JPEG_LIB=
 
16017
    { echo "$as_me:$LINENO: result: --> JPEG backend is disabled" >&5
 
16018
echo "${ECHO_T}--> JPEG backend is disabled" >&6; }
 
16019
  fi
 
16020
 
 
16021
fi
 
16022
 
 
16023
if test $pngdrv = true || test $pdfdrv = true || test $xmhtml = true
 
16024
then
 
16025
 
 
16026
 
 
16027
# Check whether --with-png_library was given.
 
16028
if test "${with_png_library+set}" = set; then
 
16029
  withval=$with_png_library; png_library="$withval"
 
16030
fi
 
16031
 
 
16032
  if test "x$png_library" = "x"
 
16033
  then
 
16034
    png_library=-lpng
 
16035
  fi
 
16036
 
 
16037
  { echo "$as_me:$LINENO: checking for libpng >= 0.9.6" >&5
 
16038
echo $ECHO_N "checking for libpng >= 0.9.6... $ECHO_C" >&6; }
 
16039
if test "${acx_cv_png+set}" = set; then
 
16040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16041
else
 
16042
  if test "${acx_cv_png_library+set}" = set; then
 
16043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16044
else
 
16045
  acx_cv_png_library=$png_library
 
16046
fi
 
16047
 
 
16048
 
 
16049
    save_CFLAGS=$CFLAGS
 
16050
    save_CPPFLAGS=$CPPFLAGS
 
16051
    save_LDFLAGS=$LDFLAGS
 
16052
    save_LIBS=$LIBS
 
16053
 
 
16054
    LIBS="$acx_cv_png_library $Z_LIB $LIBS"
 
16055
    if test "$cross_compiling" = yes; then
 
16056
  acx_cv_png="no"
 
16057
 
 
16058
else
 
16059
  cat >conftest.$ac_ext <<_ACEOF
 
16060
/* confdefs.h.  */
 
16061
_ACEOF
 
16062
cat confdefs.h >>conftest.$ac_ext
 
16063
cat >>conftest.$ac_ext <<_ACEOF
 
16064
/* end confdefs.h.  */
 
16065
 
 
16066
#include <string.h>
 
16067
#include <png.h>
 
16068
      int main(void) {
 
16069
        char *vlib, *vinc;
 
16070
        vlib = png_libpng_ver;
 
16071
        vinc = PNG_LIBPNG_VER_STRING;
 
16072
        if (strcmp(vinc, "0.9.6") < 0) {
 
16073
          exit(1);
 
16074
        }
 
16075
        if (strcmp(vinc, vlib) != 0) {
 
16076
          exit(2);
 
16077
        }
 
16078
        exit(0);
 
16079
      }
 
16080
 
 
16081
_ACEOF
 
16082
rm -f conftest$ac_exeext
 
16083
if { (ac_try="$ac_link"
 
16084
case "(($ac_try" in
 
16085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16086
  *) ac_try_echo=$ac_try;;
 
16087
esac
 
16088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16089
  (eval "$ac_link") 2>&5
 
16090
  ac_status=$?
 
16091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16092
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16093
  { (case "(($ac_try" in
 
16094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16095
  *) ac_try_echo=$ac_try;;
 
16096
esac
 
16097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16098
  (eval "$ac_try") 2>&5
 
16099
  ac_status=$?
 
16100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16101
  (exit $ac_status); }; }; then
 
16102
  acx_cv_png="yes"
 
16103
else
 
16104
  echo "$as_me: program exited with status $ac_status" >&5
 
16105
echo "$as_me: failed program was:" >&5
 
16106
sed 's/^/| /' conftest.$ac_ext >&5
 
16107
 
 
16108
( exit $ac_status )
 
16109
acx_cv_png="no"
 
16110
fi
 
16111
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16112
fi
 
16113
 
 
16114
 
 
16115
 
 
16116
    CFLAGS=$save_CFLAGS
 
16117
    CPPFLAGS=$save_CPPFLAGS
 
16118
    LDFLAGS=$save_LDFLAGS
 
16119
    LIBS=$save_LIBS
 
16120
 
 
16121
 
 
16122
fi
 
16123
{ echo "$as_me:$LINENO: result: $acx_cv_png" >&5
 
16124
echo "${ECHO_T}$acx_cv_png" >&6; }
 
16125
  if test "$acx_cv_png" = "yes"
 
16126
  then
 
16127
    PNG_LIB="$acx_cv_png_library"
 
16128
    cat >>confdefs.h <<\_ACEOF
 
16129
#define HAVE_LIBPNG 1
 
16130
_ACEOF
 
16131
 
 
16132
  else
 
16133
    PNG_LIB=
 
16134
    { echo "$as_me:$LINENO: result: --> PNG backend is disabled" >&5
 
16135
echo "${ECHO_T}--> PNG backend is disabled" >&6; }
 
16136
  fi
 
16137
 
 
16138
fi
 
16139
 
 
16140
if test $pdfdrv = true
 
16141
then
 
16142
 
 
16143
 
 
16144
# Check whether --with-pdf_library was given.
 
16145
if test "${with_pdf_library+set}" = set; then
 
16146
  withval=$with_pdf_library; pdf_library="$withval"
 
16147
fi
 
16148
 
 
16149
  if test "x$pdf_library" = "x"
 
16150
  then
 
16151
    pdf_library=-lpdf
 
16152
  fi
 
16153
 
 
16154
  { echo "$as_me:$LINENO: checking for PDFlib >= 5.0.0" >&5
 
16155
echo $ECHO_N "checking for PDFlib >= 5.0.0... $ECHO_C" >&6; }
 
16156
if test "${acx_cv_pdflib+set}" = set; then
 
16157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16158
else
 
16159
  if test "${acx_cv_pdf_library+set}" = set; then
 
16160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16161
else
 
16162
  acx_cv_pdf_library=$pdf_library
 
16163
fi
 
16164
 
 
16165
 
 
16166
    save_CFLAGS=$CFLAGS
 
16167
    save_CPPFLAGS=$CPPFLAGS
 
16168
    save_LDFLAGS=$LDFLAGS
 
16169
    save_LIBS=$LIBS
 
16170
 
 
16171
    LIBS="$acx_cv_pdf_library $JPEG_LIB $PNG_LIB $Z_LIB $LIBS"
 
16172
    if test "$cross_compiling" = yes; then
 
16173
  acx_cv_pdflib="no"
 
16174
 
 
16175
else
 
16176
  cat >conftest.$ac_ext <<_ACEOF
 
16177
/* confdefs.h.  */
 
16178
_ACEOF
 
16179
cat confdefs.h >>conftest.$ac_ext
 
16180
cat >>conftest.$ac_ext <<_ACEOF
 
16181
/* end confdefs.h.  */
 
16182
 
 
16183
#include <pdflib.h>
 
16184
      int main(void) {
 
16185
        char *vinc;
 
16186
        int vlibn, vincn;
 
16187
        vlibn = 100*PDF_get_majorversion() + PDF_get_minorversion();
 
16188
        vincn = 100*PDFLIB_MAJORVERSION + PDFLIB_MINORVERSION;
 
16189
        vinc = PDFLIB_VERSIONSTRING;
 
16190
        if (strcmp(vinc, "5.0.0") < 0) {
 
16191
          exit(1);
 
16192
        }
 
16193
        if (vincn != vlibn) {
 
16194
          exit(2);
 
16195
        }
 
16196
        exit(0);
 
16197
      }
 
16198
 
 
16199
_ACEOF
 
16200
rm -f conftest$ac_exeext
 
16201
if { (ac_try="$ac_link"
 
16202
case "(($ac_try" in
 
16203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16204
  *) ac_try_echo=$ac_try;;
 
16205
esac
 
16206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16207
  (eval "$ac_link") 2>&5
 
16208
  ac_status=$?
 
16209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16210
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16211
  { (case "(($ac_try" in
 
16212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16213
  *) ac_try_echo=$ac_try;;
 
16214
esac
 
16215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16216
  (eval "$ac_try") 2>&5
 
16217
  ac_status=$?
 
16218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16219
  (exit $ac_status); }; }; then
 
16220
  acx_cv_pdflib="yes"
 
16221
else
 
16222
  echo "$as_me: program exited with status $ac_status" >&5
 
16223
echo "$as_me: failed program was:" >&5
 
16224
sed 's/^/| /' conftest.$ac_ext >&5
 
16225
 
 
16226
( exit $ac_status )
 
16227
acx_cv_pdflib="no"
 
16228
fi
 
16229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16230
fi
 
16231
 
 
16232
 
 
16233
 
 
16234
    CFLAGS=$save_CFLAGS
 
16235
    CPPFLAGS=$save_CPPFLAGS
 
16236
    LDFLAGS=$save_LDFLAGS
 
16237
    LIBS=$save_LIBS
 
16238
 
 
16239
 
 
16240
fi
 
16241
{ echo "$as_me:$LINENO: result: $acx_cv_pdflib" >&5
 
16242
echo "${ECHO_T}$acx_cv_pdflib" >&6; }
 
16243
  if test "$acx_cv_pdflib" = "yes"
 
16244
  then
 
16245
    PDF_LIB="$acx_cv_pdf_library"
 
16246
    cat >>confdefs.h <<\_ACEOF
 
16247
#define HAVE_LIBPDF 1
 
16248
_ACEOF
 
16249
 
 
16250
  else
 
16251
    PDF_LIB=
 
16252
    pdfdrv=false
 
16253
  fi
 
16254
 
 
16255
fi
 
16256
if test $pdfdrv != true; then
 
16257
  { echo "$as_me:$LINENO: result: --> PDF driver is disabled" >&5
 
16258
echo "${ECHO_T}--> PDF driver is disabled" >&6; }
 
16259
fi
 
16260
 
 
16261
 
 
16262
NOGUI_LIBS="$LIBS"
 
16263
 
 
16264
 
 
16265
GRACE=grace
 
16266
 
 
16267
{ echo "$as_me:$LINENO: checking for X" >&5
 
16268
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
16269
 
 
16270
 
 
16271
# Check whether --with-x was given.
 
16272
if test "${with_x+set}" = set; then
 
16273
  withval=$with_x;
 
16274
fi
 
16275
 
 
16276
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
16277
if test "x$with_x" = xno; then
 
16278
  # The user explicitly disabled X.
 
16279
  have_x=disabled
 
16280
else
 
16281
  case $x_includes,$x_libraries in #(
 
16282
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
16283
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
16284
   { (exit 1); exit 1; }; };; #(
 
16285
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
 
16286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16287
else
 
16288
  # One or both of the vars are not set, and there is no cached value.
 
16289
ac_x_includes=no ac_x_libraries=no
 
16290
rm -f -r conftest.dir
 
16291
if mkdir conftest.dir; then
 
16292
  cd conftest.dir
 
16293
  cat >Imakefile <<'_ACEOF'
 
16294
incroot:
 
16295
        @echo incroot='${INCROOT}'
 
16296
usrlibdir:
 
16297
        @echo usrlibdir='${USRLIBDIR}'
 
16298
libdir:
 
16299
        @echo libdir='${LIBDIR}'
 
16300
_ACEOF
 
16301
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 
16302
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
16303
    for ac_var in incroot usrlibdir libdir; do
 
16304
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
16305
    done
 
16306
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
16307
    for ac_extension in a so sl; do
 
16308
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
16309
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
16310
        ac_im_usrlibdir=$ac_im_libdir; break
 
16311
      fi
 
16312
    done
 
16313
    # Screen out bogus values from the imake configuration.  They are
 
16314
    # bogus both because they are the default anyway, and because
 
16315
    # using them would break gcc on systems where it needs fixed includes.
 
16316
    case $ac_im_incroot in
 
16317
        /usr/include) ac_x_includes= ;;
 
16318
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
16319
    esac
 
16320
    case $ac_im_usrlibdir in
 
16321
        /usr/lib | /lib) ;;
 
16322
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
16323
    esac
 
16324
  fi
 
16325
  cd ..
 
16326
  rm -f -r conftest.dir
 
16327
fi
 
16328
 
 
16329
# Standard set of common directories for X headers.
 
16330
# Check X11 before X11Rn because it is often a symlink to the current release.
 
16331
ac_x_header_dirs='
 
16332
/usr/X11/include
 
16333
/usr/X11R6/include
 
16334
/usr/X11R5/include
 
16335
/usr/X11R4/include
 
16336
 
 
16337
/usr/include/X11
 
16338
/usr/include/X11R6
 
16339
/usr/include/X11R5
 
16340
/usr/include/X11R4
 
16341
 
 
16342
/usr/local/X11/include
 
16343
/usr/local/X11R6/include
 
16344
/usr/local/X11R5/include
 
16345
/usr/local/X11R4/include
 
16346
 
 
16347
/usr/local/include/X11
 
16348
/usr/local/include/X11R6
 
16349
/usr/local/include/X11R5
 
16350
/usr/local/include/X11R4
 
16351
 
 
16352
/usr/X386/include
 
16353
/usr/x386/include
 
16354
/usr/XFree86/include/X11
 
16355
 
 
16356
/usr/include
 
16357
/usr/local/include
 
16358
/usr/unsupported/include
 
16359
/usr/athena/include
 
16360
/usr/local/x11r5/include
 
16361
/usr/lpp/Xamples/include
 
16362
 
 
16363
/usr/openwin/include
 
16364
/usr/openwin/share/include'
 
16365
 
 
16366
if test "$ac_x_includes" = no; then
 
16367
  # Guess where to find include files, by looking for Xlib.h.
 
16368
  # First, try using that file with no special directory specified.
 
16369
  cat >conftest.$ac_ext <<_ACEOF
 
16370
/* confdefs.h.  */
 
16371
_ACEOF
 
16372
cat confdefs.h >>conftest.$ac_ext
 
16373
cat >>conftest.$ac_ext <<_ACEOF
 
16374
/* end confdefs.h.  */
 
16375
#include <X11/Xlib.h>
 
16376
_ACEOF
 
16377
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16378
case "(($ac_try" in
 
16379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16380
  *) ac_try_echo=$ac_try;;
 
16381
esac
 
16382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16383
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16384
  ac_status=$?
 
16385
  grep -v '^ *+' conftest.er1 >conftest.err
 
16386
  rm -f conftest.er1
 
16387
  cat conftest.err >&5
 
16388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16389
  (exit $ac_status); } >/dev/null && {
 
16390
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16391
         test ! -s conftest.err
 
16392
       }; then
 
16393
  # We can compile using X headers with no special include directory.
 
16394
ac_x_includes=
 
16395
else
 
16396
  echo "$as_me: failed program was:" >&5
 
16397
sed 's/^/| /' conftest.$ac_ext >&5
 
16398
 
 
16399
  for ac_dir in $ac_x_header_dirs; do
 
16400
  if test -r "$ac_dir/X11/Xlib.h"; then
 
16401
    ac_x_includes=$ac_dir
 
16402
    break
 
16403
  fi
 
16404
done
 
16405
fi
 
16406
 
 
16407
rm -f conftest.err conftest.$ac_ext
 
16408
fi # $ac_x_includes = no
 
16409
 
 
16410
if test "$ac_x_libraries" = no; then
 
16411
  # Check for the libraries.
 
16412
  # See if we find them without any special options.
 
16413
  # Don't add to $LIBS permanently.
 
16414
  ac_save_LIBS=$LIBS
 
16415
  LIBS="-lX11 $LIBS"
 
16416
  cat >conftest.$ac_ext <<_ACEOF
 
16417
/* confdefs.h.  */
 
16418
_ACEOF
 
16419
cat confdefs.h >>conftest.$ac_ext
 
16420
cat >>conftest.$ac_ext <<_ACEOF
 
16421
/* end confdefs.h.  */
 
16422
#include <X11/Xlib.h>
 
16423
int
 
16424
main ()
 
16425
{
 
16426
XrmInitialize ()
 
16427
  ;
 
16428
  return 0;
 
16429
}
 
16430
_ACEOF
 
16431
rm -f conftest.$ac_objext conftest$ac_exeext
 
16432
if { (ac_try="$ac_link"
 
16433
case "(($ac_try" in
 
16434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16435
  *) ac_try_echo=$ac_try;;
 
16436
esac
 
16437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16438
  (eval "$ac_link") 2>conftest.er1
 
16439
  ac_status=$?
 
16440
  grep -v '^ *+' conftest.er1 >conftest.err
 
16441
  rm -f conftest.er1
 
16442
  cat conftest.err >&5
 
16443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16444
  (exit $ac_status); } && {
 
16445
         test -z "$ac_c_werror_flag" ||
 
16446
         test ! -s conftest.err
 
16447
       } && test -s conftest$ac_exeext &&
 
16448
       $as_test_x conftest$ac_exeext; then
 
16449
  LIBS=$ac_save_LIBS
 
16450
# We can link X programs with no special library path.
 
16451
ac_x_libraries=
 
16452
else
 
16453
  echo "$as_me: failed program was:" >&5
 
16454
sed 's/^/| /' conftest.$ac_ext >&5
 
16455
 
 
16456
        LIBS=$ac_save_LIBS
 
16457
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
16458
do
 
16459
  # Don't even attempt the hair of trying to link an X program!
 
16460
  for ac_extension in a so sl; do
 
16461
    if test -r "$ac_dir/libX11.$ac_extension"; then
 
16462
      ac_x_libraries=$ac_dir
 
16463
      break 2
 
16464
    fi
 
16465
  done
 
16466
done
 
16467
fi
 
16468
 
 
16469
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16470
      conftest$ac_exeext conftest.$ac_ext
 
16471
fi # $ac_x_libraries = no
 
16472
 
 
16473
case $ac_x_includes,$ac_x_libraries in #(
 
16474
  no,* | *,no | *\'*)
 
16475
    # Didn't find X, or a directory has "'" in its name.
 
16476
    ac_cv_have_x="have_x=no";; #(
 
16477
  *)
 
16478
    # Record where we found X for the cache.
 
16479
    ac_cv_have_x="have_x=yes\
 
16480
        ac_x_includes='$ac_x_includes'\
 
16481
        ac_x_libraries='$ac_x_libraries'"
 
16482
esac
 
16483
fi
 
16484
;; #(
 
16485
    *) have_x=yes;;
 
16486
  esac
 
16487
  eval "$ac_cv_have_x"
 
16488
fi # $with_x != no
 
16489
 
 
16490
if test "$have_x" != yes; then
 
16491
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
16492
echo "${ECHO_T}$have_x" >&6; }
 
16493
  no_x=yes
 
16494
else
 
16495
  # If each of the values was on the command line, it overrides each guess.
 
16496
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
16497
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
16498
  # Update the cache value to reflect the command line values.
 
16499
  ac_cv_have_x="have_x=yes\
 
16500
        ac_x_includes='$x_includes'\
 
16501
        ac_x_libraries='$x_libraries'"
 
16502
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
16503
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
 
16504
fi
 
16505
 
 
16506
if test "$no_x" = yes; then
 
16507
  # Not all programs may use this symbol, but it does not hurt to define it.
 
16508
 
 
16509
cat >>confdefs.h <<\_ACEOF
 
16510
#define X_DISPLAY_MISSING 1
 
16511
_ACEOF
 
16512
 
 
16513
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
16514
else
 
16515
  if test -n "$x_includes"; then
 
16516
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
16517
  fi
 
16518
 
 
16519
  # It would also be nice to do this for all -L options, not just this one.
 
16520
  if test -n "$x_libraries"; then
 
16521
    X_LIBS="$X_LIBS -L$x_libraries"
 
16522
    # For Solaris; some versions of Sun CC require a space after -R and
 
16523
    # others require no space.  Words are not sufficient . . . .
 
16524
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
16525
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
16526
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
16527
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
16528
    ac_c_werror_flag=yes
 
16529
    cat >conftest.$ac_ext <<_ACEOF
 
16530
/* confdefs.h.  */
 
16531
_ACEOF
 
16532
cat confdefs.h >>conftest.$ac_ext
 
16533
cat >>conftest.$ac_ext <<_ACEOF
 
16534
/* end confdefs.h.  */
 
16535
 
 
16536
int
 
16537
main ()
 
16538
{
 
16539
 
 
16540
  ;
 
16541
  return 0;
 
16542
}
 
16543
_ACEOF
 
16544
rm -f conftest.$ac_objext conftest$ac_exeext
 
16545
if { (ac_try="$ac_link"
 
16546
case "(($ac_try" in
 
16547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16548
  *) ac_try_echo=$ac_try;;
 
16549
esac
 
16550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16551
  (eval "$ac_link") 2>conftest.er1
 
16552
  ac_status=$?
 
16553
  grep -v '^ *+' conftest.er1 >conftest.err
 
16554
  rm -f conftest.er1
 
16555
  cat conftest.err >&5
 
16556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16557
  (exit $ac_status); } && {
 
16558
         test -z "$ac_c_werror_flag" ||
 
16559
         test ! -s conftest.err
 
16560
       } && test -s conftest$ac_exeext &&
 
16561
       $as_test_x conftest$ac_exeext; then
 
16562
  { echo "$as_me:$LINENO: result: no" >&5
 
16563
echo "${ECHO_T}no" >&6; }
 
16564
       X_LIBS="$X_LIBS -R$x_libraries"
 
16565
else
 
16566
  echo "$as_me: failed program was:" >&5
 
16567
sed 's/^/| /' conftest.$ac_ext >&5
 
16568
 
 
16569
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
16570
       cat >conftest.$ac_ext <<_ACEOF
 
16571
/* confdefs.h.  */
 
16572
_ACEOF
 
16573
cat confdefs.h >>conftest.$ac_ext
 
16574
cat >>conftest.$ac_ext <<_ACEOF
 
16575
/* end confdefs.h.  */
 
16576
 
 
16577
int
 
16578
main ()
 
16579
{
 
16580
 
 
16581
  ;
 
16582
  return 0;
 
16583
}
 
16584
_ACEOF
 
16585
rm -f conftest.$ac_objext conftest$ac_exeext
 
16586
if { (ac_try="$ac_link"
 
16587
case "(($ac_try" in
 
16588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16589
  *) ac_try_echo=$ac_try;;
 
16590
esac
 
16591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16592
  (eval "$ac_link") 2>conftest.er1
 
16593
  ac_status=$?
 
16594
  grep -v '^ *+' conftest.er1 >conftest.err
 
16595
  rm -f conftest.er1
 
16596
  cat conftest.err >&5
 
16597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16598
  (exit $ac_status); } && {
 
16599
         test -z "$ac_c_werror_flag" ||
 
16600
         test ! -s conftest.err
 
16601
       } && test -s conftest$ac_exeext &&
 
16602
       $as_test_x conftest$ac_exeext; then
 
16603
  { echo "$as_me:$LINENO: result: yes" >&5
 
16604
echo "${ECHO_T}yes" >&6; }
 
16605
          X_LIBS="$X_LIBS -R $x_libraries"
 
16606
else
 
16607
  echo "$as_me: failed program was:" >&5
 
16608
sed 's/^/| /' conftest.$ac_ext >&5
 
16609
 
 
16610
        { echo "$as_me:$LINENO: result: neither works" >&5
 
16611
echo "${ECHO_T}neither works" >&6; }
 
16612
fi
 
16613
 
 
16614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16615
      conftest$ac_exeext conftest.$ac_ext
 
16616
fi
 
16617
 
 
16618
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16619
      conftest$ac_exeext conftest.$ac_ext
 
16620
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
16621
    LIBS=$ac_xsave_LIBS
 
16622
  fi
 
16623
 
 
16624
  # Check for system-dependent libraries X programs must link with.
 
16625
  # Do this before checking for the system-independent R6 libraries
 
16626
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
16627
 
 
16628
  if test "$ISC" = yes; then
 
16629
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
16630
  else
 
16631
    # Martyn Johnson says this is needed for Ultrix, if the X
 
16632
    # libraries were built with DECnet support.  And Karl Berry says
 
16633
    # the Alpha needs dnet_stub (dnet does not exist).
 
16634
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
16635
    cat >conftest.$ac_ext <<_ACEOF
 
16636
/* confdefs.h.  */
 
16637
_ACEOF
 
16638
cat confdefs.h >>conftest.$ac_ext
 
16639
cat >>conftest.$ac_ext <<_ACEOF
 
16640
/* end confdefs.h.  */
 
16641
 
 
16642
/* Override any GCC internal prototype to avoid an error.
 
16643
   Use char because int might match the return type of a GCC
 
16644
   builtin and then its argument prototype would still apply.  */
 
16645
#ifdef __cplusplus
 
16646
extern "C"
 
16647
#endif
 
16648
char XOpenDisplay ();
 
16649
int
 
16650
main ()
 
16651
{
 
16652
return XOpenDisplay ();
 
16653
  ;
 
16654
  return 0;
 
16655
}
 
16656
_ACEOF
 
16657
rm -f conftest.$ac_objext conftest$ac_exeext
 
16658
if { (ac_try="$ac_link"
 
16659
case "(($ac_try" in
 
16660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16661
  *) ac_try_echo=$ac_try;;
 
16662
esac
 
16663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16664
  (eval "$ac_link") 2>conftest.er1
 
16665
  ac_status=$?
 
16666
  grep -v '^ *+' conftest.er1 >conftest.err
 
16667
  rm -f conftest.er1
 
16668
  cat conftest.err >&5
 
16669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16670
  (exit $ac_status); } && {
 
16671
         test -z "$ac_c_werror_flag" ||
 
16672
         test ! -s conftest.err
 
16673
       } && test -s conftest$ac_exeext &&
 
16674
       $as_test_x conftest$ac_exeext; then
 
16675
  :
 
16676
else
 
16677
  echo "$as_me: failed program was:" >&5
 
16678
sed 's/^/| /' conftest.$ac_ext >&5
 
16679
 
 
16680
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
16681
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
 
16682
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
16683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16684
else
 
16685
  ac_check_lib_save_LIBS=$LIBS
 
16686
LIBS="-ldnet  $LIBS"
 
16687
cat >conftest.$ac_ext <<_ACEOF
 
16688
/* confdefs.h.  */
 
16689
_ACEOF
 
16690
cat confdefs.h >>conftest.$ac_ext
 
16691
cat >>conftest.$ac_ext <<_ACEOF
 
16692
/* end confdefs.h.  */
 
16693
 
 
16694
/* Override any GCC internal prototype to avoid an error.
 
16695
   Use char because int might match the return type of a GCC
 
16696
   builtin and then its argument prototype would still apply.  */
 
16697
#ifdef __cplusplus
 
16698
extern "C"
 
16699
#endif
 
16700
char dnet_ntoa ();
 
16701
int
 
16702
main ()
 
16703
{
 
16704
return dnet_ntoa ();
 
16705
  ;
 
16706
  return 0;
 
16707
}
 
16708
_ACEOF
 
16709
rm -f conftest.$ac_objext conftest$ac_exeext
 
16710
if { (ac_try="$ac_link"
 
16711
case "(($ac_try" in
 
16712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16713
  *) ac_try_echo=$ac_try;;
 
16714
esac
 
16715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16716
  (eval "$ac_link") 2>conftest.er1
 
16717
  ac_status=$?
 
16718
  grep -v '^ *+' conftest.er1 >conftest.err
 
16719
  rm -f conftest.er1
 
16720
  cat conftest.err >&5
 
16721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16722
  (exit $ac_status); } && {
 
16723
         test -z "$ac_c_werror_flag" ||
 
16724
         test ! -s conftest.err
 
16725
       } && test -s conftest$ac_exeext &&
 
16726
       $as_test_x conftest$ac_exeext; then
 
16727
  ac_cv_lib_dnet_dnet_ntoa=yes
 
16728
else
 
16729
  echo "$as_me: failed program was:" >&5
 
16730
sed 's/^/| /' conftest.$ac_ext >&5
 
16731
 
 
16732
        ac_cv_lib_dnet_dnet_ntoa=no
 
16733
fi
 
16734
 
 
16735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16736
      conftest$ac_exeext conftest.$ac_ext
 
16737
LIBS=$ac_check_lib_save_LIBS
 
16738
fi
 
16739
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
16740
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
16741
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
16742
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
16743
fi
 
16744
 
 
16745
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
16746
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
16747
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
 
16748
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
16749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16750
else
 
16751
  ac_check_lib_save_LIBS=$LIBS
 
16752
LIBS="-ldnet_stub  $LIBS"
 
16753
cat >conftest.$ac_ext <<_ACEOF
 
16754
/* confdefs.h.  */
 
16755
_ACEOF
 
16756
cat confdefs.h >>conftest.$ac_ext
 
16757
cat >>conftest.$ac_ext <<_ACEOF
 
16758
/* end confdefs.h.  */
 
16759
 
 
16760
/* Override any GCC internal prototype to avoid an error.
 
16761
   Use char because int might match the return type of a GCC
 
16762
   builtin and then its argument prototype would still apply.  */
 
16763
#ifdef __cplusplus
 
16764
extern "C"
 
16765
#endif
 
16766
char dnet_ntoa ();
 
16767
int
 
16768
main ()
 
16769
{
 
16770
return dnet_ntoa ();
 
16771
  ;
 
16772
  return 0;
 
16773
}
 
16774
_ACEOF
 
16775
rm -f conftest.$ac_objext conftest$ac_exeext
 
16776
if { (ac_try="$ac_link"
 
16777
case "(($ac_try" in
 
16778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16779
  *) ac_try_echo=$ac_try;;
 
16780
esac
 
16781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16782
  (eval "$ac_link") 2>conftest.er1
 
16783
  ac_status=$?
 
16784
  grep -v '^ *+' conftest.er1 >conftest.err
 
16785
  rm -f conftest.er1
 
16786
  cat conftest.err >&5
 
16787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16788
  (exit $ac_status); } && {
 
16789
         test -z "$ac_c_werror_flag" ||
 
16790
         test ! -s conftest.err
 
16791
       } && test -s conftest$ac_exeext &&
 
16792
       $as_test_x conftest$ac_exeext; then
 
16793
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
16794
else
 
16795
  echo "$as_me: failed program was:" >&5
 
16796
sed 's/^/| /' conftest.$ac_ext >&5
 
16797
 
 
16798
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
16799
fi
 
16800
 
 
16801
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16802
      conftest$ac_exeext conftest.$ac_ext
 
16803
LIBS=$ac_check_lib_save_LIBS
 
16804
fi
 
16805
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
16806
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
16807
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
16808
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
16809
fi
 
16810
 
 
16811
    fi
 
16812
fi
 
16813
 
 
16814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16815
      conftest$ac_exeext conftest.$ac_ext
 
16816
    LIBS="$ac_xsave_LIBS"
 
16817
 
 
16818
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
16819
    # to get the SysV transport functions.
 
16820
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
16821
    # needs -lnsl.
 
16822
    # The nsl library prevents programs from opening the X display
 
16823
    # on Irix 5.2, according to T.E. Dickey.
 
16824
    # The functions gethostbyname, getservbyname, and inet_addr are
 
16825
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
16826
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
16827
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
 
16828
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
16829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16830
else
 
16831
  cat >conftest.$ac_ext <<_ACEOF
 
16832
/* confdefs.h.  */
 
16833
_ACEOF
 
16834
cat confdefs.h >>conftest.$ac_ext
 
16835
cat >>conftest.$ac_ext <<_ACEOF
 
16836
/* end confdefs.h.  */
 
16837
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
16838
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16839
#define gethostbyname innocuous_gethostbyname
 
16840
 
 
16841
/* System header to define __stub macros and hopefully few prototypes,
 
16842
    which can conflict with char gethostbyname (); below.
 
16843
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16844
    <limits.h> exists even on freestanding compilers.  */
 
16845
 
 
16846
#ifdef __STDC__
 
16847
# include <limits.h>
 
16848
#else
 
16849
# include <assert.h>
 
16850
#endif
 
16851
 
 
16852
#undef gethostbyname
 
16853
 
 
16854
/* Override any GCC internal prototype to avoid an error.
 
16855
   Use char because int might match the return type of a GCC
 
16856
   builtin and then its argument prototype would still apply.  */
 
16857
#ifdef __cplusplus
 
16858
extern "C"
 
16859
#endif
 
16860
char gethostbyname ();
 
16861
/* The GNU C library defines this for functions which it implements
 
16862
    to always fail with ENOSYS.  Some functions are actually named
 
16863
    something starting with __ and the normal name is an alias.  */
 
16864
#if defined __stub_gethostbyname || defined __stub___gethostbyname
 
16865
choke me
 
16866
#endif
 
16867
 
 
16868
int
 
16869
main ()
 
16870
{
 
16871
return gethostbyname ();
 
16872
  ;
 
16873
  return 0;
 
16874
}
 
16875
_ACEOF
 
16876
rm -f conftest.$ac_objext conftest$ac_exeext
 
16877
if { (ac_try="$ac_link"
 
16878
case "(($ac_try" in
 
16879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16880
  *) ac_try_echo=$ac_try;;
 
16881
esac
 
16882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16883
  (eval "$ac_link") 2>conftest.er1
 
16884
  ac_status=$?
 
16885
  grep -v '^ *+' conftest.er1 >conftest.err
 
16886
  rm -f conftest.er1
 
16887
  cat conftest.err >&5
 
16888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16889
  (exit $ac_status); } && {
 
16890
         test -z "$ac_c_werror_flag" ||
 
16891
         test ! -s conftest.err
 
16892
       } && test -s conftest$ac_exeext &&
 
16893
       $as_test_x conftest$ac_exeext; then
 
16894
  ac_cv_func_gethostbyname=yes
 
16895
else
 
16896
  echo "$as_me: failed program was:" >&5
 
16897
sed 's/^/| /' conftest.$ac_ext >&5
 
16898
 
 
16899
        ac_cv_func_gethostbyname=no
 
16900
fi
 
16901
 
 
16902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16903
      conftest$ac_exeext conftest.$ac_ext
 
16904
fi
 
16905
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
16906
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
 
16907
 
 
16908
    if test $ac_cv_func_gethostbyname = no; then
 
16909
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
16910
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
 
16911
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
16912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16913
else
 
16914
  ac_check_lib_save_LIBS=$LIBS
 
16915
LIBS="-lnsl  $LIBS"
 
16916
cat >conftest.$ac_ext <<_ACEOF
 
16917
/* confdefs.h.  */
 
16918
_ACEOF
 
16919
cat confdefs.h >>conftest.$ac_ext
 
16920
cat >>conftest.$ac_ext <<_ACEOF
 
16921
/* end confdefs.h.  */
 
16922
 
 
16923
/* Override any GCC internal prototype to avoid an error.
 
16924
   Use char because int might match the return type of a GCC
 
16925
   builtin and then its argument prototype would still apply.  */
 
16926
#ifdef __cplusplus
 
16927
extern "C"
 
16928
#endif
 
16929
char gethostbyname ();
 
16930
int
 
16931
main ()
 
16932
{
 
16933
return gethostbyname ();
 
16934
  ;
 
16935
  return 0;
 
16936
}
 
16937
_ACEOF
 
16938
rm -f conftest.$ac_objext conftest$ac_exeext
 
16939
if { (ac_try="$ac_link"
 
16940
case "(($ac_try" in
 
16941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16942
  *) ac_try_echo=$ac_try;;
 
16943
esac
 
16944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16945
  (eval "$ac_link") 2>conftest.er1
 
16946
  ac_status=$?
 
16947
  grep -v '^ *+' conftest.er1 >conftest.err
 
16948
  rm -f conftest.er1
 
16949
  cat conftest.err >&5
 
16950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16951
  (exit $ac_status); } && {
 
16952
         test -z "$ac_c_werror_flag" ||
 
16953
         test ! -s conftest.err
 
16954
       } && test -s conftest$ac_exeext &&
 
16955
       $as_test_x conftest$ac_exeext; then
 
16956
  ac_cv_lib_nsl_gethostbyname=yes
 
16957
else
 
16958
  echo "$as_me: failed program was:" >&5
 
16959
sed 's/^/| /' conftest.$ac_ext >&5
 
16960
 
 
16961
        ac_cv_lib_nsl_gethostbyname=no
 
16962
fi
 
16963
 
 
16964
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16965
      conftest$ac_exeext conftest.$ac_ext
 
16966
LIBS=$ac_check_lib_save_LIBS
 
16967
fi
 
16968
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
16969
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
 
16970
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
16971
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
16972
fi
 
16973
 
 
16974
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
16975
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
16976
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
 
16977
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
16978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16979
else
 
16980
  ac_check_lib_save_LIBS=$LIBS
 
16981
LIBS="-lbsd  $LIBS"
 
16982
cat >conftest.$ac_ext <<_ACEOF
 
16983
/* confdefs.h.  */
 
16984
_ACEOF
 
16985
cat confdefs.h >>conftest.$ac_ext
 
16986
cat >>conftest.$ac_ext <<_ACEOF
 
16987
/* end confdefs.h.  */
 
16988
 
 
16989
/* Override any GCC internal prototype to avoid an error.
 
16990
   Use char because int might match the return type of a GCC
 
16991
   builtin and then its argument prototype would still apply.  */
 
16992
#ifdef __cplusplus
 
16993
extern "C"
 
16994
#endif
 
16995
char gethostbyname ();
 
16996
int
 
16997
main ()
 
16998
{
 
16999
return gethostbyname ();
 
17000
  ;
 
17001
  return 0;
 
17002
}
 
17003
_ACEOF
 
17004
rm -f conftest.$ac_objext conftest$ac_exeext
 
17005
if { (ac_try="$ac_link"
 
17006
case "(($ac_try" in
 
17007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17008
  *) ac_try_echo=$ac_try;;
 
17009
esac
 
17010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17011
  (eval "$ac_link") 2>conftest.er1
 
17012
  ac_status=$?
 
17013
  grep -v '^ *+' conftest.er1 >conftest.err
 
17014
  rm -f conftest.er1
 
17015
  cat conftest.err >&5
 
17016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17017
  (exit $ac_status); } && {
 
17018
         test -z "$ac_c_werror_flag" ||
 
17019
         test ! -s conftest.err
 
17020
       } && test -s conftest$ac_exeext &&
 
17021
       $as_test_x conftest$ac_exeext; then
 
17022
  ac_cv_lib_bsd_gethostbyname=yes
 
17023
else
 
17024
  echo "$as_me: failed program was:" >&5
 
17025
sed 's/^/| /' conftest.$ac_ext >&5
 
17026
 
 
17027
        ac_cv_lib_bsd_gethostbyname=no
 
17028
fi
 
17029
 
 
17030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17031
      conftest$ac_exeext conftest.$ac_ext
 
17032
LIBS=$ac_check_lib_save_LIBS
 
17033
fi
 
17034
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
17035
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
 
17036
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
17037
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
17038
fi
 
17039
 
 
17040
      fi
 
17041
    fi
 
17042
 
 
17043
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
17044
    # socket/setsockopt and other routines are undefined under SCO ODT
 
17045
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
17046
    # on later versions), says Simon Leinen: it contains gethostby*
 
17047
    # variants that don't use the name server (or something).  -lsocket
 
17048
    # must be given before -lnsl if both are needed.  We assume that
 
17049
    # if connect needs -lnsl, so does gethostbyname.
 
17050
    { echo "$as_me:$LINENO: checking for connect" >&5
 
17051
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
 
17052
if test "${ac_cv_func_connect+set}" = set; then
 
17053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17054
else
 
17055
  cat >conftest.$ac_ext <<_ACEOF
 
17056
/* confdefs.h.  */
 
17057
_ACEOF
 
17058
cat confdefs.h >>conftest.$ac_ext
 
17059
cat >>conftest.$ac_ext <<_ACEOF
 
17060
/* end confdefs.h.  */
 
17061
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
17062
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17063
#define connect innocuous_connect
 
17064
 
 
17065
/* System header to define __stub macros and hopefully few prototypes,
 
17066
    which can conflict with char connect (); below.
 
17067
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17068
    <limits.h> exists even on freestanding compilers.  */
 
17069
 
 
17070
#ifdef __STDC__
 
17071
# include <limits.h>
 
17072
#else
 
17073
# include <assert.h>
 
17074
#endif
 
17075
 
 
17076
#undef connect
 
17077
 
 
17078
/* Override any GCC internal prototype to avoid an error.
 
17079
   Use char because int might match the return type of a GCC
 
17080
   builtin and then its argument prototype would still apply.  */
 
17081
#ifdef __cplusplus
 
17082
extern "C"
 
17083
#endif
 
17084
char connect ();
 
17085
/* The GNU C library defines this for functions which it implements
 
17086
    to always fail with ENOSYS.  Some functions are actually named
 
17087
    something starting with __ and the normal name is an alias.  */
 
17088
#if defined __stub_connect || defined __stub___connect
 
17089
choke me
 
17090
#endif
 
17091
 
 
17092
int
 
17093
main ()
 
17094
{
 
17095
return connect ();
 
17096
  ;
 
17097
  return 0;
 
17098
}
 
17099
_ACEOF
 
17100
rm -f conftest.$ac_objext conftest$ac_exeext
 
17101
if { (ac_try="$ac_link"
 
17102
case "(($ac_try" in
 
17103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17104
  *) ac_try_echo=$ac_try;;
 
17105
esac
 
17106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17107
  (eval "$ac_link") 2>conftest.er1
 
17108
  ac_status=$?
 
17109
  grep -v '^ *+' conftest.er1 >conftest.err
 
17110
  rm -f conftest.er1
 
17111
  cat conftest.err >&5
 
17112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17113
  (exit $ac_status); } && {
 
17114
         test -z "$ac_c_werror_flag" ||
 
17115
         test ! -s conftest.err
 
17116
       } && test -s conftest$ac_exeext &&
 
17117
       $as_test_x conftest$ac_exeext; then
 
17118
  ac_cv_func_connect=yes
 
17119
else
 
17120
  echo "$as_me: failed program was:" >&5
 
17121
sed 's/^/| /' conftest.$ac_ext >&5
 
17122
 
 
17123
        ac_cv_func_connect=no
 
17124
fi
 
17125
 
 
17126
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17127
      conftest$ac_exeext conftest.$ac_ext
 
17128
fi
 
17129
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
17130
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
 
17131
 
 
17132
    if test $ac_cv_func_connect = no; then
 
17133
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
17134
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
 
17135
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
17136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17137
else
 
17138
  ac_check_lib_save_LIBS=$LIBS
 
17139
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
17140
cat >conftest.$ac_ext <<_ACEOF
 
17141
/* confdefs.h.  */
 
17142
_ACEOF
 
17143
cat confdefs.h >>conftest.$ac_ext
 
17144
cat >>conftest.$ac_ext <<_ACEOF
 
17145
/* end confdefs.h.  */
 
17146
 
 
17147
/* Override any GCC internal prototype to avoid an error.
 
17148
   Use char because int might match the return type of a GCC
 
17149
   builtin and then its argument prototype would still apply.  */
 
17150
#ifdef __cplusplus
 
17151
extern "C"
 
17152
#endif
 
17153
char connect ();
 
17154
int
 
17155
main ()
 
17156
{
 
17157
return connect ();
 
17158
  ;
 
17159
  return 0;
 
17160
}
 
17161
_ACEOF
 
17162
rm -f conftest.$ac_objext conftest$ac_exeext
 
17163
if { (ac_try="$ac_link"
 
17164
case "(($ac_try" in
 
17165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17166
  *) ac_try_echo=$ac_try;;
 
17167
esac
 
17168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17169
  (eval "$ac_link") 2>conftest.er1
 
17170
  ac_status=$?
 
17171
  grep -v '^ *+' conftest.er1 >conftest.err
 
17172
  rm -f conftest.er1
 
17173
  cat conftest.err >&5
 
17174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17175
  (exit $ac_status); } && {
 
17176
         test -z "$ac_c_werror_flag" ||
 
17177
         test ! -s conftest.err
 
17178
       } && test -s conftest$ac_exeext &&
 
17179
       $as_test_x conftest$ac_exeext; then
 
17180
  ac_cv_lib_socket_connect=yes
 
17181
else
 
17182
  echo "$as_me: failed program was:" >&5
 
17183
sed 's/^/| /' conftest.$ac_ext >&5
 
17184
 
 
17185
        ac_cv_lib_socket_connect=no
 
17186
fi
 
17187
 
 
17188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17189
      conftest$ac_exeext conftest.$ac_ext
 
17190
LIBS=$ac_check_lib_save_LIBS
 
17191
fi
 
17192
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
17193
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
 
17194
if test $ac_cv_lib_socket_connect = yes; then
 
17195
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
17196
fi
 
17197
 
 
17198
    fi
 
17199
 
 
17200
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
17201
    { echo "$as_me:$LINENO: checking for remove" >&5
 
17202
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
 
17203
if test "${ac_cv_func_remove+set}" = set; then
 
17204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17205
else
 
17206
  cat >conftest.$ac_ext <<_ACEOF
 
17207
/* confdefs.h.  */
 
17208
_ACEOF
 
17209
cat confdefs.h >>conftest.$ac_ext
 
17210
cat >>conftest.$ac_ext <<_ACEOF
 
17211
/* end confdefs.h.  */
 
17212
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
17213
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17214
#define remove innocuous_remove
 
17215
 
 
17216
/* System header to define __stub macros and hopefully few prototypes,
 
17217
    which can conflict with char remove (); below.
 
17218
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17219
    <limits.h> exists even on freestanding compilers.  */
 
17220
 
 
17221
#ifdef __STDC__
 
17222
# include <limits.h>
 
17223
#else
 
17224
# include <assert.h>
 
17225
#endif
 
17226
 
 
17227
#undef remove
 
17228
 
 
17229
/* Override any GCC internal prototype to avoid an error.
 
17230
   Use char because int might match the return type of a GCC
 
17231
   builtin and then its argument prototype would still apply.  */
 
17232
#ifdef __cplusplus
 
17233
extern "C"
 
17234
#endif
 
17235
char remove ();
 
17236
/* The GNU C library defines this for functions which it implements
 
17237
    to always fail with ENOSYS.  Some functions are actually named
 
17238
    something starting with __ and the normal name is an alias.  */
 
17239
#if defined __stub_remove || defined __stub___remove
 
17240
choke me
 
17241
#endif
 
17242
 
 
17243
int
 
17244
main ()
 
17245
{
 
17246
return remove ();
 
17247
  ;
 
17248
  return 0;
 
17249
}
 
17250
_ACEOF
 
17251
rm -f conftest.$ac_objext conftest$ac_exeext
 
17252
if { (ac_try="$ac_link"
 
17253
case "(($ac_try" in
 
17254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17255
  *) ac_try_echo=$ac_try;;
 
17256
esac
 
17257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17258
  (eval "$ac_link") 2>conftest.er1
 
17259
  ac_status=$?
 
17260
  grep -v '^ *+' conftest.er1 >conftest.err
 
17261
  rm -f conftest.er1
 
17262
  cat conftest.err >&5
 
17263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17264
  (exit $ac_status); } && {
 
17265
         test -z "$ac_c_werror_flag" ||
 
17266
         test ! -s conftest.err
 
17267
       } && test -s conftest$ac_exeext &&
 
17268
       $as_test_x conftest$ac_exeext; then
 
17269
  ac_cv_func_remove=yes
 
17270
else
 
17271
  echo "$as_me: failed program was:" >&5
 
17272
sed 's/^/| /' conftest.$ac_ext >&5
 
17273
 
 
17274
        ac_cv_func_remove=no
 
17275
fi
 
17276
 
 
17277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17278
      conftest$ac_exeext conftest.$ac_ext
 
17279
fi
 
17280
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
17281
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
 
17282
 
 
17283
    if test $ac_cv_func_remove = no; then
 
17284
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
17285
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
 
17286
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
17287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17288
else
 
17289
  ac_check_lib_save_LIBS=$LIBS
 
17290
LIBS="-lposix  $LIBS"
 
17291
cat >conftest.$ac_ext <<_ACEOF
 
17292
/* confdefs.h.  */
 
17293
_ACEOF
 
17294
cat confdefs.h >>conftest.$ac_ext
 
17295
cat >>conftest.$ac_ext <<_ACEOF
 
17296
/* end confdefs.h.  */
 
17297
 
 
17298
/* Override any GCC internal prototype to avoid an error.
 
17299
   Use char because int might match the return type of a GCC
 
17300
   builtin and then its argument prototype would still apply.  */
 
17301
#ifdef __cplusplus
 
17302
extern "C"
 
17303
#endif
 
17304
char remove ();
 
17305
int
 
17306
main ()
 
17307
{
 
17308
return remove ();
 
17309
  ;
 
17310
  return 0;
 
17311
}
 
17312
_ACEOF
 
17313
rm -f conftest.$ac_objext conftest$ac_exeext
 
17314
if { (ac_try="$ac_link"
 
17315
case "(($ac_try" in
 
17316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17317
  *) ac_try_echo=$ac_try;;
 
17318
esac
 
17319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17320
  (eval "$ac_link") 2>conftest.er1
 
17321
  ac_status=$?
 
17322
  grep -v '^ *+' conftest.er1 >conftest.err
 
17323
  rm -f conftest.er1
 
17324
  cat conftest.err >&5
 
17325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17326
  (exit $ac_status); } && {
 
17327
         test -z "$ac_c_werror_flag" ||
 
17328
         test ! -s conftest.err
 
17329
       } && test -s conftest$ac_exeext &&
 
17330
       $as_test_x conftest$ac_exeext; then
 
17331
  ac_cv_lib_posix_remove=yes
 
17332
else
 
17333
  echo "$as_me: failed program was:" >&5
 
17334
sed 's/^/| /' conftest.$ac_ext >&5
 
17335
 
 
17336
        ac_cv_lib_posix_remove=no
 
17337
fi
 
17338
 
 
17339
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17340
      conftest$ac_exeext conftest.$ac_ext
 
17341
LIBS=$ac_check_lib_save_LIBS
 
17342
fi
 
17343
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
17344
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
 
17345
if test $ac_cv_lib_posix_remove = yes; then
 
17346
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
17347
fi
 
17348
 
 
17349
    fi
 
17350
 
 
17351
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
17352
    { echo "$as_me:$LINENO: checking for shmat" >&5
 
17353
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
 
17354
if test "${ac_cv_func_shmat+set}" = set; then
 
17355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17356
else
 
17357
  cat >conftest.$ac_ext <<_ACEOF
 
17358
/* confdefs.h.  */
 
17359
_ACEOF
 
17360
cat confdefs.h >>conftest.$ac_ext
 
17361
cat >>conftest.$ac_ext <<_ACEOF
 
17362
/* end confdefs.h.  */
 
17363
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
17364
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17365
#define shmat innocuous_shmat
 
17366
 
 
17367
/* System header to define __stub macros and hopefully few prototypes,
 
17368
    which can conflict with char shmat (); below.
 
17369
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17370
    <limits.h> exists even on freestanding compilers.  */
 
17371
 
 
17372
#ifdef __STDC__
 
17373
# include <limits.h>
 
17374
#else
 
17375
# include <assert.h>
 
17376
#endif
 
17377
 
 
17378
#undef shmat
 
17379
 
 
17380
/* Override any GCC internal prototype to avoid an error.
 
17381
   Use char because int might match the return type of a GCC
 
17382
   builtin and then its argument prototype would still apply.  */
 
17383
#ifdef __cplusplus
 
17384
extern "C"
 
17385
#endif
 
17386
char shmat ();
 
17387
/* The GNU C library defines this for functions which it implements
 
17388
    to always fail with ENOSYS.  Some functions are actually named
 
17389
    something starting with __ and the normal name is an alias.  */
 
17390
#if defined __stub_shmat || defined __stub___shmat
 
17391
choke me
 
17392
#endif
 
17393
 
 
17394
int
 
17395
main ()
 
17396
{
 
17397
return shmat ();
 
17398
  ;
 
17399
  return 0;
 
17400
}
 
17401
_ACEOF
 
17402
rm -f conftest.$ac_objext conftest$ac_exeext
 
17403
if { (ac_try="$ac_link"
 
17404
case "(($ac_try" in
 
17405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17406
  *) ac_try_echo=$ac_try;;
 
17407
esac
 
17408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17409
  (eval "$ac_link") 2>conftest.er1
 
17410
  ac_status=$?
 
17411
  grep -v '^ *+' conftest.er1 >conftest.err
 
17412
  rm -f conftest.er1
 
17413
  cat conftest.err >&5
 
17414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17415
  (exit $ac_status); } && {
 
17416
         test -z "$ac_c_werror_flag" ||
 
17417
         test ! -s conftest.err
 
17418
       } && test -s conftest$ac_exeext &&
 
17419
       $as_test_x conftest$ac_exeext; then
 
17420
  ac_cv_func_shmat=yes
 
17421
else
 
17422
  echo "$as_me: failed program was:" >&5
 
17423
sed 's/^/| /' conftest.$ac_ext >&5
 
17424
 
 
17425
        ac_cv_func_shmat=no
 
17426
fi
 
17427
 
 
17428
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17429
      conftest$ac_exeext conftest.$ac_ext
 
17430
fi
 
17431
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
17432
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
 
17433
 
 
17434
    if test $ac_cv_func_shmat = no; then
 
17435
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
17436
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
 
17437
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
17438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17439
else
 
17440
  ac_check_lib_save_LIBS=$LIBS
 
17441
LIBS="-lipc  $LIBS"
 
17442
cat >conftest.$ac_ext <<_ACEOF
 
17443
/* confdefs.h.  */
 
17444
_ACEOF
 
17445
cat confdefs.h >>conftest.$ac_ext
 
17446
cat >>conftest.$ac_ext <<_ACEOF
 
17447
/* end confdefs.h.  */
 
17448
 
 
17449
/* Override any GCC internal prototype to avoid an error.
 
17450
   Use char because int might match the return type of a GCC
 
17451
   builtin and then its argument prototype would still apply.  */
 
17452
#ifdef __cplusplus
 
17453
extern "C"
 
17454
#endif
 
17455
char shmat ();
 
17456
int
 
17457
main ()
 
17458
{
 
17459
return shmat ();
 
17460
  ;
 
17461
  return 0;
 
17462
}
 
17463
_ACEOF
 
17464
rm -f conftest.$ac_objext conftest$ac_exeext
 
17465
if { (ac_try="$ac_link"
 
17466
case "(($ac_try" in
 
17467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17468
  *) ac_try_echo=$ac_try;;
 
17469
esac
 
17470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17471
  (eval "$ac_link") 2>conftest.er1
 
17472
  ac_status=$?
 
17473
  grep -v '^ *+' conftest.er1 >conftest.err
 
17474
  rm -f conftest.er1
 
17475
  cat conftest.err >&5
 
17476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17477
  (exit $ac_status); } && {
 
17478
         test -z "$ac_c_werror_flag" ||
 
17479
         test ! -s conftest.err
 
17480
       } && test -s conftest$ac_exeext &&
 
17481
       $as_test_x conftest$ac_exeext; then
 
17482
  ac_cv_lib_ipc_shmat=yes
 
17483
else
 
17484
  echo "$as_me: failed program was:" >&5
 
17485
sed 's/^/| /' conftest.$ac_ext >&5
 
17486
 
 
17487
        ac_cv_lib_ipc_shmat=no
 
17488
fi
 
17489
 
 
17490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17491
      conftest$ac_exeext conftest.$ac_ext
 
17492
LIBS=$ac_check_lib_save_LIBS
 
17493
fi
 
17494
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
17495
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
 
17496
if test $ac_cv_lib_ipc_shmat = yes; then
 
17497
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
17498
fi
 
17499
 
 
17500
    fi
 
17501
  fi
 
17502
 
 
17503
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
17504
  ac_save_LDFLAGS=$LDFLAGS
 
17505
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
17506
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
17507
  # check for ICE first), but we must link in the order -lSM -lICE or
 
17508
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
17509
  # These have to be linked with before -lX11, unlike the other
 
17510
  # libraries we check for below, so use a different variable.
 
17511
  # John Interrante, Karl Berry
 
17512
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
17513
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
 
17514
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
17515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17516
else
 
17517
  ac_check_lib_save_LIBS=$LIBS
 
17518
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
17519
cat >conftest.$ac_ext <<_ACEOF
 
17520
/* confdefs.h.  */
 
17521
_ACEOF
 
17522
cat confdefs.h >>conftest.$ac_ext
 
17523
cat >>conftest.$ac_ext <<_ACEOF
 
17524
/* end confdefs.h.  */
 
17525
 
 
17526
/* Override any GCC internal prototype to avoid an error.
 
17527
   Use char because int might match the return type of a GCC
 
17528
   builtin and then its argument prototype would still apply.  */
 
17529
#ifdef __cplusplus
 
17530
extern "C"
 
17531
#endif
 
17532
char IceConnectionNumber ();
 
17533
int
 
17534
main ()
 
17535
{
 
17536
return IceConnectionNumber ();
 
17537
  ;
 
17538
  return 0;
 
17539
}
 
17540
_ACEOF
 
17541
rm -f conftest.$ac_objext conftest$ac_exeext
 
17542
if { (ac_try="$ac_link"
 
17543
case "(($ac_try" in
 
17544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17545
  *) ac_try_echo=$ac_try;;
 
17546
esac
 
17547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17548
  (eval "$ac_link") 2>conftest.er1
 
17549
  ac_status=$?
 
17550
  grep -v '^ *+' conftest.er1 >conftest.err
 
17551
  rm -f conftest.er1
 
17552
  cat conftest.err >&5
 
17553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17554
  (exit $ac_status); } && {
 
17555
         test -z "$ac_c_werror_flag" ||
 
17556
         test ! -s conftest.err
 
17557
       } && test -s conftest$ac_exeext &&
 
17558
       $as_test_x conftest$ac_exeext; then
 
17559
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
17560
else
 
17561
  echo "$as_me: failed program was:" >&5
 
17562
sed 's/^/| /' conftest.$ac_ext >&5
 
17563
 
 
17564
        ac_cv_lib_ICE_IceConnectionNumber=no
 
17565
fi
 
17566
 
 
17567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17568
      conftest$ac_exeext conftest.$ac_ext
 
17569
LIBS=$ac_check_lib_save_LIBS
 
17570
fi
 
17571
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
17572
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
17573
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
17574
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
17575
fi
 
17576
 
 
17577
  LDFLAGS=$ac_save_LDFLAGS
 
17578
 
 
17579
fi
 
17580
 
 
17581
if test "$no_x" = yes; then
 
17582
  GUI="NONE_GUI"
 
17583
else
 
17584
  GUI_LIBS="-lXt -lXext -lX11 $X_PRE_LIBS $X_EXTRA_LIBS"
 
17585
 
 
17586
 
 
17587
    save_CFLAGS=$CFLAGS
 
17588
    save_CPPFLAGS=$CPPFLAGS
 
17589
    save_LDFLAGS=$LDFLAGS
 
17590
    save_LIBS=$LIBS
 
17591
 
 
17592
 
 
17593
  LIBS="$GUI_LIBS"
 
17594
  CFLAGS="$X_CFLAGS $CFLAGS"
 
17595
  CPPFLAGS="$X_CFLAGS $CPPFLAGS"
 
17596
  LDFLAGS="$X_LIBS $LDFLAGS"
 
17597
 
 
17598
    case $editres in
 
17599
    true) { echo "$as_me:$LINENO: checking for _XEditResCheckMessages in -lXmu" >&5
 
17600
echo $ECHO_N "checking for _XEditResCheckMessages in -lXmu... $ECHO_C" >&6; }
 
17601
if test "${ac_cv_lib_Xmu__XEditResCheckMessages+set}" = set; then
 
17602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17603
else
 
17604
  ac_check_lib_save_LIBS=$LIBS
 
17605
LIBS="-lXmu  $LIBS"
 
17606
cat >conftest.$ac_ext <<_ACEOF
 
17607
/* confdefs.h.  */
 
17608
_ACEOF
 
17609
cat confdefs.h >>conftest.$ac_ext
 
17610
cat >>conftest.$ac_ext <<_ACEOF
 
17611
/* end confdefs.h.  */
 
17612
 
 
17613
/* Override any GCC internal prototype to avoid an error.
 
17614
   Use char because int might match the return type of a GCC
 
17615
   builtin and then its argument prototype would still apply.  */
 
17616
#ifdef __cplusplus
 
17617
extern "C"
 
17618
#endif
 
17619
char _XEditResCheckMessages ();
 
17620
int
 
17621
main ()
 
17622
{
 
17623
return _XEditResCheckMessages ();
 
17624
  ;
 
17625
  return 0;
 
17626
}
 
17627
_ACEOF
 
17628
rm -f conftest.$ac_objext conftest$ac_exeext
 
17629
if { (ac_try="$ac_link"
 
17630
case "(($ac_try" in
 
17631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17632
  *) ac_try_echo=$ac_try;;
 
17633
esac
 
17634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17635
  (eval "$ac_link") 2>conftest.er1
 
17636
  ac_status=$?
 
17637
  grep -v '^ *+' conftest.er1 >conftest.err
 
17638
  rm -f conftest.er1
 
17639
  cat conftest.err >&5
 
17640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17641
  (exit $ac_status); } && {
 
17642
         test -z "$ac_c_werror_flag" ||
 
17643
         test ! -s conftest.err
 
17644
       } && test -s conftest$ac_exeext &&
 
17645
       $as_test_x conftest$ac_exeext; then
 
17646
  ac_cv_lib_Xmu__XEditResCheckMessages=yes
 
17647
else
 
17648
  echo "$as_me: failed program was:" >&5
 
17649
sed 's/^/| /' conftest.$ac_ext >&5
 
17650
 
 
17651
        ac_cv_lib_Xmu__XEditResCheckMessages=no
 
17652
fi
 
17653
 
 
17654
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17655
      conftest$ac_exeext conftest.$ac_ext
 
17656
LIBS=$ac_check_lib_save_LIBS
 
17657
fi
 
17658
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu__XEditResCheckMessages" >&5
 
17659
echo "${ECHO_T}$ac_cv_lib_Xmu__XEditResCheckMessages" >&6; }
 
17660
if test $ac_cv_lib_Xmu__XEditResCheckMessages = yes; then
 
17661
  GUI_LIBS="-lXmu $GUI_LIBS"; cat >>confdefs.h <<\_ACEOF
 
17662
#define WITH_EDITRES 1
 
17663
_ACEOF
 
17664
 
 
17665
fi
 
17666
;;
 
17667
    *) ;;
 
17668
  esac
 
17669
 
 
17670
  if test "$ac_cv_lib_Xmu__XEditResCheckMessages" != yes; then
 
17671
    { echo "$as_me:$LINENO: result: --> support for EditRes protocol is disabled" >&5
 
17672
echo "${ECHO_T}--> support for EditRes protocol is disabled" >&6; }
 
17673
  fi
 
17674
 
 
17675
    { echo "$as_me:$LINENO: checking for main in -lXp" >&5
 
17676
echo $ECHO_N "checking for main in -lXp... $ECHO_C" >&6; }
 
17677
if test "${ac_cv_lib_Xp_main+set}" = set; then
 
17678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17679
else
 
17680
  ac_check_lib_save_LIBS=$LIBS
 
17681
LIBS="-lXp  $LIBS"
 
17682
cat >conftest.$ac_ext <<_ACEOF
 
17683
/* confdefs.h.  */
 
17684
_ACEOF
 
17685
cat confdefs.h >>conftest.$ac_ext
 
17686
cat >>conftest.$ac_ext <<_ACEOF
 
17687
/* end confdefs.h.  */
 
17688
 
 
17689
 
 
17690
int
 
17691
main ()
 
17692
{
 
17693
return main ();
 
17694
  ;
 
17695
  return 0;
 
17696
}
 
17697
_ACEOF
 
17698
rm -f conftest.$ac_objext conftest$ac_exeext
 
17699
if { (ac_try="$ac_link"
 
17700
case "(($ac_try" in
 
17701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17702
  *) ac_try_echo=$ac_try;;
 
17703
esac
 
17704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17705
  (eval "$ac_link") 2>conftest.er1
 
17706
  ac_status=$?
 
17707
  grep -v '^ *+' conftest.er1 >conftest.err
 
17708
  rm -f conftest.er1
 
17709
  cat conftest.err >&5
 
17710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17711
  (exit $ac_status); } && {
 
17712
         test -z "$ac_c_werror_flag" ||
 
17713
         test ! -s conftest.err
 
17714
       } && test -s conftest$ac_exeext &&
 
17715
       $as_test_x conftest$ac_exeext; then
 
17716
  ac_cv_lib_Xp_main=yes
 
17717
else
 
17718
  echo "$as_me: failed program was:" >&5
 
17719
sed 's/^/| /' conftest.$ac_ext >&5
 
17720
 
 
17721
        ac_cv_lib_Xp_main=no
 
17722
fi
 
17723
 
 
17724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17725
      conftest$ac_exeext conftest.$ac_ext
 
17726
LIBS=$ac_check_lib_save_LIBS
 
17727
fi
 
17728
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_main" >&5
 
17729
echo "${ECHO_T}$ac_cv_lib_Xp_main" >&6; }
 
17730
if test $ac_cv_lib_Xp_main = yes; then
 
17731
  GUI_LIBS="-lXp $GUI_LIBS"
 
17732
fi
 
17733
 
 
17734
 
 
17735
    { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
 
17736
echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
 
17737
if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
 
17738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17739
else
 
17740
  ac_check_lib_save_LIBS=$LIBS
 
17741
LIBS="-lXpm  $LIBS"
 
17742
cat >conftest.$ac_ext <<_ACEOF
 
17743
/* confdefs.h.  */
 
17744
_ACEOF
 
17745
cat confdefs.h >>conftest.$ac_ext
 
17746
cat >>conftest.$ac_ext <<_ACEOF
 
17747
/* end confdefs.h.  */
 
17748
 
 
17749
/* Override any GCC internal prototype to avoid an error.
 
17750
   Use char because int might match the return type of a GCC
 
17751
   builtin and then its argument prototype would still apply.  */
 
17752
#ifdef __cplusplus
 
17753
extern "C"
 
17754
#endif
 
17755
char XpmCreatePixmapFromData ();
 
17756
int
 
17757
main ()
 
17758
{
 
17759
return XpmCreatePixmapFromData ();
 
17760
  ;
 
17761
  return 0;
 
17762
}
 
17763
_ACEOF
 
17764
rm -f conftest.$ac_objext conftest$ac_exeext
 
17765
if { (ac_try="$ac_link"
 
17766
case "(($ac_try" in
 
17767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17768
  *) ac_try_echo=$ac_try;;
 
17769
esac
 
17770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17771
  (eval "$ac_link") 2>conftest.er1
 
17772
  ac_status=$?
 
17773
  grep -v '^ *+' conftest.er1 >conftest.err
 
17774
  rm -f conftest.er1
 
17775
  cat conftest.err >&5
 
17776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17777
  (exit $ac_status); } && {
 
17778
         test -z "$ac_c_werror_flag" ||
 
17779
         test ! -s conftest.err
 
17780
       } && test -s conftest$ac_exeext &&
 
17781
       $as_test_x conftest$ac_exeext; then
 
17782
  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
 
17783
else
 
17784
  echo "$as_me: failed program was:" >&5
 
17785
sed 's/^/| /' conftest.$ac_ext >&5
 
17786
 
 
17787
        ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
 
17788
fi
 
17789
 
 
17790
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17791
      conftest$ac_exeext conftest.$ac_ext
 
17792
LIBS=$ac_check_lib_save_LIBS
 
17793
fi
 
17794
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
 
17795
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
 
17796
if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
 
17797
  GUI_LIBS="-lXpm $GUI_LIBS"; cat >>confdefs.h <<\_ACEOF
 
17798
#define HAVE_XPM 1
 
17799
_ACEOF
 
17800
 
 
17801
fi
 
17802
 
 
17803
 
 
17804
  if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
 
17805
 
 
17806
 
 
17807
for ac_header in xpm.h X11/xpm.h
 
17808
do
 
17809
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17811
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17812
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17815
fi
 
17816
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17817
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17818
echo "${ECHO_T}$ac_res" >&6; }
 
17819
else
 
17820
  # Is the header compilable?
 
17821
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
17823
cat >conftest.$ac_ext <<_ACEOF
 
17824
/* confdefs.h.  */
 
17825
_ACEOF
 
17826
cat confdefs.h >>conftest.$ac_ext
 
17827
cat >>conftest.$ac_ext <<_ACEOF
 
17828
/* end confdefs.h.  */
 
17829
$ac_includes_default
 
17830
#include <$ac_header>
 
17831
_ACEOF
 
17832
rm -f conftest.$ac_objext
 
17833
if { (ac_try="$ac_compile"
 
17834
case "(($ac_try" in
 
17835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17836
  *) ac_try_echo=$ac_try;;
 
17837
esac
 
17838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17839
  (eval "$ac_compile") 2>conftest.er1
 
17840
  ac_status=$?
 
17841
  grep -v '^ *+' conftest.er1 >conftest.err
 
17842
  rm -f conftest.er1
 
17843
  cat conftest.err >&5
 
17844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17845
  (exit $ac_status); } && {
 
17846
         test -z "$ac_c_werror_flag" ||
 
17847
         test ! -s conftest.err
 
17848
       } && test -s conftest.$ac_objext; then
 
17849
  ac_header_compiler=yes
 
17850
else
 
17851
  echo "$as_me: failed program was:" >&5
 
17852
sed 's/^/| /' conftest.$ac_ext >&5
 
17853
 
 
17854
        ac_header_compiler=no
 
17855
fi
 
17856
 
 
17857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17859
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17860
 
 
17861
# Is the header present?
 
17862
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
17864
cat >conftest.$ac_ext <<_ACEOF
 
17865
/* confdefs.h.  */
 
17866
_ACEOF
 
17867
cat confdefs.h >>conftest.$ac_ext
 
17868
cat >>conftest.$ac_ext <<_ACEOF
 
17869
/* end confdefs.h.  */
 
17870
#include <$ac_header>
 
17871
_ACEOF
 
17872
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17873
case "(($ac_try" in
 
17874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17875
  *) ac_try_echo=$ac_try;;
 
17876
esac
 
17877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17878
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17879
  ac_status=$?
 
17880
  grep -v '^ *+' conftest.er1 >conftest.err
 
17881
  rm -f conftest.er1
 
17882
  cat conftest.err >&5
 
17883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17884
  (exit $ac_status); } >/dev/null && {
 
17885
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17886
         test ! -s conftest.err
 
17887
       }; then
 
17888
  ac_header_preproc=yes
 
17889
else
 
17890
  echo "$as_me: failed program was:" >&5
 
17891
sed 's/^/| /' conftest.$ac_ext >&5
 
17892
 
 
17893
  ac_header_preproc=no
 
17894
fi
 
17895
 
 
17896
rm -f conftest.err conftest.$ac_ext
 
17897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17898
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17899
 
 
17900
# So?  What about this header?
 
17901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17902
  yes:no: )
 
17903
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
17904
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17905
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
17906
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
17907
    ac_header_preproc=yes
 
17908
    ;;
 
17909
  no:yes:* )
 
17910
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
17911
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
17912
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
17913
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
17914
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
17915
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
17916
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
17917
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17918
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
17919
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
17920
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
17921
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
17922
 
 
17923
    ;;
 
17924
esac
 
17925
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17926
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17927
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17929
else
 
17930
  eval "$as_ac_Header=\$ac_header_preproc"
 
17931
fi
 
17932
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17933
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17934
echo "${ECHO_T}$ac_res" >&6; }
 
17935
 
 
17936
fi
 
17937
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
17938
  cat >>confdefs.h <<_ACEOF
 
17939
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17940
_ACEOF
 
17941
 
 
17942
fi
 
17943
 
 
17944
done
 
17945
 
 
17946
  fi
 
17947
 
 
17948
 
 
17949
    CFLAGS=$save_CFLAGS
 
17950
    CPPFLAGS=$save_CPPFLAGS
 
17951
    LDFLAGS=$save_LDFLAGS
 
17952
    LIBS=$save_LIBS
 
17953
 
 
17954
 
 
17955
 
 
17956
 
 
17957
 
 
17958
# Check whether --with-motif_library was given.
 
17959
if test "${with_motif_library+set}" = set; then
 
17960
  withval=$with_motif_library; motif_library="$withval"
 
17961
fi
 
17962
 
 
17963
  if test "x$motif_library" = "x"
 
17964
  then
 
17965
    motif_library=-lXm
 
17966
  fi
 
17967
 
 
17968
 
 
17969
    save_CFLAGS=$CFLAGS
 
17970
    save_CPPFLAGS=$CPPFLAGS
 
17971
    save_LDFLAGS=$LDFLAGS
 
17972
    save_LIBS=$LIBS
 
17973
 
 
17974
 
 
17975
  { echo "$as_me:$LINENO: checking for a Motif >= 1002 compatible API" >&5
 
17976
echo $ECHO_N "checking for a Motif >= 1002 compatible API... $ECHO_C" >&6; }
 
17977
if test "${acx_cv_motif+set}" = set; then
 
17978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17979
else
 
17980
  if test "${acx_cv_motif_library+set}" = set; then
 
17981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17982
else
 
17983
  acx_cv_motif_library=$motif_library
 
17984
fi
 
17985
 
 
17986
    LIBS="$acx_cv_motif_library $GUI_LIBS"
 
17987
    CFLAGS="$X_CFLAGS $CFLAGS"
 
17988
    CPPFLAGS="$X_CFLAGS $CPPFLAGS"
 
17989
    LDFLAGS="$X_LIBS $LDFLAGS"
 
17990
    if test "$cross_compiling" = yes; then
 
17991
  acx_cv_motif="no"
 
17992
 
 
17993
else
 
17994
  cat >conftest.$ac_ext <<_ACEOF
 
17995
/* confdefs.h.  */
 
17996
_ACEOF
 
17997
cat confdefs.h >>conftest.$ac_ext
 
17998
cat >>conftest.$ac_ext <<_ACEOF
 
17999
/* end confdefs.h.  */
 
18000
 
 
18001
#include <Xm/XmAll.h>
 
18002
      int main(void) {
 
18003
        int vlibn, vincn;
 
18004
        vincn = XmVersion;
 
18005
        XmRegisterConverters();
 
18006
        vlibn = xmUseVersion;
 
18007
        if (vincn < 1002) {
 
18008
          exit(1);
 
18009
        }
 
18010
        if (vincn != vlibn) {
 
18011
          exit(2);
 
18012
        }
 
18013
        exit(0);
 
18014
      }
 
18015
 
 
18016
_ACEOF
 
18017
rm -f conftest$ac_exeext
 
18018
if { (ac_try="$ac_link"
 
18019
case "(($ac_try" in
 
18020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18021
  *) ac_try_echo=$ac_try;;
 
18022
esac
 
18023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18024
  (eval "$ac_link") 2>&5
 
18025
  ac_status=$?
 
18026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18027
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18028
  { (case "(($ac_try" in
 
18029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18030
  *) ac_try_echo=$ac_try;;
 
18031
esac
 
18032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18033
  (eval "$ac_try") 2>&5
 
18034
  ac_status=$?
 
18035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18036
  (exit $ac_status); }; }; then
 
18037
  acx_cv_motif="yes"
 
18038
else
 
18039
  echo "$as_me: program exited with status $ac_status" >&5
 
18040
echo "$as_me: failed program was:" >&5
 
18041
sed 's/^/| /' conftest.$ac_ext >&5
 
18042
 
 
18043
( exit $ac_status )
 
18044
acx_cv_motif="no"
 
18045
fi
 
18046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18047
fi
 
18048
 
 
18049
 
 
18050
 
 
18051
fi
 
18052
{ echo "$as_me:$LINENO: result: $acx_cv_motif" >&5
 
18053
echo "${ECHO_T}$acx_cv_motif" >&6; }
 
18054
  if test "$acx_cv_motif" = "yes"
 
18055
  then
 
18056
    cat >>confdefs.h <<\_ACEOF
 
18057
#define HAVE_MOTIF 1
 
18058
_ACEOF
 
18059
 
 
18060
    MOTIF_LIB="$acx_cv_motif_library"
 
18061
 
 
18062
 
 
18063
{ echo "$as_me:$LINENO: checking whether the Motif library is actually a LessTif library" >&5
 
18064
echo $ECHO_N "checking whether the Motif library is actually a LessTif library... $ECHO_C" >&6; }
 
18065
if test "${ice_cv_have_lesstif+set}" = set; then
 
18066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18067
else
 
18068
  cat >conftest.$ac_ext <<_ACEOF
 
18069
/* confdefs.h.  */
 
18070
_ACEOF
 
18071
cat confdefs.h >>conftest.$ac_ext
 
18072
cat >>conftest.$ac_ext <<_ACEOF
 
18073
/* end confdefs.h.  */
 
18074
#include <Xm/Xm.h>
 
18075
#ifdef LesstifVersion
 
18076
yes
 
18077
#endif
 
18078
 
 
18079
_ACEOF
 
18080
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18081
  $EGREP "yes" >/dev/null 2>&1; then
 
18082
  ice_cv_have_lesstif=yes
 
18083
else
 
18084
  ice_cv_have_lesstif=no
 
18085
fi
 
18086
rm -f conftest*
 
18087
 
 
18088
fi
 
18089
 
 
18090
{ echo "$as_me:$LINENO: result: $ice_cv_have_lesstif" >&5
 
18091
echo "${ECHO_T}$ice_cv_have_lesstif" >&6; }
 
18092
if test "$ice_cv_have_lesstif" = yes; then
 
18093
cat >>confdefs.h <<\_ACEOF
 
18094
#define HAVE_LESSTIF 1
 
18095
_ACEOF
 
18096
 
 
18097
fi
 
18098
 
 
18099
 
 
18100
  { echo "$as_me:$LINENO: checking whether _XmVersionString can be referred to" >&5
 
18101
echo $ECHO_N "checking whether _XmVersionString can be referred to... $ECHO_C" >&6; }
 
18102
if test "${acx_cv__xmversionstring+set}" = set; then
 
18103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18104
else
 
18105
  cat >conftest.$ac_ext <<_ACEOF
 
18106
/* confdefs.h.  */
 
18107
_ACEOF
 
18108
cat confdefs.h >>conftest.$ac_ext
 
18109
cat >>conftest.$ac_ext <<_ACEOF
 
18110
/* end confdefs.h.  */
 
18111
#include <stdio.h>
 
18112
int
 
18113
main ()
 
18114
{
 
18115
extern char _XmVersionString[]; printf("%s\n", _XmVersionString);
 
18116
  ;
 
18117
  return 0;
 
18118
}
 
18119
_ACEOF
 
18120
rm -f conftest.$ac_objext conftest$ac_exeext
 
18121
if { (ac_try="$ac_link"
 
18122
case "(($ac_try" in
 
18123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18124
  *) ac_try_echo=$ac_try;;
 
18125
esac
 
18126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18127
  (eval "$ac_link") 2>conftest.er1
 
18128
  ac_status=$?
 
18129
  grep -v '^ *+' conftest.er1 >conftest.err
 
18130
  rm -f conftest.er1
 
18131
  cat conftest.err >&5
 
18132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18133
  (exit $ac_status); } && {
 
18134
         test -z "$ac_c_werror_flag" ||
 
18135
         test ! -s conftest.err
 
18136
       } && test -s conftest$ac_exeext &&
 
18137
       $as_test_x conftest$ac_exeext; then
 
18138
  acx_cv__xmversionstring="yes"
 
18139
else
 
18140
  echo "$as_me: failed program was:" >&5
 
18141
sed 's/^/| /' conftest.$ac_ext >&5
 
18142
 
 
18143
        acx_cv__xmversionstring="no"
 
18144
 
 
18145
fi
 
18146
 
 
18147
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18148
      conftest$ac_exeext conftest.$ac_ext
 
18149
 
 
18150
fi
 
18151
{ echo "$as_me:$LINENO: result: $acx_cv__xmversionstring" >&5
 
18152
echo "${ECHO_T}$acx_cv__xmversionstring" >&6; }
 
18153
  if test "$acx_cv__xmversionstring" = "yes"
 
18154
  then
 
18155
    cat >>confdefs.h <<\_ACEOF
 
18156
#define HAVE__XMVERSIONSTRING 1
 
18157
_ACEOF
 
18158
 
 
18159
 
 
18160
  else
 
18161
    :
 
18162
 
 
18163
  fi
 
18164
 
 
18165
  else
 
18166
    MOTIF_LIB=
 
18167
 
 
18168
  fi
 
18169
 
 
18170
 
 
18171
    CFLAGS=$save_CFLAGS
 
18172
    CPPFLAGS=$save_CPPFLAGS
 
18173
    LDFLAGS=$save_LDFLAGS
 
18174
    LIBS=$save_LIBS
 
18175
 
 
18176
 
 
18177
  if test "$acx_cv_motif" = "no"; then
 
18178
        GUI="NONE_GUI"
 
18179
    GUI_FLAGS=""
 
18180
    GUI_LIBS=""
 
18181
    { { echo "$as_me:$LINENO: error: M*tif has not been found" >&5
 
18182
echo "$as_me: error: M*tif has not been found" >&2;}
 
18183
   { (exit 1); exit 1; }; }
 
18184
  else
 
18185
    GUI_LIBS="$MOTIF_LIB $GUI_LIBS"
 
18186
    GUI="MOTIF_GUI"
 
18187
    GUI_FLAGS="$X_CFLAGS"
 
18188
    GRACE=xmgrace
 
18189
 
 
18190
        xsave_CPPFLAGS="$CPPFLAGS"
 
18191
    xsave_LIBS="$LIBS"
 
18192
    CPPFLAGS="$CPPFLAGS $GUI_FLAGS"
 
18193
    LIBS="$X_LIBS $GUI_LIBS $LIBS"
 
18194
 
 
18195
        if test $bundled_xbae = false
 
18196
    then
 
18197
      { echo "$as_me:$LINENO: checking for XbaeCreateMatrix in -lXbae" >&5
 
18198
echo $ECHO_N "checking for XbaeCreateMatrix in -lXbae... $ECHO_C" >&6; }
 
18199
if test "${ac_cv_lib_Xbae_XbaeCreateMatrix+set}" = set; then
 
18200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18201
else
 
18202
  ac_check_lib_save_LIBS=$LIBS
 
18203
LIBS="-lXbae  $LIBS"
 
18204
cat >conftest.$ac_ext <<_ACEOF
 
18205
/* confdefs.h.  */
 
18206
_ACEOF
 
18207
cat confdefs.h >>conftest.$ac_ext
 
18208
cat >>conftest.$ac_ext <<_ACEOF
 
18209
/* end confdefs.h.  */
 
18210
 
 
18211
/* Override any GCC internal prototype to avoid an error.
 
18212
   Use char because int might match the return type of a GCC
 
18213
   builtin and then its argument prototype would still apply.  */
 
18214
#ifdef __cplusplus
 
18215
extern "C"
 
18216
#endif
 
18217
char XbaeCreateMatrix ();
 
18218
int
 
18219
main ()
 
18220
{
 
18221
return XbaeCreateMatrix ();
 
18222
  ;
 
18223
  return 0;
 
18224
}
 
18225
_ACEOF
 
18226
rm -f conftest.$ac_objext conftest$ac_exeext
 
18227
if { (ac_try="$ac_link"
 
18228
case "(($ac_try" in
 
18229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18230
  *) ac_try_echo=$ac_try;;
 
18231
esac
 
18232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18233
  (eval "$ac_link") 2>conftest.er1
 
18234
  ac_status=$?
 
18235
  grep -v '^ *+' conftest.er1 >conftest.err
 
18236
  rm -f conftest.er1
 
18237
  cat conftest.err >&5
 
18238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18239
  (exit $ac_status); } && {
 
18240
         test -z "$ac_c_werror_flag" ||
 
18241
         test ! -s conftest.err
 
18242
       } && test -s conftest$ac_exeext &&
 
18243
       $as_test_x conftest$ac_exeext; then
 
18244
  ac_cv_lib_Xbae_XbaeCreateMatrix=yes
 
18245
else
 
18246
  echo "$as_me: failed program was:" >&5
 
18247
sed 's/^/| /' conftest.$ac_ext >&5
 
18248
 
 
18249
        ac_cv_lib_Xbae_XbaeCreateMatrix=no
 
18250
fi
 
18251
 
 
18252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18253
      conftest$ac_exeext conftest.$ac_ext
 
18254
LIBS=$ac_check_lib_save_LIBS
 
18255
fi
 
18256
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xbae_XbaeCreateMatrix" >&5
 
18257
echo "${ECHO_T}$ac_cv_lib_Xbae_XbaeCreateMatrix" >&6; }
 
18258
if test $ac_cv_lib_Xbae_XbaeCreateMatrix = yes; then
 
18259
  XBAE_LIB="-lXbae";cat >>confdefs.h <<\_ACEOF
 
18260
#define HAVE_LIBXBAE 1
 
18261
_ACEOF
 
18262
 
 
18263
fi
 
18264
 
 
18265
    fi
 
18266
    if test -z "$XBAE_LIB"
 
18267
    then
 
18268
            { echo "$as_me:$LINENO: result: --> Bundled version of Xbae library will be used" >&5
 
18269
echo "${ECHO_T}--> Bundled version of Xbae library will be used" >&6; }
 
18270
      XBAE_LIB='$(TOP)/Xbae/Xbae/libXbae.a'
 
18271
      XBAE_INC='-I$(TOP)/Xbae'
 
18272
      xbae_dir="Xbae/Xbae"
 
18273
    else
 
18274
      { echo "$as_me:$LINENO: result: --> Good. Seems you have compatible version of Xbae installed" >&5
 
18275
echo "${ECHO_T}--> Good. Seems you have compatible version of Xbae installed" >&6; }
 
18276
    fi
 
18277
 
 
18278
        case $libhelp in
 
18279
      true) { echo "$as_me:$LINENO: checking for get_help in -lhlpclient" >&5
 
18280
echo $ECHO_N "checking for get_help in -lhlpclient... $ECHO_C" >&6; }
 
18281
if test "${ac_cv_lib_hlpclient_get_help+set}" = set; then
 
18282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18283
else
 
18284
  ac_check_lib_save_LIBS=$LIBS
 
18285
LIBS="-lhlpclient  $LIBS"
 
18286
cat >conftest.$ac_ext <<_ACEOF
 
18287
/* confdefs.h.  */
 
18288
_ACEOF
 
18289
cat confdefs.h >>conftest.$ac_ext
 
18290
cat >>conftest.$ac_ext <<_ACEOF
 
18291
/* end confdefs.h.  */
 
18292
 
 
18293
/* Override any GCC internal prototype to avoid an error.
 
18294
   Use char because int might match the return type of a GCC
 
18295
   builtin and then its argument prototype would still apply.  */
 
18296
#ifdef __cplusplus
 
18297
extern "C"
 
18298
#endif
 
18299
char get_help ();
 
18300
int
 
18301
main ()
 
18302
{
 
18303
return get_help ();
 
18304
  ;
 
18305
  return 0;
 
18306
}
 
18307
_ACEOF
 
18308
rm -f conftest.$ac_objext conftest$ac_exeext
 
18309
if { (ac_try="$ac_link"
 
18310
case "(($ac_try" in
 
18311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18312
  *) ac_try_echo=$ac_try;;
 
18313
esac
 
18314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18315
  (eval "$ac_link") 2>conftest.er1
 
18316
  ac_status=$?
 
18317
  grep -v '^ *+' conftest.er1 >conftest.err
 
18318
  rm -f conftest.er1
 
18319
  cat conftest.err >&5
 
18320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18321
  (exit $ac_status); } && {
 
18322
         test -z "$ac_c_werror_flag" ||
 
18323
         test ! -s conftest.err
 
18324
       } && test -s conftest$ac_exeext &&
 
18325
       $as_test_x conftest$ac_exeext; then
 
18326
  ac_cv_lib_hlpclient_get_help=yes
 
18327
else
 
18328
  echo "$as_me: failed program was:" >&5
 
18329
sed 's/^/| /' conftest.$ac_ext >&5
 
18330
 
 
18331
        ac_cv_lib_hlpclient_get_help=no
 
18332
fi
 
18333
 
 
18334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18335
      conftest$ac_exeext conftest.$ac_ext
 
18336
LIBS=$ac_check_lib_save_LIBS
 
18337
fi
 
18338
{ echo "$as_me:$LINENO: result: $ac_cv_lib_hlpclient_get_help" >&5
 
18339
echo "${ECHO_T}$ac_cv_lib_hlpclient_get_help" >&6; }
 
18340
if test $ac_cv_lib_hlpclient_get_help = yes; then
 
18341
  LIBHELP_LIB="-lhlpclient"; cat >>confdefs.h <<\_ACEOF
 
18342
#define WITH_LIBHELP 1
 
18343
_ACEOF
 
18344
 
 
18345
fi
 
18346
;;
 
18347
      *)  ;;
 
18348
    esac
 
18349
 
 
18350
        if test $xmhtml = true
 
18351
    then
 
18352
 
 
18353
 
 
18354
# Check whether --with-xmhtml_library was given.
 
18355
if test "${with_xmhtml_library+set}" = set; then
 
18356
  withval=$with_xmhtml_library; xmhtml_library="$withval"
 
18357
fi
 
18358
 
 
18359
  if test "x$xmhtml_library" = "x"
 
18360
  then
 
18361
    xmhtml_library=-lXmHTML
 
18362
  fi
 
18363
 
 
18364
  { echo "$as_me:$LINENO: checking for XmHTML widget >= 1105" >&5
 
18365
echo $ECHO_N "checking for XmHTML widget >= 1105... $ECHO_C" >&6; }
 
18366
if test "${acx_cv_xmhtml+set}" = set; then
 
18367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18368
else
 
18369
  if test "${acx_cv_xmhtml_library+set}" = set; then
 
18370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18371
else
 
18372
  acx_cv_xmhtml_library=$xmhtml_library
 
18373
fi
 
18374
 
 
18375
 
 
18376
    save_CFLAGS=$CFLAGS
 
18377
    save_CPPFLAGS=$CPPFLAGS
 
18378
    save_LDFLAGS=$LDFLAGS
 
18379
    save_LIBS=$LIBS
 
18380
 
 
18381
    LIBS="$acx_cv_xmhtml_library $JPEG_LIB $PNG_LIB $Z_LIB $LIBS"
 
18382
    if test "$cross_compiling" = yes; then
 
18383
  acx_cv_xmhtml="no"
 
18384
 
 
18385
else
 
18386
  cat >conftest.$ac_ext <<_ACEOF
 
18387
/* confdefs.h.  */
 
18388
_ACEOF
 
18389
cat confdefs.h >>conftest.$ac_ext
 
18390
cat >>conftest.$ac_ext <<_ACEOF
 
18391
/* end confdefs.h.  */
 
18392
 
 
18393
#include <XmHTML/XmHTML.h>
 
18394
      int main(void) {
 
18395
        int vlib, vinc;
 
18396
        vlib = XmHTMLGetVersion();
 
18397
        vinc = XmHTMLVersion;
 
18398
        if (vinc < 1105) {
 
18399
          exit(1);
 
18400
        }
 
18401
        if (vinc != vlib) {
 
18402
          exit(2);
 
18403
        }
 
18404
        exit(0);
 
18405
      }
 
18406
 
 
18407
_ACEOF
 
18408
rm -f conftest$ac_exeext
 
18409
if { (ac_try="$ac_link"
 
18410
case "(($ac_try" in
 
18411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18412
  *) ac_try_echo=$ac_try;;
 
18413
esac
 
18414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18415
  (eval "$ac_link") 2>&5
 
18416
  ac_status=$?
 
18417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18418
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18419
  { (case "(($ac_try" in
 
18420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18421
  *) ac_try_echo=$ac_try;;
 
18422
esac
 
18423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18424
  (eval "$ac_try") 2>&5
 
18425
  ac_status=$?
 
18426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18427
  (exit $ac_status); }; }; then
 
18428
  acx_cv_xmhtml="yes"
 
18429
else
 
18430
  echo "$as_me: program exited with status $ac_status" >&5
 
18431
echo "$as_me: failed program was:" >&5
 
18432
sed 's/^/| /' conftest.$ac_ext >&5
 
18433
 
 
18434
( exit $ac_status )
 
18435
acx_cv_xmhtml="no"
 
18436
fi
 
18437
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18438
fi
 
18439
 
 
18440
 
 
18441
 
 
18442
    CFLAGS=$save_CFLAGS
 
18443
    CPPFLAGS=$save_CPPFLAGS
 
18444
    LDFLAGS=$save_LDFLAGS
 
18445
    LIBS=$save_LIBS
 
18446
 
 
18447
 
 
18448
fi
 
18449
{ echo "$as_me:$LINENO: result: $acx_cv_xmhtml" >&5
 
18450
echo "${ECHO_T}$acx_cv_xmhtml" >&6; }
 
18451
  if test "$acx_cv_xmhtml" = "yes"
 
18452
  then
 
18453
    XMHTML_LIB="$acx_cv_xmhtml_library"
 
18454
    cat >>confdefs.h <<\_ACEOF
 
18455
#define WITH_XMHTML 1
 
18456
_ACEOF
 
18457
 
 
18458
  else
 
18459
    XMHTML_LIB=
 
18460
    xmhtml=false
 
18461
  fi
 
18462
 
 
18463
    fi
 
18464
 
 
18465
    GUI_LIBS="$LIBHELP_LIB $XMHTML_LIB $XBAE_LIB $GUI_LIBS"
 
18466
 
 
18467
    CPPFLAGS="$xsave_CPPFLAGS"
 
18468
    LIBS="$xsave_LIBS"
 
18469
 
 
18470
  fi
 
18471
fi
 
18472
 
 
18473
SUBDIRS="cephes ${t1lib_dir} ${xbae_dir} src ${grconvert_dir} grace_np fonts templates doc examples auxiliary"
 
18474
 
 
18475
ac_config_files="$ac_config_files Make.conf:ac-tools/Make.conf.in"
 
18476
 
 
18477
cat >confcache <<\_ACEOF
 
18478
# This file is a shell script that caches the results of configure
 
18479
# tests run on this system so they can be shared between configure
 
18480
# scripts and configure runs, see configure's option --config-cache.
 
18481
# It is not useful on other systems.  If it contains results you don't
 
18482
# want to keep, you may remove or edit it.
 
18483
#
 
18484
# config.status only pays attention to the cache file if you give it
 
18485
# the --recheck option to rerun configure.
 
18486
#
 
18487
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18488
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18489
# following values.
 
18490
 
 
18491
_ACEOF
 
18492
 
 
18493
# The following way of writing the cache mishandles newlines in values,
 
18494
# but we know of no workaround that is simple, portable, and efficient.
 
18495
# So, we kill variables containing newlines.
 
18496
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18497
# and sets the high bit in the cache file unless we assign to the vars.
 
18498
(
 
18499
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
18500
    eval ac_val=\$$ac_var
 
18501
    case $ac_val in #(
 
18502
    *${as_nl}*)
 
18503
      case $ac_var in #(
 
18504
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
18505
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
18506
      esac
 
18507
      case $ac_var in #(
 
18508
      _ | IFS | as_nl) ;; #(
 
18509
      *) $as_unset $ac_var ;;
 
18510
      esac ;;
 
18511
    esac
 
18512
  done
 
18513
 
 
18514
  (set) 2>&1 |
 
18515
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18516
    *${as_nl}ac_space=\ *)
 
18517
      # `set' does not quote correctly, so add quotes (double-quote
 
18518
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18519
      sed -n \
 
18520
        "s/'/'\\\\''/g;
 
18521
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18522
      ;; #(
 
18523
    *)
 
18524
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18525
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18526
      ;;
 
18527
    esac |
 
18528
    sort
 
18529
) |
 
18530
  sed '
 
18531
     /^ac_cv_env_/b end
 
18532
     t clear
 
18533
     :clear
 
18534
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18535
     t end
 
18536
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18537
     :end' >>confcache
 
18538
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18539
  if test -w "$cache_file"; then
 
18540
    test "x$cache_file" != "x/dev/null" &&
 
18541
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
18542
echo "$as_me: updating cache $cache_file" >&6;}
 
18543
    cat confcache >$cache_file
 
18544
  else
 
18545
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
18546
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18547
  fi
 
18548
fi
 
18549
rm -f confcache
 
18550
 
 
18551
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18552
# Let make expand exec_prefix.
 
18553
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18554
 
 
18555
DEFS=-DHAVE_CONFIG_H
 
18556
 
 
18557
ac_libobjs=
 
18558
ac_ltlibobjs=
 
18559
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18560
  # 1. Remove the extension, and $U if already installed.
 
18561
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18562
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
18563
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18564
  #    will be set to the directory where LIBOBJS objects are built.
 
18565
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18566
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
18567
done
 
18568
LIBOBJS=$ac_libobjs
 
18569
 
 
18570
LTLIBOBJS=$ac_ltlibobjs
 
18571
 
 
18572
 
 
18573
 
 
18574
: ${CONFIG_STATUS=./config.status}
 
18575
ac_clean_files_save=$ac_clean_files
 
18576
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18577
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
18578
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18579
cat >$CONFIG_STATUS <<_ACEOF
 
18580
#! $SHELL
 
18581
# Generated by $as_me.
 
18582
# Run this file to recreate the current configuration.
 
18583
# Compiler output produced by configure, useful for debugging
 
18584
# configure, is in config.log if it exists.
 
18585
 
 
18586
debug=false
 
18587
ac_cs_recheck=false
 
18588
ac_cs_silent=false
 
18589
SHELL=\${CONFIG_SHELL-$SHELL}
 
18590
_ACEOF
 
18591
 
 
18592
cat >>$CONFIG_STATUS <<\_ACEOF
 
18593
## --------------------- ##
 
18594
## M4sh Initialization.  ##
 
18595
## --------------------- ##
 
18596
 
 
18597
# Be more Bourne compatible
 
18598
DUALCASE=1; export DUALCASE # for MKS sh
 
18599
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18600
  emulate sh
 
18601
  NULLCMD=:
 
18602
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18603
  # is contrary to our usage.  Disable this feature.
 
18604
  alias -g '${1+"$@"}'='"$@"'
 
18605
  setopt NO_GLOB_SUBST
 
18606
else
 
18607
  case `(set -o) 2>/dev/null` in
 
18608
  *posix*) set -o posix ;;
 
18609
esac
 
18610
 
 
18611
fi
 
18612
 
 
18613
 
 
18614
 
 
18615
 
 
18616
# PATH needs CR
 
18617
# Avoid depending upon Character Ranges.
 
18618
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18619
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18620
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18621
as_cr_digits='0123456789'
 
18622
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
18623
 
 
18624
# The user is always right.
 
18625
if test "${PATH_SEPARATOR+set}" != set; then
 
18626
  echo "#! /bin/sh" >conf$$.sh
 
18627
  echo  "exit 0"   >>conf$$.sh
 
18628
  chmod +x conf$$.sh
 
18629
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18630
    PATH_SEPARATOR=';'
 
18631
  else
 
18632
    PATH_SEPARATOR=:
 
18633
  fi
 
18634
  rm -f conf$$.sh
 
18635
fi
 
18636
 
 
18637
# Support unset when possible.
 
18638
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
18639
  as_unset=unset
 
18640
else
 
18641
  as_unset=false
 
18642
fi
 
18643
 
 
18644
 
 
18645
# IFS
 
18646
# We need space, tab and new line, in precisely that order.  Quoting is
 
18647
# there to prevent editors from complaining about space-tab.
 
18648
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
18649
# splitting by setting IFS to empty value.)
 
18650
as_nl='
 
18651
'
 
18652
IFS=" ""        $as_nl"
 
18653
 
 
18654
# Find who we are.  Look in the path if we contain no directory separator.
 
18655
case $0 in
 
18656
  *[\\/]* ) as_myself=$0 ;;
 
18657
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18658
for as_dir in $PATH
 
18659
do
 
18660
  IFS=$as_save_IFS
 
18661
  test -z "$as_dir" && as_dir=.
 
18662
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18663
done
 
18664
IFS=$as_save_IFS
 
18665
 
 
18666
     ;;
 
18667
esac
 
18668
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
18669
# in which case we are not to be found in the path.
 
18670
if test "x$as_myself" = x; then
 
18671
  as_myself=$0
 
18672
fi
 
18673
if test ! -f "$as_myself"; then
 
18674
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
18675
  { (exit 1); exit 1; }
 
18676
fi
 
18677
 
 
18678
# Work around bugs in pre-3.0 UWIN ksh.
 
18679
for as_var in ENV MAIL MAILPATH
 
18680
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18681
done
 
18682
PS1='$ '
 
18683
PS2='> '
 
18684
PS4='+ '
 
18685
 
 
18686
# NLS nuisances.
 
18687
for as_var in \
 
18688
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
18689
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
18690
  LC_TELEPHONE LC_TIME
 
18691
do
 
18692
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
18693
    eval $as_var=C; export $as_var
 
18694
  else
 
18695
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18696
  fi
 
18697
done
 
18698
 
 
18699
# Required to use basename.
 
18700
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18701
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18702
  as_expr=expr
 
18703
else
 
18704
  as_expr=false
 
18705
fi
 
18706
 
 
18707
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
18708
  as_basename=basename
 
18709
else
 
18710
  as_basename=false
 
18711
fi
 
18712
 
 
18713
 
 
18714
# Name of the executable.
 
18715
as_me=`$as_basename -- "$0" ||
 
18716
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
18717
         X"$0" : 'X\(//\)$' \| \
 
18718
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
18719
echo X/"$0" |
 
18720
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
18721
            s//\1/
 
18722
            q
 
18723
          }
 
18724
          /^X\/\(\/\/\)$/{
 
18725
            s//\1/
 
18726
            q
 
18727
          }
 
18728
          /^X\/\(\/\).*/{
 
18729
            s//\1/
 
18730
            q
 
18731
          }
 
18732
          s/.*/./; q'`
 
18733
 
 
18734
# CDPATH.
 
18735
$as_unset CDPATH
 
18736
 
 
18737
 
 
18738
 
 
18739
  as_lineno_1=$LINENO
 
18740
  as_lineno_2=$LINENO
 
18741
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
18742
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
18743
 
 
18744
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
18745
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
18746
  # line-number line after each line using $LINENO; the second 'sed'
 
18747
  # does the real work.  The second script uses 'N' to pair each
 
18748
  # line-number line with the line containing $LINENO, and appends
 
18749
  # trailing '-' during substitution so that $LINENO is not a special
 
18750
  # case at line end.
 
18751
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
18752
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
18753
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
18754
  sed -n '
 
18755
    p
 
18756
    /[$]LINENO/=
 
18757
  ' <$as_myself |
 
18758
    sed '
 
18759
      s/[$]LINENO.*/&-/
 
18760
      t lineno
 
18761
      b
 
18762
      :lineno
 
18763
      N
 
18764
      :loop
 
18765
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
18766
      t loop
 
18767
      s/-\n.*//
 
18768
    ' >$as_me.lineno &&
 
18769
  chmod +x "$as_me.lineno" ||
 
18770
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
18771
   { (exit 1); exit 1; }; }
 
18772
 
 
18773
  # Don't try to exec as it changes $[0], causing all sort of problems
 
18774
  # (the dirname of $[0] is not the place where we might find the
 
18775
  # original and so on.  Autoconf is especially sensitive to this).
 
18776
  . "./$as_me.lineno"
 
18777
  # Exit status is that of the last command.
 
18778
  exit
 
18779
}
 
18780
 
 
18781
 
 
18782
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
18783
  as_dirname=dirname
 
18784
else
 
18785
  as_dirname=false
 
18786
fi
 
18787
 
 
18788
ECHO_C= ECHO_N= ECHO_T=
 
18789
case `echo -n x` in
 
18790
-n*)
 
18791
  case `echo 'x\c'` in
 
18792
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
18793
  *)   ECHO_C='\c';;
 
18794
  esac;;
 
18795
*)
 
18796
  ECHO_N='-n';;
 
18797
esac
 
18798
 
 
18799
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18800
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18801
  as_expr=expr
 
18802
else
 
18803
  as_expr=false
 
18804
fi
 
18805
 
 
18806
rm -f conf$$ conf$$.exe conf$$.file
 
18807
if test -d conf$$.dir; then
 
18808
  rm -f conf$$.dir/conf$$.file
 
18809
else
 
18810
  rm -f conf$$.dir
 
18811
  mkdir conf$$.dir
 
18812
fi
 
18813
echo >conf$$.file
 
18814
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
18815
  as_ln_s='ln -s'
 
18816
  # ... but there are two gotchas:
 
18817
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
18818
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
18819
  # In both cases, we have to default to `cp -p'.
 
18820
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
18821
    as_ln_s='cp -p'
 
18822
elif ln conf$$.file conf$$ 2>/dev/null; then
 
18823
  as_ln_s=ln
 
18824
else
 
18825
  as_ln_s='cp -p'
 
18826
fi
 
18827
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
18828
rmdir conf$$.dir 2>/dev/null
 
18829
 
 
18830
if mkdir -p . 2>/dev/null; then
 
18831
  as_mkdir_p=:
 
18832
else
 
18833
  test -d ./-p && rmdir ./-p
 
18834
  as_mkdir_p=false
 
18835
fi
 
18836
 
 
18837
if test -x / >/dev/null 2>&1; then
 
18838
  as_test_x='test -x'
 
18839
else
 
18840
  if ls -dL / >/dev/null 2>&1; then
 
18841
    as_ls_L_option=L
 
18842
  else
 
18843
    as_ls_L_option=
 
18844
  fi
 
18845
  as_test_x='
 
18846
    eval sh -c '\''
 
18847
      if test -d "$1"; then
 
18848
        test -d "$1/.";
 
18849
      else
 
18850
        case $1 in
 
18851
        -*)set "./$1";;
 
18852
        esac;
 
18853
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
18854
        ???[sx]*):;;*)false;;esac;fi
 
18855
    '\'' sh
 
18856
  '
 
18857
fi
 
18858
as_executable_p=$as_test_x
 
18859
 
 
18860
# Sed expression to map a string onto a valid CPP name.
 
18861
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
18862
 
 
18863
# Sed expression to map a string onto a valid variable name.
 
18864
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
18865
 
 
18866
 
 
18867
exec 6>&1
 
18868
 
 
18869
# Save the log message, to keep $[0] and so on meaningful, and to
 
18870
# report actual input values of CONFIG_FILES etc. instead of their
 
18871
# values after options handling.
 
18872
ac_log="
 
18873
This file was extended by $as_me, which was
 
18874
generated by GNU Autoconf 2.61.  Invocation command line was
 
18875
 
 
18876
  CONFIG_FILES    = $CONFIG_FILES
 
18877
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
18878
  CONFIG_LINKS    = $CONFIG_LINKS
 
18879
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
18880
  $ $0 $@
 
18881
 
 
18882
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
18883
"
 
18884
 
 
18885
_ACEOF
 
18886
 
 
18887
cat >>$CONFIG_STATUS <<_ACEOF
 
18888
# Files that config.status was made for.
 
18889
config_files="$ac_config_files"
 
18890
config_headers="$ac_config_headers"
 
18891
 
 
18892
_ACEOF
 
18893
 
 
18894
cat >>$CONFIG_STATUS <<\_ACEOF
 
18895
ac_cs_usage="\
 
18896
\`$as_me' instantiates files from templates according to the
 
18897
current configuration.
 
18898
 
 
18899
Usage: $0 [OPTIONS] [FILE]...
 
18900
 
 
18901
  -h, --help       print this help, then exit
 
18902
  -V, --version    print version number and configuration settings, then exit
 
18903
  -q, --quiet      do not print progress messages
 
18904
  -d, --debug      don't remove temporary files
 
18905
      --recheck    update $as_me by reconfiguring in the same conditions
 
18906
  --file=FILE[:TEMPLATE]
 
18907
                   instantiate the configuration file FILE
 
18908
  --header=FILE[:TEMPLATE]
 
18909
                   instantiate the configuration header FILE
 
18910
 
 
18911
Configuration files:
 
18912
$config_files
 
18913
 
 
18914
Configuration headers:
 
18915
$config_headers
 
18916
 
 
18917
Report bugs to <bug-autoconf@gnu.org>."
 
18918
 
 
18919
_ACEOF
 
18920
cat >>$CONFIG_STATUS <<_ACEOF
 
18921
ac_cs_version="\\
 
18922
config.status
 
18923
configured by $0, generated by GNU Autoconf 2.61,
 
18924
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
18925
 
 
18926
Copyright (C) 2006 Free Software Foundation, Inc.
 
18927
This config.status script is free software; the Free Software Foundation
 
18928
gives unlimited permission to copy, distribute and modify it."
 
18929
 
 
18930
ac_pwd='$ac_pwd'
 
18931
srcdir='$srcdir'
 
18932
INSTALL='$INSTALL'
 
18933
_ACEOF
 
18934
 
 
18935
cat >>$CONFIG_STATUS <<\_ACEOF
 
18936
# If no file are specified by the user, then we need to provide default
 
18937
# value.  By we need to know if files were specified by the user.
 
18938
ac_need_defaults=:
 
18939
while test $# != 0
 
18940
do
 
18941
  case $1 in
 
18942
  --*=*)
 
18943
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
18944
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
18945
    ac_shift=:
 
18946
    ;;
 
18947
  *)
 
18948
    ac_option=$1
 
18949
    ac_optarg=$2
 
18950
    ac_shift=shift
 
18951
    ;;
 
18952
  esac
 
18953
 
 
18954
  case $ac_option in
 
18955
  # Handling of the options.
 
18956
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
18957
    ac_cs_recheck=: ;;
 
18958
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
18959
    echo "$ac_cs_version"; exit ;;
 
18960
  --debug | --debu | --deb | --de | --d | -d )
 
18961
    debug=: ;;
 
18962
  --file | --fil | --fi | --f )
 
18963
    $ac_shift
 
18964
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
18965
    ac_need_defaults=false;;
 
18966
  --header | --heade | --head | --hea )
 
18967
    $ac_shift
 
18968
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
18969
    ac_need_defaults=false;;
 
18970
  --he | --h)
 
18971
    # Conflict between --help and --header
 
18972
    { echo "$as_me: error: ambiguous option: $1
 
18973
Try \`$0 --help' for more information." >&2
 
18974
   { (exit 1); exit 1; }; };;
 
18975
  --help | --hel | -h )
 
18976
    echo "$ac_cs_usage"; exit ;;
 
18977
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
18978
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
18979
    ac_cs_silent=: ;;
 
18980
 
 
18981
  # This is an error.
 
18982
  -*) { echo "$as_me: error: unrecognized option: $1
 
18983
Try \`$0 --help' for more information." >&2
 
18984
   { (exit 1); exit 1; }; } ;;
 
18985
 
 
18986
  *) ac_config_targets="$ac_config_targets $1"
 
18987
     ac_need_defaults=false ;;
 
18988
 
 
18989
  esac
 
18990
  shift
 
18991
done
 
18992
 
 
18993
ac_configure_extra_args=
 
18994
 
 
18995
if $ac_cs_silent; then
 
18996
  exec 6>/dev/null
 
18997
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
18998
fi
 
18999
 
 
19000
_ACEOF
 
19001
cat >>$CONFIG_STATUS <<_ACEOF
 
19002
if \$ac_cs_recheck; then
 
19003
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
19004
  CONFIG_SHELL=$SHELL
 
19005
  export CONFIG_SHELL
 
19006
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19007
fi
 
19008
 
 
19009
_ACEOF
 
19010
cat >>$CONFIG_STATUS <<\_ACEOF
 
19011
exec 5>>config.log
 
19012
{
 
19013
  echo
 
19014
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19015
## Running $as_me. ##
 
19016
_ASBOX
 
19017
  echo "$ac_log"
 
19018
} >&5
 
19019
 
 
19020
_ACEOF
 
19021
cat >>$CONFIG_STATUS <<_ACEOF
 
19022
_ACEOF
 
19023
 
 
19024
cat >>$CONFIG_STATUS <<\_ACEOF
 
19025
 
 
19026
# Handling of arguments.
 
19027
for ac_config_target in $ac_config_targets
 
19028
do
 
19029
  case $ac_config_target in
 
19030
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:ac-tools/config.h.in" ;;
 
19031
    "Make.conf") CONFIG_FILES="$CONFIG_FILES Make.conf:ac-tools/Make.conf.in" ;;
 
19032
 
 
19033
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19034
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19035
   { (exit 1); exit 1; }; };;
 
19036
  esac
 
19037
done
 
19038
 
 
19039
 
 
19040
# If the user did not use the arguments to specify the items to instantiate,
 
19041
# then the envvar interface is used.  Set only those that are not.
 
19042
# We use the long form for the default assignment because of an extremely
 
19043
# bizarre bug on SunOS 4.1.3.
 
19044
if $ac_need_defaults; then
 
19045
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19046
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19047
fi
 
19048
 
 
19049
# Have a temporary directory for convenience.  Make it in the build tree
 
19050
# simply because there is no reason against having it here, and in addition,
 
19051
# creating and moving files from /tmp can sometimes cause problems.
 
19052
# Hook for its removal unless debugging.
 
19053
# Note that there is a small window in which the directory will not be cleaned:
 
19054
# after its creation but before its name has been assigned to `$tmp'.
 
19055
$debug ||
 
19056
{
 
19057
  tmp=
 
19058
  trap 'exit_status=$?
 
19059
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
19060
' 0
 
19061
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19062
}
 
19063
# Create a (secure) tmp directory for tmp files.
 
19064
 
 
19065
{
 
19066
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
19067
  test -n "$tmp" && test -d "$tmp"
 
19068
}  ||
 
19069
{
 
19070
  tmp=./conf$$-$RANDOM
 
19071
  (umask 077 && mkdir "$tmp")
 
19072
} ||
 
19073
{
 
19074
   echo "$me: cannot create a temporary directory in ." >&2
 
19075
   { (exit 1); exit 1; }
 
19076
}
 
19077
 
 
19078
#
 
19079
# Set up the sed scripts for CONFIG_FILES section.
 
19080
#
 
19081
 
 
19082
# No need to generate the scripts if there are no CONFIG_FILES.
 
19083
# This happens for instance when ./config.status config.h
 
19084
if test -n "$CONFIG_FILES"; then
 
19085
 
 
19086
_ACEOF
 
19087
 
 
19088
 
 
19089
 
 
19090
ac_delim='%!_!# '
 
19091
for ac_last_try in false false false false false :; do
 
19092
  cat >conf$$subs.sed <<_ACEOF
 
19093
SHELL!$SHELL$ac_delim
 
19094
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
19095
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
19096
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
19097
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
19098
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
19099
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
19100
exec_prefix!$exec_prefix$ac_delim
 
19101
prefix!$prefix$ac_delim
 
19102
program_transform_name!$program_transform_name$ac_delim
 
19103
bindir!$bindir$ac_delim
 
19104
sbindir!$sbindir$ac_delim
 
19105
libexecdir!$libexecdir$ac_delim
 
19106
datarootdir!$datarootdir$ac_delim
 
19107
datadir!$datadir$ac_delim
 
19108
sysconfdir!$sysconfdir$ac_delim
 
19109
sharedstatedir!$sharedstatedir$ac_delim
 
19110
localstatedir!$localstatedir$ac_delim
 
19111
includedir!$includedir$ac_delim
 
19112
oldincludedir!$oldincludedir$ac_delim
 
19113
docdir!$docdir$ac_delim
 
19114
infodir!$infodir$ac_delim
 
19115
htmldir!$htmldir$ac_delim
 
19116
dvidir!$dvidir$ac_delim
 
19117
pdfdir!$pdfdir$ac_delim
 
19118
psdir!$psdir$ac_delim
 
19119
libdir!$libdir$ac_delim
 
19120
localedir!$localedir$ac_delim
 
19121
mandir!$mandir$ac_delim
 
19122
DEFS!$DEFS$ac_delim
 
19123
ECHO_C!$ECHO_C$ac_delim
 
19124
ECHO_N!$ECHO_N$ac_delim
 
19125
ECHO_T!$ECHO_T$ac_delim
 
19126
LIBS!$LIBS$ac_delim
 
19127
build_alias!$build_alias$ac_delim
 
19128
host_alias!$host_alias$ac_delim
 
19129
target_alias!$target_alias$ac_delim
 
19130
EXEEXT!$EXEEXT$ac_delim
 
19131
OBJEXT!$OBJEXT$ac_delim
 
19132
BATEXT!$BATEXT$ac_delim
 
19133
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
19134
GRACE!$GRACE$ac_delim
 
19135
GRACE_HOME!$GRACE_HOME$ac_delim
 
19136
GUI_FLAGS!$GUI_FLAGS$ac_delim
 
19137
FC!$FC$ac_delim
 
19138
GUI_LIBS!$GUI_LIBS$ac_delim
 
19139
NOGUI_LIBS!$NOGUI_LIBS$ac_delim
 
19140
NETCDF_LIBS!$NETCDF_LIBS$ac_delim
 
19141
XDR_LIB!$XDR_LIB$ac_delim
 
19142
DL_LIB!$DL_LIB$ac_delim
 
19143
T1_LIB!$T1_LIB$ac_delim
 
19144
T1_INC!$T1_INC$ac_delim
 
19145
FFTW_LIB!$FFTW_LIB$ac_delim
 
19146
Z_LIB!$Z_LIB$ac_delim
 
19147
JPEG_LIB!$JPEG_LIB$ac_delim
 
19148
PNG_LIB!$PNG_LIB$ac_delim
 
19149
PDF_LIB!$PDF_LIB$ac_delim
 
19150
XBAE_INC!$XBAE_INC$ac_delim
 
19151
SUBDIRS!$SUBDIRS$ac_delim
 
19152
GRACE_EDITOR!$GRACE_EDITOR$ac_delim
 
19153
GRACE_HELPVIEWER!$GRACE_HELPVIEWER$ac_delim
 
19154
PRINT_CMD!$PRINT_CMD$ac_delim
 
19155
T1_AA_TYPE16!$T1_AA_TYPE16$ac_delim
 
19156
T1_AA_TYPE32!$T1_AA_TYPE32$ac_delim
 
19157
T1_AA_TYPE64!$T1_AA_TYPE64$ac_delim
 
19158
build!$build$ac_delim
 
19159
build_cpu!$build_cpu$ac_delim
 
19160
build_vendor!$build_vendor$ac_delim
 
19161
build_os!$build_os$ac_delim
 
19162
host!$host$ac_delim
 
19163
host_cpu!$host_cpu$ac_delim
 
19164
host_vendor!$host_vendor$ac_delim
 
19165
host_os!$host_os$ac_delim
 
19166
CC!$CC$ac_delim
 
19167
CFLAGS!$CFLAGS$ac_delim
 
19168
LDFLAGS!$LDFLAGS$ac_delim
 
19169
CPPFLAGS!$CPPFLAGS$ac_delim
 
19170
ac_ct_CC!$ac_ct_CC$ac_delim
 
19171
CPP!$CPP$ac_delim
 
19172
GREP!$GREP$ac_delim
 
19173
EGREP!$EGREP$ac_delim
 
19174
fc!$fc$ac_delim
 
19175
SET_MAKE!$SET_MAKE$ac_delim
 
19176
AR!$AR$ac_delim
 
19177
RANLIB!$RANLIB$ac_delim
 
19178
LN_S!$LN_S$ac_delim
 
19179
YACC!$YACC$ac_delim
 
19180
YFLAGS!$YFLAGS$ac_delim
 
19181
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
19182
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
19183
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
19184
LP_CMD!$LP_CMD$ac_delim
 
19185
LPR_CMD!$LPR_CMD$ac_delim
 
19186
ALLOCA!$ALLOCA$ac_delim
 
19187
XMKMF!$XMKMF$ac_delim
 
19188
X_CFLAGS!$X_CFLAGS$ac_delim
 
19189
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
19190
_ACEOF
 
19191
 
 
19192
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
19193
    break
 
19194
  elif $ac_last_try; then
 
19195
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19196
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19197
   { (exit 1); exit 1; }; }
 
19198
  else
 
19199
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19200
  fi
 
19201
done
 
19202
 
 
19203
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19204
if test -n "$ac_eof"; then
 
19205
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19206
  ac_eof=`expr $ac_eof + 1`
 
19207
fi
 
19208
 
 
19209
cat >>$CONFIG_STATUS <<_ACEOF
 
19210
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
19211
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19212
_ACEOF
 
19213
sed '
 
19214
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19215
s/^/s,@/; s/!/@,|#_!!_#|/
 
19216
:n
 
19217
t n
 
19218
s/'"$ac_delim"'$/,g/; t
 
19219
s/$/\\/; p
 
19220
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19221
' >>$CONFIG_STATUS <conf$$subs.sed
 
19222
rm -f conf$$subs.sed
 
19223
cat >>$CONFIG_STATUS <<_ACEOF
 
19224
CEOF$ac_eof
 
19225
_ACEOF
 
19226
 
 
19227
 
 
19228
ac_delim='%!_!# '
 
19229
for ac_last_try in false false false false false :; do
 
19230
  cat >conf$$subs.sed <<_ACEOF
 
19231
X_LIBS!$X_LIBS$ac_delim
 
19232
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
19233
LIBOBJS!$LIBOBJS$ac_delim
 
19234
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
19235
_ACEOF
 
19236
 
 
19237
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
 
19238
    break
 
19239
  elif $ac_last_try; then
 
19240
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19241
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19242
   { (exit 1); exit 1; }; }
 
19243
  else
 
19244
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19245
  fi
 
19246
done
 
19247
 
 
19248
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19249
if test -n "$ac_eof"; then
 
19250
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19251
  ac_eof=`expr $ac_eof + 1`
 
19252
fi
 
19253
 
 
19254
cat >>$CONFIG_STATUS <<_ACEOF
 
19255
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
19256
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
19257
_ACEOF
 
19258
sed '
 
19259
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19260
s/^/s,@/; s/!/@,|#_!!_#|/
 
19261
:n
 
19262
t n
 
19263
s/'"$ac_delim"'$/,g/; t
 
19264
s/$/\\/; p
 
19265
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19266
' >>$CONFIG_STATUS <conf$$subs.sed
 
19267
rm -f conf$$subs.sed
 
19268
cat >>$CONFIG_STATUS <<_ACEOF
 
19269
:end
 
19270
s/|#_!!_#|//g
 
19271
CEOF$ac_eof
 
19272
_ACEOF
 
19273
 
 
19274
 
 
19275
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19276
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19277
# trailing colons and then remove the whole line if VPATH becomes empty
 
19278
# (actually we leave an empty line to preserve line numbers).
 
19279
if test "x$srcdir" = x.; then
 
19280
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19281
s/:*\$(srcdir):*/:/
 
19282
s/:*\${srcdir}:*/:/
 
19283
s/:*@srcdir@:*/:/
 
19284
s/^\([^=]*=[     ]*\):*/\1/
 
19285
s/:*$//
 
19286
s/^[^=]*=[       ]*$//
 
19287
}'
 
19288
fi
 
19289
 
 
19290
cat >>$CONFIG_STATUS <<\_ACEOF
 
19291
fi # test -n "$CONFIG_FILES"
 
19292
 
 
19293
 
 
19294
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
 
19295
do
 
19296
  case $ac_tag in
 
19297
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
19298
  esac
 
19299
  case $ac_mode$ac_tag in
 
19300
  :[FHL]*:*);;
 
19301
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
19302
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
19303
   { (exit 1); exit 1; }; };;
 
19304
  :[FH]-) ac_tag=-:-;;
 
19305
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
19306
  esac
 
19307
  ac_save_IFS=$IFS
 
19308
  IFS=:
 
19309
  set x $ac_tag
 
19310
  IFS=$ac_save_IFS
 
19311
  shift
 
19312
  ac_file=$1
 
19313
  shift
 
19314
 
 
19315
  case $ac_mode in
 
19316
  :L) ac_source=$1;;
 
19317
  :[FH])
 
19318
    ac_file_inputs=
 
19319
    for ac_f
 
19320
    do
 
19321
      case $ac_f in
 
19322
      -) ac_f="$tmp/stdin";;
 
19323
      *) # Look for the file first in the build tree, then in the source tree
 
19324
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
19325
         # because $ac_f cannot contain `:'.
 
19326
         test -f "$ac_f" ||
 
19327
           case $ac_f in
 
19328
           [\\/$]*) false;;
 
19329
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
19330
           esac ||
 
19331
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
19332
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
19333
   { (exit 1); exit 1; }; };;
 
19334
      esac
 
19335
      ac_file_inputs="$ac_file_inputs $ac_f"
 
19336
    done
 
19337
 
 
19338
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19339
    # use $as_me), people would be surprised to read:
 
19340
    #    /* config.h.  Generated by config.status.  */
 
19341
    configure_input="Generated from "`IFS=:
 
19342
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
19343
    if test x"$ac_file" != x-; then
 
19344
      configure_input="$ac_file.  $configure_input"
 
19345
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19346
echo "$as_me: creating $ac_file" >&6;}
 
19347
    fi
 
19348
 
 
19349
    case $ac_tag in
 
19350
    *:-:* | *:-) cat >"$tmp/stdin";;
 
19351
    esac
 
19352
    ;;
 
19353
  esac
 
19354
 
 
19355
  ac_dir=`$as_dirname -- "$ac_file" ||
 
19356
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19357
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19358
         X"$ac_file" : 'X\(//\)$' \| \
 
19359
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
19360
echo X"$ac_file" |
 
19361
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19362
            s//\1/
 
19363
            q
 
19364
          }
 
19365
          /^X\(\/\/\)[^/].*/{
 
19366
            s//\1/
 
19367
            q
 
19368
          }
 
19369
          /^X\(\/\/\)$/{
 
19370
            s//\1/
 
19371
            q
 
19372
          }
 
19373
          /^X\(\/\).*/{
 
19374
            s//\1/
 
19375
            q
 
19376
          }
 
19377
          s/.*/./; q'`
 
19378
  { as_dir="$ac_dir"
 
19379
  case $as_dir in #(
 
19380
  -*) as_dir=./$as_dir;;
 
19381
  esac
 
19382
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
19383
    as_dirs=
 
19384
    while :; do
 
19385
      case $as_dir in #(
 
19386
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
19387
      *) as_qdir=$as_dir;;
 
19388
      esac
 
19389
      as_dirs="'$as_qdir' $as_dirs"
 
19390
      as_dir=`$as_dirname -- "$as_dir" ||
 
19391
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19392
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19393
         X"$as_dir" : 'X\(//\)$' \| \
 
19394
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19395
echo X"$as_dir" |
 
19396
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19397
            s//\1/
 
19398
            q
 
19399
          }
 
19400
          /^X\(\/\/\)[^/].*/{
 
19401
            s//\1/
 
19402
            q
 
19403
          }
 
19404
          /^X\(\/\/\)$/{
 
19405
            s//\1/
 
19406
            q
 
19407
          }
 
19408
          /^X\(\/\).*/{
 
19409
            s//\1/
 
19410
            q
 
19411
          }
 
19412
          s/.*/./; q'`
 
19413
      test -d "$as_dir" && break
 
19414
    done
 
19415
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19416
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
19417
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
19418
   { (exit 1); exit 1; }; }; }
 
19419
  ac_builddir=.
 
19420
 
 
19421
case "$ac_dir" in
 
19422
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19423
*)
 
19424
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19425
  # A ".." for each directory in $ac_dir_suffix.
 
19426
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
19427
  case $ac_top_builddir_sub in
 
19428
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
19429
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
19430
  esac ;;
 
19431
esac
 
19432
ac_abs_top_builddir=$ac_pwd
 
19433
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
19434
# for backward compatibility:
 
19435
ac_top_builddir=$ac_top_build_prefix
 
19436
 
 
19437
case $srcdir in
 
19438
  .)  # We are building in place.
 
19439
    ac_srcdir=.
 
19440
    ac_top_srcdir=$ac_top_builddir_sub
 
19441
    ac_abs_top_srcdir=$ac_pwd ;;
 
19442
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
19443
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19444
    ac_top_srcdir=$srcdir
 
19445
    ac_abs_top_srcdir=$srcdir ;;
 
19446
  *) # Relative name.
 
19447
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
19448
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
19449
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
19450
esac
 
19451
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
19452
 
 
19453
 
 
19454
  case $ac_mode in
 
19455
  :F)
 
19456
  #
 
19457
  # CONFIG_FILE
 
19458
  #
 
19459
 
 
19460
  case $INSTALL in
 
19461
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19462
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
19463
  esac
 
19464
_ACEOF
 
19465
 
 
19466
cat >>$CONFIG_STATUS <<\_ACEOF
 
19467
# If the template does not know about datarootdir, expand it.
 
19468
# FIXME: This hack should be removed a few years after 2.60.
 
19469
ac_datarootdir_hack=; ac_datarootdir_seen=
 
19470
 
 
19471
case `sed -n '/datarootdir/ {
 
19472
  p
 
19473
  q
 
19474
}
 
19475
/@datadir@/p
 
19476
/@docdir@/p
 
19477
/@infodir@/p
 
19478
/@localedir@/p
 
19479
/@mandir@/p
 
19480
' $ac_file_inputs` in
 
19481
*datarootdir*) ac_datarootdir_seen=yes;;
 
19482
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
19483
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
19484
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
19485
_ACEOF
 
19486
cat >>$CONFIG_STATUS <<_ACEOF
 
19487
  ac_datarootdir_hack='
 
19488
  s&@datadir@&$datadir&g
 
19489
  s&@docdir@&$docdir&g
 
19490
  s&@infodir@&$infodir&g
 
19491
  s&@localedir@&$localedir&g
 
19492
  s&@mandir@&$mandir&g
 
19493
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
19494
esac
 
19495
_ACEOF
 
19496
 
 
19497
# Neutralize VPATH when `$srcdir' = `.'.
 
19498
# Shell code in configure.ac might set extrasub.
 
19499
# FIXME: do we really want to maintain this feature?
 
19500
cat >>$CONFIG_STATUS <<_ACEOF
 
19501
  sed "$ac_vpsub
 
19502
$extrasub
 
19503
_ACEOF
 
19504
cat >>$CONFIG_STATUS <<\_ACEOF
 
19505
:t
 
19506
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19507
s&@configure_input@&$configure_input&;t t
 
19508
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
19509
s&@srcdir@&$ac_srcdir&;t t
 
19510
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
19511
s&@top_srcdir@&$ac_top_srcdir&;t t
 
19512
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
19513
s&@builddir@&$ac_builddir&;t t
 
19514
s&@abs_builddir@&$ac_abs_builddir&;t t
 
19515
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
19516
s&@INSTALL@&$ac_INSTALL&;t t
 
19517
$ac_datarootdir_hack
 
19518
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
19519
 
 
19520
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
19521
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
19522
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
19523
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19524
which seems to be undefined.  Please make sure it is defined." >&5
 
19525
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
19526
which seems to be undefined.  Please make sure it is defined." >&2;}
 
19527
 
 
19528
  rm -f "$tmp/stdin"
 
19529
  case $ac_file in
 
19530
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
19531
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
19532
  esac
 
19533
 ;;
 
19534
  :H)
 
19535
  #
 
19536
  # CONFIG_HEADER
 
19537
  #
 
19538
_ACEOF
 
19539
 
 
19540
# Transform confdefs.h into a sed script `conftest.defines', that
 
19541
# substitutes the proper values into config.h.in to produce config.h.
 
19542
rm -f conftest.defines conftest.tail
 
19543
# First, append a space to every undef/define line, to ease matching.
 
19544
echo 's/$/ /' >conftest.defines
 
19545
# Then, protect against being on the right side of a sed subst, or in
 
19546
# an unquoted here document, in config.status.  If some macros were
 
19547
# called several times there might be several #defines for the same
 
19548
# symbol, which is useless.  But do not sort them, since the last
 
19549
# AC_DEFINE must be honored.
 
19550
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19551
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
19552
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
19553
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
19554
# just an empty string.
 
19555
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
19556
ac_dB='\\)[      (].*,\\1define\\2'
 
19557
ac_dC=' '
 
19558
ac_dD=' ,'
 
19559
 
 
19560
uniq confdefs.h |
 
19561
  sed -n '
 
19562
        t rset
 
19563
        :rset
 
19564
        s/^[     ]*#[    ]*define[       ][      ]*//
 
19565
        t ok
 
19566
        d
 
19567
        :ok
 
19568
        s/[\\&,]/\\&/g
 
19569
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
19570
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
19571
  ' >>conftest.defines
 
19572
 
 
19573
# Remove the space that was appended to ease matching.
 
19574
# Then replace #undef with comments.  This is necessary, for
 
19575
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
19576
# on some systems where configure will not decide to define it.
 
19577
# (The regexp can be short, since the line contains either #define or #undef.)
 
19578
echo 's/ $//
 
19579
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
19580
 
 
19581
# Break up conftest.defines:
 
19582
ac_max_sed_lines=50
 
19583
 
 
19584
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
19585
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
19586
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
19587
# et cetera.
 
19588
ac_in='$ac_file_inputs'
 
19589
ac_out='"$tmp/out1"'
 
19590
ac_nxt='"$tmp/out2"'
 
19591
 
 
19592
while :
 
19593
do
 
19594
  # Write a here document:
 
19595
    cat >>$CONFIG_STATUS <<_ACEOF
 
19596
    # First, check the format of the line:
 
19597
    cat >"\$tmp/defines.sed" <<\\CEOF
 
19598
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
19599
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
19600
b
 
19601
:def
 
19602
_ACEOF
 
19603
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
19604
  echo 'CEOF
 
19605
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
19606
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
19607
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
19608
  grep . conftest.tail >/dev/null || break
 
19609
  rm -f conftest.defines
 
19610
  mv conftest.tail conftest.defines
 
19611
done
 
19612
rm -f conftest.defines conftest.tail
 
19613
 
 
19614
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
19615
cat >>$CONFIG_STATUS <<\_ACEOF
 
19616
  if test x"$ac_file" != x-; then
 
19617
    echo "/* $configure_input  */" >"$tmp/config.h"
 
19618
    cat "$ac_result" >>"$tmp/config.h"
 
19619
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
19620
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
19621
echo "$as_me: $ac_file is unchanged" >&6;}
 
19622
    else
 
19623
      rm -f $ac_file
 
19624
      mv "$tmp/config.h" $ac_file
 
19625
    fi
 
19626
  else
 
19627
    echo "/* $configure_input  */"
 
19628
    cat "$ac_result"
 
19629
  fi
 
19630
  rm -f "$tmp/out12"
 
19631
 ;;
 
19632
 
 
19633
 
 
19634
  esac
 
19635
 
 
19636
done # for ac_tag
 
19637
 
 
19638
 
 
19639
{ (exit 0); exit 0; }
 
19640
_ACEOF
 
19641
chmod +x $CONFIG_STATUS
 
19642
ac_clean_files=$ac_clean_files_save
 
19643
 
 
19644
 
 
19645
# configure is writing to config.log, and then calls config.status.
 
19646
# config.status does its own redirection, appending to config.log.
 
19647
# Unfortunately, on DOS this fails, as config.log is still kept open
 
19648
# by configure, so config.status won't be able to write to it; its
 
19649
# output is simply discarded.  So we exec the FD to /dev/null,
 
19650
# effectively closing config.log, so it can be properly (re)opened and
 
19651
# appended to by config.status.  When coming back to configure, we
 
19652
# need to make the FD available again.
 
19653
if test "$no_create" != yes; then
 
19654
  ac_cs_success=:
 
19655
  ac_config_status_args=
 
19656
  test "$silent" = yes &&
 
19657
    ac_config_status_args="$ac_config_status_args --quiet"
 
19658
  exec 5>/dev/null
 
19659
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
19660
  exec 5>>config.log
 
19661
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
19662
  # would make configure fail if this is the last instruction.
 
19663
  $ac_cs_success || { (exit 1); exit 1; }
 
19664
fi
 
19665