~ubuntu-branches/ubuntu/lucid/bind9/lucid

« back to all changes in this revision

Viewing changes to contrib/zkt/configure

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2010-03-01 20:51:23 UTC
  • mfrom: (1.6.4 upstream) (10.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20100301205123-kslpwaipx72vq1o1
Tags: 1:9.7.0.dfsg-1~build1
upload of -1 to lucid, LP#530107

Show diffs side-by-side

added added

removed removed

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