~ubuntu-branches/ubuntu/natty/hello-debhelper/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-02-14 18:41:54 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100214184154-ofmlsf2ddrgb1etg
Tags: 2.5-1
* New upstream release.
* Added homepage field to control file.
* Added cross-compilation support, using the new dh_auto_* commands
  from debhelper 7. Thanks a lot to Colin Watson. Closes: #550328.
* Standards-Version: 3.8.4 (no special changes for this).

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.63 for GNU Hello 2.4.
 
3
# Generated by GNU Autoconf 2.65 for GNU Hello 2.5.
4
4
#
5
5
# Report bugs to <bug-hello@gnu.org>.
6
6
#
 
7
#
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
9
13
# This configure script is free software; the Free Software Foundation
10
14
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
14
18
 
15
19
# Be more Bourne compatible
16
20
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
22
  emulate sh
19
23
  NULLCMD=:
20
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22
26
  alias -g '${1+"$@"}'='"$@"'
23
27
  setopt NO_GLOB_SUBST
24
28
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
27
34
esac
28
 
 
29
35
fi
30
36
 
31
37
 
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
38
as_nl='
43
39
'
44
40
export as_nl
46
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
52
  as_echo='printf %s\n'
51
53
  as_echo_n='printf %s'
52
54
else
57
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
60
    as_echo_n_body='eval
59
61
      arg=$1;
60
 
      case $arg in
 
62
      case $arg in #(
61
63
      *"$as_nl"*)
62
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
63
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
80
82
  }
81
83
fi
82
84
 
83
 
# Support unset when possible.
84
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85
 
  as_unset=unset
86
 
else
87
 
  as_unset=false
88
 
fi
89
 
 
90
85
 
91
86
# IFS
92
87
# We need space, tab and new line, in precisely that order.  Quoting is
96
91
IFS=" ""        $as_nl"
97
92
 
98
93
# Find who we are.  Look in the path if we contain no directory separator.
99
 
case $0 in
 
94
case $0 in #((
100
95
  *[\\/]* ) as_myself=$0 ;;
101
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102
97
for as_dir in $PATH
103
98
do
104
99
  IFS=$as_save_IFS
105
100
  test -z "$as_dir" && as_dir=.
106
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
 
done
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
108
103
IFS=$as_save_IFS
109
104
 
110
105
     ;;
116
111
fi
117
112
if test ! -f "$as_myself"; then
118
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
 
  { (exit 1); exit 1; }
 
114
  exit 1
120
115
fi
121
116
 
122
 
# Work around bugs in pre-3.0 UWIN ksh.
123
 
for as_var in ENV MAIL MAILPATH
124
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
124
done
126
125
PS1='$ '
127
126
PS2='> '
133
132
LANGUAGE=C
134
133
export LANGUAGE
135
134
 
136
 
# Required to use basename.
137
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139
 
  as_expr=expr
140
 
else
141
 
  as_expr=false
142
 
fi
143
 
 
144
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145
 
  as_basename=basename
146
 
else
147
 
  as_basename=false
148
 
fi
149
 
 
150
 
 
151
 
# Name of the executable.
152
 
as_me=`$as_basename -- "$0" ||
153
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
 
         X"$0" : 'X\(//\)$' \| \
155
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156
 
$as_echo X/"$0" |
157
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
158
 
            s//\1/
159
 
            q
160
 
          }
161
 
          /^X\/\(\/\/\)$/{
162
 
            s//\1/
163
 
            q
164
 
          }
165
 
          /^X\/\(\/\).*/{
166
 
            s//\1/
167
 
            q
168
 
          }
169
 
          s/.*/./; q'`
170
 
 
171
135
# CDPATH.
172
 
$as_unset CDPATH
173
 
 
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
174
137
 
175
138
if test "x$CONFIG_SHELL" = x; then
176
 
  if (eval ":") 2>/dev/null; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
177
178
  as_have_required=yes
178
179
else
179
180
  as_have_required=no
180
181
fi
181
 
 
182
 
  if test $as_have_required = yes &&     (eval ":
183
 
(as_func_return () {
184
 
  (exit \$1)
185
 
}
186
 
as_func_success () {
187
 
  as_func_return 0
188
 
}
189
 
as_func_failure () {
190
 
  as_func_return 1
191
 
}
192
 
as_func_ret_success () {
193
 
  return 0
194
 
}
195
 
as_func_ret_failure () {
196
 
  return 1
197
 
}
198
 
 
199
 
exitcode=0
200
 
if as_func_success; then
201
 
  :
202
 
else
203
 
  exitcode=1
204
 
  echo as_func_success failed.
205
 
fi
206
 
 
207
 
if as_func_failure; then
208
 
  exitcode=1
209
 
  echo as_func_failure succeeded.
210
 
fi
211
 
 
212
 
if as_func_ret_success; then
213
 
  :
214
 
else
215
 
  exitcode=1
216
 
  echo as_func_ret_success failed.
217
 
fi
218
 
 
219
 
if as_func_ret_failure; then
220
 
  exitcode=1
221
 
  echo as_func_ret_failure succeeded.
222
 
fi
223
 
 
224
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225
 
  :
226
 
else
227
 
  exitcode=1
228
 
  echo positional parameters were not saved.
229
 
fi
230
 
 
231
 
test \$exitcode = 0) || { (exit 1); exit 1; }
232
 
 
233
 
(
234
 
  as_lineno_1=\$LINENO
235
 
  as_lineno_2=\$LINENO
236
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
 
") 2> /dev/null; then
239
 
  :
240
 
else
241
 
  as_candidate_shells=
242
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
243
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
188
do
245
189
  IFS=$as_save_IFS
246
190
  test -z "$as_dir" && as_dir=.
247
 
  case $as_dir in
 
191
  as_found=:
 
192
  case $as_dir in #(
248
193
         /*)
249
194
           for as_base in sh bash ksh sh5; do
250
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
251
204
           done;;
252
205
       esac
 
206
  as_found=false
253
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
254
212
IFS=$as_save_IFS
255
213
 
256
214
 
257
 
      for as_shell in $as_candidate_shells $SHELL; do
258
 
         # Try only shells that exist, to save several forks.
259
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
261
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
 
  emulate sh
263
 
  NULLCMD=:
264
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
 
  # is contrary to our usage.  Disable this feature.
266
 
  alias -g '${1+"$@"}'='"$@"'
267
 
  setopt NO_GLOB_SUBST
268
 
else
269
 
  case `(set -o) 2>/dev/null` in
270
 
  *posix*) set -o posix ;;
271
 
esac
272
 
 
273
 
fi
274
 
 
275
 
 
276
 
:
277
 
_ASEOF
278
 
}; then
279
 
  CONFIG_SHELL=$as_shell
280
 
               as_have_required=yes
281
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
282
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
 
  emulate sh
284
 
  NULLCMD=:
285
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
 
  # is contrary to our usage.  Disable this feature.
287
 
  alias -g '${1+"$@"}'='"$@"'
288
 
  setopt NO_GLOB_SUBST
289
 
else
290
 
  case `(set -o) 2>/dev/null` in
291
 
  *posix*) set -o posix ;;
292
 
esac
293
 
 
294
 
fi
295
 
 
296
 
 
297
 
:
298
 
(as_func_return () {
299
 
  (exit $1)
300
 
}
301
 
as_func_success () {
302
 
  as_func_return 0
303
 
}
304
 
as_func_failure () {
305
 
  as_func_return 1
306
 
}
307
 
as_func_ret_success () {
308
 
  return 0
309
 
}
310
 
as_func_ret_failure () {
311
 
  return 1
312
 
}
313
 
 
314
 
exitcode=0
315
 
if as_func_success; then
316
 
  :
317
 
else
318
 
  exitcode=1
319
 
  echo as_func_success failed.
320
 
fi
321
 
 
322
 
if as_func_failure; then
323
 
  exitcode=1
324
 
  echo as_func_failure succeeded.
325
 
fi
326
 
 
327
 
if as_func_ret_success; then
328
 
  :
329
 
else
330
 
  exitcode=1
331
 
  echo as_func_ret_success failed.
332
 
fi
333
 
 
334
 
if as_func_ret_failure; then
335
 
  exitcode=1
336
 
  echo as_func_ret_failure succeeded.
337
 
fi
338
 
 
339
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
340
 
  :
341
 
else
342
 
  exitcode=1
343
 
  echo positional parameters were not saved.
344
 
fi
345
 
 
346
 
test $exitcode = 0) || { (exit 1); exit 1; }
347
 
 
348
 
(
349
 
  as_lineno_1=$LINENO
350
 
  as_lineno_2=$LINENO
351
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
352
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
 
 
354
 
_ASEOF
355
 
}; then
356
 
  break
357
 
fi
358
 
 
359
 
fi
360
 
 
361
 
      done
362
 
 
363
 
      if test "x$CONFIG_SHELL" != x; then
364
 
  for as_var in BASH_ENV ENV
365
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
 
        done
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
222
        export CONFIG_SHELL
368
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369
224
fi
370
225
 
371
 
 
372
 
    if test $as_have_required = no; then
373
 
  echo This script requires a shell more modern than all the
374
 
      echo shells that I found on your system.  Please install a
375
 
      echo modern shell, or manually run the script under such a
376
 
      echo shell if you do have one.
377
 
      { (exit 1); exit 1; }
378
 
fi
379
 
 
380
 
 
381
 
fi
382
 
 
383
 
fi
384
 
 
385
 
 
386
 
 
387
 
(eval "as_func_return () {
388
 
  (exit \$1)
389
 
}
390
 
as_func_success () {
391
 
  as_func_return 0
392
 
}
393
 
as_func_failure () {
394
 
  as_func_return 1
395
 
}
396
 
as_func_ret_success () {
397
 
  return 0
398
 
}
399
 
as_func_ret_failure () {
400
 
  return 1
401
 
}
402
 
 
403
 
exitcode=0
404
 
if as_func_success; then
405
 
  :
406
 
else
407
 
  exitcode=1
408
 
  echo as_func_success failed.
409
 
fi
410
 
 
411
 
if as_func_failure; then
412
 
  exitcode=1
413
 
  echo as_func_failure succeeded.
414
 
fi
415
 
 
416
 
if as_func_ret_success; then
417
 
  :
418
 
else
419
 
  exitcode=1
420
 
  echo as_func_ret_success failed.
421
 
fi
422
 
 
423
 
if as_func_ret_failure; then
424
 
  exitcode=1
425
 
  echo as_func_ret_failure succeeded.
426
 
fi
427
 
 
428
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429
 
  :
430
 
else
431
 
  exitcode=1
432
 
  echo positional parameters were not saved.
433
 
fi
434
 
 
435
 
test \$exitcode = 0") || {
436
 
  echo No shell found that supports shell functions.
437
 
  echo Please tell bug-autoconf@gnu.org about your system,
438
 
  echo including any error possibly output before this message.
439
 
  echo This can help us improve future autoconf versions.
440
 
  echo Configuration will now proceed without shell functions.
441
 
}
442
 
 
443
 
 
444
 
 
445
 
  as_lineno_1=$LINENO
446
 
  as_lineno_2=$LINENO
447
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
448
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
 
 
450
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
452
 
  # line-number line after each line using $LINENO; the second 'sed'
453
 
  # does the real work.  The second script uses 'N' to pair each
454
 
  # line-number line with the line containing $LINENO, and appends
455
 
  # trailing '-' during substitution so that $LINENO is not a special
456
 
  # case at line end.
457
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-hello@gnu.org
 
234
$0: about your system, including any error possibly output
 
235
$0: before this message. Then install a modern shell, or
 
236
$0: manually run the script under such a shell if you do
 
237
$0: have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
460
429
  sed -n '
461
430
    p
462
431
    /[$]LINENO/=
473
442
      s/-\n.*//
474
443
    ' >$as_me.lineno &&
475
444
  chmod +x "$as_me.lineno" ||
476
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477
 
   { (exit 1); exit 1; }; }
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
478
446
 
479
447
  # Don't try to exec as it changes $[0], causing all sort of problems
480
448
  # (the dirname of $[0] is not the place where we might find the
484
452
  exit
485
453
}
486
454
 
487
 
 
488
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489
 
  as_dirname=dirname
490
 
else
491
 
  as_dirname=false
492
 
fi
493
 
 
494
455
ECHO_C= ECHO_N= ECHO_T=
495
 
case `echo -n x` in
 
456
case `echo -n x` in #(((((
496
457
-n*)
497
 
  case `echo 'x\c'` in
 
458
  case `echo 'xy\c'` in
498
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499
 
  *)   ECHO_C='\c';;
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
500
463
  esac;;
501
464
*)
502
465
  ECHO_N='-n';;
503
466
esac
504
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506
 
  as_expr=expr
507
 
else
508
 
  as_expr=false
509
 
fi
510
467
 
511
468
rm -f conf$$ conf$$.exe conf$$.file
512
469
if test -d conf$$.dir; then
536
493
rmdir conf$$.dir 2>/dev/null
537
494
 
538
495
if mkdir -p . 2>/dev/null; then
539
 
  as_mkdir_p=:
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
540
497
else
541
498
  test -d ./-p && rmdir ./-p
542
499
  as_mkdir_p=false
555
512
      if test -d "$1"; then
556
513
        test -d "$1/.";
557
514
      else
558
 
        case $1 in
 
515
        case $1 in #(
559
516
        -*)set "./$1";;
560
517
        esac;
561
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
562
519
        ???[sx]*):;;*)false;;esac;fi
563
520
    '\'' sh
564
521
  '
572
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
530
 
574
531
 
575
 
 
576
 
exec 7<&0 </dev/null 6>&1
 
532
test -n "$DJDIR" || exec 7<&0 </dev/null
 
533
exec 6>&1
577
534
 
578
535
# Name of the host.
579
536
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
591
548
subdirs=
592
549
MFLAGS=
593
550
MAKEFLAGS=
594
 
SHELL=${CONFIG_SHELL-/bin/sh}
595
551
 
596
552
# Identity of this package.
597
553
PACKAGE_NAME='GNU Hello'
598
554
PACKAGE_TARNAME='hello'
599
 
PACKAGE_VERSION='2.4'
600
 
PACKAGE_STRING='GNU Hello 2.4'
 
555
PACKAGE_VERSION='2.5'
 
556
PACKAGE_STRING='GNU Hello 2.5'
601
557
PACKAGE_BUGREPORT='bug-hello@gnu.org'
 
558
PACKAGE_URL='http://www.gnu.org/software/hello/'
602
559
 
603
560
ac_unique_file="src/hello.c"
604
561
# Factoring default headers for most tests.
639
596
 
640
597
ac_header_list=
641
598
ac_func_list=
 
599
gl_getopt_required=POSIX
 
600
gl_getopt_required=POSIX
642
601
gt_needs=
643
602
ac_subst_vars='gltests_LTLIBOBJS
644
603
gltests_LIBOBJS
645
604
gl_LTLIBOBJS
646
605
gl_LIBOBJS
 
606
am__EXEEXT_FALSE
 
607
am__EXEEXT_TRUE
647
608
LTLIBOBJS
648
609
LIBOBJS
649
610
POSUB
667
628
REPLACE_ISWCNTRL
668
629
WCTYPE_H
669
630
HAVE_WCTYPE_H
 
631
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
670
632
NEXT_WCTYPE_H
671
633
HAVE_ISWCNTRL
 
634
HAVE_WINT_T
 
635
HAVE_WCHAR_H
 
636
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
672
637
NEXT_WCHAR_H
673
 
HAVE_WCHAR_H
674
 
HAVE_WINT_T
675
 
WCHAR_H
676
 
REPLACE_WCWIDTH
677
 
HAVE_DECL_WCWIDTH
678
 
GNULIB_WCWIDTH
679
638
HAVE_UNISTD_H
 
639
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
680
640
NEXT_UNISTD_H
681
 
UNISTD_H_HAVE_WINSOCK2_H
682
 
REPLACE_WRITE
683
 
REPLACE_LSEEK
684
 
REPLACE_LCHOWN
685
 
REPLACE_GETPAGESIZE
686
 
REPLACE_GETCWD
687
 
REPLACE_FCHDIR
688
 
REPLACE_CLOSE
689
 
REPLACE_CHOWN
690
 
HAVE_SYS_PARAM_H
691
 
HAVE_OS_H
692
 
HAVE_DECL_GETLOGIN_R
693
 
HAVE_DECL_ENVIRON
694
 
HAVE_SLEEP
695
 
HAVE_READLINK
696
 
HAVE_GETUSERSHELL
697
 
HAVE_GETPAGESIZE
698
 
HAVE_GETHOSTNAME
699
 
HAVE_GETDTABLESIZE
700
 
HAVE_GETDOMAINNAME
701
 
HAVE_FTRUNCATE
702
 
HAVE_FSYNC
703
 
HAVE_EUIDACCESS
704
 
HAVE_DUP2
705
 
GNULIB_WRITE
706
 
GNULIB_UNISTD_H_SIGPIPE
707
 
GNULIB_SLEEP
708
 
GNULIB_READLINK
709
 
GNULIB_LSEEK
710
 
GNULIB_LCHOWN
711
 
GNULIB_GETUSERSHELL
712
 
GNULIB_GETPAGESIZE
713
 
GNULIB_GETLOGIN_R
714
 
GNULIB_GETHOSTNAME
715
 
GNULIB_GETDTABLESIZE
716
 
GNULIB_GETDOMAINNAME
717
 
GNULIB_GETCWD
718
 
GNULIB_FTRUNCATE
719
 
GNULIB_FSYNC
720
 
GNULIB_FCHDIR
721
 
GNULIB_EUIDACCESS
722
 
GNULIB_ENVIRON
723
 
GNULIB_DUP2
724
 
GNULIB_CLOSE
725
 
GNULIB_CHOWN
 
641
NEXT_AS_FIRST_DIRECTIVE_STRING_H
726
642
NEXT_STRING_H
 
643
UNDEFINE_STRTOK_R
 
644
REPLACE_STRTOK_R
727
645
REPLACE_STRSIGNAL
 
646
REPLACE_STRNDUP
728
647
REPLACE_STRERROR
729
648
REPLACE_STRCASESTR
730
649
REPLACE_STRSTR
731
650
REPLACE_STRDUP
732
651
REPLACE_MEMMEM
 
652
REPLACE_MEMCHR
733
653
HAVE_STRVERSCMP
734
654
HAVE_DECL_STRSIGNAL
735
655
HAVE_DECL_STRERROR
739
659
HAVE_STRPBRK
740
660
HAVE_DECL_STRNLEN
741
661
HAVE_DECL_STRNDUP
742
 
HAVE_STRNDUP
743
662
HAVE_DECL_STRDUP
744
663
HAVE_STRCHRNUL
745
664
HAVE_STPNCPY
748
667
HAVE_DECL_MEMRCHR
749
668
HAVE_MEMPCPY
750
669
HAVE_DECL_MEMMEM
 
670
HAVE_MBSLEN
751
671
GNULIB_STRVERSCMP
752
672
GNULIB_STRSIGNAL
753
673
GNULIB_STRERROR
780
700
GNULIB_MEMRCHR
781
701
GNULIB_MEMPCPY
782
702
GNULIB_MEMMEM
 
703
GNULIB_MEMCHR
 
704
HAVE_RANDOM_H
 
705
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
783
706
NEXT_STDLIB_H
784
 
VOID_UNSETENV
 
707
REPLACE_UNSETENV
785
708
REPLACE_STRTOD
 
709
REPLACE_SETENV
 
710
REPLACE_REALPATH
786
711
REPLACE_PUTENV
787
712
REPLACE_MKSTEMP
788
 
HAVE_DECL_GETLOADAVG
 
713
REPLACE_CANONICALIZE_FILE_NAME
789
714
HAVE_UNSETENV
790
715
HAVE_SYS_LOADAVG_H
791
716
HAVE_STRUCT_RANDOM_DATA
794
719
HAVE_STRTOD
795
720
HAVE_SETENV
796
721
HAVE_RPMATCH
 
722
HAVE_REALPATH
 
723
HAVE_REALLOC_POSIX
797
724
HAVE_RANDOM_R
798
 
HAVE_REALLOC_POSIX
 
725
HAVE_MKSTEMPS
 
726
HAVE_MKOSTEMPS
 
727
HAVE_MKOSTEMP
799
728
HAVE_MKDTEMP
800
729
HAVE_MALLOC_POSIX
801
730
HAVE_GETSUBOPT
 
731
HAVE_DECL_GETLOADAVG
 
732
HAVE_CANONICALIZE_FILE_NAME
802
733
HAVE_CALLOC_POSIX
803
734
HAVE_ATOLL
804
735
GNULIB_UNSETENV
807
738
GNULIB_STRTOD
808
739
GNULIB_SETENV
809
740
GNULIB_RPMATCH
 
741
GNULIB_REALPATH
 
742
GNULIB_REALLOC_POSIX
810
743
GNULIB_RANDOM_R
811
744
GNULIB_PUTENV
 
745
GNULIB_MKSTEMPS
812
746
GNULIB_MKSTEMP
 
747
GNULIB_MKOSTEMPS
 
748
GNULIB_MKOSTEMP
813
749
GNULIB_MKDTEMP
 
750
GNULIB_MALLOC_POSIX
814
751
GNULIB_GETSUBOPT
815
752
GNULIB_GETLOADAVG
 
753
GNULIB_CANONICALIZE_FILE_NAME
 
754
GNULIB_CALLOC_POSIX
816
755
GNULIB_ATOLL
817
 
GNULIB_CALLOC_POSIX
818
 
GNULIB_REALLOC_POSIX
819
 
GNULIB_MALLOC_POSIX
 
756
STDINT_H
 
757
WINT_T_SUFFIX
 
758
WCHAR_T_SUFFIX
 
759
SIG_ATOMIC_T_SUFFIX
 
760
SIZE_T_SUFFIX
 
761
PTRDIFF_T_SUFFIX
 
762
HAVE_SIGNED_WINT_T
 
763
HAVE_SIGNED_WCHAR_T
 
764
HAVE_SIGNED_SIG_ATOMIC_T
 
765
BITSIZEOF_WINT_T
 
766
BITSIZEOF_WCHAR_T
 
767
BITSIZEOF_SIG_ATOMIC_T
 
768
BITSIZEOF_SIZE_T
 
769
BITSIZEOF_PTRDIFF_T
 
770
HAVE_SYS_BITYPES_H
 
771
HAVE_SYS_INTTYPES_H
 
772
HAVE_STDINT_H
 
773
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
 
774
NEXT_STDINT_H
 
775
HAVE_SYS_TYPES_H
 
776
HAVE_INTTYPES_H
 
777
HAVE_UNSIGNED_LONG_LONG_INT
 
778
HAVE_LONG_LONG_INT
 
779
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
 
780
NEXT_STDDEF_H
 
781
STDDEF_H
 
782
HAVE_WCHAR_T
 
783
REPLACE_NULL
820
784
HAVE__BOOL
821
785
STDBOOL_H
 
786
APPLE_UNIVERSAL_BUILD
 
787
LOCALE_FR_UTF8
 
788
LOCALE_ZH_CN
 
789
LOCALE_JA
 
790
REPLACE_WCWIDTH
 
791
REPLACE_WCSNRTOMBS
 
792
REPLACE_WCSRTOMBS
 
793
REPLACE_WCRTOMB
 
794
REPLACE_MBSNRTOWCS
 
795
REPLACE_MBSRTOWCS
 
796
REPLACE_MBRLEN
 
797
REPLACE_MBRTOWC
 
798
REPLACE_MBSINIT
 
799
REPLACE_WCTOB
 
800
REPLACE_BTOWC
 
801
REPLACE_MBSTATE_T
 
802
HAVE_DECL_WCWIDTH
 
803
HAVE_DECL_WCTOB
 
804
HAVE_WCSNRTOMBS
 
805
HAVE_WCSRTOMBS
 
806
HAVE_WCRTOMB
 
807
HAVE_MBSNRTOWCS
 
808
HAVE_MBSRTOWCS
 
809
HAVE_MBRLEN
 
810
HAVE_MBRTOWC
 
811
HAVE_MBSINIT
 
812
HAVE_BTOWC
 
813
GNULIB_WCWIDTH
 
814
GNULIB_WCSNRTOMBS
 
815
GNULIB_WCSRTOMBS
 
816
GNULIB_WCRTOMB
 
817
GNULIB_MBSNRTOWCS
 
818
GNULIB_MBSRTOWCS
 
819
GNULIB_MBRLEN
 
820
GNULIB_MBRTOWC
 
821
GNULIB_MBSINIT
 
822
GNULIB_WCTOB
 
823
GNULIB_BTOWC
 
824
LOCALCHARSET_TESTS_ENVIRONMENT
 
825
GLIBC21
822
826
LTLIBINTL
823
827
LIBINTL
824
828
GETOPT_H
 
829
HAVE_GETOPT_H
 
830
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
 
831
NEXT_GETOPT_H
 
832
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
 
833
UNISTD_H_HAVE_WINSOCK2_H
 
834
REPLACE_WRITE
 
835
REPLACE_USLEEP
 
836
REPLACE_UNLINKAT
 
837
REPLACE_UNLINK
 
838
REPLACE_SYMLINK
 
839
REPLACE_SLEEP
 
840
REPLACE_RMDIR
 
841
REPLACE_READLINK
 
842
REPLACE_PREAD
 
843
REPLACE_LSEEK
 
844
REPLACE_LINKAT
 
845
REPLACE_LINK
 
846
REPLACE_LCHOWN
 
847
REPLACE_GETPAGESIZE
 
848
REPLACE_GETGROUPS
 
849
REPLACE_GETCWD
 
850
REPLACE_FCHOWNAT
 
851
REPLACE_FCHDIR
 
852
REPLACE_DUP2
 
853
REPLACE_DUP
 
854
REPLACE_CLOSE
 
855
REPLACE_CHOWN
 
856
HAVE_USLEEP
 
857
HAVE_UNLINKAT
 
858
HAVE_SYS_PARAM_H
 
859
HAVE_OS_H
 
860
HAVE_DECL_GETLOGIN_R
 
861
HAVE_DECL_ENVIRON
 
862
HAVE_SYMLINKAT
 
863
HAVE_SYMLINK
 
864
HAVE_SLEEP
 
865
HAVE_READLINKAT
 
866
HAVE_READLINK
 
867
HAVE_PREAD
 
868
HAVE_PIPE2
 
869
HAVE_LINKAT
 
870
HAVE_LINK
 
871
HAVE_LCHOWN
 
872
HAVE_GETUSERSHELL
 
873
HAVE_GETPAGESIZE
 
874
HAVE_GETLOGIN
 
875
HAVE_GETHOSTNAME
 
876
HAVE_GETGROUPS
 
877
HAVE_GETDTABLESIZE
 
878
HAVE_GETDOMAINNAME
 
879
HAVE_FTRUNCATE
 
880
HAVE_FSYNC
 
881
HAVE_FCHOWNAT
 
882
HAVE_FACCESSAT
 
883
HAVE_EUIDACCESS
 
884
HAVE_DUP3
 
885
HAVE_DUP2
 
886
HAVE_CHOWN
 
887
GNULIB_WRITE
 
888
GNULIB_USLEEP
 
889
GNULIB_UNLINKAT
 
890
GNULIB_UNLINK
 
891
GNULIB_UNISTD_H_SIGPIPE
 
892
GNULIB_UNISTD_H_GETOPT
 
893
GNULIB_SYMLINKAT
 
894
GNULIB_SYMLINK
 
895
GNULIB_SLEEP
 
896
GNULIB_RMDIR
 
897
GNULIB_READLINKAT
 
898
GNULIB_READLINK
 
899
GNULIB_PREAD
 
900
GNULIB_PIPE2
 
901
GNULIB_LSEEK
 
902
GNULIB_LINKAT
 
903
GNULIB_LINK
 
904
GNULIB_LCHOWN
 
905
GNULIB_GETUSERSHELL
 
906
GNULIB_GETPAGESIZE
 
907
GNULIB_GETLOGIN_R
 
908
GNULIB_GETLOGIN
 
909
GNULIB_GETHOSTNAME
 
910
GNULIB_GETGROUPS
 
911
GNULIB_GETDTABLESIZE
 
912
GNULIB_GETDOMAINNAME
 
913
GNULIB_GETCWD
 
914
GNULIB_FTRUNCATE
 
915
GNULIB_FSYNC
 
916
GNULIB_FCHOWNAT
 
917
GNULIB_FCHDIR
 
918
GNULIB_FACCESSAT
 
919
GNULIB_EUIDACCESS
 
920
GNULIB_ENVIRON
 
921
GNULIB_DUP3
 
922
GNULIB_DUP2
 
923
GNULIB_CLOSE
 
924
GNULIB_CHOWN
825
925
EOVERFLOW_VALUE
826
926
EOVERFLOW_HIDDEN
827
927
ENOLINK_VALUE
829
929
EMULTIHOP_VALUE
830
930
EMULTIHOP_HIDDEN
831
931
ERRNO_H
 
932
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
832
933
NEXT_ERRNO_H
 
934
PRAGMA_SYSTEM_HEADER
 
935
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
 
936
INCLUDE_NEXT
 
937
GL_COND_LIBTOOL_FALSE
 
938
GL_COND_LIBTOOL_TRUE
 
939
EGREP
 
940
GREP
 
941
CPP
833
942
host_os
834
943
host_vendor
835
944
host_cpu
838
947
build_vendor
839
948
build_cpu
840
949
build
841
 
PRAGMA_SYSTEM_HEADER
842
 
INCLUDE_NEXT
843
 
GL_COND_LIBTOOL_FALSE
844
 
GL_COND_LIBTOOL_TRUE
845
 
EGREP
846
 
GREP
847
 
CPP
848
950
RANLIB
849
951
am__fastdepCC_FALSE
850
952
am__fastdepCC_TRUE
915
1017
program_transform_name
916
1018
prefix
917
1019
exec_prefix
 
1020
PACKAGE_URL
918
1021
PACKAGE_BUGREPORT
919
1022
PACKAGE_STRING
920
1023
PACKAGE_VERSION
1049
1152
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050
1153
    # Reject names that are not valid shell variable names.
1051
1154
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1053
 
   { (exit 1); exit 1; }; }
 
1155
      as_fn_error "invalid feature name: $ac_useropt"
1054
1156
    ac_useropt_orig=$ac_useropt
1055
1157
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056
1158
    case $ac_user_opts in
1076
1178
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077
1179
    # Reject names that are not valid shell variable names.
1078
1180
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1080
 
   { (exit 1); exit 1; }; }
 
1181
      as_fn_error "invalid feature name: $ac_useropt"
1081
1182
    ac_useropt_orig=$ac_useropt
1082
1183
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083
1184
    case $ac_user_opts in
1281
1382
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282
1383
    # Reject names that are not valid shell variable names.
1283
1384
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1285
 
   { (exit 1); exit 1; }; }
 
1385
      as_fn_error "invalid package name: $ac_useropt"
1286
1386
    ac_useropt_orig=$ac_useropt
1287
1387
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288
1388
    case $ac_user_opts in
1298
1398
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299
1399
    # Reject names that are not valid shell variable names.
1300
1400
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302
 
   { (exit 1); exit 1; }; }
 
1401
      as_fn_error "invalid package name: $ac_useropt"
1303
1402
    ac_useropt_orig=$ac_useropt
1304
1403
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305
1404
    case $ac_user_opts in
1329
1428
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330
1429
    x_libraries=$ac_optarg ;;
1331
1430
 
1332
 
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1333
 
Try \`$0 --help' for more information." >&2
1334
 
   { (exit 1); exit 1; }; }
 
1431
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1432
Try \`$0 --help' for more information."
1335
1433
    ;;
1336
1434
 
1337
1435
  *=*)
1338
1436
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339
1437
    # Reject names that are not valid shell variable names.
1340
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341
 
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342
 
   { (exit 1); exit 1; }; }
 
1438
    case $ac_envvar in #(
 
1439
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1440
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1441
    esac
1343
1442
    eval $ac_envvar=\$ac_optarg
1344
1443
    export $ac_envvar ;;
1345
1444
 
1356
1455
 
1357
1456
if test -n "$ac_prev"; then
1358
1457
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359
 
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1360
 
   { (exit 1); exit 1; }; }
 
1458
  as_fn_error "missing argument to $ac_option"
1361
1459
fi
1362
1460
 
1363
1461
if test -n "$ac_unrecognized_opts"; then
1364
1462
  case $enable_option_checking in
1365
1463
    no) ;;
1366
 
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1367
 
   { (exit 1); exit 1; }; } ;;
 
1464
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368
1465
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369
1466
  esac
1370
1467
fi
1387
1484
    [\\/$]* | ?:[\\/]* )  continue;;
1388
1485
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389
1486
  esac
1390
 
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1391
 
   { (exit 1); exit 1; }; }
 
1487
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392
1488
done
1393
1489
 
1394
1490
# There might be people who depend on the old broken behavior: `$host'
1418
1514
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419
1515
ac_ls_di=`ls -di .` &&
1420
1516
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421
 
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1422
 
   { (exit 1); exit 1; }; }
 
1517
  as_fn_error "working directory cannot be determined"
1423
1518
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424
 
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1425
 
   { (exit 1); exit 1; }; }
 
1519
  as_fn_error "pwd does not report name of working directory"
1426
1520
 
1427
1521
 
1428
1522
# Find the source files, if location was not specified.
1461
1555
fi
1462
1556
if test ! -r "$srcdir/$ac_unique_file"; then
1463
1557
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464
 
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1465
 
   { (exit 1); exit 1; }; }
 
1558
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1466
1559
fi
1467
1560
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468
1561
ac_abs_confdir=`(
1469
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1470
 
   { (exit 1); exit 1; }; }
 
1562
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471
1563
        pwd)`
1472
1564
# When building in place, set srcdir=.
1473
1565
if test "$ac_abs_confdir" = "$ac_pwd"; then
1493
1585
  # Omit some internal or obsolete options to make the list less imposing.
1494
1586
  # This message is too long to be a string in the A/UX 3.1 sh.
1495
1587
  cat <<_ACEOF
1496
 
\`configure' configures GNU Hello 2.4 to adapt to many kinds of systems.
 
1588
\`configure' configures GNU Hello 2.5 to adapt to many kinds of systems.
1497
1589
 
1498
1590
Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1591
 
1563
1655
 
1564
1656
if test -n "$ac_init_help"; then
1565
1657
  case $ac_init_help in
1566
 
     short | recursive ) echo "Configuration of GNU Hello 2.4:";;
 
1658
     short | recursive ) echo "Configuration of GNU Hello 2.5:";;
1567
1659
   esac
1568
1660
  cat <<\_ACEOF
1569
1661
 
1591
1683
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592
1684
              nonstandard directory <lib dir>
1593
1685
  LIBS        libraries to pass to the linker, e.g. -l<library>
1594
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1686
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595
1687
              you have headers in a nonstandard directory <include dir>
1596
1688
  CPP         C preprocessor
1597
1689
 
1599
1691
it to find libraries and programs with nonstandard names/locations.
1600
1692
 
1601
1693
Report bugs to <bug-hello@gnu.org>.
 
1694
GNU Hello home page: <http://www.gnu.org/software/hello/>.
 
1695
General help using GNU software: <http://www.gnu.org/gethelp/>.
1602
1696
_ACEOF
1603
1697
ac_status=$?
1604
1698
fi
1661
1755
test -n "$ac_init_help" && exit $ac_status
1662
1756
if $ac_init_version; then
1663
1757
  cat <<\_ACEOF
1664
 
GNU Hello configure 2.4
1665
 
generated by GNU Autoconf 2.63
 
1758
GNU Hello configure 2.5
 
1759
generated by GNU Autoconf 2.65
1666
1760
 
1667
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1761
Copyright (C) 2009 Free Software Foundation, Inc.
1669
1762
This configure script is free software; the Free Software Foundation
1670
1763
gives unlimited permission to copy, distribute and modify it.
1671
1764
_ACEOF
1672
1765
  exit
1673
1766
fi
 
1767
 
 
1768
## ------------------------ ##
 
1769
## Autoconf initialization. ##
 
1770
## ------------------------ ##
 
1771
 
 
1772
# ac_fn_c_try_compile LINENO
 
1773
# --------------------------
 
1774
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1775
ac_fn_c_try_compile ()
 
1776
{
 
1777
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1778
  rm -f conftest.$ac_objext
 
1779
  if { { ac_try="$ac_compile"
 
1780
case "(($ac_try" in
 
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1782
  *) ac_try_echo=$ac_try;;
 
1783
esac
 
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1785
$as_echo "$ac_try_echo"; } >&5
 
1786
  (eval "$ac_compile") 2>conftest.err
 
1787
  ac_status=$?
 
1788
  if test -s conftest.err; then
 
1789
    grep -v '^ *+' conftest.err >conftest.er1
 
1790
    cat conftest.er1 >&5
 
1791
    mv -f conftest.er1 conftest.err
 
1792
  fi
 
1793
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1794
  test $ac_status = 0; } && {
 
1795
         test -z "$ac_c_werror_flag" ||
 
1796
         test ! -s conftest.err
 
1797
       } && test -s conftest.$ac_objext; then :
 
1798
  ac_retval=0
 
1799
else
 
1800
  $as_echo "$as_me: failed program was:" >&5
 
1801
sed 's/^/| /' conftest.$ac_ext >&5
 
1802
 
 
1803
        ac_retval=1
 
1804
fi
 
1805
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1806
  as_fn_set_status $ac_retval
 
1807
 
 
1808
} # ac_fn_c_try_compile
 
1809
 
 
1810
# ac_fn_c_try_cpp LINENO
 
1811
# ----------------------
 
1812
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1813
ac_fn_c_try_cpp ()
 
1814
{
 
1815
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1816
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1817
case "(($ac_try" in
 
1818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1819
  *) ac_try_echo=$ac_try;;
 
1820
esac
 
1821
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1822
$as_echo "$ac_try_echo"; } >&5
 
1823
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1824
  ac_status=$?
 
1825
  if test -s conftest.err; then
 
1826
    grep -v '^ *+' conftest.err >conftest.er1
 
1827
    cat conftest.er1 >&5
 
1828
    mv -f conftest.er1 conftest.err
 
1829
  fi
 
1830
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1831
  test $ac_status = 0; } >/dev/null && {
 
1832
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1833
         test ! -s conftest.err
 
1834
       }; then :
 
1835
  ac_retval=0
 
1836
else
 
1837
  $as_echo "$as_me: failed program was:" >&5
 
1838
sed 's/^/| /' conftest.$ac_ext >&5
 
1839
 
 
1840
    ac_retval=1
 
1841
fi
 
1842
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1843
  as_fn_set_status $ac_retval
 
1844
 
 
1845
} # ac_fn_c_try_cpp
 
1846
 
 
1847
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1848
# -------------------------------------------------------
 
1849
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1850
# the include files in INCLUDES and setting the cache variable VAR
 
1851
# accordingly.
 
1852
ac_fn_c_check_header_mongrel ()
 
1853
{
 
1854
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1855
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1856
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1857
$as_echo_n "checking for $2... " >&6; }
 
1858
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1859
  $as_echo_n "(cached) " >&6
 
1860
fi
 
1861
eval ac_res=\$$3
 
1862
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1863
$as_echo "$ac_res" >&6; }
 
1864
else
 
1865
  # Is the header compilable?
 
1866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1867
$as_echo_n "checking $2 usability... " >&6; }
 
1868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1869
/* end confdefs.h.  */
 
1870
$4
 
1871
#include <$2>
 
1872
_ACEOF
 
1873
if ac_fn_c_try_compile "$LINENO"; then :
 
1874
  ac_header_compiler=yes
 
1875
else
 
1876
  ac_header_compiler=no
 
1877
fi
 
1878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1880
$as_echo "$ac_header_compiler" >&6; }
 
1881
 
 
1882
# Is the header present?
 
1883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1884
$as_echo_n "checking $2 presence... " >&6; }
 
1885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1886
/* end confdefs.h.  */
 
1887
#include <$2>
 
1888
_ACEOF
 
1889
if ac_fn_c_try_cpp "$LINENO"; then :
 
1890
  ac_header_preproc=yes
 
1891
else
 
1892
  ac_header_preproc=no
 
1893
fi
 
1894
rm -f conftest.err conftest.$ac_ext
 
1895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1896
$as_echo "$ac_header_preproc" >&6; }
 
1897
 
 
1898
# So?  What about this header?
 
1899
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1900
  yes:no: )
 
1901
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1902
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1903
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1904
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1905
    ;;
 
1906
  no:yes:* )
 
1907
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1908
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1909
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1910
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1911
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1912
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1913
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1914
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1915
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1916
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1917
( cat <<\_ASBOX
 
1918
## -------------------------------- ##
 
1919
## Report this to bug-hello@gnu.org ##
 
1920
## -------------------------------- ##
 
1921
_ASBOX
 
1922
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1923
    ;;
 
1924
esac
 
1925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1926
$as_echo_n "checking for $2... " >&6; }
 
1927
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1928
  $as_echo_n "(cached) " >&6
 
1929
else
 
1930
  eval "$3=\$ac_header_compiler"
 
1931
fi
 
1932
eval ac_res=\$$3
 
1933
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1934
$as_echo "$ac_res" >&6; }
 
1935
fi
 
1936
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1937
 
 
1938
} # ac_fn_c_check_header_mongrel
 
1939
 
 
1940
# ac_fn_c_try_run LINENO
 
1941
# ----------------------
 
1942
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1943
# that executables *can* be run.
 
1944
ac_fn_c_try_run ()
 
1945
{
 
1946
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1947
  if { { ac_try="$ac_link"
 
1948
case "(($ac_try" in
 
1949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1950
  *) ac_try_echo=$ac_try;;
 
1951
esac
 
1952
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1953
$as_echo "$ac_try_echo"; } >&5
 
1954
  (eval "$ac_link") 2>&5
 
1955
  ac_status=$?
 
1956
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1957
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1958
  { { case "(($ac_try" in
 
1959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1960
  *) ac_try_echo=$ac_try;;
 
1961
esac
 
1962
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1963
$as_echo "$ac_try_echo"; } >&5
 
1964
  (eval "$ac_try") 2>&5
 
1965
  ac_status=$?
 
1966
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1967
  test $ac_status = 0; }; }; then :
 
1968
  ac_retval=0
 
1969
else
 
1970
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1971
       $as_echo "$as_me: failed program was:" >&5
 
1972
sed 's/^/| /' conftest.$ac_ext >&5
 
1973
 
 
1974
       ac_retval=$ac_status
 
1975
fi
 
1976
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1977
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1978
  as_fn_set_status $ac_retval
 
1979
 
 
1980
} # ac_fn_c_try_run
 
1981
 
 
1982
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1983
# -------------------------------------------------------
 
1984
# Tests whether HEADER exists and can be compiled using the include files in
 
1985
# INCLUDES, setting the cache variable VAR accordingly.
 
1986
ac_fn_c_check_header_compile ()
 
1987
{
 
1988
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1989
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1990
$as_echo_n "checking for $2... " >&6; }
 
1991
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1992
  $as_echo_n "(cached) " >&6
 
1993
else
 
1994
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1995
/* end confdefs.h.  */
 
1996
$4
 
1997
#include <$2>
 
1998
_ACEOF
 
1999
if ac_fn_c_try_compile "$LINENO"; then :
 
2000
  eval "$3=yes"
 
2001
else
 
2002
  eval "$3=no"
 
2003
fi
 
2004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2005
fi
 
2006
eval ac_res=\$$3
 
2007
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2008
$as_echo "$ac_res" >&6; }
 
2009
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2010
 
 
2011
} # ac_fn_c_check_header_compile
 
2012
 
 
2013
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2014
# --------------------------------------------
 
2015
# Tries to find the compile-time value of EXPR in a program that includes
 
2016
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2017
# computed
 
2018
ac_fn_c_compute_int ()
 
2019
{
 
2020
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2021
  if test "$cross_compiling" = yes; then
 
2022
    # Depending upon the size, compute the lo and hi bounds.
 
2023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2024
/* end confdefs.h.  */
 
2025
$4
 
2026
int
 
2027
main ()
 
2028
{
 
2029
static int test_array [1 - 2 * !(($2) >= 0)];
 
2030
test_array [0] = 0
 
2031
 
 
2032
  ;
 
2033
  return 0;
 
2034
}
 
2035
_ACEOF
 
2036
if ac_fn_c_try_compile "$LINENO"; then :
 
2037
  ac_lo=0 ac_mid=0
 
2038
  while :; do
 
2039
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2040
/* end confdefs.h.  */
 
2041
$4
 
2042
int
 
2043
main ()
 
2044
{
 
2045
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2046
test_array [0] = 0
 
2047
 
 
2048
  ;
 
2049
  return 0;
 
2050
}
 
2051
_ACEOF
 
2052
if ac_fn_c_try_compile "$LINENO"; then :
 
2053
  ac_hi=$ac_mid; break
 
2054
else
 
2055
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2056
                        if test $ac_lo -le $ac_mid; then
 
2057
                          ac_lo= ac_hi=
 
2058
                          break
 
2059
                        fi
 
2060
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2061
fi
 
2062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2063
  done
 
2064
else
 
2065
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2066
/* end confdefs.h.  */
 
2067
$4
 
2068
int
 
2069
main ()
 
2070
{
 
2071
static int test_array [1 - 2 * !(($2) < 0)];
 
2072
test_array [0] = 0
 
2073
 
 
2074
  ;
 
2075
  return 0;
 
2076
}
 
2077
_ACEOF
 
2078
if ac_fn_c_try_compile "$LINENO"; then :
 
2079
  ac_hi=-1 ac_mid=-1
 
2080
  while :; do
 
2081
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2082
/* end confdefs.h.  */
 
2083
$4
 
2084
int
 
2085
main ()
 
2086
{
 
2087
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2088
test_array [0] = 0
 
2089
 
 
2090
  ;
 
2091
  return 0;
 
2092
}
 
2093
_ACEOF
 
2094
if ac_fn_c_try_compile "$LINENO"; then :
 
2095
  ac_lo=$ac_mid; break
 
2096
else
 
2097
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2098
                        if test $ac_mid -le $ac_hi; then
 
2099
                          ac_lo= ac_hi=
 
2100
                          break
 
2101
                        fi
 
2102
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2103
fi
 
2104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2105
  done
 
2106
else
 
2107
  ac_lo= ac_hi=
 
2108
fi
 
2109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2110
fi
 
2111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2112
# Binary search between lo and hi bounds.
 
2113
while test "x$ac_lo" != "x$ac_hi"; do
 
2114
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2115
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2116
/* end confdefs.h.  */
 
2117
$4
 
2118
int
 
2119
main ()
 
2120
{
 
2121
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2122
test_array [0] = 0
 
2123
 
 
2124
  ;
 
2125
  return 0;
 
2126
}
 
2127
_ACEOF
 
2128
if ac_fn_c_try_compile "$LINENO"; then :
 
2129
  ac_hi=$ac_mid
 
2130
else
 
2131
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2132
fi
 
2133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2134
done
 
2135
case $ac_lo in #((
 
2136
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2137
'') ac_retval=1 ;;
 
2138
esac
 
2139
  else
 
2140
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2141
/* end confdefs.h.  */
 
2142
$4
 
2143
static long int longval () { return $2; }
 
2144
static unsigned long int ulongval () { return $2; }
 
2145
#include <stdio.h>
 
2146
#include <stdlib.h>
 
2147
int
 
2148
main ()
 
2149
{
 
2150
 
 
2151
  FILE *f = fopen ("conftest.val", "w");
 
2152
  if (! f)
 
2153
    return 1;
 
2154
  if (($2) < 0)
 
2155
    {
 
2156
      long int i = longval ();
 
2157
      if (i != ($2))
 
2158
        return 1;
 
2159
      fprintf (f, "%ld", i);
 
2160
    }
 
2161
  else
 
2162
    {
 
2163
      unsigned long int i = ulongval ();
 
2164
      if (i != ($2))
 
2165
        return 1;
 
2166
      fprintf (f, "%lu", i);
 
2167
    }
 
2168
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2169
     on some platforms.  */
 
2170
  return ferror (f) || fclose (f) != 0;
 
2171
 
 
2172
  ;
 
2173
  return 0;
 
2174
}
 
2175
_ACEOF
 
2176
if ac_fn_c_try_run "$LINENO"; then :
 
2177
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2178
else
 
2179
  ac_retval=1
 
2180
fi
 
2181
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2182
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2183
rm -f conftest.val
 
2184
 
 
2185
  fi
 
2186
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2187
  as_fn_set_status $ac_retval
 
2188
 
 
2189
} # ac_fn_c_compute_int
 
2190
 
 
2191
# ac_fn_c_try_link LINENO
 
2192
# -----------------------
 
2193
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2194
ac_fn_c_try_link ()
 
2195
{
 
2196
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2197
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2198
  if { { ac_try="$ac_link"
 
2199
case "(($ac_try" in
 
2200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2201
  *) ac_try_echo=$ac_try;;
 
2202
esac
 
2203
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2204
$as_echo "$ac_try_echo"; } >&5
 
2205
  (eval "$ac_link") 2>conftest.err
 
2206
  ac_status=$?
 
2207
  if test -s conftest.err; then
 
2208
    grep -v '^ *+' conftest.err >conftest.er1
 
2209
    cat conftest.er1 >&5
 
2210
    mv -f conftest.er1 conftest.err
 
2211
  fi
 
2212
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2213
  test $ac_status = 0; } && {
 
2214
         test -z "$ac_c_werror_flag" ||
 
2215
         test ! -s conftest.err
 
2216
       } && test -s conftest$ac_exeext && {
 
2217
         test "$cross_compiling" = yes ||
 
2218
         $as_test_x conftest$ac_exeext
 
2219
       }; then :
 
2220
  ac_retval=0
 
2221
else
 
2222
  $as_echo "$as_me: failed program was:" >&5
 
2223
sed 's/^/| /' conftest.$ac_ext >&5
 
2224
 
 
2225
        ac_retval=1
 
2226
fi
 
2227
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2228
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2229
  # interfere with the next link command; also delete a directory that is
 
2230
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2231
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2232
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2233
  as_fn_set_status $ac_retval
 
2234
 
 
2235
} # ac_fn_c_try_link
 
2236
 
 
2237
# ac_fn_c_check_decl LINENO SYMBOL VAR
 
2238
# ------------------------------------
 
2239
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
2240
ac_fn_c_check_decl ()
 
2241
{
 
2242
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2243
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
 
2244
$as_echo_n "checking whether $2 is declared... " >&6; }
 
2245
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2246
  $as_echo_n "(cached) " >&6
 
2247
else
 
2248
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2249
/* end confdefs.h.  */
 
2250
$4
 
2251
int
 
2252
main ()
 
2253
{
 
2254
#ifndef $2
 
2255
  (void) $2;
 
2256
#endif
 
2257
 
 
2258
  ;
 
2259
  return 0;
 
2260
}
 
2261
_ACEOF
 
2262
if ac_fn_c_try_compile "$LINENO"; then :
 
2263
  eval "$3=yes"
 
2264
else
 
2265
  eval "$3=no"
 
2266
fi
 
2267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2268
fi
 
2269
eval ac_res=\$$3
 
2270
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2271
$as_echo "$ac_res" >&6; }
 
2272
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2273
 
 
2274
} # ac_fn_c_check_decl
 
2275
 
 
2276
# ac_fn_c_check_func LINENO FUNC VAR
 
2277
# ----------------------------------
 
2278
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2279
ac_fn_c_check_func ()
 
2280
{
 
2281
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2282
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2283
$as_echo_n "checking for $2... " >&6; }
 
2284
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2285
  $as_echo_n "(cached) " >&6
 
2286
else
 
2287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2288
/* end confdefs.h.  */
 
2289
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2290
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2291
#define $2 innocuous_$2
 
2292
 
 
2293
/* System header to define __stub macros and hopefully few prototypes,
 
2294
    which can conflict with char $2 (); below.
 
2295
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2296
    <limits.h> exists even on freestanding compilers.  */
 
2297
 
 
2298
#ifdef __STDC__
 
2299
# include <limits.h>
 
2300
#else
 
2301
# include <assert.h>
 
2302
#endif
 
2303
 
 
2304
#undef $2
 
2305
 
 
2306
/* Override any GCC internal prototype to avoid an error.
 
2307
   Use char because int might match the return type of a GCC
 
2308
   builtin and then its argument prototype would still apply.  */
 
2309
#ifdef __cplusplus
 
2310
extern "C"
 
2311
#endif
 
2312
char $2 ();
 
2313
/* The GNU C library defines this for functions which it implements
 
2314
    to always fail with ENOSYS.  Some functions are actually named
 
2315
    something starting with __ and the normal name is an alias.  */
 
2316
#if defined __stub_$2 || defined __stub___$2
 
2317
choke me
 
2318
#endif
 
2319
 
 
2320
int
 
2321
main ()
 
2322
{
 
2323
return $2 ();
 
2324
  ;
 
2325
  return 0;
 
2326
}
 
2327
_ACEOF
 
2328
if ac_fn_c_try_link "$LINENO"; then :
 
2329
  eval "$3=yes"
 
2330
else
 
2331
  eval "$3=no"
 
2332
fi
 
2333
rm -f core conftest.err conftest.$ac_objext \
 
2334
    conftest$ac_exeext conftest.$ac_ext
 
2335
fi
 
2336
eval ac_res=\$$3
 
2337
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2338
$as_echo "$ac_res" >&6; }
 
2339
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2340
 
 
2341
} # ac_fn_c_check_func
 
2342
 
 
2343
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2344
# -------------------------------------------
 
2345
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2346
# variable VAR accordingly.
 
2347
ac_fn_c_check_type ()
 
2348
{
 
2349
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2350
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2351
$as_echo_n "checking for $2... " >&6; }
 
2352
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2353
  $as_echo_n "(cached) " >&6
 
2354
else
 
2355
  eval "$3=no"
 
2356
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2357
/* end confdefs.h.  */
 
2358
$4
 
2359
int
 
2360
main ()
 
2361
{
 
2362
if (sizeof ($2))
 
2363
         return 0;
 
2364
  ;
 
2365
  return 0;
 
2366
}
 
2367
_ACEOF
 
2368
if ac_fn_c_try_compile "$LINENO"; then :
 
2369
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2370
/* end confdefs.h.  */
 
2371
$4
 
2372
int
 
2373
main ()
 
2374
{
 
2375
if (sizeof (($2)))
 
2376
            return 0;
 
2377
  ;
 
2378
  return 0;
 
2379
}
 
2380
_ACEOF
 
2381
if ac_fn_c_try_compile "$LINENO"; then :
 
2382
 
 
2383
else
 
2384
  eval "$3=yes"
 
2385
fi
 
2386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2387
fi
 
2388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2389
fi
 
2390
eval ac_res=\$$3
 
2391
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2392
$as_echo "$ac_res" >&6; }
 
2393
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2394
 
 
2395
} # ac_fn_c_check_type
1674
2396
cat >config.log <<_ACEOF
1675
2397
This file contains any messages produced by compilers while
1676
2398
running configure, to aid debugging if configure makes a mistake.
1677
2399
 
1678
 
It was created by GNU Hello $as_me 2.4, which was
1679
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
2400
It was created by GNU Hello $as_me 2.5, which was
 
2401
generated by GNU Autoconf 2.65.  Invocation command line was
1680
2402
 
1681
2403
  $ $0 $@
1682
2404
 
1712
2434
do
1713
2435
  IFS=$as_save_IFS
1714
2436
  test -z "$as_dir" && as_dir=.
1715
 
  $as_echo "PATH: $as_dir"
1716
 
done
 
2437
    $as_echo "PATH: $as_dir"
 
2438
  done
1717
2439
IFS=$as_save_IFS
1718
2440
 
1719
2441
} >&5
1750
2472
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751
2473
    esac
1752
2474
    case $ac_pass in
1753
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2475
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1754
2476
    2)
1755
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2477
      as_fn_append ac_configure_args1 " '$ac_arg'"
1756
2478
      if test $ac_must_keep_next = true; then
1757
2479
        ac_must_keep_next=false # Got value, back to normal.
1758
2480
      else
1768
2490
          -* ) ac_must_keep_next=true ;;
1769
2491
        esac
1770
2492
      fi
1771
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2493
      as_fn_append ac_configure_args " '$ac_arg'"
1772
2494
      ;;
1773
2495
    esac
1774
2496
  done
1775
2497
done
1776
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2498
{ ac_configure_args0=; unset ac_configure_args0;}
 
2499
{ ac_configure_args1=; unset ac_configure_args1;}
1778
2500
 
1779
2501
# When interrupted or exit'd, cleanup temporary files, and complete
1780
2502
# config.log.  We remove comments because anyway the quotes in there
1799
2521
    case $ac_val in #(
1800
2522
    *${as_nl}*)
1801
2523
      case $ac_var in #(
1802
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2524
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1803
2525
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1804
2526
      esac
1805
2527
      case $ac_var in #(
1806
2528
      _ | IFS | as_nl) ;; #(
1807
2529
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808
 
      *) $as_unset $ac_var ;;
 
2530
      *) { eval $ac_var=; unset $ac_var;} ;;
1809
2531
      esac ;;
1810
2532
    esac
1811
2533
  done
1877
2599
    exit $exit_status
1878
2600
' 0
1879
2601
for ac_signal in 1 2 13 15; do
1880
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2602
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1881
2603
done
1882
2604
ac_signal=0
1883
2605
 
1884
2606
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885
2607
rm -f -r conftest* confdefs.h
1886
2608
 
 
2609
$as_echo "/* confdefs.h */" > confdefs.h
 
2610
 
1887
2611
# Predefined preprocessor variables.
1888
2612
 
1889
2613
cat >>confdefs.h <<_ACEOF
1890
2614
#define PACKAGE_NAME "$PACKAGE_NAME"
1891
2615
_ACEOF
1892
2616
 
1893
 
 
1894
2617
cat >>confdefs.h <<_ACEOF
1895
2618
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896
2619
_ACEOF
1897
2620
 
1898
 
 
1899
2621
cat >>confdefs.h <<_ACEOF
1900
2622
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901
2623
_ACEOF
1902
2624
 
1903
 
 
1904
2625
cat >>confdefs.h <<_ACEOF
1905
2626
#define PACKAGE_STRING "$PACKAGE_STRING"
1906
2627
_ACEOF
1907
2628
 
1908
 
 
1909
2629
cat >>confdefs.h <<_ACEOF
1910
2630
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911
2631
_ACEOF
1912
2632
 
 
2633
cat >>confdefs.h <<_ACEOF
 
2634
#define PACKAGE_URL "$PACKAGE_URL"
 
2635
_ACEOF
 
2636
 
1913
2637
 
1914
2638
# Let the site file select an alternate cache file if it wants to.
1915
2639
# Prefer an explicitly selected file to automatically selected ones.
1927
2651
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928
2652
do
1929
2653
  test "x$ac_site_file" = xNONE && continue
1930
 
  if test -r "$ac_site_file"; then
1931
 
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2654
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2655
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1932
2656
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933
2657
    sed 's/^/| /' "$ac_site_file" >&5
1934
2658
    . "$ac_site_file"
1936
2660
done
1937
2661
 
1938
2662
if test -r "$cache_file"; then
1939
 
  # Some versions of bash will fail to source /dev/null (special
1940
 
  # files actually), so we avoid doing that.
1941
 
  if test -f "$cache_file"; then
1942
 
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2663
  # Some versions of bash will fail to source /dev/null (special files
 
2664
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2665
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2666
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1943
2667
$as_echo "$as_me: loading cache $cache_file" >&6;}
1944
2668
    case $cache_file in
1945
2669
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947
2671
    esac
1948
2672
  fi
1949
2673
else
1950
 
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2674
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1951
2675
$as_echo "$as_me: creating cache $cache_file" >&6;}
1952
2676
  >$cache_file
1953
2677
fi
1954
2678
 
1955
 
ac_header_list="$ac_header_list errno.h"
1956
 
ac_header_list="$ac_header_list stdio_ext.h"
1957
 
ac_func_list="$ac_func_list __fpending"
1958
 
ac_func_list="$ac_func_list mbsinit"
1959
 
ac_header_list="$ac_header_list stdlib.h"
1960
 
ac_header_list="$ac_header_list sys/socket.h"
1961
 
ac_header_list="$ac_header_list string.h"
1962
 
ac_header_list="$ac_header_list unistd.h"
1963
 
ac_header_list="$ac_header_list wchar.h"
1964
 
ac_func_list="$ac_func_list iswcntrl"
1965
 
ac_header_list="$ac_header_list wctype.h"
 
2679
as_fn_append ac_header_list " errno.h"
 
2680
as_fn_append ac_header_list " stdio_ext.h"
 
2681
as_fn_append ac_func_list " __fpending"
 
2682
gl_getopt_required=GNU
 
2683
as_fn_append ac_header_list " getopt.h"
 
2684
as_fn_append ac_func_list " mbsinit"
 
2685
as_fn_append ac_func_list " mbrtowc"
 
2686
as_fn_append ac_header_list " stddef.h"
 
2687
as_fn_append ac_header_list " stdint.h"
 
2688
as_fn_append ac_header_list " wchar.h"
 
2689
as_fn_append ac_header_list " stdlib.h"
 
2690
as_fn_append ac_header_list " sys/socket.h"
 
2691
as_fn_append ac_header_list " string.h"
 
2692
as_fn_append ac_header_list " unistd.h"
 
2693
as_fn_append ac_func_list " iswcntrl"
 
2694
as_fn_append ac_header_list " wctype.h"
1966
2695
gt_needs="$gt_needs "
1967
2696
# Check that the precious variables saved in the cache have kept the same
1968
2697
# value.
1974
2703
  eval ac_new_val=\$ac_env_${ac_var}_value
1975
2704
  case $ac_old_set,$ac_new_set in
1976
2705
    set,)
1977
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2706
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978
2707
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1979
2708
      ac_cache_corrupted=: ;;
1980
2709
    ,set)
1981
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2710
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1982
2711
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1983
2712
      ac_cache_corrupted=: ;;
1984
2713
    ,);;
1988
2717
        ac_old_val_w=`echo x $ac_old_val`
1989
2718
        ac_new_val_w=`echo x $ac_new_val`
1990
2719
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1991
 
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2720
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1992
2721
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1993
2722
          ac_cache_corrupted=:
1994
2723
        else
1995
 
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2724
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1996
2725
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1997
2726
          eval $ac_var=\$ac_old_val
1998
2727
        fi
1999
 
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2728
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2000
2729
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2001
 
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2730
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2002
2731
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2003
2732
      fi;;
2004
2733
  esac
2010
2739
    esac
2011
2740
    case " $ac_configure_args " in
2012
2741
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2013
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2742
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2014
2743
    esac
2015
2744
  fi
2016
2745
done
2017
2746
if $ac_cache_corrupted; then
2018
 
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2747
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2019
2748
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020
 
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2749
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2021
2750
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2022
 
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2023
 
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2024
 
   { (exit 1); exit 1; }; }
 
2751
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2025
2752
fi
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
 
 
2034
 
 
2035
 
 
2036
 
 
2037
 
 
2038
 
 
2039
 
 
2040
 
 
2041
 
 
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
 
2049
 
 
 
2753
## -------------------- ##
 
2754
## Main body of script. ##
 
2755
## -------------------- ##
2050
2756
 
2051
2757
ac_ext=c
2052
2758
ac_cpp='$CPP $CPPFLAGS'
2058
2764
 
2059
2765
ac_aux_dir=
2060
2766
for ac_dir in build-aux "$srcdir"/build-aux; do
2061
 
  if test -f "$ac_dir/install-sh"; then
2062
 
    ac_aux_dir=$ac_dir
2063
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2064
 
    break
2065
 
  elif test -f "$ac_dir/install.sh"; then
2066
 
    ac_aux_dir=$ac_dir
2067
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2068
 
    break
2069
 
  elif test -f "$ac_dir/shtool"; then
2070
 
    ac_aux_dir=$ac_dir
2071
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2072
 
    break
2073
 
  fi
 
2767
  for ac_t in install-sh install.sh shtool; do
 
2768
    if test -f "$ac_dir/$ac_t"; then
 
2769
      ac_aux_dir=$ac_dir
 
2770
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2771
      break 2
 
2772
    fi
 
2773
  done
2074
2774
done
2075
2775
if test -z "$ac_aux_dir"; then
2076
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2077
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2078
 
   { (exit 1); exit 1; }; }
 
2776
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2079
2777
fi
2080
2778
 
2081
2779
# These three variables are undocumented and unsupported,
2087
2785
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2088
2786
 
2089
2787
 
2090
 
am__api_version='1.10'
 
2788
am__api_version='1.11'
2091
2789
 
2092
2790
# Find a good install program.  We prefer a C program (faster),
2093
2791
# so one script is as good as another.  But avoid the broken or
2103
2801
# OS/2's system install, which has a completely different semantic
2104
2802
# ./install, which can be erroneously created by make from ./install.sh.
2105
2803
# Reject install programs that cannot install multiple files.
2106
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2107
2805
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2108
2806
if test -z "$INSTALL"; then
2109
 
if test "${ac_cv_path_install+set}" = set; then
 
2807
if test "${ac_cv_path_install+set}" = set; then :
2110
2808
  $as_echo_n "(cached) " >&6
2111
2809
else
2112
2810
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114
2812
do
2115
2813
  IFS=$as_save_IFS
2116
2814
  test -z "$as_dir" && as_dir=.
2117
 
  # Account for people who put trailing slashes in PATH elements.
2118
 
case $as_dir/ in
2119
 
  ./ | .// | /cC/* | \
 
2815
    # Account for people who put trailing slashes in PATH elements.
 
2816
case $as_dir/ in #((
 
2817
  ./ | .// | /[cC]/* | \
2120
2818
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2121
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2819
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2122
2820
  /usr/ucb/* ) ;;
2123
2821
  *)
2124
2822
    # OSF1 and SCO ODT 3.0 have their own names for install.
2155
2853
    ;;
2156
2854
esac
2157
2855
 
2158
 
done
 
2856
  done
2159
2857
IFS=$as_save_IFS
2160
2858
 
2161
2859
rm -rf conftest.one conftest.two conftest.dir
2171
2869
    INSTALL=$ac_install_sh
2172
2870
  fi
2173
2871
fi
2174
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2175
2873
$as_echo "$INSTALL" >&6; }
2176
2874
 
2177
2875
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2182
2880
 
2183
2881
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2184
2882
 
2185
 
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2186
2884
$as_echo_n "checking whether build environment is sane... " >&6; }
2187
2885
# Just in case
2188
2886
sleep 1
2189
2887
echo timestamp > conftest.file
 
2888
# Reject unsafe characters in $srcdir or the absolute working directory
 
2889
# name.  Accept space and tab only in the latter.
 
2890
am_lf='
 
2891
'
 
2892
case `pwd` in
 
2893
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2894
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2895
esac
 
2896
case $srcdir in
 
2897
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2898
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2899
esac
 
2900
 
2190
2901
# Do `set' in a subshell so we don't clobber the current shell's
2191
2902
# arguments.  Must try -L first in case configure is actually a
2192
2903
# symlink; some systems play weird games with the mod time of symlinks
2193
2904
# (eg FreeBSD returns the mod time of the symlink's containing
2194
2905
# directory).
2195
2906
if (
2196
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2907
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2197
2908
   if test "$*" = "X"; then
2198
2909
      # -L didn't work.
2199
 
      set X `ls -t $srcdir/configure conftest.file`
 
2910
      set X `ls -t "$srcdir/configure" conftest.file`
2200
2911
   fi
2201
2912
   rm -f conftest.file
2202
2913
   if test "$*" != "X $srcdir/configure conftest.file" \
2206
2917
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2207
2918
      # broken ls alias from the environment.  This has actually
2208
2919
      # happened.  Such a system could not be considered "sane".
2209
 
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2210
 
alias in your environment" >&5
2211
 
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2212
 
alias in your environment" >&2;}
2213
 
   { (exit 1); exit 1; }; }
 
2920
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2921
alias in your environment" "$LINENO" 5
2214
2922
   fi
2215
2923
 
2216
2924
   test "$2" = conftest.file
2219
2927
   # Ok.
2220
2928
   :
2221
2929
else
2222
 
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2223
 
Check your system clock" >&5
2224
 
$as_echo "$as_me: error: newly created file is older than distributed files!
2225
 
Check your system clock" >&2;}
2226
 
   { (exit 1); exit 1; }; }
 
2930
   as_fn_error "newly created file is older than distributed files!
 
2931
Check your system clock" "$LINENO" 5
2227
2932
fi
2228
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2229
2934
$as_echo "yes" >&6; }
2230
2935
test "$program_prefix" != NONE &&
2231
2936
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2240
2945
# expand $ac_aux_dir to an absolute path
2241
2946
am_aux_dir=`cd $ac_aux_dir && pwd`
2242
2947
 
2243
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2948
if test x"${MISSING+set}" != xset; then
 
2949
  case $am_aux_dir in
 
2950
  *\ * | *\     *)
 
2951
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2952
  *)
 
2953
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2954
  esac
 
2955
fi
2244
2956
# Use eval to expand $SHELL
2245
2957
if eval "$MISSING --run true"; then
2246
2958
  am_missing_run="$MISSING --run "
2247
2959
else
2248
2960
  am_missing_run=
2249
 
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2961
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2250
2962
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251
2963
fi
2252
2964
 
2253
 
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2965
if test x"${install_sh}" != xset; then
 
2966
  case $am_aux_dir in
 
2967
  *\ * | *\     *)
 
2968
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2969
  *)
 
2970
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2971
  esac
 
2972
fi
 
2973
 
 
2974
# Installed binaries are usually stripped using `strip' when the user
 
2975
# run `make install-strip'.  However `strip' might not be the right
 
2976
# tool to use in cross-compilation environments, therefore Automake
 
2977
# will honor the `STRIP' environment variable to overrule this program.
 
2978
if test "$cross_compiling" != no; then
 
2979
  if test -n "$ac_tool_prefix"; then
 
2980
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2981
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2983
$as_echo_n "checking for $ac_word... " >&6; }
 
2984
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2985
  $as_echo_n "(cached) " >&6
 
2986
else
 
2987
  if test -n "$STRIP"; then
 
2988
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2989
else
 
2990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2991
for as_dir in $PATH
 
2992
do
 
2993
  IFS=$as_save_IFS
 
2994
  test -z "$as_dir" && as_dir=.
 
2995
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2996
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2997
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2998
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2999
    break 2
 
3000
  fi
 
3001
done
 
3002
  done
 
3003
IFS=$as_save_IFS
 
3004
 
 
3005
fi
 
3006
fi
 
3007
STRIP=$ac_cv_prog_STRIP
 
3008
if test -n "$STRIP"; then
 
3009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3010
$as_echo "$STRIP" >&6; }
 
3011
else
 
3012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3013
$as_echo "no" >&6; }
 
3014
fi
 
3015
 
 
3016
 
 
3017
fi
 
3018
if test -z "$ac_cv_prog_STRIP"; then
 
3019
  ac_ct_STRIP=$STRIP
 
3020
  # Extract the first word of "strip", so it can be a program name with args.
 
3021
set dummy strip; ac_word=$2
 
3022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3023
$as_echo_n "checking for $ac_word... " >&6; }
 
3024
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3025
  $as_echo_n "(cached) " >&6
 
3026
else
 
3027
  if test -n "$ac_ct_STRIP"; then
 
3028
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3029
else
 
3030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3031
for as_dir in $PATH
 
3032
do
 
3033
  IFS=$as_save_IFS
 
3034
  test -z "$as_dir" && as_dir=.
 
3035
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3036
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3037
    ac_cv_prog_ac_ct_STRIP="strip"
 
3038
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3039
    break 2
 
3040
  fi
 
3041
done
 
3042
  done
 
3043
IFS=$as_save_IFS
 
3044
 
 
3045
fi
 
3046
fi
 
3047
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3048
if test -n "$ac_ct_STRIP"; then
 
3049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3050
$as_echo "$ac_ct_STRIP" >&6; }
 
3051
else
 
3052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3053
$as_echo "no" >&6; }
 
3054
fi
 
3055
 
 
3056
  if test "x$ac_ct_STRIP" = x; then
 
3057
    STRIP=":"
 
3058
  else
 
3059
    case $cross_compiling:$ac_tool_warned in
 
3060
yes:)
 
3061
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3062
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3063
ac_tool_warned=yes ;;
 
3064
esac
 
3065
    STRIP=$ac_ct_STRIP
 
3066
  fi
 
3067
else
 
3068
  STRIP="$ac_cv_prog_STRIP"
 
3069
fi
 
3070
 
 
3071
fi
 
3072
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3073
 
 
3074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2254
3075
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2255
3076
if test -z "$MKDIR_P"; then
2256
 
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3077
  if test "${ac_cv_path_mkdir+set}" = set; then :
2257
3078
  $as_echo_n "(cached) " >&6
2258
3079
else
2259
3080
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261
3082
do
2262
3083
  IFS=$as_save_IFS
2263
3084
  test -z "$as_dir" && as_dir=.
2264
 
  for ac_prog in mkdir gmkdir; do
 
3085
    for ac_prog in mkdir gmkdir; do
2265
3086
         for ac_exec_ext in '' $ac_executable_extensions; do
2266
3087
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2267
3088
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2273
3094
           esac
2274
3095
         done
2275
3096
       done
2276
 
done
 
3097
  done
2277
3098
IFS=$as_save_IFS
2278
3099
 
2279
3100
fi
2280
3101
 
 
3102
  test -d ./--version && rmdir ./--version
2281
3103
  if test "${ac_cv_path_mkdir+set}" = set; then
2282
3104
    MKDIR_P="$ac_cv_path_mkdir -p"
2283
3105
  else
2285
3107
    # value for MKDIR_P within a source directory, because that will
2286
3108
    # break other packages using the cache if that directory is
2287
3109
    # removed, or if the value is a relative name.
2288
 
    test -d ./--version && rmdir ./--version
2289
3110
    MKDIR_P="$ac_install_sh -d"
2290
3111
  fi
2291
3112
fi
2292
 
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2293
3114
$as_echo "$MKDIR_P" >&6; }
2294
3115
 
2295
3116
mkdir_p="$MKDIR_P"
2302
3123
do
2303
3124
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2304
3125
set dummy $ac_prog; ac_word=$2
2305
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2306
3127
$as_echo_n "checking for $ac_word... " >&6; }
2307
 
if test "${ac_cv_prog_AWK+set}" = set; then
 
3128
if test "${ac_cv_prog_AWK+set}" = set; then :
2308
3129
  $as_echo_n "(cached) " >&6
2309
3130
else
2310
3131
  if test -n "$AWK"; then
2315
3136
do
2316
3137
  IFS=$as_save_IFS
2317
3138
  test -z "$as_dir" && as_dir=.
2318
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3139
    for ac_exec_ext in '' $ac_executable_extensions; do
2319
3140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320
3141
    ac_cv_prog_AWK="$ac_prog"
2321
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3142
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322
3143
    break 2
2323
3144
  fi
2324
3145
done
2325
 
done
 
3146
  done
2326
3147
IFS=$as_save_IFS
2327
3148
 
2328
3149
fi
2329
3150
fi
2330
3151
AWK=$ac_cv_prog_AWK
2331
3152
if test -n "$AWK"; then
2332
 
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
3153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2333
3154
$as_echo "$AWK" >&6; }
2334
3155
else
2335
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2336
3157
$as_echo "no" >&6; }
2337
3158
fi
2338
3159
 
2340
3161
  test -n "$AWK" && break
2341
3162
done
2342
3163
 
2343
 
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2344
3165
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2345
3166
set x ${MAKE-make}
2346
3167
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2347
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3168
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2348
3169
  $as_echo_n "(cached) " >&6
2349
3170
else
2350
3171
  cat >conftest.make <<\_ACEOF
2362
3183
rm -f conftest.make
2363
3184
fi
2364
3185
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2365
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366
3187
$as_echo "yes" >&6; }
2367
3188
  SET_MAKE=
2368
3189
else
2369
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370
3191
$as_echo "no" >&6; }
2371
3192
  SET_MAKE="MAKE=${MAKE-make}"
2372
3193
fi
2386
3207
  am__isrc=' -I$(srcdir)'
2387
3208
  # test to see if srcdir already configured
2388
3209
  if test -f $srcdir/config.status; then
2389
 
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2390
 
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2391
 
   { (exit 1); exit 1; }; }
 
3210
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2392
3211
  fi
2393
3212
fi
2394
3213
 
2404
3223
 
2405
3224
# Define the identity of the package.
2406
3225
 PACKAGE='hello'
2407
 
 VERSION='2.4'
 
3226
 VERSION='2.5'
2408
3227
 
2409
3228
 
2410
3229
cat >>confdefs.h <<_ACEOF
2432
3251
 
2433
3252
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
3253
 
2435
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2436
 
 
2437
 
# Installed binaries are usually stripped using `strip' when the user
2438
 
# run `make install-strip'.  However `strip' might not be the right
2439
 
# tool to use in cross-compilation environments, therefore Automake
2440
 
# will honor the `STRIP' environment variable to overrule this program.
2441
 
if test "$cross_compiling" != no; then
2442
 
  if test -n "$ac_tool_prefix"; then
2443
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2445
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446
 
$as_echo_n "checking for $ac_word... " >&6; }
2447
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2448
 
  $as_echo_n "(cached) " >&6
2449
 
else
2450
 
  if test -n "$STRIP"; then
2451
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452
 
else
2453
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454
 
for as_dir in $PATH
2455
 
do
2456
 
  IFS=$as_save_IFS
2457
 
  test -z "$as_dir" && as_dir=.
2458
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2459
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462
 
    break 2
2463
 
  fi
2464
 
done
2465
 
done
2466
 
IFS=$as_save_IFS
2467
 
 
2468
 
fi
2469
 
fi
2470
 
STRIP=$ac_cv_prog_STRIP
2471
 
if test -n "$STRIP"; then
2472
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2473
 
$as_echo "$STRIP" >&6; }
2474
 
else
2475
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2476
 
$as_echo "no" >&6; }
2477
 
fi
2478
 
 
2479
 
 
2480
 
fi
2481
 
if test -z "$ac_cv_prog_STRIP"; then
2482
 
  ac_ct_STRIP=$STRIP
2483
 
  # Extract the first word of "strip", so it can be a program name with args.
2484
 
set dummy strip; ac_word=$2
2485
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2486
 
$as_echo_n "checking for $ac_word... " >&6; }
2487
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488
 
  $as_echo_n "(cached) " >&6
2489
 
else
2490
 
  if test -n "$ac_ct_STRIP"; then
2491
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492
 
else
2493
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494
 
for as_dir in $PATH
2495
 
do
2496
 
  IFS=$as_save_IFS
2497
 
  test -z "$as_dir" && as_dir=.
2498
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2499
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500
 
    ac_cv_prog_ac_ct_STRIP="strip"
2501
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502
 
    break 2
2503
 
  fi
2504
 
done
2505
 
done
2506
 
IFS=$as_save_IFS
2507
 
 
2508
 
fi
2509
 
fi
2510
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511
 
if test -n "$ac_ct_STRIP"; then
2512
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513
 
$as_echo "$ac_ct_STRIP" >&6; }
2514
 
else
2515
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2516
 
$as_echo "no" >&6; }
2517
 
fi
2518
 
 
2519
 
  if test "x$ac_ct_STRIP" = x; then
2520
 
    STRIP=":"
2521
 
  else
2522
 
    case $cross_compiling:$ac_tool_warned in
2523
 
yes:)
2524
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2525
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526
 
ac_tool_warned=yes ;;
2527
 
esac
2528
 
    STRIP=$ac_ct_STRIP
2529
 
  fi
2530
 
else
2531
 
  STRIP="$ac_cv_prog_STRIP"
2532
 
fi
2533
 
 
2534
 
fi
2535
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2536
 
 
2537
3254
# We need awk for the "check" target.  The system "awk" is bad on
2538
3255
# some platforms.
2539
3256
# Always define AMTAR for backward compatibility.
2563
3280
if test -n "$ac_tool_prefix"; then
2564
3281
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565
3282
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567
3284
$as_echo_n "checking for $ac_word... " >&6; }
2568
 
if test "${ac_cv_prog_CC+set}" = set; then
 
3285
if test "${ac_cv_prog_CC+set}" = set; then :
2569
3286
  $as_echo_n "(cached) " >&6
2570
3287
else
2571
3288
  if test -n "$CC"; then
2576
3293
do
2577
3294
  IFS=$as_save_IFS
2578
3295
  test -z "$as_dir" && as_dir=.
2579
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3296
    for ac_exec_ext in '' $ac_executable_extensions; do
2580
3297
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581
3298
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3299
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583
3300
    break 2
2584
3301
  fi
2585
3302
done
2586
 
done
 
3303
  done
2587
3304
IFS=$as_save_IFS
2588
3305
 
2589
3306
fi
2590
3307
fi
2591
3308
CC=$ac_cv_prog_CC
2592
3309
if test -n "$CC"; then
2593
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594
3311
$as_echo "$CC" >&6; }
2595
3312
else
2596
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597
3314
$as_echo "no" >&6; }
2598
3315
fi
2599
3316
 
2603
3320
  ac_ct_CC=$CC
2604
3321
  # Extract the first word of "gcc", so it can be a program name with args.
2605
3322
set dummy gcc; ac_word=$2
2606
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607
3324
$as_echo_n "checking for $ac_word... " >&6; }
2608
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3325
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2609
3326
  $as_echo_n "(cached) " >&6
2610
3327
else
2611
3328
  if test -n "$ac_ct_CC"; then
2616
3333
do
2617
3334
  IFS=$as_save_IFS
2618
3335
  test -z "$as_dir" && as_dir=.
2619
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3336
    for ac_exec_ext in '' $ac_executable_extensions; do
2620
3337
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621
3338
    ac_cv_prog_ac_ct_CC="gcc"
2622
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3339
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623
3340
    break 2
2624
3341
  fi
2625
3342
done
2626
 
done
 
3343
  done
2627
3344
IFS=$as_save_IFS
2628
3345
 
2629
3346
fi
2630
3347
fi
2631
3348
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632
3349
if test -n "$ac_ct_CC"; then
2633
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2634
3351
$as_echo "$ac_ct_CC" >&6; }
2635
3352
else
2636
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637
3354
$as_echo "no" >&6; }
2638
3355
fi
2639
3356
 
2642
3359
  else
2643
3360
    case $cross_compiling:$ac_tool_warned in
2644
3361
yes:)
2645
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646
3363
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647
3364
ac_tool_warned=yes ;;
2648
3365
esac
2656
3373
          if test -n "$ac_tool_prefix"; then
2657
3374
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2658
3375
set dummy ${ac_tool_prefix}cc; ac_word=$2
2659
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660
3377
$as_echo_n "checking for $ac_word... " >&6; }
2661
 
if test "${ac_cv_prog_CC+set}" = set; then
 
3378
if test "${ac_cv_prog_CC+set}" = set; then :
2662
3379
  $as_echo_n "(cached) " >&6
2663
3380
else
2664
3381
  if test -n "$CC"; then
2669
3386
do
2670
3387
  IFS=$as_save_IFS
2671
3388
  test -z "$as_dir" && as_dir=.
2672
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3389
    for ac_exec_ext in '' $ac_executable_extensions; do
2673
3390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674
3391
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2675
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3392
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676
3393
    break 2
2677
3394
  fi
2678
3395
done
2679
 
done
 
3396
  done
2680
3397
IFS=$as_save_IFS
2681
3398
 
2682
3399
fi
2683
3400
fi
2684
3401
CC=$ac_cv_prog_CC
2685
3402
if test -n "$CC"; then
2686
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687
3404
$as_echo "$CC" >&6; }
2688
3405
else
2689
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3406
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690
3407
$as_echo "no" >&6; }
2691
3408
fi
2692
3409
 
2696
3413
if test -z "$CC"; then
2697
3414
  # Extract the first word of "cc", so it can be a program name with args.
2698
3415
set dummy cc; ac_word=$2
2699
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700
3417
$as_echo_n "checking for $ac_word... " >&6; }
2701
 
if test "${ac_cv_prog_CC+set}" = set; then
 
3418
if test "${ac_cv_prog_CC+set}" = set; then :
2702
3419
  $as_echo_n "(cached) " >&6
2703
3420
else
2704
3421
  if test -n "$CC"; then
2710
3427
do
2711
3428
  IFS=$as_save_IFS
2712
3429
  test -z "$as_dir" && as_dir=.
2713
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3430
    for ac_exec_ext in '' $ac_executable_extensions; do
2714
3431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715
3432
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2716
3433
       ac_prog_rejected=yes
2717
3434
       continue
2718
3435
     fi
2719
3436
    ac_cv_prog_CC="cc"
2720
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721
3438
    break 2
2722
3439
  fi
2723
3440
done
2724
 
done
 
3441
  done
2725
3442
IFS=$as_save_IFS
2726
3443
 
2727
3444
if test $ac_prog_rejected = yes; then
2740
3457
fi
2741
3458
CC=$ac_cv_prog_CC
2742
3459
if test -n "$CC"; then
2743
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744
3461
$as_echo "$CC" >&6; }
2745
3462
else
2746
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747
3464
$as_echo "no" >&6; }
2748
3465
fi
2749
3466
 
2755
3472
  do
2756
3473
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2757
3474
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2758
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759
3476
$as_echo_n "checking for $ac_word... " >&6; }
2760
 
if test "${ac_cv_prog_CC+set}" = set; then
 
3477
if test "${ac_cv_prog_CC+set}" = set; then :
2761
3478
  $as_echo_n "(cached) " >&6
2762
3479
else
2763
3480
  if test -n "$CC"; then
2768
3485
do
2769
3486
  IFS=$as_save_IFS
2770
3487
  test -z "$as_dir" && as_dir=.
2771
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3488
    for ac_exec_ext in '' $ac_executable_extensions; do
2772
3489
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773
3490
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2774
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3491
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775
3492
    break 2
2776
3493
  fi
2777
3494
done
2778
 
done
 
3495
  done
2779
3496
IFS=$as_save_IFS
2780
3497
 
2781
3498
fi
2782
3499
fi
2783
3500
CC=$ac_cv_prog_CC
2784
3501
if test -n "$CC"; then
2785
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786
3503
$as_echo "$CC" >&6; }
2787
3504
else
2788
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789
3506
$as_echo "no" >&6; }
2790
3507
fi
2791
3508
 
2799
3516
do
2800
3517
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2801
3518
set dummy $ac_prog; ac_word=$2
2802
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803
3520
$as_echo_n "checking for $ac_word... " >&6; }
2804
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3521
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2805
3522
  $as_echo_n "(cached) " >&6
2806
3523
else
2807
3524
  if test -n "$ac_ct_CC"; then
2812
3529
do
2813
3530
  IFS=$as_save_IFS
2814
3531
  test -z "$as_dir" && as_dir=.
2815
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3532
    for ac_exec_ext in '' $ac_executable_extensions; do
2816
3533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817
3534
    ac_cv_prog_ac_ct_CC="$ac_prog"
2818
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3535
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819
3536
    break 2
2820
3537
  fi
2821
3538
done
2822
 
done
 
3539
  done
2823
3540
IFS=$as_save_IFS
2824
3541
 
2825
3542
fi
2826
3543
fi
2827
3544
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828
3545
if test -n "$ac_ct_CC"; then
2829
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2830
3547
$as_echo "$ac_ct_CC" >&6; }
2831
3548
else
2832
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833
3550
$as_echo "no" >&6; }
2834
3551
fi
2835
3552
 
2842
3559
  else
2843
3560
    case $cross_compiling:$ac_tool_warned in
2844
3561
yes:)
2845
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846
3563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847
3564
ac_tool_warned=yes ;;
2848
3565
esac
2853
3570
fi
2854
3571
 
2855
3572
 
2856
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3573
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857
3574
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859
 
See \`config.log' for more details." >&5
2860
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2861
 
See \`config.log' for more details." >&2;}
2862
 
   { (exit 1); exit 1; }; }; }
 
3575
as_fn_error "no acceptable C compiler found in \$PATH
 
3576
See \`config.log' for more details." "$LINENO" 5; }
2863
3577
 
2864
3578
# Provide some information about the compiler.
2865
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3579
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2866
3580
set X $ac_compile
2867
3581
ac_compiler=$2
2868
 
{ (ac_try="$ac_compiler --version >&5"
2869
 
case "(($ac_try" in
2870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871
 
  *) ac_try_echo=$ac_try;;
2872
 
esac
2873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874
 
$as_echo "$ac_try_echo") >&5
2875
 
  (eval "$ac_compiler --version >&5") 2>&5
2876
 
  ac_status=$?
2877
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
 
  (exit $ac_status); }
2879
 
{ (ac_try="$ac_compiler -v >&5"
2880
 
case "(($ac_try" in
2881
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882
 
  *) ac_try_echo=$ac_try;;
2883
 
esac
2884
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885
 
$as_echo "$ac_try_echo") >&5
2886
 
  (eval "$ac_compiler -v >&5") 2>&5
2887
 
  ac_status=$?
2888
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
 
  (exit $ac_status); }
2890
 
{ (ac_try="$ac_compiler -V >&5"
2891
 
case "(($ac_try" in
2892
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893
 
  *) ac_try_echo=$ac_try;;
2894
 
esac
2895
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896
 
$as_echo "$ac_try_echo") >&5
2897
 
  (eval "$ac_compiler -V >&5") 2>&5
2898
 
  ac_status=$?
2899
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900
 
  (exit $ac_status); }
 
3582
for ac_option in --version -v -V -qversion; do
 
3583
  { { ac_try="$ac_compiler $ac_option >&5"
 
3584
case "(($ac_try" in
 
3585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3586
  *) ac_try_echo=$ac_try;;
 
3587
esac
 
3588
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3589
$as_echo "$ac_try_echo"; } >&5
 
3590
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3591
  ac_status=$?
 
3592
  if test -s conftest.err; then
 
3593
    sed '10a\
 
3594
... rest of stderr output deleted ...
 
3595
         10q' conftest.err >conftest.er1
 
3596
    cat conftest.er1 >&5
 
3597
  fi
 
3598
  rm -f conftest.er1 conftest.err
 
3599
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3600
  test $ac_status = 0; }
 
3601
done
2901
3602
 
2902
 
cat >conftest.$ac_ext <<_ACEOF
2903
 
/* confdefs.h.  */
2904
 
_ACEOF
2905
 
cat confdefs.h >>conftest.$ac_ext
2906
 
cat >>conftest.$ac_ext <<_ACEOF
 
3603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907
3604
/* end confdefs.h.  */
2908
3605
 
2909
3606
int
2919
3616
# Try to create an executable without -o first, disregard a.out.
2920
3617
# It will help us diagnose broken compilers, and finding out an intuition
2921
3618
# of exeext.
2922
 
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3620
$as_echo_n "checking whether the C compiler works... " >&6; }
2924
3621
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925
3622
 
2926
3623
# The possible output files:
2936
3633
done
2937
3634
rm -f $ac_rmfiles
2938
3635
 
2939
 
if { (ac_try="$ac_link_default"
 
3636
if { { ac_try="$ac_link_default"
2940
3637
case "(($ac_try" in
2941
3638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942
3639
  *) ac_try_echo=$ac_try;;
2943
3640
esac
2944
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945
 
$as_echo "$ac_try_echo") >&5
 
3641
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3642
$as_echo "$ac_try_echo"; } >&5
2946
3643
  (eval "$ac_link_default") 2>&5
2947
3644
  ac_status=$?
2948
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
 
  (exit $ac_status); }; then
 
3645
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3646
  test $ac_status = 0; }; then :
2950
3647
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951
3648
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952
3649
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2963
3660
        # certainly right.
2964
3661
        break;;
2965
3662
    *.* )
2966
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3663
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967
3664
        then :; else
2968
3665
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969
3666
        fi
2982
3679
else
2983
3680
  ac_file=''
2984
3681
fi
 
3682
if test -z "$ac_file"; then :
 
3683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3684
$as_echo "no" >&6; }
 
3685
$as_echo "$as_me: failed program was:" >&5
 
3686
sed 's/^/| /' conftest.$ac_ext >&5
2985
3687
 
2986
 
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3688
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3689
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3690
{ as_fn_set_status 77
 
3691
as_fn_error "C compiler cannot create executables
 
3692
See \`config.log' for more details." "$LINENO" 5; }; }
 
3693
else
 
3694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3695
$as_echo "yes" >&6; }
 
3696
fi
 
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3698
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2987
3700
$as_echo "$ac_file" >&6; }
2988
 
if test -z "$ac_file"; then
2989
 
  $as_echo "$as_me: failed program was:" >&5
2990
 
sed 's/^/| /' conftest.$ac_ext >&5
2991
 
 
2992
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2993
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994
 
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2995
 
See \`config.log' for more details." >&5
2996
 
$as_echo "$as_me: error: C compiler cannot create executables
2997
 
See \`config.log' for more details." >&2;}
2998
 
   { (exit 77); exit 77; }; }; }
2999
 
fi
3000
 
 
3001
3701
ac_exeext=$ac_cv_exeext
3002
3702
 
3003
 
# Check that the compiler produces executables we can run.  If not, either
3004
 
# the compiler is broken, or we cross compile.
3005
 
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3006
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3007
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3008
 
# If not cross compiling, check that we can run a simple program.
3009
 
if test "$cross_compiling" != yes; then
3010
 
  if { ac_try='./$ac_file'
3011
 
  { (case "(($ac_try" in
3012
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013
 
  *) ac_try_echo=$ac_try;;
3014
 
esac
3015
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016
 
$as_echo "$ac_try_echo") >&5
3017
 
  (eval "$ac_try") 2>&5
3018
 
  ac_status=$?
3019
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
 
  (exit $ac_status); }; }; then
3021
 
    cross_compiling=no
3022
 
  else
3023
 
    if test "$cross_compiling" = maybe; then
3024
 
        cross_compiling=yes
3025
 
    else
3026
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028
 
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3029
 
If you meant to cross compile, use \`--host'.
3030
 
See \`config.log' for more details." >&5
3031
 
$as_echo "$as_me: error: cannot run C compiled programs.
3032
 
If you meant to cross compile, use \`--host'.
3033
 
See \`config.log' for more details." >&2;}
3034
 
   { (exit 1); exit 1; }; }; }
3035
 
    fi
3036
 
  fi
3037
 
fi
3038
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3039
 
$as_echo "yes" >&6; }
3040
 
 
3041
3703
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042
3704
ac_clean_files=$ac_clean_files_save
3043
 
# Check that the compiler produces executables we can run.  If not, either
3044
 
# the compiler is broken, or we cross compile.
3045
 
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3046
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3047
 
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3048
 
$as_echo "$cross_compiling" >&6; }
3049
 
 
3050
 
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3051
3706
$as_echo_n "checking for suffix of executables... " >&6; }
3052
 
if { (ac_try="$ac_link"
 
3707
if { { ac_try="$ac_link"
3053
3708
case "(($ac_try" in
3054
3709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055
3710
  *) ac_try_echo=$ac_try;;
3056
3711
esac
3057
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058
 
$as_echo "$ac_try_echo") >&5
 
3712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3713
$as_echo "$ac_try_echo"; } >&5
3059
3714
  (eval "$ac_link") 2>&5
3060
3715
  ac_status=$?
3061
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062
 
  (exit $ac_status); }; then
 
3716
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3717
  test $ac_status = 0; }; then :
3063
3718
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064
3719
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3065
3720
# work properly (i.e., refer to `conftest.exe'), while it won't with
3074
3729
  esac
3075
3730
done
3076
3731
else
3077
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3732
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078
3733
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080
 
See \`config.log' for more details." >&5
3081
 
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082
 
See \`config.log' for more details." >&2;}
3083
 
   { (exit 1); exit 1; }; }; }
 
3734
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3735
See \`config.log' for more details." "$LINENO" 5; }
3084
3736
fi
3085
 
 
3086
 
rm -f conftest$ac_cv_exeext
3087
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3737
rm -f conftest conftest$ac_cv_exeext
 
3738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3088
3739
$as_echo "$ac_cv_exeext" >&6; }
3089
3740
 
3090
3741
rm -f conftest.$ac_ext
3091
3742
EXEEXT=$ac_cv_exeext
3092
3743
ac_exeext=$EXEEXT
3093
 
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3745
/* end confdefs.h.  */
 
3746
#include <stdio.h>
 
3747
int
 
3748
main ()
 
3749
{
 
3750
FILE *f = fopen ("conftest.out", "w");
 
3751
 return ferror (f) || fclose (f) != 0;
 
3752
 
 
3753
  ;
 
3754
  return 0;
 
3755
}
 
3756
_ACEOF
 
3757
ac_clean_files="$ac_clean_files conftest.out"
 
3758
# Check that the compiler produces executables we can run.  If not, either
 
3759
# the compiler is broken, or we cross compile.
 
3760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3761
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3762
if test "$cross_compiling" != yes; then
 
3763
  { { ac_try="$ac_link"
 
3764
case "(($ac_try" in
 
3765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3766
  *) ac_try_echo=$ac_try;;
 
3767
esac
 
3768
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3769
$as_echo "$ac_try_echo"; } >&5
 
3770
  (eval "$ac_link") 2>&5
 
3771
  ac_status=$?
 
3772
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3773
  test $ac_status = 0; }
 
3774
  if { ac_try='./conftest$ac_cv_exeext'
 
3775
  { { case "(($ac_try" in
 
3776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3777
  *) ac_try_echo=$ac_try;;
 
3778
esac
 
3779
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3780
$as_echo "$ac_try_echo"; } >&5
 
3781
  (eval "$ac_try") 2>&5
 
3782
  ac_status=$?
 
3783
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3784
  test $ac_status = 0; }; }; then
 
3785
    cross_compiling=no
 
3786
  else
 
3787
    if test "$cross_compiling" = maybe; then
 
3788
        cross_compiling=yes
 
3789
    else
 
3790
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3791
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3792
as_fn_error "cannot run C compiled programs.
 
3793
If you meant to cross compile, use \`--host'.
 
3794
See \`config.log' for more details." "$LINENO" 5; }
 
3795
    fi
 
3796
  fi
 
3797
fi
 
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3799
$as_echo "$cross_compiling" >&6; }
 
3800
 
 
3801
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3802
ac_clean_files=$ac_clean_files_save
 
3803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3094
3804
$as_echo_n "checking for suffix of object files... " >&6; }
3095
 
if test "${ac_cv_objext+set}" = set; then
 
3805
if test "${ac_cv_objext+set}" = set; then :
3096
3806
  $as_echo_n "(cached) " >&6
3097
3807
else
3098
 
  cat >conftest.$ac_ext <<_ACEOF
3099
 
/* confdefs.h.  */
3100
 
_ACEOF
3101
 
cat confdefs.h >>conftest.$ac_ext
3102
 
cat >>conftest.$ac_ext <<_ACEOF
 
3808
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103
3809
/* end confdefs.h.  */
3104
3810
 
3105
3811
int
3111
3817
}
3112
3818
_ACEOF
3113
3819
rm -f conftest.o conftest.obj
3114
 
if { (ac_try="$ac_compile"
 
3820
if { { ac_try="$ac_compile"
3115
3821
case "(($ac_try" in
3116
3822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117
3823
  *) ac_try_echo=$ac_try;;
3118
3824
esac
3119
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120
 
$as_echo "$ac_try_echo") >&5
 
3825
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3826
$as_echo "$ac_try_echo"; } >&5
3121
3827
  (eval "$ac_compile") 2>&5
3122
3828
  ac_status=$?
3123
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124
 
  (exit $ac_status); }; then
 
3829
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3830
  test $ac_status = 0; }; then :
3125
3831
  for ac_file in conftest.o conftest.obj conftest.*; do
3126
3832
  test -f "$ac_file" || continue;
3127
3833
  case $ac_file in
3134
3840
  $as_echo "$as_me: failed program was:" >&5
3135
3841
sed 's/^/| /' conftest.$ac_ext >&5
3136
3842
 
3137
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3843
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138
3844
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3140
 
See \`config.log' for more details." >&5
3141
 
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3142
 
See \`config.log' for more details." >&2;}
3143
 
   { (exit 1); exit 1; }; }; }
 
3845
as_fn_error "cannot compute suffix of object files: cannot compile
 
3846
See \`config.log' for more details." "$LINENO" 5; }
3144
3847
fi
3145
 
 
3146
3848
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147
3849
fi
3148
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3149
3851
$as_echo "$ac_cv_objext" >&6; }
3150
3852
OBJEXT=$ac_cv_objext
3151
3853
ac_objext=$OBJEXT
3152
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3153
3855
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3154
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3856
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3155
3857
  $as_echo_n "(cached) " >&6
3156
3858
else
3157
 
  cat >conftest.$ac_ext <<_ACEOF
3158
 
/* confdefs.h.  */
3159
 
_ACEOF
3160
 
cat confdefs.h >>conftest.$ac_ext
3161
 
cat >>conftest.$ac_ext <<_ACEOF
 
3859
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162
3860
/* end confdefs.h.  */
3163
3861
 
3164
3862
int
3172
3870
  return 0;
3173
3871
}
3174
3872
_ACEOF
3175
 
rm -f conftest.$ac_objext
3176
 
if { (ac_try="$ac_compile"
3177
 
case "(($ac_try" in
3178
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179
 
  *) ac_try_echo=$ac_try;;
3180
 
esac
3181
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182
 
$as_echo "$ac_try_echo") >&5
3183
 
  (eval "$ac_compile") 2>conftest.er1
3184
 
  ac_status=$?
3185
 
  grep -v '^ *+' conftest.er1 >conftest.err
3186
 
  rm -f conftest.er1
3187
 
  cat conftest.err >&5
3188
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189
 
  (exit $ac_status); } && {
3190
 
         test -z "$ac_c_werror_flag" ||
3191
 
         test ! -s conftest.err
3192
 
       } && test -s conftest.$ac_objext; then
 
3873
if ac_fn_c_try_compile "$LINENO"; then :
3193
3874
  ac_compiler_gnu=yes
3194
3875
else
3195
 
  $as_echo "$as_me: failed program was:" >&5
3196
 
sed 's/^/| /' conftest.$ac_ext >&5
3197
 
 
3198
 
        ac_compiler_gnu=no
 
3876
  ac_compiler_gnu=no
3199
3877
fi
3200
 
 
3201
3878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202
3879
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3880
 
3204
3881
fi
3205
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3206
3883
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3207
3884
if test $ac_compiler_gnu = yes; then
3208
3885
  GCC=yes
3211
3888
fi
3212
3889
ac_test_CFLAGS=${CFLAGS+set}
3213
3890
ac_save_CFLAGS=$CFLAGS
3214
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3215
3892
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3216
 
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3893
if test "${ac_cv_prog_cc_g+set}" = set; then :
3217
3894
  $as_echo_n "(cached) " >&6
3218
3895
else
3219
3896
  ac_save_c_werror_flag=$ac_c_werror_flag
3220
3897
   ac_c_werror_flag=yes
3221
3898
   ac_cv_prog_cc_g=no
3222
3899
   CFLAGS="-g"
3223
 
   cat >conftest.$ac_ext <<_ACEOF
3224
 
/* confdefs.h.  */
3225
 
_ACEOF
3226
 
cat confdefs.h >>conftest.$ac_ext
3227
 
cat >>conftest.$ac_ext <<_ACEOF
 
3900
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228
3901
/* end confdefs.h.  */
3229
3902
 
3230
3903
int
3235
3908
  return 0;
3236
3909
}
3237
3910
_ACEOF
3238
 
rm -f conftest.$ac_objext
3239
 
if { (ac_try="$ac_compile"
3240
 
case "(($ac_try" in
3241
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242
 
  *) ac_try_echo=$ac_try;;
3243
 
esac
3244
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245
 
$as_echo "$ac_try_echo") >&5
3246
 
  (eval "$ac_compile") 2>conftest.er1
3247
 
  ac_status=$?
3248
 
  grep -v '^ *+' conftest.er1 >conftest.err
3249
 
  rm -f conftest.er1
3250
 
  cat conftest.err >&5
3251
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252
 
  (exit $ac_status); } && {
3253
 
         test -z "$ac_c_werror_flag" ||
3254
 
         test ! -s conftest.err
3255
 
       } && test -s conftest.$ac_objext; then
 
3911
if ac_fn_c_try_compile "$LINENO"; then :
3256
3912
  ac_cv_prog_cc_g=yes
3257
3913
else
3258
 
  $as_echo "$as_me: failed program was:" >&5
3259
 
sed 's/^/| /' conftest.$ac_ext >&5
3260
 
 
3261
 
        CFLAGS=""
3262
 
      cat >conftest.$ac_ext <<_ACEOF
3263
 
/* confdefs.h.  */
3264
 
_ACEOF
3265
 
cat confdefs.h >>conftest.$ac_ext
3266
 
cat >>conftest.$ac_ext <<_ACEOF
 
3914
  CFLAGS=""
 
3915
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267
3916
/* end confdefs.h.  */
3268
3917
 
3269
3918
int
3274
3923
  return 0;
3275
3924
}
3276
3925
_ACEOF
3277
 
rm -f conftest.$ac_objext
3278
 
if { (ac_try="$ac_compile"
3279
 
case "(($ac_try" in
3280
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281
 
  *) ac_try_echo=$ac_try;;
3282
 
esac
3283
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284
 
$as_echo "$ac_try_echo") >&5
3285
 
  (eval "$ac_compile") 2>conftest.er1
3286
 
  ac_status=$?
3287
 
  grep -v '^ *+' conftest.er1 >conftest.err
3288
 
  rm -f conftest.er1
3289
 
  cat conftest.err >&5
3290
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291
 
  (exit $ac_status); } && {
3292
 
         test -z "$ac_c_werror_flag" ||
3293
 
         test ! -s conftest.err
3294
 
       } && test -s conftest.$ac_objext; then
3295
 
  :
 
3926
if ac_fn_c_try_compile "$LINENO"; then :
 
3927
 
3296
3928
else
3297
 
  $as_echo "$as_me: failed program was:" >&5
3298
 
sed 's/^/| /' conftest.$ac_ext >&5
3299
 
 
3300
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3929
  ac_c_werror_flag=$ac_save_c_werror_flag
3301
3930
         CFLAGS="-g"
3302
 
         cat >conftest.$ac_ext <<_ACEOF
3303
 
/* confdefs.h.  */
3304
 
_ACEOF
3305
 
cat confdefs.h >>conftest.$ac_ext
3306
 
cat >>conftest.$ac_ext <<_ACEOF
 
3931
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307
3932
/* end confdefs.h.  */
3308
3933
 
3309
3934
int
3314
3939
  return 0;
3315
3940
}
3316
3941
_ACEOF
3317
 
rm -f conftest.$ac_objext
3318
 
if { (ac_try="$ac_compile"
3319
 
case "(($ac_try" in
3320
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321
 
  *) ac_try_echo=$ac_try;;
3322
 
esac
3323
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324
 
$as_echo "$ac_try_echo") >&5
3325
 
  (eval "$ac_compile") 2>conftest.er1
3326
 
  ac_status=$?
3327
 
  grep -v '^ *+' conftest.er1 >conftest.err
3328
 
  rm -f conftest.er1
3329
 
  cat conftest.err >&5
3330
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331
 
  (exit $ac_status); } && {
3332
 
         test -z "$ac_c_werror_flag" ||
3333
 
         test ! -s conftest.err
3334
 
       } && test -s conftest.$ac_objext; then
 
3942
if ac_fn_c_try_compile "$LINENO"; then :
3335
3943
  ac_cv_prog_cc_g=yes
3336
 
else
3337
 
  $as_echo "$as_me: failed program was:" >&5
3338
 
sed 's/^/| /' conftest.$ac_ext >&5
3339
 
 
3340
 
 
3341
 
fi
3342
 
 
3343
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344
 
fi
3345
 
 
3346
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347
 
fi
3348
 
 
 
3944
fi
 
3945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3946
fi
 
3947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3948
fi
3349
3949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350
3950
   ac_c_werror_flag=$ac_save_c_werror_flag
3351
3951
fi
3352
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353
3953
$as_echo "$ac_cv_prog_cc_g" >&6; }
3354
3954
if test "$ac_test_CFLAGS" = set; then
3355
3955
  CFLAGS=$ac_save_CFLAGS
3366
3966
    CFLAGS=
3367
3967
  fi
3368
3968
fi
3369
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370
3970
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3971
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3372
3972
  $as_echo_n "(cached) " >&6
3373
3973
else
3374
3974
  ac_cv_prog_cc_c89=no
3375
3975
ac_save_CC=$CC
3376
 
cat >conftest.$ac_ext <<_ACEOF
3377
 
/* confdefs.h.  */
3378
 
_ACEOF
3379
 
cat confdefs.h >>conftest.$ac_ext
3380
 
cat >>conftest.$ac_ext <<_ACEOF
 
3976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381
3977
/* end confdefs.h.  */
3382
3978
#include <stdarg.h>
3383
3979
#include <stdio.h>
3434
4030
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3435
4031
do
3436
4032
  CC="$ac_save_CC $ac_arg"
3437
 
  rm -f conftest.$ac_objext
3438
 
if { (ac_try="$ac_compile"
3439
 
case "(($ac_try" in
3440
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441
 
  *) ac_try_echo=$ac_try;;
3442
 
esac
3443
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444
 
$as_echo "$ac_try_echo") >&5
3445
 
  (eval "$ac_compile") 2>conftest.er1
3446
 
  ac_status=$?
3447
 
  grep -v '^ *+' conftest.er1 >conftest.err
3448
 
  rm -f conftest.er1
3449
 
  cat conftest.err >&5
3450
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451
 
  (exit $ac_status); } && {
3452
 
         test -z "$ac_c_werror_flag" ||
3453
 
         test ! -s conftest.err
3454
 
       } && test -s conftest.$ac_objext; then
 
4033
  if ac_fn_c_try_compile "$LINENO"; then :
3455
4034
  ac_cv_prog_cc_c89=$ac_arg
3456
 
else
3457
 
  $as_echo "$as_me: failed program was:" >&5
3458
 
sed 's/^/| /' conftest.$ac_ext >&5
3459
 
 
3460
 
 
3461
4035
fi
3462
 
 
3463
4036
rm -f core conftest.err conftest.$ac_objext
3464
4037
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3465
4038
done
3470
4043
# AC_CACHE_VAL
3471
4044
case "x$ac_cv_prog_cc_c89" in
3472
4045
  x)
3473
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4046
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3474
4047
$as_echo "none needed" >&6; } ;;
3475
4048
  xno)
3476
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4049
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3477
4050
$as_echo "unsupported" >&6; } ;;
3478
4051
  *)
3479
4052
    CC="$CC $ac_cv_prog_cc_c89"
3480
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4053
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3481
4054
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3482
4055
esac
 
4056
if test "x$ac_cv_prog_cc_c89" != xno; then :
3483
4057
 
 
4058
fi
3484
4059
 
3485
4060
ac_ext=c
3486
4061
ac_cpp='$CPP $CPPFLAGS'
3495
4070
am_make=${MAKE-make}
3496
4071
cat > confinc << 'END'
3497
4072
am__doit:
3498
 
        @echo done
 
4073
        @echo this is the am__doit target
3499
4074
.PHONY: am__doit
3500
4075
END
3501
4076
# If we don't find an include directive, just comment out the code.
3502
 
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3503
4078
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3504
4079
am__include="#"
3505
4080
am__quote=
3506
4081
_am_result=none
3507
4082
# First try GNU make style include.
3508
4083
echo "include confinc" > confmf
3509
 
# We grep out `Entering directory' and `Leaving directory'
3510
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3511
 
# In particular we don't look at `^make:' because GNU make might
3512
 
# be invoked under some other name (usually "gmake"), in which
3513
 
# case it prints its new name instead of `make'.
3514
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3515
 
   am__include=include
3516
 
   am__quote=
3517
 
   _am_result=GNU
3518
 
fi
 
4084
# Ignore all kinds of additional output from `make'.
 
4085
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4086
*the\ am__doit\ target*)
 
4087
  am__include=include
 
4088
  am__quote=
 
4089
  _am_result=GNU
 
4090
  ;;
 
4091
esac
3519
4092
# Now try BSD make style include.
3520
4093
if test "$am__include" = "#"; then
3521
4094
   echo '.include "confinc"' > confmf
3522
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3523
 
      am__include=.include
3524
 
      am__quote="\""
3525
 
      _am_result=BSD
3526
 
   fi
 
4095
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4096
   *the\ am__doit\ target*)
 
4097
     am__include=.include
 
4098
     am__quote="\""
 
4099
     _am_result=BSD
 
4100
     ;;
 
4101
   esac
3527
4102
fi
3528
4103
 
3529
4104
 
3530
 
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
4105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3531
4106
$as_echo "$_am_result" >&6; }
3532
4107
rm -f confinc confmf
3533
4108
 
3534
4109
# Check whether --enable-dependency-tracking was given.
3535
 
if test "${enable_dependency_tracking+set}" = set; then
 
4110
if test "${enable_dependency_tracking+set}" = set; then :
3536
4111
  enableval=$enable_dependency_tracking;
3537
4112
fi
3538
4113
 
3552
4127
 
3553
4128
depcc="$CC"   am_compiler_list=
3554
4129
 
3555
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3556
4131
$as_echo_n "checking dependency style of $depcc... " >&6; }
3557
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4132
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3558
4133
  $as_echo_n "(cached) " >&6
3559
4134
else
3560
4135
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3580
4155
  if test "$am_compiler_list" = ""; then
3581
4156
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3582
4157
  fi
 
4158
  am__universal=false
 
4159
  case " $depcc " in #(
 
4160
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4161
     esac
 
4162
 
3583
4163
  for depmode in $am_compiler_list; do
3584
4164
    # Setup a source with many dependencies, because some compilers
3585
4165
    # like to wrap large dependency lists on column 80 (with \), and
3597
4177
    done
3598
4178
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3599
4179
 
 
4180
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4181
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4182
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4183
    # versions had trouble with output in subdirs
 
4184
    am__obj=sub/conftest.${OBJEXT-o}
 
4185
    am__minus_obj="-o $am__obj"
3600
4186
    case $depmode in
 
4187
    gcc)
 
4188
      # This depmode causes a compiler race in universal mode.
 
4189
      test "$am__universal" = false || continue
 
4190
      ;;
3601
4191
    nosideeffect)
3602
4192
      # after this tag, mechanisms are not by side-effect, so they'll
3603
4193
      # only be used when explicitly requested
3607
4197
        break
3608
4198
      fi
3609
4199
      ;;
 
4200
    msvisualcpp | msvcmsys)
 
4201
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4202
      # not run yet.  These depmodes are late enough in the game, and
 
4203
      # so weak that their functioning should not be impacted.
 
4204
      am__obj=conftest.${OBJEXT-o}
 
4205
      am__minus_obj=
 
4206
      ;;
3610
4207
    none) break ;;
3611
4208
    esac
3612
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3613
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3614
 
    # handle `-M -o', and we need to detect this.
3615
4209
    if depmode=$depmode \
3616
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4210
       source=sub/conftest.c object=$am__obj \
3617
4211
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4212
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3619
4213
         >/dev/null 2>conftest.err &&
3620
4214
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3621
4215
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4216
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3623
4217
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624
4218
      # icc doesn't choke on unknown options, it will just issue warnings
3625
4219
      # or remarks (even with -Werror).  So we grep stderr for any message
3643
4237
fi
3644
4238
 
3645
4239
fi
3646
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3647
4241
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3648
4242
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3649
4243
 
3665
4259
if test -n "$ac_tool_prefix"; then
3666
4260
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3667
4261
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3668
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669
4263
$as_echo_n "checking for $ac_word... " >&6; }
3670
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4264
if test "${ac_cv_prog_RANLIB+set}" = set; then :
3671
4265
  $as_echo_n "(cached) " >&6
3672
4266
else
3673
4267
  if test -n "$RANLIB"; then
3678
4272
do
3679
4273
  IFS=$as_save_IFS
3680
4274
  test -z "$as_dir" && as_dir=.
3681
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4275
    for ac_exec_ext in '' $ac_executable_extensions; do
3682
4276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683
4277
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3684
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4278
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685
4279
    break 2
3686
4280
  fi
3687
4281
done
3688
 
done
 
4282
  done
3689
4283
IFS=$as_save_IFS
3690
4284
 
3691
4285
fi
3692
4286
fi
3693
4287
RANLIB=$ac_cv_prog_RANLIB
3694
4288
if test -n "$RANLIB"; then
3695
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3696
4290
$as_echo "$RANLIB" >&6; }
3697
4291
else
3698
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699
4293
$as_echo "no" >&6; }
3700
4294
fi
3701
4295
 
3705
4299
  ac_ct_RANLIB=$RANLIB
3706
4300
  # Extract the first word of "ranlib", so it can be a program name with args.
3707
4301
set dummy ranlib; ac_word=$2
3708
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709
4303
$as_echo_n "checking for $ac_word... " >&6; }
3710
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4304
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3711
4305
  $as_echo_n "(cached) " >&6
3712
4306
else
3713
4307
  if test -n "$ac_ct_RANLIB"; then
3718
4312
do
3719
4313
  IFS=$as_save_IFS
3720
4314
  test -z "$as_dir" && as_dir=.
3721
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4315
    for ac_exec_ext in '' $ac_executable_extensions; do
3722
4316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723
4317
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3724
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4318
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725
4319
    break 2
3726
4320
  fi
3727
4321
done
3728
 
done
 
4322
  done
3729
4323
IFS=$as_save_IFS
3730
4324
 
3731
4325
fi
3732
4326
fi
3733
4327
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3734
4328
if test -n "$ac_ct_RANLIB"; then
3735
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3736
4330
$as_echo "$ac_ct_RANLIB" >&6; }
3737
4331
else
3738
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739
4333
$as_echo "no" >&6; }
3740
4334
fi
3741
4335
 
3744
4338
  else
3745
4339
    case $cross_compiling:$ac_tool_warned in
3746
4340
yes:)
3747
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748
4342
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749
4343
ac_tool_warned=yes ;;
3750
4344
esac
3754
4348
  RANLIB="$ac_cv_prog_RANLIB"
3755
4349
fi
3756
4350
 
 
4351
# Make sure we can run config.sub.
 
4352
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4353
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4354
 
 
4355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4356
$as_echo_n "checking build system type... " >&6; }
 
4357
if test "${ac_cv_build+set}" = set; then :
 
4358
  $as_echo_n "(cached) " >&6
 
4359
else
 
4360
  ac_build_alias=$build_alias
 
4361
test "x$ac_build_alias" = x &&
 
4362
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4363
test "x$ac_build_alias" = x &&
 
4364
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4365
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4366
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4367
 
 
4368
fi
 
4369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4370
$as_echo "$ac_cv_build" >&6; }
 
4371
case $ac_cv_build in
 
4372
*-*-*) ;;
 
4373
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4374
esac
 
4375
build=$ac_cv_build
 
4376
ac_save_IFS=$IFS; IFS='-'
 
4377
set x $ac_cv_build
 
4378
shift
 
4379
build_cpu=$1
 
4380
build_vendor=$2
 
4381
shift; shift
 
4382
# Remember, the first character of IFS is used to create $*,
 
4383
# except with old shells:
 
4384
build_os=$*
 
4385
IFS=$ac_save_IFS
 
4386
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4387
 
 
4388
 
 
4389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4390
$as_echo_n "checking host system type... " >&6; }
 
4391
if test "${ac_cv_host+set}" = set; then :
 
4392
  $as_echo_n "(cached) " >&6
 
4393
else
 
4394
  if test "x$host_alias" = x; then
 
4395
  ac_cv_host=$ac_cv_build
 
4396
else
 
4397
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4398
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4399
fi
 
4400
 
 
4401
fi
 
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4403
$as_echo "$ac_cv_host" >&6; }
 
4404
case $ac_cv_host in
 
4405
*-*-*) ;;
 
4406
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4407
esac
 
4408
host=$ac_cv_host
 
4409
ac_save_IFS=$IFS; IFS='-'
 
4410
set x $ac_cv_host
 
4411
shift
 
4412
host_cpu=$1
 
4413
host_vendor=$2
 
4414
shift; shift
 
4415
# Remember, the first character of IFS is used to create $*,
 
4416
# except with old shells:
 
4417
host_os=$*
 
4418
IFS=$ac_save_IFS
 
4419
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4420
 
 
4421
 
3757
4422
 
3758
4423
ac_ext=c
3759
4424
ac_cpp='$CPP $CPPFLAGS'
3760
4425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761
4426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762
4427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3764
4429
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3765
4430
# On Suns, sometimes $CPP names a directory.
3766
4431
if test -n "$CPP" && test -d "$CPP"; then
3767
4432
  CPP=
3768
4433
fi
3769
4434
if test -z "$CPP"; then
3770
 
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4435
  if test "${ac_cv_prog_CPP+set}" = set; then :
3771
4436
  $as_echo_n "(cached) " >&6
3772
4437
else
3773
4438
      # Double quotes because CPP needs to be expanded
3782
4447
  # <limits.h> exists even on freestanding compilers.
3783
4448
  # On the NeXT, cc -E runs the code through the compiler's parser,
3784
4449
  # not just through cpp. "Syntax error" is here to catch this case.
3785
 
  cat >conftest.$ac_ext <<_ACEOF
3786
 
/* confdefs.h.  */
3787
 
_ACEOF
3788
 
cat confdefs.h >>conftest.$ac_ext
3789
 
cat >>conftest.$ac_ext <<_ACEOF
 
4450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790
4451
/* end confdefs.h.  */
3791
4452
#ifdef __STDC__
3792
4453
# include <limits.h>
3795
4456
#endif
3796
4457
                     Syntax error
3797
4458
_ACEOF
3798
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3799
 
case "(($ac_try" in
3800
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801
 
  *) ac_try_echo=$ac_try;;
3802
 
esac
3803
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3804
 
$as_echo "$ac_try_echo") >&5
3805
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806
 
  ac_status=$?
3807
 
  grep -v '^ *+' conftest.er1 >conftest.err
3808
 
  rm -f conftest.er1
3809
 
  cat conftest.err >&5
3810
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811
 
  (exit $ac_status); } >/dev/null && {
3812
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3813
 
         test ! -s conftest.err
3814
 
       }; then
3815
 
  :
 
4459
if ac_fn_c_try_cpp "$LINENO"; then :
 
4460
 
3816
4461
else
3817
 
  $as_echo "$as_me: failed program was:" >&5
3818
 
sed 's/^/| /' conftest.$ac_ext >&5
3819
 
 
3820
4462
  # Broken: fails on valid input.
3821
4463
continue
3822
4464
fi
3823
 
 
3824
4465
rm -f conftest.err conftest.$ac_ext
3825
4466
 
3826
4467
  # OK, works on sane cases.  Now check whether nonexistent headers
3827
4468
  # can be detected and how.
3828
 
  cat >conftest.$ac_ext <<_ACEOF
3829
 
/* confdefs.h.  */
3830
 
_ACEOF
3831
 
cat confdefs.h >>conftest.$ac_ext
3832
 
cat >>conftest.$ac_ext <<_ACEOF
 
4469
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833
4470
/* end confdefs.h.  */
3834
4471
#include <ac_nonexistent.h>
3835
4472
_ACEOF
3836
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3837
 
case "(($ac_try" in
3838
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839
 
  *) ac_try_echo=$ac_try;;
3840
 
esac
3841
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842
 
$as_echo "$ac_try_echo") >&5
3843
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3844
 
  ac_status=$?
3845
 
  grep -v '^ *+' conftest.er1 >conftest.err
3846
 
  rm -f conftest.er1
3847
 
  cat conftest.err >&5
3848
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849
 
  (exit $ac_status); } >/dev/null && {
3850
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3851
 
         test ! -s conftest.err
3852
 
       }; then
 
4473
if ac_fn_c_try_cpp "$LINENO"; then :
3853
4474
  # Broken: success on invalid input.
3854
4475
continue
3855
4476
else
3856
 
  $as_echo "$as_me: failed program was:" >&5
3857
 
sed 's/^/| /' conftest.$ac_ext >&5
3858
 
 
3859
4477
  # Passes both tests.
3860
4478
ac_preproc_ok=:
3861
4479
break
3862
4480
fi
3863
 
 
3864
4481
rm -f conftest.err conftest.$ac_ext
3865
4482
 
3866
4483
done
3867
4484
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3868
4485
rm -f conftest.err conftest.$ac_ext
3869
 
if $ac_preproc_ok; then
 
4486
if $ac_preproc_ok; then :
3870
4487
  break
3871
4488
fi
3872
4489
 
3878
4495
else
3879
4496
  ac_cv_prog_CPP=$CPP
3880
4497
fi
3881
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3882
4499
$as_echo "$CPP" >&6; }
3883
4500
ac_preproc_ok=false
3884
4501
for ac_c_preproc_warn_flag in '' yes
3889
4506
  # <limits.h> exists even on freestanding compilers.
3890
4507
  # On the NeXT, cc -E runs the code through the compiler's parser,
3891
4508
  # not just through cpp. "Syntax error" is here to catch this case.
3892
 
  cat >conftest.$ac_ext <<_ACEOF
3893
 
/* confdefs.h.  */
3894
 
_ACEOF
3895
 
cat confdefs.h >>conftest.$ac_ext
3896
 
cat >>conftest.$ac_ext <<_ACEOF
 
4509
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897
4510
/* end confdefs.h.  */
3898
4511
#ifdef __STDC__
3899
4512
# include <limits.h>
3902
4515
#endif
3903
4516
                     Syntax error
3904
4517
_ACEOF
3905
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3906
 
case "(($ac_try" in
3907
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908
 
  *) ac_try_echo=$ac_try;;
3909
 
esac
3910
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911
 
$as_echo "$ac_try_echo") >&5
3912
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3913
 
  ac_status=$?
3914
 
  grep -v '^ *+' conftest.er1 >conftest.err
3915
 
  rm -f conftest.er1
3916
 
  cat conftest.err >&5
3917
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
 
  (exit $ac_status); } >/dev/null && {
3919
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920
 
         test ! -s conftest.err
3921
 
       }; then
3922
 
  :
 
4518
if ac_fn_c_try_cpp "$LINENO"; then :
 
4519
 
3923
4520
else
3924
 
  $as_echo "$as_me: failed program was:" >&5
3925
 
sed 's/^/| /' conftest.$ac_ext >&5
3926
 
 
3927
4521
  # Broken: fails on valid input.
3928
4522
continue
3929
4523
fi
3930
 
 
3931
4524
rm -f conftest.err conftest.$ac_ext
3932
4525
 
3933
4526
  # OK, works on sane cases.  Now check whether nonexistent headers
3934
4527
  # can be detected and how.
3935
 
  cat >conftest.$ac_ext <<_ACEOF
3936
 
/* confdefs.h.  */
3937
 
_ACEOF
3938
 
cat confdefs.h >>conftest.$ac_ext
3939
 
cat >>conftest.$ac_ext <<_ACEOF
 
4528
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940
4529
/* end confdefs.h.  */
3941
4530
#include <ac_nonexistent.h>
3942
4531
_ACEOF
3943
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3944
 
case "(($ac_try" in
3945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946
 
  *) ac_try_echo=$ac_try;;
3947
 
esac
3948
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949
 
$as_echo "$ac_try_echo") >&5
3950
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3951
 
  ac_status=$?
3952
 
  grep -v '^ *+' conftest.er1 >conftest.err
3953
 
  rm -f conftest.er1
3954
 
  cat conftest.err >&5
3955
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
 
  (exit $ac_status); } >/dev/null && {
3957
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958
 
         test ! -s conftest.err
3959
 
       }; then
 
4532
if ac_fn_c_try_cpp "$LINENO"; then :
3960
4533
  # Broken: success on invalid input.
3961
4534
continue
3962
4535
else
3963
 
  $as_echo "$as_me: failed program was:" >&5
3964
 
sed 's/^/| /' conftest.$ac_ext >&5
3965
 
 
3966
4536
  # Passes both tests.
3967
4537
ac_preproc_ok=:
3968
4538
break
3969
4539
fi
3970
 
 
3971
4540
rm -f conftest.err conftest.$ac_ext
3972
4541
 
3973
4542
done
3974
4543
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3975
4544
rm -f conftest.err conftest.$ac_ext
3976
 
if $ac_preproc_ok; then
3977
 
  :
 
4545
if $ac_preproc_ok; then :
 
4546
 
3978
4547
else
3979
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4548
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980
4549
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982
 
See \`config.log' for more details." >&5
3983
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984
 
See \`config.log' for more details." >&2;}
3985
 
   { (exit 1); exit 1; }; }; }
 
4550
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4551
See \`config.log' for more details." "$LINENO" 5; }
3986
4552
fi
3987
4553
 
3988
4554
ac_ext=c
3992
4558
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
4559
 
3994
4560
 
3995
 
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996
4562
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997
 
if test "${ac_cv_path_GREP+set}" = set; then
 
4563
if test "${ac_cv_path_GREP+set}" = set; then :
3998
4564
  $as_echo_n "(cached) " >&6
3999
4565
else
4000
4566
  if test -z "$GREP"; then
4005
4571
do
4006
4572
  IFS=$as_save_IFS
4007
4573
  test -z "$as_dir" && as_dir=.
4008
 
  for ac_prog in grep ggrep; do
 
4574
    for ac_prog in grep ggrep; do
4009
4575
    for ac_exec_ext in '' $ac_executable_extensions; do
4010
4576
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011
4577
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4025
4591
    $as_echo 'GREP' >> "conftest.nl"
4026
4592
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027
4593
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028
 
    ac_count=`expr $ac_count + 1`
 
4594
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4029
4595
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030
4596
      # Best one so far, save it but keep looking for a better one
4031
4597
      ac_cv_path_GREP="$ac_path_GREP"
4040
4606
      $ac_path_GREP_found && break 3
4041
4607
    done
4042
4608
  done
4043
 
done
 
4609
  done
4044
4610
IFS=$as_save_IFS
4045
4611
  if test -z "$ac_cv_path_GREP"; then
4046
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4047
 
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4048
 
   { (exit 1); exit 1; }; }
 
4612
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4049
4613
  fi
4050
4614
else
4051
4615
  ac_cv_path_GREP=$GREP
4052
4616
fi
4053
4617
 
4054
4618
fi
4055
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4056
4620
$as_echo "$ac_cv_path_GREP" >&6; }
4057
4621
 GREP="$ac_cv_path_GREP"
4058
4622
 
4059
4623
 
4060
 
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4061
4625
$as_echo_n "checking for egrep... " >&6; }
4062
 
if test "${ac_cv_path_EGREP+set}" = set; then
 
4626
if test "${ac_cv_path_EGREP+set}" = set; then :
4063
4627
  $as_echo_n "(cached) " >&6
4064
4628
else
4065
4629
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073
4637
do
4074
4638
  IFS=$as_save_IFS
4075
4639
  test -z "$as_dir" && as_dir=.
4076
 
  for ac_prog in egrep; do
 
4640
    for ac_prog in egrep; do
4077
4641
    for ac_exec_ext in '' $ac_executable_extensions; do
4078
4642
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079
4643
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093
4657
    $as_echo 'EGREP' >> "conftest.nl"
4094
4658
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095
4659
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096
 
    ac_count=`expr $ac_count + 1`
 
4660
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4097
4661
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098
4662
      # Best one so far, save it but keep looking for a better one
4099
4663
      ac_cv_path_EGREP="$ac_path_EGREP"
4108
4672
      $ac_path_EGREP_found && break 3
4109
4673
    done
4110
4674
  done
4111
 
done
 
4675
  done
4112
4676
IFS=$as_save_IFS
4113
4677
  if test -z "$ac_cv_path_EGREP"; then
4114
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4115
 
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4116
 
   { (exit 1); exit 1; }; }
 
4678
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4117
4679
  fi
4118
4680
else
4119
4681
  ac_cv_path_EGREP=$EGREP
4121
4683
 
4122
4684
   fi
4123
4685
fi
4124
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4125
4687
$as_echo "$ac_cv_path_EGREP" >&6; }
4126
4688
 EGREP="$ac_cv_path_EGREP"
4127
4689
 
4128
4690
 
4129
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4130
4692
$as_echo_n "checking for ANSI C header files... " >&6; }
4131
 
if test "${ac_cv_header_stdc+set}" = set; then
 
4693
if test "${ac_cv_header_stdc+set}" = set; then :
4132
4694
  $as_echo_n "(cached) " >&6
4133
4695
else
4134
 
  cat >conftest.$ac_ext <<_ACEOF
4135
 
/* confdefs.h.  */
4136
 
_ACEOF
4137
 
cat confdefs.h >>conftest.$ac_ext
4138
 
cat >>conftest.$ac_ext <<_ACEOF
 
4696
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139
4697
/* end confdefs.h.  */
4140
4698
#include <stdlib.h>
4141
4699
#include <stdarg.h>
4150
4708
  return 0;
4151
4709
}
4152
4710
_ACEOF
4153
 
rm -f conftest.$ac_objext
4154
 
if { (ac_try="$ac_compile"
4155
 
case "(($ac_try" in
4156
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157
 
  *) ac_try_echo=$ac_try;;
4158
 
esac
4159
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4160
 
$as_echo "$ac_try_echo") >&5
4161
 
  (eval "$ac_compile") 2>conftest.er1
4162
 
  ac_status=$?
4163
 
  grep -v '^ *+' conftest.er1 >conftest.err
4164
 
  rm -f conftest.er1
4165
 
  cat conftest.err >&5
4166
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167
 
  (exit $ac_status); } && {
4168
 
         test -z "$ac_c_werror_flag" ||
4169
 
         test ! -s conftest.err
4170
 
       } && test -s conftest.$ac_objext; then
 
4711
if ac_fn_c_try_compile "$LINENO"; then :
4171
4712
  ac_cv_header_stdc=yes
4172
4713
else
4173
 
  $as_echo "$as_me: failed program was:" >&5
4174
 
sed 's/^/| /' conftest.$ac_ext >&5
4175
 
 
4176
 
        ac_cv_header_stdc=no
 
4714
  ac_cv_header_stdc=no
4177
4715
fi
4178
 
 
4179
4716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4717
 
4181
4718
if test $ac_cv_header_stdc = yes; then
4182
4719
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183
 
  cat >conftest.$ac_ext <<_ACEOF
4184
 
/* confdefs.h.  */
4185
 
_ACEOF
4186
 
cat confdefs.h >>conftest.$ac_ext
4187
 
cat >>conftest.$ac_ext <<_ACEOF
 
4720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188
4721
/* end confdefs.h.  */
4189
4722
#include <string.h>
4190
4723
 
4191
4724
_ACEOF
4192
4725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193
 
  $EGREP "memchr" >/dev/null 2>&1; then
4194
 
  :
 
4726
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4727
 
4195
4728
else
4196
4729
  ac_cv_header_stdc=no
4197
4730
fi
4201
4734
 
4202
4735
if test $ac_cv_header_stdc = yes; then
4203
4736
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204
 
  cat >conftest.$ac_ext <<_ACEOF
4205
 
/* confdefs.h.  */
4206
 
_ACEOF
4207
 
cat confdefs.h >>conftest.$ac_ext
4208
 
cat >>conftest.$ac_ext <<_ACEOF
 
4737
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209
4738
/* end confdefs.h.  */
4210
4739
#include <stdlib.h>
4211
4740
 
4212
4741
_ACEOF
4213
4742
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214
 
  $EGREP "free" >/dev/null 2>&1; then
4215
 
  :
 
4743
  $EGREP "free" >/dev/null 2>&1; then :
 
4744
 
4216
4745
else
4217
4746
  ac_cv_header_stdc=no
4218
4747
fi
4222
4751
 
4223
4752
if test $ac_cv_header_stdc = yes; then
4224
4753
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225
 
  if test "$cross_compiling" = yes; then
 
4754
  if test "$cross_compiling" = yes; then :
4226
4755
  :
4227
4756
else
4228
 
  cat >conftest.$ac_ext <<_ACEOF
4229
 
/* confdefs.h.  */
4230
 
_ACEOF
4231
 
cat confdefs.h >>conftest.$ac_ext
4232
 
cat >>conftest.$ac_ext <<_ACEOF
 
4757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233
4758
/* end confdefs.h.  */
4234
4759
#include <ctype.h>
4235
4760
#include <stdlib.h>
4256
4781
  return 0;
4257
4782
}
4258
4783
_ACEOF
4259
 
rm -f conftest$ac_exeext
4260
 
if { (ac_try="$ac_link"
4261
 
case "(($ac_try" in
4262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263
 
  *) ac_try_echo=$ac_try;;
4264
 
esac
4265
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266
 
$as_echo "$ac_try_echo") >&5
4267
 
  (eval "$ac_link") 2>&5
4268
 
  ac_status=$?
4269
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271
 
  { (case "(($ac_try" in
4272
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273
 
  *) ac_try_echo=$ac_try;;
4274
 
esac
4275
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4276
 
$as_echo "$ac_try_echo") >&5
4277
 
  (eval "$ac_try") 2>&5
4278
 
  ac_status=$?
4279
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280
 
  (exit $ac_status); }; }; then
4281
 
  :
 
4784
if ac_fn_c_try_run "$LINENO"; then :
 
4785
 
4282
4786
else
4283
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
4284
 
$as_echo "$as_me: failed program was:" >&5
4285
 
sed 's/^/| /' conftest.$ac_ext >&5
4286
 
 
4287
 
( exit $ac_status )
4288
 
ac_cv_header_stdc=no
4289
 
fi
4290
 
rm -rf conftest.dSYM
4291
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292
 
fi
4293
 
 
4294
 
 
4295
 
fi
4296
 
fi
4297
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4787
  ac_cv_header_stdc=no
 
4788
fi
 
4789
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4790
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4791
fi
 
4792
 
 
4793
fi
 
4794
fi
 
4795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4298
4796
$as_echo "$ac_cv_header_stdc" >&6; }
4299
4797
if test $ac_cv_header_stdc = yes; then
4300
4798
 
4301
 
cat >>confdefs.h <<\_ACEOF
4302
 
#define STDC_HEADERS 1
4303
 
_ACEOF
 
4799
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4304
4800
 
4305
4801
fi
4306
4802
 
4307
4803
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
4804
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318
4805
                  inttypes.h stdint.h unistd.h
4319
 
do
4320
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4322
 
$as_echo_n "checking for $ac_header... " >&6; }
4323
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4324
 
  $as_echo_n "(cached) " >&6
4325
 
else
4326
 
  cat >conftest.$ac_ext <<_ACEOF
4327
 
/* confdefs.h.  */
4328
 
_ACEOF
4329
 
cat confdefs.h >>conftest.$ac_ext
4330
 
cat >>conftest.$ac_ext <<_ACEOF
4331
 
/* end confdefs.h.  */
4332
 
$ac_includes_default
4333
 
 
4334
 
#include <$ac_header>
4335
 
_ACEOF
4336
 
rm -f conftest.$ac_objext
4337
 
if { (ac_try="$ac_compile"
4338
 
case "(($ac_try" in
4339
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340
 
  *) ac_try_echo=$ac_try;;
4341
 
esac
4342
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343
 
$as_echo "$ac_try_echo") >&5
4344
 
  (eval "$ac_compile") 2>conftest.er1
4345
 
  ac_status=$?
4346
 
  grep -v '^ *+' conftest.er1 >conftest.err
4347
 
  rm -f conftest.er1
4348
 
  cat conftest.err >&5
4349
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
 
  (exit $ac_status); } && {
4351
 
         test -z "$ac_c_werror_flag" ||
4352
 
         test ! -s conftest.err
4353
 
       } && test -s conftest.$ac_objext; then
4354
 
  eval "$as_ac_Header=yes"
4355
 
else
4356
 
  $as_echo "$as_me: failed program was:" >&5
4357
 
sed 's/^/| /' conftest.$ac_ext >&5
4358
 
 
4359
 
        eval "$as_ac_Header=no"
4360
 
fi
4361
 
 
4362
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363
 
fi
4364
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4365
 
                 $as_echo "$as_val"'`
4366
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4367
 
$as_echo "$ac_res" >&6; }
4368
 
as_val=`eval 'as_val=${'$as_ac_Header'}
4369
 
                 $as_echo "$as_val"'`
4370
 
   if test "x$as_val" = x""yes; then
 
4806
do :
 
4807
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4808
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4809
"
 
4810
eval as_val=\$$as_ac_Header
 
4811
   if test "x$as_val" = x""yes; then :
4371
4812
  cat >>confdefs.h <<_ACEOF
4372
4813
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373
4814
_ACEOF
4378
4819
 
4379
4820
 
4380
4821
 
4381
 
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4382
 
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4383
 
$as_echo_n "checking for minix/config.h... " >&6; }
4384
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
4385
 
  $as_echo_n "(cached) " >&6
4386
 
fi
4387
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4388
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4389
 
else
4390
 
  # Is the header compilable?
4391
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4392
 
$as_echo_n "checking minix/config.h usability... " >&6; }
4393
 
cat >conftest.$ac_ext <<_ACEOF
4394
 
/* confdefs.h.  */
4395
 
_ACEOF
4396
 
cat confdefs.h >>conftest.$ac_ext
4397
 
cat >>conftest.$ac_ext <<_ACEOF
4398
 
/* end confdefs.h.  */
4399
 
$ac_includes_default
4400
 
#include <minix/config.h>
4401
 
_ACEOF
4402
 
rm -f conftest.$ac_objext
4403
 
if { (ac_try="$ac_compile"
4404
 
case "(($ac_try" in
4405
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406
 
  *) ac_try_echo=$ac_try;;
4407
 
esac
4408
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409
 
$as_echo "$ac_try_echo") >&5
4410
 
  (eval "$ac_compile") 2>conftest.er1
4411
 
  ac_status=$?
4412
 
  grep -v '^ *+' conftest.er1 >conftest.err
4413
 
  rm -f conftest.er1
4414
 
  cat conftest.err >&5
4415
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
 
  (exit $ac_status); } && {
4417
 
         test -z "$ac_c_werror_flag" ||
4418
 
         test ! -s conftest.err
4419
 
       } && test -s conftest.$ac_objext; then
4420
 
  ac_header_compiler=yes
4421
 
else
4422
 
  $as_echo "$as_me: failed program was:" >&5
4423
 
sed 's/^/| /' conftest.$ac_ext >&5
4424
 
 
4425
 
        ac_header_compiler=no
4426
 
fi
4427
 
 
4428
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4430
 
$as_echo "$ac_header_compiler" >&6; }
4431
 
 
4432
 
# Is the header present?
4433
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4434
 
$as_echo_n "checking minix/config.h presence... " >&6; }
4435
 
cat >conftest.$ac_ext <<_ACEOF
4436
 
/* confdefs.h.  */
4437
 
_ACEOF
4438
 
cat confdefs.h >>conftest.$ac_ext
4439
 
cat >>conftest.$ac_ext <<_ACEOF
4440
 
/* end confdefs.h.  */
4441
 
#include <minix/config.h>
4442
 
_ACEOF
4443
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4444
 
case "(($ac_try" in
4445
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446
 
  *) ac_try_echo=$ac_try;;
4447
 
esac
4448
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449
 
$as_echo "$ac_try_echo") >&5
4450
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4451
 
  ac_status=$?
4452
 
  grep -v '^ *+' conftest.er1 >conftest.err
4453
 
  rm -f conftest.er1
4454
 
  cat conftest.err >&5
4455
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456
 
  (exit $ac_status); } >/dev/null && {
4457
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4458
 
         test ! -s conftest.err
4459
 
       }; then
4460
 
  ac_header_preproc=yes
4461
 
else
4462
 
  $as_echo "$as_me: failed program was:" >&5
4463
 
sed 's/^/| /' conftest.$ac_ext >&5
4464
 
 
4465
 
  ac_header_preproc=no
4466
 
fi
4467
 
 
4468
 
rm -f conftest.err conftest.$ac_ext
4469
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4470
 
$as_echo "$ac_header_preproc" >&6; }
4471
 
 
4472
 
# So?  What about this header?
4473
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4474
 
  yes:no: )
4475
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4476
 
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4477
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4478
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4479
 
    ac_header_preproc=yes
4480
 
    ;;
4481
 
  no:yes:* )
4482
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4483
 
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4484
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4485
 
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4486
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4487
 
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4488
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4489
 
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4490
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4491
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4492
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4493
 
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4494
 
    ( cat <<\_ASBOX
4495
 
## -------------------------------- ##
4496
 
## Report this to bug-hello@gnu.org ##
4497
 
## -------------------------------- ##
4498
 
_ASBOX
4499
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4500
 
    ;;
4501
 
esac
4502
 
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4503
 
$as_echo_n "checking for minix/config.h... " >&6; }
4504
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
4505
 
  $as_echo_n "(cached) " >&6
4506
 
else
4507
 
  ac_cv_header_minix_config_h=$ac_header_preproc
4508
 
fi
4509
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4510
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4511
 
 
4512
 
fi
4513
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
4822
 
 
4823
 
 
4824
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4825
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4514
4826
  MINIX=yes
4515
4827
else
4516
4828
  MINIX=
4519
4831
 
4520
4832
  if test "$MINIX" = yes; then
4521
4833
 
4522
 
cat >>confdefs.h <<\_ACEOF
4523
 
#define _POSIX_SOURCE 1
4524
 
_ACEOF
4525
 
 
4526
 
 
4527
 
cat >>confdefs.h <<\_ACEOF
4528
 
#define _POSIX_1_SOURCE 2
4529
 
_ACEOF
4530
 
 
4531
 
 
4532
 
cat >>confdefs.h <<\_ACEOF
4533
 
#define _MINIX 1
4534
 
_ACEOF
 
4834
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4835
 
 
4836
 
 
4837
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4838
 
 
4839
 
 
4840
$as_echo "#define _MINIX 1" >>confdefs.h
4535
4841
 
4536
4842
  fi
4537
4843
 
4538
 
 
4539
 
 
4540
 
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4844
        case "$host_os" in
 
4845
    hpux*)
 
4846
 
 
4847
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
 
4848
 
 
4849
      ;;
 
4850
  esac
 
4851
 
 
4852
 
 
4853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4541
4854
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4542
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4855
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4543
4856
  $as_echo_n "(cached) " >&6
4544
4857
else
4545
 
  cat >conftest.$ac_ext <<_ACEOF
4546
 
/* confdefs.h.  */
4547
 
_ACEOF
4548
 
cat confdefs.h >>conftest.$ac_ext
4549
 
cat >>conftest.$ac_ext <<_ACEOF
 
4858
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550
4859
/* end confdefs.h.  */
4551
4860
 
4552
 
#         define __EXTENSIONS__ 1
4553
 
          $ac_includes_default
 
4861
#         define __EXTENSIONS__ 1
 
4862
          $ac_includes_default
4554
4863
int
4555
4864
main ()
4556
4865
{
4559
4868
  return 0;
4560
4869
}
4561
4870
_ACEOF
4562
 
rm -f conftest.$ac_objext
4563
 
if { (ac_try="$ac_compile"
4564
 
case "(($ac_try" in
4565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566
 
  *) ac_try_echo=$ac_try;;
4567
 
esac
4568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569
 
$as_echo "$ac_try_echo") >&5
4570
 
  (eval "$ac_compile") 2>conftest.er1
4571
 
  ac_status=$?
4572
 
  grep -v '^ *+' conftest.er1 >conftest.err
4573
 
  rm -f conftest.er1
4574
 
  cat conftest.err >&5
4575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576
 
  (exit $ac_status); } && {
4577
 
         test -z "$ac_c_werror_flag" ||
4578
 
         test ! -s conftest.err
4579
 
       } && test -s conftest.$ac_objext; then
 
4871
if ac_fn_c_try_compile "$LINENO"; then :
4580
4872
  ac_cv_safe_to_define___extensions__=yes
4581
4873
else
4582
 
  $as_echo "$as_me: failed program was:" >&5
4583
 
sed 's/^/| /' conftest.$ac_ext >&5
4584
 
 
4585
 
        ac_cv_safe_to_define___extensions__=no
 
4874
  ac_cv_safe_to_define___extensions__=no
4586
4875
fi
4587
 
 
4588
4876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589
4877
fi
4590
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4591
4879
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4592
4880
  test $ac_cv_safe_to_define___extensions__ = yes &&
4593
 
    cat >>confdefs.h <<\_ACEOF
4594
 
#define __EXTENSIONS__ 1
4595
 
_ACEOF
4596
 
 
4597
 
  cat >>confdefs.h <<\_ACEOF
4598
 
#define _ALL_SOURCE 1
4599
 
_ACEOF
4600
 
 
4601
 
  cat >>confdefs.h <<\_ACEOF
4602
 
#define _GNU_SOURCE 1
4603
 
_ACEOF
4604
 
 
4605
 
  cat >>confdefs.h <<\_ACEOF
4606
 
#define _POSIX_PTHREAD_SEMANTICS 1
4607
 
_ACEOF
4608
 
 
4609
 
  cat >>confdefs.h <<\_ACEOF
4610
 
#define _TANDEM_SOURCE 1
4611
 
_ACEOF
4612
 
 
4613
 
 
4614
 
 
4615
 
 
4616
 
 
4617
 
 
4618
 
 
4619
 
 
4620
 
 
4621
 
 
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
 
  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
 
4881
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4882
 
 
4883
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4884
 
 
4885
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4886
 
 
4887
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4888
 
 
4889
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4890
 
 
4891
 
 
4892
 
 
4893
 
 
4894
 
 
4895
 
 
4896
 
 
4897
 
 
4898
 
 
4899
 
 
4900
 
 
4901
 
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4629
4910
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4630
 
if test "${gl_cv_have_include_next+set}" = set; then
 
4911
if test "${gl_cv_have_include_next+set}" = set; then :
4631
4912
  $as_echo_n "(cached) " >&6
4632
4913
else
4633
 
  rm -rf conftestd1 conftestd2
4634
 
     mkdir conftestd1 conftestd2
4635
 
                    cat <<EOF > conftestd1/conftest.h
 
4914
  rm -rf conftestd1a conftestd1b conftestd2
 
4915
     mkdir conftestd1a conftestd1b conftestd2
 
4916
                                                  cat <<EOF > conftestd1a/conftest.h
 
4917
#define DEFINED_IN_CONFTESTD1
 
4918
#include_next <conftest.h>
 
4919
#ifdef DEFINED_IN_CONFTESTD2
 
4920
int foo;
 
4921
#else
 
4922
#error "include_next doesn't work"
 
4923
#endif
 
4924
EOF
 
4925
     cat <<EOF > conftestd1b/conftest.h
4636
4926
#define DEFINED_IN_CONFTESTD1
4637
4927
#include <stdio.h>
4638
4928
#include_next <conftest.h>
4648
4938
#endif
4649
4939
#define DEFINED_IN_CONFTESTD2
4650
4940
EOF
4651
 
     save_CPPFLAGS="$CPPFLAGS"
4652
 
     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4653
 
     cat >conftest.$ac_ext <<_ACEOF
 
4941
     gl_save_CPPFLAGS="$CPPFLAGS"
 
4942
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
 
4943
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4944
/* end confdefs.h.  */
4654
4945
#include <conftest.h>
4655
4946
_ACEOF
4656
 
rm -f conftest.$ac_objext
4657
 
if { (ac_try="$ac_compile"
4658
 
case "(($ac_try" in
4659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660
 
  *) ac_try_echo=$ac_try;;
4661
 
esac
4662
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663
 
$as_echo "$ac_try_echo") >&5
4664
 
  (eval "$ac_compile") 2>conftest.er1
4665
 
  ac_status=$?
4666
 
  grep -v '^ *+' conftest.er1 >conftest.err
4667
 
  rm -f conftest.er1
4668
 
  cat conftest.err >&5
4669
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670
 
  (exit $ac_status); } && {
4671
 
         test -z "$ac_c_werror_flag" ||
4672
 
         test ! -s conftest.err
4673
 
       } && test -s conftest.$ac_objext; then
 
4947
if ac_fn_c_try_compile "$LINENO"; then :
4674
4948
  gl_cv_have_include_next=yes
4675
4949
else
4676
 
  $as_echo "$as_me: failed program was:" >&5
4677
 
sed 's/^/| /' conftest.$ac_ext >&5
4678
 
 
4679
 
        gl_cv_have_include_next=no
4680
 
fi
4681
 
 
4682
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683
 
     CPPFLAGS="$save_CPPFLAGS"
4684
 
     rm -rf conftestd1 conftestd2
4685
 
 
4686
 
fi
4687
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
 
4950
  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
 
4951
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4952
/* end confdefs.h.  */
 
4953
#include <conftest.h>
 
4954
_ACEOF
 
4955
if ac_fn_c_try_compile "$LINENO"; then :
 
4956
  gl_cv_have_include_next=buggy
 
4957
else
 
4958
  gl_cv_have_include_next=no
 
4959
fi
 
4960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4961
 
 
4962
fi
 
4963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4964
     CPPFLAGS="$gl_save_CPPFLAGS"
 
4965
     rm -rf conftestd1a conftestd1b conftestd2
 
4966
 
 
4967
fi
 
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4688
4969
$as_echo "$gl_cv_have_include_next" >&6; }
4689
4970
  PRAGMA_SYSTEM_HEADER=
4690
4971
  if test $gl_cv_have_include_next = yes; then
4691
4972
    INCLUDE_NEXT=include_next
 
4973
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4692
4974
    if test -n "$GCC"; then
4693
4975
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
4694
4976
    fi
4695
4977
  else
4696
 
    INCLUDE_NEXT=include
 
4978
    if test $gl_cv_have_include_next = buggy; then
 
4979
      INCLUDE_NEXT=include
 
4980
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
4981
    else
 
4982
      INCLUDE_NEXT=include
 
4983
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
 
4984
    fi
4697
4985
  fi
4698
4986
 
4699
4987
 
4700
4988
 
4701
 
# Make sure we can run config.sub.
4702
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4703
 
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4704
 
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4705
 
   { (exit 1); exit 1; }; }
4706
 
 
4707
 
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4708
 
$as_echo_n "checking build system type... " >&6; }
4709
 
if test "${ac_cv_build+set}" = set; then
4710
 
  $as_echo_n "(cached) " >&6
4711
 
else
4712
 
  ac_build_alias=$build_alias
4713
 
test "x$ac_build_alias" = x &&
4714
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4715
 
test "x$ac_build_alias" = x &&
4716
 
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4717
 
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4718
 
   { (exit 1); exit 1; }; }
4719
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4720
 
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4721
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4722
 
   { (exit 1); exit 1; }; }
4723
 
 
4724
 
fi
4725
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4726
 
$as_echo "$ac_cv_build" >&6; }
4727
 
case $ac_cv_build in
4728
 
*-*-*) ;;
4729
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4730
 
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4731
 
   { (exit 1); exit 1; }; };;
4732
 
esac
4733
 
build=$ac_cv_build
4734
 
ac_save_IFS=$IFS; IFS='-'
4735
 
set x $ac_cv_build
4736
 
shift
4737
 
build_cpu=$1
4738
 
build_vendor=$2
4739
 
shift; shift
4740
 
# Remember, the first character of IFS is used to create $*,
4741
 
# except with old shells:
4742
 
build_os=$*
4743
 
IFS=$ac_save_IFS
4744
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4745
 
 
4746
 
 
4747
 
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4748
 
$as_echo_n "checking host system type... " >&6; }
4749
 
if test "${ac_cv_host+set}" = set; then
4750
 
  $as_echo_n "(cached) " >&6
4751
 
else
4752
 
  if test "x$host_alias" = x; then
4753
 
  ac_cv_host=$ac_cv_build
4754
 
else
4755
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4756
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4757
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4758
 
   { (exit 1); exit 1; }; }
4759
 
fi
4760
 
 
4761
 
fi
4762
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4763
 
$as_echo "$ac_cv_host" >&6; }
4764
 
case $ac_cv_host in
4765
 
*-*-*) ;;
4766
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4767
 
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4768
 
   { (exit 1); exit 1; }; };;
4769
 
esac
4770
 
host=$ac_cv_host
4771
 
ac_save_IFS=$IFS; IFS='-'
4772
 
set x $ac_cv_host
4773
 
shift
4774
 
host_cpu=$1
4775
 
host_vendor=$2
4776
 
shift; shift
4777
 
# Remember, the first character of IFS is used to create $*,
4778
 
# except with old shells:
4779
 
host_os=$*
4780
 
IFS=$ac_save_IFS
4781
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
 
 
4787
 
 
4788
 
for ac_header in $ac_header_list
4789
 
do
4790
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4792
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4793
 
$as_echo_n "checking for $ac_header... " >&6; }
4794
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4795
 
  $as_echo_n "(cached) " >&6
4796
 
fi
4797
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4798
 
                 $as_echo "$as_val"'`
4799
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4800
 
$as_echo "$ac_res" >&6; }
4801
 
else
4802
 
  # Is the header compilable?
4803
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4804
 
$as_echo_n "checking $ac_header usability... " >&6; }
4805
 
cat >conftest.$ac_ext <<_ACEOF
4806
 
/* confdefs.h.  */
4807
 
_ACEOF
4808
 
cat confdefs.h >>conftest.$ac_ext
4809
 
cat >>conftest.$ac_ext <<_ACEOF
4810
 
/* end confdefs.h.  */
4811
 
$ac_includes_default
4812
 
#include <$ac_header>
4813
 
_ACEOF
4814
 
rm -f conftest.$ac_objext
4815
 
if { (ac_try="$ac_compile"
4816
 
case "(($ac_try" in
4817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818
 
  *) ac_try_echo=$ac_try;;
4819
 
esac
4820
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821
 
$as_echo "$ac_try_echo") >&5
4822
 
  (eval "$ac_compile") 2>conftest.er1
4823
 
  ac_status=$?
4824
 
  grep -v '^ *+' conftest.er1 >conftest.err
4825
 
  rm -f conftest.er1
4826
 
  cat conftest.err >&5
4827
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828
 
  (exit $ac_status); } && {
4829
 
         test -z "$ac_c_werror_flag" ||
4830
 
         test ! -s conftest.err
4831
 
       } && test -s conftest.$ac_objext; then
4832
 
  ac_header_compiler=yes
4833
 
else
4834
 
  $as_echo "$as_me: failed program was:" >&5
4835
 
sed 's/^/| /' conftest.$ac_ext >&5
4836
 
 
4837
 
        ac_header_compiler=no
4838
 
fi
4839
 
 
4840
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4842
 
$as_echo "$ac_header_compiler" >&6; }
4843
 
 
4844
 
# Is the header present?
4845
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4846
 
$as_echo_n "checking $ac_header presence... " >&6; }
4847
 
cat >conftest.$ac_ext <<_ACEOF
4848
 
/* confdefs.h.  */
4849
 
_ACEOF
4850
 
cat confdefs.h >>conftest.$ac_ext
4851
 
cat >>conftest.$ac_ext <<_ACEOF
4852
 
/* end confdefs.h.  */
4853
 
#include <$ac_header>
4854
 
_ACEOF
4855
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4856
 
case "(($ac_try" in
4857
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858
 
  *) ac_try_echo=$ac_try;;
4859
 
esac
4860
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861
 
$as_echo "$ac_try_echo") >&5
4862
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4863
 
  ac_status=$?
4864
 
  grep -v '^ *+' conftest.er1 >conftest.err
4865
 
  rm -f conftest.er1
4866
 
  cat conftest.err >&5
4867
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868
 
  (exit $ac_status); } >/dev/null && {
4869
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4870
 
         test ! -s conftest.err
4871
 
       }; then
4872
 
  ac_header_preproc=yes
4873
 
else
4874
 
  $as_echo "$as_me: failed program was:" >&5
4875
 
sed 's/^/| /' conftest.$ac_ext >&5
4876
 
 
4877
 
  ac_header_preproc=no
4878
 
fi
4879
 
 
4880
 
rm -f conftest.err conftest.$ac_ext
4881
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4882
 
$as_echo "$ac_header_preproc" >&6; }
4883
 
 
4884
 
# So?  What about this header?
4885
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4886
 
  yes:no: )
4887
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4888
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4889
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4890
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4891
 
    ac_header_preproc=yes
4892
 
    ;;
4893
 
  no:yes:* )
4894
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4895
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4896
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4897
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4898
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4899
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4900
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4901
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4902
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4903
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4905
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4906
 
    ( cat <<\_ASBOX
4907
 
## -------------------------------- ##
4908
 
## Report this to bug-hello@gnu.org ##
4909
 
## -------------------------------- ##
4910
 
_ASBOX
4911
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4912
 
    ;;
4913
 
esac
4914
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4915
 
$as_echo_n "checking for $ac_header... " >&6; }
4916
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4917
 
  $as_echo_n "(cached) " >&6
4918
 
else
4919
 
  eval "$as_ac_Header=\$ac_header_preproc"
4920
 
fi
4921
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4922
 
                 $as_echo "$as_val"'`
4923
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4924
 
$as_echo "$ac_res" >&6; }
4925
 
 
4926
 
fi
4927
 
as_val=`eval 'as_val=${'$as_ac_Header'}
4928
 
                 $as_echo "$as_val"'`
4929
 
   if test "x$as_val" = x""yes; then
 
4989
 
 
4990
 
 
4991
 
 
4992
 
 
4993
  for ac_header in $ac_header_list
 
4994
do :
 
4995
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4996
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4997
"
 
4998
eval as_val=\$$as_ac_Header
 
4999
   if test "x$as_val" = x""yes; then :
4930
5000
  cat >>confdefs.h <<_ACEOF
4931
5001
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4932
5002
_ACEOF
4939
5009
 
4940
5010
 
4941
5011
 
4942
 
  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
 
5012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
4943
5013
$as_echo_n "checking for complete errno.h... " >&6; }
4944
 
if test "${gl_cv_header_errno_h_complete+set}" = set; then
 
5014
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
4945
5015
  $as_echo_n "(cached) " >&6
4946
5016
else
4947
5017
 
4948
 
    cat >conftest.$ac_ext <<_ACEOF
4949
 
/* confdefs.h.  */
4950
 
_ACEOF
4951
 
cat confdefs.h >>conftest.$ac_ext
4952
 
cat >>conftest.$ac_ext <<_ACEOF
 
5018
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953
5019
/* end confdefs.h.  */
4954
5020
 
4955
5021
#include <errno.h>
4977
5043
#if !defined ENOTSUP
4978
5044
booboo
4979
5045
#endif
 
5046
#if !defined ESTALE
 
5047
booboo
 
5048
#endif
4980
5049
#if !defined ECANCELED
4981
5050
booboo
4982
5051
#endif
4983
5052
 
4984
5053
_ACEOF
4985
5054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986
 
  $EGREP "booboo" >/dev/null 2>&1; then
 
5055
  $EGREP "booboo" >/dev/null 2>&1; then :
4987
5056
  gl_cv_header_errno_h_complete=no
4988
5057
else
4989
5058
  gl_cv_header_errno_h_complete=yes
4992
5061
 
4993
5062
 
4994
5063
fi
4995
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
 
5064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
4996
5065
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
4997
5066
  if test $gl_cv_header_errno_h_complete = yes; then
4998
5067
    ERRNO_H=''
5003
5072
 
5004
5073
 
5005
5074
 
5006
 
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
5075
     if test $gl_cv_have_include_next = yes; then
5012
5076
       gl_cv_next_errno_h='<'errno.h'>'
5013
5077
     else
5014
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
 
5078
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5015
5079
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
5016
 
if test "${gl_cv_next_errno_h+set}" = set; then
 
5080
if test "${gl_cv_next_errno_h+set}" = set; then :
5017
5081
  $as_echo_n "(cached) " >&6
5018
5082
else
5019
5083
 
5020
 
          if test $ac_cv_header_errno_h = yes; then
5021
 
            cat >conftest.$ac_ext <<_ACEOF
5022
 
/* confdefs.h.  */
5023
 
_ACEOF
5024
 
cat confdefs.h >>conftest.$ac_ext
5025
 
cat >>conftest.$ac_ext <<_ACEOF
 
5084
          if test $ac_cv_header_errno_h = yes; then
 
5085
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026
5086
/* end confdefs.h.  */
5027
5087
#include <errno.h>
5028
5088
 
5029
5089
_ACEOF
5030
 
                                                                    case "$host_os" in
5031
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
5032
 
              *)    gl_absname_cpp="$ac_cpp" ;;
5033
 
            esac
5034
 
                                    gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5035
 
               sed -n '\#/errno.h#{
5036
 
                 s#.*"\(.*/errno.h\)".*#\1#
5037
 
                 s#^/[^/]#//&#
5038
 
                 p
5039
 
                 q
5040
 
               }'`'"'
5041
 
          else
5042
 
            gl_cv_next_errno_h='<'errno.h'>'
5043
 
          fi
 
5090
                                                                                                case "$host_os" in
 
5091
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
5092
              *)    gl_absname_cpp="$ac_cpp" ;;
 
5093
            esac
 
5094
                                                gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
5095
               sed -n '\#/errno.h#{
 
5096
                 s#.*"\(.*/errno.h\)".*#\1#
 
5097
                 s#^/[^/]#//&#
 
5098
                 p
 
5099
                 q
 
5100
               }'`'"'
 
5101
          else
 
5102
            gl_cv_next_errno_h='<'errno.h'>'
 
5103
          fi
5044
5104
 
5045
5105
fi
5046
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
 
5106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5047
5107
$as_echo "$gl_cv_next_errno_h" >&6; }
5048
5108
     fi
5049
5109
     NEXT_ERRNO_H=$gl_cv_next_errno_h
5050
5110
 
 
5111
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
5112
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
5113
       gl_next_as_first_directive='<'errno.h'>'
 
5114
     else
 
5115
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
5116
       gl_next_as_first_directive=$gl_cv_next_errno_h
 
5117
     fi
 
5118
     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
 
5119
 
5051
5120
 
5052
5121
 
5053
5122
    ERRNO_H='errno.h'
5055
5124
 
5056
5125
 
5057
5126
  if test -n "$ERRNO_H"; then
5058
 
    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
 
5127
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5059
5128
$as_echo_n "checking for EMULTIHOP value... " >&6; }
5060
 
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
 
5129
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5061
5130
  $as_echo_n "(cached) " >&6
5062
5131
else
5063
5132
 
5064
 
      cat >conftest.$ac_ext <<_ACEOF
5065
 
/* confdefs.h.  */
5066
 
_ACEOF
5067
 
cat confdefs.h >>conftest.$ac_ext
5068
 
cat >>conftest.$ac_ext <<_ACEOF
 
5133
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069
5134
/* end confdefs.h.  */
5070
5135
 
5071
5136
#include <errno.h>
5075
5140
 
5076
5141
_ACEOF
5077
5142
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5078
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5143
  $EGREP "yes" >/dev/null 2>&1; then :
5079
5144
  gl_cv_header_errno_h_EMULTIHOP=yes
5080
5145
else
5081
5146
  gl_cv_header_errno_h_EMULTIHOP=no
5083
5148
rm -f conftest*
5084
5149
 
5085
5150
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5086
 
        cat >conftest.$ac_ext <<_ACEOF
5087
 
/* confdefs.h.  */
5088
 
_ACEOF
5089
 
cat confdefs.h >>conftest.$ac_ext
5090
 
cat >>conftest.$ac_ext <<_ACEOF
 
5151
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091
5152
/* end confdefs.h.  */
5092
5153
 
5093
5154
#define _XOPEN_SOURCE_EXTENDED 1
5098
5159
 
5099
5160
_ACEOF
5100
5161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5101
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5162
  $EGREP "yes" >/dev/null 2>&1; then :
5102
5163
  gl_cv_header_errno_h_EMULTIHOP=hidden
5103
5164
fi
5104
5165
rm -f conftest*
5105
5166
 
5106
5167
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5107
 
                              if test "$cross_compiling" = yes; then
5108
 
  # Depending upon the size, compute the lo and hi bounds.
5109
 
cat >conftest.$ac_ext <<_ACEOF
5110
 
/* confdefs.h.  */
5111
 
_ACEOF
5112
 
cat confdefs.h >>conftest.$ac_ext
5113
 
cat >>conftest.$ac_ext <<_ACEOF
5114
 
/* end confdefs.h.  */
5115
 
 
5116
 
#define _XOPEN_SOURCE_EXTENDED 1
5117
 
#include <errno.h>
5118
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5119
 
#include <stdio.h>
5120
 
#include <stdlib.h>
5121
 
 
5122
 
int
5123
 
main ()
5124
 
{
5125
 
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
5126
 
test_array [0] = 0
5127
 
 
5128
 
  ;
5129
 
  return 0;
5130
 
}
5131
 
_ACEOF
5132
 
rm -f conftest.$ac_objext
5133
 
if { (ac_try="$ac_compile"
5134
 
case "(($ac_try" in
5135
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
 
  *) ac_try_echo=$ac_try;;
5137
 
esac
5138
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139
 
$as_echo "$ac_try_echo") >&5
5140
 
  (eval "$ac_compile") 2>conftest.er1
5141
 
  ac_status=$?
5142
 
  grep -v '^ *+' conftest.er1 >conftest.err
5143
 
  rm -f conftest.er1
5144
 
  cat conftest.err >&5
5145
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146
 
  (exit $ac_status); } && {
5147
 
         test -z "$ac_c_werror_flag" ||
5148
 
         test ! -s conftest.err
5149
 
       } && test -s conftest.$ac_objext; then
5150
 
  ac_lo=0 ac_mid=0
5151
 
  while :; do
5152
 
    cat >conftest.$ac_ext <<_ACEOF
5153
 
/* confdefs.h.  */
5154
 
_ACEOF
5155
 
cat confdefs.h >>conftest.$ac_ext
5156
 
cat >>conftest.$ac_ext <<_ACEOF
5157
 
/* end confdefs.h.  */
5158
 
 
5159
 
#define _XOPEN_SOURCE_EXTENDED 1
5160
 
#include <errno.h>
5161
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5162
 
#include <stdio.h>
5163
 
#include <stdlib.h>
5164
 
 
5165
 
int
5166
 
main ()
5167
 
{
5168
 
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
5169
 
test_array [0] = 0
5170
 
 
5171
 
  ;
5172
 
  return 0;
5173
 
}
5174
 
_ACEOF
5175
 
rm -f conftest.$ac_objext
5176
 
if { (ac_try="$ac_compile"
5177
 
case "(($ac_try" in
5178
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179
 
  *) ac_try_echo=$ac_try;;
5180
 
esac
5181
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5182
 
$as_echo "$ac_try_echo") >&5
5183
 
  (eval "$ac_compile") 2>conftest.er1
5184
 
  ac_status=$?
5185
 
  grep -v '^ *+' conftest.er1 >conftest.err
5186
 
  rm -f conftest.er1
5187
 
  cat conftest.err >&5
5188
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
 
  (exit $ac_status); } && {
5190
 
         test -z "$ac_c_werror_flag" ||
5191
 
         test ! -s conftest.err
5192
 
       } && test -s conftest.$ac_objext; then
5193
 
  ac_hi=$ac_mid; break
5194
 
else
5195
 
  $as_echo "$as_me: failed program was:" >&5
5196
 
sed 's/^/| /' conftest.$ac_ext >&5
5197
 
 
5198
 
        ac_lo=`expr $ac_mid + 1`
5199
 
                        if test $ac_lo -le $ac_mid; then
5200
 
                          ac_lo= ac_hi=
5201
 
                          break
5202
 
                        fi
5203
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
5204
 
fi
5205
 
 
5206
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207
 
  done
5208
 
else
5209
 
  $as_echo "$as_me: failed program was:" >&5
5210
 
sed 's/^/| /' conftest.$ac_ext >&5
5211
 
 
5212
 
        cat >conftest.$ac_ext <<_ACEOF
5213
 
/* confdefs.h.  */
5214
 
_ACEOF
5215
 
cat confdefs.h >>conftest.$ac_ext
5216
 
cat >>conftest.$ac_ext <<_ACEOF
5217
 
/* end confdefs.h.  */
5218
 
 
5219
 
#define _XOPEN_SOURCE_EXTENDED 1
5220
 
#include <errno.h>
5221
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5222
 
#include <stdio.h>
5223
 
#include <stdlib.h>
5224
 
 
5225
 
int
5226
 
main ()
5227
 
{
5228
 
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
5229
 
test_array [0] = 0
5230
 
 
5231
 
  ;
5232
 
  return 0;
5233
 
}
5234
 
_ACEOF
5235
 
rm -f conftest.$ac_objext
5236
 
if { (ac_try="$ac_compile"
5237
 
case "(($ac_try" in
5238
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239
 
  *) ac_try_echo=$ac_try;;
5240
 
esac
5241
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5242
 
$as_echo "$ac_try_echo") >&5
5243
 
  (eval "$ac_compile") 2>conftest.er1
5244
 
  ac_status=$?
5245
 
  grep -v '^ *+' conftest.er1 >conftest.err
5246
 
  rm -f conftest.er1
5247
 
  cat conftest.err >&5
5248
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249
 
  (exit $ac_status); } && {
5250
 
         test -z "$ac_c_werror_flag" ||
5251
 
         test ! -s conftest.err
5252
 
       } && test -s conftest.$ac_objext; then
5253
 
  ac_hi=-1 ac_mid=-1
5254
 
  while :; do
5255
 
    cat >conftest.$ac_ext <<_ACEOF
5256
 
/* confdefs.h.  */
5257
 
_ACEOF
5258
 
cat confdefs.h >>conftest.$ac_ext
5259
 
cat >>conftest.$ac_ext <<_ACEOF
5260
 
/* end confdefs.h.  */
5261
 
 
5262
 
#define _XOPEN_SOURCE_EXTENDED 1
5263
 
#include <errno.h>
5264
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5265
 
#include <stdio.h>
5266
 
#include <stdlib.h>
5267
 
 
5268
 
int
5269
 
main ()
5270
 
{
5271
 
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
5272
 
test_array [0] = 0
5273
 
 
5274
 
  ;
5275
 
  return 0;
5276
 
}
5277
 
_ACEOF
5278
 
rm -f conftest.$ac_objext
5279
 
if { (ac_try="$ac_compile"
5280
 
case "(($ac_try" in
5281
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282
 
  *) ac_try_echo=$ac_try;;
5283
 
esac
5284
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5285
 
$as_echo "$ac_try_echo") >&5
5286
 
  (eval "$ac_compile") 2>conftest.er1
5287
 
  ac_status=$?
5288
 
  grep -v '^ *+' conftest.er1 >conftest.err
5289
 
  rm -f conftest.er1
5290
 
  cat conftest.err >&5
5291
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292
 
  (exit $ac_status); } && {
5293
 
         test -z "$ac_c_werror_flag" ||
5294
 
         test ! -s conftest.err
5295
 
       } && test -s conftest.$ac_objext; then
5296
 
  ac_lo=$ac_mid; break
5297
 
else
5298
 
  $as_echo "$as_me: failed program was:" >&5
5299
 
sed 's/^/| /' conftest.$ac_ext >&5
5300
 
 
5301
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
5302
 
                        if test $ac_mid -le $ac_hi; then
5303
 
                          ac_lo= ac_hi=
5304
 
                          break
5305
 
                        fi
5306
 
                        ac_mid=`expr 2 '*' $ac_mid`
5307
 
fi
5308
 
 
5309
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
 
  done
5311
 
else
5312
 
  $as_echo "$as_me: failed program was:" >&5
5313
 
sed 's/^/| /' conftest.$ac_ext >&5
5314
 
 
5315
 
        ac_lo= ac_hi=
5316
 
fi
5317
 
 
5318
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319
 
fi
5320
 
 
5321
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322
 
# Binary search between lo and hi bounds.
5323
 
while test "x$ac_lo" != "x$ac_hi"; do
5324
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5325
 
  cat >conftest.$ac_ext <<_ACEOF
5326
 
/* confdefs.h.  */
5327
 
_ACEOF
5328
 
cat confdefs.h >>conftest.$ac_ext
5329
 
cat >>conftest.$ac_ext <<_ACEOF
5330
 
/* end confdefs.h.  */
5331
 
 
5332
 
#define _XOPEN_SOURCE_EXTENDED 1
5333
 
#include <errno.h>
5334
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5335
 
#include <stdio.h>
5336
 
#include <stdlib.h>
5337
 
 
5338
 
int
5339
 
main ()
5340
 
{
5341
 
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
5342
 
test_array [0] = 0
5343
 
 
5344
 
  ;
5345
 
  return 0;
5346
 
}
5347
 
_ACEOF
5348
 
rm -f conftest.$ac_objext
5349
 
if { (ac_try="$ac_compile"
5350
 
case "(($ac_try" in
5351
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352
 
  *) ac_try_echo=$ac_try;;
5353
 
esac
5354
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5355
 
$as_echo "$ac_try_echo") >&5
5356
 
  (eval "$ac_compile") 2>conftest.er1
5357
 
  ac_status=$?
5358
 
  grep -v '^ *+' conftest.er1 >conftest.err
5359
 
  rm -f conftest.er1
5360
 
  cat conftest.err >&5
5361
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362
 
  (exit $ac_status); } && {
5363
 
         test -z "$ac_c_werror_flag" ||
5364
 
         test ! -s conftest.err
5365
 
       } && test -s conftest.$ac_objext; then
5366
 
  ac_hi=$ac_mid
5367
 
else
5368
 
  $as_echo "$as_me: failed program was:" >&5
5369
 
sed 's/^/| /' conftest.$ac_ext >&5
5370
 
 
5371
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
5372
 
fi
5373
 
 
5374
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375
 
done
5376
 
case $ac_lo in
5377
 
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
5378
 
'')  ;;
5379
 
esac
5380
 
else
5381
 
  cat >conftest.$ac_ext <<_ACEOF
5382
 
/* confdefs.h.  */
5383
 
_ACEOF
5384
 
cat confdefs.h >>conftest.$ac_ext
5385
 
cat >>conftest.$ac_ext <<_ACEOF
5386
 
/* end confdefs.h.  */
5387
 
 
5388
 
#define _XOPEN_SOURCE_EXTENDED 1
5389
 
#include <errno.h>
5390
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5391
 
#include <stdio.h>
5392
 
#include <stdlib.h>
5393
 
 
5394
 
static long int longval () { return EMULTIHOP; }
5395
 
static unsigned long int ulongval () { return EMULTIHOP; }
5396
 
#include <stdio.h>
5397
 
#include <stdlib.h>
5398
 
int
5399
 
main ()
5400
 
{
5401
 
 
5402
 
  FILE *f = fopen ("conftest.val", "w");
5403
 
  if (! f)
5404
 
    return 1;
5405
 
  if ((EMULTIHOP) < 0)
5406
 
    {
5407
 
      long int i = longval ();
5408
 
      if (i != (EMULTIHOP))
5409
 
        return 1;
5410
 
      fprintf (f, "%ld", i);
5411
 
    }
5412
 
  else
5413
 
    {
5414
 
      unsigned long int i = ulongval ();
5415
 
      if (i != (EMULTIHOP))
5416
 
        return 1;
5417
 
      fprintf (f, "%lu", i);
5418
 
    }
5419
 
  /* Do not output a trailing newline, as this causes \r\n confusion
5420
 
     on some platforms.  */
5421
 
  return ferror (f) || fclose (f) != 0;
5422
 
 
5423
 
  ;
5424
 
  return 0;
5425
 
}
5426
 
_ACEOF
5427
 
rm -f conftest$ac_exeext
5428
 
if { (ac_try="$ac_link"
5429
 
case "(($ac_try" in
5430
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431
 
  *) ac_try_echo=$ac_try;;
5432
 
esac
5433
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434
 
$as_echo "$ac_try_echo") >&5
5435
 
  (eval "$ac_link") 2>&5
5436
 
  ac_status=$?
5437
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439
 
  { (case "(($ac_try" in
5440
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441
 
  *) ac_try_echo=$ac_try;;
5442
 
esac
5443
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444
 
$as_echo "$ac_try_echo") >&5
5445
 
  (eval "$ac_try") 2>&5
5446
 
  ac_status=$?
5447
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
 
  (exit $ac_status); }; }; then
5449
 
  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
5450
 
else
5451
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5452
 
$as_echo "$as_me: failed program was:" >&5
5453
 
sed 's/^/| /' conftest.$ac_ext >&5
5454
 
 
5455
 
fi
5456
 
rm -rf conftest.dSYM
5457
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5458
 
fi
5459
 
rm -f conftest.val
 
5168
                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
 
5169
#define _XOPEN_SOURCE_EXTENDED 1
 
5170
#include <errno.h>
 
5171
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
5172
#include <stdio.h>
 
5173
#include <stdlib.h>
 
5174
"; then :
 
5175
 
 
5176
fi
 
5177
 
5460
5178
        fi
5461
5179
      fi
5462
5180
 
5463
5181
fi
5464
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5465
5183
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5466
5184
    case $gl_cv_header_errno_h_EMULTIHOP in
5467
5185
      yes | no)
5477
5195
 
5478
5196
 
5479
5197
  if test -n "$ERRNO_H"; then
5480
 
    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
 
5198
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5481
5199
$as_echo_n "checking for ENOLINK value... " >&6; }
5482
 
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
 
5200
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5483
5201
  $as_echo_n "(cached) " >&6
5484
5202
else
5485
5203
 
5486
 
      cat >conftest.$ac_ext <<_ACEOF
5487
 
/* confdefs.h.  */
5488
 
_ACEOF
5489
 
cat confdefs.h >>conftest.$ac_ext
5490
 
cat >>conftest.$ac_ext <<_ACEOF
 
5204
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491
5205
/* end confdefs.h.  */
5492
5206
 
5493
5207
#include <errno.h>
5497
5211
 
5498
5212
_ACEOF
5499
5213
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5214
  $EGREP "yes" >/dev/null 2>&1; then :
5501
5215
  gl_cv_header_errno_h_ENOLINK=yes
5502
5216
else
5503
5217
  gl_cv_header_errno_h_ENOLINK=no
5505
5219
rm -f conftest*
5506
5220
 
5507
5221
      if test $gl_cv_header_errno_h_ENOLINK = no; then
5508
 
        cat >conftest.$ac_ext <<_ACEOF
5509
 
/* confdefs.h.  */
5510
 
_ACEOF
5511
 
cat confdefs.h >>conftest.$ac_ext
5512
 
cat >>conftest.$ac_ext <<_ACEOF
 
5222
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513
5223
/* end confdefs.h.  */
5514
5224
 
5515
5225
#define _XOPEN_SOURCE_EXTENDED 1
5520
5230
 
5521
5231
_ACEOF
5522
5232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5233
  $EGREP "yes" >/dev/null 2>&1; then :
5524
5234
  gl_cv_header_errno_h_ENOLINK=hidden
5525
5235
fi
5526
5236
rm -f conftest*
5527
5237
 
5528
5238
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5529
 
                              if test "$cross_compiling" = yes; then
5530
 
  # Depending upon the size, compute the lo and hi bounds.
5531
 
cat >conftest.$ac_ext <<_ACEOF
5532
 
/* confdefs.h.  */
5533
 
_ACEOF
5534
 
cat confdefs.h >>conftest.$ac_ext
5535
 
cat >>conftest.$ac_ext <<_ACEOF
5536
 
/* end confdefs.h.  */
5537
 
 
5538
 
#define _XOPEN_SOURCE_EXTENDED 1
5539
 
#include <errno.h>
5540
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5541
 
#include <stdio.h>
5542
 
#include <stdlib.h>
5543
 
 
5544
 
int
5545
 
main ()
5546
 
{
5547
 
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
5548
 
test_array [0] = 0
5549
 
 
5550
 
  ;
5551
 
  return 0;
5552
 
}
5553
 
_ACEOF
5554
 
rm -f conftest.$ac_objext
5555
 
if { (ac_try="$ac_compile"
5556
 
case "(($ac_try" in
5557
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558
 
  *) ac_try_echo=$ac_try;;
5559
 
esac
5560
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561
 
$as_echo "$ac_try_echo") >&5
5562
 
  (eval "$ac_compile") 2>conftest.er1
5563
 
  ac_status=$?
5564
 
  grep -v '^ *+' conftest.er1 >conftest.err
5565
 
  rm -f conftest.er1
5566
 
  cat conftest.err >&5
5567
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568
 
  (exit $ac_status); } && {
5569
 
         test -z "$ac_c_werror_flag" ||
5570
 
         test ! -s conftest.err
5571
 
       } && test -s conftest.$ac_objext; then
5572
 
  ac_lo=0 ac_mid=0
5573
 
  while :; do
5574
 
    cat >conftest.$ac_ext <<_ACEOF
5575
 
/* confdefs.h.  */
5576
 
_ACEOF
5577
 
cat confdefs.h >>conftest.$ac_ext
5578
 
cat >>conftest.$ac_ext <<_ACEOF
5579
 
/* end confdefs.h.  */
5580
 
 
5581
 
#define _XOPEN_SOURCE_EXTENDED 1
5582
 
#include <errno.h>
5583
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5584
 
#include <stdio.h>
5585
 
#include <stdlib.h>
5586
 
 
5587
 
int
5588
 
main ()
5589
 
{
5590
 
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
5591
 
test_array [0] = 0
5592
 
 
5593
 
  ;
5594
 
  return 0;
5595
 
}
5596
 
_ACEOF
5597
 
rm -f conftest.$ac_objext
5598
 
if { (ac_try="$ac_compile"
5599
 
case "(($ac_try" in
5600
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601
 
  *) ac_try_echo=$ac_try;;
5602
 
esac
5603
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5604
 
$as_echo "$ac_try_echo") >&5
5605
 
  (eval "$ac_compile") 2>conftest.er1
5606
 
  ac_status=$?
5607
 
  grep -v '^ *+' conftest.er1 >conftest.err
5608
 
  rm -f conftest.er1
5609
 
  cat conftest.err >&5
5610
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611
 
  (exit $ac_status); } && {
5612
 
         test -z "$ac_c_werror_flag" ||
5613
 
         test ! -s conftest.err
5614
 
       } && test -s conftest.$ac_objext; then
5615
 
  ac_hi=$ac_mid; break
5616
 
else
5617
 
  $as_echo "$as_me: failed program was:" >&5
5618
 
sed 's/^/| /' conftest.$ac_ext >&5
5619
 
 
5620
 
        ac_lo=`expr $ac_mid + 1`
5621
 
                        if test $ac_lo -le $ac_mid; then
5622
 
                          ac_lo= ac_hi=
5623
 
                          break
5624
 
                        fi
5625
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
5626
 
fi
5627
 
 
5628
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629
 
  done
5630
 
else
5631
 
  $as_echo "$as_me: failed program was:" >&5
5632
 
sed 's/^/| /' conftest.$ac_ext >&5
5633
 
 
5634
 
        cat >conftest.$ac_ext <<_ACEOF
5635
 
/* confdefs.h.  */
5636
 
_ACEOF
5637
 
cat confdefs.h >>conftest.$ac_ext
5638
 
cat >>conftest.$ac_ext <<_ACEOF
5639
 
/* end confdefs.h.  */
5640
 
 
5641
 
#define _XOPEN_SOURCE_EXTENDED 1
5642
 
#include <errno.h>
5643
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5644
 
#include <stdio.h>
5645
 
#include <stdlib.h>
5646
 
 
5647
 
int
5648
 
main ()
5649
 
{
5650
 
static int test_array [1 - 2 * !((ENOLINK) < 0)];
5651
 
test_array [0] = 0
5652
 
 
5653
 
  ;
5654
 
  return 0;
5655
 
}
5656
 
_ACEOF
5657
 
rm -f conftest.$ac_objext
5658
 
if { (ac_try="$ac_compile"
5659
 
case "(($ac_try" in
5660
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661
 
  *) ac_try_echo=$ac_try;;
5662
 
esac
5663
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5664
 
$as_echo "$ac_try_echo") >&5
5665
 
  (eval "$ac_compile") 2>conftest.er1
5666
 
  ac_status=$?
5667
 
  grep -v '^ *+' conftest.er1 >conftest.err
5668
 
  rm -f conftest.er1
5669
 
  cat conftest.err >&5
5670
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671
 
  (exit $ac_status); } && {
5672
 
         test -z "$ac_c_werror_flag" ||
5673
 
         test ! -s conftest.err
5674
 
       } && test -s conftest.$ac_objext; then
5675
 
  ac_hi=-1 ac_mid=-1
5676
 
  while :; do
5677
 
    cat >conftest.$ac_ext <<_ACEOF
5678
 
/* confdefs.h.  */
5679
 
_ACEOF
5680
 
cat confdefs.h >>conftest.$ac_ext
5681
 
cat >>conftest.$ac_ext <<_ACEOF
5682
 
/* end confdefs.h.  */
5683
 
 
5684
 
#define _XOPEN_SOURCE_EXTENDED 1
5685
 
#include <errno.h>
5686
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5687
 
#include <stdio.h>
5688
 
#include <stdlib.h>
5689
 
 
5690
 
int
5691
 
main ()
5692
 
{
5693
 
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
5694
 
test_array [0] = 0
5695
 
 
5696
 
  ;
5697
 
  return 0;
5698
 
}
5699
 
_ACEOF
5700
 
rm -f conftest.$ac_objext
5701
 
if { (ac_try="$ac_compile"
5702
 
case "(($ac_try" in
5703
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704
 
  *) ac_try_echo=$ac_try;;
5705
 
esac
5706
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5707
 
$as_echo "$ac_try_echo") >&5
5708
 
  (eval "$ac_compile") 2>conftest.er1
5709
 
  ac_status=$?
5710
 
  grep -v '^ *+' conftest.er1 >conftest.err
5711
 
  rm -f conftest.er1
5712
 
  cat conftest.err >&5
5713
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714
 
  (exit $ac_status); } && {
5715
 
         test -z "$ac_c_werror_flag" ||
5716
 
         test ! -s conftest.err
5717
 
       } && test -s conftest.$ac_objext; then
5718
 
  ac_lo=$ac_mid; break
5719
 
else
5720
 
  $as_echo "$as_me: failed program was:" >&5
5721
 
sed 's/^/| /' conftest.$ac_ext >&5
5722
 
 
5723
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
5724
 
                        if test $ac_mid -le $ac_hi; then
5725
 
                          ac_lo= ac_hi=
5726
 
                          break
5727
 
                        fi
5728
 
                        ac_mid=`expr 2 '*' $ac_mid`
5729
 
fi
5730
 
 
5731
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732
 
  done
5733
 
else
5734
 
  $as_echo "$as_me: failed program was:" >&5
5735
 
sed 's/^/| /' conftest.$ac_ext >&5
5736
 
 
5737
 
        ac_lo= ac_hi=
5738
 
fi
5739
 
 
5740
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741
 
fi
5742
 
 
5743
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744
 
# Binary search between lo and hi bounds.
5745
 
while test "x$ac_lo" != "x$ac_hi"; do
5746
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5747
 
  cat >conftest.$ac_ext <<_ACEOF
5748
 
/* confdefs.h.  */
5749
 
_ACEOF
5750
 
cat confdefs.h >>conftest.$ac_ext
5751
 
cat >>conftest.$ac_ext <<_ACEOF
5752
 
/* end confdefs.h.  */
5753
 
 
5754
 
#define _XOPEN_SOURCE_EXTENDED 1
5755
 
#include <errno.h>
5756
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5757
 
#include <stdio.h>
5758
 
#include <stdlib.h>
5759
 
 
5760
 
int
5761
 
main ()
5762
 
{
5763
 
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
5764
 
test_array [0] = 0
5765
 
 
5766
 
  ;
5767
 
  return 0;
5768
 
}
5769
 
_ACEOF
5770
 
rm -f conftest.$ac_objext
5771
 
if { (ac_try="$ac_compile"
5772
 
case "(($ac_try" in
5773
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774
 
  *) ac_try_echo=$ac_try;;
5775
 
esac
5776
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5777
 
$as_echo "$ac_try_echo") >&5
5778
 
  (eval "$ac_compile") 2>conftest.er1
5779
 
  ac_status=$?
5780
 
  grep -v '^ *+' conftest.er1 >conftest.err
5781
 
  rm -f conftest.er1
5782
 
  cat conftest.err >&5
5783
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
 
  (exit $ac_status); } && {
5785
 
         test -z "$ac_c_werror_flag" ||
5786
 
         test ! -s conftest.err
5787
 
       } && test -s conftest.$ac_objext; then
5788
 
  ac_hi=$ac_mid
5789
 
else
5790
 
  $as_echo "$as_me: failed program was:" >&5
5791
 
sed 's/^/| /' conftest.$ac_ext >&5
5792
 
 
5793
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
5794
 
fi
5795
 
 
5796
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797
 
done
5798
 
case $ac_lo in
5799
 
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
5800
 
'')  ;;
5801
 
esac
5802
 
else
5803
 
  cat >conftest.$ac_ext <<_ACEOF
5804
 
/* confdefs.h.  */
5805
 
_ACEOF
5806
 
cat confdefs.h >>conftest.$ac_ext
5807
 
cat >>conftest.$ac_ext <<_ACEOF
5808
 
/* end confdefs.h.  */
5809
 
 
5810
 
#define _XOPEN_SOURCE_EXTENDED 1
5811
 
#include <errno.h>
5812
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5813
 
#include <stdio.h>
5814
 
#include <stdlib.h>
5815
 
 
5816
 
static long int longval () { return ENOLINK; }
5817
 
static unsigned long int ulongval () { return ENOLINK; }
5818
 
#include <stdio.h>
5819
 
#include <stdlib.h>
5820
 
int
5821
 
main ()
5822
 
{
5823
 
 
5824
 
  FILE *f = fopen ("conftest.val", "w");
5825
 
  if (! f)
5826
 
    return 1;
5827
 
  if ((ENOLINK) < 0)
5828
 
    {
5829
 
      long int i = longval ();
5830
 
      if (i != (ENOLINK))
5831
 
        return 1;
5832
 
      fprintf (f, "%ld", i);
5833
 
    }
5834
 
  else
5835
 
    {
5836
 
      unsigned long int i = ulongval ();
5837
 
      if (i != (ENOLINK))
5838
 
        return 1;
5839
 
      fprintf (f, "%lu", i);
5840
 
    }
5841
 
  /* Do not output a trailing newline, as this causes \r\n confusion
5842
 
     on some platforms.  */
5843
 
  return ferror (f) || fclose (f) != 0;
5844
 
 
5845
 
  ;
5846
 
  return 0;
5847
 
}
5848
 
_ACEOF
5849
 
rm -f conftest$ac_exeext
5850
 
if { (ac_try="$ac_link"
5851
 
case "(($ac_try" in
5852
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853
 
  *) ac_try_echo=$ac_try;;
5854
 
esac
5855
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5856
 
$as_echo "$ac_try_echo") >&5
5857
 
  (eval "$ac_link") 2>&5
5858
 
  ac_status=$?
5859
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5861
 
  { (case "(($ac_try" in
5862
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863
 
  *) ac_try_echo=$ac_try;;
5864
 
esac
5865
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5866
 
$as_echo "$ac_try_echo") >&5
5867
 
  (eval "$ac_try") 2>&5
5868
 
  ac_status=$?
5869
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
 
  (exit $ac_status); }; }; then
5871
 
  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
5872
 
else
5873
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5874
 
$as_echo "$as_me: failed program was:" >&5
5875
 
sed 's/^/| /' conftest.$ac_ext >&5
5876
 
 
5877
 
fi
5878
 
rm -rf conftest.dSYM
5879
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5880
 
fi
5881
 
rm -f conftest.val
 
5239
                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
 
5240
#define _XOPEN_SOURCE_EXTENDED 1
 
5241
#include <errno.h>
 
5242
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
5243
#include <stdio.h>
 
5244
#include <stdlib.h>
 
5245
"; then :
 
5246
 
 
5247
fi
 
5248
 
5882
5249
        fi
5883
5250
      fi
5884
5251
 
5885
5252
fi
5886
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
 
5253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5887
5254
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5888
5255
    case $gl_cv_header_errno_h_ENOLINK in
5889
5256
      yes | no)
5899
5266
 
5900
5267
 
5901
5268
  if test -n "$ERRNO_H"; then
5902
 
    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
 
5269
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5903
5270
$as_echo_n "checking for EOVERFLOW value... " >&6; }
5904
 
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
 
5271
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
5905
5272
  $as_echo_n "(cached) " >&6
5906
5273
else
5907
5274
 
5908
 
      cat >conftest.$ac_ext <<_ACEOF
5909
 
/* confdefs.h.  */
5910
 
_ACEOF
5911
 
cat confdefs.h >>conftest.$ac_ext
5912
 
cat >>conftest.$ac_ext <<_ACEOF
 
5275
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913
5276
/* end confdefs.h.  */
5914
5277
 
5915
5278
#include <errno.h>
5919
5282
 
5920
5283
_ACEOF
5921
5284
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5285
  $EGREP "yes" >/dev/null 2>&1; then :
5923
5286
  gl_cv_header_errno_h_EOVERFLOW=yes
5924
5287
else
5925
5288
  gl_cv_header_errno_h_EOVERFLOW=no
5927
5290
rm -f conftest*
5928
5291
 
5929
5292
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5930
 
        cat >conftest.$ac_ext <<_ACEOF
5931
 
/* confdefs.h.  */
5932
 
_ACEOF
5933
 
cat confdefs.h >>conftest.$ac_ext
5934
 
cat >>conftest.$ac_ext <<_ACEOF
 
5293
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935
5294
/* end confdefs.h.  */
5936
5295
 
5937
5296
#define _XOPEN_SOURCE_EXTENDED 1
5942
5301
 
5943
5302
_ACEOF
5944
5303
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5945
 
  $EGREP "yes" >/dev/null 2>&1; then
 
5304
  $EGREP "yes" >/dev/null 2>&1; then :
5946
5305
  gl_cv_header_errno_h_EOVERFLOW=hidden
5947
5306
fi
5948
5307
rm -f conftest*
5949
5308
 
5950
5309
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5951
 
                              if test "$cross_compiling" = yes; then
5952
 
  # Depending upon the size, compute the lo and hi bounds.
5953
 
cat >conftest.$ac_ext <<_ACEOF
5954
 
/* confdefs.h.  */
5955
 
_ACEOF
5956
 
cat confdefs.h >>conftest.$ac_ext
5957
 
cat >>conftest.$ac_ext <<_ACEOF
5958
 
/* end confdefs.h.  */
5959
 
 
5960
 
#define _XOPEN_SOURCE_EXTENDED 1
5961
 
#include <errno.h>
5962
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
5963
 
#include <stdio.h>
5964
 
#include <stdlib.h>
5965
 
 
5966
 
int
5967
 
main ()
5968
 
{
5969
 
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
5970
 
test_array [0] = 0
5971
 
 
5972
 
  ;
5973
 
  return 0;
5974
 
}
5975
 
_ACEOF
5976
 
rm -f conftest.$ac_objext
5977
 
if { (ac_try="$ac_compile"
5978
 
case "(($ac_try" in
5979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980
 
  *) ac_try_echo=$ac_try;;
5981
 
esac
5982
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983
 
$as_echo "$ac_try_echo") >&5
5984
 
  (eval "$ac_compile") 2>conftest.er1
5985
 
  ac_status=$?
5986
 
  grep -v '^ *+' conftest.er1 >conftest.err
5987
 
  rm -f conftest.er1
5988
 
  cat conftest.err >&5
5989
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990
 
  (exit $ac_status); } && {
5991
 
         test -z "$ac_c_werror_flag" ||
5992
 
         test ! -s conftest.err
5993
 
       } && test -s conftest.$ac_objext; then
5994
 
  ac_lo=0 ac_mid=0
5995
 
  while :; do
5996
 
    cat >conftest.$ac_ext <<_ACEOF
5997
 
/* confdefs.h.  */
5998
 
_ACEOF
5999
 
cat confdefs.h >>conftest.$ac_ext
6000
 
cat >>conftest.$ac_ext <<_ACEOF
6001
 
/* end confdefs.h.  */
6002
 
 
6003
 
#define _XOPEN_SOURCE_EXTENDED 1
6004
 
#include <errno.h>
6005
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6006
 
#include <stdio.h>
6007
 
#include <stdlib.h>
6008
 
 
6009
 
int
6010
 
main ()
6011
 
{
6012
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
6013
 
test_array [0] = 0
6014
 
 
6015
 
  ;
6016
 
  return 0;
6017
 
}
6018
 
_ACEOF
6019
 
rm -f conftest.$ac_objext
6020
 
if { (ac_try="$ac_compile"
6021
 
case "(($ac_try" in
6022
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023
 
  *) ac_try_echo=$ac_try;;
6024
 
esac
6025
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026
 
$as_echo "$ac_try_echo") >&5
6027
 
  (eval "$ac_compile") 2>conftest.er1
6028
 
  ac_status=$?
6029
 
  grep -v '^ *+' conftest.er1 >conftest.err
6030
 
  rm -f conftest.er1
6031
 
  cat conftest.err >&5
6032
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033
 
  (exit $ac_status); } && {
6034
 
         test -z "$ac_c_werror_flag" ||
6035
 
         test ! -s conftest.err
6036
 
       } && test -s conftest.$ac_objext; then
6037
 
  ac_hi=$ac_mid; break
6038
 
else
6039
 
  $as_echo "$as_me: failed program was:" >&5
6040
 
sed 's/^/| /' conftest.$ac_ext >&5
6041
 
 
6042
 
        ac_lo=`expr $ac_mid + 1`
6043
 
                        if test $ac_lo -le $ac_mid; then
6044
 
                          ac_lo= ac_hi=
6045
 
                          break
6046
 
                        fi
6047
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
6048
 
fi
6049
 
 
6050
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051
 
  done
6052
 
else
6053
 
  $as_echo "$as_me: failed program was:" >&5
6054
 
sed 's/^/| /' conftest.$ac_ext >&5
6055
 
 
6056
 
        cat >conftest.$ac_ext <<_ACEOF
6057
 
/* confdefs.h.  */
6058
 
_ACEOF
6059
 
cat confdefs.h >>conftest.$ac_ext
6060
 
cat >>conftest.$ac_ext <<_ACEOF
6061
 
/* end confdefs.h.  */
6062
 
 
6063
 
#define _XOPEN_SOURCE_EXTENDED 1
6064
 
#include <errno.h>
6065
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6066
 
#include <stdio.h>
6067
 
#include <stdlib.h>
6068
 
 
6069
 
int
6070
 
main ()
6071
 
{
6072
 
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
6073
 
test_array [0] = 0
6074
 
 
6075
 
  ;
6076
 
  return 0;
6077
 
}
6078
 
_ACEOF
6079
 
rm -f conftest.$ac_objext
6080
 
if { (ac_try="$ac_compile"
6081
 
case "(($ac_try" in
6082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083
 
  *) ac_try_echo=$ac_try;;
6084
 
esac
6085
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6086
 
$as_echo "$ac_try_echo") >&5
6087
 
  (eval "$ac_compile") 2>conftest.er1
6088
 
  ac_status=$?
6089
 
  grep -v '^ *+' conftest.er1 >conftest.err
6090
 
  rm -f conftest.er1
6091
 
  cat conftest.err >&5
6092
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
 
  (exit $ac_status); } && {
6094
 
         test -z "$ac_c_werror_flag" ||
6095
 
         test ! -s conftest.err
6096
 
       } && test -s conftest.$ac_objext; then
6097
 
  ac_hi=-1 ac_mid=-1
6098
 
  while :; do
6099
 
    cat >conftest.$ac_ext <<_ACEOF
6100
 
/* confdefs.h.  */
6101
 
_ACEOF
6102
 
cat confdefs.h >>conftest.$ac_ext
6103
 
cat >>conftest.$ac_ext <<_ACEOF
6104
 
/* end confdefs.h.  */
6105
 
 
6106
 
#define _XOPEN_SOURCE_EXTENDED 1
6107
 
#include <errno.h>
6108
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6109
 
#include <stdio.h>
6110
 
#include <stdlib.h>
6111
 
 
6112
 
int
6113
 
main ()
6114
 
{
6115
 
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
6116
 
test_array [0] = 0
6117
 
 
6118
 
  ;
6119
 
  return 0;
6120
 
}
6121
 
_ACEOF
6122
 
rm -f conftest.$ac_objext
6123
 
if { (ac_try="$ac_compile"
6124
 
case "(($ac_try" in
6125
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126
 
  *) ac_try_echo=$ac_try;;
6127
 
esac
6128
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129
 
$as_echo "$ac_try_echo") >&5
6130
 
  (eval "$ac_compile") 2>conftest.er1
6131
 
  ac_status=$?
6132
 
  grep -v '^ *+' conftest.er1 >conftest.err
6133
 
  rm -f conftest.er1
6134
 
  cat conftest.err >&5
6135
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136
 
  (exit $ac_status); } && {
6137
 
         test -z "$ac_c_werror_flag" ||
6138
 
         test ! -s conftest.err
6139
 
       } && test -s conftest.$ac_objext; then
6140
 
  ac_lo=$ac_mid; break
6141
 
else
6142
 
  $as_echo "$as_me: failed program was:" >&5
6143
 
sed 's/^/| /' conftest.$ac_ext >&5
6144
 
 
6145
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
6146
 
                        if test $ac_mid -le $ac_hi; then
6147
 
                          ac_lo= ac_hi=
6148
 
                          break
6149
 
                        fi
6150
 
                        ac_mid=`expr 2 '*' $ac_mid`
6151
 
fi
6152
 
 
6153
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154
 
  done
6155
 
else
6156
 
  $as_echo "$as_me: failed program was:" >&5
6157
 
sed 's/^/| /' conftest.$ac_ext >&5
6158
 
 
6159
 
        ac_lo= ac_hi=
6160
 
fi
6161
 
 
6162
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163
 
fi
6164
 
 
6165
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166
 
# Binary search between lo and hi bounds.
6167
 
while test "x$ac_lo" != "x$ac_hi"; do
6168
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6169
 
  cat >conftest.$ac_ext <<_ACEOF
6170
 
/* confdefs.h.  */
6171
 
_ACEOF
6172
 
cat confdefs.h >>conftest.$ac_ext
6173
 
cat >>conftest.$ac_ext <<_ACEOF
6174
 
/* end confdefs.h.  */
6175
 
 
6176
 
#define _XOPEN_SOURCE_EXTENDED 1
6177
 
#include <errno.h>
6178
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6179
 
#include <stdio.h>
6180
 
#include <stdlib.h>
6181
 
 
6182
 
int
6183
 
main ()
6184
 
{
6185
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
6186
 
test_array [0] = 0
6187
 
 
6188
 
  ;
6189
 
  return 0;
6190
 
}
6191
 
_ACEOF
6192
 
rm -f conftest.$ac_objext
6193
 
if { (ac_try="$ac_compile"
6194
 
case "(($ac_try" in
6195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196
 
  *) ac_try_echo=$ac_try;;
6197
 
esac
6198
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199
 
$as_echo "$ac_try_echo") >&5
6200
 
  (eval "$ac_compile") 2>conftest.er1
6201
 
  ac_status=$?
6202
 
  grep -v '^ *+' conftest.er1 >conftest.err
6203
 
  rm -f conftest.er1
6204
 
  cat conftest.err >&5
6205
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206
 
  (exit $ac_status); } && {
6207
 
         test -z "$ac_c_werror_flag" ||
6208
 
         test ! -s conftest.err
6209
 
       } && test -s conftest.$ac_objext; then
6210
 
  ac_hi=$ac_mid
6211
 
else
6212
 
  $as_echo "$as_me: failed program was:" >&5
6213
 
sed 's/^/| /' conftest.$ac_ext >&5
6214
 
 
6215
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
6216
 
fi
6217
 
 
6218
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219
 
done
6220
 
case $ac_lo in
6221
 
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
6222
 
'')  ;;
6223
 
esac
6224
 
else
6225
 
  cat >conftest.$ac_ext <<_ACEOF
6226
 
/* confdefs.h.  */
6227
 
_ACEOF
6228
 
cat confdefs.h >>conftest.$ac_ext
6229
 
cat >>conftest.$ac_ext <<_ACEOF
6230
 
/* end confdefs.h.  */
6231
 
 
6232
 
#define _XOPEN_SOURCE_EXTENDED 1
6233
 
#include <errno.h>
6234
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6235
 
#include <stdio.h>
6236
 
#include <stdlib.h>
6237
 
 
6238
 
static long int longval () { return EOVERFLOW; }
6239
 
static unsigned long int ulongval () { return EOVERFLOW; }
6240
 
#include <stdio.h>
6241
 
#include <stdlib.h>
6242
 
int
6243
 
main ()
6244
 
{
6245
 
 
6246
 
  FILE *f = fopen ("conftest.val", "w");
6247
 
  if (! f)
6248
 
    return 1;
6249
 
  if ((EOVERFLOW) < 0)
6250
 
    {
6251
 
      long int i = longval ();
6252
 
      if (i != (EOVERFLOW))
6253
 
        return 1;
6254
 
      fprintf (f, "%ld", i);
6255
 
    }
6256
 
  else
6257
 
    {
6258
 
      unsigned long int i = ulongval ();
6259
 
      if (i != (EOVERFLOW))
6260
 
        return 1;
6261
 
      fprintf (f, "%lu", i);
6262
 
    }
6263
 
  /* Do not output a trailing newline, as this causes \r\n confusion
6264
 
     on some platforms.  */
6265
 
  return ferror (f) || fclose (f) != 0;
6266
 
 
6267
 
  ;
6268
 
  return 0;
6269
 
}
6270
 
_ACEOF
6271
 
rm -f conftest$ac_exeext
6272
 
if { (ac_try="$ac_link"
6273
 
case "(($ac_try" in
6274
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275
 
  *) ac_try_echo=$ac_try;;
6276
 
esac
6277
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278
 
$as_echo "$ac_try_echo") >&5
6279
 
  (eval "$ac_link") 2>&5
6280
 
  ac_status=$?
6281
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283
 
  { (case "(($ac_try" in
6284
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285
 
  *) ac_try_echo=$ac_try;;
6286
 
esac
6287
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288
 
$as_echo "$ac_try_echo") >&5
6289
 
  (eval "$ac_try") 2>&5
6290
 
  ac_status=$?
6291
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
 
  (exit $ac_status); }; }; then
6293
 
  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
6294
 
else
6295
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6296
 
$as_echo "$as_me: failed program was:" >&5
6297
 
sed 's/^/| /' conftest.$ac_ext >&5
6298
 
 
6299
 
fi
6300
 
rm -rf conftest.dSYM
6301
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6302
 
fi
6303
 
rm -f conftest.val
 
5310
                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
 
5311
#define _XOPEN_SOURCE_EXTENDED 1
 
5312
#include <errno.h>
 
5313
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
5314
#include <stdio.h>
 
5315
#include <stdlib.h>
 
5316
"; then :
 
5317
 
 
5318
fi
 
5319
 
6304
5320
        fi
6305
5321
      fi
6306
5322
 
6307
5323
fi
6308
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
 
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6309
5325
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6310
5326
    case $gl_cv_header_errno_h_EOVERFLOW in
6311
5327
      yes | no)
6320
5336
  fi
6321
5337
 
6322
5338
 
6323
 
{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6324
 
$as_echo_n "checking whether strerror_r is declared... " >&6; }
6325
 
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6326
 
  $as_echo_n "(cached) " >&6
6327
 
else
6328
 
  cat >conftest.$ac_ext <<_ACEOF
6329
 
/* confdefs.h.  */
6330
 
_ACEOF
6331
 
cat confdefs.h >>conftest.$ac_ext
6332
 
cat >>conftest.$ac_ext <<_ACEOF
6333
 
/* end confdefs.h.  */
6334
 
$ac_includes_default
6335
 
int
6336
 
main ()
6337
 
{
6338
 
#ifndef strerror_r
6339
 
  (void) strerror_r;
6340
 
#endif
6341
 
 
6342
 
  ;
6343
 
  return 0;
6344
 
}
6345
 
_ACEOF
6346
 
rm -f conftest.$ac_objext
6347
 
if { (ac_try="$ac_compile"
6348
 
case "(($ac_try" in
6349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350
 
  *) ac_try_echo=$ac_try;;
6351
 
esac
6352
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6353
 
$as_echo "$ac_try_echo") >&5
6354
 
  (eval "$ac_compile") 2>conftest.er1
6355
 
  ac_status=$?
6356
 
  grep -v '^ *+' conftest.er1 >conftest.err
6357
 
  rm -f conftest.er1
6358
 
  cat conftest.err >&5
6359
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360
 
  (exit $ac_status); } && {
6361
 
         test -z "$ac_c_werror_flag" ||
6362
 
         test ! -s conftest.err
6363
 
       } && test -s conftest.$ac_objext; then
6364
 
  ac_cv_have_decl_strerror_r=yes
6365
 
else
6366
 
  $as_echo "$as_me: failed program was:" >&5
6367
 
sed 's/^/| /' conftest.$ac_ext >&5
6368
 
 
6369
 
        ac_cv_have_decl_strerror_r=no
6370
 
fi
6371
 
 
6372
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373
 
fi
6374
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6375
 
$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
6376
 
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
 
5339
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
 
5340
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
 
5341
  ac_have_decl=1
 
5342
else
 
5343
  ac_have_decl=0
 
5344
fi
6377
5345
 
6378
5346
cat >>confdefs.h <<_ACEOF
6379
 
#define HAVE_DECL_STRERROR_R 1
6380
 
_ACEOF
6381
 
 
6382
 
 
6383
 
else
6384
 
  cat >>confdefs.h <<_ACEOF
6385
 
#define HAVE_DECL_STRERROR_R 0
6386
 
_ACEOF
6387
 
 
6388
 
 
6389
 
fi
6390
 
 
6391
 
 
 
5347
#define HAVE_DECL_STRERROR_R $ac_have_decl
 
5348
_ACEOF
6392
5349
 
6393
5350
for ac_func in strerror_r
6394
 
do
6395
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6396
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6397
 
$as_echo_n "checking for $ac_func... " >&6; }
6398
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6399
 
  $as_echo_n "(cached) " >&6
6400
 
else
6401
 
  cat >conftest.$ac_ext <<_ACEOF
6402
 
/* confdefs.h.  */
6403
 
_ACEOF
6404
 
cat confdefs.h >>conftest.$ac_ext
6405
 
cat >>conftest.$ac_ext <<_ACEOF
6406
 
/* end confdefs.h.  */
6407
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6408
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6409
 
#define $ac_func innocuous_$ac_func
6410
 
 
6411
 
/* System header to define __stub macros and hopefully few prototypes,
6412
 
    which can conflict with char $ac_func (); below.
6413
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6414
 
    <limits.h> exists even on freestanding compilers.  */
6415
 
 
6416
 
#ifdef __STDC__
6417
 
# include <limits.h>
6418
 
#else
6419
 
# include <assert.h>
6420
 
#endif
6421
 
 
6422
 
#undef $ac_func
6423
 
 
6424
 
/* Override any GCC internal prototype to avoid an error.
6425
 
   Use char because int might match the return type of a GCC
6426
 
   builtin and then its argument prototype would still apply.  */
6427
 
#ifdef __cplusplus
6428
 
extern "C"
6429
 
#endif
6430
 
char $ac_func ();
6431
 
/* The GNU C library defines this for functions which it implements
6432
 
    to always fail with ENOSYS.  Some functions are actually named
6433
 
    something starting with __ and the normal name is an alias.  */
6434
 
#if defined __stub_$ac_func || defined __stub___$ac_func
6435
 
choke me
6436
 
#endif
6437
 
 
6438
 
int
6439
 
main ()
6440
 
{
6441
 
return $ac_func ();
6442
 
  ;
6443
 
  return 0;
6444
 
}
6445
 
_ACEOF
6446
 
rm -f conftest.$ac_objext conftest$ac_exeext
6447
 
if { (ac_try="$ac_link"
6448
 
case "(($ac_try" in
6449
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450
 
  *) ac_try_echo=$ac_try;;
6451
 
esac
6452
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6453
 
$as_echo "$ac_try_echo") >&5
6454
 
  (eval "$ac_link") 2>conftest.er1
6455
 
  ac_status=$?
6456
 
  grep -v '^ *+' conftest.er1 >conftest.err
6457
 
  rm -f conftest.er1
6458
 
  cat conftest.err >&5
6459
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460
 
  (exit $ac_status); } && {
6461
 
         test -z "$ac_c_werror_flag" ||
6462
 
         test ! -s conftest.err
6463
 
       } && test -s conftest$ac_exeext && {
6464
 
         test "$cross_compiling" = yes ||
6465
 
         $as_test_x conftest$ac_exeext
6466
 
       }; then
6467
 
  eval "$as_ac_var=yes"
6468
 
else
6469
 
  $as_echo "$as_me: failed program was:" >&5
6470
 
sed 's/^/| /' conftest.$ac_ext >&5
6471
 
 
6472
 
        eval "$as_ac_var=no"
6473
 
fi
6474
 
 
6475
 
rm -rf conftest.dSYM
6476
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6477
 
      conftest$ac_exeext conftest.$ac_ext
6478
 
fi
6479
 
ac_res=`eval 'as_val=${'$as_ac_var'}
6480
 
                 $as_echo "$as_val"'`
6481
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6482
 
$as_echo "$ac_res" >&6; }
6483
 
as_val=`eval 'as_val=${'$as_ac_var'}
6484
 
                 $as_echo "$as_val"'`
6485
 
   if test "x$as_val" = x""yes; then
 
5351
do :
 
5352
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
5353
if test "x$ac_cv_func_strerror_r" = x""yes; then :
6486
5354
  cat >>confdefs.h <<_ACEOF
6487
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5355
#define HAVE_STRERROR_R 1
6488
5356
_ACEOF
6489
5357
 
6490
5358
fi
6491
5359
done
6492
5360
 
6493
 
{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
 
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
6494
5362
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
6495
 
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
 
5363
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
6496
5364
  $as_echo_n "(cached) " >&6
6497
5365
else
6498
5366
 
6499
5367
    ac_cv_func_strerror_r_char_p=no
6500
5368
    if test $ac_cv_have_decl_strerror_r = yes; then
6501
 
      cat >conftest.$ac_ext <<_ACEOF
6502
 
/* confdefs.h.  */
6503
 
_ACEOF
6504
 
cat confdefs.h >>conftest.$ac_ext
6505
 
cat >>conftest.$ac_ext <<_ACEOF
 
5369
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506
5370
/* end confdefs.h.  */
6507
5371
$ac_includes_default
6508
5372
int
6518
5382
  return 0;
6519
5383
}
6520
5384
_ACEOF
6521
 
rm -f conftest.$ac_objext
6522
 
if { (ac_try="$ac_compile"
6523
 
case "(($ac_try" in
6524
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525
 
  *) ac_try_echo=$ac_try;;
6526
 
esac
6527
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6528
 
$as_echo "$ac_try_echo") >&5
6529
 
  (eval "$ac_compile") 2>conftest.er1
6530
 
  ac_status=$?
6531
 
  grep -v '^ *+' conftest.er1 >conftest.err
6532
 
  rm -f conftest.er1
6533
 
  cat conftest.err >&5
6534
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535
 
  (exit $ac_status); } && {
6536
 
         test -z "$ac_c_werror_flag" ||
6537
 
         test ! -s conftest.err
6538
 
       } && test -s conftest.$ac_objext; then
 
5385
if ac_fn_c_try_compile "$LINENO"; then :
6539
5386
  ac_cv_func_strerror_r_char_p=yes
6540
 
else
6541
 
  $as_echo "$as_me: failed program was:" >&5
6542
 
sed 's/^/| /' conftest.$ac_ext >&5
6543
 
 
6544
 
 
6545
5387
fi
6546
 
 
6547
5388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548
5389
    else
6549
5390
      # strerror_r is not declared.  Choose between
6552
5393
      # former has a strerror_r that returns char*, while the latter
6553
5394
      # has a strerror_r that returns `int'.
6554
5395
      # This test should segfault on the DEC system.
6555
 
      if test "$cross_compiling" = yes; then
 
5396
      if test "$cross_compiling" = yes; then :
6556
5397
  :
6557
5398
else
6558
 
  cat >conftest.$ac_ext <<_ACEOF
6559
 
/* confdefs.h.  */
6560
 
_ACEOF
6561
 
cat confdefs.h >>conftest.$ac_ext
6562
 
cat >>conftest.$ac_ext <<_ACEOF
 
5399
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563
5400
/* end confdefs.h.  */
6564
5401
$ac_includes_default
6565
5402
        extern char *strerror_r ();
6573
5410
  return 0;
6574
5411
}
6575
5412
_ACEOF
6576
 
rm -f conftest$ac_exeext
6577
 
if { (ac_try="$ac_link"
6578
 
case "(($ac_try" in
6579
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580
 
  *) ac_try_echo=$ac_try;;
6581
 
esac
6582
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583
 
$as_echo "$ac_try_echo") >&5
6584
 
  (eval "$ac_link") 2>&5
6585
 
  ac_status=$?
6586
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6588
 
  { (case "(($ac_try" in
6589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590
 
  *) ac_try_echo=$ac_try;;
6591
 
esac
6592
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593
 
$as_echo "$ac_try_echo") >&5
6594
 
  (eval "$ac_try") 2>&5
6595
 
  ac_status=$?
6596
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597
 
  (exit $ac_status); }; }; then
 
5413
if ac_fn_c_try_run "$LINENO"; then :
6598
5414
  ac_cv_func_strerror_r_char_p=yes
6599
 
else
6600
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6601
 
$as_echo "$as_me: failed program was:" >&5
6602
 
sed 's/^/| /' conftest.$ac_ext >&5
6603
 
 
6604
 
fi
6605
 
rm -rf conftest.dSYM
6606
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6607
 
fi
6608
 
 
 
5415
fi
 
5416
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5417
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5418
fi
6609
5419
 
6610
5420
    fi
6611
5421
 
6612
5422
fi
6613
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
 
5423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
6614
5424
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
6615
5425
if test $ac_cv_func_strerror_r_char_p = yes; then
6616
5426
 
6617
 
cat >>confdefs.h <<\_ACEOF
6618
 
#define STRERROR_R_CHAR_P 1
6619
 
_ACEOF
6620
 
 
6621
 
fi
6622
 
 
6623
 
 
6624
 
  XGETTEXT_EXTRA_OPTIONS=
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
for ac_func in $ac_func_list
6633
 
do
6634
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6635
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6636
 
$as_echo_n "checking for $ac_func... " >&6; }
6637
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6638
 
  $as_echo_n "(cached) " >&6
6639
 
else
6640
 
  cat >conftest.$ac_ext <<_ACEOF
6641
 
/* confdefs.h.  */
6642
 
_ACEOF
6643
 
cat confdefs.h >>conftest.$ac_ext
6644
 
cat >>conftest.$ac_ext <<_ACEOF
6645
 
/* end confdefs.h.  */
6646
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6647
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6648
 
#define $ac_func innocuous_$ac_func
6649
 
 
6650
 
/* System header to define __stub macros and hopefully few prototypes,
6651
 
    which can conflict with char $ac_func (); below.
6652
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6653
 
    <limits.h> exists even on freestanding compilers.  */
6654
 
 
6655
 
#ifdef __STDC__
6656
 
# include <limits.h>
6657
 
#else
6658
 
# include <assert.h>
6659
 
#endif
6660
 
 
6661
 
#undef $ac_func
6662
 
 
6663
 
/* Override any GCC internal prototype to avoid an error.
6664
 
   Use char because int might match the return type of a GCC
6665
 
   builtin and then its argument prototype would still apply.  */
6666
 
#ifdef __cplusplus
6667
 
extern "C"
6668
 
#endif
6669
 
char $ac_func ();
6670
 
/* The GNU C library defines this for functions which it implements
6671
 
    to always fail with ENOSYS.  Some functions are actually named
6672
 
    something starting with __ and the normal name is an alias.  */
6673
 
#if defined __stub_$ac_func || defined __stub___$ac_func
6674
 
choke me
6675
 
#endif
6676
 
 
6677
 
int
6678
 
main ()
6679
 
{
6680
 
return $ac_func ();
6681
 
  ;
6682
 
  return 0;
6683
 
}
6684
 
_ACEOF
6685
 
rm -f conftest.$ac_objext conftest$ac_exeext
6686
 
if { (ac_try="$ac_link"
6687
 
case "(($ac_try" in
6688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689
 
  *) ac_try_echo=$ac_try;;
6690
 
esac
6691
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692
 
$as_echo "$ac_try_echo") >&5
6693
 
  (eval "$ac_link") 2>conftest.er1
6694
 
  ac_status=$?
6695
 
  grep -v '^ *+' conftest.er1 >conftest.err
6696
 
  rm -f conftest.er1
6697
 
  cat conftest.err >&5
6698
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699
 
  (exit $ac_status); } && {
6700
 
         test -z "$ac_c_werror_flag" ||
6701
 
         test ! -s conftest.err
6702
 
       } && test -s conftest$ac_exeext && {
6703
 
         test "$cross_compiling" = yes ||
6704
 
         $as_test_x conftest$ac_exeext
6705
 
       }; then
6706
 
  eval "$as_ac_var=yes"
6707
 
else
6708
 
  $as_echo "$as_me: failed program was:" >&5
6709
 
sed 's/^/| /' conftest.$ac_ext >&5
6710
 
 
6711
 
        eval "$as_ac_var=no"
6712
 
fi
6713
 
 
6714
 
rm -rf conftest.dSYM
6715
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716
 
      conftest$ac_exeext conftest.$ac_ext
6717
 
fi
6718
 
ac_res=`eval 'as_val=${'$as_ac_var'}
6719
 
                 $as_echo "$as_val"'`
6720
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6721
 
$as_echo "$ac_res" >&6; }
6722
 
as_val=`eval 'as_val=${'$as_ac_var'}
6723
 
                 $as_echo "$as_val"'`
6724
 
   if test "x$as_val" = x""yes; then
6725
 
  cat >>confdefs.h <<_ACEOF
6726
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6727
 
_ACEOF
6728
 
 
6729
 
fi
6730
 
done
6731
 
 
6732
 
 
6733
 
 
6734
 
 
6735
 
  if test -z "$GETOPT_H"; then
6736
 
 
6737
 
for ac_header in getopt.h
6738
 
do
6739
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6740
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6741
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6742
 
$as_echo_n "checking for $ac_header... " >&6; }
6743
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744
 
  $as_echo_n "(cached) " >&6
6745
 
fi
6746
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6747
 
                 $as_echo "$as_val"'`
6748
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6749
 
$as_echo "$ac_res" >&6; }
6750
 
else
6751
 
  # Is the header compilable?
6752
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6753
 
$as_echo_n "checking $ac_header usability... " >&6; }
6754
 
cat >conftest.$ac_ext <<_ACEOF
6755
 
/* confdefs.h.  */
6756
 
_ACEOF
6757
 
cat confdefs.h >>conftest.$ac_ext
6758
 
cat >>conftest.$ac_ext <<_ACEOF
6759
 
/* end confdefs.h.  */
6760
 
$ac_includes_default
6761
 
#include <$ac_header>
6762
 
_ACEOF
6763
 
rm -f conftest.$ac_objext
6764
 
if { (ac_try="$ac_compile"
6765
 
case "(($ac_try" in
6766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767
 
  *) ac_try_echo=$ac_try;;
6768
 
esac
6769
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6770
 
$as_echo "$ac_try_echo") >&5
6771
 
  (eval "$ac_compile") 2>conftest.er1
6772
 
  ac_status=$?
6773
 
  grep -v '^ *+' conftest.er1 >conftest.err
6774
 
  rm -f conftest.er1
6775
 
  cat conftest.err >&5
6776
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777
 
  (exit $ac_status); } && {
6778
 
         test -z "$ac_c_werror_flag" ||
6779
 
         test ! -s conftest.err
6780
 
       } && test -s conftest.$ac_objext; then
6781
 
  ac_header_compiler=yes
6782
 
else
6783
 
  $as_echo "$as_me: failed program was:" >&5
6784
 
sed 's/^/| /' conftest.$ac_ext >&5
6785
 
 
6786
 
        ac_header_compiler=no
6787
 
fi
6788
 
 
6789
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6791
 
$as_echo "$ac_header_compiler" >&6; }
6792
 
 
6793
 
# Is the header present?
6794
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6795
 
$as_echo_n "checking $ac_header presence... " >&6; }
6796
 
cat >conftest.$ac_ext <<_ACEOF
6797
 
/* confdefs.h.  */
6798
 
_ACEOF
6799
 
cat confdefs.h >>conftest.$ac_ext
6800
 
cat >>conftest.$ac_ext <<_ACEOF
6801
 
/* end confdefs.h.  */
6802
 
#include <$ac_header>
6803
 
_ACEOF
6804
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6805
 
case "(($ac_try" in
6806
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807
 
  *) ac_try_echo=$ac_try;;
6808
 
esac
6809
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6810
 
$as_echo "$ac_try_echo") >&5
6811
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812
 
  ac_status=$?
6813
 
  grep -v '^ *+' conftest.er1 >conftest.err
6814
 
  rm -f conftest.er1
6815
 
  cat conftest.err >&5
6816
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817
 
  (exit $ac_status); } >/dev/null && {
6818
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6819
 
         test ! -s conftest.err
6820
 
       }; then
6821
 
  ac_header_preproc=yes
6822
 
else
6823
 
  $as_echo "$as_me: failed program was:" >&5
6824
 
sed 's/^/| /' conftest.$ac_ext >&5
6825
 
 
6826
 
  ac_header_preproc=no
6827
 
fi
6828
 
 
6829
 
rm -f conftest.err conftest.$ac_ext
6830
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6831
 
$as_echo "$ac_header_preproc" >&6; }
6832
 
 
6833
 
# So?  What about this header?
6834
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6835
 
  yes:no: )
6836
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6837
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6838
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6839
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6840
 
    ac_header_preproc=yes
6841
 
    ;;
6842
 
  no:yes:* )
6843
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6846
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6847
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6848
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6849
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6850
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6851
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6852
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6853
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6854
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6855
 
    ( cat <<\_ASBOX
6856
 
## -------------------------------- ##
6857
 
## Report this to bug-hello@gnu.org ##
6858
 
## -------------------------------- ##
6859
 
_ASBOX
6860
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6861
 
    ;;
6862
 
esac
6863
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6864
 
$as_echo_n "checking for $ac_header... " >&6; }
6865
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6866
 
  $as_echo_n "(cached) " >&6
6867
 
else
6868
 
  eval "$as_ac_Header=\$ac_header_preproc"
6869
 
fi
6870
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6871
 
                 $as_echo "$as_val"'`
6872
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6873
 
$as_echo "$ac_res" >&6; }
6874
 
 
6875
 
fi
6876
 
as_val=`eval 'as_val=${'$as_ac_Header'}
6877
 
                 $as_echo "$as_val"'`
6878
 
   if test "x$as_val" = x""yes; then
6879
 
  cat >>confdefs.h <<_ACEOF
6880
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6881
 
_ACEOF
6882
 
 
6883
 
else
6884
 
  GETOPT_H=getopt.h
6885
 
fi
6886
 
 
6887
 
done
6888
 
 
6889
 
  fi
6890
 
 
6891
 
  if test -z "$GETOPT_H"; then
6892
 
 
6893
 
for ac_func in getopt_long_only
6894
 
do
6895
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6896
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6897
 
$as_echo_n "checking for $ac_func... " >&6; }
6898
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6899
 
  $as_echo_n "(cached) " >&6
6900
 
else
6901
 
  cat >conftest.$ac_ext <<_ACEOF
6902
 
/* confdefs.h.  */
6903
 
_ACEOF
6904
 
cat confdefs.h >>conftest.$ac_ext
6905
 
cat >>conftest.$ac_ext <<_ACEOF
6906
 
/* end confdefs.h.  */
6907
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6908
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6909
 
#define $ac_func innocuous_$ac_func
6910
 
 
6911
 
/* System header to define __stub macros and hopefully few prototypes,
6912
 
    which can conflict with char $ac_func (); below.
6913
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914
 
    <limits.h> exists even on freestanding compilers.  */
6915
 
 
6916
 
#ifdef __STDC__
6917
 
# include <limits.h>
6918
 
#else
6919
 
# include <assert.h>
6920
 
#endif
6921
 
 
6922
 
#undef $ac_func
6923
 
 
6924
 
/* Override any GCC internal prototype to avoid an error.
6925
 
   Use char because int might match the return type of a GCC
6926
 
   builtin and then its argument prototype would still apply.  */
6927
 
#ifdef __cplusplus
6928
 
extern "C"
6929
 
#endif
6930
 
char $ac_func ();
6931
 
/* The GNU C library defines this for functions which it implements
6932
 
    to always fail with ENOSYS.  Some functions are actually named
6933
 
    something starting with __ and the normal name is an alias.  */
6934
 
#if defined __stub_$ac_func || defined __stub___$ac_func
6935
 
choke me
6936
 
#endif
6937
 
 
6938
 
int
6939
 
main ()
6940
 
{
6941
 
return $ac_func ();
6942
 
  ;
6943
 
  return 0;
6944
 
}
6945
 
_ACEOF
6946
 
rm -f conftest.$ac_objext conftest$ac_exeext
6947
 
if { (ac_try="$ac_link"
6948
 
case "(($ac_try" in
6949
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950
 
  *) ac_try_echo=$ac_try;;
6951
 
esac
6952
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953
 
$as_echo "$ac_try_echo") >&5
6954
 
  (eval "$ac_link") 2>conftest.er1
6955
 
  ac_status=$?
6956
 
  grep -v '^ *+' conftest.er1 >conftest.err
6957
 
  rm -f conftest.er1
6958
 
  cat conftest.err >&5
6959
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960
 
  (exit $ac_status); } && {
6961
 
         test -z "$ac_c_werror_flag" ||
6962
 
         test ! -s conftest.err
6963
 
       } && test -s conftest$ac_exeext && {
6964
 
         test "$cross_compiling" = yes ||
6965
 
         $as_test_x conftest$ac_exeext
6966
 
       }; then
6967
 
  eval "$as_ac_var=yes"
6968
 
else
6969
 
  $as_echo "$as_me: failed program was:" >&5
6970
 
sed 's/^/| /' conftest.$ac_ext >&5
6971
 
 
6972
 
        eval "$as_ac_var=no"
6973
 
fi
6974
 
 
6975
 
rm -rf conftest.dSYM
6976
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6977
 
      conftest$ac_exeext conftest.$ac_ext
6978
 
fi
6979
 
ac_res=`eval 'as_val=${'$as_ac_var'}
6980
 
                 $as_echo "$as_val"'`
6981
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6982
 
$as_echo "$ac_res" >&6; }
6983
 
as_val=`eval 'as_val=${'$as_ac_var'}
6984
 
                 $as_echo "$as_val"'`
6985
 
   if test "x$as_val" = x""yes; then
6986
 
  cat >>confdefs.h <<_ACEOF
6987
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6988
 
_ACEOF
6989
 
 
6990
 
else
6991
 
  GETOPT_H=getopt.h
6992
 
fi
6993
 
done
6994
 
 
6995
 
  fi
6996
 
 
6997
 
      if test -z "$GETOPT_H"; then
6998
 
    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6999
 
$as_echo_n "checking whether optreset is declared... " >&6; }
7000
 
if test "${ac_cv_have_decl_optreset+set}" = set; then
7001
 
  $as_echo_n "(cached) " >&6
7002
 
else
7003
 
  cat >conftest.$ac_ext <<_ACEOF
7004
 
/* confdefs.h.  */
7005
 
_ACEOF
7006
 
cat confdefs.h >>conftest.$ac_ext
7007
 
cat >>conftest.$ac_ext <<_ACEOF
7008
 
/* end confdefs.h.  */
7009
 
#include <getopt.h>
7010
 
 
7011
 
int
7012
 
main ()
7013
 
{
7014
 
#ifndef optreset
7015
 
  (void) optreset;
7016
 
#endif
7017
 
 
7018
 
  ;
7019
 
  return 0;
7020
 
}
7021
 
_ACEOF
7022
 
rm -f conftest.$ac_objext
7023
 
if { (ac_try="$ac_compile"
7024
 
case "(($ac_try" in
7025
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026
 
  *) ac_try_echo=$ac_try;;
7027
 
esac
7028
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029
 
$as_echo "$ac_try_echo") >&5
7030
 
  (eval "$ac_compile") 2>conftest.er1
7031
 
  ac_status=$?
7032
 
  grep -v '^ *+' conftest.er1 >conftest.err
7033
 
  rm -f conftest.er1
7034
 
  cat conftest.err >&5
7035
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036
 
  (exit $ac_status); } && {
7037
 
         test -z "$ac_c_werror_flag" ||
7038
 
         test ! -s conftest.err
7039
 
       } && test -s conftest.$ac_objext; then
7040
 
  ac_cv_have_decl_optreset=yes
7041
 
else
7042
 
  $as_echo "$as_me: failed program was:" >&5
7043
 
sed 's/^/| /' conftest.$ac_ext >&5
7044
 
 
7045
 
        ac_cv_have_decl_optreset=no
7046
 
fi
7047
 
 
7048
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049
 
fi
7050
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7051
 
$as_echo "$ac_cv_have_decl_optreset" >&6; }
7052
 
if test "x$ac_cv_have_decl_optreset" = x""yes; then
7053
 
  GETOPT_H=getopt.h
7054
 
fi
7055
 
 
7056
 
  fi
7057
 
 
7058
 
      if test -z "$GETOPT_H"; then
7059
 
    { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
7060
 
$as_echo_n "checking for working GNU getopt function... " >&6; }
7061
 
if test "${gl_cv_func_gnu_getopt+set}" = set; then
7062
 
  $as_echo_n "(cached) " >&6
7063
 
else
7064
 
  if test "$cross_compiling" = yes; then
7065
 
                         { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
7066
 
$as_echo_n "checking whether getopt_clip is declared... " >&6; }
7067
 
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
7068
 
  $as_echo_n "(cached) " >&6
7069
 
else
7070
 
  cat >conftest.$ac_ext <<_ACEOF
7071
 
/* confdefs.h.  */
7072
 
_ACEOF
7073
 
cat confdefs.h >>conftest.$ac_ext
7074
 
cat >>conftest.$ac_ext <<_ACEOF
7075
 
/* end confdefs.h.  */
7076
 
#include <getopt.h>
7077
 
 
7078
 
int
7079
 
main ()
7080
 
{
7081
 
#ifndef getopt_clip
7082
 
  (void) getopt_clip;
7083
 
#endif
7084
 
 
7085
 
  ;
7086
 
  return 0;
7087
 
}
7088
 
_ACEOF
7089
 
rm -f conftest.$ac_objext
7090
 
if { (ac_try="$ac_compile"
7091
 
case "(($ac_try" in
7092
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093
 
  *) ac_try_echo=$ac_try;;
7094
 
esac
7095
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7096
 
$as_echo "$ac_try_echo") >&5
7097
 
  (eval "$ac_compile") 2>conftest.er1
7098
 
  ac_status=$?
7099
 
  grep -v '^ *+' conftest.er1 >conftest.err
7100
 
  rm -f conftest.er1
7101
 
  cat conftest.err >&5
7102
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103
 
  (exit $ac_status); } && {
7104
 
         test -z "$ac_c_werror_flag" ||
7105
 
         test ! -s conftest.err
7106
 
       } && test -s conftest.$ac_objext; then
7107
 
  ac_cv_have_decl_getopt_clip=yes
7108
 
else
7109
 
  $as_echo "$as_me: failed program was:" >&5
7110
 
sed 's/^/| /' conftest.$ac_ext >&5
7111
 
 
7112
 
        ac_cv_have_decl_getopt_clip=no
7113
 
fi
7114
 
 
7115
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116
 
fi
7117
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
7118
 
$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
7119
 
if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
7120
 
  gl_cv_func_gnu_getopt=no
7121
 
else
7122
 
  gl_cv_func_gnu_getopt=yes
7123
 
fi
7124
 
 
7125
 
else
7126
 
  cat >conftest.$ac_ext <<_ACEOF
7127
 
/* confdefs.h.  */
7128
 
_ACEOF
7129
 
cat confdefs.h >>conftest.$ac_ext
7130
 
cat >>conftest.$ac_ext <<_ACEOF
7131
 
/* end confdefs.h.  */
7132
 
#include <getopt.h>
7133
 
int
7134
 
main ()
7135
 
{
7136
 
 
7137
 
             char *myargv[3];
7138
 
             myargv[0] = "conftest";
7139
 
             myargv[1] = "-+";
7140
 
             myargv[2] = 0;
7141
 
             return getopt (2, myargv, "+a") != '?';
7142
 
 
7143
 
  ;
7144
 
  return 0;
7145
 
}
7146
 
_ACEOF
7147
 
rm -f conftest$ac_exeext
7148
 
if { (ac_try="$ac_link"
7149
 
case "(($ac_try" in
7150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151
 
  *) ac_try_echo=$ac_try;;
7152
 
esac
7153
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7154
 
$as_echo "$ac_try_echo") >&5
7155
 
  (eval "$ac_link") 2>&5
7156
 
  ac_status=$?
7157
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7159
 
  { (case "(($ac_try" in
7160
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161
 
  *) ac_try_echo=$ac_try;;
7162
 
esac
7163
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7164
 
$as_echo "$ac_try_echo") >&5
7165
 
  (eval "$ac_try") 2>&5
7166
 
  ac_status=$?
7167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168
 
  (exit $ac_status); }; }; then
7169
 
  gl_cv_func_gnu_getopt=yes
7170
 
else
7171
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
7172
 
$as_echo "$as_me: failed program was:" >&5
7173
 
sed 's/^/| /' conftest.$ac_ext >&5
7174
 
 
7175
 
( exit $ac_status )
7176
 
gl_cv_func_gnu_getopt=no
7177
 
fi
7178
 
rm -rf conftest.dSYM
7179
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7180
 
fi
7181
 
 
7182
 
 
7183
 
fi
7184
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
7185
 
$as_echo "$gl_cv_func_gnu_getopt" >&6; }
7186
 
    if test "$gl_cv_func_gnu_getopt" = "no"; then
7187
 
      GETOPT_H=getopt.h
7188
 
    fi
7189
 
  fi
7190
 
 
7191
 
{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7192
 
$as_echo_n "checking whether getenv is declared... " >&6; }
7193
 
if test "${ac_cv_have_decl_getenv+set}" = set; then
7194
 
  $as_echo_n "(cached) " >&6
7195
 
else
7196
 
  cat >conftest.$ac_ext <<_ACEOF
7197
 
/* confdefs.h.  */
7198
 
_ACEOF
7199
 
cat confdefs.h >>conftest.$ac_ext
7200
 
cat >>conftest.$ac_ext <<_ACEOF
7201
 
/* end confdefs.h.  */
7202
 
$ac_includes_default
7203
 
int
7204
 
main ()
7205
 
{
7206
 
#ifndef getenv
7207
 
  (void) getenv;
7208
 
#endif
7209
 
 
7210
 
  ;
7211
 
  return 0;
7212
 
}
7213
 
_ACEOF
7214
 
rm -f conftest.$ac_objext
7215
 
if { (ac_try="$ac_compile"
7216
 
case "(($ac_try" in
7217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218
 
  *) ac_try_echo=$ac_try;;
7219
 
esac
7220
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7221
 
$as_echo "$ac_try_echo") >&5
7222
 
  (eval "$ac_compile") 2>conftest.er1
7223
 
  ac_status=$?
7224
 
  grep -v '^ *+' conftest.er1 >conftest.err
7225
 
  rm -f conftest.er1
7226
 
  cat conftest.err >&5
7227
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228
 
  (exit $ac_status); } && {
7229
 
         test -z "$ac_c_werror_flag" ||
7230
 
         test ! -s conftest.err
7231
 
       } && test -s conftest.$ac_objext; then
7232
 
  ac_cv_have_decl_getenv=yes
7233
 
else
7234
 
  $as_echo "$as_me: failed program was:" >&5
7235
 
sed 's/^/| /' conftest.$ac_ext >&5
7236
 
 
7237
 
        ac_cv_have_decl_getenv=no
7238
 
fi
7239
 
 
7240
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241
 
fi
7242
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7243
 
$as_echo "$ac_cv_have_decl_getenv" >&6; }
7244
 
if test "x$ac_cv_have_decl_getenv" = x""yes; then
7245
 
 
7246
 
cat >>confdefs.h <<_ACEOF
7247
 
#define HAVE_DECL_GETENV 1
7248
 
_ACEOF
7249
 
 
7250
 
 
7251
 
else
7252
 
  cat >>confdefs.h <<_ACEOF
7253
 
#define HAVE_DECL_GETENV 0
7254
 
_ACEOF
7255
 
 
7256
 
 
7257
 
fi
7258
 
 
7259
 
 
7260
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
5427
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
 
5428
 
 
5429
fi
 
5430
 
 
5431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7261
5432
$as_echo_n "checking for inline... " >&6; }
7262
 
if test "${ac_cv_c_inline+set}" = set; then
 
5433
if test "${ac_cv_c_inline+set}" = set; then :
7263
5434
  $as_echo_n "(cached) " >&6
7264
5435
else
7265
5436
  ac_cv_c_inline=no
7266
5437
for ac_kw in inline __inline__ __inline; do
7267
 
  cat >conftest.$ac_ext <<_ACEOF
7268
 
/* confdefs.h.  */
7269
 
_ACEOF
7270
 
cat confdefs.h >>conftest.$ac_ext
7271
 
cat >>conftest.$ac_ext <<_ACEOF
 
5438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272
5439
/* end confdefs.h.  */
7273
5440
#ifndef __cplusplus
7274
5441
typedef int foo_t;
7277
5444
#endif
7278
5445
 
7279
5446
_ACEOF
7280
 
rm -f conftest.$ac_objext
7281
 
if { (ac_try="$ac_compile"
7282
 
case "(($ac_try" in
7283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284
 
  *) ac_try_echo=$ac_try;;
7285
 
esac
7286
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287
 
$as_echo "$ac_try_echo") >&5
7288
 
  (eval "$ac_compile") 2>conftest.er1
7289
 
  ac_status=$?
7290
 
  grep -v '^ *+' conftest.er1 >conftest.err
7291
 
  rm -f conftest.er1
7292
 
  cat conftest.err >&5
7293
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
 
  (exit $ac_status); } && {
7295
 
         test -z "$ac_c_werror_flag" ||
7296
 
         test ! -s conftest.err
7297
 
       } && test -s conftest.$ac_objext; then
 
5447
if ac_fn_c_try_compile "$LINENO"; then :
7298
5448
  ac_cv_c_inline=$ac_kw
7299
 
else
7300
 
  $as_echo "$as_me: failed program was:" >&5
7301
 
sed 's/^/| /' conftest.$ac_ext >&5
7302
 
 
7303
 
 
7304
5449
fi
7305
 
 
7306
5450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307
5451
  test "$ac_cv_c_inline" != no && break
7308
5452
done
7309
5453
 
7310
5454
fi
7311
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7312
5456
$as_echo "$ac_cv_c_inline" >&6; }
7313
5457
 
7314
 
 
7315
5458
case $ac_cv_c_inline in
7316
5459
  inline | yes) ;;
7317
5460
  *)
7328
5471
esac
7329
5472
 
7330
5473
 
7331
 
 
7332
 
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
5474
  XGETTEXT_EXTRA_OPTIONS=
 
5475
 
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
  for ac_func in $ac_func_list
 
5482
do :
 
5483
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5484
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5485
eval as_val=\$$as_ac_var
 
5486
   if test "x$as_val" = x""yes; then :
 
5487
  cat >>confdefs.h <<_ACEOF
 
5488
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5489
_ACEOF
 
5490
 
 
5491
fi
 
5492
done
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
  GNULIB_CHOWN=0;
 
5498
  GNULIB_CLOSE=0;
 
5499
  GNULIB_DUP2=0;
 
5500
  GNULIB_DUP3=0;
 
5501
  GNULIB_ENVIRON=0;
 
5502
  GNULIB_EUIDACCESS=0;
 
5503
  GNULIB_FACCESSAT=0;
 
5504
  GNULIB_FCHDIR=0;
 
5505
  GNULIB_FCHOWNAT=0;
 
5506
  GNULIB_FSYNC=0;
 
5507
  GNULIB_FTRUNCATE=0;
 
5508
  GNULIB_GETCWD=0;
 
5509
  GNULIB_GETDOMAINNAME=0;
 
5510
  GNULIB_GETDTABLESIZE=0;
 
5511
  GNULIB_GETGROUPS=0;
 
5512
  GNULIB_GETHOSTNAME=0;
 
5513
  GNULIB_GETLOGIN=0;
 
5514
  GNULIB_GETLOGIN_R=0;
 
5515
  GNULIB_GETPAGESIZE=0;
 
5516
  GNULIB_GETUSERSHELL=0;
 
5517
  GNULIB_LCHOWN=0;
 
5518
  GNULIB_LINK=0;
 
5519
  GNULIB_LINKAT=0;
 
5520
  GNULIB_LSEEK=0;
 
5521
  GNULIB_PIPE2=0;
 
5522
  GNULIB_PREAD=0;
 
5523
  GNULIB_READLINK=0;
 
5524
  GNULIB_READLINKAT=0;
 
5525
  GNULIB_RMDIR=0;
 
5526
  GNULIB_SLEEP=0;
 
5527
  GNULIB_SYMLINK=0;
 
5528
  GNULIB_SYMLINKAT=0;
 
5529
  GNULIB_UNISTD_H_GETOPT=0;
 
5530
  GNULIB_UNISTD_H_SIGPIPE=0;
 
5531
  GNULIB_UNLINK=0;
 
5532
  GNULIB_UNLINKAT=0;
 
5533
  GNULIB_USLEEP=0;
 
5534
  GNULIB_WRITE=0;
 
5535
    HAVE_CHOWN=1;
 
5536
  HAVE_DUP2=1;
 
5537
  HAVE_DUP3=1;
 
5538
  HAVE_EUIDACCESS=1;
 
5539
  HAVE_FACCESSAT=1;
 
5540
  HAVE_FCHOWNAT=1;
 
5541
  HAVE_FSYNC=1;
 
5542
  HAVE_FTRUNCATE=1;
 
5543
  HAVE_GETDOMAINNAME=1;
 
5544
  HAVE_GETDTABLESIZE=1;
 
5545
  HAVE_GETGROUPS=1;
 
5546
  HAVE_GETHOSTNAME=1;
 
5547
  HAVE_GETLOGIN=1;
 
5548
  HAVE_GETPAGESIZE=1;
 
5549
  HAVE_GETUSERSHELL=1;
 
5550
  HAVE_LCHOWN=1;
 
5551
  HAVE_LINK=1;
 
5552
  HAVE_LINKAT=1;
 
5553
  HAVE_PIPE2=1;
 
5554
  HAVE_PREAD=1;
 
5555
  HAVE_READLINK=1;
 
5556
  HAVE_READLINKAT=1;
 
5557
  HAVE_SLEEP=1;
 
5558
  HAVE_SYMLINK=1;
 
5559
  HAVE_SYMLINKAT=1;
 
5560
  HAVE_DECL_ENVIRON=1;
 
5561
  HAVE_DECL_GETLOGIN_R=1;
 
5562
  HAVE_OS_H=0;
 
5563
  HAVE_SYS_PARAM_H=0;
 
5564
  HAVE_UNLINKAT=1;
 
5565
  HAVE_USLEEP=1;
 
5566
  REPLACE_CHOWN=0;
 
5567
  REPLACE_CLOSE=0;
 
5568
  REPLACE_DUP=0;
 
5569
  REPLACE_DUP2=0;
 
5570
  REPLACE_FCHDIR=0;
 
5571
  REPLACE_FCHOWNAT=0;
 
5572
  REPLACE_GETCWD=0;
 
5573
  REPLACE_GETGROUPS=0;
 
5574
  REPLACE_GETPAGESIZE=0;
 
5575
  REPLACE_LCHOWN=0;
 
5576
  REPLACE_LINK=0;
 
5577
  REPLACE_LINKAT=0;
 
5578
  REPLACE_LSEEK=0;
 
5579
  REPLACE_PREAD=0;
 
5580
  REPLACE_READLINK=0;
 
5581
  REPLACE_RMDIR=0;
 
5582
  REPLACE_SLEEP=0;
 
5583
  REPLACE_SYMLINK=0;
 
5584
  REPLACE_UNLINK=0;
 
5585
  REPLACE_UNLINKAT=0;
 
5586
  REPLACE_USLEEP=0;
 
5587
  REPLACE_WRITE=0;
 
5588
  UNISTD_H_HAVE_WINSOCK2_H=0;
 
5589
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
5590
 
 
5591
 
 
5592
 
 
5593
 
 
5594
 
 
5595
 
 
5596
 
 
5597
 
 
5598
 
 
5599
 
 
5600
 
 
5601
 
 
5602
 
 
5603
 
 
5604
     if test $gl_cv_have_include_next = yes; then
 
5605
       gl_cv_next_getopt_h='<'getopt.h'>'
 
5606
     else
 
5607
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
 
5608
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
 
5609
if test "${gl_cv_next_getopt_h+set}" = set; then :
 
5610
  $as_echo_n "(cached) " >&6
 
5611
else
 
5612
 
 
5613
          if test $ac_cv_header_getopt_h = yes; then
 
5614
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5615
/* end confdefs.h.  */
 
5616
#include <getopt.h>
 
5617
 
 
5618
_ACEOF
 
5619
                                                                                                case "$host_os" in
 
5620
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
5621
              *)    gl_absname_cpp="$ac_cpp" ;;
 
5622
            esac
 
5623
                                                gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
5624
               sed -n '\#/getopt.h#{
 
5625
                 s#.*"\(.*/getopt.h\)".*#\1#
 
5626
                 s#^/[^/]#//&#
 
5627
                 p
 
5628
                 q
 
5629
               }'`'"'
 
5630
          else
 
5631
            gl_cv_next_getopt_h='<'getopt.h'>'
 
5632
          fi
 
5633
 
 
5634
fi
 
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
 
5636
$as_echo "$gl_cv_next_getopt_h" >&6; }
 
5637
     fi
 
5638
     NEXT_GETOPT_H=$gl_cv_next_getopt_h
 
5639
 
 
5640
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
5641
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
5642
       gl_next_as_first_directive='<'getopt.h'>'
 
5643
     else
 
5644
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
5645
       gl_next_as_first_directive=$gl_cv_next_getopt_h
 
5646
     fi
 
5647
     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
  if test $ac_cv_header_getopt_h = yes; then
 
5653
    HAVE_GETOPT_H=1
 
5654
  else
 
5655
    HAVE_GETOPT_H=0
 
5656
  fi
 
5657
 
 
5658
 
 
5659
  gl_replace_getopt=
 
5660
 
 
5661
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
5662
    for ac_header in getopt.h
 
5663
do :
 
5664
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
 
5665
if test "x$ac_cv_header_getopt_h" = x""yes; then :
 
5666
  cat >>confdefs.h <<_ACEOF
 
5667
#define HAVE_GETOPT_H 1
 
5668
_ACEOF
 
5669
 
 
5670
else
 
5671
  gl_replace_getopt=yes
 
5672
fi
 
5673
 
 
5674
done
 
5675
 
 
5676
  fi
 
5677
 
 
5678
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
5679
    for ac_func in getopt_long_only
 
5680
do :
 
5681
  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
 
5682
if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
 
5683
  cat >>confdefs.h <<_ACEOF
 
5684
#define HAVE_GETOPT_LONG_ONLY 1
 
5685
_ACEOF
 
5686
 
 
5687
else
 
5688
  gl_replace_getopt=yes
 
5689
fi
 
5690
done
 
5691
 
 
5692
  fi
 
5693
 
 
5694
          if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
5695
    ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
 
5696
"
 
5697
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
 
5698
  ac_have_decl=1
 
5699
else
 
5700
  ac_have_decl=0
 
5701
fi
 
5702
 
 
5703
cat >>confdefs.h <<_ACEOF
 
5704
#define HAVE_DECL_OPTRESET $ac_have_decl
 
5705
_ACEOF
 
5706
 
 
5707
  fi
 
5708
 
 
5709
            if test -z "$gl_replace_getopt"; then
 
5710
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
 
5711
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
 
5712
if test "${gl_cv_func_getopt_posix+set}" = set; then :
 
5713
  $as_echo_n "(cached) " >&6
 
5714
else
 
5715
 
 
5716
                if test "$cross_compiling" = yes; then :
 
5717
  case "$host_os" in
 
5718
             mingw*) gl_cv_func_getopt_posix="guessing no";;
 
5719
             *)      gl_cv_func_getopt_posix="guessing yes";;
 
5720
           esac
 
5721
 
 
5722
else
 
5723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5724
/* end confdefs.h.  */
 
5725
 
 
5726
#include <unistd.h>
 
5727
#include <stdlib.h>
 
5728
#include <string.h>
 
5729
 
 
5730
#if !HAVE_DECL_OPTRESET
 
5731
# define OPTIND_MIN 0
 
5732
#else
 
5733
# define OPTIND_MIN 1
 
5734
#endif
 
5735
 
 
5736
int
 
5737
main ()
 
5738
{
 
5739
  {
 
5740
    int argc = 0;
 
5741
    char *argv[10];
 
5742
    int c;
 
5743
 
 
5744
    argv[argc++] = "program";
 
5745
    argv[argc++] = "-a";
 
5746
    argv[argc++] = "foo";
 
5747
    argv[argc++] = "bar";
 
5748
    argv[argc] = NULL;
 
5749
    optind = OPTIND_MIN;
 
5750
    opterr = 0;
 
5751
 
 
5752
    c = getopt (argc, argv, "ab");
 
5753
    if (!(c == 'a'))
 
5754
      return 1;
 
5755
    c = getopt (argc, argv, "ab");
 
5756
    if (!(c == -1))
 
5757
      return 2;
 
5758
    if (!(optind == 2))
 
5759
      return 3;
 
5760
  }
 
5761
  /* Some internal state exists at this point.  */
 
5762
  {
 
5763
    int argc = 0;
 
5764
    char *argv[10];
 
5765
    int c;
 
5766
 
 
5767
    argv[argc++] = "program";
 
5768
    argv[argc++] = "donald";
 
5769
    argv[argc++] = "-p";
 
5770
    argv[argc++] = "billy";
 
5771
    argv[argc++] = "duck";
 
5772
    argv[argc++] = "-a";
 
5773
    argv[argc++] = "bar";
 
5774
    argv[argc] = NULL;
 
5775
    optind = OPTIND_MIN;
 
5776
    opterr = 0;
 
5777
 
 
5778
    c = getopt (argc, argv, "+abp:q:");
 
5779
    if (!(c == -1))
 
5780
      return 4;
 
5781
    if (!(strcmp (argv[0], "program") == 0))
 
5782
      return 5;
 
5783
    if (!(strcmp (argv[1], "donald") == 0))
 
5784
      return 6;
 
5785
    if (!(strcmp (argv[2], "-p") == 0))
 
5786
      return 7;
 
5787
    if (!(strcmp (argv[3], "billy") == 0))
 
5788
      return 8;
 
5789
    if (!(strcmp (argv[4], "duck") == 0))
 
5790
      return 9;
 
5791
    if (!(strcmp (argv[5], "-a") == 0))
 
5792
      return 10;
 
5793
    if (!(strcmp (argv[6], "bar") == 0))
 
5794
      return 11;
 
5795
    if (!(optind == 1))
 
5796
      return 12;
 
5797
  }
 
5798
 
 
5799
  return 0;
 
5800
}
 
5801
 
 
5802
_ACEOF
 
5803
if ac_fn_c_try_run "$LINENO"; then :
 
5804
  gl_cv_func_getopt_posix=yes
 
5805
else
 
5806
  gl_cv_func_getopt_posix=no
 
5807
fi
 
5808
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5809
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5810
fi
 
5811
 
 
5812
 
 
5813
fi
 
5814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
 
5815
$as_echo "$gl_cv_func_getopt_posix" >&6; }
 
5816
    case "$gl_cv_func_getopt_posix" in
 
5817
      *no) gl_replace_getopt=yes ;;
 
5818
    esac
 
5819
  fi
 
5820
 
 
5821
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
5822
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
 
5823
$as_echo_n "checking for working GNU getopt function... " >&6; }
 
5824
if test "${gl_cv_func_getopt_gnu+set}" = set; then :
 
5825
  $as_echo_n "(cached) " >&6
 
5826
else
 
5827
  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
 
5828
       # optstring is necessary for programs like m4 that have POSIX-mandated
 
5829
       # semantics for supporting options interspersed with files.
 
5830
       # Also, since getopt_long is a GNU extension, we require optind=0.
 
5831
       gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
 
5832
       POSIXLY_CORRECT=1
 
5833
       export POSIXLY_CORRECT
 
5834
       if test "$cross_compiling" = yes; then :
 
5835
           case $host_os:$ac_cv_have_decl_optreset in
 
5836
           *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
 
5837
           *:yes)               gl_cv_func_getopt_gnu=no;;
 
5838
           *)                   gl_cv_func_getopt_gnu=yes;;
 
5839
         esac
 
5840
 
 
5841
else
 
5842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5843
/* end confdefs.h.  */
 
5844
#include <getopt.h>
 
5845
                           #include <stddef.h>
 
5846
                           #include <string.h>
 
5847
 
 
5848
int
 
5849
main ()
 
5850
{
 
5851
 
 
5852
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
 
5853
                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
 
5854
                OSF/1 5.1, Solaris 10.  */
 
5855
             {
 
5856
               char *myargv[3];
 
5857
               myargv[0] = "conftest";
 
5858
               myargv[1] = "-+";
 
5859
               myargv[2] = 0;
 
5860
               opterr = 0;
 
5861
               if (getopt (2, myargv, "+a") != '?')
 
5862
                 return 1;
 
5863
             }
 
5864
             /* This code succeeds on glibc 2.8, mingw,
 
5865
                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
 
5866
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
 
5867
             {
 
5868
               char *argv[] = { "program", "-p", "foo", "bar", NULL };
 
5869
 
 
5870
               optind = 1;
 
5871
               if (getopt (4, argv, "p::") != 'p')
 
5872
                 return 2;
 
5873
               if (optarg != NULL)
 
5874
                 return 3;
 
5875
               if (getopt (4, argv, "p::") != -1)
 
5876
                 return 4;
 
5877
               if (optind != 2)
 
5878
                 return 5;
 
5879
             }
 
5880
             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
 
5881
             {
 
5882
               char *argv[] = { "program", "foo", "-p", NULL };
 
5883
               optind = 0;
 
5884
               if (getopt (3, argv, "-p") != 1)
 
5885
                 return 6;
 
5886
               if (getopt (3, argv, "-p") != 'p')
 
5887
                 return 7;
 
5888
             }
 
5889
             return 0;
 
5890
 
 
5891
  ;
 
5892
  return 0;
 
5893
}
 
5894
_ACEOF
 
5895
if ac_fn_c_try_run "$LINENO"; then :
 
5896
  gl_cv_func_getopt_gnu=yes
 
5897
else
 
5898
  gl_cv_func_getopt_gnu=no
 
5899
fi
 
5900
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5901
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5902
fi
 
5903
 
 
5904
       if test "$gl_had_POSIXLY_CORRECT" != yes; then
 
5905
         { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
 
5906
       fi
 
5907
 
 
5908
fi
 
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
 
5910
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
 
5911
    if test "$gl_cv_func_getopt_gnu" = "no"; then
 
5912
      gl_replace_getopt=yes
 
5913
    fi
 
5914
  fi
 
5915
 
 
5916
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
 
5917
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
 
5918
  ac_have_decl=1
 
5919
else
 
5920
  ac_have_decl=0
 
5921
fi
 
5922
 
 
5923
cat >>confdefs.h <<_ACEOF
 
5924
#define HAVE_DECL_GETENV $ac_have_decl
 
5925
_ACEOF
 
5926
 
 
5927
 
 
5928
 
 
5929
 
 
5930
 
 
5931
 
 
5932
  if test -n "$gl_replace_getopt"; then :
 
5933
 
 
5934
 
 
5935
 
 
5936
  GETOPT_H=getopt.h
 
5937
 
 
5938
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
 
5939
 
 
5940
 
 
5941
 
 
5942
    GNULIB_UNISTD_H_GETOPT=1
 
5943
 
 
5944
 
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
 
 
5968
fi
 
5969
 
 
5970
 
 
5971
 
 
5972
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
 
5973
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
5974
if test "${am_cv_langinfo_codeset+set}" = set; then :
 
5975
  $as_echo_n "(cached) " >&6
 
5976
else
 
5977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5978
/* end confdefs.h.  */
 
5979
#include <langinfo.h>
 
5980
int
 
5981
main ()
 
5982
{
 
5983
char* cs = nl_langinfo(CODESET); return !cs;
 
5984
  ;
 
5985
  return 0;
 
5986
}
 
5987
_ACEOF
 
5988
if ac_fn_c_try_link "$LINENO"; then :
 
5989
  am_cv_langinfo_codeset=yes
 
5990
else
 
5991
  am_cv_langinfo_codeset=no
 
5992
fi
 
5993
rm -f core conftest.err conftest.$ac_objext \
 
5994
    conftest$ac_exeext conftest.$ac_ext
 
5995
 
 
5996
fi
 
5997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
 
5998
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
5999
  if test $am_cv_langinfo_codeset = yes; then
 
6000
 
 
6001
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
 
6002
 
 
6003
  fi
 
6004
 
 
6005
 
 
6006
 
 
6007
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
 
6008
$as_echo_n "checking for working fcntl.h... " >&6; }
 
6009
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
 
6010
  $as_echo_n "(cached) " >&6
 
6011
else
 
6012
  if test "$cross_compiling" = yes; then :
 
6013
  gl_cv_header_working_fcntl_h=cross-compiling
 
6014
else
 
6015
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6016
/* end confdefs.h.  */
 
6017
#include <sys/types.h>
 
6018
           #include <sys/stat.h>
 
6019
           #include <unistd.h>
 
6020
           #include <fcntl.h>
 
6021
           #ifndef O_NOATIME
 
6022
            #define O_NOATIME 0
 
6023
           #endif
 
6024
           #ifndef O_NOFOLLOW
 
6025
            #define O_NOFOLLOW 0
 
6026
           #endif
 
6027
           static int const constants[] =
 
6028
            {
 
6029
              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
 
6030
              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
 
6031
            };
 
6032
 
 
6033
int
 
6034
main ()
 
6035
{
 
6036
 
 
6037
            int status = !constants;
 
6038
            {
 
6039
              static char const sym[] = "conftest.sym";
 
6040
              if (symlink (".", sym) != 0
 
6041
                  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
 
6042
                status |= 32;
 
6043
              unlink (sym);
 
6044
            }
 
6045
            {
 
6046
              static char const file[] = "confdefs.h";
 
6047
              int fd = open (file, O_RDONLY | O_NOATIME);
 
6048
              char c;
 
6049
              struct stat st0, st1;
 
6050
              if (fd < 0
 
6051
                  || fstat (fd, &st0) != 0
 
6052
                  || sleep (1) != 0
 
6053
                  || read (fd, &c, 1) != 1
 
6054
                  || close (fd) != 0
 
6055
                  || stat (file, &st1) != 0
 
6056
                  || st0.st_atime != st1.st_atime)
 
6057
                status |= 64;
 
6058
            }
 
6059
            return status;
 
6060
  ;
 
6061
  return 0;
 
6062
}
 
6063
_ACEOF
 
6064
if ac_fn_c_try_run "$LINENO"; then :
 
6065
  gl_cv_header_working_fcntl_h=yes
 
6066
else
 
6067
  case $? in #(
 
6068
        32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
 
6069
        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
 
6070
        96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
 
6071
         *) gl_cv_header_working_fcntl_h='no';;
 
6072
        esac
 
6073
fi
 
6074
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6075
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6076
fi
 
6077
 
 
6078
fi
 
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
 
6080
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
 
6081
 
 
6082
  case $gl_cv_header_working_fcntl_h in #(
 
6083
  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
 
6084
  *) ac_val=1;;
 
6085
  esac
 
6086
 
 
6087
cat >>confdefs.h <<_ACEOF
 
6088
#define HAVE_WORKING_O_NOATIME $ac_val
 
6089
_ACEOF
 
6090
 
 
6091
 
 
6092
  case $gl_cv_header_working_fcntl_h in #(
 
6093
  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
 
6094
  *) ac_val=1;;
 
6095
  esac
 
6096
 
 
6097
cat >>confdefs.h <<_ACEOF
 
6098
#define HAVE_WORKING_O_NOFOLLOW $ac_val
 
6099
_ACEOF
 
6100
 
 
6101
 
 
6102
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
6103
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
6104
  ac_have_decl=1
 
6105
else
 
6106
  ac_have_decl=0
 
6107
fi
 
6108
 
 
6109
cat >>confdefs.h <<_ACEOF
 
6110
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
6111
_ACEOF
 
6112
 
 
6113
 
 
6114
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
6115
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
 
6116
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
 
6117
  $as_echo_n "(cached) " >&6
 
6118
else
 
6119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6120
/* end confdefs.h.  */
 
6121
 
 
6122
#include <features.h>
 
6123
#ifdef __GNU_LIBRARY__
 
6124
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
6125
  Lucky GNU user
 
6126
 #endif
 
6127
#endif
 
6128
 
 
6129
_ACEOF
 
6130
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6131
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
6132
  ac_cv_gnu_library_2_1=yes
 
6133
else
 
6134
  ac_cv_gnu_library_2_1=no
 
6135
fi
 
6136
rm -f conftest*
 
6137
 
 
6138
 
 
6139
 
 
6140
fi
 
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
 
6142
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
 
6143
 
 
6144
    GLIBC21="$ac_cv_gnu_library_2_1"
 
6145
 
 
6146
 
 
6147
 
 
6148
  GNULIB_BTOWC=0;
 
6149
  GNULIB_WCTOB=0;
 
6150
  GNULIB_MBSINIT=0;
 
6151
  GNULIB_MBRTOWC=0;
 
6152
  GNULIB_MBRLEN=0;
 
6153
  GNULIB_MBSRTOWCS=0;
 
6154
  GNULIB_MBSNRTOWCS=0;
 
6155
  GNULIB_WCRTOMB=0;
 
6156
  GNULIB_WCSRTOMBS=0;
 
6157
  GNULIB_WCSNRTOMBS=0;
 
6158
  GNULIB_WCWIDTH=0;
 
6159
    HAVE_BTOWC=1;
 
6160
  HAVE_MBSINIT=1;
 
6161
  HAVE_MBRTOWC=1;
 
6162
  HAVE_MBRLEN=1;
 
6163
  HAVE_MBSRTOWCS=1;
 
6164
  HAVE_MBSNRTOWCS=1;
 
6165
  HAVE_WCRTOMB=1;
 
6166
  HAVE_WCSRTOMBS=1;
 
6167
  HAVE_WCSNRTOMBS=1;
 
6168
  HAVE_DECL_WCTOB=1;
 
6169
  HAVE_DECL_WCWIDTH=1;
 
6170
  REPLACE_MBSTATE_T=0;
 
6171
  REPLACE_BTOWC=0;
 
6172
  REPLACE_WCTOB=0;
 
6173
  REPLACE_MBSINIT=0;
 
6174
  REPLACE_MBRTOWC=0;
 
6175
  REPLACE_MBRLEN=0;
 
6176
  REPLACE_MBSRTOWCS=0;
 
6177
  REPLACE_MBSNRTOWCS=0;
 
6178
  REPLACE_WCRTOMB=0;
 
6179
  REPLACE_WCSRTOMBS=0;
 
6180
  REPLACE_WCSNRTOMBS=0;
 
6181
  REPLACE_WCWIDTH=0;
 
6182
 
 
6183
 
 
6184
 
 
6185
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
 
6186
$as_echo_n "checking for mbstate_t... " >&6; }
 
6187
if test "${ac_cv_type_mbstate_t+set}" = set; then :
 
6188
  $as_echo_n "(cached) " >&6
 
6189
else
 
6190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6191
/* end confdefs.h.  */
 
6192
$ac_includes_default
 
6193
#           include <wchar.h>
 
6194
int
 
6195
main ()
 
6196
{
 
6197
mbstate_t x; return sizeof x;
 
6198
  ;
 
6199
  return 0;
 
6200
}
 
6201
_ACEOF
 
6202
if ac_fn_c_try_compile "$LINENO"; then :
 
6203
  ac_cv_type_mbstate_t=yes
 
6204
else
 
6205
  ac_cv_type_mbstate_t=no
 
6206
fi
 
6207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6208
fi
 
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
 
6210
$as_echo "$ac_cv_type_mbstate_t" >&6; }
 
6211
   if test $ac_cv_type_mbstate_t = yes; then
 
6212
 
 
6213
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
 
6214
 
 
6215
   else
 
6216
 
 
6217
$as_echo "#define mbstate_t int" >>confdefs.h
 
6218
 
 
6219
   fi
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
 
6229
$as_echo_n "checking for a traditional japanese locale... " >&6; }
 
6230
if test "${gt_cv_locale_ja+set}" = set; then :
 
6231
  $as_echo_n "(cached) " >&6
 
6232
else
 
6233
 
 
6234
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6235
/* end confdefs.h.  */
 
6236
 
 
6237
#include <locale.h>
 
6238
#include <time.h>
 
6239
#if HAVE_LANGINFO_CODESET
 
6240
# include <langinfo.h>
 
6241
#endif
 
6242
#include <stdlib.h>
 
6243
#include <string.h>
 
6244
struct tm t;
 
6245
char buf[16];
 
6246
int main ()
 
6247
{
 
6248
  const char *p;
 
6249
  /* Check whether the given locale name is recognized by the system.  */
 
6250
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
6251
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
6252
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
6253
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
6254
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
6255
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
6256
     some unit tests fail.  */
 
6257
#if HAVE_LANGINFO_CODESET
 
6258
  {
 
6259
    const char *cs = nl_langinfo (CODESET);
 
6260
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
6261
      return 1;
 
6262
  }
 
6263
#endif
 
6264
#ifdef __CYGWIN__
 
6265
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
6266
     locale_charset() function relies on the encoding suffix.  Note that
 
6267
     LC_ALL is set on the command line.  */
 
6268
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
6269
#endif
 
6270
  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
 
6271
     on Cygwin 1.5.x.  */
 
6272
  if (MB_CUR_MAX == 1)
 
6273
    return 1;
 
6274
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
6275
     This excludes the UTF-8 encoding.  */
 
6276
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
6277
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
6278
  for (p = buf; *p != '\0'; p++)
 
6279
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
6280
      return 1;
 
6281
  return 0;
 
6282
}
 
6283
 
 
6284
_ACEOF
 
6285
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6286
  (eval $ac_link) 2>&5
 
6287
  ac_status=$?
 
6288
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6289
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
6290
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
6291
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
6292
      # configure script would override the LC_ALL setting. Likewise for
 
6293
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
6294
      # Test for the AIX locale name.
 
6295
      if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6296
        gt_cv_locale_ja=ja_JP
 
6297
      else
 
6298
        # Test for the locale name with explicit encoding suffix.
 
6299
        if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6300
          gt_cv_locale_ja=ja_JP.EUC-JP
 
6301
        else
 
6302
          # Test for the HP-UX, OSF/1, NetBSD locale name.
 
6303
          if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6304
            gt_cv_locale_ja=ja_JP.eucJP
 
6305
          else
 
6306
            # Test for the IRIX, FreeBSD locale name.
 
6307
            if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6308
              gt_cv_locale_ja=ja_JP.EUC
 
6309
            else
 
6310
              # Test for the Solaris 7 locale name.
 
6311
              if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6312
                gt_cv_locale_ja=ja
 
6313
              else
 
6314
                # Special test for NetBSD 1.6.
 
6315
                if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
 
6316
                  gt_cv_locale_ja=ja_JP.eucJP
 
6317
                else
 
6318
                  # None found.
 
6319
                  gt_cv_locale_ja=none
 
6320
                fi
 
6321
              fi
 
6322
            fi
 
6323
          fi
 
6324
        fi
 
6325
      fi
 
6326
    fi
 
6327
    rm -fr conftest*
 
6328
 
 
6329
fi
 
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
 
6331
$as_echo "$gt_cv_locale_ja" >&6; }
 
6332
  LOCALE_JA=$gt_cv_locale_ja
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
 
6339
$as_echo_n "checking for a transitional chinese locale... " >&6; }
 
6340
if test "${gt_cv_locale_zh_CN+set}" = set; then :
 
6341
  $as_echo_n "(cached) " >&6
 
6342
else
 
6343
 
 
6344
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6345
/* end confdefs.h.  */
 
6346
 
 
6347
#include <locale.h>
 
6348
#include <stdlib.h>
 
6349
#include <time.h>
 
6350
#if HAVE_LANGINFO_CODESET
 
6351
# include <langinfo.h>
 
6352
#endif
 
6353
#include <stdlib.h>
 
6354
#include <string.h>
 
6355
struct tm t;
 
6356
char buf[16];
 
6357
int main ()
 
6358
{
 
6359
  const char *p;
 
6360
  /* Check whether the given locale name is recognized by the system.  */
 
6361
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
6362
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
6363
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
6364
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
6365
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
6366
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
6367
     some unit tests fail.  */
 
6368
#if HAVE_LANGINFO_CODESET
 
6369
  {
 
6370
    const char *cs = nl_langinfo (CODESET);
 
6371
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
6372
      return 1;
 
6373
  }
 
6374
#endif
 
6375
#ifdef __CYGWIN__
 
6376
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
6377
     locale_charset() function relies on the encoding suffix.  Note that
 
6378
     LC_ALL is set on the command line.  */
 
6379
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
6380
#endif
 
6381
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
6382
     This excludes the UTF-8 encoding.  */
 
6383
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
6384
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
6385
  for (p = buf; *p != '\0'; p++)
 
6386
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
6387
      return 1;
 
6388
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
6389
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
6390
  if (mblen ("\203\062\332\066", 5) != 4)
 
6391
    return 1;
 
6392
  return 0;
 
6393
}
 
6394
 
 
6395
_ACEOF
 
6396
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6397
  (eval $ac_link) 2>&5
 
6398
  ac_status=$?
 
6399
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6400
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
6401
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
6402
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
6403
      # configure script would override the LC_ALL setting. Likewise for
 
6404
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
6405
      # Test for the locale name without encoding suffix.
 
6406
      if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6407
        gt_cv_locale_zh_CN=zh_CN
 
6408
      else
 
6409
        # Test for the locale name with explicit encoding suffix.
 
6410
        if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6411
          gt_cv_locale_zh_CN=zh_CN.GB18030
 
6412
        else
 
6413
          # None found.
 
6414
          gt_cv_locale_zh_CN=none
 
6415
        fi
 
6416
      fi
 
6417
    else
 
6418
      # If there was a link error, due to mblen(), the system is so old that
 
6419
      # it certainly doesn't have a chinese locale.
 
6420
      gt_cv_locale_zh_CN=none
 
6421
    fi
 
6422
    rm -fr conftest*
 
6423
 
 
6424
fi
 
6425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
 
6426
$as_echo "$gt_cv_locale_zh_CN" >&6; }
 
6427
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
6428
 
 
6429
 
 
6430
 
 
6431
 
 
6432
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
 
6433
$as_echo_n "checking for a french Unicode locale... " >&6; }
 
6434
if test "${gt_cv_locale_fr_utf8+set}" = set; then :
 
6435
  $as_echo_n "(cached) " >&6
 
6436
else
 
6437
 
 
6438
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6439
/* end confdefs.h.  */
 
6440
 
 
6441
#include <locale.h>
 
6442
#include <time.h>
 
6443
#if HAVE_LANGINFO_CODESET
 
6444
# include <langinfo.h>
 
6445
#endif
 
6446
#include <stdlib.h>
 
6447
#include <string.h>
 
6448
struct tm t;
 
6449
char buf[16];
 
6450
int main () {
 
6451
  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
 
6452
     imitates locale dependent behaviour by looking at the environment
 
6453
     variables, and all locales use the UTF-8 encoding.  */
 
6454
#if !(defined __BEOS__ || defined __HAIKU__)
 
6455
  /* Check whether the given locale name is recognized by the system.  */
 
6456
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
6457
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
6458
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
6459
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
6460
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
6461
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
6462
     some unit tests fail.  */
 
6463
# if HAVE_LANGINFO_CODESET
 
6464
  {
 
6465
    const char *cs = nl_langinfo (CODESET);
 
6466
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
6467
      return 1;
 
6468
  }
 
6469
# endif
 
6470
# ifdef __CYGWIN__
 
6471
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
6472
     locale_charset() function relies on the encoding suffix.  Note that
 
6473
     LC_ALL is set on the command line.  */
 
6474
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
6475
# endif
 
6476
  /* Check whether in the abbreviation of the second month, the second
 
6477
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
6478
     two bytes long, with UTF-8 encoding.  */
 
6479
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
6480
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
6481
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
6482
    return 1;
 
6483
#endif
 
6484
  /* Check whether the decimal separator is a comma.
 
6485
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
6486
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
6487
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
6488
  return 0;
 
6489
}
 
6490
 
 
6491
_ACEOF
 
6492
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6493
  (eval $ac_link) 2>&5
 
6494
  ac_status=$?
 
6495
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6496
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
6497
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
6498
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
6499
      # configure script would override the LC_ALL setting. Likewise for
 
6500
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
6501
      # Test for the usual locale name.
 
6502
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6503
        gt_cv_locale_fr_utf8=fr_FR
 
6504
      else
 
6505
        # Test for the locale name with explicit encoding suffix.
 
6506
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6507
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
6508
        else
 
6509
          # Test for the Solaris 7 locale name.
 
6510
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
6511
            gt_cv_locale_fr_utf8=fr.UTF-8
 
6512
          else
 
6513
            # None found.
 
6514
            gt_cv_locale_fr_utf8=none
 
6515
          fi
 
6516
        fi
 
6517
      fi
 
6518
    fi
 
6519
    rm -fr conftest*
 
6520
 
 
6521
fi
 
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
 
6523
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
 
6524
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
6525
 
 
6526
 
 
6527
 
 
6528
    gl_cv_c_multiarch=no
 
6529
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6530
/* end confdefs.h.  */
 
6531
#ifndef __APPLE_CC__
 
6532
         not a universal capable compiler
 
6533
        #endif
 
6534
        typedef int dummy;
 
6535
 
 
6536
_ACEOF
 
6537
if ac_fn_c_try_compile "$LINENO"; then :
 
6538
 
 
6539
               arch=
 
6540
     prev=
 
6541
     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
 
6542
       if test -n "$prev"; then
 
6543
         case $word in
 
6544
           i?86 | x86_64 | ppc | ppc64)
 
6545
             if test -z "$arch" || test "$arch" = "$word"; then
 
6546
               arch="$word"
 
6547
             else
 
6548
               gl_cv_c_multiarch=yes
 
6549
             fi
 
6550
             ;;
 
6551
         esac
 
6552
         prev=
 
6553
       else
 
6554
         if test "x$word" = "x-arch"; then
 
6555
           prev=arch
 
6556
         fi
 
6557
       fi
 
6558
     done
 
6559
 
 
6560
fi
 
6561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6562
  if test $gl_cv_c_multiarch = yes; then
 
6563
 
 
6564
$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
6565
 
 
6566
    APPLE_UNIVERSAL_BUILD=1
 
6567
  else
 
6568
    APPLE_UNIVERSAL_BUILD=0
 
6569
  fi
 
6570
 
 
6571
 
 
6572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7333
6573
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7334
 
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
6574
if test "${ac_cv_header_stdbool_h+set}" = set; then :
7335
6575
  $as_echo_n "(cached) " >&6
7336
6576
else
7337
 
  cat >conftest.$ac_ext <<_ACEOF
7338
 
/* confdefs.h.  */
7339
 
_ACEOF
7340
 
cat confdefs.h >>conftest.$ac_ext
7341
 
cat >>conftest.$ac_ext <<_ACEOF
 
6577
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342
6578
/* end confdefs.h.  */
7343
6579
 
7344
 
          #include <stdbool.h>
7345
 
          #ifndef bool
7346
 
           "error: bool is not defined"
7347
 
          #endif
7348
 
          #ifndef false
7349
 
           "error: false is not defined"
7350
 
          #endif
7351
 
          #if false
7352
 
           "error: false is not 0"
7353
 
          #endif
7354
 
          #ifndef true
7355
 
           "error: true is not defined"
7356
 
          #endif
7357
 
          #if true != 1
7358
 
           "error: true is not 1"
7359
 
          #endif
7360
 
          #ifndef __bool_true_false_are_defined
7361
 
           "error: __bool_true_false_are_defined is not defined"
7362
 
          #endif
7363
 
 
7364
 
          struct s { _Bool s: 1; _Bool t; } s;
7365
 
 
7366
 
          char a[true == 1 ? 1 : -1];
7367
 
          char b[false == 0 ? 1 : -1];
7368
 
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7369
 
          char d[(bool) 0.5 == true ? 1 : -1];
7370
 
          bool e = &s;
7371
 
          char f[(_Bool) 0.0 == false ? 1 : -1];
7372
 
          char g[true];
7373
 
          char h[sizeof (_Bool)];
7374
 
          char i[sizeof s.t];
7375
 
          enum { j = false, k = true, l = false * true, m = true * 256 };
7376
 
          _Bool n[m];
7377
 
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7378
 
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7379
 
          #if defined __xlc__ || defined __GNUC__
7380
 
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7381
 
              reported by James Lemley on 2005-10-05; see
7382
 
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7383
 
              This test is not quite right, since xlc is allowed to
7384
 
              reject this program, as the initializer for xlcbug is
7385
 
              not one of the forms that C requires support for.
7386
 
              However, doing the test right would require a run-time
7387
 
              test, and that would make cross-compilation harder.
7388
 
              Let us hope that IBM fixes the xlc bug, and also adds
7389
 
              support for this kind of constant expression.  In the
7390
 
              meantime, this test will reject xlc, which is OK, since
7391
 
              our stdbool.h substitute should suffice.  We also test
7392
 
              this with GCC, where it should work, to detect more
7393
 
              quickly whether someone messes up the test in the
7394
 
              future.  */
7395
 
           char digs[] = "0123456789";
7396
 
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7397
 
          #endif
7398
 
          /* Catch a bug in an HP-UX C compiler.  See
7399
 
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7400
 
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7401
 
           */
7402
 
          _Bool q = true;
7403
 
          _Bool *pq = &q;
 
6580
          #include <stdbool.h>
 
6581
          #ifndef bool
 
6582
           "error: bool is not defined"
 
6583
          #endif
 
6584
          #ifndef false
 
6585
           "error: false is not defined"
 
6586
          #endif
 
6587
          #if false
 
6588
           "error: false is not 0"
 
6589
          #endif
 
6590
          #ifndef true
 
6591
           "error: true is not defined"
 
6592
          #endif
 
6593
          #if true != 1
 
6594
           "error: true is not 1"
 
6595
          #endif
 
6596
          #ifndef __bool_true_false_are_defined
 
6597
           "error: __bool_true_false_are_defined is not defined"
 
6598
          #endif
 
6599
 
 
6600
          struct s { _Bool s: 1; _Bool t; } s;
 
6601
 
 
6602
          char a[true == 1 ? 1 : -1];
 
6603
          char b[false == 0 ? 1 : -1];
 
6604
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
6605
          char d[(bool) 0.5 == true ? 1 : -1];
 
6606
          bool e = &s;
 
6607
          char f[(_Bool) 0.0 == false ? 1 : -1];
 
6608
          char g[true];
 
6609
          char h[sizeof (_Bool)];
 
6610
          char i[sizeof s.t];
 
6611
          enum { j = false, k = true, l = false * true, m = true * 256 };
 
6612
          _Bool n[m];
 
6613
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
6614
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
6615
          #if defined __xlc__ || defined __GNUC__
 
6616
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
6617
              reported by James Lemley on 2005-10-05; see
 
6618
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
6619
              This test is not quite right, since xlc is allowed to
 
6620
              reject this program, as the initializer for xlcbug is
 
6621
              not one of the forms that C requires support for.
 
6622
              However, doing the test right would require a run-time
 
6623
              test, and that would make cross-compilation harder.
 
6624
              Let us hope that IBM fixes the xlc bug, and also adds
 
6625
              support for this kind of constant expression.  In the
 
6626
              meantime, this test will reject xlc, which is OK, since
 
6627
              our stdbool.h substitute should suffice.  We also test
 
6628
              this with GCC, where it should work, to detect more
 
6629
              quickly whether someone messes up the test in the
 
6630
              future.  */
 
6631
           char digs[] = "0123456789";
 
6632
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
6633
          #endif
 
6634
          /* Catch a bug in an HP-UX C compiler.  See
 
6635
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
6636
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
6637
           */
 
6638
          _Bool q = true;
 
6639
          _Bool *pq = &q;
7404
6640
 
7405
6641
int
7406
6642
main ()
7407
6643
{
7408
6644
 
7409
 
          *pq |= q;
7410
 
          *pq |= ! q;
7411
 
          /* Refer to every declared value, to avoid compiler optimizations.  */
7412
 
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7413
 
                  + !m + !n + !o + !p + !q + !pq);
 
6645
          *pq |= q;
 
6646
          *pq |= ! q;
 
6647
          /* Refer to every declared value, to avoid compiler optimizations.  */
 
6648
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
6649
                  + !m + !n + !o + !p + !q + !pq);
7414
6650
 
7415
6651
  ;
7416
6652
  return 0;
7417
6653
}
7418
6654
_ACEOF
7419
 
rm -f conftest.$ac_objext
7420
 
if { (ac_try="$ac_compile"
7421
 
case "(($ac_try" in
7422
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423
 
  *) ac_try_echo=$ac_try;;
7424
 
esac
7425
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426
 
$as_echo "$ac_try_echo") >&5
7427
 
  (eval "$ac_compile") 2>conftest.er1
7428
 
  ac_status=$?
7429
 
  grep -v '^ *+' conftest.er1 >conftest.err
7430
 
  rm -f conftest.er1
7431
 
  cat conftest.err >&5
7432
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433
 
  (exit $ac_status); } && {
7434
 
         test -z "$ac_c_werror_flag" ||
7435
 
         test ! -s conftest.err
7436
 
       } && test -s conftest.$ac_objext; then
 
6655
if ac_fn_c_try_compile "$LINENO"; then :
7437
6656
  ac_cv_header_stdbool_h=yes
7438
6657
else
7439
 
  $as_echo "$as_me: failed program was:" >&5
7440
 
sed 's/^/| /' conftest.$ac_ext >&5
7441
 
 
7442
 
        ac_cv_header_stdbool_h=no
 
6658
  ac_cv_header_stdbool_h=no
7443
6659
fi
7444
 
 
7445
6660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446
6661
fi
7447
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
6662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7448
6663
$as_echo "$ac_cv_header_stdbool_h" >&6; }
7449
 
   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7450
 
$as_echo_n "checking for _Bool... " >&6; }
7451
 
if test "${ac_cv_type__Bool+set}" = set; then
7452
 
  $as_echo_n "(cached) " >&6
7453
 
else
7454
 
  ac_cv_type__Bool=no
7455
 
cat >conftest.$ac_ext <<_ACEOF
7456
 
/* confdefs.h.  */
7457
 
_ACEOF
7458
 
cat confdefs.h >>conftest.$ac_ext
7459
 
cat >>conftest.$ac_ext <<_ACEOF
7460
 
/* end confdefs.h.  */
7461
 
$ac_includes_default
7462
 
int
7463
 
main ()
7464
 
{
7465
 
if (sizeof (_Bool))
7466
 
       return 0;
7467
 
  ;
7468
 
  return 0;
7469
 
}
7470
 
_ACEOF
7471
 
rm -f conftest.$ac_objext
7472
 
if { (ac_try="$ac_compile"
7473
 
case "(($ac_try" in
7474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475
 
  *) ac_try_echo=$ac_try;;
7476
 
esac
7477
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7478
 
$as_echo "$ac_try_echo") >&5
7479
 
  (eval "$ac_compile") 2>conftest.er1
7480
 
  ac_status=$?
7481
 
  grep -v '^ *+' conftest.er1 >conftest.err
7482
 
  rm -f conftest.er1
7483
 
  cat conftest.err >&5
7484
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485
 
  (exit $ac_status); } && {
7486
 
         test -z "$ac_c_werror_flag" ||
7487
 
         test ! -s conftest.err
7488
 
       } && test -s conftest.$ac_objext; then
7489
 
  cat >conftest.$ac_ext <<_ACEOF
7490
 
/* confdefs.h.  */
7491
 
_ACEOF
7492
 
cat confdefs.h >>conftest.$ac_ext
7493
 
cat >>conftest.$ac_ext <<_ACEOF
7494
 
/* end confdefs.h.  */
7495
 
$ac_includes_default
7496
 
int
7497
 
main ()
7498
 
{
7499
 
if (sizeof ((_Bool)))
7500
 
          return 0;
7501
 
  ;
7502
 
  return 0;
7503
 
}
7504
 
_ACEOF
7505
 
rm -f conftest.$ac_objext
7506
 
if { (ac_try="$ac_compile"
7507
 
case "(($ac_try" in
7508
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509
 
  *) ac_try_echo=$ac_try;;
7510
 
esac
7511
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512
 
$as_echo "$ac_try_echo") >&5
7513
 
  (eval "$ac_compile") 2>conftest.er1
7514
 
  ac_status=$?
7515
 
  grep -v '^ *+' conftest.er1 >conftest.err
7516
 
  rm -f conftest.er1
7517
 
  cat conftest.err >&5
7518
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519
 
  (exit $ac_status); } && {
7520
 
         test -z "$ac_c_werror_flag" ||
7521
 
         test ! -s conftest.err
7522
 
       } && test -s conftest.$ac_objext; then
7523
 
  :
7524
 
else
7525
 
  $as_echo "$as_me: failed program was:" >&5
7526
 
sed 's/^/| /' conftest.$ac_ext >&5
7527
 
 
7528
 
        ac_cv_type__Bool=yes
7529
 
fi
7530
 
 
7531
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532
 
else
7533
 
  $as_echo "$as_me: failed program was:" >&5
7534
 
sed 's/^/| /' conftest.$ac_ext >&5
7535
 
 
7536
 
 
7537
 
fi
7538
 
 
7539
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
 
fi
7541
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7542
 
$as_echo "$ac_cv_type__Bool" >&6; }
7543
 
if test "x$ac_cv_type__Bool" = x""yes; then
 
6664
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
6665
if test "x$ac_cv_type__Bool" = x""yes; then :
7544
6666
 
7545
6667
cat >>confdefs.h <<_ACEOF
7546
6668
#define HAVE__BOOL 1
7551
6673
 
7552
6674
   if test $ac_cv_header_stdbool_h = yes; then
7553
6675
 
7554
 
cat >>confdefs.h <<\_ACEOF
7555
 
#define HAVE_STDBOOL_H 1
7556
 
_ACEOF
 
6676
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7557
6677
 
7558
6678
   fi
7559
6679
 
7560
 
  GNULIB_MALLOC_POSIX=0;
7561
 
  GNULIB_REALLOC_POSIX=0;
 
6680
    REPLACE_NULL=0;
 
6681
  HAVE_WCHAR_T=1;
 
6682
  STDDEF_H='';
 
6683
 
 
6684
 
 
6685
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
 
6686
$as_echo_n "checking for wchar_t... " >&6; }
 
6687
if test "${gt_cv_c_wchar_t+set}" = set; then :
 
6688
  $as_echo_n "(cached) " >&6
 
6689
else
 
6690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6691
/* end confdefs.h.  */
 
6692
#include <stddef.h>
 
6693
       wchar_t foo = (wchar_t)'\0';
 
6694
int
 
6695
main ()
 
6696
{
 
6697
 
 
6698
  ;
 
6699
  return 0;
 
6700
}
 
6701
_ACEOF
 
6702
if ac_fn_c_try_compile "$LINENO"; then :
 
6703
  gt_cv_c_wchar_t=yes
 
6704
else
 
6705
  gt_cv_c_wchar_t=no
 
6706
fi
 
6707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6708
fi
 
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
 
6710
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
6711
  if test $gt_cv_c_wchar_t = yes; then
 
6712
 
 
6713
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
 
6714
 
 
6715
  fi
 
6716
 
 
6717
 
 
6718
 
 
6719
 
 
6720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
 
6721
$as_echo_n "checking for long long int... " >&6; }
 
6722
if test "${ac_cv_type_long_long_int+set}" = set; then :
 
6723
  $as_echo_n "(cached) " >&6
 
6724
else
 
6725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6726
/* end confdefs.h.  */
 
6727
 
 
6728
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
6729
         implementations with broken preprocessors.  Perhaps this can
 
6730
         be revisited in 2012.  In the meantime, code should not expect
 
6731
         #if to work with literals wider than 32 bits.  */
 
6732
      /* Test literals.  */
 
6733
      long long int ll = 9223372036854775807ll;
 
6734
      long long int nll = -9223372036854775807LL;
 
6735
      unsigned long long int ull = 18446744073709551615ULL;
 
6736
      /* Test constant expressions.   */
 
6737
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
6738
                     ? 1 : -1)];
 
6739
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
6740
                     ? 1 : -1)];
 
6741
      int i = 63;
 
6742
int
 
6743
main ()
 
6744
{
 
6745
/* Test availability of runtime routines for shift and division.  */
 
6746
      long long int llmax = 9223372036854775807ll;
 
6747
      unsigned long long int ullmax = 18446744073709551615ull;
 
6748
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
6749
              | (llmax / ll) | (llmax % ll)
 
6750
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
6751
              | (ullmax / ull) | (ullmax % ull));
 
6752
  ;
 
6753
  return 0;
 
6754
}
 
6755
 
 
6756
_ACEOF
 
6757
if ac_fn_c_try_link "$LINENO"; then :
 
6758
                          if test "$cross_compiling" = yes; then :
 
6759
  ac_cv_type_long_long_int=yes
 
6760
else
 
6761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6762
/* end confdefs.h.  */
 
6763
#include <limits.h>
 
6764
               #ifndef LLONG_MAX
 
6765
               # define HALF \
 
6766
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
6767
               # define LLONG_MAX (HALF - 1 + HALF)
 
6768
               #endif
 
6769
int
 
6770
main ()
 
6771
{
 
6772
long long int n = 1;
 
6773
               int i;
 
6774
               for (i = 0; ; i++)
 
6775
                 {
 
6776
                   long long int m = n << i;
 
6777
                   if (m >> i != n)
 
6778
                     return 1;
 
6779
                   if (LLONG_MAX / 2 < m)
 
6780
                     break;
 
6781
                 }
 
6782
               return 0;
 
6783
  ;
 
6784
  return 0;
 
6785
}
 
6786
_ACEOF
 
6787
if ac_fn_c_try_run "$LINENO"; then :
 
6788
  ac_cv_type_long_long_int=yes
 
6789
else
 
6790
  ac_cv_type_long_long_int=no
 
6791
fi
 
6792
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6793
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6794
fi
 
6795
 
 
6796
else
 
6797
  ac_cv_type_long_long_int=no
 
6798
fi
 
6799
rm -f core conftest.err conftest.$ac_objext \
 
6800
    conftest$ac_exeext conftest.$ac_ext
 
6801
fi
 
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
 
6803
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
6804
  if test $ac_cv_type_long_long_int = yes; then
 
6805
 
 
6806
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
 
6807
 
 
6808
  fi
 
6809
 
 
6810
 
 
6811
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
 
6812
$as_echo_n "checking for unsigned long long int... " >&6; }
 
6813
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
 
6814
  $as_echo_n "(cached) " >&6
 
6815
else
 
6816
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6817
/* end confdefs.h.  */
 
6818
 
 
6819
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
6820
         implementations with broken preprocessors.  Perhaps this can
 
6821
         be revisited in 2012.  In the meantime, code should not expect
 
6822
         #if to work with literals wider than 32 bits.  */
 
6823
      /* Test literals.  */
 
6824
      long long int ll = 9223372036854775807ll;
 
6825
      long long int nll = -9223372036854775807LL;
 
6826
      unsigned long long int ull = 18446744073709551615ULL;
 
6827
      /* Test constant expressions.   */
 
6828
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
6829
                     ? 1 : -1)];
 
6830
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
6831
                     ? 1 : -1)];
 
6832
      int i = 63;
 
6833
int
 
6834
main ()
 
6835
{
 
6836
/* Test availability of runtime routines for shift and division.  */
 
6837
      long long int llmax = 9223372036854775807ll;
 
6838
      unsigned long long int ullmax = 18446744073709551615ull;
 
6839
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
6840
              | (llmax / ll) | (llmax % ll)
 
6841
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
6842
              | (ullmax / ull) | (ullmax % ull));
 
6843
  ;
 
6844
  return 0;
 
6845
}
 
6846
 
 
6847
_ACEOF
 
6848
if ac_fn_c_try_link "$LINENO"; then :
 
6849
  ac_cv_type_unsigned_long_long_int=yes
 
6850
else
 
6851
  ac_cv_type_unsigned_long_long_int=no
 
6852
fi
 
6853
rm -f core conftest.err conftest.$ac_objext \
 
6854
    conftest$ac_exeext conftest.$ac_ext
 
6855
fi
 
6856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
 
6857
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
6858
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
6859
 
 
6860
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
 
6861
 
 
6862
  fi
 
6863
 
 
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
  GNULIB_ATOLL=0;
7562
6870
  GNULIB_CALLOC_POSIX=0;
7563
 
  GNULIB_ATOLL=0;
 
6871
  GNULIB_CANONICALIZE_FILE_NAME=0;
7564
6872
  GNULIB_GETLOADAVG=0;
7565
6873
  GNULIB_GETSUBOPT=0;
 
6874
  GNULIB_MALLOC_POSIX=0;
7566
6875
  GNULIB_MKDTEMP=0;
 
6876
  GNULIB_MKOSTEMP=0;
 
6877
  GNULIB_MKOSTEMPS=0;
7567
6878
  GNULIB_MKSTEMP=0;
 
6879
  GNULIB_MKSTEMPS=0;
7568
6880
  GNULIB_PUTENV=0;
7569
6881
  GNULIB_RANDOM_R=0;
 
6882
  GNULIB_REALLOC_POSIX=0;
 
6883
  GNULIB_REALPATH=0;
7570
6884
  GNULIB_RPMATCH=0;
7571
6885
  GNULIB_SETENV=0;
7572
6886
  GNULIB_STRTOD=0;
7575
6889
  GNULIB_UNSETENV=0;
7576
6890
    HAVE_ATOLL=1;
7577
6891
  HAVE_CALLOC_POSIX=1;
 
6892
  HAVE_CANONICALIZE_FILE_NAME=1;
 
6893
  HAVE_DECL_GETLOADAVG=1;
7578
6894
  HAVE_GETSUBOPT=1;
7579
6895
  HAVE_MALLOC_POSIX=1;
7580
6896
  HAVE_MKDTEMP=1;
 
6897
  HAVE_MKOSTEMP=1;
 
6898
  HAVE_MKOSTEMPS=1;
 
6899
  HAVE_MKSTEMPS=1;
 
6900
  HAVE_RANDOM_R=1;
7581
6901
  HAVE_REALLOC_POSIX=1;
7582
 
  HAVE_RANDOM_R=1;
 
6902
  HAVE_REALPATH=1;
7583
6903
  HAVE_RPMATCH=1;
7584
6904
  HAVE_SETENV=1;
7585
6905
  HAVE_STRTOD=1;
7588
6908
  HAVE_STRUCT_RANDOM_DATA=1;
7589
6909
  HAVE_SYS_LOADAVG_H=0;
7590
6910
  HAVE_UNSETENV=1;
7591
 
  HAVE_DECL_GETLOADAVG=1;
 
6911
  REPLACE_CANONICALIZE_FILE_NAME=0;
7592
6912
  REPLACE_MKSTEMP=0;
7593
6913
  REPLACE_PUTENV=0;
 
6914
  REPLACE_REALPATH=0;
 
6915
  REPLACE_SETENV=0;
7594
6916
  REPLACE_STRTOD=0;
7595
 
  VOID_UNSETENV=0;
7596
 
 
7597
 
 
7598
 
 
7599
 
 
 
6917
  REPLACE_UNSETENV=0;
 
6918
 
 
6919
 
 
6920
 
 
6921
 
 
6922
  GNULIB_MEMCHR=0;
7600
6923
  GNULIB_MEMMEM=0;
7601
6924
  GNULIB_MEMPCPY=0;
7602
6925
  GNULIB_MEMRCHR=0;
7629
6952
  GNULIB_STRERROR=0;
7630
6953
  GNULIB_STRSIGNAL=0;
7631
6954
  GNULIB_STRVERSCMP=0;
 
6955
  HAVE_MBSLEN=0;
7632
6956
    HAVE_DECL_MEMMEM=1;
7633
6957
  HAVE_MEMPCPY=1;
7634
6958
  HAVE_DECL_MEMRCHR=1;
7637
6961
  HAVE_STPNCPY=1;
7638
6962
  HAVE_STRCHRNUL=1;
7639
6963
  HAVE_DECL_STRDUP=1;
7640
 
  HAVE_STRNDUP=1;
7641
6964
  HAVE_DECL_STRNDUP=1;
7642
6965
  HAVE_DECL_STRNLEN=1;
7643
6966
  HAVE_STRPBRK=1;
7647
6970
  HAVE_DECL_STRERROR=1;
7648
6971
  HAVE_DECL_STRSIGNAL=1;
7649
6972
  HAVE_STRVERSCMP=1;
 
6973
  REPLACE_MEMCHR=0;
7650
6974
  REPLACE_MEMMEM=0;
7651
6975
  REPLACE_STRDUP=0;
7652
6976
  REPLACE_STRSTR=0;
7653
6977
  REPLACE_STRCASESTR=0;
7654
6978
  REPLACE_STRERROR=0;
 
6979
  REPLACE_STRNDUP=0;
7655
6980
  REPLACE_STRSIGNAL=0;
 
6981
  REPLACE_STRTOK_R=0;
 
6982
  UNDEFINE_STRTOK_R=0;
7656
6983
 
7657
6984
 
7658
6985
 
7660
6987
 
7661
6988
 
7662
6989
  if test -z "$ERRNO_H"; then
7663
 
    { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
 
6990
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
7664
6991
$as_echo_n "checking for working strerror function... " >&6; }
7665
 
if test "${gl_cv_func_working_strerror+set}" = set; then
 
6992
if test "${gl_cv_func_working_strerror+set}" = set; then :
7666
6993
  $as_echo_n "(cached) " >&6
7667
6994
else
7668
 
  if test "$cross_compiling" = yes; then
7669
 
           cat >conftest.$ac_ext <<_ACEOF
7670
 
/* confdefs.h.  */
7671
 
_ACEOF
7672
 
cat confdefs.h >>conftest.$ac_ext
7673
 
cat >>conftest.$ac_ext <<_ACEOF
 
6995
  if test "$cross_compiling" = yes; then :
 
6996
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674
6997
/* end confdefs.h.  */
7675
6998
#include <string.h>
7676
6999
 
7682
7005
  return 0;
7683
7006
}
7684
7007
_ACEOF
7685
 
rm -f conftest.$ac_objext
7686
 
if { (ac_try="$ac_compile"
7687
 
case "(($ac_try" in
7688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689
 
  *) ac_try_echo=$ac_try;;
7690
 
esac
7691
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7692
 
$as_echo "$ac_try_echo") >&5
7693
 
  (eval "$ac_compile") 2>conftest.er1
7694
 
  ac_status=$?
7695
 
  grep -v '^ *+' conftest.er1 >conftest.err
7696
 
  rm -f conftest.er1
7697
 
  cat conftest.err >&5
7698
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
 
  (exit $ac_status); } && {
7700
 
         test -z "$ac_c_werror_flag" ||
7701
 
         test ! -s conftest.err
7702
 
       } && test -s conftest.$ac_objext; then
 
7008
if ac_fn_c_try_compile "$LINENO"; then :
7703
7009
  gl_cv_func_working_strerror=yes
7704
7010
else
7705
 
  $as_echo "$as_me: failed program was:" >&5
7706
 
sed 's/^/| /' conftest.$ac_ext >&5
7707
 
 
7708
 
        gl_cv_func_working_strerror=no
 
7011
  gl_cv_func_working_strerror=no
7709
7012
fi
7710
 
 
7711
7013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712
7014
 
7713
7015
else
7714
 
  cat >conftest.$ac_ext <<_ACEOF
7715
 
/* confdefs.h.  */
7716
 
_ACEOF
7717
 
cat confdefs.h >>conftest.$ac_ext
7718
 
cat >>conftest.$ac_ext <<_ACEOF
 
7016
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719
7017
/* end confdefs.h.  */
7720
7018
#include <string.h>
7721
7019
 
7727
7025
  return 0;
7728
7026
}
7729
7027
_ACEOF
7730
 
rm -f conftest$ac_exeext
7731
 
if { (ac_try="$ac_link"
7732
 
case "(($ac_try" in
7733
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734
 
  *) ac_try_echo=$ac_try;;
7735
 
esac
7736
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737
 
$as_echo "$ac_try_echo") >&5
7738
 
  (eval "$ac_link") 2>&5
7739
 
  ac_status=$?
7740
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7742
 
  { (case "(($ac_try" in
7743
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744
 
  *) ac_try_echo=$ac_try;;
7745
 
esac
7746
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7747
 
$as_echo "$ac_try_echo") >&5
7748
 
  (eval "$ac_try") 2>&5
7749
 
  ac_status=$?
7750
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751
 
  (exit $ac_status); }; }; then
 
7028
if ac_fn_c_try_run "$LINENO"; then :
7752
7029
  gl_cv_func_working_strerror=yes
7753
7030
else
7754
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
7755
 
$as_echo "$as_me: failed program was:" >&5
7756
 
sed 's/^/| /' conftest.$ac_ext >&5
7757
 
 
7758
 
( exit $ac_status )
7759
 
gl_cv_func_working_strerror=no
7760
 
fi
7761
 
rm -rf conftest.dSYM
7762
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7763
 
fi
7764
 
 
7765
 
 
7766
 
 
7767
 
fi
7768
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
 
7031
  gl_cv_func_working_strerror=no
 
7032
fi
 
7033
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7034
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7035
fi
 
7036
 
 
7037
 
 
7038
fi
 
7039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
7769
7040
$as_echo "$gl_cv_func_working_strerror" >&6; }
7770
7041
    if test $gl_cv_func_working_strerror = no; then
7771
7042
                  REPLACE_STRERROR=1
7775
7046
  fi
7776
7047
  if test $REPLACE_STRERROR = 1; then
7777
7048
 
7778
 
  { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
7779
 
$as_echo_n "checking whether strerror is declared... " >&6; }
7780
 
if test "${ac_cv_have_decl_strerror+set}" = set; then
7781
 
  $as_echo_n "(cached) " >&6
7782
 
else
7783
 
  cat >conftest.$ac_ext <<_ACEOF
7784
 
/* confdefs.h.  */
7785
 
_ACEOF
7786
 
cat confdefs.h >>conftest.$ac_ext
7787
 
cat >>conftest.$ac_ext <<_ACEOF
7788
 
/* end confdefs.h.  */
7789
 
$ac_includes_default
7790
 
int
7791
 
main ()
7792
 
{
7793
 
#ifndef strerror
7794
 
  (void) strerror;
7795
 
#endif
7796
 
 
7797
 
  ;
7798
 
  return 0;
7799
 
}
7800
 
_ACEOF
7801
 
rm -f conftest.$ac_objext
7802
 
if { (ac_try="$ac_compile"
7803
 
case "(($ac_try" in
7804
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805
 
  *) ac_try_echo=$ac_try;;
7806
 
esac
7807
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7808
 
$as_echo "$ac_try_echo") >&5
7809
 
  (eval "$ac_compile") 2>conftest.er1
7810
 
  ac_status=$?
7811
 
  grep -v '^ *+' conftest.er1 >conftest.err
7812
 
  rm -f conftest.er1
7813
 
  cat conftest.err >&5
7814
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815
 
  (exit $ac_status); } && {
7816
 
         test -z "$ac_c_werror_flag" ||
7817
 
         test ! -s conftest.err
7818
 
       } && test -s conftest.$ac_objext; then
7819
 
  ac_cv_have_decl_strerror=yes
7820
 
else
7821
 
  $as_echo "$as_me: failed program was:" >&5
7822
 
sed 's/^/| /' conftest.$ac_ext >&5
7823
 
 
7824
 
        ac_cv_have_decl_strerror=no
7825
 
fi
7826
 
 
7827
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828
 
fi
7829
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
7830
 
$as_echo "$ac_cv_have_decl_strerror" >&6; }
7831
 
if test "x$ac_cv_have_decl_strerror" = x""yes; then
 
7049
  ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
 
7050
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
 
7051
  ac_have_decl=1
 
7052
else
 
7053
  ac_have_decl=0
 
7054
fi
7832
7055
 
7833
7056
cat >>confdefs.h <<_ACEOF
7834
 
#define HAVE_DECL_STRERROR 1
7835
 
_ACEOF
7836
 
 
7837
 
 
7838
 
else
7839
 
  cat >>confdefs.h <<_ACEOF
7840
 
#define HAVE_DECL_STRERROR 0
7841
 
_ACEOF
7842
 
 
7843
 
 
7844
 
fi
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
 
7057
#define HAVE_DECL_STRERROR $ac_have_decl
 
7058
_ACEOF
7851
7059
 
7852
7060
 
7853
7061
  if test $ac_cv_header_sys_socket_h != yes; then
7854
 
 
7855
 
for ac_header in winsock2.h
7856
 
do
7857
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7858
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7859
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7860
 
$as_echo_n "checking for $ac_header... " >&6; }
7861
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862
 
  $as_echo_n "(cached) " >&6
7863
 
fi
7864
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
7865
 
                 $as_echo "$as_val"'`
7866
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7867
 
$as_echo "$ac_res" >&6; }
7868
 
else
7869
 
  # Is the header compilable?
7870
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7871
 
$as_echo_n "checking $ac_header usability... " >&6; }
7872
 
cat >conftest.$ac_ext <<_ACEOF
7873
 
/* confdefs.h.  */
7874
 
_ACEOF
7875
 
cat confdefs.h >>conftest.$ac_ext
7876
 
cat >>conftest.$ac_ext <<_ACEOF
7877
 
/* end confdefs.h.  */
7878
 
$ac_includes_default
7879
 
#include <$ac_header>
7880
 
_ACEOF
7881
 
rm -f conftest.$ac_objext
7882
 
if { (ac_try="$ac_compile"
7883
 
case "(($ac_try" in
7884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885
 
  *) ac_try_echo=$ac_try;;
7886
 
esac
7887
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7888
 
$as_echo "$ac_try_echo") >&5
7889
 
  (eval "$ac_compile") 2>conftest.er1
7890
 
  ac_status=$?
7891
 
  grep -v '^ *+' conftest.er1 >conftest.err
7892
 
  rm -f conftest.er1
7893
 
  cat conftest.err >&5
7894
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895
 
  (exit $ac_status); } && {
7896
 
         test -z "$ac_c_werror_flag" ||
7897
 
         test ! -s conftest.err
7898
 
       } && test -s conftest.$ac_objext; then
7899
 
  ac_header_compiler=yes
7900
 
else
7901
 
  $as_echo "$as_me: failed program was:" >&5
7902
 
sed 's/^/| /' conftest.$ac_ext >&5
7903
 
 
7904
 
        ac_header_compiler=no
7905
 
fi
7906
 
 
7907
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7909
 
$as_echo "$ac_header_compiler" >&6; }
7910
 
 
7911
 
# Is the header present?
7912
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7913
 
$as_echo_n "checking $ac_header presence... " >&6; }
7914
 
cat >conftest.$ac_ext <<_ACEOF
7915
 
/* confdefs.h.  */
7916
 
_ACEOF
7917
 
cat confdefs.h >>conftest.$ac_ext
7918
 
cat >>conftest.$ac_ext <<_ACEOF
7919
 
/* end confdefs.h.  */
7920
 
#include <$ac_header>
7921
 
_ACEOF
7922
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7923
 
case "(($ac_try" in
7924
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925
 
  *) ac_try_echo=$ac_try;;
7926
 
esac
7927
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928
 
$as_echo "$ac_try_echo") >&5
7929
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7930
 
  ac_status=$?
7931
 
  grep -v '^ *+' conftest.er1 >conftest.err
7932
 
  rm -f conftest.er1
7933
 
  cat conftest.err >&5
7934
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935
 
  (exit $ac_status); } >/dev/null && {
7936
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7937
 
         test ! -s conftest.err
7938
 
       }; then
7939
 
  ac_header_preproc=yes
7940
 
else
7941
 
  $as_echo "$as_me: failed program was:" >&5
7942
 
sed 's/^/| /' conftest.$ac_ext >&5
7943
 
 
7944
 
  ac_header_preproc=no
7945
 
fi
7946
 
 
7947
 
rm -f conftest.err conftest.$ac_ext
7948
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7949
 
$as_echo "$ac_header_preproc" >&6; }
7950
 
 
7951
 
# So?  What about this header?
7952
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7953
 
  yes:no: )
7954
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7955
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7956
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7957
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7958
 
    ac_header_preproc=yes
7959
 
    ;;
7960
 
  no:yes:* )
7961
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7962
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7963
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7964
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7965
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7966
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7967
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7968
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7969
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7970
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7971
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7972
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7973
 
    ( cat <<\_ASBOX
7974
 
## -------------------------------- ##
7975
 
## Report this to bug-hello@gnu.org ##
7976
 
## -------------------------------- ##
7977
 
_ASBOX
7978
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
7979
 
    ;;
7980
 
esac
7981
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7982
 
$as_echo_n "checking for $ac_header... " >&6; }
7983
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7984
 
  $as_echo_n "(cached) " >&6
7985
 
else
7986
 
  eval "$as_ac_Header=\$ac_header_preproc"
7987
 
fi
7988
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
7989
 
                 $as_echo "$as_val"'`
7990
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7991
 
$as_echo "$ac_res" >&6; }
7992
 
 
7993
 
fi
7994
 
as_val=`eval 'as_val=${'$as_ac_Header'}
7995
 
                 $as_echo "$as_val"'`
7996
 
   if test "x$as_val" = x""yes; then
 
7062
                    for ac_header in winsock2.h
 
7063
do :
 
7064
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
 
7065
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7997
7066
  cat >>confdefs.h <<_ACEOF
7998
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7067
#define HAVE_WINSOCK2_H 1
7999
7068
_ACEOF
8000
7069
 
8001
7070
fi
8006
7075
 
8007
7076
  fi
8008
7077
 
8009
 
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
7078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8010
7079
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8011
 
if test "${ac_cv_c_restrict+set}" = set; then
 
7080
if test "${ac_cv_c_restrict+set}" = set; then :
8012
7081
  $as_echo_n "(cached) " >&6
8013
7082
else
8014
7083
  ac_cv_c_restrict=no
8015
7084
   # The order here caters to the fact that C++ does not require restrict.
8016
7085
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
8017
 
     cat >conftest.$ac_ext <<_ACEOF
8018
 
/* confdefs.h.  */
8019
 
_ACEOF
8020
 
cat confdefs.h >>conftest.$ac_ext
8021
 
cat >>conftest.$ac_ext <<_ACEOF
 
7086
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022
7087
/* end confdefs.h.  */
8023
7088
typedef int * int_ptr;
8024
 
        int foo (int_ptr $ac_kw ip) {
8025
 
        return ip[0];
 
7089
        int foo (int_ptr $ac_kw ip) {
 
7090
        return ip[0];
8026
7091
       }
8027
7092
int
8028
7093
main ()
8029
7094
{
8030
7095
int s[1];
8031
 
        int * $ac_kw t = s;
8032
 
        t[0] = 0;
8033
 
        return foo(t)
 
7096
        int * $ac_kw t = s;
 
7097
        t[0] = 0;
 
7098
        return foo(t)
8034
7099
  ;
8035
7100
  return 0;
8036
7101
}
8037
7102
_ACEOF
8038
 
rm -f conftest.$ac_objext
8039
 
if { (ac_try="$ac_compile"
8040
 
case "(($ac_try" in
8041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042
 
  *) ac_try_echo=$ac_try;;
8043
 
esac
8044
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045
 
$as_echo "$ac_try_echo") >&5
8046
 
  (eval "$ac_compile") 2>conftest.er1
8047
 
  ac_status=$?
8048
 
  grep -v '^ *+' conftest.er1 >conftest.err
8049
 
  rm -f conftest.er1
8050
 
  cat conftest.err >&5
8051
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052
 
  (exit $ac_status); } && {
8053
 
         test -z "$ac_c_werror_flag" ||
8054
 
         test ! -s conftest.err
8055
 
       } && test -s conftest.$ac_objext; then
 
7103
if ac_fn_c_try_compile "$LINENO"; then :
8056
7104
  ac_cv_c_restrict=$ac_kw
8057
 
else
8058
 
  $as_echo "$as_me: failed program was:" >&5
8059
 
sed 's/^/| /' conftest.$ac_ext >&5
8060
 
 
8061
 
 
8062
7105
fi
8063
 
 
8064
7106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065
7107
     test "$ac_cv_c_restrict" != no && break
8066
7108
   done
8067
7109
 
8068
7110
fi
8069
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
7111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8070
7112
$as_echo "$ac_cv_c_restrict" >&6; }
8071
7113
 
8072
 
 
8073
7114
 case $ac_cv_c_restrict in
8074
7115
   restrict) ;;
8075
 
   no) cat >>confdefs.h <<\_ACEOF
8076
 
#define restrict /**/
8077
 
_ACEOF
 
7116
   no) $as_echo "#define restrict /**/" >>confdefs.h
8078
7117
 ;;
8079
7118
   *)  cat >>confdefs.h <<_ACEOF
8080
7119
#define restrict $ac_cv_c_restrict
8093
7132
 
8094
7133
 
8095
7134
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
7135
     if test $gl_cv_have_include_next = yes; then
8102
7136
       gl_cv_next_string_h='<'string.h'>'
8103
7137
     else
8104
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
 
7138
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
8105
7139
$as_echo_n "checking absolute name of <string.h>... " >&6; }
8106
 
if test "${gl_cv_next_string_h+set}" = set; then
 
7140
if test "${gl_cv_next_string_h+set}" = set; then :
8107
7141
  $as_echo_n "(cached) " >&6
8108
7142
else
8109
7143
 
8110
 
          if test $ac_cv_header_string_h = yes; then
8111
 
            cat >conftest.$ac_ext <<_ACEOF
8112
 
/* confdefs.h.  */
8113
 
_ACEOF
8114
 
cat confdefs.h >>conftest.$ac_ext
8115
 
cat >>conftest.$ac_ext <<_ACEOF
 
7144
          if test $ac_cv_header_string_h = yes; then
 
7145
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116
7146
/* end confdefs.h.  */
8117
7147
#include <string.h>
8118
7148
 
8119
7149
_ACEOF
8120
 
                                                                    case "$host_os" in
8121
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
8122
 
              *)    gl_absname_cpp="$ac_cpp" ;;
8123
 
            esac
8124
 
                                    gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8125
 
               sed -n '\#/string.h#{
8126
 
                 s#.*"\(.*/string.h\)".*#\1#
8127
 
                 s#^/[^/]#//&#
8128
 
                 p
8129
 
                 q
8130
 
               }'`'"'
8131
 
          else
8132
 
            gl_cv_next_string_h='<'string.h'>'
8133
 
          fi
 
7150
                                                                                                case "$host_os" in
 
7151
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
7152
              *)    gl_absname_cpp="$ac_cpp" ;;
 
7153
            esac
 
7154
                                                gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
7155
               sed -n '\#/string.h#{
 
7156
                 s#.*"\(.*/string.h\)".*#\1#
 
7157
                 s#^/[^/]#//&#
 
7158
                 p
 
7159
                 q
 
7160
               }'`'"'
 
7161
          else
 
7162
            gl_cv_next_string_h='<'string.h'>'
 
7163
          fi
8134
7164
 
8135
7165
fi
8136
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
 
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
8137
7167
$as_echo "$gl_cv_next_string_h" >&6; }
8138
7168
     fi
8139
7169
     NEXT_STRING_H=$gl_cv_next_string_h
8140
7170
 
8141
 
 
8142
 
 
8143
 
 
8144
 
 
8145
 
  GNULIB_CHOWN=0;
8146
 
  GNULIB_CLOSE=0;
8147
 
  GNULIB_DUP2=0;
8148
 
  GNULIB_ENVIRON=0;
8149
 
  GNULIB_EUIDACCESS=0;
8150
 
  GNULIB_FCHDIR=0;
8151
 
  GNULIB_FSYNC=0;
8152
 
  GNULIB_FTRUNCATE=0;
8153
 
  GNULIB_GETCWD=0;
8154
 
  GNULIB_GETDOMAINNAME=0;
8155
 
  GNULIB_GETDTABLESIZE=0;
8156
 
  GNULIB_GETHOSTNAME=0;
8157
 
  GNULIB_GETLOGIN_R=0;
8158
 
  GNULIB_GETPAGESIZE=0;
8159
 
  GNULIB_GETUSERSHELL=0;
8160
 
  GNULIB_LCHOWN=0;
8161
 
  GNULIB_LSEEK=0;
8162
 
  GNULIB_READLINK=0;
8163
 
  GNULIB_SLEEP=0;
8164
 
  GNULIB_UNISTD_H_SIGPIPE=0;
8165
 
  GNULIB_WRITE=0;
8166
 
    HAVE_DUP2=1;
8167
 
  HAVE_EUIDACCESS=1;
8168
 
  HAVE_FSYNC=1;
8169
 
  HAVE_FTRUNCATE=1;
8170
 
  HAVE_GETDOMAINNAME=1;
8171
 
  HAVE_GETDTABLESIZE=1;
8172
 
  HAVE_GETHOSTNAME=1;
8173
 
  HAVE_GETPAGESIZE=1;
8174
 
  HAVE_GETUSERSHELL=1;
8175
 
  HAVE_READLINK=1;
8176
 
  HAVE_SLEEP=1;
8177
 
  HAVE_DECL_ENVIRON=1;
8178
 
  HAVE_DECL_GETLOGIN_R=1;
8179
 
  HAVE_OS_H=0;
8180
 
  HAVE_SYS_PARAM_H=0;
8181
 
  REPLACE_CHOWN=0;
8182
 
  REPLACE_CLOSE=0;
8183
 
  REPLACE_FCHDIR=0;
8184
 
  REPLACE_GETCWD=0;
8185
 
  REPLACE_GETPAGESIZE=0;
8186
 
  REPLACE_LCHOWN=0;
8187
 
  REPLACE_LSEEK=0;
8188
 
  REPLACE_WRITE=0;
8189
 
  UNISTD_H_HAVE_WINSOCK2_H=0;
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
  GNULIB_WCWIDTH=0;
8195
 
    HAVE_DECL_WCWIDTH=1;
8196
 
  REPLACE_WCWIDTH=0;
8197
 
  WCHAR_H='';
8198
 
 
8199
 
 
8200
 
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
 
7171
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
7172
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
7173
       gl_next_as_first_directive='<'string.h'>'
 
7174
     else
 
7175
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
7176
       gl_next_as_first_directive=$gl_cv_next_string_h
 
7177
     fi
 
7178
     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
    for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup     strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
 
7185
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
7186
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
7187
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
7188
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
 
7189
  $as_echo_n "(cached) " >&6
 
7190
else
 
7191
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7192
/* end confdefs.h.  */
 
7193
#include <string.h>
 
7194
 
 
7195
int
 
7196
main ()
 
7197
{
 
7198
#undef $gl_func
 
7199
  (void) $gl_func;
 
7200
  ;
 
7201
  return 0;
 
7202
}
 
7203
_ACEOF
 
7204
if ac_fn_c_try_compile "$LINENO"; then :
 
7205
  eval "$as_gl_Symbol=yes"
 
7206
else
 
7207
  eval "$as_gl_Symbol=no"
 
7208
fi
 
7209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7210
fi
 
7211
eval ac_res=\$$as_gl_Symbol
 
7212
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
7213
$as_echo "$ac_res" >&6; }
 
7214
     eval as_val=\$$as_gl_Symbol
 
7215
   if test "x$as_val" = x""yes; then :
 
7216
  cat >>confdefs.h <<_ACEOF
 
7217
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
7218
_ACEOF
 
7219
 
 
7220
                     eval ac_cv_have_decl_$gl_func=yes
 
7221
fi
 
7222
      done
 
7223
 
 
7224
 
 
7225
 
 
7226
 
 
7227
 
 
7228
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
 
7229
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
 
7230
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
 
7231
  $as_echo_n "(cached) " >&6
 
7232
else
 
7233
  gl_cv_header_wchar_h_correct_inline=yes
 
7234
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7235
/* end confdefs.h.  */
 
7236
 
 
7237
       #define wcstod renamed_wcstod
 
7238
#include <wchar.h>
 
7239
extern int zero (void);
 
7240
int main () { return zero(); }
 
7241
 
 
7242
_ACEOF
 
7243
     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7244
  (eval $ac_compile) 2>&5
 
7245
  ac_status=$?
 
7246
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7247
  test $ac_status = 0; }; then
 
7248
       mv conftest.$ac_objext conftest1.$ac_objext
 
7249
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7250
/* end confdefs.h.  */
 
7251
 
 
7252
         #define wcstod renamed_wcstod
 
7253
#include <wchar.h>
 
7254
int zero (void) { return 0; }
 
7255
 
 
7256
_ACEOF
 
7257
       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7258
  (eval $ac_compile) 2>&5
 
7259
  ac_status=$?
 
7260
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7261
  test $ac_status = 0; }; then
 
7262
         mv conftest.$ac_objext conftest2.$ac_objext
 
7263
         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
 
7264
           :
 
7265
         else
 
7266
           gl_cv_header_wchar_h_correct_inline=no
 
7267
         fi
 
7268
       fi
 
7269
     fi
 
7270
     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
 
7271
 
 
7272
fi
 
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
 
7274
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
 
7275
  if test $gl_cv_header_wchar_h_correct_inline = no; then
 
7276
    as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
 
7277
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
 
7278
C99 mode. You have four options:
 
7279
  - Add the flag -fgnu89-inline to CC and reconfigure, or
 
7280
  - Fix your include files, using parts of
 
7281
    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
 
7282
  - Use a gcc version older than 4.3, or
 
7283
  - Don't use the flags -std=c99 or -std=gnu99.
 
7284
Configuration aborted." "$LINENO" 5
 
7285
  fi
 
7286
 
 
7287
 
 
7288
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8201
7289
$as_echo_n "checking for wint_t... " >&6; }
8202
 
if test "${gt_cv_c_wint_t+set}" = set; then
 
7290
if test "${gt_cv_c_wint_t+set}" = set; then :
8203
7291
  $as_echo_n "(cached) " >&6
8204
7292
else
8205
 
  cat >conftest.$ac_ext <<_ACEOF
8206
 
/* confdefs.h.  */
8207
 
_ACEOF
8208
 
cat confdefs.h >>conftest.$ac_ext
8209
 
cat >>conftest.$ac_ext <<_ACEOF
 
7293
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210
7294
/* end confdefs.h.  */
8211
7295
 
8212
7296
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8226
7310
  return 0;
8227
7311
}
8228
7312
_ACEOF
8229
 
rm -f conftest.$ac_objext
8230
 
if { (ac_try="$ac_compile"
8231
 
case "(($ac_try" in
8232
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233
 
  *) ac_try_echo=$ac_try;;
8234
 
esac
8235
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236
 
$as_echo "$ac_try_echo") >&5
8237
 
  (eval "$ac_compile") 2>conftest.er1
8238
 
  ac_status=$?
8239
 
  grep -v '^ *+' conftest.er1 >conftest.err
8240
 
  rm -f conftest.er1
8241
 
  cat conftest.err >&5
8242
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243
 
  (exit $ac_status); } && {
8244
 
         test -z "$ac_c_werror_flag" ||
8245
 
         test ! -s conftest.err
8246
 
       } && test -s conftest.$ac_objext; then
 
7313
if ac_fn_c_try_compile "$LINENO"; then :
8247
7314
  gt_cv_c_wint_t=yes
8248
7315
else
8249
 
  $as_echo "$as_me: failed program was:" >&5
8250
 
sed 's/^/| /' conftest.$ac_ext >&5
8251
 
 
8252
 
        gt_cv_c_wint_t=no
 
7316
  gt_cv_c_wint_t=no
8253
7317
fi
8254
 
 
8255
7318
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256
7319
fi
8257
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8258
7321
$as_echo "$gt_cv_c_wint_t" >&6; }
8259
7322
  if test $gt_cv_c_wint_t = yes; then
8260
7323
 
8261
 
cat >>confdefs.h <<\_ACEOF
8262
 
#define HAVE_WINT_T 1
8263
 
_ACEOF
 
7324
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8264
7325
 
8265
7326
  fi
8266
7327
 
8269
7330
 
8270
7331
 
8271
7332
 
8272
 
 
8273
 
 
8274
7333
   if false; then
8275
7334
  GL_COND_LIBTOOL_TRUE=
8276
7335
  GL_COND_LIBTOOL_FALSE='#'
8290
7349
 
8291
7350
 
8292
7351
 
 
7352
 
8293
7353
  gl_source_base='gnulib/lib'
8294
7354
 
8295
7355
 
8307
7367
 
8308
7368
 
8309
7369
 
8310
 
cat >>confdefs.h <<\_ACEOF
8311
 
#define GNULIB_CLOSE_STREAM 1
8312
 
_ACEOF
 
7370
$as_echo "#define GNULIB_CLOSE_STREAM 1" >>confdefs.h
8313
7371
 
8314
7372
 
8315
7373
 
8340
7398
 
8341
7399
 
8342
7400
 
8343
 
 
8344
 
 
8345
 
{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
 
7401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
8346
7402
$as_echo_n "checking for error_at_line... " >&6; }
8347
 
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
7403
if test "${ac_cv_lib_error_at_line+set}" = set; then :
8348
7404
  $as_echo_n "(cached) " >&6
8349
7405
else
8350
 
  cat >conftest.$ac_ext <<_ACEOF
8351
 
/* confdefs.h.  */
8352
 
_ACEOF
8353
 
cat confdefs.h >>conftest.$ac_ext
8354
 
cat >>conftest.$ac_ext <<_ACEOF
 
7406
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355
7407
/* end confdefs.h.  */
8356
7408
#include <error.h>
8357
7409
int
8362
7414
  return 0;
8363
7415
}
8364
7416
_ACEOF
8365
 
rm -f conftest.$ac_objext conftest$ac_exeext
8366
 
if { (ac_try="$ac_link"
8367
 
case "(($ac_try" in
8368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369
 
  *) ac_try_echo=$ac_try;;
8370
 
esac
8371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372
 
$as_echo "$ac_try_echo") >&5
8373
 
  (eval "$ac_link") 2>conftest.er1
8374
 
  ac_status=$?
8375
 
  grep -v '^ *+' conftest.er1 >conftest.err
8376
 
  rm -f conftest.er1
8377
 
  cat conftest.err >&5
8378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379
 
  (exit $ac_status); } && {
8380
 
         test -z "$ac_c_werror_flag" ||
8381
 
         test ! -s conftest.err
8382
 
       } && test -s conftest$ac_exeext && {
8383
 
         test "$cross_compiling" = yes ||
8384
 
         $as_test_x conftest$ac_exeext
8385
 
       }; then
 
7417
if ac_fn_c_try_link "$LINENO"; then :
8386
7418
  ac_cv_lib_error_at_line=yes
8387
7419
else
8388
 
  $as_echo "$as_me: failed program was:" >&5
8389
 
sed 's/^/| /' conftest.$ac_ext >&5
8390
 
 
8391
 
        ac_cv_lib_error_at_line=no
8392
 
fi
8393
 
 
8394
 
rm -rf conftest.dSYM
8395
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396
 
      conftest$ac_exeext conftest.$ac_ext
8397
 
fi
8398
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
7420
  ac_cv_lib_error_at_line=no
 
7421
fi
 
7422
rm -f core conftest.err conftest.$ac_objext \
 
7423
    conftest$ac_exeext conftest.$ac_ext
 
7424
fi
 
7425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
8399
7426
$as_echo "$ac_cv_lib_error_at_line" >&6; }
8400
7427
if test $ac_cv_lib_error_at_line = no; then
8401
7428
 
8412
7439
 
8413
7440
 
8414
7441
 
 
7442
 
8415
7443
  :
8416
7444
 
8417
7445
 
8440
7468
 
8441
7469
 
8442
7470
 
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
 
8448
 
 
8449
 
 
8450
 
 
8451
 
 
8452
 
 
8453
7471
  fp_headers='
8454
7472
#     include <stdio.h>
8455
7473
#     if HAVE_STDIO_EXT_H
8456
7474
#      include <stdio_ext.h>
8457
7475
#     endif
8458
7476
'
8459
 
  { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
8460
 
$as_echo_n "checking whether __fpending is declared... " >&6; }
8461
 
if test "${ac_cv_have_decl___fpending+set}" = set; then
8462
 
  $as_echo_n "(cached) " >&6
8463
 
else
8464
 
  cat >conftest.$ac_ext <<_ACEOF
8465
 
/* confdefs.h.  */
8466
 
_ACEOF
8467
 
cat confdefs.h >>conftest.$ac_ext
8468
 
cat >>conftest.$ac_ext <<_ACEOF
8469
 
/* end confdefs.h.  */
8470
 
$fp_headers
8471
 
 
8472
 
int
8473
 
main ()
8474
 
{
8475
 
#ifndef __fpending
8476
 
  (void) __fpending;
8477
 
#endif
8478
 
 
8479
 
  ;
8480
 
  return 0;
8481
 
}
8482
 
_ACEOF
8483
 
rm -f conftest.$ac_objext
8484
 
if { (ac_try="$ac_compile"
8485
 
case "(($ac_try" in
8486
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487
 
  *) ac_try_echo=$ac_try;;
8488
 
esac
8489
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490
 
$as_echo "$ac_try_echo") >&5
8491
 
  (eval "$ac_compile") 2>conftest.er1
8492
 
  ac_status=$?
8493
 
  grep -v '^ *+' conftest.er1 >conftest.err
8494
 
  rm -f conftest.er1
8495
 
  cat conftest.err >&5
8496
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497
 
  (exit $ac_status); } && {
8498
 
         test -z "$ac_c_werror_flag" ||
8499
 
         test ! -s conftest.err
8500
 
       } && test -s conftest.$ac_objext; then
8501
 
  ac_cv_have_decl___fpending=yes
8502
 
else
8503
 
  $as_echo "$as_me: failed program was:" >&5
8504
 
sed 's/^/| /' conftest.$ac_ext >&5
8505
 
 
8506
 
        ac_cv_have_decl___fpending=no
8507
 
fi
8508
 
 
8509
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510
 
fi
8511
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
8512
 
$as_echo "$ac_cv_have_decl___fpending" >&6; }
8513
 
if test "x$ac_cv_have_decl___fpending" = x""yes; then
 
7477
  ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
 
7478
"
 
7479
if test "x$ac_cv_have_decl___fpending" = x""yes; then :
 
7480
  ac_have_decl=1
 
7481
else
 
7482
  ac_have_decl=0
 
7483
fi
8514
7484
 
8515
7485
cat >>confdefs.h <<_ACEOF
8516
 
#define HAVE_DECL___FPENDING 1
8517
 
_ACEOF
8518
 
 
8519
 
 
8520
 
else
8521
 
  cat >>confdefs.h <<_ACEOF
8522
 
#define HAVE_DECL___FPENDING 0
8523
 
_ACEOF
8524
 
 
8525
 
 
8526
 
fi
8527
 
 
 
7486
#define HAVE_DECL___FPENDING $ac_have_decl
 
7487
_ACEOF
8528
7488
 
8529
7489
  if test $ac_cv_func___fpending = no; then
8530
 
    { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
 
7490
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
8531
7491
$as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
8532
 
if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
 
7492
if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
8533
7493
  $as_echo_n "(cached) " >&6
8534
7494
else
8535
7495
 
8536
 
        for ac_expr in                                                    \
8537
 
                                                                          \
8538
 
            '# glibc2'                                                    \
8539
 
            'fp->_IO_write_ptr - fp->_IO_write_base'                      \
8540
 
                                                                          \
8541
 
            '# traditional Unix'                                          \
8542
 
            'fp->_ptr - fp->_base'                                        \
8543
 
                                                                          \
8544
 
            '# BSD'                                                       \
8545
 
            'fp->_p - fp->_bf._base'                                      \
8546
 
                                                                          \
8547
 
            '# SCO, Unixware'                                             \
8548
 
            '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
8549
 
                                                                          \
8550
 
            '# QNX'                                                       \
8551
 
            '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
8552
 
                                                                          \
8553
 
            '# old glibc?'                                                \
8554
 
            'fp->__bufp - fp->__buffer'                                   \
8555
 
                                                                          \
8556
 
            '# old glibc iostream?'                                       \
8557
 
            'fp->_pptr - fp->_pbase'                                      \
8558
 
                                                                          \
8559
 
            '# emx+gcc'                                                   \
8560
 
            'fp->_ptr - fp->_buffer'                                      \
8561
 
                                                                          \
8562
 
            '# VMS'                                                       \
8563
 
            '(*fp)->_ptr - (*fp)->_base'                                  \
8564
 
                                                                          \
8565
 
            '# e.g., DGUX R4.11; the info is not available'               \
8566
 
            1                                                             \
8567
 
            ; do
8568
 
 
8569
 
          # Skip each embedded comment.
8570
 
          case "$ac_expr" in '#'*) continue;; esac
8571
 
 
8572
 
          cat >conftest.$ac_ext <<_ACEOF
8573
 
/* confdefs.h.  */
8574
 
_ACEOF
8575
 
cat confdefs.h >>conftest.$ac_ext
8576
 
cat >>conftest.$ac_ext <<_ACEOF
 
7496
        for ac_expr in                                                    \
 
7497
                                                                          \
 
7498
            '# glibc2'                                                    \
 
7499
            'fp->_IO_write_ptr - fp->_IO_write_base'                      \
 
7500
                                                                          \
 
7501
            '# traditional Unix'                                          \
 
7502
            'fp->_ptr - fp->_base'                                        \
 
7503
                                                                          \
 
7504
            '# BSD'                                                       \
 
7505
            'fp->_p - fp->_bf._base'                                      \
 
7506
                                                                          \
 
7507
            '# SCO, Unixware'                                             \
 
7508
            '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
 
7509
                                                                          \
 
7510
            '# QNX'                                                       \
 
7511
            '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
 
7512
                                                                          \
 
7513
            '# old glibc?'                                                \
 
7514
            'fp->__bufp - fp->__buffer'                                   \
 
7515
                                                                          \
 
7516
            '# old glibc iostream?'                                       \
 
7517
            'fp->_pptr - fp->_pbase'                                      \
 
7518
                                                                          \
 
7519
            '# emx+gcc'                                                   \
 
7520
            'fp->_ptr - fp->_buffer'                                      \
 
7521
                                                                          \
 
7522
            '# VMS'                                                       \
 
7523
            '(*fp)->_ptr - (*fp)->_base'                                  \
 
7524
                                                                          \
 
7525
            '# e.g., DGUX R4.11; the info is not available'               \
 
7526
            1                                                             \
 
7527
            ; do
 
7528
 
 
7529
          # Skip each embedded comment.
 
7530
          case "$ac_expr" in '#'*) continue;; esac
 
7531
 
 
7532
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577
7533
/* end confdefs.h.  */
8578
7534
#include <stdio.h>
8579
 
 
8580
7535
int
8581
7536
main ()
8582
7537
{
8585
7540
  return 0;
8586
7541
}
8587
7542
_ACEOF
8588
 
rm -f conftest.$ac_objext
8589
 
if { (ac_try="$ac_compile"
8590
 
case "(($ac_try" in
8591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592
 
  *) ac_try_echo=$ac_try;;
8593
 
esac
8594
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8595
 
$as_echo "$ac_try_echo") >&5
8596
 
  (eval "$ac_compile") 2>conftest.er1
8597
 
  ac_status=$?
8598
 
  grep -v '^ *+' conftest.er1 >conftest.err
8599
 
  rm -f conftest.er1
8600
 
  cat conftest.err >&5
8601
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602
 
  (exit $ac_status); } && {
8603
 
         test -z "$ac_c_werror_flag" ||
8604
 
         test ! -s conftest.err
8605
 
       } && test -s conftest.$ac_objext; then
 
7543
if ac_fn_c_try_compile "$LINENO"; then :
8606
7544
  fp_done=yes
8607
7545
 
8608
 
else
8609
 
  $as_echo "$as_me: failed program was:" >&5
8610
 
sed 's/^/| /' conftest.$ac_ext >&5
8611
 
 
8612
 
 
8613
7546
fi
8614
 
 
8615
7547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616
 
          test "$fp_done" = yes && break
8617
 
        done
 
7548
          test "$fp_done" = yes && break
 
7549
        done
8618
7550
 
8619
 
        ac_cv_sys_pending_output_n_bytes=$ac_expr
 
7551
        ac_cv_sys_pending_output_n_bytes=$ac_expr
8620
7552
 
8621
7553
 
8622
7554
fi
8623
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
 
7555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
8624
7556
$as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
8625
7557
 
8626
7558
cat >>confdefs.h <<_ACEOF
8641
7573
 
8642
7574
 
8643
7575
 
8644
 
  if test -n "$GETOPT_H"; then
8645
 
 
 
7576
 
 
7577
 
 
7578
 
 
7579
 
 
7580
 
 
7581
$as_echo "#define GNULIB_GETOPT_GNU 1" >>confdefs.h
 
7582
 
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
 
 
7588
 
 
7589
  if test -n "$gl_replace_getopt"; then :
 
7590
 
 
7591
 
 
7592
 
 
7593
  GETOPT_H=getopt.h
 
7594
 
 
7595
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
 
7596
 
 
7597
 
 
7598
 
 
7599
    GNULIB_UNISTD_H_GETOPT=1
8646
7600
 
8647
7601
 
8648
7602
 
8664
7618
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8665
7619
 
8666
7620
 
8667
 
  GETOPT_H=getopt.h
8668
 
 
8669
 
cat >>confdefs.h <<\_ACEOF
8670
 
#define __GETOPT_PREFIX rpl_
8671
 
_ACEOF
8672
 
 
8673
 
 
8674
 
 
8675
 
 
8676
 
 
8677
 
 
8678
7621
 
8679
7622
 
8680
7623
 
8687
7630
 
8688
7631
 
8689
7632
 
8690
 
  { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
 
7633
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
8691
7634
$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
8692
 
if test "${gl_cv_c_inline_effective+set}" = set; then
 
7635
if test "${gl_cv_c_inline_effective+set}" = set; then :
8693
7636
  $as_echo_n "(cached) " >&6
8694
7637
else
8695
7638
  if test $ac_cv_c_inline = no; then
8696
7639
       gl_cv_c_inline_effective=no
8697
7640
     else
8698
 
                                          cat >conftest.$ac_ext <<_ACEOF
8699
 
/* confdefs.h.  */
8700
 
_ACEOF
8701
 
cat confdefs.h >>conftest.$ac_ext
8702
 
cat >>conftest.$ac_ext <<_ACEOF
 
7641
                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703
7642
/* end confdefs.h.  */
8704
7643
 
8705
7644
int
8712
7651
  return 0;
8713
7652
}
8714
7653
_ACEOF
8715
 
rm -f conftest.$ac_objext
8716
 
if { (ac_try="$ac_compile"
8717
 
case "(($ac_try" in
8718
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719
 
  *) ac_try_echo=$ac_try;;
8720
 
esac
8721
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722
 
$as_echo "$ac_try_echo") >&5
8723
 
  (eval "$ac_compile") 2>conftest.er1
8724
 
  ac_status=$?
8725
 
  grep -v '^ *+' conftest.er1 >conftest.err
8726
 
  rm -f conftest.er1
8727
 
  cat conftest.err >&5
8728
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729
 
  (exit $ac_status); } && {
8730
 
         test -z "$ac_c_werror_flag" ||
8731
 
         test ! -s conftest.err
8732
 
       } && test -s conftest.$ac_objext; then
 
7654
if ac_fn_c_try_compile "$LINENO"; then :
8733
7655
  gl_cv_c_inline_effective=yes
8734
7656
else
8735
 
  $as_echo "$as_me: failed program was:" >&5
8736
 
sed 's/^/| /' conftest.$ac_ext >&5
8737
 
 
8738
 
        gl_cv_c_inline_effective=no
 
7657
  gl_cv_c_inline_effective=no
8739
7658
fi
8740
 
 
8741
7659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742
7660
     fi
8743
7661
 
8744
7662
fi
8745
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
 
7663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
8746
7664
$as_echo "$gl_cv_c_inline_effective" >&6; }
8747
7665
  if test $gl_cv_c_inline_effective = yes; then
8748
7666
 
8749
 
cat >>confdefs.h <<\_ACEOF
8750
 
#define HAVE_INLINE 1
8751
 
_ACEOF
8752
 
 
8753
 
  fi
 
7667
$as_echo "#define HAVE_INLINE 1" >>confdefs.h
 
7668
 
 
7669
  fi
 
7670
 
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
 
 
7679
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
 
7680
 
 
7681
 
 
7682
 
 
7683
 
 
7684
 
 
7685
 
 
7686
 
 
7687
 
 
7688
 
 
7689
 
 
7690
 
 
7691
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
7692
 
 
7693
 
 
7694
 
 
7695
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
7696
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
7697
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
7698
  $as_echo_n "(cached) " >&6
 
7699
else
 
7700
 
 
7701
                  case "$host_os" in
 
7702
              # Guess no on AIX and OSF/1.
 
7703
        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
7704
              # Guess yes otherwise.
 
7705
        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
7706
      esac
 
7707
      if test $LOCALE_JA != none; then
 
7708
        if test "$cross_compiling" = yes; then :
 
7709
  :
 
7710
else
 
7711
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7712
/* end confdefs.h.  */
 
7713
 
 
7714
#include <locale.h>
 
7715
#include <string.h>
 
7716
#include <wchar.h>
 
7717
int main ()
 
7718
{
 
7719
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
7720
    {
 
7721
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
7722
      mbstate_t state;
 
7723
      wchar_t wc;
 
7724
 
 
7725
      memset (&state, '\0', sizeof (mbstate_t));
 
7726
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
7727
        if (mbsinit (&state))
 
7728
          return 1;
 
7729
    }
 
7730
  return 0;
 
7731
}
 
7732
_ACEOF
 
7733
if ac_fn_c_try_run "$LINENO"; then :
 
7734
  gl_cv_func_mbrtowc_incomplete_state=yes
 
7735
else
 
7736
  gl_cv_func_mbrtowc_incomplete_state=no
 
7737
fi
 
7738
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7739
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7740
fi
 
7741
 
 
7742
      fi
 
7743
 
 
7744
fi
 
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
7746
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
7752
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
7753
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
7754
  $as_echo_n "(cached) " >&6
 
7755
else
 
7756
 
 
7757
                  case "$host_os" in
 
7758
                    # Guess no on Solaris 8.
 
7759
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
7760
                    # Guess yes otherwise.
 
7761
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
7762
      esac
 
7763
      if test $LOCALE_ZH_CN != none; then
 
7764
        if test "$cross_compiling" = yes; then :
 
7765
  :
 
7766
else
 
7767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7768
/* end confdefs.h.  */
 
7769
 
 
7770
#include <locale.h>
 
7771
#include <stdlib.h>
 
7772
#include <string.h>
 
7773
#include <wchar.h>
 
7774
int main ()
 
7775
{
 
7776
  /* This fails on Solaris 8:
 
7777
     mbrtowc returns 2, and sets wc to 0x00F0.
 
7778
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
7779
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
7780
    {
 
7781
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
7782
      mbstate_t state;
 
7783
      wchar_t wc;
 
7784
 
 
7785
      memset (&state, '\0', sizeof (mbstate_t));
 
7786
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
7787
          && mbtowc (&wc, input + 3, 6) == 4)
 
7788
        return 1;
 
7789
    }
 
7790
  return 0;
 
7791
}
 
7792
_ACEOF
 
7793
if ac_fn_c_try_run "$LINENO"; then :
 
7794
  gl_cv_func_mbrtowc_sanitycheck=yes
 
7795
else
 
7796
  gl_cv_func_mbrtowc_sanitycheck=no
 
7797
fi
 
7798
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7799
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7800
fi
 
7801
 
 
7802
      fi
 
7803
 
 
7804
fi
 
7805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
7806
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
7807
 
 
7808
    REPLACE_MBSTATE_T=0
 
7809
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
7810
      *yes) ;;
 
7811
      *) REPLACE_MBSTATE_T=1 ;;
 
7812
    esac
 
7813
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
7814
      *yes) ;;
 
7815
      *) REPLACE_MBSTATE_T=1 ;;
 
7816
    esac
 
7817
  else
 
7818
    REPLACE_MBSTATE_T=1
 
7819
  fi
 
7820
  if test $REPLACE_MBSTATE_T = 1; then
 
7821
 
 
7822
    :
 
7823
 
 
7824
  fi
 
7825
 
 
7826
  if test $REPLACE_MBSTATE_T = 1; then
 
7827
    REPLACE_MBRTOWC=1
 
7828
  fi
 
7829
 
 
7830
  if test $ac_cv_func_mbrtowc = no; then
 
7831
    HAVE_MBRTOWC=0
 
7832
  fi
 
7833
  if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
 
7834
 
 
7835
 
 
7836
 
 
7837
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
 
7838
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
 
7839
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
 
7840
  $as_echo_n "(cached) " >&6
 
7841
else
 
7842
 
 
7843
                  case "$host_os" in
 
7844
              # Guess no on OSF/1.
 
7845
        osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
 
7846
              # Guess yes otherwise.
 
7847
        *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
 
7848
      esac
 
7849
      if test $LOCALE_FR_UTF8 != none; then
 
7850
        if test "$cross_compiling" = yes; then :
 
7851
  :
 
7852
else
 
7853
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7854
/* end confdefs.h.  */
 
7855
 
 
7856
#include <locale.h>
 
7857
#include <string.h>
 
7858
#include <wchar.h>
 
7859
int main ()
 
7860
{
 
7861
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
7862
    {
 
7863
      mbstate_t state;
 
7864
      wchar_t wc;
 
7865
      int ret;
 
7866
 
 
7867
      memset (&state, '\0', sizeof (mbstate_t));
 
7868
      wc = (wchar_t) 0xBADFACE;
 
7869
      mbrtowc (&wc, NULL, 5, &state);
 
7870
      /* Check that wc was not modified.  */
 
7871
      if (wc != (wchar_t) 0xBADFACE)
 
7872
        return 1;
 
7873
    }
 
7874
  return 0;
 
7875
}
 
7876
_ACEOF
 
7877
if ac_fn_c_try_run "$LINENO"; then :
 
7878
  gl_cv_func_mbrtowc_null_arg=yes
 
7879
else
 
7880
  gl_cv_func_mbrtowc_null_arg=no
 
7881
fi
 
7882
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7883
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7884
fi
 
7885
 
 
7886
      fi
 
7887
 
 
7888
fi
 
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
 
7890
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
 
7891
 
 
7892
 
 
7893
 
 
7894
 
 
7895
 
 
7896
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
 
7897
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
 
7898
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
 
7899
  $as_echo_n "(cached) " >&6
 
7900
else
 
7901
 
 
7902
                  case "$host_os" in
 
7903
                          # Guess no on HP-UX and Solaris.
 
7904
        hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
 
7905
                          # Guess yes otherwise.
 
7906
        *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
 
7907
      esac
 
7908
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
 
7909
        if test "$cross_compiling" = yes; then :
 
7910
  :
 
7911
else
 
7912
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7913
/* end confdefs.h.  */
 
7914
 
 
7915
#include <locale.h>
 
7916
#include <string.h>
 
7917
#include <wchar.h>
 
7918
int main ()
 
7919
{
 
7920
  /* This fails on Solaris.  */
 
7921
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
7922
    {
 
7923
      char input[] = "B\303\274\303\237er"; /* "Büßer" */
 
7924
      mbstate_t state;
 
7925
      wchar_t wc;
 
7926
 
 
7927
      memset (&state, '\0', sizeof (mbstate_t));
 
7928
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
7929
        {
 
7930
          input[1] = '\0';
 
7931
          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
 
7932
            return 1;
 
7933
        }
 
7934
    }
 
7935
  /* This fails on HP-UX 11.11.  */
 
7936
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
7937
    {
 
7938
      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
7939
      mbstate_t state;
 
7940
      wchar_t wc;
 
7941
 
 
7942
      memset (&state, '\0', sizeof (mbstate_t));
 
7943
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
7944
        {
 
7945
          input[1] = '\0';
 
7946
          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
 
7947
            return 1;
 
7948
        }
 
7949
    }
 
7950
  return 0;
 
7951
}
 
7952
_ACEOF
 
7953
if ac_fn_c_try_run "$LINENO"; then :
 
7954
  gl_cv_func_mbrtowc_retval=yes
 
7955
else
 
7956
  gl_cv_func_mbrtowc_retval=no
 
7957
fi
 
7958
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7959
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7960
fi
 
7961
 
 
7962
      fi
 
7963
 
 
7964
fi
 
7965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
 
7966
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
 
7967
 
 
7968
 
 
7969
 
 
7970
 
 
7971
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
 
7972
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
 
7973
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
 
7974
  $as_echo_n "(cached) " >&6
 
7975
else
 
7976
 
 
7977
                  case "$host_os" in
 
7978
                       # Guess no on Solaris 8 and 9.
 
7979
        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
 
7980
                       # Guess yes otherwise.
 
7981
        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
 
7982
      esac
 
7983
      if test $LOCALE_ZH_CN != none; then
 
7984
        if test "$cross_compiling" = yes; then :
 
7985
  :
 
7986
else
 
7987
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7988
/* end confdefs.h.  */
 
7989
 
 
7990
#include <locale.h>
 
7991
#include <string.h>
 
7992
#include <wchar.h>
 
7993
int main ()
 
7994
{
 
7995
  /* This fails on Solaris 8 and 9.  */
 
7996
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
7997
    {
 
7998
      mbstate_t state;
 
7999
      wchar_t wc;
 
8000
 
 
8001
      memset (&state, '\0', sizeof (mbstate_t));
 
8002
      if (mbrtowc (&wc, "", 1, &state) != 0)
 
8003
        return 1;
 
8004
    }
 
8005
  return 0;
 
8006
}
 
8007
_ACEOF
 
8008
if ac_fn_c_try_run "$LINENO"; then :
 
8009
  gl_cv_func_mbrtowc_nul_retval=yes
 
8010
else
 
8011
  gl_cv_func_mbrtowc_nul_retval=no
 
8012
fi
 
8013
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8014
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8015
fi
 
8016
 
 
8017
      fi
 
8018
 
 
8019
fi
 
8020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
 
8021
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
 
8022
 
 
8023
    case "$gl_cv_func_mbrtowc_null_arg" in
 
8024
      *yes) ;;
 
8025
      *)
 
8026
$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
 
8027
 
 
8028
         REPLACE_MBRTOWC=1
 
8029
         ;;
 
8030
    esac
 
8031
    case "$gl_cv_func_mbrtowc_retval" in
 
8032
      *yes) ;;
 
8033
      *)
 
8034
$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
 
8035
 
 
8036
         REPLACE_MBRTOWC=1
 
8037
         ;;
 
8038
    esac
 
8039
    case "$gl_cv_func_mbrtowc_nul_retval" in
 
8040
      *yes) ;;
 
8041
      *)
 
8042
$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
 
8043
 
 
8044
         REPLACE_MBRTOWC=1
 
8045
         ;;
 
8046
    esac
 
8047
  fi
 
8048
  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
 
8049
 
 
8050
    :
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
 
8061
 
 
8062
 
 
8063
  :
 
8064
 
 
8065
  fi
 
8066
 
 
8067
 
 
8068
 
 
8069
  GNULIB_MBRTOWC=1
 
8070
 
 
8071
 
 
8072
 
 
8073
 
 
8074
 
 
8075
 
 
8076
 
 
8077
 
 
8078
 
 
8079
 
 
8080
 
 
8081
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
8082
 
 
8083
 
 
8084
 
 
8085
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
8086
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
8087
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
8088
  $as_echo_n "(cached) " >&6
 
8089
else
 
8090
 
 
8091
                  case "$host_os" in
 
8092
              # Guess no on AIX and OSF/1.
 
8093
        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
8094
              # Guess yes otherwise.
 
8095
        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
8096
      esac
 
8097
      if test $LOCALE_JA != none; then
 
8098
        if test "$cross_compiling" = yes; then :
 
8099
  :
 
8100
else
 
8101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8102
/* end confdefs.h.  */
 
8103
 
 
8104
#include <locale.h>
 
8105
#include <string.h>
 
8106
#include <wchar.h>
 
8107
int main ()
 
8108
{
 
8109
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
8110
    {
 
8111
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
8112
      mbstate_t state;
 
8113
      wchar_t wc;
 
8114
 
 
8115
      memset (&state, '\0', sizeof (mbstate_t));
 
8116
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
8117
        if (mbsinit (&state))
 
8118
          return 1;
 
8119
    }
 
8120
  return 0;
 
8121
}
 
8122
_ACEOF
 
8123
if ac_fn_c_try_run "$LINENO"; then :
 
8124
  gl_cv_func_mbrtowc_incomplete_state=yes
 
8125
else
 
8126
  gl_cv_func_mbrtowc_incomplete_state=no
 
8127
fi
 
8128
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8129
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8130
fi
 
8131
 
 
8132
      fi
 
8133
 
 
8134
fi
 
8135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
8136
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
8137
 
 
8138
 
 
8139
 
 
8140
 
 
8141
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
8142
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
8143
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
8144
  $as_echo_n "(cached) " >&6
 
8145
else
 
8146
 
 
8147
                  case "$host_os" in
 
8148
                    # Guess no on Solaris 8.
 
8149
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
8150
                    # Guess yes otherwise.
 
8151
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
8152
      esac
 
8153
      if test $LOCALE_ZH_CN != none; then
 
8154
        if test "$cross_compiling" = yes; then :
 
8155
  :
 
8156
else
 
8157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8158
/* end confdefs.h.  */
 
8159
 
 
8160
#include <locale.h>
 
8161
#include <stdlib.h>
 
8162
#include <string.h>
 
8163
#include <wchar.h>
 
8164
int main ()
 
8165
{
 
8166
  /* This fails on Solaris 8:
 
8167
     mbrtowc returns 2, and sets wc to 0x00F0.
 
8168
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
8169
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
8170
    {
 
8171
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
8172
      mbstate_t state;
 
8173
      wchar_t wc;
 
8174
 
 
8175
      memset (&state, '\0', sizeof (mbstate_t));
 
8176
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
8177
          && mbtowc (&wc, input + 3, 6) == 4)
 
8178
        return 1;
 
8179
    }
 
8180
  return 0;
 
8181
}
 
8182
_ACEOF
 
8183
if ac_fn_c_try_run "$LINENO"; then :
 
8184
  gl_cv_func_mbrtowc_sanitycheck=yes
 
8185
else
 
8186
  gl_cv_func_mbrtowc_sanitycheck=no
 
8187
fi
 
8188
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8189
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8190
fi
 
8191
 
 
8192
      fi
 
8193
 
 
8194
fi
 
8195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
8196
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
8197
 
 
8198
    REPLACE_MBSTATE_T=0
 
8199
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
8200
      *yes) ;;
 
8201
      *) REPLACE_MBSTATE_T=1 ;;
 
8202
    esac
 
8203
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
8204
      *yes) ;;
 
8205
      *) REPLACE_MBSTATE_T=1 ;;
 
8206
    esac
 
8207
  else
 
8208
    REPLACE_MBSTATE_T=1
 
8209
  fi
 
8210
  if test $REPLACE_MBSTATE_T = 1; then
 
8211
 
 
8212
    :
 
8213
 
 
8214
  fi
 
8215
 
 
8216
  if test $REPLACE_MBSTATE_T = 1; then
 
8217
    REPLACE_MBSINIT=1
 
8218
  fi
 
8219
 
 
8220
  if test $ac_cv_func_mbsinit = no; then
 
8221
    HAVE_MBSINIT=0
 
8222
  fi
 
8223
  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
 
8224
 
 
8225
    :
 
8226
 
 
8227
 
 
8228
 
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
 
 
8234
 
 
8235
  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
 
8236
 
 
8237
 
 
8238
  :
 
8239
 
 
8240
  fi
 
8241
 
 
8242
 
 
8243
 
 
8244
  GNULIB_MBSINIT=1
 
8245
 
8754
8246
 
8755
8247
 
8756
8248
 
8767
8259
 
8768
8260
 
8769
8261
 
8770
 
 
8771
 
 
8772
 
 
8773
 
  { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
8774
 
$as_echo_n "checking for mbstate_t... " >&6; }
8775
 
if test "${ac_cv_type_mbstate_t+set}" = set; then
8776
 
  $as_echo_n "(cached) " >&6
8777
 
else
8778
 
  cat >conftest.$ac_ext <<_ACEOF
8779
 
/* confdefs.h.  */
8780
 
_ACEOF
8781
 
cat confdefs.h >>conftest.$ac_ext
8782
 
cat >>conftest.$ac_ext <<_ACEOF
8783
 
/* end confdefs.h.  */
8784
 
$ac_includes_default
8785
 
#           include <wchar.h>
8786
 
int
8787
 
main ()
8788
 
{
8789
 
mbstate_t x; return sizeof x;
8790
 
  ;
8791
 
  return 0;
8792
 
}
8793
 
_ACEOF
8794
 
rm -f conftest.$ac_objext
8795
 
if { (ac_try="$ac_compile"
8796
 
case "(($ac_try" in
8797
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798
 
  *) ac_try_echo=$ac_try;;
8799
 
esac
8800
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801
 
$as_echo "$ac_try_echo") >&5
8802
 
  (eval "$ac_compile") 2>conftest.er1
8803
 
  ac_status=$?
8804
 
  grep -v '^ *+' conftest.er1 >conftest.err
8805
 
  rm -f conftest.er1
8806
 
  cat conftest.err >&5
8807
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808
 
  (exit $ac_status); } && {
8809
 
         test -z "$ac_c_werror_flag" ||
8810
 
         test ! -s conftest.err
8811
 
       } && test -s conftest.$ac_objext; then
8812
 
  ac_cv_type_mbstate_t=yes
8813
 
else
8814
 
  $as_echo "$as_me: failed program was:" >&5
8815
 
sed 's/^/| /' conftest.$ac_ext >&5
8816
 
 
8817
 
        ac_cv_type_mbstate_t=no
8818
 
fi
8819
 
 
8820
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821
 
fi
8822
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8823
 
$as_echo "$ac_cv_type_mbstate_t" >&6; }
8824
 
   if test $ac_cv_type_mbstate_t = yes; then
8825
 
 
8826
 
cat >>confdefs.h <<\_ACEOF
8827
 
#define HAVE_MBSTATE_T 1
8828
 
_ACEOF
8829
 
 
8830
 
   else
8831
 
 
8832
 
cat >>confdefs.h <<\_ACEOF
8833
 
#define mbstate_t int
8834
 
_ACEOF
8835
 
 
8836
 
   fi
8837
 
 
8838
 
    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
8839
 
$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
8840
 
if test "${gl_cv_func_mbrtowc+set}" = set; then
8841
 
  $as_echo_n "(cached) " >&6
8842
 
else
8843
 
  cat >conftest.$ac_ext <<_ACEOF
8844
 
/* confdefs.h.  */
8845
 
_ACEOF
8846
 
cat confdefs.h >>conftest.$ac_ext
8847
 
cat >>conftest.$ac_ext <<_ACEOF
8848
 
/* end confdefs.h.  */
8849
 
#include <wchar.h>
8850
 
int
8851
 
main ()
8852
 
{
8853
 
wchar_t wc;
8854
 
              char const s[] = "";
8855
 
              size_t n = 1;
8856
 
              mbstate_t state;
8857
 
              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
8858
 
  ;
8859
 
  return 0;
8860
 
}
8861
 
_ACEOF
8862
 
rm -f conftest.$ac_objext conftest$ac_exeext
8863
 
if { (ac_try="$ac_link"
8864
 
case "(($ac_try" in
8865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866
 
  *) ac_try_echo=$ac_try;;
8867
 
esac
8868
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869
 
$as_echo "$ac_try_echo") >&5
8870
 
  (eval "$ac_link") 2>conftest.er1
8871
 
  ac_status=$?
8872
 
  grep -v '^ *+' conftest.er1 >conftest.err
8873
 
  rm -f conftest.er1
8874
 
  cat conftest.err >&5
8875
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876
 
  (exit $ac_status); } && {
8877
 
         test -z "$ac_c_werror_flag" ||
8878
 
         test ! -s conftest.err
8879
 
       } && test -s conftest$ac_exeext && {
8880
 
         test "$cross_compiling" = yes ||
8881
 
         $as_test_x conftest$ac_exeext
8882
 
       }; then
8883
 
  gl_cv_func_mbrtowc=yes
8884
 
else
8885
 
  $as_echo "$as_me: failed program was:" >&5
8886
 
sed 's/^/| /' conftest.$ac_ext >&5
8887
 
 
8888
 
        gl_cv_func_mbrtowc=no
8889
 
fi
8890
 
 
8891
 
rm -rf conftest.dSYM
8892
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8893
 
      conftest$ac_exeext conftest.$ac_ext
8894
 
fi
8895
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
8896
 
$as_echo "$gl_cv_func_mbrtowc" >&6; }
8897
 
  if test $gl_cv_func_mbrtowc = yes; then
8898
 
 
8899
 
cat >>confdefs.h <<\_ACEOF
8900
 
#define HAVE_MBRTOWC 1
8901
 
_ACEOF
8902
 
 
8903
 
  fi
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
8262
  # Define two additional variables used in the Makefile substitution.
8910
8263
 
8911
8264
  if test "$ac_cv_header_stdbool_h" = yes; then
8925
8278
 
8926
8279
 
8927
8280
 
 
8281
  if test $gt_cv_c_wchar_t = no; then
 
8282
    HAVE_WCHAR_T=0
 
8283
    STDDEF_H=stddef.h
 
8284
  fi
 
8285
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
 
8286
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
 
8287
if test "${gl_cv_decl_null_works+set}" = set; then :
 
8288
  $as_echo_n "(cached) " >&6
 
8289
else
 
8290
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8291
/* end confdefs.h.  */
 
8292
#include <stddef.h>
 
8293
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
8294
 
 
8295
int
 
8296
main ()
 
8297
{
 
8298
 
 
8299
  ;
 
8300
  return 0;
 
8301
}
 
8302
_ACEOF
 
8303
if ac_fn_c_try_compile "$LINENO"; then :
 
8304
  gl_cv_decl_null_works=yes
 
8305
else
 
8306
  gl_cv_decl_null_works=no
 
8307
fi
 
8308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8309
fi
 
8310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
 
8311
$as_echo "$gl_cv_decl_null_works" >&6; }
 
8312
  if test $gl_cv_decl_null_works = no; then
 
8313
    REPLACE_NULL=1
 
8314
    STDDEF_H=stddef.h
 
8315
  fi
 
8316
  if test -n "$STDDEF_H"; then
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
 
 
8323
     if test $gl_cv_have_include_next = yes; then
 
8324
       gl_cv_next_stddef_h='<'stddef.h'>'
 
8325
     else
 
8326
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
 
8327
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
 
8328
if test "${gl_cv_next_stddef_h+set}" = set; then :
 
8329
  $as_echo_n "(cached) " >&6
 
8330
else
 
8331
 
 
8332
          if test $ac_cv_header_stddef_h = yes; then
 
8333
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8334
/* end confdefs.h.  */
 
8335
#include <stddef.h>
 
8336
 
 
8337
_ACEOF
 
8338
                                                                                                case "$host_os" in
 
8339
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
8340
              *)    gl_absname_cpp="$ac_cpp" ;;
 
8341
            esac
 
8342
                                                gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
8343
               sed -n '\#/stddef.h#{
 
8344
                 s#.*"\(.*/stddef.h\)".*#\1#
 
8345
                 s#^/[^/]#//&#
 
8346
                 p
 
8347
                 q
 
8348
               }'`'"'
 
8349
          else
 
8350
            gl_cv_next_stddef_h='<'stddef.h'>'
 
8351
          fi
 
8352
 
 
8353
fi
 
8354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
 
8355
$as_echo "$gl_cv_next_stddef_h" >&6; }
 
8356
     fi
 
8357
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
8358
 
 
8359
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
8360
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
8361
       gl_next_as_first_directive='<'stddef.h'>'
 
8362
     else
 
8363
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
8364
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
8365
     fi
 
8366
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
8367
 
 
8368
 
 
8369
 
 
8370
  fi
 
8371
 
 
8372
 
 
8373
 
 
8374
 
 
8375
  if test $ac_cv_type_long_long_int = yes; then
 
8376
    HAVE_LONG_LONG_INT=1
 
8377
  else
 
8378
    HAVE_LONG_LONG_INT=0
 
8379
  fi
 
8380
 
 
8381
 
 
8382
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
8383
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
8384
  else
 
8385
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
8386
  fi
 
8387
 
 
8388
 
 
8389
      if test $ac_cv_header_inttypes_h = yes; then
 
8390
    HAVE_INTTYPES_H=1
 
8391
  else
 
8392
    HAVE_INTTYPES_H=0
 
8393
  fi
 
8394
 
 
8395
 
 
8396
      if test $ac_cv_header_sys_types_h = yes; then
 
8397
    HAVE_SYS_TYPES_H=1
 
8398
  else
 
8399
    HAVE_SYS_TYPES_H=0
 
8400
  fi
 
8401
 
 
8402
 
 
8403
 
 
8404
 
 
8405
 
 
8406
 
 
8407
 
 
8408
 
 
8409
     if test $gl_cv_have_include_next = yes; then
 
8410
       gl_cv_next_stdint_h='<'stdint.h'>'
 
8411
     else
 
8412
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
 
8413
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
8414
if test "${gl_cv_next_stdint_h+set}" = set; then :
 
8415
  $as_echo_n "(cached) " >&6
 
8416
else
 
8417
 
 
8418
          if test $ac_cv_header_stdint_h = yes; then
 
8419
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8420
/* end confdefs.h.  */
 
8421
#include <stdint.h>
 
8422
 
 
8423
_ACEOF
 
8424
                                                                                                case "$host_os" in
 
8425
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
8426
              *)    gl_absname_cpp="$ac_cpp" ;;
 
8427
            esac
 
8428
                                                gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
8429
               sed -n '\#/stdint.h#{
 
8430
                 s#.*"\(.*/stdint.h\)".*#\1#
 
8431
                 s#^/[^/]#//&#
 
8432
                 p
 
8433
                 q
 
8434
               }'`'"'
 
8435
          else
 
8436
            gl_cv_next_stdint_h='<'stdint.h'>'
 
8437
          fi
 
8438
 
 
8439
fi
 
8440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
 
8441
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
8442
     fi
 
8443
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
8444
 
 
8445
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
8446
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
8447
       gl_next_as_first_directive='<'stdint.h'>'
 
8448
     else
 
8449
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
8450
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
8451
     fi
 
8452
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
8453
 
 
8454
 
 
8455
 
 
8456
  if test $ac_cv_header_stdint_h = yes; then
 
8457
    HAVE_STDINT_H=1
 
8458
  else
 
8459
    HAVE_STDINT_H=0
 
8460
  fi
 
8461
 
 
8462
 
 
8463
    if test $ac_cv_header_stdint_h = yes; then
 
8464
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
 
8465
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
8466
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
 
8467
  $as_echo_n "(cached) " >&6
 
8468
else
 
8469
  gl_cv_header_working_stdint_h=no
 
8470
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8471
/* end confdefs.h.  */
 
8472
 
 
8473
 
 
8474
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
8475
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
8476
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
8477
#include <stdint.h>
 
8478
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
8479
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
8480
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
8481
#endif
 
8482
 
 
8483
 
 
8484
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8485
     included before <wchar.h>.  */
 
8486
  #include <stddef.h>
 
8487
  #include <signal.h>
 
8488
  #if HAVE_WCHAR_H
 
8489
  # include <stdio.h>
 
8490
  # include <time.h>
 
8491
  # include <wchar.h>
 
8492
  #endif
 
8493
 
 
8494
 
 
8495
#ifdef INT8_MAX
 
8496
int8_t a1 = INT8_MAX;
 
8497
int8_t a1min = INT8_MIN;
 
8498
#endif
 
8499
#ifdef INT16_MAX
 
8500
int16_t a2 = INT16_MAX;
 
8501
int16_t a2min = INT16_MIN;
 
8502
#endif
 
8503
#ifdef INT32_MAX
 
8504
int32_t a3 = INT32_MAX;
 
8505
int32_t a3min = INT32_MIN;
 
8506
#endif
 
8507
#ifdef INT64_MAX
 
8508
int64_t a4 = INT64_MAX;
 
8509
int64_t a4min = INT64_MIN;
 
8510
#endif
 
8511
#ifdef UINT8_MAX
 
8512
uint8_t b1 = UINT8_MAX;
 
8513
#else
 
8514
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
8515
#endif
 
8516
#ifdef UINT16_MAX
 
8517
uint16_t b2 = UINT16_MAX;
 
8518
#endif
 
8519
#ifdef UINT32_MAX
 
8520
uint32_t b3 = UINT32_MAX;
 
8521
#endif
 
8522
#ifdef UINT64_MAX
 
8523
uint64_t b4 = UINT64_MAX;
 
8524
#endif
 
8525
int_least8_t c1 = INT8_C (0x7f);
 
8526
int_least8_t c1max = INT_LEAST8_MAX;
 
8527
int_least8_t c1min = INT_LEAST8_MIN;
 
8528
int_least16_t c2 = INT16_C (0x7fff);
 
8529
int_least16_t c2max = INT_LEAST16_MAX;
 
8530
int_least16_t c2min = INT_LEAST16_MIN;
 
8531
int_least32_t c3 = INT32_C (0x7fffffff);
 
8532
int_least32_t c3max = INT_LEAST32_MAX;
 
8533
int_least32_t c3min = INT_LEAST32_MIN;
 
8534
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
8535
int_least64_t c4max = INT_LEAST64_MAX;
 
8536
int_least64_t c4min = INT_LEAST64_MIN;
 
8537
uint_least8_t d1 = UINT8_C (0xff);
 
8538
uint_least8_t d1max = UINT_LEAST8_MAX;
 
8539
uint_least16_t d2 = UINT16_C (0xffff);
 
8540
uint_least16_t d2max = UINT_LEAST16_MAX;
 
8541
uint_least32_t d3 = UINT32_C (0xffffffff);
 
8542
uint_least32_t d3max = UINT_LEAST32_MAX;
 
8543
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
8544
uint_least64_t d4max = UINT_LEAST64_MAX;
 
8545
int_fast8_t e1 = INT_FAST8_MAX;
 
8546
int_fast8_t e1min = INT_FAST8_MIN;
 
8547
int_fast16_t e2 = INT_FAST16_MAX;
 
8548
int_fast16_t e2min = INT_FAST16_MIN;
 
8549
int_fast32_t e3 = INT_FAST32_MAX;
 
8550
int_fast32_t e3min = INT_FAST32_MIN;
 
8551
int_fast64_t e4 = INT_FAST64_MAX;
 
8552
int_fast64_t e4min = INT_FAST64_MIN;
 
8553
uint_fast8_t f1 = UINT_FAST8_MAX;
 
8554
uint_fast16_t f2 = UINT_FAST16_MAX;
 
8555
uint_fast32_t f3 = UINT_FAST32_MAX;
 
8556
uint_fast64_t f4 = UINT_FAST64_MAX;
 
8557
#ifdef INTPTR_MAX
 
8558
intptr_t g = INTPTR_MAX;
 
8559
intptr_t gmin = INTPTR_MIN;
 
8560
#endif
 
8561
#ifdef UINTPTR_MAX
 
8562
uintptr_t h = UINTPTR_MAX;
 
8563
#endif
 
8564
intmax_t i = INTMAX_MAX;
 
8565
uintmax_t j = UINTMAX_MAX;
 
8566
 
 
8567
#include <limits.h> /* for CHAR_BIT */
 
8568
#define TYPE_MINIMUM(t) \
 
8569
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
8570
#define TYPE_MAXIMUM(t) \
 
8571
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
8572
struct s {
 
8573
  int check_PTRDIFF:
 
8574
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
8575
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
8576
      ? 1 : -1;
 
8577
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
8578
  int check_SIG_ATOMIC:
 
8579
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
8580
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
8581
      ? 1 : -1;
 
8582
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
8583
  int check_WCHAR:
 
8584
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
8585
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
8586
      ? 1 : -1;
 
8587
  /* Detect bug in mingw.  */
 
8588
  int check_WINT:
 
8589
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
8590
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
8591
      ? 1 : -1;
 
8592
 
 
8593
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
8594
  int check_UINT8_C:
 
8595
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
8596
  int check_UINT16_C:
 
8597
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
8598
 
 
8599
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
8600
#ifdef UINT8_MAX
 
8601
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
8602
#endif
 
8603
#ifdef UINT16_MAX
 
8604
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
8605
#endif
 
8606
#ifdef UINT32_MAX
 
8607
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
8608
#endif
 
8609
#ifdef UINT64_MAX
 
8610
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
8611
#endif
 
8612
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
8613
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
8614
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
8615
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
8616
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
8617
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
8618
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
8619
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
8620
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
8621
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
8622
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
8623
};
 
8624
 
 
8625
int
 
8626
main ()
 
8627
{
 
8628
 
 
8629
  ;
 
8630
  return 0;
 
8631
}
 
8632
_ACEOF
 
8633
if ac_fn_c_try_compile "$LINENO"; then :
 
8634
                                                    if test "$cross_compiling" = yes; then :
 
8635
                 gl_cv_header_working_stdint_h=yes
 
8636
 
 
8637
else
 
8638
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8639
/* end confdefs.h.  */
 
8640
 
 
8641
 
 
8642
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
8643
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
8644
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
8645
#include <stdint.h>
 
8646
 
 
8647
 
 
8648
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8649
     included before <wchar.h>.  */
 
8650
  #include <stddef.h>
 
8651
  #include <signal.h>
 
8652
  #if HAVE_WCHAR_H
 
8653
  # include <stdio.h>
 
8654
  # include <time.h>
 
8655
  # include <wchar.h>
 
8656
  #endif
 
8657
 
 
8658
 
 
8659
#include <stdio.h>
 
8660
#include <string.h>
 
8661
#define MVAL(macro) MVAL1(macro)
 
8662
#define MVAL1(expression) #expression
 
8663
static const char *macro_values[] =
 
8664
  {
 
8665
#ifdef INT8_MAX
 
8666
    MVAL (INT8_MAX),
 
8667
#endif
 
8668
#ifdef INT16_MAX
 
8669
    MVAL (INT16_MAX),
 
8670
#endif
 
8671
#ifdef INT32_MAX
 
8672
    MVAL (INT32_MAX),
 
8673
#endif
 
8674
#ifdef INT64_MAX
 
8675
    MVAL (INT64_MAX),
 
8676
#endif
 
8677
#ifdef UINT8_MAX
 
8678
    MVAL (UINT8_MAX),
 
8679
#endif
 
8680
#ifdef UINT16_MAX
 
8681
    MVAL (UINT16_MAX),
 
8682
#endif
 
8683
#ifdef UINT32_MAX
 
8684
    MVAL (UINT32_MAX),
 
8685
#endif
 
8686
#ifdef UINT64_MAX
 
8687
    MVAL (UINT64_MAX),
 
8688
#endif
 
8689
    NULL
 
8690
  };
 
8691
 
 
8692
int
 
8693
main ()
 
8694
{
 
8695
 
 
8696
  const char **mv;
 
8697
  for (mv = macro_values; *mv != NULL; mv++)
 
8698
    {
 
8699
      const char *value = *mv;
 
8700
      /* Test whether it looks like a cast expression.  */
 
8701
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
8702
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
8703
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
8704
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
8705
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
8706
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
8707
        return 1;
 
8708
    }
 
8709
  return 0;
 
8710
 
 
8711
  ;
 
8712
  return 0;
 
8713
}
 
8714
_ACEOF
 
8715
if ac_fn_c_try_run "$LINENO"; then :
 
8716
  gl_cv_header_working_stdint_h=yes
 
8717
fi
 
8718
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8719
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8720
fi
 
8721
 
 
8722
 
 
8723
fi
 
8724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8725
 
 
8726
fi
 
8727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
 
8728
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
8729
  fi
 
8730
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
8731
    STDINT_H=
 
8732
  else
 
8733
            for ac_header in sys/inttypes.h sys/bitypes.h
 
8734
do :
 
8735
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8736
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
8737
eval as_val=\$$as_ac_Header
 
8738
   if test "x$as_val" = x""yes; then :
 
8739
  cat >>confdefs.h <<_ACEOF
 
8740
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8741
_ACEOF
 
8742
 
 
8743
fi
 
8744
 
 
8745
done
 
8746
 
 
8747
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
8748
      HAVE_SYS_INTTYPES_H=1
 
8749
    else
 
8750
      HAVE_SYS_INTTYPES_H=0
 
8751
    fi
 
8752
 
 
8753
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
8754
      HAVE_SYS_BITYPES_H=1
 
8755
    else
 
8756
      HAVE_SYS_BITYPES_H=0
 
8757
    fi
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
8765
 
 
8766
 
 
8767
  for gltype in ptrdiff_t size_t ; do
 
8768
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
8769
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
8770
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
 
8771
  $as_echo_n "(cached) " >&6
 
8772
else
 
8773
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
8774
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8775
     included before <wchar.h>.  */
 
8776
  #include <stddef.h>
 
8777
  #include <signal.h>
 
8778
  #if HAVE_WCHAR_H
 
8779
  # include <stdio.h>
 
8780
  # include <time.h>
 
8781
  # include <wchar.h>
 
8782
  #endif
 
8783
 
 
8784
#include <limits.h>"; then :
 
8785
 
 
8786
else
 
8787
  result=unknown
 
8788
fi
 
8789
 
 
8790
       eval gl_cv_bitsizeof_${gltype}=\$result
 
8791
 
 
8792
fi
 
8793
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
8794
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8795
$as_echo "$ac_res" >&6; }
 
8796
    eval result=\$gl_cv_bitsizeof_${gltype}
 
8797
    if test $result = unknown; then
 
8798
                                                result=0
 
8799
    fi
 
8800
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
8801
    cat >>confdefs.h <<_ACEOF
 
8802
#define BITSIZEOF_${GLTYPE} $result
 
8803
_ACEOF
 
8804
 
 
8805
    eval BITSIZEOF_${GLTYPE}=\$result
 
8806
  done
 
8807
 
 
8808
 
 
8809
  fi
 
8810
 
 
8811
 
 
8812
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
8813
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
8814
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
8815
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
 
8816
  $as_echo_n "(cached) " >&6
 
8817
else
 
8818
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
8819
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8820
     included before <wchar.h>.  */
 
8821
  #include <stddef.h>
 
8822
  #include <signal.h>
 
8823
  #if HAVE_WCHAR_H
 
8824
  # include <stdio.h>
 
8825
  # include <time.h>
 
8826
  # include <wchar.h>
 
8827
  #endif
 
8828
 
 
8829
#include <limits.h>"; then :
 
8830
 
 
8831
else
 
8832
  result=unknown
 
8833
fi
 
8834
 
 
8835
       eval gl_cv_bitsizeof_${gltype}=\$result
 
8836
 
 
8837
fi
 
8838
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
8839
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8840
$as_echo "$ac_res" >&6; }
 
8841
    eval result=\$gl_cv_bitsizeof_${gltype}
 
8842
    if test $result = unknown; then
 
8843
                                                result=0
 
8844
    fi
 
8845
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
8846
    cat >>confdefs.h <<_ACEOF
 
8847
#define BITSIZEOF_${GLTYPE} $result
 
8848
_ACEOF
 
8849
 
 
8850
    eval BITSIZEOF_${GLTYPE}=\$result
 
8851
  done
 
8852
 
 
8853
 
 
8854
 
 
8855
 
 
8856
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
8857
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
 
8858
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
8859
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
 
8860
  $as_echo_n "(cached) " >&6
 
8861
else
 
8862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8863
/* end confdefs.h.  */
 
8864
 
 
8865
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8866
     included before <wchar.h>.  */
 
8867
  #include <stddef.h>
 
8868
  #include <signal.h>
 
8869
  #if HAVE_WCHAR_H
 
8870
  # include <stdio.h>
 
8871
  # include <time.h>
 
8872
  # include <wchar.h>
 
8873
  #endif
 
8874
 
 
8875
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
8876
int
 
8877
main ()
 
8878
{
 
8879
 
 
8880
  ;
 
8881
  return 0;
 
8882
}
 
8883
_ACEOF
 
8884
if ac_fn_c_try_compile "$LINENO"; then :
 
8885
  result=yes
 
8886
else
 
8887
  result=no
 
8888
fi
 
8889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8890
       eval gl_cv_type_${gltype}_signed=\$result
 
8891
 
 
8892
fi
 
8893
eval ac_res=\$gl_cv_type_${gltype}_signed
 
8894
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8895
$as_echo "$ac_res" >&6; }
 
8896
    eval result=\$gl_cv_type_${gltype}_signed
 
8897
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
8898
    if test "$result" = yes; then
 
8899
      cat >>confdefs.h <<_ACEOF
 
8900
#define HAVE_SIGNED_${GLTYPE} 1
 
8901
_ACEOF
 
8902
 
 
8903
      eval HAVE_SIGNED_${GLTYPE}=1
 
8904
    else
 
8905
      eval HAVE_SIGNED_${GLTYPE}=0
 
8906
    fi
 
8907
  done
 
8908
 
 
8909
 
 
8910
  gl_cv_type_ptrdiff_t_signed=yes
 
8911
  gl_cv_type_size_t_signed=no
 
8912
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
8913
 
 
8914
 
 
8915
  for gltype in ptrdiff_t size_t ; do
 
8916
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
8917
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
8918
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
 
8919
  $as_echo_n "(cached) " >&6
 
8920
else
 
8921
  eval gl_cv_type_${gltype}_suffix=no
 
8922
       eval result=\$gl_cv_type_${gltype}_signed
 
8923
       if test "$result" = yes; then
 
8924
         glsufu=
 
8925
       else
 
8926
         glsufu=u
 
8927
       fi
 
8928
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
8929
         case $glsuf in
 
8930
           '')  gltype1='int';;
 
8931
           l)   gltype1='long int';;
 
8932
           ll)  gltype1='long long int';;
 
8933
           i64) gltype1='__int64';;
 
8934
           u)   gltype1='unsigned int';;
 
8935
           ul)  gltype1='unsigned long int';;
 
8936
           ull) gltype1='unsigned long long int';;
 
8937
           ui64)gltype1='unsigned __int64';;
 
8938
         esac
 
8939
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8940
/* end confdefs.h.  */
 
8941
 
 
8942
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
8943
     included before <wchar.h>.  */
 
8944
  #include <stddef.h>
 
8945
  #include <signal.h>
 
8946
  #if HAVE_WCHAR_H
 
8947
  # include <stdio.h>
 
8948
  # include <time.h>
 
8949
  # include <wchar.h>
 
8950
  #endif
 
8951
 
 
8952
              extern $gltype foo;
 
8953
              extern $gltype1 foo;
 
8954
int
 
8955
main ()
 
8956
{
 
8957
 
 
8958
  ;
 
8959
  return 0;
 
8960
}
 
8961
_ACEOF
 
8962
if ac_fn_c_try_compile "$LINENO"; then :
 
8963
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
8964
fi
 
8965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8966
         eval result=\$gl_cv_type_${gltype}_suffix
 
8967
         test "$result" != no && break
 
8968
       done
 
8969
fi
 
8970
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
8971
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8972
$as_echo "$ac_res" >&6; }
 
8973
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
8974
    eval result=\$gl_cv_type_${gltype}_suffix
 
8975
    test "$result" = no && result=
 
8976
    eval ${GLTYPE}_SUFFIX=\$result
 
8977
    cat >>confdefs.h <<_ACEOF
 
8978
#define ${GLTYPE}_SUFFIX $result
 
8979
_ACEOF
 
8980
 
 
8981
  done
 
8982
 
 
8983
 
 
8984
  fi
 
8985
 
 
8986
 
 
8987
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
8988
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
8989
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
8990
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
 
8991
  $as_echo_n "(cached) " >&6
 
8992
else
 
8993
  eval gl_cv_type_${gltype}_suffix=no
 
8994
       eval result=\$gl_cv_type_${gltype}_signed
 
8995
       if test "$result" = yes; then
 
8996
         glsufu=
 
8997
       else
 
8998
         glsufu=u
 
8999
       fi
 
9000
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
9001
         case $glsuf in
 
9002
           '')  gltype1='int';;
 
9003
           l)   gltype1='long int';;
 
9004
           ll)  gltype1='long long int';;
 
9005
           i64) gltype1='__int64';;
 
9006
           u)   gltype1='unsigned int';;
 
9007
           ul)  gltype1='unsigned long int';;
 
9008
           ull) gltype1='unsigned long long int';;
 
9009
           ui64)gltype1='unsigned __int64';;
 
9010
         esac
 
9011
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9012
/* end confdefs.h.  */
 
9013
 
 
9014
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
9015
     included before <wchar.h>.  */
 
9016
  #include <stddef.h>
 
9017
  #include <signal.h>
 
9018
  #if HAVE_WCHAR_H
 
9019
  # include <stdio.h>
 
9020
  # include <time.h>
 
9021
  # include <wchar.h>
 
9022
  #endif
 
9023
 
 
9024
              extern $gltype foo;
 
9025
              extern $gltype1 foo;
 
9026
int
 
9027
main ()
 
9028
{
 
9029
 
 
9030
  ;
 
9031
  return 0;
 
9032
}
 
9033
_ACEOF
 
9034
if ac_fn_c_try_compile "$LINENO"; then :
 
9035
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
9036
fi
 
9037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9038
         eval result=\$gl_cv_type_${gltype}_suffix
 
9039
         test "$result" != no && break
 
9040
       done
 
9041
fi
 
9042
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
9043
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
9044
$as_echo "$ac_res" >&6; }
 
9045
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
9046
    eval result=\$gl_cv_type_${gltype}_suffix
 
9047
    test "$result" = no && result=
 
9048
    eval ${GLTYPE}_SUFFIX=\$result
 
9049
    cat >>confdefs.h <<_ACEOF
 
9050
#define ${GLTYPE}_SUFFIX $result
 
9051
_ACEOF
 
9052
 
 
9053
  done
 
9054
 
 
9055
 
 
9056
 
 
9057
    STDINT_H=stdint.h
 
9058
  fi
8928
9059
 
8929
9060
 
8930
9061
 
8938
9069
     if test $gl_cv_have_include_next = yes; then
8939
9070
       gl_cv_next_stdlib_h='<'stdlib.h'>'
8940
9071
     else
8941
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
 
9072
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
8942
9073
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
8943
 
if test "${gl_cv_next_stdlib_h+set}" = set; then
 
9074
if test "${gl_cv_next_stdlib_h+set}" = set; then :
8944
9075
  $as_echo_n "(cached) " >&6
8945
9076
else
8946
9077
 
8947
 
          if test $ac_cv_header_stdlib_h = yes; then
8948
 
            cat >conftest.$ac_ext <<_ACEOF
8949
 
/* confdefs.h.  */
8950
 
_ACEOF
8951
 
cat confdefs.h >>conftest.$ac_ext
8952
 
cat >>conftest.$ac_ext <<_ACEOF
 
9078
          if test $ac_cv_header_stdlib_h = yes; then
 
9079
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953
9080
/* end confdefs.h.  */
8954
9081
#include <stdlib.h>
8955
9082
 
8956
9083
_ACEOF
8957
 
                                                                    case "$host_os" in
8958
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
8959
 
              *)    gl_absname_cpp="$ac_cpp" ;;
8960
 
            esac
8961
 
                                    gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8962
 
               sed -n '\#/stdlib.h#{
8963
 
                 s#.*"\(.*/stdlib.h\)".*#\1#
8964
 
                 s#^/[^/]#//&#
8965
 
                 p
8966
 
                 q
8967
 
               }'`'"'
8968
 
          else
8969
 
            gl_cv_next_stdlib_h='<'stdlib.h'>'
8970
 
          fi
 
9084
                                                                                                case "$host_os" in
 
9085
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
9086
              *)    gl_absname_cpp="$ac_cpp" ;;
 
9087
            esac
 
9088
                                                gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
9089
               sed -n '\#/stdlib.h#{
 
9090
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
9091
                 s#^/[^/]#//&#
 
9092
                 p
 
9093
                 q
 
9094
               }'`'"'
 
9095
          else
 
9096
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
9097
          fi
8971
9098
 
8972
9099
fi
8973
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
 
9100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
8974
9101
$as_echo "$gl_cv_next_stdlib_h" >&6; }
8975
9102
     fi
8976
9103
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
8977
9104
 
8978
 
 
8979
 
 
8980
 
  { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
8981
 
$as_echo_n "checking for struct random_data... " >&6; }
8982
 
if test "${ac_cv_type_struct_random_data+set}" = set; then
8983
 
  $as_echo_n "(cached) " >&6
8984
 
else
8985
 
  ac_cv_type_struct_random_data=no
8986
 
cat >conftest.$ac_ext <<_ACEOF
8987
 
/* confdefs.h.  */
8988
 
_ACEOF
8989
 
cat confdefs.h >>conftest.$ac_ext
8990
 
cat >>conftest.$ac_ext <<_ACEOF
8991
 
/* end confdefs.h.  */
8992
 
#include <stdlib.h>
8993
 
 
8994
 
int
8995
 
main ()
8996
 
{
8997
 
if (sizeof (struct random_data))
8998
 
       return 0;
8999
 
  ;
9000
 
  return 0;
9001
 
}
9002
 
_ACEOF
9003
 
rm -f conftest.$ac_objext
9004
 
if { (ac_try="$ac_compile"
9005
 
case "(($ac_try" in
9006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007
 
  *) ac_try_echo=$ac_try;;
9008
 
esac
9009
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010
 
$as_echo "$ac_try_echo") >&5
9011
 
  (eval "$ac_compile") 2>conftest.er1
9012
 
  ac_status=$?
9013
 
  grep -v '^ *+' conftest.er1 >conftest.err
9014
 
  rm -f conftest.er1
9015
 
  cat conftest.err >&5
9016
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017
 
  (exit $ac_status); } && {
9018
 
         test -z "$ac_c_werror_flag" ||
9019
 
         test ! -s conftest.err
9020
 
       } && test -s conftest.$ac_objext; then
9021
 
  cat >conftest.$ac_ext <<_ACEOF
9022
 
/* confdefs.h.  */
9023
 
_ACEOF
9024
 
cat confdefs.h >>conftest.$ac_ext
9025
 
cat >>conftest.$ac_ext <<_ACEOF
9026
 
/* end confdefs.h.  */
9027
 
#include <stdlib.h>
9028
 
 
9029
 
int
9030
 
main ()
9031
 
{
9032
 
if (sizeof ((struct random_data)))
9033
 
          return 0;
9034
 
  ;
9035
 
  return 0;
9036
 
}
9037
 
_ACEOF
9038
 
rm -f conftest.$ac_objext
9039
 
if { (ac_try="$ac_compile"
9040
 
case "(($ac_try" in
9041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042
 
  *) ac_try_echo=$ac_try;;
9043
 
esac
9044
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9045
 
$as_echo "$ac_try_echo") >&5
9046
 
  (eval "$ac_compile") 2>conftest.er1
9047
 
  ac_status=$?
9048
 
  grep -v '^ *+' conftest.er1 >conftest.err
9049
 
  rm -f conftest.er1
9050
 
  cat conftest.err >&5
9051
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052
 
  (exit $ac_status); } && {
9053
 
         test -z "$ac_c_werror_flag" ||
9054
 
         test ! -s conftest.err
9055
 
       } && test -s conftest.$ac_objext; then
9056
 
  :
9057
 
else
9058
 
  $as_echo "$as_me: failed program was:" >&5
9059
 
sed 's/^/| /' conftest.$ac_ext >&5
9060
 
 
9061
 
        ac_cv_type_struct_random_data=yes
9062
 
fi
9063
 
 
9064
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065
 
else
9066
 
  $as_echo "$as_me: failed program was:" >&5
9067
 
sed 's/^/| /' conftest.$ac_ext >&5
9068
 
 
9069
 
 
9070
 
fi
9071
 
 
9072
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073
 
fi
9074
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
9075
 
$as_echo "$ac_cv_type_struct_random_data" >&6; }
9076
 
if test "x$ac_cv_type_struct_random_data" = x""yes; then
 
9105
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
9106
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
9107
       gl_next_as_first_directive='<'stdlib.h'>'
 
9108
     else
 
9109
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
9110
       gl_next_as_first_directive=$gl_cv_next_stdlib_h
 
9111
     fi
 
9112
     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
 
9113
 
 
9114
 
 
9115
 
 
9116
  for ac_header in random.h
 
9117
do :
 
9118
  ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
 
9119
"
 
9120
if test "x$ac_cv_header_random_h" = x""yes; then :
 
9121
  cat >>confdefs.h <<_ACEOF
 
9122
#define HAVE_RANDOM_H 1
 
9123
_ACEOF
 
9124
 
 
9125
fi
 
9126
 
 
9127
done
 
9128
 
 
9129
  if test $ac_cv_header_random_h = yes; then
 
9130
    HAVE_RANDOM_H=1
 
9131
  else
 
9132
    HAVE_RANDOM_H=0
 
9133
  fi
 
9134
 
 
9135
  ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
 
9136
      #if HAVE_RANDOM_H
 
9137
      # include <random.h>
 
9138
      #endif
 
9139
 
 
9140
"
 
9141
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
9077
9142
 
9078
9143
cat >>confdefs.h <<_ACEOF
9079
9144
#define HAVE_STRUCT_RANDOM_DATA 1
9086
9151
 
9087
9152
 
9088
9153
 
 
9154
    for gl_func in atoll canonicalize_file_name getloadavg getsubopt mkdtemp     mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv; do
 
9155
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
9156
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
9157
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
9158
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
 
9159
  $as_echo_n "(cached) " >&6
 
9160
else
 
9161
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9162
/* end confdefs.h.  */
 
9163
#include <stdlib.h>
 
9164
#if HAVE_SYS_LOADAVG_H
 
9165
# include <sys/loadavg.h>
 
9166
#endif
 
9167
#if HAVE_RANDOM_H
 
9168
# include <random.h>
 
9169
#endif
 
9170
 
 
9171
int
 
9172
main ()
 
9173
{
 
9174
#undef $gl_func
 
9175
  (void) $gl_func;
 
9176
  ;
 
9177
  return 0;
 
9178
}
 
9179
_ACEOF
 
9180
if ac_fn_c_try_compile "$LINENO"; then :
 
9181
  eval "$as_gl_Symbol=yes"
 
9182
else
 
9183
  eval "$as_gl_Symbol=no"
 
9184
fi
 
9185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9186
fi
 
9187
eval ac_res=\$$as_gl_Symbol
 
9188
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
9189
$as_echo "$ac_res" >&6; }
 
9190
     eval as_val=\$$as_gl_Symbol
 
9191
   if test "x$as_val" = x""yes; then :
 
9192
  cat >>confdefs.h <<_ACEOF
 
9193
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
9194
_ACEOF
 
9195
 
 
9196
                     eval ac_cv_have_decl_$gl_func=yes
 
9197
fi
 
9198
      done
 
9199
 
 
9200
 
 
9201
 
9089
9202
 
9090
9203
  if test $REPLACE_STRERROR = 1; then
9091
9204
 
9122
9235
 
9123
9236
 
9124
9237
 
9125
 
 
9126
 
 
9127
 
 
9128
 
 
9129
9238
     if test $gl_cv_have_include_next = yes; then
9130
9239
       gl_cv_next_unistd_h='<'unistd.h'>'
9131
9240
     else
9132
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
 
9241
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
9133
9242
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
9134
 
if test "${gl_cv_next_unistd_h+set}" = set; then
 
9243
if test "${gl_cv_next_unistd_h+set}" = set; then :
9135
9244
  $as_echo_n "(cached) " >&6
9136
9245
else
9137
9246
 
9138
 
          if test $ac_cv_header_unistd_h = yes; then
9139
 
            cat >conftest.$ac_ext <<_ACEOF
9140
 
/* confdefs.h.  */
9141
 
_ACEOF
9142
 
cat confdefs.h >>conftest.$ac_ext
9143
 
cat >>conftest.$ac_ext <<_ACEOF
 
9247
          if test $ac_cv_header_unistd_h = yes; then
 
9248
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144
9249
/* end confdefs.h.  */
9145
9250
#include <unistd.h>
9146
9251
 
9147
9252
_ACEOF
9148
 
                                                                    case "$host_os" in
9149
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
9150
 
              *)    gl_absname_cpp="$ac_cpp" ;;
9151
 
            esac
9152
 
                                    gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9153
 
               sed -n '\#/unistd.h#{
9154
 
                 s#.*"\(.*/unistd.h\)".*#\1#
9155
 
                 s#^/[^/]#//&#
9156
 
                 p
9157
 
                 q
9158
 
               }'`'"'
9159
 
          else
9160
 
            gl_cv_next_unistd_h='<'unistd.h'>'
9161
 
          fi
 
9253
                                                                                                case "$host_os" in
 
9254
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
9255
              *)    gl_absname_cpp="$ac_cpp" ;;
 
9256
            esac
 
9257
                                                gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
9258
               sed -n '\#/unistd.h#{
 
9259
                 s#.*"\(.*/unistd.h\)".*#\1#
 
9260
                 s#^/[^/]#//&#
 
9261
                 p
 
9262
                 q
 
9263
               }'`'"'
 
9264
          else
 
9265
            gl_cv_next_unistd_h='<'unistd.h'>'
 
9266
          fi
9162
9267
 
9163
9268
fi
9164
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
 
9269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
9165
9270
$as_echo "$gl_cv_next_unistd_h" >&6; }
9166
9271
     fi
9167
9272
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
9168
9273
 
9169
 
 
9170
 
 
9171
 
 
9172
 
 
 
9274
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
9275
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
9276
       gl_next_as_first_directive='<'unistd.h'>'
 
9277
     else
 
9278
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
9279
       gl_next_as_first_directive=$gl_cv_next_unistd_h
 
9280
     fi
 
9281
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
9173
9282
 
9174
9283
 
9175
9284
 
9183
9292
 
9184
9293
 
9185
9294
 
9186
 
 
9187
 
  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
9188
 
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
9189
 
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
 
9295
    for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread readlink readlinkat     rmdir sleep symlink symlinkat unlink unlinkat usleep; do
 
9296
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
9297
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
9298
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
9299
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9190
9300
  $as_echo_n "(cached) " >&6
9191
9301
else
9192
 
  cat >conftest.$ac_ext <<_ACEOF
9193
 
#include <wchar.h>
9194
 
wchar_t w;
 
9302
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9303
/* end confdefs.h.  */
 
9304
#include <unistd.h>
 
9305
/* Some systems declare various items in the wrong headers.  */
 
9306
#ifndef __GLIBC__
 
9307
# include <fcntl.h>
 
9308
# include <stdio.h>
 
9309
# include <stdlib.h>
 
9310
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
9311
#  include <io.h>
 
9312
# endif
 
9313
#endif
 
9314
 
 
9315
int
 
9316
main ()
 
9317
{
 
9318
#undef $gl_func
 
9319
  (void) $gl_func;
 
9320
  ;
 
9321
  return 0;
 
9322
}
9195
9323
_ACEOF
9196
 
rm -f conftest.$ac_objext
9197
 
if { (ac_try="$ac_compile"
9198
 
case "(($ac_try" in
9199
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200
 
  *) ac_try_echo=$ac_try;;
9201
 
esac
9202
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203
 
$as_echo "$ac_try_echo") >&5
9204
 
  (eval "$ac_compile") 2>conftest.er1
9205
 
  ac_status=$?
9206
 
  grep -v '^ *+' conftest.er1 >conftest.err
9207
 
  rm -f conftest.er1
9208
 
  cat conftest.err >&5
9209
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
 
  (exit $ac_status); } && {
9211
 
         test -z "$ac_c_werror_flag" ||
9212
 
         test ! -s conftest.err
9213
 
       } && test -s conftest.$ac_objext; then
9214
 
  gl_cv_header_wchar_h_standalone=yes
 
9324
if ac_fn_c_try_compile "$LINENO"; then :
 
9325
  eval "$as_gl_Symbol=yes"
9215
9326
else
9216
 
  $as_echo "$as_me: failed program was:" >&5
9217
 
sed 's/^/| /' conftest.$ac_ext >&5
9218
 
 
9219
 
        gl_cv_header_wchar_h_standalone=no
 
9327
  eval "$as_gl_Symbol=no"
9220
9328
fi
9221
 
 
9222
9329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223
9330
fi
9224
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
9225
 
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
9226
 
 
9227
 
 
9228
 
  if test $gt_cv_c_wint_t = yes; then
9229
 
    HAVE_WINT_T=1
9230
 
  else
9231
 
    HAVE_WINT_T=0
9232
 
  fi
9233
 
 
9234
 
 
9235
 
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
9236
 
    WCHAR_H=wchar.h
9237
 
  fi
9238
 
 
9239
 
 
9240
 
 
9241
 
 
9242
 
 
9243
 
 
9244
 
 
9245
 
  if test $ac_cv_header_wchar_h = yes; then
9246
 
    HAVE_WCHAR_H=1
9247
 
  else
9248
 
    HAVE_WCHAR_H=0
9249
 
  fi
 
9331
eval ac_res=\$$as_gl_Symbol
 
9332
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
9333
$as_echo "$ac_res" >&6; }
 
9334
     eval as_val=\$$as_gl_Symbol
 
9335
   if test "x$as_val" = x""yes; then :
 
9336
  cat >>confdefs.h <<_ACEOF
 
9337
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
9338
_ACEOF
 
9339
 
 
9340
                     eval ac_cv_have_decl_$gl_func=yes
 
9341
fi
 
9342
      done
9250
9343
 
9251
9344
 
9252
9345
 
9262
9355
     if test $gl_cv_have_include_next = yes; then
9263
9356
       gl_cv_next_wchar_h='<'wchar.h'>'
9264
9357
     else
9265
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
 
9358
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
9266
9359
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
9267
 
if test "${gl_cv_next_wchar_h+set}" = set; then
 
9360
if test "${gl_cv_next_wchar_h+set}" = set; then :
9268
9361
  $as_echo_n "(cached) " >&6
9269
9362
else
9270
9363
 
9271
 
          if test $ac_cv_header_wchar_h = yes; then
9272
 
            cat >conftest.$ac_ext <<_ACEOF
9273
 
/* confdefs.h.  */
9274
 
_ACEOF
9275
 
cat confdefs.h >>conftest.$ac_ext
9276
 
cat >>conftest.$ac_ext <<_ACEOF
 
9364
          if test $ac_cv_header_wchar_h = yes; then
 
9365
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277
9366
/* end confdefs.h.  */
9278
9367
#include <wchar.h>
9279
9368
 
9280
9369
_ACEOF
9281
 
                                                                    case "$host_os" in
9282
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
9283
 
              *)    gl_absname_cpp="$ac_cpp" ;;
9284
 
            esac
9285
 
                                    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9286
 
               sed -n '\#/wchar.h#{
9287
 
                 s#.*"\(.*/wchar.h\)".*#\1#
9288
 
                 s#^/[^/]#//&#
9289
 
                 p
9290
 
                 q
9291
 
               }'`'"'
9292
 
          else
9293
 
            gl_cv_next_wchar_h='<'wchar.h'>'
9294
 
          fi
 
9370
                                                                                                case "$host_os" in
 
9371
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
9372
              *)    gl_absname_cpp="$ac_cpp" ;;
 
9373
            esac
 
9374
                                                gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
9375
               sed -n '\#/wchar.h#{
 
9376
                 s#.*"\(.*/wchar.h\)".*#\1#
 
9377
                 s#^/[^/]#//&#
 
9378
                 p
 
9379
                 q
 
9380
               }'`'"'
 
9381
          else
 
9382
            gl_cv_next_wchar_h='<'wchar.h'>'
 
9383
          fi
9295
9384
 
9296
9385
fi
9297
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
 
9386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
9298
9387
$as_echo "$gl_cv_next_wchar_h" >&6; }
9299
9388
     fi
9300
9389
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
9301
9390
 
9302
 
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
 
9391
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
9392
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
9393
       gl_next_as_first_directive='<'wchar.h'>'
 
9394
     else
 
9395
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
9396
       gl_next_as_first_directive=$gl_cv_next_wchar_h
 
9397
     fi
 
9398
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
 
9399
 
 
9400
 
 
9401
 
 
9402
  if test $ac_cv_header_wchar_h = yes; then
 
9403
    HAVE_WCHAR_H=1
 
9404
  else
 
9405
    HAVE_WCHAR_H=0
 
9406
  fi
 
9407
 
 
9408
 
 
9409
 
 
9410
  if test $gt_cv_c_wint_t = yes; then
 
9411
    HAVE_WINT_T=1
 
9412
  else
 
9413
    HAVE_WINT_T=0
 
9414
  fi
 
9415
 
 
9416
 
 
9417
 
 
9418
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
 
9419
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
9420
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
9421
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
9422
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
 
9423
  $as_echo_n "(cached) " >&6
 
9424
else
 
9425
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9426
/* end confdefs.h.  */
 
9427
 
 
9428
/* Some systems require additional headers.  */
 
9429
#ifndef __GLIBC__
 
9430
# include <stddef.h>
 
9431
# include <stdio.h>
 
9432
# include <time.h>
 
9433
#endif
 
9434
#include <wchar.h>
 
9435
 
 
9436
int
 
9437
main ()
 
9438
{
 
9439
#undef $gl_func
 
9440
  (void) $gl_func;
 
9441
  ;
 
9442
  return 0;
 
9443
}
 
9444
_ACEOF
 
9445
if ac_fn_c_try_compile "$LINENO"; then :
 
9446
  eval "$as_gl_Symbol=yes"
 
9447
else
 
9448
  eval "$as_gl_Symbol=no"
 
9449
fi
 
9450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9451
fi
 
9452
eval ac_res=\$$as_gl_Symbol
 
9453
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
9454
$as_echo "$ac_res" >&6; }
 
9455
     eval as_val=\$$as_gl_Symbol
 
9456
   if test "x$as_val" = x""yes; then :
 
9457
  cat >>confdefs.h <<_ACEOF
 
9458
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
9459
_ACEOF
 
9460
 
 
9461
                     eval ac_cv_have_decl_$gl_func=yes
 
9462
fi
 
9463
      done
9307
9464
 
9308
9465
 
9309
9466
 
9320
9477
 
9321
9478
 
9322
9479
 
9323
 
 
9324
 
 
9325
 
 
9326
 
 
9327
 
 
9328
9480
  if test $gt_cv_c_wint_t = yes; then
9329
9481
    HAVE_WINT_T=1
9330
9482
  else
9335
9487
  WCTYPE_H=wctype.h
9336
9488
  if test $ac_cv_header_wctype_h = yes; then
9337
9489
    if test $ac_cv_func_iswcntrl = yes; then
9338
 
                  { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
 
9490
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
9339
9491
$as_echo_n "checking whether iswcntrl works... " >&6; }
9340
 
if test "${gl_cv_func_iswcntrl_works+set}" = set; then
 
9492
if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
9341
9493
  $as_echo_n "(cached) " >&6
9342
9494
else
9343
9495
 
9344
 
          if test "$cross_compiling" = yes; then
9345
 
  cat >conftest.$ac_ext <<_ACEOF
9346
 
/* confdefs.h.  */
9347
 
_ACEOF
9348
 
cat confdefs.h >>conftest.$ac_ext
9349
 
cat >>conftest.$ac_ext <<_ACEOF
 
9496
          if test "$cross_compiling" = yes; then :
 
9497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350
9498
/* end confdefs.h.  */
9351
9499
#include <stdlib.h>
9352
9500
                          #if __GNU_LIBRARY__ == 1
9360
9508
  return 0;
9361
9509
}
9362
9510
_ACEOF
9363
 
rm -f conftest.$ac_objext
9364
 
if { (ac_try="$ac_compile"
9365
 
case "(($ac_try" in
9366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367
 
  *) ac_try_echo=$ac_try;;
9368
 
esac
9369
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9370
 
$as_echo "$ac_try_echo") >&5
9371
 
  (eval "$ac_compile") 2>conftest.er1
9372
 
  ac_status=$?
9373
 
  grep -v '^ *+' conftest.er1 >conftest.err
9374
 
  rm -f conftest.er1
9375
 
  cat conftest.err >&5
9376
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377
 
  (exit $ac_status); } && {
9378
 
         test -z "$ac_c_werror_flag" ||
9379
 
         test ! -s conftest.err
9380
 
       } && test -s conftest.$ac_objext; then
 
9511
if ac_fn_c_try_compile "$LINENO"; then :
9381
9512
  gl_cv_func_iswcntrl_works=yes
9382
9513
else
9383
 
  $as_echo "$as_me: failed program was:" >&5
9384
 
sed 's/^/| /' conftest.$ac_ext >&5
9385
 
 
9386
 
        gl_cv_func_iswcntrl_works=no
 
9514
  gl_cv_func_iswcntrl_works=no
9387
9515
fi
9388
 
 
9389
9516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390
9517
 
9391
9518
else
9392
 
  cat >conftest.$ac_ext <<_ACEOF
9393
 
/* confdefs.h.  */
9394
 
_ACEOF
9395
 
cat confdefs.h >>conftest.$ac_ext
9396
 
cat >>conftest.$ac_ext <<_ACEOF
 
9519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397
9520
/* end confdefs.h.  */
9398
 
#include <stddef.h>
9399
 
                      #include <stdio.h>
9400
 
                      #include <time.h>
9401
 
                      #include <wchar.h>
9402
 
                      #include <wctype.h>
9403
 
                      int main () { return iswprint ('x') == 0; }
 
9521
 
 
9522
                            #include <stddef.h>
 
9523
                            #include <stdio.h>
 
9524
                            #include <time.h>
 
9525
                            #include <wchar.h>
 
9526
                            #include <wctype.h>
 
9527
                            int main () { return iswprint ('x') == 0; }
9404
9528
_ACEOF
9405
 
rm -f conftest$ac_exeext
9406
 
if { (ac_try="$ac_link"
9407
 
case "(($ac_try" in
9408
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409
 
  *) ac_try_echo=$ac_try;;
9410
 
esac
9411
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412
 
$as_echo "$ac_try_echo") >&5
9413
 
  (eval "$ac_link") 2>&5
9414
 
  ac_status=$?
9415
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9417
 
  { (case "(($ac_try" in
9418
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419
 
  *) ac_try_echo=$ac_try;;
9420
 
esac
9421
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9422
 
$as_echo "$ac_try_echo") >&5
9423
 
  (eval "$ac_try") 2>&5
9424
 
  ac_status=$?
9425
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426
 
  (exit $ac_status); }; }; then
 
9529
if ac_fn_c_try_run "$LINENO"; then :
9427
9530
  gl_cv_func_iswcntrl_works=yes
9428
9531
else
9429
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
9430
 
$as_echo "$as_me: failed program was:" >&5
9431
 
sed 's/^/| /' conftest.$ac_ext >&5
9432
 
 
9433
 
( exit $ac_status )
9434
 
gl_cv_func_iswcntrl_works=no
9435
 
fi
9436
 
rm -rf conftest.dSYM
9437
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9438
 
fi
9439
 
 
9440
 
 
9441
 
 
9442
 
fi
9443
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
 
9532
  gl_cv_func_iswcntrl_works=no
 
9533
fi
 
9534
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9535
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9536
fi
 
9537
 
 
9538
 
 
9539
fi
 
9540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
9444
9541
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
9445
9542
      if test $gl_cv_func_iswcntrl_works = yes; then
9446
 
        WCTYPE_H=
 
9543
        case "$host_os" in
 
9544
          mingw*)
 
9545
                        ;;
 
9546
          *)
 
9547
                        WCTYPE_H=
 
9548
            ;;
 
9549
        esac
9447
9550
      fi
9448
9551
    fi
9449
9552
 
9452
9555
 
9453
9556
 
9454
9557
 
9455
 
 
9456
 
 
9457
 
 
9458
 
 
9459
 
 
9460
9558
     if test $gl_cv_have_include_next = yes; then
9461
9559
       gl_cv_next_wctype_h='<'wctype.h'>'
9462
9560
     else
9463
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
 
9561
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
9464
9562
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
9465
 
if test "${gl_cv_next_wctype_h+set}" = set; then
 
9563
if test "${gl_cv_next_wctype_h+set}" = set; then :
9466
9564
  $as_echo_n "(cached) " >&6
9467
9565
else
9468
9566
 
9469
 
          if test $ac_cv_header_wctype_h = yes; then
9470
 
            cat >conftest.$ac_ext <<_ACEOF
9471
 
/* confdefs.h.  */
9472
 
_ACEOF
9473
 
cat confdefs.h >>conftest.$ac_ext
9474
 
cat >>conftest.$ac_ext <<_ACEOF
 
9567
          if test $ac_cv_header_wctype_h = yes; then
 
9568
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475
9569
/* end confdefs.h.  */
9476
9570
#include <wctype.h>
9477
9571
 
9478
9572
_ACEOF
9479
 
                                                                    case "$host_os" in
9480
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
9481
 
              *)    gl_absname_cpp="$ac_cpp" ;;
9482
 
            esac
9483
 
                                    gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9484
 
               sed -n '\#/wctype.h#{
9485
 
                 s#.*"\(.*/wctype.h\)".*#\1#
9486
 
                 s#^/[^/]#//&#
9487
 
                 p
9488
 
                 q
9489
 
               }'`'"'
9490
 
          else
9491
 
            gl_cv_next_wctype_h='<'wctype.h'>'
9492
 
          fi
 
9573
                                                                                                case "$host_os" in
 
9574
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
9575
              *)    gl_absname_cpp="$ac_cpp" ;;
 
9576
            esac
 
9577
                                                gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
9578
               sed -n '\#/wctype.h#{
 
9579
                 s#.*"\(.*/wctype.h\)".*#\1#
 
9580
                 s#^/[^/]#//&#
 
9581
                 p
 
9582
                 q
 
9583
               }'`'"'
 
9584
          else
 
9585
            gl_cv_next_wctype_h='<'wctype.h'>'
 
9586
          fi
9493
9587
 
9494
9588
fi
9495
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
 
9589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
9496
9590
$as_echo "$gl_cv_next_wctype_h" >&6; }
9497
9591
     fi
9498
9592
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
9499
9593
 
 
9594
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
9595
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
9596
       gl_next_as_first_directive='<'wctype.h'>'
 
9597
     else
 
9598
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
9599
       gl_next_as_first_directive=$gl_cv_next_wctype_h
 
9600
     fi
 
9601
     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
 
9602
 
9500
9603
 
9501
9604
 
9502
9605
    HAVE_WCTYPE_H=1
9552
9655
 
9553
9656
 
9554
9657
 
 
9658
 
9555
9659
  gl_source_base='tests'
9556
9660
 
9557
9661
 
9582
9686
# i18n support from GNU gettext.
9583
9687
 
9584
9688
 
9585
 
  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
9689
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9586
9690
$as_echo_n "checking whether NLS is requested... " >&6; }
9587
9691
    # Check whether --enable-nls was given.
9588
 
if test "${enable_nls+set}" = set; then
 
9692
if test "${enable_nls+set}" = set; then :
9589
9693
  enableval=$enable_nls; USE_NLS=$enableval
9590
9694
else
9591
9695
  USE_NLS=yes
9592
9696
fi
9593
9697
 
9594
 
  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
9698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9595
9699
$as_echo "$USE_NLS" >&6; }
9596
9700
 
9597
9701
 
9632
9736
 
9633
9737
# Extract the first word of "msgfmt", so it can be a program name with args.
9634
9738
set dummy msgfmt; ac_word=$2
9635
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636
9740
$as_echo_n "checking for $ac_word... " >&6; }
9637
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
9741
if test "${ac_cv_path_MSGFMT+set}" = set; then :
9638
9742
  $as_echo_n "(cached) " >&6
9639
9743
else
9640
9744
  case "$MSGFMT" in
9664
9768
fi
9665
9769
MSGFMT="$ac_cv_path_MSGFMT"
9666
9770
if test "$MSGFMT" != ":"; then
9667
 
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
9771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9668
9772
$as_echo "$MSGFMT" >&6; }
9669
9773
else
9670
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671
9775
$as_echo "no" >&6; }
9672
9776
fi
9673
9777
 
9674
9778
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
9675
9779
set dummy gmsgfmt; ac_word=$2
9676
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677
9781
$as_echo_n "checking for $ac_word... " >&6; }
9678
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
9782
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
9679
9783
  $as_echo_n "(cached) " >&6
9680
9784
else
9681
9785
  case $GMSGFMT in
9688
9792
do
9689
9793
  IFS=$as_save_IFS
9690
9794
  test -z "$as_dir" && as_dir=.
9691
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9795
    for ac_exec_ext in '' $ac_executable_extensions; do
9692
9796
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693
9797
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9694
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9798
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695
9799
    break 2
9696
9800
  fi
9697
9801
done
9698
 
done
 
9802
  done
9699
9803
IFS=$as_save_IFS
9700
9804
 
9701
9805
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9704
9808
fi
9705
9809
GMSGFMT=$ac_cv_path_GMSGFMT
9706
9810
if test -n "$GMSGFMT"; then
9707
 
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
9811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9708
9812
$as_echo "$GMSGFMT" >&6; }
9709
9813
else
9710
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711
9815
$as_echo "no" >&6; }
9712
9816
fi
9713
9817
 
9755
9859
 
9756
9860
# Extract the first word of "xgettext", so it can be a program name with args.
9757
9861
set dummy xgettext; ac_word=$2
9758
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759
9863
$as_echo_n "checking for $ac_word... " >&6; }
9760
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
9864
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
9761
9865
  $as_echo_n "(cached) " >&6
9762
9866
else
9763
9867
  case "$XGETTEXT" in
9787
9891
fi
9788
9892
XGETTEXT="$ac_cv_path_XGETTEXT"
9789
9893
if test "$XGETTEXT" != ":"; then
9790
 
  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
9894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9791
9895
$as_echo "$XGETTEXT" >&6; }
9792
9896
else
9793
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9897
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794
9898
$as_echo "no" >&6; }
9795
9899
fi
9796
9900
 
9833
9937
 
9834
9938
# Extract the first word of "msgmerge", so it can be a program name with args.
9835
9939
set dummy msgmerge; ac_word=$2
9836
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837
9941
$as_echo_n "checking for $ac_word... " >&6; }
9838
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
9942
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
9839
9943
  $as_echo_n "(cached) " >&6
9840
9944
else
9841
9945
  case "$MSGMERGE" in
9864
9968
fi
9865
9969
MSGMERGE="$ac_cv_path_MSGMERGE"
9866
9970
if test "$MSGMERGE" != ":"; then
9867
 
  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
9971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9868
9972
$as_echo "$MSGMERGE" >&6; }
9869
9973
else
9870
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871
9975
$as_echo "no" >&6; }
9872
9976
fi
9873
9977
 
9899
10003
 
9900
10004
 
9901
10005
# Check whether --with-gnu-ld was given.
9902
 
if test "${with_gnu_ld+set}" = set; then
 
10006
if test "${with_gnu_ld+set}" = set; then :
9903
10007
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9904
10008
else
9905
10009
  with_gnu_ld=no
9921
10025
ac_prog=ld
9922
10026
if test "$GCC" = yes; then
9923
10027
  # Check if gcc -print-prog-name=ld gives a path.
9924
 
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
10028
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9925
10029
$as_echo_n "checking for ld used by GCC... " >&6; }
9926
10030
  case $host in
9927
10031
  *-*-mingw*)
9937
10041
      # Canonicalize the path of ld
9938
10042
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9939
10043
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9940
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
10044
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9941
10045
      done
9942
10046
      test -z "$LD" && LD="$ac_prog"
9943
10047
      ;;
9951
10055
    ;;
9952
10056
  esac
9953
10057
elif test "$with_gnu_ld" = yes; then
9954
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10058
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9955
10059
$as_echo_n "checking for GNU ld... " >&6; }
9956
10060
else
9957
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10061
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9958
10062
$as_echo_n "checking for non-GNU ld... " >&6; }
9959
10063
fi
9960
 
if test "${acl_cv_path_LD+set}" = set; then
 
10064
if test "${acl_cv_path_LD+set}" = set; then :
9961
10065
  $as_echo_n "(cached) " >&6
9962
10066
else
9963
10067
  if test -z "$LD"; then
9971
10075
      # Break only if it was the GNU/non-GNU ld that we prefer.
9972
10076
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9973
10077
      *GNU* | *'with BFD'*)
9974
 
        test "$with_gnu_ld" != no && break ;;
 
10078
        test "$with_gnu_ld" != no && break ;;
9975
10079
      *)
9976
 
        test "$with_gnu_ld" != yes && break ;;
 
10080
        test "$with_gnu_ld" != yes && break ;;
9977
10081
      esac
9978
10082
    fi
9979
10083
  done
9985
10089
 
9986
10090
LD="$acl_cv_path_LD"
9987
10091
if test -n "$LD"; then
9988
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
10092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9989
10093
$as_echo "$LD" >&6; }
9990
10094
else
9991
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992
10096
$as_echo "no" >&6; }
9993
10097
fi
9994
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9995
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9996
 
   { (exit 1); exit 1; }; }
9997
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10098
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
10099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9998
10100
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9999
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
10101
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10000
10102
  $as_echo_n "(cached) " >&6
10001
10103
else
10002
10104
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10007
10109
  acl_cv_prog_gnu_ld=no ;;
10008
10110
esac
10009
10111
fi
10010
 
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
10112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10011
10113
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10012
10114
with_gnu_ld=$acl_cv_prog_gnu_ld
10013
10115
 
10014
10116
 
10015
10117
 
10016
10118
 
10017
 
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
10119
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10018
10120
$as_echo_n "checking for shared library run path origin... " >&6; }
10019
 
if test "${acl_cv_rpath+set}" = set; then
 
10121
if test "${acl_cv_rpath+set}" = set; then :
10020
10122
  $as_echo_n "(cached) " >&6
10021
10123
else
10022
10124
 
10027
10129
    acl_cv_rpath=done
10028
10130
 
10029
10131
fi
10030
 
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
10132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10031
10133
$as_echo "$acl_cv_rpath" >&6; }
10032
10134
  wl="$acl_cv_wl"
10033
10135
  acl_libext="$acl_cv_libext"
10039
10141
  acl_hardcode_direct="$acl_cv_hardcode_direct"
10040
10142
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10041
10143
    # Check whether --enable-rpath was given.
10042
 
if test "${enable_rpath+set}" = set; then
 
10144
if test "${enable_rpath+set}" = set; then :
10043
10145
  enableval=$enable_rpath; :
10044
10146
else
10045
10147
  enable_rpath=yes
10052
10154
  acl_libdirstem2=
10053
10155
  case "$host_os" in
10054
10156
    solaris*)
10055
 
                                    { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
 
10157
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10056
10158
$as_echo_n "checking for 64-bit host... " >&6; }
10057
 
if test "${gl_cv_solaris_64bit+set}" = set; then
 
10159
if test "${gl_cv_solaris_64bit+set}" = set; then :
10058
10160
  $as_echo_n "(cached) " >&6
10059
10161
else
10060
 
  cat >conftest.$ac_ext <<_ACEOF
10061
 
/* confdefs.h.  */
10062
 
_ACEOF
10063
 
cat confdefs.h >>conftest.$ac_ext
10064
 
cat >>conftest.$ac_ext <<_ACEOF
 
10162
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065
10163
/* end confdefs.h.  */
10066
10164
 
10067
10165
#ifdef _LP64
10070
10168
 
10071
10169
_ACEOF
10072
10170
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10073
 
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then
 
10171
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10074
10172
  gl_cv_solaris_64bit=yes
10075
10173
else
10076
10174
  gl_cv_solaris_64bit=no
10079
10177
 
10080
10178
 
10081
10179
fi
10082
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
 
10180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10083
10181
$as_echo "$gl_cv_solaris_64bit" >&6; }
10084
10182
      if test $gl_cv_solaris_64bit = yes; then
10085
10183
        acl_libdirstem=lib/64
10097
10195
          if test -d "$searchdir"; then
10098
10196
            case "$searchdir" in
10099
10197
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
10198
              */../ | */.. )
 
10199
                # Better ignore directories of this form. They are misleading.
 
10200
                ;;
10100
10201
              *) searchdir=`cd "$searchdir" && pwd`
10101
10202
                 case "$searchdir" in
10102
10203
                   */lib64 ) acl_libdirstem=lib64 ;;
10136
10237
 
10137
10238
 
10138
10239
# Check whether --with-libiconv-prefix was given.
10139
 
if test "${with_libiconv_prefix+set}" = set; then
 
10240
if test "${with_libiconv_prefix+set}" = set; then :
10140
10241
  withval=$with_libiconv_prefix;
10141
10242
    if test "X$withval" = "Xno"; then
10142
10243
      use_additional=no
10170
10271
  LTLIBICONV=
10171
10272
  INCICONV=
10172
10273
  LIBICONV_PREFIX=
 
10274
      HAVE_LIBICONV=
10173
10275
  rpathdirs=
10174
10276
  ltrpathdirs=
10175
10277
  names_already_handled=
10381
10483
            case "$found_dir" in
10382
10484
              */$acl_libdirstem | */$acl_libdirstem/)
10383
10485
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10384
 
                LIBICONV_PREFIX="$basedir"
 
10486
                if test "$name" = 'iconv'; then
 
10487
                  LIBICONV_PREFIX="$basedir"
 
10488
                fi
10385
10489
                additional_includedir="$basedir/include"
10386
10490
                ;;
10387
10491
              */$acl_libdirstem2 | */$acl_libdirstem2/)
10388
10492
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10389
 
                LIBICONV_PREFIX="$basedir"
 
10493
                if test "$name" = 'iconv'; then
 
10494
                  LIBICONV_PREFIX="$basedir"
 
10495
                fi
10390
10496
                additional_includedir="$basedir/include"
10391
10497
                ;;
10392
10498
            esac
10594
10700
 
10595
10701
 
10596
10702
 
10597
 
    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
10703
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10598
10704
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10599
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
10705
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
10600
10706
  $as_echo_n "(cached) " >&6
10601
10707
else
10602
10708
  gt_save_LIBS="$LIBS"
10603
10709
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10604
 
     cat >conftest.$ac_ext <<_ACEOF
10605
 
/* confdefs.h.  */
10606
 
_ACEOF
10607
 
cat confdefs.h >>conftest.$ac_ext
10608
 
cat >>conftest.$ac_ext <<_ACEOF
 
10710
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609
10711
/* end confdefs.h.  */
10610
10712
#include <CoreFoundation/CFPreferences.h>
10611
10713
int
10616
10718
  return 0;
10617
10719
}
10618
10720
_ACEOF
10619
 
rm -f conftest.$ac_objext conftest$ac_exeext
10620
 
if { (ac_try="$ac_link"
10621
 
case "(($ac_try" in
10622
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623
 
  *) ac_try_echo=$ac_try;;
10624
 
esac
10625
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626
 
$as_echo "$ac_try_echo") >&5
10627
 
  (eval "$ac_link") 2>conftest.er1
10628
 
  ac_status=$?
10629
 
  grep -v '^ *+' conftest.er1 >conftest.err
10630
 
  rm -f conftest.er1
10631
 
  cat conftest.err >&5
10632
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633
 
  (exit $ac_status); } && {
10634
 
         test -z "$ac_c_werror_flag" ||
10635
 
         test ! -s conftest.err
10636
 
       } && test -s conftest$ac_exeext && {
10637
 
         test "$cross_compiling" = yes ||
10638
 
         $as_test_x conftest$ac_exeext
10639
 
       }; then
 
10721
if ac_fn_c_try_link "$LINENO"; then :
10640
10722
  gt_cv_func_CFPreferencesCopyAppValue=yes
10641
10723
else
10642
 
  $as_echo "$as_me: failed program was:" >&5
10643
 
sed 's/^/| /' conftest.$ac_ext >&5
10644
 
 
10645
 
        gt_cv_func_CFPreferencesCopyAppValue=no
 
10724
  gt_cv_func_CFPreferencesCopyAppValue=no
10646
10725
fi
10647
 
 
10648
 
rm -rf conftest.dSYM
10649
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10650
 
      conftest$ac_exeext conftest.$ac_ext
 
10726
rm -f core conftest.err conftest.$ac_objext \
 
10727
    conftest$ac_exeext conftest.$ac_ext
10651
10728
     LIBS="$gt_save_LIBS"
10652
10729
fi
10653
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
10730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10654
10731
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10655
10732
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10656
10733
 
10657
 
cat >>confdefs.h <<\_ACEOF
10658
 
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10659
 
_ACEOF
 
10734
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10660
10735
 
10661
10736
  fi
10662
 
    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
10737
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10663
10738
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10664
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
10739
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
10665
10740
  $as_echo_n "(cached) " >&6
10666
10741
else
10667
10742
  gt_save_LIBS="$LIBS"
10668
10743
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10669
 
     cat >conftest.$ac_ext <<_ACEOF
10670
 
/* confdefs.h.  */
10671
 
_ACEOF
10672
 
cat confdefs.h >>conftest.$ac_ext
10673
 
cat >>conftest.$ac_ext <<_ACEOF
 
10744
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674
10745
/* end confdefs.h.  */
10675
10746
#include <CoreFoundation/CFLocale.h>
10676
10747
int
10681
10752
  return 0;
10682
10753
}
10683
10754
_ACEOF
10684
 
rm -f conftest.$ac_objext conftest$ac_exeext
10685
 
if { (ac_try="$ac_link"
10686
 
case "(($ac_try" in
10687
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688
 
  *) ac_try_echo=$ac_try;;
10689
 
esac
10690
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10691
 
$as_echo "$ac_try_echo") >&5
10692
 
  (eval "$ac_link") 2>conftest.er1
10693
 
  ac_status=$?
10694
 
  grep -v '^ *+' conftest.er1 >conftest.err
10695
 
  rm -f conftest.er1
10696
 
  cat conftest.err >&5
10697
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698
 
  (exit $ac_status); } && {
10699
 
         test -z "$ac_c_werror_flag" ||
10700
 
         test ! -s conftest.err
10701
 
       } && test -s conftest$ac_exeext && {
10702
 
         test "$cross_compiling" = yes ||
10703
 
         $as_test_x conftest$ac_exeext
10704
 
       }; then
 
10755
if ac_fn_c_try_link "$LINENO"; then :
10705
10756
  gt_cv_func_CFLocaleCopyCurrent=yes
10706
10757
else
10707
 
  $as_echo "$as_me: failed program was:" >&5
10708
 
sed 's/^/| /' conftest.$ac_ext >&5
10709
 
 
10710
 
        gt_cv_func_CFLocaleCopyCurrent=no
 
10758
  gt_cv_func_CFLocaleCopyCurrent=no
10711
10759
fi
10712
 
 
10713
 
rm -rf conftest.dSYM
10714
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715
 
      conftest$ac_exeext conftest.$ac_ext
 
10760
rm -f core conftest.err conftest.$ac_objext \
 
10761
    conftest$ac_exeext conftest.$ac_ext
10716
10762
     LIBS="$gt_save_LIBS"
10717
10763
fi
10718
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
10764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10719
10765
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10720
10766
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10721
10767
 
10722
 
cat >>confdefs.h <<\_ACEOF
10723
 
#define HAVE_CFLOCALECOPYCURRENT 1
10724
 
_ACEOF
 
10768
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10725
10769
 
10726
10770
  fi
10727
10771
  INTL_MACOSX_LIBS=
10766
10810
          gt_expression_test_code=
10767
10811
        fi
10768
10812
 
10769
 
        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
10813
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10770
10814
$as_echo_n "checking for GNU gettext in libc... " >&6; }
10771
 
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
 
10815
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
10772
10816
  $as_echo_n "(cached) " >&6
10773
10817
else
10774
 
  cat >conftest.$ac_ext <<_ACEOF
10775
 
/* confdefs.h.  */
10776
 
_ACEOF
10777
 
cat confdefs.h >>conftest.$ac_ext
10778
 
cat >>conftest.$ac_ext <<_ACEOF
 
10818
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779
10819
/* end confdefs.h.  */
10780
10820
#include <libintl.h>
10781
10821
$gt_revision_test_code
10790
10830
  return 0;
10791
10831
}
10792
10832
_ACEOF
10793
 
rm -f conftest.$ac_objext conftest$ac_exeext
10794
 
if { (ac_try="$ac_link"
10795
 
case "(($ac_try" in
10796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797
 
  *) ac_try_echo=$ac_try;;
10798
 
esac
10799
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800
 
$as_echo "$ac_try_echo") >&5
10801
 
  (eval "$ac_link") 2>conftest.er1
10802
 
  ac_status=$?
10803
 
  grep -v '^ *+' conftest.er1 >conftest.err
10804
 
  rm -f conftest.er1
10805
 
  cat conftest.err >&5
10806
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807
 
  (exit $ac_status); } && {
10808
 
         test -z "$ac_c_werror_flag" ||
10809
 
         test ! -s conftest.err
10810
 
       } && test -s conftest$ac_exeext && {
10811
 
         test "$cross_compiling" = yes ||
10812
 
         $as_test_x conftest$ac_exeext
10813
 
       }; then
 
10833
if ac_fn_c_try_link "$LINENO"; then :
10814
10834
  eval "$gt_func_gnugettext_libc=yes"
10815
10835
else
10816
 
  $as_echo "$as_me: failed program was:" >&5
10817
 
sed 's/^/| /' conftest.$ac_ext >&5
10818
 
 
10819
 
        eval "$gt_func_gnugettext_libc=no"
10820
 
fi
10821
 
 
10822
 
rm -rf conftest.dSYM
10823
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10824
 
      conftest$ac_exeext conftest.$ac_ext
10825
 
fi
10826
 
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
10827
 
                 $as_echo "$as_val"'`
10828
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
10836
  eval "$gt_func_gnugettext_libc=no"
 
10837
fi
 
10838
rm -f core conftest.err conftest.$ac_objext \
 
10839
    conftest$ac_exeext conftest.$ac_ext
 
10840
fi
 
10841
eval ac_res=\$$gt_func_gnugettext_libc
 
10842
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10829
10843
$as_echo "$ac_res" >&6; }
10830
10844
 
10831
10845
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10859
10873
  done
10860
10874
 
10861
10875
 
10862
 
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
10876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10863
10877
$as_echo_n "checking for iconv... " >&6; }
10864
 
if test "${am_cv_func_iconv+set}" = set; then
 
10878
if test "${am_cv_func_iconv+set}" = set; then :
10865
10879
  $as_echo_n "(cached) " >&6
10866
10880
else
10867
10881
 
10868
10882
    am_cv_func_iconv="no, consider installing GNU libiconv"
10869
10883
    am_cv_lib_iconv=no
10870
 
    cat >conftest.$ac_ext <<_ACEOF
10871
 
/* confdefs.h.  */
10872
 
_ACEOF
10873
 
cat confdefs.h >>conftest.$ac_ext
10874
 
cat >>conftest.$ac_ext <<_ACEOF
 
10884
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875
10885
/* end confdefs.h.  */
10876
10886
#include <stdlib.h>
10877
10887
#include <iconv.h>
10885
10895
  return 0;
10886
10896
}
10887
10897
_ACEOF
10888
 
rm -f conftest.$ac_objext conftest$ac_exeext
10889
 
if { (ac_try="$ac_link"
10890
 
case "(($ac_try" in
10891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892
 
  *) ac_try_echo=$ac_try;;
10893
 
esac
10894
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895
 
$as_echo "$ac_try_echo") >&5
10896
 
  (eval "$ac_link") 2>conftest.er1
10897
 
  ac_status=$?
10898
 
  grep -v '^ *+' conftest.er1 >conftest.err
10899
 
  rm -f conftest.er1
10900
 
  cat conftest.err >&5
10901
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902
 
  (exit $ac_status); } && {
10903
 
         test -z "$ac_c_werror_flag" ||
10904
 
         test ! -s conftest.err
10905
 
       } && test -s conftest$ac_exeext && {
10906
 
         test "$cross_compiling" = yes ||
10907
 
         $as_test_x conftest$ac_exeext
10908
 
       }; then
 
10898
if ac_fn_c_try_link "$LINENO"; then :
10909
10899
  am_cv_func_iconv=yes
10910
 
else
10911
 
  $as_echo "$as_me: failed program was:" >&5
10912
 
sed 's/^/| /' conftest.$ac_ext >&5
10913
 
 
10914
 
 
10915
10900
fi
10916
 
 
10917
 
rm -rf conftest.dSYM
10918
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10919
 
      conftest$ac_exeext conftest.$ac_ext
 
10901
rm -f core conftest.err conftest.$ac_objext \
 
10902
    conftest$ac_exeext conftest.$ac_ext
10920
10903
    if test "$am_cv_func_iconv" != yes; then
10921
10904
      am_save_LIBS="$LIBS"
10922
10905
      LIBS="$LIBS $LIBICONV"
10923
 
      cat >conftest.$ac_ext <<_ACEOF
10924
 
/* confdefs.h.  */
10925
 
_ACEOF
10926
 
cat confdefs.h >>conftest.$ac_ext
10927
 
cat >>conftest.$ac_ext <<_ACEOF
 
10906
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928
10907
/* end confdefs.h.  */
10929
10908
#include <stdlib.h>
10930
10909
#include <iconv.h>
10938
10917
  return 0;
10939
10918
}
10940
10919
_ACEOF
10941
 
rm -f conftest.$ac_objext conftest$ac_exeext
10942
 
if { (ac_try="$ac_link"
10943
 
case "(($ac_try" in
10944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945
 
  *) ac_try_echo=$ac_try;;
10946
 
esac
10947
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948
 
$as_echo "$ac_try_echo") >&5
10949
 
  (eval "$ac_link") 2>conftest.er1
10950
 
  ac_status=$?
10951
 
  grep -v '^ *+' conftest.er1 >conftest.err
10952
 
  rm -f conftest.er1
10953
 
  cat conftest.err >&5
10954
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955
 
  (exit $ac_status); } && {
10956
 
         test -z "$ac_c_werror_flag" ||
10957
 
         test ! -s conftest.err
10958
 
       } && test -s conftest$ac_exeext && {
10959
 
         test "$cross_compiling" = yes ||
10960
 
         $as_test_x conftest$ac_exeext
10961
 
       }; then
 
10920
if ac_fn_c_try_link "$LINENO"; then :
10962
10921
  am_cv_lib_iconv=yes
10963
10922
        am_cv_func_iconv=yes
10964
 
else
10965
 
  $as_echo "$as_me: failed program was:" >&5
10966
 
sed 's/^/| /' conftest.$ac_ext >&5
10967
 
 
10968
 
 
10969
10923
fi
10970
 
 
10971
 
rm -rf conftest.dSYM
10972
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973
 
      conftest$ac_exeext conftest.$ac_ext
 
10924
rm -f core conftest.err conftest.$ac_objext \
 
10925
    conftest$ac_exeext conftest.$ac_ext
10974
10926
      LIBS="$am_save_LIBS"
10975
10927
    fi
10976
10928
 
10977
10929
fi
10978
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
10930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10979
10931
$as_echo "$am_cv_func_iconv" >&6; }
10980
10932
  if test "$am_cv_func_iconv" = yes; then
10981
 
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
10933
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10982
10934
$as_echo_n "checking for working iconv... " >&6; }
10983
 
if test "${am_cv_func_iconv_works+set}" = set; then
 
10935
if test "${am_cv_func_iconv_works+set}" = set; then :
10984
10936
  $as_echo_n "(cached) " >&6
10985
10937
else
10986
10938
 
10988
10940
      if test $am_cv_lib_iconv = yes; then
10989
10941
        LIBS="$LIBS $LIBICONV"
10990
10942
      fi
10991
 
      if test "$cross_compiling" = yes; then
 
10943
      if test "$cross_compiling" = yes; then :
10992
10944
  case "$host_os" in
10993
10945
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10994
10946
           *)            am_cv_func_iconv_works="guessing yes" ;;
10995
10947
         esac
10996
10948
else
10997
 
  cat >conftest.$ac_ext <<_ACEOF
10998
 
/* confdefs.h.  */
10999
 
_ACEOF
11000
 
cat confdefs.h >>conftest.$ac_ext
11001
 
cat >>conftest.$ac_ext <<_ACEOF
 
10949
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002
10950
/* end confdefs.h.  */
11003
10951
 
11004
10952
#include <iconv.h>
11024
10972
          return 1;
11025
10973
      }
11026
10974
  }
 
10975
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
10976
     successful returns.  */
 
10977
  {
 
10978
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
10979
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
10980
      {
 
10981
        static const char input[] = "\263";
 
10982
        char buf[10];
 
10983
        const char *inptr = input;
 
10984
        size_t inbytesleft = strlen (input);
 
10985
        char *outptr = buf;
 
10986
        size_t outbytesleft = sizeof (buf);
 
10987
        size_t res = iconv (cd_ascii_to_88591,
 
10988
                            (char **) &inptr, &inbytesleft,
 
10989
                            &outptr, &outbytesleft);
 
10990
        if (res == 0)
 
10991
          return 1;
 
10992
      }
 
10993
  }
11027
10994
#if 0 /* This bug could be worked around by the caller.  */
11028
10995
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11029
10996
  {
11058
11025
  return 0;
11059
11026
}
11060
11027
_ACEOF
11061
 
rm -f conftest$ac_exeext
11062
 
if { (ac_try="$ac_link"
11063
 
case "(($ac_try" in
11064
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065
 
  *) ac_try_echo=$ac_try;;
11066
 
esac
11067
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11068
 
$as_echo "$ac_try_echo") >&5
11069
 
  (eval "$ac_link") 2>&5
11070
 
  ac_status=$?
11071
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11073
 
  { (case "(($ac_try" in
11074
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075
 
  *) ac_try_echo=$ac_try;;
11076
 
esac
11077
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11078
 
$as_echo "$ac_try_echo") >&5
11079
 
  (eval "$ac_try") 2>&5
11080
 
  ac_status=$?
11081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
 
  (exit $ac_status); }; }; then
 
11028
if ac_fn_c_try_run "$LINENO"; then :
11083
11029
  am_cv_func_iconv_works=yes
11084
11030
else
11085
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
11086
 
$as_echo "$as_me: failed program was:" >&5
11087
 
sed 's/^/| /' conftest.$ac_ext >&5
11088
 
 
11089
 
( exit $ac_status )
11090
 
am_cv_func_iconv_works=no
11091
 
fi
11092
 
rm -rf conftest.dSYM
11093
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094
 
fi
11095
 
 
 
11031
  am_cv_func_iconv_works=no
 
11032
fi
 
11033
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11034
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11035
fi
11096
11036
 
11097
11037
      LIBS="$am_save_LIBS"
11098
11038
 
11099
11039
fi
11100
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
11040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11101
11041
$as_echo "$am_cv_func_iconv_works" >&6; }
11102
11042
    case "$am_cv_func_iconv_works" in
11103
11043
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11108
11048
  fi
11109
11049
  if test "$am_func_iconv" = yes; then
11110
11050
 
11111
 
cat >>confdefs.h <<\_ACEOF
11112
 
#define HAVE_ICONV 1
11113
 
_ACEOF
 
11051
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11114
11052
 
11115
11053
  fi
11116
11054
  if test "$am_cv_lib_iconv" = yes; then
11117
 
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
11055
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11118
11056
$as_echo_n "checking how to link with libiconv... " >&6; }
11119
 
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
11057
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11120
11058
$as_echo "$LIBICONV" >&6; }
11121
11059
  else
11122
11060
            CPPFLAGS="$am_save_CPPFLAGS"
11149
11087
 
11150
11088
 
11151
11089
# Check whether --with-libintl-prefix was given.
11152
 
if test "${with_libintl_prefix+set}" = set; then
 
11090
if test "${with_libintl_prefix+set}" = set; then :
11153
11091
  withval=$with_libintl_prefix;
11154
11092
    if test "X$withval" = "Xno"; then
11155
11093
      use_additional=no
11183
11121
  LTLIBINTL=
11184
11122
  INCINTL=
11185
11123
  LIBINTL_PREFIX=
 
11124
      HAVE_LIBINTL=
11186
11125
  rpathdirs=
11187
11126
  ltrpathdirs=
11188
11127
  names_already_handled=
11394
11333
            case "$found_dir" in
11395
11334
              */$acl_libdirstem | */$acl_libdirstem/)
11396
11335
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11397
 
                LIBINTL_PREFIX="$basedir"
 
11336
                if test "$name" = 'intl'; then
 
11337
                  LIBINTL_PREFIX="$basedir"
 
11338
                fi
11398
11339
                additional_includedir="$basedir/include"
11399
11340
                ;;
11400
11341
              */$acl_libdirstem2 | */$acl_libdirstem2/)
11401
11342
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11402
 
                LIBINTL_PREFIX="$basedir"
 
11343
                if test "$name" = 'intl'; then
 
11344
                  LIBINTL_PREFIX="$basedir"
 
11345
                fi
11403
11346
                additional_includedir="$basedir/include"
11404
11347
                ;;
11405
11348
            esac
11583
11526
 
11584
11527
 
11585
11528
 
11586
 
          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
11529
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11587
11530
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
11588
 
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
 
11531
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
11589
11532
  $as_echo_n "(cached) " >&6
11590
11533
else
11591
11534
  gt_save_CPPFLAGS="$CPPFLAGS"
11592
11535
            CPPFLAGS="$CPPFLAGS $INCINTL"
11593
11536
            gt_save_LIBS="$LIBS"
11594
11537
            LIBS="$LIBS $LIBINTL"
11595
 
                        cat >conftest.$ac_ext <<_ACEOF
11596
 
/* confdefs.h.  */
11597
 
_ACEOF
11598
 
cat confdefs.h >>conftest.$ac_ext
11599
 
cat >>conftest.$ac_ext <<_ACEOF
 
11538
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600
11539
/* end confdefs.h.  */
11601
11540
#include <libintl.h>
11602
11541
$gt_revision_test_code
11615
11554
  return 0;
11616
11555
}
11617
11556
_ACEOF
11618
 
rm -f conftest.$ac_objext conftest$ac_exeext
11619
 
if { (ac_try="$ac_link"
11620
 
case "(($ac_try" in
11621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622
 
  *) ac_try_echo=$ac_try;;
11623
 
esac
11624
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11625
 
$as_echo "$ac_try_echo") >&5
11626
 
  (eval "$ac_link") 2>conftest.er1
11627
 
  ac_status=$?
11628
 
  grep -v '^ *+' conftest.er1 >conftest.err
11629
 
  rm -f conftest.er1
11630
 
  cat conftest.err >&5
11631
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632
 
  (exit $ac_status); } && {
11633
 
         test -z "$ac_c_werror_flag" ||
11634
 
         test ! -s conftest.err
11635
 
       } && test -s conftest$ac_exeext && {
11636
 
         test "$cross_compiling" = yes ||
11637
 
         $as_test_x conftest$ac_exeext
11638
 
       }; then
 
11557
if ac_fn_c_try_link "$LINENO"; then :
11639
11558
  eval "$gt_func_gnugettext_libintl=yes"
11640
11559
else
11641
 
  $as_echo "$as_me: failed program was:" >&5
11642
 
sed 's/^/| /' conftest.$ac_ext >&5
11643
 
 
11644
 
        eval "$gt_func_gnugettext_libintl=no"
 
11560
  eval "$gt_func_gnugettext_libintl=no"
11645
11561
fi
11646
 
 
11647
 
rm -rf conftest.dSYM
11648
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649
 
      conftest$ac_exeext conftest.$ac_ext
 
11562
rm -f core conftest.err conftest.$ac_objext \
 
11563
    conftest$ac_exeext conftest.$ac_ext
11650
11564
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11651
11565
              LIBS="$LIBS $LIBICONV"
11652
 
              cat >conftest.$ac_ext <<_ACEOF
11653
 
/* confdefs.h.  */
11654
 
_ACEOF
11655
 
cat confdefs.h >>conftest.$ac_ext
11656
 
cat >>conftest.$ac_ext <<_ACEOF
 
11566
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657
11567
/* end confdefs.h.  */
11658
11568
#include <libintl.h>
11659
11569
$gt_revision_test_code
11672
11582
  return 0;
11673
11583
}
11674
11584
_ACEOF
11675
 
rm -f conftest.$ac_objext conftest$ac_exeext
11676
 
if { (ac_try="$ac_link"
11677
 
case "(($ac_try" in
11678
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679
 
  *) ac_try_echo=$ac_try;;
11680
 
esac
11681
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682
 
$as_echo "$ac_try_echo") >&5
11683
 
  (eval "$ac_link") 2>conftest.er1
11684
 
  ac_status=$?
11685
 
  grep -v '^ *+' conftest.er1 >conftest.err
11686
 
  rm -f conftest.er1
11687
 
  cat conftest.err >&5
11688
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689
 
  (exit $ac_status); } && {
11690
 
         test -z "$ac_c_werror_flag" ||
11691
 
         test ! -s conftest.err
11692
 
       } && test -s conftest$ac_exeext && {
11693
 
         test "$cross_compiling" = yes ||
11694
 
         $as_test_x conftest$ac_exeext
11695
 
       }; then
 
11585
if ac_fn_c_try_link "$LINENO"; then :
11696
11586
  LIBINTL="$LIBINTL $LIBICONV"
11697
11587
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11698
11588
                eval "$gt_func_gnugettext_libintl=yes"
11699
11589
 
11700
 
else
11701
 
  $as_echo "$as_me: failed program was:" >&5
11702
 
sed 's/^/| /' conftest.$ac_ext >&5
11703
 
 
11704
 
 
11705
11590
fi
11706
 
 
11707
 
rm -rf conftest.dSYM
11708
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11709
 
      conftest$ac_exeext conftest.$ac_ext
 
11591
rm -f core conftest.err conftest.$ac_objext \
 
11592
    conftest$ac_exeext conftest.$ac_ext
11710
11593
            fi
11711
11594
            CPPFLAGS="$gt_save_CPPFLAGS"
11712
11595
            LIBS="$gt_save_LIBS"
11713
11596
fi
11714
 
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
11715
 
                 $as_echo "$as_val"'`
11716
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
11597
eval ac_res=\$$gt_func_gnugettext_libintl
 
11598
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11717
11599
$as_echo "$ac_res" >&6; }
11718
11600
        fi
11719
11601
 
11741
11623
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11742
11624
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11743
11625
 
11744
 
cat >>confdefs.h <<\_ACEOF
11745
 
#define ENABLE_NLS 1
11746
 
_ACEOF
 
11626
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11747
11627
 
11748
11628
    else
11749
11629
      USE_NLS=no
11750
11630
    fi
11751
11631
  fi
11752
11632
 
11753
 
  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
11633
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11754
11634
$as_echo_n "checking whether to use NLS... " >&6; }
11755
 
  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
11635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11756
11636
$as_echo "$USE_NLS" >&6; }
11757
11637
  if test "$USE_NLS" = "yes"; then
11758
 
    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
11638
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11759
11639
$as_echo_n "checking where the gettext function comes from... " >&6; }
11760
11640
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11761
11641
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11766
11646
    else
11767
11647
      gt_source="included intl directory"
11768
11648
    fi
11769
 
    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
 
11649
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11770
11650
$as_echo "$gt_source" >&6; }
11771
11651
  fi
11772
11652
 
11774
11654
 
11775
11655
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11776
11656
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11777
 
        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
11657
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11778
11658
$as_echo_n "checking how to link with libintl... " >&6; }
11779
 
        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
11659
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11780
11660
$as_echo "$LIBINTL" >&6; }
11781
11661
 
11782
11662
  for element in $INCINTL; do
11804
11684
      fi
11805
11685
 
11806
11686
 
11807
 
cat >>confdefs.h <<\_ACEOF
11808
 
#define HAVE_GETTEXT 1
11809
 
_ACEOF
11810
 
 
11811
 
 
11812
 
cat >>confdefs.h <<\_ACEOF
11813
 
#define HAVE_DCGETTEXT 1
11814
 
_ACEOF
 
11687
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
11688
 
 
11689
 
 
11690
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11815
11691
 
11816
11692
    fi
11817
11693
 
11857
11733
    case $ac_val in #(
11858
11734
    *${as_nl}*)
11859
11735
      case $ac_var in #(
11860
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
11736
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11861
11737
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11862
11738
      esac
11863
11739
      case $ac_var in #(
11864
11740
      _ | IFS | as_nl) ;; #(
11865
11741
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11866
 
      *) $as_unset $ac_var ;;
 
11742
      *) { eval $ac_var=; unset $ac_var;} ;;
11867
11743
      esac ;;
11868
11744
    esac
11869
11745
  done
11871
11747
  (set) 2>&1 |
11872
11748
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11873
11749
    *${as_nl}ac_space=\ *)
11874
 
      # `set' does not quote correctly, so add quotes (double-quote
11875
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
11750
      # `set' does not quote correctly, so add quotes: double-quote
 
11751
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11876
11752
      sed -n \
11877
11753
        "s/'/'\\\\''/g;
11878
11754
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11895
11771
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11896
11772
  if test -w "$cache_file"; then
11897
11773
    test "x$cache_file" != "x/dev/null" &&
11898
 
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
11774
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11899
11775
$as_echo "$as_me: updating cache $cache_file" >&6;}
11900
11776
    cat confcache >$cache_file
11901
11777
  else
11902
 
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
11778
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11903
11779
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11904
11780
  fi
11905
11781
fi
11919
11795
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11920
11796
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11921
11797
  #    will be set to the directory where LIBOBJS objects are built.
11922
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11923
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
11798
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
11799
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11924
11800
done
11925
11801
LIBOBJS=$ac_libobjs
11926
11802
 
11927
11803
LTLIBOBJS=$ac_ltlibobjs
11928
11804
 
11929
11805
 
 
11806
 if test -n "$EXEEXT"; then
 
11807
  am__EXEEXT_TRUE=
 
11808
  am__EXEEXT_FALSE='#'
 
11809
else
 
11810
  am__EXEEXT_TRUE='#'
 
11811
  am__EXEEXT_FALSE=
 
11812
fi
 
11813
 
11930
11814
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11931
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11932
 
Usually this means the macro was only invoked conditionally." >&5
11933
 
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11934
 
Usually this means the macro was only invoked conditionally." >&2;}
11935
 
   { (exit 1); exit 1; }; }
 
11815
  as_fn_error "conditional \"AMDEP\" was never defined.
 
11816
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11936
11817
fi
11937
11818
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11938
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11939
 
Usually this means the macro was only invoked conditionally." >&5
11940
 
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11941
 
Usually this means the macro was only invoked conditionally." >&2;}
11942
 
   { (exit 1); exit 1; }; }
 
11819
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
11820
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11943
11821
fi
11944
11822
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
11945
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
11946
 
Usually this means the macro was only invoked conditionally." >&5
11947
 
$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
11948
 
Usually this means the macro was only invoked conditionally." >&2;}
11949
 
   { (exit 1); exit 1; }; }
 
11823
  as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
 
11824
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11950
11825
fi
11951
11826
 
11952
11827
    gl_libobjs=
11954
11829
    if test -n "$gl_LIBOBJS"; then
11955
11830
      # Remove the extension.
11956
11831
      sed_drop_objext='s/\.o$//;s/\.obj$//'
11957
 
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
11832
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
11958
11833
        gl_libobjs="$gl_libobjs $i.$ac_objext"
11959
11834
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
11960
11835
      done
11970
11845
    if test -n "$gltests_LIBOBJS"; then
11971
11846
      # Remove the extension.
11972
11847
      sed_drop_objext='s/\.o$//;s/\.obj$//'
11973
 
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
11848
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
11974
11849
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
11975
11850
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
11976
11851
      done
11985
11860
ac_write_fail=0
11986
11861
ac_clean_files_save=$ac_clean_files
11987
11862
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11988
 
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11989
11864
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11990
 
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11865
as_write_fail=0
 
11866
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11991
11867
#! $SHELL
11992
11868
# Generated by $as_me.
11993
11869
# Run this file to recreate the current configuration.
11997
11873
debug=false
11998
11874
ac_cs_recheck=false
11999
11875
ac_cs_silent=false
 
11876
 
12000
11877
SHELL=\${CONFIG_SHELL-$SHELL}
12001
 
_ACEOF
12002
 
 
12003
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12004
 
## --------------------- ##
12005
 
## M4sh Initialization.  ##
12006
 
## --------------------- ##
 
11878
export SHELL
 
11879
_ASEOF
 
11880
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
11881
## -------------------- ##
 
11882
## M4sh Initialization. ##
 
11883
## -------------------- ##
12007
11884
 
12008
11885
# Be more Bourne compatible
12009
11886
DUALCASE=1; export DUALCASE # for MKS sh
12010
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
11887
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12011
11888
  emulate sh
12012
11889
  NULLCMD=:
12013
11890
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12015
11892
  alias -g '${1+"$@"}'='"$@"'
12016
11893
  setopt NO_GLOB_SUBST
12017
11894
else
12018
 
  case `(set -o) 2>/dev/null` in
12019
 
  *posix*) set -o posix ;;
 
11895
  case `(set -o) 2>/dev/null` in #(
 
11896
  *posix*) :
 
11897
    set -o posix ;; #(
 
11898
  *) :
 
11899
     ;;
12020
11900
esac
12021
 
 
12022
11901
fi
12023
11902
 
12024
11903
 
12025
 
 
12026
 
 
12027
 
# PATH needs CR
12028
 
# Avoid depending upon Character Ranges.
12029
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032
 
as_cr_digits='0123456789'
12033
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
12034
 
 
12035
11904
as_nl='
12036
11905
'
12037
11906
export as_nl
12039
11908
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12040
11909
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12041
11910
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12042
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11911
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
11912
# but without wasting forks for bash or zsh.
 
11913
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
11914
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11915
  as_echo='print -r --'
 
11916
  as_echo_n='print -rn --'
 
11917
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12043
11918
  as_echo='printf %s\n'
12044
11919
  as_echo_n='printf %s'
12045
11920
else
12050
11925
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12051
11926
    as_echo_n_body='eval
12052
11927
      arg=$1;
12053
 
      case $arg in
 
11928
      case $arg in #(
12054
11929
      *"$as_nl"*)
12055
11930
        expr "X$arg" : "X\\(.*\\)$as_nl";
12056
11931
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12073
11948
  }
12074
11949
fi
12075
11950
 
12076
 
# Support unset when possible.
12077
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12078
 
  as_unset=unset
12079
 
else
12080
 
  as_unset=false
12081
 
fi
12082
 
 
12083
11951
 
12084
11952
# IFS
12085
11953
# We need space, tab and new line, in precisely that order.  Quoting is
12089
11957
IFS=" ""        $as_nl"
12090
11958
 
12091
11959
# Find who we are.  Look in the path if we contain no directory separator.
12092
 
case $0 in
 
11960
case $0 in #((
12093
11961
  *[\\/]* ) as_myself=$0 ;;
12094
11962
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095
11963
for as_dir in $PATH
12096
11964
do
12097
11965
  IFS=$as_save_IFS
12098
11966
  test -z "$as_dir" && as_dir=.
12099
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12100
 
done
 
11967
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
11968
  done
12101
11969
IFS=$as_save_IFS
12102
11970
 
12103
11971
     ;;
12109
11977
fi
12110
11978
if test ! -f "$as_myself"; then
12111
11979
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12112
 
  { (exit 1); exit 1; }
 
11980
  exit 1
12113
11981
fi
12114
11982
 
12115
 
# Work around bugs in pre-3.0 UWIN ksh.
12116
 
for as_var in ENV MAIL MAILPATH
12117
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
11983
# Unset variables that we do not need and which cause bugs (e.g. in
 
11984
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
11985
# suppresses any "Segmentation fault" message there.  '((' could
 
11986
# trigger a bug in pdksh 5.2.14.
 
11987
for as_var in BASH_ENV ENV MAIL MAILPATH
 
11988
do eval test x\${$as_var+set} = xset \
 
11989
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12118
11990
done
12119
11991
PS1='$ '
12120
11992
PS2='> '
12126
11998
LANGUAGE=C
12127
11999
export LANGUAGE
12128
12000
 
12129
 
# Required to use basename.
 
12001
# CDPATH.
 
12002
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12003
 
 
12004
 
 
12005
# as_fn_error ERROR [LINENO LOG_FD]
 
12006
# ---------------------------------
 
12007
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
12008
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
12009
# script with status $?, using 1 if that was 0.
 
12010
as_fn_error ()
 
12011
{
 
12012
  as_status=$?; test $as_status -eq 0 && as_status=1
 
12013
  if test "$3"; then
 
12014
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
12015
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
12016
  fi
 
12017
  $as_echo "$as_me: error: $1" >&2
 
12018
  as_fn_exit $as_status
 
12019
} # as_fn_error
 
12020
 
 
12021
 
 
12022
# as_fn_set_status STATUS
 
12023
# -----------------------
 
12024
# Set $? to STATUS, without forking.
 
12025
as_fn_set_status ()
 
12026
{
 
12027
  return $1
 
12028
} # as_fn_set_status
 
12029
 
 
12030
# as_fn_exit STATUS
 
12031
# -----------------
 
12032
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
12033
as_fn_exit ()
 
12034
{
 
12035
  set +e
 
12036
  as_fn_set_status $1
 
12037
  exit $1
 
12038
} # as_fn_exit
 
12039
 
 
12040
# as_fn_unset VAR
 
12041
# ---------------
 
12042
# Portably unset VAR.
 
12043
as_fn_unset ()
 
12044
{
 
12045
  { eval $1=; unset $1;}
 
12046
}
 
12047
as_unset=as_fn_unset
 
12048
# as_fn_append VAR VALUE
 
12049
# ----------------------
 
12050
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
12051
# advantage of any shell optimizations that allow amortized linear growth over
 
12052
# repeated appends, instead of the typical quadratic growth present in naive
 
12053
# implementations.
 
12054
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
12055
  eval 'as_fn_append ()
 
12056
  {
 
12057
    eval $1+=\$2
 
12058
  }'
 
12059
else
 
12060
  as_fn_append ()
 
12061
  {
 
12062
    eval $1=\$$1\$2
 
12063
  }
 
12064
fi # as_fn_append
 
12065
 
 
12066
# as_fn_arith ARG...
 
12067
# ------------------
 
12068
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
12069
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
12070
# must be portable across $(()) and expr.
 
12071
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
12072
  eval 'as_fn_arith ()
 
12073
  {
 
12074
    as_val=$(( $* ))
 
12075
  }'
 
12076
else
 
12077
  as_fn_arith ()
 
12078
  {
 
12079
    as_val=`expr "$@" || test $? -eq 1`
 
12080
  }
 
12081
fi # as_fn_arith
 
12082
 
 
12083
 
12130
12084
if expr a : '\(a\)' >/dev/null 2>&1 &&
12131
12085
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12132
12086
  as_expr=expr
12140
12094
  as_basename=false
12141
12095
fi
12142
12096
 
 
12097
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
12098
  as_dirname=dirname
 
12099
else
 
12100
  as_dirname=false
 
12101
fi
12143
12102
 
12144
 
# Name of the executable.
12145
12103
as_me=`$as_basename -- "$0" ||
12146
12104
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12147
12105
         X"$0" : 'X\(//\)$' \| \
12161
12119
          }
12162
12120
          s/.*/./; q'`
12163
12121
 
12164
 
# CDPATH.
12165
 
$as_unset CDPATH
12166
 
 
12167
 
 
12168
 
 
12169
 
  as_lineno_1=$LINENO
12170
 
  as_lineno_2=$LINENO
12171
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12172
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12173
 
 
12174
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12175
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
12176
 
  # line-number line after each line using $LINENO; the second 'sed'
12177
 
  # does the real work.  The second script uses 'N' to pair each
12178
 
  # line-number line with the line containing $LINENO, and appends
12179
 
  # trailing '-' during substitution so that $LINENO is not a special
12180
 
  # case at line end.
12181
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12182
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12183
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
12184
 
  sed -n '
12185
 
    p
12186
 
    /[$]LINENO/=
12187
 
  ' <$as_myself |
12188
 
    sed '
12189
 
      s/[$]LINENO.*/&-/
12190
 
      t lineno
12191
 
      b
12192
 
      :lineno
12193
 
      N
12194
 
      :loop
12195
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12196
 
      t loop
12197
 
      s/-\n.*//
12198
 
    ' >$as_me.lineno &&
12199
 
  chmod +x "$as_me.lineno" ||
12200
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12201
 
   { (exit 1); exit 1; }; }
12202
 
 
12203
 
  # Don't try to exec as it changes $[0], causing all sort of problems
12204
 
  # (the dirname of $[0] is not the place where we might find the
12205
 
  # original and so on.  Autoconf is especially sensitive to this).
12206
 
  . "./$as_me.lineno"
12207
 
  # Exit status is that of the last command.
12208
 
  exit
12209
 
}
12210
 
 
12211
 
 
12212
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12213
 
  as_dirname=dirname
12214
 
else
12215
 
  as_dirname=false
12216
 
fi
 
12122
# Avoid depending upon Character Ranges.
 
12123
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
12124
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
12125
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
12126
as_cr_digits='0123456789'
 
12127
as_cr_alnum=$as_cr_Letters$as_cr_digits
12217
12128
 
12218
12129
ECHO_C= ECHO_N= ECHO_T=
12219
 
case `echo -n x` in
 
12130
case `echo -n x` in #(((((
12220
12131
-n*)
12221
 
  case `echo 'x\c'` in
 
12132
  case `echo 'xy\c'` in
12222
12133
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12223
 
  *)   ECHO_C='\c';;
 
12134
  xy)  ECHO_C='\c';;
 
12135
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
12136
       ECHO_T=' ';;
12224
12137
  esac;;
12225
12138
*)
12226
12139
  ECHO_N='-n';;
12227
12140
esac
12228
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
12229
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12230
 
  as_expr=expr
12231
 
else
12232
 
  as_expr=false
12233
 
fi
12234
12141
 
12235
12142
rm -f conf$$ conf$$.exe conf$$.file
12236
12143
if test -d conf$$.dir; then
12259
12166
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12260
12167
rmdir conf$$.dir 2>/dev/null
12261
12168
 
 
12169
 
 
12170
# as_fn_mkdir_p
 
12171
# -------------
 
12172
# Create "$as_dir" as a directory, including parents if necessary.
 
12173
as_fn_mkdir_p ()
 
12174
{
 
12175
 
 
12176
  case $as_dir in #(
 
12177
  -*) as_dir=./$as_dir;;
 
12178
  esac
 
12179
  test -d "$as_dir" || eval $as_mkdir_p || {
 
12180
    as_dirs=
 
12181
    while :; do
 
12182
      case $as_dir in #(
 
12183
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
12184
      *) as_qdir=$as_dir;;
 
12185
      esac
 
12186
      as_dirs="'$as_qdir' $as_dirs"
 
12187
      as_dir=`$as_dirname -- "$as_dir" ||
 
12188
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12189
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12190
         X"$as_dir" : 'X\(//\)$' \| \
 
12191
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12192
$as_echo X"$as_dir" |
 
12193
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12194
            s//\1/
 
12195
            q
 
12196
          }
 
12197
          /^X\(\/\/\)[^/].*/{
 
12198
            s//\1/
 
12199
            q
 
12200
          }
 
12201
          /^X\(\/\/\)$/{
 
12202
            s//\1/
 
12203
            q
 
12204
          }
 
12205
          /^X\(\/\).*/{
 
12206
            s//\1/
 
12207
            q
 
12208
          }
 
12209
          s/.*/./; q'`
 
12210
      test -d "$as_dir" && break
 
12211
    done
 
12212
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12213
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
12214
 
 
12215
 
 
12216
} # as_fn_mkdir_p
12262
12217
if mkdir -p . 2>/dev/null; then
12263
 
  as_mkdir_p=:
 
12218
  as_mkdir_p='mkdir -p "$as_dir"'
12264
12219
else
12265
12220
  test -d ./-p && rmdir ./-p
12266
12221
  as_mkdir_p=false
12279
12234
      if test -d "$1"; then
12280
12235
        test -d "$1/.";
12281
12236
      else
12282
 
        case $1 in
 
12237
        case $1 in #(
12283
12238
        -*)set "./$1";;
12284
12239
        esac;
12285
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
12240
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12286
12241
        ???[sx]*):;;*)false;;esac;fi
12287
12242
    '\'' sh
12288
12243
  '
12297
12252
 
12298
12253
 
12299
12254
exec 6>&1
 
12255
## ----------------------------------- ##
 
12256
## Main body of $CONFIG_STATUS script. ##
 
12257
## ----------------------------------- ##
 
12258
_ASEOF
 
12259
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12300
12260
 
12301
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
12261
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12262
# Save the log message, to keep $0 and so on meaningful, and to
12302
12263
# report actual input values of CONFIG_FILES etc. instead of their
12303
12264
# values after options handling.
12304
12265
ac_log="
12305
 
This file was extended by GNU Hello $as_me 2.4, which was
12306
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
12266
This file was extended by GNU Hello $as_me 2.5, which was
 
12267
generated by GNU Autoconf 2.65.  Invocation command line was
12307
12268
 
12308
12269
  CONFIG_FILES    = $CONFIG_FILES
12309
12270
  CONFIG_HEADERS  = $CONFIG_HEADERS
12335
12296
 
12336
12297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337
12298
ac_cs_usage="\
12338
 
\`$as_me' instantiates files from templates according to the
12339
 
current configuration.
 
12299
\`$as_me' instantiates files and other configuration actions
 
12300
from templates according to the current configuration.  Unless the files
 
12301
and actions are specified as TAGs, all are instantiated by default.
12340
12302
 
12341
 
Usage: $0 [OPTION]... [FILE]...
 
12303
Usage: $0 [OPTION]... [TAG]...
12342
12304
 
12343
12305
  -h, --help       print this help, then exit
12344
12306
  -V, --version    print version number and configuration settings, then exit
 
12307
      --config     print configuration, then exit
12345
12308
  -q, --quiet, --silent
12346
12309
                   do not print progress messages
12347
12310
  -d, --debug      don't remove temporary files
12360
12323
Configuration commands:
12361
12324
$config_commands
12362
12325
 
12363
 
Report bugs to <bug-autoconf@gnu.org>."
 
12326
Report bugs to <bug-hello@gnu.org>.
 
12327
GNU Hello home page: <http://www.gnu.org/software/hello/>.
 
12328
General help using GNU software: <http://www.gnu.org/gethelp/>."
12364
12329
 
12365
12330
_ACEOF
12366
12331
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12332
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12367
12333
ac_cs_version="\\
12368
 
GNU Hello config.status 2.4
12369
 
configured by $0, generated by GNU Autoconf 2.63,
12370
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
12334
GNU Hello config.status 2.5
 
12335
configured by $0, generated by GNU Autoconf 2.65,
 
12336
  with options \\"\$ac_cs_config\\"
12371
12337
 
12372
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
12338
Copyright (C) 2009 Free Software Foundation, Inc.
12373
12339
This config.status script is free software; the Free Software Foundation
12374
12340
gives unlimited permission to copy, distribute and modify it."
12375
12341
 
12405
12371
    ac_cs_recheck=: ;;
12406
12372
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12407
12373
    $as_echo "$ac_cs_version"; exit ;;
 
12374
  --config | --confi | --conf | --con | --co | --c )
 
12375
    $as_echo "$ac_cs_config"; exit ;;
12408
12376
  --debug | --debu | --deb | --de | --d | -d )
12409
12377
    debug=: ;;
12410
12378
  --file | --fil | --fi | --f )
12412
12380
    case $ac_optarg in
12413
12381
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12414
12382
    esac
12415
 
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
12383
    as_fn_append CONFIG_FILES " '$ac_optarg'"
12416
12384
    ac_need_defaults=false;;
12417
12385
  --header | --heade | --head | --hea )
12418
12386
    $ac_shift
12419
12387
    case $ac_optarg in
12420
12388
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12421
12389
    esac
12422
 
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
12390
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12423
12391
    ac_need_defaults=false;;
12424
12392
  --he | --h)
12425
12393
    # Conflict between --help and --header
12426
 
    { $as_echo "$as_me: error: ambiguous option: $1
12427
 
Try \`$0 --help' for more information." >&2
12428
 
   { (exit 1); exit 1; }; };;
 
12394
    as_fn_error "ambiguous option: \`$1'
 
12395
Try \`$0 --help' for more information.";;
12429
12396
  --help | --hel | -h )
12430
12397
    $as_echo "$ac_cs_usage"; exit ;;
12431
12398
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12433
12400
    ac_cs_silent=: ;;
12434
12401
 
12435
12402
  # This is an error.
12436
 
  -*) { $as_echo "$as_me: error: unrecognized option: $1
12437
 
Try \`$0 --help' for more information." >&2
12438
 
   { (exit 1); exit 1; }; } ;;
 
12403
  -*) as_fn_error "unrecognized option: \`$1'
 
12404
Try \`$0 --help' for more information." ;;
12439
12405
 
12440
 
  *) ac_config_targets="$ac_config_targets $1"
 
12406
  *) as_fn_append ac_config_targets " $1"
12441
12407
     ac_need_defaults=false ;;
12442
12408
 
12443
12409
  esac
12507
12473
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12508
12474
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12509
12475
 
12510
 
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12511
 
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12512
 
   { (exit 1); exit 1; }; };;
 
12476
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12513
12477
  esac
12514
12478
done
12515
12479
 
12536
12500
  trap 'exit_status=$?
12537
12501
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12538
12502
' 0
12539
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
12503
  trap 'as_fn_exit 1' 1 2 13 15
12540
12504
}
12541
12505
# Create a (secure) tmp directory for tmp files.
12542
12506
 
12547
12511
{
12548
12512
  tmp=./conf$$-$RANDOM
12549
12513
  (umask 077 && mkdir "$tmp")
12550
 
} ||
12551
 
{
12552
 
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
12553
 
   { (exit 1); exit 1; }
12554
 
}
 
12514
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12555
12515
 
12556
12516
# Set up the scripts for CONFIG_FILES section.
12557
12517
# No need to generate them if there are no CONFIG_FILES.
12559
12519
if test -n "$CONFIG_FILES"; then
12560
12520
 
12561
12521
 
12562
 
ac_cr='
 
 
b"'"
 
12522
ac_cr=`echo X | tr X '\015'`
 
12523
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
12524
# But we know of no other shell where ac_cr would be empty at this
 
12525
# point, so we can use a bashism as a fallback.
 
12526
if test "x$ac_cr" = x; then
 
12527
  eval ac_cr=\$\'\\r\'
 
12528
fi
12563
12529
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12564
12530
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12565
 
  ac_cs_awk_cr='\\r'
 
12531
  ac_cs_awk_cr='\r'
12566
12532
else
12567
12533
  ac_cs_awk_cr=$ac_cr
12568
12534
fi
12576
12542
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12577
12543
  echo "_ACEOF"
12578
12544
} >conf$$subs.sh ||
12579
 
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12580
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12581
 
   { (exit 1); exit 1; }; }
 
12545
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12582
12546
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12583
12547
ac_delim='%!_!# '
12584
12548
for ac_last_try in false false false false false :; do
12585
12549
  . ./conf$$subs.sh ||
12586
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12587
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12588
 
   { (exit 1); exit 1; }; }
 
12550
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12589
12551
 
12590
12552
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12591
12553
  if test $ac_delim_n = $ac_delim_num; then
12592
12554
    break
12593
12555
  elif $ac_last_try; then
12594
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12595
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12596
 
   { (exit 1); exit 1; }; }
 
12556
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12597
12557
  else
12598
12558
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12599
12559
  fi
12615
12575
t delim
12616
12576
:nl
12617
12577
h
12618
 
s/\(.\{148\}\).*/\1/
 
12578
s/\(.\{148\}\)..*/\1/
12619
12579
t more1
12620
12580
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12621
12581
p
12629
12589
t nl
12630
12590
:delim
12631
12591
h
12632
 
s/\(.\{148\}\).*/\1/
 
12592
s/\(.\{148\}\)..*/\1/
12633
12593
t more2
12634
12594
s/["\\]/\\&/g; s/^/"/; s/$/"/
12635
12595
p
12682
12642
else
12683
12643
  cat
12684
12644
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12685
 
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12686
 
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12687
 
   { (exit 1); exit 1; }; }
 
12645
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12688
12646
_ACEOF
12689
12647
 
12690
12648
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12725
12683
  if test -z "$ac_t"; then
12726
12684
    break
12727
12685
  elif $ac_last_try; then
12728
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12729
 
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12730
 
   { (exit 1); exit 1; }; }
 
12686
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12731
12687
  else
12732
12688
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12733
12689
  fi
12812
12768
_ACAWK
12813
12769
_ACEOF
12814
12770
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815
 
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12816
 
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12817
 
   { (exit 1); exit 1; }; }
 
12771
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12818
12772
fi # test -n "$CONFIG_HEADERS"
12819
12773
 
12820
12774
 
12827
12781
  esac
12828
12782
  case $ac_mode$ac_tag in
12829
12783
  :[FHL]*:*);;
12830
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12831
 
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12832
 
   { (exit 1); exit 1; }; };;
 
12784
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12833
12785
  :[FH]-) ac_tag=-:-;;
12834
12786
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12835
12787
  esac
12857
12809
           [\\/$]*) false;;
12858
12810
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12859
12811
           esac ||
12860
 
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12861
 
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12862
 
   { (exit 1); exit 1; }; };;
 
12812
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12863
12813
      esac
12864
12814
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12865
 
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
12815
      as_fn_append ac_file_inputs " '$ac_f'"
12866
12816
    done
12867
12817
 
12868
12818
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12873
12823
        `' by configure.'
12874
12824
    if test x"$ac_file" != x-; then
12875
12825
      configure_input="$ac_file.  $configure_input"
12876
 
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
12826
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12877
12827
$as_echo "$as_me: creating $ac_file" >&6;}
12878
12828
    fi
12879
12829
    # Neutralize special characters interpreted by sed in replacement strings.
12886
12836
 
12887
12837
    case $ac_tag in
12888
12838
    *:-:* | *:-) cat >"$tmp/stdin" \
12889
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12890
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12891
 
   { (exit 1); exit 1; }; } ;;
 
12839
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12892
12840
    esac
12893
12841
    ;;
12894
12842
  esac
12916
12864
            q
12917
12865
          }
12918
12866
          s/.*/./; q'`
12919
 
  { as_dir="$ac_dir"
12920
 
  case $as_dir in #(
12921
 
  -*) as_dir=./$as_dir;;
12922
 
  esac
12923
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12924
 
    as_dirs=
12925
 
    while :; do
12926
 
      case $as_dir in #(
12927
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12928
 
      *) as_qdir=$as_dir;;
12929
 
      esac
12930
 
      as_dirs="'$as_qdir' $as_dirs"
12931
 
      as_dir=`$as_dirname -- "$as_dir" ||
12932
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
12934
 
         X"$as_dir" : 'X\(//\)$' \| \
12935
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12936
 
$as_echo X"$as_dir" |
12937
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12938
 
            s//\1/
12939
 
            q
12940
 
          }
12941
 
          /^X\(\/\/\)[^/].*/{
12942
 
            s//\1/
12943
 
            q
12944
 
          }
12945
 
          /^X\(\/\/\)$/{
12946
 
            s//\1/
12947
 
            q
12948
 
          }
12949
 
          /^X\(\/\).*/{
12950
 
            s//\1/
12951
 
            q
12952
 
          }
12953
 
          s/.*/./; q'`
12954
 
      test -d "$as_dir" && break
12955
 
    done
12956
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12957
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12958
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12959
 
   { (exit 1); exit 1; }; }; }
 
12867
  as_dir="$ac_dir"; as_fn_mkdir_p
12960
12868
  ac_builddir=.
12961
12869
 
12962
12870
case "$ac_dir" in
13013
12921
# If the template does not know about datarootdir, expand it.
13014
12922
# FIXME: This hack should be removed a few years after 2.60.
13015
12923
ac_datarootdir_hack=; ac_datarootdir_seen=
13016
 
 
13017
12924
ac_sed_dataroot='
13018
12925
/datarootdir/ {
13019
12926
  p
13023
12930
/@docdir@/p
13024
12931
/@infodir@/p
13025
12932
/@localedir@/p
13026
 
/@mandir@/p
13027
 
'
 
12933
/@mandir@/p'
13028
12934
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13029
12935
*datarootdir*) ac_datarootdir_seen=yes;;
13030
12936
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13031
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
12937
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13032
12938
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13033
12939
_ACEOF
13034
12940
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13038
12944
  s&@infodir@&$infodir&g
13039
12945
  s&@localedir@&$localedir&g
13040
12946
  s&@mandir@&$mandir&g
13041
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
12947
  s&\\\${datarootdir}&$datarootdir&g' ;;
13042
12948
esac
13043
12949
_ACEOF
13044
12950
 
13067
12973
$ac_datarootdir_hack
13068
12974
"
13069
12975
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13070
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13071
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13072
 
   { (exit 1); exit 1; }; }
 
12976
  || as_fn_error "could not create $ac_file" "$LINENO" 5
13073
12977
 
13074
12978
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13075
12979
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13076
12980
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13077
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12981
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13078
12982
which seems to be undefined.  Please make sure it is defined." >&5
13079
12983
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13080
12984
which seems to be undefined.  Please make sure it is defined." >&2;}
13084
12988
  -) cat "$tmp/out" && rm -f "$tmp/out";;
13085
12989
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13086
12990
  esac \
13087
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13088
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13089
 
   { (exit 1); exit 1; }; }
 
12991
  || as_fn_error "could not create $ac_file" "$LINENO" 5
13090
12992
 ;;
13091
12993
  :H)
13092
12994
  #
13097
12999
      $as_echo "/* $configure_input  */" \
13098
13000
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13099
13001
    } >"$tmp/config.h" \
13100
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13101
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13102
 
   { (exit 1); exit 1; }; }
 
13002
      || as_fn_error "could not create $ac_file" "$LINENO" 5
13103
13003
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13104
 
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
13004
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13105
13005
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13106
13006
    else
13107
13007
      rm -f "$ac_file"
13108
13008
      mv "$tmp/config.h" "$ac_file" \
13109
 
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13110
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13111
 
   { (exit 1); exit 1; }; }
 
13009
        || as_fn_error "could not create $ac_file" "$LINENO" 5
13112
13010
    fi
13113
13011
  else
13114
13012
    $as_echo "/* $configure_input  */" \
13115
13013
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13116
 
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13117
 
$as_echo "$as_me: error: could not create -" >&2;}
13118
 
   { (exit 1); exit 1; }; }
 
13014
      || as_fn_error "could not create -" "$LINENO" 5
13119
13015
  fi
13120
13016
# Compute "$ac_file"'s index in $config_headers.
13121
13017
_am_arg="$ac_file"
13153
13049
          s/.*/./; q'`/stamp-h$_am_stamp_count
13154
13050
 ;;
13155
13051
 
13156
 
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
13052
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13157
13053
$as_echo "$as_me: executing $ac_file commands" >&6;}
13158
13054
 ;;
13159
13055
  esac
13160
13056
 
13161
13057
 
13162
13058
  case $ac_file$ac_mode in
13163
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13164
 
  # Strip MF so we end up with the name of the file.
13165
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13166
 
  # Check whether this is an Automake generated Makefile or not.
13167
 
  # We used to match only the files named `Makefile.in', but
13168
 
  # some people rename them; so instead we look at the file content.
13169
 
  # Grep'ing the first line is not enough: some people post-process
13170
 
  # each Makefile.in and add a new line on top of each file to say so.
13171
 
  # Grep'ing the whole file is not good either: AIX grep has a line
13172
 
  # limit of 2048, but all sed's we know have understand at least 4000.
13173
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13174
 
    dirpart=`$as_dirname -- "$mf" ||
 
13059
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
13060
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
13061
  # are listed without --file.  Let's play safe and only enable the eval
 
13062
  # if we detect the quoting.
 
13063
  case $CONFIG_FILES in
 
13064
  *\'*) eval set x "$CONFIG_FILES" ;;
 
13065
  *)   set x $CONFIG_FILES ;;
 
13066
  esac
 
13067
  shift
 
13068
  for mf
 
13069
  do
 
13070
    # Strip MF so we end up with the name of the file.
 
13071
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
13072
    # Check whether this is an Automake generated Makefile or not.
 
13073
    # We used to match only the files named `Makefile.in', but
 
13074
    # some people rename them; so instead we look at the file content.
 
13075
    # Grep'ing the first line is not enough: some people post-process
 
13076
    # each Makefile.in and add a new line on top of each file to say so.
 
13077
    # Grep'ing the whole file is not good either: AIX grep has a line
 
13078
    # limit of 2048, but all sed's we know have understand at least 4000.
 
13079
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
13080
      dirpart=`$as_dirname -- "$mf" ||
13175
13081
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13176
13082
         X"$mf" : 'X\(//\)[^/]' \| \
13177
13083
         X"$mf" : 'X\(//\)$' \| \
13194
13100
            q
13195
13101
          }
13196
13102
          s/.*/./; q'`
13197
 
  else
13198
 
    continue
13199
 
  fi
13200
 
  # Extract the definition of DEPDIR, am__include, and am__quote
13201
 
  # from the Makefile without running `make'.
13202
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13203
 
  test -z "$DEPDIR" && continue
13204
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13205
 
  test -z "am__include" && continue
13206
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13207
 
  # When using ansi2knr, U may be empty or an underscore; expand it
13208
 
  U=`sed -n 's/^U = //p' < "$mf"`
13209
 
  # Find all dependency output files, they are included files with
13210
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13211
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
13212
 
  # expansion.
13213
 
  for file in `sed -n "
13214
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13215
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13216
 
    # Make sure the directory exists.
13217
 
    test -f "$dirpart/$file" && continue
13218
 
    fdir=`$as_dirname -- "$file" ||
 
13103
    else
 
13104
      continue
 
13105
    fi
 
13106
    # Extract the definition of DEPDIR, am__include, and am__quote
 
13107
    # from the Makefile without running `make'.
 
13108
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
13109
    test -z "$DEPDIR" && continue
 
13110
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
13111
    test -z "am__include" && continue
 
13112
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
13113
    # When using ansi2knr, U may be empty or an underscore; expand it
 
13114
    U=`sed -n 's/^U = //p' < "$mf"`
 
13115
    # Find all dependency output files, they are included files with
 
13116
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
13117
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
13118
    # expansion.
 
13119
    for file in `sed -n "
 
13120
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
13121
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
13122
      # Make sure the directory exists.
 
13123
      test -f "$dirpart/$file" && continue
 
13124
      fdir=`$as_dirname -- "$file" ||
13219
13125
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13220
13126
         X"$file" : 'X\(//\)[^/]' \| \
13221
13127
         X"$file" : 'X\(//\)$' \| \
13238
13144
            q
13239
13145
          }
13240
13146
          s/.*/./; q'`
13241
 
    { as_dir=$dirpart/$fdir
13242
 
  case $as_dir in #(
13243
 
  -*) as_dir=./$as_dir;;
13244
 
  esac
13245
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13246
 
    as_dirs=
13247
 
    while :; do
13248
 
      case $as_dir in #(
13249
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13250
 
      *) as_qdir=$as_dir;;
13251
 
      esac
13252
 
      as_dirs="'$as_qdir' $as_dirs"
13253
 
      as_dir=`$as_dirname -- "$as_dir" ||
13254
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13255
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13256
 
         X"$as_dir" : 'X\(//\)$' \| \
13257
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13258
 
$as_echo X"$as_dir" |
13259
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13260
 
            s//\1/
13261
 
            q
13262
 
          }
13263
 
          /^X\(\/\/\)[^/].*/{
13264
 
            s//\1/
13265
 
            q
13266
 
          }
13267
 
          /^X\(\/\/\)$/{
13268
 
            s//\1/
13269
 
            q
13270
 
          }
13271
 
          /^X\(\/\).*/{
13272
 
            s//\1/
13273
 
            q
13274
 
          }
13275
 
          s/.*/./; q'`
13276
 
      test -d "$as_dir" && break
 
13147
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
13148
      # echo "creating $dirpart/$file"
 
13149
      echo '# dummy' > "$dirpart/$file"
13277
13150
    done
13278
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13279
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13280
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13281
 
   { (exit 1); exit 1; }; }; }
13282
 
    # echo "creating $dirpart/$file"
13283
 
    echo '# dummy' > "$dirpart/$file"
13284
13151
  done
13285
 
done
 
13152
}
13286
13153
 ;;
13287
13154
    "po-directories":C)
13288
13155
    for ac_file in $CONFIG_FILES; do
13402
13269
done # for ac_tag
13403
13270
 
13404
13271
 
13405
 
{ (exit 0); exit 0; }
 
13272
as_fn_exit 0
13406
13273
_ACEOF
13407
 
chmod +x $CONFIG_STATUS
13408
13274
ac_clean_files=$ac_clean_files_save
13409
13275
 
13410
13276
test $ac_write_fail = 0 ||
13411
 
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13412
 
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13413
 
   { (exit 1); exit 1; }; }
 
13277
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13414
13278
 
13415
13279
 
13416
13280
# configure is writing to config.log, and then calls config.status.
13431
13295
  exec 5>>config.log
13432
13296
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13433
13297
  # would make configure fail if this is the last instruction.
13434
 
  $ac_cs_success || { (exit 1); exit 1; }
 
13298
  $ac_cs_success || as_fn_exit $?
13435
13299
fi
13436
13300
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13437
 
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
13301
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13438
13302
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13439
13303
fi
13440
13304