~ubuntu-branches/ubuntu/quantal/xshisen/quantal

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2011-11-24 21:40:40 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20111124214040-fv65k9t6s2co4i8k
Tags: 1:1.51-3.2
* Non-maintainer upload.
* Fix "ftbfs with gcc-4.5 and gcc-4.6": new patch 40_format_security.patch:
  Fix format string use. Based on Daniel T Chen's patch in the BTS.
  (Closes: #565064)

Show diffs side-by-side

added added

removed removed

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