~cyphermox/ubuntu/wily/grub2/lp1097570

1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
3
# Generated by GNU Autoconf 2.69 for GRUB 2.02~beta2.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4
#
5
# Report bugs to <bug-grub@gnu.org>.
6
#
7
#
1.15.16 by Colin Watson
Import upstream version 2.00
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9
#
10
#
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32
esac
33
fi
34
35
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in #(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
83
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
1.15.15 by Colin Watson
Import upstream version 1.99
92
as_myself=
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
93
case $0 in #((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
1.15.16 by Colin Watson
Import upstream version 2.00
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in # ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in #(
172
  *posix*) :
173
    set -o posix ;; #(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
1.15.16 by Colin Watson
Import upstream version 2.00
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
test \$(( 1 + 1 )) = 2 || exit 1"
202
  if (eval "$as_required") 2>/dev/null; then :
203
  as_have_required=yes
204
else
205
  as_have_required=no
206
fi
207
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209
else
210
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211
as_found=false
212
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
do
214
  IFS=$as_save_IFS
215
  test -z "$as_dir" && as_dir=.
216
  as_found=:
217
  case $as_dir in #(
218
	 /*)
219
	   for as_base in sh bash ksh sh5; do
220
	     # Try only shells that exist, to save several forks.
221
	     as_shell=$as_dir/$as_base
222
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  CONFIG_SHELL=$as_shell as_have_required=yes
225
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226
  break 2
227
fi
228
fi
229
	   done;;
230
       esac
231
  as_found=false
232
done
233
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235
  CONFIG_SHELL=$SHELL as_have_required=yes
236
fi; }
237
IFS=$as_save_IFS
238
239
240
      if test "x$CONFIG_SHELL" != x; then :
1.15.16 by Colin Watson
Import upstream version 2.00
241
  export CONFIG_SHELL
242
             # We cannot yet assume a decent shell, so we have to provide a
243
# neutralization value for shells without unset; and this also
244
# works around shells that cannot unset nonexistent variables.
245
# Preserve -v and -x to the replacement shell.
246
BASH_ENV=/dev/null
247
ENV=/dev/null
248
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249
case $- in # ((((
250
  *v*x* | *x*v* ) as_opts=-vx ;;
251
  *v* ) as_opts=-v ;;
252
  *x* ) as_opts=-x ;;
253
  * ) as_opts= ;;
254
esac
255
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256
# Admittedly, this is quite paranoid, since all the known shells bail
257
# out after a failed `exec'.
258
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259
exit 255
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
260
fi
261
262
    if test x$as_have_required = xno; then :
263
  $as_echo "$0: This script requires a shell more modern than all"
264
  $as_echo "$0: the shells that I found on your system."
265
  if test x${ZSH_VERSION+set} = xset ; then
266
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268
  else
269
    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
270
$0: about your system, including any error possibly output
271
$0: before this message. Then install a modern shell, or
272
$0: manually run the script under such a shell if you do
273
$0: have one."
274
  fi
275
  exit 1
276
fi
277
fi
278
fi
279
SHELL=${CONFIG_SHELL-/bin/sh}
280
export SHELL
281
# Unset more variables known to interfere with behavior of common tools.
282
CLICOLOR_FORCE= GREP_OPTIONS=
283
unset CLICOLOR_FORCE GREP_OPTIONS
284
285
## --------------------- ##
286
## M4sh Shell Functions. ##
287
## --------------------- ##
288
# as_fn_unset VAR
289
# ---------------
290
# Portably unset VAR.
291
as_fn_unset ()
292
{
293
  { eval $1=; unset $1;}
294
}
295
as_unset=as_fn_unset
296
297
# as_fn_set_status STATUS
298
# -----------------------
299
# Set $? to STATUS, without forking.
300
as_fn_set_status ()
301
{
302
  return $1
303
} # as_fn_set_status
304
305
# as_fn_exit STATUS
306
# -----------------
307
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308
as_fn_exit ()
309
{
310
  set +e
311
  as_fn_set_status $1
312
  exit $1
313
} # as_fn_exit
314
315
# as_fn_mkdir_p
316
# -------------
317
# Create "$as_dir" as a directory, including parents if necessary.
318
as_fn_mkdir_p ()
319
{
320
321
  case $as_dir in #(
322
  -*) as_dir=./$as_dir;;
323
  esac
324
  test -d "$as_dir" || eval $as_mkdir_p || {
325
    as_dirs=
326
    while :; do
327
      case $as_dir in #(
328
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329
      *) as_qdir=$as_dir;;
330
      esac
331
      as_dirs="'$as_qdir' $as_dirs"
332
      as_dir=`$as_dirname -- "$as_dir" ||
333
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334
	 X"$as_dir" : 'X\(//\)[^/]' \| \
335
	 X"$as_dir" : 'X\(//\)$' \| \
336
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337
$as_echo X"$as_dir" |
338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339
	    s//\1/
340
	    q
341
	  }
342
	  /^X\(\/\/\)[^/].*/{
343
	    s//\1/
344
	    q
345
	  }
346
	  /^X\(\/\/\)$/{
347
	    s//\1/
348
	    q
349
	  }
350
	  /^X\(\/\).*/{
351
	    s//\1/
352
	    q
353
	  }
354
	  s/.*/./; q'`
355
      test -d "$as_dir" && break
356
    done
357
    test -z "$as_dirs" || eval "mkdir $as_dirs"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
358
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
359
360
361
} # as_fn_mkdir_p
1.15.16 by Colin Watson
Import upstream version 2.00
362
363
# as_fn_executable_p FILE
364
# -----------------------
365
# Test if FILE is an executable regular file.
366
as_fn_executable_p ()
367
{
368
  test -f "$1" && test -x "$1"
369
} # as_fn_executable_p
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
370
# as_fn_append VAR VALUE
371
# ----------------------
372
# Append the text in VALUE to the end of the definition contained in VAR. Take
373
# advantage of any shell optimizations that allow amortized linear growth over
374
# repeated appends, instead of the typical quadratic growth present in naive
375
# implementations.
376
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377
  eval 'as_fn_append ()
378
  {
379
    eval $1+=\$2
380
  }'
381
else
382
  as_fn_append ()
383
  {
384
    eval $1=\$$1\$2
385
  }
386
fi # as_fn_append
387
388
# as_fn_arith ARG...
389
# ------------------
390
# Perform arithmetic evaluation on the ARGs, and store the result in the
391
# global $as_val. Take advantage of shells that can avoid forks. The arguments
392
# must be portable across $(()) and expr.
393
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394
  eval 'as_fn_arith ()
395
  {
396
    as_val=$(( $* ))
397
  }'
398
else
399
  as_fn_arith ()
400
  {
401
    as_val=`expr "$@" || test $? -eq 1`
402
  }
403
fi # as_fn_arith
404
405
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
406
# as_fn_error STATUS ERROR [LINENO LOG_FD]
407
# ----------------------------------------
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
408
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
410
# script with STATUS, using 1 if that was 0.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
411
as_fn_error ()
412
{
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
413
  as_status=$1; test $as_status -eq 0 && as_status=1
414
  if test "$4"; then
415
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
417
  fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
418
  $as_echo "$as_me: error: $2" >&2
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
419
  as_fn_exit $as_status
420
} # as_fn_error
421
422
if expr a : '\(a\)' >/dev/null 2>&1 &&
423
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424
  as_expr=expr
425
else
426
  as_expr=false
427
fi
428
429
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430
  as_basename=basename
431
else
432
  as_basename=false
433
fi
434
435
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436
  as_dirname=dirname
437
else
438
  as_dirname=false
439
fi
440
441
as_me=`$as_basename -- "$0" ||
442
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443
	 X"$0" : 'X\(//\)$' \| \
444
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445
$as_echo X/"$0" |
446
    sed '/^.*\/\([^/][^/]*\)\/*$/{
447
	    s//\1/
448
	    q
449
	  }
450
	  /^X\/\(\/\/\)$/{
451
	    s//\1/
452
	    q
453
	  }
454
	  /^X\/\(\/\).*/{
455
	    s//\1/
456
	    q
457
	  }
458
	  s/.*/./; q'`
459
460
# Avoid depending upon Character Ranges.
461
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464
as_cr_digits='0123456789'
465
as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473
  sed -n '
474
    p
475
    /[$]LINENO/=
476
  ' <$as_myself |
477
    sed '
478
      s/[$]LINENO.*/&-/
479
      t lineno
480
      b
481
      :lineno
482
      N
483
      :loop
484
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
      t loop
486
      s/-\n.*//
487
    ' >$as_me.lineno &&
488
  chmod +x "$as_me.lineno" ||
489
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
1.15.16 by Colin Watson
Import upstream version 2.00
491
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492
  # already done that, so ensure we don't try to do so again and fall
493
  # in an infinite loop.  This has already happened in practice.
494
  _as_can_reexec=no; export _as_can_reexec
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
495
  # Don't try to exec as it changes $[0], causing all sort of problems
496
  # (the dirname of $[0] is not the place where we might find the
497
  # original and so on.  Autoconf is especially sensitive to this).
498
  . "./$as_me.lineno"
499
  # Exit status is that of the last command.
500
  exit
501
}
502
503
ECHO_C= ECHO_N= ECHO_T=
504
case `echo -n x` in #(((((
505
-n*)
506
  case `echo 'xy\c'` in
507
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508
  xy)  ECHO_C='\c';;
509
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510
       ECHO_T='	';;
511
  esac;;
512
*)
513
  ECHO_N='-n';;
514
esac
515
516
rm -f conf$$ conf$$.exe conf$$.file
517
if test -d conf$$.dir; then
518
  rm -f conf$$.dir/conf$$.file
519
else
520
  rm -f conf$$.dir
521
  mkdir conf$$.dir 2>/dev/null
522
fi
523
if (echo >conf$$.file) 2>/dev/null; then
524
  if ln -s conf$$.file conf$$ 2>/dev/null; then
525
    as_ln_s='ln -s'
526
    # ... but there are two gotchas:
527
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.15.16 by Colin Watson
Import upstream version 2.00
529
    # In both cases, we have to default to `cp -pR'.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
530
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.15.16 by Colin Watson
Import upstream version 2.00
531
      as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
532
  elif ln conf$$.file conf$$ 2>/dev/null; then
533
    as_ln_s=ln
534
  else
1.15.16 by Colin Watson
Import upstream version 2.00
535
    as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
536
  fi
537
else
1.15.16 by Colin Watson
Import upstream version 2.00
538
  as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
539
fi
540
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541
rmdir conf$$.dir 2>/dev/null
542
543
if mkdir -p . 2>/dev/null; then
544
  as_mkdir_p='mkdir -p "$as_dir"'
545
else
546
  test -d ./-p && rmdir ./-p
547
  as_mkdir_p=false
548
fi
549
1.15.16 by Colin Watson
Import upstream version 2.00
550
as_test_x='test -x'
551
as_executable_p=as_fn_executable_p
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
552
553
# Sed expression to map a string onto a valid CPP name.
554
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556
# Sed expression to map a string onto a valid variable name.
557
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
test -n "$DJDIR" || exec 7<&0 </dev/null
561
exec 6>&1
562
563
# Name of the host.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
564
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
565
# so uname gets run too.
566
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568
#
569
# Initializations.
570
#
571
ac_default_prefix=/usr/local
572
ac_clean_files=
573
ac_config_libobj_dir=.
574
LIBOBJS=
575
cross_compiling=no
576
subdirs=
577
MFLAGS=
578
MAKEFLAGS=
579
580
# Identity of this package.
581
PACKAGE_NAME='GRUB'
582
PACKAGE_TARNAME='grub'
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
583
PACKAGE_VERSION='2.02~beta2'
584
PACKAGE_STRING='GRUB 2.02~beta2'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
585
PACKAGE_BUGREPORT='bug-grub@gnu.org'
586
PACKAGE_URL=''
587
588
ac_unique_file="include/grub/dl.h"
589
# Factoring default headers for most tests.
590
ac_includes_default="\
591
#include <stdio.h>
592
#ifdef HAVE_SYS_TYPES_H
593
# include <sys/types.h>
594
#endif
595
#ifdef HAVE_SYS_STAT_H
596
# include <sys/stat.h>
597
#endif
598
#ifdef STDC_HEADERS
599
# include <stdlib.h>
600
# include <stddef.h>
601
#else
602
# ifdef HAVE_STDLIB_H
603
#  include <stdlib.h>
604
# endif
605
#endif
606
#ifdef HAVE_STRING_H
607
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608
#  include <memory.h>
609
# endif
610
# include <string.h>
611
#endif
612
#ifdef HAVE_STRINGS_H
613
# include <strings.h>
614
#endif
615
#ifdef HAVE_INTTYPES_H
616
# include <inttypes.h>
617
#endif
618
#ifdef HAVE_STDINT_H
619
# include <stdint.h>
620
#endif
621
#ifdef HAVE_UNISTD_H
622
# include <unistd.h>
623
#endif"
624
625
gt_needs=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
626
ac_func_list=
627
ac_header_list=
628
gl_fnmatch_required=POSIX
629
gl_getopt_required=POSIX
630
gl_getopt_required=POSIX
631
ac_subst_vars='gltests_LTLIBOBJS
632
gltests_LIBOBJS
633
gl_LTLIBOBJS
634
gl_LIBOBJS
635
am__EXEEXT_FALSE
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
636
am__EXEEXT_TRUE
637
LTLIBOBJS
638
LIBOBJS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
639
COND_HAVE_EXEC_FALSE
640
COND_HAVE_EXEC_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
641
COND_STARFIELD_FALSE
642
COND_STARFIELD_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
643
COND_HAVE_ASM_USCORE_FALSE
644
COND_HAVE_ASM_USCORE_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
645
COND_HAVE_CXX_FALSE
646
COND_HAVE_CXX_TRUE
647
COND_ENABLE_BOOT_TIME_STATS_FALSE
648
COND_ENABLE_BOOT_TIME_STATS_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
649
COND_ENABLE_CACHE_STATS_FALSE
650
COND_ENABLE_CACHE_STATS_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
651
COND_ENABLE_EFIEMU_FALSE
652
COND_ENABLE_EFIEMU_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
653
COND_APPLE_LINKER_FALSE
654
COND_APPLE_LINKER_TRUE
655
HAVE_FONT_SOURCE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
656
COND_HAVE_FONT_SOURCE_FALSE
657
COND_HAVE_FONT_SOURCE_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
658
COND_GRUB_MOUNT_FALSE
659
COND_GRUB_MOUNT_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
660
COND_GRUB_MKFONT_FALSE
661
COND_GRUB_MKFONT_TRUE
662
COND_GRUB_EMU_PCI_FALSE
663
COND_GRUB_EMU_PCI_TRUE
664
COND_GRUB_EMU_SDL_FALSE
665
COND_GRUB_EMU_SDL_TRUE
666
COND_GRUB_EMU_USB_FALSE
667
COND_GRUB_EMU_USB_TRUE
668
COND_MAN_PAGES_FALSE
669
COND_MAN_PAGES_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
670
COND_HOST_ILLUMOS_FALSE
671
COND_HOST_ILLUMOS_TRUE
672
COND_HOST_XNU_FALSE
673
COND_HOST_XNU_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
674
COND_HOST_KFREEBSD_FALSE
675
COND_HOST_KFREEBSD_TRUE
676
COND_HOST_WINDOWS_FALSE
677
COND_HOST_WINDOWS_TRUE
678
COND_HOST_NETBSD_FALSE
679
COND_HOST_NETBSD_TRUE
680
COND_HOST_LINUX_FALSE
681
COND_HOST_LINUX_TRUE
682
COND_HOST_HURD_FALSE
683
COND_HOST_HURD_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
684
COND_arm64_efi_FALSE
685
COND_arm64_efi_TRUE
686
COND_arm64_FALSE
687
COND_arm64_TRUE
688
COND_arm_efi_FALSE
689
COND_arm_efi_TRUE
690
COND_arm_uboot_FALSE
691
COND_arm_uboot_TRUE
692
COND_arm_FALSE
693
COND_arm_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
694
COND_mipseb_FALSE
695
COND_mipseb_TRUE
696
COND_mipsel_FALSE
697
COND_mipsel_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
698
COND_mips_FALSE
699
COND_mips_TRUE
700
COND_powerpc_ieee1275_FALSE
701
COND_powerpc_ieee1275_TRUE
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
702
COND_sparc64_emu_FALSE
703
COND_sparc64_emu_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
704
COND_sparc64_ieee1275_FALSE
705
COND_sparc64_ieee1275_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
706
COND_mips_arc_FALSE
707
COND_mips_arc_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
708
COND_mips_qemu_mips_FALSE
709
COND_mips_qemu_mips_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
710
COND_mips_loongson_FALSE
711
COND_mips_loongson_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
712
COND_x86_64_xen_FALSE
713
COND_x86_64_xen_TRUE
714
COND_i386_xen_FALSE
715
COND_i386_xen_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
716
COND_x86_64_efi_FALSE
717
COND_x86_64_efi_TRUE
718
COND_i386_multiboot_FALSE
719
COND_i386_multiboot_TRUE
720
COND_i386_coreboot_FALSE
721
COND_i386_coreboot_TRUE
722
COND_i386_ieee1275_FALSE
723
COND_i386_ieee1275_TRUE
724
COND_i386_qemu_FALSE
725
COND_i386_qemu_TRUE
1.15.16 by Colin Watson
Import upstream version 2.00
726
COND_ia64_efi_FALSE
727
COND_ia64_efi_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
728
COND_i386_efi_FALSE
729
COND_i386_efi_TRUE
730
COND_i386_pc_FALSE
731
COND_i386_pc_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
732
COND_clang_FALSE
733
COND_clang_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
734
COND_emu_FALSE
735
COND_emu_TRUE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
736
BUILD_LIBM
737
HOST_CCASFLAGS
738
HOST_CPPFLAGS
739
HOST_LDFLAGS
740
HOST_CFLAGS
741
TARGET_APPLE_LINKER
742
TARGET_IMG_BASE_LDOPT
743
TARGET_IMG_CFLAGS
744
TARGET_IMG_LDFLAGS
745
TARGET_CCASFLAGS
746
TARGET_CPPFLAGS
747
TARGET_LDFLAGS
748
TARGET_CFLAGS
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
749
TARGET_CC_VERSION
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
750
TARGET_MODULE_FORMAT
751
TARGET_OBJ2ELF
752
TARGET_CCAS
753
TARGET_CPP
754
TARGET_LDFLAGS_STATIC_LIBGCC
755
TARGET_LIBGCC
756
GRUB_PLATFORM
757
GRUB_TARGET_CPU
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
758
END_SYMBOL
759
BSS_START_SYMBOL
760
DATA32
761
ADDR32
762
HAVE_ASM_USCORE
763
GRUB_BOOT_MACHINE_LINK_ADDR
764
LIBNVPAIR
765
LIBZFS
766
LIBLZMA
1.15.15 by Colin Watson
Import upstream version 1.99
767
LIBGEOM
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
768
LIBDEVMAPPER
1.15.16 by Colin Watson
Import upstream version 2.00
769
enable_grub_mount
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
770
FONT_SOURCE
1.15.16 by Colin Watson
Import upstream version 2.00
771
DJVU_FONT_SOURCE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
772
build_freetype_libs
773
build_freetype_cflags
774
BUILD_FREETYPE
775
BUILD_WORDS_BIGENDIAN
776
BUILD_SIZEOF_VOID_P
777
BUILD_SIZEOF_LONG
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
778
freetype_libs
779
freetype_cflags
780
enable_grub_mkfont
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
781
ac_ct_FREETYPE
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
782
FREETYPE
783
enable_grub_emu_pci
784
enable_grub_emu_usb
785
enable_grub_emu_sdl
786
LIBPCIACCESS
787
LIBSDL
788
LIBUSB
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
789
BOOT_TIME_STATS
1.15.16 by Colin Watson
Import upstream version 2.00
790
DISK_CACHE_STATS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
791
TARGET_NMFLAGS_DEFINED_ONLY
792
TARGET_NMFLAGS_MINUS_P
1.15.16 by Colin Watson
Import upstream version 2.00
793
TARGET_LDFLAGS_OLDMAGIC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
794
TARGET_OBJCONV
795
EFIEMU64_LINK_FORMAT
796
enable_efiemu
797
BUILD_CPPFLAGS
798
BUILD_CFLAGS
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
799
HOST_CC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
800
TARGET_RANLIB
801
TARGET_NM
802
TARGET_STRIP
803
TARGET_OBJCOPY
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
804
ac_ct_TARGET_CC
805
TARGET_CC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
806
LIBGNU_LTLIBDEPS
807
LIBGNU_LIBDEPS
808
gltests_WITNESS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
809
REPLACE_TOWLOWER
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
810
REPLACE_ISWCNTRL
811
HAVE_WCTYPE_H
812
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
813
NEXT_WCTYPE_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
814
HAVE_ISWCNTRL
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
815
REPLACE_ISWBLANK
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
816
HAVE_WCTRANS_T
817
HAVE_WCTYPE_T
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
818
HAVE_ISWBLANK
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
819
GNULIB_TOWCTRANS
820
GNULIB_WCTRANS
821
GNULIB_ISWCTYPE
822
GNULIB_WCTYPE
823
GNULIB_ISWBLANK
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
824
HAVE_WINT_T
825
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
826
NEXT_WCHAR_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
827
HAVE_FEATURES_H
828
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
829
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
830
LIBUNISTRING_UNIWIDTH_H
831
LIBUNISTRING_UNITYPES_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
832
HAVE_UNISTD_H
833
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
834
NEXT_UNISTD_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
835
GL_GENERATE_SYSEXITS_H_FALSE
836
GL_GENERATE_SYSEXITS_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
837
SYSEXITS_H
838
HAVE_SYSEXITS_H
839
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
840
NEXT_SYSEXITS_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
841
WINDOWS_64_BIT_OFF_T
842
NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
843
NEXT_SYS_TYPES_H
844
HAVE_STRINGS_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
845
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
846
NEXT_STRINGS_H
847
NEXT_AS_FIRST_DIRECTIVE_STRING_H
848
NEXT_STRING_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
849
HAVE_WINSOCK2_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
850
HAVE_DECL_STRNCASECMP
851
HAVE_STRCASECMP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
852
HAVE_FFS
853
GNULIB_FFS
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
854
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
855
NEXT_STDLIB_H
856
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
857
NEXT_STDIO_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
858
GL_GENERATE_STDINT_H_FALSE
859
GL_GENERATE_STDINT_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
860
STDINT_H
861
WINT_T_SUFFIX
862
WCHAR_T_SUFFIX
863
SIG_ATOMIC_T_SUFFIX
864
SIZE_T_SUFFIX
865
PTRDIFF_T_SUFFIX
866
HAVE_SIGNED_WINT_T
867
HAVE_SIGNED_WCHAR_T
868
HAVE_SIGNED_SIG_ATOMIC_T
869
BITSIZEOF_WINT_T
870
BITSIZEOF_WCHAR_T
871
BITSIZEOF_SIG_ATOMIC_T
872
BITSIZEOF_SIZE_T
873
BITSIZEOF_PTRDIFF_T
874
HAVE_SYS_BITYPES_H
875
HAVE_SYS_INTTYPES_H
876
HAVE_STDINT_H
877
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878
NEXT_STDINT_H
879
HAVE_SYS_TYPES_H
880
HAVE_INTTYPES_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
881
HAVE_WCHAR_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
882
HAVE_UNSIGNED_LONG_LONG_INT
883
HAVE_LONG_LONG_INT
884
HAVE__BOOL
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
885
GL_GENERATE_STDBOOL_H_FALSE
886
GL_GENERATE_STDBOOL_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
887
STDBOOL_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
888
GL_GENERATE_STDALIGN_H_FALSE
889
GL_GENERATE_STDALIGN_H_TRUE
890
STDALIGN_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
891
APPLE_UNIVERSAL_BUILD
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
892
HAVE_MSVC_INVALID_PARAMETER_HANDLER
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
893
UNDEFINE_STRTOK_R
894
REPLACE_STRTOK_R
895
REPLACE_STRSIGNAL
896
REPLACE_STRNLEN
897
REPLACE_STRNDUP
898
REPLACE_STRNCAT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
899
REPLACE_STRERROR_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
900
REPLACE_STRERROR
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
901
REPLACE_STRCHRNUL
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
902
REPLACE_STRCASESTR
903
REPLACE_STRSTR
904
REPLACE_STRDUP
905
REPLACE_STPNCPY
906
REPLACE_MEMMEM
907
REPLACE_MEMCHR
908
HAVE_STRVERSCMP
909
HAVE_DECL_STRSIGNAL
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
910
HAVE_DECL_STRERROR_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
911
HAVE_DECL_STRTOK_R
912
HAVE_STRCASESTR
913
HAVE_STRSEP
914
HAVE_STRPBRK
915
HAVE_DECL_STRNLEN
916
HAVE_DECL_STRNDUP
917
HAVE_DECL_STRDUP
918
HAVE_STRCHRNUL
919
HAVE_STPNCPY
920
HAVE_STPCPY
921
HAVE_RAWMEMCHR
922
HAVE_DECL_MEMRCHR
923
HAVE_MEMPCPY
924
HAVE_DECL_MEMMEM
925
HAVE_MEMCHR
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
926
HAVE_FFSLL
927
HAVE_FFSL
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
928
HAVE_MBSLEN
929
GNULIB_STRVERSCMP
930
GNULIB_STRSIGNAL
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
931
GNULIB_STRERROR_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
932
GNULIB_STRERROR
933
GNULIB_MBSTOK_R
934
GNULIB_MBSSEP
935
GNULIB_MBSSPN
936
GNULIB_MBSPBRK
937
GNULIB_MBSCSPN
938
GNULIB_MBSCASESTR
939
GNULIB_MBSPCASECMP
940
GNULIB_MBSNCASECMP
941
GNULIB_MBSCASECMP
942
GNULIB_MBSSTR
943
GNULIB_MBSRCHR
944
GNULIB_MBSCHR
945
GNULIB_MBSNLEN
946
GNULIB_MBSLEN
947
GNULIB_STRTOK_R
948
GNULIB_STRCASESTR
949
GNULIB_STRSTR
950
GNULIB_STRSEP
951
GNULIB_STRPBRK
952
GNULIB_STRNLEN
953
GNULIB_STRNDUP
954
GNULIB_STRNCAT
955
GNULIB_STRDUP
956
GNULIB_STRCHRNUL
957
GNULIB_STPNCPY
958
GNULIB_STPCPY
959
GNULIB_RAWMEMCHR
960
GNULIB_MEMRCHR
961
GNULIB_MEMPCPY
962
GNULIB_MEMMEM
963
GNULIB_MEMCHR
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
964
GNULIB_FFSLL
965
GNULIB_FFSL
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
966
LOCALE_FR_UTF8
967
LOCALE_ZH_CN
968
LOCALE_JA
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
969
REPLACE_WCTOMB
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
970
REPLACE_UNSETENV
971
REPLACE_STRTOD
972
REPLACE_SETENV
973
REPLACE_REALPATH
974
REPLACE_REALLOC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
975
REPLACE_RANDOM_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
976
REPLACE_PUTENV
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
977
REPLACE_PTSNAME_R
978
REPLACE_PTSNAME
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
979
REPLACE_MKSTEMP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
980
REPLACE_MBTOWC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
981
REPLACE_MALLOC
982
REPLACE_CANONICALIZE_FILE_NAME
983
REPLACE_CALLOC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
984
HAVE_DECL_UNSETENV
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
985
HAVE_UNLOCKPT
986
HAVE_SYS_LOADAVG_H
987
HAVE_STRUCT_RANDOM_DATA
988
HAVE_STRTOULL
989
HAVE_STRTOLL
990
HAVE_STRTOD
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
991
HAVE_DECL_SETENV
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
992
HAVE_SETENV
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
993
HAVE_SECURE_GETENV
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
994
HAVE_RPMATCH
995
HAVE_REALPATH
996
HAVE_RANDOM_R
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
997
HAVE_RANDOM_H
998
HAVE_RANDOM
999
HAVE_PTSNAME_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1000
HAVE_PTSNAME
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1001
HAVE_POSIX_OPENPT
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1002
HAVE_MKSTEMPS
1003
HAVE_MKSTEMP
1004
HAVE_MKOSTEMPS
1005
HAVE_MKOSTEMP
1006
HAVE_MKDTEMP
1007
HAVE_GRANTPT
1008
HAVE_GETSUBOPT
1009
HAVE_DECL_GETLOADAVG
1010
HAVE_CANONICALIZE_FILE_NAME
1011
HAVE_ATOLL
1012
HAVE__EXIT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1013
GNULIB_WCTOMB
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1014
GNULIB_UNSETENV
1015
GNULIB_UNLOCKPT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1016
GNULIB_SYSTEM_POSIX
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1017
GNULIB_STRTOULL
1018
GNULIB_STRTOLL
1019
GNULIB_STRTOD
1020
GNULIB_SETENV
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1021
GNULIB_SECURE_GETENV
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1022
GNULIB_RPMATCH
1023
GNULIB_REALPATH
1024
GNULIB_REALLOC_POSIX
1025
GNULIB_RANDOM_R
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1026
GNULIB_RANDOM
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1027
GNULIB_PUTENV
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1028
GNULIB_PTSNAME_R
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1029
GNULIB_PTSNAME
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1030
GNULIB_POSIX_OPENPT
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1031
GNULIB_MKSTEMPS
1032
GNULIB_MKSTEMP
1033
GNULIB_MKOSTEMPS
1034
GNULIB_MKOSTEMP
1035
GNULIB_MKDTEMP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1036
GNULIB_MBTOWC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1037
GNULIB_MALLOC_POSIX
1038
GNULIB_GRANTPT
1039
GNULIB_GETSUBOPT
1040
GNULIB_GETLOADAVG
1041
GNULIB_CANONICALIZE_FILE_NAME
1042
GNULIB_CALLOC_POSIX
1043
GNULIB_ATOLL
1044
GNULIB__EXIT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1045
NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1046
NEXT_LOCALE_H
1047
HAVE_XLOCALE_H
1048
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1049
NEXT_STDDEF_H
1050
GL_GENERATE_STDDEF_H_FALSE
1051
GL_GENERATE_STDDEF_H_TRUE
1052
STDDEF_H
1053
HAVE_WCHAR_T
1054
REPLACE_NULL
1055
REPLACE_STRUCT_LCONV
1056
REPLACE_DUPLOCALE
1057
REPLACE_SETLOCALE
1058
REPLACE_LOCALECONV
1059
HAVE_DUPLOCALE
1060
GNULIB_DUPLOCALE
1061
GNULIB_SETLOCALE
1062
GNULIB_LOCALECONV
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1063
LOCALCHARSET_TESTS_ENVIRONMENT
1064
GLIBC21
1065
HAVE_LANGINFO_YESEXPR
1066
HAVE_LANGINFO_ERA
1067
HAVE_LANGINFO_T_FMT_AMPM
1068
HAVE_LANGINFO_CODESET
1069
HAVE_LANGINFO_H
1070
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1071
NEXT_LANGINFO_H
1072
REPLACE_NL_LANGINFO
1073
HAVE_NL_LANGINFO
1074
GNULIB_NL_LANGINFO
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1075
GNULIB_GL_UNISTD_H_GETOPT
1076
GETOPT_H
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1077
HAVE_GETOPT_H
1078
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1079
NEXT_GETOPT_H
1080
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1081
UNISTD_H_HAVE_WINSOCK2_H
1082
REPLACE_WRITE
1083
REPLACE_USLEEP
1084
REPLACE_UNLINKAT
1085
REPLACE_UNLINK
1086
REPLACE_TTYNAME_R
1087
REPLACE_SYMLINK
1088
REPLACE_SLEEP
1089
REPLACE_RMDIR
1090
REPLACE_READLINK
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1091
REPLACE_READ
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1092
REPLACE_PWRITE
1093
REPLACE_PREAD
1094
REPLACE_LSEEK
1095
REPLACE_LINKAT
1096
REPLACE_LINK
1097
REPLACE_LCHOWN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1098
REPLACE_ISATTY
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1099
REPLACE_GETPAGESIZE
1100
REPLACE_GETGROUPS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1101
REPLACE_GETLOGIN_R
1102
REPLACE_GETDOMAINNAME
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1103
REPLACE_GETCWD
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1104
REPLACE_FTRUNCATE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1105
REPLACE_FCHOWNAT
1106
REPLACE_DUP2
1107
REPLACE_DUP
1108
REPLACE_CLOSE
1109
REPLACE_CHOWN
1110
HAVE_SYS_PARAM_H
1111
HAVE_OS_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1112
HAVE_DECL_TTYNAME_R
1113
HAVE_DECL_SETHOSTNAME
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1114
HAVE_DECL_GETUSERSHELL
1115
HAVE_DECL_GETPAGESIZE
1116
HAVE_DECL_GETLOGIN_R
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1117
HAVE_DECL_GETDOMAINNAME
1118
HAVE_DECL_FDATASYNC
1119
HAVE_DECL_FCHDIR
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1120
HAVE_DECL_ENVIRON
1121
HAVE_USLEEP
1122
HAVE_UNLINKAT
1123
HAVE_SYMLINKAT
1124
HAVE_SYMLINK
1125
HAVE_SLEEP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1126
HAVE_SETHOSTNAME
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1127
HAVE_READLINKAT
1128
HAVE_READLINK
1129
HAVE_PWRITE
1130
HAVE_PREAD
1131
HAVE_PIPE2
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1132
HAVE_PIPE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1133
HAVE_LINKAT
1134
HAVE_LINK
1135
HAVE_LCHOWN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1136
HAVE_GROUP_MEMBER
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1137
HAVE_GETPAGESIZE
1138
HAVE_GETLOGIN
1139
HAVE_GETHOSTNAME
1140
HAVE_GETGROUPS
1141
HAVE_GETDTABLESIZE
1142
HAVE_FTRUNCATE
1143
HAVE_FSYNC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1144
HAVE_FDATASYNC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1145
HAVE_FCHOWNAT
1146
HAVE_FCHDIR
1147
HAVE_FACCESSAT
1148
HAVE_EUIDACCESS
1149
HAVE_DUP3
1150
HAVE_DUP2
1151
HAVE_CHOWN
1152
GNULIB_WRITE
1153
GNULIB_USLEEP
1154
GNULIB_UNLINKAT
1155
GNULIB_UNLINK
1156
GNULIB_UNISTD_H_SIGPIPE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1157
GNULIB_UNISTD_H_NONBLOCKING
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1158
GNULIB_TTYNAME_R
1159
GNULIB_SYMLINKAT
1160
GNULIB_SYMLINK
1161
GNULIB_SLEEP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1162
GNULIB_SETHOSTNAME
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1163
GNULIB_RMDIR
1164
GNULIB_READLINKAT
1165
GNULIB_READLINK
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1166
GNULIB_READ
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1167
GNULIB_PWRITE
1168
GNULIB_PREAD
1169
GNULIB_PIPE2
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1170
GNULIB_PIPE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1171
GNULIB_LSEEK
1172
GNULIB_LINKAT
1173
GNULIB_LINK
1174
GNULIB_LCHOWN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1175
GNULIB_ISATTY
1176
GNULIB_GROUP_MEMBER
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1177
GNULIB_GETUSERSHELL
1178
GNULIB_GETPAGESIZE
1179
GNULIB_GETLOGIN_R
1180
GNULIB_GETLOGIN
1181
GNULIB_GETHOSTNAME
1182
GNULIB_GETGROUPS
1183
GNULIB_GETDTABLESIZE
1184
GNULIB_GETDOMAINNAME
1185
GNULIB_GETCWD
1186
GNULIB_FTRUNCATE
1187
GNULIB_FSYNC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1188
GNULIB_FDATASYNC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1189
GNULIB_FCHOWNAT
1190
GNULIB_FCHDIR
1191
GNULIB_FACCESSAT
1192
GNULIB_EUIDACCESS
1193
GNULIB_ENVIRON
1194
GNULIB_DUP3
1195
GNULIB_DUP2
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1196
GNULIB_DUP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1197
GNULIB_CLOSE
1198
GNULIB_CHOWN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1199
GNULIB_CHDIR
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1200
REPLACE_VSPRINTF
1201
REPLACE_VSNPRINTF
1202
REPLACE_VPRINTF
1203
REPLACE_VFPRINTF
1204
REPLACE_VDPRINTF
1205
REPLACE_VASPRINTF
1206
REPLACE_TMPFILE
1207
REPLACE_STDIO_WRITE_FUNCS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1208
REPLACE_STDIO_READ_FUNCS
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1209
REPLACE_SPRINTF
1210
REPLACE_SNPRINTF
1211
REPLACE_RENAMEAT
1212
REPLACE_RENAME
1213
REPLACE_REMOVE
1214
REPLACE_PRINTF
1215
REPLACE_POPEN
1216
REPLACE_PERROR
1217
REPLACE_OBSTACK_PRINTF
1218
REPLACE_GETLINE
1219
REPLACE_GETDELIM
1220
REPLACE_FTELLO
1221
REPLACE_FTELL
1222
REPLACE_FSEEKO
1223
REPLACE_FSEEK
1224
REPLACE_FREOPEN
1225
REPLACE_FPURGE
1226
REPLACE_FPRINTF
1227
REPLACE_FOPEN
1228
REPLACE_FFLUSH
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1229
REPLACE_FDOPEN
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1230
REPLACE_FCLOSE
1231
REPLACE_DPRINTF
1232
HAVE_VDPRINTF
1233
HAVE_VASPRINTF
1234
HAVE_RENAMEAT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1235
HAVE_POPEN
1236
HAVE_PCLOSE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1237
HAVE_FTELLO
1238
HAVE_FSEEKO
1239
HAVE_DPRINTF
1240
HAVE_DECL_VSNPRINTF
1241
HAVE_DECL_SNPRINTF
1242
HAVE_DECL_OBSTACK_PRINTF
1243
HAVE_DECL_GETLINE
1244
HAVE_DECL_GETDELIM
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1245
HAVE_DECL_FTELLO
1246
HAVE_DECL_FSEEKO
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1247
HAVE_DECL_FPURGE
1248
GNULIB_VSPRINTF_POSIX
1249
GNULIB_VSNPRINTF
1250
GNULIB_VPRINTF_POSIX
1251
GNULIB_VPRINTF
1252
GNULIB_VFPRINTF_POSIX
1253
GNULIB_VFPRINTF
1254
GNULIB_VDPRINTF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1255
GNULIB_VSCANF
1256
GNULIB_VFSCANF
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1257
GNULIB_VASPRINTF
1258
GNULIB_TMPFILE
1259
GNULIB_STDIO_H_SIGPIPE
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1260
GNULIB_STDIO_H_NONBLOCKING
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1261
GNULIB_SPRINTF_POSIX
1262
GNULIB_SNPRINTF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1263
GNULIB_SCANF
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1264
GNULIB_RENAMEAT
1265
GNULIB_RENAME
1266
GNULIB_REMOVE
1267
GNULIB_PUTS
1268
GNULIB_PUTCHAR
1269
GNULIB_PUTC
1270
GNULIB_PRINTF_POSIX
1271
GNULIB_PRINTF
1272
GNULIB_POPEN
1273
GNULIB_PERROR
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1274
GNULIB_PCLOSE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1275
GNULIB_OBSTACK_PRINTF_POSIX
1276
GNULIB_OBSTACK_PRINTF
1277
GNULIB_GETLINE
1278
GNULIB_GETDELIM
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1279
GNULIB_GETCHAR
1280
GNULIB_GETC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1281
GNULIB_FWRITE
1282
GNULIB_FTELLO
1283
GNULIB_FTELL
1284
GNULIB_FSEEKO
1285
GNULIB_FSEEK
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1286
GNULIB_FSCANF
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1287
GNULIB_FREOPEN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1288
GNULIB_FREAD
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1289
GNULIB_FPUTS
1290
GNULIB_FPUTC
1291
GNULIB_FPURGE
1292
GNULIB_FPRINTF_POSIX
1293
GNULIB_FPRINTF
1294
GNULIB_FOPEN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1295
GNULIB_FGETS
1296
GNULIB_FGETC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1297
GNULIB_FFLUSH
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1298
GNULIB_FDOPEN
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1299
GNULIB_FCLOSE
1300
GNULIB_DPRINTF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1301
GL_GENERATE_FNMATCH_H_FALSE
1302
GL_GENERATE_FNMATCH_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1303
FNMATCH_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1304
REPLACE_ITOLD
1305
GL_GENERATE_FLOAT_H_FALSE
1306
GL_GENERATE_FLOAT_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1307
FLOAT_H
1308
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1309
NEXT_FLOAT_H
1310
EOVERFLOW_VALUE
1311
EOVERFLOW_HIDDEN
1312
ENOLINK_VALUE
1313
ENOLINK_HIDDEN
1314
EMULTIHOP_VALUE
1315
EMULTIHOP_HIDDEN
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1316
GL_GENERATE_ERRNO_H_FALSE
1317
GL_GENERATE_ERRNO_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1318
ERRNO_H
1319
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1320
NEXT_ERRNO_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1321
PRAGMA_COLUMNS
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1322
PRAGMA_SYSTEM_HEADER
1323
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1324
INCLUDE_NEXT
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1325
pkglibexecdir
1326
lispdir
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1327
LOCALE_FR
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1328
REPLACE_WCSWIDTH
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1329
REPLACE_WCWIDTH
1330
REPLACE_WCSNRTOMBS
1331
REPLACE_WCSRTOMBS
1332
REPLACE_WCRTOMB
1333
REPLACE_MBSNRTOWCS
1334
REPLACE_MBSRTOWCS
1335
REPLACE_MBRLEN
1336
REPLACE_MBRTOWC
1337
REPLACE_MBSINIT
1338
REPLACE_WCTOB
1339
REPLACE_BTOWC
1340
REPLACE_MBSTATE_T
1341
HAVE_DECL_WCWIDTH
1342
HAVE_DECL_WCTOB
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1343
HAVE_WCSWIDTH
1344
HAVE_WCSTOK
1345
HAVE_WCSSTR
1346
HAVE_WCSPBRK
1347
HAVE_WCSSPN
1348
HAVE_WCSCSPN
1349
HAVE_WCSRCHR
1350
HAVE_WCSCHR
1351
HAVE_WCSDUP
1352
HAVE_WCSXFRM
1353
HAVE_WCSCOLL
1354
HAVE_WCSNCASECMP
1355
HAVE_WCSCASECMP
1356
HAVE_WCSNCMP
1357
HAVE_WCSCMP
1358
HAVE_WCSNCAT
1359
HAVE_WCSCAT
1360
HAVE_WCPNCPY
1361
HAVE_WCSNCPY
1362
HAVE_WCPCPY
1363
HAVE_WCSCPY
1364
HAVE_WCSNLEN
1365
HAVE_WCSLEN
1366
HAVE_WMEMSET
1367
HAVE_WMEMMOVE
1368
HAVE_WMEMCPY
1369
HAVE_WMEMCMP
1370
HAVE_WMEMCHR
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1371
HAVE_WCSNRTOMBS
1372
HAVE_WCSRTOMBS
1373
HAVE_WCRTOMB
1374
HAVE_MBSNRTOWCS
1375
HAVE_MBSRTOWCS
1376
HAVE_MBRLEN
1377
HAVE_MBRTOWC
1378
HAVE_MBSINIT
1379
HAVE_BTOWC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1380
GNULIB_WCSWIDTH
1381
GNULIB_WCSTOK
1382
GNULIB_WCSSTR
1383
GNULIB_WCSPBRK
1384
GNULIB_WCSSPN
1385
GNULIB_WCSCSPN
1386
GNULIB_WCSRCHR
1387
GNULIB_WCSCHR
1388
GNULIB_WCSDUP
1389
GNULIB_WCSXFRM
1390
GNULIB_WCSCOLL
1391
GNULIB_WCSNCASECMP
1392
GNULIB_WCSCASECMP
1393
GNULIB_WCSNCMP
1394
GNULIB_WCSCMP
1395
GNULIB_WCSNCAT
1396
GNULIB_WCSCAT
1397
GNULIB_WCPNCPY
1398
GNULIB_WCSNCPY
1399
GNULIB_WCPCPY
1400
GNULIB_WCSCPY
1401
GNULIB_WCSNLEN
1402
GNULIB_WCSLEN
1403
GNULIB_WMEMSET
1404
GNULIB_WMEMMOVE
1405
GNULIB_WMEMCPY
1406
GNULIB_WMEMCMP
1407
GNULIB_WMEMCHR
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1408
GNULIB_WCWIDTH
1409
GNULIB_WCSNRTOMBS
1410
GNULIB_WCSRTOMBS
1411
GNULIB_WCRTOMB
1412
GNULIB_MBSNRTOWCS
1413
GNULIB_MBSRTOWCS
1414
GNULIB_MBRLEN
1415
GNULIB_MBRTOWC
1416
GNULIB_MBSINIT
1417
GNULIB_WCTOB
1418
GNULIB_BTOWC
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1419
GL_GENERATE_ALLOCA_H_FALSE
1420
GL_GENERATE_ALLOCA_H_TRUE
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1421
ALLOCA_H
1422
ALLOCA
1423
GL_COND_LIBTOOL_FALSE
1424
GL_COND_LIBTOOL_TRUE
1425
BUILD_CC
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1426
LIBUTIL
1427
HELP2MAN
1428
POSUB
1429
LTLIBINTL
1430
LIBINTL
1431
INTLLIBS
1432
LTLIBICONV
1433
LIBICONV
1434
INTL_MACOSX_LIBS
1435
XGETTEXT_EXTRA_OPTIONS
1436
MSGMERGE
1437
XGETTEXT_015
1438
XGETTEXT
1439
GMSGFMT_015
1440
MSGFMT_015
1441
GMSGFMT
1442
MSGFMT
1443
GETTEXT_MACRO_VERSION
1444
USE_NLS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1445
HAVE_CXX
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1446
am__fastdepCCAS_FALSE
1447
am__fastdepCCAS_TRUE
1448
CCASDEPMODE
1449
CCASFLAGS
1450
CCAS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1451
am__fastdepCXX_FALSE
1452
am__fastdepCXX_TRUE
1453
CXXDEPMODE
1454
ac_ct_CXX
1455
CXXFLAGS
1456
CXX
1457
ARFLAGS
1458
AR
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1459
EGREP
1460
GREP
1461
CPP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1462
LN_S
1463
YFLAGS
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1464
LEXLIB
1465
am__fastdepCC_FALSE
1466
am__fastdepCC_TRUE
1467
CCDEPMODE
1.15.16 by Colin Watson
Import upstream version 2.00
1468
am__nodep
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1469
AMDEPBACKSLASH
1470
AMDEP_FALSE
1471
AMDEP_TRUE
1472
am__quote
1473
am__include
1474
DEPDIR
1475
OBJEXT
1476
EXEEXT
1477
ac_ct_CC
1478
CPPFLAGS
1479
LDFLAGS
1480
CFLAGS
1481
CC
1482
LEX_OUTPUT_ROOT
1483
LEX
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1484
RANLIB
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1485
YACC
1486
CMP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1487
grubdirname
1488
bootdirname
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1489
platform
1490
host_kernel
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1491
TARGET_DECOMPRESSOR_LINK_ADDR
1492
TARGET_LINK_ADDR
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
1493
grub_file
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1494
grub_render_label
1495
grub_sparc64_setup
1496
grub_set_default
1497
grub_script_check
1498
grub_reboot
1499
grub_probe
1500
grub_mkrescue
1501
grub_mkrelpath
1502
grub_mkpasswd_pbkdf2
1503
grub_mklayout
1504
grub_glue_efi
1505
grub_mkimage
1506
grub_mkfont
1507
grub_mkconfig
1508
grub_install
1509
grub_editenv
1510
grub_bios_setup
1511
AM_BACKSLASH
1512
AM_DEFAULT_VERBOSITY
1513
AM_DEFAULT_V
1514
AM_V
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1515
am__untar
1516
am__tar
1517
AMTAR
1518
am__leading_dot
1519
SET_MAKE
1520
AWK
1521
mkdir_p
1522
MKDIR_P
1523
INSTALL_STRIP_PROGRAM
1524
STRIP
1525
install_sh
1526
MAKEINFO
1527
AUTOHEADER
1528
AUTOMAKE
1529
AUTOCONF
1530
ACLOCAL
1531
VERSION
1532
PACKAGE
1533
CYGPATH_W
1534
am__isrc
1535
INSTALL_DATA
1536
INSTALL_SCRIPT
1537
INSTALL_PROGRAM
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1538
target_os
1539
target_vendor
1540
target_cpu
1541
target
1542
host_os
1543
host_vendor
1544
host_cpu
1545
host
1546
build_os
1547
build_vendor
1548
build_cpu
1549
build
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1550
target_alias
1551
host_alias
1552
build_alias
1553
LIBS
1554
ECHO_T
1555
ECHO_N
1556
ECHO_C
1557
DEFS
1558
mandir
1559
localedir
1560
libdir
1561
psdir
1562
pdfdir
1563
dvidir
1564
htmldir
1565
infodir
1566
docdir
1567
oldincludedir
1568
includedir
1569
localstatedir
1570
sharedstatedir
1571
sysconfdir
1572
datadir
1573
datarootdir
1574
libexecdir
1575
sbindir
1576
bindir
1577
program_transform_name
1578
prefix
1579
exec_prefix
1580
PACKAGE_URL
1581
PACKAGE_BUGREPORT
1582
PACKAGE_STRING
1583
PACKAGE_VERSION
1584
PACKAGE_TARNAME
1585
PACKAGE_NAME
1586
PATH_SEPARATOR
1587
SHELL'
1588
ac_subst_files=''
1589
ac_user_opts='
1590
enable_option_checking
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1591
enable_silent_rules
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1592
with_platform
1.15.16 by Colin Watson
Import upstream version 2.00
1593
with_bootdir
1594
with_grubdir
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1595
enable_dependency_tracking
1596
enable_nls
1597
with_gnu_ld
1598
enable_rpath
1599
with_libiconv_prefix
1600
with_libintl_prefix
1601
enable_largefile
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1602
with_included_regex
1.15.16 by Colin Watson
Import upstream version 2.00
1603
enable_efiemu
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1604
enable_mm_debug
1.15.16 by Colin Watson
Import upstream version 2.00
1605
enable_cache_stats
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1606
enable_boot_time
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1607
enable_grub_emu_usb
1608
enable_grub_emu_sdl
1609
enable_grub_emu_pci
1610
enable_grub_mkfont
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1611
enable_grub_themes
1.15.16 by Colin Watson
Import upstream version 2.00
1612
enable_grub_mount
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1613
enable_device_mapper
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1614
enable_liblzma
1.15.16 by Colin Watson
Import upstream version 2.00
1615
enable_libzfs
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1616
enable_werror
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1617
'
1618
      ac_precious_vars='build_alias
1619
host_alias
1620
target_alias
1621
CC
1622
CFLAGS
1623
LDFLAGS
1624
LIBS
1625
CPPFLAGS
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1626
YACC
1627
YFLAGS
1628
CPP
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
1629
CXX
1630
CXXFLAGS
1631
CCC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
1632
CCAS
1633
CCASFLAGS'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1634
1635
1636
# Initialize some variables set by options.
1637
ac_init_help=
1638
ac_init_version=false
1639
ac_unrecognized_opts=
1640
ac_unrecognized_sep=
1641
# The variables have the same names as the options, with
1642
# dashes changed to underlines.
1643
cache_file=/dev/null
1644
exec_prefix=NONE
1645
no_create=
1646
no_recursion=
1647
prefix=NONE
1648
program_prefix=NONE
1649
program_suffix=NONE
1650
program_transform_name=s,x,x,
1651
silent=
1652
site=
1653
srcdir=
1654
verbose=
1655
x_includes=NONE
1656
x_libraries=NONE
1657
1658
# Installation directory options.
1659
# These are left unexpanded so users can "make install exec_prefix=/foo"
1660
# and all the variables that are supposed to be based on exec_prefix
1661
# by default will actually change.
1662
# Use braces instead of parens because sh, perl, etc. also accept them.
1663
# (The list follows the same order as the GNU Coding Standards.)
1664
bindir='${exec_prefix}/bin'
1665
sbindir='${exec_prefix}/sbin'
1666
libexecdir='${exec_prefix}/libexec'
1667
datarootdir='${prefix}/share'
1668
datadir='${datarootdir}'
1669
sysconfdir='${prefix}/etc'
1670
sharedstatedir='${prefix}/com'
1671
localstatedir='${prefix}/var'
1672
includedir='${prefix}/include'
1673
oldincludedir='/usr/include'
1674
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1675
infodir='${datarootdir}/info'
1676
htmldir='${docdir}'
1677
dvidir='${docdir}'
1678
pdfdir='${docdir}'
1679
psdir='${docdir}'
1680
libdir='${exec_prefix}/lib'
1681
localedir='${datarootdir}/locale'
1682
mandir='${datarootdir}/man'
1683
1684
ac_prev=
1685
ac_dashdash=
1686
for ac_option
1687
do
1688
  # If the previous option needs an argument, assign it.
1689
  if test -n "$ac_prev"; then
1690
    eval $ac_prev=\$ac_option
1691
    ac_prev=
1692
    continue
1693
  fi
1694
1695
  case $ac_option in
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
1696
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1697
  *=)   ac_optarg= ;;
1698
  *)    ac_optarg=yes ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1699
  esac
1700
1701
  # Accept the important Cygnus configure options, so we can diagnose typos.
1702
1703
  case $ac_dashdash$ac_option in
1704
  --)
1705
    ac_dashdash=yes ;;
1706
1707
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1708
    ac_prev=bindir ;;
1709
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1710
    bindir=$ac_optarg ;;
1711
1712
  -build | --build | --buil | --bui | --bu)
1713
    ac_prev=build_alias ;;
1714
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1715
    build_alias=$ac_optarg ;;
1716
1717
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1718
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1719
    ac_prev=cache_file ;;
1720
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1721
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1722
    cache_file=$ac_optarg ;;
1723
1724
  --config-cache | -C)
1725
    cache_file=config.cache ;;
1726
1727
  -datadir | --datadir | --datadi | --datad)
1728
    ac_prev=datadir ;;
1729
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1730
    datadir=$ac_optarg ;;
1731
1732
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1733
  | --dataroo | --dataro | --datar)
1734
    ac_prev=datarootdir ;;
1735
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1736
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1737
    datarootdir=$ac_optarg ;;
1738
1739
  -disable-* | --disable-*)
1740
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1741
    # Reject names that are not valid shell variable names.
1742
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
1743
      as_fn_error $? "invalid feature name: $ac_useropt"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1744
    ac_useropt_orig=$ac_useropt
1745
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1746
    case $ac_user_opts in
1747
      *"
1748
"enable_$ac_useropt"
1749
"*) ;;
1750
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1751
	 ac_unrecognized_sep=', ';;
1752
    esac
1753
    eval enable_$ac_useropt=no ;;
1754
1755
  -docdir | --docdir | --docdi | --doc | --do)
1756
    ac_prev=docdir ;;
1757
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1758
    docdir=$ac_optarg ;;
1759
1760
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1761
    ac_prev=dvidir ;;
1762
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1763
    dvidir=$ac_optarg ;;
1764
1765
  -enable-* | --enable-*)
1766
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1767
    # Reject names that are not valid shell variable names.
1768
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
1769
      as_fn_error $? "invalid feature name: $ac_useropt"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1770
    ac_useropt_orig=$ac_useropt
1771
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1772
    case $ac_user_opts in
1773
      *"
1774
"enable_$ac_useropt"
1775
"*) ;;
1776
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1777
	 ac_unrecognized_sep=', ';;
1778
    esac
1779
    eval enable_$ac_useropt=\$ac_optarg ;;
1780
1781
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1782
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1783
  | --exec | --exe | --ex)
1784
    ac_prev=exec_prefix ;;
1785
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1786
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1787
  | --exec=* | --exe=* | --ex=*)
1788
    exec_prefix=$ac_optarg ;;
1789
1790
  -gas | --gas | --ga | --g)
1791
    # Obsolete; use --with-gas.
1792
    with_gas=yes ;;
1793
1794
  -help | --help | --hel | --he | -h)
1795
    ac_init_help=long ;;
1796
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1797
    ac_init_help=recursive ;;
1798
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1799
    ac_init_help=short ;;
1800
1801
  -host | --host | --hos | --ho)
1802
    ac_prev=host_alias ;;
1803
  -host=* | --host=* | --hos=* | --ho=*)
1804
    host_alias=$ac_optarg ;;
1805
1806
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1807
    ac_prev=htmldir ;;
1808
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1809
  | --ht=*)
1810
    htmldir=$ac_optarg ;;
1811
1812
  -includedir | --includedir | --includedi | --included | --include \
1813
  | --includ | --inclu | --incl | --inc)
1814
    ac_prev=includedir ;;
1815
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1816
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1817
    includedir=$ac_optarg ;;
1818
1819
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1820
    ac_prev=infodir ;;
1821
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1822
    infodir=$ac_optarg ;;
1823
1824
  -libdir | --libdir | --libdi | --libd)
1825
    ac_prev=libdir ;;
1826
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1827
    libdir=$ac_optarg ;;
1828
1829
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1830
  | --libexe | --libex | --libe)
1831
    ac_prev=libexecdir ;;
1832
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1833
  | --libexe=* | --libex=* | --libe=*)
1834
    libexecdir=$ac_optarg ;;
1835
1836
  -localedir | --localedir | --localedi | --localed | --locale)
1837
    ac_prev=localedir ;;
1838
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1839
    localedir=$ac_optarg ;;
1840
1841
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1842
  | --localstate | --localstat | --localsta | --localst | --locals)
1843
    ac_prev=localstatedir ;;
1844
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1845
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1846
    localstatedir=$ac_optarg ;;
1847
1848
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1849
    ac_prev=mandir ;;
1850
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1851
    mandir=$ac_optarg ;;
1852
1853
  -nfp | --nfp | --nf)
1854
    # Obsolete; use --without-fp.
1855
    with_fp=no ;;
1856
1857
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1858
  | --no-cr | --no-c | -n)
1859
    no_create=yes ;;
1860
1861
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1862
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1863
    no_recursion=yes ;;
1864
1865
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1866
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1867
  | --oldin | --oldi | --old | --ol | --o)
1868
    ac_prev=oldincludedir ;;
1869
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1870
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1871
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1872
    oldincludedir=$ac_optarg ;;
1873
1874
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1875
    ac_prev=prefix ;;
1876
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1877
    prefix=$ac_optarg ;;
1878
1879
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1880
  | --program-pre | --program-pr | --program-p)
1881
    ac_prev=program_prefix ;;
1882
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1883
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1884
    program_prefix=$ac_optarg ;;
1885
1886
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1887
  | --program-suf | --program-su | --program-s)
1888
    ac_prev=program_suffix ;;
1889
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1890
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1891
    program_suffix=$ac_optarg ;;
1892
1893
  -program-transform-name | --program-transform-name \
1894
  | --program-transform-nam | --program-transform-na \
1895
  | --program-transform-n | --program-transform- \
1896
  | --program-transform | --program-transfor \
1897
  | --program-transfo | --program-transf \
1898
  | --program-trans | --program-tran \
1899
  | --progr-tra | --program-tr | --program-t)
1900
    ac_prev=program_transform_name ;;
1901
  -program-transform-name=* | --program-transform-name=* \
1902
  | --program-transform-nam=* | --program-transform-na=* \
1903
  | --program-transform-n=* | --program-transform-=* \
1904
  | --program-transform=* | --program-transfor=* \
1905
  | --program-transfo=* | --program-transf=* \
1906
  | --program-trans=* | --program-tran=* \
1907
  | --progr-tra=* | --program-tr=* | --program-t=*)
1908
    program_transform_name=$ac_optarg ;;
1909
1910
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1911
    ac_prev=pdfdir ;;
1912
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1913
    pdfdir=$ac_optarg ;;
1914
1915
  -psdir | --psdir | --psdi | --psd | --ps)
1916
    ac_prev=psdir ;;
1917
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1918
    psdir=$ac_optarg ;;
1919
1920
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1921
  | -silent | --silent | --silen | --sile | --sil)
1922
    silent=yes ;;
1923
1924
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1925
    ac_prev=sbindir ;;
1926
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1927
  | --sbi=* | --sb=*)
1928
    sbindir=$ac_optarg ;;
1929
1930
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1931
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1932
  | --sharedst | --shareds | --shared | --share | --shar \
1933
  | --sha | --sh)
1934
    ac_prev=sharedstatedir ;;
1935
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1936
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1937
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1938
  | --sha=* | --sh=*)
1939
    sharedstatedir=$ac_optarg ;;
1940
1941
  -site | --site | --sit)
1942
    ac_prev=site ;;
1943
  -site=* | --site=* | --sit=*)
1944
    site=$ac_optarg ;;
1945
1946
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1947
    ac_prev=srcdir ;;
1948
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1949
    srcdir=$ac_optarg ;;
1950
1951
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1952
  | --syscon | --sysco | --sysc | --sys | --sy)
1953
    ac_prev=sysconfdir ;;
1954
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1955
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1956
    sysconfdir=$ac_optarg ;;
1957
1958
  -target | --target | --targe | --targ | --tar | --ta | --t)
1959
    ac_prev=target_alias ;;
1960
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1961
    target_alias=$ac_optarg ;;
1962
1963
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1964
    verbose=yes ;;
1965
1966
  -version | --version | --versio | --versi | --vers | -V)
1967
    ac_init_version=: ;;
1968
1969
  -with-* | --with-*)
1970
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1971
    # Reject names that are not valid shell variable names.
1972
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
1973
      as_fn_error $? "invalid package name: $ac_useropt"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1974
    ac_useropt_orig=$ac_useropt
1975
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1976
    case $ac_user_opts in
1977
      *"
1978
"with_$ac_useropt"
1979
"*) ;;
1980
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1981
	 ac_unrecognized_sep=', ';;
1982
    esac
1983
    eval with_$ac_useropt=\$ac_optarg ;;
1984
1985
  -without-* | --without-*)
1986
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1987
    # Reject names that are not valid shell variable names.
1988
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
1989
      as_fn_error $? "invalid package name: $ac_useropt"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
1990
    ac_useropt_orig=$ac_useropt
1991
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1992
    case $ac_user_opts in
1993
      *"
1994
"with_$ac_useropt"
1995
"*) ;;
1996
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1997
	 ac_unrecognized_sep=', ';;
1998
    esac
1999
    eval with_$ac_useropt=no ;;
2000
2001
  --x)
2002
    # Obsolete; use --with-x.
2003
    with_x=yes ;;
2004
2005
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2006
  | --x-incl | --x-inc | --x-in | --x-i)
2007
    ac_prev=x_includes ;;
2008
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2009
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2010
    x_includes=$ac_optarg ;;
2011
2012
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2013
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2014
    ac_prev=x_libraries ;;
2015
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2016
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2017
    x_libraries=$ac_optarg ;;
2018
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2019
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2020
Try \`$0 --help' for more information"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2021
    ;;
2022
2023
  *=*)
2024
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2025
    # Reject names that are not valid shell variable names.
2026
    case $ac_envvar in #(
2027
      '' | [0-9]* | *[!_$as_cr_alnum]* )
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2028
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2029
    esac
2030
    eval $ac_envvar=\$ac_optarg
2031
    export $ac_envvar ;;
2032
2033
  *)
2034
    # FIXME: should be removed in autoconf 3.0.
2035
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2036
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2037
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.15.15 by Colin Watson
Import upstream version 1.99
2038
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2039
    ;;
2040
2041
  esac
2042
done
2043
2044
if test -n "$ac_prev"; then
2045
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2046
  as_fn_error $? "missing argument to $ac_option"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2047
fi
2048
2049
if test -n "$ac_unrecognized_opts"; then
2050
  case $enable_option_checking in
2051
    no) ;;
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2052
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2053
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2054
  esac
2055
fi
2056
2057
# Check all directory arguments for consistency.
2058
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2059
		datadir sysconfdir sharedstatedir localstatedir includedir \
2060
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2061
		libdir localedir mandir
2062
do
2063
  eval ac_val=\$$ac_var
2064
  # Remove trailing slashes.
2065
  case $ac_val in
2066
    */ )
2067
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2068
      eval $ac_var=\$ac_val;;
2069
  esac
2070
  # Be sure to have absolute directory names.
2071
  case $ac_val in
2072
    [\\/$]* | ?:[\\/]* )  continue;;
2073
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2074
  esac
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2075
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2076
done
2077
2078
# There might be people who depend on the old broken behavior: `$host'
2079
# used to hold the argument of --host etc.
2080
# FIXME: To remove some day.
2081
build=$build_alias
2082
host=$host_alias
2083
target=$target_alias
2084
2085
# FIXME: To remove some day.
2086
if test "x$host_alias" != x; then
2087
  if test "x$build_alias" = x; then
2088
    cross_compiling=maybe
2089
  elif test "x$build_alias" != "x$host_alias"; then
2090
    cross_compiling=yes
2091
  fi
2092
fi
2093
2094
ac_tool_prefix=
2095
test -n "$host_alias" && ac_tool_prefix=$host_alias-
2096
2097
test "$silent" = yes && exec 6>/dev/null
2098
2099
2100
ac_pwd=`pwd` && test -n "$ac_pwd" &&
2101
ac_ls_di=`ls -di .` &&
2102
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2103
  as_fn_error $? "working directory cannot be determined"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2104
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2105
  as_fn_error $? "pwd does not report name of working directory"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2106
2107
2108
# Find the source files, if location was not specified.
2109
if test -z "$srcdir"; then
2110
  ac_srcdir_defaulted=yes
2111
  # Try the directory containing this script, then the parent directory.
2112
  ac_confdir=`$as_dirname -- "$as_myself" ||
2113
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2114
	 X"$as_myself" : 'X\(//\)[^/]' \| \
2115
	 X"$as_myself" : 'X\(//\)$' \| \
2116
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2117
$as_echo X"$as_myself" |
2118
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2119
	    s//\1/
2120
	    q
2121
	  }
2122
	  /^X\(\/\/\)[^/].*/{
2123
	    s//\1/
2124
	    q
2125
	  }
2126
	  /^X\(\/\/\)$/{
2127
	    s//\1/
2128
	    q
2129
	  }
2130
	  /^X\(\/\).*/{
2131
	    s//\1/
2132
	    q
2133
	  }
2134
	  s/.*/./; q'`
2135
  srcdir=$ac_confdir
2136
  if test ! -r "$srcdir/$ac_unique_file"; then
2137
    srcdir=..
2138
  fi
2139
else
2140
  ac_srcdir_defaulted=no
2141
fi
2142
if test ! -r "$srcdir/$ac_unique_file"; then
2143
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2144
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2145
fi
2146
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2147
ac_abs_confdir=`(
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2148
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2149
	pwd)`
2150
# When building in place, set srcdir=.
2151
if test "$ac_abs_confdir" = "$ac_pwd"; then
2152
  srcdir=.
2153
fi
2154
# Remove unnecessary trailing slashes from srcdir.
2155
# Double slashes in file names in object file debugging info
2156
# mess up M-x gdb in Emacs.
2157
case $srcdir in
2158
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2159
esac
2160
for ac_var in $ac_precious_vars; do
2161
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2162
  eval ac_env_${ac_var}_value=\$${ac_var}
2163
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2164
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2165
done
2166
2167
#
2168
# Report the --help message.
2169
#
2170
if test "$ac_init_help" = "long"; then
2171
  # Omit some internal or obsolete options to make the list less imposing.
2172
  # This message is too long to be a string in the A/UX 3.1 sh.
2173
  cat <<_ACEOF
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
2174
\`configure' configures GRUB 2.02~beta2 to adapt to many kinds of systems.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2175
2176
Usage: $0 [OPTION]... [VAR=VALUE]...
2177
2178
To assign environment variables (e.g., CC, CFLAGS...), specify them as
2179
VAR=VALUE.  See below for descriptions of some of the useful variables.
2180
2181
Defaults for the options are specified in brackets.
2182
2183
Configuration:
2184
  -h, --help              display this help and exit
2185
      --help=short        display options specific to this package
2186
      --help=recursive    display the short help of all the included packages
2187
  -V, --version           display version information and exit
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2188
  -q, --quiet, --silent   do not print \`checking ...' messages
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2189
      --cache-file=FILE   cache test results in FILE [disabled]
2190
  -C, --config-cache      alias for \`--cache-file=config.cache'
2191
  -n, --no-create         do not create output files
2192
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2193
2194
Installation directories:
2195
  --prefix=PREFIX         install architecture-independent files in PREFIX
2196
                          [$ac_default_prefix]
2197
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2198
                          [PREFIX]
2199
2200
By default, \`make install' will install all the files in
2201
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2202
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2203
for instance \`--prefix=\$HOME'.
2204
2205
For better control, use the options below.
2206
2207
Fine tuning of the installation directories:
2208
  --bindir=DIR            user executables [EPREFIX/bin]
2209
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2210
  --libexecdir=DIR        program executables [EPREFIX/libexec]
2211
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2212
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2213
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2214
  --libdir=DIR            object code libraries [EPREFIX/lib]
2215
  --includedir=DIR        C header files [PREFIX/include]
2216
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2217
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2218
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2219
  --infodir=DIR           info documentation [DATAROOTDIR/info]
2220
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2221
  --mandir=DIR            man documentation [DATAROOTDIR/man]
2222
  --docdir=DIR            documentation root [DATAROOTDIR/doc/grub]
2223
  --htmldir=DIR           html documentation [DOCDIR]
2224
  --dvidir=DIR            dvi documentation [DOCDIR]
2225
  --pdfdir=DIR            pdf documentation [DOCDIR]
2226
  --psdir=DIR             ps documentation [DOCDIR]
2227
_ACEOF
2228
2229
  cat <<\_ACEOF
2230
2231
Program names:
2232
  --program-prefix=PREFIX            prepend PREFIX to installed program names
2233
  --program-suffix=SUFFIX            append SUFFIX to installed program names
2234
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2235
2236
System types:
2237
  --build=BUILD     configure for building on BUILD [guessed]
2238
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2239
  --target=TARGET   configure for building compilers for TARGET [HOST]
2240
_ACEOF
2241
fi
2242
2243
if test -n "$ac_init_help"; then
2244
  case $ac_init_help in
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
2245
     short | recursive ) echo "Configuration of GRUB 2.02~beta2:";;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2246
   esac
2247
  cat <<\_ACEOF
2248
2249
Optional Features:
2250
  --disable-option-checking  ignore unrecognized --enable/--with options
2251
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2252
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2253
  --enable-silent-rules   less verbose build output (undo: "make V=1")
2254
  --disable-silent-rules  verbose build output (undo: "make V=0")
2255
  --enable-dependency-tracking
2256
                          do not reject slow dependency extractors
2257
  --disable-dependency-tracking
2258
                          speeds up one-time build
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2259
  --disable-nls           do not use Native Language Support
2260
  --disable-rpath         do not hardcode runtime library paths
2261
  --disable-largefile     omit support for large files
1.15.16 by Colin Watson
Import upstream version 2.00
2262
  --enable-efiemu         build and install the efiemu runtimes
2263
                          (default=guessed)
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2264
  --enable-mm-debug       include memory manager debugging
1.15.16 by Colin Watson
Import upstream version 2.00
2265
  --enable-cache-stats    enable disk cache statistics collection
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2266
  --enable-boot-time      enable boot time statistics collection
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2267
  --enable-grub-emu-usb   build and install the `grub-emu' debugging utility
2268
                          with USB support (default=guessed)
2269
  --enable-grub-emu-sdl   build and install the `grub-emu' debugging utility
2270
                          with SDL support (default=guessed)
2271
  --enable-grub-emu-pci   build and install the `grub-emu' debugging utility
2272
                          with PCI support (potentially dangerous)
2273
                          (default=no)
2274
  --enable-grub-mkfont    build and install the `grub-mkfont' utility
2275
                          (default=guessed)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2276
  --enable-grub-themes    build and install GRUB themes (default=guessed)
1.15.16 by Colin Watson
Import upstream version 2.00
2277
  --enable-grub-mount     build and install the `grub-mount' utility
2278
                          (default=guessed)
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2279
  --enable-device-mapper  enable Linux device-mapper support (default=guessed)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2280
  --enable-liblzma        enable liblzma integration (default=guessed)
1.15.16 by Colin Watson
Import upstream version 2.00
2281
  --enable-libzfs         enable libzfs integration (default=guessed)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2282
  --disable-werror        do not use -Werror when building GRUB
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2283
2284
Optional Packages:
2285
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2286
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2287
  --with-platform=PLATFORM
2288
                          select the host platform [[guessed]]
1.15.16 by Colin Watson
Import upstream version 2.00
2289
  --with-bootdir=DIR      set the name of /boot directory [[guessed]]
2290
  --with-grubdir=DIR      set the name of grub directory [[guessed]]
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2291
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2292
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2293
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2294
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2295
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
2296
  --without-included-regex
2297
                          don't compile regex; this is the default on systems
2298
                          with recent-enough versions of the GNU C Library
2299
                          (use with caution on other systems).
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2300
2301
Some influential environment variables:
2302
  CC          C compiler command
2303
  CFLAGS      C compiler flags
2304
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2305
              nonstandard directory <lib dir>
2306
  LIBS        libraries to pass to the linker, e.g. -l<library>
2307
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2308
              you have headers in a nonstandard directory <include dir>
1.15.15 by Colin Watson
Import upstream version 1.99
2309
  YACC        The `Yet Another Compiler Compiler' implementation to use.
2310
              Defaults to the first program found out of: `bison -y', `byacc',
2311
              `yacc'.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
2312
  YFLAGS      The list of arguments that will be passed by default to $YACC.
2313
              This script will default YFLAGS to the empty string to avoid a
2314
              default value of `-d' given by some make applications.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2315
  CPP         C preprocessor
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2316
  CXX         C++ compiler command
2317
  CXXFLAGS    C++ compiler flags
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
2318
  CCAS        assembler compiler command (defaults to CC)
2319
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2320
2321
Use these variables to override the choices made by `configure' or to help
2322
it to find libraries and programs with nonstandard names/locations.
2323
2324
Report bugs to <bug-grub@gnu.org>.
2325
_ACEOF
2326
ac_status=$?
2327
fi
2328
2329
if test "$ac_init_help" = "recursive"; then
2330
  # If there are subdirs, report their specific --help.
2331
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2332
    test -d "$ac_dir" ||
2333
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2334
      continue
2335
    ac_builddir=.
2336
2337
case "$ac_dir" in
2338
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2339
*)
2340
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2341
  # A ".." for each directory in $ac_dir_suffix.
2342
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2343
  case $ac_top_builddir_sub in
2344
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2345
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2346
  esac ;;
2347
esac
2348
ac_abs_top_builddir=$ac_pwd
2349
ac_abs_builddir=$ac_pwd$ac_dir_suffix
2350
# for backward compatibility:
2351
ac_top_builddir=$ac_top_build_prefix
2352
2353
case $srcdir in
2354
  .)  # We are building in place.
2355
    ac_srcdir=.
2356
    ac_top_srcdir=$ac_top_builddir_sub
2357
    ac_abs_top_srcdir=$ac_pwd ;;
2358
  [\\/]* | ?:[\\/]* )  # Absolute name.
2359
    ac_srcdir=$srcdir$ac_dir_suffix;
2360
    ac_top_srcdir=$srcdir
2361
    ac_abs_top_srcdir=$srcdir ;;
2362
  *) # Relative name.
2363
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2364
    ac_top_srcdir=$ac_top_build_prefix$srcdir
2365
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2366
esac
2367
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2368
2369
    cd "$ac_dir" || { ac_status=$?; continue; }
2370
    # Check for guested configure.
2371
    if test -f "$ac_srcdir/configure.gnu"; then
2372
      echo &&
2373
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2374
    elif test -f "$ac_srcdir/configure"; then
2375
      echo &&
2376
      $SHELL "$ac_srcdir/configure" --help=recursive
2377
    else
2378
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2379
    fi || ac_status=$?
2380
    cd "$ac_pwd" || { ac_status=$?; break; }
2381
  done
2382
fi
2383
2384
test -n "$ac_init_help" && exit $ac_status
2385
if $ac_init_version; then
2386
  cat <<\_ACEOF
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
2387
GRUB configure 2.02~beta2
1.15.16 by Colin Watson
Import upstream version 2.00
2388
generated by GNU Autoconf 2.69
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2389
1.15.16 by Colin Watson
Import upstream version 2.00
2390
Copyright (C) 2012 Free Software Foundation, Inc.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2391
This configure script is free software; the Free Software Foundation
2392
gives unlimited permission to copy, distribute and modify it.
2393
_ACEOF
2394
  exit
2395
fi
2396
2397
## ------------------------ ##
2398
## Autoconf initialization. ##
2399
## ------------------------ ##
2400
2401
# ac_fn_c_try_compile LINENO
2402
# --------------------------
2403
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2404
ac_fn_c_try_compile ()
2405
{
2406
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407
  rm -f conftest.$ac_objext
2408
  if { { ac_try="$ac_compile"
2409
case "(($ac_try" in
2410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411
  *) ac_try_echo=$ac_try;;
2412
esac
2413
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414
$as_echo "$ac_try_echo"; } >&5
2415
  (eval "$ac_compile") 2>conftest.err
2416
  ac_status=$?
2417
  if test -s conftest.err; then
2418
    grep -v '^ *+' conftest.err >conftest.er1
2419
    cat conftest.er1 >&5
2420
    mv -f conftest.er1 conftest.err
2421
  fi
2422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423
  test $ac_status = 0; } && {
2424
	 test -z "$ac_c_werror_flag" ||
2425
	 test ! -s conftest.err
2426
       } && test -s conftest.$ac_objext; then :
2427
  ac_retval=0
2428
else
2429
  $as_echo "$as_me: failed program was:" >&5
2430
sed 's/^/| /' conftest.$ac_ext >&5
2431
2432
	ac_retval=1
2433
fi
1.15.15 by Colin Watson
Import upstream version 1.99
2434
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2435
  as_fn_set_status $ac_retval
2436
2437
} # ac_fn_c_try_compile
2438
2439
# ac_fn_c_try_link LINENO
2440
# -----------------------
2441
# Try to link conftest.$ac_ext, and return whether this succeeded.
2442
ac_fn_c_try_link ()
2443
{
2444
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445
  rm -f conftest.$ac_objext conftest$ac_exeext
2446
  if { { ac_try="$ac_link"
2447
case "(($ac_try" in
2448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449
  *) ac_try_echo=$ac_try;;
2450
esac
2451
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452
$as_echo "$ac_try_echo"; } >&5
2453
  (eval "$ac_link") 2>conftest.err
2454
  ac_status=$?
2455
  if test -s conftest.err; then
2456
    grep -v '^ *+' conftest.err >conftest.er1
2457
    cat conftest.er1 >&5
2458
    mv -f conftest.er1 conftest.err
2459
  fi
2460
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461
  test $ac_status = 0; } && {
2462
	 test -z "$ac_c_werror_flag" ||
2463
	 test ! -s conftest.err
2464
       } && test -s conftest$ac_exeext && {
2465
	 test "$cross_compiling" = yes ||
1.15.16 by Colin Watson
Import upstream version 2.00
2466
	 test -x conftest$ac_exeext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2467
       }; then :
2468
  ac_retval=0
2469
else
2470
  $as_echo "$as_me: failed program was:" >&5
2471
sed 's/^/| /' conftest.$ac_ext >&5
2472
2473
	ac_retval=1
2474
fi
2475
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2476
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2477
  # interfere with the next link command; also delete a directory that is
2478
  # left behind by Apple's compiler.  We do this before executing the actions.
2479
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.15.15 by Colin Watson
Import upstream version 1.99
2480
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2481
  as_fn_set_status $ac_retval
2482
2483
} # ac_fn_c_try_link
2484
2485
# ac_fn_c_try_cpp LINENO
2486
# ----------------------
2487
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488
ac_fn_c_try_cpp ()
2489
{
2490
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2492
case "(($ac_try" in
2493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494
  *) ac_try_echo=$ac_try;;
2495
esac
2496
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497
$as_echo "$ac_try_echo"; } >&5
2498
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499
  ac_status=$?
2500
  if test -s conftest.err; then
2501
    grep -v '^ *+' conftest.err >conftest.er1
2502
    cat conftest.er1 >&5
2503
    mv -f conftest.er1 conftest.err
2504
  fi
2505
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2506
  test $ac_status = 0; } > conftest.i && {
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2507
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2508
	 test ! -s conftest.err
2509
       }; then :
2510
  ac_retval=0
2511
else
2512
  $as_echo "$as_me: failed program was:" >&5
2513
sed 's/^/| /' conftest.$ac_ext >&5
2514
2515
    ac_retval=1
2516
fi
1.15.15 by Colin Watson
Import upstream version 1.99
2517
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2518
  as_fn_set_status $ac_retval
2519
2520
} # ac_fn_c_try_cpp
2521
2522
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2523
# -------------------------------------------------------
2524
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2525
# the include files in INCLUDES and setting the cache variable VAR
2526
# accordingly.
2527
ac_fn_c_check_header_mongrel ()
2528
{
2529
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.15.15 by Colin Watson
Import upstream version 1.99
2530
  if eval \${$3+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2532
$as_echo_n "checking for $2... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2533
if eval \${$3+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2534
  $as_echo_n "(cached) " >&6
2535
fi
2536
eval ac_res=\$$3
2537
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538
$as_echo "$ac_res" >&6; }
2539
else
2540
  # Is the header compilable?
2541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2542
$as_echo_n "checking $2 usability... " >&6; }
2543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544
/* end confdefs.h.  */
2545
$4
2546
#include <$2>
2547
_ACEOF
2548
if ac_fn_c_try_compile "$LINENO"; then :
2549
  ac_header_compiler=yes
2550
else
2551
  ac_header_compiler=no
2552
fi
2553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2555
$as_echo "$ac_header_compiler" >&6; }
2556
2557
# Is the header present?
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2559
$as_echo_n "checking $2 presence... " >&6; }
2560
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561
/* end confdefs.h.  */
2562
#include <$2>
2563
_ACEOF
2564
if ac_fn_c_try_cpp "$LINENO"; then :
2565
  ac_header_preproc=yes
2566
else
2567
  ac_header_preproc=no
2568
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2569
rm -f conftest.err conftest.i conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2571
$as_echo "$ac_header_preproc" >&6; }
2572
2573
# So?  What about this header?
2574
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2575
  yes:no: )
2576
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2577
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2578
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2579
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2580
    ;;
2581
  no:yes:* )
2582
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2583
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2584
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2585
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2586
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2587
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2588
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2589
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2590
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2591
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2592
( $as_echo "## ------------------------------- ##
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2593
## Report this to bug-grub@gnu.org ##
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
2594
## ------------------------------- ##"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2595
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2596
    ;;
2597
esac
2598
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599
$as_echo_n "checking for $2... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2600
if eval \${$3+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2601
  $as_echo_n "(cached) " >&6
2602
else
2603
  eval "$3=\$ac_header_compiler"
2604
fi
2605
eval ac_res=\$$3
2606
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607
$as_echo "$ac_res" >&6; }
2608
fi
1.15.15 by Colin Watson
Import upstream version 1.99
2609
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2610
2611
} # ac_fn_c_check_header_mongrel
2612
2613
# ac_fn_c_try_run LINENO
2614
# ----------------------
2615
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2616
# that executables *can* be run.
2617
ac_fn_c_try_run ()
2618
{
2619
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620
  if { { ac_try="$ac_link"
2621
case "(($ac_try" in
2622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623
  *) ac_try_echo=$ac_try;;
2624
esac
2625
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626
$as_echo "$ac_try_echo"; } >&5
2627
  (eval "$ac_link") 2>&5
2628
  ac_status=$?
2629
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2631
  { { case "(($ac_try" in
2632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633
  *) ac_try_echo=$ac_try;;
2634
esac
2635
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636
$as_echo "$ac_try_echo"; } >&5
2637
  (eval "$ac_try") 2>&5
2638
  ac_status=$?
2639
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640
  test $ac_status = 0; }; }; then :
2641
  ac_retval=0
2642
else
2643
  $as_echo "$as_me: program exited with status $ac_status" >&5
2644
       $as_echo "$as_me: failed program was:" >&5
2645
sed 's/^/| /' conftest.$ac_ext >&5
2646
2647
       ac_retval=$ac_status
2648
fi
2649
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.15.15 by Colin Watson
Import upstream version 1.99
2650
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2651
  as_fn_set_status $ac_retval
2652
2653
} # ac_fn_c_try_run
2654
2655
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2656
# -------------------------------------------------------
2657
# Tests whether HEADER exists and can be compiled using the include files in
2658
# INCLUDES, setting the cache variable VAR accordingly.
2659
ac_fn_c_check_header_compile ()
2660
{
2661
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2663
$as_echo_n "checking for $2... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2664
if eval \${$3+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2665
  $as_echo_n "(cached) " >&6
2666
else
2667
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668
/* end confdefs.h.  */
2669
$4
2670
#include <$2>
2671
_ACEOF
2672
if ac_fn_c_try_compile "$LINENO"; then :
2673
  eval "$3=yes"
2674
else
2675
  eval "$3=no"
2676
fi
2677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678
fi
2679
eval ac_res=\$$3
2680
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2681
$as_echo "$ac_res" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2682
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2683
2684
} # ac_fn_c_check_header_compile
2685
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
2686
# ac_fn_cxx_try_compile LINENO
2687
# ----------------------------
2688
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2689
ac_fn_cxx_try_compile ()
2690
{
2691
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692
  rm -f conftest.$ac_objext
2693
  if { { ac_try="$ac_compile"
2694
case "(($ac_try" in
2695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696
  *) ac_try_echo=$ac_try;;
2697
esac
2698
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699
$as_echo "$ac_try_echo"; } >&5
2700
  (eval "$ac_compile") 2>conftest.err
2701
  ac_status=$?
2702
  if test -s conftest.err; then
2703
    grep -v '^ *+' conftest.err >conftest.er1
2704
    cat conftest.er1 >&5
2705
    mv -f conftest.er1 conftest.err
2706
  fi
2707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708
  test $ac_status = 0; } && {
2709
	 test -z "$ac_cxx_werror_flag" ||
2710
	 test ! -s conftest.err
2711
       } && test -s conftest.$ac_objext; then :
2712
  ac_retval=0
2713
else
2714
  $as_echo "$as_me: failed program was:" >&5
2715
sed 's/^/| /' conftest.$ac_ext >&5
2716
2717
	ac_retval=1
2718
fi
2719
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720
  as_fn_set_status $ac_retval
2721
2722
} # ac_fn_cxx_try_compile
2723
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2724
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2725
# --------------------------------------------
2726
# Tries to find the compile-time value of EXPR in a program that includes
2727
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2728
# computed
2729
ac_fn_c_compute_int ()
2730
{
2731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732
  if test "$cross_compiling" = yes; then
2733
    # Depending upon the size, compute the lo and hi bounds.
2734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735
/* end confdefs.h.  */
2736
$4
2737
int
2738
main (void)
2739
{
2740
static int test_array [1 - 2 * !(($2) >= 0)];
1.15.16 by Colin Watson
Import upstream version 2.00
2741
test_array [0] = 0;
2742
return test_array [0];
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2743
2744
  ;
2745
  return 0;
2746
}
2747
_ACEOF
2748
if ac_fn_c_try_compile "$LINENO"; then :
2749
  ac_lo=0 ac_mid=0
2750
  while :; do
2751
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752
/* end confdefs.h.  */
2753
$4
2754
int
2755
main (void)
2756
{
2757
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.15.16 by Colin Watson
Import upstream version 2.00
2758
test_array [0] = 0;
2759
return test_array [0];
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2760
2761
  ;
2762
  return 0;
2763
}
2764
_ACEOF
2765
if ac_fn_c_try_compile "$LINENO"; then :
2766
  ac_hi=$ac_mid; break
2767
else
2768
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2769
			if test $ac_lo -le $ac_mid; then
2770
			  ac_lo= ac_hi=
2771
			  break
2772
			fi
2773
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2774
fi
2775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776
  done
2777
else
2778
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779
/* end confdefs.h.  */
2780
$4
2781
int
2782
main (void)
2783
{
2784
static int test_array [1 - 2 * !(($2) < 0)];
1.15.16 by Colin Watson
Import upstream version 2.00
2785
test_array [0] = 0;
2786
return test_array [0];
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2787
2788
  ;
2789
  return 0;
2790
}
2791
_ACEOF
2792
if ac_fn_c_try_compile "$LINENO"; then :
2793
  ac_hi=-1 ac_mid=-1
2794
  while :; do
2795
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796
/* end confdefs.h.  */
2797
$4
2798
int
2799
main (void)
2800
{
2801
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1.15.16 by Colin Watson
Import upstream version 2.00
2802
test_array [0] = 0;
2803
return test_array [0];
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2804
2805
  ;
2806
  return 0;
2807
}
2808
_ACEOF
2809
if ac_fn_c_try_compile "$LINENO"; then :
2810
  ac_lo=$ac_mid; break
2811
else
2812
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2813
			if test $ac_mid -le $ac_hi; then
2814
			  ac_lo= ac_hi=
2815
			  break
2816
			fi
2817
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2818
fi
2819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820
  done
2821
else
2822
  ac_lo= ac_hi=
2823
fi
2824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825
fi
2826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827
# Binary search between lo and hi bounds.
2828
while test "x$ac_lo" != "x$ac_hi"; do
2829
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2830
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831
/* end confdefs.h.  */
2832
$4
2833
int
2834
main (void)
2835
{
2836
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.15.16 by Colin Watson
Import upstream version 2.00
2837
test_array [0] = 0;
2838
return test_array [0];
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2839
2840
  ;
2841
  return 0;
2842
}
2843
_ACEOF
2844
if ac_fn_c_try_compile "$LINENO"; then :
2845
  ac_hi=$ac_mid
2846
else
2847
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2848
fi
2849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850
done
2851
case $ac_lo in #((
2852
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2853
'') ac_retval=1 ;;
2854
esac
2855
  else
2856
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857
/* end confdefs.h.  */
2858
$4
2859
static long int longval () { return $2; }
2860
static unsigned long int ulongval () { return $2; }
2861
#include <stdio.h>
2862
#include <stdlib.h>
2863
int
2864
main (void)
2865
{
2866
2867
  FILE *f = fopen ("conftest.val", "w");
2868
  if (! f)
2869
    return 1;
2870
  if (($2) < 0)
2871
    {
2872
      long int i = longval ();
2873
      if (i != ($2))
2874
	return 1;
2875
      fprintf (f, "%ld", i);
2876
    }
2877
  else
2878
    {
2879
      unsigned long int i = ulongval ();
2880
      if (i != ($2))
2881
	return 1;
2882
      fprintf (f, "%lu", i);
2883
    }
2884
  /* Do not output a trailing newline, as this causes \r\n confusion
2885
     on some platforms.  */
2886
  return ferror (f) || fclose (f) != 0;
2887
2888
  ;
2889
  return 0;
2890
}
2891
_ACEOF
2892
if ac_fn_c_try_run "$LINENO"; then :
2893
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2894
else
2895
  ac_retval=1
2896
fi
2897
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2898
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2899
rm -f conftest.val
2900
2901
  fi
1.15.15 by Colin Watson
Import upstream version 1.99
2902
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2903
  as_fn_set_status $ac_retval
2904
2905
} # ac_fn_c_compute_int
2906
2907
# ac_fn_c_check_func LINENO FUNC VAR
2908
# ----------------------------------
2909
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2910
ac_fn_c_check_func ()
2911
{
2912
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2913
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2914
$as_echo_n "checking for $2... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2915
if eval \${$3+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2916
  $as_echo_n "(cached) " >&6
2917
else
2918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919
/* end confdefs.h.  */
2920
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2921
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2922
#define $2 innocuous_$2
2923
2924
/* System header to define __stub macros and hopefully few prototypes,
2925
    which can conflict with char $2 (); below.
2926
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2927
    <limits.h> exists even on freestanding compilers.  */
2928
2929
#ifdef __STDC__
2930
# include <limits.h>
2931
#else
2932
# include <assert.h>
2933
#endif
2934
2935
#undef $2
2936
2937
/* Override any GCC internal prototype to avoid an error.
2938
   Use char because int might match the return type of a GCC
2939
   builtin and then its argument prototype would still apply.  */
2940
#ifdef __cplusplus
2941
extern "C"
2942
#endif
2943
char $2 ();
2944
/* The GNU C library defines this for functions which it implements
2945
    to always fail with ENOSYS.  Some functions are actually named
2946
    something starting with __ and the normal name is an alias.  */
2947
#if defined __stub_$2 || defined __stub___$2
2948
choke me
2949
#endif
2950
2951
int
2952
main (void)
2953
{
2954
return $2 ();
2955
  ;
2956
  return 0;
2957
}
2958
_ACEOF
2959
if ac_fn_c_try_link "$LINENO"; then :
2960
  eval "$3=yes"
2961
else
2962
  eval "$3=no"
2963
fi
2964
rm -f core conftest.err conftest.$ac_objext \
2965
    conftest$ac_exeext conftest.$ac_ext
2966
fi
2967
eval ac_res=\$$3
2968
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969
$as_echo "$ac_res" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2970
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
2971
2972
} # ac_fn_c_check_func
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
2973
2974
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2975
# ----------------------------------------------------
2976
# Tries to find if the field MEMBER exists in type AGGR, after including
2977
# INCLUDES, setting cache variable VAR accordingly.
2978
ac_fn_c_check_member ()
2979
{
2980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2982
$as_echo_n "checking for $2.$3... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
2983
if eval \${$4+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
2984
  $as_echo_n "(cached) " >&6
2985
else
2986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987
/* end confdefs.h.  */
2988
$5
2989
int
2990
main (void)
2991
{
2992
static $2 ac_aggr;
2993
if (ac_aggr.$3)
2994
return 0;
2995
  ;
2996
  return 0;
2997
}
2998
_ACEOF
2999
if ac_fn_c_try_compile "$LINENO"; then :
3000
  eval "$4=yes"
3001
else
3002
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003
/* end confdefs.h.  */
3004
$5
3005
int
3006
main (void)
3007
{
3008
static $2 ac_aggr;
3009
if (sizeof ac_aggr.$3)
3010
return 0;
3011
  ;
3012
  return 0;
3013
}
3014
_ACEOF
3015
if ac_fn_c_try_compile "$LINENO"; then :
3016
  eval "$4=yes"
3017
else
3018
  eval "$4=no"
3019
fi
3020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021
fi
3022
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023
fi
3024
eval ac_res=\$$4
3025
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3026
$as_echo "$ac_res" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3027
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3028
3029
} # ac_fn_c_check_member
3030
1.15.15 by Colin Watson
Import upstream version 1.99
3031
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3032
# -------------------------------------------
3033
# Tests whether TYPE exists after having included INCLUDES, setting cache
3034
# variable VAR accordingly.
3035
ac_fn_c_check_type ()
3036
{
3037
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3038
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3039
$as_echo_n "checking for $2... " >&6; }
3040
if eval \${$3+:} false; then :
3041
  $as_echo_n "(cached) " >&6
3042
else
3043
  eval "$3=no"
3044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045
/* end confdefs.h.  */
3046
$4
3047
int
3048
main (void)
3049
{
3050
if (sizeof ($2))
3051
	 return 0;
3052
  ;
3053
  return 0;
3054
}
3055
_ACEOF
3056
if ac_fn_c_try_compile "$LINENO"; then :
3057
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058
/* end confdefs.h.  */
3059
$4
3060
int
3061
main (void)
3062
{
3063
if (sizeof (($2)))
3064
	    return 0;
3065
  ;
3066
  return 0;
3067
}
3068
_ACEOF
3069
if ac_fn_c_try_compile "$LINENO"; then :
3070
3071
else
3072
  eval "$3=yes"
3073
fi
3074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075
fi
3076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077
fi
3078
eval ac_res=\$$3
3079
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3080
$as_echo "$ac_res" >&6; }
3081
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3082
3083
} # ac_fn_c_check_type
3084
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3085
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3086
# ---------------------------------------------
3087
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3088
# accordingly.
3089
ac_fn_c_check_decl ()
3090
{
3091
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3092
  as_decl_name=`echo $2|sed 's/ *(.*//'`
3093
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3094
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3095
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3096
if eval \${$3+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3097
  $as_echo_n "(cached) " >&6
3098
else
3099
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100
/* end confdefs.h.  */
3101
$4
3102
int
3103
main (void)
3104
{
3105
#ifndef $as_decl_name
3106
#ifdef __cplusplus
3107
  (void) $as_decl_use;
3108
#else
3109
  (void) $as_decl_name;
3110
#endif
3111
#endif
3112
3113
  ;
3114
  return 0;
3115
}
3116
_ACEOF
3117
if ac_fn_c_try_compile "$LINENO"; then :
3118
  eval "$3=yes"
3119
else
3120
  eval "$3=no"
3121
fi
3122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123
fi
3124
eval ac_res=\$$3
3125
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3126
$as_echo "$ac_res" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3127
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3128
3129
} # ac_fn_c_check_decl
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3130
cat >config.log <<_ACEOF
3131
This file contains any messages produced by compilers while
3132
running configure, to aid debugging if configure makes a mistake.
3133
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
3134
It was created by GRUB $as_me 2.02~beta2, which was
1.15.16 by Colin Watson
Import upstream version 2.00
3135
generated by GNU Autoconf 2.69.  Invocation command line was
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3136
3137
  $ $0 $@
3138
3139
_ACEOF
3140
exec 5>>config.log
3141
{
3142
cat <<_ASUNAME
3143
## --------- ##
3144
## Platform. ##
3145
## --------- ##
3146
3147
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3148
uname -m = `(uname -m) 2>/dev/null || echo unknown`
3149
uname -r = `(uname -r) 2>/dev/null || echo unknown`
3150
uname -s = `(uname -s) 2>/dev/null || echo unknown`
3151
uname -v = `(uname -v) 2>/dev/null || echo unknown`
3152
3153
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3154
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3155
3156
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3157
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3158
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3159
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3160
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3161
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3162
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3163
3164
_ASUNAME
3165
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167
for as_dir in $PATH
3168
do
3169
  IFS=$as_save_IFS
3170
  test -z "$as_dir" && as_dir=.
3171
    $as_echo "PATH: $as_dir"
3172
  done
3173
IFS=$as_save_IFS
3174
3175
} >&5
3176
3177
cat >&5 <<_ACEOF
3178
3179
3180
## ----------- ##
3181
## Core tests. ##
3182
## ----------- ##
3183
3184
_ACEOF
3185
3186
3187
# Keep a trace of the command line.
3188
# Strip out --no-create and --no-recursion so they do not pile up.
3189
# Strip out --silent because we don't want to record it for future runs.
3190
# Also quote any args containing shell meta-characters.
3191
# Make two passes to allow for proper duplicate-argument suppression.
3192
ac_configure_args=
3193
ac_configure_args0=
3194
ac_configure_args1=
3195
ac_must_keep_next=false
3196
for ac_pass in 1 2
3197
do
3198
  for ac_arg
3199
  do
3200
    case $ac_arg in
3201
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3202
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3203
    | -silent | --silent | --silen | --sile | --sil)
3204
      continue ;;
3205
    *\'*)
3206
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3207
    esac
3208
    case $ac_pass in
3209
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3210
    2)
3211
      as_fn_append ac_configure_args1 " '$ac_arg'"
3212
      if test $ac_must_keep_next = true; then
3213
	ac_must_keep_next=false # Got value, back to normal.
3214
      else
3215
	case $ac_arg in
3216
	  *=* | --config-cache | -C | -disable-* | --disable-* \
3217
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3218
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3219
	  | -with-* | --with-* | -without-* | --without-* | --x)
3220
	    case "$ac_configure_args0 " in
3221
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3222
	    esac
3223
	    ;;
3224
	  -* ) ac_must_keep_next=true ;;
3225
	esac
3226
      fi
3227
      as_fn_append ac_configure_args " '$ac_arg'"
3228
      ;;
3229
    esac
3230
  done
3231
done
3232
{ ac_configure_args0=; unset ac_configure_args0;}
3233
{ ac_configure_args1=; unset ac_configure_args1;}
3234
3235
# When interrupted or exit'd, cleanup temporary files, and complete
3236
# config.log.  We remove comments because anyway the quotes in there
3237
# would cause problems or look ugly.
3238
# WARNING: Use '\'' to represent an apostrophe within the trap.
3239
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3240
trap 'exit_status=$?
3241
  # Save into config.log some information that might help in debugging.
3242
  {
3243
    echo
3244
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3245
    $as_echo "## ---------------- ##
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3246
## Cache variables. ##
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3247
## ---------------- ##"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3248
    echo
3249
    # The following way of writing the cache mishandles newlines in values,
3250
(
3251
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3252
    eval ac_val=\$$ac_var
3253
    case $ac_val in #(
3254
    *${as_nl}*)
3255
      case $ac_var in #(
3256
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3257
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3258
      esac
3259
      case $ac_var in #(
3260
      _ | IFS | as_nl) ;; #(
3261
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3262
      *) { eval $ac_var=; unset $ac_var;} ;;
3263
      esac ;;
3264
    esac
3265
  done
3266
  (set) 2>&1 |
3267
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3268
    *${as_nl}ac_space=\ *)
3269
      sed -n \
3270
	"s/'\''/'\''\\\\'\'''\''/g;
3271
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3272
      ;; #(
3273
    *)
3274
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3275
      ;;
3276
    esac |
3277
    sort
3278
)
3279
    echo
3280
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3281
    $as_echo "## ----------------- ##
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3282
## Output variables. ##
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3283
## ----------------- ##"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3284
    echo
3285
    for ac_var in $ac_subst_vars
3286
    do
3287
      eval ac_val=\$$ac_var
3288
      case $ac_val in
3289
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3290
      esac
3291
      $as_echo "$ac_var='\''$ac_val'\''"
3292
    done | sort
3293
    echo
3294
3295
    if test -n "$ac_subst_files"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3296
      $as_echo "## ------------------- ##
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3297
## File substitutions. ##
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3298
## ------------------- ##"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3299
      echo
3300
      for ac_var in $ac_subst_files
3301
      do
3302
	eval ac_val=\$$ac_var
3303
	case $ac_val in
3304
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3305
	esac
3306
	$as_echo "$ac_var='\''$ac_val'\''"
3307
      done | sort
3308
      echo
3309
    fi
3310
3311
    if test -s confdefs.h; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3312
      $as_echo "## ----------- ##
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3313
## confdefs.h. ##
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3314
## ----------- ##"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3315
      echo
3316
      cat confdefs.h
3317
      echo
3318
    fi
3319
    test "$ac_signal" != 0 &&
3320
      $as_echo "$as_me: caught signal $ac_signal"
3321
    $as_echo "$as_me: exit $exit_status"
3322
  } >&5
3323
  rm -f core *.core core.conftest.* &&
3324
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3325
    exit $exit_status
3326
' 0
3327
for ac_signal in 1 2 13 15; do
3328
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3329
done
3330
ac_signal=0
3331
3332
# confdefs.h avoids OS command line length limits that DEFS can exceed.
3333
rm -f -r conftest* confdefs.h
3334
3335
$as_echo "/* confdefs.h */" > confdefs.h
3336
3337
# Predefined preprocessor variables.
3338
3339
cat >>confdefs.h <<_ACEOF
3340
#define PACKAGE_NAME "$PACKAGE_NAME"
3341
_ACEOF
3342
3343
cat >>confdefs.h <<_ACEOF
3344
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3345
_ACEOF
3346
3347
cat >>confdefs.h <<_ACEOF
3348
#define PACKAGE_VERSION "$PACKAGE_VERSION"
3349
_ACEOF
3350
3351
cat >>confdefs.h <<_ACEOF
3352
#define PACKAGE_STRING "$PACKAGE_STRING"
3353
_ACEOF
3354
3355
cat >>confdefs.h <<_ACEOF
3356
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3357
_ACEOF
3358
3359
cat >>confdefs.h <<_ACEOF
3360
#define PACKAGE_URL "$PACKAGE_URL"
3361
_ACEOF
3362
3363
3364
# Let the site file select an alternate cache file if it wants to.
3365
# Prefer an explicitly selected file to automatically selected ones.
3366
ac_site_file1=NONE
3367
ac_site_file2=NONE
3368
if test -n "$CONFIG_SITE"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3369
  # We do not want a PATH search for config.site.
3370
  case $CONFIG_SITE in #((
3371
    -*)  ac_site_file1=./$CONFIG_SITE;;
3372
    */*) ac_site_file1=$CONFIG_SITE;;
3373
    *)   ac_site_file1=./$CONFIG_SITE;;
3374
  esac
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3375
elif test "x$prefix" != xNONE; then
3376
  ac_site_file1=$prefix/share/config.site
3377
  ac_site_file2=$prefix/etc/config.site
3378
else
3379
  ac_site_file1=$ac_default_prefix/share/config.site
3380
  ac_site_file2=$ac_default_prefix/etc/config.site
3381
fi
3382
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3383
do
3384
  test "x$ac_site_file" = xNONE && continue
3385
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3386
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3387
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3388
    sed 's/^/| /' "$ac_site_file" >&5
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3389
    . "$ac_site_file" \
3390
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392
as_fn_error $? "failed to load site script $ac_site_file
1.15.15 by Colin Watson
Import upstream version 1.99
3393
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3394
  fi
3395
done
3396
3397
if test -r "$cache_file"; then
3398
  # Some versions of bash will fail to source /dev/null (special files
3399
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3400
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3401
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3402
$as_echo "$as_me: loading cache $cache_file" >&6;}
3403
    case $cache_file in
3404
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3405
      *)                      . "./$cache_file";;
3406
    esac
3407
  fi
3408
else
3409
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3410
$as_echo "$as_me: creating cache $cache_file" >&6;}
3411
  >$cache_file
3412
fi
3413
3414
gt_needs="$gt_needs "
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3415
as_fn_append ac_func_list " flockfile"
3416
as_fn_append ac_func_list " funlockfile"
3417
as_fn_append ac_header_list " features.h"
3418
as_fn_append ac_header_list " linewrap.h"
3419
as_fn_append ac_func_list " btowc"
3420
as_fn_append ac_func_list " isblank"
3421
as_fn_append ac_func_list " iswctype"
3422
as_fn_append ac_func_list " mbsrtowcs"
3423
as_fn_append ac_func_list " mempcpy"
3424
as_fn_append ac_func_list " wmemchr"
3425
as_fn_append ac_func_list " wmemcpy"
3426
as_fn_append ac_func_list " wmempcpy"
3427
as_fn_append ac_header_list " wctype.h"
3428
as_fn_append ac_func_list " getdelim"
3429
gl_getopt_required=GNU
3430
as_fn_append ac_header_list " getopt.h"
3431
as_fn_append ac_header_list " langinfo.h"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3432
as_fn_append ac_header_list " unistd.h"
3433
as_fn_append ac_func_list " symlink"
3434
as_fn_append ac_header_list " xlocale.h"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3435
as_fn_append ac_func_list " mbsinit"
3436
as_fn_append ac_func_list " mbrtowc"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3437
as_fn_append ac_header_list " wchar.h"
3438
as_fn_append ac_func_list " isascii"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3439
as_fn_append ac_header_list " sys/mman.h"
3440
as_fn_append ac_func_list " mprotect"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3441
as_fn_append ac_func_list " _set_invalid_parameter_handler"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3442
as_fn_append ac_func_list " nl_langinfo"
3443
as_fn_append ac_func_list " wcscoll"
3444
as_fn_append ac_func_list " sleep"
3445
as_fn_append ac_header_list " stdint.h"
3446
as_fn_append ac_header_list " sys/socket.h"
3447
as_fn_append ac_header_list " strings.h"
3448
as_fn_append ac_func_list " strndup"
3449
as_fn_append ac_header_list " sysexits.h"
3450
as_fn_append ac_func_list " vasnprintf"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3451
as_fn_append ac_func_list " snprintf"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3452
as_fn_append ac_func_list " wcrtomb"
3453
as_fn_append ac_func_list " iswcntrl"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3454
as_fn_append ac_func_list " wcwidth"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3455
# Check that the precious variables saved in the cache have kept the same
3456
# value.
3457
ac_cache_corrupted=false
3458
for ac_var in $ac_precious_vars; do
3459
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3460
  eval ac_new_set=\$ac_env_${ac_var}_set
3461
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3462
  eval ac_new_val=\$ac_env_${ac_var}_value
3463
  case $ac_old_set,$ac_new_set in
3464
    set,)
3465
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3466
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3467
      ac_cache_corrupted=: ;;
3468
    ,set)
3469
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3470
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3471
      ac_cache_corrupted=: ;;
3472
    ,);;
3473
    *)
3474
      if test "x$ac_old_val" != "x$ac_new_val"; then
3475
	# differences in whitespace do not lead to failure.
3476
	ac_old_val_w=`echo x $ac_old_val`
3477
	ac_new_val_w=`echo x $ac_new_val`
3478
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3479
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3480
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3481
	  ac_cache_corrupted=:
3482
	else
3483
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3484
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3485
	  eval $ac_var=\$ac_old_val
3486
	fi
3487
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3488
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3489
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3490
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3491
      fi;;
3492
  esac
3493
  # Pass precious variables to config.status.
3494
  if test "$ac_new_set" = set; then
3495
    case $ac_new_val in
3496
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3497
    *) ac_arg=$ac_var=$ac_new_val ;;
3498
    esac
3499
    case " $ac_configure_args " in
3500
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3501
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3502
    esac
3503
  fi
3504
done
3505
if $ac_cache_corrupted; then
3506
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3509
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3510
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3511
fi
3512
## -------------------- ##
3513
## Main body of script. ##
3514
## -------------------- ##
3515
3516
ac_ext=c
3517
ac_cpp='$CPP $CPPFLAGS'
3518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
1.14.2 by Colin Watson
Import upstream version 1.98+20100706
3522
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3523
3524
ac_aux_dir=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3525
for ac_dir in build-aux "$srcdir"/build-aux; do
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3526
  if test -f "$ac_dir/install-sh"; then
3527
    ac_aux_dir=$ac_dir
3528
    ac_install_sh="$ac_aux_dir/install-sh -c"
3529
    break
3530
  elif test -f "$ac_dir/install.sh"; then
3531
    ac_aux_dir=$ac_dir
3532
    ac_install_sh="$ac_aux_dir/install.sh -c"
3533
    break
3534
  elif test -f "$ac_dir/shtool"; then
3535
    ac_aux_dir=$ac_dir
3536
    ac_install_sh="$ac_aux_dir/shtool install -c"
3537
    break
3538
  fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3539
done
3540
if test -z "$ac_aux_dir"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3541
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3542
fi
3543
3544
# These three variables are undocumented and unsupported,
3545
# and are intended to be withdrawn in a future Autoconf release.
3546
# They can cause serious problems if a builder's source tree is in a directory
3547
# whose full name contains unusual characters.
3548
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3549
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3550
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3551
3552
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3553
3554
# We don't want -g -O2 by default in CFLAGS
3555
: ${CFLAGS=""}
3556
3557
# Checks for host and target systems.
3558
# Make sure we can run config.sub.
3559
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3561
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3563
$as_echo_n "checking build system type... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3564
if ${ac_cv_build+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3565
  $as_echo_n "(cached) " >&6
3566
else
3567
  ac_build_alias=$build_alias
3568
test "x$ac_build_alias" = x &&
3569
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3570
test "x$ac_build_alias" = x &&
3571
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3572
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3574
3575
fi
3576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3577
$as_echo "$ac_cv_build" >&6; }
3578
case $ac_cv_build in
3579
*-*-*) ;;
1.15.15 by Colin Watson
Import upstream version 1.99
3580
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3581
esac
3582
build=$ac_cv_build
3583
ac_save_IFS=$IFS; IFS='-'
3584
set x $ac_cv_build
3585
shift
3586
build_cpu=$1
3587
build_vendor=$2
3588
shift; shift
3589
# Remember, the first character of IFS is used to create $*,
3590
# except with old shells:
3591
build_os=$*
3592
IFS=$ac_save_IFS
3593
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3594
3595
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3597
$as_echo_n "checking host system type... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3598
if ${ac_cv_host+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3599
  $as_echo_n "(cached) " >&6
3600
else
3601
  if test "x$host_alias" = x; then
3602
  ac_cv_host=$ac_cv_build
3603
else
3604
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3606
fi
3607
3608
fi
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3610
$as_echo "$ac_cv_host" >&6; }
3611
case $ac_cv_host in
3612
*-*-*) ;;
1.15.15 by Colin Watson
Import upstream version 1.99
3613
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3614
esac
3615
host=$ac_cv_host
3616
ac_save_IFS=$IFS; IFS='-'
3617
set x $ac_cv_host
3618
shift
3619
host_cpu=$1
3620
host_vendor=$2
3621
shift; shift
3622
# Remember, the first character of IFS is used to create $*,
3623
# except with old shells:
3624
host_os=$*
3625
IFS=$ac_save_IFS
3626
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3629
save_program_prefix="${program_prefix}"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3631
$as_echo_n "checking target system type... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3632
if ${ac_cv_target+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3633
  $as_echo_n "(cached) " >&6
3634
else
3635
  if test "x$target_alias" = x; then
3636
  ac_cv_target=$ac_cv_host
3637
else
3638
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3640
fi
3641
3642
fi
3643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3644
$as_echo "$ac_cv_target" >&6; }
3645
case $ac_cv_target in
3646
*-*-*) ;;
1.15.15 by Colin Watson
Import upstream version 1.99
3647
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3648
esac
3649
target=$ac_cv_target
3650
ac_save_IFS=$IFS; IFS='-'
3651
set x $ac_cv_target
3652
shift
3653
target_cpu=$1
3654
target_vendor=$2
3655
shift; shift
3656
# Remember, the first character of IFS is used to create $*,
3657
# except with old shells:
3658
target_os=$*
3659
IFS=$ac_save_IFS
3660
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663
# The aliases save the names the user supplied, while $host etc.
3664
# will get canonicalized.
3665
test -n "$target_alias" &&
3666
  test "$program_prefix$program_suffix$program_transform_name" = \
3667
    NONENONEs,x,x, &&
3668
  program_prefix=${target_alias}-
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3669
program_prefix="${save_program_prefix}"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3670
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3671
am__api_version='1.14'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
3672
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3673
# Find a good install program.  We prefer a C program (faster),
3674
# so one script is as good as another.  But avoid the broken or
3675
# incompatible versions:
3676
# SysV /etc/install, /usr/sbin/install
3677
# SunOS /usr/etc/install
3678
# IRIX /sbin/install
3679
# AIX /bin/install
3680
# AmigaOS /C/install, which installs bootblocks on floppy discs
3681
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684
# OS/2's system install, which has a completely different semantic
3685
# ./install, which can be erroneously created by make from ./install.sh.
3686
# Reject install programs that cannot install multiple files.
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3688
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3689
if test -z "$INSTALL"; then
1.15.15 by Colin Watson
Import upstream version 1.99
3690
if ${ac_cv_path_install+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3691
  $as_echo_n "(cached) " >&6
3692
else
3693
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694
for as_dir in $PATH
3695
do
3696
  IFS=$as_save_IFS
3697
  test -z "$as_dir" && as_dir=.
3698
    # Account for people who put trailing slashes in PATH elements.
3699
case $as_dir/ in #((
3700
  ./ | .// | /[cC]/* | \
3701
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3702
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3703
  /usr/ucb/* ) ;;
3704
  *)
3705
    # OSF1 and SCO ODT 3.0 have their own names for install.
3706
    # Don't use installbsd from OSF since it installs stuff as root
3707
    # by default.
3708
    for ac_prog in ginstall scoinst install; do
3709
      for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
3710
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3711
	  if test $ac_prog = install &&
3712
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713
	    # AIX install.  It has an incompatible calling convention.
3714
	    :
3715
	  elif test $ac_prog = install &&
3716
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3717
	    # program-specific install script used by HP pwplus--don't use.
3718
	    :
3719
	  else
3720
	    rm -rf conftest.one conftest.two conftest.dir
3721
	    echo one > conftest.one
3722
	    echo two > conftest.two
3723
	    mkdir conftest.dir
3724
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3725
	      test -s conftest.one && test -s conftest.two &&
3726
	      test -s conftest.dir/conftest.one &&
3727
	      test -s conftest.dir/conftest.two
3728
	    then
3729
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3730
	      break 3
3731
	    fi
3732
	  fi
3733
	fi
3734
      done
3735
    done
3736
    ;;
3737
esac
3738
3739
  done
3740
IFS=$as_save_IFS
3741
3742
rm -rf conftest.one conftest.two conftest.dir
3743
3744
fi
3745
  if test "${ac_cv_path_install+set}" = set; then
3746
    INSTALL=$ac_cv_path_install
3747
  else
3748
    # As a last resort, use the slow shell script.  Don't cache a
3749
    # value for INSTALL within a source directory, because that will
3750
    # break other packages using the cache if that directory is
3751
    # removed, or if the value is a relative name.
3752
    INSTALL=$ac_install_sh
3753
  fi
3754
fi
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3756
$as_echo "$INSTALL" >&6; }
3757
3758
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3759
# It thinks the first close brace ends the variable substitution.
3760
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3761
3762
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3763
3764
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3765
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3767
$as_echo_n "checking whether build environment is sane... " >&6; }
3768
# Reject unsafe characters in $srcdir or the absolute working directory
3769
# name.  Accept space and tab only in the latter.
3770
am_lf='
3771
'
3772
case `pwd` in
3773
  *[\\\"\#\$\&\'\`$am_lf]*)
1.15.15 by Colin Watson
Import upstream version 1.99
3774
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3775
esac
3776
case $srcdir in
3777
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3778
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3779
esac
3780
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3781
# Do 'set' in a subshell so we don't clobber the current shell's
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3782
# arguments.  Must try -L first in case configure is actually a
3783
# symlink; some systems play weird games with the mod time of symlinks
3784
# (eg FreeBSD returns the mod time of the symlink's containing
3785
# directory).
3786
if (
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3787
   am_has_slept=no
3788
   for am_try in 1 2; do
3789
     echo "timestamp, slept: $am_has_slept" > conftest.file
3790
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3791
     if test "$*" = "X"; then
3792
	# -L didn't work.
3793
	set X `ls -t "$srcdir/configure" conftest.file`
3794
     fi
3795
     if test "$*" != "X $srcdir/configure conftest.file" \
3796
	&& test "$*" != "X conftest.file $srcdir/configure"; then
3797
3798
	# If neither matched, then we have a broken ls.  This can happen
3799
	# if, for instance, CONFIG_SHELL is bash and it inherits a
3800
	# broken ls alias from the environment.  This has actually
3801
	# happened.  Such a system could not be considered "sane".
3802
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3803
  alias in your environment" "$LINENO" 5
3804
     fi
3805
     if test "$2" = conftest.file || test $am_try -eq 2; then
3806
       break
3807
     fi
3808
     # Just in case.
3809
     sleep 1
3810
     am_has_slept=yes
3811
   done
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3812
   test "$2" = conftest.file
3813
   )
3814
then
3815
   # Ok.
3816
   :
3817
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
3818
   as_fn_error $? "newly created file is older than distributed files!
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3819
Check your system clock" "$LINENO" 5
3820
fi
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822
$as_echo "yes" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3823
# If we didn't sleep, we still need to ensure time stamps of config.status and
3824
# generated files are strictly newer.
3825
am_sleep_pid=
3826
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3827
  ( sleep 1 ) &
3828
  am_sleep_pid=$!
3829
fi
3830
3831
rm -f conftest.file
3832
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3833
test "$program_prefix" != NONE &&
3834
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3835
# Use a double $ so make ignores it.
3836
test "$program_suffix" != NONE &&
3837
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3838
# Double any \ or $.
3839
# By default was `s,x,x', remove it if useless.
3840
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3841
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3842
3843
# expand $ac_aux_dir to an absolute path
3844
am_aux_dir=`cd $ac_aux_dir && pwd`
3845
3846
if test x"${MISSING+set}" != xset; then
3847
  case $am_aux_dir in
3848
  *\ * | *\	*)
3849
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3850
  *)
3851
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3852
  esac
3853
fi
3854
# Use eval to expand $SHELL
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3855
if eval "$MISSING --is-lightweight"; then
3856
  am_missing_run="$MISSING "
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3857
else
3858
  am_missing_run=
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3859
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3860
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3861
fi
3862
3863
if test x"${install_sh}" != xset; then
3864
  case $am_aux_dir in
3865
  *\ * | *\	*)
3866
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3867
  *)
3868
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3869
  esac
3870
fi
3871
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3872
# Installed binaries are usually stripped using 'strip' when the user
3873
# run "make install-strip".  However 'strip' might not be the right
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3874
# tool to use in cross-compilation environments, therefore Automake
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
3875
# will honor the 'STRIP' environment variable to overrule this program.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3876
if test "$cross_compiling" != no; then
3877
  if test -n "$ac_tool_prefix"; then
3878
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3879
set dummy ${ac_tool_prefix}strip; ac_word=$2
3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3882
if ${ac_cv_prog_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3883
  $as_echo_n "(cached) " >&6
3884
else
3885
  if test -n "$STRIP"; then
3886
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3887
else
3888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889
for as_dir in $PATH
3890
do
3891
  IFS=$as_save_IFS
3892
  test -z "$as_dir" && as_dir=.
3893
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
3894
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3895
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897
    break 2
3898
  fi
3899
done
3900
  done
3901
IFS=$as_save_IFS
3902
3903
fi
3904
fi
3905
STRIP=$ac_cv_prog_STRIP
3906
if test -n "$STRIP"; then
3907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3908
$as_echo "$STRIP" >&6; }
3909
else
3910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911
$as_echo "no" >&6; }
3912
fi
3913
3914
3915
fi
3916
if test -z "$ac_cv_prog_STRIP"; then
3917
  ac_ct_STRIP=$STRIP
3918
  # Extract the first word of "strip", so it can be a program name with args.
3919
set dummy strip; ac_word=$2
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
3922
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3923
  $as_echo_n "(cached) " >&6
3924
else
3925
  if test -n "$ac_ct_STRIP"; then
3926
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3927
else
3928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929
for as_dir in $PATH
3930
do
3931
  IFS=$as_save_IFS
3932
  test -z "$as_dir" && as_dir=.
3933
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
3934
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3935
    ac_cv_prog_ac_ct_STRIP="strip"
3936
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937
    break 2
3938
  fi
3939
done
3940
  done
3941
IFS=$as_save_IFS
3942
3943
fi
3944
fi
3945
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3946
if test -n "$ac_ct_STRIP"; then
3947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3948
$as_echo "$ac_ct_STRIP" >&6; }
3949
else
3950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951
$as_echo "no" >&6; }
3952
fi
3953
3954
  if test "x$ac_ct_STRIP" = x; then
3955
    STRIP=":"
3956
  else
3957
    case $cross_compiling:$ac_tool_warned in
3958
yes:)
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961
ac_tool_warned=yes ;;
3962
esac
3963
    STRIP=$ac_ct_STRIP
3964
  fi
3965
else
3966
  STRIP="$ac_cv_prog_STRIP"
3967
fi
3968
3969
fi
3970
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3971
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3973
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3974
if test -z "$MKDIR_P"; then
1.15.15 by Colin Watson
Import upstream version 1.99
3975
  if ${ac_cv_path_mkdir+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3976
  $as_echo_n "(cached) " >&6
3977
else
3978
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3980
do
3981
  IFS=$as_save_IFS
3982
  test -z "$as_dir" && as_dir=.
3983
    for ac_prog in mkdir gmkdir; do
3984
	 for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
3985
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
3986
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3987
	     'mkdir (GNU coreutils) '* | \
3988
	     'mkdir (coreutils) '* | \
3989
	     'mkdir (fileutils) '4.1*)
3990
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3991
	       break 3;;
3992
	   esac
3993
	 done
3994
       done
3995
  done
3996
IFS=$as_save_IFS
3997
3998
fi
3999
4000
  test -d ./--version && rmdir ./--version
4001
  if test "${ac_cv_path_mkdir+set}" = set; then
4002
    MKDIR_P="$ac_cv_path_mkdir -p"
4003
  else
4004
    # As a last resort, use the slow shell script.  Don't cache a
4005
    # value for MKDIR_P within a source directory, because that will
4006
    # break other packages using the cache if that directory is
4007
    # removed, or if the value is a relative name.
4008
    MKDIR_P="$ac_install_sh -d"
4009
  fi
4010
fi
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4012
$as_echo "$MKDIR_P" >&6; }
4013
4014
for ac_prog in gawk mawk nawk awk
4015
do
4016
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4017
set dummy $ac_prog; ac_word=$2
4018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4020
if ${ac_cv_prog_AWK+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4021
  $as_echo_n "(cached) " >&6
4022
else
4023
  if test -n "$AWK"; then
4024
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4025
else
4026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027
for as_dir in $PATH
4028
do
4029
  IFS=$as_save_IFS
4030
  test -z "$as_dir" && as_dir=.
4031
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4032
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4033
    ac_cv_prog_AWK="$ac_prog"
4034
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035
    break 2
4036
  fi
4037
done
4038
  done
4039
IFS=$as_save_IFS
4040
4041
fi
4042
fi
4043
AWK=$ac_cv_prog_AWK
4044
if test -n "$AWK"; then
4045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4046
$as_echo "$AWK" >&6; }
4047
else
4048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049
$as_echo "no" >&6; }
4050
fi
4051
4052
4053
  test -n "$AWK" && break
4054
done
4055
4056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4057
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4058
set x ${MAKE-make}
4059
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.15.15 by Colin Watson
Import upstream version 1.99
4060
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4061
  $as_echo_n "(cached) " >&6
4062
else
4063
  cat >conftest.make <<\_ACEOF
4064
SHELL = /bin/sh
4065
all:
4066
	@echo '@@@%%%=$(MAKE)=@@@%%%'
4067
_ACEOF
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
4068
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4069
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4070
  *@@@%%%=?*=@@@%%%*)
4071
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4072
  *)
4073
    eval ac_cv_prog_make_${ac_make}_set=no;;
4074
esac
4075
rm -f conftest.make
4076
fi
4077
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079
$as_echo "yes" >&6; }
4080
  SET_MAKE=
4081
else
4082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083
$as_echo "no" >&6; }
4084
  SET_MAKE="MAKE=${MAKE-make}"
4085
fi
4086
4087
rm -rf .tst 2>/dev/null
4088
mkdir .tst 2>/dev/null
4089
if test -d .tst; then
4090
  am__leading_dot=.
4091
else
4092
  am__leading_dot=_
4093
fi
4094
rmdir .tst 2>/dev/null
4095
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4096
# Check whether --enable-silent-rules was given.
4097
if test "${enable_silent_rules+set}" = set; then :
4098
  enableval=$enable_silent_rules;
4099
fi
4100
4101
case $enable_silent_rules in # (((
4102
  yes) AM_DEFAULT_VERBOSITY=0;;
4103
   no) AM_DEFAULT_VERBOSITY=1;;
4104
    *) AM_DEFAULT_VERBOSITY=1;;
4105
esac
4106
am_make=${MAKE-make}
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4108
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4109
if ${am_cv_make_support_nested_variables+:} false; then :
4110
  $as_echo_n "(cached) " >&6
4111
else
4112
  if $as_echo 'TRUE=$(BAR$(V))
4113
BAR0=false
4114
BAR1=true
4115
V=1
4116
am__doit:
4117
	@$(TRUE)
4118
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4119
  am_cv_make_support_nested_variables=yes
4120
else
4121
  am_cv_make_support_nested_variables=no
4122
fi
4123
fi
4124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4125
$as_echo "$am_cv_make_support_nested_variables" >&6; }
4126
if test $am_cv_make_support_nested_variables = yes; then
4127
    AM_V='$(V)'
4128
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4129
else
4130
  AM_V=$AM_DEFAULT_VERBOSITY
4131
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4132
fi
4133
AM_BACKSLASH='\'
4134
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4135
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4136
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4137
  # is not polluted with repeated "-I."
4138
  am__isrc=' -I$(srcdir)'
4139
  # test to see if srcdir already configured
4140
  if test -f $srcdir/config.status; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
4141
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4142
  fi
4143
fi
4144
4145
# test whether we have cygpath
4146
if test -z "$CYGPATH_W"; then
4147
  if (cygpath --version) >/dev/null 2>/dev/null; then
4148
    CYGPATH_W='cygpath -w'
4149
  else
4150
    CYGPATH_W=echo
4151
  fi
4152
fi
4153
4154
4155
# Define the identity of the package.
4156
 PACKAGE='grub'
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
4157
 VERSION='2.02~beta2'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4158
4159
4160
cat >>confdefs.h <<_ACEOF
4161
#define PACKAGE "$PACKAGE"
4162
_ACEOF
4163
4164
4165
cat >>confdefs.h <<_ACEOF
4166
#define VERSION "$VERSION"
4167
_ACEOF
4168
4169
# Some tools Automake needs.
4170
4171
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4172
4173
4174
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4175
4176
4177
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4178
4179
4180
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4181
4182
4183
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4184
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4185
# For better backward compatibility.  To be removed once Automake 1.9.x
4186
# dies out for good.  For more background, see:
4187
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4188
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4189
mkdir_p='$(MKDIR_P)'
4190
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4191
# We need awk for the "check" target.  The system "awk" is bad on
4192
# some platforms.
1.15.16 by Colin Watson
Import upstream version 2.00
4193
# Always define AMTAR for backward compatibility.  Yes, it's still used
4194
# in the wild :-(  We should find a proper way to deprecate it ...
4195
AMTAR='$${TAR-tar}'
4196
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4197
4198
# We'll loop over all known methods to create a tar archive until one works.
4199
_am_tools='gnutar  pax cpio none'
4200
1.15.16 by Colin Watson
Import upstream version 2.00
4201
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4202
4203
4204
4205
4206
4207
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4208
# POSIX will say in a future version that running "rm -f" with no argument
4209
# is OK; and we want to be able to make that assumption in our Makefile
4210
# recipes.  So use an aggressive probe to check that the usage we want is
4211
# actually supported "in the wild" to an acceptable degree.
4212
# See automake bug#10828.
4213
# To make any issue more visible, cause the running configure to be aborted
4214
# by default if the 'rm' program in use doesn't match our expectations; the
4215
# user can still override this though.
4216
if rm -f && rm -fr && rm -rf; then : OK; else
4217
  cat >&2 <<'END'
4218
Oops!
4219
4220
Your 'rm' program seems unable to run without file operands specified
4221
on the command line, even when the '-f' option is present.  This is contrary
4222
to the behaviour of most rm programs out there, and not conforming with
4223
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4224
4225
Please tell bug-automake@gnu.org about your system, including the value
4226
of your $PATH and any error possibly output before this message.  This
4227
can help us improve future automake versions.
4228
4229
END
4230
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4231
    echo 'Configuration will proceed anyway, since you have set the' >&2
4232
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4233
    echo >&2
4234
  else
4235
    cat >&2 <<'END'
4236
Aborting the configuration process, to ensure you take notice of the issue.
4237
4238
You can download and install GNU coreutils to get an 'rm' implementation
4239
that behaves properly: <http://www.gnu.org/software/coreutils/>.
4240
4241
If you want to complete the configuration process using your problematic
4242
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4243
to "yes", and re-run configure.
4244
4245
END
4246
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4247
  fi
4248
fi
4249
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4250
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4251
ac_config_headers="$ac_config_headers config-util.h"
4252
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4253
4254
# Program name transformations
4255
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4256
grub_bios_setup=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4257
4258
grub_editenv=`$as_echo grub-editenv | sed "$program_transform_name"`
4259
4260
grub_install=`$as_echo grub-install | sed "$program_transform_name"`
4261
4262
grub_mkconfig=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4263
4264
grub_mkfont=`$as_echo grub-mkfont | sed "$program_transform_name"`
4265
4266
grub_mkimage=`$as_echo grub-mkimage | sed "$program_transform_name"`
4267
4268
grub_glue_efi=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4269
4270
grub_mklayout=`$as_echo grub-mklayout | sed "$program_transform_name"`
4271
4272
grub_mkpasswd_pbkdf2=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4273
4274
grub_mkrelpath=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4275
4276
grub_mkrescue=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4277
4278
grub_probe=`$as_echo grub-probe | sed "$program_transform_name"`
4279
4280
grub_reboot=`$as_echo grub-reboot | sed "$program_transform_name"`
4281
4282
grub_script_check=`$as_echo grub-script-check | sed "$program_transform_name"`
4283
4284
grub_set_default=`$as_echo grub-set-default | sed "$program_transform_name"`
4285
4286
grub_sparc64_setup=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4287
4288
grub_render_label=`$as_echo grub-render-label | sed "$program_transform_name"`
4289
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
4290
grub_file=`$as_echo grub-file | sed "$program_transform_name"`
4291
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4292
4293
# Optimization flag.  Allow user to override.
4294
if test "x$TARGET_CFLAGS" = x; then
4295
  TARGET_CFLAGS="$TARGET_CFLAGS -Os"
4296
fi
4297
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4298
# Default HOST_CPPFLAGS
4299
HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
4300
HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
4301
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4302
4303
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
4304
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
4305
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
4306
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4307
case "$target_cpu" in
4308
  i[3456]86)	target_cpu=i386 ;;
4309
  amd64)	target_cpu=x86_64 ;;
4310
  sparc)	target_cpu=sparc64 ;;
4311
  mipsel|mips64el)
1.15.16 by Colin Watson
Import upstream version 2.00
4312
                target_cpu=mipsel;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4313
		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4314
		;;
4315
  mips|mips64)
4316
                target_cpu=mips;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4317
		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4318
		;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4319
  arm*)
4320
		target_cpu=arm;
4321
		;;
4322
  aarch64*)
4323
		target_cpu=arm64;
4324
		;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4325
esac
4326
4327
# Specify the platform (such as firmware).
4328
4329
# Check whether --with-platform was given.
4330
if test "${with_platform+set}" = set; then :
4331
  withval=$with_platform;
4332
fi
4333
4334
4335
# Guess the platform if not specified.
4336
if test "x$with_platform" = x; then
4337
  case "$target_cpu"-"$target_vendor" in
4338
    i386-apple) platform=efi ;;
4339
    i386-*) platform=pc ;;
4340
    x86_64-apple) platform=efi ;;
4341
    x86_64-*) platform=pc ;;
4342
    powerpc-*) platform=ieee1275 ;;
4343
    powerpc64-*) platform=ieee1275 ;;
4344
    sparc64-*) platform=ieee1275 ;;
1.15.16 by Colin Watson
Import upstream version 2.00
4345
    mipsel-*) platform=loongson ;;
4346
    mips-*) platform=arc ;;
4347
    ia64-*) platform=efi ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4348
    arm-*) platform=uboot ;;
4349
    arm64-*) platform=efi ;;
1.15.15 by Colin Watson
Import upstream version 1.99
4350
    *) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4351
  esac
4352
else
4353
  platform="$with_platform"
4354
fi
4355
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4356
case "$target_cpu"-"$platform" in
4357
  x86_64-efi) ;;
4358
  x86_64-emu) ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4359
  x86_64-xen) ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4360
  x86_64-*) target_cpu=i386 ;;
4361
  powerpc64-ieee1275) target_cpu=powerpc ;;
4362
esac
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4363
4364
# Check if the platform is supported, make final adjustments.
4365
case "$target_cpu"-"$platform" in
4366
  i386-efi) ;;
4367
  x86_64-efi) ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4368
  i386-xen) ;;
4369
  x86_64-xen) ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4370
  i386-pc) ;;
4371
  i386-multiboot) ;;
4372
  i386-coreboot) ;;
4373
  i386-linuxbios) platform=coreboot ;;
4374
  i386-ieee1275) ;;
4375
  i386-qemu) ;;
4376
  powerpc-ieee1275) ;;
4377
  sparc64-ieee1275) ;;
1.15.16 by Colin Watson
Import upstream version 2.00
4378
  ia64-efi) ;;
4379
  mips-qemu_mips) ;;
4380
  mips-qemu-mips) platform=qemu_mips;;
4381
  mips-arc) ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4382
  mipsel-arc) ;;
1.15.16 by Colin Watson
Import upstream version 2.00
4383
  mipsel-qemu_mips) ;;
4384
  mipsel-qemu-mips) platform=qemu_mips;;
4385
  mipsel-yeeloong) platform=loongson ;;
4386
  mipsel-fuloong) platform=loongson ;;
4387
  mipsel-loongson) ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4388
  arm-uboot) ;;
4389
  arm-efi) ;;
4390
  arm64-efi) ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4391
  *-emu) ;;
1.15.15 by Colin Watson
Import upstream version 1.99
4392
  *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4393
esac
4394
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4395
if test x$platform != xemu ; then
4396
   case "$target_cpu" in
4397
	i386 | powerpc) target_m32=1 ;;
4398
	x86_64 | sparc64) target_m64=1 ;;
4399
   esac
4400
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4401
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
4402
if test x"$target_cpu-$platform" = xsparc64-emu ; then
4403
   target_m64=1 ;
4404
fi
4405
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4406
case "$target_os" in
4407
  windows* | mingw32*) target_os=cygwin ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4408
esac
4409
4410
# This normalizes the names, and creates a new variable ("host_kernel")
4411
# while at it, since the mapping is not always 1:1 (e.g. different OSes
4412
# using the same kernel type).
4413
case "$host_os" in
4414
  gnu*)				host_kernel=hurd ;;
4415
  linux*)			host_kernel=linux ;;
4416
  freebsd* | kfreebsd*-gnu)	host_kernel=kfreebsd ;;
4417
  netbsd*)			host_kernel=netbsd ;;
1.15.16 by Colin Watson
Import upstream version 2.00
4418
  solaris*)			host_kernel=illumos ;;
4419
  darwin*)			host_kernel=xnu ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4420
  cygwin | windows* | mingw32*)	host_kernel=windows ;;
4421
esac
4422
4423
case "$host_os" in
4424
  cygwin | windows* | mingw32*)	have_exec=n ;;
4425
  aros*) have_exec=n ;;
4426
  *) have_exec=y;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4427
esac
4428
4429
case "$platform" in
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4430
  coreboot)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4431
  multiboot)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4432
  efi)		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4433
  xen)		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4434
  ieee1275)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4435
  uboot)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4436
  qemu)		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4437
  pc)		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4438
  emu)		machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
4439
  loongson)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4440
  qemu_mips)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
1.15.16 by Colin Watson
Import upstream version 2.00
4441
  arc)	machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4442
esac
1.15.16 by Colin Watson
Import upstream version 2.00
4443
if test x${target_cpu} = xmipsel ; then
4444
   machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4445
else
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
4446
   machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
1.15.16 by Colin Watson
Import upstream version 2.00
4447
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4448
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4449
case "${target_cpu}-$platform" in
4450
     mips-arc)
4451
        TARGET_LINK_ADDR=0x88200000
4452
        TARGET_DECOMPRESSOR_LINK_ADDR=0x88100000
4453
	;;
4454
     mipsel-arc)
4455
        TARGET_LINK_ADDR=0x80700000
4456
	TARGET_DECOMPRESSOR_LINK_ADDR=0x80600000
4457
	;;
4458
     mips*-qemu_mips | mips*-loongson)
4459
        TARGET_DECOMPRESSOR_LINK_ADDR=0x80100000
4460
	;;
4461
esac
4462
4463
4464
4465
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4466
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4467
4468
4469
4470
4471
4472
4473
4474
4475
# Define default variables
1.15.16 by Colin Watson
Import upstream version 2.00
4476
4477
have_with_bootdir=n
4478
4479
# Check whether --with-bootdir was given.
4480
if test "${with_bootdir+set}" = set; then :
4481
  withval=$with_bootdir; have_with_bootdir=y
4482
else
4483
  have_with_bootdir=n
4484
fi
4485
4486
if test x$have_with_bootdir = xy; then
4487
   bootdirname="$with_bootdir"
4488
else
4489
   case "$host_os" in
4490
     netbsd* | openbsd*)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4491
        # Because /boot is used for the boot block in NetBSD and OpenBSD,
1.15.16 by Colin Watson
Import upstream version 2.00
4492
           bootdirname=''      ;;
4493
     *)    bootdirname='boot'  ;;
4494
   esac
4495
fi
4496
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4497
4498
4499
cat >>confdefs.h <<_ACEOF
4500
#define GRUB_BOOT_DIR_NAME "$bootdirname"
4501
_ACEOF
4502
4503
1.15.16 by Colin Watson
Import upstream version 2.00
4504
4505
# Check whether --with-grubdir was given.
4506
if test "${with_grubdir+set}" = set; then :
4507
  withval=$with_grubdir; grubdirname="$with_grubdir"
4508
else
4509
  grubdirname="$PACKAGE"
4510
fi
4511
4512
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4513
4514
4515
cat >>confdefs.h <<_ACEOF
4516
#define GRUB_DIR_NAME "$grubdirname"
4517
_ACEOF
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4518
4519
4520
#
4521
# Checks for build programs.
4522
#
4523
4524
# Although cmp is listed in the GNU Coding Standards as a command which
4525
# can used directly, OpenBSD lacks cmp in the default installation.
4526
for ac_prog in cmp
4527
do
4528
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4529
set dummy $ac_prog; ac_word=$2
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4532
if ${ac_cv_prog_CMP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4533
  $as_echo_n "(cached) " >&6
4534
else
4535
  if test -n "$CMP"; then
4536
  ac_cv_prog_CMP="$CMP" # Let the user override the test.
4537
else
4538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539
for as_dir in $PATH
4540
do
4541
  IFS=$as_save_IFS
4542
  test -z "$as_dir" && as_dir=.
4543
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4544
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4545
    ac_cv_prog_CMP="$ac_prog"
4546
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547
    break 2
4548
  fi
4549
done
4550
  done
4551
IFS=$as_save_IFS
4552
4553
fi
4554
fi
4555
CMP=$ac_cv_prog_CMP
4556
if test -n "$CMP"; then
4557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4558
$as_echo "$CMP" >&6; }
4559
else
4560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561
$as_echo "no" >&6; }
4562
fi
4563
4564
4565
  test -n "$CMP" && break
4566
done
4567
4568
if test "x$CMP" = x; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
4569
  as_fn_error $? "cmp is not found" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4570
fi
4571
4572
for ac_prog in bison
4573
do
4574
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4575
set dummy $ac_prog; ac_word=$2
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4578
if ${ac_cv_prog_YACC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4579
  $as_echo_n "(cached) " >&6
4580
else
4581
  if test -n "$YACC"; then
4582
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4583
else
4584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585
for as_dir in $PATH
4586
do
4587
  IFS=$as_save_IFS
4588
  test -z "$as_dir" && as_dir=.
4589
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4590
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4591
    ac_cv_prog_YACC="$ac_prog"
4592
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593
    break 2
4594
  fi
4595
done
4596
  done
4597
IFS=$as_save_IFS
4598
4599
fi
4600
fi
4601
YACC=$ac_cv_prog_YACC
4602
if test -n "$YACC"; then
4603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4604
$as_echo "$YACC" >&6; }
4605
else
4606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607
$as_echo "no" >&6; }
4608
fi
4609
4610
4611
  test -n "$YACC" && break
4612
done
4613
4614
if test "x$YACC" = x; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
4615
  as_fn_error $? "bison is not found" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4616
fi
4617
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4618
if test -n "$ac_tool_prefix"; then
4619
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4620
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4623
if ${ac_cv_prog_RANLIB+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4624
  $as_echo_n "(cached) " >&6
4625
else
4626
  if test -n "$RANLIB"; then
4627
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4628
else
4629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630
for as_dir in $PATH
4631
do
4632
  IFS=$as_save_IFS
4633
  test -z "$as_dir" && as_dir=.
4634
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4635
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4636
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4637
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638
    break 2
4639
  fi
4640
done
4641
  done
4642
IFS=$as_save_IFS
4643
4644
fi
4645
fi
4646
RANLIB=$ac_cv_prog_RANLIB
4647
if test -n "$RANLIB"; then
4648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4649
$as_echo "$RANLIB" >&6; }
4650
else
4651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652
$as_echo "no" >&6; }
4653
fi
4654
4655
4656
fi
4657
if test -z "$ac_cv_prog_RANLIB"; then
4658
  ac_ct_RANLIB=$RANLIB
4659
  # Extract the first word of "ranlib", so it can be a program name with args.
4660
set dummy ranlib; ac_word=$2
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4663
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4664
  $as_echo_n "(cached) " >&6
4665
else
4666
  if test -n "$ac_ct_RANLIB"; then
4667
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4668
else
4669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670
for as_dir in $PATH
4671
do
4672
  IFS=$as_save_IFS
4673
  test -z "$as_dir" && as_dir=.
4674
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4675
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
4676
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4677
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678
    break 2
4679
  fi
4680
done
4681
  done
4682
IFS=$as_save_IFS
4683
4684
fi
4685
fi
4686
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4687
if test -n "$ac_ct_RANLIB"; then
4688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4689
$as_echo "$ac_ct_RANLIB" >&6; }
4690
else
4691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692
$as_echo "no" >&6; }
4693
fi
4694
4695
  if test "x$ac_ct_RANLIB" = x; then
4696
    RANLIB=":"
4697
  else
4698
    case $cross_compiling:$ac_tool_warned in
4699
yes:)
4700
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702
ac_tool_warned=yes ;;
4703
esac
4704
    RANLIB=$ac_ct_RANLIB
4705
  fi
4706
else
4707
  RANLIB="$ac_cv_prog_RANLIB"
4708
fi
4709
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4710
4711
for ac_prog in gawk mawk nawk awk
4712
do
4713
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4714
set dummy $ac_prog; ac_word=$2
4715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4717
if ${ac_cv_prog_AWK+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4718
  $as_echo_n "(cached) " >&6
4719
else
4720
  if test -n "$AWK"; then
4721
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4722
else
4723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724
for as_dir in $PATH
4725
do
4726
  IFS=$as_save_IFS
4727
  test -z "$as_dir" && as_dir=.
4728
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4729
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4730
    ac_cv_prog_AWK="$ac_prog"
4731
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732
    break 2
4733
  fi
4734
done
4735
  done
4736
IFS=$as_save_IFS
4737
4738
fi
4739
fi
4740
AWK=$ac_cv_prog_AWK
4741
if test -n "$AWK"; then
4742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4743
$as_echo "$AWK" >&6; }
4744
else
4745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746
$as_echo "no" >&6; }
4747
fi
4748
4749
4750
  test -n "$AWK" && break
4751
done
4752
4753
DEPDIR="${am__leading_dot}deps"
4754
4755
ac_config_commands="$ac_config_commands depfiles"
4756
4757
4758
am_make=${MAKE-make}
4759
cat > confinc << 'END'
4760
am__doit:
4761
	@echo this is the am__doit target
4762
.PHONY: am__doit
4763
END
4764
# If we don't find an include directive, just comment out the code.
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4766
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4767
am__include="#"
4768
am__quote=
4769
_am_result=none
4770
# First try GNU make style include.
4771
echo "include confinc" > confmf
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
4772
# Ignore all kinds of additional output from 'make'.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4773
case `$am_make -s -f confmf 2> /dev/null` in #(
4774
*the\ am__doit\ target*)
4775
  am__include=include
4776
  am__quote=
4777
  _am_result=GNU
4778
  ;;
4779
esac
4780
# Now try BSD make style include.
4781
if test "$am__include" = "#"; then
4782
   echo '.include "confinc"' > confmf
4783
   case `$am_make -s -f confmf 2> /dev/null` in #(
4784
   *the\ am__doit\ target*)
4785
     am__include=.include
4786
     am__quote="\""
4787
     _am_result=BSD
4788
     ;;
4789
   esac
4790
fi
4791
4792
4793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4794
$as_echo "$_am_result" >&6; }
4795
rm -f confinc confmf
4796
4797
# Check whether --enable-dependency-tracking was given.
4798
if test "${enable_dependency_tracking+set}" = set; then :
4799
  enableval=$enable_dependency_tracking;
4800
fi
4801
4802
if test "x$enable_dependency_tracking" != xno; then
4803
  am_depcomp="$ac_aux_dir/depcomp"
4804
  AMDEPBACKSLASH='\'
1.15.16 by Colin Watson
Import upstream version 2.00
4805
  am__nodep='_no'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4806
fi
4807
 if test "x$enable_dependency_tracking" != xno; then
4808
  AMDEP_TRUE=
4809
  AMDEP_FALSE='#'
4810
else
4811
  AMDEP_TRUE='#'
4812
  AMDEP_FALSE=
4813
fi
4814
4815
4816
ac_ext=c
4817
ac_cpp='$CPP $CPPFLAGS'
4818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
if test -n "$ac_tool_prefix"; then
4822
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4823
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4826
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4827
  $as_echo_n "(cached) " >&6
4828
else
4829
  if test -n "$CC"; then
4830
  ac_cv_prog_CC="$CC" # Let the user override the test.
4831
else
4832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833
for as_dir in $PATH
4834
do
4835
  IFS=$as_save_IFS
4836
  test -z "$as_dir" && as_dir=.
4837
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4838
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4839
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4840
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841
    break 2
4842
  fi
4843
done
4844
  done
4845
IFS=$as_save_IFS
4846
4847
fi
4848
fi
4849
CC=$ac_cv_prog_CC
4850
if test -n "$CC"; then
4851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852
$as_echo "$CC" >&6; }
4853
else
4854
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855
$as_echo "no" >&6; }
4856
fi
4857
4858
4859
fi
4860
if test -z "$ac_cv_prog_CC"; then
4861
  ac_ct_CC=$CC
4862
  # Extract the first word of "gcc", so it can be a program name with args.
4863
set dummy gcc; ac_word=$2
4864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4866
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4867
  $as_echo_n "(cached) " >&6
4868
else
4869
  if test -n "$ac_ct_CC"; then
4870
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4871
else
4872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873
for as_dir in $PATH
4874
do
4875
  IFS=$as_save_IFS
4876
  test -z "$as_dir" && as_dir=.
4877
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4878
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4879
    ac_cv_prog_ac_ct_CC="gcc"
4880
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881
    break 2
4882
  fi
4883
done
4884
  done
4885
IFS=$as_save_IFS
4886
4887
fi
4888
fi
4889
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4890
if test -n "$ac_ct_CC"; then
4891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4892
$as_echo "$ac_ct_CC" >&6; }
4893
else
4894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895
$as_echo "no" >&6; }
4896
fi
4897
4898
  if test "x$ac_ct_CC" = x; then
4899
    CC=""
4900
  else
4901
    case $cross_compiling:$ac_tool_warned in
4902
yes:)
4903
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905
ac_tool_warned=yes ;;
4906
esac
4907
    CC=$ac_ct_CC
4908
  fi
4909
else
4910
  CC="$ac_cv_prog_CC"
4911
fi
4912
4913
if test -z "$CC"; then
4914
          if test -n "$ac_tool_prefix"; then
4915
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916
set dummy ${ac_tool_prefix}cc; ac_word=$2
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4919
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4920
  $as_echo_n "(cached) " >&6
4921
else
4922
  if test -n "$CC"; then
4923
  ac_cv_prog_CC="$CC" # Let the user override the test.
4924
else
4925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926
for as_dir in $PATH
4927
do
4928
  IFS=$as_save_IFS
4929
  test -z "$as_dir" && as_dir=.
4930
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4932
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934
    break 2
4935
  fi
4936
done
4937
  done
4938
IFS=$as_save_IFS
4939
4940
fi
4941
fi
4942
CC=$ac_cv_prog_CC
4943
if test -n "$CC"; then
4944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945
$as_echo "$CC" >&6; }
4946
else
4947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948
$as_echo "no" >&6; }
4949
fi
4950
4951
4952
  fi
4953
fi
4954
if test -z "$CC"; then
4955
  # Extract the first word of "cc", so it can be a program name with args.
4956
set dummy cc; ac_word=$2
4957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
4959
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4960
  $as_echo_n "(cached) " >&6
4961
else
4962
  if test -n "$CC"; then
4963
  ac_cv_prog_CC="$CC" # Let the user override the test.
4964
else
4965
  ac_prog_rejected=no
4966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967
for as_dir in $PATH
4968
do
4969
  IFS=$as_save_IFS
4970
  test -z "$as_dir" && as_dir=.
4971
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
4972
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
4973
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974
       ac_prog_rejected=yes
4975
       continue
4976
     fi
4977
    ac_cv_prog_CC="cc"
4978
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979
    break 2
4980
  fi
4981
done
4982
  done
4983
IFS=$as_save_IFS
4984
4985
if test $ac_prog_rejected = yes; then
4986
  # We found a bogon in the path, so make sure we never use it.
4987
  set dummy $ac_cv_prog_CC
4988
  shift
4989
  if test $# != 0; then
4990
    # We chose a different compiler from the bogus one.
4991
    # However, it has the same basename, so the bogon will be chosen
4992
    # first if we set CC to just the basename; use the full file name.
4993
    shift
4994
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4995
  fi
4996
fi
4997
fi
4998
fi
4999
CC=$ac_cv_prog_CC
5000
if test -n "$CC"; then
5001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002
$as_echo "$CC" >&6; }
5003
else
5004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005
$as_echo "no" >&6; }
5006
fi
5007
5008
5009
fi
5010
if test -z "$CC"; then
5011
  if test -n "$ac_tool_prefix"; then
5012
  for ac_prog in cl.exe
5013
  do
5014
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5018
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5019
  $as_echo_n "(cached) " >&6
5020
else
5021
  if test -n "$CC"; then
5022
  ac_cv_prog_CC="$CC" # Let the user override the test.
5023
else
5024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025
for as_dir in $PATH
5026
do
5027
  IFS=$as_save_IFS
5028
  test -z "$as_dir" && as_dir=.
5029
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
5030
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5031
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033
    break 2
5034
  fi
5035
done
5036
  done
5037
IFS=$as_save_IFS
5038
5039
fi
5040
fi
5041
CC=$ac_cv_prog_CC
5042
if test -n "$CC"; then
5043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5044
$as_echo "$CC" >&6; }
5045
else
5046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047
$as_echo "no" >&6; }
5048
fi
5049
5050
5051
    test -n "$CC" && break
5052
  done
5053
fi
5054
if test -z "$CC"; then
5055
  ac_ct_CC=$CC
5056
  for ac_prog in cl.exe
5057
do
5058
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5059
set dummy $ac_prog; ac_word=$2
5060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5062
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5063
  $as_echo_n "(cached) " >&6
5064
else
5065
  if test -n "$ac_ct_CC"; then
5066
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067
else
5068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069
for as_dir in $PATH
5070
do
5071
  IFS=$as_save_IFS
5072
  test -z "$as_dir" && as_dir=.
5073
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
5074
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5075
    ac_cv_prog_ac_ct_CC="$ac_prog"
5076
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077
    break 2
5078
  fi
5079
done
5080
  done
5081
IFS=$as_save_IFS
5082
5083
fi
5084
fi
5085
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086
if test -n "$ac_ct_CC"; then
5087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5088
$as_echo "$ac_ct_CC" >&6; }
5089
else
5090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091
$as_echo "no" >&6; }
5092
fi
5093
5094
5095
  test -n "$ac_ct_CC" && break
5096
done
5097
5098
  if test "x$ac_ct_CC" = x; then
5099
    CC=""
5100
  else
5101
    case $cross_compiling:$ac_tool_warned in
5102
yes:)
5103
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105
ac_tool_warned=yes ;;
5106
esac
5107
    CC=$ac_ct_CC
5108
  fi
5109
fi
5110
5111
fi
5112
5113
5114
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5116
as_fn_error $? "no acceptable C compiler found in \$PATH
1.15.15 by Colin Watson
Import upstream version 1.99
5117
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5118
5119
# Provide some information about the compiler.
5120
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5121
set X $ac_compile
5122
ac_compiler=$2
5123
for ac_option in --version -v -V -qversion; do
5124
  { { ac_try="$ac_compiler $ac_option >&5"
5125
case "(($ac_try" in
5126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127
  *) ac_try_echo=$ac_try;;
5128
esac
5129
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5130
$as_echo "$ac_try_echo"; } >&5
5131
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5132
  ac_status=$?
5133
  if test -s conftest.err; then
5134
    sed '10a\
5135
... rest of stderr output deleted ...
5136
         10q' conftest.err >conftest.er1
5137
    cat conftest.er1 >&5
5138
  fi
5139
  rm -f conftest.er1 conftest.err
5140
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5141
  test $ac_status = 0; }
5142
done
5143
5144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145
/* end confdefs.h.  */
5146
5147
int
5148
main (void)
5149
{
5150
5151
  ;
5152
  return 0;
5153
}
5154
_ACEOF
5155
ac_clean_files_save=$ac_clean_files
5156
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5157
# Try to create an executable without -o first, disregard a.out.
5158
# It will help us diagnose broken compilers, and finding out an intuition
5159
# of exeext.
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5161
$as_echo_n "checking whether the C compiler works... " >&6; }
5162
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5163
5164
# The possible output files:
5165
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5166
5167
ac_rmfiles=
5168
for ac_file in $ac_files
5169
do
5170
  case $ac_file in
5171
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5172
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5173
  esac
5174
done
5175
rm -f $ac_rmfiles
5176
5177
if { { ac_try="$ac_link_default"
5178
case "(($ac_try" in
5179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180
  *) ac_try_echo=$ac_try;;
5181
esac
5182
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183
$as_echo "$ac_try_echo"; } >&5
5184
  (eval "$ac_link_default") 2>&5
5185
  ac_status=$?
5186
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187
  test $ac_status = 0; }; then :
5188
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5189
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5190
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5191
# so that the user can short-circuit this test for compilers unknown to
5192
# Autoconf.
5193
for ac_file in $ac_files ''
5194
do
5195
  test -f "$ac_file" || continue
5196
  case $ac_file in
5197
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5198
	;;
5199
    [ab].out )
5200
	# We found the default executable, but exeext='' is most
5201
	# certainly right.
5202
	break;;
5203
    *.* )
5204
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5205
	then :; else
5206
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5207
	fi
5208
	# We set ac_cv_exeext here because the later test for it is not
5209
	# safe: cross compilers may not add the suffix if given an `-o'
5210
	# argument, so we may need to know it at that point already.
5211
	# Even if this section looks crufty: it has the advantage of
5212
	# actually working.
5213
	break;;
5214
    * )
5215
	break;;
5216
  esac
5217
done
5218
test "$ac_cv_exeext" = no && ac_cv_exeext=
5219
5220
else
5221
  ac_file=''
5222
fi
5223
if test -z "$ac_file"; then :
5224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225
$as_echo "no" >&6; }
5226
$as_echo "$as_me: failed program was:" >&5
5227
sed 's/^/| /' conftest.$ac_ext >&5
5228
5229
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5231
as_fn_error 77 "C compiler cannot create executables
1.15.15 by Colin Watson
Import upstream version 1.99
5232
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5233
else
5234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5235
$as_echo "yes" >&6; }
5236
fi
5237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5238
$as_echo_n "checking for C compiler default output file name... " >&6; }
5239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5240
$as_echo "$ac_file" >&6; }
5241
ac_exeext=$ac_cv_exeext
5242
5243
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5244
ac_clean_files=$ac_clean_files_save
5245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5246
$as_echo_n "checking for suffix of executables... " >&6; }
5247
if { { ac_try="$ac_link"
5248
case "(($ac_try" in
5249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250
  *) ac_try_echo=$ac_try;;
5251
esac
5252
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5253
$as_echo "$ac_try_echo"; } >&5
5254
  (eval "$ac_link") 2>&5
5255
  ac_status=$?
5256
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257
  test $ac_status = 0; }; then :
5258
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5259
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5260
# work properly (i.e., refer to `conftest.exe'), while it won't with
5261
# `rm'.
5262
for ac_file in conftest.exe conftest conftest.*; do
5263
  test -f "$ac_file" || continue
5264
  case $ac_file in
5265
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5266
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5267
	  break;;
5268
    * ) break;;
5269
  esac
5270
done
5271
else
5272
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5273
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5274
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.15.15 by Colin Watson
Import upstream version 1.99
5275
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5276
fi
5277
rm -f conftest conftest$ac_cv_exeext
5278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5279
$as_echo "$ac_cv_exeext" >&6; }
5280
5281
rm -f conftest.$ac_ext
5282
EXEEXT=$ac_cv_exeext
5283
ac_exeext=$EXEEXT
5284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285
/* end confdefs.h.  */
5286
#include <stdio.h>
5287
int
5288
main (void)
5289
{
5290
FILE *f = fopen ("conftest.out", "w");
5291
 return ferror (f) || fclose (f) != 0;
5292
5293
  ;
5294
  return 0;
5295
}
5296
_ACEOF
5297
ac_clean_files="$ac_clean_files conftest.out"
5298
# Check that the compiler produces executables we can run.  If not, either
5299
# the compiler is broken, or we cross compile.
5300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5301
$as_echo_n "checking whether we are cross compiling... " >&6; }
5302
if test "$cross_compiling" != yes; then
5303
  { { ac_try="$ac_link"
5304
case "(($ac_try" in
5305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306
  *) ac_try_echo=$ac_try;;
5307
esac
5308
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309
$as_echo "$ac_try_echo"; } >&5
5310
  (eval "$ac_link") 2>&5
5311
  ac_status=$?
5312
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313
  test $ac_status = 0; }
5314
  if { ac_try='./conftest$ac_cv_exeext'
5315
  { { case "(($ac_try" in
5316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317
  *) ac_try_echo=$ac_try;;
5318
esac
5319
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5320
$as_echo "$ac_try_echo"; } >&5
5321
  (eval "$ac_try") 2>&5
5322
  ac_status=$?
5323
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324
  test $ac_status = 0; }; }; then
5325
    cross_compiling=no
5326
  else
5327
    if test "$cross_compiling" = maybe; then
5328
	cross_compiling=yes
5329
    else
5330
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5332
as_fn_error $? "cannot run C compiled programs.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5333
If you meant to cross compile, use \`--host'.
1.15.15 by Colin Watson
Import upstream version 1.99
5334
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5335
    fi
5336
  fi
5337
fi
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5339
$as_echo "$cross_compiling" >&6; }
5340
5341
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5342
ac_clean_files=$ac_clean_files_save
5343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5344
$as_echo_n "checking for suffix of object files... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5345
if ${ac_cv_objext+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5346
  $as_echo_n "(cached) " >&6
5347
else
5348
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349
/* end confdefs.h.  */
5350
5351
int
5352
main (void)
5353
{
5354
5355
  ;
5356
  return 0;
5357
}
5358
_ACEOF
5359
rm -f conftest.o conftest.obj
5360
if { { ac_try="$ac_compile"
5361
case "(($ac_try" in
5362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363
  *) ac_try_echo=$ac_try;;
5364
esac
5365
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5366
$as_echo "$ac_try_echo"; } >&5
5367
  (eval "$ac_compile") 2>&5
5368
  ac_status=$?
5369
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5370
  test $ac_status = 0; }; then :
5371
  for ac_file in conftest.o conftest.obj conftest.*; do
5372
  test -f "$ac_file" || continue;
5373
  case $ac_file in
5374
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5375
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5376
       break;;
5377
  esac
5378
done
5379
else
5380
  $as_echo "$as_me: failed program was:" >&5
5381
sed 's/^/| /' conftest.$ac_ext >&5
5382
5383
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5385
as_fn_error $? "cannot compute suffix of object files: cannot compile
1.15.15 by Colin Watson
Import upstream version 1.99
5386
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5387
fi
5388
rm -f conftest.$ac_cv_objext conftest.$ac_ext
5389
fi
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5391
$as_echo "$ac_cv_objext" >&6; }
5392
OBJEXT=$ac_cv_objext
5393
ac_objext=$OBJEXT
5394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5395
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5396
if ${ac_cv_c_compiler_gnu+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5397
  $as_echo_n "(cached) " >&6
5398
else
5399
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400
/* end confdefs.h.  */
5401
5402
int
5403
main (void)
5404
{
5405
#ifndef __GNUC__
5406
       choke me
5407
#endif
5408
5409
  ;
5410
  return 0;
5411
}
5412
_ACEOF
5413
if ac_fn_c_try_compile "$LINENO"; then :
5414
  ac_compiler_gnu=yes
5415
else
5416
  ac_compiler_gnu=no
5417
fi
5418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5420
5421
fi
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5423
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5424
if test $ac_compiler_gnu = yes; then
5425
  GCC=yes
5426
else
5427
  GCC=
5428
fi
5429
ac_test_CFLAGS=${CFLAGS+set}
5430
ac_save_CFLAGS=$CFLAGS
5431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5432
$as_echo_n "checking whether $CC accepts -g... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5433
if ${ac_cv_prog_cc_g+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5434
  $as_echo_n "(cached) " >&6
5435
else
5436
  ac_save_c_werror_flag=$ac_c_werror_flag
5437
   ac_c_werror_flag=yes
5438
   ac_cv_prog_cc_g=no
5439
   CFLAGS="-g"
5440
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441
/* end confdefs.h.  */
5442
5443
int
5444
main (void)
5445
{
5446
5447
  ;
5448
  return 0;
5449
}
5450
_ACEOF
5451
if ac_fn_c_try_compile "$LINENO"; then :
5452
  ac_cv_prog_cc_g=yes
5453
else
5454
  CFLAGS=""
5455
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456
/* end confdefs.h.  */
5457
5458
int
5459
main (void)
5460
{
5461
5462
  ;
5463
  return 0;
5464
}
5465
_ACEOF
5466
if ac_fn_c_try_compile "$LINENO"; then :
5467
5468
else
5469
  ac_c_werror_flag=$ac_save_c_werror_flag
5470
	 CFLAGS="-g"
5471
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472
/* end confdefs.h.  */
5473
5474
int
5475
main (void)
5476
{
5477
5478
  ;
5479
  return 0;
5480
}
5481
_ACEOF
5482
if ac_fn_c_try_compile "$LINENO"; then :
5483
  ac_cv_prog_cc_g=yes
5484
fi
5485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
fi
5487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488
fi
5489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
   ac_c_werror_flag=$ac_save_c_werror_flag
5491
fi
5492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5493
$as_echo "$ac_cv_prog_cc_g" >&6; }
5494
if test "$ac_test_CFLAGS" = set; then
5495
  CFLAGS=$ac_save_CFLAGS
5496
elif test $ac_cv_prog_cc_g = yes; then
5497
  if test "$GCC" = yes; then
5498
    CFLAGS="-g -O2"
5499
  else
5500
    CFLAGS="-g"
5501
  fi
5502
else
5503
  if test "$GCC" = yes; then
5504
    CFLAGS="-O2"
5505
  else
5506
    CFLAGS=
5507
  fi
5508
fi
5509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5510
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5511
if ${ac_cv_prog_cc_c89+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5512
  $as_echo_n "(cached) " >&6
5513
else
5514
  ac_cv_prog_cc_c89=no
5515
ac_save_CC=$CC
5516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517
/* end confdefs.h.  */
5518
#include <stdarg.h>
5519
#include <stdio.h>
1.15.16 by Colin Watson
Import upstream version 2.00
5520
struct stat;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5521
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5522
struct buf { int x; };
5523
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5524
static char *e (p, i)
5525
     char **p;
5526
     int i;
5527
{
5528
  return p[i];
5529
}
5530
static char *f (char * (*g) (char **, int), char **p, ...)
5531
{
5532
  char *s;
5533
  va_list v;
5534
  va_start (v,p);
5535
  s = g (p, va_arg (v,int));
5536
  va_end (v);
5537
  return s;
5538
}
5539
5540
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5541
   function prototypes and stuff, but not '\xHH' hex character constants.
5542
   These don't provoke an error unfortunately, instead are silently treated
5543
   as 'x'.  The following induces an error, until -std is added to get
5544
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5545
   array size at least.  It's necessary to write '\x00'==0 to get something
5546
   that's true only with -std.  */
5547
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5548
5549
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5550
   inside strings and character constants.  */
5551
#define FOO(x) 'x'
5552
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5553
5554
int test (int i, double x);
5555
struct s1 {int (*f) (int a);};
5556
struct s2 {int (*f) (double a);};
5557
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5558
int argc;
5559
char **argv;
5560
int
5561
main (void)
5562
{
5563
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5564
  ;
5565
  return 0;
5566
}
5567
_ACEOF
5568
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5569
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5570
do
5571
  CC="$ac_save_CC $ac_arg"
5572
  if ac_fn_c_try_compile "$LINENO"; then :
5573
  ac_cv_prog_cc_c89=$ac_arg
5574
fi
5575
rm -f core conftest.err conftest.$ac_objext
5576
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5577
done
5578
rm -f conftest.$ac_ext
5579
CC=$ac_save_CC
5580
5581
fi
5582
# AC_CACHE_VAL
5583
case "x$ac_cv_prog_cc_c89" in
5584
  x)
5585
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5586
$as_echo "none needed" >&6; } ;;
5587
  xno)
5588
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5589
$as_echo "unsupported" >&6; } ;;
5590
  *)
5591
    CC="$CC $ac_cv_prog_cc_c89"
5592
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5593
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5594
esac
5595
if test "x$ac_cv_prog_cc_c89" != xno; then :
5596
5597
fi
5598
5599
ac_ext=c
5600
ac_cpp='$CPP $CPPFLAGS'
5601
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5605
ac_ext=c
5606
ac_cpp='$CPP $CPPFLAGS'
5607
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5611
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5612
if ${am_cv_prog_cc_c_o+:} false; then :
5613
  $as_echo_n "(cached) " >&6
5614
else
5615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616
/* end confdefs.h.  */
5617
5618
int
5619
main (void)
5620
{
5621
5622
  ;
5623
  return 0;
5624
}
5625
_ACEOF
5626
  # Make sure it works both with $CC and with simple cc.
5627
  # Following AC_PROG_CC_C_O, we do the test twice because some
5628
  # compilers refuse to overwrite an existing .o file with -o,
5629
  # though they will create one.
5630
  am_cv_prog_cc_c_o=yes
5631
  for am_i in 1 2; do
5632
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5633
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5634
   ac_status=$?
5635
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636
   (exit $ac_status); } \
5637
         && test -f conftest2.$ac_objext; then
5638
      : OK
5639
    else
5640
      am_cv_prog_cc_c_o=no
5641
      break
5642
    fi
5643
  done
5644
  rm -f core conftest*
5645
  unset am_i
5646
fi
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5648
$as_echo "$am_cv_prog_cc_c_o" >&6; }
5649
if test "$am_cv_prog_cc_c_o" != yes; then
5650
   # Losing compiler, so override with the script.
5651
   # FIXME: It is wrong to rewrite CC.
5652
   # But if we don't then we get into trouble of one sort or another.
5653
   # A longer-term fix would be to have automake use am__CC in this case,
5654
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5655
   CC="$am_aux_dir/compile $CC"
5656
fi
5657
ac_ext=c
5658
ac_cpp='$CPP $CPPFLAGS'
5659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662
5663
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5664
depcc="$CC"   am_compiler_list=
5665
5666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5667
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5668
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5669
  $as_echo_n "(cached) " >&6
5670
else
5671
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5672
  # We make a subdir and do the tests there.  Otherwise we can end up
5673
  # making bogus files that we don't know about and never remove.  For
5674
  # instance it was reported that on HP-UX the gcc test will end up
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5675
  # making a dummy file named 'D' -- because '-MD' means "put the output
5676
  # in D".
1.15.16 by Colin Watson
Import upstream version 2.00
5677
  rm -rf conftest.dir
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5678
  mkdir conftest.dir
5679
  # Copy depcomp to subdir because otherwise we won't find it if we're
5680
  # using a relative directory.
5681
  cp "$am_depcomp" conftest.dir
5682
  cd conftest.dir
5683
  # We will build objects and dependencies in a subdirectory because
5684
  # it helps to detect inapplicable dependency modes.  For instance
5685
  # both Tru64's cc and ICC support -MD to output dependencies as a
5686
  # side effect of compilation, but ICC will put the dependencies in
5687
  # the current directory while Tru64 will put them in the object
5688
  # directory.
5689
  mkdir sub
5690
5691
  am_cv_CC_dependencies_compiler_type=none
5692
  if test "$am_compiler_list" = ""; then
5693
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5694
  fi
5695
  am__universal=false
5696
  case " $depcc " in #(
5697
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5698
     esac
5699
5700
  for depmode in $am_compiler_list; do
5701
    # Setup a source with many dependencies, because some compilers
5702
    # like to wrap large dependency lists on column 80 (with \), and
5703
    # we should not choose a depcomp mode which is confused by this.
5704
    #
5705
    # We need to recreate these files for each test, as the compiler may
5706
    # overwrite some of them when testing with obscure command lines.
5707
    # This happens at least with the AIX C compiler.
5708
    : > sub/conftest.c
5709
    for i in 1 2 3 4 5 6; do
5710
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5711
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5712
      # Solaris 10 /bin/sh.
5713
      echo '/* dummy */' > sub/conftst$i.h
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5714
    done
5715
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5716
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5717
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5718
    # mode.  It turns out that the SunPro C++ compiler does not properly
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5719
    # handle '-M -o', and we need to detect this.  Also, some Intel
5720
    # versions had trouble with output in subdirs.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5721
    am__obj=sub/conftest.${OBJEXT-o}
5722
    am__minus_obj="-o $am__obj"
5723
    case $depmode in
5724
    gcc)
5725
      # This depmode causes a compiler race in universal mode.
5726
      test "$am__universal" = false || continue
5727
      ;;
5728
    nosideeffect)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5729
      # After this tag, mechanisms are not by side-effect, so they'll
5730
      # only be used when explicitly requested.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5731
      if test "x$enable_dependency_tracking" = xyes; then
5732
	continue
5733
      else
5734
	break
5735
      fi
5736
      ;;
1.15.16 by Colin Watson
Import upstream version 2.00
5737
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
5738
      # This compiler won't grok '-c -o', but also, the minuso test has
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5739
      # not run yet.  These depmodes are late enough in the game, and
5740
      # so weak that their functioning should not be impacted.
5741
      am__obj=conftest.${OBJEXT-o}
5742
      am__minus_obj=
5743
      ;;
5744
    none) break ;;
5745
    esac
5746
    if depmode=$depmode \
5747
       source=sub/conftest.c object=$am__obj \
5748
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5749
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5750
         >/dev/null 2>conftest.err &&
5751
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5752
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5753
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5754
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5755
      # icc doesn't choke on unknown options, it will just issue warnings
5756
      # or remarks (even with -Werror).  So we grep stderr for any message
5757
      # that says an option was ignored or not supported.
5758
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5759
      #   icc: Command line warning: ignoring option '-M'; no argument required
5760
      # The diagnosis changed in icc 8.0:
5761
      #   icc: Command line remark: option '-MP' not supported
5762
      if (grep 'ignoring option' conftest.err ||
5763
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5764
        am_cv_CC_dependencies_compiler_type=$depmode
5765
        break
5766
      fi
5767
    fi
5768
  done
5769
5770
  cd ..
5771
  rm -rf conftest.dir
5772
else
5773
  am_cv_CC_dependencies_compiler_type=none
5774
fi
5775
5776
fi
5777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5778
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5779
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5780
5781
 if
5782
  test "x$enable_dependency_tracking" != xno \
5783
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5784
  am__fastdepCC_TRUE=
5785
  am__fastdepCC_FALSE='#'
5786
else
5787
  am__fastdepCC_TRUE='#'
5788
  am__fastdepCC_FALSE=
5789
fi
5790
5791
5792
5793
for ac_prog in flex lex
5794
do
5795
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5796
set dummy $ac_prog; ac_word=$2
5797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5799
if ${ac_cv_prog_LEX+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5800
  $as_echo_n "(cached) " >&6
5801
else
5802
  if test -n "$LEX"; then
5803
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5804
else
5805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806
for as_dir in $PATH
5807
do
5808
  IFS=$as_save_IFS
5809
  test -z "$as_dir" && as_dir=.
5810
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
5811
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5812
    ac_cv_prog_LEX="$ac_prog"
5813
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814
    break 2
5815
  fi
5816
done
5817
  done
5818
IFS=$as_save_IFS
5819
5820
fi
5821
fi
5822
LEX=$ac_cv_prog_LEX
5823
if test -n "$LEX"; then
5824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5825
$as_echo "$LEX" >&6; }
5826
else
5827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828
$as_echo "no" >&6; }
5829
fi
5830
5831
5832
  test -n "$LEX" && break
5833
done
5834
test -n "$LEX" || LEX=":"
5835
5836
if test "x$LEX" != "x:"; then
5837
  cat >conftest.l <<_ACEOF
5838
%%
5839
a { ECHO; }
5840
b { REJECT; }
5841
c { yymore (); }
5842
d { yyless (1); }
1.15.16 by Colin Watson
Import upstream version 2.00
5843
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5844
    yyless ((input () != 0)); }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5845
f { unput (yytext[0]); }
5846
. { BEGIN INITIAL; }
5847
%%
5848
#ifdef YYTEXT_POINTER
5849
extern char *yytext;
5850
#endif
5851
int
5852
main (void)
5853
{
5854
  return ! yylex () + ! yywrap ();
5855
}
5856
_ACEOF
5857
{ { ac_try="$LEX conftest.l"
5858
case "(($ac_try" in
5859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860
  *) ac_try_echo=$ac_try;;
5861
esac
5862
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5863
$as_echo "$ac_try_echo"; } >&5
5864
  (eval "$LEX conftest.l") 2>&5
5865
  ac_status=$?
5866
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867
  test $ac_status = 0; }
5868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5869
$as_echo_n "checking lex output file root... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5870
if ${ac_cv_prog_lex_root+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5871
  $as_echo_n "(cached) " >&6
5872
else
5873
5874
if test -f lex.yy.c; then
5875
  ac_cv_prog_lex_root=lex.yy
5876
elif test -f lexyy.c; then
5877
  ac_cv_prog_lex_root=lexyy
5878
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
5879
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5880
fi
5881
fi
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5883
$as_echo "$ac_cv_prog_lex_root" >&6; }
5884
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5885
5886
if test -z "${LEXLIB+set}"; then
5887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5888
$as_echo_n "checking lex library... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5889
if ${ac_cv_lib_lex+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5890
  $as_echo_n "(cached) " >&6
5891
else
5892
5893
    ac_save_LIBS=$LIBS
5894
    ac_cv_lib_lex='none needed'
5895
    for ac_lib in '' -lfl -ll; do
5896
      LIBS="$ac_lib $ac_save_LIBS"
5897
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898
/* end confdefs.h.  */
5899
`cat $LEX_OUTPUT_ROOT.c`
5900
_ACEOF
5901
if ac_fn_c_try_link "$LINENO"; then :
5902
  ac_cv_lib_lex=$ac_lib
5903
fi
5904
rm -f core conftest.err conftest.$ac_objext \
5905
    conftest$ac_exeext conftest.$ac_ext
5906
      test "$ac_cv_lib_lex" != 'none needed' && break
5907
    done
5908
    LIBS=$ac_save_LIBS
5909
5910
fi
5911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5912
$as_echo "$ac_cv_lib_lex" >&6; }
5913
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5914
fi
5915
5916
5917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5918
$as_echo_n "checking whether yytext is a pointer... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5919
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5920
  $as_echo_n "(cached) " >&6
5921
else
5922
  # POSIX says lex can declare yytext either as a pointer or an array; the
5923
# default is implementation-dependent.  Figure out which it is, since
5924
# not all implementations provide the %pointer and %array declarations.
5925
ac_cv_prog_lex_yytext_pointer=no
5926
ac_save_LIBS=$LIBS
5927
LIBS="$LEXLIB $ac_save_LIBS"
5928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929
/* end confdefs.h.  */
1.15.15 by Colin Watson
Import upstream version 1.99
5930
5931
  #define YYTEXT_POINTER 1
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5932
`cat $LEX_OUTPUT_ROOT.c`
5933
_ACEOF
5934
if ac_fn_c_try_link "$LINENO"; then :
5935
  ac_cv_prog_lex_yytext_pointer=yes
5936
fi
5937
rm -f core conftest.err conftest.$ac_objext \
5938
    conftest$ac_exeext conftest.$ac_ext
5939
LIBS=$ac_save_LIBS
5940
5941
fi
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5943
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5944
if test $ac_cv_prog_lex_yytext_pointer = yes; then
5945
5946
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5947
5948
fi
5949
rm -f conftest.l $LEX_OUTPUT_ROOT.c
5950
5951
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
5952
for ac_prog in 'bison -y' byacc
5953
do
5954
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5955
set dummy $ac_prog; ac_word=$2
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
5958
if ${ac_cv_prog_YACC+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
5959
  $as_echo_n "(cached) " >&6
5960
else
5961
  if test -n "$YACC"; then
5962
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5963
else
5964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965
for as_dir in $PATH
5966
do
5967
  IFS=$as_save_IFS
5968
  test -z "$as_dir" && as_dir=.
5969
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
5970
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
5971
    ac_cv_prog_YACC="$ac_prog"
5972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973
    break 2
5974
  fi
5975
done
5976
  done
5977
IFS=$as_save_IFS
5978
5979
fi
5980
fi
5981
YACC=$ac_cv_prog_YACC
5982
if test -n "$YACC"; then
5983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5984
$as_echo "$YACC" >&6; }
5985
else
5986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987
$as_echo "no" >&6; }
5988
fi
5989
5990
5991
  test -n "$YACC" && break
5992
done
5993
test -n "$YACC" || YACC="yacc"
5994
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
5995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5996
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5997
set x ${MAKE-make}
5998
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.15.15 by Colin Watson
Import upstream version 1.99
5999
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6000
  $as_echo_n "(cached) " >&6
6001
else
6002
  cat >conftest.make <<\_ACEOF
6003
SHELL = /bin/sh
6004
all:
6005
	@echo '@@@%%%=$(MAKE)=@@@%%%'
6006
_ACEOF
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6007
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6008
case `${MAKE-make} -f conftest.make 2>/dev/null` in
6009
  *@@@%%%=?*=@@@%%%*)
6010
    eval ac_cv_prog_make_${ac_make}_set=yes;;
6011
  *)
6012
    eval ac_cv_prog_make_${ac_make}_set=no;;
6013
esac
6014
rm -f conftest.make
6015
fi
6016
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6018
$as_echo "yes" >&6; }
6019
  SET_MAKE=
6020
else
6021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022
$as_echo "no" >&6; }
6023
  SET_MAKE="MAKE=${MAKE-make}"
6024
fi
6025
6026
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
6027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6028
$as_echo_n "checking whether ln -s works... " >&6; }
6029
LN_S=$as_ln_s
6030
if test "$LN_S" = "ln -s"; then
6031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6032
$as_echo "yes" >&6; }
6033
else
6034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6035
$as_echo "no, using $LN_S" >&6; }
6036
fi
6037
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6038
6039
if test "x$LEX" = "x:"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6040
  as_fn_error $? "flex is not found" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6041
else
6042
  version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
6043
  if test -n "$version" -a "$version" -ge 20535; then
6044
    :
6045
  else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6046
    as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6047
  fi
6048
fi
6049
6050
# These are not a "must".
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
6051
for ac_prog in makeinfo true
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6052
do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
6053
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6054
set dummy $ac_prog; ac_word=$2
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6057
if ${ac_cv_path_MAKEINFO+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6058
  $as_echo_n "(cached) " >&6
6059
else
6060
  case $MAKEINFO in
6061
  [\\/]* | ?:[\\/]*)
6062
  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6063
  ;;
6064
  *)
6065
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066
for as_dir in $PATH
6067
do
6068
  IFS=$as_save_IFS
6069
  test -z "$as_dir" && as_dir=.
6070
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6071
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6072
    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6073
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074
    break 2
6075
  fi
6076
done
6077
  done
6078
IFS=$as_save_IFS
6079
6080
  ;;
6081
esac
6082
fi
6083
MAKEINFO=$ac_cv_path_MAKEINFO
6084
if test -n "$MAKEINFO"; then
6085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6086
$as_echo "$MAKEINFO" >&6; }
6087
else
6088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089
$as_echo "no" >&6; }
6090
fi
6091
6092
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
6093
  test -n "$MAKEINFO" && break
6094
done
6095
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6096
6097
#
6098
# Checks for host programs.
6099
#
6100
6101
ac_ext=c
6102
ac_cpp='$CPP $CPPFLAGS'
6103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6106
if test -n "$ac_tool_prefix"; then
6107
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6108
set dummy ${ac_tool_prefix}gcc; ac_word=$2
6109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6111
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6112
  $as_echo_n "(cached) " >&6
6113
else
6114
  if test -n "$CC"; then
6115
  ac_cv_prog_CC="$CC" # Let the user override the test.
6116
else
6117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118
for as_dir in $PATH
6119
do
6120
  IFS=$as_save_IFS
6121
  test -z "$as_dir" && as_dir=.
6122
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6123
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6124
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126
    break 2
6127
  fi
6128
done
6129
  done
6130
IFS=$as_save_IFS
6131
6132
fi
6133
fi
6134
CC=$ac_cv_prog_CC
6135
if test -n "$CC"; then
6136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6137
$as_echo "$CC" >&6; }
6138
else
6139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140
$as_echo "no" >&6; }
6141
fi
6142
6143
6144
fi
6145
if test -z "$ac_cv_prog_CC"; then
6146
  ac_ct_CC=$CC
6147
  # Extract the first word of "gcc", so it can be a program name with args.
6148
set dummy gcc; ac_word=$2
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6151
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6152
  $as_echo_n "(cached) " >&6
6153
else
6154
  if test -n "$ac_ct_CC"; then
6155
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6156
else
6157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158
for as_dir in $PATH
6159
do
6160
  IFS=$as_save_IFS
6161
  test -z "$as_dir" && as_dir=.
6162
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6163
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6164
    ac_cv_prog_ac_ct_CC="gcc"
6165
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166
    break 2
6167
  fi
6168
done
6169
  done
6170
IFS=$as_save_IFS
6171
6172
fi
6173
fi
6174
ac_ct_CC=$ac_cv_prog_ac_ct_CC
6175
if test -n "$ac_ct_CC"; then
6176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6177
$as_echo "$ac_ct_CC" >&6; }
6178
else
6179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180
$as_echo "no" >&6; }
6181
fi
6182
6183
  if test "x$ac_ct_CC" = x; then
6184
    CC=""
6185
  else
6186
    case $cross_compiling:$ac_tool_warned in
6187
yes:)
6188
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190
ac_tool_warned=yes ;;
6191
esac
6192
    CC=$ac_ct_CC
6193
  fi
6194
else
6195
  CC="$ac_cv_prog_CC"
6196
fi
6197
6198
if test -z "$CC"; then
6199
          if test -n "$ac_tool_prefix"; then
6200
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6201
set dummy ${ac_tool_prefix}cc; ac_word=$2
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6204
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6205
  $as_echo_n "(cached) " >&6
6206
else
6207
  if test -n "$CC"; then
6208
  ac_cv_prog_CC="$CC" # Let the user override the test.
6209
else
6210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211
for as_dir in $PATH
6212
do
6213
  IFS=$as_save_IFS
6214
  test -z "$as_dir" && as_dir=.
6215
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6216
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6217
    ac_cv_prog_CC="${ac_tool_prefix}cc"
6218
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219
    break 2
6220
  fi
6221
done
6222
  done
6223
IFS=$as_save_IFS
6224
6225
fi
6226
fi
6227
CC=$ac_cv_prog_CC
6228
if test -n "$CC"; then
6229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6230
$as_echo "$CC" >&6; }
6231
else
6232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233
$as_echo "no" >&6; }
6234
fi
6235
6236
6237
  fi
6238
fi
6239
if test -z "$CC"; then
6240
  # Extract the first word of "cc", so it can be a program name with args.
6241
set dummy cc; ac_word=$2
6242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6244
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6245
  $as_echo_n "(cached) " >&6
6246
else
6247
  if test -n "$CC"; then
6248
  ac_cv_prog_CC="$CC" # Let the user override the test.
6249
else
6250
  ac_prog_rejected=no
6251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252
for as_dir in $PATH
6253
do
6254
  IFS=$as_save_IFS
6255
  test -z "$as_dir" && as_dir=.
6256
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6257
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6258
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6259
       ac_prog_rejected=yes
6260
       continue
6261
     fi
6262
    ac_cv_prog_CC="cc"
6263
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264
    break 2
6265
  fi
6266
done
6267
  done
6268
IFS=$as_save_IFS
6269
6270
if test $ac_prog_rejected = yes; then
6271
  # We found a bogon in the path, so make sure we never use it.
6272
  set dummy $ac_cv_prog_CC
6273
  shift
6274
  if test $# != 0; then
6275
    # We chose a different compiler from the bogus one.
6276
    # However, it has the same basename, so the bogon will be chosen
6277
    # first if we set CC to just the basename; use the full file name.
6278
    shift
6279
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6280
  fi
6281
fi
6282
fi
6283
fi
6284
CC=$ac_cv_prog_CC
6285
if test -n "$CC"; then
6286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6287
$as_echo "$CC" >&6; }
6288
else
6289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290
$as_echo "no" >&6; }
6291
fi
6292
6293
6294
fi
6295
if test -z "$CC"; then
6296
  if test -n "$ac_tool_prefix"; then
6297
  for ac_prog in cl.exe
6298
  do
6299
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6300
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6303
if ${ac_cv_prog_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6304
  $as_echo_n "(cached) " >&6
6305
else
6306
  if test -n "$CC"; then
6307
  ac_cv_prog_CC="$CC" # Let the user override the test.
6308
else
6309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310
for as_dir in $PATH
6311
do
6312
  IFS=$as_save_IFS
6313
  test -z "$as_dir" && as_dir=.
6314
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6315
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6316
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6317
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318
    break 2
6319
  fi
6320
done
6321
  done
6322
IFS=$as_save_IFS
6323
6324
fi
6325
fi
6326
CC=$ac_cv_prog_CC
6327
if test -n "$CC"; then
6328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6329
$as_echo "$CC" >&6; }
6330
else
6331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332
$as_echo "no" >&6; }
6333
fi
6334
6335
6336
    test -n "$CC" && break
6337
  done
6338
fi
6339
if test -z "$CC"; then
6340
  ac_ct_CC=$CC
6341
  for ac_prog in cl.exe
6342
do
6343
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6344
set dummy $ac_prog; ac_word=$2
6345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6347
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6348
  $as_echo_n "(cached) " >&6
6349
else
6350
  if test -n "$ac_ct_CC"; then
6351
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6352
else
6353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354
for as_dir in $PATH
6355
do
6356
  IFS=$as_save_IFS
6357
  test -z "$as_dir" && as_dir=.
6358
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
6359
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6360
    ac_cv_prog_ac_ct_CC="$ac_prog"
6361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362
    break 2
6363
  fi
6364
done
6365
  done
6366
IFS=$as_save_IFS
6367
6368
fi
6369
fi
6370
ac_ct_CC=$ac_cv_prog_ac_ct_CC
6371
if test -n "$ac_ct_CC"; then
6372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6373
$as_echo "$ac_ct_CC" >&6; }
6374
else
6375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376
$as_echo "no" >&6; }
6377
fi
6378
6379
6380
  test -n "$ac_ct_CC" && break
6381
done
6382
6383
  if test "x$ac_ct_CC" = x; then
6384
    CC=""
6385
  else
6386
    case $cross_compiling:$ac_tool_warned in
6387
yes:)
6388
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390
ac_tool_warned=yes ;;
6391
esac
6392
    CC=$ac_ct_CC
6393
  fi
6394
fi
6395
6396
fi
6397
6398
6399
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6400
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6401
as_fn_error $? "no acceptable C compiler found in \$PATH
1.15.15 by Colin Watson
Import upstream version 1.99
6402
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6403
6404
# Provide some information about the compiler.
6405
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6406
set X $ac_compile
6407
ac_compiler=$2
6408
for ac_option in --version -v -V -qversion; do
6409
  { { ac_try="$ac_compiler $ac_option >&5"
6410
case "(($ac_try" in
6411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412
  *) ac_try_echo=$ac_try;;
6413
esac
6414
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415
$as_echo "$ac_try_echo"; } >&5
6416
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6417
  ac_status=$?
6418
  if test -s conftest.err; then
6419
    sed '10a\
6420
... rest of stderr output deleted ...
6421
         10q' conftest.err >conftest.er1
6422
    cat conftest.er1 >&5
6423
  fi
6424
  rm -f conftest.er1 conftest.err
6425
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426
  test $ac_status = 0; }
6427
done
6428
6429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6430
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6431
if ${ac_cv_c_compiler_gnu+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6432
  $as_echo_n "(cached) " >&6
6433
else
6434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435
/* end confdefs.h.  */
6436
6437
int
6438
main (void)
6439
{
6440
#ifndef __GNUC__
6441
       choke me
6442
#endif
6443
6444
  ;
6445
  return 0;
6446
}
6447
_ACEOF
6448
if ac_fn_c_try_compile "$LINENO"; then :
6449
  ac_compiler_gnu=yes
6450
else
6451
  ac_compiler_gnu=no
6452
fi
6453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454
ac_cv_c_compiler_gnu=$ac_compiler_gnu
6455
6456
fi
6457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6458
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6459
if test $ac_compiler_gnu = yes; then
6460
  GCC=yes
6461
else
6462
  GCC=
6463
fi
6464
ac_test_CFLAGS=${CFLAGS+set}
6465
ac_save_CFLAGS=$CFLAGS
6466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6467
$as_echo_n "checking whether $CC accepts -g... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6468
if ${ac_cv_prog_cc_g+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6469
  $as_echo_n "(cached) " >&6
6470
else
6471
  ac_save_c_werror_flag=$ac_c_werror_flag
6472
   ac_c_werror_flag=yes
6473
   ac_cv_prog_cc_g=no
6474
   CFLAGS="-g"
6475
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476
/* end confdefs.h.  */
6477
6478
int
6479
main (void)
6480
{
6481
6482
  ;
6483
  return 0;
6484
}
6485
_ACEOF
6486
if ac_fn_c_try_compile "$LINENO"; then :
6487
  ac_cv_prog_cc_g=yes
6488
else
6489
  CFLAGS=""
6490
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491
/* end confdefs.h.  */
6492
6493
int
6494
main (void)
6495
{
6496
6497
  ;
6498
  return 0;
6499
}
6500
_ACEOF
6501
if ac_fn_c_try_compile "$LINENO"; then :
6502
6503
else
6504
  ac_c_werror_flag=$ac_save_c_werror_flag
6505
	 CFLAGS="-g"
6506
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507
/* end confdefs.h.  */
6508
6509
int
6510
main (void)
6511
{
6512
6513
  ;
6514
  return 0;
6515
}
6516
_ACEOF
6517
if ac_fn_c_try_compile "$LINENO"; then :
6518
  ac_cv_prog_cc_g=yes
6519
fi
6520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521
fi
6522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523
fi
6524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525
   ac_c_werror_flag=$ac_save_c_werror_flag
6526
fi
6527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6528
$as_echo "$ac_cv_prog_cc_g" >&6; }
6529
if test "$ac_test_CFLAGS" = set; then
6530
  CFLAGS=$ac_save_CFLAGS
6531
elif test $ac_cv_prog_cc_g = yes; then
6532
  if test "$GCC" = yes; then
6533
    CFLAGS="-g -O2"
6534
  else
6535
    CFLAGS="-g"
6536
  fi
6537
else
6538
  if test "$GCC" = yes; then
6539
    CFLAGS="-O2"
6540
  else
6541
    CFLAGS=
6542
  fi
6543
fi
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6545
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6546
if ${ac_cv_prog_cc_c89+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6547
  $as_echo_n "(cached) " >&6
6548
else
6549
  ac_cv_prog_cc_c89=no
6550
ac_save_CC=$CC
6551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552
/* end confdefs.h.  */
6553
#include <stdarg.h>
6554
#include <stdio.h>
1.15.16 by Colin Watson
Import upstream version 2.00
6555
struct stat;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6556
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6557
struct buf { int x; };
6558
FILE * (*rcsopen) (struct buf *, struct stat *, int);
6559
static char *e (p, i)
6560
     char **p;
6561
     int i;
6562
{
6563
  return p[i];
6564
}
6565
static char *f (char * (*g) (char **, int), char **p, ...)
6566
{
6567
  char *s;
6568
  va_list v;
6569
  va_start (v,p);
6570
  s = g (p, va_arg (v,int));
6571
  va_end (v);
6572
  return s;
6573
}
6574
6575
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6576
   function prototypes and stuff, but not '\xHH' hex character constants.
6577
   These don't provoke an error unfortunately, instead are silently treated
6578
   as 'x'.  The following induces an error, until -std is added to get
6579
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6580
   array size at least.  It's necessary to write '\x00'==0 to get something
6581
   that's true only with -std.  */
6582
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6583
6584
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6585
   inside strings and character constants.  */
6586
#define FOO(x) 'x'
6587
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6588
6589
int test (int i, double x);
6590
struct s1 {int (*f) (int a);};
6591
struct s2 {int (*f) (double a);};
6592
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6593
int argc;
6594
char **argv;
6595
int
6596
main (void)
6597
{
6598
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6599
  ;
6600
  return 0;
6601
}
6602
_ACEOF
6603
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6604
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6605
do
6606
  CC="$ac_save_CC $ac_arg"
6607
  if ac_fn_c_try_compile "$LINENO"; then :
6608
  ac_cv_prog_cc_c89=$ac_arg
6609
fi
6610
rm -f core conftest.err conftest.$ac_objext
6611
  test "x$ac_cv_prog_cc_c89" != "xno" && break
6612
done
6613
rm -f conftest.$ac_ext
6614
CC=$ac_save_CC
6615
6616
fi
6617
# AC_CACHE_VAL
6618
case "x$ac_cv_prog_cc_c89" in
6619
  x)
6620
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6621
$as_echo "none needed" >&6; } ;;
6622
  xno)
6623
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6624
$as_echo "unsupported" >&6; } ;;
6625
  *)
6626
    CC="$CC $ac_cv_prog_cc_c89"
6627
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6628
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6629
esac
6630
if test "x$ac_cv_prog_cc_c89" != xno; then :
6631
6632
fi
6633
6634
ac_ext=c
6635
ac_cpp='$CPP $CPPFLAGS'
6636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6640
ac_ext=c
6641
ac_cpp='$CPP $CPPFLAGS'
6642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6646
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6647
if ${am_cv_prog_cc_c_o+:} false; then :
6648
  $as_echo_n "(cached) " >&6
6649
else
6650
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651
/* end confdefs.h.  */
6652
6653
int
6654
main (void)
6655
{
6656
6657
  ;
6658
  return 0;
6659
}
6660
_ACEOF
6661
  # Make sure it works both with $CC and with simple cc.
6662
  # Following AC_PROG_CC_C_O, we do the test twice because some
6663
  # compilers refuse to overwrite an existing .o file with -o,
6664
  # though they will create one.
6665
  am_cv_prog_cc_c_o=yes
6666
  for am_i in 1 2; do
6667
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6668
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6669
   ac_status=$?
6670
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671
   (exit $ac_status); } \
6672
         && test -f conftest2.$ac_objext; then
6673
      : OK
6674
    else
6675
      am_cv_prog_cc_c_o=no
6676
      break
6677
    fi
6678
  done
6679
  rm -f core conftest*
6680
  unset am_i
6681
fi
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6683
$as_echo "$am_cv_prog_cc_c_o" >&6; }
6684
if test "$am_cv_prog_cc_c_o" != yes; then
6685
   # Losing compiler, so override with the script.
6686
   # FIXME: It is wrong to rewrite CC.
6687
   # But if we don't then we get into trouble of one sort or another.
6688
   # A longer-term fix would be to have automake use am__CC in this case,
6689
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6690
   CC="$am_aux_dir/compile $CC"
6691
fi
6692
ac_ext=c
6693
ac_cpp='$CPP $CPPFLAGS'
6694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6699
depcc="$CC"   am_compiler_list=
6700
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6702
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6703
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6704
  $as_echo_n "(cached) " >&6
6705
else
6706
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6707
  # We make a subdir and do the tests there.  Otherwise we can end up
6708
  # making bogus files that we don't know about and never remove.  For
6709
  # instance it was reported that on HP-UX the gcc test will end up
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6710
  # making a dummy file named 'D' -- because '-MD' means "put the output
6711
  # in D".
1.15.16 by Colin Watson
Import upstream version 2.00
6712
  rm -rf conftest.dir
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6713
  mkdir conftest.dir
6714
  # Copy depcomp to subdir because otherwise we won't find it if we're
6715
  # using a relative directory.
6716
  cp "$am_depcomp" conftest.dir
6717
  cd conftest.dir
6718
  # We will build objects and dependencies in a subdirectory because
6719
  # it helps to detect inapplicable dependency modes.  For instance
6720
  # both Tru64's cc and ICC support -MD to output dependencies as a
6721
  # side effect of compilation, but ICC will put the dependencies in
6722
  # the current directory while Tru64 will put them in the object
6723
  # directory.
6724
  mkdir sub
6725
6726
  am_cv_CC_dependencies_compiler_type=none
6727
  if test "$am_compiler_list" = ""; then
6728
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6729
  fi
6730
  am__universal=false
6731
  case " $depcc " in #(
6732
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6733
     esac
6734
6735
  for depmode in $am_compiler_list; do
6736
    # Setup a source with many dependencies, because some compilers
6737
    # like to wrap large dependency lists on column 80 (with \), and
6738
    # we should not choose a depcomp mode which is confused by this.
6739
    #
6740
    # We need to recreate these files for each test, as the compiler may
6741
    # overwrite some of them when testing with obscure command lines.
6742
    # This happens at least with the AIX C compiler.
6743
    : > sub/conftest.c
6744
    for i in 1 2 3 4 5 6; do
6745
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6746
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6747
      # Solaris 10 /bin/sh.
6748
      echo '/* dummy */' > sub/conftst$i.h
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6749
    done
6750
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6751
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6752
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6753
    # mode.  It turns out that the SunPro C++ compiler does not properly
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6754
    # handle '-M -o', and we need to detect this.  Also, some Intel
6755
    # versions had trouble with output in subdirs.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6756
    am__obj=sub/conftest.${OBJEXT-o}
6757
    am__minus_obj="-o $am__obj"
6758
    case $depmode in
6759
    gcc)
6760
      # This depmode causes a compiler race in universal mode.
6761
      test "$am__universal" = false || continue
6762
      ;;
6763
    nosideeffect)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6764
      # After this tag, mechanisms are not by side-effect, so they'll
6765
      # only be used when explicitly requested.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6766
      if test "x$enable_dependency_tracking" = xyes; then
6767
	continue
6768
      else
6769
	break
6770
      fi
6771
      ;;
1.15.16 by Colin Watson
Import upstream version 2.00
6772
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
6773
      # This compiler won't grok '-c -o', but also, the minuso test has
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6774
      # not run yet.  These depmodes are late enough in the game, and
6775
      # so weak that their functioning should not be impacted.
6776
      am__obj=conftest.${OBJEXT-o}
6777
      am__minus_obj=
6778
      ;;
6779
    none) break ;;
6780
    esac
6781
    if depmode=$depmode \
6782
       source=sub/conftest.c object=$am__obj \
6783
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6784
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6785
         >/dev/null 2>conftest.err &&
6786
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6787
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6788
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6789
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6790
      # icc doesn't choke on unknown options, it will just issue warnings
6791
      # or remarks (even with -Werror).  So we grep stderr for any message
6792
      # that says an option was ignored or not supported.
6793
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6794
      #   icc: Command line warning: ignoring option '-M'; no argument required
6795
      # The diagnosis changed in icc 8.0:
6796
      #   icc: Command line remark: option '-MP' not supported
6797
      if (grep 'ignoring option' conftest.err ||
6798
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6799
        am_cv_CC_dependencies_compiler_type=$depmode
6800
        break
6801
      fi
6802
    fi
6803
  done
6804
6805
  cd ..
6806
  rm -rf conftest.dir
6807
else
6808
  am_cv_CC_dependencies_compiler_type=none
6809
fi
6810
6811
fi
6812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6813
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6814
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6815
6816
 if
6817
  test "x$enable_dependency_tracking" != xno \
6818
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6819
  am__fastdepCC_TRUE=
6820
  am__fastdepCC_FALSE='#'
6821
else
6822
  am__fastdepCC_TRUE='#'
6823
  am__fastdepCC_FALSE=
6824
fi
6825
6826
6827
ac_ext=c
6828
ac_cpp='$CPP $CPPFLAGS'
6829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6833
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6834
# On Suns, sometimes $CPP names a directory.
6835
if test -n "$CPP" && test -d "$CPP"; then
6836
  CPP=
6837
fi
6838
if test -z "$CPP"; then
1.15.15 by Colin Watson
Import upstream version 1.99
6839
  if ${ac_cv_prog_CPP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6840
  $as_echo_n "(cached) " >&6
6841
else
6842
      # Double quotes because CPP needs to be expanded
6843
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6844
    do
6845
      ac_preproc_ok=false
6846
for ac_c_preproc_warn_flag in '' yes
6847
do
6848
  # Use a header file that comes with gcc, so configuring glibc
6849
  # with a fresh cross-compiler works.
6850
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851
  # <limits.h> exists even on freestanding compilers.
6852
  # On the NeXT, cc -E runs the code through the compiler's parser,
6853
  # not just through cpp. "Syntax error" is here to catch this case.
6854
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855
/* end confdefs.h.  */
6856
#ifdef __STDC__
6857
# include <limits.h>
6858
#else
6859
# include <assert.h>
6860
#endif
6861
		     Syntax error
6862
_ACEOF
6863
if ac_fn_c_try_cpp "$LINENO"; then :
6864
6865
else
6866
  # Broken: fails on valid input.
6867
continue
6868
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6869
rm -f conftest.err conftest.i conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6870
6871
  # OK, works on sane cases.  Now check whether nonexistent headers
6872
  # can be detected and how.
6873
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874
/* end confdefs.h.  */
6875
#include <ac_nonexistent.h>
6876
_ACEOF
6877
if ac_fn_c_try_cpp "$LINENO"; then :
6878
  # Broken: success on invalid input.
6879
continue
6880
else
6881
  # Passes both tests.
6882
ac_preproc_ok=:
6883
break
6884
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6885
rm -f conftest.err conftest.i conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6886
6887
done
6888
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6889
rm -f conftest.i conftest.err conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6890
if $ac_preproc_ok; then :
6891
  break
6892
fi
6893
6894
    done
6895
    ac_cv_prog_CPP=$CPP
6896
6897
fi
6898
  CPP=$ac_cv_prog_CPP
6899
else
6900
  ac_cv_prog_CPP=$CPP
6901
fi
6902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6903
$as_echo "$CPP" >&6; }
6904
ac_preproc_ok=false
6905
for ac_c_preproc_warn_flag in '' yes
6906
do
6907
  # Use a header file that comes with gcc, so configuring glibc
6908
  # with a fresh cross-compiler works.
6909
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910
  # <limits.h> exists even on freestanding compilers.
6911
  # On the NeXT, cc -E runs the code through the compiler's parser,
6912
  # not just through cpp. "Syntax error" is here to catch this case.
6913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914
/* end confdefs.h.  */
6915
#ifdef __STDC__
6916
# include <limits.h>
6917
#else
6918
# include <assert.h>
6919
#endif
6920
		     Syntax error
6921
_ACEOF
6922
if ac_fn_c_try_cpp "$LINENO"; then :
6923
6924
else
6925
  # Broken: fails on valid input.
6926
continue
6927
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6928
rm -f conftest.err conftest.i conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6929
6930
  # OK, works on sane cases.  Now check whether nonexistent headers
6931
  # can be detected and how.
6932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933
/* end confdefs.h.  */
6934
#include <ac_nonexistent.h>
6935
_ACEOF
6936
if ac_fn_c_try_cpp "$LINENO"; then :
6937
  # Broken: success on invalid input.
6938
continue
6939
else
6940
  # Passes both tests.
6941
ac_preproc_ok=:
6942
break
6943
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6944
rm -f conftest.err conftest.i conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6945
6946
done
6947
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6948
rm -f conftest.i conftest.err conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6949
if $ac_preproc_ok; then :
6950
6951
else
6952
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6953
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
6954
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.15.15 by Colin Watson
Import upstream version 1.99
6955
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6956
fi
6957
6958
ac_ext=c
6959
ac_cpp='$CPP $CPPFLAGS'
6960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6963
6964
6965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6966
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
6967
if ${ac_cv_path_GREP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6968
  $as_echo_n "(cached) " >&6
6969
else
6970
  if test -z "$GREP"; then
6971
  ac_path_GREP_found=false
6972
  # Loop through the user's path and test for each of PROGNAME-LIST
6973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6975
do
6976
  IFS=$as_save_IFS
6977
  test -z "$as_dir" && as_dir=.
6978
    for ac_prog in grep ggrep; do
6979
    for ac_exec_ext in '' $ac_executable_extensions; do
6980
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.15.16 by Colin Watson
Import upstream version 2.00
6981
      as_fn_executable_p "$ac_path_GREP" || continue
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
6982
# Check for GNU ac_path_GREP and select it if it is found.
6983
  # Check for GNU $ac_path_GREP
6984
case `"$ac_path_GREP" --version 2>&1` in
6985
*GNU*)
6986
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6987
*)
6988
  ac_count=0
6989
  $as_echo_n 0123456789 >"conftest.in"
6990
  while :
6991
  do
6992
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6993
    mv "conftest.tmp" "conftest.in"
6994
    cp "conftest.in" "conftest.nl"
6995
    $as_echo 'GREP' >> "conftest.nl"
6996
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6997
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6998
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6999
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7000
      # Best one so far, save it but keep looking for a better one
7001
      ac_cv_path_GREP="$ac_path_GREP"
7002
      ac_path_GREP_max=$ac_count
7003
    fi
7004
    # 10*(2^10) chars as input seems more than enough
7005
    test $ac_count -gt 10 && break
7006
  done
7007
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7008
esac
7009
7010
      $ac_path_GREP_found && break 3
7011
    done
7012
  done
7013
  done
7014
IFS=$as_save_IFS
7015
  if test -z "$ac_cv_path_GREP"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
7016
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7017
  fi
7018
else
7019
  ac_cv_path_GREP=$GREP
7020
fi
7021
7022
fi
7023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7024
$as_echo "$ac_cv_path_GREP" >&6; }
7025
 GREP="$ac_cv_path_GREP"
7026
7027
7028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7029
$as_echo_n "checking for egrep... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
7030
if ${ac_cv_path_EGREP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7031
  $as_echo_n "(cached) " >&6
7032
else
7033
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7034
   then ac_cv_path_EGREP="$GREP -E"
7035
   else
7036
     if test -z "$EGREP"; then
7037
  ac_path_EGREP_found=false
7038
  # Loop through the user's path and test for each of PROGNAME-LIST
7039
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7041
do
7042
  IFS=$as_save_IFS
7043
  test -z "$as_dir" && as_dir=.
7044
    for ac_prog in egrep; do
7045
    for ac_exec_ext in '' $ac_executable_extensions; do
7046
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.15.16 by Colin Watson
Import upstream version 2.00
7047
      as_fn_executable_p "$ac_path_EGREP" || continue
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7048
# Check for GNU ac_path_EGREP and select it if it is found.
7049
  # Check for GNU $ac_path_EGREP
7050
case `"$ac_path_EGREP" --version 2>&1` in
7051
*GNU*)
7052
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7053
*)
7054
  ac_count=0
7055
  $as_echo_n 0123456789 >"conftest.in"
7056
  while :
7057
  do
7058
    cat "conftest.in" "conftest.in" >"conftest.tmp"
7059
    mv "conftest.tmp" "conftest.in"
7060
    cp "conftest.in" "conftest.nl"
7061
    $as_echo 'EGREP' >> "conftest.nl"
7062
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7063
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7064
    as_fn_arith $ac_count + 1 && ac_count=$as_val
7065
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7066
      # Best one so far, save it but keep looking for a better one
7067
      ac_cv_path_EGREP="$ac_path_EGREP"
7068
      ac_path_EGREP_max=$ac_count
7069
    fi
7070
    # 10*(2^10) chars as input seems more than enough
7071
    test $ac_count -gt 10 && break
7072
  done
7073
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7074
esac
7075
7076
      $ac_path_EGREP_found && break 3
7077
    done
7078
  done
7079
  done
7080
IFS=$as_save_IFS
7081
  if test -z "$ac_cv_path_EGREP"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
7082
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7083
  fi
7084
else
7085
  ac_cv_path_EGREP=$EGREP
7086
fi
7087
7088
   fi
7089
fi
7090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7091
$as_echo "$ac_cv_path_EGREP" >&6; }
7092
 EGREP="$ac_cv_path_EGREP"
7093
7094
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7095
7096
7097
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7098
$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7099
if ${gl_cv_c_amsterdam_compiler+:} false; then :
7100
  $as_echo_n "(cached) " >&6
7101
else
7102
7103
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104
/* end confdefs.h.  */
7105
7106
#ifdef __ACK__
7107
Amsterdam
7108
#endif
7109
7110
_ACEOF
7111
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112
  $EGREP "Amsterdam" >/dev/null 2>&1; then :
7113
  gl_cv_c_amsterdam_compiler=yes
7114
else
7115
  gl_cv_c_amsterdam_compiler=no
7116
fi
7117
rm -f conftest*
7118
7119
7120
fi
7121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7122
$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7123
  if test -z "$AR"; then
7124
    if test $gl_cv_c_amsterdam_compiler = yes; then
7125
      AR='cc -c.a'
7126
      if test -z "$ARFLAGS"; then
7127
        ARFLAGS='-o'
7128
      fi
7129
    else
7130
                  if test -n "$ac_tool_prefix"; then
7131
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7132
set dummy ${ac_tool_prefix}ar; ac_word=$2
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134
$as_echo_n "checking for $ac_word... " >&6; }
7135
if ${ac_cv_prog_AR+:} false; then :
7136
  $as_echo_n "(cached) " >&6
7137
else
7138
  if test -n "$AR"; then
7139
  ac_cv_prog_AR="$AR" # Let the user override the test.
7140
else
7141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142
for as_dir in $PATH
7143
do
7144
  IFS=$as_save_IFS
7145
  test -z "$as_dir" && as_dir=.
7146
    for ac_exec_ext in '' $ac_executable_extensions; do
7147
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7149
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150
    break 2
7151
  fi
7152
done
7153
  done
7154
IFS=$as_save_IFS
7155
7156
fi
7157
fi
7158
AR=$ac_cv_prog_AR
7159
if test -n "$AR"; then
7160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7161
$as_echo "$AR" >&6; }
7162
else
7163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164
$as_echo "no" >&6; }
7165
fi
7166
7167
7168
fi
7169
if test -z "$ac_cv_prog_AR"; then
7170
  ac_ct_AR=$AR
7171
  # Extract the first word of "ar", so it can be a program name with args.
7172
set dummy ar; ac_word=$2
7173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174
$as_echo_n "checking for $ac_word... " >&6; }
7175
if ${ac_cv_prog_ac_ct_AR+:} false; then :
7176
  $as_echo_n "(cached) " >&6
7177
else
7178
  if test -n "$ac_ct_AR"; then
7179
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7180
else
7181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182
for as_dir in $PATH
7183
do
7184
  IFS=$as_save_IFS
7185
  test -z "$as_dir" && as_dir=.
7186
    for ac_exec_ext in '' $ac_executable_extensions; do
7187
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188
    ac_cv_prog_ac_ct_AR="ar"
7189
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190
    break 2
7191
  fi
7192
done
7193
  done
7194
IFS=$as_save_IFS
7195
7196
fi
7197
fi
7198
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7199
if test -n "$ac_ct_AR"; then
7200
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7201
$as_echo "$ac_ct_AR" >&6; }
7202
else
7203
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204
$as_echo "no" >&6; }
7205
fi
7206
7207
  if test "x$ac_ct_AR" = x; then
7208
    AR="ar"
7209
  else
7210
    case $cross_compiling:$ac_tool_warned in
7211
yes:)
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214
ac_tool_warned=yes ;;
7215
esac
7216
    AR=$ac_ct_AR
7217
  fi
7218
else
7219
  AR="$ac_cv_prog_AR"
7220
fi
7221
7222
      if test -z "$ARFLAGS"; then
7223
        ARFLAGS='cru'
7224
      fi
7225
    fi
7226
  else
7227
    if test -z "$ARFLAGS"; then
7228
      ARFLAGS='cru'
7229
    fi
7230
  fi
7231
7232
7233
  if test -z "$RANLIB"; then
7234
    if test $gl_cv_c_amsterdam_compiler = yes; then
7235
      RANLIB=':'
7236
    else
7237
            if test -n "$ac_tool_prefix"; then
7238
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7239
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241
$as_echo_n "checking for $ac_word... " >&6; }
7242
if ${ac_cv_prog_RANLIB+:} false; then :
7243
  $as_echo_n "(cached) " >&6
7244
else
7245
  if test -n "$RANLIB"; then
7246
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7247
else
7248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249
for as_dir in $PATH
7250
do
7251
  IFS=$as_save_IFS
7252
  test -z "$as_dir" && as_dir=.
7253
    for ac_exec_ext in '' $ac_executable_extensions; do
7254
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7256
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257
    break 2
7258
  fi
7259
done
7260
  done
7261
IFS=$as_save_IFS
7262
7263
fi
7264
fi
7265
RANLIB=$ac_cv_prog_RANLIB
7266
if test -n "$RANLIB"; then
7267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7268
$as_echo "$RANLIB" >&6; }
7269
else
7270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271
$as_echo "no" >&6; }
7272
fi
7273
7274
7275
fi
7276
if test -z "$ac_cv_prog_RANLIB"; then
7277
  ac_ct_RANLIB=$RANLIB
7278
  # Extract the first word of "ranlib", so it can be a program name with args.
7279
set dummy ranlib; ac_word=$2
7280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281
$as_echo_n "checking for $ac_word... " >&6; }
7282
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7283
  $as_echo_n "(cached) " >&6
7284
else
7285
  if test -n "$ac_ct_RANLIB"; then
7286
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7287
else
7288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289
for as_dir in $PATH
7290
do
7291
  IFS=$as_save_IFS
7292
  test -z "$as_dir" && as_dir=.
7293
    for ac_exec_ext in '' $ac_executable_extensions; do
7294
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7296
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297
    break 2
7298
  fi
7299
done
7300
  done
7301
IFS=$as_save_IFS
7302
7303
fi
7304
fi
7305
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7306
if test -n "$ac_ct_RANLIB"; then
7307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7308
$as_echo "$ac_ct_RANLIB" >&6; }
7309
else
7310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311
$as_echo "no" >&6; }
7312
fi
7313
7314
  if test "x$ac_ct_RANLIB" = x; then
7315
    RANLIB=":"
7316
  else
7317
    case $cross_compiling:$ac_tool_warned in
7318
yes:)
7319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321
ac_tool_warned=yes ;;
7322
esac
7323
    RANLIB=$ac_ct_RANLIB
7324
  fi
7325
else
7326
  RANLIB="$ac_cv_prog_RANLIB"
7327
fi
7328
7329
    fi
7330
  fi
7331
7332
7333
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7335
$as_echo_n "checking for ANSI C header files... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
7336
if ${ac_cv_header_stdc+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7337
  $as_echo_n "(cached) " >&6
7338
else
7339
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340
/* end confdefs.h.  */
7341
#include <stdlib.h>
7342
#include <stdarg.h>
7343
#include <string.h>
7344
#include <float.h>
7345
7346
int
7347
main (void)
7348
{
7349
7350
  ;
7351
  return 0;
7352
}
7353
_ACEOF
7354
if ac_fn_c_try_compile "$LINENO"; then :
7355
  ac_cv_header_stdc=yes
7356
else
7357
  ac_cv_header_stdc=no
7358
fi
7359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360
7361
if test $ac_cv_header_stdc = yes; then
7362
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7363
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364
/* end confdefs.h.  */
7365
#include <string.h>
7366
7367
_ACEOF
7368
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369
  $EGREP "memchr" >/dev/null 2>&1; then :
7370
7371
else
7372
  ac_cv_header_stdc=no
7373
fi
7374
rm -f conftest*
7375
7376
fi
7377
7378
if test $ac_cv_header_stdc = yes; then
7379
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7380
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381
/* end confdefs.h.  */
7382
#include <stdlib.h>
7383
7384
_ACEOF
7385
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7386
  $EGREP "free" >/dev/null 2>&1; then :
7387
7388
else
7389
  ac_cv_header_stdc=no
7390
fi
7391
rm -f conftest*
7392
7393
fi
7394
7395
if test $ac_cv_header_stdc = yes; then
7396
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7397
  if test "$cross_compiling" = yes; then :
7398
  :
7399
else
7400
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401
/* end confdefs.h.  */
7402
#include <ctype.h>
7403
#include <stdlib.h>
7404
#if ((' ' & 0x0FF) == 0x020)
7405
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7406
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7407
#else
7408
# define ISLOWER(c) \
7409
		   (('a' <= (c) && (c) <= 'i') \
7410
		     || ('j' <= (c) && (c) <= 'r') \
7411
		     || ('s' <= (c) && (c) <= 'z'))
7412
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7413
#endif
7414
7415
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7416
int
7417
main ()
7418
{
7419
  int i;
7420
  for (i = 0; i < 256; i++)
7421
    if (XOR (islower (i), ISLOWER (i))
7422
	|| toupper (i) != TOUPPER (i))
7423
      return 2;
7424
  return 0;
7425
}
7426
_ACEOF
7427
if ac_fn_c_try_run "$LINENO"; then :
7428
7429
else
7430
  ac_cv_header_stdc=no
7431
fi
7432
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7433
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7434
fi
7435
7436
fi
7437
fi
7438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7439
$as_echo "$ac_cv_header_stdc" >&6; }
7440
if test $ac_cv_header_stdc = yes; then
7441
7442
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7443
7444
fi
7445
7446
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7447
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7448
		  inttypes.h stdint.h unistd.h
7449
do :
7450
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7452
"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
7453
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7454
  cat >>confdefs.h <<_ACEOF
7455
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456
_ACEOF
7457
7458
fi
7459
7460
done
7461
7462
7463
7464
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
7465
if test "x$ac_cv_header_minix_config_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7466
  MINIX=yes
7467
else
7468
  MINIX=
7469
fi
7470
7471
7472
  if test "$MINIX" = yes; then
7473
7474
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7475
7476
7477
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7478
7479
7480
$as_echo "#define _MINIX 1" >>confdefs.h
7481
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7482
7483
$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7484
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7485
  fi
7486
7487
7488
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7489
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
7490
if ${ac_cv_safe_to_define___extensions__+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7491
  $as_echo_n "(cached) " >&6
7492
else
7493
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494
/* end confdefs.h.  */
7495
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7496
#         define __EXTENSIONS__ 1
7497
          $ac_includes_default
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7498
int
7499
main (void)
7500
{
7501
7502
  ;
7503
  return 0;
7504
}
7505
_ACEOF
7506
if ac_fn_c_try_compile "$LINENO"; then :
7507
  ac_cv_safe_to_define___extensions__=yes
7508
else
7509
  ac_cv_safe_to_define___extensions__=no
7510
fi
7511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512
fi
7513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7514
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7515
  test $ac_cv_safe_to_define___extensions__ = yes &&
7516
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7517
7518
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7519
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7520
  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7521
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7522
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7523
7524
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7525
7526
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7527
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7528
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7529
$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7530
if ${ac_cv_should_define__xopen_source+:} false; then :
7531
  $as_echo_n "(cached) " >&6
7532
else
7533
  ac_cv_should_define__xopen_source=no
7534
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535
/* end confdefs.h.  */
7536
7537
          #include <wchar.h>
7538
          mbstate_t x;
7539
int
7540
main (void)
7541
{
7542
7543
  ;
7544
  return 0;
7545
}
7546
_ACEOF
7547
if ac_fn_c_try_compile "$LINENO"; then :
7548
7549
else
7550
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551
/* end confdefs.h.  */
7552
7553
             #define _XOPEN_SOURCE 500
7554
             #include <wchar.h>
7555
             mbstate_t x;
7556
int
7557
main (void)
7558
{
7559
7560
  ;
7561
  return 0;
7562
}
7563
_ACEOF
7564
if ac_fn_c_try_compile "$LINENO"; then :
7565
  ac_cv_should_define__xopen_source=yes
7566
fi
7567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568
fi
7569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570
fi
7571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7572
$as_echo "$ac_cv_should_define__xopen_source" >&6; }
7573
  test $ac_cv_should_define__xopen_source = yes &&
7574
    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7575
7576
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
7577
7578
7579
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7580
7581
7582
7583
7584
7585
7586
  # Code from module alloca:
7587
  # Code from module alloca-opt:
7588
  # Code from module argp:
7589
  # Code from module btowc:
7590
  # Code from module configmake:
7591
  # Code from module dirname-lgpl:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7592
  # Code from module dosname:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7593
  # Code from module double-slash-root:
7594
  # Code from module errno:
7595
  # Code from module error:
7596
  # Code from module extensions:
7597
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7598
  # Code from module extern-inline:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7599
  # Code from module float:
7600
  # Code from module fnmatch:
7601
  # Code from module getdelim:
7602
  # Code from module getline:
7603
  # Code from module getopt-gnu:
7604
  # Code from module getopt-posix:
7605
  # Code from module gettext:
7606
  # Code from module gettext-h:
7607
  # Code from module havelib:
7608
  # Code from module include_next:
7609
  # Code from module intprops:
7610
  # Code from module langinfo:
7611
  # Code from module localcharset:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7612
  # Code from module locale:
7613
  # Code from module localeconv:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7614
  # Code from module malloc-gnu:
7615
  # Code from module malloc-posix:
7616
  # Code from module mbrtowc:
7617
  # Code from module mbsinit:
7618
  # Code from module mbsrtowcs:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7619
  # Code from module mbswidth:
7620
  # Code from module mbtowc:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7621
  # Code from module memchr:
7622
  # Code from module mempcpy:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7623
  # Code from module msvc-inval:
7624
  # Code from module msvc-nothrow:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7625
  # Code from module multiarch:
7626
  # Code from module nl_langinfo:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7627
  # Code from module nocrash:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7628
  # Code from module progname:
7629
  # Code from module rawmemchr:
7630
  # Code from module realloc-posix:
7631
  # Code from module regex:
7632
  # Code from module size_max:
7633
  # Code from module sleep:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7634
  # Code from module snippet/_Noreturn:
7635
  # Code from module snippet/arg-nonnull:
7636
  # Code from module snippet/c++defs:
7637
  # Code from module snippet/warn-on-use:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7638
  # Code from module ssize_t:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7639
  # Code from module stdalign:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7640
  # Code from module stdbool:
7641
  # Code from module stddef:
7642
  # Code from module stdint:
7643
  # Code from module stdio:
7644
  # Code from module stdlib:
7645
  # Code from module strcase:
7646
  # Code from module strchrnul:
7647
  # Code from module streq:
7648
  # Code from module strerror:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7649
  # Code from module strerror-override:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7650
  # Code from module string:
7651
  # Code from module strings:
7652
  # Code from module strndup:
7653
  # Code from module strnlen:
7654
  # Code from module strnlen1:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7655
  # Code from module sys_types:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7656
  # Code from module sysexits:
7657
  # Code from module unistd:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7658
  # Code from module unitypes:
7659
  # Code from module uniwidth/base:
7660
  # Code from module uniwidth/width:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7661
  # Code from module vasnprintf:
7662
  # Code from module verify:
7663
  # Code from module vsnprintf:
7664
  # Code from module wchar:
7665
  # Code from module wcrtomb:
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7666
  # Code from module wctype-h:
7667
  # Code from module wcwidth:
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7668
  # Code from module xsize:
7669
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7670
ac_ext=cpp
7671
ac_cpp='$CXXCPP $CPPFLAGS'
7672
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7675
if test -z "$CXX"; then
7676
  if test -n "$CCC"; then
7677
    CXX=$CCC
7678
  else
7679
    if test -n "$ac_tool_prefix"; then
7680
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7681
  do
7682
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7683
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685
$as_echo_n "checking for $ac_word... " >&6; }
7686
if ${ac_cv_prog_CXX+:} false; then :
7687
  $as_echo_n "(cached) " >&6
7688
else
7689
  if test -n "$CXX"; then
7690
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7691
else
7692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693
for as_dir in $PATH
7694
do
7695
  IFS=$as_save_IFS
7696
  test -z "$as_dir" && as_dir=.
7697
    for ac_exec_ext in '' $ac_executable_extensions; do
7698
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7700
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701
    break 2
7702
  fi
7703
done
7704
  done
7705
IFS=$as_save_IFS
7706
7707
fi
7708
fi
7709
CXX=$ac_cv_prog_CXX
7710
if test -n "$CXX"; then
7711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7712
$as_echo "$CXX" >&6; }
7713
else
7714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715
$as_echo "no" >&6; }
7716
fi
7717
7718
7719
    test -n "$CXX" && break
7720
  done
7721
fi
7722
if test -z "$CXX"; then
7723
  ac_ct_CXX=$CXX
7724
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7725
do
7726
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7727
set dummy $ac_prog; ac_word=$2
7728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729
$as_echo_n "checking for $ac_word... " >&6; }
7730
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7731
  $as_echo_n "(cached) " >&6
7732
else
7733
  if test -n "$ac_ct_CXX"; then
7734
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7735
else
7736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737
for as_dir in $PATH
7738
do
7739
  IFS=$as_save_IFS
7740
  test -z "$as_dir" && as_dir=.
7741
    for ac_exec_ext in '' $ac_executable_extensions; do
7742
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7744
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745
    break 2
7746
  fi
7747
done
7748
  done
7749
IFS=$as_save_IFS
7750
7751
fi
7752
fi
7753
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7754
if test -n "$ac_ct_CXX"; then
7755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7756
$as_echo "$ac_ct_CXX" >&6; }
7757
else
7758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759
$as_echo "no" >&6; }
7760
fi
7761
7762
7763
  test -n "$ac_ct_CXX" && break
7764
done
7765
7766
  if test "x$ac_ct_CXX" = x; then
7767
    CXX="g++"
7768
  else
7769
    case $cross_compiling:$ac_tool_warned in
7770
yes:)
7771
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773
ac_tool_warned=yes ;;
7774
esac
7775
    CXX=$ac_ct_CXX
7776
  fi
7777
fi
7778
7779
  fi
7780
fi
7781
# Provide some information about the compiler.
7782
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7783
set X $ac_compile
7784
ac_compiler=$2
7785
for ac_option in --version -v -V -qversion; do
7786
  { { ac_try="$ac_compiler $ac_option >&5"
7787
case "(($ac_try" in
7788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789
  *) ac_try_echo=$ac_try;;
7790
esac
7791
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7792
$as_echo "$ac_try_echo"; } >&5
7793
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7794
  ac_status=$?
7795
  if test -s conftest.err; then
7796
    sed '10a\
7797
... rest of stderr output deleted ...
7798
         10q' conftest.err >conftest.er1
7799
    cat conftest.er1 >&5
7800
  fi
7801
  rm -f conftest.er1 conftest.err
7802
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803
  test $ac_status = 0; }
7804
done
7805
7806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7807
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7808
if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7809
  $as_echo_n "(cached) " >&6
7810
else
7811
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812
/* end confdefs.h.  */
7813
7814
int
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7815
main ()
7816
{
7817
#ifndef __GNUC__
7818
       choke me
7819
#endif
7820
7821
  ;
7822
  return 0;
7823
}
7824
_ACEOF
7825
if ac_fn_cxx_try_compile "$LINENO"; then :
7826
  ac_compiler_gnu=yes
7827
else
7828
  ac_compiler_gnu=no
7829
fi
7830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7832
7833
fi
7834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7835
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7836
if test $ac_compiler_gnu = yes; then
7837
  GXX=yes
7838
else
7839
  GXX=
7840
fi
7841
ac_test_CXXFLAGS=${CXXFLAGS+set}
7842
ac_save_CXXFLAGS=$CXXFLAGS
7843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7844
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7845
if ${ac_cv_prog_cxx_g+:} false; then :
7846
  $as_echo_n "(cached) " >&6
7847
else
7848
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7849
   ac_cxx_werror_flag=yes
7850
   ac_cv_prog_cxx_g=no
7851
   CXXFLAGS="-g"
7852
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853
/* end confdefs.h.  */
7854
7855
int
7856
main ()
7857
{
7858
7859
  ;
7860
  return 0;
7861
}
7862
_ACEOF
7863
if ac_fn_cxx_try_compile "$LINENO"; then :
7864
  ac_cv_prog_cxx_g=yes
7865
else
7866
  CXXFLAGS=""
7867
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868
/* end confdefs.h.  */
7869
7870
int
7871
main ()
7872
{
7873
7874
  ;
7875
  return 0;
7876
}
7877
_ACEOF
7878
if ac_fn_cxx_try_compile "$LINENO"; then :
7879
7880
else
7881
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7882
	 CXXFLAGS="-g"
7883
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884
/* end confdefs.h.  */
7885
7886
int
7887
main ()
7888
{
7889
7890
  ;
7891
  return 0;
7892
}
7893
_ACEOF
7894
if ac_fn_cxx_try_compile "$LINENO"; then :
7895
  ac_cv_prog_cxx_g=yes
7896
fi
7897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898
fi
7899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900
fi
7901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7903
fi
7904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7905
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7906
if test "$ac_test_CXXFLAGS" = set; then
7907
  CXXFLAGS=$ac_save_CXXFLAGS
7908
elif test $ac_cv_prog_cxx_g = yes; then
7909
  if test "$GXX" = yes; then
7910
    CXXFLAGS="-g -O2"
7911
  else
7912
    CXXFLAGS="-g"
7913
  fi
7914
else
7915
  if test "$GXX" = yes; then
7916
    CXXFLAGS="-O2"
7917
  else
7918
    CXXFLAGS=
7919
  fi
7920
fi
7921
ac_ext=c
7922
ac_cpp='$CPP $CPPFLAGS'
7923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
depcc="$CXX"  am_compiler_list=
7928
7929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7930
$as_echo_n "checking dependency style of $depcc... " >&6; }
7931
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7932
  $as_echo_n "(cached) " >&6
7933
else
7934
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7935
  # We make a subdir and do the tests there.  Otherwise we can end up
7936
  # making bogus files that we don't know about and never remove.  For
7937
  # instance it was reported that on HP-UX the gcc test will end up
7938
  # making a dummy file named 'D' -- because '-MD' means "put the output
7939
  # in D".
7940
  rm -rf conftest.dir
7941
  mkdir conftest.dir
7942
  # Copy depcomp to subdir because otherwise we won't find it if we're
7943
  # using a relative directory.
7944
  cp "$am_depcomp" conftest.dir
7945
  cd conftest.dir
7946
  # We will build objects and dependencies in a subdirectory because
7947
  # it helps to detect inapplicable dependency modes.  For instance
7948
  # both Tru64's cc and ICC support -MD to output dependencies as a
7949
  # side effect of compilation, but ICC will put the dependencies in
7950
  # the current directory while Tru64 will put them in the object
7951
  # directory.
7952
  mkdir sub
7953
7954
  am_cv_CXX_dependencies_compiler_type=none
7955
  if test "$am_compiler_list" = ""; then
7956
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7957
  fi
7958
  am__universal=false
7959
  case " $depcc " in #(
7960
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7961
     esac
7962
7963
  for depmode in $am_compiler_list; do
7964
    # Setup a source with many dependencies, because some compilers
7965
    # like to wrap large dependency lists on column 80 (with \), and
7966
    # we should not choose a depcomp mode which is confused by this.
7967
    #
7968
    # We need to recreate these files for each test, as the compiler may
7969
    # overwrite some of them when testing with obscure command lines.
7970
    # This happens at least with the AIX C compiler.
7971
    : > sub/conftest.c
7972
    for i in 1 2 3 4 5 6; do
7973
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7974
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7975
      # Solaris 10 /bin/sh.
7976
      echo '/* dummy */' > sub/conftst$i.h
7977
    done
7978
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7979
7980
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7981
    # mode.  It turns out that the SunPro C++ compiler does not properly
7982
    # handle '-M -o', and we need to detect this.  Also, some Intel
7983
    # versions had trouble with output in subdirs.
7984
    am__obj=sub/conftest.${OBJEXT-o}
7985
    am__minus_obj="-o $am__obj"
7986
    case $depmode in
7987
    gcc)
7988
      # This depmode causes a compiler race in universal mode.
7989
      test "$am__universal" = false || continue
7990
      ;;
7991
    nosideeffect)
7992
      # After this tag, mechanisms are not by side-effect, so they'll
7993
      # only be used when explicitly requested.
7994
      if test "x$enable_dependency_tracking" = xyes; then
7995
	continue
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
7996
      else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
7997
	break
7998
      fi
7999
      ;;
8000
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8001
      # This compiler won't grok '-c -o', but also, the minuso test has
8002
      # not run yet.  These depmodes are late enough in the game, and
8003
      # so weak that their functioning should not be impacted.
8004
      am__obj=conftest.${OBJEXT-o}
8005
      am__minus_obj=
8006
      ;;
8007
    none) break ;;
8008
    esac
8009
    if depmode=$depmode \
8010
       source=sub/conftest.c object=$am__obj \
8011
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8012
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8013
         >/dev/null 2>conftest.err &&
8014
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8015
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8016
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8017
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8018
      # icc doesn't choke on unknown options, it will just issue warnings
8019
      # or remarks (even with -Werror).  So we grep stderr for any message
8020
      # that says an option was ignored or not supported.
8021
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8022
      #   icc: Command line warning: ignoring option '-M'; no argument required
8023
      # The diagnosis changed in icc 8.0:
8024
      #   icc: Command line remark: option '-MP' not supported
8025
      if (grep 'ignoring option' conftest.err ||
8026
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8027
        am_cv_CXX_dependencies_compiler_type=$depmode
8028
        break
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8029
      fi
8030
    fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8031
  done
8032
8033
  cd ..
8034
  rm -rf conftest.dir
8035
else
8036
  am_cv_CXX_dependencies_compiler_type=none
8037
fi
8038
8039
fi
8040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8041
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8042
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8043
8044
 if
8045
  test "x$enable_dependency_tracking" != xno \
8046
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8047
  am__fastdepCXX_TRUE=
8048
  am__fastdepCXX_FALSE='#'
8049
else
8050
  am__fastdepCXX_TRUE='#'
8051
  am__fastdepCXX_FALSE=
8052
fi
8053
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8054
8055
8056
# By default we simply use the C compiler to build assembly code.
8057
8058
test "${CCAS+set}" = set || CCAS=$CC
8059
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8060
8061
8062
8063
depcc="$CCAS"   am_compiler_list=
8064
8065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8066
$as_echo_n "checking dependency style of $depcc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8067
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8068
  $as_echo_n "(cached) " >&6
8069
else
8070
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8071
  # We make a subdir and do the tests there.  Otherwise we can end up
8072
  # making bogus files that we don't know about and never remove.  For
8073
  # instance it was reported that on HP-UX the gcc test will end up
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8074
  # making a dummy file named 'D' -- because '-MD' means "put the output
8075
  # in D".
1.15.16 by Colin Watson
Import upstream version 2.00
8076
  rm -rf conftest.dir
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8077
  mkdir conftest.dir
8078
  # Copy depcomp to subdir because otherwise we won't find it if we're
8079
  # using a relative directory.
8080
  cp "$am_depcomp" conftest.dir
8081
  cd conftest.dir
8082
  # We will build objects and dependencies in a subdirectory because
8083
  # it helps to detect inapplicable dependency modes.  For instance
8084
  # both Tru64's cc and ICC support -MD to output dependencies as a
8085
  # side effect of compilation, but ICC will put the dependencies in
8086
  # the current directory while Tru64 will put them in the object
8087
  # directory.
8088
  mkdir sub
8089
8090
  am_cv_CCAS_dependencies_compiler_type=none
8091
  if test "$am_compiler_list" = ""; then
8092
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8093
  fi
8094
  am__universal=false
8095
8096
8097
  for depmode in $am_compiler_list; do
8098
    # Setup a source with many dependencies, because some compilers
8099
    # like to wrap large dependency lists on column 80 (with \), and
8100
    # we should not choose a depcomp mode which is confused by this.
8101
    #
8102
    # We need to recreate these files for each test, as the compiler may
8103
    # overwrite some of them when testing with obscure command lines.
8104
    # This happens at least with the AIX C compiler.
8105
    : > sub/conftest.c
8106
    for i in 1 2 3 4 5 6; do
8107
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8108
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8109
      # Solaris 10 /bin/sh.
8110
      echo '/* dummy */' > sub/conftst$i.h
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8111
    done
8112
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8113
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8114
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8115
    # mode.  It turns out that the SunPro C++ compiler does not properly
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8116
    # handle '-M -o', and we need to detect this.  Also, some Intel
8117
    # versions had trouble with output in subdirs.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8118
    am__obj=sub/conftest.${OBJEXT-o}
8119
    am__minus_obj="-o $am__obj"
8120
    case $depmode in
8121
    gcc)
8122
      # This depmode causes a compiler race in universal mode.
8123
      test "$am__universal" = false || continue
8124
      ;;
8125
    nosideeffect)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8126
      # After this tag, mechanisms are not by side-effect, so they'll
8127
      # only be used when explicitly requested.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8128
      if test "x$enable_dependency_tracking" = xyes; then
8129
	continue
8130
      else
8131
	break
8132
      fi
8133
      ;;
1.15.16 by Colin Watson
Import upstream version 2.00
8134
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8135
      # This compiler won't grok '-c -o', but also, the minuso test has
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8136
      # not run yet.  These depmodes are late enough in the game, and
8137
      # so weak that their functioning should not be impacted.
8138
      am__obj=conftest.${OBJEXT-o}
8139
      am__minus_obj=
8140
      ;;
8141
    none) break ;;
8142
    esac
8143
    if depmode=$depmode \
8144
       source=sub/conftest.c object=$am__obj \
8145
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8146
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8147
         >/dev/null 2>conftest.err &&
8148
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8149
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8150
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8151
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8152
      # icc doesn't choke on unknown options, it will just issue warnings
8153
      # or remarks (even with -Werror).  So we grep stderr for any message
8154
      # that says an option was ignored or not supported.
8155
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8156
      #   icc: Command line warning: ignoring option '-M'; no argument required
8157
      # The diagnosis changed in icc 8.0:
8158
      #   icc: Command line remark: option '-MP' not supported
8159
      if (grep 'ignoring option' conftest.err ||
8160
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8161
        am_cv_CCAS_dependencies_compiler_type=$depmode
8162
        break
8163
      fi
8164
    fi
8165
  done
8166
8167
  cd ..
8168
  rm -rf conftest.dir
8169
else
8170
  am_cv_CCAS_dependencies_compiler_type=none
8171
fi
8172
8173
fi
8174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8175
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8176
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8177
8178
 if
8179
  test "x$enable_dependency_tracking" != xno \
8180
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8181
  am__fastdepCCAS_TRUE=
8182
  am__fastdepCCAS_FALSE='#'
8183
else
8184
  am__fastdepCCAS_TRUE='#'
8185
  am__fastdepCCAS_FALSE=
8186
fi
8187
8188
8189
8190
# Must be GCC.
8191
test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
8192
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8193
# Extract the first word of "$CXX", so it can be a program name with args.
8194
set dummy $CXX; ac_word=$2
8195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196
$as_echo_n "checking for $ac_word... " >&6; }
8197
if ${ac_cv_prog_HAVE_CXX+:} false; then :
8198
  $as_echo_n "(cached) " >&6
8199
else
8200
  if test -n "$HAVE_CXX"; then
8201
  ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
8202
else
8203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204
for as_dir in $PATH
8205
do
8206
  IFS=$as_save_IFS
8207
  test -z "$as_dir" && as_dir=.
8208
    for ac_exec_ext in '' $ac_executable_extensions; do
8209
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210
    ac_cv_prog_HAVE_CXX="yes"
8211
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212
    break 2
8213
  fi
8214
done
8215
  done
8216
IFS=$as_save_IFS
8217
8218
  test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
8219
fi
8220
fi
8221
HAVE_CXX=$ac_cv_prog_HAVE_CXX
8222
if test -n "$HAVE_CXX"; then
8223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
8224
$as_echo "$HAVE_CXX" >&6; }
8225
else
8226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227
$as_echo "no" >&6; }
8228
fi
8229
8230
8231
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8232
8233
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8234
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8235
$as_echo_n "checking whether NLS is requested... " >&6; }
8236
    # Check whether --enable-nls was given.
8237
if test "${enable_nls+set}" = set; then :
8238
  enableval=$enable_nls; USE_NLS=$enableval
8239
else
8240
  USE_NLS=yes
8241
fi
8242
8243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8244
$as_echo "$USE_NLS" >&6; }
8245
8246
8247
8248
8249
      GETTEXT_MACRO_VERSION=0.18
8250
8251
8252
8253
8254
# Prepare PATH_SEPARATOR.
8255
# The user is always right.
8256
if test "${PATH_SEPARATOR+set}" != set; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8257
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8258
  # contains only /bin. Note that ksh looks also at the FPATH variable,
8259
  # so we have to set that as well for the test.
8260
  PATH_SEPARATOR=:
8261
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8262
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8263
           || PATH_SEPARATOR=';'
8264
       }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8265
fi
8266
8267
# Find out how to test for executable files. Don't use a zero-byte file,
8268
# as systems may use methods other than mode bits to determine executability.
8269
cat >conf$$.file <<_ASEOF
8270
#! /bin/sh
8271
exit 0
8272
_ASEOF
8273
chmod +x conf$$.file
8274
if test -x conf$$.file >/dev/null 2>&1; then
8275
  ac_executable_p="test -x"
8276
else
8277
  ac_executable_p="test -f"
8278
fi
8279
rm -f conf$$.file
8280
8281
# Extract the first word of "msgfmt", so it can be a program name with args.
8282
set dummy msgfmt; ac_word=$2
8283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8285
if ${ac_cv_path_MSGFMT+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8286
  $as_echo_n "(cached) " >&6
8287
else
8288
  case "$MSGFMT" in
8289
  [\\/]* | ?:[\\/]*)
8290
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8291
    ;;
8292
  *)
8293
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8294
    for ac_dir in $PATH; do
8295
      IFS="$ac_save_IFS"
8296
      test -z "$ac_dir" && ac_dir=.
8297
      for ac_exec_ext in '' $ac_executable_extensions; do
8298
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8299
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
8300
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8301
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8302
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8303
            break 2
8304
          fi
8305
        fi
8306
      done
8307
    done
8308
    IFS="$ac_save_IFS"
8309
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8310
    ;;
8311
esac
8312
fi
8313
MSGFMT="$ac_cv_path_MSGFMT"
8314
if test "$MSGFMT" != ":"; then
8315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8316
$as_echo "$MSGFMT" >&6; }
8317
else
8318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319
$as_echo "no" >&6; }
8320
fi
8321
8322
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
8323
set dummy gmsgfmt; ac_word=$2
8324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8326
if ${ac_cv_path_GMSGFMT+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8327
  $as_echo_n "(cached) " >&6
8328
else
8329
  case $GMSGFMT in
8330
  [\\/]* | ?:[\\/]*)
8331
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8332
  ;;
8333
  *)
8334
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335
for as_dir in $PATH
8336
do
8337
  IFS=$as_save_IFS
8338
  test -z "$as_dir" && as_dir=.
8339
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
8340
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8341
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8342
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343
    break 2
8344
  fi
8345
done
8346
  done
8347
IFS=$as_save_IFS
8348
8349
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8350
  ;;
8351
esac
8352
fi
8353
GMSGFMT=$ac_cv_path_GMSGFMT
8354
if test -n "$GMSGFMT"; then
8355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8356
$as_echo "$GMSGFMT" >&6; }
8357
else
8358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359
$as_echo "no" >&6; }
8360
fi
8361
8362
8363
8364
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8365
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
8366
    *) MSGFMT_015=$MSGFMT ;;
8367
  esac
8368
8369
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8370
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8371
    *) GMSGFMT_015=$GMSGFMT ;;
8372
  esac
8373
8374
8375
8376
# Prepare PATH_SEPARATOR.
8377
# The user is always right.
8378
if test "${PATH_SEPARATOR+set}" != set; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8379
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8380
  # contains only /bin. Note that ksh looks also at the FPATH variable,
8381
  # so we have to set that as well for the test.
8382
  PATH_SEPARATOR=:
8383
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8384
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8385
           || PATH_SEPARATOR=';'
8386
       }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8387
fi
8388
8389
# Find out how to test for executable files. Don't use a zero-byte file,
8390
# as systems may use methods other than mode bits to determine executability.
8391
cat >conf$$.file <<_ASEOF
8392
#! /bin/sh
8393
exit 0
8394
_ASEOF
8395
chmod +x conf$$.file
8396
if test -x conf$$.file >/dev/null 2>&1; then
8397
  ac_executable_p="test -x"
8398
else
8399
  ac_executable_p="test -f"
8400
fi
8401
rm -f conf$$.file
8402
8403
# Extract the first word of "xgettext", so it can be a program name with args.
8404
set dummy xgettext; ac_word=$2
8405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8407
if ${ac_cv_path_XGETTEXT+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8408
  $as_echo_n "(cached) " >&6
8409
else
8410
  case "$XGETTEXT" in
8411
  [\\/]* | ?:[\\/]*)
8412
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8413
    ;;
8414
  *)
8415
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8416
    for ac_dir in $PATH; do
8417
      IFS="$ac_save_IFS"
8418
      test -z "$ac_dir" && ac_dir=.
8419
      for ac_exec_ext in '' $ac_executable_extensions; do
8420
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8421
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
8422
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8423
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8424
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8425
            break 2
8426
          fi
8427
        fi
8428
      done
8429
    done
8430
    IFS="$ac_save_IFS"
8431
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8432
    ;;
8433
esac
8434
fi
8435
XGETTEXT="$ac_cv_path_XGETTEXT"
8436
if test "$XGETTEXT" != ":"; then
8437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8438
$as_echo "$XGETTEXT" >&6; }
8439
else
8440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441
$as_echo "no" >&6; }
8442
fi
8443
8444
    rm -f messages.po
8445
8446
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8447
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8448
    *) XGETTEXT_015=$XGETTEXT ;;
8449
  esac
8450
8451
8452
8453
# Prepare PATH_SEPARATOR.
8454
# The user is always right.
8455
if test "${PATH_SEPARATOR+set}" != set; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8456
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8457
  # contains only /bin. Note that ksh looks also at the FPATH variable,
8458
  # so we have to set that as well for the test.
8459
  PATH_SEPARATOR=:
8460
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8461
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8462
           || PATH_SEPARATOR=';'
8463
       }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8464
fi
8465
8466
# Find out how to test for executable files. Don't use a zero-byte file,
8467
# as systems may use methods other than mode bits to determine executability.
8468
cat >conf$$.file <<_ASEOF
8469
#! /bin/sh
8470
exit 0
8471
_ASEOF
8472
chmod +x conf$$.file
8473
if test -x conf$$.file >/dev/null 2>&1; then
8474
  ac_executable_p="test -x"
8475
else
8476
  ac_executable_p="test -f"
8477
fi
8478
rm -f conf$$.file
8479
8480
# Extract the first word of "msgmerge", so it can be a program name with args.
8481
set dummy msgmerge; ac_word=$2
8482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8484
if ${ac_cv_path_MSGMERGE+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8485
  $as_echo_n "(cached) " >&6
8486
else
8487
  case "$MSGMERGE" in
8488
  [\\/]* | ?:[\\/]*)
8489
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8490
    ;;
8491
  *)
8492
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8493
    for ac_dir in $PATH; do
8494
      IFS="$ac_save_IFS"
8495
      test -z "$ac_dir" && ac_dir=.
8496
      for ac_exec_ext in '' $ac_executable_extensions; do
8497
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8498
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
8499
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8500
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8501
            break 2
8502
          fi
8503
        fi
8504
      done
8505
    done
8506
    IFS="$ac_save_IFS"
8507
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8508
    ;;
8509
esac
8510
fi
8511
MSGMERGE="$ac_cv_path_MSGMERGE"
8512
if test "$MSGMERGE" != ":"; then
8513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8514
$as_echo "$MSGMERGE" >&6; }
8515
else
8516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517
$as_echo "no" >&6; }
8518
fi
8519
8520
8521
        test -n "$localedir" || localedir='${datadir}/locale'
8522
8523
8524
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8525
8526
8527
  ac_config_commands="$ac_config_commands po-directories"
8528
8529
8530
8531
      if test "X$prefix" = "XNONE"; then
8532
    acl_final_prefix="$ac_default_prefix"
8533
  else
8534
    acl_final_prefix="$prefix"
8535
  fi
8536
  if test "X$exec_prefix" = "XNONE"; then
8537
    acl_final_exec_prefix='${prefix}'
8538
  else
8539
    acl_final_exec_prefix="$exec_prefix"
8540
  fi
8541
  acl_save_prefix="$prefix"
8542
  prefix="$acl_final_prefix"
8543
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8544
  prefix="$acl_save_prefix"
8545
8546
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8547
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8548
# Check whether --with-gnu-ld was given.
8549
if test "${with_gnu_ld+set}" = set; then :
8550
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8551
else
8552
  with_gnu_ld=no
8553
fi
8554
8555
# Prepare PATH_SEPARATOR.
8556
# The user is always right.
8557
if test "${PATH_SEPARATOR+set}" != set; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8558
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8559
  # contains only /bin. Note that ksh looks also at the FPATH variable,
8560
  # so we have to set that as well for the test.
8561
  PATH_SEPARATOR=:
8562
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8563
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8564
           || PATH_SEPARATOR=';'
8565
       }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8566
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8567
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8568
ac_prog=ld
8569
if test "$GCC" = yes; then
8570
  # Check if gcc -print-prog-name=ld gives a path.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8571
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8572
$as_echo_n "checking for ld used by $CC... " >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8573
  case $host in
8574
  *-*-mingw*)
8575
    # gcc leaves a trailing carriage return which upsets mingw
8576
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8577
  *)
8578
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8579
  esac
8580
  case $ac_prog in
8581
    # Accept absolute paths.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8582
    [\\/]* | ?:[\\/]*)
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8583
      re_direlt='/[^/][^/]*/\.\./'
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8584
      # Canonicalize the pathname of ld
8585
      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8586
      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8587
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8588
      done
8589
      test -z "$LD" && LD="$ac_prog"
8590
      ;;
8591
  "")
8592
    # If it fails, then pretend we aren't using GCC.
8593
    ac_prog=ld
8594
    ;;
8595
  *)
8596
    # If it is relative, then search for the first ld in PATH.
8597
    with_gnu_ld=unknown
8598
    ;;
8599
  esac
8600
elif test "$with_gnu_ld" = yes; then
8601
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8602
$as_echo_n "checking for GNU ld... " >&6; }
8603
else
8604
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8605
$as_echo_n "checking for non-GNU ld... " >&6; }
8606
fi
1.15.15 by Colin Watson
Import upstream version 1.99
8607
if ${acl_cv_path_LD+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8608
  $as_echo_n "(cached) " >&6
8609
else
8610
  if test -z "$LD"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8611
  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8612
  for ac_dir in $PATH; do
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8613
    IFS="$acl_save_ifs"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8614
    test -z "$ac_dir" && ac_dir=.
8615
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8616
      acl_cv_path_LD="$ac_dir/$ac_prog"
8617
      # Check to see if the program is GNU ld.  I'd rather use --version,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8618
      # but apparently some variants of GNU ld only accept -v.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8619
      # Break only if it was the GNU/non-GNU ld that we prefer.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8620
      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8621
      *GNU* | *'with BFD'*)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8622
        test "$with_gnu_ld" != no && break
8623
        ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8624
      *)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8625
        test "$with_gnu_ld" != yes && break
8626
        ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8627
      esac
8628
    fi
8629
  done
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8630
  IFS="$acl_save_ifs"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8631
else
8632
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
8633
fi
8634
fi
8635
8636
LD="$acl_cv_path_LD"
8637
if test -n "$LD"; then
8638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8639
$as_echo "$LD" >&6; }
8640
else
8641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642
$as_echo "no" >&6; }
8643
fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
8644
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8646
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8647
if ${acl_cv_prog_gnu_ld+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8648
  $as_echo_n "(cached) " >&6
8649
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8650
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8651
case `$LD -v 2>&1 </dev/null` in
8652
*GNU* | *'with BFD'*)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8653
  acl_cv_prog_gnu_ld=yes
8654
  ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8655
*)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
8656
  acl_cv_prog_gnu_ld=no
8657
  ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8658
esac
8659
fi
8660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8661
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8662
with_gnu_ld=$acl_cv_prog_gnu_ld
8663
8664
8665
8666
8667
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8668
$as_echo_n "checking for shared library run path origin... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8669
if ${acl_cv_rpath+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8670
  $as_echo_n "(cached) " >&6
8671
else
8672
8673
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8674
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8675
    . ./conftest.sh
8676
    rm -f ./conftest.sh
8677
    acl_cv_rpath=done
8678
8679
fi
8680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8681
$as_echo "$acl_cv_rpath" >&6; }
8682
  wl="$acl_cv_wl"
8683
  acl_libext="$acl_cv_libext"
8684
  acl_shlibext="$acl_cv_shlibext"
8685
  acl_libname_spec="$acl_cv_libname_spec"
8686
  acl_library_names_spec="$acl_cv_library_names_spec"
8687
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8688
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8689
  acl_hardcode_direct="$acl_cv_hardcode_direct"
8690
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8691
    # Check whether --enable-rpath was given.
8692
if test "${enable_rpath+set}" = set; then :
8693
  enableval=$enable_rpath; :
8694
else
8695
  enable_rpath=yes
8696
fi
8697
8698
8699
8700
8701
  acl_libdirstem=lib
8702
  acl_libdirstem2=
8703
  case "$host_os" in
8704
    solaris*)
8705
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8706
$as_echo_n "checking for 64-bit host... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
8707
if ${gl_cv_solaris_64bit+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8708
  $as_echo_n "(cached) " >&6
8709
else
8710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711
/* end confdefs.h.  */
8712
8713
#ifdef _LP64
8714
sixtyfour bits
8715
#endif
8716
8717
_ACEOF
8718
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8720
  gl_cv_solaris_64bit=yes
8721
else
8722
  gl_cv_solaris_64bit=no
8723
fi
8724
rm -f conftest*
8725
8726
8727
fi
8728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8729
$as_echo "$gl_cv_solaris_64bit" >&6; }
8730
      if test $gl_cv_solaris_64bit = yes; then
8731
        acl_libdirstem=lib/64
8732
        case "$host_cpu" in
8733
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
8734
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8735
        esac
8736
      fi
8737
      ;;
8738
    *)
8739
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8740
      if test -n "$searchpath"; then
8741
        acl_save_IFS="${IFS= 	}"; IFS=":"
8742
        for searchdir in $searchpath; do
8743
          if test -d "$searchdir"; then
8744
            case "$searchdir" in
8745
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8746
              */../ | */.. )
8747
                # Better ignore directories of this form. They are misleading.
8748
                ;;
8749
              *) searchdir=`cd "$searchdir" && pwd`
8750
                 case "$searchdir" in
8751
                   */lib64 ) acl_libdirstem=lib64 ;;
8752
                 esac ;;
8753
            esac
8754
          fi
8755
        done
8756
        IFS="$acl_save_IFS"
8757
      fi
8758
      ;;
8759
  esac
8760
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
    use_additional=yes
8774
8775
  acl_save_prefix="$prefix"
8776
  prefix="$acl_final_prefix"
8777
  acl_save_exec_prefix="$exec_prefix"
8778
  exec_prefix="$acl_final_exec_prefix"
8779
8780
    eval additional_includedir=\"$includedir\"
8781
    eval additional_libdir=\"$libdir\"
8782
8783
  exec_prefix="$acl_save_exec_prefix"
8784
  prefix="$acl_save_prefix"
8785
8786
8787
# Check whether --with-libiconv-prefix was given.
8788
if test "${with_libiconv_prefix+set}" = set; then :
8789
  withval=$with_libiconv_prefix;
8790
    if test "X$withval" = "Xno"; then
8791
      use_additional=no
8792
    else
8793
      if test "X$withval" = "X"; then
8794
8795
  acl_save_prefix="$prefix"
8796
  prefix="$acl_final_prefix"
8797
  acl_save_exec_prefix="$exec_prefix"
8798
  exec_prefix="$acl_final_exec_prefix"
8799
8800
          eval additional_includedir=\"$includedir\"
8801
          eval additional_libdir=\"$libdir\"
8802
8803
  exec_prefix="$acl_save_exec_prefix"
8804
  prefix="$acl_save_prefix"
8805
8806
      else
8807
        additional_includedir="$withval/include"
8808
        additional_libdir="$withval/$acl_libdirstem"
8809
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
8810
           && ! test -d "$withval/$acl_libdirstem"; then
8811
          additional_libdir="$withval/$acl_libdirstem2"
8812
        fi
8813
      fi
8814
    fi
8815
8816
fi
8817
8818
      LIBICONV=
8819
  LTLIBICONV=
8820
  INCICONV=
8821
  LIBICONV_PREFIX=
8822
      HAVE_LIBICONV=
8823
  rpathdirs=
8824
  ltrpathdirs=
8825
  names_already_handled=
8826
  names_next_round='iconv '
8827
  while test -n "$names_next_round"; do
8828
    names_this_round="$names_next_round"
8829
    names_next_round=
8830
    for name in $names_this_round; do
8831
      already_handled=
8832
      for n in $names_already_handled; do
8833
        if test "$n" = "$name"; then
8834
          already_handled=yes
8835
          break
8836
        fi
8837
      done
8838
      if test -z "$already_handled"; then
8839
        names_already_handled="$names_already_handled $name"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
8840
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
8841
        eval value=\"\$HAVE_LIB$uppername\"
8842
        if test -n "$value"; then
8843
          if test "$value" = yes; then
8844
            eval value=\"\$LIB$uppername\"
8845
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8846
            eval value=\"\$LTLIB$uppername\"
8847
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8848
          else
8849
                                    :
8850
          fi
8851
        else
8852
                              found_dir=
8853
          found_la=
8854
          found_so=
8855
          found_a=
8856
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8857
          if test -n "$acl_shlibext"; then
8858
            shrext=".$acl_shlibext"             # typically: shrext=.so
8859
          else
8860
            shrext=
8861
          fi
8862
          if test $use_additional = yes; then
8863
            dir="$additional_libdir"
8864
                                    if test -n "$acl_shlibext"; then
8865
              if test -f "$dir/$libname$shrext"; then
8866
                found_dir="$dir"
8867
                found_so="$dir/$libname$shrext"
8868
              else
8869
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8870
                  ver=`(cd "$dir" && \
8871
                        for f in "$libname$shrext".*; do echo "$f"; done \
8872
                        | sed -e "s,^$libname$shrext\\\\.,," \
8873
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8874
                        | sed 1q ) 2>/dev/null`
8875
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8876
                    found_dir="$dir"
8877
                    found_so="$dir/$libname$shrext.$ver"
8878
                  fi
8879
                else
8880
                  eval library_names=\"$acl_library_names_spec\"
8881
                  for f in $library_names; do
8882
                    if test -f "$dir/$f"; then
8883
                      found_dir="$dir"
8884
                      found_so="$dir/$f"
8885
                      break
8886
                    fi
8887
                  done
8888
                fi
8889
              fi
8890
            fi
8891
                        if test "X$found_dir" = "X"; then
8892
              if test -f "$dir/$libname.$acl_libext"; then
8893
                found_dir="$dir"
8894
                found_a="$dir/$libname.$acl_libext"
8895
              fi
8896
            fi
8897
            if test "X$found_dir" != "X"; then
8898
              if test -f "$dir/$libname.la"; then
8899
                found_la="$dir/$libname.la"
8900
              fi
8901
            fi
8902
          fi
8903
          if test "X$found_dir" = "X"; then
8904
            for x in $LDFLAGS $LTLIBICONV; do
8905
8906
  acl_save_prefix="$prefix"
8907
  prefix="$acl_final_prefix"
8908
  acl_save_exec_prefix="$exec_prefix"
8909
  exec_prefix="$acl_final_exec_prefix"
8910
  eval x=\"$x\"
8911
  exec_prefix="$acl_save_exec_prefix"
8912
  prefix="$acl_save_prefix"
8913
8914
              case "$x" in
8915
                -L*)
8916
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8917
                                    if test -n "$acl_shlibext"; then
8918
                    if test -f "$dir/$libname$shrext"; then
8919
                      found_dir="$dir"
8920
                      found_so="$dir/$libname$shrext"
8921
                    else
8922
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8923
                        ver=`(cd "$dir" && \
8924
                              for f in "$libname$shrext".*; do echo "$f"; done \
8925
                              | sed -e "s,^$libname$shrext\\\\.,," \
8926
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8927
                              | sed 1q ) 2>/dev/null`
8928
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8929
                          found_dir="$dir"
8930
                          found_so="$dir/$libname$shrext.$ver"
8931
                        fi
8932
                      else
8933
                        eval library_names=\"$acl_library_names_spec\"
8934
                        for f in $library_names; do
8935
                          if test -f "$dir/$f"; then
8936
                            found_dir="$dir"
8937
                            found_so="$dir/$f"
8938
                            break
8939
                          fi
8940
                        done
8941
                      fi
8942
                    fi
8943
                  fi
8944
                                    if test "X$found_dir" = "X"; then
8945
                    if test -f "$dir/$libname.$acl_libext"; then
8946
                      found_dir="$dir"
8947
                      found_a="$dir/$libname.$acl_libext"
8948
                    fi
8949
                  fi
8950
                  if test "X$found_dir" != "X"; then
8951
                    if test -f "$dir/$libname.la"; then
8952
                      found_la="$dir/$libname.la"
8953
                    fi
8954
                  fi
8955
                  ;;
8956
              esac
8957
              if test "X$found_dir" != "X"; then
8958
                break
8959
              fi
8960
            done
8961
          fi
8962
          if test "X$found_dir" != "X"; then
8963
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8964
            if test "X$found_so" != "X"; then
8965
                                                        if test "$enable_rpath" = no \
8966
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8967
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8968
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8969
              else
8970
                                                                                haveit=
8971
                for x in $ltrpathdirs; do
8972
                  if test "X$x" = "X$found_dir"; then
8973
                    haveit=yes
8974
                    break
8975
                  fi
8976
                done
8977
                if test -z "$haveit"; then
8978
                  ltrpathdirs="$ltrpathdirs $found_dir"
8979
                fi
8980
                                if test "$acl_hardcode_direct" = yes; then
8981
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8982
                else
8983
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8984
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8985
                                                            haveit=
8986
                    for x in $rpathdirs; do
8987
                      if test "X$x" = "X$found_dir"; then
8988
                        haveit=yes
8989
                        break
8990
                      fi
8991
                    done
8992
                    if test -z "$haveit"; then
8993
                      rpathdirs="$rpathdirs $found_dir"
8994
                    fi
8995
                  else
8996
                                                                                haveit=
8997
                    for x in $LDFLAGS $LIBICONV; do
8998
8999
  acl_save_prefix="$prefix"
9000
  prefix="$acl_final_prefix"
9001
  acl_save_exec_prefix="$exec_prefix"
9002
  exec_prefix="$acl_final_exec_prefix"
9003
  eval x=\"$x\"
9004
  exec_prefix="$acl_save_exec_prefix"
9005
  prefix="$acl_save_prefix"
9006
9007
                      if test "X$x" = "X-L$found_dir"; then
9008
                        haveit=yes
9009
                        break
9010
                      fi
9011
                    done
9012
                    if test -z "$haveit"; then
9013
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9014
                    fi
9015
                    if test "$acl_hardcode_minus_L" != no; then
9016
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9017
                    else
9018
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9019
                    fi
9020
                  fi
9021
                fi
9022
              fi
9023
            else
9024
              if test "X$found_a" != "X"; then
9025
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9026
              else
9027
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9028
              fi
9029
            fi
9030
                        additional_includedir=
9031
            case "$found_dir" in
9032
              */$acl_libdirstem | */$acl_libdirstem/)
9033
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9034
                if test "$name" = 'iconv'; then
9035
                  LIBICONV_PREFIX="$basedir"
9036
                fi
9037
                additional_includedir="$basedir/include"
9038
                ;;
9039
              */$acl_libdirstem2 | */$acl_libdirstem2/)
9040
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9041
                if test "$name" = 'iconv'; then
9042
                  LIBICONV_PREFIX="$basedir"
9043
                fi
9044
                additional_includedir="$basedir/include"
9045
                ;;
9046
            esac
9047
            if test "X$additional_includedir" != "X"; then
9048
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9049
                haveit=
9050
                if test "X$additional_includedir" = "X/usr/local/include"; then
9051
                  if test -n "$GCC"; then
9052
                    case $host_os in
9053
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9054
                    esac
9055
                  fi
9056
                fi
9057
                if test -z "$haveit"; then
9058
                  for x in $CPPFLAGS $INCICONV; do
9059
9060
  acl_save_prefix="$prefix"
9061
  prefix="$acl_final_prefix"
9062
  acl_save_exec_prefix="$exec_prefix"
9063
  exec_prefix="$acl_final_exec_prefix"
9064
  eval x=\"$x\"
9065
  exec_prefix="$acl_save_exec_prefix"
9066
  prefix="$acl_save_prefix"
9067
9068
                    if test "X$x" = "X-I$additional_includedir"; then
9069
                      haveit=yes
9070
                      break
9071
                    fi
9072
                  done
9073
                  if test -z "$haveit"; then
9074
                    if test -d "$additional_includedir"; then
9075
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9076
                    fi
9077
                  fi
9078
                fi
9079
              fi
9080
            fi
9081
                        if test -n "$found_la"; then
9082
                                                        save_libdir="$libdir"
9083
              case "$found_la" in
9084
                */* | *\\*) . "$found_la" ;;
9085
                *) . "./$found_la" ;;
9086
              esac
9087
              libdir="$save_libdir"
9088
                            for dep in $dependency_libs; do
9089
                case "$dep" in
9090
                  -L*)
9091
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9092
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9093
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9094
                      haveit=
9095
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9096
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9097
                        if test -n "$GCC"; then
9098
                          case $host_os in
9099
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9100
                          esac
9101
                        fi
9102
                      fi
9103
                      if test -z "$haveit"; then
9104
                        haveit=
9105
                        for x in $LDFLAGS $LIBICONV; do
9106
9107
  acl_save_prefix="$prefix"
9108
  prefix="$acl_final_prefix"
9109
  acl_save_exec_prefix="$exec_prefix"
9110
  exec_prefix="$acl_final_exec_prefix"
9111
  eval x=\"$x\"
9112
  exec_prefix="$acl_save_exec_prefix"
9113
  prefix="$acl_save_prefix"
9114
9115
                          if test "X$x" = "X-L$additional_libdir"; then
9116
                            haveit=yes
9117
                            break
9118
                          fi
9119
                        done
9120
                        if test -z "$haveit"; then
9121
                          if test -d "$additional_libdir"; then
9122
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9123
                          fi
9124
                        fi
9125
                        haveit=
9126
                        for x in $LDFLAGS $LTLIBICONV; do
9127
9128
  acl_save_prefix="$prefix"
9129
  prefix="$acl_final_prefix"
9130
  acl_save_exec_prefix="$exec_prefix"
9131
  exec_prefix="$acl_final_exec_prefix"
9132
  eval x=\"$x\"
9133
  exec_prefix="$acl_save_exec_prefix"
9134
  prefix="$acl_save_prefix"
9135
9136
                          if test "X$x" = "X-L$additional_libdir"; then
9137
                            haveit=yes
9138
                            break
9139
                          fi
9140
                        done
9141
                        if test -z "$haveit"; then
9142
                          if test -d "$additional_libdir"; then
9143
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9144
                          fi
9145
                        fi
9146
                      fi
9147
                    fi
9148
                    ;;
9149
                  -R*)
9150
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9151
                    if test "$enable_rpath" != no; then
9152
                                                                  haveit=
9153
                      for x in $rpathdirs; do
9154
                        if test "X$x" = "X$dir"; then
9155
                          haveit=yes
9156
                          break
9157
                        fi
9158
                      done
9159
                      if test -z "$haveit"; then
9160
                        rpathdirs="$rpathdirs $dir"
9161
                      fi
9162
                                                                  haveit=
9163
                      for x in $ltrpathdirs; do
9164
                        if test "X$x" = "X$dir"; then
9165
                          haveit=yes
9166
                          break
9167
                        fi
9168
                      done
9169
                      if test -z "$haveit"; then
9170
                        ltrpathdirs="$ltrpathdirs $dir"
9171
                      fi
9172
                    fi
9173
                    ;;
9174
                  -l*)
9175
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9176
                    ;;
9177
                  *.la)
9178
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9179
                    ;;
9180
                  *)
9181
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9182
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9183
                    ;;
9184
                esac
9185
              done
9186
            fi
9187
          else
9188
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9189
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9190
          fi
9191
        fi
9192
      fi
9193
    done
9194
  done
9195
  if test "X$rpathdirs" != "X"; then
9196
    if test -n "$acl_hardcode_libdir_separator"; then
9197
                        alldirs=
9198
      for found_dir in $rpathdirs; do
9199
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9200
      done
9201
            acl_save_libdir="$libdir"
9202
      libdir="$alldirs"
9203
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
9204
      libdir="$acl_save_libdir"
9205
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9206
    else
9207
            for found_dir in $rpathdirs; do
9208
        acl_save_libdir="$libdir"
9209
        libdir="$found_dir"
9210
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
9211
        libdir="$acl_save_libdir"
9212
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9213
      done
9214
    fi
9215
  fi
9216
  if test "X$ltrpathdirs" != "X"; then
9217
            for found_dir in $ltrpathdirs; do
9218
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9219
    done
9220
  fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9253
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
9254
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9255
  $as_echo_n "(cached) " >&6
9256
else
9257
  gt_save_LIBS="$LIBS"
9258
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9259
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260
/* end confdefs.h.  */
9261
#include <CoreFoundation/CFPreferences.h>
9262
int
9263
main (void)
9264
{
9265
CFPreferencesCopyAppValue(NULL, NULL)
9266
  ;
9267
  return 0;
9268
}
9269
_ACEOF
9270
if ac_fn_c_try_link "$LINENO"; then :
9271
  gt_cv_func_CFPreferencesCopyAppValue=yes
9272
else
9273
  gt_cv_func_CFPreferencesCopyAppValue=no
9274
fi
9275
rm -f core conftest.err conftest.$ac_objext \
9276
    conftest$ac_exeext conftest.$ac_ext
9277
     LIBS="$gt_save_LIBS"
9278
fi
9279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9280
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9281
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9282
9283
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9284
9285
  fi
9286
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9287
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
9288
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9289
  $as_echo_n "(cached) " >&6
9290
else
9291
  gt_save_LIBS="$LIBS"
9292
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9293
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294
/* end confdefs.h.  */
9295
#include <CoreFoundation/CFLocale.h>
9296
int
9297
main (void)
9298
{
9299
CFLocaleCopyCurrent();
9300
  ;
9301
  return 0;
9302
}
9303
_ACEOF
9304
if ac_fn_c_try_link "$LINENO"; then :
9305
  gt_cv_func_CFLocaleCopyCurrent=yes
9306
else
9307
  gt_cv_func_CFLocaleCopyCurrent=no
9308
fi
9309
rm -f core conftest.err conftest.$ac_objext \
9310
    conftest$ac_exeext conftest.$ac_ext
9311
     LIBS="$gt_save_LIBS"
9312
fi
9313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9314
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9315
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9316
9317
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9318
9319
  fi
9320
  INTL_MACOSX_LIBS=
9321
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9322
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9323
  fi
9324
9325
9326
9327
9328
9329
9330
  LIBINTL=
9331
  LTLIBINTL=
9332
  POSUB=
9333
9334
    case " $gt_needs " in
9335
    *" need-formatstring-macros "*) gt_api_version=3 ;;
9336
    *" need-ngettext "*) gt_api_version=2 ;;
9337
    *) gt_api_version=1 ;;
9338
  esac
9339
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9340
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9341
9342
    if test "$USE_NLS" = "yes"; then
9343
    gt_use_preinstalled_gnugettext=no
9344
9345
9346
        if test $gt_api_version -ge 3; then
9347
          gt_revision_test_code='
9348
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9349
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9350
#endif
9351
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9352
'
9353
        else
9354
          gt_revision_test_code=
9355
        fi
9356
        if test $gt_api_version -ge 2; then
9357
          gt_expression_test_code=' + * ngettext ("", "", 0)'
9358
        else
9359
          gt_expression_test_code=
9360
        fi
9361
9362
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9363
$as_echo_n "checking for GNU gettext in libc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
9364
if eval \${$gt_func_gnugettext_libc+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9365
  $as_echo_n "(cached) " >&6
9366
else
9367
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368
/* end confdefs.h.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9369
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9370
#include <libintl.h>
9371
$gt_revision_test_code
9372
extern int _nl_msg_cat_cntr;
9373
extern int *_nl_domain_bindings;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9374
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9375
int
9376
main (void)
9377
{
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9378
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9379
bindtextdomain ("", "");
9380
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9381
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9382
  ;
9383
  return 0;
9384
}
9385
_ACEOF
9386
if ac_fn_c_try_link "$LINENO"; then :
9387
  eval "$gt_func_gnugettext_libc=yes"
9388
else
9389
  eval "$gt_func_gnugettext_libc=no"
9390
fi
9391
rm -f core conftest.err conftest.$ac_objext \
9392
    conftest$ac_exeext conftest.$ac_ext
9393
fi
9394
eval ac_res=\$$gt_func_gnugettext_libc
9395
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9396
$as_echo "$ac_res" >&6; }
9397
9398
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9399
9400
9401
9402
9403
9404
          am_save_CPPFLAGS="$CPPFLAGS"
9405
9406
  for element in $INCICONV; do
9407
    haveit=
9408
    for x in $CPPFLAGS; do
9409
9410
  acl_save_prefix="$prefix"
9411
  prefix="$acl_final_prefix"
9412
  acl_save_exec_prefix="$exec_prefix"
9413
  exec_prefix="$acl_final_exec_prefix"
9414
  eval x=\"$x\"
9415
  exec_prefix="$acl_save_exec_prefix"
9416
  prefix="$acl_save_prefix"
9417
9418
      if test "X$x" = "X$element"; then
9419
        haveit=yes
9420
        break
9421
      fi
9422
    done
9423
    if test -z "$haveit"; then
9424
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9425
    fi
9426
  done
9427
9428
9429
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9430
$as_echo_n "checking for iconv... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
9431
if ${am_cv_func_iconv+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9432
  $as_echo_n "(cached) " >&6
9433
else
9434
9435
    am_cv_func_iconv="no, consider installing GNU libiconv"
9436
    am_cv_lib_iconv=no
9437
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438
/* end confdefs.h.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9439
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9440
#include <stdlib.h>
9441
#include <iconv.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9442
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9443
int
9444
main (void)
9445
{
9446
iconv_t cd = iconv_open("","");
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9447
           iconv(cd,NULL,NULL,NULL,NULL);
9448
           iconv_close(cd);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9449
  ;
9450
  return 0;
9451
}
9452
_ACEOF
9453
if ac_fn_c_try_link "$LINENO"; then :
9454
  am_cv_func_iconv=yes
9455
fi
9456
rm -f core conftest.err conftest.$ac_objext \
9457
    conftest$ac_exeext conftest.$ac_ext
9458
    if test "$am_cv_func_iconv" != yes; then
9459
      am_save_LIBS="$LIBS"
9460
      LIBS="$LIBS $LIBICONV"
9461
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462
/* end confdefs.h.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9463
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9464
#include <stdlib.h>
9465
#include <iconv.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9466
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9467
int
9468
main (void)
9469
{
9470
iconv_t cd = iconv_open("","");
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9471
             iconv(cd,NULL,NULL,NULL,NULL);
9472
             iconv_close(cd);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9473
  ;
9474
  return 0;
9475
}
9476
_ACEOF
9477
if ac_fn_c_try_link "$LINENO"; then :
9478
  am_cv_lib_iconv=yes
9479
        am_cv_func_iconv=yes
9480
fi
9481
rm -f core conftest.err conftest.$ac_objext \
9482
    conftest$ac_exeext conftest.$ac_ext
9483
      LIBS="$am_save_LIBS"
9484
    fi
9485
9486
fi
9487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9488
$as_echo "$am_cv_func_iconv" >&6; }
9489
  if test "$am_cv_func_iconv" = yes; then
9490
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9491
$as_echo_n "checking for working iconv... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
9492
if ${am_cv_func_iconv_works+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9493
  $as_echo_n "(cached) " >&6
9494
else
9495
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9496
                  am_save_LIBS="$LIBS"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9497
      if test $am_cv_lib_iconv = yes; then
9498
        LIBS="$LIBS $LIBICONV"
9499
      fi
9500
      if test "$cross_compiling" = yes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9501
9502
         case "$host_os" in
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9503
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9504
           *)            am_cv_func_iconv_works="guessing yes" ;;
9505
         esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9506
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9507
else
9508
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509
/* end confdefs.h.  */
9510
9511
#include <iconv.h>
9512
#include <string.h>
9513
int main ()
9514
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9515
  int result = 0;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9516
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9517
     returns.  */
9518
  {
9519
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9520
    if (cd_utf8_to_88591 != (iconv_t)(-1))
9521
      {
9522
        static const char input[] = "\342\202\254"; /* EURO SIGN */
9523
        char buf[10];
9524
        const char *inptr = input;
9525
        size_t inbytesleft = strlen (input);
9526
        char *outptr = buf;
9527
        size_t outbytesleft = sizeof (buf);
9528
        size_t res = iconv (cd_utf8_to_88591,
9529
                            (char **) &inptr, &inbytesleft,
9530
                            &outptr, &outbytesleft);
9531
        if (res == 0)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9532
          result |= 1;
9533
        iconv_close (cd_utf8_to_88591);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9534
      }
9535
  }
9536
  /* Test against Solaris 10 bug: Failures are not distinguishable from
9537
     successful returns.  */
9538
  {
9539
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9540
    if (cd_ascii_to_88591 != (iconv_t)(-1))
9541
      {
9542
        static const char input[] = "\263";
9543
        char buf[10];
9544
        const char *inptr = input;
9545
        size_t inbytesleft = strlen (input);
9546
        char *outptr = buf;
9547
        size_t outbytesleft = sizeof (buf);
9548
        size_t res = iconv (cd_ascii_to_88591,
9549
                            (char **) &inptr, &inbytesleft,
9550
                            &outptr, &outbytesleft);
9551
        if (res == 0)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9552
          result |= 2;
9553
        iconv_close (cd_ascii_to_88591);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9554
      }
9555
  }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9556
  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9557
  {
9558
    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9559
    if (cd_88591_to_utf8 != (iconv_t)(-1))
9560
      {
9561
        static const char input[] = "\304";
9562
        static char buf[2] = { (char)0xDE, (char)0xAD };
9563
        const char *inptr = input;
9564
        size_t inbytesleft = 1;
9565
        char *outptr = buf;
9566
        size_t outbytesleft = 1;
9567
        size_t res = iconv (cd_88591_to_utf8,
9568
                            (char **) &inptr, &inbytesleft,
9569
                            &outptr, &outbytesleft);
9570
        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9571
          result |= 4;
9572
        iconv_close (cd_88591_to_utf8);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9573
      }
9574
  }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9575
#if 0 /* This bug could be worked around by the caller.  */
9576
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9577
  {
9578
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9579
    if (cd_88591_to_utf8 != (iconv_t)(-1))
9580
      {
9581
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9582
        char buf[50];
9583
        const char *inptr = input;
9584
        size_t inbytesleft = strlen (input);
9585
        char *outptr = buf;
9586
        size_t outbytesleft = sizeof (buf);
9587
        size_t res = iconv (cd_88591_to_utf8,
9588
                            (char **) &inptr, &inbytesleft,
9589
                            &outptr, &outbytesleft);
9590
        if ((int)res > 0)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9591
          result |= 8;
9592
        iconv_close (cd_88591_to_utf8);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9593
      }
9594
  }
9595
#endif
9596
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9597
     provided.  */
9598
  if (/* Try standardized names.  */
9599
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9600
      /* Try IRIX, OSF/1 names.  */
9601
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9602
      /* Try AIX names.  */
9603
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9604
      /* Try HP-UX names.  */
9605
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
9606
    result |= 16;
9607
  return result;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9608
}
9609
_ACEOF
9610
if ac_fn_c_try_run "$LINENO"; then :
9611
  am_cv_func_iconv_works=yes
9612
else
9613
  am_cv_func_iconv_works=no
9614
fi
9615
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9616
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9617
fi
9618
9619
      LIBS="$am_save_LIBS"
9620
9621
fi
9622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9623
$as_echo "$am_cv_func_iconv_works" >&6; }
9624
    case "$am_cv_func_iconv_works" in
9625
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9626
      *)   am_func_iconv=yes ;;
9627
    esac
9628
  else
9629
    am_func_iconv=no am_cv_lib_iconv=no
9630
  fi
9631
  if test "$am_func_iconv" = yes; then
9632
9633
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9634
9635
  fi
9636
  if test "$am_cv_lib_iconv" = yes; then
9637
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9638
$as_echo_n "checking how to link with libiconv... " >&6; }
9639
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9640
$as_echo "$LIBICONV" >&6; }
9641
  else
9642
            CPPFLAGS="$am_save_CPPFLAGS"
9643
    LIBICONV=
9644
    LTLIBICONV=
9645
  fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
    use_additional=yes
9658
9659
  acl_save_prefix="$prefix"
9660
  prefix="$acl_final_prefix"
9661
  acl_save_exec_prefix="$exec_prefix"
9662
  exec_prefix="$acl_final_exec_prefix"
9663
9664
    eval additional_includedir=\"$includedir\"
9665
    eval additional_libdir=\"$libdir\"
9666
9667
  exec_prefix="$acl_save_exec_prefix"
9668
  prefix="$acl_save_prefix"
9669
9670
9671
# Check whether --with-libintl-prefix was given.
9672
if test "${with_libintl_prefix+set}" = set; then :
9673
  withval=$with_libintl_prefix;
9674
    if test "X$withval" = "Xno"; then
9675
      use_additional=no
9676
    else
9677
      if test "X$withval" = "X"; then
9678
9679
  acl_save_prefix="$prefix"
9680
  prefix="$acl_final_prefix"
9681
  acl_save_exec_prefix="$exec_prefix"
9682
  exec_prefix="$acl_final_exec_prefix"
9683
9684
          eval additional_includedir=\"$includedir\"
9685
          eval additional_libdir=\"$libdir\"
9686
9687
  exec_prefix="$acl_save_exec_prefix"
9688
  prefix="$acl_save_prefix"
9689
9690
      else
9691
        additional_includedir="$withval/include"
9692
        additional_libdir="$withval/$acl_libdirstem"
9693
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
9694
           && ! test -d "$withval/$acl_libdirstem"; then
9695
          additional_libdir="$withval/$acl_libdirstem2"
9696
        fi
9697
      fi
9698
    fi
9699
9700
fi
9701
9702
      LIBINTL=
9703
  LTLIBINTL=
9704
  INCINTL=
9705
  LIBINTL_PREFIX=
9706
      HAVE_LIBINTL=
9707
  rpathdirs=
9708
  ltrpathdirs=
9709
  names_already_handled=
9710
  names_next_round='intl '
9711
  while test -n "$names_next_round"; do
9712
    names_this_round="$names_next_round"
9713
    names_next_round=
9714
    for name in $names_this_round; do
9715
      already_handled=
9716
      for n in $names_already_handled; do
9717
        if test "$n" = "$name"; then
9718
          already_handled=yes
9719
          break
9720
        fi
9721
      done
9722
      if test -z "$already_handled"; then
9723
        names_already_handled="$names_already_handled $name"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
9724
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
9725
        eval value=\"\$HAVE_LIB$uppername\"
9726
        if test -n "$value"; then
9727
          if test "$value" = yes; then
9728
            eval value=\"\$LIB$uppername\"
9729
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9730
            eval value=\"\$LTLIB$uppername\"
9731
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9732
          else
9733
                                    :
9734
          fi
9735
        else
9736
                              found_dir=
9737
          found_la=
9738
          found_so=
9739
          found_a=
9740
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9741
          if test -n "$acl_shlibext"; then
9742
            shrext=".$acl_shlibext"             # typically: shrext=.so
9743
          else
9744
            shrext=
9745
          fi
9746
          if test $use_additional = yes; then
9747
            dir="$additional_libdir"
9748
                                    if test -n "$acl_shlibext"; then
9749
              if test -f "$dir/$libname$shrext"; then
9750
                found_dir="$dir"
9751
                found_so="$dir/$libname$shrext"
9752
              else
9753
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9754
                  ver=`(cd "$dir" && \
9755
                        for f in "$libname$shrext".*; do echo "$f"; done \
9756
                        | sed -e "s,^$libname$shrext\\\\.,," \
9757
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9758
                        | sed 1q ) 2>/dev/null`
9759
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9760
                    found_dir="$dir"
9761
                    found_so="$dir/$libname$shrext.$ver"
9762
                  fi
9763
                else
9764
                  eval library_names=\"$acl_library_names_spec\"
9765
                  for f in $library_names; do
9766
                    if test -f "$dir/$f"; then
9767
                      found_dir="$dir"
9768
                      found_so="$dir/$f"
9769
                      break
9770
                    fi
9771
                  done
9772
                fi
9773
              fi
9774
            fi
9775
                        if test "X$found_dir" = "X"; then
9776
              if test -f "$dir/$libname.$acl_libext"; then
9777
                found_dir="$dir"
9778
                found_a="$dir/$libname.$acl_libext"
9779
              fi
9780
            fi
9781
            if test "X$found_dir" != "X"; then
9782
              if test -f "$dir/$libname.la"; then
9783
                found_la="$dir/$libname.la"
9784
              fi
9785
            fi
9786
          fi
9787
          if test "X$found_dir" = "X"; then
9788
            for x in $LDFLAGS $LTLIBINTL; do
9789
9790
  acl_save_prefix="$prefix"
9791
  prefix="$acl_final_prefix"
9792
  acl_save_exec_prefix="$exec_prefix"
9793
  exec_prefix="$acl_final_exec_prefix"
9794
  eval x=\"$x\"
9795
  exec_prefix="$acl_save_exec_prefix"
9796
  prefix="$acl_save_prefix"
9797
9798
              case "$x" in
9799
                -L*)
9800
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9801
                                    if test -n "$acl_shlibext"; then
9802
                    if test -f "$dir/$libname$shrext"; then
9803
                      found_dir="$dir"
9804
                      found_so="$dir/$libname$shrext"
9805
                    else
9806
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9807
                        ver=`(cd "$dir" && \
9808
                              for f in "$libname$shrext".*; do echo "$f"; done \
9809
                              | sed -e "s,^$libname$shrext\\\\.,," \
9810
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9811
                              | sed 1q ) 2>/dev/null`
9812
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9813
                          found_dir="$dir"
9814
                          found_so="$dir/$libname$shrext.$ver"
9815
                        fi
9816
                      else
9817
                        eval library_names=\"$acl_library_names_spec\"
9818
                        for f in $library_names; do
9819
                          if test -f "$dir/$f"; then
9820
                            found_dir="$dir"
9821
                            found_so="$dir/$f"
9822
                            break
9823
                          fi
9824
                        done
9825
                      fi
9826
                    fi
9827
                  fi
9828
                                    if test "X$found_dir" = "X"; then
9829
                    if test -f "$dir/$libname.$acl_libext"; then
9830
                      found_dir="$dir"
9831
                      found_a="$dir/$libname.$acl_libext"
9832
                    fi
9833
                  fi
9834
                  if test "X$found_dir" != "X"; then
9835
                    if test -f "$dir/$libname.la"; then
9836
                      found_la="$dir/$libname.la"
9837
                    fi
9838
                  fi
9839
                  ;;
9840
              esac
9841
              if test "X$found_dir" != "X"; then
9842
                break
9843
              fi
9844
            done
9845
          fi
9846
          if test "X$found_dir" != "X"; then
9847
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9848
            if test "X$found_so" != "X"; then
9849
                                                        if test "$enable_rpath" = no \
9850
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9851
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9852
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9853
              else
9854
                                                                                haveit=
9855
                for x in $ltrpathdirs; do
9856
                  if test "X$x" = "X$found_dir"; then
9857
                    haveit=yes
9858
                    break
9859
                  fi
9860
                done
9861
                if test -z "$haveit"; then
9862
                  ltrpathdirs="$ltrpathdirs $found_dir"
9863
                fi
9864
                                if test "$acl_hardcode_direct" = yes; then
9865
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9866
                else
9867
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9868
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9869
                                                            haveit=
9870
                    for x in $rpathdirs; do
9871
                      if test "X$x" = "X$found_dir"; then
9872
                        haveit=yes
9873
                        break
9874
                      fi
9875
                    done
9876
                    if test -z "$haveit"; then
9877
                      rpathdirs="$rpathdirs $found_dir"
9878
                    fi
9879
                  else
9880
                                                                                haveit=
9881
                    for x in $LDFLAGS $LIBINTL; do
9882
9883
  acl_save_prefix="$prefix"
9884
  prefix="$acl_final_prefix"
9885
  acl_save_exec_prefix="$exec_prefix"
9886
  exec_prefix="$acl_final_exec_prefix"
9887
  eval x=\"$x\"
9888
  exec_prefix="$acl_save_exec_prefix"
9889
  prefix="$acl_save_prefix"
9890
9891
                      if test "X$x" = "X-L$found_dir"; then
9892
                        haveit=yes
9893
                        break
9894
                      fi
9895
                    done
9896
                    if test -z "$haveit"; then
9897
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9898
                    fi
9899
                    if test "$acl_hardcode_minus_L" != no; then
9900
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9901
                    else
9902
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9903
                    fi
9904
                  fi
9905
                fi
9906
              fi
9907
            else
9908
              if test "X$found_a" != "X"; then
9909
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9910
              else
9911
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9912
              fi
9913
            fi
9914
                        additional_includedir=
9915
            case "$found_dir" in
9916
              */$acl_libdirstem | */$acl_libdirstem/)
9917
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9918
                if test "$name" = 'intl'; then
9919
                  LIBINTL_PREFIX="$basedir"
9920
                fi
9921
                additional_includedir="$basedir/include"
9922
                ;;
9923
              */$acl_libdirstem2 | */$acl_libdirstem2/)
9924
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9925
                if test "$name" = 'intl'; then
9926
                  LIBINTL_PREFIX="$basedir"
9927
                fi
9928
                additional_includedir="$basedir/include"
9929
                ;;
9930
            esac
9931
            if test "X$additional_includedir" != "X"; then
9932
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9933
                haveit=
9934
                if test "X$additional_includedir" = "X/usr/local/include"; then
9935
                  if test -n "$GCC"; then
9936
                    case $host_os in
9937
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9938
                    esac
9939
                  fi
9940
                fi
9941
                if test -z "$haveit"; then
9942
                  for x in $CPPFLAGS $INCINTL; do
9943
9944
  acl_save_prefix="$prefix"
9945
  prefix="$acl_final_prefix"
9946
  acl_save_exec_prefix="$exec_prefix"
9947
  exec_prefix="$acl_final_exec_prefix"
9948
  eval x=\"$x\"
9949
  exec_prefix="$acl_save_exec_prefix"
9950
  prefix="$acl_save_prefix"
9951
9952
                    if test "X$x" = "X-I$additional_includedir"; then
9953
                      haveit=yes
9954
                      break
9955
                    fi
9956
                  done
9957
                  if test -z "$haveit"; then
9958
                    if test -d "$additional_includedir"; then
9959
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9960
                    fi
9961
                  fi
9962
                fi
9963
              fi
9964
            fi
9965
                        if test -n "$found_la"; then
9966
                                                        save_libdir="$libdir"
9967
              case "$found_la" in
9968
                */* | *\\*) . "$found_la" ;;
9969
                *) . "./$found_la" ;;
9970
              esac
9971
              libdir="$save_libdir"
9972
                            for dep in $dependency_libs; do
9973
                case "$dep" in
9974
                  -L*)
9975
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9976
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9977
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9978
                      haveit=
9979
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9980
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9981
                        if test -n "$GCC"; then
9982
                          case $host_os in
9983
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9984
                          esac
9985
                        fi
9986
                      fi
9987
                      if test -z "$haveit"; then
9988
                        haveit=
9989
                        for x in $LDFLAGS $LIBINTL; do
9990
9991
  acl_save_prefix="$prefix"
9992
  prefix="$acl_final_prefix"
9993
  acl_save_exec_prefix="$exec_prefix"
9994
  exec_prefix="$acl_final_exec_prefix"
9995
  eval x=\"$x\"
9996
  exec_prefix="$acl_save_exec_prefix"
9997
  prefix="$acl_save_prefix"
9998
9999
                          if test "X$x" = "X-L$additional_libdir"; then
10000
                            haveit=yes
10001
                            break
10002
                          fi
10003
                        done
10004
                        if test -z "$haveit"; then
10005
                          if test -d "$additional_libdir"; then
10006
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10007
                          fi
10008
                        fi
10009
                        haveit=
10010
                        for x in $LDFLAGS $LTLIBINTL; do
10011
10012
  acl_save_prefix="$prefix"
10013
  prefix="$acl_final_prefix"
10014
  acl_save_exec_prefix="$exec_prefix"
10015
  exec_prefix="$acl_final_exec_prefix"
10016
  eval x=\"$x\"
10017
  exec_prefix="$acl_save_exec_prefix"
10018
  prefix="$acl_save_prefix"
10019
10020
                          if test "X$x" = "X-L$additional_libdir"; then
10021
                            haveit=yes
10022
                            break
10023
                          fi
10024
                        done
10025
                        if test -z "$haveit"; then
10026
                          if test -d "$additional_libdir"; then
10027
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10028
                          fi
10029
                        fi
10030
                      fi
10031
                    fi
10032
                    ;;
10033
                  -R*)
10034
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10035
                    if test "$enable_rpath" != no; then
10036
                                                                  haveit=
10037
                      for x in $rpathdirs; do
10038
                        if test "X$x" = "X$dir"; then
10039
                          haveit=yes
10040
                          break
10041
                        fi
10042
                      done
10043
                      if test -z "$haveit"; then
10044
                        rpathdirs="$rpathdirs $dir"
10045
                      fi
10046
                                                                  haveit=
10047
                      for x in $ltrpathdirs; do
10048
                        if test "X$x" = "X$dir"; then
10049
                          haveit=yes
10050
                          break
10051
                        fi
10052
                      done
10053
                      if test -z "$haveit"; then
10054
                        ltrpathdirs="$ltrpathdirs $dir"
10055
                      fi
10056
                    fi
10057
                    ;;
10058
                  -l*)
10059
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10060
                    ;;
10061
                  *.la)
10062
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10063
                    ;;
10064
                  *)
10065
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10066
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10067
                    ;;
10068
                esac
10069
              done
10070
            fi
10071
          else
10072
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10073
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10074
          fi
10075
        fi
10076
      fi
10077
    done
10078
  done
10079
  if test "X$rpathdirs" != "X"; then
10080
    if test -n "$acl_hardcode_libdir_separator"; then
10081
                        alldirs=
10082
      for found_dir in $rpathdirs; do
10083
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10084
      done
10085
            acl_save_libdir="$libdir"
10086
      libdir="$alldirs"
10087
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
10088
      libdir="$acl_save_libdir"
10089
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10090
    else
10091
            for found_dir in $rpathdirs; do
10092
        acl_save_libdir="$libdir"
10093
        libdir="$found_dir"
10094
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
10095
        libdir="$acl_save_libdir"
10096
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10097
      done
10098
    fi
10099
  fi
10100
  if test "X$ltrpathdirs" != "X"; then
10101
            for found_dir in $ltrpathdirs; do
10102
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10103
    done
10104
  fi
10105
10106
10107
10108
10109
10110
10111
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10112
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10113
if eval \${$gt_func_gnugettext_libintl+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10114
  $as_echo_n "(cached) " >&6
10115
else
10116
  gt_save_CPPFLAGS="$CPPFLAGS"
10117
            CPPFLAGS="$CPPFLAGS $INCINTL"
10118
            gt_save_LIBS="$LIBS"
10119
            LIBS="$LIBS $LIBINTL"
10120
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121
/* end confdefs.h.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10122
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10123
#include <libintl.h>
10124
$gt_revision_test_code
10125
extern int _nl_msg_cat_cntr;
10126
extern
10127
#ifdef __cplusplus
10128
"C"
10129
#endif
10130
const char *_nl_expand_alias (const char *);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10131
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10132
int
10133
main (void)
10134
{
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10135
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10136
bindtextdomain ("", "");
10137
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10138
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10139
  ;
10140
  return 0;
10141
}
10142
_ACEOF
10143
if ac_fn_c_try_link "$LINENO"; then :
10144
  eval "$gt_func_gnugettext_libintl=yes"
10145
else
10146
  eval "$gt_func_gnugettext_libintl=no"
10147
fi
10148
rm -f core conftest.err conftest.$ac_objext \
10149
    conftest$ac_exeext conftest.$ac_ext
10150
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10151
              LIBS="$LIBS $LIBICONV"
10152
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153
/* end confdefs.h.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10154
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10155
#include <libintl.h>
10156
$gt_revision_test_code
10157
extern int _nl_msg_cat_cntr;
10158
extern
10159
#ifdef __cplusplus
10160
"C"
10161
#endif
10162
const char *_nl_expand_alias (const char *);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10163
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10164
int
10165
main (void)
10166
{
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10167
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10168
bindtextdomain ("", "");
10169
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10170
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10171
  ;
10172
  return 0;
10173
}
10174
_ACEOF
10175
if ac_fn_c_try_link "$LINENO"; then :
10176
  LIBINTL="$LIBINTL $LIBICONV"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10177
                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10178
                 eval "$gt_func_gnugettext_libintl=yes"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10179
10180
fi
10181
rm -f core conftest.err conftest.$ac_objext \
10182
    conftest$ac_exeext conftest.$ac_ext
10183
            fi
10184
            CPPFLAGS="$gt_save_CPPFLAGS"
10185
            LIBS="$gt_save_LIBS"
10186
fi
10187
eval ac_res=\$$gt_func_gnugettext_libintl
10188
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10189
$as_echo "$ac_res" >&6; }
10190
        fi
10191
10192
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10193
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10194
                && test "$PACKAGE" != gettext-runtime \
10195
                && test "$PACKAGE" != gettext-tools; }; then
10196
          gt_use_preinstalled_gnugettext=yes
10197
        else
10198
                    LIBINTL=
10199
          LTLIBINTL=
10200
          INCINTL=
10201
        fi
10202
10203
10204
10205
    if test -n "$INTL_MACOSX_LIBS"; then
10206
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
10207
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
10208
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10209
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10210
      fi
10211
    fi
10212
10213
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
10214
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
10215
10216
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
10217
10218
    else
10219
      USE_NLS=no
10220
    fi
10221
  fi
10222
10223
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10224
$as_echo_n "checking whether to use NLS... " >&6; }
10225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10226
$as_echo "$USE_NLS" >&6; }
10227
  if test "$USE_NLS" = "yes"; then
10228
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10229
$as_echo_n "checking where the gettext function comes from... " >&6; }
10230
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10231
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10232
        gt_source="external libintl"
10233
      else
10234
        gt_source="libc"
10235
      fi
10236
    else
10237
      gt_source="included intl directory"
10238
    fi
10239
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10240
$as_echo "$gt_source" >&6; }
10241
  fi
10242
10243
  if test "$USE_NLS" = "yes"; then
10244
10245
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10246
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10247
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10248
$as_echo_n "checking how to link with libintl... " >&6; }
10249
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10250
$as_echo "$LIBINTL" >&6; }
10251
10252
  for element in $INCINTL; do
10253
    haveit=
10254
    for x in $CPPFLAGS; do
10255
10256
  acl_save_prefix="$prefix"
10257
  prefix="$acl_final_prefix"
10258
  acl_save_exec_prefix="$exec_prefix"
10259
  exec_prefix="$acl_final_exec_prefix"
10260
  eval x=\"$x\"
10261
  exec_prefix="$acl_save_exec_prefix"
10262
  prefix="$acl_save_prefix"
10263
10264
      if test "X$x" = "X$element"; then
10265
        haveit=yes
10266
        break
10267
      fi
10268
    done
10269
    if test -z "$haveit"; then
10270
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10271
    fi
10272
  done
10273
10274
      fi
10275
10276
10277
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10278
10279
10280
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10281
10282
    fi
10283
10284
        POSUB=po
10285
  fi
10286
10287
10288
10289
    INTLLIBS="$LIBINTL"
10290
10291
10292
10293
10294
10295
10296
# Check whether --enable-largefile was given.
10297
if test "${enable_largefile+set}" = set; then :
10298
  enableval=$enable_largefile;
10299
fi
10300
10301
if test "$enable_largefile" != no; then
10302
10303
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10304
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10305
if ${ac_cv_sys_largefile_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10306
  $as_echo_n "(cached) " >&6
10307
else
10308
  ac_cv_sys_largefile_CC=no
10309
     if test "$GCC" != yes; then
10310
       ac_save_CC=$CC
10311
       while :; do
10312
	 # IRIX 6.2 and later do not support large files by default,
10313
	 # so use the C compiler's -n32 option if that helps.
10314
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315
/* end confdefs.h.  */
10316
#include <sys/types.h>
10317
 /* Check that off_t can represent 2**63 - 1 correctly.
10318
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10319
    since some C++ compilers masquerading as C compilers
10320
    incorrectly reject 9223372036854775807.  */
10321
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10322
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10323
		       && LARGE_OFF_T % 2147483647 == 1)
10324
		      ? 1 : -1];
10325
int
10326
main (void)
10327
{
10328
10329
  ;
10330
  return 0;
10331
}
10332
_ACEOF
10333
	 if ac_fn_c_try_compile "$LINENO"; then :
10334
  break
10335
fi
10336
rm -f core conftest.err conftest.$ac_objext
10337
	 CC="$CC -n32"
10338
	 if ac_fn_c_try_compile "$LINENO"; then :
10339
  ac_cv_sys_largefile_CC=' -n32'; break
10340
fi
10341
rm -f core conftest.err conftest.$ac_objext
10342
	 break
10343
       done
10344
       CC=$ac_save_CC
10345
       rm -f conftest.$ac_ext
10346
    fi
10347
fi
10348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10349
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10350
  if test "$ac_cv_sys_largefile_CC" != no; then
10351
    CC=$CC$ac_cv_sys_largefile_CC
10352
  fi
10353
10354
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10355
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10356
if ${ac_cv_sys_file_offset_bits+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10357
  $as_echo_n "(cached) " >&6
10358
else
10359
  while :; do
10360
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361
/* end confdefs.h.  */
10362
#include <sys/types.h>
10363
 /* Check that off_t can represent 2**63 - 1 correctly.
10364
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10365
    since some C++ compilers masquerading as C compilers
10366
    incorrectly reject 9223372036854775807.  */
10367
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10368
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10369
		       && LARGE_OFF_T % 2147483647 == 1)
10370
		      ? 1 : -1];
10371
int
10372
main (void)
10373
{
10374
10375
  ;
10376
  return 0;
10377
}
10378
_ACEOF
10379
if ac_fn_c_try_compile "$LINENO"; then :
10380
  ac_cv_sys_file_offset_bits=no; break
10381
fi
10382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384
/* end confdefs.h.  */
10385
#define _FILE_OFFSET_BITS 64
10386
#include <sys/types.h>
10387
 /* Check that off_t can represent 2**63 - 1 correctly.
10388
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10389
    since some C++ compilers masquerading as C compilers
10390
    incorrectly reject 9223372036854775807.  */
10391
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10392
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10393
		       && LARGE_OFF_T % 2147483647 == 1)
10394
		      ? 1 : -1];
10395
int
10396
main (void)
10397
{
10398
10399
  ;
10400
  return 0;
10401
}
10402
_ACEOF
10403
if ac_fn_c_try_compile "$LINENO"; then :
10404
  ac_cv_sys_file_offset_bits=64; break
10405
fi
10406
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407
  ac_cv_sys_file_offset_bits=unknown
10408
  break
10409
done
10410
fi
10411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10412
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10413
case $ac_cv_sys_file_offset_bits in #(
10414
  no | unknown) ;;
10415
  *)
10416
cat >>confdefs.h <<_ACEOF
10417
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10418
_ACEOF
10419
;;
10420
esac
10421
rm -rf conftest*
10422
  if test $ac_cv_sys_file_offset_bits = unknown; then
10423
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10424
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10425
if ${ac_cv_sys_large_files+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10426
  $as_echo_n "(cached) " >&6
10427
else
10428
  while :; do
10429
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430
/* end confdefs.h.  */
10431
#include <sys/types.h>
10432
 /* Check that off_t can represent 2**63 - 1 correctly.
10433
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10434
    since some C++ compilers masquerading as C compilers
10435
    incorrectly reject 9223372036854775807.  */
10436
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10437
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10438
		       && LARGE_OFF_T % 2147483647 == 1)
10439
		      ? 1 : -1];
10440
int
10441
main (void)
10442
{
10443
10444
  ;
10445
  return 0;
10446
}
10447
_ACEOF
10448
if ac_fn_c_try_compile "$LINENO"; then :
10449
  ac_cv_sys_large_files=no; break
10450
fi
10451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453
/* end confdefs.h.  */
10454
#define _LARGE_FILES 1
10455
#include <sys/types.h>
10456
 /* Check that off_t can represent 2**63 - 1 correctly.
10457
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10458
    since some C++ compilers masquerading as C compilers
10459
    incorrectly reject 9223372036854775807.  */
10460
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10461
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10462
		       && LARGE_OFF_T % 2147483647 == 1)
10463
		      ? 1 : -1];
10464
int
10465
main (void)
10466
{
10467
10468
  ;
10469
  return 0;
10470
}
10471
_ACEOF
10472
if ac_fn_c_try_compile "$LINENO"; then :
10473
  ac_cv_sys_large_files=1; break
10474
fi
10475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476
  ac_cv_sys_large_files=unknown
10477
  break
10478
done
10479
fi
10480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10481
$as_echo "$ac_cv_sys_large_files" >&6; }
10482
case $ac_cv_sys_large_files in #(
10483
  no | unknown) ;;
10484
  *)
10485
cat >>confdefs.h <<_ACEOF
10486
#define _LARGE_FILES $ac_cv_sys_large_files
10487
_ACEOF
10488
;;
10489
esac
10490
rm -rf conftest*
10491
  fi
1.15.16 by Colin Watson
Import upstream version 2.00
10492
10493
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10494
fi
10495
10496
10497
# Identify characteristics of the host architecture.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
10498
unset ac_cv_c_bigendian
10499
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
10500
if test x"$target_cpu-$platform" = xsparc64-emu ; then
10501
  CFLAGS="$CFLAGS -m64"
10502
  HOST_CFLAGS="$HOST_CFLAGS -m64"
10503
fi
10504
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10505
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10506
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10507
if ${ac_cv_c_bigendian+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10508
  $as_echo_n "(cached) " >&6
10509
else
10510
  ac_cv_c_bigendian=unknown
10511
    # See if we're dealing with a universal compiler.
10512
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513
/* end confdefs.h.  */
10514
#ifndef __APPLE_CC__
10515
	       not a universal capable compiler
10516
	     #endif
10517
	     typedef int dummy;
10518
10519
_ACEOF
10520
if ac_fn_c_try_compile "$LINENO"; then :
10521
10522
	# Check for potential -arch flags.  It is not universal unless
10523
	# there are at least two -arch flags with different values.
10524
	ac_arch=
10525
	ac_prev=
10526
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10527
	 if test -n "$ac_prev"; then
10528
	   case $ac_word in
10529
	     i?86 | x86_64 | ppc | ppc64)
10530
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10531
		 ac_arch=$ac_word
10532
	       else
10533
		 ac_cv_c_bigendian=universal
10534
		 break
10535
	       fi
10536
	       ;;
10537
	   esac
10538
	   ac_prev=
10539
	 elif test "x$ac_word" = "x-arch"; then
10540
	   ac_prev=arch
10541
	 fi
10542
       done
10543
fi
10544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545
    if test $ac_cv_c_bigendian = unknown; then
10546
      # See if sys/param.h defines the BYTE_ORDER macro.
10547
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548
/* end confdefs.h.  */
10549
#include <sys/types.h>
10550
	     #include <sys/param.h>
10551
10552
int
10553
main (void)
10554
{
10555
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10556
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10557
		     && LITTLE_ENDIAN)
10558
	      bogus endian macros
10559
	     #endif
10560
10561
  ;
10562
  return 0;
10563
}
10564
_ACEOF
10565
if ac_fn_c_try_compile "$LINENO"; then :
10566
  # It does; now see whether it defined to BIG_ENDIAN or not.
10567
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568
/* end confdefs.h.  */
10569
#include <sys/types.h>
10570
		#include <sys/param.h>
10571
10572
int
10573
main (void)
10574
{
10575
#if BYTE_ORDER != BIG_ENDIAN
10576
		 not big endian
10577
		#endif
10578
10579
  ;
10580
  return 0;
10581
}
10582
_ACEOF
10583
if ac_fn_c_try_compile "$LINENO"; then :
10584
  ac_cv_c_bigendian=yes
10585
else
10586
  ac_cv_c_bigendian=no
10587
fi
10588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589
fi
10590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591
    fi
10592
    if test $ac_cv_c_bigendian = unknown; then
10593
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10594
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595
/* end confdefs.h.  */
10596
#include <limits.h>
10597
10598
int
10599
main (void)
10600
{
10601
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10602
	      bogus endian macros
10603
	     #endif
10604
10605
  ;
10606
  return 0;
10607
}
10608
_ACEOF
10609
if ac_fn_c_try_compile "$LINENO"; then :
10610
  # It does; now see whether it defined to _BIG_ENDIAN or not.
10611
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612
/* end confdefs.h.  */
10613
#include <limits.h>
10614
10615
int
10616
main (void)
10617
{
10618
#ifndef _BIG_ENDIAN
10619
		 not big endian
10620
		#endif
10621
10622
  ;
10623
  return 0;
10624
}
10625
_ACEOF
10626
if ac_fn_c_try_compile "$LINENO"; then :
10627
  ac_cv_c_bigendian=yes
10628
else
10629
  ac_cv_c_bigendian=no
10630
fi
10631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632
fi
10633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634
    fi
10635
    if test $ac_cv_c_bigendian = unknown; then
10636
      # Compile a test program.
10637
      if test "$cross_compiling" = yes; then :
10638
  # Try to guess by grepping values from an object file.
10639
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640
/* end confdefs.h.  */
10641
short int ascii_mm[] =
10642
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10643
		short int ascii_ii[] =
10644
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10645
		int use_ascii (int i) {
10646
		  return ascii_mm[i] + ascii_ii[i];
10647
		}
10648
		short int ebcdic_ii[] =
10649
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10650
		short int ebcdic_mm[] =
10651
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10652
		int use_ebcdic (int i) {
10653
		  return ebcdic_mm[i] + ebcdic_ii[i];
10654
		}
10655
		extern int foo;
10656
10657
int
10658
main (void)
10659
{
10660
return use_ascii (foo) == use_ebcdic (foo);
10661
  ;
10662
  return 0;
10663
}
10664
_ACEOF
10665
if ac_fn_c_try_compile "$LINENO"; then :
10666
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10667
	      ac_cv_c_bigendian=yes
10668
	    fi
10669
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10670
	      if test "$ac_cv_c_bigendian" = unknown; then
10671
		ac_cv_c_bigendian=no
10672
	      else
10673
		# finding both strings is unlikely to happen, but who knows?
10674
		ac_cv_c_bigendian=unknown
10675
	      fi
10676
	    fi
10677
fi
10678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679
else
10680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681
/* end confdefs.h.  */
10682
$ac_includes_default
10683
int
10684
main (void)
10685
{
10686
10687
	     /* Are we little or big endian?  From Harbison&Steele.  */
10688
	     union
10689
	     {
10690
	       long int l;
10691
	       char c[sizeof (long int)];
10692
	     } u;
10693
	     u.l = 1;
10694
	     return u.c[sizeof (long int) - 1] == 1;
10695
10696
  ;
10697
  return 0;
10698
}
10699
_ACEOF
10700
if ac_fn_c_try_run "$LINENO"; then :
10701
  ac_cv_c_bigendian=no
10702
else
10703
  ac_cv_c_bigendian=yes
10704
fi
10705
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10706
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10707
fi
10708
10709
    fi
10710
fi
10711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10712
$as_echo "$ac_cv_c_bigendian" >&6; }
10713
 case $ac_cv_c_bigendian in #(
10714
   yes)
10715
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10716
;; #(
10717
   no)
10718
      ;; #(
10719
   universal)
10720
10721
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10722
10723
     ;; #(
10724
   *)
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
10725
     as_fn_error $? "unknown endianness
1.15.15 by Colin Watson
Import upstream version 1.99
10726
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10727
 esac
10728
10729
# The cast to long int works around a bug in the HP C Compiler
10730
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10731
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10732
# This bug is HP SR number 8606223364.
10733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10734
$as_echo_n "checking size of void *... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10735
if ${ac_cv_sizeof_void_p+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10736
  $as_echo_n "(cached) " >&6
10737
else
10738
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
10739
10740
else
10741
  if test "$ac_cv_type_void_p" = yes; then
10742
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10743
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
10744
as_fn_error 77 "cannot compute sizeof (void *)
1.15.15 by Colin Watson
Import upstream version 1.99
10745
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10746
   else
10747
     ac_cv_sizeof_void_p=0
10748
   fi
10749
fi
10750
10751
fi
10752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10753
$as_echo "$ac_cv_sizeof_void_p" >&6; }
10754
10755
10756
10757
cat >>confdefs.h <<_ACEOF
10758
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10759
_ACEOF
10760
10761
10762
# The cast to long int works around a bug in the HP C Compiler
10763
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10764
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10765
# This bug is HP SR number 8606223364.
10766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10767
$as_echo_n "checking size of long... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10768
if ${ac_cv_sizeof_long+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10769
  $as_echo_n "(cached) " >&6
10770
else
10771
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10772
10773
else
10774
  if test "$ac_cv_type_long" = yes; then
10775
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10776
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
10777
as_fn_error 77 "cannot compute sizeof (long)
1.15.15 by Colin Watson
Import upstream version 1.99
10778
See \`config.log' for more details" "$LINENO" 5; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10779
   else
10780
     ac_cv_sizeof_long=0
10781
   fi
10782
fi
10783
10784
fi
10785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10786
$as_echo "$ac_cv_sizeof_long" >&6; }
10787
10788
10789
10790
cat >>confdefs.h <<_ACEOF
10791
#define SIZEOF_LONG $ac_cv_sizeof_long
10792
_ACEOF
10793
10794
10795
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
10796
case "$host_os" in
10797
  cygwin | windows* | mingw32*)
10798
     HOST_CPPFLAGS="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10799
     CPPFLAGS="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10800
     # The cast to long int works around a bug in the HP C Compiler
10801
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10802
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10803
# This bug is HP SR number 8606223364.
10804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
10805
$as_echo_n "checking size of TCHAR... " >&6; }
10806
if ${ac_cv_sizeof_TCHAR+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10807
  $as_echo_n "(cached) " >&6
10808
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
10809
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR"        "#include <windows.h>
10810
"; then :
10811
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10812
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
10813
  if test "$ac_cv_type_TCHAR" = yes; then
10814
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10815
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10816
as_fn_error 77 "cannot compute sizeof (TCHAR)
10817
See \`config.log' for more details" "$LINENO" 5; }
10818
   else
10819
     ac_cv_sizeof_TCHAR=0
10820
   fi
10821
fi
10822
10823
fi
10824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
10825
$as_echo "$ac_cv_sizeof_TCHAR" >&6; }
10826
10827
10828
10829
cat >>confdefs.h <<_ACEOF
10830
#define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
10831
_ACEOF
10832
10833
10834
   ;;
10835
esac
1.15.16 by Colin Watson
Import upstream version 2.00
10836
10837
if test x$USE_NLS = xno; then
10838
  HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10839
fi
10840
10841
if test "x$cross_compiling" = xyes; then
10842
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
10843
$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
10844
else
10845
  # Extract the first word of "help2man", so it can be a program name with args.
10846
set dummy help2man; ac_word=$2
10847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10849
if ${ac_cv_path_HELP2MAN+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10850
  $as_echo_n "(cached) " >&6
10851
else
10852
  case $HELP2MAN in
10853
  [\\/]* | ?:[\\/]*)
10854
  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
10855
  ;;
10856
  *)
10857
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858
for as_dir in $PATH
10859
do
10860
  IFS=$as_save_IFS
10861
  test -z "$as_dir" && as_dir=.
10862
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
10863
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10864
    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
10865
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866
    break 2
10867
  fi
10868
done
10869
  done
10870
IFS=$as_save_IFS
10871
10872
  ;;
10873
esac
10874
fi
10875
HELP2MAN=$ac_cv_path_HELP2MAN
10876
if test -n "$HELP2MAN"; then
10877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
10878
$as_echo "$HELP2MAN" >&6; }
10879
else
10880
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881
$as_echo "no" >&6; }
10882
fi
10883
10884
10885
fi
10886
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
10887
# Check for functions and headers.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
10888
for ac_func in posix_memalign memalign getextmntent
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
10889
do :
10890
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10891
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
10892
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
10893
  cat >>confdefs.h <<_ACEOF
10894
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10895
_ACEOF
10896
10897
fi
10898
done
10899
1.15.16 by Colin Watson
Import upstream version 2.00
10900
for ac_header in sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10901
do :
10902
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10903
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
10904
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10905
  cat >>confdefs.h <<_ACEOF
10906
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10907
_ACEOF
10908
10909
fi
10910
10911
done
10912
10913
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10914
ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
10915
#include <sys/param.h>
10916
#include <sys/mount.h>
10917
"
1.15.15 by Colin Watson
Import upstream version 1.99
10918
if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10919
10920
cat >>confdefs.h <<_ACEOF
10921
#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
10922
_ACEOF
10923
10924
10925
fi
10926
10927
10928
ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
10929
#include <sys/param.h>
10930
#include <sys/mount.h>
10931
"
1.15.15 by Colin Watson
Import upstream version 1.99
10932
if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
10933
10934
cat >>confdefs.h <<_ACEOF
10935
#define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
10936
_ACEOF
10937
10938
10939
fi
10940
10941
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10942
# For opendisk() and getrawpartition() on NetBSD.
10943
# Used in util/deviceiter.c and in util/hostdisk.c.
10944
ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
10945
if test "x$ac_cv_header_util_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10946
10947
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
10948
$as_echo_n "checking for opendisk in -lutil... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10949
if ${ac_cv_lib_util_opendisk+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10950
  $as_echo_n "(cached) " >&6
10951
else
10952
  ac_check_lib_save_LIBS=$LIBS
10953
LIBS="-lutil  $LIBS"
10954
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955
/* end confdefs.h.  */
10956
10957
/* Override any GCC internal prototype to avoid an error.
10958
   Use char because int might match the return type of a GCC
10959
   builtin and then its argument prototype would still apply.  */
10960
#ifdef __cplusplus
10961
extern "C"
10962
#endif
10963
char opendisk ();
10964
int
10965
main (void)
10966
{
10967
return opendisk ();
10968
  ;
10969
  return 0;
10970
}
10971
_ACEOF
10972
if ac_fn_c_try_link "$LINENO"; then :
10973
  ac_cv_lib_util_opendisk=yes
10974
else
10975
  ac_cv_lib_util_opendisk=no
10976
fi
10977
rm -f core conftest.err conftest.$ac_objext \
10978
    conftest$ac_exeext conftest.$ac_ext
10979
LIBS=$ac_check_lib_save_LIBS
10980
fi
10981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
10982
$as_echo "$ac_cv_lib_util_opendisk" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10983
if test "x$ac_cv_lib_util_opendisk" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10984
10985
    LIBUTIL="-lutil"
10986
10987
$as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
10988
10989
10990
fi
10991
10992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
10993
$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
10994
if ${ac_cv_lib_util_getrawpartition+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
10995
  $as_echo_n "(cached) " >&6
10996
else
10997
  ac_check_lib_save_LIBS=$LIBS
10998
LIBS="-lutil  $LIBS"
10999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000
/* end confdefs.h.  */
11001
11002
/* Override any GCC internal prototype to avoid an error.
11003
   Use char because int might match the return type of a GCC
11004
   builtin and then its argument prototype would still apply.  */
11005
#ifdef __cplusplus
11006
extern "C"
11007
#endif
11008
char getrawpartition ();
11009
int
11010
main (void)
11011
{
11012
return getrawpartition ();
11013
  ;
11014
  return 0;
11015
}
11016
_ACEOF
11017
if ac_fn_c_try_link "$LINENO"; then :
11018
  ac_cv_lib_util_getrawpartition=yes
11019
else
11020
  ac_cv_lib_util_getrawpartition=no
11021
fi
11022
rm -f core conftest.err conftest.$ac_objext \
11023
    conftest$ac_exeext conftest.$ac_ext
11024
LIBS=$ac_check_lib_save_LIBS
11025
fi
11026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
11027
$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11028
if test "x$ac_cv_lib_util_getrawpartition" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
11029
11030
    LIBUTIL="-lutil"
11031
11032
$as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
11033
11034
11035
fi
11036
11037
11038
fi
11039
11040
11041
11042
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
11044
$as_echo_n "checking whether -Wtrampolines work... " >&6; }
11045
if ${grub_cv_host_cc_wtrampolines+:} false; then :
11046
  $as_echo_n "(cached) " >&6
11047
else
11048
11049
  SAVED_CFLAGS="$CFLAGS"
11050
  CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror"
11051
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052
/* end confdefs.h.  */
11053
#include <stdarg.h>
11054
int va_arg_func (int fixed, va_list args);
11055
int
11056
main (void)
11057
{
11058
11059
  ;
11060
  return 0;
11061
}
11062
_ACEOF
11063
if ac_fn_c_try_compile "$LINENO"; then :
11064
  grub_cv_host_cc_wtrampolines=yes
11065
else
11066
  grub_cv_host_cc_wtrampolines=no
11067
fi
11068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069
  CFLAGS="$SAVED_CFLAGS"
11070
11071
fi
11072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
11073
$as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
11074
11075
if test x"$grub_host_cv_cc_wtrampolines" = xyes ; then
11076
  HOST_CFLAGS="$HOST_CFLAGS -Wtrampolines"
11077
fi
11078
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
11079
#
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11080
# Check for host and build compilers.
11081
#
11082
HOST_CC=$CC
11083
for ac_prog in gcc egcs cc
11084
do
11085
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11086
set dummy $ac_prog; ac_word=$2
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11089
if ${ac_cv_prog_BUILD_CC+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11090
  $as_echo_n "(cached) " >&6
11091
else
11092
  if test -n "$BUILD_CC"; then
11093
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11094
else
11095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096
for as_dir in $PATH
11097
do
11098
  IFS=$as_save_IFS
11099
  test -z "$as_dir" && as_dir=.
11100
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
11101
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11102
    ac_cv_prog_BUILD_CC="$ac_prog"
11103
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104
    break 2
11105
  fi
11106
done
11107
  done
11108
IFS=$as_save_IFS
11109
11110
fi
11111
fi
11112
BUILD_CC=$ac_cv_prog_BUILD_CC
11113
if test -n "$BUILD_CC"; then
11114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11115
$as_echo "$BUILD_CC" >&6; }
11116
else
11117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118
$as_echo "no" >&6; }
11119
fi
11120
11121
11122
  test -n "$BUILD_CC" && break
11123
done
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11124
11125
test -z "$BUILD_CC" && as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
11126
BUILD_CPP="$BUILD_CC -E"
11127
11128
case "$build_os" in
11129
  haiku*)				BUILD_LIBM= ;;
11130
  *) 					BUILD_LIBM=-lm ;;
11131
esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11132
# For gnulib.
11133
11134
11135
11136
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11137
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11138
          LIBC_FATAL_STDERR_=1
11139
  export LIBC_FATAL_STDERR_
11140
1.15.15 by Colin Watson
Import upstream version 1.99
11141
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11142
if test "x$ac_cv_type_size_t" = xyes; then :
11143
11144
else
11145
11146
cat >>confdefs.h <<_ACEOF
11147
#define size_t unsigned int
11148
_ACEOF
11149
11150
fi
11151
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11152
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11153
# for constant arguments.  Useless!
11154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11155
$as_echo_n "checking for working alloca.h... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11156
if ${ac_cv_working_alloca_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11157
  $as_echo_n "(cached) " >&6
11158
else
11159
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160
/* end confdefs.h.  */
11161
#include <alloca.h>
11162
int
11163
main (void)
11164
{
11165
char *p = (char *) alloca (2 * sizeof (int));
11166
			  if (p) return 0;
11167
  ;
11168
  return 0;
11169
}
11170
_ACEOF
11171
if ac_fn_c_try_link "$LINENO"; then :
11172
  ac_cv_working_alloca_h=yes
11173
else
11174
  ac_cv_working_alloca_h=no
11175
fi
11176
rm -f core conftest.err conftest.$ac_objext \
11177
    conftest$ac_exeext conftest.$ac_ext
11178
fi
11179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11180
$as_echo "$ac_cv_working_alloca_h" >&6; }
11181
if test $ac_cv_working_alloca_h = yes; then
11182
11183
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11184
11185
fi
11186
11187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11188
$as_echo_n "checking for alloca... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11189
if ${ac_cv_func_alloca_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11190
  $as_echo_n "(cached) " >&6
11191
else
11192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193
/* end confdefs.h.  */
11194
#ifdef __GNUC__
11195
# define alloca __builtin_alloca
11196
#else
11197
# ifdef _MSC_VER
11198
#  include <malloc.h>
11199
#  define alloca _alloca
11200
# else
11201
#  ifdef HAVE_ALLOCA_H
11202
#   include <alloca.h>
11203
#  else
11204
#   ifdef _AIX
11205
 #pragma alloca
11206
#   else
11207
#    ifndef alloca /* predefined by HP cc +Olibcalls */
1.15.15 by Colin Watson
Import upstream version 1.99
11208
void *alloca (size_t);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11209
#    endif
11210
#   endif
11211
#  endif
11212
# endif
11213
#endif
11214
11215
int
11216
main (void)
11217
{
11218
char *p = (char *) alloca (1);
11219
				    if (p) return 0;
11220
  ;
11221
  return 0;
11222
}
11223
_ACEOF
11224
if ac_fn_c_try_link "$LINENO"; then :
11225
  ac_cv_func_alloca_works=yes
11226
else
11227
  ac_cv_func_alloca_works=no
11228
fi
11229
rm -f core conftest.err conftest.$ac_objext \
11230
    conftest$ac_exeext conftest.$ac_ext
11231
fi
11232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11233
$as_echo "$ac_cv_func_alloca_works" >&6; }
11234
11235
if test $ac_cv_func_alloca_works = yes; then
11236
11237
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11238
11239
else
11240
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11241
# that cause trouble.  Some versions do not even contain alloca or
11242
# contain a buggy version.  If you still want to use their alloca,
11243
# use ar to extract alloca.o from them instead of compiling alloca.c.
11244
11245
11246
11247
11248
11249
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11250
11251
$as_echo "#define C_ALLOCA 1" >>confdefs.h
11252
11253
11254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11255
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11256
if ${ac_cv_os_cray+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11257
  $as_echo_n "(cached) " >&6
11258
else
11259
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260
/* end confdefs.h.  */
11261
#if defined CRAY && ! defined CRAY2
11262
webecray
11263
#else
11264
wenotbecray
11265
#endif
11266
11267
_ACEOF
11268
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11269
  $EGREP "webecray" >/dev/null 2>&1; then :
11270
  ac_cv_os_cray=yes
11271
else
11272
  ac_cv_os_cray=no
11273
fi
11274
rm -f conftest*
11275
11276
fi
11277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11278
$as_echo "$ac_cv_os_cray" >&6; }
11279
if test $ac_cv_os_cray = yes; then
11280
  for ac_func in _getb67 GETB67 getb67; do
11281
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11283
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11284
11285
cat >>confdefs.h <<_ACEOF
11286
#define CRAY_STACKSEG_END $ac_func
11287
_ACEOF
11288
11289
    break
11290
fi
11291
11292
  done
11293
fi
11294
11295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11296
$as_echo_n "checking stack direction for C alloca... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11297
if ${ac_cv_c_stack_direction+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11298
  $as_echo_n "(cached) " >&6
11299
else
11300
  if test "$cross_compiling" = yes; then :
11301
  ac_cv_c_stack_direction=0
11302
else
11303
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304
/* end confdefs.h.  */
11305
$ac_includes_default
11306
int
1.15.16 by Colin Watson
Import upstream version 2.00
11307
find_stack_direction (int *addr, int depth)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11308
{
1.15.16 by Colin Watson
Import upstream version 2.00
11309
  int dir, dummy = 0;
11310
  if (! addr)
11311
    addr = &dummy;
11312
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11313
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11314
  return dir + dummy;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11315
}
11316
11317
int
1.15.16 by Colin Watson
Import upstream version 2.00
11318
main (int argc, char **argv)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11319
{
1.15.16 by Colin Watson
Import upstream version 2.00
11320
  return find_stack_direction (0, argc + !argv + 20) < 0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11321
}
11322
_ACEOF
11323
if ac_fn_c_try_run "$LINENO"; then :
11324
  ac_cv_c_stack_direction=1
11325
else
11326
  ac_cv_c_stack_direction=-1
11327
fi
11328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11329
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11330
fi
11331
11332
fi
11333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11334
$as_echo "$ac_cv_c_stack_direction" >&6; }
11335
cat >>confdefs.h <<_ACEOF
11336
#define STACK_DIRECTION $ac_cv_c_stack_direction
11337
_ACEOF
11338
11339
11340
fi
11341
11342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11343
$as_echo_n "checking for inline... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11344
if ${ac_cv_c_inline+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11345
  $as_echo_n "(cached) " >&6
11346
else
11347
  ac_cv_c_inline=no
11348
for ac_kw in inline __inline__ __inline; do
11349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350
/* end confdefs.h.  */
11351
#ifndef __cplusplus
11352
typedef int foo_t;
11353
static $ac_kw foo_t static_foo () {return 0; }
11354
$ac_kw foo_t foo () {return 0; }
11355
#endif
11356
11357
_ACEOF
11358
if ac_fn_c_try_compile "$LINENO"; then :
11359
  ac_cv_c_inline=$ac_kw
11360
fi
11361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362
  test "$ac_cv_c_inline" != no && break
11363
done
11364
11365
fi
11366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11367
$as_echo "$ac_cv_c_inline" >&6; }
11368
11369
case $ac_cv_c_inline in
11370
  inline | yes) ;;
11371
  *)
11372
    case $ac_cv_c_inline in
11373
      no) ac_val=;;
11374
      *) ac_val=$ac_cv_c_inline;;
11375
    esac
11376
    cat >>confdefs.h <<_ACEOF
11377
#ifndef __cplusplus
11378
#define inline $ac_val
11379
#endif
11380
_ACEOF
11381
    ;;
11382
esac
11383
11384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11385
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11386
if ${ac_cv_c_restrict+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11387
  $as_echo_n "(cached) " >&6
11388
else
11389
  ac_cv_c_restrict=no
11390
   # The order here caters to the fact that C++ does not require restrict.
11391
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
11392
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393
/* end confdefs.h.  */
11394
typedef int * int_ptr;
11395
	int foo (int_ptr $ac_kw ip) {
11396
	return ip[0];
11397
       }
11398
int
11399
main (void)
11400
{
11401
int s[1];
11402
	int * $ac_kw t = s;
11403
	t[0] = 0;
11404
	return foo(t)
11405
  ;
11406
  return 0;
11407
}
11408
_ACEOF
11409
if ac_fn_c_try_compile "$LINENO"; then :
11410
  ac_cv_c_restrict=$ac_kw
11411
fi
11412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413
     test "$ac_cv_c_restrict" != no && break
11414
   done
11415
11416
fi
11417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11418
$as_echo "$ac_cv_c_restrict" >&6; }
11419
11420
 case $ac_cv_c_restrict in
11421
   restrict) ;;
11422
   no) $as_echo "#define restrict /**/" >>confdefs.h
11423
 ;;
11424
   *)  cat >>confdefs.h <<_ACEOF
11425
#define restrict $ac_cv_c_restrict
11426
_ACEOF
11427
 ;;
11428
 esac
11429
11430
ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11431
if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11432
  ac_have_decl=1
11433
else
11434
  ac_have_decl=0
11435
fi
11436
11437
cat >>confdefs.h <<_ACEOF
11438
#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
11439
_ACEOF
11440
11441
ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11442
if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11443
  ac_have_decl=1
11444
else
11445
  ac_have_decl=0
11446
fi
11447
11448
cat >>confdefs.h <<_ACEOF
11449
#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
11450
_ACEOF
11451
11452
ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11453
if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11454
  ac_have_decl=1
11455
else
11456
  ac_have_decl=0
11457
fi
11458
11459
cat >>confdefs.h <<_ACEOF
11460
#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
11461
_ACEOF
11462
11463
ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11464
if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11465
  ac_have_decl=1
11466
else
11467
  ac_have_decl=0
11468
fi
11469
11470
cat >>confdefs.h <<_ACEOF
11471
#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
11472
_ACEOF
11473
11474
ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11475
if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11476
  ac_have_decl=1
11477
else
11478
  ac_have_decl=0
11479
fi
11480
11481
cat >>confdefs.h <<_ACEOF
11482
#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
11483
_ACEOF
11484
11485
ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11486
if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11487
  ac_have_decl=1
11488
else
11489
  ac_have_decl=0
11490
fi
11491
11492
cat >>confdefs.h <<_ACEOF
11493
#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
11494
_ACEOF
11495
11496
ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11497
if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11498
  ac_have_decl=1
11499
else
11500
  ac_have_decl=0
11501
fi
11502
11503
cat >>confdefs.h <<_ACEOF
11504
#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
11505
_ACEOF
11506
11507
ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11508
if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11509
  ac_have_decl=1
11510
else
11511
  ac_have_decl=0
11512
fi
11513
11514
cat >>confdefs.h <<_ACEOF
11515
#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
11516
_ACEOF
11517
11518
ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11519
if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11520
  ac_have_decl=1
11521
else
11522
  ac_have_decl=0
11523
fi
11524
11525
cat >>confdefs.h <<_ACEOF
11526
#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
11527
_ACEOF
11528
11529
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11530
if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11531
  ac_have_decl=1
11532
else
11533
  ac_have_decl=0
11534
fi
11535
11536
cat >>confdefs.h <<_ACEOF
11537
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11538
_ACEOF
11539
11540
ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11541
if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11542
  ac_have_decl=1
11543
else
11544
  ac_have_decl=0
11545
fi
11546
11547
cat >>confdefs.h <<_ACEOF
11548
#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
11549
_ACEOF
11550
11551
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11552
if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11553
  ac_have_decl=1
11554
else
11555
  ac_have_decl=0
11556
fi
11557
11558
cat >>confdefs.h <<_ACEOF
11559
#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
11560
_ACEOF
11561
11562
ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
11563
if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11564
  ac_have_decl=1
11565
else
11566
  ac_have_decl=0
11567
fi
11568
11569
cat >>confdefs.h <<_ACEOF
11570
#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
11571
_ACEOF
11572
11573
11574
11575
11576
  for ac_func in $ac_func_list
11577
do :
11578
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11579
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11580
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11581
  cat >>confdefs.h <<_ACEOF
11582
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583
_ACEOF
11584
11585
fi
11586
done
11587
11588
11589
11590
11591
11592
11593
11594
11595
  for ac_header in $ac_header_list
11596
do :
11597
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11598
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11599
"
11600
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11601
  cat >>confdefs.h <<_ACEOF
11602
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603
_ACEOF
11604
11605
fi
11606
11607
done
11608
11609
11610
11611
11612
11613
11614
  XGETTEXT_EXTRA_OPTIONS=
11615
11616
11617
  GNULIB_BTOWC=0;
11618
  GNULIB_WCTOB=0;
11619
  GNULIB_MBSINIT=0;
11620
  GNULIB_MBRTOWC=0;
11621
  GNULIB_MBRLEN=0;
11622
  GNULIB_MBSRTOWCS=0;
11623
  GNULIB_MBSNRTOWCS=0;
11624
  GNULIB_WCRTOMB=0;
11625
  GNULIB_WCSRTOMBS=0;
11626
  GNULIB_WCSNRTOMBS=0;
11627
  GNULIB_WCWIDTH=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11628
  GNULIB_WMEMCHR=0;
11629
  GNULIB_WMEMCMP=0;
11630
  GNULIB_WMEMCPY=0;
11631
  GNULIB_WMEMMOVE=0;
11632
  GNULIB_WMEMSET=0;
11633
  GNULIB_WCSLEN=0;
11634
  GNULIB_WCSNLEN=0;
11635
  GNULIB_WCSCPY=0;
11636
  GNULIB_WCPCPY=0;
11637
  GNULIB_WCSNCPY=0;
11638
  GNULIB_WCPNCPY=0;
11639
  GNULIB_WCSCAT=0;
11640
  GNULIB_WCSNCAT=0;
11641
  GNULIB_WCSCMP=0;
11642
  GNULIB_WCSNCMP=0;
11643
  GNULIB_WCSCASECMP=0;
11644
  GNULIB_WCSNCASECMP=0;
11645
  GNULIB_WCSCOLL=0;
11646
  GNULIB_WCSXFRM=0;
11647
  GNULIB_WCSDUP=0;
11648
  GNULIB_WCSCHR=0;
11649
  GNULIB_WCSRCHR=0;
11650
  GNULIB_WCSCSPN=0;
11651
  GNULIB_WCSSPN=0;
11652
  GNULIB_WCSPBRK=0;
11653
  GNULIB_WCSSTR=0;
11654
  GNULIB_WCSTOK=0;
11655
  GNULIB_WCSWIDTH=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11656
    HAVE_BTOWC=1;
11657
  HAVE_MBSINIT=1;
11658
  HAVE_MBRTOWC=1;
11659
  HAVE_MBRLEN=1;
11660
  HAVE_MBSRTOWCS=1;
11661
  HAVE_MBSNRTOWCS=1;
11662
  HAVE_WCRTOMB=1;
11663
  HAVE_WCSRTOMBS=1;
11664
  HAVE_WCSNRTOMBS=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11665
  HAVE_WMEMCHR=1;
11666
  HAVE_WMEMCMP=1;
11667
  HAVE_WMEMCPY=1;
11668
  HAVE_WMEMMOVE=1;
11669
  HAVE_WMEMSET=1;
11670
  HAVE_WCSLEN=1;
11671
  HAVE_WCSNLEN=1;
11672
  HAVE_WCSCPY=1;
11673
  HAVE_WCPCPY=1;
11674
  HAVE_WCSNCPY=1;
11675
  HAVE_WCPNCPY=1;
11676
  HAVE_WCSCAT=1;
11677
  HAVE_WCSNCAT=1;
11678
  HAVE_WCSCMP=1;
11679
  HAVE_WCSNCMP=1;
11680
  HAVE_WCSCASECMP=1;
11681
  HAVE_WCSNCASECMP=1;
11682
  HAVE_WCSCOLL=1;
11683
  HAVE_WCSXFRM=1;
11684
  HAVE_WCSDUP=1;
11685
  HAVE_WCSCHR=1;
11686
  HAVE_WCSRCHR=1;
11687
  HAVE_WCSCSPN=1;
11688
  HAVE_WCSSPN=1;
11689
  HAVE_WCSPBRK=1;
11690
  HAVE_WCSSTR=1;
11691
  HAVE_WCSTOK=1;
11692
  HAVE_WCSWIDTH=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11693
  HAVE_DECL_WCTOB=1;
11694
  HAVE_DECL_WCWIDTH=1;
11695
  REPLACE_MBSTATE_T=0;
11696
  REPLACE_BTOWC=0;
11697
  REPLACE_WCTOB=0;
11698
  REPLACE_MBSINIT=0;
11699
  REPLACE_MBRTOWC=0;
11700
  REPLACE_MBRLEN=0;
11701
  REPLACE_MBSRTOWCS=0;
11702
  REPLACE_MBSNRTOWCS=0;
11703
  REPLACE_WCRTOMB=0;
11704
  REPLACE_WCSRTOMBS=0;
11705
  REPLACE_WCSNRTOMBS=0;
11706
  REPLACE_WCWIDTH=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11707
  REPLACE_WCSWIDTH=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11708
11709
11710
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11711
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11712
if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11713
  $as_echo_n "(cached) " >&6
11714
else
11715
  gl_cv_header_wchar_h_correct_inline=yes
11716
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717
/* end confdefs.h.  */
11718
11719
       #define wcstod renamed_wcstod
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11720
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11721
   <wchar.h>.
11722
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11723
   included before <wchar.h>.  */
11724
#include <stddef.h>
11725
#include <stdio.h>
11726
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11727
#include <wchar.h>
11728
extern int zero (void);
11729
int main () { return zero(); }
11730
11731
_ACEOF
11732
     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11733
  (eval $ac_compile) 2>&5
11734
  ac_status=$?
11735
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736
  test $ac_status = 0; }; then
11737
       mv conftest.$ac_objext conftest1.$ac_objext
11738
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739
/* end confdefs.h.  */
11740
11741
         #define wcstod renamed_wcstod
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11742
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11743
   <wchar.h>.
11744
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11745
   included before <wchar.h>.  */
11746
#include <stddef.h>
11747
#include <stdio.h>
11748
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11749
#include <wchar.h>
11750
int zero (void) { return 0; }
11751
11752
_ACEOF
11753
       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11754
  (eval $ac_compile) 2>&5
11755
  ac_status=$?
11756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757
  test $ac_status = 0; }; then
11758
         mv conftest.$ac_objext conftest2.$ac_objext
11759
         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11760
           :
11761
         else
11762
           gl_cv_header_wchar_h_correct_inline=no
11763
         fi
11764
       fi
11765
     fi
11766
     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11767
11768
fi
11769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11770
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11771
  if test $gl_cv_header_wchar_h_correct_inline = no; then
11772
    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11773
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11774
C99 mode. You have four options:
11775
  - Add the flag -fgnu89-inline to CC and reconfigure, or
11776
  - Fix your include files, using parts of
11777
    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11778
  - Use a gcc version older than 4.3, or
11779
  - Don't use the flags -std=c99 or -std=gnu99.
11780
Configuration aborted." "$LINENO" 5
11781
  fi
11782
11783
11784
11785
11786
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11787
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11788
if ${am_cv_langinfo_codeset+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11789
  $as_echo_n "(cached) " >&6
11790
else
11791
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792
/* end confdefs.h.  */
11793
#include <langinfo.h>
11794
int
11795
main (void)
11796
{
11797
char* cs = nl_langinfo(CODESET); return !cs;
11798
  ;
11799
  return 0;
11800
}
11801
_ACEOF
11802
if ac_fn_c_try_link "$LINENO"; then :
11803
  am_cv_langinfo_codeset=yes
11804
else
11805
  am_cv_langinfo_codeset=no
11806
fi
11807
rm -f core conftest.err conftest.$ac_objext \
11808
    conftest$ac_exeext conftest.$ac_ext
11809
11810
fi
11811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11812
$as_echo "$am_cv_langinfo_codeset" >&6; }
11813
  if test $am_cv_langinfo_codeset = yes; then
11814
11815
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11816
11817
  fi
11818
11819
11820
11821
11822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11823
$as_echo_n "checking for a traditional french locale... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11824
if ${gt_cv_locale_fr+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11825
  $as_echo_n "(cached) " >&6
11826
else
11827
11828
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829
/* end confdefs.h.  */
11830
11831
#include <locale.h>
11832
#include <time.h>
11833
#if HAVE_LANGINFO_CODESET
11834
# include <langinfo.h>
11835
#endif
11836
#include <stdlib.h>
11837
#include <string.h>
11838
struct tm t;
11839
char buf[16];
11840
int main () {
11841
  /* Check whether the given locale name is recognized by the system.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11842
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11843
  /* On native Windows, setlocale(category, "") looks at the system settings,
11844
     not at the environment variables.  Also, when an encoding suffix such
11845
     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11846
     category of the locale to "C".  */
11847
  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11848
      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11849
    return 1;
11850
#else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11851
  if (setlocale (LC_ALL, "") == NULL) return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11852
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11853
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11854
     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11855
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11856
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11857
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11858
     some unit tests fail.
11859
     On MirBSD 10, when an unsupported locale is specified, setlocale()
11860
     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11861
#if HAVE_LANGINFO_CODESET
11862
  {
11863
    const char *cs = nl_langinfo (CODESET);
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11864
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11865
        || strcmp (cs, "UTF-8") == 0)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11866
      return 1;
11867
  }
11868
#endif
11869
#ifdef __CYGWIN__
11870
  /* On Cygwin, avoid locale names without encoding suffix, because the
11871
     locale_charset() function relies on the encoding suffix.  Note that
11872
     LC_ALL is set on the command line.  */
11873
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11874
#endif
11875
  /* Check whether in the abbreviation of the second month, the second
11876
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11877
     one byte long. This excludes the UTF-8 encoding.  */
11878
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11879
  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11880
#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11881
  /* Check whether the decimal separator is a comma.
11882
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11883
     are nl_langinfo(RADIXCHAR) are both ".".  */
11884
  if (localeconv () ->decimal_point[0] != ',') return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11885
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11886
  return 0;
11887
}
11888
11889
_ACEOF
11890
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891
  (eval $ac_link) 2>&5
11892
  ac_status=$?
11893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11895
      case "$host_os" in
11896
        # Handle native Windows specially, because there setlocale() interprets
11897
        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11898
        # "fr" or "fra" as "French" or "French_France.1252",
11899
        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11900
        # "ja" as "Japanese" or "Japanese_Japan.932",
11901
        # and similar.
11902
        mingw*)
11903
          # Test for the native Windows locale name.
11904
          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11905
            gt_cv_locale_fr=French_France.1252
11906
          else
11907
            # None found.
11908
            gt_cv_locale_fr=none
11909
          fi
11910
          ;;
11911
        *)
11912
          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11913
          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11914
          # configure script would override the LC_ALL setting. Likewise for
11915
          # LC_CTYPE, which is also set at the beginning of the configure script.
11916
          # Test for the usual locale name.
11917
          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11918
            gt_cv_locale_fr=fr_FR
11919
          else
11920
            # Test for the locale name with explicit encoding suffix.
11921
            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11922
              gt_cv_locale_fr=fr_FR.ISO-8859-1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11923
            else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11924
              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11925
              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11926
                gt_cv_locale_fr=fr_FR.ISO8859-1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11927
              else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11928
                # Test for the HP-UX locale name.
11929
                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11930
                  gt_cv_locale_fr=fr_FR.iso88591
11931
                else
11932
                  # Test for the Solaris 7 locale name.
11933
                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11934
                    gt_cv_locale_fr=fr
11935
                  else
11936
                    # None found.
11937
                    gt_cv_locale_fr=none
11938
                  fi
11939
                fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11940
              fi
11941
            fi
11942
          fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
11943
          ;;
11944
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11945
    fi
11946
    rm -fr conftest*
11947
11948
fi
11949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11950
$as_echo "$gt_cv_locale_fr" >&6; }
11951
  LOCALE_FR=$gt_cv_locale_fr
11952
11953
11954
11955
11956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11957
$as_echo_n "checking whether // is distinct from /... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11958
if ${gl_cv_double_slash_root+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11959
  $as_echo_n "(cached) " >&6
11960
else
11961
   if test x"$cross_compiling" = xyes ; then
11962
        # When cross-compiling, there is no way to tell whether // is special
11963
        # short of a list of hosts.  However, the only known hosts to date
11964
        # that have a distinct // are Apollo DomainOS (too old to port to),
11965
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
11966
        # special semantics and is distinct from /, please report it to
11967
        # <bug-gnulib@gnu.org>.
11968
        case $host in
11969
          *-cygwin | i370-ibm-openedition)
11970
            gl_cv_double_slash_root=yes ;;
11971
          *)
11972
            # Be optimistic and assume that / and // are the same when we
11973
            # don't know.
11974
            gl_cv_double_slash_root='unknown, assuming no' ;;
11975
        esac
11976
      else
11977
        set x `ls -di / // 2>/dev/null`
11978
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11979
          gl_cv_double_slash_root=no
11980
        else
11981
          gl_cv_double_slash_root=yes
11982
        fi
11983
      fi
11984
fi
11985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
11986
$as_echo "$gl_cv_double_slash_root" >&6; }
11987
  if test "$gl_cv_double_slash_root" = yes; then
11988
11989
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
11990
11991
  fi
11992
11993
11994
11995
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
11996
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
11997
if ${gl_cv_have_include_next+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
11998
  $as_echo_n "(cached) " >&6
11999
else
12000
  rm -rf conftestd1a conftestd1b conftestd2
12001
     mkdir conftestd1a conftestd1b conftestd2
12002
                                                  cat <<EOF > conftestd1a/conftest.h
12003
#define DEFINED_IN_CONFTESTD1
12004
#include_next <conftest.h>
12005
#ifdef DEFINED_IN_CONFTESTD2
12006
int foo;
12007
#else
12008
#error "include_next doesn't work"
12009
#endif
12010
EOF
12011
     cat <<EOF > conftestd1b/conftest.h
12012
#define DEFINED_IN_CONFTESTD1
12013
#include <stdio.h>
12014
#include_next <conftest.h>
12015
#ifdef DEFINED_IN_CONFTESTD2
12016
int foo;
12017
#else
12018
#error "include_next doesn't work"
12019
#endif
12020
EOF
12021
     cat <<EOF > conftestd2/conftest.h
12022
#ifndef DEFINED_IN_CONFTESTD1
12023
#error "include_next test doesn't work"
12024
#endif
12025
#define DEFINED_IN_CONFTESTD2
12026
EOF
12027
     gl_save_CPPFLAGS="$CPPFLAGS"
12028
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12029
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030
/* end confdefs.h.  */
12031
#include <conftest.h>
12032
_ACEOF
12033
if ac_fn_c_try_compile "$LINENO"; then :
12034
  gl_cv_have_include_next=yes
12035
else
12036
  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12037
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038
/* end confdefs.h.  */
12039
#include <conftest.h>
12040
_ACEOF
12041
if ac_fn_c_try_compile "$LINENO"; then :
12042
  gl_cv_have_include_next=buggy
12043
else
12044
  gl_cv_have_include_next=no
12045
fi
12046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047
12048
fi
12049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050
     CPPFLAGS="$gl_save_CPPFLAGS"
12051
     rm -rf conftestd1a conftestd1b conftestd2
12052
12053
fi
12054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
12055
$as_echo "$gl_cv_have_include_next" >&6; }
12056
  PRAGMA_SYSTEM_HEADER=
12057
  if test $gl_cv_have_include_next = yes; then
12058
    INCLUDE_NEXT=include_next
12059
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12060
    if test -n "$GCC"; then
12061
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12062
    fi
12063
  else
12064
    if test $gl_cv_have_include_next = buggy; then
12065
      INCLUDE_NEXT=include
12066
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12067
    else
12068
      INCLUDE_NEXT=include
12069
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12070
    fi
12071
  fi
12072
12073
12074
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12075
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
12076
$as_echo_n "checking whether system header files limit the line length... " >&6; }
12077
if ${gl_cv_pragma_columns+:} false; then :
12078
  $as_echo_n "(cached) " >&6
12079
else
12080
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081
/* end confdefs.h.  */
12082
12083
#ifdef __TANDEM
12084
choke me
12085
#endif
12086
12087
_ACEOF
12088
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089
  $EGREP "choke me" >/dev/null 2>&1; then :
12090
  gl_cv_pragma_columns=yes
12091
else
12092
  gl_cv_pragma_columns=no
12093
fi
12094
rm -f conftest*
12095
12096
12097
fi
12098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
12099
$as_echo "$gl_cv_pragma_columns" >&6; }
12100
  if test $gl_cv_pragma_columns = yes; then
12101
    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12102
  else
12103
    PRAGMA_COLUMNS=
12104
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12105
12106
12107
12108
12109
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
12110
$as_echo_n "checking for complete errno.h... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12111
if ${gl_cv_header_errno_h_complete+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12112
  $as_echo_n "(cached) " >&6
12113
else
12114
12115
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116
/* end confdefs.h.  */
12117
12118
#include <errno.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12119
#if !defined ETXTBSY
12120
booboo
12121
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12122
#if !defined ENOMSG
12123
booboo
12124
#endif
12125
#if !defined EIDRM
12126
booboo
12127
#endif
12128
#if !defined ENOLINK
12129
booboo
12130
#endif
12131
#if !defined EPROTO
12132
booboo
12133
#endif
12134
#if !defined EMULTIHOP
12135
booboo
12136
#endif
12137
#if !defined EBADMSG
12138
booboo
12139
#endif
12140
#if !defined EOVERFLOW
12141
booboo
12142
#endif
12143
#if !defined ENOTSUP
12144
booboo
12145
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12146
#if !defined ENETRESET
12147
booboo
12148
#endif
12149
#if !defined ECONNABORTED
12150
booboo
12151
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12152
#if !defined ESTALE
12153
booboo
12154
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12155
#if !defined EDQUOT
12156
booboo
12157
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12158
#if !defined ECANCELED
12159
booboo
12160
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12161
#if !defined EOWNERDEAD
12162
booboo
12163
#endif
12164
#if !defined ENOTRECOVERABLE
12165
booboo
12166
#endif
12167
#if !defined EILSEQ
12168
booboo
12169
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12170
12171
_ACEOF
12172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173
  $EGREP "booboo" >/dev/null 2>&1; then :
12174
  gl_cv_header_errno_h_complete=no
12175
else
12176
  gl_cv_header_errno_h_complete=yes
12177
fi
12178
rm -f conftest*
12179
12180
12181
fi
12182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
12183
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
12184
  if test $gl_cv_header_errno_h_complete = yes; then
12185
    ERRNO_H=''
12186
  else
12187
12188
12189
12190
12191
12192
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12193
12194
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12195
     if test $gl_cv_have_include_next = yes; then
12196
       gl_cv_next_errno_h='<'errno.h'>'
12197
     else
12198
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
12199
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12200
if ${gl_cv_next_errno_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12201
  $as_echo_n "(cached) " >&6
12202
else
12203
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12204
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12205
/* end confdefs.h.  */
12206
#include <errno.h>
12207
12208
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12209
                                                                                                                        case "$host_os" in
12210
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12211
                 *)    gl_absname_cpp="$ac_cpp" ;;
12212
               esac
12213
12214
               case "$host_os" in
12215
                 mingw*)
12216
                                                                                                                                     gl_dirsep_regex='[/\\]'
12217
                   ;;
12218
                 *)
12219
                   gl_dirsep_regex='\/'
12220
                   ;;
12221
               esac
12222
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12223
12224
               gl_header_literal_regex=`echo 'errno.h' \
12225
                                        | sed -e "$gl_make_literal_regex_sed"`
12226
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12227
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12228
                   s|^/[^/]|//&|
12229
                   p
12230
                   q
12231
                 }'
12232
                                                            gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12233
                      sed -n "$gl_absolute_header_sed"`'"'
12234
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12235
12236
fi
12237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
12238
$as_echo "$gl_cv_next_errno_h" >&6; }
12239
     fi
12240
     NEXT_ERRNO_H=$gl_cv_next_errno_h
12241
12242
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12243
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12244
       gl_next_as_first_directive='<'errno.h'>'
12245
     else
12246
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12247
       gl_next_as_first_directive=$gl_cv_next_errno_h
12248
     fi
12249
     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12250
12251
12252
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12253
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12254
    ERRNO_H='errno.h'
12255
  fi
12256
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12257
   if test -n "$ERRNO_H"; then
12258
  GL_GENERATE_ERRNO_H_TRUE=
12259
  GL_GENERATE_ERRNO_H_FALSE='#'
12260
else
12261
  GL_GENERATE_ERRNO_H_TRUE='#'
12262
  GL_GENERATE_ERRNO_H_FALSE=
12263
fi
12264
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12265
12266
  if test -n "$ERRNO_H"; then
12267
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
12268
$as_echo_n "checking for EMULTIHOP value... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12269
if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12270
  $as_echo_n "(cached) " >&6
12271
else
12272
12273
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274
/* end confdefs.h.  */
12275
12276
#include <errno.h>
12277
#ifdef EMULTIHOP
12278
yes
12279
#endif
12280
12281
_ACEOF
12282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12283
  $EGREP "yes" >/dev/null 2>&1; then :
12284
  gl_cv_header_errno_h_EMULTIHOP=yes
12285
else
12286
  gl_cv_header_errno_h_EMULTIHOP=no
12287
fi
12288
rm -f conftest*
12289
12290
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12291
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292
/* end confdefs.h.  */
12293
12294
#define _XOPEN_SOURCE_EXTENDED 1
12295
#include <errno.h>
12296
#ifdef EMULTIHOP
12297
yes
12298
#endif
12299
12300
_ACEOF
12301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12302
  $EGREP "yes" >/dev/null 2>&1; then :
12303
  gl_cv_header_errno_h_EMULTIHOP=hidden
12304
fi
12305
rm -f conftest*
12306
12307
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12308
                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
12309
#define _XOPEN_SOURCE_EXTENDED 1
12310
#include <errno.h>
12311
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
12312
#include <stdio.h>
12313
#include <stdlib.h>
12314
"; then :
12315
12316
fi
12317
12318
        fi
12319
      fi
12320
12321
fi
12322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12323
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12324
    case $gl_cv_header_errno_h_EMULTIHOP in
12325
      yes | no)
12326
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12327
        ;;
12328
      *)
12329
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12330
        ;;
12331
    esac
12332
12333
12334
  fi
12335
12336
12337
  if test -n "$ERRNO_H"; then
12338
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
12339
$as_echo_n "checking for ENOLINK value... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12340
if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12341
  $as_echo_n "(cached) " >&6
12342
else
12343
12344
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345
/* end confdefs.h.  */
12346
12347
#include <errno.h>
12348
#ifdef ENOLINK
12349
yes
12350
#endif
12351
12352
_ACEOF
12353
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12354
  $EGREP "yes" >/dev/null 2>&1; then :
12355
  gl_cv_header_errno_h_ENOLINK=yes
12356
else
12357
  gl_cv_header_errno_h_ENOLINK=no
12358
fi
12359
rm -f conftest*
12360
12361
      if test $gl_cv_header_errno_h_ENOLINK = no; then
12362
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363
/* end confdefs.h.  */
12364
12365
#define _XOPEN_SOURCE_EXTENDED 1
12366
#include <errno.h>
12367
#ifdef ENOLINK
12368
yes
12369
#endif
12370
12371
_ACEOF
12372
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12373
  $EGREP "yes" >/dev/null 2>&1; then :
12374
  gl_cv_header_errno_h_ENOLINK=hidden
12375
fi
12376
rm -f conftest*
12377
12378
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12379
                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
12380
#define _XOPEN_SOURCE_EXTENDED 1
12381
#include <errno.h>
12382
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
12383
#include <stdio.h>
12384
#include <stdlib.h>
12385
"; then :
12386
12387
fi
12388
12389
        fi
12390
      fi
12391
12392
fi
12393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
12394
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
12395
    case $gl_cv_header_errno_h_ENOLINK in
12396
      yes | no)
12397
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
12398
        ;;
12399
      *)
12400
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
12401
        ;;
12402
    esac
12403
12404
12405
  fi
12406
12407
12408
  if test -n "$ERRNO_H"; then
12409
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
12410
$as_echo_n "checking for EOVERFLOW value... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12411
if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12412
  $as_echo_n "(cached) " >&6
12413
else
12414
12415
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416
/* end confdefs.h.  */
12417
12418
#include <errno.h>
12419
#ifdef EOVERFLOW
12420
yes
12421
#endif
12422
12423
_ACEOF
12424
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12425
  $EGREP "yes" >/dev/null 2>&1; then :
12426
  gl_cv_header_errno_h_EOVERFLOW=yes
12427
else
12428
  gl_cv_header_errno_h_EOVERFLOW=no
12429
fi
12430
rm -f conftest*
12431
12432
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
12433
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434
/* end confdefs.h.  */
12435
12436
#define _XOPEN_SOURCE_EXTENDED 1
12437
#include <errno.h>
12438
#ifdef EOVERFLOW
12439
yes
12440
#endif
12441
12442
_ACEOF
12443
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12444
  $EGREP "yes" >/dev/null 2>&1; then :
12445
  gl_cv_header_errno_h_EOVERFLOW=hidden
12446
fi
12447
rm -f conftest*
12448
12449
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
12450
                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
12451
#define _XOPEN_SOURCE_EXTENDED 1
12452
#include <errno.h>
12453
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
12454
#include <stdio.h>
12455
#include <stdlib.h>
12456
"; then :
12457
12458
fi
12459
12460
        fi
12461
      fi
12462
12463
fi
12464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12465
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12466
    case $gl_cv_header_errno_h_EOVERFLOW in
12467
      yes | no)
12468
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
12469
        ;;
12470
      *)
12471
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
12472
        ;;
12473
    esac
12474
12475
12476
  fi
12477
12478
12479
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
12480
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12481
  ac_have_decl=1
12482
else
12483
  ac_have_decl=0
12484
fi
12485
12486
cat >>confdefs.h <<_ACEOF
12487
#define HAVE_DECL_STRERROR_R $ac_have_decl
12488
_ACEOF
12489
12490
for ac_func in strerror_r
12491
do :
12492
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
1.15.15 by Colin Watson
Import upstream version 1.99
12493
if test "x$ac_cv_func_strerror_r" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12494
  cat >>confdefs.h <<_ACEOF
12495
#define HAVE_STRERROR_R 1
12496
_ACEOF
12497
12498
fi
12499
done
12500
12501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12502
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12503
if ${ac_cv_func_strerror_r_char_p+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12504
  $as_echo_n "(cached) " >&6
12505
else
12506
12507
    ac_cv_func_strerror_r_char_p=no
12508
    if test $ac_cv_have_decl_strerror_r = yes; then
12509
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510
/* end confdefs.h.  */
12511
$ac_includes_default
12512
int
12513
main (void)
12514
{
12515
12516
	  char buf[100];
12517
	  char x = *strerror_r (0, buf, sizeof buf);
12518
	  char *p = strerror_r (0, buf, sizeof buf);
12519
	  return !p || x;
12520
12521
  ;
12522
  return 0;
12523
}
12524
_ACEOF
12525
if ac_fn_c_try_compile "$LINENO"; then :
12526
  ac_cv_func_strerror_r_char_p=yes
12527
fi
12528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529
    else
12530
      # strerror_r is not declared.  Choose between
12531
      # systems that have relatively inaccessible declarations for the
12532
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12533
      # former has a strerror_r that returns char*, while the latter
12534
      # has a strerror_r that returns `int'.
12535
      # This test should segfault on the DEC system.
12536
      if test "$cross_compiling" = yes; then :
12537
  :
12538
else
12539
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540
/* end confdefs.h.  */
12541
$ac_includes_default
12542
	extern char *strerror_r ();
12543
int
12544
main (void)
12545
{
12546
char buf[100];
12547
	  char x = *strerror_r (0, buf, sizeof buf);
12548
	  return ! isalpha (x);
12549
  ;
12550
  return 0;
12551
}
12552
_ACEOF
12553
if ac_fn_c_try_run "$LINENO"; then :
12554
  ac_cv_func_strerror_r_char_p=yes
12555
fi
12556
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12557
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12558
fi
12559
12560
    fi
12561
12562
fi
12563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12564
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12565
if test $ac_cv_func_strerror_r_char_p = yes; then
12566
12567
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12568
12569
fi
12570
12571
12572
12573
12574
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12575
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12576
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12577
$as_echo_n "checking for mbstate_t... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12578
if ${ac_cv_type_mbstate_t+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12579
  $as_echo_n "(cached) " >&6
12580
else
12581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582
/* end confdefs.h.  */
12583
$ac_includes_default
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12584
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12585
   <wchar.h>.
12586
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12587
   included before <wchar.h>.  */
12588
#include <stddef.h>
12589
#include <stdio.h>
12590
#include <time.h>
12591
#include <wchar.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12592
int
12593
main (void)
12594
{
12595
mbstate_t x; return sizeof x;
12596
  ;
12597
  return 0;
12598
}
12599
_ACEOF
12600
if ac_fn_c_try_compile "$LINENO"; then :
12601
  ac_cv_type_mbstate_t=yes
12602
else
12603
  ac_cv_type_mbstate_t=no
12604
fi
12605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606
fi
12607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12608
$as_echo "$ac_cv_type_mbstate_t" >&6; }
12609
   if test $ac_cv_type_mbstate_t = yes; then
12610
12611
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12612
12613
   else
12614
12615
$as_echo "#define mbstate_t int" >>confdefs.h
12616
12617
   fi
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
  GNULIB_DPRINTF=0;
12637
  GNULIB_FCLOSE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12638
  GNULIB_FDOPEN=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12639
  GNULIB_FFLUSH=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12640
  GNULIB_FGETC=0;
12641
  GNULIB_FGETS=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12642
  GNULIB_FOPEN=0;
12643
  GNULIB_FPRINTF=0;
12644
  GNULIB_FPRINTF_POSIX=0;
12645
  GNULIB_FPURGE=0;
12646
  GNULIB_FPUTC=0;
12647
  GNULIB_FPUTS=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12648
  GNULIB_FREAD=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12649
  GNULIB_FREOPEN=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12650
  GNULIB_FSCANF=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12651
  GNULIB_FSEEK=0;
12652
  GNULIB_FSEEKO=0;
12653
  GNULIB_FTELL=0;
12654
  GNULIB_FTELLO=0;
12655
  GNULIB_FWRITE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12656
  GNULIB_GETC=0;
12657
  GNULIB_GETCHAR=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12658
  GNULIB_GETDELIM=0;
12659
  GNULIB_GETLINE=0;
12660
  GNULIB_OBSTACK_PRINTF=0;
12661
  GNULIB_OBSTACK_PRINTF_POSIX=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12662
  GNULIB_PCLOSE=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12663
  GNULIB_PERROR=0;
12664
  GNULIB_POPEN=0;
12665
  GNULIB_PRINTF=0;
12666
  GNULIB_PRINTF_POSIX=0;
12667
  GNULIB_PUTC=0;
12668
  GNULIB_PUTCHAR=0;
12669
  GNULIB_PUTS=0;
12670
  GNULIB_REMOVE=0;
12671
  GNULIB_RENAME=0;
12672
  GNULIB_RENAMEAT=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12673
  GNULIB_SCANF=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12674
  GNULIB_SNPRINTF=0;
12675
  GNULIB_SPRINTF_POSIX=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12676
  GNULIB_STDIO_H_NONBLOCKING=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12677
  GNULIB_STDIO_H_SIGPIPE=0;
12678
  GNULIB_TMPFILE=0;
12679
  GNULIB_VASPRINTF=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12680
  GNULIB_VFSCANF=0;
12681
  GNULIB_VSCANF=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12682
  GNULIB_VDPRINTF=0;
12683
  GNULIB_VFPRINTF=0;
12684
  GNULIB_VFPRINTF_POSIX=0;
12685
  GNULIB_VPRINTF=0;
12686
  GNULIB_VPRINTF_POSIX=0;
12687
  GNULIB_VSNPRINTF=0;
12688
  GNULIB_VSPRINTF_POSIX=0;
12689
    HAVE_DECL_FPURGE=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12690
  HAVE_DECL_FSEEKO=1;
12691
  HAVE_DECL_FTELLO=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12692
  HAVE_DECL_GETDELIM=1;
12693
  HAVE_DECL_GETLINE=1;
12694
  HAVE_DECL_OBSTACK_PRINTF=1;
12695
  HAVE_DECL_SNPRINTF=1;
12696
  HAVE_DECL_VSNPRINTF=1;
12697
  HAVE_DPRINTF=1;
12698
  HAVE_FSEEKO=1;
12699
  HAVE_FTELLO=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12700
  HAVE_PCLOSE=1;
12701
  HAVE_POPEN=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12702
  HAVE_RENAMEAT=1;
12703
  HAVE_VASPRINTF=1;
12704
  HAVE_VDPRINTF=1;
12705
  REPLACE_DPRINTF=0;
12706
  REPLACE_FCLOSE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12707
  REPLACE_FDOPEN=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12708
  REPLACE_FFLUSH=0;
12709
  REPLACE_FOPEN=0;
12710
  REPLACE_FPRINTF=0;
12711
  REPLACE_FPURGE=0;
12712
  REPLACE_FREOPEN=0;
12713
  REPLACE_FSEEK=0;
12714
  REPLACE_FSEEKO=0;
12715
  REPLACE_FTELL=0;
12716
  REPLACE_FTELLO=0;
12717
  REPLACE_GETDELIM=0;
12718
  REPLACE_GETLINE=0;
12719
  REPLACE_OBSTACK_PRINTF=0;
12720
  REPLACE_PERROR=0;
12721
  REPLACE_POPEN=0;
12722
  REPLACE_PRINTF=0;
12723
  REPLACE_REMOVE=0;
12724
  REPLACE_RENAME=0;
12725
  REPLACE_RENAMEAT=0;
12726
  REPLACE_SNPRINTF=0;
12727
  REPLACE_SPRINTF=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12728
  REPLACE_STDIO_READ_FUNCS=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12729
  REPLACE_STDIO_WRITE_FUNCS=0;
12730
  REPLACE_TMPFILE=0;
12731
  REPLACE_VASPRINTF=0;
12732
  REPLACE_VDPRINTF=0;
12733
  REPLACE_VFPRINTF=0;
12734
  REPLACE_VPRINTF=0;
12735
  REPLACE_VSNPRINTF=0;
12736
  REPLACE_VSPRINTF=0;
12737
12738
ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
12739
if test "x$ac_cv_have_decl_getdelim" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12740
  ac_have_decl=1
12741
else
12742
  ac_have_decl=0
12743
fi
12744
12745
cat >>confdefs.h <<_ACEOF
12746
#define HAVE_DECL_GETDELIM $ac_have_decl
12747
_ACEOF
12748
12749
12750
12751
ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
12752
if test "x$ac_cv_have_decl_getline" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12753
  ac_have_decl=1
12754
else
12755
  ac_have_decl=0
12756
fi
12757
12758
cat >>confdefs.h <<_ACEOF
12759
#define HAVE_DECL_GETLINE $ac_have_decl
12760
_ACEOF
12761
12762
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12763
  GNULIB_CHDIR=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12764
  GNULIB_CHOWN=0;
12765
  GNULIB_CLOSE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12766
  GNULIB_DUP=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12767
  GNULIB_DUP2=0;
12768
  GNULIB_DUP3=0;
12769
  GNULIB_ENVIRON=0;
12770
  GNULIB_EUIDACCESS=0;
12771
  GNULIB_FACCESSAT=0;
12772
  GNULIB_FCHDIR=0;
12773
  GNULIB_FCHOWNAT=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12774
  GNULIB_FDATASYNC=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12775
  GNULIB_FSYNC=0;
12776
  GNULIB_FTRUNCATE=0;
12777
  GNULIB_GETCWD=0;
12778
  GNULIB_GETDOMAINNAME=0;
12779
  GNULIB_GETDTABLESIZE=0;
12780
  GNULIB_GETGROUPS=0;
12781
  GNULIB_GETHOSTNAME=0;
12782
  GNULIB_GETLOGIN=0;
12783
  GNULIB_GETLOGIN_R=0;
12784
  GNULIB_GETPAGESIZE=0;
12785
  GNULIB_GETUSERSHELL=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12786
  GNULIB_GROUP_MEMBER=0;
12787
  GNULIB_ISATTY=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12788
  GNULIB_LCHOWN=0;
12789
  GNULIB_LINK=0;
12790
  GNULIB_LINKAT=0;
12791
  GNULIB_LSEEK=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12792
  GNULIB_PIPE=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12793
  GNULIB_PIPE2=0;
12794
  GNULIB_PREAD=0;
12795
  GNULIB_PWRITE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12796
  GNULIB_READ=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12797
  GNULIB_READLINK=0;
12798
  GNULIB_READLINKAT=0;
12799
  GNULIB_RMDIR=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12800
  GNULIB_SETHOSTNAME=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12801
  GNULIB_SLEEP=0;
12802
  GNULIB_SYMLINK=0;
12803
  GNULIB_SYMLINKAT=0;
12804
  GNULIB_TTYNAME_R=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12805
  GNULIB_UNISTD_H_NONBLOCKING=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12806
  GNULIB_UNISTD_H_SIGPIPE=0;
12807
  GNULIB_UNLINK=0;
12808
  GNULIB_UNLINKAT=0;
12809
  GNULIB_USLEEP=0;
12810
  GNULIB_WRITE=0;
12811
    HAVE_CHOWN=1;
12812
  HAVE_DUP2=1;
12813
  HAVE_DUP3=1;
12814
  HAVE_EUIDACCESS=1;
12815
  HAVE_FACCESSAT=1;
12816
  HAVE_FCHDIR=1;
12817
  HAVE_FCHOWNAT=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12818
  HAVE_FDATASYNC=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12819
  HAVE_FSYNC=1;
12820
  HAVE_FTRUNCATE=1;
12821
  HAVE_GETDTABLESIZE=1;
12822
  HAVE_GETGROUPS=1;
12823
  HAVE_GETHOSTNAME=1;
12824
  HAVE_GETLOGIN=1;
12825
  HAVE_GETPAGESIZE=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12826
  HAVE_GROUP_MEMBER=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12827
  HAVE_LCHOWN=1;
12828
  HAVE_LINK=1;
12829
  HAVE_LINKAT=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12830
  HAVE_PIPE=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12831
  HAVE_PIPE2=1;
12832
  HAVE_PREAD=1;
12833
  HAVE_PWRITE=1;
12834
  HAVE_READLINK=1;
12835
  HAVE_READLINKAT=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12836
  HAVE_SETHOSTNAME=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12837
  HAVE_SLEEP=1;
12838
  HAVE_SYMLINK=1;
12839
  HAVE_SYMLINKAT=1;
12840
  HAVE_UNLINKAT=1;
12841
  HAVE_USLEEP=1;
12842
  HAVE_DECL_ENVIRON=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12843
  HAVE_DECL_FCHDIR=1;
12844
  HAVE_DECL_FDATASYNC=1;
12845
  HAVE_DECL_GETDOMAINNAME=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12846
  HAVE_DECL_GETLOGIN_R=1;
12847
  HAVE_DECL_GETPAGESIZE=1;
12848
  HAVE_DECL_GETUSERSHELL=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12849
  HAVE_DECL_SETHOSTNAME=1;
12850
  HAVE_DECL_TTYNAME_R=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12851
  HAVE_OS_H=0;
12852
  HAVE_SYS_PARAM_H=0;
12853
  REPLACE_CHOWN=0;
12854
  REPLACE_CLOSE=0;
12855
  REPLACE_DUP=0;
12856
  REPLACE_DUP2=0;
12857
  REPLACE_FCHOWNAT=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12858
  REPLACE_FTRUNCATE=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12859
  REPLACE_GETCWD=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12860
  REPLACE_GETDOMAINNAME=0;
12861
  REPLACE_GETLOGIN_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12862
  REPLACE_GETGROUPS=0;
12863
  REPLACE_GETPAGESIZE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12864
  REPLACE_ISATTY=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12865
  REPLACE_LCHOWN=0;
12866
  REPLACE_LINK=0;
12867
  REPLACE_LINKAT=0;
12868
  REPLACE_LSEEK=0;
12869
  REPLACE_PREAD=0;
12870
  REPLACE_PWRITE=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12871
  REPLACE_READ=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12872
  REPLACE_READLINK=0;
12873
  REPLACE_RMDIR=0;
12874
  REPLACE_SLEEP=0;
12875
  REPLACE_SYMLINK=0;
12876
  REPLACE_TTYNAME_R=0;
12877
  REPLACE_UNLINK=0;
12878
  REPLACE_UNLINKAT=0;
12879
  REPLACE_USLEEP=0;
12880
  REPLACE_WRITE=0;
12881
  UNISTD_H_HAVE_WINSOCK2_H=0;
12882
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12897
12898
12899
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12900
     if test $gl_cv_have_include_next = yes; then
12901
       gl_cv_next_getopt_h='<'getopt.h'>'
12902
     else
12903
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12904
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
12905
if ${gl_cv_next_getopt_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12906
  $as_echo_n "(cached) " >&6
12907
else
12908
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12909
             if test $ac_cv_header_getopt_h = yes; then
12910
12911
12912
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12913
/* end confdefs.h.  */
12914
#include <getopt.h>
12915
12916
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12917
                                                                                                                        case "$host_os" in
12918
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12919
                 *)    gl_absname_cpp="$ac_cpp" ;;
12920
               esac
12921
12922
               case "$host_os" in
12923
                 mingw*)
12924
                                                                                                                                     gl_dirsep_regex='[/\\]'
12925
                   ;;
12926
                 *)
12927
                   gl_dirsep_regex='\/'
12928
                   ;;
12929
               esac
12930
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12931
12932
               gl_header_literal_regex=`echo 'getopt.h' \
12933
                                        | sed -e "$gl_make_literal_regex_sed"`
12934
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12935
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12936
                   s|^/[^/]|//&|
12937
                   p
12938
                   q
12939
                 }'
12940
                                                            gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12941
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12942
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
12943
               gl_cv_next_getopt_h='<'getopt.h'>'
12944
             fi
12945
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12946
12947
fi
12948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12949
$as_echo "$gl_cv_next_getopt_h" >&6; }
12950
     fi
12951
     NEXT_GETOPT_H=$gl_cv_next_getopt_h
12952
12953
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12954
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12955
       gl_next_as_first_directive='<'getopt.h'>'
12956
     else
12957
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12958
       gl_next_as_first_directive=$gl_cv_next_getopt_h
12959
     fi
12960
     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
12961
12962
12963
12964
12965
  if test $ac_cv_header_getopt_h = yes; then
12966
    HAVE_GETOPT_H=1
12967
  else
12968
    HAVE_GETOPT_H=0
12969
  fi
12970
12971
12972
  gl_replace_getopt=
12973
12974
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12975
    for ac_header in getopt.h
12976
do :
12977
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
12978
if test "x$ac_cv_header_getopt_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12979
  cat >>confdefs.h <<_ACEOF
12980
#define HAVE_GETOPT_H 1
12981
_ACEOF
12982
12983
else
12984
  gl_replace_getopt=yes
12985
fi
12986
12987
done
12988
12989
  fi
12990
12991
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12992
    for ac_func in getopt_long_only
12993
do :
12994
  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
1.15.15 by Colin Watson
Import upstream version 1.99
12995
if test "x$ac_cv_func_getopt_long_only" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
12996
  cat >>confdefs.h <<_ACEOF
12997
#define HAVE_GETOPT_LONG_ONLY 1
12998
_ACEOF
12999
13000
else
13001
  gl_replace_getopt=yes
13002
fi
13003
done
13004
13005
  fi
13006
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13007
          if test -z "$gl_replace_getopt"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13008
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13009
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13010
if ${gl_cv_func_getopt_posix+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13011
  $as_echo_n "(cached) " >&6
13012
else
13013
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13014
                                                if test $cross_compiling = no; then
13015
                              if test "$cross_compiling" = yes; then :
13016
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13017
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13018
as_fn_error $? "cannot run test program while cross compiling
13019
See \`config.log' for more details" "$LINENO" 5; }
13020
else
13021
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022
/* end confdefs.h.  */
13023
13024
#include <unistd.h>
13025
#include <stdlib.h>
13026
#include <string.h>
13027
13028
int
13029
main ()
13030
{
13031
  static char program[] = "program";
13032
  static char a[] = "-a";
13033
  static char foo[] = "foo";
13034
  static char bar[] = "bar";
13035
  char *argv[] = { program, a, foo, bar, NULL };
13036
  int c;
13037
13038
  c = getopt (4, argv, "ab");
13039
  if (!(c == 'a'))
13040
    return 1;
13041
  c = getopt (4, argv, "ab");
13042
  if (!(c == -1))
13043
    return 2;
13044
  if (!(optind == 2))
13045
    return 3;
13046
  return 0;
13047
}
13048
13049
_ACEOF
13050
if ac_fn_c_try_run "$LINENO"; then :
13051
  gl_cv_func_getopt_posix=maybe
13052
else
13053
  gl_cv_func_getopt_posix=no
13054
fi
13055
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13056
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13057
fi
13058
13059
          if test $gl_cv_func_getopt_posix = maybe; then
13060
                                    if test "$cross_compiling" = yes; then :
13061
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13062
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13063
as_fn_error $? "cannot run test program while cross compiling
13064
See \`config.log' for more details" "$LINENO" 5; }
13065
else
13066
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067
/* end confdefs.h.  */
13068
13069
#include <unistd.h>
13070
#include <stdlib.h>
13071
#include <string.h>
13072
13073
int
13074
main ()
13075
{
13076
  static char program[] = "program";
13077
  static char donald[] = "donald";
13078
  static char p[] = "-p";
13079
  static char billy[] = "billy";
13080
  static char duck[] = "duck";
13081
  static char a[] = "-a";
13082
  static char bar[] = "bar";
13083
  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13084
  int c;
13085
13086
  c = getopt (7, argv, "+abp:q:");
13087
  if (!(c == -1))
13088
    return 4;
13089
  if (!(strcmp (argv[0], "program") == 0))
13090
    return 5;
13091
  if (!(strcmp (argv[1], "donald") == 0))
13092
    return 6;
13093
  if (!(strcmp (argv[2], "-p") == 0))
13094
    return 7;
13095
  if (!(strcmp (argv[3], "billy") == 0))
13096
    return 8;
13097
  if (!(strcmp (argv[4], "duck") == 0))
13098
    return 9;
13099
  if (!(strcmp (argv[5], "-a") == 0))
13100
    return 10;
13101
  if (!(strcmp (argv[6], "bar") == 0))
13102
    return 11;
13103
  if (!(optind == 1))
13104
    return 12;
13105
  return 0;
13106
}
13107
13108
_ACEOF
13109
if ac_fn_c_try_run "$LINENO"; then :
13110
  gl_cv_func_getopt_posix=maybe
13111
else
13112
  gl_cv_func_getopt_posix=no
13113
fi
13114
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13115
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13116
fi
13117
13118
          fi
13119
          if test $gl_cv_func_getopt_posix = maybe; then
13120
                        if test "$cross_compiling" = yes; then :
13121
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13122
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13123
as_fn_error $? "cannot run test program while cross compiling
13124
See \`config.log' for more details" "$LINENO" 5; }
13125
else
13126
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127
/* end confdefs.h.  */
13128
13129
#include <unistd.h>
13130
#include <stdlib.h>
13131
#include <string.h>
13132
13133
int
13134
main ()
13135
{
13136
  static char program[] = "program";
13137
  static char ab[] = "-ab";
13138
  char *argv[3] = { program, ab, NULL };
13139
  if (getopt (2, argv, "ab:") != 'a')
13140
    return 13;
13141
  if (getopt (2, argv, "ab:") != '?')
13142
    return 14;
13143
  if (optopt != 'b')
13144
    return 15;
13145
  if (optind != 2)
13146
    return 16;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13147
  return 0;
13148
}
13149
13150
_ACEOF
13151
if ac_fn_c_try_run "$LINENO"; then :
13152
  gl_cv_func_getopt_posix=yes
13153
else
13154
  gl_cv_func_getopt_posix=no
13155
fi
13156
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13157
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13158
fi
13159
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13160
          fi
13161
        else
13162
          case "$host_os" in
13163
            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
13164
            *)                       gl_cv_func_getopt_posix="guessing yes";;
13165
          esac
13166
        fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13167
13168
fi
13169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13170
$as_echo "$gl_cv_func_getopt_posix" >&6; }
13171
    case "$gl_cv_func_getopt_posix" in
13172
      *no) gl_replace_getopt=yes ;;
13173
    esac
13174
  fi
13175
13176
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13177
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13178
$as_echo_n "checking for working GNU getopt function... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13179
if ${gl_cv_func_getopt_gnu+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13180
  $as_echo_n "(cached) " >&6
13181
else
13182
  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13183
       # optstring is necessary for programs like m4 that have POSIX-mandated
13184
       # semantics for supporting options interspersed with files.
13185
       # Also, since getopt_long is a GNU extension, we require optind=0.
13186
       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13187
       # so take care to revert to the correct (non-)export state.
13188
       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13189
       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13190
         xx) gl_had_POSIXLY_CORRECT=exported ;;
13191
         x)  gl_had_POSIXLY_CORRECT=yes      ;;
13192
         *)  gl_had_POSIXLY_CORRECT=         ;;
13193
       esac
13194
       POSIXLY_CORRECT=1
13195
       export POSIXLY_CORRECT
13196
       if test "$cross_compiling" = yes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13197
           gl_cv_func_getopt_gnu="guessing no"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13198
13199
else
13200
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201
/* end confdefs.h.  */
13202
#include <getopt.h>
13203
                           #include <stddef.h>
13204
                           #include <string.h>
13205
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13206
#include <stdlib.h>
13207
#if defined __MACH__ && defined __APPLE__
13208
/* Avoid a crash on Mac OS X.  */
13209
#include <mach/mach.h>
13210
#include <mach/mach_error.h>
13211
#include <mach/thread_status.h>
13212
#include <mach/exception.h>
13213
#include <mach/task.h>
13214
#include <pthread.h>
13215
/* The exception port on which our thread listens.  */
13216
static mach_port_t our_exception_port;
13217
/* The main function of the thread listening for exceptions of type
13218
   EXC_BAD_ACCESS.  */
13219
static void *
13220
mach_exception_thread (void *arg)
13221
{
13222
  /* Buffer for a message to be received.  */
13223
  struct {
13224
    mach_msg_header_t head;
13225
    mach_msg_body_t msgh_body;
13226
    char data[1024];
13227
  } msg;
13228
  mach_msg_return_t retval;
13229
  /* Wait for a message on the exception port.  */
13230
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13231
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13232
  if (retval != MACH_MSG_SUCCESS)
13233
    abort ();
13234
  exit (1);
13235
}
13236
static void
13237
nocrash_init (void)
13238
{
13239
  mach_port_t self = mach_task_self ();
13240
  /* Allocate a port on which the thread shall listen for exceptions.  */
13241
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13242
      == KERN_SUCCESS) {
13243
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
13244
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13245
                                MACH_MSG_TYPE_MAKE_SEND)
13246
        == KERN_SUCCESS) {
13247
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
13248
         for us.  */
13249
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13250
      /* Create the thread listening on the exception port.  */
13251
      pthread_attr_t attr;
13252
      pthread_t thread;
13253
      if (pthread_attr_init (&attr) == 0
13254
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13255
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13256
        pthread_attr_destroy (&attr);
13257
        /* Replace the exception port info for these exceptions with our own.
13258
           Note that we replace the exception port for the entire task, not only
13259
           for a particular thread.  This has the effect that when our exception
13260
           port gets the message, the thread specific exception port has already
13261
           been asked, and we don't need to bother about it.
13262
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
13263
        task_set_exception_ports (self, mask, our_exception_port,
13264
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13265
      }
13266
    }
13267
  }
13268
}
13269
#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13270
/* Avoid a crash on native Windows.  */
13271
#define WIN32_LEAN_AND_MEAN
13272
#include <windows.h>
13273
#include <winerror.h>
13274
static LONG WINAPI
13275
exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13276
{
13277
  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13278
    {
13279
    case EXCEPTION_ACCESS_VIOLATION:
13280
    case EXCEPTION_IN_PAGE_ERROR:
13281
    case EXCEPTION_STACK_OVERFLOW:
13282
    case EXCEPTION_GUARD_PAGE:
13283
    case EXCEPTION_PRIV_INSTRUCTION:
13284
    case EXCEPTION_ILLEGAL_INSTRUCTION:
13285
    case EXCEPTION_DATATYPE_MISALIGNMENT:
13286
    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13287
    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13288
      exit (1);
13289
    }
13290
  return EXCEPTION_CONTINUE_SEARCH;
13291
}
13292
static void
13293
nocrash_init (void)
13294
{
13295
  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13296
}
13297
#else
13298
/* Avoid a crash on POSIX systems.  */
13299
#include <signal.h>
13300
/* A POSIX signal handler.  */
13301
static void
13302
exception_handler (int sig)
13303
{
13304
  exit (1);
13305
}
13306
static void
13307
nocrash_init (void)
13308
{
13309
#ifdef SIGSEGV
13310
  signal (SIGSEGV, exception_handler);
13311
#endif
13312
#ifdef SIGBUS
13313
  signal (SIGBUS, exception_handler);
13314
#endif
13315
}
13316
#endif
13317
13318
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13319
int
13320
main (void)
13321
{
13322
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13323
             int result = 0;
13324
13325
             nocrash_init();
13326
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13327
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13328
                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13329
                OSF/1 5.1, Solaris 10.  */
13330
             {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13331
               static char conftest[] = "conftest";
13332
               static char plus[] = "-+";
13333
               char *argv[3] = { conftest, plus, NULL };
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13334
               opterr = 0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13335
               if (getopt (2, argv, "+a") != '?')
13336
                 result |= 1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13337
             }
13338
             /* This code succeeds on glibc 2.8, mingw,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13339
                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13340
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
13341
             {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13342
               static char program[] = "program";
13343
               static char p[] = "-p";
13344
               static char foo[] = "foo";
13345
               static char bar[] = "bar";
13346
               char *argv[] = { program, p, foo, bar, NULL };
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13347
13348
               optind = 1;
13349
               if (getopt (4, argv, "p::") != 'p')
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13350
                 result |= 2;
13351
               else if (optarg != NULL)
13352
                 result |= 4;
13353
               else if (getopt (4, argv, "p::") != -1)
13354
                 result |= 6;
13355
               else if (optind != 2)
13356
                 result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13357
             }
13358
             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
13359
             {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13360
               static char program[] = "program";
13361
               static char foo[] = "foo";
13362
               static char p[] = "-p";
13363
               char *argv[] = { program, foo, p, NULL };
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13364
               optind = 0;
13365
               if (getopt (3, argv, "-p") != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13366
                 result |= 16;
13367
               else if (getopt (3, argv, "-p") != 'p')
13368
                 result |= 16;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13369
             }
13370
             /* This code fails on glibc 2.11.  */
13371
             {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13372
               static char program[] = "program";
13373
               static char b[] = "-b";
13374
               static char a[] = "-a";
13375
               char *argv[] = { program, b, a, NULL };
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13376
               optind = opterr = 0;
13377
               if (getopt (3, argv, "+:a:b") != 'b')
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13378
                 result |= 32;
13379
               else if (getopt (3, argv, "+:a:b") != ':')
13380
                 result |= 32;
13381
             }
13382
             /* This code dumps core on glibc 2.14.  */
13383
             {
13384
               static char program[] = "program";
13385
               static char w[] = "-W";
13386
               static char dummy[] = "dummy";
13387
               char *argv[] = { program, w, dummy, NULL };
13388
               optind = opterr = 1;
13389
               if (getopt (3, argv, "W;") != 'W')
13390
                 result |= 64;
13391
             }
13392
             return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13393
13394
  ;
13395
  return 0;
13396
}
13397
_ACEOF
13398
if ac_fn_c_try_run "$LINENO"; then :
13399
  gl_cv_func_getopt_gnu=yes
13400
else
13401
  gl_cv_func_getopt_gnu=no
13402
fi
13403
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13404
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13405
fi
13406
13407
       case $gl_had_POSIXLY_CORRECT in
13408
         exported) ;;
13409
         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13410
         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13411
       esac
13412
13413
fi
13414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13415
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13416
    if test "$gl_cv_func_getopt_gnu" != yes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13417
      gl_replace_getopt=yes
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13418
    else
13419
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13420
$as_echo_n "checking for working GNU getopt_long function... " >&6; }
13421
if ${gl_cv_func_getopt_long_gnu+:} false; then :
13422
  $as_echo_n "(cached) " >&6
13423
else
13424
  if test "$cross_compiling" = yes; then :
13425
              case "$host_os" in
13426
              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
13427
              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
13428
            esac
13429
13430
else
13431
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432
/* end confdefs.h.  */
13433
#include <getopt.h>
13434
                #include <stddef.h>
13435
                #include <string.h>
13436
13437
int
13438
main (void)
13439
{
13440
static const struct option long_options[] =
13441
                  {
13442
                    { "xtremely-",no_argument,       NULL, 1003 },
13443
                    { "xtra",     no_argument,       NULL, 1001 },
13444
                    { "xtreme",   no_argument,       NULL, 1002 },
13445
                    { "xtremely", no_argument,       NULL, 1003 },
13446
                    { NULL,       0,                 NULL, 0 }
13447
                  };
13448
                /* This code fails on OpenBSD 5.0.  */
13449
                {
13450
                  static char program[] = "program";
13451
                  static char xtremel[] = "--xtremel";
13452
                  char *argv[] = { program, xtremel, NULL };
13453
                  int option_index;
13454
                  optind = 1; opterr = 0;
13455
                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13456
                    return 1;
13457
                }
13458
                return 0;
13459
13460
  ;
13461
  return 0;
13462
}
13463
_ACEOF
13464
if ac_fn_c_try_run "$LINENO"; then :
13465
  gl_cv_func_getopt_long_gnu=yes
13466
else
13467
  gl_cv_func_getopt_long_gnu=no
13468
fi
13469
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13470
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13471
fi
13472
13473
13474
fi
13475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13476
$as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
13477
      case "$gl_cv_func_getopt_long_gnu" in
13478
        *yes) ;;
13479
        *) gl_replace_getopt=yes ;;
13480
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13481
    fi
13482
  fi
13483
13484
13485
13486
13487
13488
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13489
    REPLACE_GETOPT=1
13490
13491
  if test $REPLACE_GETOPT = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13492
13493
  GETOPT_H=getopt.h
13494
13495
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13496
13497
13498
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13499
  fi
13500
13501
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13502
if test "x$ac_cv_have_decl_getenv" = xyes; then :
13503
  ac_have_decl=1
13504
else
13505
  ac_have_decl=0
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13506
fi
13507
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13508
cat >>confdefs.h <<_ACEOF
13509
#define HAVE_DECL_GETENV $ac_have_decl
13510
_ACEOF
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13511
13512
13513
  GNULIB_NL_LANGINFO=0;
13514
    HAVE_NL_LANGINFO=1;
13515
  REPLACE_NL_LANGINFO=0;
13516
13517
13518
13519
13520
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13521
13522
13523
13524
13525
13526
13527
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13528
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
13529
$as_echo_n "checking for working fcntl.h... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13530
if ${gl_cv_header_working_fcntl_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13531
  $as_echo_n "(cached) " >&6
13532
else
13533
  if test "$cross_compiling" = yes; then :
13534
  gl_cv_header_working_fcntl_h=cross-compiling
13535
else
13536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537
/* end confdefs.h.  */
13538
#include <sys/types.h>
13539
           #include <sys/stat.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13540
           #if HAVE_UNISTD_H
13541
           # include <unistd.h>
13542
           #else /* on Windows with MSVC */
13543
           # include <io.h>
13544
           # include <stdlib.h>
13545
           # defined sleep(n) _sleep ((n) * 1000)
13546
           #endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13547
           #include <fcntl.h>
13548
           #ifndef O_NOATIME
13549
            #define O_NOATIME 0
13550
           #endif
13551
           #ifndef O_NOFOLLOW
13552
            #define O_NOFOLLOW 0
13553
           #endif
13554
           static int const constants[] =
13555
            {
13556
              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13557
              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13558
            };
13559
13560
int
13561
main (void)
13562
{
13563
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13564
            int result = !constants;
13565
            #if HAVE_SYMLINK
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13566
            {
13567
              static char const sym[] = "conftest.sym";
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13568
              if (symlink ("/dev/null", sym) != 0)
13569
                result |= 2;
13570
              else
13571
                {
13572
                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
13573
                  if (fd >= 0)
13574
                    {
13575
                      close (fd);
13576
                      result |= 4;
13577
                    }
13578
                }
13579
              if (unlink (sym) != 0 || symlink (".", sym) != 0)
13580
                result |= 2;
13581
              else
13582
                {
13583
                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
13584
                  if (fd >= 0)
13585
                    {
13586
                      close (fd);
13587
                      result |= 4;
13588
                    }
13589
                }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13590
              unlink (sym);
13591
            }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13592
            #endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13593
            {
13594
              static char const file[] = "confdefs.h";
13595
              int fd = open (file, O_RDONLY | O_NOATIME);
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13596
              if (fd < 0)
13597
                result |= 8;
13598
              else
13599
                {
13600
                  struct stat st0;
13601
                  if (fstat (fd, &st0) != 0)
13602
                    result |= 16;
13603
                  else
13604
                    {
13605
                      char c;
13606
                      sleep (1);
13607
                      if (read (fd, &c, 1) != 1)
13608
                        result |= 24;
13609
                      else
13610
                        {
13611
                          if (close (fd) != 0)
13612
                            result |= 32;
13613
                          else
13614
                            {
13615
                              struct stat st1;
13616
                              if (stat (file, &st1) != 0)
13617
                                result |= 40;
13618
                              else
13619
                                if (st0.st_atime != st1.st_atime)
13620
                                  result |= 64;
13621
                            }
13622
                        }
13623
                    }
13624
                }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13625
            }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13626
            return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13627
  ;
13628
  return 0;
13629
}
13630
_ACEOF
13631
if ac_fn_c_try_run "$LINENO"; then :
13632
  gl_cv_header_working_fcntl_h=yes
13633
else
13634
  case $? in #(
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13635
        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13636
        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13637
        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13638
         *) gl_cv_header_working_fcntl_h='no';;
13639
        esac
13640
fi
13641
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13642
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13643
fi
13644
13645
fi
13646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
13647
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
13648
13649
  case $gl_cv_header_working_fcntl_h in #(
13650
  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
13651
  *) ac_val=1;;
13652
  esac
13653
13654
cat >>confdefs.h <<_ACEOF
13655
#define HAVE_WORKING_O_NOATIME $ac_val
13656
_ACEOF
13657
13658
13659
  case $gl_cv_header_working_fcntl_h in #(
13660
  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
13661
  *) ac_val=1;;
13662
  esac
13663
13664
cat >>confdefs.h <<_ACEOF
13665
#define HAVE_WORKING_O_NOFOLLOW $ac_val
13666
_ACEOF
13667
13668
13669
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13670
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13671
$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13672
if ${ac_cv_gnu_library_2_1+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13673
  $as_echo_n "(cached) " >&6
13674
else
13675
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676
/* end confdefs.h.  */
13677
13678
#include <features.h>
13679
#ifdef __GNU_LIBRARY__
13680
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13681
  Lucky GNU user
13682
 #endif
13683
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13684
#ifdef __UCLIBC__
13685
 Lucky user
13686
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13687
13688
_ACEOF
13689
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13690
  $EGREP "Lucky" >/dev/null 2>&1; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13691
  ac_cv_gnu_library_2_1=yes
13692
else
13693
  ac_cv_gnu_library_2_1=no
13694
fi
13695
rm -f conftest*
13696
13697
13698
13699
fi
13700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13701
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
13702
13703
    GLIBC21="$ac_cv_gnu_library_2_1"
13704
13705
13706
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13707
  GNULIB_LOCALECONV=0;
13708
  GNULIB_SETLOCALE=0;
13709
  GNULIB_DUPLOCALE=0;
13710
    HAVE_DUPLOCALE=1;
13711
  REPLACE_LOCALECONV=0;
13712
  REPLACE_SETLOCALE=0;
13713
  REPLACE_DUPLOCALE=0;
13714
  REPLACE_STRUCT_LCONV=0;
13715
13716
13717
    REPLACE_NULL=0;
13718
  HAVE_WCHAR_T=1;
13719
13720
13721
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13722
$as_echo_n "checking for wchar_t... " >&6; }
13723
if ${gt_cv_c_wchar_t+:} false; then :
13724
  $as_echo_n "(cached) " >&6
13725
else
13726
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727
/* end confdefs.h.  */
13728
#include <stddef.h>
13729
            wchar_t foo = (wchar_t)'\0';
13730
int
13731
main (void)
13732
{
13733
13734
  ;
13735
  return 0;
13736
}
13737
_ACEOF
13738
if ac_fn_c_try_compile "$LINENO"; then :
13739
  gt_cv_c_wchar_t=yes
13740
else
13741
  gt_cv_c_wchar_t=no
13742
fi
13743
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744
fi
13745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13746
$as_echo "$gt_cv_c_wchar_t" >&6; }
13747
  if test $gt_cv_c_wchar_t = yes; then
13748
13749
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13750
13751
  fi
13752
13753
13754
13755
13756
  STDDEF_H=
13757
  if test $gt_cv_c_wchar_t = no; then
13758
    HAVE_WCHAR_T=0
13759
    STDDEF_H=stddef.h
13760
  fi
13761
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13762
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13763
if ${gl_cv_decl_null_works+:} false; then :
13764
  $as_echo_n "(cached) " >&6
13765
else
13766
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767
/* end confdefs.h.  */
13768
#include <stddef.h>
13769
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
13770
13771
int
13772
main (void)
13773
{
13774
13775
  ;
13776
  return 0;
13777
}
13778
_ACEOF
13779
if ac_fn_c_try_compile "$LINENO"; then :
13780
  gl_cv_decl_null_works=yes
13781
else
13782
  gl_cv_decl_null_works=no
13783
fi
13784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
fi
13786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13787
$as_echo "$gl_cv_decl_null_works" >&6; }
13788
  if test $gl_cv_decl_null_works = no; then
13789
    REPLACE_NULL=1
13790
    STDDEF_H=stddef.h
13791
  fi
13792
13793
   if test -n "$STDDEF_H"; then
13794
  GL_GENERATE_STDDEF_H_TRUE=
13795
  GL_GENERATE_STDDEF_H_FALSE='#'
13796
else
13797
  GL_GENERATE_STDDEF_H_TRUE='#'
13798
  GL_GENERATE_STDDEF_H_FALSE=
13799
fi
13800
13801
  if test -n "$STDDEF_H"; then
13802
13803
13804
13805
13806
13807
13808
13809
13810
     if test $gl_cv_have_include_next = yes; then
13811
       gl_cv_next_stddef_h='<'stddef.h'>'
13812
     else
13813
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13814
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13815
if ${gl_cv_next_stddef_h+:} false; then :
13816
  $as_echo_n "(cached) " >&6
13817
else
13818
13819
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820
/* end confdefs.h.  */
13821
#include <stddef.h>
13822
13823
_ACEOF
13824
                                                                                                                        case "$host_os" in
13825
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13826
                 *)    gl_absname_cpp="$ac_cpp" ;;
13827
               esac
13828
13829
               case "$host_os" in
13830
                 mingw*)
13831
                                                                                                                                     gl_dirsep_regex='[/\\]'
13832
                   ;;
13833
                 *)
13834
                   gl_dirsep_regex='\/'
13835
                   ;;
13836
               esac
13837
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13838
13839
               gl_header_literal_regex=`echo 'stddef.h' \
13840
                                        | sed -e "$gl_make_literal_regex_sed"`
13841
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13842
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13843
                   s|^/[^/]|//&|
13844
                   p
13845
                   q
13846
                 }'
13847
                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13848
                      sed -n "$gl_absolute_header_sed"`'"'
13849
13850
13851
fi
13852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13853
$as_echo "$gl_cv_next_stddef_h" >&6; }
13854
     fi
13855
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
13856
13857
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13858
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13859
       gl_next_as_first_directive='<'stddef.h'>'
13860
     else
13861
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13862
       gl_next_as_first_directive=$gl_cv_next_stddef_h
13863
     fi
13864
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13865
13866
13867
13868
13869
  fi
13870
13871
13872
13873
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13874
  GNULIB__EXIT=0;
13875
  GNULIB_ATOLL=0;
13876
  GNULIB_CALLOC_POSIX=0;
13877
  GNULIB_CANONICALIZE_FILE_NAME=0;
13878
  GNULIB_GETLOADAVG=0;
13879
  GNULIB_GETSUBOPT=0;
13880
  GNULIB_GRANTPT=0;
13881
  GNULIB_MALLOC_POSIX=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13882
  GNULIB_MBTOWC=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13883
  GNULIB_MKDTEMP=0;
13884
  GNULIB_MKOSTEMP=0;
13885
  GNULIB_MKOSTEMPS=0;
13886
  GNULIB_MKSTEMP=0;
13887
  GNULIB_MKSTEMPS=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13888
  GNULIB_POSIX_OPENPT=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13889
  GNULIB_PTSNAME=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13890
  GNULIB_PTSNAME_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13891
  GNULIB_PUTENV=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13892
  GNULIB_RANDOM=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13893
  GNULIB_RANDOM_R=0;
13894
  GNULIB_REALLOC_POSIX=0;
13895
  GNULIB_REALPATH=0;
13896
  GNULIB_RPMATCH=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13897
  GNULIB_SECURE_GETENV=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13898
  GNULIB_SETENV=0;
13899
  GNULIB_STRTOD=0;
13900
  GNULIB_STRTOLL=0;
13901
  GNULIB_STRTOULL=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13902
  GNULIB_SYSTEM_POSIX=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13903
  GNULIB_UNLOCKPT=0;
13904
  GNULIB_UNSETENV=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13905
  GNULIB_WCTOMB=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13906
    HAVE__EXIT=1;
13907
  HAVE_ATOLL=1;
13908
  HAVE_CANONICALIZE_FILE_NAME=1;
13909
  HAVE_DECL_GETLOADAVG=1;
13910
  HAVE_GETSUBOPT=1;
13911
  HAVE_GRANTPT=1;
13912
  HAVE_MKDTEMP=1;
13913
  HAVE_MKOSTEMP=1;
13914
  HAVE_MKOSTEMPS=1;
13915
  HAVE_MKSTEMP=1;
13916
  HAVE_MKSTEMPS=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13917
  HAVE_POSIX_OPENPT=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13918
  HAVE_PTSNAME=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13919
  HAVE_PTSNAME_R=1;
13920
  HAVE_RANDOM=1;
13921
  HAVE_RANDOM_H=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13922
  HAVE_RANDOM_R=1;
13923
  HAVE_REALPATH=1;
13924
  HAVE_RPMATCH=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13925
  HAVE_SECURE_GETENV=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13926
  HAVE_SETENV=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13927
  HAVE_DECL_SETENV=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13928
  HAVE_STRTOD=1;
13929
  HAVE_STRTOLL=1;
13930
  HAVE_STRTOULL=1;
13931
  HAVE_STRUCT_RANDOM_DATA=1;
13932
  HAVE_SYS_LOADAVG_H=0;
13933
  HAVE_UNLOCKPT=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13934
  HAVE_DECL_UNSETENV=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13935
  REPLACE_CALLOC=0;
13936
  REPLACE_CANONICALIZE_FILE_NAME=0;
13937
  REPLACE_MALLOC=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13938
  REPLACE_MBTOWC=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13939
  REPLACE_MKSTEMP=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13940
  REPLACE_PTSNAME=0;
13941
  REPLACE_PTSNAME_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13942
  REPLACE_PUTENV=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13943
  REPLACE_RANDOM_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13944
  REPLACE_REALLOC=0;
13945
  REPLACE_REALPATH=0;
13946
  REPLACE_SETENV=0;
13947
  REPLACE_STRTOD=0;
13948
  REPLACE_UNSETENV=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
13949
  REPLACE_WCTOMB=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13950
13951
13952
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13953
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13954
if ${gl_cv_func_malloc_posix+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13955
  $as_echo_n "(cached) " >&6
13956
else
13957
13958
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959
/* end confdefs.h.  */
13960
13961
int
13962
main (void)
13963
{
13964
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13965
             choke me
13966
             #endif
13967
13968
  ;
13969
  return 0;
13970
}
13971
_ACEOF
13972
if ac_fn_c_try_compile "$LINENO"; then :
13973
  gl_cv_func_malloc_posix=yes
13974
else
13975
  gl_cv_func_malloc_posix=no
13976
fi
13977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978
13979
fi
13980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13981
$as_echo "$gl_cv_func_malloc_posix" >&6; }
13982
13983
13984
13985
13986
13987
13988
13989
13990
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13991
$as_echo_n "checking for a traditional japanese locale... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
13992
if ${gt_cv_locale_ja+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
13993
  $as_echo_n "(cached) " >&6
13994
else
13995
13996
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997
/* end confdefs.h.  */
13998
13999
#include <locale.h>
14000
#include <time.h>
14001
#if HAVE_LANGINFO_CODESET
14002
# include <langinfo.h>
14003
#endif
14004
#include <stdlib.h>
14005
#include <string.h>
14006
struct tm t;
14007
char buf[16];
14008
int main ()
14009
{
14010
  const char *p;
14011
  /* Check whether the given locale name is recognized by the system.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14012
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14013
  /* On native Windows, setlocale(category, "") looks at the system settings,
14014
     not at the environment variables.  Also, when an encoding suffix such
14015
     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14016
     category of the locale to "C".  */
14017
  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14018
      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14019
    return 1;
14020
#else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14021
  if (setlocale (LC_ALL, "") == NULL) return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14022
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14023
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14024
     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14025
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14026
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14027
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14028
     some unit tests fail.
14029
     On MirBSD 10, when an unsupported locale is specified, setlocale()
14030
     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14031
#if HAVE_LANGINFO_CODESET
14032
  {
14033
    const char *cs = nl_langinfo (CODESET);
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14034
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14035
        || strcmp (cs, "UTF-8") == 0)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14036
      return 1;
14037
  }
14038
#endif
14039
#ifdef __CYGWIN__
14040
  /* On Cygwin, avoid locale names without encoding suffix, because the
14041
     locale_charset() function relies on the encoding suffix.  Note that
14042
     LC_ALL is set on the command line.  */
14043
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14044
#endif
14045
  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
14046
     on Cygwin 1.5.x.  */
14047
  if (MB_CUR_MAX == 1)
14048
    return 1;
14049
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14050
     This excludes the UTF-8 encoding (except on MirBSD).  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14051
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14052
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14053
  for (p = buf; *p != '\0'; p++)
14054
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14055
      return 1;
14056
  return 0;
14057
}
14058
14059
_ACEOF
14060
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14061
  (eval $ac_link) 2>&5
14062
  ac_status=$?
14063
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14064
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14065
      case "$host_os" in
14066
        # Handle native Windows specially, because there setlocale() interprets
14067
        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14068
        # "fr" or "fra" as "French" or "French_France.1252",
14069
        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14070
        # "ja" as "Japanese" or "Japanese_Japan.932",
14071
        # and similar.
14072
        mingw*)
14073
          # Note that on native Windows, the Japanese locale is
14074
          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14075
          # cannot use it here.
14076
          gt_cv_locale_ja=none
14077
          ;;
14078
        *)
14079
          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14080
          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14081
          # configure script would override the LC_ALL setting. Likewise for
14082
          # LC_CTYPE, which is also set at the beginning of the configure script.
14083
          # Test for the AIX locale name.
14084
          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14085
            gt_cv_locale_ja=ja_JP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14086
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14087
            # Test for the locale name with explicit encoding suffix.
14088
            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14089
              gt_cv_locale_ja=ja_JP.EUC-JP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14090
            else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14091
              # Test for the HP-UX, OSF/1, NetBSD locale name.
14092
              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14093
                gt_cv_locale_ja=ja_JP.eucJP
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14094
              else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14095
                # Test for the IRIX, FreeBSD locale name.
14096
                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14097
                  gt_cv_locale_ja=ja_JP.EUC
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14098
                else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14099
                  # Test for the Solaris 7 locale name.
14100
                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14101
                    gt_cv_locale_ja=ja
14102
                  else
14103
                    # Special test for NetBSD 1.6.
14104
                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14105
                      gt_cv_locale_ja=ja_JP.eucJP
14106
                    else
14107
                      # None found.
14108
                      gt_cv_locale_ja=none
14109
                    fi
14110
                  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14111
                fi
14112
              fi
14113
            fi
14114
          fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14115
          ;;
14116
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14117
    fi
14118
    rm -fr conftest*
14119
14120
fi
14121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14122
$as_echo "$gt_cv_locale_ja" >&6; }
14123
  LOCALE_JA=$gt_cv_locale_ja
14124
14125
14126
14127
14128
14129
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14130
$as_echo_n "checking for a transitional chinese locale... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
14131
if ${gt_cv_locale_zh_CN+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14132
  $as_echo_n "(cached) " >&6
14133
else
14134
14135
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136
/* end confdefs.h.  */
14137
14138
#include <locale.h>
14139
#include <stdlib.h>
14140
#include <time.h>
14141
#if HAVE_LANGINFO_CODESET
14142
# include <langinfo.h>
14143
#endif
14144
#include <stdlib.h>
14145
#include <string.h>
14146
struct tm t;
14147
char buf[16];
14148
int main ()
14149
{
14150
  const char *p;
14151
  /* Check whether the given locale name is recognized by the system.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14152
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14153
  /* On native Windows, setlocale(category, "") looks at the system settings,
14154
     not at the environment variables.  Also, when an encoding suffix such
14155
     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14156
     category of the locale to "C".  */
14157
  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14158
      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14159
    return 1;
14160
#else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14161
  if (setlocale (LC_ALL, "") == NULL) return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14162
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14163
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14164
     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14165
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14166
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14167
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14168
     some unit tests fail.
14169
     On MirBSD 10, when an unsupported locale is specified, setlocale()
14170
     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14171
#if HAVE_LANGINFO_CODESET
14172
  {
14173
    const char *cs = nl_langinfo (CODESET);
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14174
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14175
        || strcmp (cs, "UTF-8") == 0)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14176
      return 1;
14177
  }
14178
#endif
14179
#ifdef __CYGWIN__
14180
  /* On Cygwin, avoid locale names without encoding suffix, because the
14181
     locale_charset() function relies on the encoding suffix.  Note that
14182
     LC_ALL is set on the command line.  */
14183
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14184
#endif
14185
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14186
     This excludes the UTF-8 encoding (except on MirBSD).  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14187
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14188
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14189
  for (p = buf; *p != '\0'; p++)
14190
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14191
      return 1;
14192
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
14193
     single wide character.  This excludes the GB2312 and GBK encodings.  */
14194
  if (mblen ("\203\062\332\066", 5) != 4)
14195
    return 1;
14196
  return 0;
14197
}
14198
14199
_ACEOF
14200
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14201
  (eval $ac_link) 2>&5
14202
  ac_status=$?
14203
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14204
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14205
      case "$host_os" in
14206
        # Handle native Windows specially, because there setlocale() interprets
14207
        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14208
        # "fr" or "fra" as "French" or "French_France.1252",
14209
        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14210
        # "ja" as "Japanese" or "Japanese_Japan.932",
14211
        # and similar.
14212
        mingw*)
14213
          # Test for the hypothetical native Windows locale name.
14214
          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14215
            gt_cv_locale_zh_CN=Chinese_China.54936
14216
          else
14217
            # None found.
14218
            gt_cv_locale_zh_CN=none
14219
          fi
14220
          ;;
14221
        solaris2.8)
14222
          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14223
          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14224
          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14225
          gt_cv_locale_zh_CN=none
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14226
          ;;
14227
        *)
14228
          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14229
          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14230
          # configure script would override the LC_ALL setting. Likewise for
14231
          # LC_CTYPE, which is also set at the beginning of the configure script.
14232
          # Test for the locale name without encoding suffix.
14233
          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14234
            gt_cv_locale_zh_CN=zh_CN
14235
          else
14236
            # Test for the locale name with explicit encoding suffix.
14237
            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14238
              gt_cv_locale_zh_CN=zh_CN.GB18030
14239
            else
14240
              # None found.
14241
              gt_cv_locale_zh_CN=none
14242
            fi
14243
          fi
14244
          ;;
14245
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14246
    else
14247
      # If there was a link error, due to mblen(), the system is so old that
14248
      # it certainly doesn't have a chinese locale.
14249
      gt_cv_locale_zh_CN=none
14250
    fi
14251
    rm -fr conftest*
14252
14253
fi
14254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14255
$as_echo "$gt_cv_locale_zh_CN" >&6; }
14256
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14257
14258
14259
14260
14261
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14262
$as_echo_n "checking for a french Unicode locale... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
14263
if ${gt_cv_locale_fr_utf8+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14264
  $as_echo_n "(cached) " >&6
14265
else
14266
14267
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268
/* end confdefs.h.  */
14269
14270
#include <locale.h>
14271
#include <time.h>
14272
#if HAVE_LANGINFO_CODESET
14273
# include <langinfo.h>
14274
#endif
14275
#include <stdlib.h>
14276
#include <string.h>
14277
struct tm t;
14278
char buf[16];
14279
int main () {
14280
  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
14281
     imitates locale dependent behaviour by looking at the environment
14282
     variables, and all locales use the UTF-8 encoding.  */
14283
#if !(defined __BEOS__ || defined __HAIKU__)
14284
  /* Check whether the given locale name is recognized by the system.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14285
# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14286
  /* On native Windows, setlocale(category, "") looks at the system settings,
14287
     not at the environment variables.  Also, when an encoding suffix such
14288
     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14289
     category of the locale to "C".  */
14290
  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14291
      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14292
    return 1;
14293
# else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14294
  if (setlocale (LC_ALL, "") == NULL) return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14295
# endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14296
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14297
     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14298
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14299
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14300
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14301
     some unit tests fail.  */
14302
# if HAVE_LANGINFO_CODESET
14303
  {
14304
    const char *cs = nl_langinfo (CODESET);
14305
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14306
      return 1;
14307
  }
14308
# endif
14309
# ifdef __CYGWIN__
14310
  /* On Cygwin, avoid locale names without encoding suffix, because the
14311
     locale_charset() function relies on the encoding suffix.  Note that
14312
     LC_ALL is set on the command line.  */
14313
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14314
# endif
14315
  /* Check whether in the abbreviation of the second month, the second
14316
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14317
     two bytes long, with UTF-8 encoding.  */
14318
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14319
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
14320
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14321
    return 1;
14322
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14323
#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14324
  /* Check whether the decimal separator is a comma.
14325
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14326
     are nl_langinfo(RADIXCHAR) are both ".".  */
14327
  if (localeconv () ->decimal_point[0] != ',') return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14328
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14329
  return 0;
14330
}
14331
14332
_ACEOF
14333
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14334
  (eval $ac_link) 2>&5
14335
  ac_status=$?
14336
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14337
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14338
      case "$host_os" in
14339
        # Handle native Windows specially, because there setlocale() interprets
14340
        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14341
        # "fr" or "fra" as "French" or "French_France.1252",
14342
        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14343
        # "ja" as "Japanese" or "Japanese_Japan.932",
14344
        # and similar.
14345
        mingw*)
14346
          # Test for the hypothetical native Windows locale name.
14347
          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14348
            gt_cv_locale_fr_utf8=French_France.65001
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14349
          else
14350
            # None found.
14351
            gt_cv_locale_fr_utf8=none
14352
          fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14353
          ;;
14354
        *)
14355
          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14356
          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14357
          # configure script would override the LC_ALL setting. Likewise for
14358
          # LC_CTYPE, which is also set at the beginning of the configure script.
14359
          # Test for the usual locale name.
14360
          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14361
            gt_cv_locale_fr_utf8=fr_FR
14362
          else
14363
            # Test for the locale name with explicit encoding suffix.
14364
            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14365
              gt_cv_locale_fr_utf8=fr_FR.UTF-8
14366
            else
14367
              # Test for the Solaris 7 locale name.
14368
              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14369
                gt_cv_locale_fr_utf8=fr.UTF-8
14370
              else
14371
                # None found.
14372
                gt_cv_locale_fr_utf8=none
14373
              fi
14374
            fi
14375
          fi
14376
          ;;
14377
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14378
    fi
14379
    rm -fr conftest*
14380
14381
fi
14382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14383
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
14384
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
14385
14386
14387
14388
14389
14390
14391
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14392
14393
14394
14395
14396
  GNULIB_FFSL=0;
14397
  GNULIB_FFSLL=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14398
  GNULIB_MEMCHR=0;
14399
  GNULIB_MEMMEM=0;
14400
  GNULIB_MEMPCPY=0;
14401
  GNULIB_MEMRCHR=0;
14402
  GNULIB_RAWMEMCHR=0;
14403
  GNULIB_STPCPY=0;
14404
  GNULIB_STPNCPY=0;
14405
  GNULIB_STRCHRNUL=0;
14406
  GNULIB_STRDUP=0;
14407
  GNULIB_STRNCAT=0;
14408
  GNULIB_STRNDUP=0;
14409
  GNULIB_STRNLEN=0;
14410
  GNULIB_STRPBRK=0;
14411
  GNULIB_STRSEP=0;
14412
  GNULIB_STRSTR=0;
14413
  GNULIB_STRCASESTR=0;
14414
  GNULIB_STRTOK_R=0;
14415
  GNULIB_MBSLEN=0;
14416
  GNULIB_MBSNLEN=0;
14417
  GNULIB_MBSCHR=0;
14418
  GNULIB_MBSRCHR=0;
14419
  GNULIB_MBSSTR=0;
14420
  GNULIB_MBSCASECMP=0;
14421
  GNULIB_MBSNCASECMP=0;
14422
  GNULIB_MBSPCASECMP=0;
14423
  GNULIB_MBSCASESTR=0;
14424
  GNULIB_MBSCSPN=0;
14425
  GNULIB_MBSPBRK=0;
14426
  GNULIB_MBSSPN=0;
14427
  GNULIB_MBSSEP=0;
14428
  GNULIB_MBSTOK_R=0;
14429
  GNULIB_STRERROR=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14430
  GNULIB_STRERROR_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14431
  GNULIB_STRSIGNAL=0;
14432
  GNULIB_STRVERSCMP=0;
14433
  HAVE_MBSLEN=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14434
    HAVE_FFSL=1;
14435
  HAVE_FFSLL=1;
14436
  HAVE_MEMCHR=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14437
  HAVE_DECL_MEMMEM=1;
14438
  HAVE_MEMPCPY=1;
14439
  HAVE_DECL_MEMRCHR=1;
14440
  HAVE_RAWMEMCHR=1;
14441
  HAVE_STPCPY=1;
14442
  HAVE_STPNCPY=1;
14443
  HAVE_STRCHRNUL=1;
14444
  HAVE_DECL_STRDUP=1;
14445
  HAVE_DECL_STRNDUP=1;
14446
  HAVE_DECL_STRNLEN=1;
14447
  HAVE_STRPBRK=1;
14448
  HAVE_STRSEP=1;
14449
  HAVE_STRCASESTR=1;
14450
  HAVE_DECL_STRTOK_R=1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14451
  HAVE_DECL_STRERROR_R=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14452
  HAVE_DECL_STRSIGNAL=1;
14453
  HAVE_STRVERSCMP=1;
14454
  REPLACE_MEMCHR=0;
14455
  REPLACE_MEMMEM=0;
14456
  REPLACE_STPNCPY=0;
14457
  REPLACE_STRDUP=0;
14458
  REPLACE_STRSTR=0;
14459
  REPLACE_STRCASESTR=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14460
  REPLACE_STRCHRNUL=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14461
  REPLACE_STRERROR=0;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14462
  REPLACE_STRERROR_R=0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14463
  REPLACE_STRNCAT=0;
14464
  REPLACE_STRNDUP=0;
14465
  REPLACE_STRNLEN=0;
14466
  REPLACE_STRSIGNAL=0;
14467
  REPLACE_STRTOK_R=0;
14468
  UNDEFINE_STRTOK_R=0;
14469
14470
14471
14472
14473
14474
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14475
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14476
  # irrelevant for anonymous mappings.
14477
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
1.15.15 by Colin Watson
Import upstream version 1.99
14478
if test "x$ac_cv_func_mmap" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14479
  gl_have_mmap=yes
14480
else
14481
  gl_have_mmap=no
14482
fi
14483
14484
14485
  # Try to allow MAP_ANONYMOUS.
14486
  gl_have_mmap_anonymous=no
14487
  if test $gl_have_mmap = yes; then
14488
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14489
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14490
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491
/* end confdefs.h.  */
14492
14493
#include <sys/mman.h>
14494
#ifdef MAP_ANONYMOUS
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14495
    I cannot identify this map
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14496
#endif
14497
14498
_ACEOF
14499
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14500
  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14501
  gl_have_mmap_anonymous=yes
14502
fi
14503
rm -f conftest*
14504
14505
    if test $gl_have_mmap_anonymous != yes; then
14506
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507
/* end confdefs.h.  */
14508
14509
#include <sys/mman.h>
14510
#ifdef MAP_ANON
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14511
    I cannot identify this map
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14512
#endif
14513
14514
_ACEOF
14515
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14516
  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14517
14518
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14519
14520
         gl_have_mmap_anonymous=yes
14521
fi
14522
rm -f conftest*
14523
14524
    fi
14525
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14526
$as_echo "$gl_have_mmap_anonymous" >&6; }
14527
    if test $gl_have_mmap_anonymous = yes; then
14528
14529
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14530
14531
    fi
14532
  fi
14533
14534
14535
14536
14537
14538
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14539
  if test $HAVE_MEMCHR = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14540
    # Detect platform-specific bugs in some versions of glibc:
14541
    # memchr should not dereference anything with length 0
14542
    #   http://bugzilla.redhat.com/499689
14543
    # memchr should not dereference overestimated length after a match
14544
    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14545
    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14546
    # Assume that memchr works on platforms that lack mprotect.
14547
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14548
$as_echo_n "checking whether memchr works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
14549
if ${gl_cv_func_memchr_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14550
  $as_echo_n "(cached) " >&6
14551
else
14552
  if test "$cross_compiling" = yes; then :
14553
         gl_cv_func_memchr_works="guessing no"
14554
else
14555
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556
/* end confdefs.h.  */
14557
14558
#include <string.h>
14559
#if HAVE_SYS_MMAN_H
14560
# include <fcntl.h>
14561
# include <unistd.h>
14562
# include <sys/types.h>
14563
# include <sys/mman.h>
14564
# ifndef MAP_FILE
14565
#  define MAP_FILE 0
14566
# endif
14567
#endif
14568
14569
int
14570
main (void)
14571
{
14572
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14573
  int result = 0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14574
  char *fence = NULL;
14575
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14576
# if HAVE_MAP_ANONYMOUS
14577
  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14578
  const int fd = -1;
14579
# else /* !HAVE_MAP_ANONYMOUS */
14580
  const int flags = MAP_FILE | MAP_PRIVATE;
14581
  int fd = open ("/dev/zero", O_RDONLY, 0666);
14582
  if (fd >= 0)
14583
# endif
14584
    {
14585
      int pagesize = getpagesize ();
14586
      char *two_pages =
14587
        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14588
                       flags, fd, 0);
14589
      if (two_pages != (char *)(-1)
14590
          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14591
        fence = two_pages + pagesize;
14592
    }
14593
#endif
14594
  if (fence)
14595
    {
14596
      if (memchr (fence, 0, 0))
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14597
        result |= 1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14598
      strcpy (fence - 9, "12345678");
14599
      if (memchr (fence - 9, 0, 79) != fence - 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14600
        result |= 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14601
      if (memchr (fence - 1, 0, 3) != fence - 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14602
        result |= 4;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14603
    }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14604
  return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14605
14606
  ;
14607
  return 0;
14608
}
14609
_ACEOF
14610
if ac_fn_c_try_run "$LINENO"; then :
14611
  gl_cv_func_memchr_works=yes
14612
else
14613
  gl_cv_func_memchr_works=no
14614
fi
14615
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14616
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14617
fi
14618
14619
fi
14620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14621
$as_echo "$gl_cv_func_memchr_works" >&6; }
14622
    if test "$gl_cv_func_memchr_works" != yes; then
14623
      REPLACE_MEMCHR=1
14624
    fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14625
  fi
14626
14627
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14628
14629
14630
    gl_cv_c_multiarch=no
14631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632
/* end confdefs.h.  */
14633
#ifndef __APPLE_CC__
14634
         not a universal capable compiler
14635
        #endif
14636
        typedef int dummy;
14637
14638
_ACEOF
14639
if ac_fn_c_try_compile "$LINENO"; then :
14640
14641
               arch=
14642
     prev=
14643
     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14644
       if test -n "$prev"; then
14645
         case $word in
14646
           i?86 | x86_64 | ppc | ppc64)
14647
             if test -z "$arch" || test "$arch" = "$word"; then
14648
               arch="$word"
14649
             else
14650
               gl_cv_c_multiarch=yes
14651
             fi
14652
             ;;
14653
         esac
14654
         prev=
14655
       else
14656
         if test "x$word" = "x-arch"; then
14657
           prev=arch
14658
         fi
14659
       fi
14660
     done
14661
14662
fi
14663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664
  if test $gl_cv_c_multiarch = yes; then
14665
    APPLE_UNIVERSAL_BUILD=1
14666
  else
14667
    APPLE_UNIVERSAL_BUILD=0
14668
  fi
14669
14670
14671
14672
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14673
ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14674
if test "x$ac_cv_have_decl_alarm" = xyes; then :
14675
  ac_have_decl=1
14676
else
14677
  ac_have_decl=0
14678
fi
14679
14680
cat >>confdefs.h <<_ACEOF
14681
#define HAVE_DECL_ALARM $ac_have_decl
14682
_ACEOF
14683
14684
14685
14686
      for ac_header in stdlib.h
14687
do :
14688
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14689
if test "x$ac_cv_header_stdlib_h" = xyes; then :
14690
  cat >>confdefs.h <<_ACEOF
14691
#define HAVE_STDLIB_H 1
14692
_ACEOF
14693
14694
fi
14695
14696
done
14697
14698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14699
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14700
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14701
  $as_echo_n "(cached) " >&6
14702
else
14703
  if test "$cross_compiling" = yes; then :
14704
  case "$host_os" in
14705
          # Guess yes on platforms where we know the result.
14706
          *-gnu* | freebsd* | netbsd* | openbsd* \
14707
          | hpux* | solaris* | cygwin* | mingw*)
14708
            ac_cv_func_malloc_0_nonnull=yes ;;
14709
          # If we don't know, assume the worst.
14710
          *) ac_cv_func_malloc_0_nonnull=no ;;
14711
        esac
14712
14713
else
14714
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715
/* end confdefs.h.  */
14716
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14717
            # include <stdlib.h>
14718
            #else
14719
            char *malloc ();
14720
            #endif
14721
14722
int
14723
main (void)
14724
{
14725
return ! malloc (0);
14726
  ;
14727
  return 0;
14728
}
14729
14730
_ACEOF
14731
if ac_fn_c_try_run "$LINENO"; then :
14732
  ac_cv_func_malloc_0_nonnull=yes
14733
else
14734
  ac_cv_func_malloc_0_nonnull=no
14735
fi
14736
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14737
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14738
fi
14739
14740
14741
fi
14742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14743
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14744
  if test $ac_cv_func_malloc_0_nonnull = yes; then :
14745
  gl_cv_func_malloc_0_nonnull=1
14746
else
14747
  gl_cv_func_malloc_0_nonnull=0
14748
fi
14749
14750
14751
cat >>confdefs.h <<_ACEOF
14752
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14753
_ACEOF
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14754
14755
14756
14757
14758
14759
14760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14761
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
14762
if ${ac_cv_header_stdbool_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14763
  $as_echo_n "(cached) " >&6
14764
else
14765
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766
/* end confdefs.h.  */
14767
14768
             #include <stdbool.h>
14769
             #ifndef bool
14770
              "error: bool is not defined"
14771
             #endif
14772
             #ifndef false
14773
              "error: false is not defined"
14774
             #endif
14775
             #if false
14776
              "error: false is not 0"
14777
             #endif
14778
             #ifndef true
14779
              "error: true is not defined"
14780
             #endif
14781
             #if true != 1
14782
              "error: true is not 1"
14783
             #endif
14784
             #ifndef __bool_true_false_are_defined
14785
              "error: __bool_true_false_are_defined is not defined"
14786
             #endif
14787
14788
             struct s { _Bool s: 1; _Bool t; } s;
14789
14790
             char a[true == 1 ? 1 : -1];
14791
             char b[false == 0 ? 1 : -1];
14792
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14793
             char d[(bool) 0.5 == true ? 1 : -1];
14794
             /* See body of main program for 'e'.  */
14795
             char f[(_Bool) 0.0 == false ? 1 : -1];
14796
             char g[true];
14797
             char h[sizeof (_Bool)];
14798
             char i[sizeof s.t];
14799
             enum { j = false, k = true, l = false * true, m = true * 256 };
14800
             /* The following fails for
14801
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14802
             _Bool n[m];
14803
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14804
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14805
             /* Catch a bug in an HP-UX C compiler.  See
14806
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14807
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14808
              */
14809
             _Bool q = true;
14810
             _Bool *pq = &q;
14811
14812
int
14813
main (void)
14814
{
14815
14816
             bool e = &s;
14817
             *pq |= q;
14818
             *pq |= ! q;
14819
             /* Refer to every declared value, to avoid compiler optimizations.  */
14820
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14821
                     + !m + !n + !o + !p + !q + !pq);
14822
14823
  ;
14824
  return 0;
14825
}
14826
_ACEOF
14827
if ac_fn_c_try_compile "$LINENO"; then :
14828
  ac_cv_header_stdbool_h=yes
14829
else
14830
  ac_cv_header_stdbool_h=no
14831
fi
14832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833
fi
14834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14835
$as_echo "$ac_cv_header_stdbool_h" >&6; }
14836
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
14837
if test "x$ac_cv_type__Bool" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14838
14839
cat >>confdefs.h <<_ACEOF
14840
#define HAVE__BOOL 1
14841
_ACEOF
14842
14843
14844
fi
14845
14846
14847
14848
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14849
$as_echo_n "checking for unsigned long long int... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
14850
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14851
  $as_echo_n "(cached) " >&6
14852
else
14853
  ac_cv_type_unsigned_long_long_int=yes
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14854
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14855
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856
/* end confdefs.h.  */
14857
14858
  /* For now, do not test the preprocessor; as of 2007 there are too many
14859
         implementations with broken preprocessors.  Perhaps this can
14860
         be revisited in 2012.  In the meantime, code should not expect
14861
         #if to work with literals wider than 32 bits.  */
14862
      /* Test literals.  */
14863
      long long int ll = 9223372036854775807ll;
14864
      long long int nll = -9223372036854775807LL;
14865
      unsigned long long int ull = 18446744073709551615ULL;
14866
      /* Test constant expressions.   */
14867
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14868
                     ? 1 : -1)];
14869
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14870
                     ? 1 : -1)];
14871
      int i = 63;
14872
int
14873
main (void)
14874
{
14875
/* Test availability of runtime routines for shift and division.  */
14876
      long long int llmax = 9223372036854775807ll;
14877
      unsigned long long int ullmax = 18446744073709551615ull;
14878
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14879
              | (llmax / ll) | (llmax % ll)
14880
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14881
              | (ullmax / ull) | (ullmax % ull));
14882
  ;
14883
  return 0;
14884
}
14885
14886
_ACEOF
14887
if ac_fn_c_try_link "$LINENO"; then :
14888
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14889
else
14890
  ac_cv_type_unsigned_long_long_int=no
14891
fi
14892
rm -f core conftest.err conftest.$ac_objext \
14893
    conftest$ac_exeext conftest.$ac_ext
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14894
     fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
14895
fi
14896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14897
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14898
  if test $ac_cv_type_unsigned_long_long_int = yes; then
14899
14900
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14901
14902
  fi
14903
14904
14905
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
14906
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14907
$as_echo_n "checking for long long int... " >&6; }
14908
if ${ac_cv_type_long_long_int+:} false; then :
14909
  $as_echo_n "(cached) " >&6
14910
else
14911
  ac_cv_type_long_long_int=yes
14912
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14913
        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14914
        if test $ac_cv_type_long_long_int = yes; then
14915
                                        if test "$cross_compiling" = yes; then :
14916
  :
14917
else
14918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919
/* end confdefs.h.  */
14920
#include <limits.h>
14921
                 #ifndef LLONG_MAX
14922
                 # define HALF \
14923
                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14924
                 # define LLONG_MAX (HALF - 1 + HALF)
14925
                 #endif
14926
int
14927
main (void)
14928
{
14929
long long int n = 1;
14930
                 int i;
14931
                 for (i = 0; ; i++)
14932
                   {
14933
                     long long int m = n << i;
14934
                     if (m >> i != n)
14935
                       return 1;
14936
                     if (LLONG_MAX / 2 < m)
14937
                       break;
14938
                   }
14939
                 return 0;
14940
  ;
14941
  return 0;
14942
}
14943
_ACEOF
14944
if ac_fn_c_try_run "$LINENO"; then :
14945
14946
else
14947
  ac_cv_type_long_long_int=no
14948
fi
14949
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14950
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14951
fi
14952
14953
        fi
14954
      fi
14955
fi
14956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14957
$as_echo "$ac_cv_type_long_long_int" >&6; }
14958
  if test $ac_cv_type_long_long_int = yes; then
14959
14960
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14961
14962
  fi
14963
14964
14965
14966
14967
14968
14969
  if test $ac_cv_type_long_long_int = yes; then
14970
    HAVE_LONG_LONG_INT=1
14971
  else
14972
    HAVE_LONG_LONG_INT=0
14973
  fi
14974
14975
14976
  if test $ac_cv_type_unsigned_long_long_int = yes; then
14977
    HAVE_UNSIGNED_LONG_LONG_INT=1
14978
  else
14979
    HAVE_UNSIGNED_LONG_LONG_INT=0
14980
  fi
14981
14982
14983
14984
  if test $ac_cv_header_wchar_h = yes; then
14985
    HAVE_WCHAR_H=1
14986
  else
14987
    HAVE_WCHAR_H=0
14988
  fi
14989
14990
14991
      if test $ac_cv_header_inttypes_h = yes; then
14992
    HAVE_INTTYPES_H=1
14993
  else
14994
    HAVE_INTTYPES_H=0
14995
  fi
14996
14997
14998
      if test $ac_cv_header_sys_types_h = yes; then
14999
    HAVE_SYS_TYPES_H=1
15000
  else
15001
    HAVE_SYS_TYPES_H=0
15002
  fi
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
     if test $gl_cv_have_include_next = yes; then
15015
       gl_cv_next_stdint_h='<'stdint.h'>'
15016
     else
15017
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15018
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15019
if ${gl_cv_next_stdint_h+:} false; then :
15020
  $as_echo_n "(cached) " >&6
15021
else
15022
15023
             if test $ac_cv_header_stdint_h = yes; then
15024
15025
15026
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027
/* end confdefs.h.  */
15028
#include <stdint.h>
15029
15030
_ACEOF
15031
                                                                                                                        case "$host_os" in
15032
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15033
                 *)    gl_absname_cpp="$ac_cpp" ;;
15034
               esac
15035
15036
               case "$host_os" in
15037
                 mingw*)
15038
                                                                                                                                     gl_dirsep_regex='[/\\]'
15039
                   ;;
15040
                 *)
15041
                   gl_dirsep_regex='\/'
15042
                   ;;
15043
               esac
15044
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15045
15046
               gl_header_literal_regex=`echo 'stdint.h' \
15047
                                        | sed -e "$gl_make_literal_regex_sed"`
15048
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15049
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15050
                   s|^/[^/]|//&|
15051
                   p
15052
                   q
15053
                 }'
15054
                                                            gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15055
                      sed -n "$gl_absolute_header_sed"`'"'
15056
          else
15057
               gl_cv_next_stdint_h='<'stdint.h'>'
15058
             fi
15059
15060
15061
fi
15062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15063
$as_echo "$gl_cv_next_stdint_h" >&6; }
15064
     fi
15065
     NEXT_STDINT_H=$gl_cv_next_stdint_h
15066
15067
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15068
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15069
       gl_next_as_first_directive='<'stdint.h'>'
15070
     else
15071
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15072
       gl_next_as_first_directive=$gl_cv_next_stdint_h
15073
     fi
15074
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15075
15076
15077
15078
15079
  if test $ac_cv_header_stdint_h = yes; then
15080
    HAVE_STDINT_H=1
15081
  else
15082
    HAVE_STDINT_H=0
15083
  fi
15084
15085
15086
    if test $ac_cv_header_stdint_h = yes; then
15087
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15088
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15089
if ${gl_cv_header_working_stdint_h+:} false; then :
15090
  $as_echo_n "(cached) " >&6
15091
else
15092
  gl_cv_header_working_stdint_h=no
15093
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094
/* end confdefs.h.  */
15095
15096
15097
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15098
#include <stdint.h>
15099
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
15100
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
15101
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15102
#endif
15103
15104
15105
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15106
     included before <wchar.h>.  */
15107
  #include <stddef.h>
15108
  #include <signal.h>
15109
  #if HAVE_WCHAR_H
15110
  # include <stdio.h>
15111
  # include <time.h>
15112
  # include <wchar.h>
15113
  #endif
15114
15115
15116
#ifdef INT8_MAX
15117
int8_t a1 = INT8_MAX;
15118
int8_t a1min = INT8_MIN;
15119
#endif
15120
#ifdef INT16_MAX
15121
int16_t a2 = INT16_MAX;
15122
int16_t a2min = INT16_MIN;
15123
#endif
15124
#ifdef INT32_MAX
15125
int32_t a3 = INT32_MAX;
15126
int32_t a3min = INT32_MIN;
15127
#endif
15128
#ifdef INT64_MAX
15129
int64_t a4 = INT64_MAX;
15130
int64_t a4min = INT64_MIN;
15131
#endif
15132
#ifdef UINT8_MAX
15133
uint8_t b1 = UINT8_MAX;
15134
#else
15135
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15136
#endif
15137
#ifdef UINT16_MAX
15138
uint16_t b2 = UINT16_MAX;
15139
#endif
15140
#ifdef UINT32_MAX
15141
uint32_t b3 = UINT32_MAX;
15142
#endif
15143
#ifdef UINT64_MAX
15144
uint64_t b4 = UINT64_MAX;
15145
#endif
15146
int_least8_t c1 = INT8_C (0x7f);
15147
int_least8_t c1max = INT_LEAST8_MAX;
15148
int_least8_t c1min = INT_LEAST8_MIN;
15149
int_least16_t c2 = INT16_C (0x7fff);
15150
int_least16_t c2max = INT_LEAST16_MAX;
15151
int_least16_t c2min = INT_LEAST16_MIN;
15152
int_least32_t c3 = INT32_C (0x7fffffff);
15153
int_least32_t c3max = INT_LEAST32_MAX;
15154
int_least32_t c3min = INT_LEAST32_MIN;
15155
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15156
int_least64_t c4max = INT_LEAST64_MAX;
15157
int_least64_t c4min = INT_LEAST64_MIN;
15158
uint_least8_t d1 = UINT8_C (0xff);
15159
uint_least8_t d1max = UINT_LEAST8_MAX;
15160
uint_least16_t d2 = UINT16_C (0xffff);
15161
uint_least16_t d2max = UINT_LEAST16_MAX;
15162
uint_least32_t d3 = UINT32_C (0xffffffff);
15163
uint_least32_t d3max = UINT_LEAST32_MAX;
15164
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15165
uint_least64_t d4max = UINT_LEAST64_MAX;
15166
int_fast8_t e1 = INT_FAST8_MAX;
15167
int_fast8_t e1min = INT_FAST8_MIN;
15168
int_fast16_t e2 = INT_FAST16_MAX;
15169
int_fast16_t e2min = INT_FAST16_MIN;
15170
int_fast32_t e3 = INT_FAST32_MAX;
15171
int_fast32_t e3min = INT_FAST32_MIN;
15172
int_fast64_t e4 = INT_FAST64_MAX;
15173
int_fast64_t e4min = INT_FAST64_MIN;
15174
uint_fast8_t f1 = UINT_FAST8_MAX;
15175
uint_fast16_t f2 = UINT_FAST16_MAX;
15176
uint_fast32_t f3 = UINT_FAST32_MAX;
15177
uint_fast64_t f4 = UINT_FAST64_MAX;
15178
#ifdef INTPTR_MAX
15179
intptr_t g = INTPTR_MAX;
15180
intptr_t gmin = INTPTR_MIN;
15181
#endif
15182
#ifdef UINTPTR_MAX
15183
uintptr_t h = UINTPTR_MAX;
15184
#endif
15185
intmax_t i = INTMAX_MAX;
15186
uintmax_t j = UINTMAX_MAX;
15187
15188
#include <limits.h> /* for CHAR_BIT */
15189
#define TYPE_MINIMUM(t) \
15190
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15191
#define TYPE_MAXIMUM(t) \
15192
  ((t) ((t) 0 < (t) -1 \
15193
        ? (t) -1 \
15194
        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15195
struct s {
15196
  int check_PTRDIFF:
15197
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15198
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15199
      ? 1 : -1;
15200
  /* Detect bug in FreeBSD 6.0 / ia64.  */
15201
  int check_SIG_ATOMIC:
15202
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15203
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15204
      ? 1 : -1;
15205
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15206
  int check_WCHAR:
15207
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15208
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15209
      ? 1 : -1;
15210
  /* Detect bug in mingw.  */
15211
  int check_WINT:
15212
      WINT_MIN == TYPE_MINIMUM (wint_t)
15213
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
15214
      ? 1 : -1;
15215
15216
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
15217
  int check_UINT8_C:
15218
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15219
  int check_UINT16_C:
15220
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15221
15222
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
15223
#ifdef UINT8_MAX
15224
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15225
#endif
15226
#ifdef UINT16_MAX
15227
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15228
#endif
15229
#ifdef UINT32_MAX
15230
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15231
#endif
15232
#ifdef UINT64_MAX
15233
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15234
#endif
15235
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15236
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15237
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15238
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15239
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15240
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15241
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15242
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15243
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15244
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15245
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15246
};
15247
15248
int
15249
main (void)
15250
{
15251
15252
  ;
15253
  return 0;
15254
}
15255
_ACEOF
15256
if ac_fn_c_try_compile "$LINENO"; then :
15257
                                                    if test "$cross_compiling" = yes; then :
15258
                 gl_cv_header_working_stdint_h=yes
15259
15260
else
15261
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262
/* end confdefs.h.  */
15263
15264
15265
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15266
#include <stdint.h>
15267
15268
15269
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15270
     included before <wchar.h>.  */
15271
  #include <stddef.h>
15272
  #include <signal.h>
15273
  #if HAVE_WCHAR_H
15274
  # include <stdio.h>
15275
  # include <time.h>
15276
  # include <wchar.h>
15277
  #endif
15278
15279
15280
#include <stdio.h>
15281
#include <string.h>
15282
#define MVAL(macro) MVAL1(macro)
15283
#define MVAL1(expression) #expression
15284
static const char *macro_values[] =
15285
  {
15286
#ifdef INT8_MAX
15287
    MVAL (INT8_MAX),
15288
#endif
15289
#ifdef INT16_MAX
15290
    MVAL (INT16_MAX),
15291
#endif
15292
#ifdef INT32_MAX
15293
    MVAL (INT32_MAX),
15294
#endif
15295
#ifdef INT64_MAX
15296
    MVAL (INT64_MAX),
15297
#endif
15298
#ifdef UINT8_MAX
15299
    MVAL (UINT8_MAX),
15300
#endif
15301
#ifdef UINT16_MAX
15302
    MVAL (UINT16_MAX),
15303
#endif
15304
#ifdef UINT32_MAX
15305
    MVAL (UINT32_MAX),
15306
#endif
15307
#ifdef UINT64_MAX
15308
    MVAL (UINT64_MAX),
15309
#endif
15310
    NULL
15311
  };
15312
15313
int
15314
main (void)
15315
{
15316
15317
  const char **mv;
15318
  for (mv = macro_values; *mv != NULL; mv++)
15319
    {
15320
      const char *value = *mv;
15321
      /* Test whether it looks like a cast expression.  */
15322
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15323
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15324
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15325
          || strncmp (value, "((int)"/*)*/, 6) == 0
15326
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
15327
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15328
        return mv - macro_values + 1;
15329
    }
15330
  return 0;
15331
15332
  ;
15333
  return 0;
15334
}
15335
_ACEOF
15336
if ac_fn_c_try_run "$LINENO"; then :
15337
  gl_cv_header_working_stdint_h=yes
15338
fi
15339
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15340
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15341
fi
15342
15343
15344
fi
15345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346
15347
fi
15348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15349
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
15350
  fi
15351
  if test "$gl_cv_header_working_stdint_h" = yes; then
15352
    STDINT_H=
15353
  else
15354
            for ac_header in sys/inttypes.h sys/bitypes.h
15355
do :
15356
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15357
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15358
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15359
  cat >>confdefs.h <<_ACEOF
15360
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15361
_ACEOF
15362
15363
fi
15364
15365
done
15366
15367
    if test $ac_cv_header_sys_inttypes_h = yes; then
15368
      HAVE_SYS_INTTYPES_H=1
15369
    else
15370
      HAVE_SYS_INTTYPES_H=0
15371
    fi
15372
15373
    if test $ac_cv_header_sys_bitypes_h = yes; then
15374
      HAVE_SYS_BITYPES_H=1
15375
    else
15376
      HAVE_SYS_BITYPES_H=0
15377
    fi
15378
15379
15380
15381
15382
  if test $APPLE_UNIVERSAL_BUILD = 0; then
15383
15384
15385
  for gltype in ptrdiff_t size_t ; do
15386
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15387
$as_echo_n "checking for bit size of $gltype... " >&6; }
15388
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15389
  $as_echo_n "(cached) " >&6
15390
else
15391
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
15392
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15393
     included before <wchar.h>.  */
15394
  #include <stddef.h>
15395
  #include <signal.h>
15396
  #if HAVE_WCHAR_H
15397
  # include <stdio.h>
15398
  # include <time.h>
15399
  # include <wchar.h>
15400
  #endif
15401
15402
#include <limits.h>"; then :
15403
15404
else
15405
  result=unknown
15406
fi
15407
15408
       eval gl_cv_bitsizeof_${gltype}=\$result
15409
15410
fi
15411
eval ac_res=\$gl_cv_bitsizeof_${gltype}
15412
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15413
$as_echo "$ac_res" >&6; }
15414
    eval result=\$gl_cv_bitsizeof_${gltype}
15415
    if test $result = unknown; then
15416
                                                result=0
15417
    fi
15418
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15419
    cat >>confdefs.h <<_ACEOF
15420
#define BITSIZEOF_${GLTYPE} $result
15421
_ACEOF
15422
15423
    eval BITSIZEOF_${GLTYPE}=\$result
15424
  done
15425
15426
15427
  fi
15428
15429
15430
  for gltype in sig_atomic_t wchar_t wint_t ; do
15431
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15432
$as_echo_n "checking for bit size of $gltype... " >&6; }
15433
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15434
  $as_echo_n "(cached) " >&6
15435
else
15436
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
15437
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15438
     included before <wchar.h>.  */
15439
  #include <stddef.h>
15440
  #include <signal.h>
15441
  #if HAVE_WCHAR_H
15442
  # include <stdio.h>
15443
  # include <time.h>
15444
  # include <wchar.h>
15445
  #endif
15446
15447
#include <limits.h>"; then :
15448
15449
else
15450
  result=unknown
15451
fi
15452
15453
       eval gl_cv_bitsizeof_${gltype}=\$result
15454
15455
fi
15456
eval ac_res=\$gl_cv_bitsizeof_${gltype}
15457
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458
$as_echo "$ac_res" >&6; }
15459
    eval result=\$gl_cv_bitsizeof_${gltype}
15460
    if test $result = unknown; then
15461
                                                result=0
15462
    fi
15463
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15464
    cat >>confdefs.h <<_ACEOF
15465
#define BITSIZEOF_${GLTYPE} $result
15466
_ACEOF
15467
15468
    eval BITSIZEOF_${GLTYPE}=\$result
15469
  done
15470
15471
15472
15473
15474
  for gltype in sig_atomic_t wchar_t wint_t ; do
15475
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15476
$as_echo_n "checking whether $gltype is signed... " >&6; }
15477
if eval \${gl_cv_type_${gltype}_signed+:} false; then :
15478
  $as_echo_n "(cached) " >&6
15479
else
15480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481
/* end confdefs.h.  */
15482
15483
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15484
     included before <wchar.h>.  */
15485
  #include <stddef.h>
15486
  #include <signal.h>
15487
  #if HAVE_WCHAR_H
15488
  # include <stdio.h>
15489
  # include <time.h>
15490
  # include <wchar.h>
15491
  #endif
15492
15493
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15494
int
15495
main (void)
15496
{
15497
15498
  ;
15499
  return 0;
15500
}
15501
_ACEOF
15502
if ac_fn_c_try_compile "$LINENO"; then :
15503
  result=yes
15504
else
15505
  result=no
15506
fi
15507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508
       eval gl_cv_type_${gltype}_signed=\$result
15509
15510
fi
15511
eval ac_res=\$gl_cv_type_${gltype}_signed
15512
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15513
$as_echo "$ac_res" >&6; }
15514
    eval result=\$gl_cv_type_${gltype}_signed
15515
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15516
    if test "$result" = yes; then
15517
      cat >>confdefs.h <<_ACEOF
15518
#define HAVE_SIGNED_${GLTYPE} 1
15519
_ACEOF
15520
15521
      eval HAVE_SIGNED_${GLTYPE}=1
15522
    else
15523
      eval HAVE_SIGNED_${GLTYPE}=0
15524
    fi
15525
  done
15526
15527
15528
  gl_cv_type_ptrdiff_t_signed=yes
15529
  gl_cv_type_size_t_signed=no
15530
  if test $APPLE_UNIVERSAL_BUILD = 0; then
15531
15532
15533
  for gltype in ptrdiff_t size_t ; do
15534
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15535
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15536
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15537
  $as_echo_n "(cached) " >&6
15538
else
15539
  eval gl_cv_type_${gltype}_suffix=no
15540
       eval result=\$gl_cv_type_${gltype}_signed
15541
       if test "$result" = yes; then
15542
         glsufu=
15543
       else
15544
         glsufu=u
15545
       fi
15546
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15547
         case $glsuf in
15548
           '')  gltype1='int';;
15549
           l)   gltype1='long int';;
15550
           ll)  gltype1='long long int';;
15551
           i64) gltype1='__int64';;
15552
           u)   gltype1='unsigned int';;
15553
           ul)  gltype1='unsigned long int';;
15554
           ull) gltype1='unsigned long long int';;
15555
           ui64)gltype1='unsigned __int64';;
15556
         esac
15557
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558
/* end confdefs.h.  */
15559
15560
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15561
     included before <wchar.h>.  */
15562
  #include <stddef.h>
15563
  #include <signal.h>
15564
  #if HAVE_WCHAR_H
15565
  # include <stdio.h>
15566
  # include <time.h>
15567
  # include <wchar.h>
15568
  #endif
15569
15570
              extern $gltype foo;
15571
              extern $gltype1 foo;
15572
int
15573
main (void)
15574
{
15575
15576
  ;
15577
  return 0;
15578
}
15579
_ACEOF
15580
if ac_fn_c_try_compile "$LINENO"; then :
15581
  eval gl_cv_type_${gltype}_suffix=\$glsuf
15582
fi
15583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584
         eval result=\$gl_cv_type_${gltype}_suffix
15585
         test "$result" != no && break
15586
       done
15587
fi
15588
eval ac_res=\$gl_cv_type_${gltype}_suffix
15589
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15590
$as_echo "$ac_res" >&6; }
15591
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15592
    eval result=\$gl_cv_type_${gltype}_suffix
15593
    test "$result" = no && result=
15594
    eval ${GLTYPE}_SUFFIX=\$result
15595
    cat >>confdefs.h <<_ACEOF
15596
#define ${GLTYPE}_SUFFIX $result
15597
_ACEOF
15598
15599
  done
15600
15601
15602
  fi
15603
15604
15605
  for gltype in sig_atomic_t wchar_t wint_t ; do
15606
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15607
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15608
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15609
  $as_echo_n "(cached) " >&6
15610
else
15611
  eval gl_cv_type_${gltype}_suffix=no
15612
       eval result=\$gl_cv_type_${gltype}_signed
15613
       if test "$result" = yes; then
15614
         glsufu=
15615
       else
15616
         glsufu=u
15617
       fi
15618
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15619
         case $glsuf in
15620
           '')  gltype1='int';;
15621
           l)   gltype1='long int';;
15622
           ll)  gltype1='long long int';;
15623
           i64) gltype1='__int64';;
15624
           u)   gltype1='unsigned int';;
15625
           ul)  gltype1='unsigned long int';;
15626
           ull) gltype1='unsigned long long int';;
15627
           ui64)gltype1='unsigned __int64';;
15628
         esac
15629
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630
/* end confdefs.h.  */
15631
15632
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15633
     included before <wchar.h>.  */
15634
  #include <stddef.h>
15635
  #include <signal.h>
15636
  #if HAVE_WCHAR_H
15637
  # include <stdio.h>
15638
  # include <time.h>
15639
  # include <wchar.h>
15640
  #endif
15641
15642
              extern $gltype foo;
15643
              extern $gltype1 foo;
15644
int
15645
main (void)
15646
{
15647
15648
  ;
15649
  return 0;
15650
}
15651
_ACEOF
15652
if ac_fn_c_try_compile "$LINENO"; then :
15653
  eval gl_cv_type_${gltype}_suffix=\$glsuf
15654
fi
15655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656
         eval result=\$gl_cv_type_${gltype}_suffix
15657
         test "$result" != no && break
15658
       done
15659
fi
15660
eval ac_res=\$gl_cv_type_${gltype}_suffix
15661
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15662
$as_echo "$ac_res" >&6; }
15663
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15664
    eval result=\$gl_cv_type_${gltype}_suffix
15665
    test "$result" = no && result=
15666
    eval ${GLTYPE}_SUFFIX=\$result
15667
    cat >>confdefs.h <<_ACEOF
15668
#define ${GLTYPE}_SUFFIX $result
15669
_ACEOF
15670
15671
  done
15672
15673
15674
15675
          if test $BITSIZEOF_WINT_T -lt 32; then
15676
    BITSIZEOF_WINT_T=32
15677
  fi
15678
15679
    STDINT_H=stdint.h
15680
  fi
15681
15682
   if test -n "$STDINT_H"; then
15683
  GL_GENERATE_STDINT_H_TRUE=
15684
  GL_GENERATE_STDINT_H_FALSE='#'
15685
else
15686
  GL_GENERATE_STDINT_H_TRUE='#'
15687
  GL_GENERATE_STDINT_H_FALSE=
15688
fi
15689
15690
15691
15692
  GNULIB_FFS=0;
15693
    HAVE_FFS=1;
15694
  HAVE_STRCASECMP=1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15695
  HAVE_DECL_STRNCASECMP=1;
15696
15697
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15698
     REPLACE_STRERROR_0=0
15699
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15700
$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15701
if ${gl_cv_func_strerror_0_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15702
  $as_echo_n "(cached) " >&6
15703
else
15704
  if test "$cross_compiling" = yes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15705
  case "$host_os" in
15706
                 # Guess yes on glibc systems.
15707
         *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15708
                 # If we don't know, assume the worst.
15709
         *)      gl_cv_func_strerror_0_works="guessing no" ;;
15710
       esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15711
15712
else
15713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714
/* end confdefs.h.  */
15715
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15716
           #include <errno.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15717
15718
int
15719
main (void)
15720
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15721
int result = 0;
15722
           char *str;
15723
           errno = 0;
15724
           str = strerror (0);
15725
           if (!*str) result |= 1;
15726
           if (errno) result |= 2;
15727
           if (strstr (str, "nknown") || strstr (str, "ndefined"))
15728
             result |= 4;
15729
           return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15730
  ;
15731
  return 0;
15732
}
15733
_ACEOF
15734
if ac_fn_c_try_run "$LINENO"; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15735
  gl_cv_func_strerror_0_works=yes
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15736
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15737
  gl_cv_func_strerror_0_works=no
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15738
fi
15739
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15740
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15741
fi
15742
15743
15744
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15746
$as_echo "$gl_cv_func_strerror_0_works" >&6; }
15747
  case "$gl_cv_func_strerror_0_works" in
15748
    *yes) ;;
15749
    *)
15750
      REPLACE_STRERROR_0=1
15751
15752
$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15753
15754
      ;;
15755
  esac
15756
15757
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
     if test $gl_cv_have_include_next = yes; then
15771
       gl_cv_next_string_h='<'string.h'>'
15772
     else
15773
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15774
$as_echo_n "checking absolute name of <string.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
15775
if ${gl_cv_next_string_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15776
  $as_echo_n "(cached) " >&6
15777
else
15778
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15779
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15780
/* end confdefs.h.  */
15781
#include <string.h>
15782
15783
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15784
                                                                                                                        case "$host_os" in
15785
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15786
                 *)    gl_absname_cpp="$ac_cpp" ;;
15787
               esac
15788
15789
               case "$host_os" in
15790
                 mingw*)
15791
                                                                                                                                     gl_dirsep_regex='[/\\]'
15792
                   ;;
15793
                 *)
15794
                   gl_dirsep_regex='\/'
15795
                   ;;
15796
               esac
15797
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15798
15799
               gl_header_literal_regex=`echo 'string.h' \
15800
                                        | sed -e "$gl_make_literal_regex_sed"`
15801
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15802
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15803
                   s|^/[^/]|//&|
15804
                   p
15805
                   q
15806
                 }'
15807
                                                            gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15808
                      sed -n "$gl_absolute_header_sed"`'"'
15809
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15810
15811
fi
15812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15813
$as_echo "$gl_cv_next_string_h" >&6; }
15814
     fi
15815
     NEXT_STRING_H=$gl_cv_next_string_h
15816
15817
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15818
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15819
       gl_next_as_first_directive='<'string.h'>'
15820
     else
15821
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15822
       gl_next_as_first_directive=$gl_cv_next_string_h
15823
     fi
15824
     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15825
15826
15827
15828
15829
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15830
15831
    for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15832
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15833
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15834
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
15835
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15836
  $as_echo_n "(cached) " >&6
15837
else
15838
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839
/* end confdefs.h.  */
15840
#include <string.h>
15841
15842
int
15843
main (void)
15844
{
15845
#undef $gl_func
15846
  (void) $gl_func;
15847
  ;
15848
  return 0;
15849
}
15850
_ACEOF
15851
if ac_fn_c_try_compile "$LINENO"; then :
15852
  eval "$as_gl_Symbol=yes"
15853
else
15854
  eval "$as_gl_Symbol=no"
15855
fi
15856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857
fi
15858
eval ac_res=\$$as_gl_Symbol
15859
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15860
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15861
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15862
  cat >>confdefs.h <<_ACEOF
15863
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15864
_ACEOF
15865
15866
                     eval ac_cv_have_decl_$gl_func=yes
15867
fi
15868
      done
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15881
15882
15883
15884
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15885
     if test $gl_cv_have_include_next = yes; then
15886
       gl_cv_next_strings_h='<'strings.h'>'
15887
     else
15888
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15889
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
15890
if ${gl_cv_next_strings_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15891
  $as_echo_n "(cached) " >&6
15892
else
15893
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15894
             if test $ac_cv_header_strings_h = yes; then
15895
15896
15897
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15898
/* end confdefs.h.  */
15899
#include <strings.h>
15900
15901
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15902
                                                                                                                        case "$host_os" in
15903
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15904
                 *)    gl_absname_cpp="$ac_cpp" ;;
15905
               esac
15906
15907
               case "$host_os" in
15908
                 mingw*)
15909
                                                                                                                                     gl_dirsep_regex='[/\\]'
15910
                   ;;
15911
                 *)
15912
                   gl_dirsep_regex='\/'
15913
                   ;;
15914
               esac
15915
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15916
15917
               gl_header_literal_regex=`echo 'strings.h' \
15918
                                        | sed -e "$gl_make_literal_regex_sed"`
15919
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15920
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15921
                   s|^/[^/]|//&|
15922
                   p
15923
                   q
15924
                 }'
15925
                                                            gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15926
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15927
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15928
               gl_cv_next_strings_h='<'strings.h'>'
15929
             fi
15930
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15931
15932
fi
15933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15934
$as_echo "$gl_cv_next_strings_h" >&6; }
15935
     fi
15936
     NEXT_STRINGS_H=$gl_cv_next_strings_h
15937
15938
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15939
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15940
       gl_next_as_first_directive='<'strings.h'>'
15941
     else
15942
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15943
       gl_next_as_first_directive=$gl_cv_next_strings_h
15944
     fi
15945
     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
15946
15947
15948
15949
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15950
  if test $ac_cv_header_strings_h = yes; then
15951
    HAVE_STRINGS_H=1
15952
  else
15953
    HAVE_STRINGS_H=0
15954
  fi
15955
15956
15957
15958
    for gl_func in ffs strcasecmp strncasecmp; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15959
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15960
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15961
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
15962
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15963
  $as_echo_n "(cached) " >&6
15964
else
15965
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966
/* end confdefs.h.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15967
15968
    /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
15969
       <strings.h>.  */
15970
    #include <sys/types.h>
15971
    #include <strings.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15972
15973
int
15974
main (void)
15975
{
15976
#undef $gl_func
15977
  (void) $gl_func;
15978
  ;
15979
  return 0;
15980
}
15981
_ACEOF
15982
if ac_fn_c_try_compile "$LINENO"; then :
15983
  eval "$as_gl_Symbol=yes"
15984
else
15985
  eval "$as_gl_Symbol=no"
15986
fi
15987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988
fi
15989
eval ac_res=\$$as_gl_Symbol
15990
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15991
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
15992
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
15993
  cat >>confdefs.h <<_ACEOF
15994
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15995
_ACEOF
15996
15997
                     eval ac_cv_have_decl_$gl_func=yes
15998
fi
15999
      done
16000
16001
16002
ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
16003
if test "x$ac_cv_have_decl_strndup" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16004
  ac_have_decl=1
16005
else
16006
  ac_have_decl=0
16007
fi
16008
16009
cat >>confdefs.h <<_ACEOF
16010
#define HAVE_DECL_STRNDUP $ac_have_decl
16011
_ACEOF
16012
16013
16014
16015
ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
16016
if test "x$ac_cv_have_decl_strnlen" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16017
  ac_have_decl=1
16018
else
16019
  ac_have_decl=0
16020
fi
16021
16022
cat >>confdefs.h <<_ACEOF
16023
#define HAVE_DECL_STRNLEN $ac_have_decl
16024
_ACEOF
16025
16026
16027
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16028
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16029
if test "x$ac_cv_type_pid_t" = xyes; then :
16030
16031
else
16032
16033
cat >>confdefs.h <<_ACEOF
16034
#define pid_t int
16035
_ACEOF
16036
16037
fi
16038
16039
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16040
if test "x$ac_cv_type_mode_t" = xyes; then :
16041
16042
else
16043
16044
cat >>confdefs.h <<_ACEOF
16045
#define mode_t int
16046
_ACEOF
16047
16048
fi
16049
16050
16051
16052
    WINDOWS_64_BIT_OFF_T=0
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
     if test $gl_cv_have_include_next = yes; then
16067
       gl_cv_next_sys_types_h='<'sys/types.h'>'
16068
     else
16069
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16070
$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16071
if ${gl_cv_next_sys_types_h+:} false; then :
16072
  $as_echo_n "(cached) " >&6
16073
else
16074
16075
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076
/* end confdefs.h.  */
16077
#include <sys/types.h>
16078
16079
_ACEOF
16080
                                                                                                                        case "$host_os" in
16081
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16082
                 *)    gl_absname_cpp="$ac_cpp" ;;
16083
               esac
16084
16085
               case "$host_os" in
16086
                 mingw*)
16087
                                                                                                                                     gl_dirsep_regex='[/\\]'
16088
                   ;;
16089
                 *)
16090
                   gl_dirsep_regex='\/'
16091
                   ;;
16092
               esac
16093
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16094
16095
               gl_header_literal_regex=`echo 'sys/types.h' \
16096
                                        | sed -e "$gl_make_literal_regex_sed"`
16097
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16098
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16099
                   s|^/[^/]|//&|
16100
                   p
16101
                   q
16102
                 }'
16103
                                                            gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16104
                      sed -n "$gl_absolute_header_sed"`'"'
16105
16106
16107
fi
16108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16109
$as_echo "$gl_cv_next_sys_types_h" >&6; }
16110
     fi
16111
     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16112
16113
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16114
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16115
       gl_next_as_first_directive='<'sys/types.h'>'
16116
     else
16117
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16118
       gl_next_as_first_directive=$gl_cv_next_sys_types_h
16119
     fi
16120
     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
16141
i\
16142
0
16143
q
16144
'
16145
gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
16146
i\
16147
0
16148
q
16149
'
16150
gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
16151
i\
16152
0
16153
q
16154
'
16155
16156
16157
  if test "$HAVE_LIBUNISTRING" = yes; then
16158
    LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
16159
    LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
16160
    LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
16161
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16162
16163
16164
16165
16166
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16167
$as_echo_n "checking for wint_t... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16168
if ${gt_cv_c_wint_t+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16169
  $as_echo_n "(cached) " >&6
16170
else
16171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172
/* end confdefs.h.  */
16173
16174
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16175
   <wchar.h>.
16176
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16177
   before <wchar.h>.  */
16178
#include <stddef.h>
16179
#include <stdio.h>
16180
#include <time.h>
16181
#include <wchar.h>
16182
            wint_t foo = (wchar_t)'\0';
16183
int
16184
main (void)
16185
{
16186
16187
  ;
16188
  return 0;
16189
}
16190
_ACEOF
16191
if ac_fn_c_try_compile "$LINENO"; then :
16192
  gt_cv_c_wint_t=yes
16193
else
16194
  gt_cv_c_wint_t=no
16195
fi
16196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197
fi
16198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16199
$as_echo "$gt_cv_c_wint_t" >&6; }
16200
  if test $gt_cv_c_wint_t = yes; then
16201
16202
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16203
16204
  fi
16205
16206
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16207
16208
  if test $ac_cv_header_features_h = yes; then
16209
    HAVE_FEATURES_H=1
16210
  else
16211
    HAVE_FEATURES_H=0
16212
  fi
16213
16214
16215
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16216
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16217
$as_echo_n "checking for inttypes.h... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16218
if ${gl_cv_header_inttypes_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16219
  $as_echo_n "(cached) " >&6
16220
else
16221
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222
/* end confdefs.h.  */
16223
16224
#include <sys/types.h>
16225
#include <inttypes.h>
16226
16227
int
16228
main (void)
16229
{
16230
uintmax_t i = (uintmax_t) -1; return !i;
16231
  ;
16232
  return 0;
16233
}
16234
_ACEOF
16235
if ac_fn_c_try_compile "$LINENO"; then :
16236
  gl_cv_header_inttypes_h=yes
16237
else
16238
  gl_cv_header_inttypes_h=no
16239
fi
16240
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241
fi
16242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16243
$as_echo "$gl_cv_header_inttypes_h" >&6; }
16244
  if test $gl_cv_header_inttypes_h = yes; then
16245
16246
cat >>confdefs.h <<_ACEOF
16247
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
16248
_ACEOF
16249
16250
  fi
16251
16252
16253
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16254
$as_echo_n "checking for stdint.h... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16255
if ${gl_cv_header_stdint_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16256
  $as_echo_n "(cached) " >&6
16257
else
16258
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259
/* end confdefs.h.  */
16260
#include <sys/types.h>
16261
            #include <stdint.h>
16262
int
16263
main (void)
16264
{
16265
uintmax_t i = (uintmax_t) -1; return !i;
16266
  ;
16267
  return 0;
16268
}
16269
_ACEOF
16270
if ac_fn_c_try_compile "$LINENO"; then :
16271
  gl_cv_header_stdint_h=yes
16272
else
16273
  gl_cv_header_stdint_h=no
16274
fi
16275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276
fi
16277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16278
$as_echo "$gl_cv_header_stdint_h" >&6; }
16279
  if test $gl_cv_header_stdint_h = yes; then
16280
16281
cat >>confdefs.h <<_ACEOF
16282
#define HAVE_STDINT_H_WITH_UINTMAX 1
16283
_ACEOF
16284
16285
  fi
16286
16287
16288
16289
16290
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16291
$as_echo_n "checking for intmax_t... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16292
if ${gt_cv_c_intmax_t+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16293
  $as_echo_n "(cached) " >&6
16294
else
16295
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296
/* end confdefs.h.  */
16297
16298
#include <stddef.h>
16299
#include <stdlib.h>
16300
#if HAVE_STDINT_H_WITH_UINTMAX
16301
#include <stdint.h>
16302
#endif
16303
#if HAVE_INTTYPES_H_WITH_UINTMAX
16304
#include <inttypes.h>
16305
#endif
16306
16307
int
16308
main (void)
16309
{
16310
intmax_t x = -1; return !x;
16311
  ;
16312
  return 0;
16313
}
16314
_ACEOF
16315
if ac_fn_c_try_compile "$LINENO"; then :
16316
  gt_cv_c_intmax_t=yes
16317
else
16318
  gt_cv_c_intmax_t=no
16319
fi
16320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321
fi
16322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16323
$as_echo "$gt_cv_c_intmax_t" >&6; }
16324
  if test $gt_cv_c_intmax_t = yes; then
16325
16326
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16327
16328
  else
16329
16330
    test $ac_cv_type_long_long_int = yes \
16331
      && ac_type='long long' \
16332
      || ac_type='long'
16333
16334
cat >>confdefs.h <<_ACEOF
16335
#define intmax_t $ac_type
16336
_ACEOF
16337
16338
  fi
16339
16340
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16341
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16342
$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16343
if ${gl_cv_cc_double_expbit0+:} false; then :
16344
  $as_echo_n "(cached) " >&6
16345
else
16346
16347
      if test "$cross_compiling" = yes; then :
16348
16349
                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350
/* end confdefs.h.  */
16351
16352
#if defined arm || defined __arm || defined __arm__
16353
  mixed_endianness
16354
#endif
16355
16356
_ACEOF
16357
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16358
  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
16359
  gl_cv_cc_double_expbit0="unknown"
16360
else
16361
16362
                                                         :
16363
if ${ac_cv_c_bigendian+:} false; then :
16364
  $as_echo_n "(cached) " >&6
16365
else
16366
  ac_cv_c_bigendian=unknown
16367
    # See if we're dealing with a universal compiler.
16368
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369
/* end confdefs.h.  */
16370
#ifndef __APPLE_CC__
16371
	       not a universal capable compiler
16372
	     #endif
16373
	     typedef int dummy;
16374
16375
_ACEOF
16376
if ac_fn_c_try_compile "$LINENO"; then :
16377
16378
	# Check for potential -arch flags.  It is not universal unless
16379
	# there are at least two -arch flags with different values.
16380
	ac_arch=
16381
	ac_prev=
16382
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16383
	 if test -n "$ac_prev"; then
16384
	   case $ac_word in
16385
	     i?86 | x86_64 | ppc | ppc64)
16386
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16387
		 ac_arch=$ac_word
16388
	       else
16389
		 ac_cv_c_bigendian=universal
16390
		 break
16391
	       fi
16392
	       ;;
16393
	   esac
16394
	   ac_prev=
16395
	 elif test "x$ac_word" = "x-arch"; then
16396
	   ac_prev=arch
16397
	 fi
16398
       done
16399
fi
16400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401
    if test $ac_cv_c_bigendian = unknown; then
16402
      # See if sys/param.h defines the BYTE_ORDER macro.
16403
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404
/* end confdefs.h.  */
16405
#include <sys/types.h>
16406
	     #include <sys/param.h>
16407
16408
int
16409
main (void)
16410
{
16411
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16412
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16413
		     && LITTLE_ENDIAN)
16414
	      bogus endian macros
16415
	     #endif
16416
16417
  ;
16418
  return 0;
16419
}
16420
_ACEOF
16421
if ac_fn_c_try_compile "$LINENO"; then :
16422
  # It does; now see whether it defined to BIG_ENDIAN or not.
16423
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424
/* end confdefs.h.  */
16425
#include <sys/types.h>
16426
		#include <sys/param.h>
16427
16428
int
16429
main (void)
16430
{
16431
#if BYTE_ORDER != BIG_ENDIAN
16432
		 not big endian
16433
		#endif
16434
16435
  ;
16436
  return 0;
16437
}
16438
_ACEOF
16439
if ac_fn_c_try_compile "$LINENO"; then :
16440
  ac_cv_c_bigendian=yes
16441
else
16442
  ac_cv_c_bigendian=no
16443
fi
16444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445
fi
16446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447
    fi
16448
    if test $ac_cv_c_bigendian = unknown; then
16449
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16450
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451
/* end confdefs.h.  */
16452
#include <limits.h>
16453
16454
int
16455
main (void)
16456
{
16457
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16458
	      bogus endian macros
16459
	     #endif
16460
16461
  ;
16462
  return 0;
16463
}
16464
_ACEOF
16465
if ac_fn_c_try_compile "$LINENO"; then :
16466
  # It does; now see whether it defined to _BIG_ENDIAN or not.
16467
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468
/* end confdefs.h.  */
16469
#include <limits.h>
16470
16471
int
16472
main (void)
16473
{
16474
#ifndef _BIG_ENDIAN
16475
		 not big endian
16476
		#endif
16477
16478
  ;
16479
  return 0;
16480
}
16481
_ACEOF
16482
if ac_fn_c_try_compile "$LINENO"; then :
16483
  ac_cv_c_bigendian=yes
16484
else
16485
  ac_cv_c_bigendian=no
16486
fi
16487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488
fi
16489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490
    fi
16491
    if test $ac_cv_c_bigendian = unknown; then
16492
      # Compile a test program.
16493
      if test "$cross_compiling" = yes; then :
16494
  # Try to guess by grepping values from an object file.
16495
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496
/* end confdefs.h.  */
16497
short int ascii_mm[] =
16498
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16499
		short int ascii_ii[] =
16500
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16501
		int use_ascii (int i) {
16502
		  return ascii_mm[i] + ascii_ii[i];
16503
		}
16504
		short int ebcdic_ii[] =
16505
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16506
		short int ebcdic_mm[] =
16507
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16508
		int use_ebcdic (int i) {
16509
		  return ebcdic_mm[i] + ebcdic_ii[i];
16510
		}
16511
		extern int foo;
16512
16513
int
16514
main (void)
16515
{
16516
return use_ascii (foo) == use_ebcdic (foo);
16517
  ;
16518
  return 0;
16519
}
16520
_ACEOF
16521
if ac_fn_c_try_compile "$LINENO"; then :
16522
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16523
	      ac_cv_c_bigendian=yes
16524
	    fi
16525
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16526
	      if test "$ac_cv_c_bigendian" = unknown; then
16527
		ac_cv_c_bigendian=no
16528
	      else
16529
		# finding both strings is unlikely to happen, but who knows?
16530
		ac_cv_c_bigendian=unknown
16531
	      fi
16532
	    fi
16533
fi
16534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535
else
16536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537
/* end confdefs.h.  */
16538
$ac_includes_default
16539
int
16540
main (void)
16541
{
16542
16543
	     /* Are we little or big endian?  From Harbison&Steele.  */
16544
	     union
16545
	     {
16546
	       long int l;
16547
	       char c[sizeof (long int)];
16548
	     } u;
16549
	     u.l = 1;
16550
	     return u.c[sizeof (long int) - 1] == 1;
16551
16552
  ;
16553
  return 0;
16554
}
16555
_ACEOF
16556
if ac_fn_c_try_run "$LINENO"; then :
16557
  ac_cv_c_bigendian=no
16558
else
16559
  ac_cv_c_bigendian=yes
16560
fi
16561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16562
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16563
fi
16564
16565
    fi
16566
fi
16567
:
16568
 case $ac_cv_c_bigendian in #(
16569
   yes)
16570
     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
16571
   no)
16572
     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
16573
   universal)
16574
16575
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16576
16577
     ;; #(
16578
   *)
16579
     gl_cv_cc_double_expbit0="unknown" ;;
16580
 esac
16581
16582
16583
fi
16584
rm -f conftest*
16585
16586
16587
else
16588
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589
/* end confdefs.h.  */
16590
16591
#include <float.h>
16592
#include <stddef.h>
16593
#include <stdio.h>
16594
#include <string.h>
16595
#define NWORDS \
16596
  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16597
typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16598
static unsigned int ored_words[NWORDS];
16599
static unsigned int anded_words[NWORDS];
16600
static void add_to_ored_words (double x)
16601
{
16602
  memory_double m;
16603
  size_t i;
16604
  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
16605
  memset (&m, 0, sizeof (memory_double));
16606
  m.value = x;
16607
  for (i = 0; i < NWORDS; i++)
16608
    {
16609
      ored_words[i] |= m.word[i];
16610
      anded_words[i] &= m.word[i];
16611
    }
16612
}
16613
int main ()
16614
{
16615
  size_t j;
16616
  FILE *fp = fopen ("conftest.out", "w");
16617
  if (fp == NULL)
16618
    return 1;
16619
  for (j = 0; j < NWORDS; j++)
16620
    anded_words[j] = ~ (unsigned int) 0;
16621
  add_to_ored_words (0.25);
16622
  add_to_ored_words (0.5);
16623
  add_to_ored_words (1.0);
16624
  add_to_ored_words (2.0);
16625
  add_to_ored_words (4.0);
16626
  /* Remove bits that are common (e.g. if representation of the first mantissa
16627
     bit is explicit).  */
16628
  for (j = 0; j < NWORDS; j++)
16629
    ored_words[j] &= ~anded_words[j];
16630
  /* Now find the nonzero word.  */
16631
  for (j = 0; j < NWORDS; j++)
16632
    if (ored_words[j] != 0)
16633
      break;
16634
  if (j < NWORDS)
16635
    {
16636
      size_t i;
16637
      for (i = j + 1; i < NWORDS; i++)
16638
        if (ored_words[i] != 0)
16639
          {
16640
            fprintf (fp, "unknown");
16641
            return (fclose (fp) != 0);
16642
          }
16643
      for (i = 0; ; i++)
16644
        if ((ored_words[j] >> i) & 1)
16645
          {
16646
            fprintf (fp, "word %d bit %d", (int) j, (int) i);
16647
            return (fclose (fp) != 0);
16648
          }
16649
    }
16650
  fprintf (fp, "unknown");
16651
  return (fclose (fp) != 0);
16652
}
16653
16654
_ACEOF
16655
if ac_fn_c_try_run "$LINENO"; then :
16656
  gl_cv_cc_double_expbit0=`cat conftest.out`
16657
else
16658
  gl_cv_cc_double_expbit0="unknown"
16659
fi
16660
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16661
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16662
fi
16663
16664
      rm -f conftest.out
16665
16666
fi
16667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16668
$as_echo "$gl_cv_cc_double_expbit0" >&6; }
16669
  case "$gl_cv_cc_double_expbit0" in
16670
    word*bit*)
16671
      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16672
      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16673
16674
cat >>confdefs.h <<_ACEOF
16675
#define DBL_EXPBIT0_WORD $word
16676
_ACEOF
16677
16678
16679
cat >>confdefs.h <<_ACEOF
16680
#define DBL_EXPBIT0_BIT $bit
16681
_ACEOF
16682
16683
      ;;
16684
  esac
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16695
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16696
if ${gl_cv_func_snprintf_retval_c99+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16697
  $as_echo_n "(cached) " >&6
16698
else
16699
16700
      if test "$cross_compiling" = yes; then :
16701
16702
         case "$host_os" in
16703
                                 # Guess yes on glibc systems.
16704
           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
16705
                                 # Guess yes on FreeBSD >= 5.
16706
           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
16707
           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16708
                                 # Guess yes on Mac OS X >= 10.3.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16709
           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
16710
           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
16711
                                 # Guess yes on OpenBSD >= 3.9.
16712
           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
16713
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
16714
           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16715
                                 # Guess yes on Solaris >= 2.10.
16716
           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
16717
           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16718
                                 # Guess yes on AIX >= 4.
16719
           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
16720
           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
16721
                                 # Guess yes on NetBSD >= 3.
16722
           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
16723
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
16724
           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
16725
                                 # Guess yes on BeOS.
16726
           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
16727
                                 # If we don't know, assume the worst.
16728
           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
16729
         esac
16730
16731
else
16732
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733
/* end confdefs.h.  */
16734
16735
#include <stdio.h>
16736
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16737
#if HAVE_SNPRINTF
16738
# define my_snprintf snprintf
16739
#else
16740
# include <stdarg.h>
16741
static int my_snprintf (char *buf, int size, const char *format, ...)
16742
{
16743
  va_list args;
16744
  int ret;
16745
  va_start (args, format);
16746
  ret = vsnprintf (buf, size, format, args);
16747
  va_end (args);
16748
  return ret;
16749
}
16750
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16751
static char buf[100];
16752
int main ()
16753
{
16754
  strcpy (buf, "ABCDEF");
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16755
  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16756
    return 1;
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16757
  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16758
    return 2;
16759
  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16760
    return 3;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16761
  return 0;
16762
}
16763
_ACEOF
16764
if ac_fn_c_try_run "$LINENO"; then :
16765
  gl_cv_func_snprintf_retval_c99=yes
16766
else
16767
  gl_cv_func_snprintf_retval_c99=no
16768
fi
16769
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16770
  conftest.$ac_objext conftest.beam conftest.$ac_ext
16771
fi
16772
16773
16774
fi
16775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16776
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
16777
16778
16779
16780
16781
16782
16783
  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16784
do :
16785
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16787
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16788
  cat >>confdefs.h <<_ACEOF
16789
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16790
_ACEOF
16791
16792
fi
16793
done
16794
16795
      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16796
"
1.15.15 by Colin Watson
Import upstream version 1.99
16797
if test "x$ac_cv_have_decl__snprintf" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16798
  ac_have_decl=1
16799
else
16800
  ac_have_decl=0
16801
fi
16802
16803
cat >>confdefs.h <<_ACEOF
16804
#define HAVE_DECL__SNPRINTF $ac_have_decl
16805
_ACEOF
16806
16807
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16808
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16809
  case "$gl_cv_func_snprintf_retval_c99" in
16810
    *yes)
16811
16812
$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16813
16814
      ;;
16815
  esac
16816
16817
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
16818
if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16819
  ac_have_decl=1
16820
else
16821
  ac_have_decl=0
16822
fi
16823
16824
cat >>confdefs.h <<_ACEOF
16825
#define HAVE_DECL_VSNPRINTF $ac_have_decl
16826
_ACEOF
16827
16828
16829
16830
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16831
  GNULIB_ISWBLANK=0;
16832
  GNULIB_WCTYPE=0;
16833
  GNULIB_ISWCTYPE=0;
16834
  GNULIB_WCTRANS=0;
16835
  GNULIB_TOWCTRANS=0;
16836
    HAVE_ISWBLANK=1;
16837
  HAVE_WCTYPE_T=1;
16838
  HAVE_WCTRANS_T=1;
16839
  REPLACE_ISWBLANK=0;
16840
16841
16842
16843
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16844
16845
16846
   if false; then
16847
  GL_COND_LIBTOOL_TRUE=
16848
  GL_COND_LIBTOOL_FALSE='#'
16849
else
16850
  GL_COND_LIBTOOL_TRUE='#'
16851
  GL_COND_LIBTOOL_FALSE=
16852
fi
16853
16854
  gl_cond_libtool=false
16855
  gl_libdeps=
16856
  gl_ltlibdeps=
16857
  gl_m4_base='m4'
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
  gl_source_base='grub-core/gnulib'
16868
16869
16870
  if test $ac_cv_func_alloca_works = no; then
16871
    :
16872
  fi
16873
16874
  # Define an additional variable used in the Makefile substitution.
16875
  if test $ac_cv_working_alloca_h = yes; then
16876
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16877
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
16878
if ${gl_cv_rpl_alloca+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16879
  $as_echo_n "(cached) " >&6
16880
else
16881
16882
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883
/* end confdefs.h.  */
16884
16885
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
16886
        Need own alloca
16887
#endif
16888
16889
_ACEOF
16890
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16891
  $EGREP "Need own alloca" >/dev/null 2>&1; then :
16892
  gl_cv_rpl_alloca=yes
16893
else
16894
  gl_cv_rpl_alloca=no
16895
fi
16896
rm -f conftest*
16897
16898
16899
fi
16900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16901
$as_echo "$gl_cv_rpl_alloca" >&6; }
16902
    if test $gl_cv_rpl_alloca = yes; then
16903
16904
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16905
16906
      ALLOCA_H=alloca.h
16907
    else
16908
                  ALLOCA_H=
16909
    fi
16910
  else
16911
    ALLOCA_H=alloca.h
16912
  fi
16913
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16914
   if test -n "$ALLOCA_H"; then
16915
  GL_GENERATE_ALLOCA_H_TRUE=
16916
  GL_GENERATE_ALLOCA_H_FALSE='#'
16917
else
16918
  GL_GENERATE_ALLOCA_H_TRUE='#'
16919
  GL_GENERATE_ALLOCA_H_FALSE=
16920
fi
16921
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16922
16923
16924
16925
16926
16927
16928
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16929
"
1.15.15 by Colin Watson
Import upstream version 1.99
16930
if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16931
  ac_have_decl=1
16932
else
16933
  ac_have_decl=0
16934
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16935
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16936
cat >>confdefs.h <<_ACEOF
16937
#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16938
_ACEOF
16939
if test $ac_have_decl = 1; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16940
16941
else
16942
16943
$as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16944
16945
fi
16946
16947
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16948
"
1.15.15 by Colin Watson
Import upstream version 1.99
16949
if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16950
  ac_have_decl=1
16951
else
16952
  ac_have_decl=0
16953
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16954
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
16955
cat >>confdefs.h <<_ACEOF
16956
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16957
_ACEOF
16958
if test $ac_have_decl = 1; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
16959
16960
else
16961
16962
$as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
16963
16964
fi
16965
16966
16967
  # Check if program_invocation_name and program_invocation_short_name
16968
  # are defined elsewhere. It is improbable that only one of them will
16969
  # be defined and other not, I prefer to stay on the safe side and to
16970
  # test each one separately.
16971
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
16972
$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
16973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974
/* end confdefs.h.  */
16975
#include <argp.h>
16976
int
16977
main (void)
16978
{
16979
program_invocation_name = "test";
16980
  ;
16981
  return 0;
16982
}
16983
_ACEOF
16984
if ac_fn_c_try_link "$LINENO"; then :
16985
16986
$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16987
16988
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989
$as_echo "yes" >&6; }
16990
else
16991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992
$as_echo "no" >&6; }
16993
fi
16994
rm -f core conftest.err conftest.$ac_objext \
16995
    conftest$ac_exeext conftest.$ac_ext
16996
16997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
16998
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
16999
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000
/* end confdefs.h.  */
17001
#include <argp.h>
17002
int
17003
main (void)
17004
{
17005
program_invocation_short_name = "test";
17006
  ;
17007
  return 0;
17008
}
17009
_ACEOF
17010
if ac_fn_c_try_link "$LINENO"; then :
17011
17012
$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17013
17014
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17015
$as_echo "yes" >&6; }
17016
else
17017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018
$as_echo "no" >&6; }
17019
fi
17020
rm -f core conftest.err conftest.$ac_objext \
17021
    conftest$ac_exeext conftest.$ac_ext
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17042
17043
17044
17045
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17046
17047
17048
17049
17050
17051
17052
17053
  if test $ac_cv_func_btowc = no; then
17054
    HAVE_BTOWC=0
17055
  else
17056
17057
17058
17059
17060
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17061
$as_echo_n "checking whether btowc(0) is correct... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17062
if ${gl_cv_func_btowc_nul+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17063
  $as_echo_n "(cached) " >&6
17064
else
17065
17066
        if test "$cross_compiling" = yes; then :
17067
17068
           case "$host_os" in
17069
                      # Guess no on Cygwin.
17070
             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
17071
                      # Guess yes otherwise.
17072
             *)       gl_cv_func_btowc_nul="guessing yes" ;;
17073
           esac
17074
17075
else
17076
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077
/* end confdefs.h.  */
17078
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17079
#include <string.h>
17080
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17081
   <wchar.h>.
17082
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17083
   included before <wchar.h>.  */
17084
#include <stddef.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17085
#include <stdio.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17086
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17087
#include <wchar.h>
17088
int main ()
17089
{
17090
  if (btowc ('\0') != 0)
17091
    return 1;
17092
  return 0;
17093
}
17094
_ACEOF
17095
if ac_fn_c_try_run "$LINENO"; then :
17096
  gl_cv_func_btowc_nul=yes
17097
else
17098
  gl_cv_func_btowc_nul=no
17099
fi
17100
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17101
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17102
fi
17103
17104
17105
fi
17106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17107
$as_echo "$gl_cv_func_btowc_nul" >&6; }
17108
17109
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17110
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17111
if ${gl_cv_func_btowc_eof+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17112
  $as_echo_n "(cached) " >&6
17113
else
17114
17115
                        case "$host_os" in
17116
                 # Guess no on IRIX.
17117
          irix*) gl_cv_func_btowc_eof="guessing no" ;;
17118
                 # Guess yes otherwise.
17119
          *)     gl_cv_func_btowc_eof="guessing yes" ;;
17120
        esac
17121
        if test $LOCALE_FR != none; then
17122
          if test "$cross_compiling" = yes; then :
17123
  :
17124
else
17125
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126
/* end confdefs.h.  */
17127
17128
#include <locale.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17129
#include <string.h>
17130
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17131
   <wchar.h>.
17132
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17133
   included before <wchar.h>.  */
17134
#include <stddef.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17135
#include <stdio.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17136
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17137
#include <wchar.h>
17138
int main ()
17139
{
17140
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17141
    {
17142
      if (btowc (EOF) != WEOF)
17143
        return 1;
17144
    }
17145
  return 0;
17146
}
17147
_ACEOF
17148
if ac_fn_c_try_run "$LINENO"; then :
17149
  gl_cv_func_btowc_eof=yes
17150
else
17151
  gl_cv_func_btowc_eof=no
17152
fi
17153
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17154
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17155
fi
17156
17157
        fi
17158
17159
fi
17160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17161
$as_echo "$gl_cv_func_btowc_eof" >&6; }
17162
17163
    case "$gl_cv_func_btowc_nul" in
17164
      *yes) ;;
17165
      *) REPLACE_BTOWC=1 ;;
17166
    esac
17167
    case "$gl_cv_func_btowc_eof" in
17168
      *yes) ;;
17169
      *) REPLACE_BTOWC=1 ;;
17170
    esac
17171
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17172
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17173
  if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
17174
17175
17176
17177
17178
17179
17180
17181
17182
  gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
17183
17184
17185
  :
17186
17187
  fi
17188
17189
17190
17191
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17192
17193
          GNULIB_BTOWC=1
17194
17195
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17196
17197
17198
17199
$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17200
17201
17202
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17203
17204
          if test "x$datarootdir" = x; then
17205
    datarootdir='${datadir}'
17206
17207
  fi
17208
    if test "x$docdir" = x; then
17209
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
17210
17211
  fi
17212
    if test "x$htmldir" = x; then
17213
    htmldir='${docdir}'
17214
17215
  fi
17216
  if test "x$dvidir" = x; then
17217
    dvidir='${docdir}'
17218
17219
  fi
17220
  if test "x$pdfdir" = x; then
17221
    pdfdir='${docdir}'
17222
17223
  fi
17224
  if test "x$psdir" = x; then
17225
    psdir='${docdir}'
17226
17227
  fi
17228
  if test "x$lispdir" = x; then
17229
    lispdir='${datarootdir}/emacs/site-lisp'
17230
17231
  fi
17232
  if test "x$localedir" = x; then
17233
    localedir='${datarootdir}/locale'
17234
17235
  fi
17236
17237
      pkglibexecdir='${libexecdir}/${PACKAGE}'
17238
17239
17240
17241
17242
17243
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17244
17245
17246
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17247
$as_echo_n "checking whether // is distinct from /... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17248
if ${gl_cv_double_slash_root+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17249
  $as_echo_n "(cached) " >&6
17250
else
17251
   if test x"$cross_compiling" = xyes ; then
17252
        # When cross-compiling, there is no way to tell whether // is special
17253
        # short of a list of hosts.  However, the only known hosts to date
17254
        # that have a distinct // are Apollo DomainOS (too old to port to),
17255
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
17256
        # special semantics and is distinct from /, please report it to
17257
        # <bug-gnulib@gnu.org>.
17258
        case $host in
17259
          *-cygwin | i370-ibm-openedition)
17260
            gl_cv_double_slash_root=yes ;;
17261
          *)
17262
            # Be optimistic and assume that / and // are the same when we
17263
            # don't know.
17264
            gl_cv_double_slash_root='unknown, assuming no' ;;
17265
        esac
17266
      else
17267
        set x `ls -di / // 2>/dev/null`
17268
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
17269
          gl_cv_double_slash_root=no
17270
        else
17271
          gl_cv_double_slash_root=yes
17272
        fi
17273
      fi
17274
fi
17275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17276
$as_echo "$gl_cv_double_slash_root" >&6; }
17277
  if test "$gl_cv_double_slash_root" = yes; then
17278
17279
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17280
17281
  fi
17282
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17283
17284
17285
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17286
$as_echo_n "checking for error_at_line... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17287
if ${ac_cv_lib_error_at_line+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17288
  $as_echo_n "(cached) " >&6
17289
else
17290
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291
/* end confdefs.h.  */
17292
#include <error.h>
17293
int
17294
main (void)
17295
{
17296
error_at_line (0, 0, "", 0, "an error occurred");
17297
  ;
17298
  return 0;
17299
}
17300
_ACEOF
17301
if ac_fn_c_try_link "$LINENO"; then :
17302
  ac_cv_lib_error_at_line=yes
17303
else
17304
  ac_cv_lib_error_at_line=no
17305
fi
17306
rm -f core conftest.err conftest.$ac_objext \
17307
    conftest$ac_exeext conftest.$ac_ext
17308
fi
17309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17310
$as_echo "$ac_cv_lib_error_at_line" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17311
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17312
  if test $ac_cv_lib_error_at_line = no; then
17313
17314
17315
17316
17317
17318
17319
17320
17321
  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
17322
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17323
17324
17325
  :
17326
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17327
  fi
17328
17329
17330
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17331
17332
17333
17334
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17335
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17336
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17337
17338
17339
17340
  FLOAT_H=
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17341
  REPLACE_FLOAT_LDBL=0
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17342
  case "$host_os" in
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17343
    aix* | beos* | openbsd* | mirbsd* | irix*)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17344
      FLOAT_H=float.h
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17345
      ;;
17346
    freebsd*)
17347
      case "$host_cpu" in
17348
        i[34567]86 )
17349
          FLOAT_H=float.h
17350
          ;;
17351
        x86_64 )
17352
          # On x86_64 systems, the C compiler may still be generating
17353
          # 32-bit code.
17354
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355
/* end confdefs.h.  */
17356
#if defined __LP64__ || defined __x86_64__ || defined __amd64__
17357
             yes
17358
             #endif
17359
_ACEOF
17360
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17361
  $EGREP "yes" >/dev/null 2>&1; then :
17362
17363
else
17364
  FLOAT_H=float.h
17365
fi
17366
rm -f conftest*
17367
17368
          ;;
17369
      esac
17370
      ;;
17371
    linux*)
17372
      case "$host_cpu" in
17373
        powerpc*)
17374
          FLOAT_H=float.h
17375
          ;;
17376
      esac
17377
      ;;
17378
  esac
17379
  case "$host_os" in
17380
    aix* | freebsd* | linux*)
17381
      if test -n "$FLOAT_H"; then
17382
        REPLACE_FLOAT_LDBL=1
17383
      fi
17384
      ;;
17385
  esac
17386
17387
    REPLACE_ITOLD=0
17388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17389
$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17390
if ${gl_cv_func_itold_works+:} false; then :
17391
  $as_echo_n "(cached) " >&6
17392
else
17393
17394
      if test "$cross_compiling" = yes; then :
17395
  case "$host" in
17396
           sparc*-*-linux*)
17397
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398
/* end confdefs.h.  */
17399
#if defined __LP64__ || defined __arch64__
17400
                yes
17401
                #endif
17402
_ACEOF
17403
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17404
  $EGREP "yes" >/dev/null 2>&1; then :
17405
  gl_cv_func_itold_works="guessing no"
17406
else
17407
  gl_cv_func_itold_works="guessing yes"
17408
fi
17409
rm -f conftest*
17410
17411
             ;;
17412
           *) gl_cv_func_itold_works="guessing yes" ;;
17413
         esac
17414
17415
else
17416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17417
/* end confdefs.h.  */
17418
17419
int i = -1;
17420
volatile long double ld;
17421
int main ()
17422
{
17423
  ld += i * 1.0L;
17424
  if (ld > 0)
17425
    return 1;
17426
  return 0;
17427
}
17428
_ACEOF
17429
if ac_fn_c_try_run "$LINENO"; then :
17430
  gl_cv_func_itold_works=yes
17431
else
17432
  gl_cv_func_itold_works=no
17433
fi
17434
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17435
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17436
fi
17437
17438
17439
fi
17440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17441
$as_echo "$gl_cv_func_itold_works" >&6; }
17442
  case "$gl_cv_func_itold_works" in
17443
    *no)
17444
      REPLACE_ITOLD=1
17445
                  FLOAT_H=float.h
17446
      ;;
17447
  esac
17448
17449
  if test -n "$FLOAT_H"; then
17450
17451
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17452
17453
17454
17455
17456
17457
17458
     if test $gl_cv_have_include_next = yes; then
17459
       gl_cv_next_float_h='<'float.h'>'
17460
     else
17461
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17462
$as_echo_n "checking absolute name of <float.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17463
if ${gl_cv_next_float_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17464
  $as_echo_n "(cached) " >&6
17465
else
17466
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17467
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17468
/* end confdefs.h.  */
17469
#include <float.h>
17470
17471
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17472
                                                                                                                        case "$host_os" in
17473
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17474
                 *)    gl_absname_cpp="$ac_cpp" ;;
17475
               esac
17476
17477
               case "$host_os" in
17478
                 mingw*)
17479
                                                                                                                                     gl_dirsep_regex='[/\\]'
17480
                   ;;
17481
                 *)
17482
                   gl_dirsep_regex='\/'
17483
                   ;;
17484
               esac
17485
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17486
17487
               gl_header_literal_regex=`echo 'float.h' \
17488
                                        | sed -e "$gl_make_literal_regex_sed"`
17489
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17490
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17491
                   s|^/[^/]|//&|
17492
                   p
17493
                   q
17494
                 }'
17495
                                                            gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17496
                      sed -n "$gl_absolute_header_sed"`'"'
17497
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17498
17499
fi
17500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17501
$as_echo "$gl_cv_next_float_h" >&6; }
17502
     fi
17503
     NEXT_FLOAT_H=$gl_cv_next_float_h
17504
17505
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17506
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17507
       gl_next_as_first_directive='<'float.h'>'
17508
     else
17509
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17510
       gl_next_as_first_directive=$gl_cv_next_float_h
17511
     fi
17512
     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
17513
17514
17515
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17516
17517
  fi
17518
17519
   if test -n "$FLOAT_H"; then
17520
  GL_GENERATE_FLOAT_H_TRUE=
17521
  GL_GENERATE_FLOAT_H_FALSE='#'
17522
else
17523
  GL_GENERATE_FLOAT_H_TRUE='#'
17524
  GL_GENERATE_FLOAT_H_FALSE=
17525
fi
17526
17527
17528
17529
  if test $REPLACE_FLOAT_LDBL = 1; then
17530
17531
17532
17533
17534
17535
17536
17537
17538
  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
17539
17540
  fi
17541
  if test $REPLACE_ITOLD = 1; then
17542
17543
17544
17545
17546
17547
17548
17549
17550
  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
17551
17552
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17553
17554
17555
17556
17557
17558
  FNMATCH_H=
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17559
  gl_fnmatch_required_lowercase=`
17560
    echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17561
  `
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17562
  gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17563
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17564
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17565
if eval \${$gl_fnmatch_cache_var+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17566
  $as_echo_n "(cached) " >&6
17567
else
17568
                           if test $gl_fnmatch_required = GNU; then
17569
       gl_fnmatch_gnu_start=
17570
       gl_fnmatch_gnu_end=
17571
     else
17572
       gl_fnmatch_gnu_start='#if 0'
17573
       gl_fnmatch_gnu_end='#endif'
17574
     fi
17575
     if test "$cross_compiling" = yes; then :
17576
  eval "$gl_fnmatch_cache_var=\"guessing no\""
17577
else
17578
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579
/* end confdefs.h.  */
17580
#include <fnmatch.h>
17581
            static int
17582
            y (char const *pattern, char const *string, int flags)
17583
            {
17584
              return fnmatch (pattern, string, flags) == 0;
17585
            }
17586
            static int
17587
            n (char const *pattern, char const *string, int flags)
17588
            {
17589
              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17590
            }
17591
17592
int
17593
main (void)
17594
{
17595
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17596
            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17597
            static char const A_1[] = { 'A' - 1, 0 };
17598
            static char const A01[] = { 'A' + 1, 0 };
17599
            static char const a_1[] = { 'a' - 1, 0 };
17600
            static char const a01[] = { 'a' + 1, 0 };
17601
            static char const bs_1[] = { '\\\\' - 1, 0 };
17602
            static char const bs01[] = { '\\\\' + 1, 0 };
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17603
            int result = 0;
17604
            if (!n ("a*", "", 0))
17605
              return 1;
17606
            if (!y ("a*", "abc", 0))
17607
              return 1;
17608
            if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17609
              return 1;
17610
            if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17611
              return 2;
17612
            if (!y ("a\\\\bc", "abc", 0))
17613
              return 3;
17614
            if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17615
              return 3;
17616
            if (!y ("*x", ".x", 0))
17617
              return 4;
17618
            if (!n ("*x", ".x", FNM_PERIOD))
17619
              return 4;
17620
            if (!y (Apat, "\\\\", 0))
17621
              return 5;
17622
            if (!y (Apat, "A", 0))
17623
              return 5;
17624
            if (!y (apat, "\\\\", 0))
17625
              return 5;
17626
            if (!y (apat, "a", 0))
17627
              return 5;
17628
            if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17629
              return 5;
17630
            if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17631
              return 5;
17632
            if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17633
              return 5;
17634
            if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17635
              return 5;
17636
            if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17637
              return 5;
17638
            if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17639
              return 5;
17640
            if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17641
              return 5;
17642
            if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17643
              return 5;
17644
            $gl_fnmatch_gnu_start
17645
            if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17646
              result |= 8;
17647
            if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17648
              result |= 16;
17649
            if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17650
              result |= 32;
17651
            if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17652
              result |= 64;
17653
            if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17654
              result |= 64;
17655
            if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17656
              result |= 64;
17657
            $gl_fnmatch_gnu_end
17658
            return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17659
17660
  ;
17661
  return 0;
17662
}
17663
_ACEOF
17664
if ac_fn_c_try_run "$LINENO"; then :
17665
  eval "$gl_fnmatch_cache_var=yes"
17666
else
17667
  eval "$gl_fnmatch_cache_var=no"
17668
fi
17669
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17670
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17671
fi
17672
17673
17674
fi
17675
eval ac_res=\$$gl_fnmatch_cache_var
17676
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17677
$as_echo "$ac_res" >&6; }
17678
  eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17679
  if test "$gl_fnmatch_result" = yes; then
17680
            rm -f "$gl_source_base/fnmatch.h"
17681
  else
17682
    FNMATCH_H=fnmatch.h
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17683
  fi
17684
17685
   if test -n "$FNMATCH_H"; then
17686
  GL_GENERATE_FNMATCH_H_TRUE=
17687
  GL_GENERATE_FNMATCH_H_FALSE='#'
17688
else
17689
  GL_GENERATE_FNMATCH_H_TRUE='#'
17690
  GL_GENERATE_FNMATCH_H_FALSE=
17691
fi
17692
17693
17694
  if test -n "$FNMATCH_H"; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17695
17696
17697
17698
17699
17700
17701
17702
17703
  gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
17704
17705
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17706
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17707
cat >>confdefs.h <<_ACEOF
17708
#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17709
_ACEOF
17710
17711
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17712
  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17713
"
1.15.15 by Colin Watson
Import upstream version 1.99
17714
if test "x$ac_cv_have_decl_isblank" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17715
  ac_have_decl=1
17716
else
17717
  ac_have_decl=0
17718
fi
17719
17720
cat >>confdefs.h <<_ACEOF
17721
#define HAVE_DECL_ISBLANK $ac_have_decl
17722
_ACEOF
17723
17724
17725
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17726
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17727
  fi
17728
17729
17730
17731
17732
17733
17734
17735
17736
  if test $ac_cv_func_getdelim = yes; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17737
    HAVE_GETDELIM=1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17738
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
17739
$as_echo_n "checking for working getdelim function... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17740
if ${gl_cv_func_working_getdelim+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17741
  $as_echo_n "(cached) " >&6
17742
else
17743
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17744
    if test "$cross_compiling" = yes; then :
17745
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746
/* end confdefs.h.  */
17747
17748
#include <features.h>
17749
#ifdef __GNU_LIBRARY__
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17750
 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17751
  Lucky GNU user
17752
 #endif
17753
#endif
17754
17755
_ACEOF
17756
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17757
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17758
  gl_cv_func_working_getdelim="guessing yes"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17759
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17760
  gl_cv_func_working_getdelim="guessing no"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17761
fi
17762
rm -f conftest*
17763
17764
17765
else
17766
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767
/* end confdefs.h.  */
17768
17769
#    include <stdio.h>
17770
#    include <stdlib.h>
17771
#    include <string.h>
17772
    int main ()
17773
    {
17774
      FILE *in = fopen ("./conftest.data", "r");
17775
      if (!in)
17776
        return 1;
17777
      {
17778
        /* Test result for a NULL buffer and a zero size.
17779
           Based on a test program from Karl Heuer.  */
17780
        char *line = NULL;
17781
        size_t siz = 0;
17782
        int len = getdelim (&line, &siz, '\n', in);
17783
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17784
          return 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17785
      }
17786
      {
17787
        /* Test result for a NULL buffer and a non-zero size.
17788
           This crashes on FreeBSD 8.0.  */
17789
        char *line = NULL;
17790
        size_t siz = (size_t)(~0) / 4;
17791
        if (getdelim (&line, &siz, '\n', in) == -1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17792
          return 3;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17793
      }
17794
      return 0;
17795
    }
17796
17797
_ACEOF
17798
if ac_fn_c_try_run "$LINENO"; then :
17799
  gl_cv_func_working_getdelim=yes
17800
else
17801
  gl_cv_func_working_getdelim=no
17802
fi
17803
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17804
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17805
fi
17806
17807
fi
17808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
17809
$as_echo "$gl_cv_func_working_getdelim" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17810
    case "$gl_cv_func_working_getdelim" in
17811
      *no)
17812
        REPLACE_GETDELIM=1
17813
        ;;
17814
    esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17815
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17816
    HAVE_GETDELIM=0
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17817
  fi
17818
17819
  if test $ac_cv_have_decl_getdelim = no; then
17820
    HAVE_DECL_GETDELIM=0
17821
  fi
17822
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17823
  if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17824
17825
17826
17827
17828
17829
17830
17831
17832
  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
17833
17834
17835
  for ac_func in flockfile funlockfile
17836
do :
17837
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17838
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17839
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17840
  cat >>confdefs.h <<_ACEOF
17841
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842
_ACEOF
17843
17844
fi
17845
done
17846
17847
  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
17848
if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17849
  ac_have_decl=1
17850
else
17851
  ac_have_decl=0
17852
fi
17853
17854
cat >>confdefs.h <<_ACEOF
17855
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
17856
_ACEOF
17857
17858
17859
  fi
17860
17861
17862
17863
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17864
17865
          GNULIB_GETDELIM=1
17866
17867
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17868
17869
17870
17871
$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
  gl_getline_needs_run_time_check=no
17883
  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
1.15.15 by Colin Watson
Import upstream version 1.99
17884
if test "x$ac_cv_func_getline" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17885
                   gl_getline_needs_run_time_check=yes
17886
else
17887
  am_cv_func_working_getline=no
17888
fi
17889
17890
  if test $gl_getline_needs_run_time_check = yes; then
17891
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
17892
$as_echo_n "checking for working getline function... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
17893
if ${am_cv_func_working_getline+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17894
  $as_echo_n "(cached) " >&6
17895
else
17896
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17897
    if test "$cross_compiling" = yes; then :
17898
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899
/* end confdefs.h.  */
17900
17901
#include <features.h>
17902
#ifdef __GNU_LIBRARY__
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17903
 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17904
  Lucky GNU user
17905
 #endif
17906
#endif
17907
17908
_ACEOF
17909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17910
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17911
  am_cv_func_working_getline="guessing yes"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17912
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17913
  am_cv_func_working_getline="guessing no"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17914
fi
17915
rm -f conftest*
17916
17917
17918
else
17919
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920
/* end confdefs.h.  */
17921
17922
#    include <stdio.h>
17923
#    include <stdlib.h>
17924
#    include <string.h>
17925
    int main ()
17926
    {
17927
      FILE *in = fopen ("./conftest.data", "r");
17928
      if (!in)
17929
        return 1;
17930
      {
17931
        /* Test result for a NULL buffer and a zero size.
17932
           Based on a test program from Karl Heuer.  */
17933
        char *line = NULL;
17934
        size_t siz = 0;
17935
        int len = getline (&line, &siz, in);
17936
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17937
          return 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17938
      }
17939
      {
17940
        /* Test result for a NULL buffer and a non-zero size.
17941
           This crashes on FreeBSD 8.0.  */
17942
        char *line = NULL;
17943
        size_t siz = (size_t)(~0) / 4;
17944
        if (getline (&line, &siz, in) == -1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17945
          return 3;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17946
      }
17947
      return 0;
17948
    }
17949
17950
_ACEOF
17951
if ac_fn_c_try_run "$LINENO"; then :
17952
  am_cv_func_working_getline=yes
17953
else
17954
  am_cv_func_working_getline=no
17955
fi
17956
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17957
  conftest.$ac_objext conftest.beam conftest.$ac_ext
17958
fi
17959
17960
fi
17961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
17962
$as_echo "$am_cv_func_working_getline" >&6; }
17963
  fi
17964
17965
  if test $ac_cv_have_decl_getline = no; then
17966
    HAVE_DECL_GETLINE=0
17967
  fi
17968
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17969
  case "$am_cv_func_working_getline" in
17970
    *no)
17971
                        REPLACE_GETLINE=1
17972
      ;;
17973
  esac
17974
17975
  if test $REPLACE_GETLINE = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17976
17977
17978
17979
17980
17981
17982
17983
17984
  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
17985
17986
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
17987
  :
17988
17989
  fi
17990
17991
17992
17993
17994
17995
          GNULIB_GETLINE=1
17996
17997
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
17998
17999
18000
18001
$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
18002
18003
18004
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18005
18006
18007
18008
18009
18010
  if test $REPLACE_GETOPT = 1; then
18011
18012
18013
18014
18015
18016
18017
18018
18019
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18030
18031
18032
18033
18034
        GNULIB_GL_UNISTD_H_GETOPT=1
18035
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18036
18037
18038
18039
$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18040
18041
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18042
18043
18044
18045
18046
18047
    REPLACE_GETOPT=1
18048
18049
  if test $REPLACE_GETOPT = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18050
18051
  GETOPT_H=getopt.h
18052
18053
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18054
18055
18056
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18057
  fi
18058
18059
  if test $REPLACE_GETOPT = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18060
18061
18062
18063
18064
18065
18066
18067
18068
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18079
18080
18081
18082
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18083
        GNULIB_GL_UNISTD_H_GETOPT=1
18084
  fi
18085
18086
18087
18088
18089
18090
18091
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
     if test $gl_cv_have_include_next = yes; then
18104
       gl_cv_next_langinfo_h='<'langinfo.h'>'
18105
     else
18106
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
18107
$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18108
if ${gl_cv_next_langinfo_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18109
  $as_echo_n "(cached) " >&6
18110
else
18111
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18112
             if test $ac_cv_header_langinfo_h = yes; then
18113
18114
18115
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18116
/* end confdefs.h.  */
18117
#include <langinfo.h>
18118
18119
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18120
                                                                                                                        case "$host_os" in
18121
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18122
                 *)    gl_absname_cpp="$ac_cpp" ;;
18123
               esac
18124
18125
               case "$host_os" in
18126
                 mingw*)
18127
                                                                                                                                     gl_dirsep_regex='[/\\]'
18128
                   ;;
18129
                 *)
18130
                   gl_dirsep_regex='\/'
18131
                   ;;
18132
               esac
18133
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18134
18135
               gl_header_literal_regex=`echo 'langinfo.h' \
18136
                                        | sed -e "$gl_make_literal_regex_sed"`
18137
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18138
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18139
                   s|^/[^/]|//&|
18140
                   p
18141
                   q
18142
                 }'
18143
                                                            gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18144
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18145
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18146
               gl_cv_next_langinfo_h='<'langinfo.h'>'
18147
             fi
18148
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18149
18150
fi
18151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
18152
$as_echo "$gl_cv_next_langinfo_h" >&6; }
18153
     fi
18154
     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
18155
18156
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18157
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18158
       gl_next_as_first_directive='<'langinfo.h'>'
18159
     else
18160
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18161
       gl_next_as_first_directive=$gl_cv_next_langinfo_h
18162
     fi
18163
     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
18164
18165
18166
18167
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18168
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18169
    HAVE_LANGINFO_CODESET=0
18170
  HAVE_LANGINFO_T_FMT_AMPM=0
18171
  HAVE_LANGINFO_ERA=0
18172
  HAVE_LANGINFO_YESEXPR=0
18173
18174
  if test $ac_cv_header_langinfo_h = yes; then
18175
    HAVE_LANGINFO_H=1
18176
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
18177
$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18178
if ${gl_cv_header_langinfo_codeset+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18179
  $as_echo_n "(cached) " >&6
18180
else
18181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182
/* end confdefs.h.  */
18183
#include <langinfo.h>
18184
int a = CODESET;
18185
18186
int
18187
main (void)
18188
{
18189
18190
  ;
18191
  return 0;
18192
}
18193
_ACEOF
18194
if ac_fn_c_try_compile "$LINENO"; then :
18195
  gl_cv_header_langinfo_codeset=yes
18196
else
18197
  gl_cv_header_langinfo_codeset=no
18198
fi
18199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18200
18201
fi
18202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
18203
$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
18204
    if test $gl_cv_header_langinfo_codeset = yes; then
18205
      HAVE_LANGINFO_CODESET=1
18206
    fi
18207
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
18208
$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18209
if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18210
  $as_echo_n "(cached) " >&6
18211
else
18212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213
/* end confdefs.h.  */
18214
#include <langinfo.h>
18215
int a = T_FMT_AMPM;
18216
18217
int
18218
main (void)
18219
{
18220
18221
  ;
18222
  return 0;
18223
}
18224
_ACEOF
18225
if ac_fn_c_try_compile "$LINENO"; then :
18226
  gl_cv_header_langinfo_t_fmt_ampm=yes
18227
else
18228
  gl_cv_header_langinfo_t_fmt_ampm=no
18229
fi
18230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231
18232
fi
18233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
18234
$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
18235
    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
18236
      HAVE_LANGINFO_T_FMT_AMPM=1
18237
    fi
18238
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
18239
$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18240
if ${gl_cv_header_langinfo_era+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18241
  $as_echo_n "(cached) " >&6
18242
else
18243
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244
/* end confdefs.h.  */
18245
#include <langinfo.h>
18246
int a = ERA;
18247
18248
int
18249
main (void)
18250
{
18251
18252
  ;
18253
  return 0;
18254
}
18255
_ACEOF
18256
if ac_fn_c_try_compile "$LINENO"; then :
18257
  gl_cv_header_langinfo_era=yes
18258
else
18259
  gl_cv_header_langinfo_era=no
18260
fi
18261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262
18263
fi
18264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
18265
$as_echo "$gl_cv_header_langinfo_era" >&6; }
18266
    if test $gl_cv_header_langinfo_era = yes; then
18267
      HAVE_LANGINFO_ERA=1
18268
    fi
18269
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
18270
$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18271
if ${gl_cv_header_langinfo_yesexpr+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18272
  $as_echo_n "(cached) " >&6
18273
else
18274
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275
/* end confdefs.h.  */
18276
#include <langinfo.h>
18277
int a = YESEXPR;
18278
18279
int
18280
main (void)
18281
{
18282
18283
  ;
18284
  return 0;
18285
}
18286
_ACEOF
18287
if ac_fn_c_try_compile "$LINENO"; then :
18288
  gl_cv_header_langinfo_yesexpr=yes
18289
else
18290
  gl_cv_header_langinfo_yesexpr=no
18291
fi
18292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293
18294
fi
18295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
18296
$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
18297
    if test $gl_cv_header_langinfo_yesexpr = yes; then
18298
      HAVE_LANGINFO_YESEXPR=1
18299
    fi
18300
  else
18301
    HAVE_LANGINFO_H=0
18302
  fi
18303
18304
18305
18306
18307
18308
18309
18310
    for gl_func in nl_langinfo; do
18311
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18312
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18313
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18314
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18315
  $as_echo_n "(cached) " >&6
18316
else
18317
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318
/* end confdefs.h.  */
18319
#include <langinfo.h>
18320
18321
int
18322
main (void)
18323
{
18324
#undef $gl_func
18325
  (void) $gl_func;
18326
  ;
18327
  return 0;
18328
}
18329
_ACEOF
18330
if ac_fn_c_try_compile "$LINENO"; then :
18331
  eval "$as_gl_Symbol=yes"
18332
else
18333
  eval "$as_gl_Symbol=no"
18334
fi
18335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18336
fi
18337
eval ac_res=\$$as_gl_Symbol
18338
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18339
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18340
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18341
  cat >>confdefs.h <<_ACEOF
18342
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18343
_ACEOF
18344
18345
                     eval ac_cv_have_decl_$gl_func=yes
18346
fi
18347
      done
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
  case "$host_os" in
18369
    solaris*)
18370
18371
$as_echo "#define _LCONV_C99 1" >>confdefs.h
18372
18373
      ;;
18374
  esac
18375
18376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
18377
$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
18378
if ${gl_cv_header_locale_h_posix2001+:} false; then :
18379
  $as_echo_n "(cached) " >&6
18380
else
18381
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382
/* end confdefs.h.  */
18383
#include <locale.h>
18384
            int x = LC_MESSAGES;
18385
            int y = sizeof (((struct lconv *) 0)->decimal_point);
18386
int
18387
main (void)
18388
{
18389
18390
  ;
18391
  return 0;
18392
}
18393
_ACEOF
18394
if ac_fn_c_try_compile "$LINENO"; then :
18395
  gl_cv_header_locale_h_posix2001=yes
18396
else
18397
  gl_cv_header_locale_h_posix2001=no
18398
fi
18399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400
fi
18401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
18402
$as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
18403
18404
18405
  if test $ac_cv_header_xlocale_h = yes; then
18406
    HAVE_XLOCALE_H=1
18407
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
18408
$as_echo_n "checking whether locale.h defines locale_t... " >&6; }
18409
if ${gl_cv_header_locale_has_locale_t+:} false; then :
18410
  $as_echo_n "(cached) " >&6
18411
else
18412
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413
/* end confdefs.h.  */
18414
#include <locale.h>
18415
              locale_t x;
18416
int
18417
main (void)
18418
{
18419
18420
  ;
18421
  return 0;
18422
}
18423
_ACEOF
18424
if ac_fn_c_try_compile "$LINENO"; then :
18425
  gl_cv_header_locale_has_locale_t=yes
18426
else
18427
  gl_cv_header_locale_has_locale_t=no
18428
fi
18429
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430
18431
fi
18432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
18433
$as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
18434
    if test $gl_cv_header_locale_has_locale_t = yes; then
18435
      gl_cv_header_locale_h_needs_xlocale_h=no
18436
    else
18437
      gl_cv_header_locale_h_needs_xlocale_h=yes
18438
    fi
18439
  else
18440
    HAVE_XLOCALE_H=0
18441
    gl_cv_header_locale_h_needs_xlocale_h=no
18442
  fi
18443
18444
18445
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
18446
$as_echo_n "checking whether struct lconv is properly defined... " >&6; }
18447
if ${gl_cv_sys_struct_lconv_ok+:} false; then :
18448
  $as_echo_n "(cached) " >&6
18449
else
18450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451
/* end confdefs.h.  */
18452
#include <locale.h>
18453
            struct lconv l;
18454
            int x = sizeof (l.decimal_point);
18455
            int y = sizeof (l.int_p_cs_precedes);
18456
int
18457
main (void)
18458
{
18459
18460
  ;
18461
  return 0;
18462
}
18463
_ACEOF
18464
if ac_fn_c_try_compile "$LINENO"; then :
18465
  gl_cv_sys_struct_lconv_ok=yes
18466
else
18467
  gl_cv_sys_struct_lconv_ok=no
18468
fi
18469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470
18471
fi
18472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
18473
$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
18474
  if test $gl_cv_sys_struct_lconv_ok = no; then
18475
    REPLACE_STRUCT_LCONV=1
18476
  fi
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
     if test $gl_cv_have_include_next = yes; then
18487
       gl_cv_next_locale_h='<'locale.h'>'
18488
     else
18489
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
18490
$as_echo_n "checking absolute name of <locale.h>... " >&6; }
18491
if ${gl_cv_next_locale_h+:} false; then :
18492
  $as_echo_n "(cached) " >&6
18493
else
18494
18495
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496
/* end confdefs.h.  */
18497
#include <locale.h>
18498
18499
_ACEOF
18500
                                                                                                                        case "$host_os" in
18501
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18502
                 *)    gl_absname_cpp="$ac_cpp" ;;
18503
               esac
18504
18505
               case "$host_os" in
18506
                 mingw*)
18507
                                                                                                                                     gl_dirsep_regex='[/\\]'
18508
                   ;;
18509
                 *)
18510
                   gl_dirsep_regex='\/'
18511
                   ;;
18512
               esac
18513
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18514
18515
               gl_header_literal_regex=`echo 'locale.h' \
18516
                                        | sed -e "$gl_make_literal_regex_sed"`
18517
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18518
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18519
                   s|^/[^/]|//&|
18520
                   p
18521
                   q
18522
                 }'
18523
                                                            gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18524
                      sed -n "$gl_absolute_header_sed"`'"'
18525
18526
18527
fi
18528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
18529
$as_echo "$gl_cv_next_locale_h" >&6; }
18530
     fi
18531
     NEXT_LOCALE_H=$gl_cv_next_locale_h
18532
18533
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18534
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18535
       gl_next_as_first_directive='<'locale.h'>'
18536
     else
18537
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18538
       gl_next_as_first_directive=$gl_cv_next_locale_h
18539
     fi
18540
     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
18541
18542
18543
18544
18545
18546
18547
    for gl_func in setlocale duplocale; do
18548
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18549
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18550
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18551
if eval \${$as_gl_Symbol+:} false; then :
18552
  $as_echo_n "(cached) " >&6
18553
else
18554
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555
/* end confdefs.h.  */
18556
#include <locale.h>
18557
/* Some systems provide declarations in a non-standard header.  */
18558
#if HAVE_XLOCALE_H
18559
# include <xlocale.h>
18560
#endif
18561
18562
int
18563
main (void)
18564
{
18565
#undef $gl_func
18566
  (void) $gl_func;
18567
  ;
18568
  return 0;
18569
}
18570
_ACEOF
18571
if ac_fn_c_try_compile "$LINENO"; then :
18572
  eval "$as_gl_Symbol=yes"
18573
else
18574
  eval "$as_gl_Symbol=no"
18575
fi
18576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577
fi
18578
eval ac_res=\$$as_gl_Symbol
18579
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18580
$as_echo "$ac_res" >&6; }
18581
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18582
  cat >>confdefs.h <<_ACEOF
18583
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18584
_ACEOF
18585
18586
                     eval ac_cv_have_decl_$gl_func=yes
18587
fi
18588
      done
18589
18590
18591
18592
18593
18594
18595
  if test $REPLACE_STRUCT_LCONV = 1; then
18596
    REPLACE_LOCALECONV=1
18597
  fi
18598
18599
  if test $REPLACE_LOCALECONV = 1; then
18600
18601
18602
18603
18604
18605
18606
18607
18608
  gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
18609
18610
18611
  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
18612
"
18613
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
18614
18615
cat >>confdefs.h <<_ACEOF
18616
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
18617
_ACEOF
18618
18619
18620
fi
18621
18622
18623
  fi
18624
18625
18626
18627
18628
18629
          GNULIB_LOCALECONV=1
18630
18631
18632
18633
18634
18635
$as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
18636
18637
18638
18639
18640
18641
18642
      for ac_header in stdlib.h
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18643
do :
18644
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
18645
if test "x$ac_cv_header_stdlib_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18646
  cat >>confdefs.h <<_ACEOF
18647
#define HAVE_STDLIB_H 1
18648
_ACEOF
18649
18650
fi
18651
18652
done
18653
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18655
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18656
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18657
  $as_echo_n "(cached) " >&6
18658
else
18659
  if test "$cross_compiling" = yes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18660
  case "$host_os" in
18661
          # Guess yes on platforms where we know the result.
18662
          *-gnu* | freebsd* | netbsd* | openbsd* \
18663
          | hpux* | solaris* | cygwin* | mingw*)
18664
            ac_cv_func_malloc_0_nonnull=yes ;;
18665
          # If we don't know, assume the worst.
18666
          *) ac_cv_func_malloc_0_nonnull=no ;;
18667
        esac
18668
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18669
else
18670
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671
/* end confdefs.h.  */
18672
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18673
            # include <stdlib.h>
18674
            #else
18675
            char *malloc ();
18676
            #endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18677
18678
int
18679
main (void)
18680
{
18681
return ! malloc (0);
18682
  ;
18683
  return 0;
18684
}
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18685
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18686
_ACEOF
18687
if ac_fn_c_try_run "$LINENO"; then :
18688
  ac_cv_func_malloc_0_nonnull=yes
18689
else
18690
  ac_cv_func_malloc_0_nonnull=no
18691
fi
18692
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18693
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18694
fi
18695
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18696
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18697
fi
18698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18699
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18700
  if test $ac_cv_func_malloc_0_nonnull = yes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18701
18702
$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
18703
18704
else
18705
  $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
18706
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18707
     REPLACE_MALLOC=1
18708
18709
fi
18710
18711
18712
  if test $REPLACE_MALLOC = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18713
18714
18715
18716
18717
18718
18719
18720
18721
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18722
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18723
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18724
18725
18726
cat >>confdefs.h <<_ACEOF
18727
#define GNULIB_MALLOC_GNU 1
18728
_ACEOF
18729
18730
18731
18732
18733
18734
  if test $gl_cv_func_malloc_posix = yes; then
18735
18736
$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18737
18738
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18739
    REPLACE_MALLOC=1
18740
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18741
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18742
  if test $REPLACE_MALLOC = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18743
18744
18745
18746
18747
18748
18749
18750
18751
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18752
18753
  fi
18754
18755
18756
18757
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18758
18759
          GNULIB_MALLOC_POSIX=1
18760
18761
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18762
18763
18764
18765
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18780
18781
18782
18783
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18784
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18785
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18786
  $as_echo_n "(cached) " >&6
18787
else
18788
18789
                  case "$host_os" in
18790
                     # Guess no on AIX and OSF/1.
18791
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18792
                     # Guess yes otherwise.
18793
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18794
      esac
18795
      if test $LOCALE_JA != none; then
18796
        if test "$cross_compiling" = yes; then :
18797
  :
18798
else
18799
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800
/* end confdefs.h.  */
18801
18802
#include <locale.h>
18803
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18804
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18805
   <wchar.h>.
18806
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18807
   included before <wchar.h>.  */
18808
#include <stddef.h>
18809
#include <stdio.h>
18810
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18811
#include <wchar.h>
18812
int main ()
18813
{
18814
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18815
    {
18816
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18817
      mbstate_t state;
18818
      wchar_t wc;
18819
18820
      memset (&state, '\0', sizeof (mbstate_t));
18821
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18822
        if (mbsinit (&state))
18823
          return 1;
18824
    }
18825
  return 0;
18826
}
18827
_ACEOF
18828
if ac_fn_c_try_run "$LINENO"; then :
18829
  gl_cv_func_mbrtowc_incomplete_state=yes
18830
else
18831
  gl_cv_func_mbrtowc_incomplete_state=no
18832
fi
18833
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18834
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18835
fi
18836
18837
      fi
18838
18839
fi
18840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18841
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18842
18843
18844
18845
18846
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18847
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
18848
if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18849
  $as_echo_n "(cached) " >&6
18850
else
18851
18852
                  case "$host_os" in
18853
                    # Guess no on Solaris 8.
18854
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18855
                    # Guess yes otherwise.
18856
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18857
      esac
18858
      if test $LOCALE_ZH_CN != none; then
18859
        if test "$cross_compiling" = yes; then :
18860
  :
18861
else
18862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863
/* end confdefs.h.  */
18864
18865
#include <locale.h>
18866
#include <stdlib.h>
18867
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18868
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18869
   <wchar.h>.
18870
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18871
   included before <wchar.h>.  */
18872
#include <stddef.h>
18873
#include <stdio.h>
18874
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18875
#include <wchar.h>
18876
int main ()
18877
{
18878
  /* This fails on Solaris 8:
18879
     mbrtowc returns 2, and sets wc to 0x00F0.
18880
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
18881
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18882
    {
18883
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18884
      mbstate_t state;
18885
      wchar_t wc;
18886
18887
      memset (&state, '\0', sizeof (mbstate_t));
18888
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
18889
          && mbtowc (&wc, input + 3, 6) == 4)
18890
        return 1;
18891
    }
18892
  return 0;
18893
}
18894
_ACEOF
18895
if ac_fn_c_try_run "$LINENO"; then :
18896
  gl_cv_func_mbrtowc_sanitycheck=yes
18897
else
18898
  gl_cv_func_mbrtowc_sanitycheck=no
18899
fi
18900
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18901
  conftest.$ac_objext conftest.beam conftest.$ac_ext
18902
fi
18903
18904
      fi
18905
18906
fi
18907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18908
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18909
18910
    REPLACE_MBSTATE_T=0
18911
    case "$gl_cv_func_mbrtowc_incomplete_state" in
18912
      *yes) ;;
18913
      *) REPLACE_MBSTATE_T=1 ;;
18914
    esac
18915
    case "$gl_cv_func_mbrtowc_sanitycheck" in
18916
      *yes) ;;
18917
      *) REPLACE_MBSTATE_T=1 ;;
18918
    esac
18919
  else
18920
    REPLACE_MBSTATE_T=1
18921
  fi
18922
18923
18924
18925
  if test $ac_cv_func_mbrtowc = no; then
18926
    HAVE_MBRTOWC=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18927
    ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18928
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18929
   <wchar.h>.
18930
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18931
   included before <wchar.h>.  */
18932
#include <stddef.h>
18933
#include <stdio.h>
18934
#include <time.h>
18935
#include <wchar.h>
18936
18937
"
18938
if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
18939
  ac_have_decl=1
18940
else
18941
  ac_have_decl=0
18942
fi
18943
18944
cat >>confdefs.h <<_ACEOF
18945
#define HAVE_DECL_MBRTOWC $ac_have_decl
18946
_ACEOF
18947
18948
    if test $ac_cv_have_decl_mbrtowc = yes; then
18949
                        REPLACE_MBRTOWC=1
18950
    fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
18951
  else
18952
    if test $REPLACE_MBSTATE_T = 1; then
18953
      REPLACE_MBRTOWC=1
18954
    else
18955
18956
18957
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
18958
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
18959
$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
18960
if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
18961
  $as_echo_n "(cached) " >&6
18962
else
18963
18964
                  case "$host_os" in
18965
                  # Guess no on Solaris.
18966
        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
18967
                  # Guess yes otherwise.
18968
        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
18969
      esac
18970
      if test $LOCALE_FR_UTF8 != none; then
18971
        if test "$cross_compiling" = yes; then :
18972
  :
18973
else
18974
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975
/* end confdefs.h.  */
18976
18977
#include <locale.h>
18978
#include <stdlib.h>
18979
#include <string.h>
18980
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18981
   <wchar.h>.
18982
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18983
   included before <wchar.h>.  */
18984
#include <stddef.h>
18985
#include <stdio.h>
18986
#include <time.h>
18987
#include <wchar.h>
18988
int main ()
18989
{
18990
  int result = 0;
18991
18992
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18993
    {
18994
      char input[] = "\303\237er";
18995
      mbstate_t state;
18996
      wchar_t wc;
18997
      size_t ret;
18998
18999
      memset (&state, '\0', sizeof (mbstate_t));
19000
      wc = (wchar_t) 0xBADFACE;
19001
      ret = mbrtowc (&wc, input, 5, &state);
19002
      if (ret != 2)
19003
        result |= 1;
19004
      if (!mbsinit (&state))
19005
        result |= 2;
19006
19007
      memset (&state, '\0', sizeof (mbstate_t));
19008
      ret = mbrtowc (NULL, input, 5, &state);
19009
      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
19010
        result |= 4;
19011
      if (!mbsinit (&state))
19012
        result |= 8;
19013
    }
19014
  return result;
19015
}
19016
_ACEOF
19017
if ac_fn_c_try_run "$LINENO"; then :
19018
  gl_cv_func_mbrtowc_null_arg1=yes
19019
else
19020
  gl_cv_func_mbrtowc_null_arg1=no
19021
fi
19022
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19023
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19024
fi
19025
19026
      fi
19027
19028
fi
19029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19030
$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19031
19032
19033
19034
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19035
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19036
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19037
if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19038
  $as_echo_n "(cached) " >&6
19039
else
19040
19041
                  case "$host_os" in
19042
              # Guess no on OSF/1.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19043
        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19044
              # Guess yes otherwise.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19045
        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19046
      esac
19047
      if test $LOCALE_FR_UTF8 != none; then
19048
        if test "$cross_compiling" = yes; then :
19049
  :
19050
else
19051
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052
/* end confdefs.h.  */
19053
19054
#include <locale.h>
19055
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19056
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19057
   <wchar.h>.
19058
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19059
   included before <wchar.h>.  */
19060
#include <stddef.h>
19061
#include <stdio.h>
19062
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19063
#include <wchar.h>
19064
int main ()
19065
{
19066
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19067
    {
19068
      mbstate_t state;
19069
      wchar_t wc;
19070
      int ret;
19071
19072
      memset (&state, '\0', sizeof (mbstate_t));
19073
      wc = (wchar_t) 0xBADFACE;
19074
      mbrtowc (&wc, NULL, 5, &state);
19075
      /* Check that wc was not modified.  */
19076
      if (wc != (wchar_t) 0xBADFACE)
19077
        return 1;
19078
    }
19079
  return 0;
19080
}
19081
_ACEOF
19082
if ac_fn_c_try_run "$LINENO"; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19083
  gl_cv_func_mbrtowc_null_arg2=yes
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19084
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19085
  gl_cv_func_mbrtowc_null_arg2=no
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19086
fi
19087
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19088
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19089
fi
19090
19091
      fi
19092
19093
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19095
$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19096
19097
19098
19099
19100
19101
19102
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19103
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19104
if ${gl_cv_func_mbrtowc_retval+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19105
  $as_echo_n "(cached) " >&6
19106
else
19107
19108
                  case "$host_os" in
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19109
                                   # Guess no on HP-UX, Solaris, native Windows.
19110
        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
19111
                                   # Guess yes otherwise.
19112
        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19113
      esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19114
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
19115
         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19116
        if test "$cross_compiling" = yes; then :
19117
  :
19118
else
19119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120
/* end confdefs.h.  */
19121
19122
#include <locale.h>
19123
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19124
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19125
   <wchar.h>.
19126
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19127
   included before <wchar.h>.  */
19128
#include <stddef.h>
19129
#include <stdio.h>
19130
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19131
#include <wchar.h>
19132
int main ()
19133
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19134
  int result = 0;
19135
  int found_some_locale = 0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19136
  /* This fails on Solaris.  */
19137
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19138
    {
19139
      char input[] = "B\303\274\303\237er"; /* "Büßer" */
19140
      mbstate_t state;
19141
      wchar_t wc;
19142
19143
      memset (&state, '\0', sizeof (mbstate_t));
19144
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19145
        {
19146
          input[1] = '\0';
19147
          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19148
            result |= 1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19149
        }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19150
      found_some_locale = 1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19151
    }
19152
  /* This fails on HP-UX 11.11.  */
19153
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19154
    {
19155
      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19156
      mbstate_t state;
19157
      wchar_t wc;
19158
19159
      memset (&state, '\0', sizeof (mbstate_t));
19160
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19161
        {
19162
          input[1] = '\0';
19163
          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19164
            result |= 2;
19165
        }
19166
      found_some_locale = 1;
19167
    }
19168
  /* This fails on native Windows.  */
19169
  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19170
    {
19171
      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19172
      mbstate_t state;
19173
      wchar_t wc;
19174
19175
      memset (&state, '\0', sizeof (mbstate_t));
19176
      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19177
        {
19178
          input[3] = '\0';
19179
          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19180
            result |= 4;
19181
        }
19182
      found_some_locale = 1;
19183
    }
19184
  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19185
    {
19186
      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19187
      mbstate_t state;
19188
      wchar_t wc;
19189
19190
      memset (&state, '\0', sizeof (mbstate_t));
19191
      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19192
        {
19193
          input[3] = '\0';
19194
          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19195
            result |= 8;
19196
        }
19197
      found_some_locale = 1;
19198
    }
19199
  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19200
    {
19201
      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19202
      mbstate_t state;
19203
      wchar_t wc;
19204
19205
      memset (&state, '\0', sizeof (mbstate_t));
19206
      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19207
        {
19208
          input[3] = '\0';
19209
          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19210
            result |= 16;
19211
        }
19212
      found_some_locale = 1;
19213
    }
19214
  return (found_some_locale ? result : 77);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19215
}
19216
_ACEOF
19217
if ac_fn_c_try_run "$LINENO"; then :
19218
  gl_cv_func_mbrtowc_retval=yes
19219
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19220
  if test $? != 77; then
19221
             gl_cv_func_mbrtowc_retval=no
19222
           fi
19223
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19224
fi
19225
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19226
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19227
fi
19228
19229
      fi
19230
19231
fi
19232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19233
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19234
19235
19236
19237
19238
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19239
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19240
if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19241
  $as_echo_n "(cached) " >&6
19242
else
19243
19244
                  case "$host_os" in
19245
                       # Guess no on Solaris 8 and 9.
19246
        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
19247
                       # Guess yes otherwise.
19248
        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
19249
      esac
19250
      if test $LOCALE_ZH_CN != none; then
19251
        if test "$cross_compiling" = yes; then :
19252
  :
19253
else
19254
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255
/* end confdefs.h.  */
19256
19257
#include <locale.h>
19258
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19259
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19260
   <wchar.h>.
19261
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19262
   included before <wchar.h>.  */
19263
#include <stddef.h>
19264
#include <stdio.h>
19265
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19266
#include <wchar.h>
19267
int main ()
19268
{
19269
  /* This fails on Solaris 8 and 9.  */
19270
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19271
    {
19272
      mbstate_t state;
19273
      wchar_t wc;
19274
19275
      memset (&state, '\0', sizeof (mbstate_t));
19276
      if (mbrtowc (&wc, "", 1, &state) != 0)
19277
        return 1;
19278
    }
19279
  return 0;
19280
}
19281
_ACEOF
19282
if ac_fn_c_try_run "$LINENO"; then :
19283
  gl_cv_func_mbrtowc_nul_retval=yes
19284
else
19285
  gl_cv_func_mbrtowc_nul_retval=no
19286
fi
19287
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19288
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19289
fi
19290
19291
      fi
19292
19293
fi
19294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19295
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19296
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19297
      case "$gl_cv_func_mbrtowc_null_arg1" in
19298
        *yes) ;;
19299
        *)
19300
$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19301
19302
           REPLACE_MBRTOWC=1
19303
           ;;
19304
      esac
19305
      case "$gl_cv_func_mbrtowc_null_arg2" in
19306
        *yes) ;;
19307
        *)
19308
$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19309
19310
           REPLACE_MBRTOWC=1
19311
           ;;
19312
      esac
19313
      case "$gl_cv_func_mbrtowc_retval" in
19314
        *yes) ;;
19315
        *)
19316
$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19317
19318
           REPLACE_MBRTOWC=1
19319
           ;;
19320
      esac
19321
      case "$gl_cv_func_mbrtowc_nul_retval" in
19322
        *yes) ;;
19323
        *)
19324
$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19325
19326
           REPLACE_MBRTOWC=1
19327
           ;;
19328
      esac
19329
    fi
19330
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19331
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19332
  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
19333
19334
19335
19336
19337
19338
19339
19340
19341
  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
19342
19343
19344
  :
19345
19346
  fi
19347
19348
19349
19350
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19351
19352
          GNULIB_MBRTOWC=1
19353
19354
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19355
19356
19357
19358
$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19359
19360
19361
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19362
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19374
19375
19376
19377
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19378
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19379
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19380
  $as_echo_n "(cached) " >&6
19381
else
19382
19383
                  case "$host_os" in
19384
                     # Guess no on AIX and OSF/1.
19385
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19386
                     # Guess yes otherwise.
19387
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19388
      esac
19389
      if test $LOCALE_JA != none; then
19390
        if test "$cross_compiling" = yes; then :
19391
  :
19392
else
19393
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394
/* end confdefs.h.  */
19395
19396
#include <locale.h>
19397
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19398
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19399
   <wchar.h>.
19400
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19401
   included before <wchar.h>.  */
19402
#include <stddef.h>
19403
#include <stdio.h>
19404
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19405
#include <wchar.h>
19406
int main ()
19407
{
19408
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19409
    {
19410
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19411
      mbstate_t state;
19412
      wchar_t wc;
19413
19414
      memset (&state, '\0', sizeof (mbstate_t));
19415
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19416
        if (mbsinit (&state))
19417
          return 1;
19418
    }
19419
  return 0;
19420
}
19421
_ACEOF
19422
if ac_fn_c_try_run "$LINENO"; then :
19423
  gl_cv_func_mbrtowc_incomplete_state=yes
19424
else
19425
  gl_cv_func_mbrtowc_incomplete_state=no
19426
fi
19427
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19428
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19429
fi
19430
19431
      fi
19432
19433
fi
19434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19435
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19436
19437
19438
19439
19440
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19441
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19442
if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19443
  $as_echo_n "(cached) " >&6
19444
else
19445
19446
                  case "$host_os" in
19447
                    # Guess no on Solaris 8.
19448
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19449
                    # Guess yes otherwise.
19450
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19451
      esac
19452
      if test $LOCALE_ZH_CN != none; then
19453
        if test "$cross_compiling" = yes; then :
19454
  :
19455
else
19456
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457
/* end confdefs.h.  */
19458
19459
#include <locale.h>
19460
#include <stdlib.h>
19461
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19462
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19463
   <wchar.h>.
19464
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19465
   included before <wchar.h>.  */
19466
#include <stddef.h>
19467
#include <stdio.h>
19468
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19469
#include <wchar.h>
19470
int main ()
19471
{
19472
  /* This fails on Solaris 8:
19473
     mbrtowc returns 2, and sets wc to 0x00F0.
19474
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19475
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19476
    {
19477
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19478
      mbstate_t state;
19479
      wchar_t wc;
19480
19481
      memset (&state, '\0', sizeof (mbstate_t));
19482
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
19483
          && mbtowc (&wc, input + 3, 6) == 4)
19484
        return 1;
19485
    }
19486
  return 0;
19487
}
19488
_ACEOF
19489
if ac_fn_c_try_run "$LINENO"; then :
19490
  gl_cv_func_mbrtowc_sanitycheck=yes
19491
else
19492
  gl_cv_func_mbrtowc_sanitycheck=no
19493
fi
19494
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19495
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19496
fi
19497
19498
      fi
19499
19500
fi
19501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19502
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19503
19504
    REPLACE_MBSTATE_T=0
19505
    case "$gl_cv_func_mbrtowc_incomplete_state" in
19506
      *yes) ;;
19507
      *) REPLACE_MBSTATE_T=1 ;;
19508
    esac
19509
    case "$gl_cv_func_mbrtowc_sanitycheck" in
19510
      *yes) ;;
19511
      *) REPLACE_MBSTATE_T=1 ;;
19512
    esac
19513
  else
19514
    REPLACE_MBSTATE_T=1
19515
  fi
19516
19517
19518
19519
  if test $ac_cv_func_mbsinit = no; then
19520
    HAVE_MBSINIT=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19521
    ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19522
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19523
   <wchar.h>.
19524
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19525
   included before <wchar.h>.  */
19526
#include <stddef.h>
19527
#include <stdio.h>
19528
#include <time.h>
19529
#include <wchar.h>
19530
19531
"
19532
if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
19533
  ac_have_decl=1
19534
else
19535
  ac_have_decl=0
19536
fi
19537
19538
cat >>confdefs.h <<_ACEOF
19539
#define HAVE_DECL_MBSINIT $ac_have_decl
19540
_ACEOF
19541
19542
    if test $ac_cv_have_decl_mbsinit = yes; then
19543
                        REPLACE_MBSINIT=1
19544
    fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19545
  else
19546
    if test $REPLACE_MBSTATE_T = 1; then
19547
      REPLACE_MBSINIT=1
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19548
    else
19549
                        case "$host_os" in
19550
        mingw*) REPLACE_MBSINIT=1 ;;
19551
      esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19552
    fi
19553
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19554
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19555
  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
19556
19557
19558
19559
19560
19561
19562
19563
19564
  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
19565
19566
19567
  :
19568
19569
  fi
19570
19571
19572
19573
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19574
19575
          GNULIB_MBSINIT=1
19576
19577
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19578
19579
19580
19581
$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19596
19597
19598
19599
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19600
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19601
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19602
  $as_echo_n "(cached) " >&6
19603
else
19604
19605
                  case "$host_os" in
19606
                     # Guess no on AIX and OSF/1.
19607
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19608
                     # Guess yes otherwise.
19609
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19610
      esac
19611
      if test $LOCALE_JA != none; then
19612
        if test "$cross_compiling" = yes; then :
19613
  :
19614
else
19615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616
/* end confdefs.h.  */
19617
19618
#include <locale.h>
19619
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19620
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19621
   <wchar.h>.
19622
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19623
   included before <wchar.h>.  */
19624
#include <stddef.h>
19625
#include <stdio.h>
19626
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19627
#include <wchar.h>
19628
int main ()
19629
{
19630
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19631
    {
19632
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19633
      mbstate_t state;
19634
      wchar_t wc;
19635
19636
      memset (&state, '\0', sizeof (mbstate_t));
19637
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19638
        if (mbsinit (&state))
19639
          return 1;
19640
    }
19641
  return 0;
19642
}
19643
_ACEOF
19644
if ac_fn_c_try_run "$LINENO"; then :
19645
  gl_cv_func_mbrtowc_incomplete_state=yes
19646
else
19647
  gl_cv_func_mbrtowc_incomplete_state=no
19648
fi
19649
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19650
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19651
fi
19652
19653
      fi
19654
19655
fi
19656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19657
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19658
19659
19660
19661
19662
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19663
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19664
if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19665
  $as_echo_n "(cached) " >&6
19666
else
19667
19668
                  case "$host_os" in
19669
                    # Guess no on Solaris 8.
19670
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19671
                    # Guess yes otherwise.
19672
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19673
      esac
19674
      if test $LOCALE_ZH_CN != none; then
19675
        if test "$cross_compiling" = yes; then :
19676
  :
19677
else
19678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679
/* end confdefs.h.  */
19680
19681
#include <locale.h>
19682
#include <stdlib.h>
19683
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19684
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19685
   <wchar.h>.
19686
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19687
   included before <wchar.h>.  */
19688
#include <stddef.h>
19689
#include <stdio.h>
19690
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19691
#include <wchar.h>
19692
int main ()
19693
{
19694
  /* This fails on Solaris 8:
19695
     mbrtowc returns 2, and sets wc to 0x00F0.
19696
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19697
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19698
    {
19699
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19700
      mbstate_t state;
19701
      wchar_t wc;
19702
19703
      memset (&state, '\0', sizeof (mbstate_t));
19704
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
19705
          && mbtowc (&wc, input + 3, 6) == 4)
19706
        return 1;
19707
    }
19708
  return 0;
19709
}
19710
_ACEOF
19711
if ac_fn_c_try_run "$LINENO"; then :
19712
  gl_cv_func_mbrtowc_sanitycheck=yes
19713
else
19714
  gl_cv_func_mbrtowc_sanitycheck=no
19715
fi
19716
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19717
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19718
fi
19719
19720
      fi
19721
19722
fi
19723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19724
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19725
19726
    REPLACE_MBSTATE_T=0
19727
    case "$gl_cv_func_mbrtowc_incomplete_state" in
19728
      *yes) ;;
19729
      *) REPLACE_MBSTATE_T=1 ;;
19730
    esac
19731
    case "$gl_cv_func_mbrtowc_sanitycheck" in
19732
      *yes) ;;
19733
      *) REPLACE_MBSTATE_T=1 ;;
19734
    esac
19735
  else
19736
    REPLACE_MBSTATE_T=1
19737
  fi
19738
19739
19740
19741
  if test $ac_cv_func_mbsrtowcs = no; then
19742
    HAVE_MBSRTOWCS=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19743
    ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19744
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19745
   <wchar.h>.
19746
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19747
   included before <wchar.h>.  */
19748
#include <stddef.h>
19749
#include <stdio.h>
19750
#include <time.h>
19751
#include <wchar.h>
19752
19753
"
19754
if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
19755
  ac_have_decl=1
19756
else
19757
  ac_have_decl=0
19758
fi
19759
19760
cat >>confdefs.h <<_ACEOF
19761
#define HAVE_DECL_MBSRTOWCS $ac_have_decl
19762
_ACEOF
19763
19764
    if test $ac_cv_have_decl_mbsrtowcs = yes; then
19765
                        REPLACE_MBSRTOWCS=1
19766
    fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19767
  else
19768
    if test $REPLACE_MBSTATE_T = 1; then
19769
      REPLACE_MBSRTOWCS=1
19770
    else
19771
19772
19773
19774
19775
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19776
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19777
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19778
$as_echo_n "checking whether mbsrtowcs works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
19779
if ${gl_cv_func_mbsrtowcs_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19780
  $as_echo_n "(cached) " >&6
19781
else
19782
19783
                  case "$host_os" in
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19784
                                   # Guess no on HP-UX, Solaris, mingw.
19785
        hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
19786
                                   # Guess yes otherwise.
19787
        *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19788
      esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19789
      if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19790
        if test "$cross_compiling" = yes; then :
19791
  :
19792
else
19793
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794
/* end confdefs.h.  */
19795
19796
#include <locale.h>
19797
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19798
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19799
   <wchar.h>.
19800
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19801
   included before <wchar.h>.  */
19802
#include <stddef.h>
19803
#include <stdio.h>
19804
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19805
#include <wchar.h>
19806
int main ()
19807
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19808
  int result = 0;
19809
  /* Test whether the function supports a NULL destination argument.
19810
     This fails on native Windows.  */
19811
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19812
    {
19813
      const char input[] = "\337er";
19814
      const char *src = input;
19815
      mbstate_t state;
19816
19817
      memset (&state, '\0', sizeof (mbstate_t));
19818
      if (mbsrtowcs (NULL, &src, 1, &state) != 3
19819
          || src != input)
19820
        result |= 1;
19821
    }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19822
  /* Test whether the function works when started with a conversion state
19823
     in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
19824
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19825
    {
19826
      const char input[] = "B\303\274\303\237er";
19827
      mbstate_t state;
19828
19829
      memset (&state, '\0', sizeof (mbstate_t));
19830
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19831
        if (!mbsinit (&state))
19832
          {
19833
            const char *src = input + 2;
19834
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19835
              result |= 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19836
          }
19837
    }
19838
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19839
    {
19840
      const char input[] = "<\306\374\313\334\270\354>";
19841
      mbstate_t state;
19842
19843
      memset (&state, '\0', sizeof (mbstate_t));
19844
      if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19845
        if (!mbsinit (&state))
19846
          {
19847
            const char *src = input + 4;
19848
            if (mbsrtowcs (NULL, &src, 10, &state) != 3)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19849
              result |= 4;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19850
          }
19851
    }
19852
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19853
    {
19854
      const char input[] = "B\250\271\201\060\211\070er";
19855
      mbstate_t state;
19856
19857
      memset (&state, '\0', sizeof (mbstate_t));
19858
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19859
        if (!mbsinit (&state))
19860
          {
19861
            const char *src = input + 2;
19862
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19863
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19864
          }
19865
    }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19866
  return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19867
}
19868
_ACEOF
19869
if ac_fn_c_try_run "$LINENO"; then :
19870
  gl_cv_func_mbsrtowcs_works=yes
19871
else
19872
  gl_cv_func_mbsrtowcs_works=no
19873
fi
19874
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19875
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19876
fi
19877
19878
      fi
19879
19880
fi
19881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19882
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19883
19884
      case "$gl_cv_func_mbsrtowcs_works" in
19885
        *yes) ;;
19886
        *) REPLACE_MBSRTOWCS=1 ;;
19887
      esac
19888
    fi
19889
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19890
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19891
  if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
19892
19893
19894
19895
19896
19897
19898
19899
19900
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19911
19912
19913
  :
19914
19915
  fi
19916
19917
19918
19919
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19920
19921
          GNULIB_MBSRTOWCS=1
19922
19923
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
19924
19925
19926
19927
$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19928
19929
19930
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
19931
19932
19933
19934
19935
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
19936
$as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
19937
if ${ac_cv_have_decl_mbswidth+:} false; then :
19938
  $as_echo_n "(cached) " >&6
19939
else
19940
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941
/* end confdefs.h.  */
19942
19943
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19944
   <wchar.h>.
19945
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19946
   before <wchar.h>.  */
19947
#include <stddef.h>
19948
#include <stdio.h>
19949
#include <time.h>
19950
#include <wchar.h>
19951
19952
int
19953
main (void)
19954
{
19955
19956
  char *p = (char *) mbswidth;
19957
  return !p;
19958
19959
  ;
19960
  return 0;
19961
}
19962
_ACEOF
19963
if ac_fn_c_try_compile "$LINENO"; then :
19964
  ac_cv_have_decl_mbswidth=yes
19965
else
19966
  ac_cv_have_decl_mbswidth=no
19967
fi
19968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969
fi
19970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
19971
$as_echo "$ac_cv_have_decl_mbswidth" >&6; }
19972
  if test $ac_cv_have_decl_mbswidth = yes; then
19973
    ac_val=1
19974
  else
19975
    ac_val=0
19976
  fi
19977
19978
cat >>confdefs.h <<_ACEOF
19979
#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
19980
_ACEOF
19981
19982
19983
19984
19985
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19986
$as_echo_n "checking for mbstate_t... " >&6; }
19987
if ${ac_cv_type_mbstate_t+:} false; then :
19988
  $as_echo_n "(cached) " >&6
19989
else
19990
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19991
/* end confdefs.h.  */
19992
$ac_includes_default
19993
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19994
   <wchar.h>.
19995
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19996
   included before <wchar.h>.  */
19997
#include <stddef.h>
19998
#include <stdio.h>
19999
#include <time.h>
20000
#include <wchar.h>
20001
int
20002
main (void)
20003
{
20004
mbstate_t x; return sizeof x;
20005
  ;
20006
  return 0;
20007
}
20008
_ACEOF
20009
if ac_fn_c_try_compile "$LINENO"; then :
20010
  ac_cv_type_mbstate_t=yes
20011
else
20012
  ac_cv_type_mbstate_t=no
20013
fi
20014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015
fi
20016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20017
$as_echo "$ac_cv_type_mbstate_t" >&6; }
20018
   if test $ac_cv_type_mbstate_t = yes; then
20019
20020
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20021
20022
   else
20023
20024
$as_echo "#define mbstate_t int" >>confdefs.h
20025
20026
   fi
20027
20028
20029
20030
20031
20032
  if false; then
20033
    REPLACE_MBTOWC=1
20034
  fi
20035
20036
  if test $REPLACE_MBTOWC = 1; then
20037
20038
20039
20040
20041
20042
20043
20044
20045
  gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
20046
20047
20048
  :
20049
20050
  fi
20051
20052
20053
20054
20055
20056
          GNULIB_MBTOWC=1
20057
20058
20059
20060
20061
20062
$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20063
20064
20065
20066
20067
  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20068
20069
20070
20071
20072
20073
20074
20075
20076
  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20077
20078
20079
  for ac_header in bp-sym.h
20080
do :
20081
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20082
if test "x$ac_cv_header_bp_sym_h" = xyes; then :
20083
  cat >>confdefs.h <<_ACEOF
20084
#define HAVE_BP_SYM_H 1
20085
_ACEOF
20086
20087
fi
20088
20089
done
20090
20091
20092
  fi
20093
20094
20095
20096
20097
20098
          GNULIB_MEMCHR=1
20099
20100
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20101
20102
20103
20104
$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
  for ac_func in mempcpy
20115
do :
20116
  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
1.15.15 by Colin Watson
Import upstream version 1.99
20117
if test "x$ac_cv_func_mempcpy" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20118
  cat >>confdefs.h <<_ACEOF
20119
#define HAVE_MEMPCPY 1
20120
_ACEOF
20121
20122
fi
20123
done
20124
20125
  if test $ac_cv_func_mempcpy = no; then
20126
    HAVE_MEMPCPY=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20127
  fi
20128
20129
  if test $HAVE_MEMPCPY = 0; then
20130
20131
20132
20133
20134
20135
20136
20137
20138
  gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
20139
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20140
20141
  :
20142
20143
  fi
20144
20145
20146
20147
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20148
20149
          GNULIB_MEMPCPY=1
20150
20151
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20152
20153
20154
20155
$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20156
20157
20158
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20159
20160
20161
  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20162
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20163
20164
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20165
20166
  else
20167
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20168
  fi
20169
20170
20171
  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20172
20173
20174
20175
20176
20177
20178
20179
20180
  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
20181
20182
  fi
20183
20184
20185
20186
  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20187
20188
20189
20190
20191
20192
20193
20194
20195
  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20196
20197
  fi
20198
20199
20200
20201
20202
20203
     if test $ac_cv_func_nl_langinfo = yes; then
20204
    # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20205
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
20206
$as_echo_n "checking whether YESEXPR works... " >&6; }
20207
if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
20208
  $as_echo_n "(cached) " >&6
20209
else
20210
  if test "$cross_compiling" = yes; then :
20211
20212
         case "$host_os" in
20213
                   # Guess no on irix systems.
20214
           irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
20215
                   # Guess yes elsewhere.
20216
           *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
20217
         esac
20218
20219
else
20220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20221
/* end confdefs.h.  */
20222
#include <langinfo.h>
20223
20224
int
20225
main (void)
20226
{
20227
return !*nl_langinfo(YESEXPR);
20228
20229
  ;
20230
  return 0;
20231
}
20232
_ACEOF
20233
if ac_fn_c_try_run "$LINENO"; then :
20234
  gl_cv_func_nl_langinfo_yesexpr_works=yes
20235
else
20236
  gl_cv_func_nl_langinfo_yesexpr_works=no
20237
fi
20238
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20239
  conftest.$ac_objext conftest.beam conftest.$ac_ext
20240
fi
20241
20242
20243
fi
20244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
20245
$as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
20246
    case $gl_cv_func_nl_langinfo_yesexpr_works in
20247
      *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
20248
      *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
20249
    esac
20250
20251
cat >>confdefs.h <<_ACEOF
20252
#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
20253
_ACEOF
20254
20255
    if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
20256
        && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20257
      :
20258
    else
20259
      REPLACE_NL_LANGINFO=1
20260
20261
$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
20262
20263
    fi
20264
  else
20265
    HAVE_NL_LANGINFO=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20266
  fi
20267
20268
  if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20269
20270
20271
20272
20273
20274
20275
20276
20277
  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
20278
20279
  fi
20280
20281
20282
20283
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20284
20285
          GNULIB_NL_LANGINFO=1
20286
20287
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20288
20289
20290
20291
$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
20292
20293
20294
20295
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20296
"
1.15.15 by Colin Watson
Import upstream version 1.99
20297
if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20298
  ac_have_decl=1
20299
else
20300
  ac_have_decl=0
20301
fi
20302
20303
cat >>confdefs.h <<_ACEOF
20304
#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20305
_ACEOF
20306
20307
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20308
"
1.15.15 by Colin Watson
Import upstream version 1.99
20309
if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20310
  ac_have_decl=1
20311
else
20312
  ac_have_decl=0
20313
fi
20314
20315
cat >>confdefs.h <<_ACEOF
20316
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20317
_ACEOF
20318
20319
20320
20321
20322
20323
  for ac_func in rawmemchr
20324
do :
20325
  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
1.15.15 by Colin Watson
Import upstream version 1.99
20326
if test "x$ac_cv_func_rawmemchr" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20327
  cat >>confdefs.h <<_ACEOF
20328
#define HAVE_RAWMEMCHR 1
20329
_ACEOF
20330
20331
fi
20332
done
20333
20334
  if test $ac_cv_func_rawmemchr = no; then
20335
    HAVE_RAWMEMCHR=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20336
  fi
20337
20338
  if test $HAVE_RAWMEMCHR = 0; then
20339
20340
20341
20342
20343
20344
20345
20346
20347
  gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
20348
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20349
    :
20350
  fi
20351
20352
20353
20354
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20355
20356
          GNULIB_RAWMEMCHR=1
20357
20358
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20359
20360
20361
20362
$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20363
20364
20365
20366
20367
20368
20369
  if test $gl_cv_func_malloc_posix = yes; then
20370
20371
$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20372
20373
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20374
    REPLACE_REALLOC=1
20375
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20376
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20377
  if test $REPLACE_REALLOC = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20378
20379
20380
20381
20382
20383
20384
20385
20386
  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
20387
20388
  fi
20389
20390
20391
20392
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20393
20394
          GNULIB_REALLOC_POSIX=1
20395
20396
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20397
20398
20399
20400
$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20401
20402
20403
20404
20405
20406
# Check whether --with-included-regex was given.
20407
if test "${with_included_regex+set}" = set; then :
20408
  withval=$with_included_regex;
20409
fi
20410
20411
20412
  case $with_included_regex in #(
20413
  yes|no) ac_use_included_regex=$with_included_regex
20414
        ;;
20415
  '')
20416
    # If the system regex support is good enough that it passes the
20417
    # following run test, then default to *not* using the included regex.c.
20418
    # If cross compiling, assume the test would fail and use the included
20419
    # regex.c.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20420
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20421
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
20422
$as_echo_n "checking for working re_compile_pattern... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
20423
if ${gl_cv_func_re_compile_pattern_working+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20424
  $as_echo_n "(cached) " >&6
20425
else
20426
  if test "$cross_compiling" = yes; then :
20427
         gl_cv_func_re_compile_pattern_working=no
20428
else
20429
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430
/* end confdefs.h.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20431
#include <regex.h>
20432
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20433
            #include <locale.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20434
            #include <limits.h>
20435
            #include <string.h>
20436
            #if HAVE_DECL_ALARM
20437
            # include <unistd.h>
20438
            # include <signal.h>
20439
            #endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20440
20441
int
20442
main (void)
20443
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20444
int result = 0;
20445
            static struct re_pattern_buffer regex;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20446
            unsigned char folded_chars[UCHAR_MAX + 1];
20447
            int i;
20448
            const char *s;
20449
            struct re_registers regs;
20450
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20451
#if HAVE_DECL_ALARM
20452
            /* Some builds of glibc go into an infinite loop on this test.  */
20453
            signal (SIGALRM, SIG_DFL);
20454
            alarm (2);
20455
#endif
20456
            if (setlocale (LC_ALL, "en_US.UTF-8"))
20457
              {
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20458
                {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20459
                  /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20460
                     This test needs valgrind to catch the bug on Debian
20461
                     GNU/Linux 3.1 x86, but it might catch the bug better
20462
                     on other platforms and it shouldn't hurt to try the
20463
                     test here.  */
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20464
                  static char const pat[] = "insert into";
20465
                  static char const data[] =
20466
                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20467
                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20468
                                 | RE_ICASE);
20469
                  memset (&regex, 0, sizeof regex);
20470
                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20471
                  if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20472
                    result |= 1;
20473
                  else if (re_search (&regex, data, sizeof data - 1,
20474
                                      0, sizeof data - 1, &regs)
20475
                           != -1)
20476
                    result |= 1;
20477
                }
20478
20479
                {
20480
                  /* This test is from glibc bug 15078.
20481
                     The test case is from Andreas Schwab in
20482
                     <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
20483
                     */
20484
                  static char const pat[] = "[^x]x";
20485
                  static char const data[] =
20486
                    "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80"
20487
                    "\xba\xe1\x80\xaf\xe1\x80\x95\xe1\x80\xbax";
20488
                  re_set_syntax (0);
20489
                  memset (&regex, 0, sizeof regex);
20490
                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20491
                  if (s)
20492
                    result |= 1;
20493
                  else if (re_search (&regex, data, sizeof data - 1,
20494
                                      0, sizeof data - 1, 0)
20495
                           != 21)
20496
                    result |= 1;
20497
                }
20498
20499
                if (! setlocale (LC_ALL, "C"))
20500
                  return 1;
20501
              }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20502
20503
            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
20504
            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20505
            memset (&regex, 0, sizeof regex);
20506
            s = re_compile_pattern ("a[^x]b", 6, &regex);
20507
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20508
              result |= 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20509
            /* This should fail, but succeeds for glibc-2.5.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20510
            else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
20511
              result |= 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20512
20513
            /* This regular expression is from Spencer ere test number 75
20514
               in grep-2.3.  */
20515
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20516
            memset (&regex, 0, sizeof regex);
20517
            for (i = 0; i <= UCHAR_MAX; i++)
20518
              folded_chars[i] = i;
20519
            regex.translate = folded_chars;
20520
            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
20521
            /* This should fail with _Invalid character class name_ error.  */
20522
            if (!s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20523
              result |= 4;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20524
20525
            /* Ensure that [b-a] is diagnosed as invalid, when
20526
               using RE_NO_EMPTY_RANGES. */
20527
            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
20528
            memset (&regex, 0, sizeof regex);
20529
            s = re_compile_pattern ("a[b-a]", 6, &regex);
20530
            if (s == 0)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20531
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20532
20533
            /* This should succeed, but does not for glibc-2.1.3.  */
20534
            memset (&regex, 0, sizeof regex);
20535
            s = re_compile_pattern ("{1", 2, &regex);
20536
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20537
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20538
20539
            /* The following example is derived from a problem report
20540
               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
20541
            memset (&regex, 0, sizeof regex);
20542
            s = re_compile_pattern ("[an\371]*n", 7, &regex);
20543
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20544
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20545
            /* This should match, but does not for glibc-2.2.1.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20546
            else if (re_match (&regex, "an", 2, 0, &regs) != 2)
20547
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20548
20549
            memset (&regex, 0, sizeof regex);
20550
            s = re_compile_pattern ("x", 1, &regex);
20551
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20552
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20553
            /* glibc-2.2.93 does not work with a negative RANGE argument.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20554
            else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
20555
              result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20556
20557
            /* The version of regex.c in older versions of gnulib
20558
               ignored RE_ICASE.  Detect that problem too.  */
20559
            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20560
            memset (&regex, 0, sizeof regex);
20561
            s = re_compile_pattern ("x", 1, &regex);
20562
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20563
              result |= 16;
20564
            else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
20565
              result |= 16;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20566
20567
            /* Catch a bug reported by Vin Shelton in
20568
               http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20569
               */
20570
            re_set_syntax (RE_SYNTAX_POSIX_BASIC
20571
                           & ~RE_CONTEXT_INVALID_DUP
20572
                           & ~RE_NO_EMPTY_RANGES);
20573
            memset (&regex, 0, sizeof regex);
20574
            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
20575
            if (s)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20576
              result |= 32;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20577
20578
            /* REG_STARTEND was added to glibc on 2004-01-15.
20579
               Reject older versions.  */
20580
            if (! REG_STARTEND)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20581
              result |= 64;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20582
20583
#if 0
20584
            /* It would be nice to reject hosts whose regoff_t values are too
20585
               narrow (including glibc on hosts with 64-bit ptrdiff_t and
20586
               32-bit int), but we should wait until glibc implements this
20587
               feature.  Otherwise, support for equivalence classes and
20588
               multibyte collation symbols would always be broken except
20589
               when compiling --without-included-regex.   */
20590
            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20591
                || sizeof (regoff_t) < sizeof (ssize_t))
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20592
              result |= 64;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20593
#endif
20594
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20595
            return result;
20596
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20597
  ;
20598
  return 0;
20599
}
20600
_ACEOF
20601
if ac_fn_c_try_run "$LINENO"; then :
20602
  gl_cv_func_re_compile_pattern_working=yes
20603
else
20604
  gl_cv_func_re_compile_pattern_working=no
20605
fi
20606
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20607
  conftest.$ac_objext conftest.beam conftest.$ac_ext
20608
fi
20609
20610
fi
20611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
20612
$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20613
    case $gl_cv_func_re_compile_pattern_working in #(
20614
    yes) ac_use_included_regex=no;; #(
20615
    no) ac_use_included_regex=yes;;
20616
    esac
20617
    ;;
20618
  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
20619
    ;;
20620
  esac
20621
20622
  if test $ac_use_included_regex = yes; then
20623
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20624
$as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
20625
20626
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20627
$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
20628
20629
20630
$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
20631
20632
20633
$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
20634
20635
20636
$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
20637
20638
20639
$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
20640
20641
20642
$as_echo "#define re_search rpl_re_search" >>confdefs.h
20643
20644
20645
$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
20646
20647
20648
$as_echo "#define re_match rpl_re_match" >>confdefs.h
20649
20650
20651
$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
20652
20653
20654
$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
20655
20656
20657
$as_echo "#define re_comp rpl_re_comp" >>confdefs.h
20658
20659
20660
$as_echo "#define re_exec rpl_re_exec" >>confdefs.h
20661
20662
20663
$as_echo "#define regcomp rpl_regcomp" >>confdefs.h
20664
20665
20666
$as_echo "#define regexec rpl_regexec" >>confdefs.h
20667
20668
20669
$as_echo "#define regerror rpl_regerror" >>confdefs.h
20670
20671
20672
$as_echo "#define regfree rpl_regfree" >>confdefs.h
20673
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20674
  fi
20675
20676
  if test $ac_use_included_regex = yes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20677
20678
20679
20680
20681
20682
20683
20684
20685
  gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
20686
20687
20688
20689
20690
20691
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20692
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20693
  for ac_header in libintl.h
20694
do :
20695
  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
20696
if test "x$ac_cv_header_libintl_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20697
  cat >>confdefs.h <<_ACEOF
20698
#define HAVE_LIBINTL_H 1
20699
_ACEOF
20700
20701
fi
20702
20703
done
20704
20705
20706
  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20707
"
1.15.15 by Colin Watson
Import upstream version 1.99
20708
if test "x$ac_cv_have_decl_isblank" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20709
  ac_have_decl=1
20710
else
20711
  ac_have_decl=0
20712
fi
20713
20714
cat >>confdefs.h <<_ACEOF
20715
#define HAVE_DECL_ISBLANK $ac_have_decl
20716
_ACEOF
20717
20718
20719
  fi
20720
20721
  for ac_header in stdint.h
20722
do :
20723
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
20724
if test "x$ac_cv_header_stdint_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20725
  cat >>confdefs.h <<_ACEOF
20726
#define HAVE_STDINT_H 1
20727
_ACEOF
20728
20729
fi
20730
20731
done
20732
20733
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20734
$as_echo_n "checking for SIZE_MAX... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
20735
if ${gl_cv_size_max+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20736
  $as_echo_n "(cached) " >&6
20737
else
20738
20739
    gl_cv_size_max=
20740
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741
/* end confdefs.h.  */
20742
20743
#include <limits.h>
20744
#if HAVE_STDINT_H
20745
#include <stdint.h>
20746
#endif
20747
#ifdef SIZE_MAX
20748
Found it
20749
#endif
20750
20751
_ACEOF
20752
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20753
  $EGREP "Found it" >/dev/null 2>&1; then :
20754
  gl_cv_size_max=yes
20755
fi
20756
rm -f conftest*
20757
20758
    if test -z "$gl_cv_size_max"; then
20759
                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
20760
#include <limits.h>"; then :
20761
20762
else
20763
  size_t_bits_minus_1=
20764
fi
20765
20766
      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20767
20768
else
20769
  fits_in_uint=
20770
fi
20771
20772
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20773
        if test $fits_in_uint = 1; then
20774
                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775
/* end confdefs.h.  */
20776
#include <stddef.h>
20777
                 extern size_t foo;
20778
                 extern unsigned long foo;
20779
20780
int
20781
main (void)
20782
{
20783
20784
  ;
20785
  return 0;
20786
}
20787
_ACEOF
20788
if ac_fn_c_try_compile "$LINENO"; then :
20789
  fits_in_uint=0
20790
fi
20791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792
        fi
20793
                                if test $fits_in_uint = 1; then
20794
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20795
        else
20796
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20797
        fi
20798
      else
20799
                gl_cv_size_max='((size_t)~(size_t)0)'
20800
      fi
20801
    fi
20802
20803
fi
20804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20805
$as_echo "$gl_cv_size_max" >&6; }
20806
  if test "$gl_cv_size_max" != yes; then
20807
20808
cat >>confdefs.h <<_ACEOF
20809
#define SIZE_MAX $gl_cv_size_max
20810
_ACEOF
20811
20812
  fi
20813
20814
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20815
20816
20817
               ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20818
"
1.15.15 by Colin Watson
Import upstream version 1.99
20819
if test "x$ac_cv_have_decl_sleep" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20820
  ac_have_decl=1
20821
else
20822
  ac_have_decl=0
20823
fi
20824
20825
cat >>confdefs.h <<_ACEOF
20826
#define HAVE_DECL_SLEEP $ac_have_decl
20827
_ACEOF
20828
20829
20830
  if test $ac_cv_have_decl_sleep != yes; then
20831
    HAVE_SLEEP=0
20832
  else
20833
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
20834
$as_echo_n "checking for working sleep... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
20835
if ${gl_cv_func_sleep_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20836
  $as_echo_n "(cached) " >&6
20837
else
20838
  if test "$cross_compiling" = yes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20839
  case "$host_os" in
20840
                 # Guess yes on glibc systems.
20841
         *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
20842
                 # If we don't know, assume the worst.
20843
         *)      gl_cv_func_sleep_works="guessing no" ;;
20844
       esac
20845
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20846
else
20847
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848
/* end confdefs.h.  */
20849
20850
#include <errno.h>
20851
#include <unistd.h>
20852
#include <signal.h>
20853
static void
20854
handle_alarm (int sig)
20855
{
20856
  if (sig != SIGALRM)
20857
    _exit (2);
20858
}
20859
20860
int
20861
main (void)
20862
{
20863
20864
    /* Failure to compile this test due to missing alarm is okay,
20865
       since all such platforms (mingw) also lack sleep.  */
20866
    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
20867
    unsigned int remaining;
20868
    signal (SIGALRM, handle_alarm);
20869
    alarm (1);
20870
    remaining = sleep (pentecost);
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20871
    if (remaining > pentecost)
20872
      return 3;
20873
    if (remaining <= pentecost - 10)
20874
      return 4;
20875
    return 0;
20876
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20877
  ;
20878
  return 0;
20879
}
20880
_ACEOF
20881
if ac_fn_c_try_run "$LINENO"; then :
20882
  gl_cv_func_sleep_works=yes
20883
else
20884
  gl_cv_func_sleep_works=no
20885
fi
20886
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20887
  conftest.$ac_objext conftest.beam conftest.$ac_ext
20888
fi
20889
20890
fi
20891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
20892
$as_echo "$gl_cv_func_sleep_works" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20893
    case "$gl_cv_func_sleep_works" in
20894
      *yes) ;;
20895
      *)
20896
        REPLACE_SLEEP=1
20897
        ;;
20898
    esac
20899
  fi
20900
20901
  if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20902
20903
20904
20905
20906
20907
20908
20909
20910
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
20911
20912
  fi
20913
20914
20915
20916
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20917
20918
          GNULIB_SLEEP=1
20919
20920
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20921
20922
20923
20924
$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
20925
20926
20927
20928
20929
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20930
$as_echo_n "checking for ssize_t... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
20931
if ${gt_cv_ssize_t+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
20932
  $as_echo_n "(cached) " >&6
20933
else
20934
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935
/* end confdefs.h.  */
20936
#include <sys/types.h>
20937
int
20938
main (void)
20939
{
20940
int x = sizeof (ssize_t *) + sizeof (ssize_t);
20941
            return !x;
20942
  ;
20943
  return 0;
20944
}
20945
_ACEOF
20946
if ac_fn_c_try_compile "$LINENO"; then :
20947
  gt_cv_ssize_t=yes
20948
else
20949
  gt_cv_ssize_t=no
20950
fi
20951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952
fi
20953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20954
$as_echo "$gt_cv_ssize_t" >&6; }
20955
  if test $gt_cv_ssize_t = no; then
20956
20957
$as_echo "#define ssize_t int" >>confdefs.h
20958
20959
  fi
20960
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
20961
20962
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20963
$as_echo_n "checking for working stdalign.h... " >&6; }
20964
if ${gl_cv_header_working_stdalign_h+:} false; then :
20965
  $as_echo_n "(cached) " >&6
20966
else
20967
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968
/* end confdefs.h.  */
20969
#include <stdalign.h>
20970
            #include <stddef.h>
20971
20972
            /* Test that alignof yields a result consistent with offsetof.
20973
               This catches GCC bug 52023
20974
               <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
20975
            #ifdef __cplusplus
20976
               template <class t> struct alignof_helper { char a; t b; };
20977
            # define ao(type) offsetof (alignof_helper<type>, b)
20978
            #else
20979
            # define ao(type) offsetof (struct { char a; type b; }, b)
20980
            #endif
20981
            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20982
            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20983
            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20984
20985
            /* Test _Alignas only on platforms where gnulib can help.  */
20986
            #if \
20987
                (__GNUC__ || __IBMC__ || __IBMCPP__ \
20988
                 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
20989
              struct alignas_test { char c; char alignas (8) alignas_8; };
20990
              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
20991
                                ? 1 : -1];
20992
            #endif
20993
20994
int
20995
main (void)
20996
{
20997
20998
  ;
20999
  return 0;
21000
}
21001
_ACEOF
21002
if ac_fn_c_try_compile "$LINENO"; then :
21003
  gl_cv_header_working_stdalign_h=yes
21004
else
21005
  gl_cv_header_working_stdalign_h=no
21006
fi
21007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008
fi
21009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21010
$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21011
21012
  if test $gl_cv_header_working_stdalign_h = yes; then
21013
    STDALIGN_H=''
21014
  else
21015
    STDALIGN_H='stdalign.h'
21016
  fi
21017
21018
21019
   if test -n "$STDALIGN_H"; then
21020
  GL_GENERATE_STDALIGN_H_TRUE=
21021
  GL_GENERATE_STDALIGN_H_FALSE='#'
21022
else
21023
  GL_GENERATE_STDALIGN_H_TRUE='#'
21024
  GL_GENERATE_STDALIGN_H_FALSE=
21025
fi
21026
21027
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21028
21029
21030
21031
  # Define two additional variables used in the Makefile substitution.
21032
21033
  if test "$ac_cv_header_stdbool_h" = yes; then
21034
    STDBOOL_H=''
21035
  else
21036
    STDBOOL_H='stdbool.h'
21037
  fi
21038
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21039
   if test -n "$STDBOOL_H"; then
21040
  GL_GENERATE_STDBOOL_H_TRUE=
21041
  GL_GENERATE_STDBOOL_H_FALSE='#'
21042
else
21043
  GL_GENERATE_STDBOOL_H_TRUE='#'
21044
  GL_GENERATE_STDBOOL_H_FALSE=
21045
fi
21046
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21047
21048
  if test "$ac_cv_type__Bool" = yes; then
21049
    HAVE__BOOL=1
21050
  else
21051
    HAVE__BOOL=0
21052
  fi
21053
21054
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21055
21056
21057
21058
  STDDEF_H=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21059
  if test $gt_cv_c_wchar_t = no; then
21060
    HAVE_WCHAR_T=0
21061
    STDDEF_H=stddef.h
21062
  fi
21063
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21064
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21065
if ${gl_cv_decl_null_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21066
  $as_echo_n "(cached) " >&6
21067
else
21068
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069
/* end confdefs.h.  */
21070
#include <stddef.h>
21071
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
21072
21073
int
21074
main (void)
21075
{
21076
21077
  ;
21078
  return 0;
21079
}
21080
_ACEOF
21081
if ac_fn_c_try_compile "$LINENO"; then :
21082
  gl_cv_decl_null_works=yes
21083
else
21084
  gl_cv_decl_null_works=no
21085
fi
21086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087
fi
21088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21089
$as_echo "$gl_cv_decl_null_works" >&6; }
21090
  if test $gl_cv_decl_null_works = no; then
21091
    REPLACE_NULL=1
21092
    STDDEF_H=stddef.h
21093
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21094
21095
   if test -n "$STDDEF_H"; then
21096
  GL_GENERATE_STDDEF_H_TRUE=
21097
  GL_GENERATE_STDDEF_H_FALSE='#'
21098
else
21099
  GL_GENERATE_STDDEF_H_TRUE='#'
21100
  GL_GENERATE_STDDEF_H_FALSE=
21101
fi
21102
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21103
  if test -n "$STDDEF_H"; then
21104
21105
21106
21107
21108
21109
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21110
21111
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21112
     if test $gl_cv_have_include_next = yes; then
21113
       gl_cv_next_stddef_h='<'stddef.h'>'
21114
     else
21115
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21116
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21117
if ${gl_cv_next_stddef_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21118
  $as_echo_n "(cached) " >&6
21119
else
21120
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21121
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21122
/* end confdefs.h.  */
21123
#include <stddef.h>
21124
21125
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21126
                                                                                                                        case "$host_os" in
21127
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21128
                 *)    gl_absname_cpp="$ac_cpp" ;;
21129
               esac
21130
21131
               case "$host_os" in
21132
                 mingw*)
21133
                                                                                                                                     gl_dirsep_regex='[/\\]'
21134
                   ;;
21135
                 *)
21136
                   gl_dirsep_regex='\/'
21137
                   ;;
21138
               esac
21139
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21140
21141
               gl_header_literal_regex=`echo 'stddef.h' \
21142
                                        | sed -e "$gl_make_literal_regex_sed"`
21143
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21144
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21145
                   s|^/[^/]|//&|
21146
                   p
21147
                   q
21148
                 }'
21149
                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21150
                      sed -n "$gl_absolute_header_sed"`'"'
21151
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21152
21153
fi
21154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21155
$as_echo "$gl_cv_next_stddef_h" >&6; }
21156
     fi
21157
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
21158
21159
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21160
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21161
       gl_next_as_first_directive='<'stddef.h'>'
21162
     else
21163
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21164
       gl_next_as_first_directive=$gl_cv_next_stddef_h
21165
     fi
21166
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21167
21168
21169
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21170
21171
  fi
21172
21173
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
     if test $gl_cv_have_include_next = yes; then
21185
       gl_cv_next_stdio_h='<'stdio.h'>'
21186
     else
21187
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21188
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21189
if ${gl_cv_next_stdio_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21190
  $as_echo_n "(cached) " >&6
21191
else
21192
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21193
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21194
/* end confdefs.h.  */
21195
#include <stdio.h>
21196
21197
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21198
                                                                                                                        case "$host_os" in
21199
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21200
                 *)    gl_absname_cpp="$ac_cpp" ;;
21201
               esac
21202
21203
               case "$host_os" in
21204
                 mingw*)
21205
                                                                                                                                     gl_dirsep_regex='[/\\]'
21206
                   ;;
21207
                 *)
21208
                   gl_dirsep_regex='\/'
21209
                   ;;
21210
               esac
21211
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21212
21213
               gl_header_literal_regex=`echo 'stdio.h' \
21214
                                        | sed -e "$gl_make_literal_regex_sed"`
21215
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21216
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21217
                   s|^/[^/]|//&|
21218
                   p
21219
                   q
21220
                 }'
21221
                                                            gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21222
                      sed -n "$gl_absolute_header_sed"`'"'
21223
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21224
21225
fi
21226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21227
$as_echo "$gl_cv_next_stdio_h" >&6; }
21228
     fi
21229
     NEXT_STDIO_H=$gl_cv_next_stdio_h
21230
21231
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21232
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21233
       gl_next_as_first_directive='<'stdio.h'>'
21234
     else
21235
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21236
       gl_next_as_first_directive=$gl_cv_next_stdio_h
21237
     fi
21238
     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21239
21240
21241
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21242
21243
21244
      GNULIB_FSCANF=1
21245
21246
21247
cat >>confdefs.h <<_ACEOF
21248
#define GNULIB_FSCANF 1
21249
_ACEOF
21250
21251
21252
  GNULIB_SCANF=1
21253
21254
21255
cat >>confdefs.h <<_ACEOF
21256
#define GNULIB_SCANF 1
21257
_ACEOF
21258
21259
21260
  GNULIB_FGETC=1
21261
  GNULIB_GETC=1
21262
  GNULIB_GETCHAR=1
21263
  GNULIB_FGETS=1
21264
  GNULIB_FREAD=1
21265
21266
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21267
      GNULIB_FPRINTF=1
21268
  GNULIB_PRINTF=1
21269
  GNULIB_VFPRINTF=1
21270
  GNULIB_VPRINTF=1
21271
  GNULIB_FPUTC=1
21272
  GNULIB_PUTC=1
21273
  GNULIB_PUTCHAR=1
21274
  GNULIB_FPUTS=1
21275
  GNULIB_PUTS=1
21276
  GNULIB_FWRITE=1
21277
21278
21279
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21280
21281
    for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21282
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21283
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21284
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21285
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21286
  $as_echo_n "(cached) " >&6
21287
else
21288
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289
/* end confdefs.h.  */
21290
#include <stdio.h>
21291
21292
int
21293
main (void)
21294
{
21295
#undef $gl_func
21296
  (void) $gl_func;
21297
  ;
21298
  return 0;
21299
}
21300
_ACEOF
21301
if ac_fn_c_try_compile "$LINENO"; then :
21302
  eval "$as_gl_Symbol=yes"
21303
else
21304
  eval "$as_gl_Symbol=no"
21305
fi
21306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307
fi
21308
eval ac_res=\$$as_gl_Symbol
21309
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21310
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21311
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21312
  cat >>confdefs.h <<_ACEOF
21313
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21314
_ACEOF
21315
21316
                     eval ac_cv_have_decl_$gl_func=yes
21317
fi
21318
      done
21319
21320
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21321
21322
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21323
21324
21325
21326
21327
21328
21329
21330
21331
     if test $gl_cv_have_include_next = yes; then
21332
       gl_cv_next_stdlib_h='<'stdlib.h'>'
21333
     else
21334
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21335
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21336
if ${gl_cv_next_stdlib_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21337
  $as_echo_n "(cached) " >&6
21338
else
21339
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21340
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21341
/* end confdefs.h.  */
21342
#include <stdlib.h>
21343
21344
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21345
                                                                                                                        case "$host_os" in
21346
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21347
                 *)    gl_absname_cpp="$ac_cpp" ;;
21348
               esac
21349
21350
               case "$host_os" in
21351
                 mingw*)
21352
                                                                                                                                     gl_dirsep_regex='[/\\]'
21353
                   ;;
21354
                 *)
21355
                   gl_dirsep_regex='\/'
21356
                   ;;
21357
               esac
21358
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21359
21360
               gl_header_literal_regex=`echo 'stdlib.h' \
21361
                                        | sed -e "$gl_make_literal_regex_sed"`
21362
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21363
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21364
                   s|^/[^/]|//&|
21365
                   p
21366
                   q
21367
                 }'
21368
                                                            gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21369
                      sed -n "$gl_absolute_header_sed"`'"'
21370
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21371
21372
fi
21373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21374
$as_echo "$gl_cv_next_stdlib_h" >&6; }
21375
     fi
21376
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21377
21378
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21379
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21380
       gl_next_as_first_directive='<'stdlib.h'>'
21381
     else
21382
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21383
       gl_next_as_first_directive=$gl_cv_next_stdlib_h
21384
     fi
21385
     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21386
21387
21388
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21389
21390
21391
21392
    for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21393
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21394
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21395
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21396
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21397
  $as_echo_n "(cached) " >&6
21398
else
21399
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400
/* end confdefs.h.  */
21401
#include <stdlib.h>
21402
#if HAVE_SYS_LOADAVG_H
21403
# include <sys/loadavg.h>
21404
#endif
21405
#if HAVE_RANDOM_H
21406
# include <random.h>
21407
#endif
21408
21409
int
21410
main (void)
21411
{
21412
#undef $gl_func
21413
  (void) $gl_func;
21414
  ;
21415
  return 0;
21416
}
21417
_ACEOF
21418
if ac_fn_c_try_compile "$LINENO"; then :
21419
  eval "$as_gl_Symbol=yes"
21420
else
21421
  eval "$as_gl_Symbol=no"
21422
fi
21423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424
fi
21425
eval ac_res=\$$as_gl_Symbol
21426
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21427
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21428
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21429
  cat >>confdefs.h <<_ACEOF
21430
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21431
_ACEOF
21432
21433
                     eval ac_cv_have_decl_$gl_func=yes
21434
fi
21435
      done
21436
21437
21438
21439
21440
21441
  for ac_func in strcasecmp
21442
do :
21443
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
1.15.15 by Colin Watson
Import upstream version 1.99
21444
if test "x$ac_cv_func_strcasecmp" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21445
  cat >>confdefs.h <<_ACEOF
21446
#define HAVE_STRCASECMP 1
21447
_ACEOF
21448
21449
fi
21450
done
21451
21452
  if test $ac_cv_func_strcasecmp = no; then
21453
    HAVE_STRCASECMP=0
21454
  fi
21455
21456
21457
21458
  for ac_func in strncasecmp
21459
do :
21460
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
1.15.15 by Colin Watson
Import upstream version 1.99
21461
if test "x$ac_cv_func_strncasecmp" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21462
  cat >>confdefs.h <<_ACEOF
21463
#define HAVE_STRNCASECMP 1
21464
_ACEOF
21465
21466
fi
21467
done
21468
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21469
  if test $ac_cv_func_strncasecmp = yes; then
21470
    HAVE_STRNCASECMP=1
21471
  else
21472
    HAVE_STRNCASECMP=0
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21473
  fi
21474
  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
21475
if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21476
  ac_have_decl=1
21477
else
21478
  ac_have_decl=0
21479
fi
21480
21481
cat >>confdefs.h <<_ACEOF
21482
#define HAVE_DECL_STRNCASECMP $ac_have_decl
21483
_ACEOF
21484
21485
  if test $ac_cv_have_decl_strncasecmp = no; then
21486
    HAVE_DECL_STRNCASECMP=0
21487
  fi
21488
21489
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21490
  if test $HAVE_STRCASECMP = 0; then
21491
21492
21493
21494
21495
21496
21497
21498
21499
  gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
21500
21501
21502
  :
21503
21504
  fi
21505
  if test $HAVE_STRNCASECMP = 0; then
21506
21507
21508
21509
21510
21511
21512
21513
21514
  gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
21515
21516
21517
  :
21518
21519
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21520
21521
21522
21523
21524
  for ac_func in strchrnul
21525
do :
21526
  ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
1.15.15 by Colin Watson
Import upstream version 1.99
21527
if test "x$ac_cv_func_strchrnul" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21528
  cat >>confdefs.h <<_ACEOF
21529
#define HAVE_STRCHRNUL 1
21530
_ACEOF
21531
21532
fi
21533
done
21534
21535
  if test $ac_cv_func_strchrnul = no; then
21536
    HAVE_STRCHRNUL=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21537
  else
21538
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21539
$as_echo_n "checking whether strchrnul works... " >&6; }
21540
if ${gl_cv_func_strchrnul_works+:} false; then :
21541
  $as_echo_n "(cached) " >&6
21542
else
21543
  if test "$cross_compiling" = yes; then :
21544
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545
/* end confdefs.h.  */
21546
21547
#if defined __CYGWIN__
21548
 #include <cygwin/version.h>
21549
 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21550
  Lucky user
21551
 #endif
21552
#else
21553
  Lucky user
21554
#endif
21555
21556
_ACEOF
21557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21558
  $EGREP "Lucky user" >/dev/null 2>&1; then :
21559
  gl_cv_func_strchrnul_works="guessing yes"
21560
else
21561
  gl_cv_func_strchrnul_works="guessing no"
21562
fi
21563
rm -f conftest*
21564
21565
21566
else
21567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568
/* end confdefs.h.  */
21569
21570
#include <string.h> /* for strchrnul */
21571
21572
int
21573
main (void)
21574
{
21575
const char *buf = "a";
21576
      return strchrnul (buf, 'b') != buf + 1;
21577
21578
  ;
21579
  return 0;
21580
}
21581
_ACEOF
21582
if ac_fn_c_try_run "$LINENO"; then :
21583
  gl_cv_func_strchrnul_works=yes
21584
else
21585
  gl_cv_func_strchrnul_works=no
21586
fi
21587
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21588
  conftest.$ac_objext conftest.beam conftest.$ac_ext
21589
fi
21590
21591
21592
fi
21593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21594
$as_echo "$gl_cv_func_strchrnul_works" >&6; }
21595
    case "$gl_cv_func_strchrnul_works" in
21596
      *yes) ;;
21597
      *) REPLACE_STRCHRNUL=1 ;;
21598
    esac
21599
  fi
21600
21601
  if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
21602
21603
21604
21605
21606
21607
21608
21609
21610
  gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
21611
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21612
    :
21613
  fi
21614
21615
21616
21617
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21618
21619
          GNULIB_STRCHRNUL=1
21620
21621
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21622
21623
21624
21625
$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21626
21627
21628
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21629
21630
21631
21632
21633
21634
  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21635
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21636
$as_echo_n "checking for working strerror function... " >&6; }
21637
if ${gl_cv_func_working_strerror+:} false; then :
21638
  $as_echo_n "(cached) " >&6
21639
else
21640
  if test "$cross_compiling" = yes; then :
21641
  case "$host_os" in
21642
                   # Guess yes on glibc systems.
21643
           *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
21644
                   # If we don't know, assume the worst.
21645
           *)      gl_cv_func_working_strerror="guessing no" ;;
21646
         esac
21647
21648
else
21649
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650
/* end confdefs.h.  */
21651
#include <string.h>
21652
21653
int
21654
main (void)
21655
{
21656
if (!*strerror (-2)) return 1;
21657
  ;
21658
  return 0;
21659
}
21660
_ACEOF
21661
if ac_fn_c_try_run "$LINENO"; then :
21662
  gl_cv_func_working_strerror=yes
21663
else
21664
  gl_cv_func_working_strerror=no
21665
fi
21666
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21667
  conftest.$ac_objext conftest.beam conftest.$ac_ext
21668
fi
21669
21670
21671
fi
21672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21673
$as_echo "$gl_cv_func_working_strerror" >&6; }
21674
    case "$gl_cv_func_working_strerror" in
21675
      *yes) ;;
21676
      *)
21677
                        REPLACE_STRERROR=1
21678
        ;;
21679
    esac
21680
21681
  else
21682
            REPLACE_STRERROR=1
21683
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21684
21685
  if test $REPLACE_STRERROR = 1; then
21686
21687
21688
21689
21690
21691
21692
21693
21694
  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
21695
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21696
  fi
21697
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21698
21699
cat >>confdefs.h <<_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21700
#define GNULIB_STRERROR 1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21701
_ACEOF
21702
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21703
21704
21705
21706
21707
21708
21709
          GNULIB_STRERROR=1
21710
21711
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21712
21713
21714
21715
$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21716
21717
21718
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21719
21720
21721
  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
21722
21723
21724
21725
21726
21727
21728
21729
21730
  gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
21731
21732
21733
21734
21735
21736
  if test $ac_cv_header_sys_socket_h != yes; then
21737
                    for ac_header in winsock2.h
21738
do :
21739
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21740
if test "x$ac_cv_header_winsock2_h" = xyes; then :
21741
  cat >>confdefs.h <<_ACEOF
21742
#define HAVE_WINSOCK2_H 1
21743
_ACEOF
21744
21745
fi
21746
21747
done
21748
21749
  fi
21750
  if test "$ac_cv_header_winsock2_h" = yes; then
21751
    HAVE_WINSOCK2_H=1
21752
    UNISTD_H_HAVE_WINSOCK2_H=1
21753
    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21754
  else
21755
    HAVE_WINSOCK2_H=0
21756
  fi
21757
21758
21759
  fi
21760
21761
21762
21763
21764
21765
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21766
21767
21768
21769
21770
21771
21772
  if test $ac_cv_have_decl_strndup = no; then
21773
    HAVE_DECL_STRNDUP=0
21774
  fi
21775
21776
  if test $ac_cv_func_strndup = yes; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21777
    HAVE_STRNDUP=1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21778
    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21779
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21780
$as_echo_n "checking for working strndup... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21781
if ${gl_cv_func_strndup_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21782
  $as_echo_n "(cached) " >&6
21783
else
21784
  if test "$cross_compiling" = yes; then :
21785
21786
          case $host_os in
21787
            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
21788
            *)               gl_cv_func_strndup_works="guessing yes";;
21789
          esac
21790
21791
else
21792
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793
/* end confdefs.h.  */
21794
21795
         #include <string.h>
21796
                           #include <stdlib.h>
21797
int
21798
main (void)
21799
{
21800
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21801
#if !HAVE_DECL_STRNDUP
21802
  extern
21803
  #ifdef __cplusplus
21804
  "C"
21805
  #endif
21806
  char *strndup (const char *, size_t);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21807
#endif
21808
  char *s;
21809
  s = strndup ("some longer string", 15);
21810
  free (s);
21811
  s = strndup ("shorter string", 13);
21812
  return s[13] != '\0';
21813
  ;
21814
  return 0;
21815
}
21816
_ACEOF
21817
if ac_fn_c_try_run "$LINENO"; then :
21818
  gl_cv_func_strndup_works=yes
21819
else
21820
  gl_cv_func_strndup_works=no
21821
fi
21822
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21823
  conftest.$ac_objext conftest.beam conftest.$ac_ext
21824
fi
21825
21826
fi
21827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21828
$as_echo "$gl_cv_func_strndup_works" >&6; }
21829
    case $gl_cv_func_strndup_works in
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21830
      *no) REPLACE_STRNDUP=1 ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21831
    esac
21832
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21833
    HAVE_STRNDUP=0
21834
  fi
21835
21836
  if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21837
21838
21839
21840
21841
21842
21843
21844
21845
  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
21846
21847
  fi
21848
21849
21850
21851
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21852
21853
          GNULIB_STRNDUP=1
21854
21855
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21856
21857
21858
21859
$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
  if test $ac_cv_have_decl_strnlen = no; then
21870
    HAVE_DECL_STRNLEN=0
21871
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21872
21873
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21874
$as_echo_n "checking for working strnlen... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21875
if ${ac_cv_func_strnlen_working+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21876
  $as_echo_n "(cached) " >&6
21877
else
21878
  if test "$cross_compiling" = yes; then :
1.15.15 by Colin Watson
Import upstream version 1.99
21879
  # Guess no on AIX systems, yes otherwise.
21880
		case "$host_os" in
21881
		  aix*) ac_cv_func_strnlen_working=no;;
21882
		  *)    ac_cv_func_strnlen_working=yes;;
21883
		esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21884
else
21885
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886
/* end confdefs.h.  */
21887
$ac_includes_default
21888
int
21889
main (void)
21890
{
21891
21892
#define S "foobar"
21893
#define S_LEN (sizeof S - 1)
21894
21895
  /* At least one implementation is buggy: that of AIX 4.3 would
21896
     give strnlen (S, 1) == 3.  */
21897
21898
  int i;
21899
  for (i = 0; i < S_LEN + 1; ++i)
21900
    {
21901
      int expected = i <= S_LEN ? i : S_LEN;
21902
      if (strnlen (S, i) != expected)
21903
	return 1;
21904
    }
21905
  return 0;
21906
21907
  ;
21908
  return 0;
21909
}
21910
_ACEOF
21911
if ac_fn_c_try_run "$LINENO"; then :
21912
  ac_cv_func_strnlen_working=yes
21913
else
21914
  ac_cv_func_strnlen_working=no
21915
fi
21916
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21917
  conftest.$ac_objext conftest.beam conftest.$ac_ext
21918
fi
21919
21920
fi
21921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21922
$as_echo "$ac_cv_func_strnlen_working" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21923
test $ac_cv_func_strnlen_working = no && :
21924
21925
21926
    if test $ac_cv_func_strnlen_working = no; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21927
      REPLACE_STRNLEN=1
21928
    fi
21929
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21930
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21931
  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
21932
21933
21934
21935
21936
21937
21938
21939
21940
  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
21941
21942
    :
21943
  fi
21944
21945
21946
21947
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21948
21949
          GNULIB_STRNLEN=1
21950
21951
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21952
21953
21954
21955
$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
21956
21957
21958
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21959
21960
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21961
21962
21963
  if test $ac_cv_header_sysexits_h = yes; then
21964
    HAVE_SYSEXITS_H=1
21965
21966
21967
21968
21969
21970
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21971
21972
21973
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21974
     if test $gl_cv_have_include_next = yes; then
21975
       gl_cv_next_sysexits_h='<'sysexits.h'>'
21976
     else
21977
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
21978
$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
21979
if ${gl_cv_next_sysexits_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21980
  $as_echo_n "(cached) " >&6
21981
else
21982
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21983
             if test $ac_cv_header_sysexits_h = yes; then
21984
21985
21986
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
21987
/* end confdefs.h.  */
21988
#include <sysexits.h>
21989
21990
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
21991
                                                                                                                        case "$host_os" in
21992
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21993
                 *)    gl_absname_cpp="$ac_cpp" ;;
21994
               esac
21995
21996
               case "$host_os" in
21997
                 mingw*)
21998
                                                                                                                                     gl_dirsep_regex='[/\\]'
21999
                   ;;
22000
                 *)
22001
                   gl_dirsep_regex='\/'
22002
                   ;;
22003
               esac
22004
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22005
22006
               gl_header_literal_regex=`echo 'sysexits.h' \
22007
                                        | sed -e "$gl_make_literal_regex_sed"`
22008
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22009
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22010
                   s|^/[^/]|//&|
22011
                   p
22012
                   q
22013
                 }'
22014
                                                            gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22015
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22016
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22017
               gl_cv_next_sysexits_h='<'sysexits.h'>'
22018
             fi
22019
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22020
22021
fi
22022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
22023
$as_echo "$gl_cv_next_sysexits_h" >&6; }
22024
     fi
22025
     NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
22026
22027
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22028
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22029
       gl_next_as_first_directive='<'sysexits.h'>'
22030
     else
22031
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22032
       gl_next_as_first_directive=$gl_cv_next_sysexits_h
22033
     fi
22034
     NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
22035
22036
22037
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22038
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22039
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040
/* end confdefs.h.  */
22041
#include <sysexits.h>
22042
int
22043
main (void)
22044
{
22045
switch (0)
22046
          {
22047
          case EX_OK:
22048
          case EX_USAGE:
22049
          case EX_DATAERR:
22050
          case EX_NOINPUT:
22051
          case EX_NOUSER:
22052
          case EX_NOHOST:
22053
          case EX_UNAVAILABLE:
22054
          case EX_SOFTWARE:
22055
          case EX_OSERR:
22056
          case EX_OSFILE:
22057
          case EX_CANTCREAT:
22058
          case EX_IOERR:
22059
          case EX_TEMPFAIL:
22060
          case EX_PROTOCOL:
22061
          case EX_NOPERM:
22062
          case EX_CONFIG:
22063
            break;
22064
          }
22065
22066
  ;
22067
  return 0;
22068
}
22069
_ACEOF
22070
if ac_fn_c_try_compile "$LINENO"; then :
22071
  SYSEXITS_H=
22072
else
22073
  SYSEXITS_H=sysexits.h
22074
fi
22075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076
  else
22077
    HAVE_SYSEXITS_H=0
22078
    SYSEXITS_H=sysexits.h
22079
  fi
22080
22081
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22082
   if test -n "$SYSEXITS_H"; then
22083
  GL_GENERATE_SYSEXITS_H_TRUE=
22084
  GL_GENERATE_SYSEXITS_H_FALSE='#'
22085
else
22086
  GL_GENERATE_SYSEXITS_H_TRUE='#'
22087
  GL_GENERATE_SYSEXITS_H_FALSE=
22088
fi
22089
22090
22091
22092
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
     if test $gl_cv_have_include_next = yes; then
22104
       gl_cv_next_unistd_h='<'unistd.h'>'
22105
     else
22106
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22107
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22108
if ${gl_cv_next_unistd_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22109
  $as_echo_n "(cached) " >&6
22110
else
22111
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22112
             if test $ac_cv_header_unistd_h = yes; then
22113
22114
22115
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22116
/* end confdefs.h.  */
22117
#include <unistd.h>
22118
22119
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22120
                                                                                                                        case "$host_os" in
22121
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22122
                 *)    gl_absname_cpp="$ac_cpp" ;;
22123
               esac
22124
22125
               case "$host_os" in
22126
                 mingw*)
22127
                                                                                                                                     gl_dirsep_regex='[/\\]'
22128
                   ;;
22129
                 *)
22130
                   gl_dirsep_regex='\/'
22131
                   ;;
22132
               esac
22133
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22134
22135
               gl_header_literal_regex=`echo 'unistd.h' \
22136
                                        | sed -e "$gl_make_literal_regex_sed"`
22137
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22138
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22139
                   s|^/[^/]|//&|
22140
                   p
22141
                   q
22142
                 }'
22143
                                                            gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22144
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22145
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22146
               gl_cv_next_unistd_h='<'unistd.h'>'
22147
             fi
22148
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22149
22150
fi
22151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22152
$as_echo "$gl_cv_next_unistd_h" >&6; }
22153
     fi
22154
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
22155
22156
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22157
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22158
       gl_next_as_first_directive='<'unistd.h'>'
22159
     else
22160
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22161
       gl_next_as_first_directive=$gl_cv_next_unistd_h
22162
     fi
22163
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22164
22165
22166
22167
22168
  if test $ac_cv_header_unistd_h = yes; then
22169
    HAVE_UNISTD_H=1
22170
  else
22171
    HAVE_UNISTD_H=0
22172
  fi
22173
22174
22175
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22176
22177
22178
22179
22180
    for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22181
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22182
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22183
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22184
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22185
  $as_echo_n "(cached) " >&6
22186
else
22187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188
/* end confdefs.h.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22189
22190
#if HAVE_UNISTD_H
22191
# include <unistd.h>
22192
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22193
/* Some systems declare various items in the wrong headers.  */
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22194
#if !(defined __GLIBC__ && !defined __UCLIBC__)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22195
# include <fcntl.h>
22196
# include <stdio.h>
22197
# include <stdlib.h>
22198
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22199
#  include <io.h>
22200
# endif
22201
#endif
22202
22203
int
22204
main (void)
22205
{
22206
#undef $gl_func
22207
  (void) $gl_func;
22208
  ;
22209
  return 0;
22210
}
22211
_ACEOF
22212
if ac_fn_c_try_compile "$LINENO"; then :
22213
  eval "$as_gl_Symbol=yes"
22214
else
22215
  eval "$as_gl_Symbol=no"
22216
fi
22217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218
fi
22219
eval ac_res=\$$as_gl_Symbol
22220
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22221
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22222
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22223
  cat >>confdefs.h <<_ACEOF
22224
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22225
_ACEOF
22226
22227
                     eval ac_cv_have_decl_$gl_func=yes
22228
fi
22229
      done
22230
22231
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22232
22233
22234
      if  { test "$HAVE_LIBUNISTRING" != yes \
22235
    || {
22236
22237
22238
22239
            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22240
            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22241
                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22242
                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22243
                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22244
                         }
22245
                    }
22246
               }
22247
22248
22249
22250
22251
       }
22252
  }; then
22253
    LIBUNISTRING_UNITYPES_H='unitypes.h'
22254
  else
22255
    LIBUNISTRING_UNITYPES_H=
22256
  fi
22257
22258
22259
22260
22261
      if  { test "$HAVE_LIBUNISTRING" != yes \
22262
    || {
22263
22264
22265
22266
            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22267
            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22268
                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22269
                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22270
                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22271
                         }
22272
                    }
22273
               }
22274
22275
22276
22277
22278
       }
22279
  }; then
22280
    LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
22281
  else
22282
    LIBUNISTRING_UNIWIDTH_H=
22283
  fi
22284
22285
22286
22287
22288
       if  { test "$HAVE_LIBUNISTRING" != yes \
22289
    || {
22290
22291
22292
22293
            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22294
            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22295
                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22296
                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22297
                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
22298
                         }
22299
                    }
22300
               }
22301
22302
22303
22304
22305
       }
22306
  }; then
22307
  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
22308
  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
22309
else
22310
  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
22311
  LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
22312
fi
22313
22314
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22315
22316
22317
  if test $ac_cv_func_vasnprintf = no; then
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
22359
22360
  if test $ac_cv_func_vasnprintf = yes; then
22361
22362
$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
22363
22364
  fi
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22375
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22376
  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
22377
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22378
22379
else
22380
22381
$as_echo "#define ptrdiff_t long" >>confdefs.h
22382
22383
22384
fi
22385
22386
22387
22388
22389
22390
22391
22392
  fi
22393
22394
22395
22396
  gl_cv_func_vsnprintf_usable=no
22397
  for ac_func in vsnprintf
22398
do :
22399
  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
1.15.15 by Colin Watson
Import upstream version 1.99
22400
if test "x$ac_cv_func_vsnprintf" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22401
  cat >>confdefs.h <<_ACEOF
22402
#define HAVE_VSNPRINTF 1
22403
_ACEOF
22404
22405
fi
22406
done
22407
22408
  if test $ac_cv_func_vsnprintf = yes; then
22409
22410
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22411
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22412
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22413
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22414
if ${gl_cv_func_snprintf_size1+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22415
  $as_echo_n "(cached) " >&6
22416
else
22417
22418
      if test "$cross_compiling" = yes; then :
22419
  gl_cv_func_snprintf_size1="guessing yes"
22420
else
22421
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422
/* end confdefs.h.  */
22423
22424
#include <stdio.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22425
#if HAVE_SNPRINTF
22426
# define my_snprintf snprintf
22427
#else
22428
# include <stdarg.h>
22429
static int my_snprintf (char *buf, int size, const char *format, ...)
22430
{
22431
  va_list args;
22432
  int ret;
22433
  va_start (args, format);
22434
  ret = vsnprintf (buf, size, format, args);
22435
  va_end (args);
22436
  return ret;
22437
}
22438
#endif
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22439
int main()
22440
{
22441
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22442
  my_snprintf (buf, 1, "%d", 12345);
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22443
  return buf[1] != 'E';
22444
}
22445
_ACEOF
22446
if ac_fn_c_try_run "$LINENO"; then :
22447
  gl_cv_func_snprintf_size1=yes
22448
else
22449
  gl_cv_func_snprintf_size1=no
22450
fi
22451
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22452
  conftest.$ac_objext conftest.beam conftest.$ac_ext
22453
fi
22454
22455
22456
fi
22457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22458
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
22459
22460
    case "$gl_cv_func_snprintf_size1" in
22461
      *yes)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22462
22463
        case "$gl_cv_func_snprintf_retval_c99" in
22464
          *yes)
22465
22466
22467
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22468
$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22469
if ${gl_cv_func_printf_positions+:} false; then :
22470
  $as_echo_n "(cached) " >&6
22471
else
22472
22473
      if test "$cross_compiling" = yes; then :
22474
22475
         case "$host_os" in
22476
           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22477
                         gl_cv_func_printf_positions="guessing no";;
22478
           beos*)        gl_cv_func_printf_positions="guessing no";;
22479
           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22480
           *)            gl_cv_func_printf_positions="guessing yes";;
22481
         esac
22482
22483
else
22484
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485
/* end confdefs.h.  */
22486
22487
#include <stdio.h>
22488
#include <string.h>
22489
/* The string "%2$d %1$d", with dollar characters protected from the shell's
22490
   dollar expansion (possibly an autoconf bug).  */
22491
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22492
static char buf[100];
22493
int main ()
22494
{
22495
  sprintf (buf, format, 33, 55);
22496
  return (strcmp (buf, "55 33") != 0);
22497
}
22498
_ACEOF
22499
if ac_fn_c_try_run "$LINENO"; then :
22500
  gl_cv_func_printf_positions=yes
22501
else
22502
  gl_cv_func_printf_positions=no
22503
fi
22504
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22505
  conftest.$ac_objext conftest.beam conftest.$ac_ext
22506
fi
22507
22508
22509
fi
22510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22511
$as_echo "$gl_cv_func_printf_positions" >&6; }
22512
22513
            case "$gl_cv_func_printf_positions" in
22514
              *yes)
22515
                gl_cv_func_vsnprintf_usable=yes
22516
                ;;
22517
            esac
22518
            ;;
22519
        esac
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22520
        ;;
22521
    esac
22522
  fi
22523
  if test $gl_cv_func_vsnprintf_usable = no; then
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
22535
22536
  if test $ac_cv_func_vsnprintf = yes; then
22537
    REPLACE_VSNPRINTF=1
22538
  fi
22539
  :
22540
22541
  fi
22542
22543
  if test $ac_cv_have_decl_vsnprintf = no; then
22544
    HAVE_DECL_VSNPRINTF=0
22545
  fi
22546
22547
22548
22549
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22550
22551
22552
          GNULIB_VSNPRINTF=1
22553
22554
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22555
22556
22557
22558
$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22559
22560
22561
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22562
22563
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
     if test $gl_cv_have_include_next = yes; then
22575
       gl_cv_next_wchar_h='<'wchar.h'>'
22576
     else
22577
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22578
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22579
if ${gl_cv_next_wchar_h+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22580
  $as_echo_n "(cached) " >&6
22581
else
22582
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22583
             if test $ac_cv_header_wchar_h = yes; then
22584
22585
22586
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22587
/* end confdefs.h.  */
22588
#include <wchar.h>
22589
22590
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22591
                                                                                                                        case "$host_os" in
22592
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22593
                 *)    gl_absname_cpp="$ac_cpp" ;;
22594
               esac
22595
22596
               case "$host_os" in
22597
                 mingw*)
22598
                                                                                                                                     gl_dirsep_regex='[/\\]'
22599
                   ;;
22600
                 *)
22601
                   gl_dirsep_regex='\/'
22602
                   ;;
22603
               esac
22604
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22605
22606
               gl_header_literal_regex=`echo 'wchar.h' \
22607
                                        | sed -e "$gl_make_literal_regex_sed"`
22608
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22609
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22610
                   s|^/[^/]|//&|
22611
                   p
22612
                   q
22613
                 }'
22614
                                                            gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22615
                      sed -n "$gl_absolute_header_sed"`'"'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22616
          else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22617
               gl_cv_next_wchar_h='<'wchar.h'>'
22618
             fi
22619
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22620
22621
fi
22622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22623
$as_echo "$gl_cv_next_wchar_h" >&6; }
22624
     fi
22625
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
22626
22627
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22628
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22629
       gl_next_as_first_directive='<'wchar.h'>'
22630
     else
22631
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22632
       gl_next_as_first_directive=$gl_cv_next_wchar_h
22633
     fi
22634
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
22635
22636
22637
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22638
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22639
  if test $ac_cv_header_wchar_h = yes; then
22640
    HAVE_WCHAR_H=1
22641
  else
22642
    HAVE_WCHAR_H=0
22643
  fi
22644
22645
22646
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22647
22648
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22649
  if test $gt_cv_c_wint_t = yes; then
22650
    HAVE_WINT_T=1
22651
  else
22652
    HAVE_WINT_T=0
22653
  fi
22654
22655
22656
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22657
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22658
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22659
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22660
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22661
if eval \${$as_gl_Symbol+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22662
  $as_echo_n "(cached) " >&6
22663
else
22664
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22665
/* end confdefs.h.  */
22666
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22667
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22668
   <wchar.h>.
22669
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22670
   included before <wchar.h>.  */
22671
#if !(defined __GLIBC__ && !defined __UCLIBC__)
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22672
# include <stddef.h>
22673
# include <stdio.h>
22674
# include <time.h>
22675
#endif
22676
#include <wchar.h>
22677
22678
int
22679
main (void)
22680
{
22681
#undef $gl_func
22682
  (void) $gl_func;
22683
  ;
22684
  return 0;
22685
}
22686
_ACEOF
22687
if ac_fn_c_try_compile "$LINENO"; then :
22688
  eval "$as_gl_Symbol=yes"
22689
else
22690
  eval "$as_gl_Symbol=no"
22691
fi
22692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693
fi
22694
eval ac_res=\$$as_gl_Symbol
22695
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22696
$as_echo "$ac_res" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22697
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22698
  cat >>confdefs.h <<_ACEOF
22699
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22700
_ACEOF
22701
22702
                     eval ac_cv_have_decl_$gl_func=yes
22703
fi
22704
      done
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22718
22719
22720
22721
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22722
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22723
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22724
  $as_echo_n "(cached) " >&6
22725
else
22726
22727
                  case "$host_os" in
22728
                     # Guess no on AIX and OSF/1.
22729
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
22730
                     # Guess yes otherwise.
22731
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
22732
      esac
22733
      if test $LOCALE_JA != none; then
22734
        if test "$cross_compiling" = yes; then :
22735
  :
22736
else
22737
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22738
/* end confdefs.h.  */
22739
22740
#include <locale.h>
22741
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22742
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22743
   <wchar.h>.
22744
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22745
   included before <wchar.h>.  */
22746
#include <stddef.h>
22747
#include <stdio.h>
22748
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22749
#include <wchar.h>
22750
int main ()
22751
{
22752
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22753
    {
22754
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22755
      mbstate_t state;
22756
      wchar_t wc;
22757
22758
      memset (&state, '\0', sizeof (mbstate_t));
22759
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22760
        if (mbsinit (&state))
22761
          return 1;
22762
    }
22763
  return 0;
22764
}
22765
_ACEOF
22766
if ac_fn_c_try_run "$LINENO"; then :
22767
  gl_cv_func_mbrtowc_incomplete_state=yes
22768
else
22769
  gl_cv_func_mbrtowc_incomplete_state=no
22770
fi
22771
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22772
  conftest.$ac_objext conftest.beam conftest.$ac_ext
22773
fi
22774
22775
      fi
22776
22777
fi
22778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22779
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22780
22781
22782
22783
22784
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22785
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22786
if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22787
  $as_echo_n "(cached) " >&6
22788
else
22789
22790
                  case "$host_os" in
22791
                    # Guess no on Solaris 8.
22792
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
22793
                    # Guess yes otherwise.
22794
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
22795
      esac
22796
      if test $LOCALE_ZH_CN != none; then
22797
        if test "$cross_compiling" = yes; then :
22798
  :
22799
else
22800
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801
/* end confdefs.h.  */
22802
22803
#include <locale.h>
22804
#include <stdlib.h>
22805
#include <string.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22806
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22807
   <wchar.h>.
22808
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22809
   included before <wchar.h>.  */
22810
#include <stddef.h>
22811
#include <stdio.h>
22812
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22813
#include <wchar.h>
22814
int main ()
22815
{
22816
  /* This fails on Solaris 8:
22817
     mbrtowc returns 2, and sets wc to 0x00F0.
22818
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
22819
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22820
    {
22821
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22822
      mbstate_t state;
22823
      wchar_t wc;
22824
22825
      memset (&state, '\0', sizeof (mbstate_t));
22826
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
22827
          && mbtowc (&wc, input + 3, 6) == 4)
22828
        return 1;
22829
    }
22830
  return 0;
22831
}
22832
_ACEOF
22833
if ac_fn_c_try_run "$LINENO"; then :
22834
  gl_cv_func_mbrtowc_sanitycheck=yes
22835
else
22836
  gl_cv_func_mbrtowc_sanitycheck=no
22837
fi
22838
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22839
  conftest.$ac_objext conftest.beam conftest.$ac_ext
22840
fi
22841
22842
      fi
22843
22844
fi
22845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22846
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22847
22848
    REPLACE_MBSTATE_T=0
22849
    case "$gl_cv_func_mbrtowc_incomplete_state" in
22850
      *yes) ;;
22851
      *) REPLACE_MBSTATE_T=1 ;;
22852
    esac
22853
    case "$gl_cv_func_mbrtowc_sanitycheck" in
22854
      *yes) ;;
22855
      *) REPLACE_MBSTATE_T=1 ;;
22856
    esac
22857
  else
22858
    REPLACE_MBSTATE_T=1
22859
  fi
22860
22861
22862
22863
  if test $ac_cv_func_wcrtomb = no; then
22864
    HAVE_WCRTOMB=0
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22865
    ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
22866
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22867
   <wchar.h>.
22868
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22869
   included before <wchar.h>.  */
22870
#include <stddef.h>
22871
#include <stdio.h>
22872
#include <time.h>
22873
#include <wchar.h>
22874
22875
"
22876
if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
22877
  ac_have_decl=1
22878
else
22879
  ac_have_decl=0
22880
fi
22881
22882
cat >>confdefs.h <<_ACEOF
22883
#define HAVE_DECL_WCRTOMB $ac_have_decl
22884
_ACEOF
22885
22886
    if test $ac_cv_have_decl_wcrtomb = yes; then
22887
                        REPLACE_WCRTOMB=1
22888
    fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22889
  else
22890
    if test $REPLACE_MBSTATE_T = 1; then
22891
      REPLACE_WCRTOMB=1
22892
    else
22893
22894
22895
22896
22897
22898
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
22899
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
22900
if ${gl_cv_func_wcrtomb_retval+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22901
  $as_echo_n "(cached) " >&6
22902
else
22903
22904
                              case "$host_os" in
22905
                                     # Guess no on AIX 4, OSF/1 and Solaris.
22906
            aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
22907
                                     # Guess yes otherwise.
22908
            *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
22909
          esac
22910
          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
22911
            if test "$cross_compiling" = yes; then :
22912
  :
22913
else
22914
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22915
/* end confdefs.h.  */
22916
22917
#include <locale.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22918
#include <string.h>
22919
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22920
   <wchar.h>.
22921
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22922
   included before <wchar.h>.  */
22923
#include <stddef.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22924
#include <stdio.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22925
#include <time.h>
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22926
#include <wchar.h>
22927
int main ()
22928
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22929
  int result = 0;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22930
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22931
    {
22932
      if (wcrtomb (NULL, 0, NULL) != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22933
        result |= 1;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22934
    }
22935
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22936
    {
22937
      if (wcrtomb (NULL, 0, NULL) != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22938
        result |= 2;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22939
    }
22940
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22941
    {
22942
      if (wcrtomb (NULL, 0, NULL) != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22943
        result |= 4;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22944
    }
22945
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22946
    {
22947
      if (wcrtomb (NULL, 0, NULL) != 1)
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22948
        result |= 8;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22949
    }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22950
  return result;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22951
}
22952
_ACEOF
22953
if ac_fn_c_try_run "$LINENO"; then :
22954
  gl_cv_func_wcrtomb_retval=yes
22955
else
22956
  gl_cv_func_wcrtomb_retval=no
22957
fi
22958
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959
  conftest.$ac_objext conftest.beam conftest.$ac_ext
22960
fi
22961
22962
          fi
22963
22964
fi
22965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
22966
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
22967
      case "$gl_cv_func_wcrtomb_retval" in
22968
        *yes) ;;
22969
        *) REPLACE_WCRTOMB=1 ;;
22970
      esac
22971
    fi
22972
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22973
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22974
  if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
22975
22976
22977
22978
22979
22980
22981
22982
22983
  gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
22984
22985
22986
  :
22987
22988
  fi
22989
22990
22991
22992
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
22993
22994
          GNULIB_WCRTOMB=1
22995
22996
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
22997
22998
22999
23000
$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
23001
23002
23003
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23004
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23005
23006
23007
23008
23009
  if test $ac_cv_func_iswcntrl = yes; then
23010
    HAVE_ISWCNTRL=1
23011
  else
23012
    HAVE_ISWCNTRL=0
23013
  fi
23014
23015
23016
23017
  if test $gt_cv_c_wint_t = yes; then
23018
    HAVE_WINT_T=1
23019
  else
23020
    HAVE_WINT_T=0
23021
  fi
23022
23023
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
     if test $gl_cv_have_include_next = yes; then
23034
       gl_cv_next_wctype_h='<'wctype.h'>'
23035
     else
23036
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23037
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23038
if ${gl_cv_next_wctype_h+:} false; then :
23039
  $as_echo_n "(cached) " >&6
23040
else
23041
23042
             if test $ac_cv_header_wctype_h = yes; then
23043
23044
23045
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046
/* end confdefs.h.  */
23047
#include <wctype.h>
23048
23049
_ACEOF
23050
                                                                                                                        case "$host_os" in
23051
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23052
                 *)    gl_absname_cpp="$ac_cpp" ;;
23053
               esac
23054
23055
               case "$host_os" in
23056
                 mingw*)
23057
                                                                                                                                     gl_dirsep_regex='[/\\]'
23058
                   ;;
23059
                 *)
23060
                   gl_dirsep_regex='\/'
23061
                   ;;
23062
               esac
23063
                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23064
23065
               gl_header_literal_regex=`echo 'wctype.h' \
23066
                                        | sed -e "$gl_make_literal_regex_sed"`
23067
               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23068
                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23069
                   s|^/[^/]|//&|
23070
                   p
23071
                   q
23072
                 }'
23073
                                                            gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23074
                      sed -n "$gl_absolute_header_sed"`'"'
23075
          else
23076
               gl_cv_next_wctype_h='<'wctype.h'>'
23077
             fi
23078
23079
23080
fi
23081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23082
$as_echo "$gl_cv_next_wctype_h" >&6; }
23083
     fi
23084
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
23085
23086
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23087
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23088
       gl_next_as_first_directive='<'wctype.h'>'
23089
     else
23090
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23091
       gl_next_as_first_directive=$gl_cv_next_wctype_h
23092
     fi
23093
     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
23094
23095
23096
23097
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23098
  if test $ac_cv_header_wctype_h = yes; then
23099
    if test $ac_cv_func_iswcntrl = yes; then
23100
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23101
$as_echo_n "checking whether iswcntrl works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
23102
if ${gl_cv_func_iswcntrl_works+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23103
  $as_echo_n "(cached) " >&6
23104
else
23105
23106
          if test "$cross_compiling" = yes; then :
23107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23108
/* end confdefs.h.  */
23109
#include <stdlib.h>
23110
                          #if __GNU_LIBRARY__ == 1
23111
                          Linux libc5 i18n is broken.
23112
                          #endif
23113
int
23114
main (void)
23115
{
23116
23117
  ;
23118
  return 0;
23119
}
23120
_ACEOF
23121
if ac_fn_c_try_compile "$LINENO"; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23122
  gl_cv_func_iswcntrl_works="guessing yes"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23123
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23124
  gl_cv_func_iswcntrl_works="guessing no"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23125
fi
23126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127
23128
else
23129
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130
/* end confdefs.h.  */
23131
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23132
               /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23133
                  included before <wchar.h>.
23134
                  BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23135
                  must be included before <wchar.h>.  */
23136
               #include <stddef.h>
23137
               #include <stdio.h>
23138
               #include <time.h>
23139
               #include <wchar.h>
23140
               #include <wctype.h>
23141
               int main () { return iswprint ('x') == 0; }
23142
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23143
_ACEOF
23144
if ac_fn_c_try_run "$LINENO"; then :
23145
  gl_cv_func_iswcntrl_works=yes
23146
else
23147
  gl_cv_func_iswcntrl_works=no
23148
fi
23149
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23150
  conftest.$ac_objext conftest.beam conftest.$ac_ext
23151
fi
23152
23153
23154
fi
23155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23156
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23157
    fi
23158
    HAVE_WCTYPE_H=1
23159
  else
23160
    HAVE_WCTYPE_H=0
23161
  fi
23162
23163
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23164
  case "$gl_cv_func_iswcntrl_works" in
23165
    *yes) REPLACE_ISWCNTRL=0 ;;
23166
    *)    REPLACE_ISWCNTRL=1 ;;
23167
  esac
23168
23169
23170
  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
23171
        :
23172
  fi
23173
23174
  if test $REPLACE_ISWCNTRL = 1; then
23175
    REPLACE_TOWLOWER=1
23176
  else
23177
    for ac_func in towlower
23178
do :
23179
  ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
23180
if test "x$ac_cv_func_towlower" = xyes; then :
23181
  cat >>confdefs.h <<_ACEOF
23182
#define HAVE_TOWLOWER 1
23183
_ACEOF
23184
23185
fi
23186
done
23187
23188
    if test $ac_cv_func_towlower = yes; then
23189
      REPLACE_TOWLOWER=0
23190
    else
23191
      ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23192
             included before <wchar.h>.
23193
             BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23194
             must be included before <wchar.h>.  */
23195
          #include <stddef.h>
23196
          #include <stdio.h>
23197
          #include <time.h>
23198
          #include <wchar.h>
23199
          #if HAVE_WCTYPE_H
23200
          # include <wctype.h>
23201
          #endif
23202
23203
"
23204
if test "x$ac_cv_have_decl_towlower" = xyes; then :
23205
  ac_have_decl=1
23206
else
23207
  ac_have_decl=0
23208
fi
23209
23210
cat >>confdefs.h <<_ACEOF
23211
#define HAVE_DECL_TOWLOWER $ac_have_decl
23212
_ACEOF
23213
23214
      if test $ac_cv_have_decl_towlower = yes; then
23215
                                REPLACE_TOWLOWER=1
23216
      else
23217
        REPLACE_TOWLOWER=0
23218
      fi
23219
    fi
23220
  fi
23221
23222
23223
  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
23224
        :
23225
  fi
23226
23227
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23228
$as_echo_n "checking for wctype_t... " >&6; }
23229
if ${gl_cv_type_wctype_t+:} false; then :
23230
  $as_echo_n "(cached) " >&6
23231
else
23232
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233
/* end confdefs.h.  */
23234
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23235
               included before <wchar.h>.
23236
               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23237
               must be included before <wchar.h>.  */
23238
            #include <stddef.h>
23239
            #include <stdio.h>
23240
            #include <time.h>
23241
            #include <wchar.h>
23242
            #if HAVE_WCTYPE_H
23243
            # include <wctype.h>
23244
            #endif
23245
            wctype_t a;
23246
23247
int
23248
main (void)
23249
{
23250
23251
  ;
23252
  return 0;
23253
}
23254
_ACEOF
23255
if ac_fn_c_try_compile "$LINENO"; then :
23256
  gl_cv_type_wctype_t=yes
23257
else
23258
  gl_cv_type_wctype_t=no
23259
fi
23260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261
23262
fi
23263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23264
$as_echo "$gl_cv_type_wctype_t" >&6; }
23265
  if test $gl_cv_type_wctype_t = no; then
23266
    HAVE_WCTYPE_T=0
23267
  fi
23268
23269
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23270
$as_echo_n "checking for wctrans_t... " >&6; }
23271
if ${gl_cv_type_wctrans_t+:} false; then :
23272
  $as_echo_n "(cached) " >&6
23273
else
23274
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23275
/* end confdefs.h.  */
23276
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23277
               included before <wchar.h>.
23278
               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23279
               must be included before <wchar.h>.  */
23280
            #include <stddef.h>
23281
            #include <stdio.h>
23282
            #include <time.h>
23283
            #include <wchar.h>
23284
            #include <wctype.h>
23285
            wctrans_t a;
23286
23287
int
23288
main (void)
23289
{
23290
23291
  ;
23292
  return 0;
23293
}
23294
_ACEOF
23295
if ac_fn_c_try_compile "$LINENO"; then :
23296
  gl_cv_type_wctrans_t=yes
23297
else
23298
  gl_cv_type_wctrans_t=no
23299
fi
23300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301
23302
fi
23303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23304
$as_echo "$gl_cv_type_wctrans_t" >&6; }
23305
  if test $gl_cv_type_wctrans_t = no; then
23306
    HAVE_WCTRANS_T=0
23307
  fi
23308
23309
23310
    for gl_func in wctype iswctype wctrans towctrans     ; do
23311
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23312
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23313
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23314
if eval \${$as_gl_Symbol+:} false; then :
23315
  $as_echo_n "(cached) " >&6
23316
else
23317
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318
/* end confdefs.h.  */
23319
23320
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23321
   <wchar.h>.
23322
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23323
   included before <wchar.h>.  */
23324
#if !(defined __GLIBC__ && !defined __UCLIBC__)
23325
# include <stddef.h>
23326
# include <stdio.h>
23327
# include <time.h>
23328
# include <wchar.h>
23329
#endif
23330
#include <wctype.h>
23331
23332
int
23333
main (void)
23334
{
23335
#undef $gl_func
23336
  (void) $gl_func;
23337
  ;
23338
  return 0;
23339
}
23340
_ACEOF
23341
if ac_fn_c_try_compile "$LINENO"; then :
23342
  eval "$as_gl_Symbol=yes"
23343
else
23344
  eval "$as_gl_Symbol=no"
23345
fi
23346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347
fi
23348
eval ac_res=\$$as_gl_Symbol
23349
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23350
$as_echo "$ac_res" >&6; }
23351
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23352
  cat >>confdefs.h <<_ACEOF
23353
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23354
_ACEOF
23355
23356
                     eval ac_cv_have_decl_$gl_func=yes
23357
fi
23358
      done
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
  ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
23373
/* AIX 3.2.5 declares wcwidth in <string.h>. */
23374
#include <string.h>
23375
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23376
   <wchar.h>.
23377
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23378
   before <wchar.h>.  */
23379
#include <stddef.h>
23380
#include <stdio.h>
23381
#include <time.h>
23382
#include <wchar.h>
23383
23384
"
23385
if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
23386
  ac_have_decl=1
23387
else
23388
  ac_have_decl=0
23389
fi
23390
23391
cat >>confdefs.h <<_ACEOF
23392
#define HAVE_DECL_WCWIDTH $ac_have_decl
23393
_ACEOF
23394
23395
  if test $ac_cv_have_decl_wcwidth != yes; then
23396
    HAVE_DECL_WCWIDTH=0
23397
  fi
23398
23399
  if test $ac_cv_func_wcwidth = yes; then
23400
    HAVE_WCWIDTH=1
23401
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
23402
$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
23403
if ${gl_cv_func_wcwidth_works+:} false; then :
23404
  $as_echo_n "(cached) " >&6
23405
else
23406
23407
        if test "$cross_compiling" = yes; then :
23408
23409
           case "$host_os" in
23410
                     # Guess yes on glibc and AIX 7 systems.
23411
             *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
23412
             *)                  gl_cv_func_wcwidth_works="guessing no";;
23413
           esac
23414
23415
else
23416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23417
/* end confdefs.h.  */
23418
23419
#include <locale.h>
23420
/* AIX 3.2.5 declares wcwidth in <string.h>. */
23421
#include <string.h>
23422
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23423
   <wchar.h>.
23424
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23425
   before <wchar.h>.  */
23426
#include <stddef.h>
23427
#include <stdio.h>
23428
#include <time.h>
23429
#include <wchar.h>
23430
#if !HAVE_DECL_WCWIDTH
23431
extern
23432
# ifdef __cplusplus
23433
"C"
23434
# endif
23435
int wcwidth (int);
23436
#endif
23437
int main ()
23438
{
23439
  int result = 0;
23440
  if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
23441
    {
23442
      if (wcwidth (0x0301) > 0)
23443
        result |= 1;
23444
      if (wcwidth (0x05B0) > 0)
23445
        result |= 2;
23446
      if (wcwidth (0x200B) > 0)
23447
        result |= 4;
23448
    }
23449
  return result;
23450
}
23451
_ACEOF
23452
if ac_fn_c_try_run "$LINENO"; then :
23453
  gl_cv_func_wcwidth_works=yes
23454
else
23455
  gl_cv_func_wcwidth_works=no
23456
fi
23457
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23458
  conftest.$ac_objext conftest.beam conftest.$ac_ext
23459
fi
23460
23461
23462
fi
23463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
23464
$as_echo "$gl_cv_func_wcwidth_works" >&6; }
23465
    case "$gl_cv_func_wcwidth_works" in
23466
      *yes) ;;
23467
      *no) REPLACE_WCWIDTH=1 ;;
23468
    esac
23469
  else
23470
    HAVE_WCWIDTH=0
23471
  fi
23472
23473
  if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
23474
23475
23476
23477
23478
23479
23480
23481
23482
  gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
23483
23484
  fi
23485
23486
23487
23488
23489
23490
          GNULIB_WCWIDTH=1
23491
23492
23493
23494
23495
23496
$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
23497
23498
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23499
23500
23501
23502
  for ac_header in stdint.h
23503
do :
23504
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
23505
if test "x$ac_cv_header_stdint_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23506
  cat >>confdefs.h <<_ACEOF
23507
#define HAVE_STDINT_H 1
23508
_ACEOF
23509
23510
fi
23511
23512
done
23513
23514
23515
  # End of code from modules
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
  gltests_libdeps=
23526
  gltests_ltlibdeps=
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
  gl_source_base='tests'
23537
  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
23538
23539
  gl_module_indicator_condition=$gltests_WITNESS
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
  LIBGNU_LIBDEPS="$gl_libdeps"
23550
23551
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23552
23553
23554
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
23555
WARN_FLAGS="-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value  -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes"
23556
EXTRA_WARN_FLAGS="-Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23557
23558
HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
23559
23560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
23561
$as_echo_n "checking which extra warnings work... " >&6; }
23562
if ${grub_cv_cc_w_extra_flags+:} false; then :
23563
  $as_echo_n "(cached) " >&6
23564
else
23565
23566
  SAVED_CFLAGS="$CFLAGS"
23567
  grub_cv_cc_w_extra_flags=
23568
  for x in $EXTRA_WARN_FLAGS; do
23569
      CFLAGS="$HOST_CFLAGS $x -Werror"
23570
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23571
/* end confdefs.h.  */
23572
23573
int
23574
main (void)
23575
{
23576
23577
  ;
23578
  return 0;
23579
}
23580
_ACEOF
23581
if ac_fn_c_try_link "$LINENO"; then :
23582
  flag=1
23583
else
23584
  flag=0
23585
fi
23586
rm -f core conftest.err conftest.$ac_objext \
23587
    conftest$ac_exeext conftest.$ac_ext
23588
      if test x$flag = x1 ; then
23589
         grub_cv_cc_w_extra_flags="$grub_cv_cc_w_extra_flags $x"
23590
      fi
23591
  done
23592
  CFLAGS="$SAVED_CFLAGS"
23593
23594
fi
23595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
23596
$as_echo "$grub_cv_cc_w_extra_flags" >&6; }
23597
23598
HOST_CFLAGS="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
23599
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
23600
#
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23601
# Check for target programs.
23602
#
23603
23604
# Find tools for the target.
23605
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
23606
  tmp_ac_tool_prefix="$ac_tool_prefix"
23607
  ac_tool_prefix=$target_alias-
23608
23609
  if test -n "$ac_tool_prefix"; then
23610
  for ac_prog in gcc egcs cc
23611
  do
23612
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23613
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23615
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
23616
if ${ac_cv_prog_TARGET_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23617
  $as_echo_n "(cached) " >&6
23618
else
23619
  if test -n "$TARGET_CC"; then
23620
  ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
23621
else
23622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23623
for as_dir in $PATH
23624
do
23625
  IFS=$as_save_IFS
23626
  test -z "$as_dir" && as_dir=.
23627
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23628
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23629
    ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
23630
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23631
    break 2
23632
  fi
23633
done
23634
  done
23635
IFS=$as_save_IFS
23636
23637
fi
23638
fi
23639
TARGET_CC=$ac_cv_prog_TARGET_CC
23640
if test -n "$TARGET_CC"; then
23641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
23642
$as_echo "$TARGET_CC" >&6; }
23643
else
23644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645
$as_echo "no" >&6; }
23646
fi
23647
23648
23649
    test -n "$TARGET_CC" && break
23650
  done
23651
fi
23652
if test -z "$TARGET_CC"; then
23653
  ac_ct_TARGET_CC=$TARGET_CC
23654
  for ac_prog in gcc egcs cc
23655
do
23656
  # Extract the first word of "$ac_prog", so it can be a program name with args.
23657
set dummy $ac_prog; ac_word=$2
23658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23659
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
23660
if ${ac_cv_prog_ac_ct_TARGET_CC+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23661
  $as_echo_n "(cached) " >&6
23662
else
23663
  if test -n "$ac_ct_TARGET_CC"; then
23664
  ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
23665
else
23666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23667
for as_dir in $PATH
23668
do
23669
  IFS=$as_save_IFS
23670
  test -z "$as_dir" && as_dir=.
23671
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23672
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23673
    ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
23674
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23675
    break 2
23676
  fi
23677
done
23678
  done
23679
IFS=$as_save_IFS
23680
23681
fi
23682
fi
23683
ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
23684
if test -n "$ac_ct_TARGET_CC"; then
23685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
23686
$as_echo "$ac_ct_TARGET_CC" >&6; }
23687
else
23688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23689
$as_echo "no" >&6; }
23690
fi
23691
23692
23693
  test -n "$ac_ct_TARGET_CC" && break
23694
done
23695
23696
  if test "x$ac_ct_TARGET_CC" = x; then
1.15.15 by Colin Watson
Import upstream version 1.99
23697
    TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23698
  else
23699
    case $cross_compiling:$ac_tool_warned in
23700
yes:)
23701
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23702
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23703
ac_tool_warned=yes ;;
23704
esac
23705
    TARGET_CC=$ac_ct_TARGET_CC
23706
  fi
23707
fi
23708
23709
  if test -n "$ac_tool_prefix"; then
23710
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
23711
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
23712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23713
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23714
if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23715
  $as_echo_n "(cached) " >&6
23716
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23717
  if test -n "$TARGET_OBJCOPY"; then
23718
  ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23719
else
23720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23721
for as_dir in $PATH
23722
do
23723
  IFS=$as_save_IFS
23724
  test -z "$as_dir" && as_dir=.
23725
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23726
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23727
    ac_cv_prog_TARGET_OBJCOPY="${ac_tool_prefix}objcopy"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23729
    break 2
23730
  fi
23731
done
23732
  done
23733
IFS=$as_save_IFS
23734
23735
fi
23736
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23737
TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
23738
if test -n "$TARGET_OBJCOPY"; then
23739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
23740
$as_echo "$TARGET_OBJCOPY" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23741
else
23742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23743
$as_echo "no" >&6; }
23744
fi
23745
23746
23747
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23748
if test -z "$ac_cv_prog_TARGET_OBJCOPY"; then
23749
  ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23750
  # Extract the first word of "objcopy", so it can be a program name with args.
23751
set dummy objcopy; ac_word=$2
23752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23753
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23754
if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23755
  $as_echo_n "(cached) " >&6
23756
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23757
  if test -n "$ac_ct_TARGET_OBJCOPY"; then
23758
  ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23759
else
23760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23761
for as_dir in $PATH
23762
do
23763
  IFS=$as_save_IFS
23764
  test -z "$as_dir" && as_dir=.
23765
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23766
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23767
    ac_cv_prog_ac_ct_TARGET_OBJCOPY="objcopy"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23769
    break 2
23770
  fi
23771
done
23772
  done
23773
IFS=$as_save_IFS
23774
23775
fi
23776
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23777
ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
23778
if test -n "$ac_ct_TARGET_OBJCOPY"; then
23779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
23780
$as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23781
else
23782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23783
$as_echo "no" >&6; }
23784
fi
23785
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23786
  if test "x$ac_ct_TARGET_OBJCOPY" = x; then
23787
    TARGET_OBJCOPY=""
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23788
  else
23789
    case $cross_compiling:$ac_tool_warned in
23790
yes:)
23791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23793
ac_tool_warned=yes ;;
23794
esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23795
    TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23796
  fi
23797
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23798
  TARGET_OBJCOPY="$ac_cv_prog_TARGET_OBJCOPY"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23799
fi
23800
23801
  if test -n "$ac_tool_prefix"; then
23802
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23803
set dummy ${ac_tool_prefix}strip; ac_word=$2
23804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23805
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23806
if ${ac_cv_prog_TARGET_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23807
  $as_echo_n "(cached) " >&6
23808
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23809
  if test -n "$TARGET_STRIP"; then
23810
  ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23811
else
23812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23813
for as_dir in $PATH
23814
do
23815
  IFS=$as_save_IFS
23816
  test -z "$as_dir" && as_dir=.
23817
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23818
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23819
    ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23820
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23821
    break 2
23822
  fi
23823
done
23824
  done
23825
IFS=$as_save_IFS
23826
23827
fi
23828
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23829
TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
23830
if test -n "$TARGET_STRIP"; then
23831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
23832
$as_echo "$TARGET_STRIP" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23833
else
23834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23835
$as_echo "no" >&6; }
23836
fi
23837
23838
23839
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23840
if test -z "$ac_cv_prog_TARGET_STRIP"; then
23841
  ac_ct_TARGET_STRIP=$TARGET_STRIP
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23842
  # Extract the first word of "strip", so it can be a program name with args.
23843
set dummy strip; ac_word=$2
23844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23845
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23846
if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23847
  $as_echo_n "(cached) " >&6
23848
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23849
  if test -n "$ac_ct_TARGET_STRIP"; then
23850
  ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23851
else
23852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23853
for as_dir in $PATH
23854
do
23855
  IFS=$as_save_IFS
23856
  test -z "$as_dir" && as_dir=.
23857
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23858
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23859
    ac_cv_prog_ac_ct_TARGET_STRIP="strip"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23860
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23861
    break 2
23862
  fi
23863
done
23864
  done
23865
IFS=$as_save_IFS
23866
23867
fi
23868
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23869
ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
23870
if test -n "$ac_ct_TARGET_STRIP"; then
23871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
23872
$as_echo "$ac_ct_TARGET_STRIP" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23873
else
23874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23875
$as_echo "no" >&6; }
23876
fi
23877
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23878
  if test "x$ac_ct_TARGET_STRIP" = x; then
23879
    TARGET_STRIP=""
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23880
  else
23881
    case $cross_compiling:$ac_tool_warned in
23882
yes:)
23883
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23884
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23885
ac_tool_warned=yes ;;
23886
esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23887
    TARGET_STRIP=$ac_ct_TARGET_STRIP
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23888
  fi
23889
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23890
  TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23891
fi
23892
23893
  if test -n "$ac_tool_prefix"; then
23894
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
23895
set dummy ${ac_tool_prefix}nm; ac_word=$2
23896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23897
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23898
if ${ac_cv_prog_TARGET_NM+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23899
  $as_echo_n "(cached) " >&6
23900
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23901
  if test -n "$TARGET_NM"; then
23902
  ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23903
else
23904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23905
for as_dir in $PATH
23906
do
23907
  IFS=$as_save_IFS
23908
  test -z "$as_dir" && as_dir=.
23909
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
23910
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23911
    ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23913
    break 2
23914
  fi
23915
done
23916
  done
23917
IFS=$as_save_IFS
23918
23919
fi
23920
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23921
TARGET_NM=$ac_cv_prog_TARGET_NM
23922
if test -n "$TARGET_NM"; then
23923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
23924
$as_echo "$TARGET_NM" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23925
else
23926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23927
$as_echo "no" >&6; }
23928
fi
23929
23930
23931
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23932
if test -z "$ac_cv_prog_TARGET_NM"; then
23933
  ac_ct_TARGET_NM=$TARGET_NM
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
23934
  # Extract the first word of "nm", so it can be a program name with args.
23935
set dummy nm; ac_word=$2
23936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23937
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
23938
if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
23939
  $as_echo_n "(cached) " >&6
23940
else
23941
  if test -n "$ac_ct_TARGET_NM"; then
23942
  ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
23943
else
23944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23945
for as_dir in $PATH
23946
do
23947
  IFS=$as_save_IFS
23948
  test -z "$as_dir" && as_dir=.
23949
    for ac_exec_ext in '' $ac_executable_extensions; do
23950
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23951
    ac_cv_prog_ac_ct_TARGET_NM="nm"
23952
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23953
    break 2
23954
  fi
23955
done
23956
  done
23957
IFS=$as_save_IFS
23958
23959
fi
23960
fi
23961
ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
23962
if test -n "$ac_ct_TARGET_NM"; then
23963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
23964
$as_echo "$ac_ct_TARGET_NM" >&6; }
23965
else
23966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23967
$as_echo "no" >&6; }
23968
fi
23969
23970
  if test "x$ac_ct_TARGET_NM" = x; then
23971
    TARGET_NM=""
23972
  else
23973
    case $cross_compiling:$ac_tool_warned in
23974
yes:)
23975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23977
ac_tool_warned=yes ;;
23978
esac
23979
    TARGET_NM=$ac_ct_TARGET_NM
23980
  fi
23981
else
23982
  TARGET_NM="$ac_cv_prog_TARGET_NM"
23983
fi
23984
23985
  if test -n "$ac_tool_prefix"; then
23986
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23987
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
23988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23989
$as_echo_n "checking for $ac_word... " >&6; }
23990
if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
23991
  $as_echo_n "(cached) " >&6
23992
else
23993
  if test -n "$TARGET_RANLIB"; then
23994
  ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
23995
else
23996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997
for as_dir in $PATH
23998
do
23999
  IFS=$as_save_IFS
24000
  test -z "$as_dir" && as_dir=.
24001
    for ac_exec_ext in '' $ac_executable_extensions; do
24002
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24003
    ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24004
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24005
    break 2
24006
  fi
24007
done
24008
  done
24009
IFS=$as_save_IFS
24010
24011
fi
24012
fi
24013
TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24014
if test -n "$TARGET_RANLIB"; then
24015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24016
$as_echo "$TARGET_RANLIB" >&6; }
24017
else
24018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019
$as_echo "no" >&6; }
24020
fi
24021
24022
24023
fi
24024
if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24025
  ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24026
  # Extract the first word of "ranlib", so it can be a program name with args.
24027
set dummy ranlib; ac_word=$2
24028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24029
$as_echo_n "checking for $ac_word... " >&6; }
24030
if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24031
  $as_echo_n "(cached) " >&6
24032
else
24033
  if test -n "$ac_ct_TARGET_RANLIB"; then
24034
  ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24035
else
24036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24037
for as_dir in $PATH
24038
do
24039
  IFS=$as_save_IFS
24040
  test -z "$as_dir" && as_dir=.
24041
    for ac_exec_ext in '' $ac_executable_extensions; do
24042
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24043
    ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24045
    break 2
24046
  fi
24047
done
24048
  done
24049
IFS=$as_save_IFS
24050
24051
fi
24052
fi
24053
ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24054
if test -n "$ac_ct_TARGET_RANLIB"; then
24055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24056
$as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24057
else
24058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24059
$as_echo "no" >&6; }
24060
fi
24061
24062
  if test "x$ac_ct_TARGET_RANLIB" = x; then
24063
    TARGET_RANLIB=""
24064
  else
24065
    case $cross_compiling:$ac_tool_warned in
24066
yes:)
24067
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24068
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24069
ac_tool_warned=yes ;;
24070
esac
24071
    TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24072
  fi
24073
else
24074
  TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24075
fi
24076
24077
24078
  ac_tool_prefix="$tmp_ac_tool_prefix"
24079
else
24080
  if test "x$TARGET_CC" = x; then
24081
    TARGET_CC=$CC
24082
  fi
24083
  if test -n "$ac_tool_prefix"; then
24084
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
24085
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
24086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24087
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24088
if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24089
  $as_echo_n "(cached) " >&6
24090
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24091
  if test -n "$TARGET_OBJCOPY"; then
24092
  ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24093
else
24094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24095
for as_dir in $PATH
24096
do
24097
  IFS=$as_save_IFS
24098
  test -z "$as_dir" && as_dir=.
24099
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
24100
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24101
    ac_cv_prog_TARGET_OBJCOPY="${ac_tool_prefix}objcopy"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24103
    break 2
24104
  fi
24105
done
24106
  done
24107
IFS=$as_save_IFS
24108
24109
fi
24110
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24111
TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
24112
if test -n "$TARGET_OBJCOPY"; then
24113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
24114
$as_echo "$TARGET_OBJCOPY" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24115
else
24116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117
$as_echo "no" >&6; }
24118
fi
24119
24120
24121
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24122
if test -z "$ac_cv_prog_TARGET_OBJCOPY"; then
24123
  ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24124
  # Extract the first word of "objcopy", so it can be a program name with args.
24125
set dummy objcopy; ac_word=$2
24126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24127
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24128
if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24129
  $as_echo_n "(cached) " >&6
24130
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24131
  if test -n "$ac_ct_TARGET_OBJCOPY"; then
24132
  ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24133
else
24134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24135
for as_dir in $PATH
24136
do
24137
  IFS=$as_save_IFS
24138
  test -z "$as_dir" && as_dir=.
24139
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
24140
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24141
    ac_cv_prog_ac_ct_TARGET_OBJCOPY="objcopy"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24142
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24143
    break 2
24144
  fi
24145
done
24146
  done
24147
IFS=$as_save_IFS
24148
24149
fi
24150
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24151
ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
24152
if test -n "$ac_ct_TARGET_OBJCOPY"; then
24153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
24154
$as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24155
else
24156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24157
$as_echo "no" >&6; }
24158
fi
24159
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24160
  if test "x$ac_ct_TARGET_OBJCOPY" = x; then
24161
    TARGET_OBJCOPY=""
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24162
  else
24163
    case $cross_compiling:$ac_tool_warned in
24164
yes:)
24165
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24166
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24167
ac_tool_warned=yes ;;
24168
esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24169
    TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24170
  fi
24171
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24172
  TARGET_OBJCOPY="$ac_cv_prog_TARGET_OBJCOPY"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24173
fi
24174
24175
  if test -n "$ac_tool_prefix"; then
24176
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24177
set dummy ${ac_tool_prefix}strip; ac_word=$2
24178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24179
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24180
if ${ac_cv_prog_TARGET_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24181
  $as_echo_n "(cached) " >&6
24182
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24183
  if test -n "$TARGET_STRIP"; then
24184
  ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24185
else
24186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24187
for as_dir in $PATH
24188
do
24189
  IFS=$as_save_IFS
24190
  test -z "$as_dir" && as_dir=.
24191
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
24192
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24193
    ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24194
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24195
    break 2
24196
  fi
24197
done
24198
  done
24199
IFS=$as_save_IFS
24200
24201
fi
24202
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24203
TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
24204
if test -n "$TARGET_STRIP"; then
24205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
24206
$as_echo "$TARGET_STRIP" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24207
else
24208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209
$as_echo "no" >&6; }
24210
fi
24211
24212
24213
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24214
if test -z "$ac_cv_prog_TARGET_STRIP"; then
24215
  ac_ct_TARGET_STRIP=$TARGET_STRIP
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24216
  # Extract the first word of "strip", so it can be a program name with args.
24217
set dummy strip; ac_word=$2
24218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24219
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24220
if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24221
  $as_echo_n "(cached) " >&6
24222
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24223
  if test -n "$ac_ct_TARGET_STRIP"; then
24224
  ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24225
else
24226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24227
for as_dir in $PATH
24228
do
24229
  IFS=$as_save_IFS
24230
  test -z "$as_dir" && as_dir=.
24231
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
24232
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24233
    ac_cv_prog_ac_ct_TARGET_STRIP="strip"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24235
    break 2
24236
  fi
24237
done
24238
  done
24239
IFS=$as_save_IFS
24240
24241
fi
24242
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24243
ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
24244
if test -n "$ac_ct_TARGET_STRIP"; then
24245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
24246
$as_echo "$ac_ct_TARGET_STRIP" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24247
else
24248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24249
$as_echo "no" >&6; }
24250
fi
24251
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24252
  if test "x$ac_ct_TARGET_STRIP" = x; then
24253
    TARGET_STRIP=""
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24254
  else
24255
    case $cross_compiling:$ac_tool_warned in
24256
yes:)
24257
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24258
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24259
ac_tool_warned=yes ;;
24260
esac
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24261
    TARGET_STRIP=$ac_ct_TARGET_STRIP
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24262
  fi
24263
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24264
  TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24265
fi
24266
24267
  if test -n "$ac_tool_prefix"; then
24268
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
24269
set dummy ${ac_tool_prefix}nm; ac_word=$2
24270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24271
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24272
if ${ac_cv_prog_TARGET_NM+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24273
  $as_echo_n "(cached) " >&6
24274
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24275
  if test -n "$TARGET_NM"; then
24276
  ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24277
else
24278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279
for as_dir in $PATH
24280
do
24281
  IFS=$as_save_IFS
24282
  test -z "$as_dir" && as_dir=.
24283
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
24284
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24285
    ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24286
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24287
    break 2
24288
  fi
24289
done
24290
  done
24291
IFS=$as_save_IFS
24292
24293
fi
24294
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24295
TARGET_NM=$ac_cv_prog_TARGET_NM
24296
if test -n "$TARGET_NM"; then
24297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
24298
$as_echo "$TARGET_NM" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24299
else
24300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24301
$as_echo "no" >&6; }
24302
fi
24303
24304
24305
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24306
if test -z "$ac_cv_prog_TARGET_NM"; then
24307
  ac_ct_TARGET_NM=$TARGET_NM
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24308
  # Extract the first word of "nm", so it can be a program name with args.
24309
set dummy nm; ac_word=$2
24310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24311
$as_echo_n "checking for $ac_word... " >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24312
if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
24313
  $as_echo_n "(cached) " >&6
24314
else
24315
  if test -n "$ac_ct_TARGET_NM"; then
24316
  ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
24317
else
24318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24319
for as_dir in $PATH
24320
do
24321
  IFS=$as_save_IFS
24322
  test -z "$as_dir" && as_dir=.
24323
    for ac_exec_ext in '' $ac_executable_extensions; do
24324
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24325
    ac_cv_prog_ac_ct_TARGET_NM="nm"
24326
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24327
    break 2
24328
  fi
24329
done
24330
  done
24331
IFS=$as_save_IFS
24332
24333
fi
24334
fi
24335
ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
24336
if test -n "$ac_ct_TARGET_NM"; then
24337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24338
$as_echo "$ac_ct_TARGET_NM" >&6; }
24339
else
24340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341
$as_echo "no" >&6; }
24342
fi
24343
24344
  if test "x$ac_ct_TARGET_NM" = x; then
24345
    TARGET_NM=""
24346
  else
24347
    case $cross_compiling:$ac_tool_warned in
24348
yes:)
24349
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24350
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24351
ac_tool_warned=yes ;;
24352
esac
24353
    TARGET_NM=$ac_ct_TARGET_NM
24354
  fi
24355
else
24356
  TARGET_NM="$ac_cv_prog_TARGET_NM"
24357
fi
24358
24359
  if test -n "$ac_tool_prefix"; then
24360
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24361
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24363
$as_echo_n "checking for $ac_word... " >&6; }
24364
if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
24365
  $as_echo_n "(cached) " >&6
24366
else
24367
  if test -n "$TARGET_RANLIB"; then
24368
  ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
24369
else
24370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24371
for as_dir in $PATH
24372
do
24373
  IFS=$as_save_IFS
24374
  test -z "$as_dir" && as_dir=.
24375
    for ac_exec_ext in '' $ac_executable_extensions; do
24376
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24377
    ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24378
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24379
    break 2
24380
  fi
24381
done
24382
  done
24383
IFS=$as_save_IFS
24384
24385
fi
24386
fi
24387
TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24388
if test -n "$TARGET_RANLIB"; then
24389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24390
$as_echo "$TARGET_RANLIB" >&6; }
24391
else
24392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393
$as_echo "no" >&6; }
24394
fi
24395
24396
24397
fi
24398
if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24399
  ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24400
  # Extract the first word of "ranlib", so it can be a program name with args.
24401
set dummy ranlib; ac_word=$2
24402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24403
$as_echo_n "checking for $ac_word... " >&6; }
24404
if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24405
  $as_echo_n "(cached) " >&6
24406
else
24407
  if test -n "$ac_ct_TARGET_RANLIB"; then
24408
  ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24409
else
24410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24411
for as_dir in $PATH
24412
do
24413
  IFS=$as_save_IFS
24414
  test -z "$as_dir" && as_dir=.
24415
    for ac_exec_ext in '' $ac_executable_extensions; do
24416
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24417
    ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24418
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24419
    break 2
24420
  fi
24421
done
24422
  done
24423
IFS=$as_save_IFS
24424
24425
fi
24426
fi
24427
ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24428
if test -n "$ac_ct_TARGET_RANLIB"; then
24429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24430
$as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24431
else
24432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24433
$as_echo "no" >&6; }
24434
fi
24435
24436
  if test "x$ac_ct_TARGET_RANLIB" = x; then
24437
    TARGET_RANLIB=""
24438
  else
24439
    case $cross_compiling:$ac_tool_warned in
24440
yes:)
24441
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24442
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24443
ac_tool_warned=yes ;;
24444
esac
24445
    TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24446
  fi
24447
else
24448
  TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
24449
fi
24450
24451
fi
24452
24453
24454
24455
24456
24457
24458
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24459
24460
24461
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24462
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24463
# Test the C compiler for the target environment.
24464
tmp_CC="$CC"
24465
tmp_CFLAGS="$CFLAGS"
24466
tmp_LDFLAGS="$LDFLAGS"
24467
tmp_CPPFLAGS="$CPPFLAGS"
24468
tmp_LIBS="$LIBS"
24469
CC="$TARGET_CC"
24470
CFLAGS="$TARGET_CFLAGS"
24471
CPPFLAGS="$TARGET_CPPFLAGS"
24472
LDFLAGS="$TARGET_LDFLAGS"
24473
LIBS=""
24474
24475
# debug flags.
1.15.16 by Colin Watson
Import upstream version 2.00
24476
TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24477
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24478
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24479
if test "x$target_cpu" != xi386 && test "x$target_cpu" != xx86_64; then
24480
TARGET_CFLAGS="$TARGET_CFLAGS -Wcast-align"
24481
fi
24482
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
24483
TARGET_CC_VERSION="$(LC_ALL=C $TARGET_CC --version | head -n1)"
24484
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
24486
$as_echo_n "checking which extra warnings work... " >&6; }
24487
if ${grub_cv_target_cc_w_extra_flags+:} false; then :
24488
  $as_echo_n "(cached) " >&6
24489
else
24490
24491
  LDFLAGS="$TARGET_LDFLAGS -nostdlib -static"
24492
24493
  grub_cv_target_cc_w_extra_flags=
24494
  for x in $EXTRA_WARN_FLAGS; do
24495
      CFLAGS="$TARGET_CFLAGS $x -Werror"
24496
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24497
/* end confdefs.h.  */
24498
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
24499
asm (".globl start; start:");
24500
void __main (void);
24501
void __main (void) {}
24502
int main (void);
24503
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24504
int
24505
main (void)
24506
{
24507
24508
  ;
24509
  return 0;
24510
}
24511
_ACEOF
24512
if ac_fn_c_try_link "$LINENO"; then :
24513
  flag=1
24514
else
24515
  flag=0
24516
fi
24517
rm -f core conftest.err conftest.$ac_objext \
24518
    conftest$ac_exeext conftest.$ac_ext
24519
      if test x$flag = x1 ; then
24520
         grub_cv_target_cc_w_extra_flags="$grub_cv_target_cc_w_extra_flags $x"
24521
      fi
24522
  done
24523
24524
fi
24525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
24526
$as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
24527
24528
TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
24529
24530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
24531
$as_echo_n "checking if compiling with clang... " >&6; }
24532
if { as_var=grub_cv_cc_target_clang
24533
24534
CFLAGS="$TARGET_CFLAGS"
24535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536
/* end confdefs.h.  */
24537
24538
int
24539
main (void)
24540
{
24541
24542
#ifdef __clang__
24543
#error "is clang"
24544
#endif
24545
24546
  ;
24547
  return 0;
24548
}
24549
_ACEOF
24550
if ac_fn_c_try_compile "$LINENO"; then :
24551
  grub_cv_cc_target_clang=no
24552
else
24553
  grub_cv_cc_target_clang=yes
24554
fi
24555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24556
  $as_echo_n "(cached) " >&6
24557
fi
24558
eval ac_res=\$grub_cv_cc_target_clang
24559
24560
CFLAGS="$TARGET_CFLAGS"
24561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562
/* end confdefs.h.  */
24563
24564
int
24565
main (void)
24566
{
24567
24568
#ifdef __clang__
24569
#error "is clang"
24570
#endif
24571
24572
  ;
24573
  return 0;
24574
}
24575
_ACEOF
24576
if ac_fn_c_try_compile "$LINENO"; then :
24577
  grub_cv_cc_target_clang=no
24578
else
24579
  grub_cv_cc_target_clang=yes
24580
fi
24581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24583
$as_echo "$ac_res" >&6; }
24584
24585
# on x86 clang doesn't support .code16
24586
# on arm clang doesn't support .arch directive
24587
# on mips clang doesn't support privilegied instructions, doubleword store/load
24588
# and crashes with hand-written assembly
24589
if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 \
24590
   || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm \
24591
   || test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ); then
24592
   TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24593
fi
24594
24595
if test "x$grub_cv_cc_target_clang" = xyes && test "x$target_cpu" = xpowerpc; then
24596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang can handle ame instruction" >&5
24597
$as_echo_n "checking if clang can handle ame instruction... " >&6; }
24598
if { as_var=grub_cv_cc_target_clang_ame
24599
24600
CFLAGS="$TARGET_CFLAGS"
24601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602
/* end confdefs.h.  */
24603
24604
int
24605
main (void)
24606
{
24607
24608
   unsigned int a = 0, b = 0;
24609
   asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24610
   if (a)
24611
     return 1;
24612
24613
  ;
24614
  return 0;
24615
}
24616
_ACEOF
24617
if ac_fn_c_try_compile "$LINENO"; then :
24618
  grub_cv_cc_target_clang_ame=yes
24619
else
24620
  grub_cv_cc_target_clang_ame=no
24621
fi
24622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24623
  $as_echo_n "(cached) " >&6
24624
fi
24625
eval ac_res=\$grub_cv_cc_target_clang_ame
24626
24627
CFLAGS="$TARGET_CFLAGS"
24628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24629
/* end confdefs.h.  */
24630
24631
int
24632
main (void)
24633
{
24634
24635
   unsigned int a = 0, b = 0;
24636
   asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24637
   if (a)
24638
     return 1;
24639
24640
  ;
24641
  return 0;
24642
}
24643
_ACEOF
24644
if ac_fn_c_try_compile "$LINENO"; then :
24645
  grub_cv_cc_target_clang_ame=yes
24646
else
24647
  grub_cv_cc_target_clang_ame=no
24648
fi
24649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24651
$as_echo "$ac_res" >&6; }
24652
   # clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
24653
   # used by gcrypt
24654
   if test x$grub_cv_cc_target_clang_ame = xno ; then
24655
     TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24656
     TARGET_CFLAGS="$TARGET_CFLAGS -no-integrated-as"
24657
   fi
24658
fi
24659
24660
if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then
24661
  TARGET_CFLAGS="$TARGET_CFLAGS -march=i386"
24662
fi
24663
24664
if test "x$target_m32" = x1; then
24665
  # Force 32-bit mode.
24666
  TARGET_CFLAGS="$TARGET_CFLAGS -m32"
24667
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
24668
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
24669
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
24670
  TARGET_MODULE_FORMAT="elf32"
24671
fi
24672
24673
if test "x$target_m64" = x1; then
24674
  # Force 64-bit mode.
24675
  TARGET_CFLAGS="$TARGET_CFLAGS -m64"
24676
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
24677
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
24678
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
24679
  TARGET_MODULE_FORMAT="elf64"
24680
fi
24681
24682
if test "x$grub_cv_cc_target_clang" = xno && test "x$target_cpu" = xi386 && test "x$platform" != xemu && test "x$platform" != xefi; then
24683
   TARGET_CFLAGS="$TARGET_CFLAGS -mrtd -mregparm=3"
24684
fi
24685
24686
# on mips redirect cache flushing function to non-existant one.
24687
if test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ; then
24688
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
24689
$as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
24690
if ${grub_cv_cc_mflush_func+:} false; then :
24691
  $as_echo_n "(cached) " >&6
24692
else
24693
24694
    CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
24695
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696
/* end confdefs.h.  */
24697
24698
int
24699
main (void)
24700
{
24701
24702
  ;
24703
  return 0;
24704
}
24705
_ACEOF
24706
if ac_fn_c_try_compile "$LINENO"; then :
24707
  grub_cv_cc_mflush_func=yes
24708
else
24709
  grub_cv_cc_mflush_func=no
24710
fi
24711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712
24713
fi
24714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
24715
$as_echo "$grub_cv_cc_mflush_func" >&6; }
24716
24717
  if test "x$grub_cv_cc_mflush_func" = xyes; then
24718
    TARGET_CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring"
24719
  fi
24720
fi
24721
24722
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24723
# Force no alignment to save space on i386.
24724
if test "x$target_cpu" = xi386; then
24725
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
24726
$as_echo_n "checking whether -falign-loops works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
24727
if ${grub_cv_cc_falign_loop+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24728
  $as_echo_n "(cached) " >&6
24729
else
24730
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24731
    CFLAGS="$TARGET_CFLAGS -falign-loops=1 -Werror"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24732
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24733
/* end confdefs.h.  */
24734
24735
int
24736
main (void)
24737
{
24738
24739
  ;
24740
  return 0;
24741
}
24742
_ACEOF
24743
if ac_fn_c_try_compile "$LINENO"; then :
24744
  grub_cv_cc_falign_loop=yes
24745
else
24746
  grub_cv_cc_falign_loop=no
24747
fi
24748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24749
24750
fi
24751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
24752
$as_echo "$grub_cv_cc_falign_loop" >&6; }
24753
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24754
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
24755
$as_echo_n "checking whether -malign-loops works... " >&6; }
24756
if ${grub_cv_cc_malign_loop+:} false; then :
24757
  $as_echo_n "(cached) " >&6
24758
else
24759
24760
    CFLAGS="$TARGET_CFLAGS -malign-loops=1 -Werror"
24761
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24762
/* end confdefs.h.  */
24763
24764
int
24765
main (void)
24766
{
24767
24768
  ;
24769
  return 0;
24770
}
24771
_ACEOF
24772
if ac_fn_c_try_compile "$LINENO"; then :
24773
  grub_cv_cc_malign_loop=yes
24774
else
24775
  grub_cv_cc_malign_loop=no
24776
fi
24777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778
24779
fi
24780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
24781
$as_echo "$grub_cv_cc_malign_loop" >&6; }
24782
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24783
  if test "x$grub_cv_cc_falign_loop" = xyes; then
24784
    TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24785
  elif test "x$grub_cv_cc_malign_loop" = xyes; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24786
    TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
24787
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24788
fi
24789
24790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
24791
$as_echo_n "checking whether -freg-struct-return works... " >&6; }
24792
if ${grub_cv_cc_freg_struct_return+:} false; then :
24793
  $as_echo_n "(cached) " >&6
24794
else
24795
24796
    CFLAGS="$TARGET_CFLAGS -freg-struct-return -Werror"
24797
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24798
/* end confdefs.h.  */
24799
24800
int
24801
main (void)
24802
{
24803
24804
  ;
24805
  return 0;
24806
}
24807
_ACEOF
24808
if ac_fn_c_try_compile "$LINENO"; then :
24809
  grub_cv_cc_freg_struct_return=yes
24810
else
24811
  grub_cv_cc_freg_struct_return=no
24812
fi
24813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814
24815
fi
24816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
24817
$as_echo "$grub_cv_cc_freg_struct_return" >&6; }
24818
24819
if test "x$grub_cv_cc_freg_struct_return" = xyes; then
24820
    TARGET_CFLAGS="$TARGET_CFLAGS -freg-struct-return"
24821
fi
24822
24823
if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24824
  # Some toolchains enable these features by default, but they need
24825
  # registers that aren't set up properly in GRUB.
24826
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
24827
fi
24828
24829
# By default, GCC 4.4 generates .eh_frame sections containing unwind
24830
# information in some cases where it previously did not. GRUB doesn't need
24831
# these and they just use up vital space. Restore the old compiler
24832
# behaviour.
24833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
24834
$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
24835
if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24836
  $as_echo_n "(cached) " >&6
24837
else
24838
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24839
  CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
24840
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24841
/* end confdefs.h.  */
24842
24843
int
24844
main (void)
24845
{
24846
24847
  ;
24848
  return 0;
24849
}
24850
_ACEOF
24851
if ac_fn_c_try_compile "$LINENO"; then :
24852
  grub_cv_cc_fno_dwarf2_cfi_asm=yes
24853
else
24854
  grub_cv_cc_fno_dwarf2_cfi_asm=no
24855
fi
24856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857
24858
fi
24859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
24860
$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
24861
24862
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
24863
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24864
fi
24865
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24866
if test x"$target_os" = xcygwin; then
24867
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
24868
$as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
24869
if ${grub_cv_cc_no_reorder_functions+:} false; then :
24870
  $as_echo_n "(cached) " >&6
24871
else
24872
24873
    CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24874
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875
/* end confdefs.h.  */
24876
24877
int
24878
main (void)
24879
{
24880
24881
  ;
24882
  return 0;
24883
}
24884
_ACEOF
24885
if ac_fn_c_try_compile "$LINENO"; then :
24886
  grub_cv_cc_no_reorder_functions=yes
24887
else
24888
  grub_cv_cc_no_reorder_functions=no
24889
fi
24890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891
24892
fi
24893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
24894
$as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
24895
fi
24896
24897
if test x"$target_os" = xcygwin && test "x$grub_cv_cc_no_reorder_functions" = xyes; then
24898
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24899
fi
24900
1.15.16 by Colin Watson
Import upstream version 2.00
24901
# By default, GCC 4.6 generates .eh_frame sections containing unwind
24902
# information in some cases where it previously did not. GRUB doesn't need
24903
# these and they just use up vital space. Restore the old compiler
24904
# behaviour.
24905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
24906
$as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
24907
if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24908
  $as_echo_n "(cached) " >&6
24909
else
24910
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24911
  CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
1.15.16 by Colin Watson
Import upstream version 2.00
24912
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24913
/* end confdefs.h.  */
24914
24915
int
24916
main (void)
24917
{
24918
24919
  ;
24920
  return 0;
24921
}
24922
_ACEOF
24923
if ac_fn_c_try_compile "$LINENO"; then :
1.15.16 by Colin Watson
Import upstream version 2.00
24924
  grub_cv_cc_fno_asynchronous_unwind_tables=yes
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24925
else
1.15.16 by Colin Watson
Import upstream version 2.00
24926
  grub_cv_cc_fno_asynchronous_unwind_tables=no
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24927
fi
24928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929
24930
fi
1.15.16 by Colin Watson
Import upstream version 2.00
24931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
24932
$as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24933
1.15.16 by Colin Watson
Import upstream version 2.00
24934
if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes; then
24935
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
24936
fi
24937
1.15.16 by Colin Watson
Import upstream version 2.00
24938
# Check whether --enable-efiemu was given.
24939
if test "${enable_efiemu+set}" = set; then :
24940
  enableval=$enable_efiemu;
24941
fi
24942
24943
if test x"$enable_efiemu" = xno ; then
24944
  efiemu_excuse="explicitly disabled"
24945
fi
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
24946
if test x"$grub_cv_target_cc_link_format" = x-mi386pe || test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24947
  efiemu_excuse="not available on cygwin"
24948
fi
1.15.16 by Colin Watson
Import upstream version 2.00
24949
if test x"$target_cpu" != xi386 ; then
24950
  efiemu_excuse="only available on i386"
24951
fi
24952
if test x"$platform" = xefi ; then
24953
  efiemu_excuse="not available on efi"
24954
fi
24955
if test x"$efiemu_excuse" = x ; then
24956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
24957
$as_echo_n "checking whether options required for efiemu work... " >&6; }
24958
if ${grub_cv_cc_efiemu+:} false; then :
24959
  $as_echo_n "(cached) " >&6
24960
else
24961
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24962
    CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
1.15.16 by Colin Watson
Import upstream version 2.00
24963
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964
/* end confdefs.h.  */
24965
24966
int
24967
main (void)
24968
{
24969
24970
  ;
24971
  return 0;
24972
}
24973
_ACEOF
24974
if ac_fn_c_try_compile "$LINENO"; then :
24975
  grub_cv_cc_efiemu=yes
24976
else
24977
  grub_cv_cc_efiemu=no
24978
fi
24979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980
24981
fi
24982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
24983
$as_echo "$grub_cv_cc_efiemu" >&6; }
24984
  if test x$grub_cv_cc_efiemu = xno; then
24985
     efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
24986
  fi
24987
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
24988
if test x"$efiemu_excuse" = x ; then
24989
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
24990
$as_echo_n "checking for efiemu64 linking format... " >&6; }
24991
if ${grub_cv_target_cc_efiemu64_link_format+:} false; then :
24992
  $as_echo_n "(cached) " >&6
24993
else
24994
24995
    grub_cv_target_cc_efiemu64_link_format=unknown
24996
    for format in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64; do
24997
      CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
24998
      LDFLAGS="-m64 -Wl,$format -nostdlib -static"
24999
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000
/* end confdefs.h.  */
25001
25002
      asm (".globl start; start:");
25003
      asm (".globl _start; _start:");
25004
      asm (".globl __start; __start:");
25005
      void __main (void);
25006
      void __main (void) {}
25007
25008
int
25009
main (void)
25010
{
25011
25012
  ;
25013
  return 0;
25014
}
25015
_ACEOF
25016
if ac_fn_c_try_link "$LINENO"; then :
25017
  flag=1
25018
else
25019
  flag=0
25020
fi
25021
rm -f core conftest.err conftest.$ac_objext \
25022
    conftest$ac_exeext conftest.$ac_ext
25023
      if test x"$flag" = x1; then
25024
        grub_cv_target_cc_efiemu64_link_format="$format"
25025
	break;
25026
      fi
25027
    done
25028
fi
25029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
25030
$as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
25031
  if test x"$grub_cv_target_cc_efiemu64_link_format" = xunknown; then
25032
    efiemu_excuse="no suitable link format for efiemu64 found"
25033
  else
25034
    EFIEMU64_LINK_FORMAT="-Wl,$grub_cv_target_cc_efiemu64_link_format"
25035
  fi
25036
fi
1.15.16 by Colin Watson
Import upstream version 2.00
25037
if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25038
  as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
1.15.16 by Colin Watson
Import upstream version 2.00
25039
fi
25040
if test x"$efiemu_excuse" = x ; then
25041
enable_efiemu=yes
25042
else
25043
enable_efiemu=no
25044
fi
25045
25046
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25047
25048
CFLAGS="$TARGET_CFLAGS"
25049
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25050
25051
if test x"$platform" = xemu ; then
25052
  TARGET_OBJ2ELF=
25053
  grub_cv_target_cc_link_format=
25054
  case "$host_os" in
25055
    *darwin* | *mac*)
25056
       grub_cv_target_cc_link_format="-arch,${target_cpu}"
25057
       TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25058
        ;;
25059
    *windows* | *cygwin* | *mingw*)
25060
      if test x${target_cpu} = xi386 ; then
25061
        grub_cv_target_cc_link_format=-mi386pe;
25062
	TARGET_OBJ2ELF='./build-grub-pe2elf';
25063
      fi
25064
      if test x${target_cpu} = xx86_64 ; then
25065
        grub_cv_target_cc_link_format=-mi386pep;
25066
	TARGET_OBJ2ELF='./build-grub-pep2elf';
25067
      fi
25068
      TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25069
      ;;
25070
  esac
25071
elif test x"$target_cpu" = xi386 || test x"$target_cpu" = xx86_64; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25072
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
25073
$as_echo_n "checking for target linking format... " >&6; }
25074
if ${grub_cv_target_cc_link_format+:} false; then :
25075
  $as_echo_n "(cached) " >&6
25076
else
25077
25078
    grub_cv_target_cc_link_format=unknown
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25079
    for format in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
25080
      if test x${target_cpu} != xi386 && test x$format = x-mi386pe; then
25081
        continue
25082
      fi
25083
      if test x${target_cpu} != xx86_64 && test x$format = x-mi386pep; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25084
        continue
25085
      fi
25086
      CFLAGS="$TARGET_CFLAGS"
25087
      LDFLAGS="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
25088
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25089
/* end confdefs.h.  */
25090
25091
      asm (".globl start; start:");
25092
      asm (".globl _start; _start:");
25093
      asm (".globl __start; __start:");
25094
      void __main (void);
25095
      void __main (void) {}
25096
25097
int
25098
main (void)
25099
{
25100
25101
  ;
25102
  return 0;
25103
}
25104
_ACEOF
25105
if ac_fn_c_try_link "$LINENO"; then :
25106
  flag=1
25107
else
25108
  flag=0
25109
fi
25110
rm -f core conftest.err conftest.$ac_objext \
25111
    conftest$ac_exeext conftest.$ac_ext
25112
      if test x"$flag" = x1; then
25113
        grub_cv_target_cc_link_format="$format"
25114
	break;
25115
      fi
25116
    done
25117
fi
25118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
25119
$as_echo "$grub_cv_target_cc_link_format" >&6; }
25120
  if test x"$grub_cv_target_cc_link_format" = xunknown; then
25121
    as_fn_error $? "no suitable link format found" "$LINENO" 5
25122
  fi
25123
  TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25124
  if test x"$grub_cv_target_cc_link_format" = x-mi386pe ; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25125
    TARGET_OBJ2ELF='./build-grub-pe2elf';
25126
  fi
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25127
  if test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
25128
    TARGET_OBJ2ELF='./build-grub-pep2elf';
25129
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25130
fi
25131
25132
if test x$grub_cv_target_cc_link_format = x-arch,i386 || test x$grub_cv_target_cc_link_format = x-arch,x86_64; then
25133
   TARGET_APPLE_LINKER=1
25134
   # Extract the first word of "objconv", so it can be a program name with args.
25135
set dummy objconv; ac_word=$2
25136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25137
$as_echo_n "checking for $ac_word... " >&6; }
25138
if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25139
  $as_echo_n "(cached) " >&6
25140
else
25141
  if test -n "$TARGET_OBJCONV"; then
25142
  ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25143
else
25144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25145
for as_dir in $PATH
25146
do
25147
  IFS=$as_save_IFS
25148
  test -z "$as_dir" && as_dir=.
25149
    for ac_exec_ext in '' $ac_executable_extensions; do
25150
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25151
    ac_cv_prog_TARGET_OBJCONV="objconv"
25152
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25153
    break 2
25154
  fi
25155
done
25156
  done
25157
IFS=$as_save_IFS
25158
25159
fi
25160
fi
25161
TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25162
if test -n "$TARGET_OBJCONV"; then
25163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25164
$as_echo "$TARGET_OBJCONV" >&6; }
25165
else
25166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25167
$as_echo "no" >&6; }
25168
fi
25169
25170
25171
   if test "x$TARGET_OBJCONV" = x ; then
25172
      # Extract the first word of "objconv", so it can be a program name with args.
25173
set dummy objconv; ac_word=$2
25174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25175
$as_echo_n "checking for $ac_word... " >&6; }
25176
if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25177
  $as_echo_n "(cached) " >&6
25178
else
25179
  if test -n "$TARGET_OBJCONV"; then
25180
  ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25181
else
25182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25183
for as_dir in .
25184
do
25185
  IFS=$as_save_IFS
25186
  test -z "$as_dir" && as_dir=.
25187
    for ac_exec_ext in '' $ac_executable_extensions; do
25188
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25189
    ac_cv_prog_TARGET_OBJCONV="./objconv"
25190
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25191
    break 2
25192
  fi
25193
done
25194
  done
25195
IFS=$as_save_IFS
25196
25197
fi
25198
fi
25199
TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25200
if test -n "$TARGET_OBJCONV"; then
25201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25202
$as_echo "$TARGET_OBJCONV" >&6; }
25203
else
25204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205
$as_echo "no" >&6; }
25206
fi
25207
25208
25209
   fi
25210
   if test "x$TARGET_OBJCONV" = x ; then
25211
      as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
25212
   fi
25213
   TARGET_IMG_LDSCRIPT=
25214
   TARGET_IMG_CFLAGS="-static"
25215
   TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25216
   TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25217
   TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
25218
   TARGET_LDFLAGS_OLDMAGIC=""
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25219
elif test x$grub_cv_target_cc_link_format = x-mi386pe || test x$grub_cv_target_cc_link_format = x-mi386pep ; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25220
  TARGET_APPLE_LINKER=0
25221
  TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25222
  TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25223
  TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25224
  TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25225
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25226
  TARGET_IMG_CFLAGS=
25227
else
25228
  TARGET_APPLE_LINKER=0
25229
  TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
25230
  TARGET_IMG_LDSCRIPT=
25231
  TARGET_IMG_LDFLAGS='-Wl,-N'
25232
  TARGET_IMG_LDFLAGS_AC='-Wl,-N'
25233
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25234
  TARGET_IMG_CFLAGS=
25235
fi
25236
25237
25238
25239
25240
LDFLAGS="$TARGET_LDFLAGS"
25241
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25242
if test "$target_cpu" = x86_64 || test "$target_cpu-$platform" = sparc64-emu ; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25243
  # Use large model to support 4G memory
25244
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
25245
$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25246
if ${grub_cv_cc_mcmodel+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25247
  $as_echo_n "(cached) " >&6
25248
else
25249
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25250
    CFLAGS="$TARGET_CFLAGS -m64 -mcmodel=large"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25251
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25252
/* end confdefs.h.  */
25253
25254
int
25255
main (void)
25256
{
25257
25258
  ;
25259
  return 0;
25260
}
25261
_ACEOF
25262
if ac_fn_c_try_compile "$LINENO"; then :
25263
  grub_cv_cc_mcmodel=yes
25264
else
25265
  grub_cv_cc_mcmodel=no
25266
fi
25267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25268
25269
fi
25270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
25271
$as_echo "$grub_cv_cc_mcmodel" >&6; }
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25272
  if test "x$grub_cv_cc_mcmodel" = xyes; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25273
    TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25274
  elif test "$target_cpu-$platform" = sparc64-emu; then
25275
    TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25276
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25277
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25278
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25279
if test "$target_cpu"-"$platform" = x86_64-efi; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25280
  # EFI writes to stack below %rsp, we must not use the red zone
25281
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
25282
$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25283
if ${grub_cv_cc_no_red_zone+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25284
  $as_echo_n "(cached) " >&6
25285
else
25286
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25287
    CFLAGS="$TARGET_CFLAGS -m64 -mno-red-zone"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25288
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289
/* end confdefs.h.  */
25290
25291
int
25292
main (void)
25293
{
25294
25295
  ;
25296
  return 0;
25297
}
25298
_ACEOF
25299
if ac_fn_c_try_compile "$LINENO"; then :
25300
  grub_cv_cc_no_red_zone=yes
25301
else
25302
  grub_cv_cc_no_red_zone=no
25303
fi
25304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305
25306
fi
25307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
25308
$as_echo "$grub_cv_cc_no_red_zone" >&6; }
25309
  if test "x$grub_cv_cc_no_red_zone" = xno; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25310
    as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25311
  fi
25312
25313
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
25314
fi
25315
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25316
if test "x$target_cpu" = xarm; then
25317
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mlong-calls works" >&5
25318
$as_echo_n "checking whether option -mlong-calls works... " >&6; }
25319
if ${grub_cv_cc_mlong_calls+:} false; then :
25320
  $as_echo_n "(cached) " >&6
25321
else
25322
25323
    CFLAGS="$TARGET_CFLAGS -mlong-calls -Werror"
25324
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325
/* end confdefs.h.  */
25326
25327
int
25328
main (void)
25329
{
25330
25331
  ;
25332
  return 0;
25333
}
25334
_ACEOF
25335
if ac_fn_c_try_compile "$LINENO"; then :
25336
  grub_cv_cc_mlong_calls=yes
25337
else
25338
  grub_cv_cc_mlong_calls=no
25339
fi
25340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341
25342
fi
25343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mlong_calls" >&5
25344
$as_echo "$grub_cv_cc_mlong_calls" >&6; }
25345
  if test "x$grub_cv_cc_mlong_calls" = xyes; then
25346
    TARGET_CFLAGS="$TARGET_CFLAGS -mlong-calls"
25347
  fi
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25348
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
25349
$as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
25350
if ${grub_cv_cc_mthumb_interwork+:} false; then :
25351
  $as_echo_n "(cached) " >&6
25352
else
25353
25354
    CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
25355
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25356
/* end confdefs.h.  */
25357
25358
int
25359
main (void)
25360
{
25361
25362
  ;
25363
  return 0;
25364
}
25365
_ACEOF
25366
if ac_fn_c_try_compile "$LINENO"; then :
25367
  grub_cv_cc_mthumb_interwork=yes
25368
else
25369
  grub_cv_cc_mthumb_interwork=no
25370
fi
25371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25372
25373
fi
25374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
25375
$as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
25376
  if test "x$grub_cv_cc_mthumb_interwork" = xyes; then
25377
    TARGET_CFLAGS="$TARGET_CFLAGS -mthumb-interwork"
25378
  elif test "x$grub_cv_cc_target_clang" = xno ; then
25379
    as_fn_error $? "your compiler doesn't support -mthumb-interwork" "$LINENO" 5
25380
  else
25381
    CFLAGS="$TARGET_CFLAGS"
25382
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25383
/* end confdefs.h.  */
25384
25385
int
25386
main (void)
25387
{
25388
25389
#if defined (__thumb__) && !defined (__thumb2__)
25390
#error thumb without interworking
25391
#endif
25392
25393
  ;
25394
  return 0;
25395
}
25396
_ACEOF
25397
if ac_fn_c_try_compile "$LINENO"; then :
25398
  no_interwork_ok=yes
25399
else
25400
  no_interwork_ok=no
25401
fi
25402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403
    if test x$no_interwork_ok = xno ; then
25404
       as_fn_error $? "attempt to compile to thumb with no thumb interwork" "$LINENO" 5
25405
    fi
25406
  fi
25407
fi
25408
25409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
25410
$as_echo_n "checking whether option -Qn works... " >&6; }
25411
if ${grub_cv_target_cc_qn+:} false; then :
25412
  $as_echo_n "(cached) " >&6
25413
else
25414
25415
  CFLAGS="$TARGET_CFLAGS -Qn -Werror"
25416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25417
/* end confdefs.h.  */
25418
25419
int
25420
main (void)
25421
{
25422
25423
  ;
25424
  return 0;
25425
}
25426
_ACEOF
25427
if ac_fn_c_try_compile "$LINENO"; then :
25428
  grub_cv_target_cc_qn=yes
25429
else
25430
  grub_cv_target_cc_qn=no
25431
fi
25432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25433
fi
25434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
25435
$as_echo "$grub_cv_target_cc_qn" >&6; }
25436
if test "x$grub_cv_target_cc_qn" = xyes; then
25437
  TARGET_CFLAGS="$TARGET_CFLAGS -Qn"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25438
fi
25439
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25440
#
25441
# Compiler features.
25442
#
25443
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25444
CFLAGS="$TARGET_CFLAGS"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25445
25446
# Position independent executable.
25447
25448
# Position independent executable.
25449
pie_possible=yes
25450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
25451
$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
25452
# Is this a reliable test case?
25453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25454
/* end confdefs.h.  */
25455
25456
#ifdef __PIE__
25457
int main() {
25458
	return 0;
25459
}
25460
#else
25461
#error NO __PIE__ DEFINED
25462
#endif
25463
25464
_ACEOF
25465
25466
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
25467
# `ac_compile' like this correct, after all?
25468
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25469
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25470
$as_echo "yes" >&6; }
25471
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25472
  rm -f conftest.s
25473
else
25474
  pie_possible=no
25475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25476
$as_echo "no" >&6; }
25477
fi
25478
25479
# Need that, because some distributions ship compilers that include
25480
# `-fPIE' in the default specs.
25481
if [ x"$pie_possible" = xyes ]; then
25482
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
25483
fi
25484
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25485
CFLAGS="$TARGET_CFLAGS"
25486
1.15.16 by Colin Watson
Import upstream version 2.00
25487
# Position independent executable.
25488
25489
# Position independent executable.
25490
pic_possible=yes
25491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
25492
$as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
25493
# Is this a reliable test case?
25494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495
/* end confdefs.h.  */
25496
25497
#ifdef __PIC__
25498
int main() {
25499
	return 0;
25500
}
25501
#else
25502
#error NO __PIC__ DEFINED
25503
#endif
25504
25505
_ACEOF
25506
25507
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
25508
# `ac_compile' like this correct, after all?
25509
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25511
$as_echo "yes" >&6; }
25512
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25513
  rm -f conftest.s
25514
else
25515
  pic_possible=no
25516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25517
$as_echo "no" >&6; }
25518
fi
25519
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25520
# On most platforms we don't want PIC as it only makes relocations harder
25521
# and code less efficient. On mips we want to have one got table per module
25522
# and reload $gp in every function.
25523
# GCC implements it using symbol __gnu_local_gp in non-PIC as well.
25524
# However with clang we need PIC for this reloading to happen.
25525
# Since default varies across dictributions use either -fPIC or -fno-PIC
25526
# explicitly.
25527
if ( test x$target_cpu = xmips || test x$target_cpu = xmipsel ) && test "x$grub_cv_cc_target_clang" = xyes ; then
25528
   TARGET_CFLAGS="$TARGET_CFLAGS -fPIC"
25529
elif [ x"$pic_possible" = xyes ]; then
25530
   TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIC"
1.15.16 by Colin Watson
Import upstream version 2.00
25531
fi
25532
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25533
CFLAGS="$TARGET_CFLAGS"
25534
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25535
# Smashing stack protector.
25536
25537
# Smashing stack protector.
25538
ssp_possible=yes
25539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
25540
$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
25541
# Is this a reliable test case?
25542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25543
/* end confdefs.h.  */
1.15.16 by Colin Watson
Import upstream version 2.00
25544
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25545
void foo (void) { volatile char a[8]; a[3]; }
1.15.16 by Colin Watson
Import upstream version 2.00
25546
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25547
_ACEOF
25548
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
25549
# `ac_compile' like this correct, after all?
25550
if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
25551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25552
$as_echo "yes" >&6; }
25553
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25554
  rm -f conftest.s
25555
else
25556
  ssp_possible=no
25557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25558
$as_echo "no" >&6; }
25559
fi
25560
25561
# Need that, because some distributions ship compilers that include
25562
# `-fstack-protector' in the default specs.
25563
if test "x$ssp_possible" = xyes; then
25564
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
25565
fi
25566
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25567
CFLAGS="$TARGET_CFLAGS"
25568
25569
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25570
# Smashing stack arg probe.
25571
sap_possible=yes
25572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
25573
$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
25574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575
/* end confdefs.h.  */
1.15.16 by Colin Watson
Import upstream version 2.00
25576
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25577
void foo (void) { volatile char a[8]; a[3]; }
1.15.16 by Colin Watson
Import upstream version 2.00
25578
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25579
_ACEOF
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25580
if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev/null; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25582
$as_echo "yes" >&6; }
25583
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25584
  rm -f conftest.s
25585
else
25586
  sap_possible=no
25587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25588
$as_echo "no" >&6; }
25589
fi
25590
25591
# Cygwin's GCC uses alloca() to probe the stackframe on static
25592
# stack allocations above some threshold.
25593
if test x"$sap_possible" = xyes; then
25594
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
25595
fi
25596
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25597
CFLAGS="$TARGET_CFLAGS"
25598
25599
# -mno-unaligned-access -mstrict-align
25600
if test "$target_cpu" = arm; then
25601
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
25602
$as_echo_n "checking for compile options to get strict alignment... " >&6; }
25603
if ${grub_cv_target_cc_strict_align+:} false; then :
25604
  $as_echo_n "(cached) " >&6
25605
else
25606
25607
    grub_cv_target_cc_strict_align=
25608
    for arg in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
25609
      CFLAGS="$TARGET_CFLAGS $arg -Werror"
25610
      LDFLAGS="$TARGET_LDFLAGS"
25611
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612
/* end confdefs.h.  */
25613
25614
int
25615
main (void)
25616
{
25617
25618
  ;
25619
  return 0;
25620
}
25621
_ACEOF
25622
if ac_fn_c_try_compile "$LINENO"; then :
25623
  flag=1
25624
else
25625
  flag=0
25626
fi
25627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628
      if test x"$flag" = x1; then
25629
        grub_cv_target_cc_strict_align="$arg"
25630
	break;
25631
      fi
25632
    done
25633
fi
25634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
25635
$as_echo "$grub_cv_target_cc_strict_align" >&6; }
25636
25637
  TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
25638
  if test x"$grub_cv_target_cc_strict_align" = x"-Xclang -mstrict-align"; then
25639
    TARGET_LDFLAGS="$TARGET_LDFLAGS -Qunused-arguments"
25640
  fi
25641
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
25642
$as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
25643
if ${grub_cv_cc_target_emits_unaligned+:} false; then :
25644
  $as_echo_n "(cached) " >&6
25645
else
25646
  CFLAGS="$TARGET_CFLAGS"
25647
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648
/* end confdefs.h.  */
25649
25650
int
25651
main (void)
25652
{
25653
25654
#ifdef __ARM_FEATURE_UNALIGNED
25655
#error "unaligned"
25656
#endif
25657
25658
  ;
25659
  return 0;
25660
}
25661
_ACEOF
25662
if ac_fn_c_try_compile "$LINENO"; then :
25663
  grub_cv_cc_target_emits_unaligned=no
25664
else
25665
  grub_cv_cc_target_emits_unaligned=yes
25666
fi
25667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668
fi
25669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
25670
$as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
25671
  if test x$grub_cv_cc_target_emits_unaligned = xyes; then
25672
    as_fn_error $? "compiler generates unaligned accesses" "$LINENO" 5
25673
  fi
25674
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25675
25676
# Set them to their new values for the tests below.
25677
CC="$TARGET_CC"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25678
if test "x$TARGET_APPLE_LINKER" = x1 ; then
25679
CFLAGS="$TARGET_CFLAGS -nostdlib -static -Wno-error"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25680
else
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25681
CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25682
fi
25683
CPPFLAGS="$TARGET_CPPFLAGS"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25684
if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 || test "x$grub_cv_cc_target_clang" = xyes ; then
25685
TARGET_LIBGCC=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
25686
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25687
TARGET_LIBGCC=-lgcc
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
25688
fi
25689
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25690
LIBS="$TARGET_LIBGCC"
25691
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25692
25693
25694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
25695
$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25696
if ${grub_cv_asm_uscore+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25697
  $as_echo_n "(cached) " >&6
25698
else
25699
  cat > conftest.c <<\EOF
25700
int func (int *);
25701
int
25702
func (int *list)
25703
{
25704
  *list = 0;
25705
  return *list;
25706
}
25707
EOF
25708
25709
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
25710
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711
  (eval $ac_try) 2>&5
25712
  ac_status=$?
25713
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714
  test $ac_status = 0; }; } && test -s conftest.s; then
25715
  true
25716
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25717
  as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25718
fi
25719
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
25720
if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
25721
  HAVE_ASM_USCORE=1
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25722
  grub_cv_asm_uscore=yes
25723
else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
25724
  HAVE_ASM_USCORE=0
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25725
  grub_cv_asm_uscore=no
25726
fi
25727
25728
rm -f conftest*
25729
fi
25730
25731
25732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
25733
$as_echo "$grub_cv_asm_uscore" >&6; }
25734
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25735
if test "x$TARGET_APPLE_LINKER" = x0 ; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25736
if test x$grub_cv_asm_uscore = xyes; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25737
DEFSYM="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25738
else
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25739
DEFSYM="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25740
fi
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25741
CFLAGS="$TARGET_CFLAGS -nostdlib $DEFSYM"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25742
fi
25743
25744
# Check for libgcc symbols
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25745
for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25746
do :
25747
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25748
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25749
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25750
  cat >>confdefs.h <<_ACEOF
25751
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25752
_ACEOF
25753
25754
fi
25755
done
25756
25757
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25758
if test "x$TARGET_APPLE_LINKER" = x1 ; then
25759
CFLAGS="$TARGET_CFLAGS -nostdlib -static"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25760
else
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25761
CFLAGS="$TARGET_CFLAGS -nostdlib"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25762
fi
25763
LIBS=""
25764
25765
# Defined in aclocal.m4.
25766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
25767
$as_echo_n "checking whether target compiler is working... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25768
if ${grub_cv_prog_target_cc+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25769
  $as_echo_n "(cached) " >&6
25770
else
25771
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772
/* end confdefs.h.  */
25773
25774
asm (".globl start; start:");
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25775
void __main (void);
25776
void __main (void) {}
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25777
int main (void);
25778
25779
int
25780
main (void)
25781
{
25782
25783
  ;
25784
  return 0;
25785
}
25786
_ACEOF
25787
if ac_fn_c_try_link "$LINENO"; then :
25788
  grub_cv_prog_target_cc=yes
25789
else
25790
  grub_cv_prog_target_cc=no
25791
fi
25792
rm -f core conftest.err conftest.$ac_objext \
25793
    conftest$ac_exeext conftest.$ac_ext
25794
25795
fi
25796
25797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
25798
$as_echo "$grub_cv_prog_target_cc" >&6; }
25799
25800
if test "x$grub_cv_prog_target_cc" = xno; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25801
  as_fn_error $? "cannot compile for the target" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25802
fi
25803
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25804
if test "x$TARGET_APPLE_LINKER" != x1 ; then
25805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
25806
$as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25807
if ${grub_cv_prog_objcopy_absolute+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25808
  $as_echo_n "(cached) " >&6
25809
else
25810
  cat > conftest.c <<\EOF
25811
void cmain (void);
25812
void
25813
cmain (void)
25814
{
25815
   *((int *) 0x1000) = 2;
25816
}
25817
EOF
25818
25819
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25820
  (eval $ac_compile) 2>&5
25821
  ac_status=$?
25822
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823
  test $ac_status = 0; } && test -s conftest.o; then :
25824
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25825
  as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25826
fi
25827
grub_cv_prog_objcopy_absolute=yes
25828
for link_addr in 0x2000 0x8000 0x7C00; do
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
25829
  if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25830
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25831
  (eval $ac_try) 2>&5
25832
  ac_status=$?
25833
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25834
  test $ac_status = 0; }; }; then :
25835
  else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25836
    as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25837
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25838
  if { ac_try='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25839
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840
  (eval $ac_try) 2>&5
25841
  ac_status=$?
25842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843
  test $ac_status = 0; }; }; then :
25844
  else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25845
    as_fn_error $? "${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25846
  fi
25847
  if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
25848
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849
  (eval $ac_try) 2>&5
25850
  ac_status=$?
25851
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852
  test $ac_status = 0; }; }; then
25853
    mv -f conftest conftest.old
25854
  else
25855
    grub_cv_prog_objcopy_absolute=no
25856
    break
25857
  fi
25858
done
25859
rm -f conftest*
25860
fi
25861
25862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
25863
$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
25864
25865
if test "x$grub_cv_prog_objcopy_absolute" = xno; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
25866
  as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25867
fi
25868
25869
fi
25870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
25871
$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25872
if ${grub_cv_prog_ld_build_id_none+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25873
  $as_echo_n "(cached) " >&6
25874
else
25875
  save_LDFLAGS="$LDFLAGS"
25876
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
25877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878
/* end confdefs.h.  */
25879
25880
int
25881
main (void)
25882
{
25883
25884
  ;
25885
  return 0;
25886
}
25887
_ACEOF
25888
if ac_fn_c_try_link "$LINENO"; then :
25889
  grub_cv_prog_ld_build_id_none=yes
25890
else
25891
  grub_cv_prog_ld_build_id_none=no
25892
fi
25893
rm -f core conftest.err conftest.$ac_objext \
25894
    conftest$ac_exeext conftest.$ac_ext
25895
LDFLAGS="$save_LDFLAGS"
25896
25897
fi
25898
25899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
25900
$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
25901
25902
if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
25903
  TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
25904
fi
25905
25906
if test "x$target_cpu" = xi386; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
25907
  if test "$platform" != emu && test "x$TARGET_APPLE_LINKER" != x1 ; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25908
    if test ! -z "$TARGET_IMG_LDSCRIPT"; then
25909
      # Check symbols provided by linker script.
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25910
      CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25911
    fi
25912
25913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
25914
$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25915
if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25916
  $as_echo_n "(cached) " >&6
25917
else
25918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919
/* end confdefs.h.  */
25920
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25921
asm (".globl start; start:");
25922
void __main (void);
25923
void __main (void) {}
25924
int main (void);
25925
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25926
int
25927
main (void)
25928
{
25929
asm ("incl __bss_start")
25930
  ;
25931
  return 0;
25932
}
25933
_ACEOF
25934
if ac_fn_c_try_link "$LINENO"; then :
25935
  grub_cv_check_uscore_uscore_bss_start_symbol=yes
25936
else
25937
  grub_cv_check_uscore_uscore_bss_start_symbol=no
25938
fi
25939
rm -f core conftest.err conftest.$ac_objext \
25940
    conftest$ac_exeext conftest.$ac_ext
25941
fi
25942
25943
25944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
25945
$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
25946
25947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
25948
$as_echo_n "checking if edata is defined by the compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25949
if ${grub_cv_check_edata_symbol+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25950
  $as_echo_n "(cached) " >&6
25951
else
25952
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953
/* end confdefs.h.  */
25954
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25955
asm (".globl start; start:");
25956
void __main (void);
25957
void __main (void) {}
25958
int main (void);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25959
int
25960
main (void)
25961
{
25962
asm ("incl edata")
25963
  ;
25964
  return 0;
25965
}
25966
_ACEOF
25967
if ac_fn_c_try_link "$LINENO"; then :
25968
  grub_cv_check_edata_symbol=yes
25969
else
25970
  grub_cv_check_edata_symbol=no
25971
fi
25972
rm -f core conftest.err conftest.$ac_objext \
25973
    conftest$ac_exeext conftest.$ac_ext
25974
fi
25975
25976
25977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
25978
$as_echo "$grub_cv_check_edata_symbol" >&6; }
25979
25980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
25981
$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
25982
if ${grub_cv_check_uscore_edata_symbol+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25983
  $as_echo_n "(cached) " >&6
25984
else
25985
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986
/* end confdefs.h.  */
25987
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
25988
asm (".globl start; start:");
25989
void __main (void);
25990
void __main (void) {}
25991
int main (void);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
25992
int
25993
main (void)
25994
{
25995
asm ("incl _edata")
25996
  ;
25997
  return 0;
25998
}
25999
_ACEOF
26000
if ac_fn_c_try_link "$LINENO"; then :
26001
  grub_cv_check_uscore_edata_symbol=yes
26002
else
26003
  grub_cv_check_uscore_edata_symbol=no
26004
fi
26005
rm -f core conftest.err conftest.$ac_objext \
26006
    conftest$ac_exeext conftest.$ac_ext
26007
fi
26008
26009
26010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
26011
$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
26012
26013
if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26014
  BSS_START_SYMBOL=__bss_start
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26015
elif test "x$grub_cv_check_edata_symbol" = xyes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26016
  BSS_START_SYMBOL=edata
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26017
elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26018
  BSS_START_SYMBOL=_edata
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26019
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
26020
  as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26021
fi
26022
26023
26024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
26025
$as_echo_n "checking if end is defined by the compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26026
if ${grub_cv_check_end_symbol+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26027
  $as_echo_n "(cached) " >&6
26028
else
26029
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26030
/* end confdefs.h.  */
26031
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26032
asm (".globl start; start:");
26033
void __main (void);
26034
void __main (void) {}
26035
int main (void);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26036
int
26037
main (void)
26038
{
26039
asm ("incl end")
26040
  ;
26041
  return 0;
26042
}
26043
_ACEOF
26044
if ac_fn_c_try_link "$LINENO"; then :
26045
  grub_cv_check_end_symbol=yes
26046
else
26047
  grub_cv_check_end_symbol=no
26048
fi
26049
rm -f core conftest.err conftest.$ac_objext \
26050
    conftest$ac_exeext conftest.$ac_ext
26051
fi
26052
26053
26054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
26055
$as_echo "$grub_cv_check_end_symbol" >&6; }
26056
26057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
26058
$as_echo_n "checking if _end is defined by the compiler... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26059
if ${grub_cv_check_uscore_end_symbol+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26060
  $as_echo_n "(cached) " >&6
26061
else
26062
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26063
/* end confdefs.h.  */
26064
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26065
asm (".globl start; start:");
26066
void __main (void);
26067
void __main (void) {}
26068
int main (void);
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26069
int
26070
main (void)
26071
{
26072
asm ("incl _end")
26073
  ;
26074
  return 0;
26075
}
26076
_ACEOF
26077
if ac_fn_c_try_link "$LINENO"; then :
26078
  grub_cv_check_uscore_end_symbol=yes
26079
else
26080
  grub_cv_check_uscore_end_symbol=no
26081
fi
26082
rm -f core conftest.err conftest.$ac_objext \
26083
    conftest$ac_exeext conftest.$ac_ext
26084
fi
26085
26086
26087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
26088
$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
26089
26090
if test "x$grub_cv_check_end_symbol" = xyes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26091
  END_SYMBOL=end
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26092
elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26093
  END_SYMBOL=_end
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26094
else
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
26095
  as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26096
fi
26097
26098
  fi
26099
  CFLAGS="$TARGET_CFLAGS"
26100
26101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
26102
$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26103
if ${grub_cv_i386_asm_prefix_requirement+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26104
  $as_echo_n "(cached) " >&6
26105
else
26106
  cat > conftest.s <<\EOF
26107
	.code16
26108
l1:	addr32	movb	%al, l1
26109
EOF
26110
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26111
if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26112
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113
  (eval $ac_try) 2>&5
26114
  ac_status=$?
26115
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116
  test $ac_status = 0; }; } && test -s conftest.o; then
26117
  grub_cv_i386_asm_prefix_requirement=yes
26118
else
26119
  grub_cv_i386_asm_prefix_requirement=no
26120
fi
26121
26122
rm -f conftest*
26123
fi
26124
26125
26126
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26127
  grub_tmp_addr32="addr32"
26128
  grub_tmp_data32="data32"
26129
else
26130
  grub_tmp_addr32="addr32;"
26131
  grub_tmp_data32="data32;"
26132
fi
26133
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26134
ADDR32=$grub_tmp_addr32
26135
DATA32=$grub_tmp_data32
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26136
26137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
26138
$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
26139
26140
26141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
26142
$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26143
if ${grub_cv_i386_asm_addr32+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26144
  $as_echo_n "(cached) " >&6
26145
else
26146
  cat > conftest.s.in <<\EOF
26147
	.code16
26148
l1:	@ADDR32@	movb	%al, l1
26149
EOF
26150
26151
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26152
  sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
26153
else
26154
  sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
26155
fi
26156
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26157
if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26158
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159
  (eval $ac_try) 2>&5
26160
  ac_status=$?
26161
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162
  test $ac_status = 0; }; } && test -s conftest.o; then
26163
  grub_cv_i386_asm_addr32=yes
26164
else
26165
  grub_cv_i386_asm_addr32=no
26166
fi
26167
26168
rm -f conftest*
26169
fi
26170
26171
26172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
26173
$as_echo "$grub_cv_i386_asm_addr32" >&6; }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26174
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26175
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
26177
$as_echo_n "checking whether nm works... " >&6; }
26178
if ${grub_cv_prog_nm_works+:} false; then :
26179
  $as_echo_n "(cached) " >&6
26180
else
26181
26182
nm_works_tmp_dir="$(mktemp -d "./confXXXXXX")"
26183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184
/* end confdefs.h.  */
26185
26186
int
26187
main (void)
26188
{
26189
26190
  ;
26191
  return 0;
26192
}
26193
_ACEOF
26194
$TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_works_tmp_dir/ef"
26195
if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev/null; then
26196
   grub_cv_prog_nm_works=yes
26197
else
26198
   grub_cv_prog_nm_minus_p=no
26199
fi
26200
rm "$nm_works_tmp_dir/ef"
26201
rmdir "$nm_works_tmp_dir"
26202
26203
fi
26204
26205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
26206
$as_echo "$grub_cv_prog_nm_works" >&6; }
26207
26208
if test "x$grub_cv_prog_nm_works" != xyes; then
26209
  as_fn_error $? "nm does not work" "$LINENO" 5
26210
fi
26211
26212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
26213
$as_echo_n "checking whether nm accepts -P... " >&6; }
26214
if ${grub_cv_prog_nm_minus_p+:} false; then :
26215
  $as_echo_n "(cached) " >&6
26216
else
26217
26218
nm_minus_p_tmp_dir="$(mktemp -d "./confXXXXXX")"
26219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26220
/* end confdefs.h.  */
26221
26222
int
26223
main (void)
26224
{
26225
26226
  ;
26227
  return 0;
26228
}
26229
_ACEOF
26230
$TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_minus_p_tmp_dir/ef"
26231
if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev/null; then
26232
   grub_cv_prog_nm_minus_p=yes
26233
else
26234
   grub_cv_prog_nm_minus_p=no
26235
fi
26236
rm "$nm_minus_p_tmp_dir/ef"
26237
rmdir "$nm_minus_p_tmp_dir"
26238
26239
fi
26240
26241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
26242
$as_echo "$grub_cv_prog_nm_minus_p" >&6; }
26243
26244
if test "x$grub_cv_prog_nm_minus_p" = xyes; then
26245
  TARGET_NMFLAGS_MINUS_P="-P"
26246
else
26247
  TARGET_NMFLAGS_MINUS_P=
26248
fi
26249
26250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
26251
$as_echo_n "checking whether nm accepts --defined-only... " >&6; }
26252
if ${grub_cv_prog_nm_defined_only+:} false; then :
26253
  $as_echo_n "(cached) " >&6
26254
else
26255
26256
nm_defined_only_tmp_dir="$(mktemp -d "./confXXXXXX")"
26257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26258
/* end confdefs.h.  */
26259
26260
int
26261
main (void)
26262
{
26263
26264
  ;
26265
  return 0;
26266
}
26267
_ACEOF
26268
$TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_defined_only_tmp_dir/ef"
26269
if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev/null; then
26270
   grub_cv_prog_nm_defined_only=yes
26271
else
26272
   grub_cv_prog_nm_defined_only=no
26273
fi
26274
rm "$nm_defined_only_tmp_dir/ef"
26275
rmdir "$nm_defined_only_tmp_dir"
26276
26277
fi
26278
26279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
26280
$as_echo "$grub_cv_prog_nm_defined_only" >&6; }
26281
26282
if test "x$grub_cv_prog_nm_defined_only" = xyes; then
26283
  TARGET_NMFLAGS_DEFINED_ONLY=--defined-only
26284
else
26285
  TARGET_NMFLAGS_DEFINED_ONLY=
26286
fi
26287
26288
26289
26290
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26291
if test "$platform" != emu; then
26292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
26293
$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26294
if ${grub_cv_cc_isystem+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26295
  $as_echo_n "(cached) " >&6
26296
else
26297
26298
  SAVED_CPPFLAGS="$CPPFLAGS"
26299
  CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26300
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26301
/* end confdefs.h.  */
26302
#include <stdarg.h>
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26303
#include <stddef.h>
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26304
int va_arg_func (int fixed, va_list args);
26305
int
26306
main (void)
26307
{
26308
26309
  ;
26310
  return 0;
26311
}
26312
_ACEOF
26313
if ac_fn_c_try_compile "$LINENO"; then :
26314
  grub_cv_cc_isystem=yes
26315
else
26316
  grub_cv_cc_isystem=no
26317
fi
26318
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319
  CPPFLAGS="$SAVED_CPPFLAGS"
26320
26321
fi
26322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
26323
$as_echo "$grub_cv_cc_isystem" >&6; }
26324
26325
if test x"$grub_cv_cc_isystem" = xyes ; then
26326
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26327
fi
26328
fi
26329
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
26331
$as_echo_n "checking whether -Wtrampolines work... " >&6; }
26332
if ${grub_cv_cc_wtrampolines+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26333
  $as_echo_n "(cached) " >&6
26334
else
26335
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26336
  CFLAGS="$TARGET_CFLAGS -Wtrampolines -Werror"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338
/* end confdefs.h.  */
26339
#include <stdarg.h>
26340
int va_arg_func (int fixed, va_list args);
26341
int
26342
main (void)
26343
{
26344
26345
  ;
26346
  return 0;
26347
}
26348
_ACEOF
26349
if ac_fn_c_try_compile "$LINENO"; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26350
  grub_cv_cc_wtrampolines=yes
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26351
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26352
  grub_cv_cc_wtrampolines=no
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26353
fi
26354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26355
26356
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
26358
$as_echo "$grub_cv_cc_wtrampolines" >&6; }
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26359
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26360
if test x"$grub_cv_cc_wtrampolines" = xyes ; then
26361
  TARGET_CFLAGS="$TARGET_CFLAGS -Wtrampolines"
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26362
fi
26363
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26364
# Restore the flags.
26365
CC="$tmp_CC"
26366
CFLAGS="$tmp_CFLAGS"
26367
CPPFLAGS="$tmp_CPPFLAGS"
26368
LDFLAGS="$tmp_LDFLAGS"
26369
LIBS="$tmp_LIBS"
26370
26371
#
26372
# Check for options.
26373
#
26374
26375
# Memory manager debugging.
26376
# Check whether --enable-mm-debug was given.
26377
if test "${enable_mm_debug+set}" = set; then :
26378
  enableval=$enable_mm_debug;
26379
$as_echo "#define MM_DEBUG 1" >>confdefs.h
26380
26381
fi
26382
26383
1.15.16 by Colin Watson
Import upstream version 2.00
26384
# Check whether --enable-cache-stats was given.
26385
if test "${enable_cache_stats+set}" = set; then :
26386
  enableval=$enable_cache_stats;
26387
fi
26388
26389
26390
if test x$enable_cache_stats = xyes; then
26391
  DISK_CACHE_STATS=1
26392
else
26393
  DISK_CACHE_STATS=0
26394
fi
26395
26396
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26397
# Check whether --enable-boot-time was given.
26398
if test "${enable_boot_time+set}" = set; then :
26399
  enableval=$enable_boot_time;
26400
fi
26401
26402
26403
if test x$enable_boot_time = xyes; then
26404
  BOOT_TIME_STATS=1
26405
else
26406
  BOOT_TIME_STATS=0
26407
fi
26408
26409
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26410
# Check whether --enable-grub-emu-usb was given.
26411
if test "${enable_grub_emu_usb+set}" = set; then :
26412
  enableval=$enable_grub_emu_usb;
26413
fi
26414
26415
26416
# Check whether --enable-grub-emu-sdl was given.
26417
if test "${enable_grub_emu_sdl+set}" = set; then :
26418
  enableval=$enable_grub_emu_sdl;
26419
fi
26420
26421
26422
# Check whether --enable-grub-emu-pci was given.
26423
if test "${enable_grub_emu_pci+set}" = set; then :
26424
  enableval=$enable_grub_emu_pci;
26425
fi
26426
26427
26428
if test "$platform" = emu; then
26429
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26430
if test x"$enable_grub_emu_usb" != xyes ; then
26431
   grub_emu_usb_excuse="not enabled"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26432
fi
26433
26434
if test x"$enable_grub_emu_pci" = xyes ; then
26435
   grub_emu_usb_excuse="conflicts with PCI support"
26436
fi
26437
26438
if [ x"$grub_emu_usb_excuse" = x ]; then
26439
    # Check for libusb libraries.
26440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
26441
$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26442
if ${ac_cv_lib_usb_usb_claim_interface+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26443
  $as_echo_n "(cached) " >&6
26444
else
26445
  ac_check_lib_save_LIBS=$LIBS
26446
LIBS="-lusb  $LIBS"
26447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448
/* end confdefs.h.  */
26449
26450
/* Override any GCC internal prototype to avoid an error.
26451
   Use char because int might match the return type of a GCC
26452
   builtin and then its argument prototype would still apply.  */
26453
#ifdef __cplusplus
26454
extern "C"
26455
#endif
26456
char usb_claim_interface ();
26457
int
26458
main (void)
26459
{
26460
return usb_claim_interface ();
26461
  ;
26462
  return 0;
26463
}
26464
_ACEOF
26465
if ac_fn_c_try_link "$LINENO"; then :
26466
  ac_cv_lib_usb_usb_claim_interface=yes
26467
else
26468
  ac_cv_lib_usb_usb_claim_interface=no
26469
fi
26470
rm -f core conftest.err conftest.$ac_objext \
26471
    conftest$ac_exeext conftest.$ac_ext
26472
LIBS=$ac_check_lib_save_LIBS
26473
fi
26474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
26475
$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26476
if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26477
  LIBUSB="-lusb"
26478
else
26479
  grub_emu_usb_excuse="need libusb library"
26480
fi
26481
26482
26483
fi
26484
if [ x"$grub_emu_usb_excuse" = x ]; then
26485
    # Check for headers.
26486
    for ac_header in usb.h
26487
do :
26488
  ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
26489
if test "x$ac_cv_header_usb_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26490
  cat >>confdefs.h <<_ACEOF
26491
#define HAVE_USB_H 1
26492
_ACEOF
26493
26494
else
26495
  grub_emu_usb_excuse="need libusb headers"
26496
fi
26497
26498
done
26499
26500
fi
26501
if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26502
  as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled ($grub_emu_usb_excuse)" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26503
fi
26504
if test x"$grub_emu_usb_excuse" = x ; then
26505
enable_grub_emu_usb=yes
26506
else
26507
enable_grub_emu_usb=no
26508
fi
26509
26510
if test x"$enable_grub_emu_sdl" = xno ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26511
  grub_emu_sdl_excuse="explicitly disabled"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26512
fi
26513
if [ x"$grub_emu_sdl_excuse" = x ]; then
26514
    # Check for libSDL libraries.
26515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
26516
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26517
if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26518
  $as_echo_n "(cached) " >&6
26519
else
26520
  ac_check_lib_save_LIBS=$LIBS
26521
LIBS="-lSDL  $LIBS"
26522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523
/* end confdefs.h.  */
26524
26525
/* Override any GCC internal prototype to avoid an error.
26526
   Use char because int might match the return type of a GCC
26527
   builtin and then its argument prototype would still apply.  */
26528
#ifdef __cplusplus
26529
extern "C"
26530
#endif
26531
char SDL_Init ();
26532
int
26533
main (void)
26534
{
26535
return SDL_Init ();
26536
  ;
26537
  return 0;
26538
}
26539
_ACEOF
26540
if ac_fn_c_try_link "$LINENO"; then :
26541
  ac_cv_lib_SDL_SDL_Init=yes
26542
else
26543
  ac_cv_lib_SDL_SDL_Init=no
26544
fi
26545
rm -f core conftest.err conftest.$ac_objext \
26546
    conftest$ac_exeext conftest.$ac_ext
26547
LIBS=$ac_check_lib_save_LIBS
26548
fi
26549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
26550
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26551
if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26552
  LIBSDL="-lSDL"
26553
else
26554
  grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
26555
fi
26556
26557
26558
fi
26559
26560
if [ x"$grub_emu_sdl_excuse" = x ]; then
26561
    # Check for headers.
26562
    for ac_header in SDL/SDL.h
26563
do :
26564
  ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
26565
if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26566
  cat >>confdefs.h <<_ACEOF
26567
#define HAVE_SDL_SDL_H 1
26568
_ACEOF
26569
26570
else
26571
  grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
26572
fi
26573
26574
done
26575
26576
fi
26577
26578
if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26579
  as_fn_error $? "SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26580
fi
26581
if test x"$grub_emu_sdl_excuse" = x ; then
26582
enable_grub_emu_sdl=yes
26583
else
26584
enable_grub_emu_sdl=no
26585
fi
26586
26587
if test x"$enable_grub_emu_pci" != xyes ; then
26588
   grub_emu_pci_excuse="not enabled"
26589
fi
26590
26591
if test x"$enable_grub_emu_usb" = xyes ; then
26592
   grub_emu_pci_excuse="conflicts with USB support"
26593
fi
26594
26595
if [ x"$grub_emu_pci_excuse" = x ]; then
26596
      # Check for libpci libraries.
26597
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
26598
$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26599
if ${ac_cv_lib_pciaccess_pci_system_init+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26600
  $as_echo_n "(cached) " >&6
26601
else
26602
  ac_check_lib_save_LIBS=$LIBS
26603
LIBS="-lpciaccess  $LIBS"
26604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26605
/* end confdefs.h.  */
26606
26607
/* Override any GCC internal prototype to avoid an error.
26608
   Use char because int might match the return type of a GCC
26609
   builtin and then its argument prototype would still apply.  */
26610
#ifdef __cplusplus
26611
extern "C"
26612
#endif
26613
char pci_system_init ();
26614
int
26615
main (void)
26616
{
26617
return pci_system_init ();
26618
  ;
26619
  return 0;
26620
}
26621
_ACEOF
26622
if ac_fn_c_try_link "$LINENO"; then :
26623
  ac_cv_lib_pciaccess_pci_system_init=yes
26624
else
26625
  ac_cv_lib_pciaccess_pci_system_init=no
26626
fi
26627
rm -f core conftest.err conftest.$ac_objext \
26628
    conftest$ac_exeext conftest.$ac_ext
26629
LIBS=$ac_check_lib_save_LIBS
26630
fi
26631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
26632
$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26633
if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26634
  LIBPCIACCESS="-lpciaccess"
26635
else
26636
  grub_emu_pci_excuse="need libpciaccess library"
26637
fi
26638
26639
26640
fi
26641
if [ x"$grub_emu_pci_excuse" = x ]; then
26642
    # Check for headers.
26643
    for ac_header in pci/pci.h
26644
do :
26645
  ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
26646
if test "x$ac_cv_header_pci_pci_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26647
  cat >>confdefs.h <<_ACEOF
26648
#define HAVE_PCI_PCI_H 1
26649
_ACEOF
26650
26651
else
26652
  grub_emu_pci_excuse="need libpciaccess headers"
26653
fi
26654
26655
done
26656
26657
fi
26658
26659
if test x"$grub_emu_pci_excuse" = x ; then
26660
enable_grub_emu_pci=yes
26661
else
26662
26663
enable_grub_emu_pci=no
26664
fi
26665
26666
26667
26668
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26669
26670
else
26671
26672
# Ignore --enable-emu-* if platform is not emu
26673
enable_grub_emu_sdl=no
26674
enable_grub_emu_usb=no
26675
enable_grub_emu_pci=no
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26676
fi
26677
26678
# Check whether --enable-grub-mkfont was given.
26679
if test "${enable_grub_mkfont+set}" = set; then :
26680
  enableval=$enable_grub_mkfont;
26681
fi
26682
26683
if test x"$enable_grub_mkfont" = xno ; then
26684
  grub_mkfont_excuse="explicitly disabled"
26685
fi
26686
26687
if test x"$grub_mkfont_excuse" = x ; then
26688
  # Check for freetype libraries.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26689
  if test -n "$ac_tool_prefix"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26690
  for ac_prog in freetype-config
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26691
  do
26692
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26693
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26695
$as_echo_n "checking for $ac_word... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
26696
if ${ac_cv_prog_FREETYPE+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26697
  $as_echo_n "(cached) " >&6
26698
else
26699
  if test -n "$FREETYPE"; then
26700
  ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
26701
else
26702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26703
for as_dir in $PATH
26704
do
26705
  IFS=$as_save_IFS
26706
  test -z "$as_dir" && as_dir=.
26707
    for ac_exec_ext in '' $ac_executable_extensions; do
1.15.16 by Colin Watson
Import upstream version 2.00
26708
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26709
    ac_cv_prog_FREETYPE="$ac_tool_prefix$ac_prog"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26710
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26711
    break 2
26712
  fi
26713
done
26714
  done
26715
IFS=$as_save_IFS
26716
26717
fi
26718
fi
26719
FREETYPE=$ac_cv_prog_FREETYPE
26720
if test -n "$FREETYPE"; then
26721
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
26722
$as_echo "$FREETYPE" >&6; }
26723
else
26724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26725
$as_echo "no" >&6; }
26726
fi
26727
26728
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26729
    test -n "$FREETYPE" && break
26730
  done
26731
fi
26732
if test -z "$FREETYPE"; then
26733
  ac_ct_FREETYPE=$FREETYPE
26734
  for ac_prog in freetype-config
26735
do
26736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
26737
set dummy $ac_prog; ac_word=$2
26738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26739
$as_echo_n "checking for $ac_word... " >&6; }
26740
if ${ac_cv_prog_ac_ct_FREETYPE+:} false; then :
26741
  $as_echo_n "(cached) " >&6
26742
else
26743
  if test -n "$ac_ct_FREETYPE"; then
26744
  ac_cv_prog_ac_ct_FREETYPE="$ac_ct_FREETYPE" # Let the user override the test.
26745
else
26746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26747
for as_dir in $PATH
26748
do
26749
  IFS=$as_save_IFS
26750
  test -z "$as_dir" && as_dir=.
26751
    for ac_exec_ext in '' $ac_executable_extensions; do
26752
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26753
    ac_cv_prog_ac_ct_FREETYPE="$ac_prog"
26754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26755
    break 2
26756
  fi
26757
done
26758
  done
26759
IFS=$as_save_IFS
26760
26761
fi
26762
fi
26763
ac_ct_FREETYPE=$ac_cv_prog_ac_ct_FREETYPE
26764
if test -n "$ac_ct_FREETYPE"; then
26765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FREETYPE" >&5
26766
$as_echo "$ac_ct_FREETYPE" >&6; }
26767
else
26768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26769
$as_echo "no" >&6; }
26770
fi
26771
26772
26773
  test -n "$ac_ct_FREETYPE" && break
26774
done
26775
26776
  if test "x$ac_ct_FREETYPE" = x; then
26777
    FREETYPE=""
26778
  else
26779
    case $cross_compiling:$ac_tool_warned in
26780
yes:)
26781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26782
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26783
ac_tool_warned=yes ;;
26784
esac
26785
    FREETYPE=$ac_ct_FREETYPE
26786
  fi
26787
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26788
26789
  if test "x$FREETYPE" = x ; then
26790
    grub_mkfont_excuse="need freetype2 library"
26791
  fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26792
fi
26793
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26794
unset ac_cv_header_ft2build_h
26795
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
26796
if test x"$grub_mkfont_excuse" = x ; then
26797
  # Check for freetype libraries.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26798
  freetype_cflags=`$FREETYPE --cflags`
26799
  freetype_libs=`$FREETYPE --libs`
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26800
  SAVED_CPPFLAGS="$CPPFLAGS"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26801
  SAVED_LIBS="$LIBS"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26802
  CPPFLAGS="$CPPFLAGS $freetype_cflags"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26803
  LIBS="$LIBS $freetype_libs"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26804
  for ac_header in ft2build.h
26805
do :
26806
  ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
26807
if test "x$ac_cv_header_ft2build_h" = xyes; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26808
  cat >>confdefs.h <<_ACEOF
26809
#define HAVE_FT2BUILD_H 1
26810
_ACEOF
26811
26812
else
26813
  grub_mkfont_excuse="need freetype2 headers"
26814
fi
26815
26816
done
26817
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26818
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819
/* end confdefs.h.  */
26820
26821
/* Override any GCC internal prototype to avoid an error.
26822
   Use char because int might match the return type of a GCC
26823
   builtin and then its argument prototype would still apply.  */
26824
#ifdef __cplusplus
26825
extern "C"
26826
#endif
26827
char FT_Load_Glyph ();
26828
int
26829
main (void)
26830
{
26831
return FT_Load_Glyph ();
26832
  ;
26833
  return 0;
26834
}
26835
_ACEOF
26836
if ac_fn_c_try_link "$LINENO"; then :
26837
26838
else
26839
  grub_mkfont_excuse="freetype2 library unusable"
26840
fi
26841
rm -f core conftest.err conftest.$ac_objext \
26842
    conftest$ac_exeext conftest.$ac_ext
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26843
  CPPFLAGS="$SAVED_CPPFLAGS"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26844
  LIBS="$SAVED_LIBS"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26845
fi
26846
26847
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
26848
  as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
26849
fi
26850
if test x"$grub_mkfont_excuse" = x ; then
26851
enable_grub_mkfont=yes
26852
else
26853
enable_grub_mkfont=no
26854
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
26855
26856
26857
26858
26859
SAVED_CC="$CC"
26860
SAVED_CPP="$CPP"
26861
SAVED_CFLAGS="$CFLAGS"
26862
SAVED_CPPFLAGS="$CPPFLAGS"
26863
CC="$BUILD_CC"
26864
CPP="$BUILD_CPP"
26865
CFLAGS="$BUILD_CFLAGS"
26866
CPPFLAGS="$BUILD_CPPFLAGS"
26867
26868
unset ac_cv_c_bigendian
26869
unset ac_cv_header_ft2build_h
26870
26871
if ac_fn_c_compute_int "$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P"        ""; then :
26872
26873
fi
26874
26875
if ac_fn_c_compute_int "$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG"        ""; then :
26876
26877
fi
26878
26879
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26880
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26881
if ${ac_cv_c_bigendian+:} false; then :
26882
  $as_echo_n "(cached) " >&6
26883
else
26884
  ac_cv_c_bigendian=unknown
26885
    # See if we're dealing with a universal compiler.
26886
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887
/* end confdefs.h.  */
26888
#ifndef __APPLE_CC__
26889
	       not a universal capable compiler
26890
	     #endif
26891
	     typedef int dummy;
26892
26893
_ACEOF
26894
if ac_fn_c_try_compile "$LINENO"; then :
26895
26896
	# Check for potential -arch flags.  It is not universal unless
26897
	# there are at least two -arch flags with different values.
26898
	ac_arch=
26899
	ac_prev=
26900
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26901
	 if test -n "$ac_prev"; then
26902
	   case $ac_word in
26903
	     i?86 | x86_64 | ppc | ppc64)
26904
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26905
		 ac_arch=$ac_word
26906
	       else
26907
		 ac_cv_c_bigendian=universal
26908
		 break
26909
	       fi
26910
	       ;;
26911
	   esac
26912
	   ac_prev=
26913
	 elif test "x$ac_word" = "x-arch"; then
26914
	   ac_prev=arch
26915
	 fi
26916
       done
26917
fi
26918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919
    if test $ac_cv_c_bigendian = unknown; then
26920
      # See if sys/param.h defines the BYTE_ORDER macro.
26921
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922
/* end confdefs.h.  */
26923
#include <sys/types.h>
26924
	     #include <sys/param.h>
26925
26926
int
26927
main (void)
26928
{
26929
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26930
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26931
		     && LITTLE_ENDIAN)
26932
	      bogus endian macros
26933
	     #endif
26934
26935
  ;
26936
  return 0;
26937
}
26938
_ACEOF
26939
if ac_fn_c_try_compile "$LINENO"; then :
26940
  # It does; now see whether it defined to BIG_ENDIAN or not.
26941
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26942
/* end confdefs.h.  */
26943
#include <sys/types.h>
26944
		#include <sys/param.h>
26945
26946
int
26947
main (void)
26948
{
26949
#if BYTE_ORDER != BIG_ENDIAN
26950
		 not big endian
26951
		#endif
26952
26953
  ;
26954
  return 0;
26955
}
26956
_ACEOF
26957
if ac_fn_c_try_compile "$LINENO"; then :
26958
  ac_cv_c_bigendian=yes
26959
else
26960
  ac_cv_c_bigendian=no
26961
fi
26962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963
fi
26964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965
    fi
26966
    if test $ac_cv_c_bigendian = unknown; then
26967
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26968
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969
/* end confdefs.h.  */
26970
#include <limits.h>
26971
26972
int
26973
main (void)
26974
{
26975
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26976
	      bogus endian macros
26977
	     #endif
26978
26979
  ;
26980
  return 0;
26981
}
26982
_ACEOF
26983
if ac_fn_c_try_compile "$LINENO"; then :
26984
  # It does; now see whether it defined to _BIG_ENDIAN or not.
26985
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26986
/* end confdefs.h.  */
26987
#include <limits.h>
26988
26989
int
26990
main (void)
26991
{
26992
#ifndef _BIG_ENDIAN
26993
		 not big endian
26994
		#endif
26995
26996
  ;
26997
  return 0;
26998
}
26999
_ACEOF
27000
if ac_fn_c_try_compile "$LINENO"; then :
27001
  ac_cv_c_bigendian=yes
27002
else
27003
  ac_cv_c_bigendian=no
27004
fi
27005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006
fi
27007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27008
    fi
27009
    if test $ac_cv_c_bigendian = unknown; then
27010
      # Compile a test program.
27011
      if test "$cross_compiling" = yes; then :
27012
  # Try to guess by grepping values from an object file.
27013
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014
/* end confdefs.h.  */
27015
short int ascii_mm[] =
27016
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27017
		short int ascii_ii[] =
27018
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27019
		int use_ascii (int i) {
27020
		  return ascii_mm[i] + ascii_ii[i];
27021
		}
27022
		short int ebcdic_ii[] =
27023
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27024
		short int ebcdic_mm[] =
27025
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27026
		int use_ebcdic (int i) {
27027
		  return ebcdic_mm[i] + ebcdic_ii[i];
27028
		}
27029
		extern int foo;
27030
27031
int
27032
main (void)
27033
{
27034
return use_ascii (foo) == use_ebcdic (foo);
27035
  ;
27036
  return 0;
27037
}
27038
_ACEOF
27039
if ac_fn_c_try_compile "$LINENO"; then :
27040
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27041
	      ac_cv_c_bigendian=yes
27042
	    fi
27043
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27044
	      if test "$ac_cv_c_bigendian" = unknown; then
27045
		ac_cv_c_bigendian=no
27046
	      else
27047
		# finding both strings is unlikely to happen, but who knows?
27048
		ac_cv_c_bigendian=unknown
27049
	      fi
27050
	    fi
27051
fi
27052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053
else
27054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055
/* end confdefs.h.  */
27056
$ac_includes_default
27057
int
27058
main (void)
27059
{
27060
27061
	     /* Are we little or big endian?  From Harbison&Steele.  */
27062
	     union
27063
	     {
27064
	       long int l;
27065
	       char c[sizeof (long int)];
27066
	     } u;
27067
	     u.l = 1;
27068
	     return u.c[sizeof (long int) - 1] == 1;
27069
27070
  ;
27071
  return 0;
27072
}
27073
_ACEOF
27074
if ac_fn_c_try_run "$LINENO"; then :
27075
  ac_cv_c_bigendian=no
27076
else
27077
  ac_cv_c_bigendian=yes
27078
fi
27079
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27080
  conftest.$ac_objext conftest.beam conftest.$ac_ext
27081
fi
27082
27083
    fi
27084
fi
27085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27086
$as_echo "$ac_cv_c_bigendian" >&6; }
27087
 case $ac_cv_c_bigendian in #(
27088
   yes)
27089
     BUILD_WORDS_BIGENDIAN=1;; #(
27090
   no)
27091
     BUILD_WORDS_BIGENDIAN=0 ;; #(
27092
   universal)
27093
     BUILD_WORDS_BIGENDIAN=err
27094
     ;; #(
27095
   *)
27096
     BUILD_WORDS_BIGENDIAN=err ;;
27097
 esac
27098
27099
27100
if test x$BUILD_WORDS_BIGENDIAN = xerr ; then
27101
   as_fn_error $? "couldnt determine build endianness" "$LINENO" 5
27102
fi
27103
27104
27105
27106
27107
27108
if test x"$grub_build_mkfont_excuse" = x ; then
27109
  # Check for freetype libraries.
27110
  for ac_prog in freetype-config
27111
do
27112
  # Extract the first word of "$ac_prog", so it can be a program name with args.
27113
set dummy $ac_prog; ac_word=$2
27114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27115
$as_echo_n "checking for $ac_word... " >&6; }
27116
if ${ac_cv_prog_BUILD_FREETYPE+:} false; then :
27117
  $as_echo_n "(cached) " >&6
27118
else
27119
  if test -n "$BUILD_FREETYPE"; then
27120
  ac_cv_prog_BUILD_FREETYPE="$BUILD_FREETYPE" # Let the user override the test.
27121
else
27122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27123
for as_dir in $PATH
27124
do
27125
  IFS=$as_save_IFS
27126
  test -z "$as_dir" && as_dir=.
27127
    for ac_exec_ext in '' $ac_executable_extensions; do
27128
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27129
    ac_cv_prog_BUILD_FREETYPE="$ac_prog"
27130
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27131
    break 2
27132
  fi
27133
done
27134
  done
27135
IFS=$as_save_IFS
27136
27137
fi
27138
fi
27139
BUILD_FREETYPE=$ac_cv_prog_BUILD_FREETYPE
27140
if test -n "$BUILD_FREETYPE"; then
27141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_FREETYPE" >&5
27142
$as_echo "$BUILD_FREETYPE" >&6; }
27143
else
27144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27145
$as_echo "no" >&6; }
27146
fi
27147
27148
27149
  test -n "$BUILD_FREETYPE" && break
27150
done
27151
27152
  if test "x$BUILD_FREETYPE" = x ; then
27153
    grub_build_mkfont_excuse="need freetype2 library"
27154
  fi
27155
fi
27156
27157
if test x"$grub_build_mkfont_excuse" = x ; then
27158
  # Check for freetype libraries.
27159
  build_freetype_cflags=`$BUILD_FREETYPE --cflags`
27160
  build_freetype_libs=`$BUILD_FREETYPE --libs`
27161
  SAVED_CPPFLAGS_2="$CPPFLAGS"
27162
  SAVED_LIBS="$LIBS"
27163
  CPPFLAGS="$CPPFLAGS $build_freetype_cflags"
27164
  LIBS="$LIBS $build_freetype_libs"
27165
  for ac_header in ft2build.h
27166
do :
27167
  ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27168
if test "x$ac_cv_header_ft2build_h" = xyes; then :
27169
  cat >>confdefs.h <<_ACEOF
27170
#define HAVE_FT2BUILD_H 1
27171
_ACEOF
27172
27173
else
27174
  grub_build_mkfont_excuse="need freetype2 headers"
27175
fi
27176
27177
done
27178
27179
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27180
/* end confdefs.h.  */
27181
27182
/* Override any GCC internal prototype to avoid an error.
27183
   Use char because int might match the return type of a GCC
27184
   builtin and then its argument prototype would still apply.  */
27185
#ifdef __cplusplus
27186
extern "C"
27187
#endif
27188
char FT_Load_Glyph ();
27189
int
27190
main (void)
27191
{
27192
return FT_Load_Glyph ();
27193
  ;
27194
  return 0;
27195
}
27196
_ACEOF
27197
if ac_fn_c_try_link "$LINENO"; then :
27198
27199
else
27200
  grub_build_mkfont_excuse="freetype2 library unusable"
27201
fi
27202
rm -f core conftest.err conftest.$ac_objext \
27203
    conftest$ac_exeext conftest.$ac_ext
27204
  LIBS="$SAVED_LIBS"
27205
  CPPFLAGS="$SAVED_CPPFLAGS_2"
27206
fi
27207
27208
if test x"$enable_build_grub_mkfont" = xyes && test x"$grub_build_mkfont_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27209
  as_fn_error $? "build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27210
fi
27211
if test x"$grub_build_mkfont_excuse" = x ; then
27212
  enable_build_grub_mkfont=yes
27213
else
27214
  enable_build_grub_mkfont=no
27215
fi
27216
if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 || test "x$platform" = xcoreboot ); then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27217
  if test x"$grub_build_mkfont_excuse" = x ; then
27218
    as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont" "$LINENO" 5
27219
  else
27220
    as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
27221
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27222
fi
27223
27224
27225
27226
27227
CC="$SAVED_CC"
27228
CPP="$SAVED_CPP"
27229
CFLAGS="$SAVED_CFLAGS"
27230
CPPFLAGS="$SAVED_CPPFLAGS"
1.15.16 by Colin Watson
Import upstream version 2.00
27231
27232
27233
DJVU_FONT_SOURCE=
27234
27235
starfield_excuse=
27236
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27237
# Check whether --enable-grub-themes was given.
27238
if test "${enable_grub_themes+set}" = set; then :
27239
  enableval=$enable_grub_themes;
27240
fi
27241
27242
if test x"$enable_grub_themes" = xno ; then
27243
  starfield_excuse="explicitly disabled"
27244
fi
27245
27246
if test x"$starfield_excuse" = x && test x"$enable_build_grub_mkfont" = xno ; then
27247
  starfield_excuse="No build-time grub-mkfont"
1.15.16 by Colin Watson
Import upstream version 2.00
27248
fi
27249
27250
if test x"$starfield_excuse" = x; then
27251
   for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27252
     for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu; do
27253
        if test -f "$dir/DejaVuSans.$ext"; then
27254
          DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
27255
          break 2
27256
        fi
27257
     done
27258
   done
27259
27260
   if test "x$DJVU_FONT_SOURCE" = x; then
27261
     starfield_excuse="No DejaVu found"
27262
   fi
27263
fi
27264
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27265
if test x"$enable_grub_themes" = xyes &&  test x"$starfield_excuse" != x; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27266
   as_fn_error $? "themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27267
fi
27268
27269
27270
27271
FONT_SOURCE=
27272
27273
for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27274
  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont /usr/share/fonts/uni /usr/share/fonts/truetype/unifont /usr/share/fonts/misc; do
27275
    if test -f "$dir/unifont.$ext"; then
27276
      md5="$(md5sum "$dir/unifont.$ext"|awk '{ print $1; }')"
27277
      # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
27278
      if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 || test "$md5" = 28f2565c7a41d8d407e2551159385edb || test "$md5" = dae5e588461b3b92b87b6ffee734f936 || test "$md5" = 4a3d687aa5bb329ed05f4263a1016791 ; then
27279
        continue;
27280
      fi
27281
      FONT_SOURCE="$dir/unifont.$ext"
27282
      break 2
27283
    fi
27284
  done
27285
done
27286
27287
if test x"$enable_build_grub_mkfont" = xno ; then
27288
  FONT_SOURCE=
27289
fi
27290
27291
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 || test "x$platform" = xcoreboot ); then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27292
  if test x"$grub_build_mkfont_excuse" = x ; then
27293
    as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont" "$LINENO" 5
27294
  else
27295
    as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
27296
  fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27297
fi
27298
27299
27300
27301
if test x"$FONT_SOURCE" = x &&  test x"$DJVU_FONT_SOURCE" = x && test x"$grub_build_mkfont_excuse" = x; then
27302
  grub_build_mkfont_excuse="no fonts"
27303
fi
1.15.16 by Colin Watson
Import upstream version 2.00
27304
27305
27306
# Check whether --enable-grub-mount was given.
27307
if test "${enable_grub_mount+set}" = set; then :
27308
  enableval=$enable_grub_mount;
27309
fi
27310
27311
if test x"$enable_grub_mount" = xno ; then
27312
  grub_mount_excuse="explicitly disabled"
27313
fi
27314
27315
if test x"$grub_mount_excuse" = x ; then
27316
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
27317
$as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
27318
if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
27319
  $as_echo_n "(cached) " >&6
27320
else
27321
  ac_check_lib_save_LIBS=$LIBS
27322
LIBS="-lfuse  $LIBS"
27323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324
/* end confdefs.h.  */
27325
27326
/* Override any GCC internal prototype to avoid an error.
27327
   Use char because int might match the return type of a GCC
27328
   builtin and then its argument prototype would still apply.  */
27329
#ifdef __cplusplus
27330
extern "C"
27331
#endif
27332
char fuse_main_real ();
27333
int
27334
main (void)
27335
{
27336
return fuse_main_real ();
27337
  ;
27338
  return 0;
27339
}
27340
_ACEOF
27341
if ac_fn_c_try_link "$LINENO"; then :
27342
  ac_cv_lib_fuse_fuse_main_real=yes
27343
else
27344
  ac_cv_lib_fuse_fuse_main_real=no
27345
fi
27346
rm -f core conftest.err conftest.$ac_objext \
27347
    conftest$ac_exeext conftest.$ac_ext
27348
LIBS=$ac_check_lib_save_LIBS
27349
fi
27350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
27351
$as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
27352
if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
27353
  cat >>confdefs.h <<_ACEOF
27354
#define HAVE_LIBFUSE 1
27355
_ACEOF
27356
27357
  LIBS="-lfuse $LIBS"
27358
27359
else
27360
  grub_mount_excuse="need FUSE library"
27361
fi
27362
27363
fi
27364
27365
if test x"$grub_mount_excuse" = x ; then
27366
  # Check for fuse headers.
27367
  SAVED_CPPFLAGS="$CPPFLAGS"
27368
  CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"
27369
  for ac_header in fuse/fuse.h
27370
do :
27371
  ac_fn_c_check_header_mongrel "$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
27372
if test "x$ac_cv_header_fuse_fuse_h" = xyes; then :
27373
  cat >>confdefs.h <<_ACEOF
27374
#define HAVE_FUSE_FUSE_H 1
27375
_ACEOF
27376
27377
else
27378
  grub_mount_excuse="need FUSE headers"
27379
fi
27380
27381
done
27382
27383
  CPPFLAGS="$SAVED_CPPFLAGS"
27384
fi
27385
27386
if test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27387
  as_fn_error $? "grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
1.15.16 by Colin Watson
Import upstream version 2.00
27388
fi
27389
if test x"$grub_mount_excuse" = x ; then
27390
enable_grub_mount=yes
27391
else
27392
enable_grub_mount=no
27393
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27394
27395
27396
# Check whether --enable-device-mapper was given.
27397
if test "${enable_device_mapper+set}" = set; then :
27398
  enableval=$enable_device_mapper;
27399
fi
27400
27401
if test x"$enable_device_mapper" = xno ; then
27402
  device_mapper_excuse="explicitly disabled"
27403
fi
27404
27405
if test x"$device_mapper_excuse" = x ; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27406
  # Check for device-mapper header.
27407
  ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
1.15.15 by Colin Watson
Import upstream version 1.99
27408
if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27409
27410
else
27411
  device_mapper_excuse="need libdevmapper header"
27412
fi
27413
27414
27415
fi
27416
27417
if test x"$device_mapper_excuse" = x ; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27418
  # Check for device-mapper library.
27419
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
27420
$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27421
if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27422
  $as_echo_n "(cached) " >&6
27423
else
27424
  ac_check_lib_save_LIBS=$LIBS
27425
LIBS="-ldevmapper  $LIBS"
27426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27427
/* end confdefs.h.  */
27428
27429
/* Override any GCC internal prototype to avoid an error.
27430
   Use char because int might match the return type of a GCC
27431
   builtin and then its argument prototype would still apply.  */
27432
#ifdef __cplusplus
27433
extern "C"
27434
#endif
27435
char dm_task_create ();
27436
int
27437
main (void)
27438
{
27439
return dm_task_create ();
27440
  ;
27441
  return 0;
27442
}
27443
_ACEOF
27444
if ac_fn_c_try_link "$LINENO"; then :
27445
  ac_cv_lib_devmapper_dm_task_create=yes
27446
else
27447
  ac_cv_lib_devmapper_dm_task_create=no
27448
fi
27449
rm -f core conftest.err conftest.$ac_objext \
27450
    conftest$ac_exeext conftest.$ac_ext
27451
LIBS=$ac_check_lib_save_LIBS
27452
fi
27453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
27454
$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27455
if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27456
  cat >>confdefs.h <<_ACEOF
27457
#define HAVE_LIBDEVMAPPER 1
27458
_ACEOF
27459
27460
  LIBS="-ldevmapper $LIBS"
27461
27462
else
27463
  device_mapper_excuse="need devmapper library"
27464
fi
27465
27466
fi
27467
27468
if test x"$device_mapper_excuse" = x ; then
27469
  # Check for device-mapper library.
27470
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
27471
$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27472
if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27473
  $as_echo_n "(cached) " >&6
27474
else
27475
  ac_check_lib_save_LIBS=$LIBS
27476
LIBS="-ldevmapper  $LIBS"
27477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478
/* end confdefs.h.  */
27479
27480
/* Override any GCC internal prototype to avoid an error.
27481
   Use char because int might match the return type of a GCC
27482
   builtin and then its argument prototype would still apply.  */
27483
#ifdef __cplusplus
27484
extern "C"
27485
#endif
27486
char dm_log_with_errno_init ();
27487
int
27488
main (void)
27489
{
27490
return dm_log_with_errno_init ();
27491
  ;
27492
  return 0;
27493
}
27494
_ACEOF
27495
if ac_fn_c_try_link "$LINENO"; then :
27496
  ac_cv_lib_devmapper_dm_log_with_errno_init=yes
27497
else
27498
  ac_cv_lib_devmapper_dm_log_with_errno_init=no
27499
fi
27500
rm -f core conftest.err conftest.$ac_objext \
27501
    conftest$ac_exeext conftest.$ac_ext
27502
LIBS=$ac_check_lib_save_LIBS
27503
fi
27504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
27505
$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27506
if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27507
  cat >>confdefs.h <<_ACEOF
27508
#define HAVE_LIBDEVMAPPER 1
27509
_ACEOF
27510
27511
  LIBS="-ldevmapper $LIBS"
27512
27513
else
27514
  device_mapper_excuse="need devmapper library"
27515
fi
27516
27517
fi
27518
27519
if test x"$device_mapper_excuse" = x ; then
27520
   LIBDEVMAPPER="-ldevmapper";
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27521
27522
$as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
27523
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27524
fi
27525
27526
27527
1.15.15 by Colin Watson
Import upstream version 1.99
27528
LIBGEOM=
27529
if test x$host_kernel = xkfreebsd; then
27530
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
27531
$as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
27532
if ${ac_cv_lib_geom_geom_gettree+:} false; then :
27533
  $as_echo_n "(cached) " >&6
27534
else
27535
  ac_check_lib_save_LIBS=$LIBS
27536
LIBS="-lgeom  $LIBS"
27537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27538
/* end confdefs.h.  */
27539
27540
/* Override any GCC internal prototype to avoid an error.
27541
   Use char because int might match the return type of a GCC
27542
   builtin and then its argument prototype would still apply.  */
27543
#ifdef __cplusplus
27544
extern "C"
27545
#endif
27546
char geom_gettree ();
27547
int
27548
main (void)
27549
{
27550
return geom_gettree ();
27551
  ;
27552
  return 0;
27553
}
27554
_ACEOF
27555
if ac_fn_c_try_link "$LINENO"; then :
27556
  ac_cv_lib_geom_geom_gettree=yes
27557
else
27558
  ac_cv_lib_geom_geom_gettree=no
27559
fi
27560
rm -f core conftest.err conftest.$ac_objext \
27561
    conftest$ac_exeext conftest.$ac_ext
27562
LIBS=$ac_check_lib_save_LIBS
27563
fi
27564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
27565
$as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
27566
if test "x$ac_cv_lib_geom_geom_gettree" = xyes; then :
27567
  cat >>confdefs.h <<_ACEOF
27568
#define HAVE_LIBGEOM 1
27569
_ACEOF
27570
27571
  LIBS="-lgeom $LIBS"
27572
27573
else
27574
  as_fn_error $? "Your platform requires libgeom" "$LINENO" 5
27575
fi
27576
27577
  LIBGEOM="-lgeom"
27578
fi
27579
27580
27581
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27582
# Check whether --enable-liblzma was given.
27583
if test "${enable_liblzma+set}" = set; then :
27584
  enableval=$enable_liblzma;
27585
fi
27586
27587
if test x"$enable_liblzma" = xno ; then
27588
  liblzma_excuse="explicitly disabled"
27589
fi
27590
27591
if test x"$liblzma_excuse" = x ; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
27593
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27594
if ${ac_cv_lib_lzma_lzma_code+:} false; then :
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27595
  $as_echo_n "(cached) " >&6
27596
else
27597
  ac_check_lib_save_LIBS=$LIBS
27598
LIBS="-llzma  $LIBS"
27599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600
/* end confdefs.h.  */
27601
27602
/* Override any GCC internal prototype to avoid an error.
27603
   Use char because int might match the return type of a GCC
27604
   builtin and then its argument prototype would still apply.  */
27605
#ifdef __cplusplus
27606
extern "C"
27607
#endif
27608
char lzma_code ();
27609
int
27610
main (void)
27611
{
27612
return lzma_code ();
27613
  ;
27614
  return 0;
27615
}
27616
_ACEOF
27617
if ac_fn_c_try_link "$LINENO"; then :
27618
  ac_cv_lib_lzma_lzma_code=yes
27619
else
27620
  ac_cv_lib_lzma_lzma_code=no
27621
fi
27622
rm -f core conftest.err conftest.$ac_objext \
27623
    conftest$ac_exeext conftest.$ac_ext
27624
LIBS=$ac_check_lib_save_LIBS
27625
fi
27626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
27627
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27628
if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27629
  cat >>confdefs.h <<_ACEOF
27630
#define HAVE_LIBLZMA 1
27631
_ACEOF
27632
27633
  LIBS="-llzma $LIBS"
27634
27635
else
27636
  liblzma_excuse="need lzma library"
27637
fi
27638
27639
fi
27640
if test x"$liblzma_excuse" = x ; then
27641
ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
27642
if test "x$ac_cv_header_lzma_h" = xyes; then :
27643
27644
else
27645
  liblzma_excuse="need lzma header"
27646
fi
27647
27648
27649
fi
27650
27651
if test x"$enable_liblzma" = xyes && test x"$liblzma_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27652
  as_fn_error $? "liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27653
fi
27654
27655
27656
if test x"$liblzma_excuse" = x ; then
27657
   LIBLZMA="-llzma"
27658
27659
$as_echo "#define USE_LIBLZMA 1" >>confdefs.h
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27660
27661
fi
27662
27663
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27664
1.15.16 by Colin Watson
Import upstream version 2.00
27665
# Check whether --enable-libzfs was given.
27666
if test "${enable_libzfs+set}" = set; then :
27667
  enableval=$enable_libzfs;
27668
fi
27669
27670
if test x"$enable_libzfs" = xno ; then
27671
  libzfs_excuse="explicitly disabled"
27672
fi
27673
27674
if test x"$libzfs_excuse" = x ; then
27675
  # Only check for system headers if libzfs support has not been disabled.
27676
  for ac_header in libzfs.h libnvpair.h
27677
do :
27678
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27679
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27680
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27681
  cat >>confdefs.h <<_ACEOF
27682
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27683
_ACEOF
27684
27685
fi
27686
27687
done
27688
27689
fi
27690
27691
if test x"$libzfs_excuse" = x ; then
27692
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27693
$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27694
if ${ac_cv_lib_zfs_libzfs_init+:} false; then :
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27695
  $as_echo_n "(cached) " >&6
27696
else
27697
  ac_check_lib_save_LIBS=$LIBS
27698
LIBS="-lzfs  $LIBS"
27699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27700
/* end confdefs.h.  */
27701
27702
/* Override any GCC internal prototype to avoid an error.
27703
   Use char because int might match the return type of a GCC
27704
   builtin and then its argument prototype would still apply.  */
27705
#ifdef __cplusplus
27706
extern "C"
27707
#endif
27708
char libzfs_init ();
27709
int
27710
main (void)
27711
{
27712
return libzfs_init ();
27713
  ;
27714
  return 0;
27715
}
27716
_ACEOF
27717
if ac_fn_c_try_link "$LINENO"; then :
27718
  ac_cv_lib_zfs_libzfs_init=yes
27719
else
27720
  ac_cv_lib_zfs_libzfs_init=no
27721
fi
27722
rm -f core conftest.err conftest.$ac_objext \
27723
    conftest$ac_exeext conftest.$ac_ext
27724
LIBS=$ac_check_lib_save_LIBS
27725
fi
27726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
27727
$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
1.15.15 by Colin Watson
Import upstream version 1.99
27728
if test "x$ac_cv_lib_zfs_libzfs_init" = xyes; then :
1.15.16 by Colin Watson
Import upstream version 2.00
27729
  cat >>confdefs.h <<_ACEOF
27730
#define HAVE_LIBZFS 1
27731
_ACEOF
27732
27733
  LIBS="-lzfs $LIBS"
27734
27735
else
27736
  libzfs_excuse="need zfs library"
27737
fi
27738
27739
fi
27740
27741
if test x"$libzfs_excuse" = x ; then
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27742
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
27743
$as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
27744
if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false; then :
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27745
  $as_echo_n "(cached) " >&6
27746
else
27747
  ac_check_lib_save_LIBS=$LIBS
27748
LIBS="-lnvpair  $LIBS"
27749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27750
/* end confdefs.h.  */
27751
27752
/* Override any GCC internal prototype to avoid an error.
27753
   Use char because int might match the return type of a GCC
27754
   builtin and then its argument prototype would still apply.  */
27755
#ifdef __cplusplus
27756
extern "C"
27757
#endif
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27758
char nvlist_lookup_string ();
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27759
int
27760
main (void)
27761
{
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27762
return nvlist_lookup_string ();
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27763
  ;
27764
  return 0;
27765
}
27766
_ACEOF
27767
if ac_fn_c_try_link "$LINENO"; then :
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27768
  ac_cv_lib_nvpair_nvlist_lookup_string=yes
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27769
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27770
  ac_cv_lib_nvpair_nvlist_lookup_string=no
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27771
fi
27772
rm -f core conftest.err conftest.$ac_objext \
27773
    conftest$ac_exeext conftest.$ac_ext
27774
LIBS=$ac_check_lib_save_LIBS
27775
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
27777
$as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
27778
if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes; then :
1.15.16 by Colin Watson
Import upstream version 2.00
27779
  cat >>confdefs.h <<_ACEOF
27780
#define HAVE_LIBNVPAIR 1
27781
_ACEOF
27782
27783
  LIBS="-lnvpair $LIBS"
27784
27785
else
27786
  libzfs_excuse="need nvpair library"
27787
fi
27788
27789
fi
27790
27791
if test x"$enable_libzfs" = xyes && test x"$libzfs_excuse" != x ; then
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
27792
  as_fn_error $? "libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
1.15.16 by Colin Watson
Import upstream version 2.00
27793
fi
27794
27795
if test x"$libzfs_excuse" = x ; then
27796
  # We need both libzfs and libnvpair for a successful build.
27797
  LIBZFS="-lzfs"
27798
27799
$as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
27800
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27801
  LIBNVPAIR="-lnvpair"
1.15.4 by Colin Watson
Import upstream version 1.98+20100802
27802
27803
$as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
27804
27805
fi
27806
27807
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
27808
1.15.16 by Colin Watson
Import upstream version 2.00
27809
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27810
LIBS=""
27811
27812
27813
if test x$target_cpu = xi386 -a x$platform = xqemu; then :
27814
  GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
27815
27816
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
# Check whether --enable-werror was given.
27827
if test "${enable_werror+set}" = set; then :
27828
  enableval=$enable_werror;
27829
fi
27830
27831
if test x"$enable_werror" != xno ; then
27832
  TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
27833
  HOST_CFLAGS="$HOST_CFLAGS -Werror"
27834
fi
27835
27836
if test "x$grub_cv_cc_target_clang" = xno; then
27837
   TARGET_LDFLAGS_STATIC_LIBGCC="-static-libgcc"
27838
else
27839
   TARGET_LDFLAGS_STATIC_LIBGCC=
27840
fi
27841
27842
TARGET_CPP="$TARGET_CC -E"
27843
TARGET_CCAS=$TARGET_CC
27844
27845
GRUB_TARGET_CPU="${target_cpu}"
27846
GRUB_PLATFORM="${platform}"
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
#
27878
# Automake conditionals
27879
#
27880
27881
 if test x$platform = xemu; then
27882
  COND_emu_TRUE=
27883
  COND_emu_FALSE='#'
27884
else
27885
  COND_emu_TRUE='#'
27886
  COND_emu_FALSE=
27887
fi
27888
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27889
 if test x$grub_cv_cc_target_clang = xyes; then
27890
  COND_clang_TRUE=
27891
  COND_clang_FALSE='#'
27892
else
27893
  COND_clang_TRUE='#'
27894
  COND_clang_FALSE=
27895
fi
27896
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27897
 if test x$target_cpu = xi386 -a x$platform = xpc; then
27898
  COND_i386_pc_TRUE=
27899
  COND_i386_pc_FALSE='#'
27900
else
27901
  COND_i386_pc_TRUE='#'
27902
  COND_i386_pc_FALSE=
27903
fi
27904
27905
 if test x$target_cpu = xi386 -a x$platform = xefi; then
27906
  COND_i386_efi_TRUE=
27907
  COND_i386_efi_FALSE='#'
27908
else
27909
  COND_i386_efi_TRUE='#'
27910
  COND_i386_efi_FALSE=
27911
fi
27912
1.15.16 by Colin Watson
Import upstream version 2.00
27913
 if test x$target_cpu = xia64 -a x$platform = xefi; then
27914
  COND_ia64_efi_TRUE=
27915
  COND_ia64_efi_FALSE='#'
27916
else
27917
  COND_ia64_efi_TRUE='#'
27918
  COND_ia64_efi_FALSE=
27919
fi
27920
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27921
 if test x$target_cpu = xi386 -a x$platform = xqemu; then
27922
  COND_i386_qemu_TRUE=
27923
  COND_i386_qemu_FALSE='#'
27924
else
27925
  COND_i386_qemu_TRUE='#'
27926
  COND_i386_qemu_FALSE=
27927
fi
27928
27929
 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
27930
  COND_i386_ieee1275_TRUE=
27931
  COND_i386_ieee1275_FALSE='#'
27932
else
27933
  COND_i386_ieee1275_TRUE='#'
27934
  COND_i386_ieee1275_FALSE=
27935
fi
27936
27937
 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
27938
  COND_i386_coreboot_TRUE=
27939
  COND_i386_coreboot_FALSE='#'
27940
else
27941
  COND_i386_coreboot_TRUE='#'
27942
  COND_i386_coreboot_FALSE=
27943
fi
27944
27945
 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
27946
  COND_i386_multiboot_TRUE=
27947
  COND_i386_multiboot_FALSE='#'
27948
else
27949
  COND_i386_multiboot_TRUE='#'
27950
  COND_i386_multiboot_FALSE=
27951
fi
27952
27953
 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
27954
  COND_x86_64_efi_TRUE=
27955
  COND_x86_64_efi_FALSE='#'
27956
else
27957
  COND_x86_64_efi_TRUE='#'
27958
  COND_x86_64_efi_FALSE=
27959
fi
27960
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27961
 if test x$target_cpu = xi386 -a x$platform = xxen; then
27962
  COND_i386_xen_TRUE=
27963
  COND_i386_xen_FALSE='#'
27964
else
27965
  COND_i386_xen_TRUE='#'
27966
  COND_i386_xen_FALSE=
27967
fi
27968
27969
 if test x$target_cpu = xx86_64 -a x$platform = xxen; then
27970
  COND_x86_64_xen_TRUE=
27971
  COND_x86_64_xen_FALSE='#'
27972
else
27973
  COND_x86_64_xen_TRUE='#'
27974
  COND_x86_64_xen_FALSE=
27975
fi
27976
1.15.16 by Colin Watson
Import upstream version 2.00
27977
 if test x$target_cpu = xmipsel -a x$platform = xloongson; then
27978
  COND_mips_loongson_TRUE=
27979
  COND_mips_loongson_FALSE='#'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27980
else
1.15.16 by Colin Watson
Import upstream version 2.00
27981
  COND_mips_loongson_TRUE='#'
27982
  COND_mips_loongson_FALSE=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27983
fi
27984
1.15.16 by Colin Watson
Import upstream version 2.00
27985
 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")"  -a x$platform = xqemu_mips; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
27986
  COND_mips_qemu_mips_TRUE=
27987
  COND_mips_qemu_mips_FALSE='#'
27988
else
27989
  COND_mips_qemu_mips_TRUE='#'
27990
  COND_mips_qemu_mips_FALSE=
27991
fi
27992
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
27993
 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")"  -a x$platform = xarc; then
1.15.16 by Colin Watson
Import upstream version 2.00
27994
  COND_mips_arc_TRUE=
27995
  COND_mips_arc_FALSE='#'
27996
else
27997
  COND_mips_arc_TRUE='#'
27998
  COND_mips_arc_FALSE=
27999
fi
28000
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28001
 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
28002
  COND_sparc64_ieee1275_TRUE=
28003
  COND_sparc64_ieee1275_FALSE='#'
28004
else
28005
  COND_sparc64_ieee1275_TRUE='#'
28006
  COND_sparc64_ieee1275_FALSE=
28007
fi
28008
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
28009
 if test x$target_cpu = xsparc64 -a x$platform = xemu; then
28010
  COND_sparc64_emu_TRUE=
28011
  COND_sparc64_emu_FALSE='#'
28012
else
28013
  COND_sparc64_emu_TRUE='#'
28014
  COND_sparc64_emu_FALSE=
28015
fi
28016
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28017
 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
28018
  COND_powerpc_ieee1275_TRUE=
28019
  COND_powerpc_ieee1275_FALSE='#'
28020
else
28021
  COND_powerpc_ieee1275_TRUE='#'
28022
  COND_powerpc_ieee1275_FALSE=
28023
fi
28024
1.15.16 by Colin Watson
Import upstream version 2.00
28025
 if test x$target_cpu = xmips -o x$target_cpu = xmipsel; then
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28026
  COND_mips_TRUE=
28027
  COND_mips_FALSE='#'
28028
else
28029
  COND_mips_TRUE='#'
28030
  COND_mips_FALSE=
28031
fi
28032
1.15.16 by Colin Watson
Import upstream version 2.00
28033
 if test x$target_cpu = xmipsel; then
28034
  COND_mipsel_TRUE=
28035
  COND_mipsel_FALSE='#'
28036
else
28037
  COND_mipsel_TRUE='#'
28038
  COND_mipsel_FALSE=
28039
fi
28040
28041
 if test x$target_cpu = xmips; then
28042
  COND_mipseb_TRUE=
28043
  COND_mipseb_FALSE='#'
28044
else
28045
  COND_mipseb_TRUE='#'
28046
  COND_mipseb_FALSE=
28047
fi
28048
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28049
 if test x$target_cpu = xarm ; then
28050
  COND_arm_TRUE=
28051
  COND_arm_FALSE='#'
28052
else
28053
  COND_arm_TRUE='#'
28054
  COND_arm_FALSE=
28055
fi
28056
28057
 if test x$target_cpu = xarm -a x$platform = xuboot; then
28058
  COND_arm_uboot_TRUE=
28059
  COND_arm_uboot_FALSE='#'
28060
else
28061
  COND_arm_uboot_TRUE='#'
28062
  COND_arm_uboot_FALSE=
28063
fi
28064
28065
 if test x$target_cpu = xarm -a x$platform = xefi; then
28066
  COND_arm_efi_TRUE=
28067
  COND_arm_efi_FALSE='#'
28068
else
28069
  COND_arm_efi_TRUE='#'
28070
  COND_arm_efi_FALSE=
28071
fi
28072
28073
 if test x$target_cpu = xarm64 ; then
28074
  COND_arm64_TRUE=
28075
  COND_arm64_FALSE='#'
28076
else
28077
  COND_arm64_TRUE='#'
28078
  COND_arm64_FALSE=
28079
fi
28080
28081
 if test x$target_cpu = xarm64 -a x$platform = xefi; then
28082
  COND_arm64_efi_TRUE=
28083
  COND_arm64_efi_FALSE='#'
28084
else
28085
  COND_arm64_efi_TRUE='#'
28086
  COND_arm64_efi_FALSE=
28087
fi
28088
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28089
28090
 if test x$host_kernel = xhurd; then
28091
  COND_HOST_HURD_TRUE=
28092
  COND_HOST_HURD_FALSE='#'
28093
else
28094
  COND_HOST_HURD_TRUE='#'
28095
  COND_HOST_HURD_FALSE=
28096
fi
28097
28098
 if test x$host_kernel = xlinux; then
28099
  COND_HOST_LINUX_TRUE=
28100
  COND_HOST_LINUX_FALSE='#'
28101
else
28102
  COND_HOST_LINUX_TRUE='#'
28103
  COND_HOST_LINUX_FALSE=
28104
fi
28105
28106
 if test x$host_kernel = xnetbsd; then
28107
  COND_HOST_NETBSD_TRUE=
28108
  COND_HOST_NETBSD_FALSE='#'
28109
else
28110
  COND_HOST_NETBSD_TRUE='#'
28111
  COND_HOST_NETBSD_FALSE=
28112
fi
28113
28114
 if test x$host_kernel = xwindows; then
28115
  COND_HOST_WINDOWS_TRUE=
28116
  COND_HOST_WINDOWS_FALSE='#'
28117
else
28118
  COND_HOST_WINDOWS_TRUE='#'
28119
  COND_HOST_WINDOWS_FALSE=
28120
fi
28121
28122
 if test x$host_kernel = xkfreebsd; then
28123
  COND_HOST_KFREEBSD_TRUE=
28124
  COND_HOST_KFREEBSD_FALSE='#'
28125
else
28126
  COND_HOST_KFREEBSD_TRUE='#'
28127
  COND_HOST_KFREEBSD_FALSE=
28128
fi
28129
1.15.16 by Colin Watson
Import upstream version 2.00
28130
 if test x$host_kernel = xxnu; then
28131
  COND_HOST_XNU_TRUE=
28132
  COND_HOST_XNU_FALSE='#'
28133
else
28134
  COND_HOST_XNU_TRUE='#'
28135
  COND_HOST_XNU_FALSE=
28136
fi
28137
28138
 if test x$host_kernel = xillumos; then
28139
  COND_HOST_ILLUMOS_TRUE=
28140
  COND_HOST_ILLUMOS_FALSE='#'
28141
else
28142
  COND_HOST_ILLUMOS_TRUE='#'
28143
  COND_HOST_ILLUMOS_FALSE=
28144
fi
28145
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28146
28147
 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
28148
  COND_MAN_PAGES_TRUE=
28149
  COND_MAN_PAGES_FALSE='#'
28150
else
28151
  COND_MAN_PAGES_TRUE='#'
28152
  COND_MAN_PAGES_FALSE=
28153
fi
28154
28155
 if test x$enable_grub_emu_usb = xyes; then
28156
  COND_GRUB_EMU_USB_TRUE=
28157
  COND_GRUB_EMU_USB_FALSE='#'
28158
else
28159
  COND_GRUB_EMU_USB_TRUE='#'
28160
  COND_GRUB_EMU_USB_FALSE=
28161
fi
28162
28163
 if test x$enable_grub_emu_sdl = xyes; then
28164
  COND_GRUB_EMU_SDL_TRUE=
28165
  COND_GRUB_EMU_SDL_FALSE='#'
28166
else
28167
  COND_GRUB_EMU_SDL_TRUE='#'
28168
  COND_GRUB_EMU_SDL_FALSE=
28169
fi
28170
28171
 if test x$enable_grub_emu_pci = xyes; then
28172
  COND_GRUB_EMU_PCI_TRUE=
28173
  COND_GRUB_EMU_PCI_FALSE='#'
28174
else
28175
  COND_GRUB_EMU_PCI_TRUE='#'
28176
  COND_GRUB_EMU_PCI_FALSE=
28177
fi
28178
28179
 if test x$enable_grub_mkfont = xyes; then
28180
  COND_GRUB_MKFONT_TRUE=
28181
  COND_GRUB_MKFONT_FALSE='#'
28182
else
28183
  COND_GRUB_MKFONT_TRUE='#'
28184
  COND_GRUB_MKFONT_FALSE=
28185
fi
28186
1.15.16 by Colin Watson
Import upstream version 2.00
28187
 if test x$enable_grub_mount = xyes; then
28188
  COND_GRUB_MOUNT_TRUE=
28189
  COND_GRUB_MOUNT_FALSE='#'
28190
else
28191
  COND_GRUB_MOUNT_TRUE='#'
28192
  COND_GRUB_MOUNT_FALSE=
28193
fi
28194
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28195
 if test x$FONT_SOURCE != x; then
28196
  COND_HAVE_FONT_SOURCE_TRUE=
28197
  COND_HAVE_FONT_SOURCE_FALSE='#'
28198
else
28199
  COND_HAVE_FONT_SOURCE_TRUE='#'
28200
  COND_HAVE_FONT_SOURCE_FALSE=
28201
fi
28202
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28203
if test x$FONT_SOURCE != x ; then
28204
   HAVE_FONT_SOURCE=1
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28205
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28206
   HAVE_FONT_SOURCE=0
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28207
fi
28208
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28209
 if test x$TARGET_APPLE_LINKER = x1; then
28210
  COND_APPLE_LINKER_TRUE=
28211
  COND_APPLE_LINKER_FALSE='#'
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28212
else
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28213
  COND_APPLE_LINKER_TRUE='#'
28214
  COND_APPLE_LINKER_FALSE=
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28215
fi
28216
28217
 if test x$enable_efiemu = xyes; then
28218
  COND_ENABLE_EFIEMU_TRUE=
28219
  COND_ENABLE_EFIEMU_FALSE='#'
28220
else
28221
  COND_ENABLE_EFIEMU_TRUE='#'
28222
  COND_ENABLE_EFIEMU_FALSE=
28223
fi
28224
1.15.16 by Colin Watson
Import upstream version 2.00
28225
 if test x$DISK_CACHE_STATS = x1; then
28226
  COND_ENABLE_CACHE_STATS_TRUE=
28227
  COND_ENABLE_CACHE_STATS_FALSE='#'
28228
else
28229
  COND_ENABLE_CACHE_STATS_TRUE='#'
28230
  COND_ENABLE_CACHE_STATS_FALSE=
28231
fi
28232
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28233
 if test x$BOOT_TIME_STATS = x1; then
28234
  COND_ENABLE_BOOT_TIME_STATS_TRUE=
28235
  COND_ENABLE_BOOT_TIME_STATS_FALSE='#'
28236
else
28237
  COND_ENABLE_BOOT_TIME_STATS_TRUE='#'
28238
  COND_ENABLE_BOOT_TIME_STATS_FALSE=
28239
fi
28240
28241
28242
 if test x$HAVE_CXX = xyes; then
28243
  COND_HAVE_CXX_TRUE=
28244
  COND_HAVE_CXX_FALSE='#'
28245
else
28246
  COND_HAVE_CXX_TRUE='#'
28247
  COND_HAVE_CXX_FALSE=
28248
fi
28249
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28250
28251
 if test x$HAVE_ASM_USCORE = x1; then
28252
  COND_HAVE_ASM_USCORE_TRUE=
28253
  COND_HAVE_ASM_USCORE_FALSE='#'
28254
else
28255
  COND_HAVE_ASM_USCORE_TRUE='#'
28256
  COND_HAVE_ASM_USCORE_FALSE=
28257
fi
28258
1.15.16 by Colin Watson
Import upstream version 2.00
28259
 if test "x$starfield_excuse" = x; then
28260
  COND_STARFIELD_TRUE=
28261
  COND_STARFIELD_FALSE='#'
28262
else
28263
  COND_STARFIELD_TRUE='#'
28264
  COND_STARFIELD_FALSE=
28265
fi
28266
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28267
 if test "x$have_exec" = xy; then
28268
  COND_HAVE_EXEC_TRUE=
28269
  COND_HAVE_EXEC_FALSE='#'
28270
else
28271
  COND_HAVE_EXEC_TRUE='#'
28272
  COND_HAVE_EXEC_FALSE=
28273
fi
28274
28275
28276
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28277
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28278
datarootdir="$(eval echo "$datarootdir")"
28279
grub_libdir="$(eval echo "$libdir")"
28280
grub_localedir="$(eval echo "$localedir")"
28281
grub_datadir="$(eval echo "$datadir")"
28282
grub_sysconfdir="$(eval echo "$sysconfdir")"
28283
28284
cat >>confdefs.h <<_ACEOF
28285
#define LOCALEDIR "$grub_localedir"
28286
_ACEOF
28287
28288
28289
cat >>confdefs.h <<_ACEOF
28290
#define GRUB_LIBDIR "$grub_libdir"
28291
_ACEOF
28292
28293
28294
cat >>confdefs.h <<_ACEOF
28295
#define GRUB_DATADIR "$grub_datadir"
28296
_ACEOF
28297
28298
28299
cat >>confdefs.h <<_ACEOF
28300
#define GRUB_SYSCONFDIR "$grub_sysconfdir"
28301
_ACEOF
28302
28303
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28304
28305
# Output files.
1.15.16 by Colin Watson
Import upstream version 2.00
28306
cpudir="${target_cpu}"
28307
if test x${cpudir} = xmipsel; then
28308
  cpudir=mips;
28309
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28310
28311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
28312
$as_echo_n "checking whether ln can handle directories properly... " >&6; }
28313
mkdir testdir 2>/dev/null
28314
case $srcdir in
28315
[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
28316
    *) reldir=../$srcdir/include/grub/util ;;
28317
esac
28318
if ln -s $reldir testdir/util 2>/dev/null ; then
28319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28320
$as_echo "yes" >&6; }
28321
  link_dir=yes
28322
else
28323
  link_dir=no
28324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28325
$as_echo "no" >&6; }
28326
fi
28327
rm -rf testdir
28328
28329
if test x"$link_dir" = xyes ; then
1.15.16 by Colin Watson
Import upstream version 2.00
28330
  ac_config_links="$ac_config_links include/grub/cpu:include/grub/$cpudir"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28331
28332
  if test "$platform" != emu ; then
1.15.16 by Colin Watson
Import upstream version 2.00
28333
    ac_config_links="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28334
28335
  fi
28336
else
28337
  mkdir -p include/grub 2>/dev/null
28338
  rm -rf include/grub/cpu
1.15.16 by Colin Watson
Import upstream version 2.00
28339
  cp -rp $srcdir/include/grub/$cpudir include/grub/cpu 2>/dev/null
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28340
  if test "$platform" != emu ; then
28341
    rm -rf include/grub/machine
1.15.16 by Colin Watson
Import upstream version 2.00
28342
    cp -rp $srcdir/include/grub/$cpudir/$platform include/grub/machine 2>/dev/null
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28343
  fi
28344
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28345
28346
ac_config_files="$ac_config_files Makefile"
28347
28348
ac_config_files="$ac_config_files grub-core/Makefile"
28349
28350
ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
28351
28352
ac_config_files="$ac_config_files po/Makefile.in"
28353
28354
ac_config_files="$ac_config_files docs/Makefile"
28355
28356
ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28357
28358
ac_config_files="$ac_config_files stamp-h"
28359
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28360
ac_config_files="$ac_config_files config.h"
28361
28362
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28363
cat >confcache <<\_ACEOF
28364
# This file is a shell script that caches the results of configure
28365
# tests run on this system so they can be shared between configure
28366
# scripts and configure runs, see configure's option --config-cache.
28367
# It is not useful on other systems.  If it contains results you don't
28368
# want to keep, you may remove or edit it.
28369
#
28370
# config.status only pays attention to the cache file if you give it
28371
# the --recheck option to rerun configure.
28372
#
28373
# `ac_cv_env_foo' variables (set or unset) will be overridden when
28374
# loading this file, other *unset* `ac_cv_foo' will be assigned the
28375
# following values.
28376
28377
_ACEOF
28378
28379
# The following way of writing the cache mishandles newlines in values,
28380
# but we know of no workaround that is simple, portable, and efficient.
28381
# So, we kill variables containing newlines.
28382
# Ultrix sh set writes to stderr and can't be redirected directly,
28383
# and sets the high bit in the cache file unless we assign to the vars.
28384
(
28385
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28386
    eval ac_val=\$$ac_var
28387
    case $ac_val in #(
28388
    *${as_nl}*)
28389
      case $ac_var in #(
28390
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28391
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28392
      esac
28393
      case $ac_var in #(
28394
      _ | IFS | as_nl) ;; #(
28395
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28396
      *) { eval $ac_var=; unset $ac_var;} ;;
28397
      esac ;;
28398
    esac
28399
  done
28400
28401
  (set) 2>&1 |
28402
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28403
    *${as_nl}ac_space=\ *)
28404
      # `set' does not quote correctly, so add quotes: double-quote
28405
      # substitution turns \\\\ into \\, and sed turns \\ into \.
28406
      sed -n \
28407
	"s/'/'\\\\''/g;
28408
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28409
      ;; #(
28410
    *)
28411
      # `set' quotes correctly as required by POSIX, so do not add quotes.
28412
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28413
      ;;
28414
    esac |
28415
    sort
28416
) |
28417
  sed '
28418
     /^ac_cv_env_/b end
28419
     t clear
28420
     :clear
28421
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28422
     t end
28423
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28424
     :end' >>confcache
28425
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28426
  if test -w "$cache_file"; then
1.15.15 by Colin Watson
Import upstream version 1.99
28427
    if test "x$cache_file" != "x/dev/null"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28428
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28429
$as_echo "$as_me: updating cache $cache_file" >&6;}
1.15.15 by Colin Watson
Import upstream version 1.99
28430
      if test ! -f "$cache_file" || test -h "$cache_file"; then
28431
	cat confcache >"$cache_file"
28432
      else
28433
        case $cache_file in #(
28434
        */* | ?:*)
28435
	  mv -f confcache "$cache_file"$$ &&
28436
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
28437
        *)
28438
	  mv -f confcache "$cache_file" ;;
28439
	esac
28440
      fi
28441
    fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28442
  else
28443
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28444
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28445
  fi
28446
fi
28447
rm -f confcache
28448
28449
test "x$prefix" = xNONE && prefix=$ac_default_prefix
28450
# Let make expand exec_prefix.
28451
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28452
28453
DEFS=-DHAVE_CONFIG_H
28454
28455
ac_libobjs=
28456
ac_ltlibobjs=
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28457
U=
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28458
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28459
  # 1. Remove the extension, and $U if already installed.
28460
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28461
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28462
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28463
  #    will be set to the directory where LIBOBJS objects are built.
28464
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28465
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28466
done
28467
LIBOBJS=$ac_libobjs
28468
28469
LTLIBOBJS=$ac_ltlibobjs
28470
28471
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28473
$as_echo_n "checking that generated files are newer than configure... " >&6; }
28474
   if test -n "$am_sleep_pid"; then
28475
     # Hide warnings about reused PIDs.
28476
     wait $am_sleep_pid 2>/dev/null
28477
   fi
28478
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28479
$as_echo "done" >&6; }
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28480
 if test -n "$EXEEXT"; then
28481
  am__EXEEXT_TRUE=
28482
  am__EXEEXT_FALSE='#'
28483
else
28484
  am__EXEEXT_TRUE='#'
28485
  am__EXEEXT_FALSE=
28486
fi
28487
28488
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28489
  as_fn_error $? "conditional \"AMDEP\" was never defined.
28490
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28491
fi
28492
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28493
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28494
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28495
fi
28496
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28497
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28498
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28499
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28500
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28501
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28502
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28503
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28504
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
28505
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
28506
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28507
fi
28508
28509
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28510
  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28511
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28512
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28513
if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28514
  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28515
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28516
fi
28517
if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28518
  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28519
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28520
fi
28521
if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28522
  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28523
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28524
fi
28525
if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28526
  as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28527
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28528
fi
28529
if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28530
  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28531
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28532
fi
28533
if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28534
  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28535
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28536
fi
28537
if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28538
  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28539
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28540
fi
28541
if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28542
  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28543
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28544
fi
28545
if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28546
  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28547
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28548
fi
28549
if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
28550
  as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
28551
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28552
fi
28553
if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
28554
  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
28555
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28556
fi
28557
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28558
28559
    gl_libobjs=
28560
    gl_ltlibobjs=
28561
    if test -n "$gl_LIBOBJS"; then
28562
      # Remove the extension.
28563
      sed_drop_objext='s/\.o$//;s/\.obj$//'
28564
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28565
        gl_libobjs="$gl_libobjs $i.$ac_objext"
28566
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28567
      done
28568
    fi
28569
    gl_LIBOBJS=$gl_libobjs
28570
28571
    gl_LTLIBOBJS=$gl_ltlibobjs
28572
28573
28574
28575
    gltests_libobjs=
28576
    gltests_ltlibobjs=
28577
    if test -n "$gltests_LIBOBJS"; then
28578
      # Remove the extension.
28579
      sed_drop_objext='s/\.o$//;s/\.obj$//'
28580
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28581
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28582
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28583
      done
28584
    fi
28585
    gltests_LIBOBJS=$gltests_libobjs
28586
28587
    gltests_LTLIBOBJS=$gltests_ltlibobjs
28588
28589
28590
if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
28591
  as_fn_error $? "conditional \"COND_emu\" was never defined.
28592
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28593
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28594
if test -z "${COND_clang_TRUE}" && test -z "${COND_clang_FALSE}"; then
28595
  as_fn_error $? "conditional \"COND_clang\" was never defined.
28596
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28597
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28598
if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
28599
  as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
28600
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28601
fi
28602
if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
28603
  as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
28604
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28605
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28606
if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
28607
  as_fn_error $? "conditional \"COND_ia64_efi\" was never defined.
28608
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28609
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28610
if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
28611
  as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
28612
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28613
fi
28614
if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
28615
  as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
28616
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28617
fi
28618
if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
28619
  as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
28620
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28621
fi
28622
if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
28623
  as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
28624
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28625
fi
28626
if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
28627
  as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
28628
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28629
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28630
if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
28631
  as_fn_error $? "conditional \"COND_i386_xen\" was never defined.
28632
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28633
fi
28634
if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
28635
  as_fn_error $? "conditional \"COND_x86_64_xen\" was never defined.
28636
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28637
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28638
if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
28639
  as_fn_error $? "conditional \"COND_mips_loongson\" was never defined.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28640
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28641
fi
28642
if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
28643
  as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
28644
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28645
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28646
if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
28647
  as_fn_error $? "conditional \"COND_mips_arc\" was never defined.
28648
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28649
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28650
if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
28651
  as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
28652
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28653
fi
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
28654
if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
28655
  as_fn_error $? "conditional \"COND_sparc64_emu\" was never defined.
28656
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28657
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28658
if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
28659
  as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
28660
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28661
fi
28662
if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
28663
  as_fn_error $? "conditional \"COND_mips\" was never defined.
28664
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28665
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28666
if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
28667
  as_fn_error $? "conditional \"COND_mipsel\" was never defined.
28668
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28669
fi
28670
if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
28671
  as_fn_error $? "conditional \"COND_mipseb\" was never defined.
28672
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28673
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28674
if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
28675
  as_fn_error $? "conditional \"COND_arm\" was never defined.
28676
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28677
fi
28678
if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
28679
  as_fn_error $? "conditional \"COND_arm_uboot\" was never defined.
28680
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28681
fi
28682
if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
28683
  as_fn_error $? "conditional \"COND_arm_efi\" was never defined.
28684
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28685
fi
28686
if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
28687
  as_fn_error $? "conditional \"COND_arm64\" was never defined.
28688
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28689
fi
28690
if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
28691
  as_fn_error $? "conditional \"COND_arm64_efi\" was never defined.
28692
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28693
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28694
if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
28695
  as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
28696
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28697
fi
28698
if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
28699
  as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
28700
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28701
fi
28702
if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
28703
  as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
28704
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28705
fi
28706
if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
28707
  as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
28708
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28709
fi
28710
if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
28711
  as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
28712
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28713
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28714
if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
28715
  as_fn_error $? "conditional \"COND_HOST_XNU\" was never defined.
28716
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28717
fi
28718
if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
28719
  as_fn_error $? "conditional \"COND_HOST_ILLUMOS\" was never defined.
28720
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28721
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28722
if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
28723
  as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
28724
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28725
fi
28726
if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
28727
  as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
28728
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28729
fi
28730
if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
28731
  as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
28732
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28733
fi
28734
if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
28735
  as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
28736
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28737
fi
28738
if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
28739
  as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
28740
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28741
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28742
if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
28743
  as_fn_error $? "conditional \"COND_GRUB_MOUNT\" was never defined.
28744
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28745
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28746
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
28747
  as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
28748
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28749
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28750
if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
28751
  as_fn_error $? "conditional \"COND_APPLE_LINKER\" was never defined.
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28752
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28753
fi
28754
if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
28755
  as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
28756
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28757
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28758
if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
28759
  as_fn_error $? "conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
28760
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28761
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28762
if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
28763
  as_fn_error $? "conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
28764
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28765
fi
28766
if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
28767
  as_fn_error $? "conditional \"COND_HAVE_CXX\" was never defined.
28768
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28769
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
28770
if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
28771
  as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
28772
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28773
fi
1.15.16 by Colin Watson
Import upstream version 2.00
28774
if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
28775
  as_fn_error $? "conditional \"COND_STARFIELD\" was never defined.
28776
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28777
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
28778
if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
28779
  as_fn_error $? "conditional \"COND_HAVE_EXEC\" was never defined.
28780
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28781
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28782
1.15.15 by Colin Watson
Import upstream version 1.99
28783
: "${CONFIG_STATUS=./config.status}"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28784
ac_write_fail=0
28785
ac_clean_files_save=$ac_clean_files
28786
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28787
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28788
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28789
as_write_fail=0
28790
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28791
#! $SHELL
28792
# Generated by $as_me.
28793
# Run this file to recreate the current configuration.
28794
# Compiler output produced by configure, useful for debugging
28795
# configure, is in config.log if it exists.
28796
28797
debug=false
28798
ac_cs_recheck=false
28799
ac_cs_silent=false
28800
28801
SHELL=\${CONFIG_SHELL-$SHELL}
28802
export SHELL
28803
_ASEOF
28804
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28805
## -------------------- ##
28806
## M4sh Initialization. ##
28807
## -------------------- ##
28808
28809
# Be more Bourne compatible
28810
DUALCASE=1; export DUALCASE # for MKS sh
28811
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28812
  emulate sh
28813
  NULLCMD=:
28814
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28815
  # is contrary to our usage.  Disable this feature.
28816
  alias -g '${1+"$@"}'='"$@"'
28817
  setopt NO_GLOB_SUBST
28818
else
28819
  case `(set -o) 2>/dev/null` in #(
28820
  *posix*) :
28821
    set -o posix ;; #(
28822
  *) :
28823
     ;;
28824
esac
28825
fi
28826
28827
28828
as_nl='
28829
'
28830
export as_nl
28831
# Printing a long string crashes Solaris 7 /usr/bin/printf.
28832
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28833
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28834
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28835
# Prefer a ksh shell builtin over an external printf program on Solaris,
28836
# but without wasting forks for bash or zsh.
28837
if test -z "$BASH_VERSION$ZSH_VERSION" \
28838
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28839
  as_echo='print -r --'
28840
  as_echo_n='print -rn --'
28841
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28842
  as_echo='printf %s\n'
28843
  as_echo_n='printf %s'
28844
else
28845
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28846
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28847
    as_echo_n='/usr/ucb/echo -n'
28848
  else
28849
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28850
    as_echo_n_body='eval
28851
      arg=$1;
28852
      case $arg in #(
28853
      *"$as_nl"*)
28854
	expr "X$arg" : "X\\(.*\\)$as_nl";
28855
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28856
      esac;
28857
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28858
    '
28859
    export as_echo_n_body
28860
    as_echo_n='sh -c $as_echo_n_body as_echo'
28861
  fi
28862
  export as_echo_body
28863
  as_echo='sh -c $as_echo_body as_echo'
28864
fi
28865
28866
# The user is always right.
28867
if test "${PATH_SEPARATOR+set}" != set; then
28868
  PATH_SEPARATOR=:
28869
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28870
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28871
      PATH_SEPARATOR=';'
28872
  }
28873
fi
28874
28875
28876
# IFS
28877
# We need space, tab and new line, in precisely that order.  Quoting is
28878
# there to prevent editors from complaining about space-tab.
28879
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28880
# splitting by setting IFS to empty value.)
28881
IFS=" ""	$as_nl"
28882
28883
# Find who we are.  Look in the path if we contain no directory separator.
1.15.15 by Colin Watson
Import upstream version 1.99
28884
as_myself=
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28885
case $0 in #((
28886
  *[\\/]* ) as_myself=$0 ;;
28887
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28888
for as_dir in $PATH
28889
do
28890
  IFS=$as_save_IFS
28891
  test -z "$as_dir" && as_dir=.
28892
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28893
  done
28894
IFS=$as_save_IFS
28895
28896
     ;;
28897
esac
28898
# We did not find ourselves, most probably we were run as `sh COMMAND'
28899
# in which case we are not to be found in the path.
28900
if test "x$as_myself" = x; then
28901
  as_myself=$0
28902
fi
28903
if test ! -f "$as_myself"; then
28904
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28905
  exit 1
28906
fi
28907
28908
# Unset variables that we do not need and which cause bugs (e.g. in
28909
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28910
# suppresses any "Segmentation fault" message there.  '((' could
28911
# trigger a bug in pdksh 5.2.14.
28912
for as_var in BASH_ENV ENV MAIL MAILPATH
28913
do eval test x\${$as_var+set} = xset \
28914
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28915
done
28916
PS1='$ '
28917
PS2='> '
28918
PS4='+ '
28919
28920
# NLS nuisances.
28921
LC_ALL=C
28922
export LC_ALL
28923
LANGUAGE=C
28924
export LANGUAGE
28925
28926
# CDPATH.
28927
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28928
28929
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28930
# as_fn_error STATUS ERROR [LINENO LOG_FD]
28931
# ----------------------------------------
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28932
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28933
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28934
# script with STATUS, using 1 if that was 0.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28935
as_fn_error ()
28936
{
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28937
  as_status=$1; test $as_status -eq 0 && as_status=1
28938
  if test "$4"; then
28939
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28940
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28941
  fi
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
28942
  $as_echo "$as_me: error: $2" >&2
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
28943
  as_fn_exit $as_status
28944
} # as_fn_error
28945
28946
28947
# as_fn_set_status STATUS
28948
# -----------------------
28949
# Set $? to STATUS, without forking.
28950
as_fn_set_status ()
28951
{
28952
  return $1
28953
} # as_fn_set_status
28954
28955
# as_fn_exit STATUS
28956
# -----------------
28957
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28958
as_fn_exit ()
28959
{
28960
  set +e
28961
  as_fn_set_status $1
28962
  exit $1
28963
} # as_fn_exit
28964
28965
# as_fn_unset VAR
28966
# ---------------
28967
# Portably unset VAR.
28968
as_fn_unset ()
28969
{
28970
  { eval $1=; unset $1;}
28971
}
28972
as_unset=as_fn_unset
28973
# as_fn_append VAR VALUE
28974
# ----------------------
28975
# Append the text in VALUE to the end of the definition contained in VAR. Take
28976
# advantage of any shell optimizations that allow amortized linear growth over
28977
# repeated appends, instead of the typical quadratic growth present in naive
28978
# implementations.
28979
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28980
  eval 'as_fn_append ()
28981
  {
28982
    eval $1+=\$2
28983
  }'
28984
else
28985
  as_fn_append ()
28986
  {
28987
    eval $1=\$$1\$2
28988
  }
28989
fi # as_fn_append
28990
28991
# as_fn_arith ARG...
28992
# ------------------
28993
# Perform arithmetic evaluation on the ARGs, and store the result in the
28994
# global $as_val. Take advantage of shells that can avoid forks. The arguments
28995
# must be portable across $(()) and expr.
28996
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28997
  eval 'as_fn_arith ()
28998
  {
28999
    as_val=$(( $* ))
29000
  }'
29001
else
29002
  as_fn_arith ()
29003
  {
29004
    as_val=`expr "$@" || test $? -eq 1`
29005
  }
29006
fi # as_fn_arith
29007
29008
29009
if expr a : '\(a\)' >/dev/null 2>&1 &&
29010
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
29011
  as_expr=expr
29012
else
29013
  as_expr=false
29014
fi
29015
29016
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29017
  as_basename=basename
29018
else
29019
  as_basename=false
29020
fi
29021
29022
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29023
  as_dirname=dirname
29024
else
29025
  as_dirname=false
29026
fi
29027
29028
as_me=`$as_basename -- "$0" ||
29029
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29030
	 X"$0" : 'X\(//\)$' \| \
29031
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29032
$as_echo X/"$0" |
29033
    sed '/^.*\/\([^/][^/]*\)\/*$/{
29034
	    s//\1/
29035
	    q
29036
	  }
29037
	  /^X\/\(\/\/\)$/{
29038
	    s//\1/
29039
	    q
29040
	  }
29041
	  /^X\/\(\/\).*/{
29042
	    s//\1/
29043
	    q
29044
	  }
29045
	  s/.*/./; q'`
29046
29047
# Avoid depending upon Character Ranges.
29048
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29049
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29050
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29051
as_cr_digits='0123456789'
29052
as_cr_alnum=$as_cr_Letters$as_cr_digits
29053
29054
ECHO_C= ECHO_N= ECHO_T=
29055
case `echo -n x` in #(((((
29056
-n*)
29057
  case `echo 'xy\c'` in
29058
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
29059
  xy)  ECHO_C='\c';;
29060
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29061
       ECHO_T='	';;
29062
  esac;;
29063
*)
29064
  ECHO_N='-n';;
29065
esac
29066
29067
rm -f conf$$ conf$$.exe conf$$.file
29068
if test -d conf$$.dir; then
29069
  rm -f conf$$.dir/conf$$.file
29070
else
29071
  rm -f conf$$.dir
29072
  mkdir conf$$.dir 2>/dev/null
29073
fi
29074
if (echo >conf$$.file) 2>/dev/null; then
29075
  if ln -s conf$$.file conf$$ 2>/dev/null; then
29076
    as_ln_s='ln -s'
29077
    # ... but there are two gotchas:
29078
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29079
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.15.16 by Colin Watson
Import upstream version 2.00
29080
    # In both cases, we have to default to `cp -pR'.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29081
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.15.16 by Colin Watson
Import upstream version 2.00
29082
      as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29083
  elif ln conf$$.file conf$$ 2>/dev/null; then
29084
    as_ln_s=ln
29085
  else
1.15.16 by Colin Watson
Import upstream version 2.00
29086
    as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29087
  fi
29088
else
1.15.16 by Colin Watson
Import upstream version 2.00
29089
  as_ln_s='cp -pR'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29090
fi
29091
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29092
rmdir conf$$.dir 2>/dev/null
29093
29094
29095
# as_fn_mkdir_p
29096
# -------------
29097
# Create "$as_dir" as a directory, including parents if necessary.
29098
as_fn_mkdir_p ()
29099
{
29100
29101
  case $as_dir in #(
29102
  -*) as_dir=./$as_dir;;
29103
  esac
29104
  test -d "$as_dir" || eval $as_mkdir_p || {
29105
    as_dirs=
29106
    while :; do
29107
      case $as_dir in #(
29108
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29109
      *) as_qdir=$as_dir;;
29110
      esac
29111
      as_dirs="'$as_qdir' $as_dirs"
29112
      as_dir=`$as_dirname -- "$as_dir" ||
29113
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29114
	 X"$as_dir" : 'X\(//\)[^/]' \| \
29115
	 X"$as_dir" : 'X\(//\)$' \| \
29116
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29117
$as_echo X"$as_dir" |
29118
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29119
	    s//\1/
29120
	    q
29121
	  }
29122
	  /^X\(\/\/\)[^/].*/{
29123
	    s//\1/
29124
	    q
29125
	  }
29126
	  /^X\(\/\/\)$/{
29127
	    s//\1/
29128
	    q
29129
	  }
29130
	  /^X\(\/\).*/{
29131
	    s//\1/
29132
	    q
29133
	  }
29134
	  s/.*/./; q'`
29135
      test -d "$as_dir" && break
29136
    done
29137
    test -z "$as_dirs" || eval "mkdir $as_dirs"
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29138
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29139
29140
29141
} # as_fn_mkdir_p
29142
if mkdir -p . 2>/dev/null; then
29143
  as_mkdir_p='mkdir -p "$as_dir"'
29144
else
29145
  test -d ./-p && rmdir ./-p
29146
  as_mkdir_p=false
29147
fi
29148
1.15.16 by Colin Watson
Import upstream version 2.00
29149
29150
# as_fn_executable_p FILE
29151
# -----------------------
29152
# Test if FILE is an executable regular file.
29153
as_fn_executable_p ()
29154
{
29155
  test -f "$1" && test -x "$1"
29156
} # as_fn_executable_p
29157
as_test_x='test -x'
29158
as_executable_p=as_fn_executable_p
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29159
29160
# Sed expression to map a string onto a valid CPP name.
29161
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29162
29163
# Sed expression to map a string onto a valid variable name.
29164
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29165
29166
29167
exec 6>&1
29168
## ----------------------------------- ##
29169
## Main body of $CONFIG_STATUS script. ##
29170
## ----------------------------------- ##
29171
_ASEOF
29172
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29173
29174
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29175
# Save the log message, to keep $0 and so on meaningful, and to
29176
# report actual input values of CONFIG_FILES etc. instead of their
29177
# values after options handling.
29178
ac_log="
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
29179
This file was extended by GRUB $as_me 2.02~beta2, which was
1.15.16 by Colin Watson
Import upstream version 2.00
29180
generated by GNU Autoconf 2.69.  Invocation command line was
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29181
29182
  CONFIG_FILES    = $CONFIG_FILES
29183
  CONFIG_HEADERS  = $CONFIG_HEADERS
29184
  CONFIG_LINKS    = $CONFIG_LINKS
29185
  CONFIG_COMMANDS = $CONFIG_COMMANDS
29186
  $ $0 $@
29187
29188
on `(hostname || uname -n) 2>/dev/null | sed 1q`
29189
"
29190
29191
_ACEOF
29192
29193
case $ac_config_files in *"
29194
"*) set x $ac_config_files; shift; ac_config_files=$*;;
29195
esac
29196
29197
case $ac_config_headers in *"
29198
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29199
esac
29200
29201
29202
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29203
# Files that config.status was made for.
29204
config_files="$ac_config_files"
29205
config_headers="$ac_config_headers"
29206
config_links="$ac_config_links"
29207
config_commands="$ac_config_commands"
29208
29209
_ACEOF
29210
29211
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29212
ac_cs_usage="\
29213
\`$as_me' instantiates files and other configuration actions
29214
from templates according to the current configuration.  Unless the files
29215
and actions are specified as TAGs, all are instantiated by default.
29216
29217
Usage: $0 [OPTION]... [TAG]...
29218
29219
  -h, --help       print this help, then exit
29220
  -V, --version    print version number and configuration settings, then exit
29221
      --config     print configuration, then exit
29222
  -q, --quiet, --silent
29223
                   do not print progress messages
29224
  -d, --debug      don't remove temporary files
29225
      --recheck    update $as_me by reconfiguring in the same conditions
29226
      --file=FILE[:TEMPLATE]
29227
                   instantiate the configuration file FILE
29228
      --header=FILE[:TEMPLATE]
29229
                   instantiate the configuration header FILE
29230
29231
Configuration files:
29232
$config_files
29233
29234
Configuration headers:
29235
$config_headers
29236
29237
Configuration links:
29238
$config_links
29239
29240
Configuration commands:
29241
$config_commands
29242
29243
Report bugs to <bug-grub@gnu.org>."
29244
29245
_ACEOF
29246
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29247
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29248
ac_cs_version="\\
1.15.18 by Colin Watson
Import upstream version 2.02~beta2
29249
GRUB config.status 2.02~beta2
1.15.16 by Colin Watson
Import upstream version 2.00
29250
configured by $0, generated by GNU Autoconf 2.69,
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29251
  with options \\"\$ac_cs_config\\"
29252
1.15.16 by Colin Watson
Import upstream version 2.00
29253
Copyright (C) 2012 Free Software Foundation, Inc.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29254
This config.status script is free software; the Free Software Foundation
29255
gives unlimited permission to copy, distribute and modify it."
29256
29257
ac_pwd='$ac_pwd'
29258
srcdir='$srcdir'
29259
INSTALL='$INSTALL'
29260
MKDIR_P='$MKDIR_P'
29261
AWK='$AWK'
29262
test -n "\$AWK" || AWK=awk
29263
_ACEOF
29264
29265
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29266
# The default lists apply if the user does not specify any file.
29267
ac_need_defaults=:
29268
while test $# != 0
29269
do
29270
  case $1 in
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29271
  --*=?*)
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29272
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29273
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29274
    ac_shift=:
29275
    ;;
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29276
  --*=)
29277
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29278
    ac_optarg=
29279
    ac_shift=:
29280
    ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29281
  *)
29282
    ac_option=$1
29283
    ac_optarg=$2
29284
    ac_shift=shift
29285
    ;;
29286
  esac
29287
29288
  case $ac_option in
29289
  # Handling of the options.
29290
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29291
    ac_cs_recheck=: ;;
29292
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29293
    $as_echo "$ac_cs_version"; exit ;;
29294
  --config | --confi | --conf | --con | --co | --c )
29295
    $as_echo "$ac_cs_config"; exit ;;
29296
  --debug | --debu | --deb | --de | --d | -d )
29297
    debug=: ;;
29298
  --file | --fil | --fi | --f )
29299
    $ac_shift
29300
    case $ac_optarg in
29301
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29302
    '') as_fn_error $? "missing file argument" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29303
    esac
29304
    as_fn_append CONFIG_FILES " '$ac_optarg'"
29305
    ac_need_defaults=false;;
29306
  --header | --heade | --head | --hea )
29307
    $ac_shift
29308
    case $ac_optarg in
29309
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29310
    esac
29311
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29312
    ac_need_defaults=false;;
29313
  --he | --h)
29314
    # Conflict between --help and --header
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29315
    as_fn_error $? "ambiguous option: \`$1'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29316
Try \`$0 --help' for more information.";;
29317
  --help | --hel | -h )
29318
    $as_echo "$ac_cs_usage"; exit ;;
29319
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29320
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29321
    ac_cs_silent=: ;;
29322
29323
  # This is an error.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29324
  -*) as_fn_error $? "unrecognized option: \`$1'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29325
Try \`$0 --help' for more information." ;;
29326
29327
  *) as_fn_append ac_config_targets " $1"
29328
     ac_need_defaults=false ;;
29329
29330
  esac
29331
  shift
29332
done
29333
29334
ac_configure_extra_args=
29335
29336
if $ac_cs_silent; then
29337
  exec 6>/dev/null
29338
  ac_configure_extra_args="$ac_configure_extra_args --silent"
29339
fi
29340
29341
_ACEOF
29342
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29343
if \$ac_cs_recheck; then
1.15.16 by Colin Watson
Import upstream version 2.00
29344
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29345
  shift
29346
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29347
  CONFIG_SHELL='$SHELL'
29348
  export CONFIG_SHELL
29349
  exec "\$@"
29350
fi
29351
29352
_ACEOF
29353
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29354
exec 5>>config.log
29355
{
29356
  echo
29357
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29358
## Running $as_me. ##
29359
_ASBOX
29360
  $as_echo "$ac_log"
29361
} >&5
29362
29363
_ACEOF
29364
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29365
#
29366
# INIT-COMMANDS
29367
#
29368
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29369
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
29370
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29371
    # from automake < 1.5.
29372
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29373
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
29374
    LINGUAS="${LINGUAS-%UNSET%}"
29375
29376
29377
_ACEOF
29378
29379
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29380
29381
# Handling of arguments.
29382
for ac_config_target in $ac_config_targets
29383
do
29384
  case $ac_config_target in
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
29385
    "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29386
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29387
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
1.15.16 by Colin Watson
Import upstream version 2.00
29388
    "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
29389
    "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29390
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
29391
    "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
29392
    "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
29393
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29394
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29395
    "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29396
    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
29397
    "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29398
1.15.15 by Colin Watson
Import upstream version 1.99
29399
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29400
  esac
29401
done
29402
29403
29404
# If the user did not use the arguments to specify the items to instantiate,
29405
# then the envvar interface is used.  Set only those that are not.
29406
# We use the long form for the default assignment because of an extremely
29407
# bizarre bug on SunOS 4.1.3.
29408
if $ac_need_defaults; then
29409
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29410
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29411
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29412
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29413
fi
29414
29415
# Have a temporary directory for convenience.  Make it in the build tree
29416
# simply because there is no reason against having it here, and in addition,
29417
# creating and moving files from /tmp can sometimes cause problems.
29418
# Hook for its removal unless debugging.
29419
# Note that there is a small window in which the directory will not be cleaned:
29420
# after its creation but before its name has been assigned to `$tmp'.
29421
$debug ||
29422
{
1.15.15 by Colin Watson
Import upstream version 1.99
29423
  tmp= ac_tmp=
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29424
  trap 'exit_status=$?
1.15.15 by Colin Watson
Import upstream version 1.99
29425
  : "${ac_tmp:=$tmp}"
29426
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29427
' 0
29428
  trap 'as_fn_exit 1' 1 2 13 15
29429
}
29430
# Create a (secure) tmp directory for tmp files.
29431
29432
{
29433
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.15.15 by Colin Watson
Import upstream version 1.99
29434
  test -d "$tmp"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29435
}  ||
29436
{
29437
  tmp=./conf$$-$RANDOM
29438
  (umask 077 && mkdir "$tmp")
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29439
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15.15 by Colin Watson
Import upstream version 1.99
29440
ac_tmp=$tmp
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29441
29442
# Set up the scripts for CONFIG_FILES section.
29443
# No need to generate them if there are no CONFIG_FILES.
29444
# This happens for instance with `./config.status config.h'.
29445
if test -n "$CONFIG_FILES"; then
29446
29447
29448
ac_cr=`echo X | tr X '\015'`
29449
# On cygwin, bash can eat \r inside `` if the user requested igncr.
29450
# But we know of no other shell where ac_cr would be empty at this
29451
# point, so we can use a bashism as a fallback.
29452
if test "x$ac_cr" = x; then
29453
  eval ac_cr=\$\'\\r\'
29454
fi
29455
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29456
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29457
  ac_cs_awk_cr='\\r'
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29458
else
29459
  ac_cs_awk_cr=$ac_cr
29460
fi
29461
1.15.15 by Colin Watson
Import upstream version 1.99
29462
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29463
_ACEOF
29464
29465
29466
{
29467
  echo "cat >conf$$subs.awk <<_ACEOF" &&
29468
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29469
  echo "_ACEOF"
29470
} >conf$$subs.sh ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29471
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29472
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29473
ac_delim='%!_!# '
29474
for ac_last_try in false false false false false :; do
29475
  . ./conf$$subs.sh ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29476
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29477
29478
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29479
  if test $ac_delim_n = $ac_delim_num; then
29480
    break
29481
  elif $ac_last_try; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29482
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29483
  else
29484
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29485
  fi
29486
done
29487
rm -f conf$$subs.sh
29488
29489
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.15.15 by Colin Watson
Import upstream version 1.99
29490
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29491
_ACEOF
29492
sed -n '
29493
h
29494
s/^/S["/; s/!.*/"]=/
29495
p
29496
g
29497
s/^[^!]*!//
29498
:repl
29499
t repl
29500
s/'"$ac_delim"'$//
29501
t delim
29502
:nl
29503
h
29504
s/\(.\{148\}\)..*/\1/
29505
t more1
29506
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29507
p
29508
n
29509
b repl
29510
:more1
29511
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29512
p
29513
g
29514
s/.\{148\}//
29515
t nl
29516
:delim
29517
h
29518
s/\(.\{148\}\)..*/\1/
29519
t more2
29520
s/["\\]/\\&/g; s/^/"/; s/$/"/
29521
p
29522
b
29523
:more2
29524
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29525
p
29526
g
29527
s/.\{148\}//
29528
t delim
29529
' <conf$$subs.awk | sed '
29530
/^[^""]/{
29531
  N
29532
  s/\n//
29533
}
29534
' >>$CONFIG_STATUS || ac_write_fail=1
29535
rm -f conf$$subs.awk
29536
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29537
_ACAWK
1.15.15 by Colin Watson
Import upstream version 1.99
29538
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29539
  for (key in S) S_is_set[key] = 1
29540
  FS = ""
29541
29542
}
29543
{
29544
  line = $ 0
29545
  nfields = split(line, field, "@")
29546
  substed = 0
29547
  len = length(field[1])
29548
  for (i = 2; i < nfields; i++) {
29549
    key = field[i]
29550
    keylen = length(key)
29551
    if (S_is_set[key]) {
29552
      value = S[key]
29553
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29554
      len += length(value) + length(field[++i])
29555
      substed = 1
29556
    } else
29557
      len += 1 + keylen
29558
  }
29559
29560
  print line
29561
}
29562
29563
_ACAWK
29564
_ACEOF
29565
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29566
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29567
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29568
else
29569
  cat
1.15.15 by Colin Watson
Import upstream version 1.99
29570
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29571
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29572
_ACEOF
29573
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29574
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29575
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29576
# trailing colons and then remove the whole line if VPATH becomes empty
29577
# (actually we leave an empty line to preserve line numbers).
29578
if test "x$srcdir" = x.; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29579
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29580
h
29581
s///
29582
s/^/:/
29583
s/[	 ]*$/:/
29584
s/:\$(srcdir):/:/g
29585
s/:\${srcdir}:/:/g
29586
s/:@srcdir@:/:/g
29587
s/^:*//
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29588
s/:*$//
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29589
x
29590
s/\(=[	 ]*\).*/\1/
29591
G
29592
s/\n//
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29593
s/^[^=]*=[	 ]*$//
29594
}'
29595
fi
29596
29597
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29598
fi # test -n "$CONFIG_FILES"
29599
29600
# Set up the scripts for CONFIG_HEADERS section.
29601
# No need to generate them if there are no CONFIG_HEADERS.
29602
# This happens for instance with `./config.status Makefile'.
29603
if test -n "$CONFIG_HEADERS"; then
1.15.15 by Colin Watson
Import upstream version 1.99
29604
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29605
BEGIN {
29606
_ACEOF
29607
29608
# Transform confdefs.h into an awk script `defines.awk', embedded as
29609
# here-document in config.status, that substitutes the proper values into
29610
# config.h.in to produce config.h.
29611
29612
# Create a delimiter string that does not exist in confdefs.h, to ease
29613
# handling of long lines.
29614
ac_delim='%!_!# '
29615
for ac_last_try in false false :; do
1.15.15 by Colin Watson
Import upstream version 1.99
29616
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29617
  if test -z "$ac_tt"; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29618
    break
29619
  elif $ac_last_try; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29620
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29621
  else
29622
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29623
  fi
29624
done
29625
29626
# For the awk script, D is an array of macro values keyed by name,
29627
# likewise P contains macro parameters if any.  Preserve backslash
29628
# newline sequences.
29629
29630
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29631
sed -n '
29632
s/.\{148\}/&'"$ac_delim"'/g
29633
t rset
29634
:rset
29635
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29636
t def
29637
d
29638
:def
29639
s/\\$//
29640
t bsnl
29641
s/["\\]/\\&/g
29642
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29643
D["\1"]=" \3"/p
29644
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29645
d
29646
:bsnl
29647
s/["\\]/\\&/g
29648
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29649
D["\1"]=" \3\\\\\\n"\\/p
29650
t cont
29651
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29652
t cont
29653
d
29654
:cont
29655
n
29656
s/.\{148\}/&'"$ac_delim"'/g
29657
t clear
29658
:clear
29659
s/\\$//
29660
t bsnlc
29661
s/["\\]/\\&/g; s/^/"/; s/$/"/p
29662
d
29663
:bsnlc
29664
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29665
b cont
29666
' <confdefs.h | sed '
29667
s/'"$ac_delim"'/"\\\
29668
"/g' >>$CONFIG_STATUS || ac_write_fail=1
29669
29670
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29671
  for (key in D) D_is_set[key] = 1
29672
  FS = ""
29673
}
29674
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29675
  line = \$ 0
29676
  split(line, arg, " ")
29677
  if (arg[1] == "#") {
29678
    defundef = arg[2]
29679
    mac1 = arg[3]
29680
  } else {
29681
    defundef = substr(arg[1], 2)
29682
    mac1 = arg[2]
29683
  }
29684
  split(mac1, mac2, "(") #)
29685
  macro = mac2[1]
29686
  prefix = substr(line, 1, index(line, defundef) - 1)
29687
  if (D_is_set[macro]) {
29688
    # Preserve the white space surrounding the "#".
29689
    print prefix "define", macro P[macro] D[macro]
29690
    next
29691
  } else {
29692
    # Replace #undef with comments.  This is necessary, for example,
29693
    # in the case of _POSIX_SOURCE, which is predefined and required
29694
    # on some systems where configure will not decide to define it.
29695
    if (defundef == "undef") {
29696
      print "/*", prefix defundef, macro, "*/"
29697
      next
29698
    }
29699
  }
29700
}
29701
{ print }
29702
_ACAWK
29703
_ACEOF
29704
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29705
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29706
fi # test -n "$CONFIG_HEADERS"
29707
29708
29709
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29710
shift
29711
for ac_tag
29712
do
29713
  case $ac_tag in
29714
  :[FHLC]) ac_mode=$ac_tag; continue;;
29715
  esac
29716
  case $ac_mode$ac_tag in
29717
  :[FHL]*:*);;
1.15.15 by Colin Watson
Import upstream version 1.99
29718
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29719
  :[FH]-) ac_tag=-:-;;
29720
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29721
  esac
29722
  ac_save_IFS=$IFS
29723
  IFS=:
29724
  set x $ac_tag
29725
  IFS=$ac_save_IFS
29726
  shift
29727
  ac_file=$1
29728
  shift
29729
29730
  case $ac_mode in
29731
  :L) ac_source=$1;;
29732
  :[FH])
29733
    ac_file_inputs=
29734
    for ac_f
29735
    do
29736
      case $ac_f in
1.15.15 by Colin Watson
Import upstream version 1.99
29737
      -) ac_f="$ac_tmp/stdin";;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29738
      *) # Look for the file first in the build tree, then in the source tree
29739
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29740
	 # because $ac_f cannot contain `:'.
29741
	 test -f "$ac_f" ||
29742
	   case $ac_f in
29743
	   [\\/$]*) false;;
29744
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29745
	   esac ||
1.15.15 by Colin Watson
Import upstream version 1.99
29746
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29747
      esac
29748
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29749
      as_fn_append ac_file_inputs " '$ac_f'"
29750
    done
29751
29752
    # Let's still pretend it is `configure' which instantiates (i.e., don't
29753
    # use $as_me), people would be surprised to read:
29754
    #    /* config.h.  Generated by config.status.  */
29755
    configure_input='Generated from '`
29756
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29757
	`' by configure.'
29758
    if test x"$ac_file" != x-; then
29759
      configure_input="$ac_file.  $configure_input"
29760
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29761
$as_echo "$as_me: creating $ac_file" >&6;}
29762
    fi
29763
    # Neutralize special characters interpreted by sed in replacement strings.
29764
    case $configure_input in #(
29765
    *\&* | *\|* | *\\* )
29766
       ac_sed_conf_input=`$as_echo "$configure_input" |
29767
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29768
    *) ac_sed_conf_input=$configure_input;;
29769
    esac
29770
29771
    case $ac_tag in
1.15.15 by Colin Watson
Import upstream version 1.99
29772
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29773
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29774
    esac
29775
    ;;
29776
  esac
29777
29778
  ac_dir=`$as_dirname -- "$ac_file" ||
29779
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29780
	 X"$ac_file" : 'X\(//\)[^/]' \| \
29781
	 X"$ac_file" : 'X\(//\)$' \| \
29782
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29783
$as_echo X"$ac_file" |
29784
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29785
	    s//\1/
29786
	    q
29787
	  }
29788
	  /^X\(\/\/\)[^/].*/{
29789
	    s//\1/
29790
	    q
29791
	  }
29792
	  /^X\(\/\/\)$/{
29793
	    s//\1/
29794
	    q
29795
	  }
29796
	  /^X\(\/\).*/{
29797
	    s//\1/
29798
	    q
29799
	  }
29800
	  s/.*/./; q'`
29801
  as_dir="$ac_dir"; as_fn_mkdir_p
29802
  ac_builddir=.
29803
29804
case "$ac_dir" in
29805
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29806
*)
29807
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29808
  # A ".." for each directory in $ac_dir_suffix.
29809
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29810
  case $ac_top_builddir_sub in
29811
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29812
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29813
  esac ;;
29814
esac
29815
ac_abs_top_builddir=$ac_pwd
29816
ac_abs_builddir=$ac_pwd$ac_dir_suffix
29817
# for backward compatibility:
29818
ac_top_builddir=$ac_top_build_prefix
29819
29820
case $srcdir in
29821
  .)  # We are building in place.
29822
    ac_srcdir=.
29823
    ac_top_srcdir=$ac_top_builddir_sub
29824
    ac_abs_top_srcdir=$ac_pwd ;;
29825
  [\\/]* | ?:[\\/]* )  # Absolute name.
29826
    ac_srcdir=$srcdir$ac_dir_suffix;
29827
    ac_top_srcdir=$srcdir
29828
    ac_abs_top_srcdir=$srcdir ;;
29829
  *) # Relative name.
29830
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29831
    ac_top_srcdir=$ac_top_build_prefix$srcdir
29832
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29833
esac
29834
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29835
29836
29837
  case $ac_mode in
29838
  :F)
29839
  #
29840
  # CONFIG_FILE
29841
  #
29842
29843
  case $INSTALL in
29844
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29845
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29846
  esac
29847
  ac_MKDIR_P=$MKDIR_P
29848
  case $MKDIR_P in
29849
  [\\/$]* | ?:[\\/]* ) ;;
29850
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29851
  esac
29852
_ACEOF
29853
29854
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29855
# If the template does not know about datarootdir, expand it.
29856
# FIXME: This hack should be removed a few years after 2.60.
29857
ac_datarootdir_hack=; ac_datarootdir_seen=
29858
ac_sed_dataroot='
29859
/datarootdir/ {
29860
  p
29861
  q
29862
}
29863
/@datadir@/p
29864
/@docdir@/p
29865
/@infodir@/p
29866
/@localedir@/p
29867
/@mandir@/p'
29868
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29869
*datarootdir*) ac_datarootdir_seen=yes;;
29870
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29871
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29872
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29873
_ACEOF
29874
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29875
  ac_datarootdir_hack='
29876
  s&@datadir@&$datadir&g
29877
  s&@docdir@&$docdir&g
29878
  s&@infodir@&$infodir&g
29879
  s&@localedir@&$localedir&g
29880
  s&@mandir@&$mandir&g
29881
  s&\\\${datarootdir}&$datarootdir&g' ;;
29882
esac
29883
_ACEOF
29884
29885
# Neutralize VPATH when `$srcdir' = `.'.
29886
# Shell code in configure.ac might set extrasub.
29887
# FIXME: do we really want to maintain this feature?
29888
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29889
ac_sed_extra="$ac_vpsub
29890
$extrasub
29891
_ACEOF
29892
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29893
:t
29894
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29895
s|@configure_input@|$ac_sed_conf_input|;t t
29896
s&@top_builddir@&$ac_top_builddir_sub&;t t
29897
s&@top_build_prefix@&$ac_top_build_prefix&;t t
29898
s&@srcdir@&$ac_srcdir&;t t
29899
s&@abs_srcdir@&$ac_abs_srcdir&;t t
29900
s&@top_srcdir@&$ac_top_srcdir&;t t
29901
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29902
s&@builddir@&$ac_builddir&;t t
29903
s&@abs_builddir@&$ac_abs_builddir&;t t
29904
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29905
s&@INSTALL@&$ac_INSTALL&;t t
29906
s&@MKDIR_P@&$ac_MKDIR_P&;t t
29907
$ac_datarootdir_hack
29908
"
1.15.15 by Colin Watson
Import upstream version 1.99
29909
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29910
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29911
29912
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.15.15 by Colin Watson
Import upstream version 1.99
29913
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29914
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29915
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29916
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29917
which seems to be undefined.  Please make sure it is defined" >&5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29918
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29919
which seems to be undefined.  Please make sure it is defined" >&2;}
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29920
1.15.15 by Colin Watson
Import upstream version 1.99
29921
  rm -f "$ac_tmp/stdin"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29922
  case $ac_file in
1.15.15 by Colin Watson
Import upstream version 1.99
29923
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29924
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29925
  esac \
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29926
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29927
 ;;
29928
  :H)
29929
  #
29930
  # CONFIG_HEADER
29931
  #
29932
  if test x"$ac_file" != x-; then
29933
    {
29934
      $as_echo "/* $configure_input  */" \
1.15.15 by Colin Watson
Import upstream version 1.99
29935
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29936
    } >"$ac_tmp/config.h" \
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29937
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15.15 by Colin Watson
Import upstream version 1.99
29938
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29939
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29940
$as_echo "$as_me: $ac_file is unchanged" >&6;}
29941
    else
29942
      rm -f "$ac_file"
1.15.15 by Colin Watson
Import upstream version 1.99
29943
      mv "$ac_tmp/config.h" "$ac_file" \
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29944
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29945
    fi
29946
  else
29947
    $as_echo "/* $configure_input  */" \
1.15.15 by Colin Watson
Import upstream version 1.99
29948
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
29949
      || as_fn_error $? "could not create -" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
29950
  fi
29951
# Compute "$ac_file"'s index in $config_headers.
29952
_am_arg="$ac_file"
29953
_am_stamp_count=1
29954
for _am_header in $config_headers :; do
29955
  case $_am_header in
29956
    $_am_arg | $_am_arg:* )
29957
      break ;;
29958
    * )
29959
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29960
  esac
29961
done
29962
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29963
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29964
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
29965
	 X"$_am_arg" : 'X\(//\)$' \| \
29966
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29967
$as_echo X"$_am_arg" |
29968
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29969
	    s//\1/
29970
	    q
29971
	  }
29972
	  /^X\(\/\/\)[^/].*/{
29973
	    s//\1/
29974
	    q
29975
	  }
29976
	  /^X\(\/\/\)$/{
29977
	    s//\1/
29978
	    q
29979
	  }
29980
	  /^X\(\/\).*/{
29981
	    s//\1/
29982
	    q
29983
	  }
29984
	  s/.*/./; q'`/stamp-h$_am_stamp_count
29985
 ;;
29986
  :L)
29987
  #
29988
  # CONFIG_LINK
29989
  #
29990
29991
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29992
    :
29993
  else
29994
    # Prefer the file from the source tree if names are identical.
29995
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29996
      ac_source=$srcdir/$ac_source
29997
    fi
29998
29999
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30000
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30001
30002
    if test ! -r "$ac_source"; then
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
30003
      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30004
    fi
30005
    rm -f "$ac_file"
30006
30007
    # Try a relative symlink, then a hard link, then a copy.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
30008
    case $ac_source in
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30009
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30010
	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30011
    esac
30012
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30013
      ln "$ac_source" "$ac_file" 2>/dev/null ||
30014
      cp -p "$ac_source" "$ac_file" ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
30015
      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30016
  fi
30017
 ;;
30018
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30019
$as_echo "$as_me: executing $ac_file commands" >&6;}
30020
 ;;
30021
  esac
30022
30023
30024
  case $ac_file$ac_mode in
30025
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30026
  # Older Autoconf quotes --file arguments for eval, but not when files
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30027
  # are listed without --file.  Let's play safe and only enable the eval
30028
  # if we detect the quoting.
30029
  case $CONFIG_FILES in
30030
  *\'*) eval set x "$CONFIG_FILES" ;;
30031
  *)   set x $CONFIG_FILES ;;
30032
  esac
30033
  shift
30034
  for mf
30035
  do
30036
    # Strip MF so we end up with the name of the file.
30037
    mf=`echo "$mf" | sed -e 's/:.*$//'`
30038
    # Check whether this is an Automake generated Makefile or not.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30039
    # We used to match only the files named 'Makefile.in', but
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30040
    # some people rename them; so instead we look at the file content.
30041
    # Grep'ing the first line is not enough: some people post-process
30042
    # each Makefile.in and add a new line on top of each file to say so.
30043
    # Grep'ing the whole file is not good either: AIX grep has a line
30044
    # limit of 2048, but all sed's we know have understand at least 4000.
30045
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30046
      dirpart=`$as_dirname -- "$mf" ||
30047
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30048
	 X"$mf" : 'X\(//\)[^/]' \| \
30049
	 X"$mf" : 'X\(//\)$' \| \
30050
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30051
$as_echo X"$mf" |
30052
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30053
	    s//\1/
30054
	    q
30055
	  }
30056
	  /^X\(\/\/\)[^/].*/{
30057
	    s//\1/
30058
	    q
30059
	  }
30060
	  /^X\(\/\/\)$/{
30061
	    s//\1/
30062
	    q
30063
	  }
30064
	  /^X\(\/\).*/{
30065
	    s//\1/
30066
	    q
30067
	  }
30068
	  s/.*/./; q'`
30069
    else
30070
      continue
30071
    fi
30072
    # Extract the definition of DEPDIR, am__include, and am__quote
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30073
    # from the Makefile without running 'make'.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30074
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30075
    test -z "$DEPDIR" && continue
30076
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30077
    test -z "$am__include" && continue
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30078
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30079
    # Find all dependency output files, they are included files with
30080
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
30081
    # simplest approach to changing $(DEPDIR) to its actual value in the
30082
    # expansion.
30083
    for file in `sed -n "
30084
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30085
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30086
      # Make sure the directory exists.
30087
      test -f "$dirpart/$file" && continue
30088
      fdir=`$as_dirname -- "$file" ||
30089
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30090
	 X"$file" : 'X\(//\)[^/]' \| \
30091
	 X"$file" : 'X\(//\)$' \| \
30092
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30093
$as_echo X"$file" |
30094
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30095
	    s//\1/
30096
	    q
30097
	  }
30098
	  /^X\(\/\/\)[^/].*/{
30099
	    s//\1/
30100
	    q
30101
	  }
30102
	  /^X\(\/\/\)$/{
30103
	    s//\1/
30104
	    q
30105
	  }
30106
	  /^X\(\/\).*/{
30107
	    s//\1/
30108
	    q
30109
	  }
30110
	  s/.*/./; q'`
30111
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
30112
      # echo "creating $dirpart/$file"
30113
      echo '# dummy' > "$dirpart/$file"
30114
    done
30115
  done
30116
}
30117
 ;;
30118
    "po-directories":C)
30119
    for ac_file in $CONFIG_FILES; do
30120
      # Support "outfile[:infile[:infile...]]"
30121
      case "$ac_file" in
30122
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30123
      esac
30124
      # PO directories have a Makefile.in generated from Makefile.in.in.
30125
      case "$ac_file" in */Makefile.in)
30126
        # Adjust a relative srcdir.
30127
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30128
        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30129
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30130
        # In autoconf-2.13 it is called $ac_given_srcdir.
30131
        # In autoconf-2.50 it is called $srcdir.
30132
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30133
        case "$ac_given_srcdir" in
30134
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30135
          /*) top_srcdir="$ac_given_srcdir" ;;
30136
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
30137
        esac
30138
        # Treat a directory as a PO directory if and only if it has a
30139
        # POTFILES.in file. This allows packages to have multiple PO
30140
        # directories under different names or in different locations.
30141
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30142
          rm -f "$ac_dir/POTFILES"
30143
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30144
          gt_tab=`printf '\t'`
30145
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30146
          POMAKEFILEDEPS="POTFILES.in"
30147
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30148
          # on $ac_dir but don't depend on user-specified configuration
30149
          # parameters.
30150
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30151
            # The LINGUAS file contains the set of available languages.
30152
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
30153
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30154
            fi
30155
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30156
            # Hide the ALL_LINGUAS assignment from automake < 1.5.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30157
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30158
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30159
          else
30160
            # The set of available languages was given in configure.in.
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30161
            # Hide the ALL_LINGUAS assignment from automake < 1.5.
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30162
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30163
          fi
30164
          # Compute POFILES
30165
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30166
          # Compute UPDATEPOFILES
30167
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30168
          # Compute DUMMYPOFILES
30169
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30170
          # Compute GMOFILES
30171
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30172
          case "$ac_given_srcdir" in
30173
            .) srcdirpre= ;;
30174
            *) srcdirpre='$(srcdir)/' ;;
30175
          esac
30176
          POFILES=
30177
          UPDATEPOFILES=
30178
          DUMMYPOFILES=
30179
          GMOFILES=
30180
          for lang in $ALL_LINGUAS; do
30181
            POFILES="$POFILES $srcdirpre$lang.po"
30182
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30183
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30184
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30185
          done
30186
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
30187
          # environment variable.
30188
          INST_LINGUAS=
30189
          if test -n "$ALL_LINGUAS"; then
30190
            for presentlang in $ALL_LINGUAS; do
30191
              useit=no
30192
              if test "%UNSET%" != "$LINGUAS"; then
30193
                desiredlanguages="$LINGUAS"
30194
              else
30195
                desiredlanguages="$ALL_LINGUAS"
30196
              fi
30197
              for desiredlang in $desiredlanguages; do
30198
                # Use the presentlang catalog if desiredlang is
30199
                #   a. equal to presentlang, or
30200
                #   b. a variant of presentlang (because in this case,
30201
                #      presentlang can be used as a fallback for messages
30202
                #      which are not translated in the desiredlang catalog).
30203
                case "$desiredlang" in
30204
                  "$presentlang"*) useit=yes;;
30205
                esac
30206
              done
30207
              if test $useit = yes; then
30208
                INST_LINGUAS="$INST_LINGUAS $presentlang"
30209
              fi
30210
            done
30211
          fi
30212
          CATALOGS=
30213
          if test -n "$INST_LINGUAS"; then
30214
            for lang in $INST_LINGUAS; do
30215
              CATALOGS="$CATALOGS $lang.gmo"
30216
            done
30217
          fi
30218
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30219
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
30220
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30221
            if test -f "$f"; then
30222
              case "$f" in
30223
                *.orig | *.bak | *~) ;;
30224
                *) cat "$f" >> "$ac_dir/Makefile" ;;
30225
              esac
30226
            fi
30227
          done
30228
        fi
30229
        ;;
30230
      esac
30231
    done ;;
30232
    "stamp-h":F) echo timestamp > stamp-h ;;
30233
30234
  esac
30235
done # for ac_tag
30236
30237
30238
as_fn_exit 0
30239
_ACEOF
30240
ac_clean_files=$ac_clean_files_save
30241
30242
test $ac_write_fail = 0 ||
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
30243
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30244
30245
30246
# configure is writing to config.log, and then calls config.status.
30247
# config.status does its own redirection, appending to config.log.
30248
# Unfortunately, on DOS this fails, as config.log is still kept open
30249
# by configure, so config.status won't be able to write to it; its
30250
# output is simply discarded.  So we exec the FD to /dev/null,
30251
# effectively closing config.log, so it can be properly (re)opened and
30252
# appended to by config.status.  When coming back to configure, we
30253
# need to make the FD available again.
30254
if test "$no_create" != yes; then
30255
  ac_cs_success=:
30256
  ac_config_status_args=
30257
  test "$silent" = yes &&
30258
    ac_config_status_args="$ac_config_status_args --quiet"
30259
  exec 5>/dev/null
30260
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30261
  exec 5>>config.log
30262
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30263
  # would make configure fail if this is the last instruction.
50 by Colin Watson, Updated translations, Colin Watson, Robert Millan
[ Updated translations ]
30264
  $ac_cs_success || as_fn_exit 1
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30265
fi
30266
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30267
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30268
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30269
fi
30270
30271
30272
echo "*******************************************************"
30273
echo GRUB2 will be compiled with following components:
30274
echo Platform: "$target_cpu"-"$platform"
30275
if [ x"$platform" = xemu ]; then
30276
if [ x"$grub_emu_usb_excuse" = x ]; then
30277
echo USB support for grub-emu: Yes
30278
else
30279
echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
30280
fi
30281
if [ x"$grub_emu_sdl_excuse" = x ]; then
30282
echo SDL support for grub-emu: Yes
30283
else
30284
echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
30285
fi
30286
if [ x"$grub_emu_pci_excuse" = x ]; then
30287
echo PCI support for grub-emu: Yes
30288
else
30289
echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
30290
fi
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
30291
fi
30292
if test x"$device_mapper_excuse" = x ; then
30293
echo With devmapper support: Yes
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30294
else
1.15.14 by Colin Watson
Import upstream version 1.99~rc1
30295
echo With devmapper support: No "($device_mapper_excuse)"
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30296
fi
30297
if [ x"$enable_mm_debug" = xyes ]; then
30298
echo With memory debugging: Yes
30299
else
30300
echo With memory debugging: No
30301
fi
1.15.16 by Colin Watson
Import upstream version 2.00
30302
if [ x"$enable_cache_stats" = xyes ]; then
30303
echo With disk cache statistics: Yes
30304
else
30305
echo With disk cache statistics: No
30306
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30307
30308
if [ x"$enable_boot_time" = xyes ]; then
30309
echo With boot time statistics: Yes
30310
else
30311
echo With boot time statistics: No
30312
fi
30313
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30314
if [ x"$efiemu_excuse" = x ]; then
30315
echo efiemu runtime: Yes
30316
else
30317
echo efiemu runtime: No "($efiemu_excuse)"
30318
fi
30319
if [ x"$grub_mkfont_excuse" = x ]; then
30320
echo grub-mkfont: Yes
30321
else
30322
echo grub-mkfont: No "($grub_mkfont_excuse)"
30323
fi
1.15.16 by Colin Watson
Import upstream version 2.00
30324
if [ x"$grub_mount_excuse" = x ]; then
30325
echo grub-mount: Yes
30326
else
30327
echo grub-mount: No "($grub_mount_excuse)"
30328
fi
30329
if [ x"$starfield_excuse" = x ]; then
30330
echo starfield theme: Yes
30331
else
30332
echo starfield theme: No "($starfield_excuse)"
30333
fi
30334
if [ x"$libzfs_excuse" = x ]; then
30335
echo With libzfs support: Yes
30336
else
30337
echo With libzfs support: No "($libzfs_excuse)"
30338
fi
1.15.17 by Colin Watson
Import upstream version 2.00+20131208
30339
if [ x"$grub_build_mkfont_excuse" = x ]; then
30340
  echo Build-time grub-mkfont: Yes
30341
  if test "x$FONT_SOURCE" = x ; then
30342
    echo "Without unifont"
30343
  else
30344
    echo "With unifont from $FONT_SOURCE"
30345
  fi
30346
else
30347
  echo Build-time grub-mkfont: No "($grub_build_mkfont_excuse)"
30348
  echo "Without unifont (no build-time grub-mkfont)"
30349
fi
30350
if test x"$liblzma_excuse" != x ; then
30351
echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
30352
else
30353
echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
30354
fi
1.13.13 by Colin Watson
Import upstream version 1.98+20100614
30355
echo "*******************************************************"
30356